@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251209.0 → 0.0.0-nightly-next-20251210.0

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.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, 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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},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],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:p,references:1})}r.push(u)}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 f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,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:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>w});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["push","insert","attributes","$text","delete","_model","length","remove","flat","_elementName","root","has","19858824myLGks","_trackedElements","values","3767380hiMwzF","246XPnPwA","type","3369360RJMoUc","_getElementKey","elementName","add","9328704hIOyxm","set","position","888520taOpTm","$graveyard","element","from","get","8844904hbMruY","nodeAfter","name","getElementKey","createRangeOn","getChanges","rootName","reset","clear","139595efuyZg","slice","2urtYyg","getItems"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=430]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(669183===parseInt(e(447))/1*(-parseInt(e(431))/2)+parseInt(e(467))/3+-parseInt(e(464))/4+-parseInt(e(445))/5*(-parseInt(e(465))/6)+parseInt(e(471))/7+parseInt(e(436))/8+-parseInt(e(461))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(454)];[a(458)];[a(468)];[a(462)]=new Map;constructor(t,e){const o=a;this[o(454)]=t,this[o(458)]=e[o(469)],this[o(468)]=e[o(439)]}[a(443)](){const t=a;this[t(462)][t(444)]()}[a(441)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(450)===i[e(466)]&&e(452)!==i[e(438)]&&i[e(430)][e(437)]){const t=this[e(454)][e(440)](i[e(430)][e(437)]);for(const o of t[e(448)]()){if(!o.is(e(433),this[e(458)]))continue;const t=this[e(468)](o);n[e(460)](t)||n[e(472)](t,[]),n[e(435)](t)[e(449)](o)}}if(e(456)===i[e(466)]&&i[e(438)]===this[e(458)]){const t=this[e(468)]({getAttribute:t=>i[e(451)][e(435)](t)});o[e(470)](t)}}for(const[t,n]of this[e(462)])e(432)===n[e(459)][e(442)]&&o[e(470)](t);for(const t of o)this[e(462)][e(453)](t);for(const[t,o]of n)this[e(462)][e(472)](t,o[o[e(455)]-1]);const i=new Set;for(const[t,s]of n)o[e(460)](t)&&(i[e(470)](s[0]),s[e(455)]>1?n[e(472)](t,s[e(446)](1)):n[e(453)](t),o[e(453)](t));return{removed:Array[e(434)](o),inserted:Array[e(434)](n[e(463)]())[e(457)](),moved:Array[e(434)](i)}}}const f=u;function u(t,e){const o=p();return(u=function(t,e){return o[t-=255]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(856344===parseInt(e(302))/1*(parseInt(e(350))/2)+parseInt(e(290))/3+-parseInt(e(326))/4+parseInt(e(327))/5*(-parseInt(e(314))/6)+parseInt(e(261))/7*(parseInt(e(330))/8)+-parseInt(e(281))/9*(parseInt(e(277))/10)+parseInt(e(283))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[f(315)]=[];[f(256)]=null;[f(321)]=null;[f(329)];[f(353)];[f(295)];static get[f(342)](){return f(324)}static get[f(294)](){return!0}static get[f(263)](){return!0}constructor(t){const e=f;super(t),this[e(329)]=new l(this[e(288)][e(349)],{elementName:e(265),getElementKey:()=>e(322)}),this[e(353)]=new l(this[e(288)][e(349)],{elementName:e(296),getElementKey:t=>t[e(301)](e(318))}),this[e(295)]=new l(this[e(288)][e(349)],{elementName:e(286),getElementKey:t=>t[e(301)](e(318))})}[f(297)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(325)][t(332)](e=>{const n=t,i=o[n(325)][n(340)][n(275)]();let s=!1;return this[n(354)](e,i)&&(s=!0),this[n(343)](e,i)&&(s=!0),this[n(344)](e,i)&&(s=!0),this[n(355)](e)&&(s=!0),this[n(266)](e)&&(s=!0),this[n(346)](e)&&(s=!0),s}),this[t(300)](o[t(325)],t(267),()=>{const e=t;o[e(309)]({isUndoable:!1},t=>{this[e(287)](t)})},{priority:t(356)}),this[t(300)](n,t(305),()=>{const e=t;this[e(315)]=[],this[e(329)][e(272)](),this[e(353)][e(272)](),this[e(295)][e(272)]()},{priority:t(348)})}[f(259)](){return this[f(256)]}[f(270)](t){const e=f;return this[e(315)][e(292)](e=>e.id===t)||null}[f(293)](){const t=f;return Array[t(279)](this[t(315)])}[f(278)](){return this[f(321)]}[f(339)](t){this[f(321)]=t}[f(345)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(315)][o(331)];i++)this[o(258)](t,i)&&(n=!0);return n}[f(335)](t,e){const o=f,n=t[o(306)](o(265),{});return t[o(308)](n,e),this[o(256)]=n,n}[f(287)](t){const e=f;if(!this[e(315)][e(331)]||this[e(256)])return;const o=this[e(315)][0][e(317)][e(337)],n=this[e(335)](t,o);for(const o of this[e(315)])o[e(313)][e(310)]||t[e(328)](o[e(313)],n,e(273));this[e(345)](t)}[f(354)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(329)][o(275)](e);if(r[o(331)]&&(this[o(256)]=r[0]),i[o(331)])if(i[o(331)]>1||this[o(256)]&&i[o(262)](t=>t!==this[o(256)])){const e=t[o(306)](o(265),{}),s=[];this[o(256)]&&s[o(285)](this[o(256)]),s[o(285)](...i),t[o(328)](e,s[0],o(284));for(const n of s)t[o(260)](t[o(338)](n),t[o(333)](e,o(273))),t[o(291)](n);this[o(256)]=e,this[o(345)](t),n=!0}else this[o(256)]=i[0];if(s[o(331)]&&o(280)===this[o(256)]?.[o(337)][o(304)]){for(const e of this[o(315)])t[o(291)](e[o(317)]),n=!0;this[o(315)]=[],this[o(256)]=null}return n}[f(343)](t,e){const o=f;let n=!1;const i=this[o(288)][o(274)][o(271)](o(323)),{inserted:s,moved:r}=this[o(295)][o(275)](e);for(const e of[...r,...s]){const s=e[o(301)](o(318)),r=this[o(270)](s);r&&(r[o(313)]=e),h(t,i,e)&&(n=!0)}return n}[f(344)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(353)][o(275)](e);for(const e of i)this[o(351)](t,e)&&(n=!0);for(const e of s)this[o(316)](t,e)&&(n=!0);for(const e of r)this[o(311)](t,e)&&(n=!0);return n}[f(266)](t){const e=f;if(!this[e(256)])return!1;let o=!1;if(this[e(256)][e(347)]!==this[e(315)][e(331)]){const n=[];for(const t of this[e(256)][e(255)]()){const i=t[e(301)](e(318));this[e(270)](i)||(n[e(257)](t),o=!0)}for(const o of n)t[e(291)](o)}const n=new Set,i=[];for(const t of this[e(256)][e(255)]()){const s=t[e(301)](e(318));n[e(298)](s)?(i[e(257)](t),o=!0):n[e(352)](s)}for(const o of i)t[e(291)](o);return this[e(256)][e(347)]||(t[e(291)](this[e(256)]),this[e(256)]=null,o=!0),o}[f(316)](t,e){const o=f;if(this[o(315)][o(292)](t=>t[o(317)]===e))return!1;let n=!1;const i=e[o(301)](o(318)),s=this[o(315)][o(289)](t=>t.id===i);-1!==s&&(t[o(291)](this[o(315)][s][o(317)]),this[o(315)][o(269)](s,1),n=!0);let r=this[o(256)]?function(t,e){const n=o;for(const o of t[n(255)]())if(o[n(301)](n(318))===e)return o;return null}(this[o(256)],i):null;r||(r=t[o(306)](o(286),{footnoteId:i}),this[o(256)]&&(t[o(328)](r,this[o(256)],o(273)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(288)][o(349)],this[o(315)],e);this[o(315)][o(269)](c,0,a);let l=c;return-1!==s&&(l=Math[o(282)](c,s)),this[o(345)](t,l)&&(n=!0),n}[f(351)](t,e){const o=f,n=this[o(315)][o(289)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(315)][n];return o(280)!==s[o(313)][o(337)][o(304)]&&(t[o(291)](s[o(313)]),i=!0),this[o(315)][o(269)](n,1),this[o(345)](t,n)&&(i=!0),i}[f(311)](t,e){const o=f,n=e[o(301)](o(318)),i=this[o(315)][o(289)](t=>t.id===n),s=this[o(315)][i];let r=!1;s[o(317)]=e,this[o(315)][o(269)](i,1);const a=m(this[o(288)][o(349)],this[o(315)],e);return this[o(315)][o(269)](a,0,s),this[o(345)](t,Math[o(282)](i,a))&&(r=!0),r}[f(258)](t,e){const o=f;if(!this[o(256)])return!1;const n=this[o(315)][e];let i;return i=this[o(321)]?this[o(321)]({footnote:n,container:this[o(256)],digits:String(this[o(315)][o(331)])[o(331)],value:e+1}):String(e+1),n[o(317)][o(301)](o(341))!=i&&(t[o(307)](o(341),i,n[o(317)]),!0)}[f(346)](t){const e=f;if(!this[e(256)]||this[e(315)][e(331)]<2)return!1;if(function(t,o){const n=e;if(t[n(331)]!==o[n(331)])return!1;for(let e=0;e<t[n(331)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(315)][e(268)](t=>t.id),Array[e(279)](this[e(256)][e(255)]())[e(268)](t=>t[e(301)](e(318)))))return!1;let o=!1;for(let n=0;n<this[e(315)][e(331)];n++){const i=this[e(315)][n],s=t[e(334)](i[e(313)]),r=t[e(333)](this[e(256)],n);s[e(264)](r)||(t[e(260)](t[e(299)](i[e(313)]),r),o=!0)}return o}[f(355)](t){const e=f;if(!this[e(315)][e(331)])return!1;const{model:o}=this[e(288)];let n=!1;for(let i=0;i<this[e(315)][e(331)]-1;i++){const s=this[e(315)][i],r=this[e(315)][i+1],a=o[e(334)](s[e(317)]),c=o[e(334)](r[e(317)]);e(320)===a[e(303)](c)&&(this[e(311)](t,s[e(317)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(347)])return!1;const i=n(e?319:276);return t[n(328)](t[n(306)](i),o),!0}function p(){const t=["_ensureFootnotesReferencesHaveProperOrder","low","getChildren","_footnotesDefinitions","unshift","_updateFootnoteRefCounter","getFootnotesDefinitionsObjectElement","move","8875720UsCVwx","some","isPremiumPlugin","isEqual","footnotesDefinitions","_handleFootnotesDefinitionsObjectSync","change:data","map","splice","getFootnote","get","reset","end","config","getChanges","footnoteInlineContent","12755850MtmGqr","getFootnotesFormatter","from","$graveyard","9UKZqYh","min","10606013UlUqLc","before","push","footnoteDefinition","_ensureFootnotesDefinitionsContainerExists","editor","findIndex","5026761GktKwP","remove","find","getFootnotes","isOfficialPlugin","_footnoteDefsTracker","footnoteRef","init","has","createRangeOn","listenTo","getAttribute","3413cTdzPj","compareWith","rootName","set","createElement","setAttribute","append","enqueueChange","parent","_handleMovedFootnoteReference","getRootNames","definition","6VkZHRL","_footnotes","_handleInsertedFootnoteReference","reference","footnoteId","paragraph","after","_footnoteFormatter","singleton","footnotes.multiBlock","FootnotesTracker","document","4006348cHnKyd","4297695VgueSJ","insert","_footnoteDefsContainerTracker","8meEuhT","length","registerPostFixer","createPositionAt","createPositionBefore","_insertEmptyFootnotesDefinitionsContainer","indexOf","root","createRangeIn","setFootnoteFormatter","differ","footnoteCounter","pluginName","_handleFootnoteDefinitionsChanges","_handleFootnoteReferencesChanges","_updateFootnotesCounters","_sortFootnoteDefinitions","childCount","high","model","50KwUOdh","_handleRemoveFootnoteReferenceById","add","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges"];return(p=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(331)])return 0;const i=t[n(334)](o);for(let o=0;o<e[n(331)];o++){const s=e[o],r=t[n(334)](s[n(317)]);if(n(284)===i[n(303)](r))return o}const s=o[n(337)];let r=-1;for(let t=e[n(331)]-1;t>=0;t--)if(e[t][n(317)][n(337)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(325)][n(312)](),c=a[n(336)](s[n(304)]),l=a[c+1];if(l)for(let t=0;t<e[n(331)];t++)if(e[t][n(317)][n(337)][n(304)]===l)return t;return e[n(331)]}const g=y;!function(t){const e=y,o=t();for(;;)try{if(618246===parseInt(e(301))/1*(-parseInt(e(277))/2)+parseInt(e(306))/3*(-parseInt(e(273))/4)+parseInt(e(302))/5+parseInt(e(280))/6+parseInt(e(307))/7+-parseInt(e(300))/8+parseInt(e(298))/9*(-parseInt(e(296))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class w extends t.Command{[g(284)](){const t=g,e=this[t(281)][t(290)][t(308)][t(303)],o=this[t(292)](e);this[t(275)]=!!o}[g(305)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(308)],r=this[e(292)](s);if(!r)return;const a=o[e(286)][e(274)](e(283)),c=t?.[e(295)]??(0,i.uid)();!function(t){const o=e;return o(285)==typeof t&&t[o(297)]>0&&!/\s/[o(294)](t)&&!/^\d/[o(294)](t)}(c)?(0,i.logWarning)(e(293)):(n[e(282)](t=>{const o=e,i=t[o(291)](o(279),{footnoteId:c});n[o(276)](i,r,null)}),a[e(304)](c))}[g(292)](t){const e=g,{model:o}=this[e(281)],{schema:n}=o,i=t[e(289)]();for(const t of i[e(309)]())if(n[e(299)](t)||n[e(278)](t))return null;const s=i[e(288)];return n[e(287)](s,e(279))?s:null}}function y(t,e){const o=b();return(y=function(t,e){return o[t-=273]})(t,e)}function b(){const t=["insert-footnote-command-executed-with-invalid-id","test","footnoteId","10LYvRJg","length","1573956DxdivI","isBlock","4908104wcvMVr","339835fpbjCZ","5413335VLEIAM","selection","_moveSelectionToFootnoteDefinition","execute","638076gxkPYg","6049498zqiIgi","document","getItems","20ErQewn","get","isEnabled","insertObject","4ErnoKC","isObject","footnoteRef","7217352qqVvOJ","editor","change","FootnotesEditing","refresh","string","plugins","checkChild","end","getFirstRange","model","createElement","_getPositionToInsertFootnote"];return(b=function(){return t})()}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 w(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([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[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([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]),[m([121])]:m([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]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([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(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765238400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(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 P(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 S=o(331);const A=T;function T(t,e){const o=D();return(T=function(t,e){return o[t-=395]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(506678===-parseInt(e(416))/1+parseInt(e(414))/2+-parseInt(e(395))/3*(parseInt(e(403))/4)+-parseInt(e(457))/5*(-parseInt(e(468))/6)+parseInt(e(463))/7*(parseInt(e(470))/8)+parseInt(e(431))/9*(parseInt(e(423))/10)+parseInt(e(453))/11*(-parseInt(e(396))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(415)](){return A(401)}static get[A(449)](){return[v,S.ClipboardPipeline]}static get[A(410)](){return!0}static get[A(448)](){return!0}[A(402)](){this[A(462)]()}[A(462)](){const t=A;this[t(466)](),this[t(456)]()}[A(466)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(397)](S.ClipboardPipeline),s=o[t(397)](d);this[t(452)](i,t(465),(o,i)=>{const r=t,a=L(n[r(427)](i[r(469)]));if(!a[r(474)])return;const c=s[r(447)](),l=a[r(413)]((t,o)=>{const n=r,i=c[n(436)](t=>t.id===o);if(i){const o=e[n(443)][n(475)](i[n(455)],{isClipboardPipeline:!0}),s=e[n(443)][n(425)][n(411)](o);t[i.id]=s}return t},Object[r(435)](null));i[r(472)][r(412)](r(439),JSON[r(434)](l))})}[A(456)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(444)],r=n[t(397)](S.ClipboardPipeline),a=n[t(397)](d),c=e[t(426)][t(397)](t(441));let l=null;this[t(452)](s[t(404)],t(419),(e,o)=>{const n=t,i=o[n(472)][n(471)](n(439));l=i?JSON[n(422)](i):null}),this[t(452)](r,t(458),(n,s)=>{const r=t,f=s[r(417)]===this[r(429)].id;f&&r(451)===s[r(418)]||o[r(440)](t=>{const n=r;let u=a[n(460)]();const d=!!u&&Array[n(433)](o[n(404)][n(438)][n(437)]())[n(400)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(427)](e))n.is(o(454),o(408))&&i[o(467)](n);for(const e of i)t[o(421)](e)}(t,s[n(469)]),!l)return;const{selection:h}=o[n(404)],p=h[n(428)]()[n(420)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(427)](e))if(n.is(o(454),o(408)))return n;return null}(t,s[n(469)]),u||=a[n(446)](t,p));const m=Array[n(433)](h[n(406)]())[n(424)](L),g=function(t,e,o){const s=n,r=Object[s(435)](null);for(const{item:n}of t[s(427)](e))if(n.is(s(454),s(459))){const e=n[s(398)](s(407));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(409)](s(407),r[e],n)}return r}(t,s[n(469)],t=>{const e=n;return!f||!!a[e(445)](t)&&!m[e(400)](t)});for(const[o,i]of Object[n(450)](l)){const s=g[o]||o,r=t[n(461)](n(399),{footnoteId:s}),a=e[n(443)][n(425)][n(475)](i);let l;if(c)l=e[n(443)][n(430)](a,r);else{l=t[n(461)](n(442));const o=e[n(443)][n(430)](a,l);t[n(432)](o,l)}t[n(405)](l,r),t[n(432)](r,u,n(473))}l=null})})}}function D(){const t=["data","editing","getFootnote","_insertEmptyFootnotesDefinitionsContainer","getFootnotes","isPremiumPlugin","requires","entries","drop","listenTo","1397pcEuRr","element","definition","_handlePasteFootnotesDefinitions","4695cYMIeS","contentInsertion","footnoteRef","getFootnotesDefinitionsObjectElement","createElement","_defineClipboardIntegration","56awUsMU","add","outputTransformation","_handleCopyFootnotesDefinitions","push","246VHcjyZ","content","738096ghTxZw","getData","dataTransfer","end","length","toView","3YVigxp","20172DiCoOX","get","getAttribute","footnoteDefinition","includes","FootnotesClipboard","init","2536520SZRVoD","document","append","getRanges","footnoteId","footnotesDefinitions","setAttribute","isOfficialPlugin","toData","setData","reduce","675916rZLPxk","pluginName","607131Wdtsyf","sourceEditorId","method","clipboardInput","root","remove","parse","730AEqgAn","flatMap","htmlProcessor","config","createRangeIn","getFirstRange","editor","toModel","104409iXcjmo","insert","from","stringify","create","find","getSelectedBlocks","selection","application/ckeditor5-footnotes","change","footnotes.multiBlock","footnoteInlineContent"];return(D=function(){return t})()}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(454),e(459))&&o[e(464)](n[e(398)](e(407)));return Array[e(433)](o)}var V=o(311),O=o(355),R=o(929),N=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),z=o.n(U),W=o(741),q=o.n(W),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=q();N()(H.A,X);H.A&&H.A.locals&&H.A.locals;class J 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",G(t,V.ButtonView)),e.add("menuBar:insertFootnote",G(t,V.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||"footnotesLicenseKeyTrialLimit"==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"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.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}}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=185]})(t,e)}var Y=Z;function $(){var t=["Footnotes","6jmnCsT","829488KwXPDr","6799lSCgOl","isPremiumPlugin","requires","3182860GbHjdi","2146932chZUCB","pluginName","5107305mklOpr","isOfficialPlugin","578949bXPyEE","6275144nikCmV"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(659587===parseInt(e(194))/1+parseInt(e(193))/2+parseInt(e(189))/3+-parseInt(e(185))/4+parseInt(e(197))/5+parseInt(e(192))/6*(parseInt(e(187))/7)+-parseInt(e(190))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[Y(186)](){return Y(191)}static get[Y(196)](){return[v,_,J]}static get[Y(188)](){return!0}static get[Y(195)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=279]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(876012===parseInt(e(280))/1+parseInt(e(294))/2+-parseInt(e(281))/3+-parseInt(e(292))/4*(parseInt(e(286))/5)+-parseInt(e(283))/6+-parseInt(e(290))/7+-parseInt(e(287))/8*(-parseInt(e(293))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(282),tt(295),tt(288),tt(289),tt(291),tt(284),tt(285),tt(279)];function nt(){const t=["upper-latin","7155435yXRxtg","lower-alpha","4OqaqRG","387YkSViw","2968740OpfrOy","decimal-leading-zero","upper-roman","56581GWmoDJ","3274647xgbMmW","decimal","3853146eGFJTm","upper-alpha","lower-roman","4473925wFGrvI","555496qMEfzf","lower-latin"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=486]})(t,e)}function rt(){const t=["1228712mKxexd","refresh","405974FBehnh","8RYcdzS","98xjiFAr","188wFFHCy","_updateFootnotesCounters","get","value","1523615kWODke","isEnabled","footnotesListStyle","includes","setAttribute","plugins","getAttribute","change","224778Cylklw","3618477hXdoNj","execute","10221360NUnEEa","model","10917XJMfUJ","getFootnotesDefinitionsObjectElement"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(351521===parseInt(e(502))/1+parseInt(e(500))/2+-parseInt(e(498))/3*(-parseInt(e(505))/4)+parseInt(e(509))/5+-parseInt(e(493))/6*(parseInt(e(504))/7)+-parseInt(e(503))/8*(-parseInt(e(494))/9)+-parseInt(e(496))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(501)](){const t=it,{editor:e}=this,o=e[t(490)][t(507)](d)[t(499)]();this[t(486)]=!!o,this[t(508)]=o?.[t(491)](t(487))??null}[it(495)]({value:t}){const e=it,{editor:o}=this,n=o[e(490)][e(507)](d),i=n[e(499)]();i&&ot[e(488)](t)&&o[e(497)][e(492)](o=>{const s=e;o[s(489)](s(487),t,i),n[s(506)](o)})}}function ct(){const t=["78XcbbNn","25822sWcRLv","8nxzZbi","change","1044999OnNaKU","refresh","setAttribute","plugins","307085LpgIUf","isInteger","42EICzwP","model","3774946CrhsFg","getFootnotesDefinitionsObjectElement","2718782KhADPK","2578310BdarFl","_updateFootnotesCounters","footnotesListStart","execute","value","getAttribute","get","16EAqxdT","isEnabled","80952ythhhM"];return(ct=function(){return t})()}const lt=ft;function ft(t,e){const o=ct();return(ft=function(t,e){return o[t-=432]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(324744===parseInt(e(446))/1*(parseInt(e(447))/2)+parseInt(e(445))/3*(-parseInt(e(444))/4)+parseInt(e(453))/5*(parseInt(e(455))/6)+parseInt(e(432))/7+-parseInt(e(442))/8*(parseInt(e(449))/9)+parseInt(e(435))/10+-parseInt(e(434))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ut extends t.Command{[lt(450)](){const t=lt,{editor:e}=this,o=e[t(452)][t(441)](d)[t(433)]();this[t(443)]=!!o,this[t(439)]=o?.[t(440)](t(437))??null}[lt(438)]({value:t}){const e=lt,{editor:o}=this,n=o[e(452)][e(441)](d),i=n[e(433)]();i&&Number[e(454)](t)&&o[e(456)][e(448)](o=>{const s=e;o[s(451)](s(437),t,i),n[s(436)](o)})}}function dt(){const t=["position","footnotes.footnotesProperties.defaultStartIndex","padStart","item","extend","14994JhqSja","parent","element:ol","footnotesStart","_defineConverters","writer","setStyle","upcast","isPremiumPlugin","nodeAfter","removeStyle","11qMgymW","insert","getItems","mapper","6gBJwQp","floor","_formatFootnoteListValue","add","attribute:footnotesListStyle:footnotesDefinitions","_defineFormatter","footnotes.footnotesProperties.defaultListStyle","footnotes-list","modelCursor","list-style-type","find","391024nhKlno","_getDefaultListStyle","isOfficialPlugin","from","define","downcast","toViewElement","type","get","14993980huOwdk","registerPostFixer","$text","getChildren","setAttribute","isNaN","hasClass","footnotesListStart","lower-latin","hasAttribute","attribute:footnotesListStart:footnotesDefinitions","createRangeOn","viewItem","commands","checkAttribute","parseInt","upper-alpha","_updateFootnotesCounters","894172WaDBBx","requires","start","decimal","88963kkefoe","toLowerCase","_definePostfixer","footnotesDefinitions","decimal-leading-zero","footnotesListStyle","document","for","config","getChanges","lower-alpha","consume","max","1115rtiAck","224unGufA","element","model","init","lower-roman","getStyle","name","getAttribute","footnotesStyle","schema","editor","removeAttribute","pluginName","differ","plugins","toUpperCase","setFootnoteFormatter","10158984MUfmxP","_getDefaultStartIndex","_defineSchema","FootnotesPropertiesEditing","consumable","upper-roman","upper-latin","20488ffQQfz","fromCharCode"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=302]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(649669===parseInt(e(329))/1+-parseInt(e(325))/2*(parseInt(e(389))/3)+-parseInt(e(367))/4*(parseInt(e(342))/5)+-parseInt(e(374))/6*(parseInt(e(343))/7)+parseInt(e(400))/8+parseInt(e(360))/9+parseInt(e(307))/10*(parseInt(e(385))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(355)](){return ht(363)}static get[ht(326)](){return[v,d]}static get[ht(402)](){return!0}static get[ht(382)](){return!0}[ht(346)](){const t=ht,{editor:e}=this;e[t(337)][t(302)](t(395),t(328)),e[t(337)][t(302)](t(370),1),e[t(320)][t(392)](t(351),new at(e)),e[t(320)][t(392)](t(377),new ut(e)),this[t(362)](),this[t(378)](),this[t(394)](),this[t(331)]()}[ht(362)](){const t=ht,{editor:e}=this,{schema:o}=e[t(345)];o[t(373)](t(332),{allowAttributes:[t(334),t(314)]})}[ht(378)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(336)](t(381))[t(392)](e=>{const o=t;e.on(o(376),(t,e,n)=>{const s=o,r=e[s(319)],a=e[s(397)]?.[s(375)];r[s(313)](s(396))&&a?.is(s(344),s(332))&&(function(t,e,o,n){const i=s;if(!n[i(321)](e,i(314)))return;let r=1;const a=o[i(364)][i(340)](t,{attributes:i(327)});if(a){const e=Number[i(322)](t[i(350)](i(327)),10);Number[i(312)](e)||(r=e)}!a&&e[i(316)](i(314))||o[i(379)][i(311)](i(314),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(321)](e,i(334)))return;let r=i(328),a=!1;if(o[i(364)][i(340)](t,{attributes:i(305)})){const e={1:i(328),a:i(339),A:i(323),i:i(347),I:i(365)}[t[i(350)](i(305))];e&&(r=e),a=!0}o[i(364)][i(340)](t,{styles:i(398)})&&(r=function(t){const e=i;switch(t){case e(339):return e(315);case e(323):return e(366);default:return t}}(t[i(348)](i(398))),a=!0),!a&&e[i(316)](i(334))||o[i(379)][i(311)](i(334),r,e)}(r,a,n,i))})}),o[t(336)](t(303))[t(392)](e=>{const o=t;e.on(o(317),(t,e,n)=>{const i=o;if(!n[i(364)][i(340)](e[i(372)],t[i(349)]))return;const s=gt(e[i(372)],n[i(388)]),{attributeNewValue:r}=e;null==r||1===r?n[i(379)][i(354)](i(327),s):n[i(379)][i(311)](i(327),String(r),s)}),e.on(o(393),(t,e,n)=>{const i=o;if(!n[i(364)][i(340)](e[i(372)],t[i(349)]))return;const s=gt(e[i(372)],n[i(388)]),{attributeNewValue:r}=e;r&&i(328)!==r?n[i(379)][i(380)](i(398),r,s):n[i(379)][i(384)](i(398),s)})})}[ht(331)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(357)][t(306)](d),i=this[t(401)](),s=this[t(361)]();o[t(335)][t(308)](e=>{const r=t,a=o[r(335)][r(356)][r(338)]();let c=!1;for(const t of a){if(r(386)!==t[r(305)]||r(309)===t[r(349)])continue;const n=o[r(318)](t[r(369)][r(383)]);for(const t of n[r(387)]())t.is(r(344),r(332))&&(!t[r(316)](r(314))&&o[r(352)][r(321)](t,r(314))&&(e[r(311)](r(314),s,t),c=!0),!t[r(316)](r(334))&&o[r(352)][r(321)](t,r(334))&&(e[r(311)](r(334),i,t),c=!0))}return c&&n[r(324)](e),c})}[ht(394)](){const t=ht,{editor:e}=this;e[t(357)][t(306)](d)[t(359)](e=>this[t(391)](e))}[ht(401)](){const t=ht;return this[t(353)][t(337)][t(306)](t(395))}[ht(361)](){const t=ht;return this[t(353)][t(337)][t(306)](t(370))}[ht(391)]({container:t,value:e,digits:o}){const n=ht,i=t[n(350)](n(334)),s=t[n(350)](n(314)),r=Math[n(390)](e)+(s??1)-1;switch(i){case n(333):return function(t,e){const o=n;return String(t)[o(371)](e,"0")}(r,Math[n(341)](2,o));case n(339):case n(315):return wt(r,!1);case n(323):case n(366):return wt(r,!0);case n(347):return bt(r,!1);case n(365):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(304)](t);return Array[o(403)](n[o(310)]())[o(399)](t=>t.is(o(344),"ol")&&t[o(313)](o(396)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(368)](97+t)+n,i=Math[o(390)]((i-1)/26)}return e?n[o(358)]():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(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(330)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.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,V.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 V.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 V.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 V.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 V.LabeledFieldView(this.locale,V.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 It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=q();N()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.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,V.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 V.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 vt(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}=V.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 Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=180]})(t,e)}function Et(){var t=["isPremiumPlugin","pluginName","27sCcscB","233704Fdsdll","requires","3568089xvVBJw","FootnotesProperties","isOfficialPlugin","3153750QkguDw","2037020fmBkBw","12525872xlLLNl","807926HGtySs","15256MqHQPY"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(334445===-parseInt(e(180))/1+-parseInt(e(188))/2+-parseInt(e(192))/3*(-parseInt(e(189))/4)+parseInt(e(186))/5+-parseInt(e(185))/6+-parseInt(e(182))/7+parseInt(e(187))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[Ft(191)](){return Ft(183)}static get[Ft(181)](){return[mt,Ct]}static get[Ft(184)](){return!0}static get[Ft(190)](){return!0}}function St(){var t=["4499408VrGxnv","9htbfQE","241608ujZSbc","4004BkaXcE","4150gHtPAW","79098tHajXg","562821vlhqzd","3146022PgemjL","78LbHYZo","8thXxsc","16kkUpPr","5ryUtJg","5824203EHuvXF"];return(St=function(){return t})()}function At(t,e){var o=St();return(At=function(t,e){return o[t-=223]})(t,e)}!function(t){for(var e=At,o=t();;)try{if(808234===parseInt(e(234))/1*(-parseInt(e(229))/2)+parseInt(e(230))/3*(parseInt(e(233))/4)+-parseInt(e(235))/5*(-parseInt(e(231))/6)+parseInt(e(223))/7+-parseInt(e(224))/8*(parseInt(e(225))/9)+-parseInt(e(228))/10*(-parseInt(e(227))/11)+-parseInt(e(226))/12*(-parseInt(e(232))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},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],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:p,references:1})}r.push(u)}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 f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,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:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>w});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["push","insert","attributes","$text","delete","_model","length","remove","flat","_elementName","root","has","19858824myLGks","_trackedElements","values","3767380hiMwzF","246XPnPwA","type","3369360RJMoUc","_getElementKey","elementName","add","9328704hIOyxm","set","position","888520taOpTm","$graveyard","element","from","get","8844904hbMruY","nodeAfter","name","getElementKey","createRangeOn","getChanges","rootName","reset","clear","139595efuyZg","slice","2urtYyg","getItems"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=430]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(669183===parseInt(e(447))/1*(-parseInt(e(431))/2)+parseInt(e(467))/3+-parseInt(e(464))/4+-parseInt(e(445))/5*(-parseInt(e(465))/6)+parseInt(e(471))/7+parseInt(e(436))/8+-parseInt(e(461))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(454)];[a(458)];[a(468)];[a(462)]=new Map;constructor(t,e){const o=a;this[o(454)]=t,this[o(458)]=e[o(469)],this[o(468)]=e[o(439)]}[a(443)](){const t=a;this[t(462)][t(444)]()}[a(441)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(450)===i[e(466)]&&e(452)!==i[e(438)]&&i[e(430)][e(437)]){const t=this[e(454)][e(440)](i[e(430)][e(437)]);for(const o of t[e(448)]()){if(!o.is(e(433),this[e(458)]))continue;const t=this[e(468)](o);n[e(460)](t)||n[e(472)](t,[]),n[e(435)](t)[e(449)](o)}}if(e(456)===i[e(466)]&&i[e(438)]===this[e(458)]){const t=this[e(468)]({getAttribute:t=>i[e(451)][e(435)](t)});o[e(470)](t)}}for(const[t,n]of this[e(462)])e(432)===n[e(459)][e(442)]&&o[e(470)](t);for(const t of o)this[e(462)][e(453)](t);for(const[t,o]of n)this[e(462)][e(472)](t,o[o[e(455)]-1]);const i=new Set;for(const[t,s]of n)o[e(460)](t)&&(i[e(470)](s[0]),s[e(455)]>1?n[e(472)](t,s[e(446)](1)):n[e(453)](t),o[e(453)](t));return{removed:Array[e(434)](o),inserted:Array[e(434)](n[e(463)]())[e(457)](),moved:Array[e(434)](i)}}}const f=u;function u(t,e){const o=p();return(u=function(t,e){return o[t-=255]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(856344===parseInt(e(302))/1*(parseInt(e(350))/2)+parseInt(e(290))/3+-parseInt(e(326))/4+parseInt(e(327))/5*(-parseInt(e(314))/6)+parseInt(e(261))/7*(parseInt(e(330))/8)+-parseInt(e(281))/9*(parseInt(e(277))/10)+parseInt(e(283))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[f(315)]=[];[f(256)]=null;[f(321)]=null;[f(329)];[f(353)];[f(295)];static get[f(342)](){return f(324)}static get[f(294)](){return!0}static get[f(263)](){return!0}constructor(t){const e=f;super(t),this[e(329)]=new l(this[e(288)][e(349)],{elementName:e(265),getElementKey:()=>e(322)}),this[e(353)]=new l(this[e(288)][e(349)],{elementName:e(296),getElementKey:t=>t[e(301)](e(318))}),this[e(295)]=new l(this[e(288)][e(349)],{elementName:e(286),getElementKey:t=>t[e(301)](e(318))})}[f(297)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(325)][t(332)](e=>{const n=t,i=o[n(325)][n(340)][n(275)]();let s=!1;return this[n(354)](e,i)&&(s=!0),this[n(343)](e,i)&&(s=!0),this[n(344)](e,i)&&(s=!0),this[n(355)](e)&&(s=!0),this[n(266)](e)&&(s=!0),this[n(346)](e)&&(s=!0),s}),this[t(300)](o[t(325)],t(267),()=>{const e=t;o[e(309)]({isUndoable:!1},t=>{this[e(287)](t)})},{priority:t(356)}),this[t(300)](n,t(305),()=>{const e=t;this[e(315)]=[],this[e(329)][e(272)](),this[e(353)][e(272)](),this[e(295)][e(272)]()},{priority:t(348)})}[f(259)](){return this[f(256)]}[f(270)](t){const e=f;return this[e(315)][e(292)](e=>e.id===t)||null}[f(293)](){const t=f;return Array[t(279)](this[t(315)])}[f(278)](){return this[f(321)]}[f(339)](t){this[f(321)]=t}[f(345)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(315)][o(331)];i++)this[o(258)](t,i)&&(n=!0);return n}[f(335)](t,e){const o=f,n=t[o(306)](o(265),{});return t[o(308)](n,e),this[o(256)]=n,n}[f(287)](t){const e=f;if(!this[e(315)][e(331)]||this[e(256)])return;const o=this[e(315)][0][e(317)][e(337)],n=this[e(335)](t,o);for(const o of this[e(315)])o[e(313)][e(310)]||t[e(328)](o[e(313)],n,e(273));this[e(345)](t)}[f(354)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(329)][o(275)](e);if(r[o(331)]&&(this[o(256)]=r[0]),i[o(331)])if(i[o(331)]>1||this[o(256)]&&i[o(262)](t=>t!==this[o(256)])){const e=t[o(306)](o(265),{}),s=[];this[o(256)]&&s[o(285)](this[o(256)]),s[o(285)](...i),t[o(328)](e,s[0],o(284));for(const n of s)t[o(260)](t[o(338)](n),t[o(333)](e,o(273))),t[o(291)](n);this[o(256)]=e,this[o(345)](t),n=!0}else this[o(256)]=i[0];if(s[o(331)]&&o(280)===this[o(256)]?.[o(337)][o(304)]){for(const e of this[o(315)])t[o(291)](e[o(317)]),n=!0;this[o(315)]=[],this[o(256)]=null}return n}[f(343)](t,e){const o=f;let n=!1;const i=this[o(288)][o(274)][o(271)](o(323)),{inserted:s,moved:r}=this[o(295)][o(275)](e);for(const e of[...r,...s]){const s=e[o(301)](o(318)),r=this[o(270)](s);r&&(r[o(313)]=e),h(t,i,e)&&(n=!0)}return n}[f(344)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(353)][o(275)](e);for(const e of i)this[o(351)](t,e)&&(n=!0);for(const e of s)this[o(316)](t,e)&&(n=!0);for(const e of r)this[o(311)](t,e)&&(n=!0);return n}[f(266)](t){const e=f;if(!this[e(256)])return!1;let o=!1;if(this[e(256)][e(347)]!==this[e(315)][e(331)]){const n=[];for(const t of this[e(256)][e(255)]()){const i=t[e(301)](e(318));this[e(270)](i)||(n[e(257)](t),o=!0)}for(const o of n)t[e(291)](o)}const n=new Set,i=[];for(const t of this[e(256)][e(255)]()){const s=t[e(301)](e(318));n[e(298)](s)?(i[e(257)](t),o=!0):n[e(352)](s)}for(const o of i)t[e(291)](o);return this[e(256)][e(347)]||(t[e(291)](this[e(256)]),this[e(256)]=null,o=!0),o}[f(316)](t,e){const o=f;if(this[o(315)][o(292)](t=>t[o(317)]===e))return!1;let n=!1;const i=e[o(301)](o(318)),s=this[o(315)][o(289)](t=>t.id===i);-1!==s&&(t[o(291)](this[o(315)][s][o(317)]),this[o(315)][o(269)](s,1),n=!0);let r=this[o(256)]?function(t,e){const n=o;for(const o of t[n(255)]())if(o[n(301)](n(318))===e)return o;return null}(this[o(256)],i):null;r||(r=t[o(306)](o(286),{footnoteId:i}),this[o(256)]&&(t[o(328)](r,this[o(256)],o(273)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(288)][o(349)],this[o(315)],e);this[o(315)][o(269)](c,0,a);let l=c;return-1!==s&&(l=Math[o(282)](c,s)),this[o(345)](t,l)&&(n=!0),n}[f(351)](t,e){const o=f,n=this[o(315)][o(289)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(315)][n];return o(280)!==s[o(313)][o(337)][o(304)]&&(t[o(291)](s[o(313)]),i=!0),this[o(315)][o(269)](n,1),this[o(345)](t,n)&&(i=!0),i}[f(311)](t,e){const o=f,n=e[o(301)](o(318)),i=this[o(315)][o(289)](t=>t.id===n),s=this[o(315)][i];let r=!1;s[o(317)]=e,this[o(315)][o(269)](i,1);const a=m(this[o(288)][o(349)],this[o(315)],e);return this[o(315)][o(269)](a,0,s),this[o(345)](t,Math[o(282)](i,a))&&(r=!0),r}[f(258)](t,e){const o=f;if(!this[o(256)])return!1;const n=this[o(315)][e];let i;return i=this[o(321)]?this[o(321)]({footnote:n,container:this[o(256)],digits:String(this[o(315)][o(331)])[o(331)],value:e+1}):String(e+1),n[o(317)][o(301)](o(341))!=i&&(t[o(307)](o(341),i,n[o(317)]),!0)}[f(346)](t){const e=f;if(!this[e(256)]||this[e(315)][e(331)]<2)return!1;if(function(t,o){const n=e;if(t[n(331)]!==o[n(331)])return!1;for(let e=0;e<t[n(331)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(315)][e(268)](t=>t.id),Array[e(279)](this[e(256)][e(255)]())[e(268)](t=>t[e(301)](e(318)))))return!1;let o=!1;for(let n=0;n<this[e(315)][e(331)];n++){const i=this[e(315)][n],s=t[e(334)](i[e(313)]),r=t[e(333)](this[e(256)],n);s[e(264)](r)||(t[e(260)](t[e(299)](i[e(313)]),r),o=!0)}return o}[f(355)](t){const e=f;if(!this[e(315)][e(331)])return!1;const{model:o}=this[e(288)];let n=!1;for(let i=0;i<this[e(315)][e(331)]-1;i++){const s=this[e(315)][i],r=this[e(315)][i+1],a=o[e(334)](s[e(317)]),c=o[e(334)](r[e(317)]);e(320)===a[e(303)](c)&&(this[e(311)](t,s[e(317)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(347)])return!1;const i=n(e?319:276);return t[n(328)](t[n(306)](i),o),!0}function p(){const t=["_ensureFootnotesReferencesHaveProperOrder","low","getChildren","_footnotesDefinitions","unshift","_updateFootnoteRefCounter","getFootnotesDefinitionsObjectElement","move","8875720UsCVwx","some","isPremiumPlugin","isEqual","footnotesDefinitions","_handleFootnotesDefinitionsObjectSync","change:data","map","splice","getFootnote","get","reset","end","config","getChanges","footnoteInlineContent","12755850MtmGqr","getFootnotesFormatter","from","$graveyard","9UKZqYh","min","10606013UlUqLc","before","push","footnoteDefinition","_ensureFootnotesDefinitionsContainerExists","editor","findIndex","5026761GktKwP","remove","find","getFootnotes","isOfficialPlugin","_footnoteDefsTracker","footnoteRef","init","has","createRangeOn","listenTo","getAttribute","3413cTdzPj","compareWith","rootName","set","createElement","setAttribute","append","enqueueChange","parent","_handleMovedFootnoteReference","getRootNames","definition","6VkZHRL","_footnotes","_handleInsertedFootnoteReference","reference","footnoteId","paragraph","after","_footnoteFormatter","singleton","footnotes.multiBlock","FootnotesTracker","document","4006348cHnKyd","4297695VgueSJ","insert","_footnoteDefsContainerTracker","8meEuhT","length","registerPostFixer","createPositionAt","createPositionBefore","_insertEmptyFootnotesDefinitionsContainer","indexOf","root","createRangeIn","setFootnoteFormatter","differ","footnoteCounter","pluginName","_handleFootnoteDefinitionsChanges","_handleFootnoteReferencesChanges","_updateFootnotesCounters","_sortFootnoteDefinitions","childCount","high","model","50KwUOdh","_handleRemoveFootnoteReferenceById","add","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges"];return(p=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(331)])return 0;const i=t[n(334)](o);for(let o=0;o<e[n(331)];o++){const s=e[o],r=t[n(334)](s[n(317)]);if(n(284)===i[n(303)](r))return o}const s=o[n(337)];let r=-1;for(let t=e[n(331)]-1;t>=0;t--)if(e[t][n(317)][n(337)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(325)][n(312)](),c=a[n(336)](s[n(304)]),l=a[c+1];if(l)for(let t=0;t<e[n(331)];t++)if(e[t][n(317)][n(337)][n(304)]===l)return t;return e[n(331)]}const g=y;!function(t){const e=y,o=t();for(;;)try{if(618246===parseInt(e(301))/1*(-parseInt(e(277))/2)+parseInt(e(306))/3*(-parseInt(e(273))/4)+parseInt(e(302))/5+parseInt(e(280))/6+parseInt(e(307))/7+-parseInt(e(300))/8+parseInt(e(298))/9*(-parseInt(e(296))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class w extends t.Command{[g(284)](){const t=g,e=this[t(281)][t(290)][t(308)][t(303)],o=this[t(292)](e);this[t(275)]=!!o}[g(305)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(308)],r=this[e(292)](s);if(!r)return;const a=o[e(286)][e(274)](e(283)),c=t?.[e(295)]??(0,i.uid)();!function(t){const o=e;return o(285)==typeof t&&t[o(297)]>0&&!/\s/[o(294)](t)&&!/^\d/[o(294)](t)}(c)?(0,i.logWarning)(e(293)):(n[e(282)](t=>{const o=e,i=t[o(291)](o(279),{footnoteId:c});n[o(276)](i,r,null)}),a[e(304)](c))}[g(292)](t){const e=g,{model:o}=this[e(281)],{schema:n}=o,i=t[e(289)]();for(const t of i[e(309)]())if(n[e(299)](t)||n[e(278)](t))return null;const s=i[e(288)];return n[e(287)](s,e(279))?s:null}}function y(t,e){const o=b();return(y=function(t,e){return o[t-=273]})(t,e)}function b(){const t=["insert-footnote-command-executed-with-invalid-id","test","footnoteId","10LYvRJg","length","1573956DxdivI","isBlock","4908104wcvMVr","339835fpbjCZ","5413335VLEIAM","selection","_moveSelectionToFootnoteDefinition","execute","638076gxkPYg","6049498zqiIgi","document","getItems","20ErQewn","get","isEnabled","insertObject","4ErnoKC","isObject","footnoteRef","7217352qqVvOJ","editor","change","FootnotesEditing","refresh","string","plugins","checkChild","end","getFirstRange","model","createElement","_getPositionToInsertFootnote"];return(b=function(){return t})()}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 w(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([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[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([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]),[m([121])]:m([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]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([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(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765324800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(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 P(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 S=o(331);const A=T;function T(t,e){const o=D();return(T=function(t,e){return o[t-=395]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(506678===-parseInt(e(416))/1+parseInt(e(414))/2+-parseInt(e(395))/3*(parseInt(e(403))/4)+-parseInt(e(457))/5*(-parseInt(e(468))/6)+parseInt(e(463))/7*(parseInt(e(470))/8)+parseInt(e(431))/9*(parseInt(e(423))/10)+parseInt(e(453))/11*(-parseInt(e(396))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(415)](){return A(401)}static get[A(449)](){return[v,S.ClipboardPipeline]}static get[A(410)](){return!0}static get[A(448)](){return!0}[A(402)](){this[A(462)]()}[A(462)](){const t=A;this[t(466)](),this[t(456)]()}[A(466)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(397)](S.ClipboardPipeline),s=o[t(397)](d);this[t(452)](i,t(465),(o,i)=>{const r=t,a=L(n[r(427)](i[r(469)]));if(!a[r(474)])return;const c=s[r(447)](),l=a[r(413)]((t,o)=>{const n=r,i=c[n(436)](t=>t.id===o);if(i){const o=e[n(443)][n(475)](i[n(455)],{isClipboardPipeline:!0}),s=e[n(443)][n(425)][n(411)](o);t[i.id]=s}return t},Object[r(435)](null));i[r(472)][r(412)](r(439),JSON[r(434)](l))})}[A(456)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(444)],r=n[t(397)](S.ClipboardPipeline),a=n[t(397)](d),c=e[t(426)][t(397)](t(441));let l=null;this[t(452)](s[t(404)],t(419),(e,o)=>{const n=t,i=o[n(472)][n(471)](n(439));l=i?JSON[n(422)](i):null}),this[t(452)](r,t(458),(n,s)=>{const r=t,f=s[r(417)]===this[r(429)].id;f&&r(451)===s[r(418)]||o[r(440)](t=>{const n=r;let u=a[n(460)]();const d=!!u&&Array[n(433)](o[n(404)][n(438)][n(437)]())[n(400)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(427)](e))n.is(o(454),o(408))&&i[o(467)](n);for(const e of i)t[o(421)](e)}(t,s[n(469)]),!l)return;const{selection:h}=o[n(404)],p=h[n(428)]()[n(420)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(427)](e))if(n.is(o(454),o(408)))return n;return null}(t,s[n(469)]),u||=a[n(446)](t,p));const m=Array[n(433)](h[n(406)]())[n(424)](L),g=function(t,e,o){const s=n,r=Object[s(435)](null);for(const{item:n}of t[s(427)](e))if(n.is(s(454),s(459))){const e=n[s(398)](s(407));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(409)](s(407),r[e],n)}return r}(t,s[n(469)],t=>{const e=n;return!f||!!a[e(445)](t)&&!m[e(400)](t)});for(const[o,i]of Object[n(450)](l)){const s=g[o]||o,r=t[n(461)](n(399),{footnoteId:s}),a=e[n(443)][n(425)][n(475)](i);let l;if(c)l=e[n(443)][n(430)](a,r);else{l=t[n(461)](n(442));const o=e[n(443)][n(430)](a,l);t[n(432)](o,l)}t[n(405)](l,r),t[n(432)](r,u,n(473))}l=null})})}}function D(){const t=["data","editing","getFootnote","_insertEmptyFootnotesDefinitionsContainer","getFootnotes","isPremiumPlugin","requires","entries","drop","listenTo","1397pcEuRr","element","definition","_handlePasteFootnotesDefinitions","4695cYMIeS","contentInsertion","footnoteRef","getFootnotesDefinitionsObjectElement","createElement","_defineClipboardIntegration","56awUsMU","add","outputTransformation","_handleCopyFootnotesDefinitions","push","246VHcjyZ","content","738096ghTxZw","getData","dataTransfer","end","length","toView","3YVigxp","20172DiCoOX","get","getAttribute","footnoteDefinition","includes","FootnotesClipboard","init","2536520SZRVoD","document","append","getRanges","footnoteId","footnotesDefinitions","setAttribute","isOfficialPlugin","toData","setData","reduce","675916rZLPxk","pluginName","607131Wdtsyf","sourceEditorId","method","clipboardInput","root","remove","parse","730AEqgAn","flatMap","htmlProcessor","config","createRangeIn","getFirstRange","editor","toModel","104409iXcjmo","insert","from","stringify","create","find","getSelectedBlocks","selection","application/ckeditor5-footnotes","change","footnotes.multiBlock","footnoteInlineContent"];return(D=function(){return t})()}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(454),e(459))&&o[e(464)](n[e(398)](e(407)));return Array[e(433)](o)}var V=o(311),O=o(355),R=o(929),N=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),z=o.n(U),W=o(741),q=o.n(W),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=q();N()(H.A,X);H.A&&H.A.locals&&H.A.locals;class J 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",G(t,V.ButtonView)),e.add("menuBar:insertFootnote",G(t,V.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||"footnotesLicenseKeyTrialLimit"==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"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.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}}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=185]})(t,e)}var Y=Z;function $(){var t=["Footnotes","6jmnCsT","829488KwXPDr","6799lSCgOl","isPremiumPlugin","requires","3182860GbHjdi","2146932chZUCB","pluginName","5107305mklOpr","isOfficialPlugin","578949bXPyEE","6275144nikCmV"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(659587===parseInt(e(194))/1+parseInt(e(193))/2+parseInt(e(189))/3+-parseInt(e(185))/4+parseInt(e(197))/5+parseInt(e(192))/6*(parseInt(e(187))/7)+-parseInt(e(190))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[Y(186)](){return Y(191)}static get[Y(196)](){return[v,_,J]}static get[Y(188)](){return!0}static get[Y(195)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=279]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(876012===parseInt(e(280))/1+parseInt(e(294))/2+-parseInt(e(281))/3+-parseInt(e(292))/4*(parseInt(e(286))/5)+-parseInt(e(283))/6+-parseInt(e(290))/7+-parseInt(e(287))/8*(-parseInt(e(293))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(282),tt(295),tt(288),tt(289),tt(291),tt(284),tt(285),tt(279)];function nt(){const t=["upper-latin","7155435yXRxtg","lower-alpha","4OqaqRG","387YkSViw","2968740OpfrOy","decimal-leading-zero","upper-roman","56581GWmoDJ","3274647xgbMmW","decimal","3853146eGFJTm","upper-alpha","lower-roman","4473925wFGrvI","555496qMEfzf","lower-latin"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=486]})(t,e)}function rt(){const t=["1228712mKxexd","refresh","405974FBehnh","8RYcdzS","98xjiFAr","188wFFHCy","_updateFootnotesCounters","get","value","1523615kWODke","isEnabled","footnotesListStyle","includes","setAttribute","plugins","getAttribute","change","224778Cylklw","3618477hXdoNj","execute","10221360NUnEEa","model","10917XJMfUJ","getFootnotesDefinitionsObjectElement"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(351521===parseInt(e(502))/1+parseInt(e(500))/2+-parseInt(e(498))/3*(-parseInt(e(505))/4)+parseInt(e(509))/5+-parseInt(e(493))/6*(parseInt(e(504))/7)+-parseInt(e(503))/8*(-parseInt(e(494))/9)+-parseInt(e(496))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(501)](){const t=it,{editor:e}=this,o=e[t(490)][t(507)](d)[t(499)]();this[t(486)]=!!o,this[t(508)]=o?.[t(491)](t(487))??null}[it(495)]({value:t}){const e=it,{editor:o}=this,n=o[e(490)][e(507)](d),i=n[e(499)]();i&&ot[e(488)](t)&&o[e(497)][e(492)](o=>{const s=e;o[s(489)](s(487),t,i),n[s(506)](o)})}}function ct(){const t=["78XcbbNn","25822sWcRLv","8nxzZbi","change","1044999OnNaKU","refresh","setAttribute","plugins","307085LpgIUf","isInteger","42EICzwP","model","3774946CrhsFg","getFootnotesDefinitionsObjectElement","2718782KhADPK","2578310BdarFl","_updateFootnotesCounters","footnotesListStart","execute","value","getAttribute","get","16EAqxdT","isEnabled","80952ythhhM"];return(ct=function(){return t})()}const lt=ft;function ft(t,e){const o=ct();return(ft=function(t,e){return o[t-=432]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(324744===parseInt(e(446))/1*(parseInt(e(447))/2)+parseInt(e(445))/3*(-parseInt(e(444))/4)+parseInt(e(453))/5*(parseInt(e(455))/6)+parseInt(e(432))/7+-parseInt(e(442))/8*(parseInt(e(449))/9)+parseInt(e(435))/10+-parseInt(e(434))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ut extends t.Command{[lt(450)](){const t=lt,{editor:e}=this,o=e[t(452)][t(441)](d)[t(433)]();this[t(443)]=!!o,this[t(439)]=o?.[t(440)](t(437))??null}[lt(438)]({value:t}){const e=lt,{editor:o}=this,n=o[e(452)][e(441)](d),i=n[e(433)]();i&&Number[e(454)](t)&&o[e(456)][e(448)](o=>{const s=e;o[s(451)](s(437),t,i),n[s(436)](o)})}}function dt(){const t=["position","footnotes.footnotesProperties.defaultStartIndex","padStart","item","extend","14994JhqSja","parent","element:ol","footnotesStart","_defineConverters","writer","setStyle","upcast","isPremiumPlugin","nodeAfter","removeStyle","11qMgymW","insert","getItems","mapper","6gBJwQp","floor","_formatFootnoteListValue","add","attribute:footnotesListStyle:footnotesDefinitions","_defineFormatter","footnotes.footnotesProperties.defaultListStyle","footnotes-list","modelCursor","list-style-type","find","391024nhKlno","_getDefaultListStyle","isOfficialPlugin","from","define","downcast","toViewElement","type","get","14993980huOwdk","registerPostFixer","$text","getChildren","setAttribute","isNaN","hasClass","footnotesListStart","lower-latin","hasAttribute","attribute:footnotesListStart:footnotesDefinitions","createRangeOn","viewItem","commands","checkAttribute","parseInt","upper-alpha","_updateFootnotesCounters","894172WaDBBx","requires","start","decimal","88963kkefoe","toLowerCase","_definePostfixer","footnotesDefinitions","decimal-leading-zero","footnotesListStyle","document","for","config","getChanges","lower-alpha","consume","max","1115rtiAck","224unGufA","element","model","init","lower-roman","getStyle","name","getAttribute","footnotesStyle","schema","editor","removeAttribute","pluginName","differ","plugins","toUpperCase","setFootnoteFormatter","10158984MUfmxP","_getDefaultStartIndex","_defineSchema","FootnotesPropertiesEditing","consumable","upper-roman","upper-latin","20488ffQQfz","fromCharCode"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=302]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(649669===parseInt(e(329))/1+-parseInt(e(325))/2*(parseInt(e(389))/3)+-parseInt(e(367))/4*(parseInt(e(342))/5)+-parseInt(e(374))/6*(parseInt(e(343))/7)+parseInt(e(400))/8+parseInt(e(360))/9+parseInt(e(307))/10*(parseInt(e(385))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(355)](){return ht(363)}static get[ht(326)](){return[v,d]}static get[ht(402)](){return!0}static get[ht(382)](){return!0}[ht(346)](){const t=ht,{editor:e}=this;e[t(337)][t(302)](t(395),t(328)),e[t(337)][t(302)](t(370),1),e[t(320)][t(392)](t(351),new at(e)),e[t(320)][t(392)](t(377),new ut(e)),this[t(362)](),this[t(378)](),this[t(394)](),this[t(331)]()}[ht(362)](){const t=ht,{editor:e}=this,{schema:o}=e[t(345)];o[t(373)](t(332),{allowAttributes:[t(334),t(314)]})}[ht(378)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(336)](t(381))[t(392)](e=>{const o=t;e.on(o(376),(t,e,n)=>{const s=o,r=e[s(319)],a=e[s(397)]?.[s(375)];r[s(313)](s(396))&&a?.is(s(344),s(332))&&(function(t,e,o,n){const i=s;if(!n[i(321)](e,i(314)))return;let r=1;const a=o[i(364)][i(340)](t,{attributes:i(327)});if(a){const e=Number[i(322)](t[i(350)](i(327)),10);Number[i(312)](e)||(r=e)}!a&&e[i(316)](i(314))||o[i(379)][i(311)](i(314),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(321)](e,i(334)))return;let r=i(328),a=!1;if(o[i(364)][i(340)](t,{attributes:i(305)})){const e={1:i(328),a:i(339),A:i(323),i:i(347),I:i(365)}[t[i(350)](i(305))];e&&(r=e),a=!0}o[i(364)][i(340)](t,{styles:i(398)})&&(r=function(t){const e=i;switch(t){case e(339):return e(315);case e(323):return e(366);default:return t}}(t[i(348)](i(398))),a=!0),!a&&e[i(316)](i(334))||o[i(379)][i(311)](i(334),r,e)}(r,a,n,i))})}),o[t(336)](t(303))[t(392)](e=>{const o=t;e.on(o(317),(t,e,n)=>{const i=o;if(!n[i(364)][i(340)](e[i(372)],t[i(349)]))return;const s=gt(e[i(372)],n[i(388)]),{attributeNewValue:r}=e;null==r||1===r?n[i(379)][i(354)](i(327),s):n[i(379)][i(311)](i(327),String(r),s)}),e.on(o(393),(t,e,n)=>{const i=o;if(!n[i(364)][i(340)](e[i(372)],t[i(349)]))return;const s=gt(e[i(372)],n[i(388)]),{attributeNewValue:r}=e;r&&i(328)!==r?n[i(379)][i(380)](i(398),r,s):n[i(379)][i(384)](i(398),s)})})}[ht(331)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(357)][t(306)](d),i=this[t(401)](),s=this[t(361)]();o[t(335)][t(308)](e=>{const r=t,a=o[r(335)][r(356)][r(338)]();let c=!1;for(const t of a){if(r(386)!==t[r(305)]||r(309)===t[r(349)])continue;const n=o[r(318)](t[r(369)][r(383)]);for(const t of n[r(387)]())t.is(r(344),r(332))&&(!t[r(316)](r(314))&&o[r(352)][r(321)](t,r(314))&&(e[r(311)](r(314),s,t),c=!0),!t[r(316)](r(334))&&o[r(352)][r(321)](t,r(334))&&(e[r(311)](r(334),i,t),c=!0))}return c&&n[r(324)](e),c})}[ht(394)](){const t=ht,{editor:e}=this;e[t(357)][t(306)](d)[t(359)](e=>this[t(391)](e))}[ht(401)](){const t=ht;return this[t(353)][t(337)][t(306)](t(395))}[ht(361)](){const t=ht;return this[t(353)][t(337)][t(306)](t(370))}[ht(391)]({container:t,value:e,digits:o}){const n=ht,i=t[n(350)](n(334)),s=t[n(350)](n(314)),r=Math[n(390)](e)+(s??1)-1;switch(i){case n(333):return function(t,e){const o=n;return String(t)[o(371)](e,"0")}(r,Math[n(341)](2,o));case n(339):case n(315):return wt(r,!1);case n(323):case n(366):return wt(r,!0);case n(347):return bt(r,!1);case n(365):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(304)](t);return Array[o(403)](n[o(310)]())[o(399)](t=>t.is(o(344),"ol")&&t[o(313)](o(396)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(368)](97+t)+n,i=Math[o(390)]((i-1)/26)}return e?n[o(358)]():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(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(330)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.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,V.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 V.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 V.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 V.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 V.LabeledFieldView(this.locale,V.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 It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=q();N()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.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,V.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 V.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 vt(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}=V.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 Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=180]})(t,e)}function Et(){var t=["isPremiumPlugin","pluginName","27sCcscB","233704Fdsdll","requires","3568089xvVBJw","FootnotesProperties","isOfficialPlugin","3153750QkguDw","2037020fmBkBw","12525872xlLLNl","807926HGtySs","15256MqHQPY"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(334445===-parseInt(e(180))/1+-parseInt(e(188))/2+-parseInt(e(192))/3*(-parseInt(e(189))/4)+parseInt(e(186))/5+-parseInt(e(185))/6+-parseInt(e(182))/7+parseInt(e(187))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[Ft(191)](){return Ft(183)}static get[Ft(181)](){return[mt,Ct]}static get[Ft(184)](){return!0}static get[Ft(190)](){return!0}}function St(){var t=["4499408VrGxnv","9htbfQE","241608ujZSbc","4004BkaXcE","4150gHtPAW","79098tHajXg","562821vlhqzd","3146022PgemjL","78LbHYZo","8thXxsc","16kkUpPr","5ryUtJg","5824203EHuvXF"];return(St=function(){return t})()}function At(t,e){var o=St();return(At=function(t,e){return o[t-=223]})(t,e)}!function(t){for(var e=At,o=t();;)try{if(808234===parseInt(e(234))/1*(-parseInt(e(229))/2)+parseInt(e(230))/3*(parseInt(e(233))/4)+-parseInt(e(235))/5*(-parseInt(e(231))/6)+parseInt(e(223))/7+-parseInt(e(224))/8*(parseInt(e(225))/9)+-parseInt(e(228))/10*(-parseInt(e(227))/11)+-parseInt(e(226))/12*(-parseInt(e(232))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(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 _0x5985a2,Command as _0x15cec7}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x30f74e,isWidget as _0x1cd7d3,toWidgetEditable as _0x2d796d,WidgetToolbarRepository as _0x9a9916}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5c7f66,logWarning as _0x4fe835,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3f2772,ClickObserver as _0x4a6265}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x35d075}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x468774,ButtonView as _0x4f6490,View as _0x32c29f,ViewCollection as _0x648ea9,FocusCycler as _0x39868e,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x396f68,BalloonPanelView as _0x4ef4d1,createDropdown as _0x5d04e6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x38b8c7,IconListStyleDecimal as _0x2b7398,IconListStyleDecimalLeadingZero as _0x748e83,IconListStyleLowerRoman as _0x38abb4,IconListStyleUpperRoman as _0x362c7c,IconListStyleLowerLatin as _0x5c6353,IconListStyleUpperLatin as _0x20a6d2}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x5d560c,_0x2932cd){this['_model']=_0x5d560c,this['_elementName']=_0x2932cd['elementName'],this['_getElementKey']=_0x2932cd['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x53c13f){const _0x419da7=new Set(),_0x222cc7=new Map();for(const _0x290a77 of _0x53c13f){if('insert'===_0x290a77['type']&&'$text'!==_0x290a77['name']&&_0x290a77['position']['nodeAfter']){const _0x3de606=this['_model']['createRangeOn'](_0x290a77['position']['nodeAfter']);for(const _0x2798a7 of _0x3de606['getItems']()){if(!_0x2798a7['is']('element',this['_elementName']))continue;const _0x438ed5=this['_getElementKey'](_0x2798a7);_0x222cc7['has'](_0x438ed5)||_0x222cc7['set'](_0x438ed5,[]),_0x222cc7['get'](_0x438ed5)['push'](_0x2798a7);}}if('remove'===_0x290a77['type']&&_0x290a77['name']===this['_elementName']){const _0x172497=this['_getElementKey']({'getAttribute':_0x4bdbe5=>_0x290a77['attributes']['get'](_0x4bdbe5)});_0x419da7['add'](_0x172497);}}for(const [_0x2472e0,_0x2e4198]of this['_trackedElements'])'$graveyard'===_0x2e4198['root']['rootName']&&_0x419da7['add'](_0x2472e0);for(const _0x3cc412 of _0x419da7)this['_trackedElements']['delete'](_0x3cc412);for(const [_0x9ec784,_0xfd5f45]of _0x222cc7)this['_trackedElements']['set'](_0x9ec784,_0xfd5f45[_0xfd5f45['length']-0x1]);const _0x5136d0=new Set();for(const [_0x4893f1,_0x3cfb36]of _0x222cc7)_0x419da7['has'](_0x4893f1)&&(_0x5136d0['add'](_0x3cfb36[0x0]),_0x3cfb36['length']>0x1?_0x222cc7['set'](_0x4893f1,_0x3cfb36['slice'](0x1)):_0x222cc7['delete'](_0x4893f1),_0x419da7['delete'](_0x4893f1));return{'removed':Array['from'](_0x419da7),'inserted':Array['from'](_0x222cc7['values']())['flat'](),'moved':Array['from'](_0x5136d0)};}}class f extends _0x5985a2{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1c3772){super(_0x1c3772),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x379580=>_0x379580['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0xd9c761=>_0xd9c761['getAttribute']('footnoteId')});}['init'](){const {editor:_0x26f6f7}=this,{model:_0x5e49b3,data:_0x38d9e9}=_0x26f6f7;_0x5e49b3['document']['registerPostFixer'](_0x572e38=>{const _0x35029a=_0x5e49b3['document']['differ']['getChanges']();let _0x4922ac=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x572e38,_0x35029a)&&(_0x4922ac=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x572e38,_0x35029a)&&(_0x4922ac=!0x0),this['_handleFootnoteReferencesChanges'](_0x572e38,_0x35029a)&&(_0x4922ac=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x572e38)&&(_0x4922ac=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x572e38)&&(_0x4922ac=!0x0),this['_sortFootnoteDefinitions'](_0x572e38)&&(_0x4922ac=!0x0),_0x4922ac;}),this['listenTo'](_0x5e49b3['document'],'change:data',()=>{_0x5e49b3['enqueueChange']({'isUndoable':!0x1},_0x22768e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x22768e);});},{'priority':'low'}),this['listenTo'](_0x38d9e9,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x45fa07){return this['_footnotes']['find'](_0x2a2493=>_0x2a2493['id']===_0x45fa07)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2a3813){this['_footnoteFormatter']=_0x2a3813;}['_updateFootnotesCounters'](_0x396116,_0x58061b=0x0){let _0x368302=!0x1;for(let _0x111c3e=_0x58061b;_0x111c3e<this['_footnotes']['length'];_0x111c3e++)this['_updateFootnoteRefCounter'](_0x396116,_0x111c3e)&&(_0x368302=!0x0);return _0x368302;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3f1c68,_0xab85c8){const _0x4e7bf7=_0x3f1c68['createElement']('footnotesDefinitions',{});return _0x3f1c68['append'](_0x4e7bf7,_0xab85c8),this['_footnotesDefinitions']=_0x4e7bf7,_0x4e7bf7;}['_ensureFootnotesDefinitionsContainerExists'](_0x170e3f){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5542c1=this['_footnotes'][0x0]['reference']['root'],_0x1867cb=this['_insertEmptyFootnotesDefinitionsContainer'](_0x170e3f,_0x5542c1);for(const _0x14ffda of this['_footnotes'])_0x14ffda['definition']['parent']||_0x170e3f['insert'](_0x14ffda['definition'],_0x1867cb,'end');this['_updateFootnotesCounters'](_0x170e3f);}['_handleFootnotesDefinitionsObjectChanges'](_0xcf0329,_0x47172a){let _0x36e7a9=!0x1;const {inserted:_0x14b0e3,removed:_0x2ab945,moved:_0x51e895}=this['_footnoteDefsContainerTracker']['getChanges'](_0x47172a);if(_0x51e895['length']&&(this['_footnotesDefinitions']=_0x51e895[0x0]),_0x14b0e3['length']){if(_0x14b0e3['length']>0x1||this['_footnotesDefinitions']&&_0x14b0e3['some'](_0x4eab63=>_0x4eab63!==this['_footnotesDefinitions'])){const _0x462c2e=_0xcf0329['createElement']('footnotesDefinitions',{}),_0x12f8d7=[];this['_footnotesDefinitions']&&_0x12f8d7['push'](this['_footnotesDefinitions']),_0x12f8d7['push'](..._0x14b0e3),_0xcf0329['insert'](_0x462c2e,_0x12f8d7[0x0],'before');for(const _0x528cfd of _0x12f8d7)_0xcf0329['move'](_0xcf0329['createRangeIn'](_0x528cfd),_0xcf0329['createPositionAt'](_0x462c2e,'end')),_0xcf0329['remove'](_0x528cfd);this['_footnotesDefinitions']=_0x462c2e,this['_updateFootnotesCounters'](_0xcf0329),_0x36e7a9=!0x0;}else this['_footnotesDefinitions']=_0x14b0e3[0x0];}if(_0x2ab945['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x435d12 of this['_footnotes'])_0xcf0329['remove'](_0x435d12['reference']),_0x36e7a9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x36e7a9;}['_handleFootnoteDefinitionsChanges'](_0xaf947a,_0x306b73){let _0x1e1d1d=!0x1;const _0x288ebe=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x5d9ff7,moved:_0x5ba5d9}=this['_footnoteDefsTracker']['getChanges'](_0x306b73);for(const _0x12a4f9 of[..._0x5ba5d9,..._0x5d9ff7]){const _0x123f09=_0x12a4f9['getAttribute']('footnoteId'),_0x453fd=this['getFootnote'](_0x123f09);_0x453fd&&(_0x453fd['definition']=_0x12a4f9),_(_0xaf947a,_0x288ebe,_0x12a4f9)&&(_0x1e1d1d=!0x0);}return _0x1e1d1d;}['_handleFootnoteReferencesChanges'](_0x9f1066,_0x521af8){let _0x2eec2e=!0x1;const {removed:_0x6a8db,inserted:_0x5efbbc,moved:_0xf2881a}=this['_footnoteRefsTracker']['getChanges'](_0x521af8);for(const _0x452d13 of _0x6a8db)this['_handleRemoveFootnoteReferenceById'](_0x9f1066,_0x452d13)&&(_0x2eec2e=!0x0);for(const _0x233707 of _0x5efbbc)this['_handleInsertedFootnoteReference'](_0x9f1066,_0x233707)&&(_0x2eec2e=!0x0);for(const _0x2cc3d6 of _0xf2881a)this['_handleMovedFootnoteReference'](_0x9f1066,_0x2cc3d6)&&(_0x2eec2e=!0x0);return _0x2eec2e;}['_handleFootnotesDefinitionsObjectSync'](_0x7c9811){if(!this['_footnotesDefinitions'])return!0x1;let _0x196708=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x24537e=[];for(const _0x31f9ba of this['_footnotesDefinitions']['getChildren']()){const _0x93394d=_0x31f9ba['getAttribute']('footnoteId');this['getFootnote'](_0x93394d)||(_0x24537e['unshift'](_0x31f9ba),_0x196708=!0x0);}for(const _0x26ab29 of _0x24537e)_0x7c9811['remove'](_0x26ab29);}const _0x27d307=new Set(),_0xb87b0b=[];for(const _0x7c73f of this['_footnotesDefinitions']['getChildren']()){const _0x583a7f=_0x7c73f['getAttribute']('footnoteId');_0x27d307['has'](_0x583a7f)?(_0xb87b0b['unshift'](_0x7c73f),_0x196708=!0x0):_0x27d307['add'](_0x583a7f);}for(const _0x3b5d53 of _0xb87b0b)_0x7c9811['remove'](_0x3b5d53);return this['_footnotesDefinitions']['childCount']||(_0x7c9811['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x196708=!0x0),_0x196708;}['_handleInsertedFootnoteReference'](_0x4ec8b8,_0x1c0e75){if(this['_footnotes']['find'](_0x3e943e=>_0x3e943e['reference']===_0x1c0e75))return!0x1;let _0x136753=!0x1;const _0x335a6c=_0x1c0e75['getAttribute']('footnoteId'),_0x4fb1f7=this['_footnotes']['findIndex'](_0xed1b4a=>_0xed1b4a['id']===_0x335a6c);-0x1!==_0x4fb1f7&&(_0x4ec8b8['remove'](this['_footnotes'][_0x4fb1f7]['reference']),this['_footnotes']['splice'](_0x4fb1f7,0x1),_0x136753=!0x0);let _0x2d3a29=this['_footnotesDefinitions']?function(_0x2b4ecb,_0x46168f){for(const _0x2cf398 of _0x2b4ecb['getChildren']())if(_0x2cf398['getAttribute']('footnoteId')===_0x46168f)return _0x2cf398;return null;}(this['_footnotesDefinitions'],_0x335a6c):null;_0x2d3a29||(_0x2d3a29=_0x4ec8b8['createElement']('footnoteDefinition',{'footnoteId':_0x335a6c}),this['_footnotesDefinitions']&&(_0x4ec8b8['insert'](_0x2d3a29,this['_footnotesDefinitions'],'end'),_0x136753=!0x0));const _0x222ef6={'id':_0x335a6c,'reference':_0x1c0e75,'definition':_0x2d3a29},_0x45b96f=I(this['editor']['model'],this['_footnotes'],_0x1c0e75);this['_footnotes']['splice'](_0x45b96f,0x0,_0x222ef6);let _0x23dbff=_0x45b96f;return-0x1!==_0x4fb1f7&&(_0x23dbff=Math['min'](_0x45b96f,_0x4fb1f7)),this['_updateFootnotesCounters'](_0x4ec8b8,_0x23dbff)&&(_0x136753=!0x0),_0x136753;}['_handleRemoveFootnoteReferenceById'](_0x257cda,_0x81eaa8){const _0x4e07d1=this['_footnotes']['findIndex'](_0x5dd666=>_0x5dd666['id']===_0x81eaa8);if(-0x1===_0x4e07d1)return!0x1;let _0x2a60e4=!0x1;const _0x239f26=this['_footnotes'][_0x4e07d1];return'$graveyard'!==_0x239f26['definition']['root']['rootName']&&(_0x257cda['remove'](_0x239f26['definition']),_0x2a60e4=!0x0),this['_footnotes']['splice'](_0x4e07d1,0x1),this['_updateFootnotesCounters'](_0x257cda,_0x4e07d1)&&(_0x2a60e4=!0x0),_0x2a60e4;}['_handleMovedFootnoteReference'](_0x3ebca1,_0x422bfe){const _0x59cb4a=_0x422bfe['getAttribute']('footnoteId'),_0x128577=this['_footnotes']['findIndex'](_0x2253f7=>_0x2253f7['id']===_0x59cb4a),_0x2edf9d=this['_footnotes'][_0x128577];let _0x42551f=!0x1;_0x2edf9d['reference']=_0x422bfe,this['_footnotes']['splice'](_0x128577,0x1);const _0x4fb43e=I(this['editor']['model'],this['_footnotes'],_0x422bfe);return this['_footnotes']['splice'](_0x4fb43e,0x0,_0x2edf9d),this['_updateFootnotesCounters'](_0x3ebca1,Math['min'](_0x128577,_0x4fb43e))&&(_0x42551f=!0x0),_0x42551f;}['_updateFootnoteRefCounter'](_0x2703ed,_0x554f32){if(!this['_footnotesDefinitions'])return!0x1;const _0x1ae0d7=this['_footnotes'][_0x554f32];let _0x430bf0;return _0x430bf0=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1ae0d7,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x554f32+0x1}):String(_0x554f32+0x1),_0x1ae0d7['reference']['getAttribute']('footnoteCounter')!=_0x430bf0&&(_0x2703ed['setAttribute']('footnoteCounter',_0x430bf0,_0x1ae0d7['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x31f0c4){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x28fe19,_0x19274c){if(_0x28fe19['length']!==_0x19274c['length'])return!0x1;for(let _0x595e98=0x0;_0x595e98<_0x28fe19['length'];_0x595e98++)if(_0x28fe19[_0x595e98]!==_0x19274c[_0x595e98])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x638702=>_0x638702['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x47ae6d=>_0x47ae6d['getAttribute']('footnoteId'))))return!0x1;let _0x3740fd=!0x1;for(let _0x2da045=0x0;_0x2da045<this['_footnotes']['length'];_0x2da045++){const _0x545331=this['_footnotes'][_0x2da045],_0x2887a6=_0x31f0c4['createPositionBefore'](_0x545331['definition']),_0x1bb224=_0x31f0c4['createPositionAt'](this['_footnotesDefinitions'],_0x2da045);_0x2887a6['isEqual'](_0x1bb224)||(_0x31f0c4['move'](_0x31f0c4['createRangeOn'](_0x545331['definition']),_0x1bb224),_0x3740fd=!0x0);}return _0x3740fd;}['_ensureFootnotesReferencesHaveProperOrder'](_0x47e719){if(!this['_footnotes']['length'])return!0x1;const {model:_0xead7e1}=this['editor'];let _0x5e7a1b=!0x1;for(let _0xcb8c1d=0x0;_0xcb8c1d<this['_footnotes']['length']-0x1;_0xcb8c1d++){const _0x228065=this['_footnotes'][_0xcb8c1d],_0x1d04a5=this['_footnotes'][_0xcb8c1d+0x1],_0x40aaf8=_0xead7e1['createPositionBefore'](_0x228065['reference']),_0x2dff05=_0xead7e1['createPositionBefore'](_0x1d04a5['reference']);'after'===_0x40aaf8['compareWith'](_0x2dff05)&&(this['_handleMovedFootnoteReference'](_0x47e719,_0x228065['reference']),_0xcb8c1d=-0x1,_0x5e7a1b=!0x0);}return _0x5e7a1b;}}function _(_0x203133,_0x5c6a5a,_0x1f613a){if(_0x1f613a['childCount'])return!0x1;const _0x575652=_0x5c6a5a?'paragraph':'footnoteInlineContent';return _0x203133['insert'](_0x203133['createElement'](_0x575652),_0x1f613a),!0x0;}function I(_0x170056,_0xfe124e,_0x25072e){if(0x0===_0xfe124e['length'])return 0x0;const _0x5ea0d2=_0x170056['createPositionBefore'](_0x25072e);for(let _0x1d958b=0x0;_0x1d958b<_0xfe124e['length'];_0x1d958b++){const _0x502318=_0xfe124e[_0x1d958b],_0x45821e=_0x170056['createPositionBefore'](_0x502318['reference']);if('before'===_0x5ea0d2['compareWith'](_0x45821e))return _0x1d958b;}const _0x292062=_0x25072e['root'];let _0x3d2c6c=-0x1;for(let _0x28741e=_0xfe124e['length']-0x1;_0x28741e>=0x0;_0x28741e--)if(_0xfe124e[_0x28741e]['reference']['root']===_0x292062){_0x3d2c6c=_0x28741e;break;}if(-0x1!==_0x3d2c6c)return _0x3d2c6c+0x1;const _0x190d03=_0x170056['document']['getRootNames'](),_0x23d177=_0x190d03['indexOf'](_0x292062['rootName']),_0x494272=_0x190d03[_0x23d177+0x1];if(_0x494272){for(let _0x5ba83b=0x0;_0x5ba83b<_0xfe124e['length'];_0x5ba83b++)if(_0xfe124e[_0x5ba83b]['reference']['root']['rootName']===_0x494272)return _0x5ba83b;}return _0xfe124e['length'];}class m extends _0x15cec7{['refresh'](){const _0x2e0d9b=this['editor']['model']['document']['selection'],_0x42c207=this['_getPositionToInsertFootnote'](_0x2e0d9b);this['isEnabled']=!!_0x42c207;}['execute'](_0x3b6cac){const {editor:_0x252ce7}=this,{model:_0x2a44e8}=_0x252ce7,{selection:_0x458696}=_0x2a44e8['document'],_0x38271b=this['_getPositionToInsertFootnote'](_0x458696);if(!_0x38271b)return;const _0x3153ac=_0x252ce7['plugins']['get']('FootnotesEditing'),_0x2e003a=_0x3b6cac?.['footnoteId']??_0x5c7f66();!function(_0x5c35d0){return'string'==typeof _0x5c35d0&&_0x5c35d0['length']>0x0&&!/\s/['test'](_0x5c35d0)&&!/^\d/['test'](_0x5c35d0);}(_0x2e003a)?_0x4fe835('insert-footnote-command-executed-with-invalid-id'):(_0x2a44e8['change'](_0x13c9cb=>{const _0x163acb=_0x13c9cb['createElement']('footnoteRef',{'footnoteId':_0x2e003a});_0x2a44e8['insertObject'](_0x163acb,_0x38271b,null);}),_0x3153ac['_moveSelectionToFootnoteDefinition'](_0x2e003a));}['_getPositionToInsertFootnote'](_0x31e2e3){const {model:_0x4de082}=this['editor'],{schema:_0x19c116}=_0x4de082,_0x11d4fe=_0x31e2e3['getFirstRange']();for(const _0x4fb4c5 of _0x11d4fe['getItems']())if(_0x19c116['isBlock'](_0x4fb4c5)||_0x19c116['isObject'](_0x4fb4c5))return null;const _0x1a1bdb=_0x11d4fe['end'];return _0x19c116['checkChild'](_0x1a1bdb,'footnoteRef')?_0x1a1bdb:null;}}class r extends _0x5985a2{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x11aa0c}=this;_0x11aa0c['config']['define']('footnotes.multiBlock',!0x0),_0x11aa0c['commands']['add']('insertFootnote',new m(_0x11aa0c)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x121ea8){const _0x415b48=_0x3d1fda([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]),_0x16ba58=0x47a28506,_0x4836d6=0x47a5fe6e^_0x16ba58,_0x18a990=window[_0x3d1fda([0x44,0x61,0x74,0x65])][_0x3d1fda([0x6e,0x6f,0x77])](),_0x4cbc36=_0x121ea8[_0x3d1fda([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x443666=new window[(_0x3d1fda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2712d5=>{_0x4cbc36[_0x3d1fda([0x6f,0x6e,0x63,0x65])](_0x3d1fda([0x72,0x65,0x61,0x64,0x79]),_0x2712d5);}),_0x11544f={[_0x3d1fda([0x6b,0x74,0x79])]:_0x3d1fda([0x45,0x43]),[_0x3d1fda([0x75,0x73,0x65])]:_0x3d1fda([0x73,0x69,0x67]),[_0x3d1fda([0x63,0x72,0x76])]:_0x3d1fda([0x50,0x2d,0x32,0x35,0x36]),[_0x3d1fda([0x78])]:_0x3d1fda([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]),[_0x3d1fda([0x79])]:_0x3d1fda([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]),[_0x3d1fda([0x61,0x6c,0x67])]:_0x3d1fda([0x45,0x53,0x32,0x35,0x36])},_0x3095f4=_0x4cbc36[_0x3d1fda([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d1fda([0x67,0x65,0x74])](_0x3d1fda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3c4bd6(){let _0x322d80,_0x340ff0=null,_0x35e330=null;try{if(_0x3095f4==_0x3d1fda([0x47,0x50,0x4c]))return _0x3d1fda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x322d80=_0x4023a8(),!_0x322d80)return _0x3d1fda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x322d80[_0x3d1fda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35e330=_0x366748(_0x322d80[_0x3d1fda([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x322d80[_0x3d1fda([0x6a,0x74,0x69])])),await _0x3dd3cf()?_0x4afa8b()?_0x11d48c()?_0x3d1fda([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3d49db()?(_0x322d80[_0x3d1fda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d1fda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x340ff0=_0x12797c(_0x3d1fda([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x322d80[_0x3d1fda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d1fda([0x74,0x72,0x69,0x61,0x6c])&&(_0x340ff0=_0x12797c(_0x3d1fda([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x439b5f()):_0x3d1fda([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d1fda([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d1fda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d1fda([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11d48c(){const _0x11301d=[_0x3d1fda([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d1fda([0x74,0x72,0x69,0x61,0x6c])][_0x3d1fda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x322d80[_0x3d1fda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x18a990/0x3e8:0xe10*_0x4836d6;return _0x322d80[_0x3d1fda([0x65,0x78,0x70])]<_0x11301d;}function _0x4afa8b(){const _0x138cd6=_0x322d80[_0x3d1fda([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x138cd6&&(!!_0x138cd6[_0x3d1fda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1fda([0x2a]))||!!_0x138cd6[_0x3d1fda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1fda([0x46,0x4f,0x4f])));}function _0x3d49db(){const _0x49e721=_0x322d80[_0x3d1fda([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x49e721||0x0==_0x49e721[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x45a363}=new URL(window[_0x3d1fda([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x49e721[_0x3d1fda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x45a363))return!0x0;const _0x2e0db5=_0x45a363[_0x3d1fda([0x73,0x70,0x6c,0x69,0x74])](_0x3d1fda([0x2e]));return _0x49e721[_0x3d1fda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b484f=>_0x4b484f[_0x3d1fda([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d1fda([0x2a])))[_0x3d1fda([0x6d,0x61,0x70])](_0x100987=>_0x100987[_0x3d1fda([0x73,0x70,0x6c,0x69,0x74])](_0x3d1fda([0x2e])))[_0x3d1fda([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1e61bd=>_0x1e61bd[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2e0db5[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d1fda([0x6d,0x61,0x70])](_0x14bf27=>Array(_0x2e0db5[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x14bf27[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d1fda([0x66,0x69,0x6c,0x6c])](_0x14bf27[0x0]===_0x3d1fda([0x2a])?_0x3d1fda([0x2a]):'')[_0x3d1fda([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x14bf27))[_0x3d1fda([0x73,0x6f,0x6d,0x65])](_0x2cbc11=>_0x2e0db5[_0x3d1fda([0x65,0x76,0x65,0x72,0x79])]((_0x113300,_0x5b6ef3)=>_0x2cbc11[_0x5b6ef3]===_0x113300||_0x2cbc11[_0x5b6ef3]===_0x3d1fda([0x2a])));}function _0x439b5f(){return _0x340ff0&&_0x35e330?new window[(_0x3d1fda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x143771,_0x2b11c7)=>{_0x340ff0[_0x3d1fda([0x74,0x68,0x65,0x6e])](_0x143771,_0x2b11c7),_0x35e330[_0x3d1fda([0x74,0x68,0x65,0x6e])](_0x37c285=>{_0x37c285!=_0x3d1fda([0x56,0x61,0x6c,0x69,0x64])&&_0x143771(_0x37c285);},_0x2b11c7);}):_0x340ff0||_0x35e330||_0x3d1fda([0x56,0x61,0x6c,0x69,0x64]);}}function _0x366748(_0x50acff,_0x22e0ae){return new window[(_0x3d1fda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3361a5=>{if(_0x3878cd())return _0x3361a5(_0x3d1fda([0x56,0x61,0x6c,0x69,0x64]));_0x3d0c81(),_0x4cbc36[_0x3d1fda([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d1fda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x751758=!0x1;const _0x3f82a0=_0x5c7f66();function _0x189c8b(_0x382c6f){return!!_0x382c6f&&(typeof _0x382c6f===_0x3d1fda([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x382c6f===_0x3d1fda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x382c6f[_0x3d1fda([0x74,0x68,0x65,0x6e])]===_0x3d1fda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x382c6f[_0x3d1fda([0x63,0x61,0x74,0x63,0x68])]===_0x3d1fda([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3eb195(_0x1b802b){_0x5f2c55(_0x1b802b)[_0x3d1fda([0x74,0x68,0x65,0x6e])](_0x75622c=>{if(!_0x75622c||_0x75622c[_0x3d1fda([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d1fda([0x6f,0x6b]))return _0x3d1fda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x56aeba(_0x5a2105(_0x3f82a0+_0x22e0ae))!=_0x75622c[_0x3d1fda([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d1fda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d1fda([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d1fda([0x74,0x68,0x65,0x6e])](_0x3be0c7=>(_0x2ded50(),_0x3be0c7),()=>{const _0x55ca92=_0x34b738();return null==_0x55ca92?(_0x2ded50(),_0x3d1fda([0x56,0x61,0x6c,0x69,0x64])):_0x3d1fda(_0x18a990-_0x55ca92>(0x63ae0106^_0x16ba58)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d1fda([0x74,0x68,0x65,0x6e])](_0x3361a5)[_0x3d1fda([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3361a5(_0x3d1fda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4c02d4=0x47946b86^_0x16ba58;function _0x2ded50(){const _0x529bfc=_0x3d1fda([0x6c,0x6c,0x63,0x74,0x2d])+_0x56aeba(_0x5a2105(_0x50acff)),_0x5adc47=_0x5365d5(_0x56aeba(window[_0x3d1fda([0x4d,0x61,0x74,0x68])][_0x3d1fda([0x63,0x65,0x69,0x6c])](_0x18a990/_0x4c02d4)));window[_0x3d1fda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d1fda([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x529bfc,_0x5adc47);}function _0x34b738(){const _0xbb8194=_0x3d1fda([0x6c,0x6c,0x63,0x74,0x2d])+_0x56aeba(_0x5a2105(_0x50acff)),_0x277c90=window[_0x3d1fda([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d1fda([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xbb8194);return _0x277c90?window[_0x3d1fda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5365d5(_0x277c90),0x10)*_0x4c02d4:null;}function _0x5f2c55(_0x41711b){return new window[(_0x3d1fda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d7b92,_0x287d67)=>{_0x41711b[_0x3d1fda([0x74,0x68,0x65,0x6e])](_0x3d7b92,_0x287d67),window[_0x3d1fda([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x287d67,0x47a351c6^_0x16ba58);});}}_0x4cbc36[_0x3d1fda([0x6f,0x6e])](_0x3d1fda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x22986b,_0x308802)=>{if(_0x308802[0x0]!=_0x50acff)return _0x3361a5(_0x3d1fda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x308802[0x1]={..._0x308802[0x1],[_0x3d1fda([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3f82a0};},{[_0x3d1fda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d1fda([0x68,0x69,0x67,0x68])}),_0x4cbc36[_0x3d1fda([0x6f,0x6e])](_0x3d1fda([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x538595=>{_0x189c8b(_0x538595[_0x3d1fda([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x751758=!0x0,_0x3eb195(_0x538595[_0x3d1fda([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d1fda([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d1fda([0x6c,0x6f,0x77])}),_0x443666[_0x3d1fda([0x74,0x68,0x65,0x6e])](()=>{_0x751758||_0x3361a5(_0x3d1fda([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3878cd(){return _0x4cbc36[_0x3d1fda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d1fda([0x76,0x69,0x65,0x77])][_0x3d1fda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d1fda([0x61,0x75,0x74,0x6f]);}function _0x3d0c81(){_0x4cbc36[_0x3d1fda([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d1fda([0x76,0x69,0x65,0x77])][_0x3d1fda([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d1fda([0x61,0x75,0x74,0x6f]);}}function _0x12797c(_0x26101e){const _0xc4356f=[new window[(_0x3d1fda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x545e9b=>setTimeout(_0x545e9b,0x47abbbca^_0x16ba58)),_0x443666[_0x3d1fda([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d1fda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5496c8=>{let _0x3c614c=0x0;_0x4cbc36[_0x3d1fda([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d1fda([0x6f,0x6e])](_0x3d1fda([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x50f587,_0x463f4f)=>{_0x463f4f[0x0][_0x3d1fda([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c614c++,_0x3c614c==(0x47a284fe^_0x16ba58)&&(_0x5496c8(),_0x50f587[_0x3d1fda([0x6f,0x66,0x66])]());});}))];return window[_0x3d1fda([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d1fda([0x72,0x61,0x63,0x65])](_0xc4356f)[_0x3d1fda([0x74,0x68,0x65,0x6e])](()=>_0x26101e);}async function _0x30faf4(){await _0x443666,_0x4cbc36[_0x3d1fda([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d1fda([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x21040b,_0x4cbc36[_0x3d1fda([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d1fda([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x21040b,_0x4cbc36[_0x3d1fda([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d1fda([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x51b620(_0x53bb33){const _0x513734=_0x8a6ee8();_0x4cbc36[_0x513734]=_0x3d1fda([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x53bb33,_0x53bb33!=_0x3d1fda([0x56,0x61,0x6c,0x69,0x64])&&_0x30faf4();}function _0x8a6ee8(){const _0x65cb8e=window[_0x3d1fda([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d1fda([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d1fda([0x6e,0x6f,0x77])]())[_0x3d1fda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d1fda([0x2e]),'');let _0x12a47e=_0x3d1fda([0x75]);for(let _0x555d78=0x0;_0x555d78<_0x65cb8e[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x555d78+=0x2){let _0x46dff4=window[_0x3d1fda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x65cb8e[_0x3d1fda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x555d78,_0x555d78+0x2));_0x46dff4>=_0x415b48[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x46dff4-=_0x415b48[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x12a47e+=_0x415b48[_0x46dff4];}return _0x12a47e;}function _0x4023a8(){const _0x9549ef=_0x3095f4[_0x3d1fda([0x73,0x70,0x6c,0x69,0x74])](_0x3d1fda([0x2e]));if(0x3!=_0x9549ef[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4c6680(_0x9549ef[0x1]);function _0x4c6680(_0x54cd35){const _0x44b003=_0x2e18d4(_0x54cd35);return _0x44b003&&_0x39a493()?_0x44b003:null;function _0x39a493(){const _0x3653ad=_0x44b003[_0x3d1fda([0x6a,0x74,0x69])],_0x116afb=window[_0x3d1fda([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3653ad[_0x3d1fda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3653ad[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4b8d7f={..._0x44b003,[_0x3d1fda([0x6a,0x74,0x69])]:_0x3653ad[_0x3d1fda([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3653ad[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4b8d7f[_0x3d1fda([0x76,0x63])],_0x5a2105(_0x4b8d7f)==_0x116afb;}}}async function _0x3dd3cf(){let _0x39445e=!0x0;try{const _0x68b9f7=_0x3095f4[_0x3d1fda([0x73,0x70,0x6c,0x69,0x74])](_0x3d1fda([0x2e])),[_0x4769c7,_0x11b004,_0x35b804]=_0x68b9f7;return _0x18fb96(_0x4769c7),await _0x112490(_0x4769c7,_0x11b004,_0x35b804),_0x39445e;}catch{return!0x1;}function _0x18fb96(_0x2b3227){const _0x4e6bc8=_0x2e18d4(_0x2b3227);_0x4e6bc8&&_0x4e6bc8[_0x3d1fda([0x61,0x6c,0x67])]==_0x3d1fda([0x45,0x53,0x32,0x35,0x36])||(_0x39445e=!0x1);}async function _0x112490(_0x51ebe1,_0x114b12,_0x33b353){const _0x3283c4=window[_0x3d1fda([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d1fda([0x66,0x72,0x6f,0x6d])](_0x1f3164(_0x33b353),_0x4648eb=>_0x4648eb[_0x3d1fda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3fba53=new window[(_0x3d1fda([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d1fda([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x51ebe1+_0x3d1fda([0x2e])+_0x114b12),_0x4e8881=window[_0x3d1fda([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d1fda([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e8881)return;const _0x5c01e8=await _0x4e8881[_0x3d1fda([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d1fda([0x6a,0x77,0x6b]),_0x11544f,{[_0x3d1fda([0x6e,0x61,0x6d,0x65])]:_0x3d1fda([0x45,0x43,0x44,0x53,0x41]),[_0x3d1fda([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d1fda([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d1fda([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e8881[_0x3d1fda([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d1fda([0x6e,0x61,0x6d,0x65])]:_0x3d1fda([0x45,0x43,0x44,0x53,0x41]),[_0x3d1fda([0x68,0x61,0x73,0x68])]:{[_0x3d1fda([0x6e,0x61,0x6d,0x65])]:_0x3d1fda([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5c01e8,_0x3283c4,_0x3fba53)||(_0x39445e=!0x1);}}function _0x2e18d4(_0x1e9faf){return _0x1e9faf[_0x3d1fda([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d1fda([0x65,0x79]))?JSON[_0x3d1fda([0x70,0x61,0x72,0x73,0x65])](_0x1f3164(_0x1e9faf)):null;}function _0x1f3164(_0x4ecc53){return window[_0x3d1fda([0x61,0x74,0x6f,0x62])](_0x4ecc53[_0x3d1fda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d1fda([0x2b]))[_0x3d1fda([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d1fda([0x2f])));}function _0x5a2105(_0x192928){let _0x1eae4e=0x1505;function _0x4bfb3a(_0x324789){for(let _0x2233db=0x0;_0x2233db<_0x324789[_0x3d1fda([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2233db++){const _0x46e64b=_0x324789[_0x3d1fda([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2233db);_0x1eae4e=(_0x1eae4e<<0x5)+_0x1eae4e+_0x46e64b,_0x1eae4e&=_0x1eae4e;}}function _0x409129(_0x4416a2){Array[_0x3d1fda([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4416a2)?_0x4416a2[_0x3d1fda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x409129):_0x4416a2&&typeof _0x4416a2==_0x3d1fda([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d1fda([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4416a2)[_0x3d1fda([0x73,0x6f,0x72,0x74])]()[_0x3d1fda([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4032d6,_0x407fc])=>{_0x4bfb3a(_0x4032d6),_0x409129(_0x407fc);}):_0x4bfb3a(window[_0x3d1fda([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4416a2));}return _0x409129(_0x192928),_0x1eae4e>>>0x0;}function _0x56aeba(_0x3f1f2a){return _0x3f1f2a[_0x3d1fda([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d1fda([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d1fda([0x30]));}function _0x5365d5(_0x4198d6){return _0x4198d6[_0x3d1fda([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d1fda([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d1fda([0x6a,0x6f,0x69,0x6e])]('');}function _0x21040b(){}function _0x3d1fda(_0xa4bb88){return _0xa4bb88['map'](_0x37ce88=>String['fromCharCode'](_0x37ce88))['join']('');}_0x51b620(await _0x3c4bd6());}(this);}['_moveSelectionToFootnoteDefinition'](_0x480d60){const {plugins:_0x1bba06,editing:_0x15cc70,model:_0x55fa43}=this['editor'],_0x5763d0=_0x1bba06['get'](f)['getFootnote'](_0x480d60);return!!_0x5763d0&&(_0x55fa43['change'](_0x1d4ecd=>{_0x1d4ecd['setSelection'](_0x1d4ecd['createPositionAt'](_0x5763d0['definition'],'end'));}),_0x15cc70['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4135a1){const {plugins:_0x525cb5,editing:_0x3156ba,model:_0x35ad71}=this['editor'],_0x3a1ca0=_0x525cb5['get'](f)['getFootnote'](_0x4135a1);return!!_0x3a1ca0&&(_0x35ad71['change'](_0x33b2bb=>{_0x33b2bb['setSelection'](_0x3a1ca0['reference'],'on');}),_0x3156ba['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x29a3d2}=this['editor']['model'],_0x134a64=this['editor']['config']['get']('footnotes.multiBlock');_0x29a3d2['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x29a3d2['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x29a3d2['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x134a64?_0x29a3d2['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x29a3d2['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x29a3d2['addChildCheck'](_0x74e96f=>{for(const _0x457bdd of _0x74e96f)if('footnoteDefinition'===_0x457bdd['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x20c3e7}=this,{conversion:_0x5b6d37,editing:_0xd9b6b5}=_0x20c3e7,{t:t}=_0x20c3e7['locale'];_0x5b6d37['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1170d6,{writer:_0x56da48,consumable:_0xc23eee})=>{const _0x377a18=_0x1170d6['getChild'](0x0);if(!_0x377a18||!_0x377a18['is']('element','a'))return null;const _0x371eac=_0x377a18['getAttribute']('href')||'';if(!_0x371eac['startsWith']('#'))return null;const _0x5992dd=_0x371eac['replace'](/^#/,'');if(!_0x5992dd)return null;_0xc23eee['consume'](_0x377a18,{'name':!0x0,'attributes':['href']});for(const {item:_0x4b378a}of _0xd9b6b5['view']['createRangeIn'](_0x377a18))_0x4b378a['is']('$textProxy')?_0xc23eee['consume'](_0x4b378a['textNode'],{'name':!0x0}):_0x4b378a['is']('element')&&_0xc23eee['consume'](_0x4b378a,{'name':!0x0});return _0x56da48['createElement']('footnoteRef',{'footnoteId':_0x5992dd});}}),_0x5b6d37['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x491c1e,{writer:_0x4ada52})=>D(_0x491c1e,_0x4ada52)}),_0x5b6d37['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4c242a,{writer:_0x11e89f})=>{const _0x4f10cf=_0x4c242a['getAttribute']('footnoteCounter');return _0x30f74e(D(_0x4c242a,_0x11e89f),_0x11e89f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4f10cf)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1237a9}=this,{t:t}=_0x1237a9['locale'],{conversion:_0x4fa334}=_0x1237a9;_0x4fa334['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4fa334['for']('upcast')['add'](_0x58e664=>{_0x58e664['on']('element:ol',(_0x3a35b7,_0x2f1360,_0xd79ce9)=>{const _0x4a6c50=_0x2f1360['viewItem'];if(!_0x4a6c50['hasClass']('footnotes-list')||!_0x2f1360['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xd79ce9['consumable']['consume'](_0x4a6c50,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3eda2e,modelCursor:_0x35c9e9}=_0xd79ce9['convertChildren'](_0x2f1360['viewItem'],_0x2f1360['modelCursor']);_0x2f1360['modelRange']=_0x3eda2e,_0x2f1360['modelCursor']=_0x35c9e9;}),_0x58e664['on']('element:hr',(_0x46f8e9,_0x332a36,_0x224a13)=>{const _0x286286=_0x332a36['viewItem'];_0x286286['hasClass']('footnotes-divider')&&_0x332a36['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x224a13['consumable']['consume'](_0x286286,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4fa334['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x276061,{writer:_0x39e2bd})=>v(_0x39e2bd)}),_0x4fa334['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x33ecba,{writer:_0x49330b})=>{const _0x406de8=v(_0x49330b,{'data-footnotes-list-label':t('Footnotes')}),_0x556dd6=_0x30f74e(_0x406de8,_0x49330b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x49330b['setCustomProperty']('footnotesDefinitions',!0x0,_0x556dd6),_0x556dd6;}});}['_defineDefinitionConverters'](){const {editor:_0x56d515}=this,{conversion:_0x13e15a,locale:_0x264422}=_0x56d515,_0x43dcba=_0x56d515['config']['get']('footnotes.multiBlock');_0x13e15a['for']('upcast')['add'](_0x2ad2e5=>{_0x2ad2e5['on']('element:li',(_0x375ca4,_0xfdbe67,_0x55a779)=>{const _0x2ad67d=_0xfdbe67['viewItem'];if(!_0x2ad67d['hasClass']('footnote-definition')||!_0x2ad67d['getAttribute']('id'))return;const _0x10e763=_0x2ad67d['parent'];if(!_0x10e763['is']('element','ol')||!_0x10e763['hasClass']('footnotes-list'))return;if(!_0x55a779['consumable']['test'](_0x2ad67d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1c93d4=_0x55a779['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2ad67d['getAttribute']('id')});if(!_0x55a779['safeInsert'](_0x1c93d4,_0xfdbe67['modelCursor']))return;_0x55a779['consumable']['consume'](_0x2ad67d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x465273=Array['from'](_0x2ad67d['getChildren']())['find'](_0x46493f=>_0x46493f['is']('element')&&_0x46493f['hasClass']('footnote-content'));for(const _0x4d1ade of _0x2ad67d['getChildren']())_0x4d1ade['is']('element')&&(_0x55a779['consumable']['consume'](_0x4d1ade,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x55a779['consumable']['consume'](_0x4d1ade,{'name':!0x0,'classes':'footnote-content'}));if(_0x465273){if(_0x43dcba)_0x55a779['convertChildren'](_0x465273,_0x1c93d4);else{const _0x2dfb03=_0x55a779['writer']['createElement']('footnoteInlineContent');_0x55a779['writer']['insert'](_0x2dfb03,_0x1c93d4),_0x55a779['convertChildren'](_0x465273,_0x2dfb03);}}_0x55a779['updateConversionResult'](_0x1c93d4,_0xfdbe67);});}),_0x13e15a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x20e405,{writer:_0x111b29})=>b(_0x20e405,_0x111b29,_0x264422,{'dataPipeline':!0x0})}),_0x13e15a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3064d5,{writer:_0x1e0661})=>b(_0x3064d5,_0x1e0661,_0x264422)});}['_defineBogusParagraphConverters'](){const {editor:_0x20b360}=this,{conversion:_0x297dde}=_0x20b360;_0x20b360['config']['get']('footnotes.multiBlock')?(_0x297dde['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x297dde['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x20b360['model']['document'],'change:data',()=>{!function(_0x5d10d7,_0x3255eb){const _0x429347=_0x5d10d7['document']['differ'],_0x3bee63=new Set();for(const _0x4d0fb4 of _0x429347['getChanges']()){const _0x24ad09='attribute'==_0x4d0fb4['type']?_0x4d0fb4['range']['start']['parent']:_0x4d0fb4['position']['parent'];_0x24ad09['is']('element','footnoteDefinition')&&_0x3bee63['add'](_0x24ad09);}for(const _0x249de0 of _0x3bee63['values']()){const _0x1cf415=Array['from'](_0x249de0['getChildren']())['filter'](_0x3124b9=>g(_0x3124b9,_0x3255eb['mapper']));for(const _0x4ab70e of _0x1cf415)_0x3255eb['reconvertItem'](_0x4ab70e);}}(_0x20b360['model'],_0x20b360['editing']);})):(_0x297dde['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x297dde['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3001ee,{writer:_0x44dce3})=>{const _0x3f56a3=_0x44dce3['createContainerElement']('span');return _0x44dce3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3f56a3),_0x3f56a3;}}));}['_defineKeyboardHandlers'](){const {editor:_0x30e738}=this,{editing:_0x3aa819,t:t}=_0x30e738,_0x38feb1=_0x30e738['model']['document']['selection'];_0x30e738['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x30e738['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3aa819['view']['document'],'enter',(_0x5383da,_0x4397d0)=>{const _0x37038d=function(_0x1e408b){const _0x55a017=_0x1e408b['getSelectedElement']();if(_0x55a017?.['is']('element','footnoteRef'))return _0x55a017;return null;}(_0x38feb1);if(_0x37038d){const _0x346df1=_0x37038d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x346df1),_0x4397d0['preventDefault'](),_0x5383da['stop']();}},{'context':_0x1cd7d3});}['_defineClickHandlers'](){const {editor:_0x2ecd0a}=this,{editing:_0x2f3285}=_0x2ecd0a;_0x2ecd0a['editing']['view']['addObserver'](_0x3f2772),_0x2ecd0a['editing']['view']['addObserver'](_0x4a6265);let _0x25e148=!0x1;this['listenTo'](_0x2f3285['view']['document'],'pointerdown',(_0x31861f,_0x51079a)=>{const {target:_0x4d69fe}=_0x51079a,_0x3bc07e=_0x2f3285['view']['document']['selection'];_0x25e148=!!(_0x4d69fe?.['is']('element','a')&&_0x4d69fe['parent']?.['is']('element','sup')&&_0x4d69fe['parent']['hasClass']('footnote'))&&_0x3bc07e['getSelectedElement']()===_0x4d69fe['parent'];},{'priority':'high'}),this['listenTo'](_0x2f3285['view']['document'],'click',(_0x5eb998,_0x43c982)=>{const {target:_0x137614}=_0x43c982;if(!_0x137614?.['is']('element','a'))return;if(_0x137614['parent']?.['is']('element','sup')&&_0x137614['parent']['hasClass']('footnote')&&!_0x25e148)return void _0x43c982['preventDefault']();let _0x4fe201=_0x137614['getAttribute']('href');if(!_0x4fe201?.['startsWith']('#'))return;_0x4fe201=_0x4fe201['slice'](0x1);let _0x411e03=!0x1;(_0x4fe201['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4fe201['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4fe201))&&(_0x411e03=!0x0),_0x411e03&&(_0x43c982['preventDefault'](),_0x5eb998['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x165ae6}={}){return(_0x235467,{writer:_0x39d05b})=>{if(!p(_0x235467))return null;if(!_0x165ae6)return _0x39d05b['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x43f77e=_0x39d05b['createContainerElement']('p');return _0x39d05b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x43f77e),_0x43f77e;};}function p(_0x75b8fb){const {parent:_0x4766bc}=_0x75b8fb;if(!_0x4766bc?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4766bc['childCount'])return!0x1;for(const _0x6776bb of _0x75b8fb['getAttributeKeys']())if(!_0x6776bb['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x6776bb)return!0x1;return!0x0;}function g(_0x1334ee,_0x561171){if(!_0x1334ee['is']('element','paragraph'))return!0x1;const _0x595f66=_0x561171['toViewElement'](_0x1334ee);return!!_0x595f66&&p(_0x1334ee)!==_0x595f66['is']('element','span');}function J(_0x490d98){return _0x1cd7d3(_0x490d98)&&_0x490d98['is']('containerElement')&&!!_0x490d98['getCustomProperty']('footnotesDefinitions');}function v(_0x2bb081,_0xc6e009={}){const _0x4ed185=_0x2bb081['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2f2d3e=_0x2bb081['createContainerElement']('ol',{'class':'footnotes-list'},_0x2bb081['createSlot']());return _0x2bb081['createContainerElement']('div',{'class':'footnotes',..._0xc6e009},[_0x4ed185,_0x2f2d3e]);}function D(_0x286c68,_0x3713d7){const _0x30d0bc=_0x286c68['getAttribute']('footnoteId'),_0x3ab7be=_0x286c68['getAttribute']('footnoteCounter'),_0x5b1995=_0x3713d7['createUIElement']('a',{'href':'#'+_0x30d0bc},function(_0x5c1c35){const _0x3dbe7d=this['toDomElement'](_0x5c1c35);return _0x3dbe7d['textContent']=_0x3ab7be,_0x3dbe7d;}),_0x5debdf=_0x3713d7['createContainerElement']('sup',{'id':'ref-'+_0x30d0bc,'class':'footnote'},[_0x5b1995]);return _0x5debdf['getFillerOffset']=()=>null,_0x5debdf;}function b(_0x508e13,_0x3d4f42,_0x5554a2,{dataPipeline:_0x531c7b}={}){const {t:t}=_0x5554a2,_0x5a195c=_0x508e13['getAttribute']('footnoteId'),_0x59d59b=_0x3d4f42['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5a195c},function(_0x4ab98c){const _0x35688d=this['toDomElement'](_0x4ab98c);return _0x35688d['innerText']='^',_0x35688d;}),_0x507c1f=_0x531c7b?_0x3d4f42['createContainerElement']('div',{'class':'footnote-content'}):_0x2d796d(_0x3d4f42['createEditableElement']('div',{'class':'footnote-content'}),_0x3d4f42,{'label':t('Footnote\x20content.')});return _0x3d4f42['insert'](_0x3d4f42['createPositionAt'](_0x507c1f,0x0),_0x3d4f42['createSlot']()),_0x3d4f42['createContainerElement']('li',{'class':'footnote-definition','id':_0x5a195c},[_0x59d59b,_0x507c1f]);}class e extends _0x5985a2{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x35d075];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x37a941}=this,{plugins:_0x4f6eea,model:_0x18322b}=_0x37a941,_0x5558d3=_0x4f6eea['get'](_0x35d075),_0x25b363=_0x4f6eea['get'](f);this['listenTo'](_0x5558d3,'outputTransformation',(_0x1a7050,_0x565ab1)=>{const _0x32cb43=c(_0x18322b['createRangeIn'](_0x565ab1['content']));if(!_0x32cb43['length'])return;const _0x5457ee=_0x25b363['getFootnotes'](),_0x4801c1=_0x32cb43['reduce']((_0x384e91,_0x443cec)=>{const _0x5f02f9=_0x5457ee['find'](_0x49bff1=>_0x49bff1['id']===_0x443cec);if(_0x5f02f9){const _0xd5e148=_0x37a941['data']['toView'](_0x5f02f9['definition'],{'isClipboardPipeline':!0x0}),_0xce254f=_0x37a941['data']['htmlProcessor']['toData'](_0xd5e148);_0x384e91[_0x5f02f9['id']]=_0xce254f;}return _0x384e91;},Object['create'](null));_0x565ab1['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4801c1));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1b75b4}=this,{model:_0x22b81c,plugins:_0x36e692}=_0x1b75b4,{view:_0xd81c4f}=_0x1b75b4['editing'],_0x44e9d6=_0x36e692['get'](_0x35d075),_0x58ef7f=_0x36e692['get'](f),_0x37423d=_0x1b75b4['config']['get']('footnotes.multiBlock');let _0x522d8a=null;this['listenTo'](_0xd81c4f['document'],'clipboardInput',(_0x300267,_0x3345a2)=>{const _0x53e2ca=_0x3345a2['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x522d8a=_0x53e2ca?JSON['parse'](_0x53e2ca):null;}),this['listenTo'](_0x44e9d6,'contentInsertion',(_0x5e8c8f,_0x2003f8)=>{const _0x22b6a0=_0x2003f8['sourceEditorId']===this['editor']['id'];_0x22b6a0&&'drop'===_0x2003f8['method']||_0x22b81c['change'](_0x3cc5c4=>{let _0xd466f5=_0x58ef7f['getFootnotesDefinitionsObjectElement']();const _0x3023bc=!!_0xd466f5&&Array['from'](_0x22b81c['document']['selection']['getSelectedBlocks']())['includes'](_0xd466f5);if((_0xd466f5&&!_0x3023bc||!_0xd466f5&&!_0x522d8a)&&function(_0xa201f7,_0x47ea84){const _0x38b627=[];for(const {item:_0x708852}of _0xa201f7['createRangeIn'](_0x47ea84))_0x708852['is']('element','footnotesDefinitions')&&_0x38b627['push'](_0x708852);for(const _0x20eb37 of _0x38b627)_0xa201f7['remove'](_0x20eb37);}(_0x3cc5c4,_0x2003f8['content']),!_0x522d8a)return;const {selection:_0x3cb368}=_0x22b81c['document'],_0x5d509d=_0x3cb368['getFirstRange']()['root'];_0xd466f5&&!_0x3023bc||(_0xd466f5=function(_0x2e91b3,_0x140daf){for(const {item:_0x127858}of _0x2e91b3['createRangeIn'](_0x140daf))if(_0x127858['is']('element','footnotesDefinitions'))return _0x127858;return null;}(_0x3cc5c4,_0x2003f8['content']),_0xd466f5||=_0x58ef7f['_insertEmptyFootnotesDefinitionsContainer'](_0x3cc5c4,_0x5d509d));const _0x1c9f86=Array['from'](_0x3cb368['getRanges']())['flatMap'](c),_0x8c4463=function(_0x24add7,_0x51d810,_0x3c2e9a){const _0x344f09=Object['create'](null);for(const {item:_0x270052}of _0x24add7['createRangeIn'](_0x51d810))if(_0x270052['is']('element','footnoteRef')){const _0x47344a=_0x270052['getAttribute']('footnoteId');if(!_0x3c2e9a(_0x47344a))continue;_0x344f09[_0x47344a]||(_0x344f09[_0x47344a]=_0x5c7f66()),_0x24add7['setAttribute']('footnoteId',_0x344f09[_0x47344a],_0x270052);}return _0x344f09;}(_0x3cc5c4,_0x2003f8['content'],_0x42c147=>{if(!_0x22b6a0)return!0x0;return!!_0x58ef7f['getFootnote'](_0x42c147)&&!_0x1c9f86['includes'](_0x42c147);});for(const [_0x215d89,_0x232cd2]of Object['entries'](_0x522d8a)){const _0xf2247d=_0x8c4463[_0x215d89]||_0x215d89,_0x35e2ee=_0x3cc5c4['createElement']('footnoteDefinition',{'footnoteId':_0xf2247d}),_0x6055c8=_0x1b75b4['data']['htmlProcessor']['toView'](_0x232cd2);let _0x5d19cc;if(_0x37423d)_0x5d19cc=_0x1b75b4['data']['toModel'](_0x6055c8,_0x35e2ee);else{_0x5d19cc=_0x3cc5c4['createElement']('footnoteInlineContent');const _0x57b4c6=_0x1b75b4['data']['toModel'](_0x6055c8,_0x5d19cc);_0x3cc5c4['insert'](_0x57b4c6,_0x5d19cc);}_0x3cc5c4['append'](_0x5d19cc,_0x35e2ee),_0x3cc5c4['insert'](_0x35e2ee,_0xd466f5,'end');}_0x522d8a=null;});});}}function c(_0x1e81e9){const _0x1d5ada=new Set();for(const {item:_0x191d9d}of _0x1e81e9)_0x191d9d['is']('element','footnoteRef')&&_0x1d5ada['add'](_0x191d9d['getAttribute']('footnoteId'));return Array['from'](_0x1d5ada);}class i extends _0x5985a2{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x57a7c4}=this,{componentFactory:_0x225da8}=_0x57a7c4['ui'];_0x225da8['add']('insertFootnote',x(_0x57a7c4,_0x4f6490)),_0x225da8['add']('menuBar:insertFootnote',x(_0x57a7c4,_0x468774)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x43349d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xbec159;for(const _0x409e40 in _0x43349d){const _0x6ffb=_0x409e40,_0x420313=_0x43349d[_0x6ffb];if('footnotesLicenseKeyValid'==_0x420313||'footnotesLicenseKeyInvalid'==_0x420313||'footnotesLicenseKeyExpired'==_0x420313||'footnotesLicenseKeyDomainLimit'==_0x420313||'footnotesLicenseKeyNotAllowed'==_0x420313||'footnotesLicenseKeyEvaluationLimit'==_0x420313||'footnotesLicenseKeyTrialLimit'==_0x420313||'footnotesLicenseKeyUsageLimit'==_0x420313){delete _0x43349d[_0x6ffb],_0xbec159=_0x420313,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xbec159&&_0x43349d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xbec159&&_0x43349d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xbec159&&_0x43349d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xbec159&&_0x43349d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xbec159&&_0x43349d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xbec159&&_0x43349d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xbec159&&_0x43349d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x3a7600,_0x361f63){const _0x107e4c=_0x3a7600['commands']['get']('insertFootnote');return _0x3c84cc=>{const {t:t}=_0x3c84cc,_0x13283e=new _0x361f63(_0x3c84cc),_0x5a5f9c=_0x13283e instanceof _0x468774;return _0x13283e['bind']('isEnabled')['to'](_0x107e4c,'isEnabled'),_0x13283e['set']({'label':t(_0x5a5f9c?'Footnote':'Insert\x20footnote'),'icon':_0x38b8c7,'tooltip':!0x0}),_0x13283e['on']('execute',()=>{_0x107e4c['execute'](),_0x3a7600['editing']['view']['focus']();}),_0x13283e;};}class lt extends _0x5985a2{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x15cec7{['refresh'](){const {editor:_0x559519}=this,_0x572b4b=_0x559519['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x572b4b,this['value']=_0x572b4b?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5f46ec}){const {editor:_0x156ceb}=this,_0x18ecf4=_0x156ceb['plugins']['get'](f),_0x4af912=_0x18ecf4['getFootnotesDefinitionsObjectElement']();_0x4af912&&Q['includes'](_0x5f46ec)&&_0x156ceb['model']['change'](_0x12751d=>{_0x12751d['setAttribute']('footnotesListStyle',_0x5f46ec,_0x4af912),_0x18ecf4['_updateFootnotesCounters'](_0x12751d);});}}class C extends _0x15cec7{['refresh'](){const {editor:_0x4d00c1}=this,_0x44c69a=_0x4d00c1['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x44c69a,this['value']=_0x44c69a?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x47f76d}){const {editor:_0x114f15}=this,_0x590696=_0x114f15['plugins']['get'](f),_0x229335=_0x590696['getFootnotesDefinitionsObjectElement']();_0x229335&&Number['isInteger'](_0x47f76d)&&_0x114f15['model']['change'](_0x30abc8=>{_0x30abc8['setAttribute']('footnotesListStart',_0x47f76d,_0x229335),_0x590696['_updateFootnotesCounters'](_0x30abc8);});}}class P extends _0x5985a2{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x54bfa8}=this;_0x54bfa8['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x54bfa8['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x54bfa8['commands']['add']('footnotesStyle',new S(_0x54bfa8)),_0x54bfa8['commands']['add']('footnotesStart',new C(_0x54bfa8)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x29837a}=this,{schema:_0x3ff756}=_0x29837a['model'];_0x3ff756['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x297067}=this,{conversion:_0x1cbd63,model:_0x1d80c8}=_0x297067,{schema:_0x2bd09a}=_0x1d80c8;_0x1cbd63['for']('upcast')['add'](_0x1f029e=>{_0x1f029e['on']('element:ol',(_0x5abe63,_0x530216,_0x53f7bd)=>{const _0x1aa14a=_0x530216['viewItem'],_0x3aa78e=_0x530216['modelCursor']?.['parent'];_0x1aa14a['hasClass']('footnotes-list')&&_0x3aa78e?.['is']('element','footnotesDefinitions')&&(function(_0x27be4f,_0x34bbc2,_0x4384c0,_0x1d8998){if(!_0x1d8998['checkAttribute'](_0x34bbc2,'footnotesListStart'))return;let _0x5f5080=0x1;const _0x4a7459=_0x4384c0['consumable']['consume'](_0x27be4f,{'attributes':'start'});if(_0x4a7459){const _0x1ecfb4=Number['parseInt'](_0x27be4f['getAttribute']('start'),0xa);Number['isNaN'](_0x1ecfb4)||(_0x5f5080=_0x1ecfb4);}!_0x4a7459&&_0x34bbc2['hasAttribute']('footnotesListStart')||_0x4384c0['writer']['setAttribute']('footnotesListStart',_0x5f5080,_0x34bbc2);}(_0x1aa14a,_0x3aa78e,_0x53f7bd,_0x2bd09a),function(_0x220bde,_0x5e3cbc,_0x4da690,_0x235627){if(!_0x235627['checkAttribute'](_0x5e3cbc,'footnotesListStyle'))return;let _0x515ddc='decimal',_0x4ae55e=!0x1;if(_0x4da690['consumable']['consume'](_0x220bde,{'attributes':'type'})){const _0x786967={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x220bde['getAttribute']('type')];_0x786967&&(_0x515ddc=_0x786967),_0x4ae55e=!0x0;}_0x4da690['consumable']['consume'](_0x220bde,{'styles':'list-style-type'})&&(_0x515ddc=function(_0x1b5b1a){switch(_0x1b5b1a){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x1b5b1a;}}(_0x220bde['getStyle']('list-style-type')),_0x4ae55e=!0x0),!_0x4ae55e&&_0x5e3cbc['hasAttribute']('footnotesListStyle')||_0x4da690['writer']['setAttribute']('footnotesListStyle',_0x515ddc,_0x5e3cbc);}(_0x1aa14a,_0x3aa78e,_0x53f7bd,_0x2bd09a));});}),_0x1cbd63['for']('downcast')['add'](_0x442033=>{_0x442033['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xf3622c,_0x60f2a,_0x3eef89)=>{if(!_0x3eef89['consumable']['consume'](_0x60f2a['item'],_0xf3622c['name']))return;const _0x21539d=M(_0x60f2a['item'],_0x3eef89['mapper']),{attributeNewValue:_0x18d4e8}=_0x60f2a;null==_0x18d4e8||0x1===_0x18d4e8?_0x3eef89['writer']['removeAttribute']('start',_0x21539d):_0x3eef89['writer']['setAttribute']('start',String(_0x18d4e8),_0x21539d);}),_0x442033['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x287e7f,_0x316764,_0x1cacbc)=>{if(!_0x1cacbc['consumable']['consume'](_0x316764['item'],_0x287e7f['name']))return;const _0x46a6f4=M(_0x316764['item'],_0x1cacbc['mapper']),{attributeNewValue:_0x575f95}=_0x316764;_0x575f95&&'decimal'!==_0x575f95?_0x1cacbc['writer']['setStyle']('list-style-type',_0x575f95,_0x46a6f4):_0x1cacbc['writer']['removeStyle']('list-style-type',_0x46a6f4);});});}['_definePostfixer'](){const {editor:_0xf4090a}=this,{model:_0x10b9e7}=_0xf4090a,_0x5eeb8f=_0xf4090a['plugins']['get'](f),_0x520594=this['_getDefaultListStyle'](),_0x5f57c8=this['_getDefaultStartIndex']();_0x10b9e7['document']['registerPostFixer'](_0x59ddad=>{const _0x1099e7=_0x10b9e7['document']['differ']['getChanges']();let _0x4b1f4a=!0x1;for(const _0x5f457a of _0x1099e7){if('insert'!==_0x5f457a['type']||'$text'===_0x5f457a['name'])continue;const _0x551b6b=_0x10b9e7['createRangeOn'](_0x5f457a['position']['nodeAfter']);for(const _0x852e87 of _0x551b6b['getItems']())_0x852e87['is']('element','footnotesDefinitions')&&(!_0x852e87['hasAttribute']('footnotesListStart')&&_0x10b9e7['schema']['checkAttribute'](_0x852e87,'footnotesListStart')&&(_0x59ddad['setAttribute']('footnotesListStart',_0x5f57c8,_0x852e87),_0x4b1f4a=!0x0),!_0x852e87['hasAttribute']('footnotesListStyle')&&_0x10b9e7['schema']['checkAttribute'](_0x852e87,'footnotesListStyle')&&(_0x59ddad['setAttribute']('footnotesListStyle',_0x520594,_0x852e87),_0x4b1f4a=!0x0));}return _0x4b1f4a&&_0x5eeb8f['_updateFootnotesCounters'](_0x59ddad),_0x4b1f4a;});}['_defineFormatter'](){const {editor:_0x4aa6f1}=this;_0x4aa6f1['plugins']['get'](f)['setFootnoteFormatter'](_0xa5a29f=>this['_formatFootnoteListValue'](_0xa5a29f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x51d3a0,value:_0x4a3d25,digits:_0x13b5aa}){const _0x3089bc=_0x51d3a0['getAttribute']('footnotesListStyle'),_0x37dc90=_0x51d3a0['getAttribute']('footnotesListStart'),_0x3abd43=Math['floor'](_0x4a3d25)+(_0x37dc90??0x1)-0x1;switch(_0x3089bc){case'decimal-leading-zero':return function(_0x42ffdf,_0x56d067){return String(_0x42ffdf)['padStart'](_0x56d067,'0');}(_0x3abd43,Math['max'](0x2,_0x13b5aa));case'lower-alpha':case'lower-latin':return N(_0x3abd43,!0x1);case'upper-alpha':case'upper-latin':return N(_0x3abd43,!0x0);case'lower-roman':return X(_0x3abd43,!0x1);case'upper-roman':return X(_0x3abd43,!0x0);default:return String(_0x3abd43);}}}function M(_0x1c0635,_0x2f9720){const _0x26b913=_0x2f9720['toViewElement'](_0x1c0635);return Array['from'](_0x26b913['getChildren']())['find'](_0xd013c5=>_0xd013c5['is']('element','ol')&&_0xd013c5['hasClass']('footnotes-list'));}function N(_0x259ea2,_0x4493df){let _0x3b44eb='',_0x38a529=_0x259ea2;for(;_0x38a529>0x0;){const _0x114155=(_0x38a529-0x1)%0x1a;_0x3b44eb=String['fromCharCode'](0x61+_0x114155)+_0x3b44eb,_0x38a529=Math['floor']((_0x38a529-0x1)/0x1a);}return _0x4493df?_0x3b44eb['toUpperCase']():_0x3b44eb;}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(_0x331eb3,_0xfe514d){let _0x1da340='',_0x3fed80=_0x331eb3;for(const {value:_0x5eb5be,numeral:_0x53007a}of V)for(;_0x3fed80>=_0x5eb5be;)_0x1da340+=_0x53007a,_0x3fed80-=_0x5eb5be;return _0xfe514d?_0x1da340:_0x1da340['toLowerCase']();}class H extends _0x32c29f{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x648ea9();['focusCycler'];constructor(_0x45d274,{styleButtonViews:_0x5e7f33,styleGridAriaLabel:_0x29ec7a}){super(_0x45d274),(this['focusCycler']=new _0x39868e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5e7f33,_0x29ec7a),[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 _0x307d26 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x307d26['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['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 _0x5b7243=_0x183b80=>_0x183b80['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5b7243),this['keystrokes']['set']('arrowleft',_0x5b7243),this['keystrokes']['set']('arrowup',_0x5b7243),this['keystrokes']['set']('arrowdown',_0x5b7243);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x359466,_0x29a210){const _0xf57941=new _0x32c29f(this['locale']);return _0xf57941['children']=_0xf57941['createCollection'](),_0xf57941['children']['addMany'](_0x359466),_0xf57941['setTemplate']({'tag':'div','attributes':{'aria-label':_0x29a210,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xf57941['children']}),_0xf57941['children']['delegate']('execute')['to'](this),_0xf57941['focus']=function(){for(const _0x4b2ba2 of this['children'])if(_0x4b2ba2 instanceof _0x4f6490&&_0x4b2ba2['isOn'])return void _0x4b2ba2['focus']();this['children']['first']['focus']();},_0xf57941['focusTracker']=new ot(),_0xf57941['keystrokes']=new rt(),_0xf57941['render'](),_0xf57941['keystrokes']['listenTo'](_0xf57941['element']),this['children']['add'](_0xf57941),_0xf57941;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x187632=this['_createStartIndexPropertyView'](),_0x34b827=[_0x187632],_0x12e81e=new st(this['locale'],_0x34b827);return _0x12e81e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x12e81e['buttonView']['bind']('isEnabled')['toMany'](_0x34b827,'isEnabled',(..._0x41ca9e)=>_0x41ca9e['some'](_0x833450=>_0x833450)),_0x12e81e['buttonView']['on']('change:isEnabled',(_0x494415,_0x4647a6,_0x56905c)=>{_0x56905c||(_0x12e81e['isCollapsed']=!0x0);}),this['children']['add'](_0x12e81e),[_0x187632,_0x12e81e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5709ca=new it(this['locale'],et);return _0x5709ca['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5709ca['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5709ca['fieldView']['on']('input',()=>{const _0x3053b3=_0x5709ca['fieldView']['element'],_0x46b6a0=_0x3053b3['valueAsNumber'];Number['isNaN'](_0x46b6a0)?_0x5709ca['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3053b3['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x46b6a0}):_0x5709ca['errorText']=t(_0x46b6a0<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5709ca;}}class j extends _0x5985a2{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x396f68,_0x9a9916];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x34a1a9}=this,{componentFactory:_0x5d3057}=_0x34a1a9['ui'];_0x34a1a9['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5d3057['add']('footnotesStyle',function(_0x3db0ec){return _0x4f0386=>{const {t:t}=_0x4f0386,_0x5e53f3=_0x3db0ec['commands']['get']('footnotesStyle'),_0x5f5598=_0x5d04e6(_0x4f0386),{buttonView:_0x17fc9a}=_0x5f5598;return _0x5f5598['class']='ck-footnotes-styles-dropdown',_0x5f5598['bind']('isEnabled')['to'](_0x5e53f3,'isEnabled'),_0x17fc9a['set']({'label':t('Footnotes\x20style'),'icon':_0x38b8c7,'tooltip':!0x0}),_0x5f5598['once']('change:isOpen',()=>{const _0x26eb50=function({editor:_0xf09a08,dropdownView:_0x357bc7}){const {t:t}=_0xf09a08['locale'],_0x1e87d3=t('Footnotes\x20definitions\x20styles'),_0x22add6=function(_0x249d86){const t=_0x249d86['locale']['t'],_0x40fe92=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2b7398},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x748e83},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x38abb4},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x362c7c},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5c6353},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x20a6d2}];return _0x40fe92['map'](function(_0x43a47d){const _0x56e0ae=_0x43a47d['locale'];return({label:_0x12c525,icon:_0xc4bbc7,tooltip:_0x5559fb,style:_0x2a5ce9})=>{const _0x4da56d=_0x43a47d['commands']['get']('footnotesStyle'),_0x2031ce=new _0x4f6490(_0x56e0ae);return _0x2031ce['set']({'label':_0x12c525,'icon':_0xc4bbc7,'tooltip':_0x5559fb}),_0x2031ce['bind']('isOn')['to'](_0x4da56d,'value',_0x395301=>_0x395301===_0x2a5ce9),_0x2031ce['bind']('isEnabled')['to'](_0x4da56d,'isEnabled'),_0x2031ce['on']('execute',()=>{_0x43a47d['execute']('footnotesStyle',{'value':_0x2a5ce9}),_0x43a47d['editing']['view']['focus']();}),_0x2031ce;};}(_0x249d86));}(_0xf09a08),_0x3992f4=new H(_0xf09a08['locale'],{'styleGridAriaLabel':_0x1e87d3,'styleButtonViews':_0x22add6}),_0x2fcac2=_0xf09a08['commands']['get']('footnotesStart');return _0x3992f4['startIndexFieldView']['bind']('isEnabled')['to'](_0x2fcac2),_0x3992f4['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2fcac2),_0x3992f4['on']('footnotesListStart',(_0x384d04,_0x1eb983)=>{_0xf09a08['execute']('footnotesStart',{'value':_0x1eb983['startIndex']});}),_0x3992f4['delegate']('execute')['to'](_0x357bc7),_0x3992f4;}({'editor':_0x3db0ec,'dropdownView':_0x5f5598});_0x5f5598['panelView']['children']['add'](_0x26eb50);}),_0x5f5598;};}(_0x34a1a9));}['afterInit'](){const {editor:_0x344edf}=this,{t:t}=_0x344edf['locale'],_0x2161fd=_0x344edf['plugins']['get'](_0x9a9916),{defaultPositions:_0x3a4936}=_0x4ef4d1;_0x2161fd['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x344edf['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x250f57=>{let _0x496fc0=_0x250f57['getFirstPosition']()?.['parent'];return _0x496fc0?.['is']('$text')&&(_0x496fc0=_0x496fc0['parent']),_0x496fc0?.['is']('element')?_0x496fc0['findAncestor'](J):null;},'positions':[_0x3a4936['southArrowNorth'],_0x3a4936['southArrowNorthMiddleWest'],_0x3a4936['southArrowNorthMiddleEast'],_0x3a4936['southArrowNorthWest'],_0x3a4936['southArrowNorthEast'],_0x3a4936['northArrowSouth'],_0x3a4936['northArrowSouthMiddleWest'],_0x3a4936['northArrowSouthMiddleEast'],_0x3a4936['northArrowSouthWest'],_0x3a4936['northArrowSouthEast'],_0x3a4936['viewportStickyNorth']]});}}class ft extends _0x5985a2{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,m as InsertFootnoteCommand};
23
+ import{Plugin as _0x2cc155,Command as _0x42b54c}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x488c20,isWidget as _0x33488a,toWidgetEditable as _0x31eb07,WidgetToolbarRepository as _0x273f2f}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x2b2c74,logWarning as _0x3693c9,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x47f5d3,ClickObserver as _0xd76d2d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5c2bac}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x472169,ButtonView as _0x45dd1b,View as _0x3e1bc0,ViewCollection as _0x4c6099,FocusCycler as _0x696146,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x4bb75a,BalloonPanelView as _0x130642,createDropdown as _0x1edc82}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x13c972,IconListStyleDecimal as _0x2c7db0,IconListStyleDecimalLeadingZero as _0x1c769f,IconListStyleLowerRoman as _0x2c17aa,IconListStyleUpperRoman as _0x56ec67,IconListStyleLowerLatin as _0x1ccead,IconListStyleUpperLatin as _0x5294a2}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x341c44,_0x4b367c){this['_model']=_0x341c44,this['_elementName']=_0x4b367c['elementName'],this['_getElementKey']=_0x4b367c['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2cc88c){const _0x22e977=new Set(),_0x3c381b=new Map();for(const _0x362b7e of _0x2cc88c){if('insert'===_0x362b7e['type']&&'$text'!==_0x362b7e['name']&&_0x362b7e['position']['nodeAfter']){const _0x3168be=this['_model']['createRangeOn'](_0x362b7e['position']['nodeAfter']);for(const _0x3b7051 of _0x3168be['getItems']()){if(!_0x3b7051['is']('element',this['_elementName']))continue;const _0x3e3cc4=this['_getElementKey'](_0x3b7051);_0x3c381b['has'](_0x3e3cc4)||_0x3c381b['set'](_0x3e3cc4,[]),_0x3c381b['get'](_0x3e3cc4)['push'](_0x3b7051);}}if('remove'===_0x362b7e['type']&&_0x362b7e['name']===this['_elementName']){const _0x45b195=this['_getElementKey']({'getAttribute':_0x140ad2=>_0x362b7e['attributes']['get'](_0x140ad2)});_0x22e977['add'](_0x45b195);}}for(const [_0x503f80,_0x54e133]of this['_trackedElements'])'$graveyard'===_0x54e133['root']['rootName']&&_0x22e977['add'](_0x503f80);for(const _0x1f0d2f of _0x22e977)this['_trackedElements']['delete'](_0x1f0d2f);for(const [_0x1af614,_0x383a33]of _0x3c381b)this['_trackedElements']['set'](_0x1af614,_0x383a33[_0x383a33['length']-0x1]);const _0x289a93=new Set();for(const [_0xd0ec28,_0x2f1ea6]of _0x3c381b)_0x22e977['has'](_0xd0ec28)&&(_0x289a93['add'](_0x2f1ea6[0x0]),_0x2f1ea6['length']>0x1?_0x3c381b['set'](_0xd0ec28,_0x2f1ea6['slice'](0x1)):_0x3c381b['delete'](_0xd0ec28),_0x22e977['delete'](_0xd0ec28));return{'removed':Array['from'](_0x22e977),'inserted':Array['from'](_0x3c381b['values']())['flat'](),'moved':Array['from'](_0x289a93)};}}class f extends _0x2cc155{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x40f5ec){super(_0x40f5ec),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3e9a82=>_0x3e9a82['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x573d88=>_0x573d88['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5e82c5}=this,{model:_0x2486d1,data:_0x1d5d8c}=_0x5e82c5;_0x2486d1['document']['registerPostFixer'](_0x56f74b=>{const _0x20afee=_0x2486d1['document']['differ']['getChanges']();let _0x4d2f1c=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x56f74b,_0x20afee)&&(_0x4d2f1c=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x56f74b,_0x20afee)&&(_0x4d2f1c=!0x0),this['_handleFootnoteReferencesChanges'](_0x56f74b,_0x20afee)&&(_0x4d2f1c=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x56f74b)&&(_0x4d2f1c=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x56f74b)&&(_0x4d2f1c=!0x0),this['_sortFootnoteDefinitions'](_0x56f74b)&&(_0x4d2f1c=!0x0),_0x4d2f1c;}),this['listenTo'](_0x2486d1['document'],'change:data',()=>{_0x2486d1['enqueueChange']({'isUndoable':!0x1},_0x51973e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x51973e);});},{'priority':'low'}),this['listenTo'](_0x1d5d8c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x37db0b){return this['_footnotes']['find'](_0x2ce7ee=>_0x2ce7ee['id']===_0x37db0b)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x97c41b){this['_footnoteFormatter']=_0x97c41b;}['_updateFootnotesCounters'](_0x163057,_0x4fcbbc=0x0){let _0x403d9f=!0x1;for(let _0x28db4b=_0x4fcbbc;_0x28db4b<this['_footnotes']['length'];_0x28db4b++)this['_updateFootnoteRefCounter'](_0x163057,_0x28db4b)&&(_0x403d9f=!0x0);return _0x403d9f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x57934f,_0x193248){const _0x4c9b10=_0x57934f['createElement']('footnotesDefinitions',{});return _0x57934f['append'](_0x4c9b10,_0x193248),this['_footnotesDefinitions']=_0x4c9b10,_0x4c9b10;}['_ensureFootnotesDefinitionsContainerExists'](_0x5c47a8){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x49552f=this['_footnotes'][0x0]['reference']['root'],_0x56d55c=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5c47a8,_0x49552f);for(const _0x29a792 of this['_footnotes'])_0x29a792['definition']['parent']||_0x5c47a8['insert'](_0x29a792['definition'],_0x56d55c,'end');this['_updateFootnotesCounters'](_0x5c47a8);}['_handleFootnotesDefinitionsObjectChanges'](_0x1150ad,_0x9b16){let _0x5e1e53=!0x1;const {inserted:_0x150e95,removed:_0x5a90f1,moved:_0x45a452}=this['_footnoteDefsContainerTracker']['getChanges'](_0x9b16);if(_0x45a452['length']&&(this['_footnotesDefinitions']=_0x45a452[0x0]),_0x150e95['length']){if(_0x150e95['length']>0x1||this['_footnotesDefinitions']&&_0x150e95['some'](_0x537135=>_0x537135!==this['_footnotesDefinitions'])){const _0x26d886=_0x1150ad['createElement']('footnotesDefinitions',{}),_0x205897=[];this['_footnotesDefinitions']&&_0x205897['push'](this['_footnotesDefinitions']),_0x205897['push'](..._0x150e95),_0x1150ad['insert'](_0x26d886,_0x205897[0x0],'before');for(const _0x45feee of _0x205897)_0x1150ad['move'](_0x1150ad['createRangeIn'](_0x45feee),_0x1150ad['createPositionAt'](_0x26d886,'end')),_0x1150ad['remove'](_0x45feee);this['_footnotesDefinitions']=_0x26d886,this['_updateFootnotesCounters'](_0x1150ad),_0x5e1e53=!0x0;}else this['_footnotesDefinitions']=_0x150e95[0x0];}if(_0x5a90f1['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1a8487 of this['_footnotes'])_0x1150ad['remove'](_0x1a8487['reference']),_0x5e1e53=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5e1e53;}['_handleFootnoteDefinitionsChanges'](_0x40873e,_0x59c58b){let _0x4f6e89=!0x1;const _0xed0a52=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x380c24,moved:_0x9f69e3}=this['_footnoteDefsTracker']['getChanges'](_0x59c58b);for(const _0x26b94e of[..._0x9f69e3,..._0x380c24]){const _0x2745cf=_0x26b94e['getAttribute']('footnoteId'),_0xa12ff9=this['getFootnote'](_0x2745cf);_0xa12ff9&&(_0xa12ff9['definition']=_0x26b94e),_(_0x40873e,_0xed0a52,_0x26b94e)&&(_0x4f6e89=!0x0);}return _0x4f6e89;}['_handleFootnoteReferencesChanges'](_0x14eb1e,_0x2757bf){let _0x38b141=!0x1;const {removed:_0x46a855,inserted:_0x294143,moved:_0x19b5e7}=this['_footnoteRefsTracker']['getChanges'](_0x2757bf);for(const _0x1b4992 of _0x46a855)this['_handleRemoveFootnoteReferenceById'](_0x14eb1e,_0x1b4992)&&(_0x38b141=!0x0);for(const _0x20b478 of _0x294143)this['_handleInsertedFootnoteReference'](_0x14eb1e,_0x20b478)&&(_0x38b141=!0x0);for(const _0x5da38a of _0x19b5e7)this['_handleMovedFootnoteReference'](_0x14eb1e,_0x5da38a)&&(_0x38b141=!0x0);return _0x38b141;}['_handleFootnotesDefinitionsObjectSync'](_0x3dae9c){if(!this['_footnotesDefinitions'])return!0x1;let _0x4a683c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3aa453=[];for(const _0x303eb9 of this['_footnotesDefinitions']['getChildren']()){const _0x32e187=_0x303eb9['getAttribute']('footnoteId');this['getFootnote'](_0x32e187)||(_0x3aa453['unshift'](_0x303eb9),_0x4a683c=!0x0);}for(const _0x523141 of _0x3aa453)_0x3dae9c['remove'](_0x523141);}const _0x3ae574=new Set(),_0x4be6d8=[];for(const _0x2e32f6 of this['_footnotesDefinitions']['getChildren']()){const _0x31ade8=_0x2e32f6['getAttribute']('footnoteId');_0x3ae574['has'](_0x31ade8)?(_0x4be6d8['unshift'](_0x2e32f6),_0x4a683c=!0x0):_0x3ae574['add'](_0x31ade8);}for(const _0x157738 of _0x4be6d8)_0x3dae9c['remove'](_0x157738);return this['_footnotesDefinitions']['childCount']||(_0x3dae9c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4a683c=!0x0),_0x4a683c;}['_handleInsertedFootnoteReference'](_0x2accba,_0x237939){if(this['_footnotes']['find'](_0x5b89ad=>_0x5b89ad['reference']===_0x237939))return!0x1;let _0x3bceff=!0x1;const _0x1723aa=_0x237939['getAttribute']('footnoteId'),_0x15d094=this['_footnotes']['findIndex'](_0x75edee=>_0x75edee['id']===_0x1723aa);-0x1!==_0x15d094&&(_0x2accba['remove'](this['_footnotes'][_0x15d094]['reference']),this['_footnotes']['splice'](_0x15d094,0x1),_0x3bceff=!0x0);let _0x1c5d81=this['_footnotesDefinitions']?function(_0x52197c,_0x515e7d){for(const _0x3e52f9 of _0x52197c['getChildren']())if(_0x3e52f9['getAttribute']('footnoteId')===_0x515e7d)return _0x3e52f9;return null;}(this['_footnotesDefinitions'],_0x1723aa):null;_0x1c5d81||(_0x1c5d81=_0x2accba['createElement']('footnoteDefinition',{'footnoteId':_0x1723aa}),this['_footnotesDefinitions']&&(_0x2accba['insert'](_0x1c5d81,this['_footnotesDefinitions'],'end'),_0x3bceff=!0x0));const _0x2dcb8c={'id':_0x1723aa,'reference':_0x237939,'definition':_0x1c5d81},_0x57ff55=I(this['editor']['model'],this['_footnotes'],_0x237939);this['_footnotes']['splice'](_0x57ff55,0x0,_0x2dcb8c);let _0x23bd87=_0x57ff55;return-0x1!==_0x15d094&&(_0x23bd87=Math['min'](_0x57ff55,_0x15d094)),this['_updateFootnotesCounters'](_0x2accba,_0x23bd87)&&(_0x3bceff=!0x0),_0x3bceff;}['_handleRemoveFootnoteReferenceById'](_0x1c46bc,_0x3949ac){const _0x38f0c9=this['_footnotes']['findIndex'](_0x51e1b2=>_0x51e1b2['id']===_0x3949ac);if(-0x1===_0x38f0c9)return!0x1;let _0x34723e=!0x1;const _0xb78442=this['_footnotes'][_0x38f0c9];return'$graveyard'!==_0xb78442['definition']['root']['rootName']&&(_0x1c46bc['remove'](_0xb78442['definition']),_0x34723e=!0x0),this['_footnotes']['splice'](_0x38f0c9,0x1),this['_updateFootnotesCounters'](_0x1c46bc,_0x38f0c9)&&(_0x34723e=!0x0),_0x34723e;}['_handleMovedFootnoteReference'](_0x5e7e78,_0x1a9e61){const _0x44cfeb=_0x1a9e61['getAttribute']('footnoteId'),_0x15e6e9=this['_footnotes']['findIndex'](_0x1fcdee=>_0x1fcdee['id']===_0x44cfeb),_0x4da021=this['_footnotes'][_0x15e6e9];let _0x166247=!0x1;_0x4da021['reference']=_0x1a9e61,this['_footnotes']['splice'](_0x15e6e9,0x1);const _0x449334=I(this['editor']['model'],this['_footnotes'],_0x1a9e61);return this['_footnotes']['splice'](_0x449334,0x0,_0x4da021),this['_updateFootnotesCounters'](_0x5e7e78,Math['min'](_0x15e6e9,_0x449334))&&(_0x166247=!0x0),_0x166247;}['_updateFootnoteRefCounter'](_0x12f404,_0xf875cd){if(!this['_footnotesDefinitions'])return!0x1;const _0x40cbab=this['_footnotes'][_0xf875cd];let _0x1c3a1d;return _0x1c3a1d=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x40cbab,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xf875cd+0x1}):String(_0xf875cd+0x1),_0x40cbab['reference']['getAttribute']('footnoteCounter')!=_0x1c3a1d&&(_0x12f404['setAttribute']('footnoteCounter',_0x1c3a1d,_0x40cbab['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3f564e){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3d9219,_0x42b97d){if(_0x3d9219['length']!==_0x42b97d['length'])return!0x1;for(let _0x552035=0x0;_0x552035<_0x3d9219['length'];_0x552035++)if(_0x3d9219[_0x552035]!==_0x42b97d[_0x552035])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x33eaaf=>_0x33eaaf['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x582a8f=>_0x582a8f['getAttribute']('footnoteId'))))return!0x1;let _0xf02b41=!0x1;for(let _0x20567a=0x0;_0x20567a<this['_footnotes']['length'];_0x20567a++){const _0x5d9a04=this['_footnotes'][_0x20567a],_0x156ac3=_0x3f564e['createPositionBefore'](_0x5d9a04['definition']),_0x502016=_0x3f564e['createPositionAt'](this['_footnotesDefinitions'],_0x20567a);_0x156ac3['isEqual'](_0x502016)||(_0x3f564e['move'](_0x3f564e['createRangeOn'](_0x5d9a04['definition']),_0x502016),_0xf02b41=!0x0);}return _0xf02b41;}['_ensureFootnotesReferencesHaveProperOrder'](_0x4b2dd4){if(!this['_footnotes']['length'])return!0x1;const {model:_0x55b3fe}=this['editor'];let _0x14ebd8=!0x1;for(let _0x45f9e8=0x0;_0x45f9e8<this['_footnotes']['length']-0x1;_0x45f9e8++){const _0x31efaa=this['_footnotes'][_0x45f9e8],_0x27c003=this['_footnotes'][_0x45f9e8+0x1],_0x87c397=_0x55b3fe['createPositionBefore'](_0x31efaa['reference']),_0x45d01e=_0x55b3fe['createPositionBefore'](_0x27c003['reference']);'after'===_0x87c397['compareWith'](_0x45d01e)&&(this['_handleMovedFootnoteReference'](_0x4b2dd4,_0x31efaa['reference']),_0x45f9e8=-0x1,_0x14ebd8=!0x0);}return _0x14ebd8;}}function _(_0x1b4c18,_0x5e1d0b,_0x5dac7d){if(_0x5dac7d['childCount'])return!0x1;const _0x5ad2b9=_0x5e1d0b?'paragraph':'footnoteInlineContent';return _0x1b4c18['insert'](_0x1b4c18['createElement'](_0x5ad2b9),_0x5dac7d),!0x0;}function I(_0x2a55e9,_0x565d2a,_0x2f7353){if(0x0===_0x565d2a['length'])return 0x0;const _0xb62412=_0x2a55e9['createPositionBefore'](_0x2f7353);for(let _0xca7b94=0x0;_0xca7b94<_0x565d2a['length'];_0xca7b94++){const _0x235869=_0x565d2a[_0xca7b94],_0x1c4382=_0x2a55e9['createPositionBefore'](_0x235869['reference']);if('before'===_0xb62412['compareWith'](_0x1c4382))return _0xca7b94;}const _0x3ac59c=_0x2f7353['root'];let _0xfd1635=-0x1;for(let _0xbc3fbb=_0x565d2a['length']-0x1;_0xbc3fbb>=0x0;_0xbc3fbb--)if(_0x565d2a[_0xbc3fbb]['reference']['root']===_0x3ac59c){_0xfd1635=_0xbc3fbb;break;}if(-0x1!==_0xfd1635)return _0xfd1635+0x1;const _0x38f253=_0x2a55e9['document']['getRootNames'](),_0xc77083=_0x38f253['indexOf'](_0x3ac59c['rootName']),_0x3174b2=_0x38f253[_0xc77083+0x1];if(_0x3174b2){for(let _0x259981=0x0;_0x259981<_0x565d2a['length'];_0x259981++)if(_0x565d2a[_0x259981]['reference']['root']['rootName']===_0x3174b2)return _0x259981;}return _0x565d2a['length'];}class m extends _0x42b54c{['refresh'](){const _0x40fe1f=this['editor']['model']['document']['selection'],_0x39542c=this['_getPositionToInsertFootnote'](_0x40fe1f);this['isEnabled']=!!_0x39542c;}['execute'](_0x3b0f29){const {editor:_0x3eb74e}=this,{model:_0x2082b0}=_0x3eb74e,{selection:_0x4737ad}=_0x2082b0['document'],_0x197aac=this['_getPositionToInsertFootnote'](_0x4737ad);if(!_0x197aac)return;const _0x31763e=_0x3eb74e['plugins']['get']('FootnotesEditing'),_0x38c5d5=_0x3b0f29?.['footnoteId']??_0x2b2c74();!function(_0x19c92c){return'string'==typeof _0x19c92c&&_0x19c92c['length']>0x0&&!/\s/['test'](_0x19c92c)&&!/^\d/['test'](_0x19c92c);}(_0x38c5d5)?_0x3693c9('insert-footnote-command-executed-with-invalid-id'):(_0x2082b0['change'](_0x2fac3d=>{const _0x4d84b7=_0x2fac3d['createElement']('footnoteRef',{'footnoteId':_0x38c5d5});_0x2082b0['insertObject'](_0x4d84b7,_0x197aac,null);}),_0x31763e['_moveSelectionToFootnoteDefinition'](_0x38c5d5));}['_getPositionToInsertFootnote'](_0x5408bc){const {model:_0x45fa24}=this['editor'],{schema:_0x2f10ff}=_0x45fa24,_0x56da9a=_0x5408bc['getFirstRange']();for(const _0x1f3e09 of _0x56da9a['getItems']())if(_0x2f10ff['isBlock'](_0x1f3e09)||_0x2f10ff['isObject'](_0x1f3e09))return null;const _0x3c58db=_0x56da9a['end'];return _0x2f10ff['checkChild'](_0x3c58db,'footnoteRef')?_0x3c58db:null;}}class r extends _0x2cc155{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5dcc84}=this;_0x5dcc84['config']['define']('footnotes.multiBlock',!0x0),_0x5dcc84['commands']['add']('insertFootnote',new m(_0x5dcc84)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2bf315){const _0x3f8d50=_0x551cb5([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]),_0x128a74=0x47a28506,_0x2d0431=0x47a5fe86^_0x128a74,_0x1f9193=window[_0x551cb5([0x44,0x61,0x74,0x65])][_0x551cb5([0x6e,0x6f,0x77])](),_0x153926=_0x2bf315[_0x551cb5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b0170=new window[(_0x551cb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2aa8c0=>{_0x153926[_0x551cb5([0x6f,0x6e,0x63,0x65])](_0x551cb5([0x72,0x65,0x61,0x64,0x79]),_0x2aa8c0);}),_0x3bc9e7={[_0x551cb5([0x6b,0x74,0x79])]:_0x551cb5([0x45,0x43]),[_0x551cb5([0x75,0x73,0x65])]:_0x551cb5([0x73,0x69,0x67]),[_0x551cb5([0x63,0x72,0x76])]:_0x551cb5([0x50,0x2d,0x32,0x35,0x36]),[_0x551cb5([0x78])]:_0x551cb5([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]),[_0x551cb5([0x79])]:_0x551cb5([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]),[_0x551cb5([0x61,0x6c,0x67])]:_0x551cb5([0x45,0x53,0x32,0x35,0x36])},_0x56f5c0=_0x153926[_0x551cb5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x551cb5([0x67,0x65,0x74])](_0x551cb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x39f16c(){let _0x168b4a,_0x560692=null,_0x52bbed=null;try{if(_0x56f5c0==_0x551cb5([0x47,0x50,0x4c]))return _0x551cb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x168b4a=_0xc7bf73(),!_0x168b4a)return _0x551cb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x168b4a[_0x551cb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x52bbed=_0x56bfae(_0x168b4a[_0x551cb5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x168b4a[_0x551cb5([0x6a,0x74,0x69])])),await _0x3def79()?_0x4a1acb()?_0x188f13()?_0x551cb5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x21916d()?(_0x168b4a[_0x551cb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x551cb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x560692=_0x5f2b73(_0x551cb5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x168b4a[_0x551cb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x551cb5([0x74,0x72,0x69,0x61,0x6c])&&(_0x560692=_0x5f2b73(_0x551cb5([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x415a5a()):_0x551cb5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x551cb5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x551cb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x551cb5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x188f13(){const _0x406ff7=[_0x551cb5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x551cb5([0x74,0x72,0x69,0x61,0x6c])][_0x551cb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x168b4a[_0x551cb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1f9193/0x3e8:0xe10*_0x2d0431;return _0x168b4a[_0x551cb5([0x65,0x78,0x70])]<_0x406ff7;}function _0x4a1acb(){const _0x192316=_0x168b4a[_0x551cb5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x192316&&(!!_0x192316[_0x551cb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x551cb5([0x2a]))||!!_0x192316[_0x551cb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x551cb5([0x46,0x4f,0x4f])));}function _0x21916d(){const _0x18d87f=_0x168b4a[_0x551cb5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x18d87f||0x0==_0x18d87f[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3d4e52}=new URL(window[_0x551cb5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x18d87f[_0x551cb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d4e52))return!0x0;const _0x65a002=_0x3d4e52[_0x551cb5([0x73,0x70,0x6c,0x69,0x74])](_0x551cb5([0x2e]));return _0x18d87f[_0x551cb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x483981=>_0x483981[_0x551cb5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x551cb5([0x2a])))[_0x551cb5([0x6d,0x61,0x70])](_0x156649=>_0x156649[_0x551cb5([0x73,0x70,0x6c,0x69,0x74])](_0x551cb5([0x2e])))[_0x551cb5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x523c80=>_0x523c80[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x65a002[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x551cb5([0x6d,0x61,0x70])](_0x13d700=>Array(_0x65a002[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13d700[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x551cb5([0x66,0x69,0x6c,0x6c])](_0x13d700[0x0]===_0x551cb5([0x2a])?_0x551cb5([0x2a]):'')[_0x551cb5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13d700))[_0x551cb5([0x73,0x6f,0x6d,0x65])](_0x3d8d4a=>_0x65a002[_0x551cb5([0x65,0x76,0x65,0x72,0x79])]((_0x449f97,_0xc3b016)=>_0x3d8d4a[_0xc3b016]===_0x449f97||_0x3d8d4a[_0xc3b016]===_0x551cb5([0x2a])));}function _0x415a5a(){return _0x560692&&_0x52bbed?new window[(_0x551cb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2b735f,_0x3ea5ae)=>{_0x560692[_0x551cb5([0x74,0x68,0x65,0x6e])](_0x2b735f,_0x3ea5ae),_0x52bbed[_0x551cb5([0x74,0x68,0x65,0x6e])](_0x2e0a0b=>{_0x2e0a0b!=_0x551cb5([0x56,0x61,0x6c,0x69,0x64])&&_0x2b735f(_0x2e0a0b);},_0x3ea5ae);}):_0x560692||_0x52bbed||_0x551cb5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x56bfae(_0x56d3c6,_0x53e5df){return new window[(_0x551cb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5159d7=>{if(_0x2b2511())return _0x5159d7(_0x551cb5([0x56,0x61,0x6c,0x69,0x64]));_0x52966f(),_0x153926[_0x551cb5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x551cb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x414417=!0x1;const _0x468c6b=_0x2b2c74();function _0xdc2c3a(_0x55c231){return!!_0x55c231&&(typeof _0x55c231===_0x551cb5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x55c231===_0x551cb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x55c231[_0x551cb5([0x74,0x68,0x65,0x6e])]===_0x551cb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x55c231[_0x551cb5([0x63,0x61,0x74,0x63,0x68])]===_0x551cb5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x559b7c(_0x729d06){_0x185515(_0x729d06)[_0x551cb5([0x74,0x68,0x65,0x6e])](_0x22488e=>{if(!_0x22488e||_0x22488e[_0x551cb5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x551cb5([0x6f,0x6b]))return _0x551cb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x452320(_0x374886(_0x468c6b+_0x53e5df))!=_0x22488e[_0x551cb5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x551cb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x551cb5([0x56,0x61,0x6c,0x69,0x64]);})[_0x551cb5([0x74,0x68,0x65,0x6e])](_0x3de753=>(_0x5cb253(),_0x3de753),()=>{const _0x3cf765=_0x46f152();return null==_0x3cf765?(_0x5cb253(),_0x551cb5([0x56,0x61,0x6c,0x69,0x64])):_0x551cb5(_0x1f9193-_0x3cf765>(0x63ae0106^_0x128a74)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x551cb5([0x74,0x68,0x65,0x6e])](_0x5159d7)[_0x551cb5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5159d7(_0x551cb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1b2ebc=0x47946b86^_0x128a74;function _0x5cb253(){const _0x5a89be=_0x551cb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x452320(_0x374886(_0x56d3c6)),_0x2f486b=_0x584d1c(_0x452320(window[_0x551cb5([0x4d,0x61,0x74,0x68])][_0x551cb5([0x63,0x65,0x69,0x6c])](_0x1f9193/_0x1b2ebc)));window[_0x551cb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x551cb5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a89be,_0x2f486b);}function _0x46f152(){const _0x3d3800=_0x551cb5([0x6c,0x6c,0x63,0x74,0x2d])+_0x452320(_0x374886(_0x56d3c6)),_0x45128a=window[_0x551cb5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x551cb5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3d3800);return _0x45128a?window[_0x551cb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x584d1c(_0x45128a),0x10)*_0x1b2ebc:null;}function _0x185515(_0x2eec42){return new window[(_0x551cb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x56a285,_0x582e44)=>{_0x2eec42[_0x551cb5([0x74,0x68,0x65,0x6e])](_0x56a285,_0x582e44),window[_0x551cb5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x582e44,0x47a351c6^_0x128a74);});}}_0x153926[_0x551cb5([0x6f,0x6e])](_0x551cb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5a1dee,_0x2c5990)=>{if(_0x2c5990[0x0]!=_0x56d3c6)return _0x5159d7(_0x551cb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2c5990[0x1]={..._0x2c5990[0x1],[_0x551cb5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x468c6b};},{[_0x551cb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x551cb5([0x68,0x69,0x67,0x68])}),_0x153926[_0x551cb5([0x6f,0x6e])](_0x551cb5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x791793=>{_0xdc2c3a(_0x791793[_0x551cb5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x414417=!0x0,_0x559b7c(_0x791793[_0x551cb5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x551cb5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x551cb5([0x6c,0x6f,0x77])}),_0x2b0170[_0x551cb5([0x74,0x68,0x65,0x6e])](()=>{_0x414417||_0x5159d7(_0x551cb5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2b2511(){return _0x153926[_0x551cb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x551cb5([0x76,0x69,0x65,0x77])][_0x551cb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x551cb5([0x61,0x75,0x74,0x6f]);}function _0x52966f(){_0x153926[_0x551cb5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x551cb5([0x76,0x69,0x65,0x77])][_0x551cb5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x551cb5([0x61,0x75,0x74,0x6f]);}}function _0x5f2b73(_0x3c9a9c){const _0x47713b=[new window[(_0x551cb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x37cba5=>setTimeout(_0x37cba5,0x47abbbca^_0x128a74)),_0x2b0170[_0x551cb5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x551cb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x272ea9=>{let _0x3714b1=0x0;_0x153926[_0x551cb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x551cb5([0x6f,0x6e])](_0x551cb5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x33695f,_0x3c039b)=>{_0x3c039b[0x0][_0x551cb5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3714b1++,_0x3714b1==(0x47a284fe^_0x128a74)&&(_0x272ea9(),_0x33695f[_0x551cb5([0x6f,0x66,0x66])]());});}))];return window[_0x551cb5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x551cb5([0x72,0x61,0x63,0x65])](_0x47713b)[_0x551cb5([0x74,0x68,0x65,0x6e])](()=>_0x3c9a9c);}async function _0x17cb41(){await _0x2b0170,_0x153926[_0x551cb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x551cb5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x58f068,_0x153926[_0x551cb5([0x6d,0x6f,0x64,0x65,0x6c])][_0x551cb5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x58f068,_0x153926[_0x551cb5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x551cb5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x267766(_0x502698){const _0x412173=_0x2398c3();_0x153926[_0x412173]=_0x551cb5([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x502698,_0x502698!=_0x551cb5([0x56,0x61,0x6c,0x69,0x64])&&_0x17cb41();}function _0x2398c3(){const _0x2dbd4b=window[_0x551cb5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x551cb5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x551cb5([0x6e,0x6f,0x77])]())[_0x551cb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x551cb5([0x2e]),'');let _0x3688b0=_0x551cb5([0x75]);for(let _0x47aa36=0x0;_0x47aa36<_0x2dbd4b[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47aa36+=0x2){let _0x39bdbf=window[_0x551cb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2dbd4b[_0x551cb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47aa36,_0x47aa36+0x2));_0x39bdbf>=_0x3f8d50[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39bdbf-=_0x3f8d50[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3688b0+=_0x3f8d50[_0x39bdbf];}return _0x3688b0;}function _0xc7bf73(){const _0x396838=_0x56f5c0[_0x551cb5([0x73,0x70,0x6c,0x69,0x74])](_0x551cb5([0x2e]));if(0x3!=_0x396838[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x273db8(_0x396838[0x1]);function _0x273db8(_0x458928){const _0x182da2=_0x459416(_0x458928);return _0x182da2&&_0x38c541()?_0x182da2:null;function _0x38c541(){const _0xc4e39b=_0x182da2[_0x551cb5([0x6a,0x74,0x69])],_0x34fcba=window[_0x551cb5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc4e39b[_0x551cb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc4e39b[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x564fc4={..._0x182da2,[_0x551cb5([0x6a,0x74,0x69])]:_0xc4e39b[_0x551cb5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xc4e39b[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x564fc4[_0x551cb5([0x76,0x63])],_0x374886(_0x564fc4)==_0x34fcba;}}}async function _0x3def79(){let _0x2e9f6d=!0x0;try{const _0x2e31fc=_0x56f5c0[_0x551cb5([0x73,0x70,0x6c,0x69,0x74])](_0x551cb5([0x2e])),[_0x2354d0,_0x5e3151,_0x4077cf]=_0x2e31fc;return _0x31a041(_0x2354d0),await _0x12ff6e(_0x2354d0,_0x5e3151,_0x4077cf),_0x2e9f6d;}catch{return!0x1;}function _0x31a041(_0x437246){const _0x20cc48=_0x459416(_0x437246);_0x20cc48&&_0x20cc48[_0x551cb5([0x61,0x6c,0x67])]==_0x551cb5([0x45,0x53,0x32,0x35,0x36])||(_0x2e9f6d=!0x1);}async function _0x12ff6e(_0x200e51,_0x205058,_0x38c080){const _0x13fc83=window[_0x551cb5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x551cb5([0x66,0x72,0x6f,0x6d])](_0x3235d3(_0x38c080),_0xae2498=>_0xae2498[_0x551cb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12c1f3=new window[(_0x551cb5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x551cb5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x200e51+_0x551cb5([0x2e])+_0x205058),_0x521e2=window[_0x551cb5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x551cb5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x521e2)return;const _0x11a840=await _0x521e2[_0x551cb5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x551cb5([0x6a,0x77,0x6b]),_0x3bc9e7,{[_0x551cb5([0x6e,0x61,0x6d,0x65])]:_0x551cb5([0x45,0x43,0x44,0x53,0x41]),[_0x551cb5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x551cb5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x551cb5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x521e2[_0x551cb5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x551cb5([0x6e,0x61,0x6d,0x65])]:_0x551cb5([0x45,0x43,0x44,0x53,0x41]),[_0x551cb5([0x68,0x61,0x73,0x68])]:{[_0x551cb5([0x6e,0x61,0x6d,0x65])]:_0x551cb5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x11a840,_0x13fc83,_0x12c1f3)||(_0x2e9f6d=!0x1);}}function _0x459416(_0x148dd7){return _0x148dd7[_0x551cb5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x551cb5([0x65,0x79]))?JSON[_0x551cb5([0x70,0x61,0x72,0x73,0x65])](_0x3235d3(_0x148dd7)):null;}function _0x3235d3(_0x586004){return window[_0x551cb5([0x61,0x74,0x6f,0x62])](_0x586004[_0x551cb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x551cb5([0x2b]))[_0x551cb5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x551cb5([0x2f])));}function _0x374886(_0x5ebc56){let _0x56f5b9=0x1505;function _0x5e47e5(_0xea8ff8){for(let _0x377ee9=0x0;_0x377ee9<_0xea8ff8[_0x551cb5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x377ee9++){const _0x53020f=_0xea8ff8[_0x551cb5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x377ee9);_0x56f5b9=(_0x56f5b9<<0x5)+_0x56f5b9+_0x53020f,_0x56f5b9&=_0x56f5b9;}}function _0x568f9a(_0x1a0644){Array[_0x551cb5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a0644)?_0x1a0644[_0x551cb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x568f9a):_0x1a0644&&typeof _0x1a0644==_0x551cb5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x551cb5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a0644)[_0x551cb5([0x73,0x6f,0x72,0x74])]()[_0x551cb5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x13449f,_0x23ccbf])=>{_0x5e47e5(_0x13449f),_0x568f9a(_0x23ccbf);}):_0x5e47e5(window[_0x551cb5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a0644));}return _0x568f9a(_0x5ebc56),_0x56f5b9>>>0x0;}function _0x452320(_0x1ffefc){return _0x1ffefc[_0x551cb5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x551cb5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x551cb5([0x30]));}function _0x584d1c(_0x21482b){return _0x21482b[_0x551cb5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x551cb5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x551cb5([0x6a,0x6f,0x69,0x6e])]('');}function _0x58f068(){}function _0x551cb5(_0x17bb5c){return _0x17bb5c['map'](_0xfadd32=>String['fromCharCode'](_0xfadd32))['join']('');}_0x267766(await _0x39f16c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3dcad0){const {plugins:_0x57db1b,editing:_0xd6838c,model:_0x22792b}=this['editor'],_0x47c1c0=_0x57db1b['get'](f)['getFootnote'](_0x3dcad0);return!!_0x47c1c0&&(_0x22792b['change'](_0x5d7504=>{_0x5d7504['setSelection'](_0x5d7504['createPositionAt'](_0x47c1c0['definition'],'end'));}),_0xd6838c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x855a){const {plugins:_0x3b5bbe,editing:_0x5e6f65,model:_0x143a0c}=this['editor'],_0x10fd69=_0x3b5bbe['get'](f)['getFootnote'](_0x855a);return!!_0x10fd69&&(_0x143a0c['change'](_0x1caaa1=>{_0x1caaa1['setSelection'](_0x10fd69['reference'],'on');}),_0x5e6f65['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3fef2a}=this['editor']['model'],_0x287c47=this['editor']['config']['get']('footnotes.multiBlock');_0x3fef2a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3fef2a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3fef2a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x287c47?_0x3fef2a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3fef2a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3fef2a['addChildCheck'](_0x557fa2=>{for(const _0x16fff0 of _0x557fa2)if('footnoteDefinition'===_0x16fff0['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2b0cf8}=this,{conversion:_0x1ab366,editing:_0x380bac}=_0x2b0cf8,{t:t}=_0x2b0cf8['locale'];_0x1ab366['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3039e5,{writer:_0x3d108e,consumable:_0x25c5bd})=>{const _0x50db51=_0x3039e5['getChild'](0x0);if(!_0x50db51||!_0x50db51['is']('element','a'))return null;const _0x24c5cd=_0x50db51['getAttribute']('href')||'';if(!_0x24c5cd['startsWith']('#'))return null;const _0x5003c3=_0x24c5cd['replace'](/^#/,'');if(!_0x5003c3)return null;_0x25c5bd['consume'](_0x50db51,{'name':!0x0,'attributes':['href']});for(const {item:_0x1aaa3f}of _0x380bac['view']['createRangeIn'](_0x50db51))_0x1aaa3f['is']('$textProxy')?_0x25c5bd['consume'](_0x1aaa3f['textNode'],{'name':!0x0}):_0x1aaa3f['is']('element')&&_0x25c5bd['consume'](_0x1aaa3f,{'name':!0x0});return _0x3d108e['createElement']('footnoteRef',{'footnoteId':_0x5003c3});}}),_0x1ab366['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x129a41,{writer:_0x3f8d71})=>D(_0x129a41,_0x3f8d71)}),_0x1ab366['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2ca2c5,{writer:_0x1f31e5})=>{const _0x5281d7=_0x2ca2c5['getAttribute']('footnoteCounter');return _0x488c20(D(_0x2ca2c5,_0x1f31e5),_0x1f31e5,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5281d7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x17145f}=this,{t:t}=_0x17145f['locale'],{conversion:_0x1f0c01}=_0x17145f;_0x1f0c01['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1f0c01['for']('upcast')['add'](_0x235fcc=>{_0x235fcc['on']('element:ol',(_0x5dca4f,_0x58be39,_0x21b203)=>{const _0x2115de=_0x58be39['viewItem'];if(!_0x2115de['hasClass']('footnotes-list')||!_0x58be39['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x21b203['consumable']['consume'](_0x2115de,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1dd974,modelCursor:_0x533d01}=_0x21b203['convertChildren'](_0x58be39['viewItem'],_0x58be39['modelCursor']);_0x58be39['modelRange']=_0x1dd974,_0x58be39['modelCursor']=_0x533d01;}),_0x235fcc['on']('element:hr',(_0x2cc1a2,_0x40799c,_0xa89d2c)=>{const _0x1d5869=_0x40799c['viewItem'];_0x1d5869['hasClass']('footnotes-divider')&&_0x40799c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xa89d2c['consumable']['consume'](_0x1d5869,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1f0c01['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e1802,{writer:_0x716df4})=>v(_0x716df4)}),_0x1f0c01['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5da4c4,{writer:_0x582048})=>{const _0x57c161=v(_0x582048,{'data-footnotes-list-label':t('Footnotes')}),_0x14b7b8=_0x488c20(_0x57c161,_0x582048,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x582048['setCustomProperty']('footnotesDefinitions',!0x0,_0x14b7b8),_0x14b7b8;}});}['_defineDefinitionConverters'](){const {editor:_0x2e4263}=this,{conversion:_0x2f1594,locale:_0x22004e}=_0x2e4263,_0x33d5c3=_0x2e4263['config']['get']('footnotes.multiBlock');_0x2f1594['for']('upcast')['add'](_0x26313d=>{_0x26313d['on']('element:li',(_0x5c56c0,_0x5f2b7e,_0x249d2a)=>{const _0xa2058a=_0x5f2b7e['viewItem'];if(!_0xa2058a['hasClass']('footnote-definition')||!_0xa2058a['getAttribute']('id'))return;const _0x43e580=_0xa2058a['parent'];if(!_0x43e580['is']('element','ol')||!_0x43e580['hasClass']('footnotes-list'))return;if(!_0x249d2a['consumable']['test'](_0xa2058a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xe56a01=_0x249d2a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xa2058a['getAttribute']('id')});if(!_0x249d2a['safeInsert'](_0xe56a01,_0x5f2b7e['modelCursor']))return;_0x249d2a['consumable']['consume'](_0xa2058a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x108b4e=Array['from'](_0xa2058a['getChildren']())['find'](_0x2b79a1=>_0x2b79a1['is']('element')&&_0x2b79a1['hasClass']('footnote-content'));for(const _0x563506 of _0xa2058a['getChildren']())_0x563506['is']('element')&&(_0x249d2a['consumable']['consume'](_0x563506,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x249d2a['consumable']['consume'](_0x563506,{'name':!0x0,'classes':'footnote-content'}));if(_0x108b4e){if(_0x33d5c3)_0x249d2a['convertChildren'](_0x108b4e,_0xe56a01);else{const _0x53d720=_0x249d2a['writer']['createElement']('footnoteInlineContent');_0x249d2a['writer']['insert'](_0x53d720,_0xe56a01),_0x249d2a['convertChildren'](_0x108b4e,_0x53d720);}}_0x249d2a['updateConversionResult'](_0xe56a01,_0x5f2b7e);});}),_0x2f1594['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4e00e5,{writer:_0x283447})=>b(_0x4e00e5,_0x283447,_0x22004e,{'dataPipeline':!0x0})}),_0x2f1594['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x419f56,{writer:_0xe41444})=>b(_0x419f56,_0xe41444,_0x22004e)});}['_defineBogusParagraphConverters'](){const {editor:_0x2ac974}=this,{conversion:_0xdc9667}=_0x2ac974;_0x2ac974['config']['get']('footnotes.multiBlock')?(_0xdc9667['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0xdc9667['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2ac974['model']['document'],'change:data',()=>{!function(_0x54d84a,_0x5ec8be){const _0x43e088=_0x54d84a['document']['differ'],_0x17c2fd=new Set();for(const _0x25cdc2 of _0x43e088['getChanges']()){const _0x576e61='attribute'==_0x25cdc2['type']?_0x25cdc2['range']['start']['parent']:_0x25cdc2['position']['parent'];_0x576e61['is']('element','footnoteDefinition')&&_0x17c2fd['add'](_0x576e61);}for(const _0x15da35 of _0x17c2fd['values']()){const _0x657146=Array['from'](_0x15da35['getChildren']())['filter'](_0x5b4bf8=>g(_0x5b4bf8,_0x5ec8be['mapper']));for(const _0x169b5d of _0x657146)_0x5ec8be['reconvertItem'](_0x169b5d);}}(_0x2ac974['model'],_0x2ac974['editing']);})):(_0xdc9667['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0xdc9667['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2a0d96,{writer:_0x4cb10e})=>{const _0x546a42=_0x4cb10e['createContainerElement']('span');return _0x4cb10e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x546a42),_0x546a42;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4fc118}=this,{editing:_0xf34e5,t:t}=_0x4fc118,_0x1e53de=_0x4fc118['model']['document']['selection'];_0x4fc118['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4fc118['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xf34e5['view']['document'],'enter',(_0x403f20,_0x41a18b)=>{const _0x49e64e=function(_0x45a7db){const _0x35960b=_0x45a7db['getSelectedElement']();if(_0x35960b?.['is']('element','footnoteRef'))return _0x35960b;return null;}(_0x1e53de);if(_0x49e64e){const _0x3f27c7=_0x49e64e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3f27c7),_0x41a18b['preventDefault'](),_0x403f20['stop']();}},{'context':_0x33488a});}['_defineClickHandlers'](){const {editor:_0x4e7961}=this,{editing:_0x39893a}=_0x4e7961;_0x4e7961['editing']['view']['addObserver'](_0x47f5d3),_0x4e7961['editing']['view']['addObserver'](_0xd76d2d);let _0x2d1bc4=!0x1;this['listenTo'](_0x39893a['view']['document'],'pointerdown',(_0x15eb95,_0x4f2932)=>{const {target:_0x2d80c8}=_0x4f2932,_0x5e8d29=_0x39893a['view']['document']['selection'];_0x2d1bc4=!!(_0x2d80c8?.['is']('element','a')&&_0x2d80c8['parent']?.['is']('element','sup')&&_0x2d80c8['parent']['hasClass']('footnote'))&&_0x5e8d29['getSelectedElement']()===_0x2d80c8['parent'];},{'priority':'high'}),this['listenTo'](_0x39893a['view']['document'],'click',(_0x2d76fb,_0x5e54a0)=>{const {target:_0x430bf3}=_0x5e54a0;if(!_0x430bf3?.['is']('element','a'))return;if(_0x430bf3['parent']?.['is']('element','sup')&&_0x430bf3['parent']['hasClass']('footnote')&&!_0x2d1bc4)return void _0x5e54a0['preventDefault']();let _0x61c739=_0x430bf3['getAttribute']('href');if(!_0x61c739?.['startsWith']('#'))return;_0x61c739=_0x61c739['slice'](0x1);let _0x54714e=!0x1;(_0x61c739['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x61c739['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x61c739))&&(_0x54714e=!0x0),_0x54714e&&(_0x5e54a0['preventDefault'](),_0x2d76fb['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x18fbb3}={}){return(_0x3e669a,{writer:_0x45f052})=>{if(!p(_0x3e669a))return null;if(!_0x18fbb3)return _0x45f052['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4caf8e=_0x45f052['createContainerElement']('p');return _0x45f052['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4caf8e),_0x4caf8e;};}function p(_0x4206cf){const {parent:_0x2cb4d4}=_0x4206cf;if(!_0x2cb4d4?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2cb4d4['childCount'])return!0x1;for(const _0x3f2cf6 of _0x4206cf['getAttributeKeys']())if(!_0x3f2cf6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3f2cf6)return!0x1;return!0x0;}function g(_0xb19b3c,_0x4cdf24){if(!_0xb19b3c['is']('element','paragraph'))return!0x1;const _0x5e7ee7=_0x4cdf24['toViewElement'](_0xb19b3c);return!!_0x5e7ee7&&p(_0xb19b3c)!==_0x5e7ee7['is']('element','span');}function J(_0x38f002){return _0x33488a(_0x38f002)&&_0x38f002['is']('containerElement')&&!!_0x38f002['getCustomProperty']('footnotesDefinitions');}function v(_0x33b5cb,_0x2fe39f={}){const _0x221dc4=_0x33b5cb['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1017be=_0x33b5cb['createContainerElement']('ol',{'class':'footnotes-list'},_0x33b5cb['createSlot']());return _0x33b5cb['createContainerElement']('div',{'class':'footnotes',..._0x2fe39f},[_0x221dc4,_0x1017be]);}function D(_0x343561,_0x410950){const _0x3edafb=_0x343561['getAttribute']('footnoteId'),_0x572530=_0x343561['getAttribute']('footnoteCounter'),_0x2dbff0=_0x410950['createUIElement']('a',{'href':'#'+_0x3edafb},function(_0x32fe48){const _0x39d4ba=this['toDomElement'](_0x32fe48);return _0x39d4ba['textContent']=_0x572530,_0x39d4ba;}),_0x5d581b=_0x410950['createContainerElement']('sup',{'id':'ref-'+_0x3edafb,'class':'footnote'},[_0x2dbff0]);return _0x5d581b['getFillerOffset']=()=>null,_0x5d581b;}function b(_0x103be9,_0x40036f,_0x5dd3c9,{dataPipeline:_0x1d02bd}={}){const {t:t}=_0x5dd3c9,_0x566c5c=_0x103be9['getAttribute']('footnoteId'),_0x264edf=_0x40036f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x566c5c},function(_0x1243cc){const _0x4d1aaa=this['toDomElement'](_0x1243cc);return _0x4d1aaa['innerText']='^',_0x4d1aaa;}),_0x341419=_0x1d02bd?_0x40036f['createContainerElement']('div',{'class':'footnote-content'}):_0x31eb07(_0x40036f['createEditableElement']('div',{'class':'footnote-content'}),_0x40036f,{'label':t('Footnote\x20content.')});return _0x40036f['insert'](_0x40036f['createPositionAt'](_0x341419,0x0),_0x40036f['createSlot']()),_0x40036f['createContainerElement']('li',{'class':'footnote-definition','id':_0x566c5c},[_0x264edf,_0x341419]);}class e extends _0x2cc155{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5c2bac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x20625d}=this,{plugins:_0x51a3e3,model:_0xb3b3d7}=_0x20625d,_0xbea62e=_0x51a3e3['get'](_0x5c2bac),_0x134184=_0x51a3e3['get'](f);this['listenTo'](_0xbea62e,'outputTransformation',(_0x5d0539,_0x1e957d)=>{const _0x4fa8ba=c(_0xb3b3d7['createRangeIn'](_0x1e957d['content']));if(!_0x4fa8ba['length'])return;const _0x1be341=_0x134184['getFootnotes'](),_0x35f7a1=_0x4fa8ba['reduce']((_0x19e7bd,_0x15ee13)=>{const _0x332a6c=_0x1be341['find'](_0x547471=>_0x547471['id']===_0x15ee13);if(_0x332a6c){const _0x2072cd=_0x20625d['data']['toView'](_0x332a6c['definition'],{'isClipboardPipeline':!0x0}),_0x102130=_0x20625d['data']['htmlProcessor']['toData'](_0x2072cd);_0x19e7bd[_0x332a6c['id']]=_0x102130;}return _0x19e7bd;},Object['create'](null));_0x1e957d['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x35f7a1));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3ae504}=this,{model:_0x290537,plugins:_0x84cc67}=_0x3ae504,{view:_0x47dcf3}=_0x3ae504['editing'],_0x491f38=_0x84cc67['get'](_0x5c2bac),_0x3f0a58=_0x84cc67['get'](f),_0x5f0820=_0x3ae504['config']['get']('footnotes.multiBlock');let _0x538f54=null;this['listenTo'](_0x47dcf3['document'],'clipboardInput',(_0x16f0c6,_0x40917c)=>{const _0x5ea4b3=_0x40917c['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x538f54=_0x5ea4b3?JSON['parse'](_0x5ea4b3):null;}),this['listenTo'](_0x491f38,'contentInsertion',(_0xd466a1,_0x4dde2f)=>{const _0x1f6257=_0x4dde2f['sourceEditorId']===this['editor']['id'];_0x1f6257&&'drop'===_0x4dde2f['method']||_0x290537['change'](_0x3726a4=>{let _0x4c8772=_0x3f0a58['getFootnotesDefinitionsObjectElement']();const _0x361f02=!!_0x4c8772&&Array['from'](_0x290537['document']['selection']['getSelectedBlocks']())['includes'](_0x4c8772);if((_0x4c8772&&!_0x361f02||!_0x4c8772&&!_0x538f54)&&function(_0x4d8485,_0x439930){const _0x17a57b=[];for(const {item:_0x5c425d}of _0x4d8485['createRangeIn'](_0x439930))_0x5c425d['is']('element','footnotesDefinitions')&&_0x17a57b['push'](_0x5c425d);for(const _0x5d9989 of _0x17a57b)_0x4d8485['remove'](_0x5d9989);}(_0x3726a4,_0x4dde2f['content']),!_0x538f54)return;const {selection:_0x352bc5}=_0x290537['document'],_0x570755=_0x352bc5['getFirstRange']()['root'];_0x4c8772&&!_0x361f02||(_0x4c8772=function(_0xb806f1,_0x12d704){for(const {item:_0x3381ba}of _0xb806f1['createRangeIn'](_0x12d704))if(_0x3381ba['is']('element','footnotesDefinitions'))return _0x3381ba;return null;}(_0x3726a4,_0x4dde2f['content']),_0x4c8772||=_0x3f0a58['_insertEmptyFootnotesDefinitionsContainer'](_0x3726a4,_0x570755));const _0x54304f=Array['from'](_0x352bc5['getRanges']())['flatMap'](c),_0x3e4fc1=function(_0x38ef30,_0x2a3aad,_0x130d3c){const _0x5c7fca=Object['create'](null);for(const {item:_0x422476}of _0x38ef30['createRangeIn'](_0x2a3aad))if(_0x422476['is']('element','footnoteRef')){const _0x20db5c=_0x422476['getAttribute']('footnoteId');if(!_0x130d3c(_0x20db5c))continue;_0x5c7fca[_0x20db5c]||(_0x5c7fca[_0x20db5c]=_0x2b2c74()),_0x38ef30['setAttribute']('footnoteId',_0x5c7fca[_0x20db5c],_0x422476);}return _0x5c7fca;}(_0x3726a4,_0x4dde2f['content'],_0x58a2e2=>{if(!_0x1f6257)return!0x0;return!!_0x3f0a58['getFootnote'](_0x58a2e2)&&!_0x54304f['includes'](_0x58a2e2);});for(const [_0x145338,_0x361cd6]of Object['entries'](_0x538f54)){const _0x20e15b=_0x3e4fc1[_0x145338]||_0x145338,_0x2740b4=_0x3726a4['createElement']('footnoteDefinition',{'footnoteId':_0x20e15b}),_0x3f7221=_0x3ae504['data']['htmlProcessor']['toView'](_0x361cd6);let _0x3f11b8;if(_0x5f0820)_0x3f11b8=_0x3ae504['data']['toModel'](_0x3f7221,_0x2740b4);else{_0x3f11b8=_0x3726a4['createElement']('footnoteInlineContent');const _0x4e0cd2=_0x3ae504['data']['toModel'](_0x3f7221,_0x3f11b8);_0x3726a4['insert'](_0x4e0cd2,_0x3f11b8);}_0x3726a4['append'](_0x3f11b8,_0x2740b4),_0x3726a4['insert'](_0x2740b4,_0x4c8772,'end');}_0x538f54=null;});});}}function c(_0x365c67){const _0xb9910c=new Set();for(const {item:_0x441da8}of _0x365c67)_0x441da8['is']('element','footnoteRef')&&_0xb9910c['add'](_0x441da8['getAttribute']('footnoteId'));return Array['from'](_0xb9910c);}class i extends _0x2cc155{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c52d1}=this,{componentFactory:_0x141034}=_0x5c52d1['ui'];_0x141034['add']('insertFootnote',x(_0x5c52d1,_0x45dd1b)),_0x141034['add']('menuBar:insertFootnote',x(_0x5c52d1,_0x472169)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4a1939=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4a6733;for(const _0xe471cb in _0x4a1939){const _0xce508b=_0xe471cb,_0x10c844=_0x4a1939[_0xce508b];if('footnotesLicenseKeyValid'==_0x10c844||'footnotesLicenseKeyInvalid'==_0x10c844||'footnotesLicenseKeyExpired'==_0x10c844||'footnotesLicenseKeyDomainLimit'==_0x10c844||'footnotesLicenseKeyNotAllowed'==_0x10c844||'footnotesLicenseKeyEvaluationLimit'==_0x10c844||'footnotesLicenseKeyTrialLimit'==_0x10c844||'footnotesLicenseKeyUsageLimit'==_0x10c844){delete _0x4a1939[_0xce508b],_0x4a6733=_0x10c844,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4a6733&&_0x4a1939['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4a6733&&_0x4a1939['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4a6733&&_0x4a1939['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4a6733&&_0x4a1939['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4a6733&&_0x4a1939['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x4a6733&&_0x4a1939['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x4a6733&&_0x4a1939['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x5ef520,_0x332924){const _0x2721f6=_0x5ef520['commands']['get']('insertFootnote');return _0x58737b=>{const {t:t}=_0x58737b,_0x2464ba=new _0x332924(_0x58737b),_0x19d161=_0x2464ba instanceof _0x472169;return _0x2464ba['bind']('isEnabled')['to'](_0x2721f6,'isEnabled'),_0x2464ba['set']({'label':t(_0x19d161?'Footnote':'Insert\x20footnote'),'icon':_0x13c972,'tooltip':!0x0}),_0x2464ba['on']('execute',()=>{_0x2721f6['execute'](),_0x5ef520['editing']['view']['focus']();}),_0x2464ba;};}class lt extends _0x2cc155{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x42b54c{['refresh'](){const {editor:_0x48946d}=this,_0x215882=_0x48946d['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x215882,this['value']=_0x215882?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x5189a9}){const {editor:_0x37f3f7}=this,_0x4cc938=_0x37f3f7['plugins']['get'](f),_0x2b04e5=_0x4cc938['getFootnotesDefinitionsObjectElement']();_0x2b04e5&&Q['includes'](_0x5189a9)&&_0x37f3f7['model']['change'](_0x41e9cf=>{_0x41e9cf['setAttribute']('footnotesListStyle',_0x5189a9,_0x2b04e5),_0x4cc938['_updateFootnotesCounters'](_0x41e9cf);});}}class C extends _0x42b54c{['refresh'](){const {editor:_0x198a21}=this,_0x23b9b5=_0x198a21['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x23b9b5,this['value']=_0x23b9b5?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x199aca}){const {editor:_0x982a0d}=this,_0x3e4f4d=_0x982a0d['plugins']['get'](f),_0x26b83f=_0x3e4f4d['getFootnotesDefinitionsObjectElement']();_0x26b83f&&Number['isInteger'](_0x199aca)&&_0x982a0d['model']['change'](_0xc15c5e=>{_0xc15c5e['setAttribute']('footnotesListStart',_0x199aca,_0x26b83f),_0x3e4f4d['_updateFootnotesCounters'](_0xc15c5e);});}}class P extends _0x2cc155{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3bd75d}=this;_0x3bd75d['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x3bd75d['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x3bd75d['commands']['add']('footnotesStyle',new S(_0x3bd75d)),_0x3bd75d['commands']['add']('footnotesStart',new C(_0x3bd75d)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0xf71a42}=this,{schema:_0x291a8d}=_0xf71a42['model'];_0x291a8d['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x262eaa}=this,{conversion:_0x5ef187,model:_0x3b215e}=_0x262eaa,{schema:_0x158493}=_0x3b215e;_0x5ef187['for']('upcast')['add'](_0x2c97b9=>{_0x2c97b9['on']('element:ol',(_0x5d6980,_0x52fe37,_0x591d0d)=>{const _0x255121=_0x52fe37['viewItem'],_0x410665=_0x52fe37['modelCursor']?.['parent'];_0x255121['hasClass']('footnotes-list')&&_0x410665?.['is']('element','footnotesDefinitions')&&(function(_0x14f0d7,_0x42b6d6,_0x5926a9,_0xabd8fd){if(!_0xabd8fd['checkAttribute'](_0x42b6d6,'footnotesListStart'))return;let _0xe8bee4=0x1;const _0x128b32=_0x5926a9['consumable']['consume'](_0x14f0d7,{'attributes':'start'});if(_0x128b32){const _0x57d12e=Number['parseInt'](_0x14f0d7['getAttribute']('start'),0xa);Number['isNaN'](_0x57d12e)||(_0xe8bee4=_0x57d12e);}!_0x128b32&&_0x42b6d6['hasAttribute']('footnotesListStart')||_0x5926a9['writer']['setAttribute']('footnotesListStart',_0xe8bee4,_0x42b6d6);}(_0x255121,_0x410665,_0x591d0d,_0x158493),function(_0x42514e,_0x22a73a,_0x2f01a5,_0x1c8a15){if(!_0x1c8a15['checkAttribute'](_0x22a73a,'footnotesListStyle'))return;let _0x557b9f='decimal',_0x198236=!0x1;if(_0x2f01a5['consumable']['consume'](_0x42514e,{'attributes':'type'})){const _0x297ff1={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x42514e['getAttribute']('type')];_0x297ff1&&(_0x557b9f=_0x297ff1),_0x198236=!0x0;}_0x2f01a5['consumable']['consume'](_0x42514e,{'styles':'list-style-type'})&&(_0x557b9f=function(_0x1cbcc4){switch(_0x1cbcc4){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x1cbcc4;}}(_0x42514e['getStyle']('list-style-type')),_0x198236=!0x0),!_0x198236&&_0x22a73a['hasAttribute']('footnotesListStyle')||_0x2f01a5['writer']['setAttribute']('footnotesListStyle',_0x557b9f,_0x22a73a);}(_0x255121,_0x410665,_0x591d0d,_0x158493));});}),_0x5ef187['for']('downcast')['add'](_0x1de73a=>{_0x1de73a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x44ac8c,_0x5dabac,_0x101a26)=>{if(!_0x101a26['consumable']['consume'](_0x5dabac['item'],_0x44ac8c['name']))return;const _0x5a2ca2=M(_0x5dabac['item'],_0x101a26['mapper']),{attributeNewValue:_0x4f70f7}=_0x5dabac;null==_0x4f70f7||0x1===_0x4f70f7?_0x101a26['writer']['removeAttribute']('start',_0x5a2ca2):_0x101a26['writer']['setAttribute']('start',String(_0x4f70f7),_0x5a2ca2);}),_0x1de73a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2c6d28,_0x5a17f5,_0x198bd2)=>{if(!_0x198bd2['consumable']['consume'](_0x5a17f5['item'],_0x2c6d28['name']))return;const _0x220299=M(_0x5a17f5['item'],_0x198bd2['mapper']),{attributeNewValue:_0x169717}=_0x5a17f5;_0x169717&&'decimal'!==_0x169717?_0x198bd2['writer']['setStyle']('list-style-type',_0x169717,_0x220299):_0x198bd2['writer']['removeStyle']('list-style-type',_0x220299);});});}['_definePostfixer'](){const {editor:_0x25ac62}=this,{model:_0x2579af}=_0x25ac62,_0x210b38=_0x25ac62['plugins']['get'](f),_0x4074b7=this['_getDefaultListStyle'](),_0x6801c1=this['_getDefaultStartIndex']();_0x2579af['document']['registerPostFixer'](_0x1e977c=>{const _0x38c5d2=_0x2579af['document']['differ']['getChanges']();let _0x4cbe80=!0x1;for(const _0x33c1b1 of _0x38c5d2){if('insert'!==_0x33c1b1['type']||'$text'===_0x33c1b1['name'])continue;const _0x280d48=_0x2579af['createRangeOn'](_0x33c1b1['position']['nodeAfter']);for(const _0xc0c01f of _0x280d48['getItems']())_0xc0c01f['is']('element','footnotesDefinitions')&&(!_0xc0c01f['hasAttribute']('footnotesListStart')&&_0x2579af['schema']['checkAttribute'](_0xc0c01f,'footnotesListStart')&&(_0x1e977c['setAttribute']('footnotesListStart',_0x6801c1,_0xc0c01f),_0x4cbe80=!0x0),!_0xc0c01f['hasAttribute']('footnotesListStyle')&&_0x2579af['schema']['checkAttribute'](_0xc0c01f,'footnotesListStyle')&&(_0x1e977c['setAttribute']('footnotesListStyle',_0x4074b7,_0xc0c01f),_0x4cbe80=!0x0));}return _0x4cbe80&&_0x210b38['_updateFootnotesCounters'](_0x1e977c),_0x4cbe80;});}['_defineFormatter'](){const {editor:_0x4292d5}=this;_0x4292d5['plugins']['get'](f)['setFootnoteFormatter'](_0x4576a6=>this['_formatFootnoteListValue'](_0x4576a6));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4daa0b,value:_0x3c518b,digits:_0x24d1c3}){const _0x20e682=_0x4daa0b['getAttribute']('footnotesListStyle'),_0x443a16=_0x4daa0b['getAttribute']('footnotesListStart'),_0x22caa1=Math['floor'](_0x3c518b)+(_0x443a16??0x1)-0x1;switch(_0x20e682){case'decimal-leading-zero':return function(_0xfc3358,_0x2bb9b5){return String(_0xfc3358)['padStart'](_0x2bb9b5,'0');}(_0x22caa1,Math['max'](0x2,_0x24d1c3));case'lower-alpha':case'lower-latin':return N(_0x22caa1,!0x1);case'upper-alpha':case'upper-latin':return N(_0x22caa1,!0x0);case'lower-roman':return X(_0x22caa1,!0x1);case'upper-roman':return X(_0x22caa1,!0x0);default:return String(_0x22caa1);}}}function M(_0x2118d4,_0x133c16){const _0xaa9ddd=_0x133c16['toViewElement'](_0x2118d4);return Array['from'](_0xaa9ddd['getChildren']())['find'](_0x187bfe=>_0x187bfe['is']('element','ol')&&_0x187bfe['hasClass']('footnotes-list'));}function N(_0x2cd0f7,_0x1d8961){let _0xb95780='',_0x29cd23=_0x2cd0f7;for(;_0x29cd23>0x0;){const _0x5c3402=(_0x29cd23-0x1)%0x1a;_0xb95780=String['fromCharCode'](0x61+_0x5c3402)+_0xb95780,_0x29cd23=Math['floor']((_0x29cd23-0x1)/0x1a);}return _0x1d8961?_0xb95780['toUpperCase']():_0xb95780;}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(_0x5dcb24,_0x4db623){let _0x20b1f9='',_0x46cbe8=_0x5dcb24;for(const {value:_0x2e13b8,numeral:_0x3234c7}of V)for(;_0x46cbe8>=_0x2e13b8;)_0x20b1f9+=_0x3234c7,_0x46cbe8-=_0x2e13b8;return _0x4db623?_0x20b1f9:_0x20b1f9['toLowerCase']();}class H extends _0x3e1bc0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x4c6099();['focusCycler'];constructor(_0x5eb183,{styleButtonViews:_0x3f24d7,styleGridAriaLabel:_0xe717b6}){super(_0x5eb183),(this['focusCycler']=new _0x696146({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3f24d7,_0xe717b6),[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 _0x26a96f of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x26a96f['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['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 _0xb42a07=_0x581483=>_0x581483['stopPropagation']();this['keystrokes']['set']('arrowright',_0xb42a07),this['keystrokes']['set']('arrowleft',_0xb42a07),this['keystrokes']['set']('arrowup',_0xb42a07),this['keystrokes']['set']('arrowdown',_0xb42a07);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5c965a,_0x2ec883){const _0x3fa028=new _0x3e1bc0(this['locale']);return _0x3fa028['children']=_0x3fa028['createCollection'](),_0x3fa028['children']['addMany'](_0x5c965a),_0x3fa028['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2ec883,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3fa028['children']}),_0x3fa028['children']['delegate']('execute')['to'](this),_0x3fa028['focus']=function(){for(const _0x20f794 of this['children'])if(_0x20f794 instanceof _0x45dd1b&&_0x20f794['isOn'])return void _0x20f794['focus']();this['children']['first']['focus']();},_0x3fa028['focusTracker']=new ot(),_0x3fa028['keystrokes']=new rt(),_0x3fa028['render'](),_0x3fa028['keystrokes']['listenTo'](_0x3fa028['element']),this['children']['add'](_0x3fa028),_0x3fa028;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5c9c2c=this['_createStartIndexPropertyView'](),_0x30e26c=[_0x5c9c2c],_0xa2a63b=new st(this['locale'],_0x30e26c);return _0xa2a63b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xa2a63b['buttonView']['bind']('isEnabled')['toMany'](_0x30e26c,'isEnabled',(..._0x11e1c1)=>_0x11e1c1['some'](_0x2f7564=>_0x2f7564)),_0xa2a63b['buttonView']['on']('change:isEnabled',(_0x4c9889,_0x54811c,_0x3f834f)=>{_0x3f834f||(_0xa2a63b['isCollapsed']=!0x0);}),this['children']['add'](_0xa2a63b),[_0x5c9c2c,_0xa2a63b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x38f713=new it(this['locale'],et);return _0x38f713['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x38f713['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x38f713['fieldView']['on']('input',()=>{const _0x36edc1=_0x38f713['fieldView']['element'],_0x1579db=_0x36edc1['valueAsNumber'];Number['isNaN'](_0x1579db)?_0x38f713['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x36edc1['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1579db}):_0x38f713['errorText']=t(_0x1579db<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x38f713;}}class j extends _0x2cc155{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4bb75a,_0x273f2f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x40d8be}=this,{componentFactory:_0x500772}=_0x40d8be['ui'];_0x40d8be['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x500772['add']('footnotesStyle',function(_0x8cea1f){return _0x4fbdf1=>{const {t:t}=_0x4fbdf1,_0x4dfced=_0x8cea1f['commands']['get']('footnotesStyle'),_0x363ef6=_0x1edc82(_0x4fbdf1),{buttonView:_0x2b6fa4}=_0x363ef6;return _0x363ef6['class']='ck-footnotes-styles-dropdown',_0x363ef6['bind']('isEnabled')['to'](_0x4dfced,'isEnabled'),_0x2b6fa4['set']({'label':t('Footnotes\x20style'),'icon':_0x13c972,'tooltip':!0x0}),_0x363ef6['once']('change:isOpen',()=>{const _0x1dccef=function({editor:_0xc328c4,dropdownView:_0x319c47}){const {t:t}=_0xc328c4['locale'],_0x2ecc7d=t('Footnotes\x20definitions\x20styles'),_0xe53f54=function(_0x531f64){const t=_0x531f64['locale']['t'],_0x35553c=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2c7db0},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1c769f},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2c17aa},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x56ec67},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1ccead},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5294a2}];return _0x35553c['map'](function(_0x2879fa){const _0x711e7f=_0x2879fa['locale'];return({label:_0x31f02d,icon:_0x5d0bf8,tooltip:_0x45ee36,style:_0x5a9892})=>{const _0x440284=_0x2879fa['commands']['get']('footnotesStyle'),_0xb7d4cb=new _0x45dd1b(_0x711e7f);return _0xb7d4cb['set']({'label':_0x31f02d,'icon':_0x5d0bf8,'tooltip':_0x45ee36}),_0xb7d4cb['bind']('isOn')['to'](_0x440284,'value',_0x5846da=>_0x5846da===_0x5a9892),_0xb7d4cb['bind']('isEnabled')['to'](_0x440284,'isEnabled'),_0xb7d4cb['on']('execute',()=>{_0x2879fa['execute']('footnotesStyle',{'value':_0x5a9892}),_0x2879fa['editing']['view']['focus']();}),_0xb7d4cb;};}(_0x531f64));}(_0xc328c4),_0x8df062=new H(_0xc328c4['locale'],{'styleGridAriaLabel':_0x2ecc7d,'styleButtonViews':_0xe53f54}),_0x3cff61=_0xc328c4['commands']['get']('footnotesStart');return _0x8df062['startIndexFieldView']['bind']('isEnabled')['to'](_0x3cff61),_0x8df062['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x3cff61),_0x8df062['on']('footnotesListStart',(_0x463ddc,_0x4b95db)=>{_0xc328c4['execute']('footnotesStart',{'value':_0x4b95db['startIndex']});}),_0x8df062['delegate']('execute')['to'](_0x319c47),_0x8df062;}({'editor':_0x8cea1f,'dropdownView':_0x363ef6});_0x363ef6['panelView']['children']['add'](_0x1dccef);}),_0x363ef6;};}(_0x40d8be));}['afterInit'](){const {editor:_0x401ddd}=this,{t:t}=_0x401ddd['locale'],_0x579678=_0x401ddd['plugins']['get'](_0x273f2f),{defaultPositions:_0x1ccf73}=_0x130642;_0x579678['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x401ddd['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1ae7bc=>{let _0x104c26=_0x1ae7bc['getFirstPosition']()?.['parent'];return _0x104c26?.['is']('$text')&&(_0x104c26=_0x104c26['parent']),_0x104c26?.['is']('element')?_0x104c26['findAncestor'](J):null;},'positions':[_0x1ccf73['southArrowNorth'],_0x1ccf73['southArrowNorthMiddleWest'],_0x1ccf73['southArrowNorthMiddleEast'],_0x1ccf73['southArrowNorthWest'],_0x1ccf73['southArrowNorthEast'],_0x1ccf73['northArrowSouth'],_0x1ccf73['northArrowSouthMiddleWest'],_0x1ccf73['northArrowSouthMiddleEast'],_0x1ccf73['northArrowSouthWest'],_0x1ccf73['northArrowSouthEast'],_0x1ccf73['viewportStickyNorth']]});}}class ft extends _0x2cc155{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,m as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "0.0.0-nightly-next-20251209.0",
3
+ "version": "0.0.0-nightly-next-20251210.0",
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": "0.0.0-nightly-next-20251209.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251209.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20251209.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251209.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20251209.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20251209.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251209.0",
33
- "ckeditor5": "0.0.0-nightly-next-20251209.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-next-20251210.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-next-20251210.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-next-20251210.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-next-20251210.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-next-20251210.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-next-20251210.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-next-20251210.0",
33
+ "ckeditor5": "0.0.0-nightly-next-20251210.0"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x1ac28c}from'ckeditor5/src/core.js';import{isWidget as _0x3e18ec,toWidget as _0x3d36f7,toWidgetEditable as _0x2812d7}from'ckeditor5/src/widget.js';import{uid as _0x53f320}from'ckeditor5/src/utils.js';import{PointerObserver as _0x2bc4f5,ClickObserver as _0x1bd508}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x19b7a8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xa8a0f4}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1ac28c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x19b7a8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x175a8d}=this;_0x175a8d['config']['define']('footnotes.multiBlock',!0x0),_0x175a8d['commands']['add']('insertFootnote',new _0xa8a0f4(_0x175a8d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xa846f9){const _0x3d176b=_0x56af73([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]),_0x5473aa=0x47a28506,_0x2d6de4=0x47a5fe6e^_0x5473aa,_0x5057bb=window[_0x56af73([0x44,0x61,0x74,0x65])][_0x56af73([0x6e,0x6f,0x77])](),_0x7896c1=_0xa846f9[_0x56af73([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3f0b6d=new window[(_0x56af73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1412e9=>{_0x7896c1[_0x56af73([0x6f,0x6e,0x63,0x65])](_0x56af73([0x72,0x65,0x61,0x64,0x79]),_0x1412e9);}),_0x20a45b={[_0x56af73([0x6b,0x74,0x79])]:_0x56af73([0x45,0x43]),[_0x56af73([0x75,0x73,0x65])]:_0x56af73([0x73,0x69,0x67]),[_0x56af73([0x63,0x72,0x76])]:_0x56af73([0x50,0x2d,0x32,0x35,0x36]),[_0x56af73([0x78])]:_0x56af73([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]),[_0x56af73([0x79])]:_0x56af73([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]),[_0x56af73([0x61,0x6c,0x67])]:_0x56af73([0x45,0x53,0x32,0x35,0x36])},_0x10f651=_0x7896c1[_0x56af73([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x56af73([0x67,0x65,0x74])](_0x56af73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x174413(){let _0x582bc7,_0x667f61=null,_0x39bec5=null;try{if(_0x10f651==_0x56af73([0x47,0x50,0x4c]))return _0x56af73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x582bc7=_0x372242(),!_0x582bc7)return _0x56af73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x582bc7[_0x56af73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x39bec5=_0x47b323(_0x582bc7[_0x56af73([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x582bc7[_0x56af73([0x6a,0x74,0x69])])),await _0x254ca1()?_0x3a9660()?_0x43189a()?_0x56af73([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x384c0c()?(_0x582bc7[_0x56af73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56af73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x667f61=_0x5b6829(_0x56af73([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x582bc7[_0x56af73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x56af73([0x74,0x72,0x69,0x61,0x6c])&&(_0x667f61=_0x5b6829(_0x56af73([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2ccd3c()):_0x56af73([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x56af73([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x56af73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x56af73([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x43189a(){const _0x4664e4=[_0x56af73([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x56af73([0x74,0x72,0x69,0x61,0x6c])][_0x56af73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x582bc7[_0x56af73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5057bb/0x3e8:0xe10*_0x2d6de4;return _0x582bc7[_0x56af73([0x65,0x78,0x70])]<_0x4664e4;}function _0x3a9660(){const _0xda56cf=_0x582bc7[_0x56af73([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xda56cf&&(!!_0xda56cf[_0x56af73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56af73([0x2a]))||!!_0xda56cf[_0x56af73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56af73([0x46,0x4f,0x4f])));}function _0x384c0c(){const _0x6f7616=_0x582bc7[_0x56af73([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x6f7616||0x0==_0x6f7616[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe7417f}=new URL(window[_0x56af73([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x6f7616[_0x56af73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe7417f))return!0x0;const _0x41bbed=_0xe7417f[_0x56af73([0x73,0x70,0x6c,0x69,0x74])](_0x56af73([0x2e]));return _0x6f7616[_0x56af73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xb5db4c=>_0xb5db4c[_0x56af73([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56af73([0x2a])))[_0x56af73([0x6d,0x61,0x70])](_0x4540fa=>_0x4540fa[_0x56af73([0x73,0x70,0x6c,0x69,0x74])](_0x56af73([0x2e])))[_0x56af73([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x24fab2=>_0x24fab2[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x41bbed[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56af73([0x6d,0x61,0x70])](_0x478369=>Array(_0x41bbed[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x478369[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x56af73([0x66,0x69,0x6c,0x6c])](_0x478369[0x0]===_0x56af73([0x2a])?_0x56af73([0x2a]):'')[_0x56af73([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x478369))[_0x56af73([0x73,0x6f,0x6d,0x65])](_0x4bbb69=>_0x41bbed[_0x56af73([0x65,0x76,0x65,0x72,0x79])]((_0x1ef6a0,_0x59c405)=>_0x4bbb69[_0x59c405]===_0x1ef6a0||_0x4bbb69[_0x59c405]===_0x56af73([0x2a])));}function _0x2ccd3c(){return _0x667f61&&_0x39bec5?new window[(_0x56af73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x52fb49,_0x5b6973)=>{_0x667f61[_0x56af73([0x74,0x68,0x65,0x6e])](_0x52fb49,_0x5b6973),_0x39bec5[_0x56af73([0x74,0x68,0x65,0x6e])](_0x150d18=>{_0x150d18!=_0x56af73([0x56,0x61,0x6c,0x69,0x64])&&_0x52fb49(_0x150d18);},_0x5b6973);}):_0x667f61||_0x39bec5||_0x56af73([0x56,0x61,0x6c,0x69,0x64]);}}function _0x47b323(_0x2bdbcc,_0x10a243){return new window[(_0x56af73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x417451=>{if(_0x297765())return _0x417451(_0x56af73([0x56,0x61,0x6c,0x69,0x64]));_0x2bf0d7(),_0x7896c1[_0x56af73([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x56af73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x346d7c=!0x1;const _0x327011=_0x53f320();function _0x4c08be(_0x202eda){return!!_0x202eda&&(typeof _0x202eda===_0x56af73([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x202eda===_0x56af73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x202eda[_0x56af73([0x74,0x68,0x65,0x6e])]===_0x56af73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x202eda[_0x56af73([0x63,0x61,0x74,0x63,0x68])]===_0x56af73([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1246c1(_0x3fff99){_0x2a2f5d(_0x3fff99)[_0x56af73([0x74,0x68,0x65,0x6e])](_0x4d5602=>{if(!_0x4d5602||_0x4d5602[_0x56af73([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x56af73([0x6f,0x6b]))return _0x56af73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x26c4d1(_0x96d391(_0x327011+_0x10a243))!=_0x4d5602[_0x56af73([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x56af73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x56af73([0x56,0x61,0x6c,0x69,0x64]);})[_0x56af73([0x74,0x68,0x65,0x6e])](_0x409b15=>(_0x2dd480(),_0x409b15),()=>{const _0x5e4940=_0x46df37();return null==_0x5e4940?(_0x2dd480(),_0x56af73([0x56,0x61,0x6c,0x69,0x64])):_0x56af73(_0x5057bb-_0x5e4940>(0x63ae0106^_0x5473aa)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x56af73([0x74,0x68,0x65,0x6e])](_0x417451)[_0x56af73([0x63,0x61,0x74,0x63,0x68])](()=>{_0x417451(_0x56af73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x34da39=0x47946b86^_0x5473aa;function _0x2dd480(){const _0x5a8f50=_0x56af73([0x6c,0x6c,0x63,0x74,0x2d])+_0x26c4d1(_0x96d391(_0x2bdbcc)),_0x5aff42=_0x5c7445(_0x26c4d1(window[_0x56af73([0x4d,0x61,0x74,0x68])][_0x56af73([0x63,0x65,0x69,0x6c])](_0x5057bb/_0x34da39)));window[_0x56af73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56af73([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5a8f50,_0x5aff42);}function _0x46df37(){const _0x15b28f=_0x56af73([0x6c,0x6c,0x63,0x74,0x2d])+_0x26c4d1(_0x96d391(_0x2bdbcc)),_0xc3ae26=window[_0x56af73([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x56af73([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x15b28f);return _0xc3ae26?window[_0x56af73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c7445(_0xc3ae26),0x10)*_0x34da39:null;}function _0x2a2f5d(_0x2e66de){return new window[(_0x56af73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2637cd,_0x10b89c)=>{_0x2e66de[_0x56af73([0x74,0x68,0x65,0x6e])](_0x2637cd,_0x10b89c),window[_0x56af73([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x10b89c,0x47a351c6^_0x5473aa);});}}_0x7896c1[_0x56af73([0x6f,0x6e])](_0x56af73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x304104,_0x3bc40b)=>{if(_0x3bc40b[0x0]!=_0x2bdbcc)return _0x417451(_0x56af73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3bc40b[0x1]={..._0x3bc40b[0x1],[_0x56af73([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x327011};},{[_0x56af73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56af73([0x68,0x69,0x67,0x68])}),_0x7896c1[_0x56af73([0x6f,0x6e])](_0x56af73([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c950a=>{_0x4c08be(_0x2c950a[_0x56af73([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x346d7c=!0x0,_0x1246c1(_0x2c950a[_0x56af73([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x56af73([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x56af73([0x6c,0x6f,0x77])}),_0x3f0b6d[_0x56af73([0x74,0x68,0x65,0x6e])](()=>{_0x346d7c||_0x417451(_0x56af73([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x297765(){return _0x7896c1[_0x56af73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56af73([0x76,0x69,0x65,0x77])][_0x56af73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x56af73([0x61,0x75,0x74,0x6f]);}function _0x2bf0d7(){_0x7896c1[_0x56af73([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x56af73([0x76,0x69,0x65,0x77])][_0x56af73([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x56af73([0x61,0x75,0x74,0x6f]);}}function _0x5b6829(_0x128200){const _0x4476e3=[new window[(_0x56af73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc72225=>setTimeout(_0xc72225,0x47abbbca^_0x5473aa)),_0x3f0b6d[_0x56af73([0x74,0x68,0x65,0x6e])](()=>new window[(_0x56af73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fd2c6=>{let _0x4ab11c=0x0;_0x7896c1[_0x56af73([0x6d,0x6f,0x64,0x65,0x6c])][_0x56af73([0x6f,0x6e])](_0x56af73([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43b7e8,_0x1f75fb)=>{_0x1f75fb[0x0][_0x56af73([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4ab11c++,_0x4ab11c==(0x47a284fe^_0x5473aa)&&(_0x2fd2c6(),_0x43b7e8[_0x56af73([0x6f,0x66,0x66])]());});}))];return window[_0x56af73([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x56af73([0x72,0x61,0x63,0x65])](_0x4476e3)[_0x56af73([0x74,0x68,0x65,0x6e])](()=>_0x128200);}async function _0x3ff7d9(){await _0x3f0b6d,_0x7896c1[_0x56af73([0x6d,0x6f,0x64,0x65,0x6c])][_0x56af73([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x258adb,_0x7896c1[_0x56af73([0x6d,0x6f,0x64,0x65,0x6c])][_0x56af73([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x258adb,_0x7896c1[_0x56af73([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x56af73([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xebbde5(_0xd3b528){const _0xdf6c94=_0xf55369();_0x7896c1[_0xdf6c94]=_0x56af73([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xd3b528,_0xd3b528!=_0x56af73([0x56,0x61,0x6c,0x69,0x64])&&_0x3ff7d9();}function _0xf55369(){const _0x259196=window[_0x56af73([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x56af73([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x56af73([0x6e,0x6f,0x77])]())[_0x56af73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x56af73([0x2e]),'');let _0x50e191=_0x56af73([0x75]);for(let _0x595349=0x0;_0x595349<_0x259196[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x595349+=0x2){let _0xd5dd52=window[_0x56af73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x259196[_0x56af73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x595349,_0x595349+0x2));_0xd5dd52>=_0x3d176b[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xd5dd52-=_0x3d176b[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x50e191+=_0x3d176b[_0xd5dd52];}return _0x50e191;}function _0x372242(){const _0x512fa5=_0x10f651[_0x56af73([0x73,0x70,0x6c,0x69,0x74])](_0x56af73([0x2e]));if(0x3!=_0x512fa5[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5974fc(_0x512fa5[0x1]);function _0x5974fc(_0x5480bd){const _0x3cc231=_0x205453(_0x5480bd);return _0x3cc231&&_0x381f21()?_0x3cc231:null;function _0x381f21(){const _0x52c968=_0x3cc231[_0x56af73([0x6a,0x74,0x69])],_0x4aedf5=window[_0x56af73([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x52c968[_0x56af73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x52c968[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2dc425={..._0x3cc231,[_0x56af73([0x6a,0x74,0x69])]:_0x52c968[_0x56af73([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x52c968[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2dc425[_0x56af73([0x76,0x63])],_0x96d391(_0x2dc425)==_0x4aedf5;}}}async function _0x254ca1(){let _0x3cfda4=!0x0;try{const _0x47c0c1=_0x10f651[_0x56af73([0x73,0x70,0x6c,0x69,0x74])](_0x56af73([0x2e])),[_0x1f034c,_0x55bbc4,_0x4e6076]=_0x47c0c1;return _0x396a6e(_0x1f034c),await _0x244a2a(_0x1f034c,_0x55bbc4,_0x4e6076),_0x3cfda4;}catch{return!0x1;}function _0x396a6e(_0x29258a){const _0x1d8adb=_0x205453(_0x29258a);_0x1d8adb&&_0x1d8adb[_0x56af73([0x61,0x6c,0x67])]==_0x56af73([0x45,0x53,0x32,0x35,0x36])||(_0x3cfda4=!0x1);}async function _0x244a2a(_0x48fded,_0x1e81eb,_0x44fe44){const _0x2d9220=window[_0x56af73([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x56af73([0x66,0x72,0x6f,0x6d])](_0x4bc634(_0x44fe44),_0x47f641=>_0x47f641[_0x56af73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5583fb=new window[(_0x56af73([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x56af73([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48fded+_0x56af73([0x2e])+_0x1e81eb),_0x2ba78a=window[_0x56af73([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x56af73([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2ba78a)return;const _0x2ba006=await _0x2ba78a[_0x56af73([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x56af73([0x6a,0x77,0x6b]),_0x20a45b,{[_0x56af73([0x6e,0x61,0x6d,0x65])]:_0x56af73([0x45,0x43,0x44,0x53,0x41]),[_0x56af73([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x56af73([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x56af73([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2ba78a[_0x56af73([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x56af73([0x6e,0x61,0x6d,0x65])]:_0x56af73([0x45,0x43,0x44,0x53,0x41]),[_0x56af73([0x68,0x61,0x73,0x68])]:{[_0x56af73([0x6e,0x61,0x6d,0x65])]:_0x56af73([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2ba006,_0x2d9220,_0x5583fb)||(_0x3cfda4=!0x1);}}function _0x205453(_0x50ef72){return _0x50ef72[_0x56af73([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x56af73([0x65,0x79]))?JSON[_0x56af73([0x70,0x61,0x72,0x73,0x65])](_0x4bc634(_0x50ef72)):null;}function _0x4bc634(_0x2ece3a){return window[_0x56af73([0x61,0x74,0x6f,0x62])](_0x2ece3a[_0x56af73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x56af73([0x2b]))[_0x56af73([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x56af73([0x2f])));}function _0x96d391(_0x4278cd){let _0x239822=0x1505;function _0x1e8749(_0x4a8c8b){for(let _0x16627e=0x0;_0x16627e<_0x4a8c8b[_0x56af73([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16627e++){const _0x5034f0=_0x4a8c8b[_0x56af73([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x16627e);_0x239822=(_0x239822<<0x5)+_0x239822+_0x5034f0,_0x239822&=_0x239822;}}function _0x384d4e(_0x1a4d81){Array[_0x56af73([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1a4d81)?_0x1a4d81[_0x56af73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x384d4e):_0x1a4d81&&typeof _0x1a4d81==_0x56af73([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x56af73([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1a4d81)[_0x56af73([0x73,0x6f,0x72,0x74])]()[_0x56af73([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4753d7,_0x26ab00])=>{_0x1e8749(_0x4753d7),_0x384d4e(_0x26ab00);}):_0x1e8749(window[_0x56af73([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1a4d81));}return _0x384d4e(_0x4278cd),_0x239822>>>0x0;}function _0x26c4d1(_0x1aaf7f){return _0x1aaf7f[_0x56af73([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x56af73([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x56af73([0x30]));}function _0x5c7445(_0x1549bb){return _0x1549bb[_0x56af73([0x73,0x70,0x6c,0x69,0x74])]('')[_0x56af73([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x56af73([0x6a,0x6f,0x69,0x6e])]('');}function _0x258adb(){}function _0x56af73(_0x5f2c0b){return _0x5f2c0b['map'](_0xa5a1de=>String['fromCharCode'](_0xa5a1de))['join']('');}_0xebbde5(await _0x174413());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3e8e29){const {plugins:_0x248648,editing:_0x572473,model:_0x16c072}=this['editor'],_0x519b1b=_0x248648['get'](_0x19b7a8)['getFootnote'](_0x3e8e29);return!!_0x519b1b&&(_0x16c072['change'](_0x8427d=>{_0x8427d['setSelection'](_0x8427d['createPositionAt'](_0x519b1b['definition'],'end'));}),_0x572473['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4fdf5b){const {plugins:_0x5893d9,editing:_0x833f03,model:_0x1410ac}=this['editor'],_0x3b0a1d=_0x5893d9['get'](_0x19b7a8)['getFootnote'](_0x4fdf5b);return!!_0x3b0a1d&&(_0x1410ac['change'](_0x5d1fcb=>{_0x5d1fcb['setSelection'](_0x3b0a1d['reference'],'on');}),_0x833f03['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x45590a}=this['editor']['model'],_0x293d1d=this['editor']['config']['get']('footnotes.multiBlock');_0x45590a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x45590a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x45590a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x293d1d?_0x45590a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x45590a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x45590a['addChildCheck'](_0x1c7226=>{for(const _0x34434d of _0x1c7226)if('footnoteDefinition'===_0x34434d['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2bbb65}=this,{conversion:_0x20224a,editing:_0x4f4347}=_0x2bbb65,{t:t}=_0x2bbb65['locale'];_0x20224a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x14b157,{writer:_0x4979f7,consumable:_0x1ae55b})=>{const _0x10dad3=_0x14b157['getChild'](0x0);if(!_0x10dad3||!_0x10dad3['is']('element','a'))return null;const _0x273546=_0x10dad3['getAttribute']('href')||'';if(!_0x273546['startsWith']('#'))return null;const _0x28c9d7=_0x273546['replace'](/^#/,'');if(!_0x28c9d7)return null;_0x1ae55b['consume'](_0x10dad3,{'name':!0x0,'attributes':['href']});for(const {item:_0x492592}of _0x4f4347['view']['createRangeIn'](_0x10dad3))_0x492592['is']('$textProxy')?_0x1ae55b['consume'](_0x492592['textNode'],{'name':!0x0}):_0x492592['is']('element')&&_0x1ae55b['consume'](_0x492592,{'name':!0x0});return _0x4979f7['createElement']('footnoteRef',{'footnoteId':_0x28c9d7});}}),_0x20224a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2ff1ed,{writer:_0x3d555d})=>D(_0x2ff1ed,_0x3d555d)}),_0x20224a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4ca167,{writer:_0x1aedba})=>{const _0x534f6c=_0x4ca167['getAttribute']('footnoteCounter');return _0x3d36f7(D(_0x4ca167,_0x1aedba),_0x1aedba,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x534f6c)});}});}['_defineDefinitionsConverters'](){const {editor:_0x6b6ccf}=this,{t:t}=_0x6b6ccf['locale'],{conversion:_0x44fe91}=_0x6b6ccf;_0x44fe91['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x44fe91['for']('upcast')['add'](_0x1e5e1c=>{_0x1e5e1c['on']('element:ol',(_0x26c189,_0x1cfddf,_0x50c785)=>{const _0x5c6822=_0x1cfddf['viewItem'];if(!_0x5c6822['hasClass']('footnotes-list')||!_0x1cfddf['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x50c785['consumable']['consume'](_0x5c6822,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x544a60,modelCursor:_0xa95e27}=_0x50c785['convertChildren'](_0x1cfddf['viewItem'],_0x1cfddf['modelCursor']);_0x1cfddf['modelRange']=_0x544a60,_0x1cfddf['modelCursor']=_0xa95e27;}),_0x1e5e1c['on']('element:hr',(_0x5660d2,_0x2b61d4,_0xdfd060)=>{const _0x1eda9a=_0x2b61d4['viewItem'];_0x1eda9a['hasClass']('footnotes-divider')&&_0x2b61d4['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xdfd060['consumable']['consume'](_0x1eda9a,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x44fe91['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x262339,{writer:_0x11f441})=>v(_0x11f441)}),_0x44fe91['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1b9935,{writer:_0xd92bf3})=>{const _0x5c286b=v(_0xd92bf3,{'data-footnotes-list-label':t('Footnotes')}),_0xae615e=_0x3d36f7(_0x5c286b,_0xd92bf3,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xd92bf3['setCustomProperty']('footnotesDefinitions',!0x0,_0xae615e),_0xae615e;}});}['_defineDefinitionConverters'](){const {editor:_0x5eff1c}=this,{conversion:_0x5a603c,locale:_0x2ca19a}=_0x5eff1c,_0x1bfe1a=_0x5eff1c['config']['get']('footnotes.multiBlock');_0x5a603c['for']('upcast')['add'](_0xf357b2=>{_0xf357b2['on']('element:li',(_0x1c6565,_0x1965c5,_0x121a3f)=>{const _0x59f9c6=_0x1965c5['viewItem'];if(!_0x59f9c6['hasClass']('footnote-definition')||!_0x59f9c6['getAttribute']('id'))return;const _0x230a02=_0x59f9c6['parent'];if(!_0x230a02['is']('element','ol')||!_0x230a02['hasClass']('footnotes-list'))return;if(!_0x121a3f['consumable']['test'](_0x59f9c6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3bca5f=_0x121a3f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x59f9c6['getAttribute']('id')});if(!_0x121a3f['safeInsert'](_0x3bca5f,_0x1965c5['modelCursor']))return;_0x121a3f['consumable']['consume'](_0x59f9c6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4ea38b=Array['from'](_0x59f9c6['getChildren']())['find'](_0x259ad5=>_0x259ad5['is']('element')&&_0x259ad5['hasClass']('footnote-content'));for(const _0x2dac6a of _0x59f9c6['getChildren']())_0x2dac6a['is']('element')&&(_0x121a3f['consumable']['consume'](_0x2dac6a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x121a3f['consumable']['consume'](_0x2dac6a,{'name':!0x0,'classes':'footnote-content'}));if(_0x4ea38b){if(_0x1bfe1a)_0x121a3f['convertChildren'](_0x4ea38b,_0x3bca5f);else{const _0x1d9299=_0x121a3f['writer']['createElement']('footnoteInlineContent');_0x121a3f['writer']['insert'](_0x1d9299,_0x3bca5f),_0x121a3f['convertChildren'](_0x4ea38b,_0x1d9299);}}_0x121a3f['updateConversionResult'](_0x3bca5f,_0x1965c5);});}),_0x5a603c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1fe252,{writer:_0x29f19f})=>b(_0x1fe252,_0x29f19f,_0x2ca19a,{'dataPipeline':!0x0})}),_0x5a603c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x357a44,{writer:_0x3b150f})=>b(_0x357a44,_0x3b150f,_0x2ca19a)});}['_defineBogusParagraphConverters'](){const {editor:_0x3c370e}=this,{conversion:_0x2219f2}=_0x3c370e;_0x3c370e['config']['get']('footnotes.multiBlock')?(_0x2219f2['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2219f2['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3c370e['model']['document'],'change:data',()=>{!function(_0x5acd1a,_0x30bdfe){const _0xd7c09c=_0x5acd1a['document']['differ'],_0x24616f=new Set();for(const _0x15e56e of _0xd7c09c['getChanges']()){const _0x586cd='attribute'==_0x15e56e['type']?_0x15e56e['range']['start']['parent']:_0x15e56e['position']['parent'];_0x586cd['is']('element','footnoteDefinition')&&_0x24616f['add'](_0x586cd);}for(const _0x150755 of _0x24616f['values']()){const _0x25b987=Array['from'](_0x150755['getChildren']())['filter'](_0x5dcef1=>g(_0x5dcef1,_0x30bdfe['mapper']));for(const _0x53507e of _0x25b987)_0x30bdfe['reconvertItem'](_0x53507e);}}(_0x3c370e['model'],_0x3c370e['editing']);})):(_0x2219f2['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2219f2['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3fee91,{writer:_0x400e41})=>{const _0xc07ec4=_0x400e41['createContainerElement']('span');return _0x400e41['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xc07ec4),_0xc07ec4;}}));}['_defineKeyboardHandlers'](){const {editor:_0x47b440}=this,{editing:_0x13904b,t:t}=_0x47b440,_0x273ebf=_0x47b440['model']['document']['selection'];_0x47b440['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x47b440['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x13904b['view']['document'],'enter',(_0x5e1012,_0x3935b3)=>{const _0x1e7e22=function(_0x452279){const _0xdfeeb4=_0x452279['getSelectedElement']();if(_0xdfeeb4?.['is']('element','footnoteRef'))return _0xdfeeb4;return null;}(_0x273ebf);if(_0x1e7e22){const _0x2d7a68=_0x1e7e22['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2d7a68),_0x3935b3['preventDefault'](),_0x5e1012['stop']();}},{'context':_0x3e18ec});}['_defineClickHandlers'](){const {editor:_0x563dc4}=this,{editing:_0x2bda19}=_0x563dc4;_0x563dc4['editing']['view']['addObserver'](_0x2bc4f5),_0x563dc4['editing']['view']['addObserver'](_0x1bd508);let _0x1a13c7=!0x1;this['listenTo'](_0x2bda19['view']['document'],'pointerdown',(_0x5e575b,_0x39beed)=>{const {target:_0x43ba5f}=_0x39beed,_0x2e3e04=_0x2bda19['view']['document']['selection'];_0x1a13c7=!!(_0x43ba5f?.['is']('element','a')&&_0x43ba5f['parent']?.['is']('element','sup')&&_0x43ba5f['parent']['hasClass']('footnote'))&&_0x2e3e04['getSelectedElement']()===_0x43ba5f['parent'];},{'priority':'high'}),this['listenTo'](_0x2bda19['view']['document'],'click',(_0x9dfaf0,_0x2c4a07)=>{const {target:_0x4dbdec}=_0x2c4a07;if(!_0x4dbdec?.['is']('element','a'))return;if(_0x4dbdec['parent']?.['is']('element','sup')&&_0x4dbdec['parent']['hasClass']('footnote')&&!_0x1a13c7)return void _0x2c4a07['preventDefault']();let _0x54b0fb=_0x4dbdec['getAttribute']('href');if(!_0x54b0fb?.['startsWith']('#'))return;_0x54b0fb=_0x54b0fb['slice'](0x1);let _0x84f183=!0x1;(_0x54b0fb['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x54b0fb['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x54b0fb))&&(_0x84f183=!0x0),_0x84f183&&(_0x2c4a07['preventDefault'](),_0x9dfaf0['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x14009c}={}){return(_0x3a2d55,{writer:_0x1191fe})=>{if(!p(_0x3a2d55))return null;if(!_0x14009c)return _0x1191fe['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4486bf=_0x1191fe['createContainerElement']('p');return _0x1191fe['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4486bf),_0x4486bf;};}function p(_0x2767e7){const {parent:_0x33e7f3}=_0x2767e7;if(!_0x33e7f3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x33e7f3['childCount'])return!0x1;for(const _0x295408 of _0x2767e7['getAttributeKeys']())if(!_0x295408['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x295408)return!0x1;return!0x0;}function g(_0x2bfe60,_0xc2c180){if(!_0x2bfe60['is']('element','paragraph'))return!0x1;const _0x6f75f5=_0xc2c180['toViewElement'](_0x2bfe60);return!!_0x6f75f5&&p(_0x2bfe60)!==_0x6f75f5['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x1ab9d0){return _0x3e18ec(_0x1ab9d0)&&_0x1ab9d0['is']('containerElement')&&!!_0x1ab9d0['getCustomProperty']('footnotesDefinitions');}function v(_0x50cc5d,_0x483369={}){const _0xe639f9=_0x50cc5d['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x183e76=_0x50cc5d['createContainerElement']('ol',{'class':'footnotes-list'},_0x50cc5d['createSlot']());return _0x50cc5d['createContainerElement']('div',{'class':'footnotes',..._0x483369},[_0xe639f9,_0x183e76]);}function D(_0x312e61,_0x51c65c){const _0x4366a0=_0x312e61['getAttribute']('footnoteId'),_0xa30ecb=_0x312e61['getAttribute']('footnoteCounter'),_0x3c7c2d=_0x51c65c['createUIElement']('a',{'href':'#'+_0x4366a0},function(_0x43ed16){const _0x2d3c3b=this['toDomElement'](_0x43ed16);return _0x2d3c3b['textContent']=_0xa30ecb,_0x2d3c3b;}),_0x180561=_0x51c65c['createContainerElement']('sup',{'id':'ref-'+_0x4366a0,'class':'footnote'},[_0x3c7c2d]);return _0x180561['getFillerOffset']=()=>null,_0x180561;}function b(_0x1ace98,_0x8ecb06,_0x1a3e18,{dataPipeline:_0x28111a}={}){const {t:t}=_0x1a3e18,_0x5539ea=_0x1ace98['getAttribute']('footnoteId'),_0x5ad97b=_0x8ecb06['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5539ea},function(_0xfa3e86){const _0x4e5813=this['toDomElement'](_0xfa3e86);return _0x4e5813['innerText']='^',_0x4e5813;}),_0x4035f5=_0x28111a?_0x8ecb06['createContainerElement']('div',{'class':'footnote-content'}):_0x2812d7(_0x8ecb06['createEditableElement']('div',{'class':'footnote-content'}),_0x8ecb06,{'label':t('Footnote\x20content.')});return _0x8ecb06['insert'](_0x8ecb06['createPositionAt'](_0x4035f5,0x0),_0x8ecb06['createSlot']()),_0x8ecb06['createContainerElement']('li',{'class':'footnote-definition','id':_0x5539ea},[_0x5ad97b,_0x4035f5]);}
23
+ import{Plugin as _0x4bdc1d}from'ckeditor5/src/core.js';import{isWidget as _0x463bf2,toWidget as _0x6c659a,toWidgetEditable as _0x12e567}from'ckeditor5/src/widget.js';import{uid as _0x49e535}from'ckeditor5/src/utils.js';import{PointerObserver as _0x74eecd,ClickObserver as _0x3ded8f}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x290725}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x14c807}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4bdc1d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x290725];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x467917}=this;_0x467917['config']['define']('footnotes.multiBlock',!0x0),_0x467917['commands']['add']('insertFootnote',new _0x14c807(_0x467917)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2b7888){const _0x284b71=_0x1f9c9a([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]),_0x97a572=0x47a28506,_0x26592b=0x47a5fe86^_0x97a572,_0x1e5d52=window[_0x1f9c9a([0x44,0x61,0x74,0x65])][_0x1f9c9a([0x6e,0x6f,0x77])](),_0x43cc80=_0x2b7888[_0x1f9c9a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x592fd2=new window[(_0x1f9c9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x574743=>{_0x43cc80[_0x1f9c9a([0x6f,0x6e,0x63,0x65])](_0x1f9c9a([0x72,0x65,0x61,0x64,0x79]),_0x574743);}),_0x4769ad={[_0x1f9c9a([0x6b,0x74,0x79])]:_0x1f9c9a([0x45,0x43]),[_0x1f9c9a([0x75,0x73,0x65])]:_0x1f9c9a([0x73,0x69,0x67]),[_0x1f9c9a([0x63,0x72,0x76])]:_0x1f9c9a([0x50,0x2d,0x32,0x35,0x36]),[_0x1f9c9a([0x78])]:_0x1f9c9a([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]),[_0x1f9c9a([0x79])]:_0x1f9c9a([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]),[_0x1f9c9a([0x61,0x6c,0x67])]:_0x1f9c9a([0x45,0x53,0x32,0x35,0x36])},_0x323b29=_0x43cc80[_0x1f9c9a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f9c9a([0x67,0x65,0x74])](_0x1f9c9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x2bc71c(){let _0x543838,_0x154306=null,_0x54d2eb=null;try{if(_0x323b29==_0x1f9c9a([0x47,0x50,0x4c]))return _0x1f9c9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x543838=_0x5d7b49(),!_0x543838)return _0x1f9c9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x543838[_0x1f9c9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x54d2eb=_0x1dad8d(_0x543838[_0x1f9c9a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x543838[_0x1f9c9a([0x6a,0x74,0x69])])),await _0x5c1171()?_0x425470()?_0x4a9602()?_0x1f9c9a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6978a6()?(_0x543838[_0x1f9c9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f9c9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x154306=_0x25fad5(_0x1f9c9a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x543838[_0x1f9c9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f9c9a([0x74,0x72,0x69,0x61,0x6c])&&(_0x154306=_0x25fad5(_0x1f9c9a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4297ab()):_0x1f9c9a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f9c9a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f9c9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f9c9a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4a9602(){const _0x50a329=[_0x1f9c9a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f9c9a([0x74,0x72,0x69,0x61,0x6c])][_0x1f9c9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x543838[_0x1f9c9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1e5d52/0x3e8:0xe10*_0x26592b;return _0x543838[_0x1f9c9a([0x65,0x78,0x70])]<_0x50a329;}function _0x425470(){const _0x149703=_0x543838[_0x1f9c9a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x149703&&(!!_0x149703[_0x1f9c9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f9c9a([0x2a]))||!!_0x149703[_0x1f9c9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f9c9a([0x46,0x4f,0x4f])));}function _0x6978a6(){const _0x42ab14=_0x543838[_0x1f9c9a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x42ab14||0x0==_0x42ab14[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x376dbf}=new URL(window[_0x1f9c9a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x42ab14[_0x1f9c9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x376dbf))return!0x0;const _0xe9431e=_0x376dbf[_0x1f9c9a([0x73,0x70,0x6c,0x69,0x74])](_0x1f9c9a([0x2e]));return _0x42ab14[_0x1f9c9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x973c9c=>_0x973c9c[_0x1f9c9a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f9c9a([0x2a])))[_0x1f9c9a([0x6d,0x61,0x70])](_0x459343=>_0x459343[_0x1f9c9a([0x73,0x70,0x6c,0x69,0x74])](_0x1f9c9a([0x2e])))[_0x1f9c9a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x133303=>_0x133303[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xe9431e[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f9c9a([0x6d,0x61,0x70])](_0x1c3369=>Array(_0xe9431e[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1c3369[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f9c9a([0x66,0x69,0x6c,0x6c])](_0x1c3369[0x0]===_0x1f9c9a([0x2a])?_0x1f9c9a([0x2a]):'')[_0x1f9c9a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1c3369))[_0x1f9c9a([0x73,0x6f,0x6d,0x65])](_0x28cca0=>_0xe9431e[_0x1f9c9a([0x65,0x76,0x65,0x72,0x79])]((_0xb4c536,_0x1630cb)=>_0x28cca0[_0x1630cb]===_0xb4c536||_0x28cca0[_0x1630cb]===_0x1f9c9a([0x2a])));}function _0x4297ab(){return _0x154306&&_0x54d2eb?new window[(_0x1f9c9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x146543,_0x19b1aa)=>{_0x154306[_0x1f9c9a([0x74,0x68,0x65,0x6e])](_0x146543,_0x19b1aa),_0x54d2eb[_0x1f9c9a([0x74,0x68,0x65,0x6e])](_0x4cd612=>{_0x4cd612!=_0x1f9c9a([0x56,0x61,0x6c,0x69,0x64])&&_0x146543(_0x4cd612);},_0x19b1aa);}):_0x154306||_0x54d2eb||_0x1f9c9a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1dad8d(_0x266a6a,_0x2ac841){return new window[(_0x1f9c9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20c728=>{if(_0x1c9983())return _0x20c728(_0x1f9c9a([0x56,0x61,0x6c,0x69,0x64]));_0x1446d0(),_0x43cc80[_0x1f9c9a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f9c9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a1a26=!0x1;const _0x559591=_0x49e535();function _0x5c721b(_0x222830){return!!_0x222830&&(typeof _0x222830===_0x1f9c9a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x222830===_0x1f9c9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x222830[_0x1f9c9a([0x74,0x68,0x65,0x6e])]===_0x1f9c9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x222830[_0x1f9c9a([0x63,0x61,0x74,0x63,0x68])]===_0x1f9c9a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x397a25(_0x3861bb){_0x2522d8(_0x3861bb)[_0x1f9c9a([0x74,0x68,0x65,0x6e])](_0x7bda8e=>{if(!_0x7bda8e||_0x7bda8e[_0x1f9c9a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f9c9a([0x6f,0x6b]))return _0x1f9c9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d9fbb(_0x2ef73d(_0x559591+_0x2ac841))!=_0x7bda8e[_0x1f9c9a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f9c9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f9c9a([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f9c9a([0x74,0x68,0x65,0x6e])](_0x4d4e99=>(_0x38cfe9(),_0x4d4e99),()=>{const _0x491294=_0x2ea308();return null==_0x491294?(_0x38cfe9(),_0x1f9c9a([0x56,0x61,0x6c,0x69,0x64])):_0x1f9c9a(_0x1e5d52-_0x491294>(0x63ae0106^_0x97a572)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f9c9a([0x74,0x68,0x65,0x6e])](_0x20c728)[_0x1f9c9a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20c728(_0x1f9c9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x52dfc2=0x47946b86^_0x97a572;function _0x38cfe9(){const _0x2a136c=_0x1f9c9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d9fbb(_0x2ef73d(_0x266a6a)),_0x34fb44=_0x3aaad9(_0x5d9fbb(window[_0x1f9c9a([0x4d,0x61,0x74,0x68])][_0x1f9c9a([0x63,0x65,0x69,0x6c])](_0x1e5d52/_0x52dfc2)));window[_0x1f9c9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f9c9a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2a136c,_0x34fb44);}function _0x2ea308(){const _0x1b70be=_0x1f9c9a([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d9fbb(_0x2ef73d(_0x266a6a)),_0x237c13=window[_0x1f9c9a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f9c9a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b70be);return _0x237c13?window[_0x1f9c9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3aaad9(_0x237c13),0x10)*_0x52dfc2:null;}function _0x2522d8(_0x36a13f){return new window[(_0x1f9c9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8d84cc,_0x4bc2c8)=>{_0x36a13f[_0x1f9c9a([0x74,0x68,0x65,0x6e])](_0x8d84cc,_0x4bc2c8),window[_0x1f9c9a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4bc2c8,0x47a351c6^_0x97a572);});}}_0x43cc80[_0x1f9c9a([0x6f,0x6e])](_0x1f9c9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa4e7a1,_0x30dc73)=>{if(_0x30dc73[0x0]!=_0x266a6a)return _0x20c728(_0x1f9c9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x30dc73[0x1]={..._0x30dc73[0x1],[_0x1f9c9a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x559591};},{[_0x1f9c9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f9c9a([0x68,0x69,0x67,0x68])}),_0x43cc80[_0x1f9c9a([0x6f,0x6e])](_0x1f9c9a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x75fcbd=>{_0x5c721b(_0x75fcbd[_0x1f9c9a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a1a26=!0x0,_0x397a25(_0x75fcbd[_0x1f9c9a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f9c9a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f9c9a([0x6c,0x6f,0x77])}),_0x592fd2[_0x1f9c9a([0x74,0x68,0x65,0x6e])](()=>{_0x1a1a26||_0x20c728(_0x1f9c9a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1c9983(){return _0x43cc80[_0x1f9c9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f9c9a([0x76,0x69,0x65,0x77])][_0x1f9c9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f9c9a([0x61,0x75,0x74,0x6f]);}function _0x1446d0(){_0x43cc80[_0x1f9c9a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f9c9a([0x76,0x69,0x65,0x77])][_0x1f9c9a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f9c9a([0x61,0x75,0x74,0x6f]);}}function _0x25fad5(_0x5e2fc9){const _0x2d9110=[new window[(_0x1f9c9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x53dfdf=>setTimeout(_0x53dfdf,0x47abbbca^_0x97a572)),_0x592fd2[_0x1f9c9a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f9c9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x513007=>{let _0x2aa438=0x0;_0x43cc80[_0x1f9c9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f9c9a([0x6f,0x6e])](_0x1f9c9a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb66b13,_0x4ab870)=>{_0x4ab870[0x0][_0x1f9c9a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2aa438++,_0x2aa438==(0x47a284fe^_0x97a572)&&(_0x513007(),_0xb66b13[_0x1f9c9a([0x6f,0x66,0x66])]());});}))];return window[_0x1f9c9a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f9c9a([0x72,0x61,0x63,0x65])](_0x2d9110)[_0x1f9c9a([0x74,0x68,0x65,0x6e])](()=>_0x5e2fc9);}async function _0x3a8e59(){await _0x592fd2,_0x43cc80[_0x1f9c9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f9c9a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3d532e,_0x43cc80[_0x1f9c9a([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f9c9a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3d532e,_0x43cc80[_0x1f9c9a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f9c9a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3369a5(_0x3134b3){const _0x59c4d4=_0x1c4def();_0x43cc80[_0x59c4d4]=_0x1f9c9a([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3134b3,_0x3134b3!=_0x1f9c9a([0x56,0x61,0x6c,0x69,0x64])&&_0x3a8e59();}function _0x1c4def(){const _0x4a4956=window[_0x1f9c9a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f9c9a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f9c9a([0x6e,0x6f,0x77])]())[_0x1f9c9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f9c9a([0x2e]),'');let _0x13e617=_0x1f9c9a([0x75]);for(let _0x444413=0x0;_0x444413<_0x4a4956[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x444413+=0x2){let _0x1f8631=window[_0x1f9c9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4a4956[_0x1f9c9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x444413,_0x444413+0x2));_0x1f8631>=_0x284b71[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1f8631-=_0x284b71[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x13e617+=_0x284b71[_0x1f8631];}return _0x13e617;}function _0x5d7b49(){const _0x4f2d4b=_0x323b29[_0x1f9c9a([0x73,0x70,0x6c,0x69,0x74])](_0x1f9c9a([0x2e]));if(0x3!=_0x4f2d4b[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35b0fa(_0x4f2d4b[0x1]);function _0x35b0fa(_0x9a4249){const _0x3da185=_0x1c1462(_0x9a4249);return _0x3da185&&_0xbed856()?_0x3da185:null;function _0xbed856(){const _0x3ae3b3=_0x3da185[_0x1f9c9a([0x6a,0x74,0x69])],_0x4bc1b1=window[_0x1f9c9a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae3b3[_0x1f9c9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3ae3b3[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2b5f38={..._0x3da185,[_0x1f9c9a([0x6a,0x74,0x69])]:_0x3ae3b3[_0x1f9c9a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3ae3b3[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2b5f38[_0x1f9c9a([0x76,0x63])],_0x2ef73d(_0x2b5f38)==_0x4bc1b1;}}}async function _0x5c1171(){let _0x57f27d=!0x0;try{const _0x1d74d=_0x323b29[_0x1f9c9a([0x73,0x70,0x6c,0x69,0x74])](_0x1f9c9a([0x2e])),[_0x3e6691,_0x67140c,_0x4bc9aa]=_0x1d74d;return _0x392c9e(_0x3e6691),await _0xbaf58a(_0x3e6691,_0x67140c,_0x4bc9aa),_0x57f27d;}catch{return!0x1;}function _0x392c9e(_0x540371){const _0x468c04=_0x1c1462(_0x540371);_0x468c04&&_0x468c04[_0x1f9c9a([0x61,0x6c,0x67])]==_0x1f9c9a([0x45,0x53,0x32,0x35,0x36])||(_0x57f27d=!0x1);}async function _0xbaf58a(_0x26868d,_0x411221,_0xc6dec2){const _0x1c6656=window[_0x1f9c9a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f9c9a([0x66,0x72,0x6f,0x6d])](_0x3eb26a(_0xc6dec2),_0x45c419=>_0x45c419[_0x1f9c9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xe124bd=new window[(_0x1f9c9a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f9c9a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x26868d+_0x1f9c9a([0x2e])+_0x411221),_0x448fef=window[_0x1f9c9a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f9c9a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x448fef)return;const _0x1a599a=await _0x448fef[_0x1f9c9a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f9c9a([0x6a,0x77,0x6b]),_0x4769ad,{[_0x1f9c9a([0x6e,0x61,0x6d,0x65])]:_0x1f9c9a([0x45,0x43,0x44,0x53,0x41]),[_0x1f9c9a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f9c9a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f9c9a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x448fef[_0x1f9c9a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f9c9a([0x6e,0x61,0x6d,0x65])]:_0x1f9c9a([0x45,0x43,0x44,0x53,0x41]),[_0x1f9c9a([0x68,0x61,0x73,0x68])]:{[_0x1f9c9a([0x6e,0x61,0x6d,0x65])]:_0x1f9c9a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a599a,_0x1c6656,_0xe124bd)||(_0x57f27d=!0x1);}}function _0x1c1462(_0x453c3b){return _0x453c3b[_0x1f9c9a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f9c9a([0x65,0x79]))?JSON[_0x1f9c9a([0x70,0x61,0x72,0x73,0x65])](_0x3eb26a(_0x453c3b)):null;}function _0x3eb26a(_0x941196){return window[_0x1f9c9a([0x61,0x74,0x6f,0x62])](_0x941196[_0x1f9c9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f9c9a([0x2b]))[_0x1f9c9a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f9c9a([0x2f])));}function _0x2ef73d(_0x313be3){let _0x5483a5=0x1505;function _0x16d5ea(_0x521b2b){for(let _0x5a5fb7=0x0;_0x5a5fb7<_0x521b2b[_0x1f9c9a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5a5fb7++){const _0x1b16b5=_0x521b2b[_0x1f9c9a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5a5fb7);_0x5483a5=(_0x5483a5<<0x5)+_0x5483a5+_0x1b16b5,_0x5483a5&=_0x5483a5;}}function _0x36a590(_0x23d3cb){Array[_0x1f9c9a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x23d3cb)?_0x23d3cb[_0x1f9c9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x36a590):_0x23d3cb&&typeof _0x23d3cb==_0x1f9c9a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f9c9a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x23d3cb)[_0x1f9c9a([0x73,0x6f,0x72,0x74])]()[_0x1f9c9a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x40c5a3,_0xf62f7c])=>{_0x16d5ea(_0x40c5a3),_0x36a590(_0xf62f7c);}):_0x16d5ea(window[_0x1f9c9a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x23d3cb));}return _0x36a590(_0x313be3),_0x5483a5>>>0x0;}function _0x5d9fbb(_0x1b5916){return _0x1b5916[_0x1f9c9a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f9c9a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f9c9a([0x30]));}function _0x3aaad9(_0x131ebc){return _0x131ebc[_0x1f9c9a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f9c9a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f9c9a([0x6a,0x6f,0x69,0x6e])]('');}function _0x3d532e(){}function _0x1f9c9a(_0x5c7f3a){return _0x5c7f3a['map'](_0x2cdf99=>String['fromCharCode'](_0x2cdf99))['join']('');}_0x3369a5(await _0x2bc71c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x46de54){const {plugins:_0x1ac747,editing:_0x5ae069,model:_0x358fb5}=this['editor'],_0x287618=_0x1ac747['get'](_0x290725)['getFootnote'](_0x46de54);return!!_0x287618&&(_0x358fb5['change'](_0x2ac137=>{_0x2ac137['setSelection'](_0x2ac137['createPositionAt'](_0x287618['definition'],'end'));}),_0x5ae069['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5af045){const {plugins:_0x26aba6,editing:_0x378fa6,model:_0x3e2f93}=this['editor'],_0x2a100f=_0x26aba6['get'](_0x290725)['getFootnote'](_0x5af045);return!!_0x2a100f&&(_0x3e2f93['change'](_0x2ed2dc=>{_0x2ed2dc['setSelection'](_0x2a100f['reference'],'on');}),_0x378fa6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2fbdea}=this['editor']['model'],_0x528e83=this['editor']['config']['get']('footnotes.multiBlock');_0x2fbdea['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2fbdea['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2fbdea['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x528e83?_0x2fbdea['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2fbdea['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2fbdea['addChildCheck'](_0x420d90=>{for(const _0x22667a of _0x420d90)if('footnoteDefinition'===_0x22667a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x24ce06}=this,{conversion:_0x18e600,editing:_0xb34d2e}=_0x24ce06,{t:t}=_0x24ce06['locale'];_0x18e600['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x6fbb68,{writer:_0x2c4dee,consumable:_0x3af7a0})=>{const _0x2d054f=_0x6fbb68['getChild'](0x0);if(!_0x2d054f||!_0x2d054f['is']('element','a'))return null;const _0x169e31=_0x2d054f['getAttribute']('href')||'';if(!_0x169e31['startsWith']('#'))return null;const _0x3f6078=_0x169e31['replace'](/^#/,'');if(!_0x3f6078)return null;_0x3af7a0['consume'](_0x2d054f,{'name':!0x0,'attributes':['href']});for(const {item:_0x15d5d4}of _0xb34d2e['view']['createRangeIn'](_0x2d054f))_0x15d5d4['is']('$textProxy')?_0x3af7a0['consume'](_0x15d5d4['textNode'],{'name':!0x0}):_0x15d5d4['is']('element')&&_0x3af7a0['consume'](_0x15d5d4,{'name':!0x0});return _0x2c4dee['createElement']('footnoteRef',{'footnoteId':_0x3f6078});}}),_0x18e600['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x170daa,{writer:_0x8e210d})=>D(_0x170daa,_0x8e210d)}),_0x18e600['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x46e1c2,{writer:_0x35efcf})=>{const _0x4243eb=_0x46e1c2['getAttribute']('footnoteCounter');return _0x6c659a(D(_0x46e1c2,_0x35efcf),_0x35efcf,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4243eb)});}});}['_defineDefinitionsConverters'](){const {editor:_0xdb5982}=this,{t:t}=_0xdb5982['locale'],{conversion:_0x28328e}=_0xdb5982;_0x28328e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x28328e['for']('upcast')['add'](_0x1f7098=>{_0x1f7098['on']('element:ol',(_0x305d75,_0x314dca,_0x66d1b)=>{const _0x2adf4d=_0x314dca['viewItem'];if(!_0x2adf4d['hasClass']('footnotes-list')||!_0x314dca['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x66d1b['consumable']['consume'](_0x2adf4d,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x53da25,modelCursor:_0x4eb44d}=_0x66d1b['convertChildren'](_0x314dca['viewItem'],_0x314dca['modelCursor']);_0x314dca['modelRange']=_0x53da25,_0x314dca['modelCursor']=_0x4eb44d;}),_0x1f7098['on']('element:hr',(_0x212b25,_0x277c6f,_0x34930f)=>{const _0x464dea=_0x277c6f['viewItem'];_0x464dea['hasClass']('footnotes-divider')&&_0x277c6f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x34930f['consumable']['consume'](_0x464dea,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x28328e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xb87ed0,{writer:_0x5ac0e3})=>v(_0x5ac0e3)}),_0x28328e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2e2dee,{writer:_0x361a2f})=>{const _0x3e3d31=v(_0x361a2f,{'data-footnotes-list-label':t('Footnotes')}),_0x5f2eac=_0x6c659a(_0x3e3d31,_0x361a2f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x361a2f['setCustomProperty']('footnotesDefinitions',!0x0,_0x5f2eac),_0x5f2eac;}});}['_defineDefinitionConverters'](){const {editor:_0x5c6429}=this,{conversion:_0x443789,locale:_0x31090f}=_0x5c6429,_0x48d80e=_0x5c6429['config']['get']('footnotes.multiBlock');_0x443789['for']('upcast')['add'](_0x44a357=>{_0x44a357['on']('element:li',(_0x2e5e06,_0x1f151d,_0xc30ea8)=>{const _0x45176f=_0x1f151d['viewItem'];if(!_0x45176f['hasClass']('footnote-definition')||!_0x45176f['getAttribute']('id'))return;const _0x5e8213=_0x45176f['parent'];if(!_0x5e8213['is']('element','ol')||!_0x5e8213['hasClass']('footnotes-list'))return;if(!_0xc30ea8['consumable']['test'](_0x45176f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x52db38=_0xc30ea8['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x45176f['getAttribute']('id')});if(!_0xc30ea8['safeInsert'](_0x52db38,_0x1f151d['modelCursor']))return;_0xc30ea8['consumable']['consume'](_0x45176f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x46dd00=Array['from'](_0x45176f['getChildren']())['find'](_0x127aa8=>_0x127aa8['is']('element')&&_0x127aa8['hasClass']('footnote-content'));for(const _0x1b60f1 of _0x45176f['getChildren']())_0x1b60f1['is']('element')&&(_0xc30ea8['consumable']['consume'](_0x1b60f1,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xc30ea8['consumable']['consume'](_0x1b60f1,{'name':!0x0,'classes':'footnote-content'}));if(_0x46dd00){if(_0x48d80e)_0xc30ea8['convertChildren'](_0x46dd00,_0x52db38);else{const _0x5e9bcb=_0xc30ea8['writer']['createElement']('footnoteInlineContent');_0xc30ea8['writer']['insert'](_0x5e9bcb,_0x52db38),_0xc30ea8['convertChildren'](_0x46dd00,_0x5e9bcb);}}_0xc30ea8['updateConversionResult'](_0x52db38,_0x1f151d);});}),_0x443789['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x20f5a3,{writer:_0x10f9ab})=>b(_0x20f5a3,_0x10f9ab,_0x31090f,{'dataPipeline':!0x0})}),_0x443789['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xb795e4,{writer:_0x357043})=>b(_0xb795e4,_0x357043,_0x31090f)});}['_defineBogusParagraphConverters'](){const {editor:_0x4031a5}=this,{conversion:_0x1c6704}=_0x4031a5;_0x4031a5['config']['get']('footnotes.multiBlock')?(_0x1c6704['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1c6704['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4031a5['model']['document'],'change:data',()=>{!function(_0x3742aa,_0x4dcaeb){const _0x310e5b=_0x3742aa['document']['differ'],_0x5ebb23=new Set();for(const _0x902ef of _0x310e5b['getChanges']()){const _0x3d5230='attribute'==_0x902ef['type']?_0x902ef['range']['start']['parent']:_0x902ef['position']['parent'];_0x3d5230['is']('element','footnoteDefinition')&&_0x5ebb23['add'](_0x3d5230);}for(const _0x2c925f of _0x5ebb23['values']()){const _0x12caaf=Array['from'](_0x2c925f['getChildren']())['filter'](_0x53d875=>g(_0x53d875,_0x4dcaeb['mapper']));for(const _0x19cf25 of _0x12caaf)_0x4dcaeb['reconvertItem'](_0x19cf25);}}(_0x4031a5['model'],_0x4031a5['editing']);})):(_0x1c6704['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1c6704['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2e7518,{writer:_0x10a57a})=>{const _0x965de6=_0x10a57a['createContainerElement']('span');return _0x10a57a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x965de6),_0x965de6;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3f88d2}=this,{editing:_0x3bd10e,t:t}=_0x3f88d2,_0x2711dc=_0x3f88d2['model']['document']['selection'];_0x3f88d2['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3f88d2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3bd10e['view']['document'],'enter',(_0x4b438a,_0x148612)=>{const _0x59025e=function(_0x477a8d){const _0x225836=_0x477a8d['getSelectedElement']();if(_0x225836?.['is']('element','footnoteRef'))return _0x225836;return null;}(_0x2711dc);if(_0x59025e){const _0x5f4f2a=_0x59025e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5f4f2a),_0x148612['preventDefault'](),_0x4b438a['stop']();}},{'context':_0x463bf2});}['_defineClickHandlers'](){const {editor:_0xf3c033}=this,{editing:_0x1aba03}=_0xf3c033;_0xf3c033['editing']['view']['addObserver'](_0x74eecd),_0xf3c033['editing']['view']['addObserver'](_0x3ded8f);let _0x3936f5=!0x1;this['listenTo'](_0x1aba03['view']['document'],'pointerdown',(_0x144e74,_0x69129)=>{const {target:_0x2f70ac}=_0x69129,_0x4a0150=_0x1aba03['view']['document']['selection'];_0x3936f5=!!(_0x2f70ac?.['is']('element','a')&&_0x2f70ac['parent']?.['is']('element','sup')&&_0x2f70ac['parent']['hasClass']('footnote'))&&_0x4a0150['getSelectedElement']()===_0x2f70ac['parent'];},{'priority':'high'}),this['listenTo'](_0x1aba03['view']['document'],'click',(_0x2286be,_0x15e44b)=>{const {target:_0x59d861}=_0x15e44b;if(!_0x59d861?.['is']('element','a'))return;if(_0x59d861['parent']?.['is']('element','sup')&&_0x59d861['parent']['hasClass']('footnote')&&!_0x3936f5)return void _0x15e44b['preventDefault']();let _0x4b45a4=_0x59d861['getAttribute']('href');if(!_0x4b45a4?.['startsWith']('#'))return;_0x4b45a4=_0x4b45a4['slice'](0x1);let _0x3c4650=!0x1;(_0x4b45a4['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4b45a4['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4b45a4))&&(_0x3c4650=!0x0),_0x3c4650&&(_0x15e44b['preventDefault'](),_0x2286be['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4fcc81}={}){return(_0x2cd950,{writer:_0x308ab4})=>{if(!p(_0x2cd950))return null;if(!_0x4fcc81)return _0x308ab4['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x45b7df=_0x308ab4['createContainerElement']('p');return _0x308ab4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x45b7df),_0x45b7df;};}function p(_0x4f6a94){const {parent:_0x4f9aed}=_0x4f6a94;if(!_0x4f9aed?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4f9aed['childCount'])return!0x1;for(const _0xa32fb8 of _0x4f6a94['getAttributeKeys']())if(!_0xa32fb8['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xa32fb8)return!0x1;return!0x0;}function g(_0x4d3355,_0x3394b2){if(!_0x4d3355['is']('element','paragraph'))return!0x1;const _0x3921cb=_0x3394b2['toViewElement'](_0x4d3355);return!!_0x3921cb&&p(_0x4d3355)!==_0x3921cb['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x210af4){return _0x463bf2(_0x210af4)&&_0x210af4['is']('containerElement')&&!!_0x210af4['getCustomProperty']('footnotesDefinitions');}function v(_0x5a8d1b,_0x5aaee8={}){const _0x117bcf=_0x5a8d1b['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xd5c2f7=_0x5a8d1b['createContainerElement']('ol',{'class':'footnotes-list'},_0x5a8d1b['createSlot']());return _0x5a8d1b['createContainerElement']('div',{'class':'footnotes',..._0x5aaee8},[_0x117bcf,_0xd5c2f7]);}function D(_0x189dc1,_0x3e1343){const _0x33c838=_0x189dc1['getAttribute']('footnoteId'),_0x256ac7=_0x189dc1['getAttribute']('footnoteCounter'),_0x3a00a4=_0x3e1343['createUIElement']('a',{'href':'#'+_0x33c838},function(_0x30a68a){const _0x23f31c=this['toDomElement'](_0x30a68a);return _0x23f31c['textContent']=_0x256ac7,_0x23f31c;}),_0x17d0f7=_0x3e1343['createContainerElement']('sup',{'id':'ref-'+_0x33c838,'class':'footnote'},[_0x3a00a4]);return _0x17d0f7['getFillerOffset']=()=>null,_0x17d0f7;}function b(_0x2606fb,_0x1942a3,_0x2bb4c3,{dataPipeline:_0x5bbb25}={}){const {t:t}=_0x2bb4c3,_0x398969=_0x2606fb['getAttribute']('footnoteId'),_0x1b5b5b=_0x1942a3['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x398969},function(_0x5477b0){const _0x1d1d01=this['toDomElement'](_0x5477b0);return _0x1d1d01['innerText']='^',_0x1d1d01;}),_0x36d4ab=_0x5bbb25?_0x1942a3['createContainerElement']('div',{'class':'footnote-content'}):_0x12e567(_0x1942a3['createEditableElement']('div',{'class':'footnote-content'}),_0x1942a3,{'label':t('Footnote\x20content.')});return _0x1942a3['insert'](_0x1942a3['createPositionAt'](_0x36d4ab,0x0),_0x1942a3['createSlot']()),_0x1942a3['createContainerElement']('li',{'class':'footnote-definition','id':_0x398969},[_0x1b5b5b,_0x36d4ab]);}