@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251207.0 → 0.0.0-nightly-20251208.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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>G,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Dt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=347]})(t,e)}const a=r;function c(){const t=["add","delete","3342qAODIW","name","get","6429jBKEmY","1089315CAUIBQ","394yPgTmS","_trackedElements","from","values","1820742cEzUuD","$graveyard","_model","reset","84485loxulI","_getElementKey","length","type","clear","1910292fBBots","getChanges","50IXNNoB","has","createRangeOn","push","element","56hGAxQu","flat","rootName","root","elementName","_elementName","set","$text","getElementKey","slice","position","473788QcUrqg","430vntlia","attributes","nodeAfter","getItems","insert","remove"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(308158===-parseInt(e(379))/1+parseInt(e(371))/2*(-parseInt(e(369))/3)+-parseInt(e(384))/4+parseInt(e(358))/5*(parseInt(e(366))/6)+parseInt(e(357))/7*(parseInt(e(391))/8)+parseInt(e(370))/9*(parseInt(e(386))/10)+parseInt(e(375))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(377)];[a(351)];[a(380)];[a(372)]=new Map;constructor(t,e){const o=a;this[o(377)]=t,this[o(351)]=e[o(350)],this[o(380)]=e[o(354)]}[a(378)](){const t=a;this[t(372)][t(383)]()}[a(385)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(362)===i[e(382)]&&e(353)!==i[e(367)]&&i[e(356)][e(360)]){const t=this[e(377)][e(388)](i[e(356)][e(360)]);for(const o of t[e(361)]()){if(!o.is(e(390),this[e(351)]))continue;const t=this[e(380)](o);n[e(387)](t)||n[e(352)](t,[]),n[e(368)](t)[e(389)](o)}}if(e(363)===i[e(382)]&&i[e(367)]===this[e(351)]){const t=this[e(380)]({getAttribute:t=>i[e(359)][e(368)](t)});o[e(364)](t)}}for(const[t,n]of this[e(372)])e(376)===n[e(349)][e(348)]&&o[e(364)](t);for(const t of o)this[e(372)][e(365)](t);for(const[t,o]of n)this[e(372)][e(352)](t,o[o[e(381)]-1]);const i=new Set;for(const[t,s]of n)o[e(387)](t)&&(i[e(364)](s[0]),s[e(381)]>1?n[e(352)](t,s[e(355)](1)):n[e(365)](t),o[e(365)](t));return{removed:Array[e(373)](o),inserted:Array[e(373)](n[e(374)]())[e(347)](),moved:Array[e(373)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=212]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(655678===-parseInt(e(279))/1*(parseInt(e(271))/2)+parseInt(e(262))/3+parseInt(e(272))/4*(-parseInt(e(246))/5)+-parseInt(e(232))/6+-parseInt(e(250))/7*(-parseInt(e(254))/8)+-parseInt(e(223))/9*(-parseInt(e(273))/10)+parseInt(e(280))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(305)]=[];[u(236)]=null;[u(302)]=null;[u(291)];[u(218)];[u(264)];static get[u(233)](){return u(313)}static get[u(297)](){return!0}static get[u(213)](){return!0}constructor(t){const e=u;super(t),this[e(291)]=new l(this[e(308)][e(231)],{elementName:e(235),getElementKey:()=>e(277)}),this[e(218)]=new l(this[e(308)][e(231)],{elementName:e(307),getElementKey:t=>t[e(237)](e(229))}),this[e(264)]=new l(this[e(308)][e(231)],{elementName:e(274),getElementKey:t=>t[e(237)](e(229))})}[u(265)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(243)][t(228)](e=>{const n=t,i=o[n(243)][n(294)][n(306)]();let s=!1;return this[n(212)](e,i)&&(s=!0),this[n(225)](e,i)&&(s=!0),this[n(263)](e,i)&&(s=!0),this[n(299)](e)&&(s=!0),this[n(278)](e)&&(s=!0),this[n(258)](e)&&(s=!0),s}),this[t(270)](o[t(243)],t(300),()=>{const e=t;o[e(304)]({isUndoable:!1},t=>{this[e(292)](t)})},{priority:t(303)}),this[t(270)](n,t(216),()=>{const e=t;this[e(305)]=[],this[e(291)][e(275)](),this[e(218)][e(275)](),this[e(264)][e(275)]()},{priority:t(252)})}[u(230)](){return this[u(236)]}[u(257)](t){const e=u;return this[e(305)][e(247)](e=>e.id===t)||null}[u(287)](){const t=u;return Array[t(284)](this[t(305)])}[u(298)](){return this[u(302)]}[u(221)](t){this[u(302)]=t}[u(220)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(305)][o(214)];i++)this[o(224)](t,i)&&(n=!0);return n}[u(296)](t,e){const o=u,n=t[o(259)](o(235),{});return t[o(283)](n,e),this[o(236)]=n,n}[u(292)](t){const e=u;if(!this[e(305)][e(214)]||this[e(236)])return;const o=this[e(305)][0][e(248)][e(267)],n=this[e(296)](t,o);for(const o of this[e(305)])o[e(217)][e(276)]||t[e(286)](o[e(217)],n,e(222));this[e(220)](t)}[u(212)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(291)][o(306)](e);if(r[o(214)]&&(this[o(236)]=r[0]),i[o(214)])if(i[o(214)]>1||this[o(236)]&&i[o(311)](t=>t!==this[o(236)])){const e=t[o(259)](o(235),{}),s=[];this[o(236)]&&s[o(293)](this[o(236)]),s[o(293)](...i),t[o(286)](e,s[0],o(240));for(const n of s)t[o(309)](t[o(285)](n),t[o(261)](e,o(222))),t[o(310)](n);this[o(236)]=e,this[o(220)](t),n=!0}else this[o(236)]=i[0];if(s[o(214)]&&o(290)===this[o(236)]?.[o(267)][o(234)]){for(const e of this[o(305)])t[o(310)](e[o(248)]),n=!0;this[o(305)]=[],this[o(236)]=null}return n}[u(225)](t,e){const o=u;let n=!1;const i=this[o(308)][o(226)][o(242)](o(266)),{inserted:s,moved:r}=this[o(264)][o(306)](e);for(const e of[...r,...s]){const s=e[o(237)](o(229)),r=this[o(257)](s);r&&(r[o(217)]=e),p(t,i,e)&&(n=!0)}return n}[u(263)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(218)][o(306)](e);for(const e of i)this[o(255)](t,e)&&(n=!0);for(const e of s)this[o(269)](t,e)&&(n=!0);for(const e of r)this[o(288)](t,e)&&(n=!0);return n}[u(278)](t){const e=u;if(!this[e(236)])return!1;let o=!1;if(this[e(236)][e(227)]!==this[e(305)][e(214)]){const n=[];for(const t of this[e(236)][e(289)]()){const i=t[e(237)](e(229));this[e(257)](i)||(n[e(241)](t),o=!0)}for(const o of n)t[e(310)](o)}const n=new Set,i=[];for(const t of this[e(236)][e(289)]()){const s=t[e(237)](e(229));n[e(244)](s)?(i[e(241)](t),o=!0):n[e(282)](s)}for(const o of i)t[e(310)](o);return this[e(236)][e(227)]||(t[e(310)](this[e(236)]),this[e(236)]=null,o=!0),o}[u(269)](t,e){const o=u;if(this[o(305)][o(247)](t=>t[o(248)]===e))return!1;let n=!1;const i=e[o(237)](o(229)),s=this[o(305)][o(215)](t=>t.id===i);-1!==s&&(t[o(310)](this[o(305)][s][o(248)]),this[o(305)][o(238)](s,1),n=!0);let r=this[o(236)]?function(t,e){const n=o;for(const o of t[n(289)]())if(o[n(237)](n(229))===e)return o;return null}(this[o(236)],i):null;r||(r=t[o(259)](o(274),{footnoteId:i}),this[o(236)]&&(t[o(286)](r,this[o(236)],o(222)),n=!0));const a={id:i,reference:e,definition:r},c=h(this[o(308)][o(231)],this[o(305)],e);this[o(305)][o(238)](c,0,a);let l=c;return-1!==s&&(l=Math[o(301)](c,s)),this[o(220)](t,l)&&(n=!0),n}[u(255)](t,e){const o=u,n=this[o(305)][o(215)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(305)][n];return o(290)!==s[o(217)][o(267)][o(234)]&&(t[o(310)](s[o(217)]),i=!0),this[o(305)][o(238)](n,1),this[o(220)](t,n)&&(i=!0),i}[u(288)](t,e){const o=u,n=e[o(237)](o(229)),i=this[o(305)][o(215)](t=>t.id===n),s=this[o(305)][i];let r=!1;s[o(248)]=e,this[o(305)][o(238)](i,1);const a=h(this[o(308)][o(231)],this[o(305)],e);return this[o(305)][o(238)](a,0,s),this[o(220)](t,Math[o(301)](i,a))&&(r=!0),r}[u(224)](t,e){const o=u;if(!this[o(236)])return!1;const n=this[o(305)][e];let i;return i=this[o(302)]?this[o(302)]({footnote:n,container:this[o(236)],digits:String(this[o(305)][o(214)])[o(214)],value:e+1}):String(e+1),n[o(248)][o(237)](o(239))!=i&&(t[o(253)](o(239),i,n[o(248)]),!0)}[u(258)](t){const e=u;if(!this[e(236)]||this[e(305)][e(214)]<2)return!1;if(function(t,o){const n=e;if(t[n(214)]!==o[n(214)])return!1;for(let e=0;e<t[n(214)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(305)][e(251)](t=>t.id),Array[e(284)](this[e(236)][e(289)]())[e(251)](t=>t[e(237)](e(229)))))return!1;let o=!1;for(let n=0;n<this[e(305)][e(214)];n++){const i=this[e(305)][n],s=t[e(312)](i[e(217)]),r=t[e(261)](this[e(236)],n);s[e(219)](r)||(t[e(309)](t[e(256)](i[e(217)]),r),o=!0)}return o}[u(299)](t){const e=u;if(!this[e(305)][e(214)])return!1;const{model:o}=this[e(308)];let n=!1;for(let i=0;i<this[e(305)][e(214)]-1;i++){const s=this[e(305)][i],r=this[e(305)][i+1],a=o[e(312)](s[e(248)]),c=o[e(312)](r[e(248)]);e(281)===a[e(245)](c)&&(this[e(288)](t,s[e(248)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(227)])return!1;const i=n(e?249:268);return t[n(286)](t[n(259)](i),o),!0}function h(t,e,o){const n=u;if(0===e[n(214)])return 0;const i=t[n(312)](o);for(let o=0;o<e[n(214)];o++){const s=e[o],r=t[n(312)](s[n(248)]);if(n(240)===i[n(245)](r))return o}const s=o[n(267)];let r=-1;for(let t=e[n(214)]-1;t>=0;t--)if(e[t][n(248)][n(267)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(243)][n(295)](),c=a[n(260)](s[n(234)]),l=a[c+1];if(l)for(let t=0;t<e[n(214)];t++)if(e[t][n(248)][n(267)][n(234)]===l)return t;return e[n(214)]}function m(){const t=["10838784dFrDcm","after","add","append","from","createRangeIn","insert","getFootnotes","_handleMovedFootnoteReference","getChildren","$graveyard","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","push","differ","getRootNames","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","getFootnotesFormatter","_ensureFootnotesReferencesHaveProperOrder","change:data","min","_footnoteFormatter","low","enqueueChange","_footnotes","getChanges","footnoteRef","editor","move","remove","some","createPositionBefore","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","isPremiumPlugin","length","findIndex","set","definition","_footnoteRefsTracker","isEqual","_updateFootnotesCounters","setFootnoteFormatter","end","2237328MrDUrA","_updateFootnoteRefCounter","_handleFootnoteDefinitionsChanges","config","childCount","registerPostFixer","footnoteId","getFootnotesDefinitionsObjectElement","model","5107854NclYTz","pluginName","rootName","footnotesDefinitions","_footnotesDefinitions","getAttribute","splice","footnoteCounter","before","unshift","get","document","has","compareWith","5wxQOTT","find","reference","paragraph","91YNHZdR","map","high","setAttribute","657128iUlZNt","_handleRemoveFootnoteReferenceById","createRangeOn","getFootnote","_sortFootnoteDefinitions","createElement","indexOf","createPositionAt","1958943cDDkgz","_handleFootnoteReferencesChanges","_footnoteDefsTracker","init","footnotes.multiBlock","root","footnoteInlineContent","_handleInsertedFootnoteReference","listenTo","12DmiLhQ","5156108LyBWcX","50fzwDJi","footnoteDefinition","reset","parent","singleton","_handleFootnotesDefinitionsObjectSync","192184OckteC"];return(m=function(){return t})()}const g=y;function w(){const t=["6470evoyOh","length","187ohXzIY","plugins","selection","checkChild","change","document","isEnabled","8jclMkm","isBlock","end","insert-footnote-command-executed-with-invalid-id","editor","getFirstRange","FootnotesEditing","createElement","_getPositionToInsertFootnote","execute","35564484uljELk","getItems","refresh","string","7kNXULA","_moveSelectionToFootnoteDefinition","get","isObject","136936nwDbiP","262394OkeVjH","insertObject","1815057OVWOCu","model","footnoteRef","51010nyYkgB","1584813WpKxkM","footnoteId","77xUmkgm","test","1662QhCovm"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(530245===-parseInt(e(358))/1*(parseInt(e(363))/2)+parseInt(e(369))/3*(-parseInt(e(383))/4)+parseInt(e(374))/5*(-parseInt(e(373))/6)+parseInt(e(371))/7*(parseInt(e(362))/8)+-parseInt(e(365))/9+parseInt(e(368))/10*(-parseInt(e(376))/11)+parseInt(e(354))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(356)](){const t=g,e=this[t(348)][t(366)][t(381)][t(378)],o=this[t(352)](e);this[t(382)]=!!o}[g(353)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(381)],r=this[e(352)](s);if(!r)return;const a=o[e(377)][e(360)](e(350)),c=t?.[e(370)]??(0,i.uid)();!function(t){const o=e;return o(357)==typeof t&&t[o(375)]>0&&!/\s/[o(372)](t)&&!/^\d/[o(372)](t)}(c)?(0,i.logWarning)(e(347)):(n[e(380)](t=>{const o=e,i=t[o(351)](o(367),{footnoteId:c});n[o(364)](i,r,null)}),a[e(359)](c))}[g(352)](t){const e=g,{model:o}=this[e(348)],{schema:n}=o,i=t[e(349)]();for(const t of i[e(355)]())if(n[e(345)](t)||n[e(361)](t))return null;const s=i[e(346)];return n[e(379)](s,e(367))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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])](u(t)):null}function u(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 f(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 p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}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])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,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,h=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])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=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 u=(0,i.uid)();function h(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(f(u+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(f(t)),n=p(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(f(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])](p(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])]:u}},{[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=>{h(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])](u(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:1765065600;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&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||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})=>D(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>D(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 D(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=S;function S(t,e){const o=A();return(S=function(t,e){return o[t-=111]})(t,e)}function A(){const t=["drop","selection","footnoteRef","editor","get","FootnotesClipboard","getSelectedBlocks","380osOmYr","createElement","create","outputTransformation","end","footnotes.multiBlock","createRangeIn","pluginName","insert","application/ckeditor5-footnotes","toView","_defineClipboardIntegration","reduce","append","_handlePasteFootnotesDefinitions","length","contentInsertion","find","remove","toData","push","isOfficialPlugin","15193780SJhreg","footnotesDefinitions","520971upFJQr","editing","getFootnotesDefinitionsObjectElement","2410050DLedMm","getFootnote","22841kgiRdT","element","setData","change","1616ixkMOH","getData","footnoteId","from","getRanges","data","51416wRDPLf","init","isPremiumPlugin","includes","toModel","document","getFootnotes","add","requires","clipboardInput","3006288CRvuoN","_handleCopyFootnotesDefinitions","footnoteInlineContent","getFirstRange","method","root","setAttribute","htmlProcessor","entries","parse","flatMap","footnoteDefinition","_insertEmptyFootnotesDefinitionsContainer","15dqKnVq","dataTransfer","content","definition","listenTo","sourceEditorId","config","342586oFkpYA","stringify","getAttribute"];return(A=function(){return t})()}!function(t){const e=S,o=t();for(;;)try{if(527363===-parseInt(e(168))/1+-parseInt(e(134))/2*(parseInt(e(127))/3)+-parseInt(e(183))/4*(-parseInt(e(144))/5)+parseInt(e(171))/6+parseInt(e(173))/7*(-parseInt(e(177))/8)+-parseInt(e(114))/9+parseInt(e(166))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class L extends t.Plugin{static get[T(151)](){return T(142)}static get[T(112)](){return[v,P.ClipboardPipeline]}static get[T(165)](){return!0}static get[T(185)](){return!0}[T(184)](){this[T(155)]()}[T(155)](){const t=T;this[t(115)](),this[t(158)]()}[T(115)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(141)](P.ClipboardPipeline),s=o[t(141)](d);this[t(131)](i,t(147),(o,i)=>{const r=t,a=_(n[r(150)](i[r(129)]));if(!a[r(159)])return;const c=s[r(189)](),l=a[r(156)]((t,o)=>{const n=r,i=c[n(161)](t=>t.id===o);if(i){const o=e[n(182)][n(154)](i[n(130)],{isClipboardPipeline:!0}),s=e[n(182)][n(121)][n(163)](o);t[i.id]=s}return t},Object[r(146)](null));i[r(128)][r(175)](r(153),JSON[r(135)](l))})}[T(158)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(169)],r=n[t(141)](P.ClipboardPipeline),a=n[t(141)](d),c=e[t(133)][t(141)](t(149));let l=null;this[t(131)](s[t(188)],t(113),(e,o)=>{const n=t,i=o[n(128)][n(178)](n(153));l=i?JSON[n(123)](i):null}),this[t(131)](r,t(160),(n,s)=>{const r=t,u=s[r(132)]===this[r(140)].id;u&&r(137)===s[r(118)]||o[r(176)](t=>{const n=r;let f=a[n(170)]();const d=!!f&&Array[n(180)](o[n(188)][n(138)][n(143)]())[n(186)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(150)](e))n.is(o(174),o(167))&&i[o(164)](n);for(const e of i)t[o(162)](e)}(t,s[n(129)]),!l)return;const{selection:p}=o[n(188)],h=p[n(117)]()[n(119)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(150)](e))if(n.is(o(174),o(167)))return n;return null}(t,s[n(129)]),f||=a[n(126)](t,h));const m=Array[n(180)](p[n(181)]())[n(124)](_),g=function(t,e,o){const s=n,r=Object[s(146)](null);for(const{item:n}of t[s(150)](e))if(n.is(s(174),s(139))){const e=n[s(136)](s(179));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(120)](s(179),r[e],n)}return r}(t,s[n(129)],t=>{const e=n;return!u||!!a[e(172)](t)&&!m[e(186)](t)});for(const[o,i]of Object[n(122)](l)){const s=g[o]||o,r=t[n(145)](n(125),{footnoteId:s}),a=e[n(182)][n(121)][n(154)](i);let l;if(c)l=e[n(182)][n(187)](a,r);else{l=t[n(145)](n(116));const o=e[n(182)][n(187)](a,l);t[n(152)](o,l)}t[n(157)](l,r),t[n(152)](r,f,n(148))}l=null})})}}function _(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(174),e(139))&&o[e(111)](n[e(136)](e(179)));return Array[e(180)](o)}var O=o(311),V=o(355),N=o(929),R=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),W=o(123),U=o.n(W),z=o(741),H=o.n(z),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=U(),X.insert=B().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=H();R()(J.A,X);J.A&&J.A.locals&&J.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,O.ButtonView)),e.add("menuBar:insertFootnote",Q(t,O.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 Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=$;function Z(){var t=["34635807ynWCcQ","pluginName","requires","isPremiumPlugin","8234100jwiyvb","1044127IWtDnF","614464iowmqQ","1414FCYqwX","Footnotes","2MOOulP","27606TsrTUv","2507200eKpJmL","3653601NRJopV","isOfficialPlugin"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=167]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(830009===parseInt(e(176))/1+-parseInt(e(180))/2*(-parseInt(e(169))/3)+parseInt(e(177))/4+parseInt(e(175))/5+-parseInt(e(167))/6*(-parseInt(e(178))/7)+-parseInt(e(168))/8+-parseInt(e(171))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class G extends t.Plugin{static get[Y(172)](){return Y(179)}static get[Y(173)](){return[v,L,q]}static get[Y(170)](){return!0}static get[Y(174)](){return!0}}function tt(){const t=["decimal","10yTFJcW","decimal-leading-zero","888WZpogb","67075VPxNNE","upper-roman","lower-roman","71832YJcbOQ","upper-alpha","2hzULph","135885zGnUdm","1834857rtiAdV","lower-alpha","30331vCneXy","19115217yWtlmR","3612305civPks","6OTpqWZ","upper-latin","lower-latin"];return(tt=function(){return t})()}const et=ot;function ot(t,e){const o=tt();return(ot=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(460778===parseInt(e(124))/1*(parseInt(e(129))/2)+parseInt(e(130))/3+parseInt(e(127))/4+-parseInt(e(135))/5*(parseInt(e(136))/6)+-parseInt(e(133))/7*(parseInt(e(123))/8)+-parseInt(e(131))/9*(parseInt(e(121))/10)+parseInt(e(134))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[et(120),et(122),et(138),et(137),et(132),et(128),et(126),et(125)],it=st;function st(t,e){const o=at();return(st=function(t,e){return o[t-=376]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(976552===-parseInt(e(378))/1+-parseInt(e(394))/2+-parseInt(e(398))/3+parseInt(e(390))/4*(parseInt(e(383))/5)+parseInt(e(388))/6+parseInt(e(382))/7*(parseInt(e(380))/8)+parseInt(e(384))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[it(393)](){const t=it,{editor:e}=this,o=e[t(386)][t(387)](d)[t(377)]();this[t(396)]=!!o,this[t(379)]=o?.[t(389)](t(376))??null}[it(395)]({value:t}){const e=it,{editor:o}=this,n=o[e(386)][e(387)](d),i=n[e(377)]();i&&nt[e(397)](t)&&o[e(391)][e(385)](o=>{const s=e;o[s(381)](s(376),t,i),n[s(392)](o)})}}function at(){const t=["isEnabled","includes","3955893vermvR","footnotesListStyle","getFootnotesDefinitionsObjectElement","1696864IiMVlJ","value","648gvXnCH","setAttribute","30597JIzGCq","2750285PvhHjj","25984386CvaEyA","change","plugins","get","7938552BcKlZD","getAttribute","4YFXKZD","model","_updateFootnotesCounters","refresh","2244614DUuLEV","execute"];return(at=function(){return t})()}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=457]})(t,e)}function ut(){const t=["469023lzJPJE","setAttribute","execute","plugins","2611RKNriY","value","5730417pBzluO","isInteger","30TIQrro","2782714ZwPbQe","6jOMbgN","change","footnotesListStart","getAttribute","_updateFootnotesCounters","1456pbjKPz","isEnabled","get","getFootnotesDefinitionsObjectElement","1042035IzJMei","2509960WWiEXX","refresh","model","12fFqcWY","286599drZiIj"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(490623===parseInt(e(461))/1+-parseInt(e(471))/2*(-parseInt(e(460))/3)+-parseInt(e(481))/4+-parseInt(e(480))/5*(-parseInt(e(459))/6)+parseInt(e(465))/7*(parseInt(e(476))/8)+parseInt(e(467))/9+-parseInt(e(469))/10*(parseInt(e(470))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(457)](){const t=ct,{editor:e}=this,o=e[t(464)][t(478)](d)[t(479)]();this[t(477)]=!!o,this[t(466)]=o?.[t(474)](t(473))??null}[ct(463)]({value:t}){const e=ct,{editor:o}=this,n=o[e(464)][e(478)](d),i=n[e(479)]();i&&Number[e(468)](t)&&o[e(458)][e(472)](o=>{const s=e;o[s(462)](s(473),t,i),n[s(475)](o)})}}const dt=pt;function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=138]})(t,e)}function ht(){const t=["downcast","toViewElement","element:ol","8544216MuLckH","getItems","upper-alpha","lower-latin","$text","isPremiumPlugin","init","add","start","isNaN","_definePostfixer","isOfficialPlugin","removeAttribute","564heScHV","_getDefaultListStyle","footnotes.footnotesProperties.defaultListStyle","decimal-leading-zero","getAttribute","hasAttribute","upper-latin","upcast","for","_updateFootnotesCounters","element","config","626095uALuTN","lower-roman","toUpperCase","attribute:footnotesListStart:footnotesDefinitions","modelCursor","footnotesDefinitions","footnotesListStyle","187vbvjVa","parseInt","name","getChanges","setAttribute","type","hasClass","setStyle","checkAttribute","_getDefaultStartIndex","padStart","FootnotesPropertiesEditing","footnotesStart","lower-alpha","insert","requires","document","define","from","model","get","upper-roman","getChildren","viewItem","find","427884BfPxXu","extend","list-style-type","decimal","registerPostFixer","editor","3148MEYZdI","parent","3QwTpaA","footnotesListStart","9LjlKZc","761BApDtQ","_defineConverters","consume","setFootnoteFormatter","commands","getStyle","floor","footnotesStyle","_defineFormatter","toLowerCase","writer","pluginName","consumable","createRangeOn","212484llZJzi","attribute:footnotesListStyle:footnotesDefinitions","item","max","footnotes.footnotesProperties.defaultStartIndex","removeStyle","10661650MiLpOi","91483CaWgML","differ","nodeAfter","fromCharCode","_formatFootnoteListValue","footnotes-list","position","mapper","schema","plugins","_defineSchema"];return(ht=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(970375===-parseInt(e(188))/1*(-parseInt(e(183))/2)+parseInt(e(185))/3*(-parseInt(e(202))/4)+parseInt(e(145))/5+parseInt(e(236))/6*(parseInt(e(209))/7)+parseInt(e(223))/8*(-parseInt(e(187))/9)+-parseInt(e(208))/10+-parseInt(e(152))/11*(-parseInt(e(177))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(199)](){return dt(163)}static get[dt(167)](){return[v,d]}static get[dt(234)](){return!0}static get[dt(228)](){return!0}[dt(229)](){const t=dt,{editor:e}=this;e[t(144)][t(169)](t(238),t(180)),e[t(144)][t(169)](t(206),1),e[t(192)][t(230)](t(195),new rt(e)),e[t(192)][t(230)](t(164),new ft(e)),this[t(219)](),this[t(189)](),this[t(196)](),this[t(233)]()}[dt(219)](){const t=dt,{editor:e}=this,{schema:o}=e[t(171)];o[t(178)](t(150),{allowAttributes:[t(151),t(186)]})}[dt(189)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(141)](t(140))[t(230)](e=>{const o=t;e.on(o(222),(t,e,n)=>{const s=o,r=e[s(175)],a=e[s(149)]?.[s(184)];r[s(158)](s(214))&&a?.is(s(143),s(150))&&(function(t,e,o,n){const i=s;if(!n[i(160)](e,i(186)))return;let r=1;const a=o[i(200)][i(190)](t,{attributes:i(231)});if(a){const e=Number[i(153)](t[i(240)](i(231)),10);Number[i(232)](e)||(r=e)}!a&&e[i(138)](i(186))||o[i(198)][i(156)](i(186),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(160)](e,i(151)))return;let r=i(180),a=!1;if(o[i(200)][i(190)](t,{attributes:i(157)})){const e={1:i(180),a:i(165),A:i(225),i:i(146),I:i(173)}[t[i(240)](i(157))];e&&(r=e),a=!0}o[i(200)][i(190)](t,{styles:i(179)})&&(r=function(t){const e=i;switch(t){case e(165):return e(226);case e(225):return e(139);default:return t}}(t[i(193)](i(179))),a=!0),!a&&e[i(138)](i(151))||o[i(198)][i(156)](i(151),r,e)}(r,a,n,i))})}),o[t(141)](t(220))[t(230)](e=>{const o=t;e.on(o(148),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;null==r||1===r?n[i(198)][i(235)](i(231),s):n[i(198)][i(156)](i(231),String(r),s)}),e.on(o(203),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;r&&i(180)!==r?n[i(198)][i(159)](i(179),r,s):n[i(198)][i(207)](i(179),s)})})}[dt(233)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(218)][t(172)](d),i=this[t(237)](),s=this[t(161)]();o[t(168)][t(181)](e=>{const r=t,a=o[r(168)][r(210)][r(155)]();let c=!1;for(const t of a){if(r(166)!==t[r(157)]||r(227)===t[r(154)])continue;const n=o[r(201)](t[r(215)][r(211)]);for(const t of n[r(224)]())t.is(r(143),r(150))&&(!t[r(138)](r(186))&&o[r(217)][r(160)](t,r(186))&&(e[r(156)](r(186),s,t),c=!0),!t[r(138)](r(151))&&o[r(217)][r(160)](t,r(151))&&(e[r(156)](r(151),i,t),c=!0))}return c&&n[r(142)](e),c})}[dt(196)](){const t=dt,{editor:e}=this;e[t(218)][t(172)](d)[t(191)](e=>this[t(213)](e))}[dt(237)](){const t=dt;return this[t(182)][t(144)][t(172)](t(238))}[dt(161)](){const t=dt;return this[t(182)][t(144)][t(172)](t(206))}[dt(213)]({container:t,value:e,digits:o}){const n=dt,i=t[n(240)](n(151)),s=t[n(240)](n(186)),r=Math[n(194)](e)+(s??1)-1;switch(i){case n(239):return function(t,e){const o=n;return String(t)[o(162)](e,"0")}(r,Math[n(205)](2,o));case n(165):case n(226):return wt(r,!1);case n(225):case n(139):return wt(r,!0);case n(146):return bt(r,!1);case n(173):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(221)](t);return Array[o(170)](n[o(174)]())[o(176)](t=>t.is(o(143),"ol")&&t[o(158)](o(214)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(212)](97+t)+n,i=Math[o(194)]((i-1)/26)}return e?n[o(147)]():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=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(197)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.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=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();R()(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[O.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,O.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:V.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:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.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 O.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}=O.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]})}}function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=219]})(t,e)}var xt=Ft;function Et(){var t=["7458552CHyHXO","28528VbKaNx","848640hOJAdB","requires","FootnotesProperties","488578CUJXmG","1169jkRWRS","392TXUbZS","pluginName","6IHlbxd","isPremiumPlugin","64680yLVxyn","1141641XwJckf","isOfficialPlugin","4955160JvgOBt"];return(Et=function(){return t})()}!function(t){for(var e=Ft,o=t();;)try{if(769823===parseInt(e(225))/1*(-parseInt(e(229))/2)+parseInt(e(232))/3+parseInt(e(227))/4*(parseInt(e(231))/5)+-parseInt(e(222))/6+parseInt(e(226))/7*(-parseInt(e(221))/8)+parseInt(e(220))/9+parseInt(e(219))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Dt extends t.Plugin{static get[xt(228)](){return xt(224)}static get[xt(223)](){return[mt,Ct]}static get[xt(233)](){return!0}static get[xt(230)](){return!0}}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=364]})(t,e)}function Tt(){var t=["410166eDQyDu","335020CrOWNL","5tiYijC","1417004InYyin","57AbehcL","1838648JCspQX","7JJfHPD","999018SYctLX","12942420CauXLD","37646oQyduJ"];return(Tt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(196866===-parseInt(e(366))/1+-parseInt(e(364))/2*(parseInt(e(369))/3)+-parseInt(e(368))/4+parseInt(e(367))/5*(parseInt(e(365))/6)+-parseInt(e(371))/7*(parseInt(e(370))/8)+parseInt(e(372))/9+parseInt(e(373))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>G,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=347]})(t,e)}const a=r;function c(){const t=["add","delete","3342qAODIW","name","get","6429jBKEmY","1089315CAUIBQ","394yPgTmS","_trackedElements","from","values","1820742cEzUuD","$graveyard","_model","reset","84485loxulI","_getElementKey","length","type","clear","1910292fBBots","getChanges","50IXNNoB","has","createRangeOn","push","element","56hGAxQu","flat","rootName","root","elementName","_elementName","set","$text","getElementKey","slice","position","473788QcUrqg","430vntlia","attributes","nodeAfter","getItems","insert","remove"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(308158===-parseInt(e(379))/1+parseInt(e(371))/2*(-parseInt(e(369))/3)+-parseInt(e(384))/4+parseInt(e(358))/5*(parseInt(e(366))/6)+parseInt(e(357))/7*(parseInt(e(391))/8)+parseInt(e(370))/9*(parseInt(e(386))/10)+parseInt(e(375))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(377)];[a(351)];[a(380)];[a(372)]=new Map;constructor(t,e){const o=a;this[o(377)]=t,this[o(351)]=e[o(350)],this[o(380)]=e[o(354)]}[a(378)](){const t=a;this[t(372)][t(383)]()}[a(385)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(362)===i[e(382)]&&e(353)!==i[e(367)]&&i[e(356)][e(360)]){const t=this[e(377)][e(388)](i[e(356)][e(360)]);for(const o of t[e(361)]()){if(!o.is(e(390),this[e(351)]))continue;const t=this[e(380)](o);n[e(387)](t)||n[e(352)](t,[]),n[e(368)](t)[e(389)](o)}}if(e(363)===i[e(382)]&&i[e(367)]===this[e(351)]){const t=this[e(380)]({getAttribute:t=>i[e(359)][e(368)](t)});o[e(364)](t)}}for(const[t,n]of this[e(372)])e(376)===n[e(349)][e(348)]&&o[e(364)](t);for(const t of o)this[e(372)][e(365)](t);for(const[t,o]of n)this[e(372)][e(352)](t,o[o[e(381)]-1]);const i=new Set;for(const[t,s]of n)o[e(387)](t)&&(i[e(364)](s[0]),s[e(381)]>1?n[e(352)](t,s[e(355)](1)):n[e(365)](t),o[e(365)](t));return{removed:Array[e(373)](o),inserted:Array[e(373)](n[e(374)]())[e(347)](),moved:Array[e(373)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=212]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(655678===-parseInt(e(279))/1*(parseInt(e(271))/2)+parseInt(e(262))/3+parseInt(e(272))/4*(-parseInt(e(246))/5)+-parseInt(e(232))/6+-parseInt(e(250))/7*(-parseInt(e(254))/8)+-parseInt(e(223))/9*(-parseInt(e(273))/10)+parseInt(e(280))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(305)]=[];[u(236)]=null;[u(302)]=null;[u(291)];[u(218)];[u(264)];static get[u(233)](){return u(313)}static get[u(297)](){return!0}static get[u(213)](){return!0}constructor(t){const e=u;super(t),this[e(291)]=new l(this[e(308)][e(231)],{elementName:e(235),getElementKey:()=>e(277)}),this[e(218)]=new l(this[e(308)][e(231)],{elementName:e(307),getElementKey:t=>t[e(237)](e(229))}),this[e(264)]=new l(this[e(308)][e(231)],{elementName:e(274),getElementKey:t=>t[e(237)](e(229))})}[u(265)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(243)][t(228)](e=>{const n=t,i=o[n(243)][n(294)][n(306)]();let s=!1;return this[n(212)](e,i)&&(s=!0),this[n(225)](e,i)&&(s=!0),this[n(263)](e,i)&&(s=!0),this[n(299)](e)&&(s=!0),this[n(278)](e)&&(s=!0),this[n(258)](e)&&(s=!0),s}),this[t(270)](o[t(243)],t(300),()=>{const e=t;o[e(304)]({isUndoable:!1},t=>{this[e(292)](t)})},{priority:t(303)}),this[t(270)](n,t(216),()=>{const e=t;this[e(305)]=[],this[e(291)][e(275)](),this[e(218)][e(275)](),this[e(264)][e(275)]()},{priority:t(252)})}[u(230)](){return this[u(236)]}[u(257)](t){const e=u;return this[e(305)][e(247)](e=>e.id===t)||null}[u(287)](){const t=u;return Array[t(284)](this[t(305)])}[u(298)](){return this[u(302)]}[u(221)](t){this[u(302)]=t}[u(220)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(305)][o(214)];i++)this[o(224)](t,i)&&(n=!0);return n}[u(296)](t,e){const o=u,n=t[o(259)](o(235),{});return t[o(283)](n,e),this[o(236)]=n,n}[u(292)](t){const e=u;if(!this[e(305)][e(214)]||this[e(236)])return;const o=this[e(305)][0][e(248)][e(267)],n=this[e(296)](t,o);for(const o of this[e(305)])o[e(217)][e(276)]||t[e(286)](o[e(217)],n,e(222));this[e(220)](t)}[u(212)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(291)][o(306)](e);if(r[o(214)]&&(this[o(236)]=r[0]),i[o(214)])if(i[o(214)]>1||this[o(236)]&&i[o(311)](t=>t!==this[o(236)])){const e=t[o(259)](o(235),{}),s=[];this[o(236)]&&s[o(293)](this[o(236)]),s[o(293)](...i),t[o(286)](e,s[0],o(240));for(const n of s)t[o(309)](t[o(285)](n),t[o(261)](e,o(222))),t[o(310)](n);this[o(236)]=e,this[o(220)](t),n=!0}else this[o(236)]=i[0];if(s[o(214)]&&o(290)===this[o(236)]?.[o(267)][o(234)]){for(const e of this[o(305)])t[o(310)](e[o(248)]),n=!0;this[o(305)]=[],this[o(236)]=null}return n}[u(225)](t,e){const o=u;let n=!1;const i=this[o(308)][o(226)][o(242)](o(266)),{inserted:s,moved:r}=this[o(264)][o(306)](e);for(const e of[...r,...s]){const s=e[o(237)](o(229)),r=this[o(257)](s);r&&(r[o(217)]=e),p(t,i,e)&&(n=!0)}return n}[u(263)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(218)][o(306)](e);for(const e of i)this[o(255)](t,e)&&(n=!0);for(const e of s)this[o(269)](t,e)&&(n=!0);for(const e of r)this[o(288)](t,e)&&(n=!0);return n}[u(278)](t){const e=u;if(!this[e(236)])return!1;let o=!1;if(this[e(236)][e(227)]!==this[e(305)][e(214)]){const n=[];for(const t of this[e(236)][e(289)]()){const i=t[e(237)](e(229));this[e(257)](i)||(n[e(241)](t),o=!0)}for(const o of n)t[e(310)](o)}const n=new Set,i=[];for(const t of this[e(236)][e(289)]()){const s=t[e(237)](e(229));n[e(244)](s)?(i[e(241)](t),o=!0):n[e(282)](s)}for(const o of i)t[e(310)](o);return this[e(236)][e(227)]||(t[e(310)](this[e(236)]),this[e(236)]=null,o=!0),o}[u(269)](t,e){const o=u;if(this[o(305)][o(247)](t=>t[o(248)]===e))return!1;let n=!1;const i=e[o(237)](o(229)),s=this[o(305)][o(215)](t=>t.id===i);-1!==s&&(t[o(310)](this[o(305)][s][o(248)]),this[o(305)][o(238)](s,1),n=!0);let r=this[o(236)]?function(t,e){const n=o;for(const o of t[n(289)]())if(o[n(237)](n(229))===e)return o;return null}(this[o(236)],i):null;r||(r=t[o(259)](o(274),{footnoteId:i}),this[o(236)]&&(t[o(286)](r,this[o(236)],o(222)),n=!0));const a={id:i,reference:e,definition:r},c=h(this[o(308)][o(231)],this[o(305)],e);this[o(305)][o(238)](c,0,a);let l=c;return-1!==s&&(l=Math[o(301)](c,s)),this[o(220)](t,l)&&(n=!0),n}[u(255)](t,e){const o=u,n=this[o(305)][o(215)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(305)][n];return o(290)!==s[o(217)][o(267)][o(234)]&&(t[o(310)](s[o(217)]),i=!0),this[o(305)][o(238)](n,1),this[o(220)](t,n)&&(i=!0),i}[u(288)](t,e){const o=u,n=e[o(237)](o(229)),i=this[o(305)][o(215)](t=>t.id===n),s=this[o(305)][i];let r=!1;s[o(248)]=e,this[o(305)][o(238)](i,1);const a=h(this[o(308)][o(231)],this[o(305)],e);return this[o(305)][o(238)](a,0,s),this[o(220)](t,Math[o(301)](i,a))&&(r=!0),r}[u(224)](t,e){const o=u;if(!this[o(236)])return!1;const n=this[o(305)][e];let i;return i=this[o(302)]?this[o(302)]({footnote:n,container:this[o(236)],digits:String(this[o(305)][o(214)])[o(214)],value:e+1}):String(e+1),n[o(248)][o(237)](o(239))!=i&&(t[o(253)](o(239),i,n[o(248)]),!0)}[u(258)](t){const e=u;if(!this[e(236)]||this[e(305)][e(214)]<2)return!1;if(function(t,o){const n=e;if(t[n(214)]!==o[n(214)])return!1;for(let e=0;e<t[n(214)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(305)][e(251)](t=>t.id),Array[e(284)](this[e(236)][e(289)]())[e(251)](t=>t[e(237)](e(229)))))return!1;let o=!1;for(let n=0;n<this[e(305)][e(214)];n++){const i=this[e(305)][n],s=t[e(312)](i[e(217)]),r=t[e(261)](this[e(236)],n);s[e(219)](r)||(t[e(309)](t[e(256)](i[e(217)]),r),o=!0)}return o}[u(299)](t){const e=u;if(!this[e(305)][e(214)])return!1;const{model:o}=this[e(308)];let n=!1;for(let i=0;i<this[e(305)][e(214)]-1;i++){const s=this[e(305)][i],r=this[e(305)][i+1],a=o[e(312)](s[e(248)]),c=o[e(312)](r[e(248)]);e(281)===a[e(245)](c)&&(this[e(288)](t,s[e(248)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(227)])return!1;const i=n(e?249:268);return t[n(286)](t[n(259)](i),o),!0}function h(t,e,o){const n=u;if(0===e[n(214)])return 0;const i=t[n(312)](o);for(let o=0;o<e[n(214)];o++){const s=e[o],r=t[n(312)](s[n(248)]);if(n(240)===i[n(245)](r))return o}const s=o[n(267)];let r=-1;for(let t=e[n(214)]-1;t>=0;t--)if(e[t][n(248)][n(267)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(243)][n(295)](),c=a[n(260)](s[n(234)]),l=a[c+1];if(l)for(let t=0;t<e[n(214)];t++)if(e[t][n(248)][n(267)][n(234)]===l)return t;return e[n(214)]}function m(){const t=["10838784dFrDcm","after","add","append","from","createRangeIn","insert","getFootnotes","_handleMovedFootnoteReference","getChildren","$graveyard","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","push","differ","getRootNames","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","getFootnotesFormatter","_ensureFootnotesReferencesHaveProperOrder","change:data","min","_footnoteFormatter","low","enqueueChange","_footnotes","getChanges","footnoteRef","editor","move","remove","some","createPositionBefore","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","isPremiumPlugin","length","findIndex","set","definition","_footnoteRefsTracker","isEqual","_updateFootnotesCounters","setFootnoteFormatter","end","2237328MrDUrA","_updateFootnoteRefCounter","_handleFootnoteDefinitionsChanges","config","childCount","registerPostFixer","footnoteId","getFootnotesDefinitionsObjectElement","model","5107854NclYTz","pluginName","rootName","footnotesDefinitions","_footnotesDefinitions","getAttribute","splice","footnoteCounter","before","unshift","get","document","has","compareWith","5wxQOTT","find","reference","paragraph","91YNHZdR","map","high","setAttribute","657128iUlZNt","_handleRemoveFootnoteReferenceById","createRangeOn","getFootnote","_sortFootnoteDefinitions","createElement","indexOf","createPositionAt","1958943cDDkgz","_handleFootnoteReferencesChanges","_footnoteDefsTracker","init","footnotes.multiBlock","root","footnoteInlineContent","_handleInsertedFootnoteReference","listenTo","12DmiLhQ","5156108LyBWcX","50fzwDJi","footnoteDefinition","reset","parent","singleton","_handleFootnotesDefinitionsObjectSync","192184OckteC"];return(m=function(){return t})()}const g=y;function w(){const t=["string","261zjspjd","test","document","isBlock","2679477QDMVLR","isEnabled","FootnotesEditing","get","selection","createElement","change","getItems","plugins","8xpBGyU","3498486bHniUK","checkChild","157760XAwNDX","footnoteId","20302ZfreIL","end","refresh","length","isObject","footnoteRef","execute","editor","_moveSelectionToFootnoteDefinition","insert-footnote-command-executed-with-invalid-id","model","7642850dmXZzR","_getPositionToInsertFootnote","4366320QIUbre","43RCbvHf","insertObject","getFirstRange","1745080vRoZnU"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(474450===parseInt(e(156))/1*(parseInt(e(142))/2)+-parseInt(e(128))/3+parseInt(e(137))/4*(parseInt(e(122))/5)+-parseInt(e(138))/6+parseInt(e(155))/7+-parseInt(e(140))/8*(parseInt(e(124))/9)+parseInt(e(153))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(144)](){const t=g,e=this[t(149)][t(152)][t(126)][t(132)],o=this[t(154)](e);this[t(129)]=!!o}[g(148)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(126)],r=this[e(154)](s);if(!r)return;const a=o[e(136)][e(131)](e(130)),c=t?.[e(141)]??(0,i.uid)();!function(t){const o=e;return o(123)==typeof t&&t[o(145)]>0&&!/\s/[o(125)](t)&&!/^\d/[o(125)](t)}(c)?(0,i.logWarning)(e(151)):(n[e(134)](t=>{const o=e,i=t[o(133)](o(147),{footnoteId:c});n[o(157)](i,r,null)}),a[e(150)](c))}[g(154)](t){const e=g,{model:o}=this[e(149)],{schema:n}=o,i=t[e(121)]();for(const t of i[e(135)]())if(n[e(127)](t)||n[e(146)](t))return null;const s=i[e(143)];return n[e(139)](s,e(147))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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])](u(t)):null}function u(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 f(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 p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}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])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,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,h=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])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=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 u=(0,i.uid)();function h(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(f(u+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(f(t)),n=p(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(f(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])](p(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])]:u}},{[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=>{h(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])](u(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:1765152e3;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&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||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})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(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 T(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 D=o(331);const S=A;function A(t,e){const o=P();return(A=function(t,e){return o[t-=111]})(t,e)}function P(){const t=["drop","selection","footnoteRef","editor","get","FootnotesClipboard","getSelectedBlocks","380osOmYr","createElement","create","outputTransformation","end","footnotes.multiBlock","createRangeIn","pluginName","insert","application/ckeditor5-footnotes","toView","_defineClipboardIntegration","reduce","append","_handlePasteFootnotesDefinitions","length","contentInsertion","find","remove","toData","push","isOfficialPlugin","15193780SJhreg","footnotesDefinitions","520971upFJQr","editing","getFootnotesDefinitionsObjectElement","2410050DLedMm","getFootnote","22841kgiRdT","element","setData","change","1616ixkMOH","getData","footnoteId","from","getRanges","data","51416wRDPLf","init","isPremiumPlugin","includes","toModel","document","getFootnotes","add","requires","clipboardInput","3006288CRvuoN","_handleCopyFootnotesDefinitions","footnoteInlineContent","getFirstRange","method","root","setAttribute","htmlProcessor","entries","parse","flatMap","footnoteDefinition","_insertEmptyFootnotesDefinitionsContainer","15dqKnVq","dataTransfer","content","definition","listenTo","sourceEditorId","config","342586oFkpYA","stringify","getAttribute"];return(P=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(527363===-parseInt(e(168))/1+-parseInt(e(134))/2*(parseInt(e(127))/3)+-parseInt(e(183))/4*(-parseInt(e(144))/5)+parseInt(e(171))/6+parseInt(e(173))/7*(-parseInt(e(177))/8)+-parseInt(e(114))/9+parseInt(e(166))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class L extends t.Plugin{static get[S(151)](){return S(142)}static get[S(112)](){return[v,D.ClipboardPipeline]}static get[S(165)](){return!0}static get[S(185)](){return!0}[S(184)](){this[S(155)]()}[S(155)](){const t=S;this[t(115)](),this[t(158)]()}[S(115)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(141)](D.ClipboardPipeline),s=o[t(141)](d);this[t(131)](i,t(147),(o,i)=>{const r=t,a=_(n[r(150)](i[r(129)]));if(!a[r(159)])return;const c=s[r(189)](),l=a[r(156)]((t,o)=>{const n=r,i=c[n(161)](t=>t.id===o);if(i){const o=e[n(182)][n(154)](i[n(130)],{isClipboardPipeline:!0}),s=e[n(182)][n(121)][n(163)](o);t[i.id]=s}return t},Object[r(146)](null));i[r(128)][r(175)](r(153),JSON[r(135)](l))})}[S(158)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(169)],r=n[t(141)](D.ClipboardPipeline),a=n[t(141)](d),c=e[t(133)][t(141)](t(149));let l=null;this[t(131)](s[t(188)],t(113),(e,o)=>{const n=t,i=o[n(128)][n(178)](n(153));l=i?JSON[n(123)](i):null}),this[t(131)](r,t(160),(n,s)=>{const r=t,u=s[r(132)]===this[r(140)].id;u&&r(137)===s[r(118)]||o[r(176)](t=>{const n=r;let f=a[n(170)]();const d=!!f&&Array[n(180)](o[n(188)][n(138)][n(143)]())[n(186)](f);if((f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(150)](e))n.is(o(174),o(167))&&i[o(164)](n);for(const e of i)t[o(162)](e)}(t,s[n(129)]),!l)return;const{selection:p}=o[n(188)],h=p[n(117)]()[n(119)];f&&!d||(f=function(t,e){const o=n;for(const{item:n}of t[o(150)](e))if(n.is(o(174),o(167)))return n;return null}(t,s[n(129)]),f||=a[n(126)](t,h));const m=Array[n(180)](p[n(181)]())[n(124)](_),g=function(t,e,o){const s=n,r=Object[s(146)](null);for(const{item:n}of t[s(150)](e))if(n.is(s(174),s(139))){const e=n[s(136)](s(179));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(120)](s(179),r[e],n)}return r}(t,s[n(129)],t=>{const e=n;return!u||!!a[e(172)](t)&&!m[e(186)](t)});for(const[o,i]of Object[n(122)](l)){const s=g[o]||o,r=t[n(145)](n(125),{footnoteId:s}),a=e[n(182)][n(121)][n(154)](i);let l;if(c)l=e[n(182)][n(187)](a,r);else{l=t[n(145)](n(116));const o=e[n(182)][n(187)](a,l);t[n(152)](o,l)}t[n(157)](l,r),t[n(152)](r,f,n(148))}l=null})})}}function _(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(174),e(139))&&o[e(111)](n[e(136)](e(179)));return Array[e(180)](o)}var V=o(311),N=o(355),O=o(929),R=o.n(O),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),H=o(741),z=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=z();R()(J.A,X);J.A&&J.A.locals&&J.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,V.ButtonView)),e.add("menuBar:insertFootnote",Q(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 Q(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:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=$;function Z(){var t=["34635807ynWCcQ","pluginName","requires","isPremiumPlugin","8234100jwiyvb","1044127IWtDnF","614464iowmqQ","1414FCYqwX","Footnotes","2MOOulP","27606TsrTUv","2507200eKpJmL","3653601NRJopV","isOfficialPlugin"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=167]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(830009===parseInt(e(176))/1+-parseInt(e(180))/2*(-parseInt(e(169))/3)+parseInt(e(177))/4+parseInt(e(175))/5+-parseInt(e(167))/6*(-parseInt(e(178))/7)+-parseInt(e(168))/8+-parseInt(e(171))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class G extends t.Plugin{static get[Y(172)](){return Y(179)}static get[Y(173)](){return[v,L,q]}static get[Y(170)](){return!0}static get[Y(174)](){return!0}}function tt(){const t=["decimal","10yTFJcW","decimal-leading-zero","888WZpogb","67075VPxNNE","upper-roman","lower-roman","71832YJcbOQ","upper-alpha","2hzULph","135885zGnUdm","1834857rtiAdV","lower-alpha","30331vCneXy","19115217yWtlmR","3612305civPks","6OTpqWZ","upper-latin","lower-latin"];return(tt=function(){return t})()}const et=ot;function ot(t,e){const o=tt();return(ot=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(460778===parseInt(e(124))/1*(parseInt(e(129))/2)+parseInt(e(130))/3+parseInt(e(127))/4+-parseInt(e(135))/5*(parseInt(e(136))/6)+-parseInt(e(133))/7*(parseInt(e(123))/8)+-parseInt(e(131))/9*(parseInt(e(121))/10)+parseInt(e(134))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[et(120),et(122),et(138),et(137),et(132),et(128),et(126),et(125)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=261]})(t,e)}function rt(){const t=["plugins","298049wvisPe","change","getAttribute","refresh","getFootnotesDefinitionsObjectElement","setAttribute","isEnabled","2HbMFHk","1954998xPcFrA","272715DLvqXi","126468tfetBF","footnotesListStyle","21zJNsfl","includes","710DmasjW","value","execute","8417431nJsgdt","get","_updateFootnotesCounters","50EIYCVF","model","444kgBUmu","480824HZdMCP"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(215897===-parseInt(e(279))/1*(-parseInt(e(261))/2)+parseInt(e(263))/3+parseInt(e(276))/4*(parseInt(e(268))/5)+parseInt(e(262))/6+parseInt(e(266))/7*(parseInt(e(277))/8)+-parseInt(e(264))/9*(-parseInt(e(274))/10)+-parseInt(e(271))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(282)](){const t=it,{editor:e}=this,o=e[t(278)][t(272)](d)[t(283)]();this[t(285)]=!!o,this[t(269)]=o?.[t(281)](t(265))??null}[it(270)]({value:t}){const e=it,{editor:o}=this,n=o[e(278)][e(272)](d),i=n[e(283)]();i&&nt[e(267)](t)&&o[e(275)][e(280)](o=>{const s=e;o[s(284)](s(265),t,i),n[s(273)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(171042===-parseInt(e(237))/1+-parseInt(e(236))/2*(-parseInt(e(226))/3)+parseInt(e(223))/4+parseInt(e(217))/5+-parseInt(e(214))/6*(parseInt(e(221))/7)+-parseInt(e(233))/8+-parseInt(e(230))/9*(-parseInt(e(228))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(229)](){const t=ct,{editor:e}=this,o=e[t(232)][t(227)](d)[t(224)]();this[t(234)]=!!o,this[t(218)]=o?.[t(220)](t(231))??null}[ct(216)]({value:t}){const e=ct,{editor:o}=this,n=o[e(232)][e(227)](d),i=n[e(224)]();i&&Number[e(219)](t)&&o[e(225)][e(235)](o=>{const s=e;o[s(215)](s(231),t,i),n[s(222)](o)})}}function ft(){const t=["2610agEMhx","refresh","1746wQSMLY","footnotesListStart","plugins","587480YNRTTV","isEnabled","change","2ZHRYUT","281775UtpbBV","18qprAcF","setAttribute","execute","1056825jYaHNL","value","isInteger","getAttribute","135443ICErvs","_updateFootnotesCounters","1222268gKWlnm","getFootnotesDefinitionsObjectElement","model","50199SsZsHJ","get"];return(ft=function(){return t})()}const dt=pt;function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=138]})(t,e)}function ht(){const t=["downcast","toViewElement","element:ol","8544216MuLckH","getItems","upper-alpha","lower-latin","$text","isPremiumPlugin","init","add","start","isNaN","_definePostfixer","isOfficialPlugin","removeAttribute","564heScHV","_getDefaultListStyle","footnotes.footnotesProperties.defaultListStyle","decimal-leading-zero","getAttribute","hasAttribute","upper-latin","upcast","for","_updateFootnotesCounters","element","config","626095uALuTN","lower-roman","toUpperCase","attribute:footnotesListStart:footnotesDefinitions","modelCursor","footnotesDefinitions","footnotesListStyle","187vbvjVa","parseInt","name","getChanges","setAttribute","type","hasClass","setStyle","checkAttribute","_getDefaultStartIndex","padStart","FootnotesPropertiesEditing","footnotesStart","lower-alpha","insert","requires","document","define","from","model","get","upper-roman","getChildren","viewItem","find","427884BfPxXu","extend","list-style-type","decimal","registerPostFixer","editor","3148MEYZdI","parent","3QwTpaA","footnotesListStart","9LjlKZc","761BApDtQ","_defineConverters","consume","setFootnoteFormatter","commands","getStyle","floor","footnotesStyle","_defineFormatter","toLowerCase","writer","pluginName","consumable","createRangeOn","212484llZJzi","attribute:footnotesListStyle:footnotesDefinitions","item","max","footnotes.footnotesProperties.defaultStartIndex","removeStyle","10661650MiLpOi","91483CaWgML","differ","nodeAfter","fromCharCode","_formatFootnoteListValue","footnotes-list","position","mapper","schema","plugins","_defineSchema"];return(ht=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(970375===-parseInt(e(188))/1*(-parseInt(e(183))/2)+parseInt(e(185))/3*(-parseInt(e(202))/4)+parseInt(e(145))/5+parseInt(e(236))/6*(parseInt(e(209))/7)+parseInt(e(223))/8*(-parseInt(e(187))/9)+-parseInt(e(208))/10+-parseInt(e(152))/11*(-parseInt(e(177))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[dt(199)](){return dt(163)}static get[dt(167)](){return[v,d]}static get[dt(234)](){return!0}static get[dt(228)](){return!0}[dt(229)](){const t=dt,{editor:e}=this;e[t(144)][t(169)](t(238),t(180)),e[t(144)][t(169)](t(206),1),e[t(192)][t(230)](t(195),new at(e)),e[t(192)][t(230)](t(164),new ut(e)),this[t(219)](),this[t(189)](),this[t(196)](),this[t(233)]()}[dt(219)](){const t=dt,{editor:e}=this,{schema:o}=e[t(171)];o[t(178)](t(150),{allowAttributes:[t(151),t(186)]})}[dt(189)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(141)](t(140))[t(230)](e=>{const o=t;e.on(o(222),(t,e,n)=>{const s=o,r=e[s(175)],a=e[s(149)]?.[s(184)];r[s(158)](s(214))&&a?.is(s(143),s(150))&&(function(t,e,o,n){const i=s;if(!n[i(160)](e,i(186)))return;let r=1;const a=o[i(200)][i(190)](t,{attributes:i(231)});if(a){const e=Number[i(153)](t[i(240)](i(231)),10);Number[i(232)](e)||(r=e)}!a&&e[i(138)](i(186))||o[i(198)][i(156)](i(186),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(160)](e,i(151)))return;let r=i(180),a=!1;if(o[i(200)][i(190)](t,{attributes:i(157)})){const e={1:i(180),a:i(165),A:i(225),i:i(146),I:i(173)}[t[i(240)](i(157))];e&&(r=e),a=!0}o[i(200)][i(190)](t,{styles:i(179)})&&(r=function(t){const e=i;switch(t){case e(165):return e(226);case e(225):return e(139);default:return t}}(t[i(193)](i(179))),a=!0),!a&&e[i(138)](i(151))||o[i(198)][i(156)](i(151),r,e)}(r,a,n,i))})}),o[t(141)](t(220))[t(230)](e=>{const o=t;e.on(o(148),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;null==r||1===r?n[i(198)][i(235)](i(231),s):n[i(198)][i(156)](i(231),String(r),s)}),e.on(o(203),(t,e,n)=>{const i=o;if(!n[i(200)][i(190)](e[i(204)],t[i(154)]))return;const s=gt(e[i(204)],n[i(216)]),{attributeNewValue:r}=e;r&&i(180)!==r?n[i(198)][i(159)](i(179),r,s):n[i(198)][i(207)](i(179),s)})})}[dt(233)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(218)][t(172)](d),i=this[t(237)](),s=this[t(161)]();o[t(168)][t(181)](e=>{const r=t,a=o[r(168)][r(210)][r(155)]();let c=!1;for(const t of a){if(r(166)!==t[r(157)]||r(227)===t[r(154)])continue;const n=o[r(201)](t[r(215)][r(211)]);for(const t of n[r(224)]())t.is(r(143),r(150))&&(!t[r(138)](r(186))&&o[r(217)][r(160)](t,r(186))&&(e[r(156)](r(186),s,t),c=!0),!t[r(138)](r(151))&&o[r(217)][r(160)](t,r(151))&&(e[r(156)](r(151),i,t),c=!0))}return c&&n[r(142)](e),c})}[dt(196)](){const t=dt,{editor:e}=this;e[t(218)][t(172)](d)[t(191)](e=>this[t(213)](e))}[dt(237)](){const t=dt;return this[t(182)][t(144)][t(172)](t(238))}[dt(161)](){const t=dt;return this[t(182)][t(144)][t(172)](t(206))}[dt(213)]({container:t,value:e,digits:o}){const n=dt,i=t[n(240)](n(151)),s=t[n(240)](n(186)),r=Math[n(194)](e)+(s??1)-1;switch(i){case n(239):return function(t,e){const o=n;return String(t)[o(162)](e,"0")}(r,Math[n(205)](2,o));case n(165):case n(226):return wt(r,!1);case n(225):case n(139):return wt(r,!0);case n(146):return bt(r,!1);case n(173):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(221)](t);return Array[o(170)](n[o(174)]())[o(176)](t=>t.is(o(143),"ol")&&t[o(158)](o(214)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(212)](97+t)+n,i=Math[o(194)]((i-1)/26)}return e?n[o(147)]():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=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(197)]()}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=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=z();R()(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:N.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:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.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]})}}function Ft(t,e){var o=Et();return(Ft=function(t,e){return o[t-=219]})(t,e)}var xt=Ft;function Et(){var t=["7458552CHyHXO","28528VbKaNx","848640hOJAdB","requires","FootnotesProperties","488578CUJXmG","1169jkRWRS","392TXUbZS","pluginName","6IHlbxd","isPremiumPlugin","64680yLVxyn","1141641XwJckf","isOfficialPlugin","4955160JvgOBt"];return(Et=function(){return t})()}!function(t){for(var e=Ft,o=t();;)try{if(769823===parseInt(e(225))/1*(-parseInt(e(229))/2)+parseInt(e(232))/3+parseInt(e(227))/4*(parseInt(e(231))/5)+-parseInt(e(222))/6+parseInt(e(226))/7*(-parseInt(e(221))/8)+parseInt(e(220))/9+parseInt(e(219))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Tt extends t.Plugin{static get[xt(228)](){return xt(224)}static get[xt(223)](){return[mt,Ct]}static get[xt(233)](){return!0}static get[xt(230)](){return!0}}function Dt(t,e){var o=St();return(Dt=function(t,e){return o[t-=364]})(t,e)}function St(){var t=["410166eDQyDu","335020CrOWNL","5tiYijC","1417004InYyin","57AbehcL","1838648JCspQX","7JJfHPD","999018SYctLX","12942420CauXLD","37646oQyduJ"];return(St=function(){return t})()}!function(t){for(var e=Dt,o=t();;)try{if(196866===-parseInt(e(366))/1+-parseInt(e(364))/2*(parseInt(e(369))/3)+-parseInt(e(368))/4+parseInt(e(367))/5*(parseInt(e(365))/6)+-parseInt(e(371))/7*(parseInt(e(370))/8)+parseInt(e(372))/9+parseInt(e(373))/10)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 _0xeb7666,Command as _0x27ce1c}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5b4e1d,isWidget as _0x9e120c,toWidgetEditable as _0x5ab702,WidgetToolbarRepository as _0x6c66e1}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x32a995,logWarning as _0x4e63a5,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xf6f06a,ClickObserver as _0x3d3d3e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4bcc1e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1e6c82,ButtonView as _0x2c7d7a,View as _0x5f3e58,ViewCollection as _0x367b77,FocusCycler as _0x2faa84,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x59ce17,BalloonPanelView as _0x2fd527,createDropdown as _0x38dfa3}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3b34e6,IconListStyleDecimal as _0x383181,IconListStyleDecimalLeadingZero as _0x383ca1,IconListStyleLowerRoman as _0x157553,IconListStyleUpperRoman as _0x5b268f,IconListStyleLowerLatin as _0x1af5e5,IconListStyleUpperLatin as _0x22b71f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x161278,_0x1248fc){this['_model']=_0x161278,this['_elementName']=_0x1248fc['elementName'],this['_getElementKey']=_0x1248fc['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x4aa7d0){const _0x5c75b7=new Set(),_0x20cd7a=new Map();for(const _0x13adc6 of _0x4aa7d0){if('insert'===_0x13adc6['type']&&'$text'!==_0x13adc6['name']&&_0x13adc6['position']['nodeAfter']){const _0xd15ae7=this['_model']['createRangeOn'](_0x13adc6['position']['nodeAfter']);for(const _0x3c6fa9 of _0xd15ae7['getItems']()){if(!_0x3c6fa9['is']('element',this['_elementName']))continue;const _0x48102f=this['_getElementKey'](_0x3c6fa9);_0x20cd7a['has'](_0x48102f)||_0x20cd7a['set'](_0x48102f,[]),_0x20cd7a['get'](_0x48102f)['push'](_0x3c6fa9);}}if('remove'===_0x13adc6['type']&&_0x13adc6['name']===this['_elementName']){const _0x7aa5cc=this['_getElementKey']({'getAttribute':_0x41a63e=>_0x13adc6['attributes']['get'](_0x41a63e)});_0x5c75b7['add'](_0x7aa5cc);}}for(const [_0x5574dd,_0x57c04f]of this['_trackedElements'])'$graveyard'===_0x57c04f['root']['rootName']&&_0x5c75b7['add'](_0x5574dd);for(const _0x5b80de of _0x5c75b7)this['_trackedElements']['delete'](_0x5b80de);for(const [_0x57afa5,_0xa147ca]of _0x20cd7a)this['_trackedElements']['set'](_0x57afa5,_0xa147ca[_0xa147ca['length']-0x1]);const _0x13db7d=new Set();for(const [_0x139b91,_0x570d71]of _0x20cd7a)_0x5c75b7['has'](_0x139b91)&&(_0x13db7d['add'](_0x570d71[0x0]),_0x570d71['length']>0x1?_0x20cd7a['set'](_0x139b91,_0x570d71['slice'](0x1)):_0x20cd7a['delete'](_0x139b91),_0x5c75b7['delete'](_0x139b91));return{'removed':Array['from'](_0x5c75b7),'inserted':Array['from'](_0x20cd7a['values']())['flat'](),'moved':Array['from'](_0x13db7d)};}}class f extends _0xeb7666{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xd1b2a4){super(_0xd1b2a4),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4fadbe=>_0x4fadbe['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0xbaaba9=>_0xbaaba9['getAttribute']('footnoteId')});}['init'](){const {editor:_0x56b088}=this,{model:_0x41119c,data:_0x25b635}=_0x56b088;_0x41119c['document']['registerPostFixer'](_0x3304c7=>{const _0x3ac473=_0x41119c['document']['differ']['getChanges']();let _0x48fe76=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3304c7,_0x3ac473)&&(_0x48fe76=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3304c7,_0x3ac473)&&(_0x48fe76=!0x0),this['_handleFootnoteReferencesChanges'](_0x3304c7,_0x3ac473)&&(_0x48fe76=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3304c7)&&(_0x48fe76=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3304c7)&&(_0x48fe76=!0x0),this['_sortFootnoteDefinitions'](_0x3304c7)&&(_0x48fe76=!0x0),_0x48fe76;}),this['listenTo'](_0x41119c['document'],'change:data',()=>{_0x41119c['enqueueChange']({'isUndoable':!0x1},_0x37eddc=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x37eddc);});},{'priority':'low'}),this['listenTo'](_0x25b635,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3bd987){return this['_footnotes']['find'](_0x346e04=>_0x346e04['id']===_0x3bd987)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4a7c3b){this['_footnoteFormatter']=_0x4a7c3b;}['_updateFootnotesCounters'](_0x5e19ae,_0x4d2ad2=0x0){let _0x1e6370=!0x1;for(let _0x30ae6c=_0x4d2ad2;_0x30ae6c<this['_footnotes']['length'];_0x30ae6c++)this['_updateFootnoteRefCounter'](_0x5e19ae,_0x30ae6c)&&(_0x1e6370=!0x0);return _0x1e6370;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3a09af,_0x183a1d){const _0x3303bb=_0x3a09af['createElement']('footnotesDefinitions',{});return _0x3a09af['append'](_0x3303bb,_0x183a1d),this['_footnotesDefinitions']=_0x3303bb,_0x3303bb;}['_ensureFootnotesDefinitionsContainerExists'](_0x5dd7e3){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5c922b=this['_footnotes'][0x0]['reference']['root'],_0x291b17=this['_insertEmptyFootnotesDefinitionsContainer'](_0x5dd7e3,_0x5c922b);for(const _0x2cd683 of this['_footnotes'])_0x2cd683['definition']['parent']||_0x5dd7e3['insert'](_0x2cd683['definition'],_0x291b17,'end');this['_updateFootnotesCounters'](_0x5dd7e3);}['_handleFootnotesDefinitionsObjectChanges'](_0x4c6513,_0x1ae4a1){let _0x5694e9=!0x1;const {inserted:_0x3ce33d,removed:_0xf4cd49,moved:_0x45d180}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1ae4a1);if(_0x45d180['length']&&(this['_footnotesDefinitions']=_0x45d180[0x0]),_0x3ce33d['length']){if(_0x3ce33d['length']>0x1||this['_footnotesDefinitions']&&_0x3ce33d['some'](_0x31aebe=>_0x31aebe!==this['_footnotesDefinitions'])){const _0x5a8750=_0x4c6513['createElement']('footnotesDefinitions',{}),_0x4664a0=[];this['_footnotesDefinitions']&&_0x4664a0['push'](this['_footnotesDefinitions']),_0x4664a0['push'](..._0x3ce33d),_0x4c6513['insert'](_0x5a8750,_0x4664a0[0x0],'before');for(const _0x2634b1 of _0x4664a0)_0x4c6513['move'](_0x4c6513['createRangeIn'](_0x2634b1),_0x4c6513['createPositionAt'](_0x5a8750,'end')),_0x4c6513['remove'](_0x2634b1);this['_footnotesDefinitions']=_0x5a8750,this['_updateFootnotesCounters'](_0x4c6513),_0x5694e9=!0x0;}else this['_footnotesDefinitions']=_0x3ce33d[0x0];}if(_0xf4cd49['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x49511f of this['_footnotes'])_0x4c6513['remove'](_0x49511f['reference']),_0x5694e9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5694e9;}['_handleFootnoteDefinitionsChanges'](_0x30e198,_0x3d145a){let _0x482651=!0x1;const _0x2762df=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x339f69,moved:_0x42fa9d}=this['_footnoteDefsTracker']['getChanges'](_0x3d145a);for(const _0x38889c of[..._0x42fa9d,..._0x339f69]){const _0x58e9a4=_0x38889c['getAttribute']('footnoteId'),_0xbc9e1f=this['getFootnote'](_0x58e9a4);_0xbc9e1f&&(_0xbc9e1f['definition']=_0x38889c),_(_0x30e198,_0x2762df,_0x38889c)&&(_0x482651=!0x0);}return _0x482651;}['_handleFootnoteReferencesChanges'](_0x164f77,_0x1ccfe5){let _0x13291a=!0x1;const {removed:_0x4c5a66,inserted:_0x2d9c19,moved:_0x9f2e63}=this['_footnoteRefsTracker']['getChanges'](_0x1ccfe5);for(const _0x1a0b5b of _0x4c5a66)this['_handleRemoveFootnoteReferenceById'](_0x164f77,_0x1a0b5b)&&(_0x13291a=!0x0);for(const _0x3caa6d of _0x2d9c19)this['_handleInsertedFootnoteReference'](_0x164f77,_0x3caa6d)&&(_0x13291a=!0x0);for(const _0x2bf791 of _0x9f2e63)this['_handleMovedFootnoteReference'](_0x164f77,_0x2bf791)&&(_0x13291a=!0x0);return _0x13291a;}['_handleFootnotesDefinitionsObjectSync'](_0x3c0870){if(!this['_footnotesDefinitions'])return!0x1;let _0x55f301=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x262fad=[];for(const _0x2a75b7 of this['_footnotesDefinitions']['getChildren']()){const _0x5b79bb=_0x2a75b7['getAttribute']('footnoteId');this['getFootnote'](_0x5b79bb)||(_0x262fad['unshift'](_0x2a75b7),_0x55f301=!0x0);}for(const _0x34002b of _0x262fad)_0x3c0870['remove'](_0x34002b);}const _0x4429e7=new Set(),_0x4f7b49=[];for(const _0x5c4261 of this['_footnotesDefinitions']['getChildren']()){const _0x439a76=_0x5c4261['getAttribute']('footnoteId');_0x4429e7['has'](_0x439a76)?(_0x4f7b49['unshift'](_0x5c4261),_0x55f301=!0x0):_0x4429e7['add'](_0x439a76);}for(const _0x2eace6 of _0x4f7b49)_0x3c0870['remove'](_0x2eace6);return this['_footnotesDefinitions']['childCount']||(_0x3c0870['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x55f301=!0x0),_0x55f301;}['_handleInsertedFootnoteReference'](_0x4d1a06,_0x5a73eb){if(this['_footnotes']['find'](_0x9a40b6=>_0x9a40b6['reference']===_0x5a73eb))return!0x1;let _0x32cff9=!0x1;const _0xe60057=_0x5a73eb['getAttribute']('footnoteId'),_0x4f0006=this['_footnotes']['findIndex'](_0x4627fd=>_0x4627fd['id']===_0xe60057);-0x1!==_0x4f0006&&(_0x4d1a06['remove'](this['_footnotes'][_0x4f0006]['reference']),this['_footnotes']['splice'](_0x4f0006,0x1),_0x32cff9=!0x0);let _0x3d6eb6=this['_footnotesDefinitions']?function(_0x301858,_0x3af151){for(const _0x1b8eaf of _0x301858['getChildren']())if(_0x1b8eaf['getAttribute']('footnoteId')===_0x3af151)return _0x1b8eaf;return null;}(this['_footnotesDefinitions'],_0xe60057):null;_0x3d6eb6||(_0x3d6eb6=_0x4d1a06['createElement']('footnoteDefinition',{'footnoteId':_0xe60057}),this['_footnotesDefinitions']&&(_0x4d1a06['insert'](_0x3d6eb6,this['_footnotesDefinitions'],'end'),_0x32cff9=!0x0));const _0x274881={'id':_0xe60057,'reference':_0x5a73eb,'definition':_0x3d6eb6},_0x5cf2ab=I(this['editor']['model'],this['_footnotes'],_0x5a73eb);this['_footnotes']['splice'](_0x5cf2ab,0x0,_0x274881);let _0xf14360=_0x5cf2ab;return-0x1!==_0x4f0006&&(_0xf14360=Math['min'](_0x5cf2ab,_0x4f0006)),this['_updateFootnotesCounters'](_0x4d1a06,_0xf14360)&&(_0x32cff9=!0x0),_0x32cff9;}['_handleRemoveFootnoteReferenceById'](_0x3e8a37,_0x7d17f9){const _0x4c7cd5=this['_footnotes']['findIndex'](_0xd1c2c7=>_0xd1c2c7['id']===_0x7d17f9);if(-0x1===_0x4c7cd5)return!0x1;let _0xb05c56=!0x1;const _0x5eba95=this['_footnotes'][_0x4c7cd5];return'$graveyard'!==_0x5eba95['definition']['root']['rootName']&&(_0x3e8a37['remove'](_0x5eba95['definition']),_0xb05c56=!0x0),this['_footnotes']['splice'](_0x4c7cd5,0x1),this['_updateFootnotesCounters'](_0x3e8a37,_0x4c7cd5)&&(_0xb05c56=!0x0),_0xb05c56;}['_handleMovedFootnoteReference'](_0x16fbac,_0x21d064){const _0xedcd66=_0x21d064['getAttribute']('footnoteId'),_0x10f2f6=this['_footnotes']['findIndex'](_0x22b0d5=>_0x22b0d5['id']===_0xedcd66),_0x5061a7=this['_footnotes'][_0x10f2f6];let _0x15a733=!0x1;_0x5061a7['reference']=_0x21d064,this['_footnotes']['splice'](_0x10f2f6,0x1);const _0xd95303=I(this['editor']['model'],this['_footnotes'],_0x21d064);return this['_footnotes']['splice'](_0xd95303,0x0,_0x5061a7),this['_updateFootnotesCounters'](_0x16fbac,Math['min'](_0x10f2f6,_0xd95303))&&(_0x15a733=!0x0),_0x15a733;}['_updateFootnoteRefCounter'](_0x5e795d,_0x3b709e){if(!this['_footnotesDefinitions'])return!0x1;const _0x3dfdda=this['_footnotes'][_0x3b709e];let _0x4ab1bc;return _0x4ab1bc=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3dfdda,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3b709e+0x1}):String(_0x3b709e+0x1),_0x3dfdda['reference']['getAttribute']('footnoteCounter')!=_0x4ab1bc&&(_0x5e795d['setAttribute']('footnoteCounter',_0x4ab1bc,_0x3dfdda['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5ee665){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1bbdf4,_0x12eb92){if(_0x1bbdf4['length']!==_0x12eb92['length'])return!0x1;for(let _0x57015c=0x0;_0x57015c<_0x1bbdf4['length'];_0x57015c++)if(_0x1bbdf4[_0x57015c]!==_0x12eb92[_0x57015c])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5f1251=>_0x5f1251['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x25234d=>_0x25234d['getAttribute']('footnoteId'))))return!0x1;let _0x108753=!0x1;for(let _0x4702ed=0x0;_0x4702ed<this['_footnotes']['length'];_0x4702ed++){const _0x316939=this['_footnotes'][_0x4702ed],_0x354d11=_0x5ee665['createPositionBefore'](_0x316939['definition']),_0x1236db=_0x5ee665['createPositionAt'](this['_footnotesDefinitions'],_0x4702ed);_0x354d11['isEqual'](_0x1236db)||(_0x5ee665['move'](_0x5ee665['createRangeOn'](_0x316939['definition']),_0x1236db),_0x108753=!0x0);}return _0x108753;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2db1a4){if(!this['_footnotes']['length'])return!0x1;const {model:_0x279403}=this['editor'];let _0x454e49=!0x1;for(let _0x334f3e=0x0;_0x334f3e<this['_footnotes']['length']-0x1;_0x334f3e++){const _0x54f390=this['_footnotes'][_0x334f3e],_0x4b71eb=this['_footnotes'][_0x334f3e+0x1],_0x344164=_0x279403['createPositionBefore'](_0x54f390['reference']),_0x23567e=_0x279403['createPositionBefore'](_0x4b71eb['reference']);'after'===_0x344164['compareWith'](_0x23567e)&&(this['_handleMovedFootnoteReference'](_0x2db1a4,_0x54f390['reference']),_0x334f3e=-0x1,_0x454e49=!0x0);}return _0x454e49;}}function _(_0x322269,_0x456b13,_0xe27319){if(_0xe27319['childCount'])return!0x1;const _0x25ebe2=_0x456b13?'paragraph':'footnoteInlineContent';return _0x322269['insert'](_0x322269['createElement'](_0x25ebe2),_0xe27319),!0x0;}function I(_0x28a5e1,_0x1535f0,_0x25003b){if(0x0===_0x1535f0['length'])return 0x0;const _0x3ea404=_0x28a5e1['createPositionBefore'](_0x25003b);for(let _0x278514=0x0;_0x278514<_0x1535f0['length'];_0x278514++){const _0x872ba0=_0x1535f0[_0x278514],_0xec75c6=_0x28a5e1['createPositionBefore'](_0x872ba0['reference']);if('before'===_0x3ea404['compareWith'](_0xec75c6))return _0x278514;}const _0x1f988f=_0x25003b['root'];let _0x4a777e=-0x1;for(let _0x5c7e96=_0x1535f0['length']-0x1;_0x5c7e96>=0x0;_0x5c7e96--)if(_0x1535f0[_0x5c7e96]['reference']['root']===_0x1f988f){_0x4a777e=_0x5c7e96;break;}if(-0x1!==_0x4a777e)return _0x4a777e+0x1;const _0x1d7d19=_0x28a5e1['document']['getRootNames'](),_0x1f84e7=_0x1d7d19['indexOf'](_0x1f988f['rootName']),_0x44ca8b=_0x1d7d19[_0x1f84e7+0x1];if(_0x44ca8b){for(let _0x3e9e45=0x0;_0x3e9e45<_0x1535f0['length'];_0x3e9e45++)if(_0x1535f0[_0x3e9e45]['reference']['root']['rootName']===_0x44ca8b)return _0x3e9e45;}return _0x1535f0['length'];}class m extends _0x27ce1c{['refresh'](){const _0x4ca039=this['editor']['model']['document']['selection'],_0x23999f=this['_getPositionToInsertFootnote'](_0x4ca039);this['isEnabled']=!!_0x23999f;}['execute'](_0x48b2e0){const {editor:_0x4d3efd}=this,{model:_0x4463ea}=_0x4d3efd,{selection:_0x386d40}=_0x4463ea['document'],_0x50077c=this['_getPositionToInsertFootnote'](_0x386d40);if(!_0x50077c)return;const _0x3e9984=_0x4d3efd['plugins']['get']('FootnotesEditing'),_0x4c87c3=_0x48b2e0?.['footnoteId']??_0x32a995();!function(_0x2332ca){return'string'==typeof _0x2332ca&&_0x2332ca['length']>0x0&&!/\s/['test'](_0x2332ca)&&!/^\d/['test'](_0x2332ca);}(_0x4c87c3)?_0x4e63a5('insert-footnote-command-executed-with-invalid-id'):(_0x4463ea['change'](_0x5190f7=>{const _0x22ef28=_0x5190f7['createElement']('footnoteRef',{'footnoteId':_0x4c87c3});_0x4463ea['insertObject'](_0x22ef28,_0x50077c,null);}),_0x3e9984['_moveSelectionToFootnoteDefinition'](_0x4c87c3));}['_getPositionToInsertFootnote'](_0x572a6c){const {model:_0x5784dd}=this['editor'],{schema:_0x5a773d}=_0x5784dd,_0x3da15c=_0x572a6c['getFirstRange']();for(const _0x192b6d of _0x3da15c['getItems']())if(_0x5a773d['isBlock'](_0x192b6d)||_0x5a773d['isObject'](_0x192b6d))return null;const _0x2bdf30=_0x3da15c['end'];return _0x5a773d['checkChild'](_0x2bdf30,'footnoteRef')?_0x2bdf30:null;}}class r extends _0xeb7666{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24ade3}=this;_0x24ade3['config']['define']('footnotes.multiBlock',!0x0),_0x24ade3['commands']['add']('insertFootnote',new m(_0x24ade3)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5443c9){const _0x3ec974=_0x351f1c([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]),_0x12e50d=0x47a28506,_0x1f2f2a=0x47a5fe3e^_0x12e50d,_0x4ad894=window[_0x351f1c([0x44,0x61,0x74,0x65])][_0x351f1c([0x6e,0x6f,0x77])](),_0x12c78f=_0x5443c9[_0x351f1c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x545111=new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10050e=>{_0x12c78f[_0x351f1c([0x6f,0x6e,0x63,0x65])](_0x351f1c([0x72,0x65,0x61,0x64,0x79]),_0x10050e);}),_0x31f51d={[_0x351f1c([0x6b,0x74,0x79])]:_0x351f1c([0x45,0x43]),[_0x351f1c([0x75,0x73,0x65])]:_0x351f1c([0x73,0x69,0x67]),[_0x351f1c([0x63,0x72,0x76])]:_0x351f1c([0x50,0x2d,0x32,0x35,0x36]),[_0x351f1c([0x78])]:_0x351f1c([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]),[_0x351f1c([0x79])]:_0x351f1c([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]),[_0x351f1c([0x61,0x6c,0x67])]:_0x351f1c([0x45,0x53,0x32,0x35,0x36])},_0x4d3787=_0x12c78f[_0x351f1c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x351f1c([0x67,0x65,0x74])](_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4a6913(){let _0x3b9ac5,_0x1cedb1=null,_0x4d93a1=null;try{if(_0x4d3787==_0x351f1c([0x47,0x50,0x4c]))return _0x351f1c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3b9ac5=_0x4545b4(),!_0x3b9ac5)return _0x351f1c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3b9ac5[_0x351f1c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4d93a1=_0x28bf9d(_0x3b9ac5[_0x351f1c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3b9ac5[_0x351f1c([0x6a,0x74,0x69])])),await _0x586a48()?_0x415009()?_0x509b45()?_0x351f1c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5588cb()?(_0x3b9ac5[_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x351f1c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1cedb1=_0x5130ef(_0x351f1c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3b9ac5[_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x351f1c([0x74,0x72,0x69,0x61,0x6c])&&(_0x1cedb1=_0x5130ef(_0x351f1c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4bee1f()):_0x351f1c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x351f1c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x351f1c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x351f1c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x509b45(){const _0x143e0f=[_0x351f1c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x351f1c([0x74,0x72,0x69,0x61,0x6c])][_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3b9ac5[_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4ad894/0x3e8:0xe10*_0x1f2f2a;return _0x3b9ac5[_0x351f1c([0x65,0x78,0x70])]<_0x143e0f;}function _0x415009(){const _0x409a12=_0x3b9ac5[_0x351f1c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x409a12&&(!!_0x409a12[_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351f1c([0x2a]))||!!_0x409a12[_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351f1c([0x46,0x4f,0x4f])));}function _0x5588cb(){const _0x5562ee=_0x3b9ac5[_0x351f1c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5562ee||0x0==_0x5562ee[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x35270a}=new URL(window[_0x351f1c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5562ee[_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x35270a))return!0x0;const _0x160dba=_0x35270a[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])](_0x351f1c([0x2e]));return _0x5562ee[_0x351f1c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3927c1=>_0x3927c1[_0x351f1c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x351f1c([0x2a])))[_0x351f1c([0x6d,0x61,0x70])](_0xa9a782=>_0xa9a782[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])](_0x351f1c([0x2e])))[_0x351f1c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39cc60=>_0x39cc60[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x160dba[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x351f1c([0x6d,0x61,0x70])](_0xa2823=>Array(_0x160dba[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0xa2823[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x351f1c([0x66,0x69,0x6c,0x6c])](_0xa2823[0x0]===_0x351f1c([0x2a])?_0x351f1c([0x2a]):'')[_0x351f1c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0xa2823))[_0x351f1c([0x73,0x6f,0x6d,0x65])](_0x13302c=>_0x160dba[_0x351f1c([0x65,0x76,0x65,0x72,0x79])]((_0x249c3e,_0x1d6905)=>_0x13302c[_0x1d6905]===_0x249c3e||_0x13302c[_0x1d6905]===_0x351f1c([0x2a])));}function _0x4bee1f(){return _0x1cedb1&&_0x4d93a1?new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x108eaf,_0x21c987)=>{_0x1cedb1[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x108eaf,_0x21c987),_0x4d93a1[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x297deb=>{_0x297deb!=_0x351f1c([0x56,0x61,0x6c,0x69,0x64])&&_0x108eaf(_0x297deb);},_0x21c987);}):_0x1cedb1||_0x4d93a1||_0x351f1c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x28bf9d(_0x31c272,_0x548128){return new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x420b9c=>{if(_0x38815c())return _0x420b9c(_0x351f1c([0x56,0x61,0x6c,0x69,0x64]));_0x192a85(),_0x12c78f[_0x351f1c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x351f1c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19a49a=!0x1;const _0x384192=_0x32a995();function _0xdd3a8a(_0x2135c9){return!!_0x2135c9&&(typeof _0x2135c9===_0x351f1c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2135c9===_0x351f1c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2135c9[_0x351f1c([0x74,0x68,0x65,0x6e])]===_0x351f1c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2135c9[_0x351f1c([0x63,0x61,0x74,0x63,0x68])]===_0x351f1c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1f0f05(_0x41b522){_0x59a54d(_0x41b522)[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x45d79f=>{if(!_0x45d79f||_0x45d79f[_0x351f1c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x351f1c([0x6f,0x6b]))return _0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5c3353(_0x2aacfb(_0x384192+_0x548128))!=_0x45d79f[_0x351f1c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x351f1c([0x56,0x61,0x6c,0x69,0x64]);})[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x28a63a=>(_0x2baa43(),_0x28a63a),()=>{const _0x4a12d5=_0xd7b1a1();return null==_0x4a12d5?(_0x2baa43(),_0x351f1c([0x56,0x61,0x6c,0x69,0x64])):_0x351f1c(_0x4ad894-_0x4a12d5>(0x63ae0106^_0x12e50d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x420b9c)[_0x351f1c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x420b9c(_0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3e4a9d=0x47946b86^_0x12e50d;function _0x2baa43(){const _0x49b796=_0x351f1c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c3353(_0x2aacfb(_0x31c272)),_0x38225d=_0x5f0a1b(_0x5c3353(window[_0x351f1c([0x4d,0x61,0x74,0x68])][_0x351f1c([0x63,0x65,0x69,0x6c])](_0x4ad894/_0x3e4a9d)));window[_0x351f1c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x351f1c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x49b796,_0x38225d);}function _0xd7b1a1(){const _0x32d1b3=_0x351f1c([0x6c,0x6c,0x63,0x74,0x2d])+_0x5c3353(_0x2aacfb(_0x31c272)),_0x3c76a3=window[_0x351f1c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x351f1c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32d1b3);return _0x3c76a3?window[_0x351f1c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f0a1b(_0x3c76a3),0x10)*_0x3e4a9d:null;}function _0x59a54d(_0x1351a6){return new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b473d,_0x1e10e1)=>{_0x1351a6[_0x351f1c([0x74,0x68,0x65,0x6e])](_0x3b473d,_0x1e10e1),window[_0x351f1c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1e10e1,0x47a351c6^_0x12e50d);});}}_0x12c78f[_0x351f1c([0x6f,0x6e])](_0x351f1c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5d3a5c,_0x1bce72)=>{if(_0x1bce72[0x0]!=_0x31c272)return _0x420b9c(_0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1bce72[0x1]={..._0x1bce72[0x1],[_0x351f1c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x384192};},{[_0x351f1c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x351f1c([0x68,0x69,0x67,0x68])}),_0x12c78f[_0x351f1c([0x6f,0x6e])](_0x351f1c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5539ca=>{_0xdd3a8a(_0x5539ca[_0x351f1c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19a49a=!0x0,_0x1f0f05(_0x5539ca[_0x351f1c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x351f1c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x351f1c([0x6c,0x6f,0x77])}),_0x545111[_0x351f1c([0x74,0x68,0x65,0x6e])](()=>{_0x19a49a||_0x420b9c(_0x351f1c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x38815c(){return _0x12c78f[_0x351f1c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x351f1c([0x76,0x69,0x65,0x77])][_0x351f1c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x351f1c([0x61,0x75,0x74,0x6f]);}function _0x192a85(){_0x12c78f[_0x351f1c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x351f1c([0x76,0x69,0x65,0x77])][_0x351f1c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x351f1c([0x61,0x75,0x74,0x6f]);}}function _0x5130ef(_0x58a57a){const _0x9a0e74=[new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2be283=>setTimeout(_0x2be283,0x47abbbca^_0x12e50d)),_0x545111[_0x351f1c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b5ae8=>{let _0x40a5e0=0x0;_0x12c78f[_0x351f1c([0x6d,0x6f,0x64,0x65,0x6c])][_0x351f1c([0x6f,0x6e])](_0x351f1c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x151245,_0x14a024)=>{_0x14a024[0x0][_0x351f1c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40a5e0++,_0x40a5e0==(0x47a284fe^_0x12e50d)&&(_0x4b5ae8(),_0x151245[_0x351f1c([0x6f,0x66,0x66])]());});}))];return window[_0x351f1c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x351f1c([0x72,0x61,0x63,0x65])](_0x9a0e74)[_0x351f1c([0x74,0x68,0x65,0x6e])](()=>_0x58a57a);}async function _0xe25ba6(){await _0x545111,_0x12c78f[_0x351f1c([0x6d,0x6f,0x64,0x65,0x6c])][_0x351f1c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19d1ea,_0x12c78f[_0x351f1c([0x6d,0x6f,0x64,0x65,0x6c])][_0x351f1c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19d1ea,_0x12c78f[_0x351f1c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x351f1c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x8c28bc(_0xe91fec){const _0x13d909=_0x38d3a9();_0x12c78f[_0x13d909]=_0x351f1c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe91fec,_0xe91fec!=_0x351f1c([0x56,0x61,0x6c,0x69,0x64])&&_0xe25ba6();}function _0x38d3a9(){const _0x468ad6=window[_0x351f1c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x351f1c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x351f1c([0x6e,0x6f,0x77])]())[_0x351f1c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x351f1c([0x2e]),'');let _0x3f4127=_0x351f1c([0x75]);for(let _0x36111a=0x0;_0x36111a<_0x468ad6[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x36111a+=0x2){let _0x17ea58=window[_0x351f1c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x468ad6[_0x351f1c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x36111a,_0x36111a+0x2));_0x17ea58>=_0x3ec974[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x17ea58-=_0x3ec974[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3f4127+=_0x3ec974[_0x17ea58];}return _0x3f4127;}function _0x4545b4(){const _0x3c177e=_0x4d3787[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])](_0x351f1c([0x2e]));if(0x3!=_0x3c177e[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35743c(_0x3c177e[0x1]);function _0x35743c(_0x154cbb){const _0x20389c=_0x40e789(_0x154cbb);return _0x20389c&&_0x46466d()?_0x20389c:null;function _0x46466d(){const _0x34db1a=_0x20389c[_0x351f1c([0x6a,0x74,0x69])],_0xb4eaf2=window[_0x351f1c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34db1a[_0x351f1c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34db1a[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50c22f={..._0x20389c,[_0x351f1c([0x6a,0x74,0x69])]:_0x34db1a[_0x351f1c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34db1a[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50c22f[_0x351f1c([0x76,0x63])],_0x2aacfb(_0x50c22f)==_0xb4eaf2;}}}async function _0x586a48(){let _0x1c958a=!0x0;try{const _0x4e7e0b=_0x4d3787[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])](_0x351f1c([0x2e])),[_0xab2114,_0x274195,_0x1cdd20]=_0x4e7e0b;return _0x396037(_0xab2114),await _0x5d7e9a(_0xab2114,_0x274195,_0x1cdd20),_0x1c958a;}catch{return!0x1;}function _0x396037(_0x3d329a){const _0x1111cf=_0x40e789(_0x3d329a);_0x1111cf&&_0x1111cf[_0x351f1c([0x61,0x6c,0x67])]==_0x351f1c([0x45,0x53,0x32,0x35,0x36])||(_0x1c958a=!0x1);}async function _0x5d7e9a(_0x4c9c58,_0x51e2e1,_0xfc201d){const _0x4b27e0=window[_0x351f1c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x351f1c([0x66,0x72,0x6f,0x6d])](_0x5a6736(_0xfc201d),_0x320206=>_0x320206[_0x351f1c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5f0959=new window[(_0x351f1c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x351f1c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c9c58+_0x351f1c([0x2e])+_0x51e2e1),_0x244553=window[_0x351f1c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x351f1c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x244553)return;const _0x32915e=await _0x244553[_0x351f1c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x351f1c([0x6a,0x77,0x6b]),_0x31f51d,{[_0x351f1c([0x6e,0x61,0x6d,0x65])]:_0x351f1c([0x45,0x43,0x44,0x53,0x41]),[_0x351f1c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x351f1c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x351f1c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x244553[_0x351f1c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x351f1c([0x6e,0x61,0x6d,0x65])]:_0x351f1c([0x45,0x43,0x44,0x53,0x41]),[_0x351f1c([0x68,0x61,0x73,0x68])]:{[_0x351f1c([0x6e,0x61,0x6d,0x65])]:_0x351f1c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x32915e,_0x4b27e0,_0x5f0959)||(_0x1c958a=!0x1);}}function _0x40e789(_0x5c13db){return _0x5c13db[_0x351f1c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x351f1c([0x65,0x79]))?JSON[_0x351f1c([0x70,0x61,0x72,0x73,0x65])](_0x5a6736(_0x5c13db)):null;}function _0x5a6736(_0x4d7cc5){return window[_0x351f1c([0x61,0x74,0x6f,0x62])](_0x4d7cc5[_0x351f1c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x351f1c([0x2b]))[_0x351f1c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x351f1c([0x2f])));}function _0x2aacfb(_0x21db92){let _0x23a712=0x1505;function _0x210e28(_0x1ab51d){for(let _0x5320dd=0x0;_0x5320dd<_0x1ab51d[_0x351f1c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5320dd++){const _0x442c33=_0x1ab51d[_0x351f1c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5320dd);_0x23a712=(_0x23a712<<0x5)+_0x23a712+_0x442c33,_0x23a712&=_0x23a712;}}function _0x561b56(_0x11cf7d){Array[_0x351f1c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x11cf7d)?_0x11cf7d[_0x351f1c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x561b56):_0x11cf7d&&typeof _0x11cf7d==_0x351f1c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x351f1c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x11cf7d)[_0x351f1c([0x73,0x6f,0x72,0x74])]()[_0x351f1c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfcacbc,_0xfd1ede])=>{_0x210e28(_0xfcacbc),_0x561b56(_0xfd1ede);}):_0x210e28(window[_0x351f1c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x11cf7d));}return _0x561b56(_0x21db92),_0x23a712>>>0x0;}function _0x5c3353(_0x51e0dd){return _0x51e0dd[_0x351f1c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x351f1c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x351f1c([0x30]));}function _0x5f0a1b(_0xd33c9f){return _0xd33c9f[_0x351f1c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x351f1c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x351f1c([0x6a,0x6f,0x69,0x6e])]('');}function _0x19d1ea(){}function _0x351f1c(_0x31b7c7){return _0x31b7c7['map'](_0x7e6ab0=>String['fromCharCode'](_0x7e6ab0))['join']('');}_0x8c28bc(await _0x4a6913());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1b7711){const {plugins:_0x260f6c,editing:_0x54fdb2,model:_0x191fbc}=this['editor'],_0x32a0d6=_0x260f6c['get'](f)['getFootnote'](_0x1b7711);return!!_0x32a0d6&&(_0x191fbc['change'](_0x52762=>{_0x52762['setSelection'](_0x52762['createPositionAt'](_0x32a0d6['definition'],'end'));}),_0x54fdb2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2ae788){const {plugins:_0x1ce3b9,editing:_0x271626,model:_0x2e7811}=this['editor'],_0x199763=_0x1ce3b9['get'](f)['getFootnote'](_0x2ae788);return!!_0x199763&&(_0x2e7811['change'](_0x5b9d01=>{_0x5b9d01['setSelection'](_0x199763['reference'],'on');}),_0x271626['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x4ea99e}=this['editor']['model'],_0x53e4dd=this['editor']['config']['get']('footnotes.multiBlock');_0x4ea99e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x4ea99e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x4ea99e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x53e4dd?_0x4ea99e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x4ea99e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x4ea99e['addChildCheck'](_0x57a1fc=>{for(const _0x48df73 of _0x57a1fc)if('footnoteDefinition'===_0x48df73['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x565283}=this,{conversion:_0x64c9be,editing:_0xf054da}=_0x565283,{t:t}=_0x565283['locale'];_0x64c9be['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x35fd53,{writer:_0xb21d79,consumable:_0x1f0c49})=>{const _0x3c5f74=_0x35fd53['getChild'](0x0);if(!_0x3c5f74||!_0x3c5f74['is']('element','a'))return null;const _0x851817=_0x3c5f74['getAttribute']('href')||'';if(!_0x851817['startsWith']('#'))return null;const _0x3249a7=_0x851817['replace'](/^#/,'');if(!_0x3249a7)return null;_0x1f0c49['consume'](_0x3c5f74,{'name':!0x0,'attributes':['href']});for(const {item:_0x5e4d52}of _0xf054da['view']['createRangeIn'](_0x3c5f74))_0x5e4d52['is']('$textProxy')?_0x1f0c49['consume'](_0x5e4d52['textNode'],{'name':!0x0}):_0x5e4d52['is']('element')&&_0x1f0c49['consume'](_0x5e4d52,{'name':!0x0});return _0xb21d79['createElement']('footnoteRef',{'footnoteId':_0x3249a7});}}),_0x64c9be['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x493ee6,{writer:_0x5eaf29})=>D(_0x493ee6,_0x5eaf29)}),_0x64c9be['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x158908,{writer:_0x5aa52c})=>{const _0x355372=_0x158908['getAttribute']('footnoteCounter');return _0x5b4e1d(D(_0x158908,_0x5aa52c),_0x5aa52c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x355372)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5d05fc}=this,{t:t}=_0x5d05fc['locale'],{conversion:_0x4cb331}=_0x5d05fc;_0x4cb331['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4cb331['for']('upcast')['add'](_0x1b365b=>{_0x1b365b['on']('element:ol',(_0xdf133a,_0x141fd7,_0x1e43f3)=>{const _0x1328fd=_0x141fd7['viewItem'];if(!_0x1328fd['hasClass']('footnotes-list')||!_0x141fd7['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1e43f3['consumable']['consume'](_0x1328fd,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5a41ad,modelCursor:_0x2a3ce9}=_0x1e43f3['convertChildren'](_0x141fd7['viewItem'],_0x141fd7['modelCursor']);_0x141fd7['modelRange']=_0x5a41ad,_0x141fd7['modelCursor']=_0x2a3ce9;}),_0x1b365b['on']('element:hr',(_0x12150b,_0xad606f,_0x39f4a9)=>{const _0x4946c4=_0xad606f['viewItem'];_0x4946c4['hasClass']('footnotes-divider')&&_0xad606f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x39f4a9['consumable']['consume'](_0x4946c4,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4cb331['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x217a44,{writer:_0x2d7ac1})=>v(_0x2d7ac1)}),_0x4cb331['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4df79a,{writer:_0x457f4a})=>{const _0xe8603a=v(_0x457f4a,{'data-footnotes-list-label':t('Footnotes')}),_0x1d7a18=_0x5b4e1d(_0xe8603a,_0x457f4a,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x457f4a['setCustomProperty']('footnotesDefinitions',!0x0,_0x1d7a18),_0x1d7a18;}});}['_defineDefinitionConverters'](){const {editor:_0x264aab}=this,{conversion:_0x2d4953,locale:_0x5be8d7}=_0x264aab,_0x3551cd=_0x264aab['config']['get']('footnotes.multiBlock');_0x2d4953['for']('upcast')['add'](_0x50e911=>{_0x50e911['on']('element:li',(_0x574172,_0x2f5c36,_0x550fe1)=>{const _0x2d4909=_0x2f5c36['viewItem'];if(!_0x2d4909['hasClass']('footnote-definition')||!_0x2d4909['getAttribute']('id'))return;const _0x36332b=_0x2d4909['parent'];if(!_0x36332b['is']('element','ol')||!_0x36332b['hasClass']('footnotes-list'))return;if(!_0x550fe1['consumable']['test'](_0x2d4909,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x312a42=_0x550fe1['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2d4909['getAttribute']('id')});if(!_0x550fe1['safeInsert'](_0x312a42,_0x2f5c36['modelCursor']))return;_0x550fe1['consumable']['consume'](_0x2d4909,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4c0262=Array['from'](_0x2d4909['getChildren']())['find'](_0x5485ff=>_0x5485ff['is']('element')&&_0x5485ff['hasClass']('footnote-content'));for(const _0x203c39 of _0x2d4909['getChildren']())_0x203c39['is']('element')&&(_0x550fe1['consumable']['consume'](_0x203c39,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x550fe1['consumable']['consume'](_0x203c39,{'name':!0x0,'classes':'footnote-content'}));if(_0x4c0262){if(_0x3551cd)_0x550fe1['convertChildren'](_0x4c0262,_0x312a42);else{const _0xe07522=_0x550fe1['writer']['createElement']('footnoteInlineContent');_0x550fe1['writer']['insert'](_0xe07522,_0x312a42),_0x550fe1['convertChildren'](_0x4c0262,_0xe07522);}}_0x550fe1['updateConversionResult'](_0x312a42,_0x2f5c36);});}),_0x2d4953['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xbd6695,{writer:_0x337a0e})=>b(_0xbd6695,_0x337a0e,_0x5be8d7,{'dataPipeline':!0x0})}),_0x2d4953['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x392b3a,{writer:_0x224533})=>b(_0x392b3a,_0x224533,_0x5be8d7)});}['_defineBogusParagraphConverters'](){const {editor:_0x36ba36}=this,{conversion:_0x16ca54}=_0x36ba36;_0x36ba36['config']['get']('footnotes.multiBlock')?(_0x16ca54['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x16ca54['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x36ba36['model']['document'],'change:data',()=>{!function(_0x2110f6,_0x3b2266){const _0x4c8566=_0x2110f6['document']['differ'],_0x35790a=new Set();for(const _0x32e772 of _0x4c8566['getChanges']()){const _0x3fdba6='attribute'==_0x32e772['type']?_0x32e772['range']['start']['parent']:_0x32e772['position']['parent'];_0x3fdba6['is']('element','footnoteDefinition')&&_0x35790a['add'](_0x3fdba6);}for(const _0x165e3c of _0x35790a['values']()){const _0x683841=Array['from'](_0x165e3c['getChildren']())['filter'](_0x7dd436=>g(_0x7dd436,_0x3b2266['mapper']));for(const _0x5c6580 of _0x683841)_0x3b2266['reconvertItem'](_0x5c6580);}}(_0x36ba36['model'],_0x36ba36['editing']);})):(_0x16ca54['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x16ca54['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5bba15,{writer:_0xe728b9})=>{const _0xcee466=_0xe728b9['createContainerElement']('span');return _0xe728b9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xcee466),_0xcee466;}}));}['_defineKeyboardHandlers'](){const {editor:_0x461c9b}=this,{editing:_0x24e1b8,t:t}=_0x461c9b,_0x1c1273=_0x461c9b['model']['document']['selection'];_0x461c9b['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x461c9b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x24e1b8['view']['document'],'enter',(_0x2927ab,_0x244188)=>{const _0x13c642=function(_0x4ca97d){const _0x4211d3=_0x4ca97d['getSelectedElement']();if(_0x4211d3?.['is']('element','footnoteRef'))return _0x4211d3;return null;}(_0x1c1273);if(_0x13c642){const _0x549205=_0x13c642['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x549205),_0x244188['preventDefault'](),_0x2927ab['stop']();}},{'context':_0x9e120c});}['_defineClickHandlers'](){const {editor:_0x55f49b}=this,{editing:_0x2e33f2}=_0x55f49b;_0x55f49b['editing']['view']['addObserver'](_0xf6f06a),_0x55f49b['editing']['view']['addObserver'](_0x3d3d3e);let _0x442b2f=!0x1;this['listenTo'](_0x2e33f2['view']['document'],'pointerdown',(_0xfe9bf9,_0x47d5e5)=>{const {target:_0x8caf56}=_0x47d5e5,_0x13610e=_0x2e33f2['view']['document']['selection'];_0x442b2f=!!(_0x8caf56?.['is']('element','a')&&_0x8caf56['parent']?.['is']('element','sup')&&_0x8caf56['parent']['hasClass']('footnote'))&&_0x13610e['getSelectedElement']()===_0x8caf56['parent'];},{'priority':'high'}),this['listenTo'](_0x2e33f2['view']['document'],'click',(_0x38184b,_0x8f8d4f)=>{const {target:_0x34a407}=_0x8f8d4f;if(!_0x34a407?.['is']('element','a'))return;if(_0x34a407['parent']?.['is']('element','sup')&&_0x34a407['parent']['hasClass']('footnote')&&!_0x442b2f)return void _0x8f8d4f['preventDefault']();let _0x28f999=_0x34a407['getAttribute']('href');if(!_0x28f999?.['startsWith']('#'))return;_0x28f999=_0x28f999['slice'](0x1);let _0x47af33=!0x1;(_0x28f999['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x28f999['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x28f999))&&(_0x47af33=!0x0),_0x47af33&&(_0x8f8d4f['preventDefault'](),_0x38184b['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x5c80be}={}){return(_0x40705c,{writer:_0x1c3dfb})=>{if(!p(_0x40705c))return null;if(!_0x5c80be)return _0x1c3dfb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x18394d=_0x1c3dfb['createContainerElement']('p');return _0x1c3dfb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x18394d),_0x18394d;};}function p(_0x4cbbdd){const {parent:_0x37d40d}=_0x4cbbdd;if(!_0x37d40d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x37d40d['childCount'])return!0x1;for(const _0x5da09b of _0x4cbbdd['getAttributeKeys']())if(!_0x5da09b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5da09b)return!0x1;return!0x0;}function g(_0x2752f5,_0x2dc840){if(!_0x2752f5['is']('element','paragraph'))return!0x1;const _0x476dbd=_0x2dc840['toViewElement'](_0x2752f5);return!!_0x476dbd&&p(_0x2752f5)!==_0x476dbd['is']('element','span');}function $(_0x5e28b4){return _0x9e120c(_0x5e28b4)&&_0x5e28b4['is']('containerElement')&&!!_0x5e28b4['getCustomProperty']('footnotesDefinitions');}function v(_0x1eb1a5,_0x4be59d={}){const _0xc7f74=_0x1eb1a5['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x42158c=_0x1eb1a5['createContainerElement']('ol',{'class':'footnotes-list'},_0x1eb1a5['createSlot']());return _0x1eb1a5['createContainerElement']('div',{'class':'footnotes',..._0x4be59d},[_0xc7f74,_0x42158c]);}function D(_0x584981,_0x147cd5){const _0x10b71c=_0x584981['getAttribute']('footnoteId'),_0x350bc0=_0x584981['getAttribute']('footnoteCounter'),_0x44899f=_0x147cd5['createUIElement']('a',{'href':'#'+_0x10b71c},function(_0x30132){const _0x1c5701=this['toDomElement'](_0x30132);return _0x1c5701['textContent']=_0x350bc0,_0x1c5701;}),_0x2ad048=_0x147cd5['createContainerElement']('sup',{'id':'ref-'+_0x10b71c,'class':'footnote'},[_0x44899f]);return _0x2ad048['getFillerOffset']=()=>null,_0x2ad048;}function b(_0x1a5d30,_0x42a150,_0x3b62a7,{dataPipeline:_0x3b2c44}={}){const {t:t}=_0x3b62a7,_0x2094ac=_0x1a5d30['getAttribute']('footnoteId'),_0xfa68ba=_0x42a150['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2094ac},function(_0xfeebdb){const _0x39b43d=this['toDomElement'](_0xfeebdb);return _0x39b43d['innerText']='^',_0x39b43d;}),_0x4f692f=_0x3b2c44?_0x42a150['createContainerElement']('div',{'class':'footnote-content'}):_0x5ab702(_0x42a150['createEditableElement']('div',{'class':'footnote-content'}),_0x42a150,{'label':t('Footnote\x20content.')});return _0x42a150['insert'](_0x42a150['createPositionAt'](_0x4f692f,0x0),_0x42a150['createSlot']()),_0x42a150['createContainerElement']('li',{'class':'footnote-definition','id':_0x2094ac},[_0xfa68ba,_0x4f692f]);}class e extends _0xeb7666{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4bcc1e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x39a0bc}=this,{plugins:_0x95b62d,model:_0xf4932a}=_0x39a0bc,_0x38b420=_0x95b62d['get'](_0x4bcc1e),_0x28ab66=_0x95b62d['get'](f);this['listenTo'](_0x38b420,'outputTransformation',(_0x173026,_0x3f93c1)=>{const _0x1fe9d6=c(_0xf4932a['createRangeIn'](_0x3f93c1['content']));if(!_0x1fe9d6['length'])return;const _0x344a6e=_0x28ab66['getFootnotes'](),_0x5d5364=_0x1fe9d6['reduce']((_0x392ac2,_0x58ed8e)=>{const _0x5448e4=_0x344a6e['find'](_0xf74a5c=>_0xf74a5c['id']===_0x58ed8e);if(_0x5448e4){const _0x34fda7=_0x39a0bc['data']['toView'](_0x5448e4['definition'],{'isClipboardPipeline':!0x0}),_0x3fa7e3=_0x39a0bc['data']['htmlProcessor']['toData'](_0x34fda7);_0x392ac2[_0x5448e4['id']]=_0x3fa7e3;}return _0x392ac2;},Object['create'](null));_0x3f93c1['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5d5364));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x39f315}=this,{model:_0x3963bd,plugins:_0x758d0d}=_0x39f315,{view:_0xb05144}=_0x39f315['editing'],_0x4cf4e2=_0x758d0d['get'](_0x4bcc1e),_0x445ac5=_0x758d0d['get'](f),_0xf37576=_0x39f315['config']['get']('footnotes.multiBlock');let _0x4a62f6=null;this['listenTo'](_0xb05144['document'],'clipboardInput',(_0x2a0e67,_0x250c7f)=>{const _0x2be03e=_0x250c7f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4a62f6=_0x2be03e?JSON['parse'](_0x2be03e):null;}),this['listenTo'](_0x4cf4e2,'contentInsertion',(_0x51db7c,_0x3019d9)=>{const _0x78ebac=_0x3019d9['sourceEditorId']===this['editor']['id'];_0x78ebac&&'drop'===_0x3019d9['method']||_0x3963bd['change'](_0x3dd73c=>{let _0x24bf1f=_0x445ac5['getFootnotesDefinitionsObjectElement']();const _0x2096e2=!!_0x24bf1f&&Array['from'](_0x3963bd['document']['selection']['getSelectedBlocks']())['includes'](_0x24bf1f);if((_0x24bf1f&&!_0x2096e2||!_0x24bf1f&&!_0x4a62f6)&&function(_0x163b8f,_0x1c7a46){const _0x50b135=[];for(const {item:_0x467d5e}of _0x163b8f['createRangeIn'](_0x1c7a46))_0x467d5e['is']('element','footnotesDefinitions')&&_0x50b135['push'](_0x467d5e);for(const _0x216901 of _0x50b135)_0x163b8f['remove'](_0x216901);}(_0x3dd73c,_0x3019d9['content']),!_0x4a62f6)return;const {selection:_0x55fb3d}=_0x3963bd['document'],_0x45c2aa=_0x55fb3d['getFirstRange']()['root'];_0x24bf1f&&!_0x2096e2||(_0x24bf1f=function(_0xda813e,_0x7739db){for(const {item:_0x31bffc}of _0xda813e['createRangeIn'](_0x7739db))if(_0x31bffc['is']('element','footnotesDefinitions'))return _0x31bffc;return null;}(_0x3dd73c,_0x3019d9['content']),_0x24bf1f||=_0x445ac5['_insertEmptyFootnotesDefinitionsContainer'](_0x3dd73c,_0x45c2aa));const _0x222baa=Array['from'](_0x55fb3d['getRanges']())['flatMap'](c),_0x46f569=function(_0x147946,_0x5d4acf,_0x13d19e){const _0x26c421=Object['create'](null);for(const {item:_0x42c035}of _0x147946['createRangeIn'](_0x5d4acf))if(_0x42c035['is']('element','footnoteRef')){const _0x424d6d=_0x42c035['getAttribute']('footnoteId');if(!_0x13d19e(_0x424d6d))continue;_0x26c421[_0x424d6d]||(_0x26c421[_0x424d6d]=_0x32a995()),_0x147946['setAttribute']('footnoteId',_0x26c421[_0x424d6d],_0x42c035);}return _0x26c421;}(_0x3dd73c,_0x3019d9['content'],_0x24f905=>{if(!_0x78ebac)return!0x0;return!!_0x445ac5['getFootnote'](_0x24f905)&&!_0x222baa['includes'](_0x24f905);});for(const [_0x209be2,_0x403a8e]of Object['entries'](_0x4a62f6)){const _0x4fdeee=_0x46f569[_0x209be2]||_0x209be2,_0x2b6a3b=_0x3dd73c['createElement']('footnoteDefinition',{'footnoteId':_0x4fdeee}),_0x30c046=_0x39f315['data']['htmlProcessor']['toView'](_0x403a8e);let _0x43d6d5;if(_0xf37576)_0x43d6d5=_0x39f315['data']['toModel'](_0x30c046,_0x2b6a3b);else{_0x43d6d5=_0x3dd73c['createElement']('footnoteInlineContent');const _0xe33f5e=_0x39f315['data']['toModel'](_0x30c046,_0x43d6d5);_0x3dd73c['insert'](_0xe33f5e,_0x43d6d5);}_0x3dd73c['append'](_0x43d6d5,_0x2b6a3b),_0x3dd73c['insert'](_0x2b6a3b,_0x24bf1f,'end');}_0x4a62f6=null;});});}}function c(_0x39cac2){const _0x3a0595=new Set();for(const {item:_0x16acf3}of _0x39cac2)_0x16acf3['is']('element','footnoteRef')&&_0x3a0595['add'](_0x16acf3['getAttribute']('footnoteId'));return Array['from'](_0x3a0595);}class i extends _0xeb7666{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x29d81c}=this,{componentFactory:_0x45d14a}=_0x29d81c['ui'];_0x45d14a['add']('insertFootnote',x(_0x29d81c,_0x2c7d7a)),_0x45d14a['add']('menuBar:insertFootnote',x(_0x29d81c,_0x1e6c82)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1276a3=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x215465;for(const _0x5b56b9 in _0x1276a3){const _0x26c982=_0x5b56b9,_0x2fa7e3=_0x1276a3[_0x26c982];if('footnotesLicenseKeyValid'==_0x2fa7e3||'footnotesLicenseKeyInvalid'==_0x2fa7e3||'footnotesLicenseKeyExpired'==_0x2fa7e3||'footnotesLicenseKeyDomainLimit'==_0x2fa7e3||'footnotesLicenseKeyNotAllowed'==_0x2fa7e3||'footnotesLicenseKeyEvaluationLimit'==_0x2fa7e3||'footnotesLicenseKeyTrialLimit'==_0x2fa7e3||'footnotesLicenseKeyUsageLimit'==_0x2fa7e3){delete _0x1276a3[_0x26c982],_0x215465=_0x2fa7e3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x215465&&_0x1276a3['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x215465&&_0x1276a3['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x215465&&_0x1276a3['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x215465&&_0x1276a3['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x215465&&_0x1276a3['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x215465&&_0x1276a3['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x215465&&_0x1276a3['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x4c8756,_0x55ef82){const _0x41289d=_0x4c8756['commands']['get']('insertFootnote');return _0x50842b=>{const {t:t}=_0x50842b,_0x5ddc6c=new _0x55ef82(_0x50842b),_0x215b5f=_0x5ddc6c instanceof _0x1e6c82;return _0x5ddc6c['bind']('isEnabled')['to'](_0x41289d,'isEnabled'),_0x5ddc6c['set']({'label':t(_0x215b5f?'Footnote':'Insert\x20footnote'),'icon':_0x3b34e6,'tooltip':!0x0}),_0x5ddc6c['on']('execute',()=>{_0x41289d['execute'](),_0x4c8756['editing']['view']['focus']();}),_0x5ddc6c;};}class lt extends _0xeb7666{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 _0x27ce1c{['refresh'](){const {editor:_0x416333}=this,_0x3cca97=_0x416333['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3cca97,this['value']=_0x3cca97?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1907de}){const {editor:_0x4c0067}=this,_0x42375e=_0x4c0067['plugins']['get'](f),_0x126911=_0x42375e['getFootnotesDefinitionsObjectElement']();_0x126911&&Q['includes'](_0x1907de)&&_0x4c0067['model']['change'](_0x2d5798=>{_0x2d5798['setAttribute']('footnotesListStyle',_0x1907de,_0x126911),_0x42375e['_updateFootnotesCounters'](_0x2d5798);});}}class C extends _0x27ce1c{['refresh'](){const {editor:_0x575d55}=this,_0x3f0da7=_0x575d55['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3f0da7,this['value']=_0x3f0da7?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x807f8f}){const {editor:_0xf00f34}=this,_0xd9db6c=_0xf00f34['plugins']['get'](f),_0x6edb42=_0xd9db6c['getFootnotesDefinitionsObjectElement']();_0x6edb42&&Number['isInteger'](_0x807f8f)&&_0xf00f34['model']['change'](_0x5ad6a8=>{_0x5ad6a8['setAttribute']('footnotesListStart',_0x807f8f,_0x6edb42),_0xd9db6c['_updateFootnotesCounters'](_0x5ad6a8);});}}class P extends _0xeb7666{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2bc34c}=this;_0x2bc34c['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2bc34c['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2bc34c['commands']['add']('footnotesStyle',new S(_0x2bc34c)),_0x2bc34c['commands']['add']('footnotesStart',new C(_0x2bc34c)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x517393}=this,{schema:_0x1aaa85}=_0x517393['model'];_0x1aaa85['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x382118}=this,{conversion:_0x1a5ceb,model:_0x27ab90}=_0x382118,{schema:_0x8ccdb}=_0x27ab90;_0x1a5ceb['for']('upcast')['add'](_0x5ef14a=>{_0x5ef14a['on']('element:ol',(_0x3e2508,_0x45648c,_0x116d53)=>{const _0x2531f5=_0x45648c['viewItem'],_0x5e270e=_0x45648c['modelCursor']?.['parent'];_0x2531f5['hasClass']('footnotes-list')&&_0x5e270e?.['is']('element','footnotesDefinitions')&&(function(_0x569b09,_0x4c0ced,_0x3eb9ed,_0x3ee902){if(!_0x3ee902['checkAttribute'](_0x4c0ced,'footnotesListStart'))return;let _0x3ff20d=0x1;const _0x2b1ec7=_0x3eb9ed['consumable']['consume'](_0x569b09,{'attributes':'start'});if(_0x2b1ec7){const _0x191e41=Number['parseInt'](_0x569b09['getAttribute']('start'),0xa);Number['isNaN'](_0x191e41)||(_0x3ff20d=_0x191e41);}!_0x2b1ec7&&_0x4c0ced['hasAttribute']('footnotesListStart')||_0x3eb9ed['writer']['setAttribute']('footnotesListStart',_0x3ff20d,_0x4c0ced);}(_0x2531f5,_0x5e270e,_0x116d53,_0x8ccdb),function(_0x4eaedb,_0x10ddc2,_0x2fa44a,_0x347c6c){if(!_0x347c6c['checkAttribute'](_0x10ddc2,'footnotesListStyle'))return;let _0x2dee03='decimal',_0x5465e8=!0x1;if(_0x2fa44a['consumable']['consume'](_0x4eaedb,{'attributes':'type'})){const _0x30f87b={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x4eaedb['getAttribute']('type')];_0x30f87b&&(_0x2dee03=_0x30f87b),_0x5465e8=!0x0;}_0x2fa44a['consumable']['consume'](_0x4eaedb,{'styles':'list-style-type'})&&(_0x2dee03=function(_0x54585a){switch(_0x54585a){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x54585a;}}(_0x4eaedb['getStyle']('list-style-type')),_0x5465e8=!0x0),!_0x5465e8&&_0x10ddc2['hasAttribute']('footnotesListStyle')||_0x2fa44a['writer']['setAttribute']('footnotesListStyle',_0x2dee03,_0x10ddc2);}(_0x2531f5,_0x5e270e,_0x116d53,_0x8ccdb));});}),_0x1a5ceb['for']('downcast')['add'](_0x4a6bfb=>{_0x4a6bfb['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x2046e7,_0x1de3bf,_0x1ff10f)=>{if(!_0x1ff10f['consumable']['consume'](_0x1de3bf['item'],_0x2046e7['name']))return;const _0x5a5171=M(_0x1de3bf['item'],_0x1ff10f['mapper']),{attributeNewValue:_0x4bc900}=_0x1de3bf;null==_0x4bc900||0x1===_0x4bc900?_0x1ff10f['writer']['removeAttribute']('start',_0x5a5171):_0x1ff10f['writer']['setAttribute']('start',String(_0x4bc900),_0x5a5171);}),_0x4a6bfb['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x888d54,_0x1a7bec,_0xb912a4)=>{if(!_0xb912a4['consumable']['consume'](_0x1a7bec['item'],_0x888d54['name']))return;const _0xaf0c28=M(_0x1a7bec['item'],_0xb912a4['mapper']),{attributeNewValue:_0x11a7d5}=_0x1a7bec;_0x11a7d5&&'decimal'!==_0x11a7d5?_0xb912a4['writer']['setStyle']('list-style-type',_0x11a7d5,_0xaf0c28):_0xb912a4['writer']['removeStyle']('list-style-type',_0xaf0c28);});});}['_definePostfixer'](){const {editor:_0x4c84d8}=this,{model:_0x1fe4b0}=_0x4c84d8,_0x49124a=_0x4c84d8['plugins']['get'](f),_0x4dd717=this['_getDefaultListStyle'](),_0x5ea245=this['_getDefaultStartIndex']();_0x1fe4b0['document']['registerPostFixer'](_0xb0cb8b=>{const _0x311d18=_0x1fe4b0['document']['differ']['getChanges']();let _0x3d8795=!0x1;for(const _0x5d62d9 of _0x311d18){if('insert'!==_0x5d62d9['type']||'$text'===_0x5d62d9['name'])continue;const _0x468bb4=_0x1fe4b0['createRangeOn'](_0x5d62d9['position']['nodeAfter']);for(const _0x30d51 of _0x468bb4['getItems']())_0x30d51['is']('element','footnotesDefinitions')&&(!_0x30d51['hasAttribute']('footnotesListStart')&&_0x1fe4b0['schema']['checkAttribute'](_0x30d51,'footnotesListStart')&&(_0xb0cb8b['setAttribute']('footnotesListStart',_0x5ea245,_0x30d51),_0x3d8795=!0x0),!_0x30d51['hasAttribute']('footnotesListStyle')&&_0x1fe4b0['schema']['checkAttribute'](_0x30d51,'footnotesListStyle')&&(_0xb0cb8b['setAttribute']('footnotesListStyle',_0x4dd717,_0x30d51),_0x3d8795=!0x0));}return _0x3d8795&&_0x49124a['_updateFootnotesCounters'](_0xb0cb8b),_0x3d8795;});}['_defineFormatter'](){const {editor:_0x587ca3}=this;_0x587ca3['plugins']['get'](f)['setFootnoteFormatter'](_0x2f66fe=>this['_formatFootnoteListValue'](_0x2f66fe));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4b89e9,value:_0x327e9d,digits:_0x2eb19f}){const _0x1750e5=_0x4b89e9['getAttribute']('footnotesListStyle'),_0xbaed35=_0x4b89e9['getAttribute']('footnotesListStart'),_0x3f0402=Math['floor'](_0x327e9d)+(_0xbaed35??0x1)-0x1;switch(_0x1750e5){case'decimal-leading-zero':return function(_0x2c8cce,_0x22cd54){return String(_0x2c8cce)['padStart'](_0x22cd54,'0');}(_0x3f0402,Math['max'](0x2,_0x2eb19f));case'lower-alpha':case'lower-latin':return N(_0x3f0402,!0x1);case'upper-alpha':case'upper-latin':return N(_0x3f0402,!0x0);case'lower-roman':return X(_0x3f0402,!0x1);case'upper-roman':return X(_0x3f0402,!0x0);default:return String(_0x3f0402);}}}function M(_0x5088aa,_0x5629c2){const _0x3ab539=_0x5629c2['toViewElement'](_0x5088aa);return Array['from'](_0x3ab539['getChildren']())['find'](_0x1b4ca4=>_0x1b4ca4['is']('element','ol')&&_0x1b4ca4['hasClass']('footnotes-list'));}function N(_0x2e7c85,_0x14ef20){let _0x3ade3d='',_0x587a5a=_0x2e7c85;for(;_0x587a5a>0x0;){const _0x122e9b=(_0x587a5a-0x1)%0x1a;_0x3ade3d=String['fromCharCode'](0x61+_0x122e9b)+_0x3ade3d,_0x587a5a=Math['floor']((_0x587a5a-0x1)/0x1a);}return _0x14ef20?_0x3ade3d['toUpperCase']():_0x3ade3d;}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(_0x371c52,_0x334e14){let _0x59a236='',_0x1fe9e1=_0x371c52;for(const {value:_0x54fdf8,numeral:_0x473df8}of V)for(;_0x1fe9e1>=_0x54fdf8;)_0x59a236+=_0x473df8,_0x1fe9e1-=_0x54fdf8;return _0x334e14?_0x59a236:_0x59a236['toLowerCase']();}class R extends _0x5f3e58{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x367b77();['focusCycler'];constructor(_0x236f0d,{styleButtonViews:_0x125e7b,styleGridAriaLabel:_0x43b0d1}){super(_0x236f0d),(this['focusCycler']=new _0x2faa84({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x125e7b,_0x43b0d1),[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 _0x27c857 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x27c857['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 _0x180f68=_0x47df47=>_0x47df47['stopPropagation']();this['keystrokes']['set']('arrowright',_0x180f68),this['keystrokes']['set']('arrowleft',_0x180f68),this['keystrokes']['set']('arrowup',_0x180f68),this['keystrokes']['set']('arrowdown',_0x180f68);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3c2e56,_0x4a363b){const _0x32e04b=new _0x5f3e58(this['locale']);return _0x32e04b['children']=_0x32e04b['createCollection'](),_0x32e04b['children']['addMany'](_0x3c2e56),_0x32e04b['setTemplate']({'tag':'div','attributes':{'aria-label':_0x4a363b,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x32e04b['children']}),_0x32e04b['children']['delegate']('execute')['to'](this),_0x32e04b['focus']=function(){for(const _0xf2301c of this['children'])if(_0xf2301c instanceof _0x2c7d7a&&_0xf2301c['isOn'])return void _0xf2301c['focus']();this['children']['first']['focus']();},_0x32e04b['focusTracker']=new ot(),_0x32e04b['keystrokes']=new rt(),_0x32e04b['render'](),_0x32e04b['keystrokes']['listenTo'](_0x32e04b['element']),this['children']['add'](_0x32e04b),_0x32e04b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4713e4=this['_createStartIndexPropertyView'](),_0x41d72f=[_0x4713e4],_0x1abc38=new st(this['locale'],_0x41d72f);return _0x1abc38['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1abc38['buttonView']['bind']('isEnabled')['toMany'](_0x41d72f,'isEnabled',(..._0x59049a)=>_0x59049a['some'](_0x42acef=>_0x42acef)),_0x1abc38['buttonView']['on']('change:isEnabled',(_0x22615b,_0x24ccc0,_0x1bfd17)=>{_0x1bfd17||(_0x1abc38['isCollapsed']=!0x0);}),this['children']['add'](_0x1abc38),[_0x4713e4,_0x1abc38];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x332ee5=new it(this['locale'],et);return _0x332ee5['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x332ee5['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x332ee5['fieldView']['on']('input',()=>{const _0x55600f=_0x332ee5['fieldView']['element'],_0x429083=_0x55600f['valueAsNumber'];Number['isNaN'](_0x429083)?_0x332ee5['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x55600f['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x429083}):_0x332ee5['errorText']=t(_0x429083<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x332ee5;}}class j extends _0xeb7666{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x59ce17,_0x6c66e1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x461783}=this,{componentFactory:_0x24c1b8}=_0x461783['ui'];_0x461783['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x24c1b8['add']('footnotesStyle',function(_0x501884){return _0x30dec7=>{const {t:t}=_0x30dec7,_0x270bb1=_0x501884['commands']['get']('footnotesStyle'),_0x18afac=_0x38dfa3(_0x30dec7),{buttonView:_0x358469}=_0x18afac;return _0x18afac['class']='ck-footnotes-styles-dropdown',_0x18afac['bind']('isEnabled')['to'](_0x270bb1,'isEnabled'),_0x358469['set']({'label':t('Footnotes\x20style'),'icon':_0x3b34e6,'tooltip':!0x0}),_0x18afac['once']('change:isOpen',()=>{const _0x33578e=function({editor:_0x3b1d2a,dropdownView:_0x5065ad}){const {t:t}=_0x3b1d2a['locale'],_0x5401c5=t('Footnotes\x20definitions\x20styles'),_0x4d582e=function(_0x1e6c9b){const t=_0x1e6c9b['locale']['t'],_0x285aa4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x383181},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x383ca1},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x157553},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5b268f},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1af5e5},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x22b71f}];return _0x285aa4['map'](function(_0x24d74c){const _0x1fdd10=_0x24d74c['locale'];return({label:_0x17a105,icon:_0x4cb29b,tooltip:_0x5af689,style:_0x28da27})=>{const _0xdf6e67=_0x24d74c['commands']['get']('footnotesStyle'),_0x267675=new _0x2c7d7a(_0x1fdd10);return _0x267675['set']({'label':_0x17a105,'icon':_0x4cb29b,'tooltip':_0x5af689}),_0x267675['bind']('isOn')['to'](_0xdf6e67,'value',_0x4a6c33=>_0x4a6c33===_0x28da27),_0x267675['bind']('isEnabled')['to'](_0xdf6e67,'isEnabled'),_0x267675['on']('execute',()=>{_0x24d74c['execute']('footnotesStyle',{'value':_0x28da27}),_0x24d74c['editing']['view']['focus']();}),_0x267675;};}(_0x1e6c9b));}(_0x3b1d2a),_0x119245=new R(_0x3b1d2a['locale'],{'styleGridAriaLabel':_0x5401c5,'styleButtonViews':_0x4d582e}),_0x4293e9=_0x3b1d2a['commands']['get']('footnotesStart');return _0x119245['startIndexFieldView']['bind']('isEnabled')['to'](_0x4293e9),_0x119245['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x4293e9),_0x119245['on']('footnotesListStart',(_0x271cdf,_0x125082)=>{_0x3b1d2a['execute']('footnotesStart',{'value':_0x125082['startIndex']});}),_0x119245['delegate']('execute')['to'](_0x5065ad),_0x119245;}({'editor':_0x501884,'dropdownView':_0x18afac});_0x18afac['panelView']['children']['add'](_0x33578e);}),_0x18afac;};}(_0x461783));}['afterInit'](){const {editor:_0x1ba79b}=this,{t:t}=_0x1ba79b['locale'],_0x4b3daa=_0x1ba79b['plugins']['get'](_0x6c66e1),{defaultPositions:_0x305ee8}=_0x2fd527;_0x4b3daa['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1ba79b['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3208ee=>{let _0x1b7ea3=_0x3208ee['getFirstPosition']()?.['parent'];return _0x1b7ea3?.['is']('$text')&&(_0x1b7ea3=_0x1b7ea3['parent']),_0x1b7ea3?.['is']('element')?_0x1b7ea3['findAncestor']($):null;},'positions':[_0x305ee8['southArrowNorth'],_0x305ee8['southArrowNorthMiddleWest'],_0x305ee8['southArrowNorthMiddleEast'],_0x305ee8['southArrowNorthWest'],_0x305ee8['southArrowNorthEast'],_0x305ee8['northArrowSouth'],_0x305ee8['northArrowSouthMiddleWest'],_0x305ee8['northArrowSouthMiddleEast'],_0x305ee8['northArrowSouthWest'],_0x305ee8['northArrowSouthEast'],_0x305ee8['viewportStickyNorth']]});}}class ft extends _0xeb7666{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 _0x39419f,Command as _0x44f239}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x13b0c7,isWidget as _0x221df4,toWidgetEditable as _0x3cf14d,WidgetToolbarRepository as _0x3db4cc}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x63e192,logWarning as _0x414611,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x156f59,ClickObserver as _0x4335ef}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2156b4}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x581d9f,ButtonView as _0x3c8d4e,View as _0x142d8f,ViewCollection as _0x14a301,FocusCycler as _0x1ef80b,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0xdf35ea,BalloonPanelView as _0x15e81d,createDropdown as _0x51b52e}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3ea16c,IconListStyleDecimal as _0x4d6b30,IconListStyleDecimalLeadingZero as _0x4b5cee,IconListStyleLowerRoman as _0x38ffb6,IconListStyleUpperRoman as _0x1fc4a5,IconListStyleLowerLatin as _0x34d13d,IconListStyleUpperLatin as _0x24e982}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x1bab29,_0x26efa5){this['_model']=_0x1bab29,this['_elementName']=_0x26efa5['elementName'],this['_getElementKey']=_0x26efa5['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xec8cdf){const _0x3892a3=new Set(),_0x53eee1=new Map();for(const _0x518f5e of _0xec8cdf){if('insert'===_0x518f5e['type']&&'$text'!==_0x518f5e['name']&&_0x518f5e['position']['nodeAfter']){const _0x20fa57=this['_model']['createRangeOn'](_0x518f5e['position']['nodeAfter']);for(const _0x3290f6 of _0x20fa57['getItems']()){if(!_0x3290f6['is']('element',this['_elementName']))continue;const _0x3f97eb=this['_getElementKey'](_0x3290f6);_0x53eee1['has'](_0x3f97eb)||_0x53eee1['set'](_0x3f97eb,[]),_0x53eee1['get'](_0x3f97eb)['push'](_0x3290f6);}}if('remove'===_0x518f5e['type']&&_0x518f5e['name']===this['_elementName']){const _0x27651c=this['_getElementKey']({'getAttribute':_0x36d253=>_0x518f5e['attributes']['get'](_0x36d253)});_0x3892a3['add'](_0x27651c);}}for(const [_0x1b1aa9,_0x31f878]of this['_trackedElements'])'$graveyard'===_0x31f878['root']['rootName']&&_0x3892a3['add'](_0x1b1aa9);for(const _0x4a22e6 of _0x3892a3)this['_trackedElements']['delete'](_0x4a22e6);for(const [_0x2cabc4,_0x1afce9]of _0x53eee1)this['_trackedElements']['set'](_0x2cabc4,_0x1afce9[_0x1afce9['length']-0x1]);const _0x266ae6=new Set();for(const [_0x316455,_0x5425e2]of _0x53eee1)_0x3892a3['has'](_0x316455)&&(_0x266ae6['add'](_0x5425e2[0x0]),_0x5425e2['length']>0x1?_0x53eee1['set'](_0x316455,_0x5425e2['slice'](0x1)):_0x53eee1['delete'](_0x316455),_0x3892a3['delete'](_0x316455));return{'removed':Array['from'](_0x3892a3),'inserted':Array['from'](_0x53eee1['values']())['flat'](),'moved':Array['from'](_0x266ae6)};}}class f extends _0x39419f{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4578a2){super(_0x4578a2),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1737f9=>_0x1737f9['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x9b0a5=>_0x9b0a5['getAttribute']('footnoteId')});}['init'](){const {editor:_0xf9e490}=this,{model:_0x3ef2bd,data:_0x14d105}=_0xf9e490;_0x3ef2bd['document']['registerPostFixer'](_0x525ba9=>{const _0x39f649=_0x3ef2bd['document']['differ']['getChanges']();let _0x209afe=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x525ba9,_0x39f649)&&(_0x209afe=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x525ba9,_0x39f649)&&(_0x209afe=!0x0),this['_handleFootnoteReferencesChanges'](_0x525ba9,_0x39f649)&&(_0x209afe=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x525ba9)&&(_0x209afe=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x525ba9)&&(_0x209afe=!0x0),this['_sortFootnoteDefinitions'](_0x525ba9)&&(_0x209afe=!0x0),_0x209afe;}),this['listenTo'](_0x3ef2bd['document'],'change:data',()=>{_0x3ef2bd['enqueueChange']({'isUndoable':!0x1},_0x1c0bce=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1c0bce);});},{'priority':'low'}),this['listenTo'](_0x14d105,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4f3ddd){return this['_footnotes']['find'](_0x1f55a0=>_0x1f55a0['id']===_0x4f3ddd)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x5d5b7e){this['_footnoteFormatter']=_0x5d5b7e;}['_updateFootnotesCounters'](_0x92a9c4,_0x2d3ae1=0x0){let _0x1749b3=!0x1;for(let _0x367107=_0x2d3ae1;_0x367107<this['_footnotes']['length'];_0x367107++)this['_updateFootnoteRefCounter'](_0x92a9c4,_0x367107)&&(_0x1749b3=!0x0);return _0x1749b3;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2ca6db,_0x3f278a){const _0x1a4ee0=_0x2ca6db['createElement']('footnotesDefinitions',{});return _0x2ca6db['append'](_0x1a4ee0,_0x3f278a),this['_footnotesDefinitions']=_0x1a4ee0,_0x1a4ee0;}['_ensureFootnotesDefinitionsContainerExists'](_0x4a226b){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4c26ba=this['_footnotes'][0x0]['reference']['root'],_0x3a5ca1=this['_insertEmptyFootnotesDefinitionsContainer'](_0x4a226b,_0x4c26ba);for(const _0x477458 of this['_footnotes'])_0x477458['definition']['parent']||_0x4a226b['insert'](_0x477458['definition'],_0x3a5ca1,'end');this['_updateFootnotesCounters'](_0x4a226b);}['_handleFootnotesDefinitionsObjectChanges'](_0x1176f1,_0x5c2868){let _0x1193f9=!0x1;const {inserted:_0x88fa13,removed:_0x19d84e,moved:_0x322139}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5c2868);if(_0x322139['length']&&(this['_footnotesDefinitions']=_0x322139[0x0]),_0x88fa13['length']){if(_0x88fa13['length']>0x1||this['_footnotesDefinitions']&&_0x88fa13['some'](_0x3745aa=>_0x3745aa!==this['_footnotesDefinitions'])){const _0x372e56=_0x1176f1['createElement']('footnotesDefinitions',{}),_0x35c008=[];this['_footnotesDefinitions']&&_0x35c008['push'](this['_footnotesDefinitions']),_0x35c008['push'](..._0x88fa13),_0x1176f1['insert'](_0x372e56,_0x35c008[0x0],'before');for(const _0x3e2975 of _0x35c008)_0x1176f1['move'](_0x1176f1['createRangeIn'](_0x3e2975),_0x1176f1['createPositionAt'](_0x372e56,'end')),_0x1176f1['remove'](_0x3e2975);this['_footnotesDefinitions']=_0x372e56,this['_updateFootnotesCounters'](_0x1176f1),_0x1193f9=!0x0;}else this['_footnotesDefinitions']=_0x88fa13[0x0];}if(_0x19d84e['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x303db5 of this['_footnotes'])_0x1176f1['remove'](_0x303db5['reference']),_0x1193f9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1193f9;}['_handleFootnoteDefinitionsChanges'](_0x2e09b8,_0x2c2f1e){let _0x56336e=!0x1;const _0x59c141=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4c8535,moved:_0x139ddb}=this['_footnoteDefsTracker']['getChanges'](_0x2c2f1e);for(const _0x5c4550 of[..._0x139ddb,..._0x4c8535]){const _0x58ac90=_0x5c4550['getAttribute']('footnoteId'),_0x3da47a=this['getFootnote'](_0x58ac90);_0x3da47a&&(_0x3da47a['definition']=_0x5c4550),_(_0x2e09b8,_0x59c141,_0x5c4550)&&(_0x56336e=!0x0);}return _0x56336e;}['_handleFootnoteReferencesChanges'](_0xb77eb1,_0x160f37){let _0x47f91f=!0x1;const {removed:_0x64920d,inserted:_0x439077,moved:_0x23b159}=this['_footnoteRefsTracker']['getChanges'](_0x160f37);for(const _0x4a03c5 of _0x64920d)this['_handleRemoveFootnoteReferenceById'](_0xb77eb1,_0x4a03c5)&&(_0x47f91f=!0x0);for(const _0x5cb433 of _0x439077)this['_handleInsertedFootnoteReference'](_0xb77eb1,_0x5cb433)&&(_0x47f91f=!0x0);for(const _0x7d22aa of _0x23b159)this['_handleMovedFootnoteReference'](_0xb77eb1,_0x7d22aa)&&(_0x47f91f=!0x0);return _0x47f91f;}['_handleFootnotesDefinitionsObjectSync'](_0x57ca3d){if(!this['_footnotesDefinitions'])return!0x1;let _0x1fe08e=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x23d1dd=[];for(const _0x4d6aad of this['_footnotesDefinitions']['getChildren']()){const _0x1face9=_0x4d6aad['getAttribute']('footnoteId');this['getFootnote'](_0x1face9)||(_0x23d1dd['unshift'](_0x4d6aad),_0x1fe08e=!0x0);}for(const _0x10a16c of _0x23d1dd)_0x57ca3d['remove'](_0x10a16c);}const _0x108b66=new Set(),_0x2afbd5=[];for(const _0x4231bc of this['_footnotesDefinitions']['getChildren']()){const _0x5b2b78=_0x4231bc['getAttribute']('footnoteId');_0x108b66['has'](_0x5b2b78)?(_0x2afbd5['unshift'](_0x4231bc),_0x1fe08e=!0x0):_0x108b66['add'](_0x5b2b78);}for(const _0x2c28f9 of _0x2afbd5)_0x57ca3d['remove'](_0x2c28f9);return this['_footnotesDefinitions']['childCount']||(_0x57ca3d['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x1fe08e=!0x0),_0x1fe08e;}['_handleInsertedFootnoteReference'](_0x3adc24,_0x2160de){if(this['_footnotes']['find'](_0x51ceab=>_0x51ceab['reference']===_0x2160de))return!0x1;let _0xaf2d29=!0x1;const _0x328b87=_0x2160de['getAttribute']('footnoteId'),_0x2c936c=this['_footnotes']['findIndex'](_0xd65429=>_0xd65429['id']===_0x328b87);-0x1!==_0x2c936c&&(_0x3adc24['remove'](this['_footnotes'][_0x2c936c]['reference']),this['_footnotes']['splice'](_0x2c936c,0x1),_0xaf2d29=!0x0);let _0x5a4b11=this['_footnotesDefinitions']?function(_0x477b20,_0x359239){for(const _0x57973c of _0x477b20['getChildren']())if(_0x57973c['getAttribute']('footnoteId')===_0x359239)return _0x57973c;return null;}(this['_footnotesDefinitions'],_0x328b87):null;_0x5a4b11||(_0x5a4b11=_0x3adc24['createElement']('footnoteDefinition',{'footnoteId':_0x328b87}),this['_footnotesDefinitions']&&(_0x3adc24['insert'](_0x5a4b11,this['_footnotesDefinitions'],'end'),_0xaf2d29=!0x0));const _0x2e4673={'id':_0x328b87,'reference':_0x2160de,'definition':_0x5a4b11},_0x4bb850=I(this['editor']['model'],this['_footnotes'],_0x2160de);this['_footnotes']['splice'](_0x4bb850,0x0,_0x2e4673);let _0x408672=_0x4bb850;return-0x1!==_0x2c936c&&(_0x408672=Math['min'](_0x4bb850,_0x2c936c)),this['_updateFootnotesCounters'](_0x3adc24,_0x408672)&&(_0xaf2d29=!0x0),_0xaf2d29;}['_handleRemoveFootnoteReferenceById'](_0x41d423,_0x14a84b){const _0x2a251e=this['_footnotes']['findIndex'](_0x4cadc5=>_0x4cadc5['id']===_0x14a84b);if(-0x1===_0x2a251e)return!0x1;let _0x4b373e=!0x1;const _0x2918db=this['_footnotes'][_0x2a251e];return'$graveyard'!==_0x2918db['definition']['root']['rootName']&&(_0x41d423['remove'](_0x2918db['definition']),_0x4b373e=!0x0),this['_footnotes']['splice'](_0x2a251e,0x1),this['_updateFootnotesCounters'](_0x41d423,_0x2a251e)&&(_0x4b373e=!0x0),_0x4b373e;}['_handleMovedFootnoteReference'](_0x5142ce,_0x25f859){const _0xafc5f0=_0x25f859['getAttribute']('footnoteId'),_0x49acb0=this['_footnotes']['findIndex'](_0x5ac114=>_0x5ac114['id']===_0xafc5f0),_0x5d125c=this['_footnotes'][_0x49acb0];let _0x509361=!0x1;_0x5d125c['reference']=_0x25f859,this['_footnotes']['splice'](_0x49acb0,0x1);const _0x5e214c=I(this['editor']['model'],this['_footnotes'],_0x25f859);return this['_footnotes']['splice'](_0x5e214c,0x0,_0x5d125c),this['_updateFootnotesCounters'](_0x5142ce,Math['min'](_0x49acb0,_0x5e214c))&&(_0x509361=!0x0),_0x509361;}['_updateFootnoteRefCounter'](_0x3d6db3,_0x613d65){if(!this['_footnotesDefinitions'])return!0x1;const _0x2478a0=this['_footnotes'][_0x613d65];let _0x36ecc8;return _0x36ecc8=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2478a0,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x613d65+0x1}):String(_0x613d65+0x1),_0x2478a0['reference']['getAttribute']('footnoteCounter')!=_0x36ecc8&&(_0x3d6db3['setAttribute']('footnoteCounter',_0x36ecc8,_0x2478a0['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x27c31b){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2aa9ec,_0x113e46){if(_0x2aa9ec['length']!==_0x113e46['length'])return!0x1;for(let _0xb7681f=0x0;_0xb7681f<_0x2aa9ec['length'];_0xb7681f++)if(_0x2aa9ec[_0xb7681f]!==_0x113e46[_0xb7681f])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x34eb7b=>_0x34eb7b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x6ac2dd=>_0x6ac2dd['getAttribute']('footnoteId'))))return!0x1;let _0x5cf625=!0x1;for(let _0x4aaada=0x0;_0x4aaada<this['_footnotes']['length'];_0x4aaada++){const _0x24f235=this['_footnotes'][_0x4aaada],_0xf51139=_0x27c31b['createPositionBefore'](_0x24f235['definition']),_0x10dd9d=_0x27c31b['createPositionAt'](this['_footnotesDefinitions'],_0x4aaada);_0xf51139['isEqual'](_0x10dd9d)||(_0x27c31b['move'](_0x27c31b['createRangeOn'](_0x24f235['definition']),_0x10dd9d),_0x5cf625=!0x0);}return _0x5cf625;}['_ensureFootnotesReferencesHaveProperOrder'](_0x52cf10){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3fe9e2}=this['editor'];let _0x32fd44=!0x1;for(let _0x519d84=0x0;_0x519d84<this['_footnotes']['length']-0x1;_0x519d84++){const _0x20d7b6=this['_footnotes'][_0x519d84],_0x5cb481=this['_footnotes'][_0x519d84+0x1],_0x1374c5=_0x3fe9e2['createPositionBefore'](_0x20d7b6['reference']),_0x2a1bf7=_0x3fe9e2['createPositionBefore'](_0x5cb481['reference']);'after'===_0x1374c5['compareWith'](_0x2a1bf7)&&(this['_handleMovedFootnoteReference'](_0x52cf10,_0x20d7b6['reference']),_0x519d84=-0x1,_0x32fd44=!0x0);}return _0x32fd44;}}function _(_0x5676fa,_0x12f01c,_0x13bcdb){if(_0x13bcdb['childCount'])return!0x1;const _0x321e4c=_0x12f01c?'paragraph':'footnoteInlineContent';return _0x5676fa['insert'](_0x5676fa['createElement'](_0x321e4c),_0x13bcdb),!0x0;}function I(_0x306218,_0x2c181e,_0x386c2e){if(0x0===_0x2c181e['length'])return 0x0;const _0xd0560=_0x306218['createPositionBefore'](_0x386c2e);for(let _0x511a2d=0x0;_0x511a2d<_0x2c181e['length'];_0x511a2d++){const _0x389fe1=_0x2c181e[_0x511a2d],_0x76dfbe=_0x306218['createPositionBefore'](_0x389fe1['reference']);if('before'===_0xd0560['compareWith'](_0x76dfbe))return _0x511a2d;}const _0x49a597=_0x386c2e['root'];let _0x2ad120=-0x1;for(let _0x1ad408=_0x2c181e['length']-0x1;_0x1ad408>=0x0;_0x1ad408--)if(_0x2c181e[_0x1ad408]['reference']['root']===_0x49a597){_0x2ad120=_0x1ad408;break;}if(-0x1!==_0x2ad120)return _0x2ad120+0x1;const _0x19e53d=_0x306218['document']['getRootNames'](),_0x3da767=_0x19e53d['indexOf'](_0x49a597['rootName']),_0x29d9f3=_0x19e53d[_0x3da767+0x1];if(_0x29d9f3){for(let _0x109758=0x0;_0x109758<_0x2c181e['length'];_0x109758++)if(_0x2c181e[_0x109758]['reference']['root']['rootName']===_0x29d9f3)return _0x109758;}return _0x2c181e['length'];}class m extends _0x44f239{['refresh'](){const _0x1e4005=this['editor']['model']['document']['selection'],_0x25e6e6=this['_getPositionToInsertFootnote'](_0x1e4005);this['isEnabled']=!!_0x25e6e6;}['execute'](_0xeda5ec){const {editor:_0x4f4e3a}=this,{model:_0x53f763}=_0x4f4e3a,{selection:_0x108ea5}=_0x53f763['document'],_0x50b48d=this['_getPositionToInsertFootnote'](_0x108ea5);if(!_0x50b48d)return;const _0x474333=_0x4f4e3a['plugins']['get']('FootnotesEditing'),_0x1b0761=_0xeda5ec?.['footnoteId']??_0x63e192();!function(_0x523e7f){return'string'==typeof _0x523e7f&&_0x523e7f['length']>0x0&&!/\s/['test'](_0x523e7f)&&!/^\d/['test'](_0x523e7f);}(_0x1b0761)?_0x414611('insert-footnote-command-executed-with-invalid-id'):(_0x53f763['change'](_0xb57e39=>{const _0xda8fd3=_0xb57e39['createElement']('footnoteRef',{'footnoteId':_0x1b0761});_0x53f763['insertObject'](_0xda8fd3,_0x50b48d,null);}),_0x474333['_moveSelectionToFootnoteDefinition'](_0x1b0761));}['_getPositionToInsertFootnote'](_0x11289c){const {model:_0x1569fa}=this['editor'],{schema:_0x5f2767}=_0x1569fa,_0x10a319=_0x11289c['getFirstRange']();for(const _0x262a40 of _0x10a319['getItems']())if(_0x5f2767['isBlock'](_0x262a40)||_0x5f2767['isObject'](_0x262a40))return null;const _0x2e35c1=_0x10a319['end'];return _0x5f2767['checkChild'](_0x2e35c1,'footnoteRef')?_0x2e35c1:null;}}class r extends _0x39419f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5144c4}=this;_0x5144c4['config']['define']('footnotes.multiBlock',!0x0),_0x5144c4['commands']['add']('insertFootnote',new m(_0x5144c4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x6a1fcd){const _0x36ebdc=_0x17df15([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]),_0x347d46=0x47a28506,_0x5d90d7=0x47a5fe56^_0x347d46,_0x50b28a=window[_0x17df15([0x44,0x61,0x74,0x65])][_0x17df15([0x6e,0x6f,0x77])](),_0x1db701=_0x6a1fcd[_0x17df15([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1e1729=new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe32a93=>{_0x1db701[_0x17df15([0x6f,0x6e,0x63,0x65])](_0x17df15([0x72,0x65,0x61,0x64,0x79]),_0xe32a93);}),_0x5150c1={[_0x17df15([0x6b,0x74,0x79])]:_0x17df15([0x45,0x43]),[_0x17df15([0x75,0x73,0x65])]:_0x17df15([0x73,0x69,0x67]),[_0x17df15([0x63,0x72,0x76])]:_0x17df15([0x50,0x2d,0x32,0x35,0x36]),[_0x17df15([0x78])]:_0x17df15([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]),[_0x17df15([0x79])]:_0x17df15([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]),[_0x17df15([0x61,0x6c,0x67])]:_0x17df15([0x45,0x53,0x32,0x35,0x36])},_0x58c8c4=_0x1db701[_0x17df15([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17df15([0x67,0x65,0x74])](_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x352929(){let _0x30764a,_0x318e5b=null,_0x2a787a=null;try{if(_0x58c8c4==_0x17df15([0x47,0x50,0x4c]))return _0x17df15([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x30764a=_0x1a970b(),!_0x30764a)return _0x17df15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x30764a[_0x17df15([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2a787a=_0x5849c6(_0x30764a[_0x17df15([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x30764a[_0x17df15([0x6a,0x74,0x69])])),await _0x24fc96()?_0x29d2fe()?_0x47aa40()?_0x17df15([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xdbf48d()?(_0x30764a[_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17df15([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x318e5b=_0x368e06(_0x17df15([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x30764a[_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17df15([0x74,0x72,0x69,0x61,0x6c])&&(_0x318e5b=_0x368e06(_0x17df15([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x14e451()):_0x17df15([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17df15([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17df15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17df15([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47aa40(){const _0x49649e=[_0x17df15([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17df15([0x74,0x72,0x69,0x61,0x6c])][_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30764a[_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x50b28a/0x3e8:0xe10*_0x5d90d7;return _0x30764a[_0x17df15([0x65,0x78,0x70])]<_0x49649e;}function _0x29d2fe(){const _0x37a828=_0x30764a[_0x17df15([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x37a828&&(!!_0x37a828[_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17df15([0x2a]))||!!_0x37a828[_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17df15([0x46,0x4f,0x4f])));}function _0xdbf48d(){const _0x814f3a=_0x30764a[_0x17df15([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x814f3a||0x0==_0x814f3a[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x148052}=new URL(window[_0x17df15([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x814f3a[_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x148052))return!0x0;const _0x4aa910=_0x148052[_0x17df15([0x73,0x70,0x6c,0x69,0x74])](_0x17df15([0x2e]));return _0x814f3a[_0x17df15([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ca573=>_0x5ca573[_0x17df15([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17df15([0x2a])))[_0x17df15([0x6d,0x61,0x70])](_0x5af7fe=>_0x5af7fe[_0x17df15([0x73,0x70,0x6c,0x69,0x74])](_0x17df15([0x2e])))[_0x17df15([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x407cc0=>_0x407cc0[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4aa910[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17df15([0x6d,0x61,0x70])](_0x4c9226=>Array(_0x4aa910[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c9226[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17df15([0x66,0x69,0x6c,0x6c])](_0x4c9226[0x0]===_0x17df15([0x2a])?_0x17df15([0x2a]):'')[_0x17df15([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c9226))[_0x17df15([0x73,0x6f,0x6d,0x65])](_0x44fbc6=>_0x4aa910[_0x17df15([0x65,0x76,0x65,0x72,0x79])]((_0x1c3eae,_0x29fa6b)=>_0x44fbc6[_0x29fa6b]===_0x1c3eae||_0x44fbc6[_0x29fa6b]===_0x17df15([0x2a])));}function _0x14e451(){return _0x318e5b&&_0x2a787a?new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2de5a8,_0x3d9e14)=>{_0x318e5b[_0x17df15([0x74,0x68,0x65,0x6e])](_0x2de5a8,_0x3d9e14),_0x2a787a[_0x17df15([0x74,0x68,0x65,0x6e])](_0x139c7b=>{_0x139c7b!=_0x17df15([0x56,0x61,0x6c,0x69,0x64])&&_0x2de5a8(_0x139c7b);},_0x3d9e14);}):_0x318e5b||_0x2a787a||_0x17df15([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5849c6(_0x3c7609,_0x3a8630){return new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38d435=>{if(_0x358a0e())return _0x38d435(_0x17df15([0x56,0x61,0x6c,0x69,0x64]));_0x30fc8a(),_0x1db701[_0x17df15([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17df15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c3409=!0x1;const _0x42f383=_0x63e192();function _0x541b6c(_0x40c3e0){return!!_0x40c3e0&&(typeof _0x40c3e0===_0x17df15([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40c3e0===_0x17df15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40c3e0[_0x17df15([0x74,0x68,0x65,0x6e])]===_0x17df15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40c3e0[_0x17df15([0x63,0x61,0x74,0x63,0x68])]===_0x17df15([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3be8eb(_0x3917e1){_0x2e3183(_0x3917e1)[_0x17df15([0x74,0x68,0x65,0x6e])](_0x2aaa94=>{if(!_0x2aaa94||_0x2aaa94[_0x17df15([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17df15([0x6f,0x6b]))return _0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2531fa(_0x478a1d(_0x42f383+_0x3a8630))!=_0x2aaa94[_0x17df15([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17df15([0x56,0x61,0x6c,0x69,0x64]);})[_0x17df15([0x74,0x68,0x65,0x6e])](_0x162897=>(_0x54700a(),_0x162897),()=>{const _0x243aac=_0x3e6a38();return null==_0x243aac?(_0x54700a(),_0x17df15([0x56,0x61,0x6c,0x69,0x64])):_0x17df15(_0x50b28a-_0x243aac>(0x63ae0106^_0x347d46)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17df15([0x74,0x68,0x65,0x6e])](_0x38d435)[_0x17df15([0x63,0x61,0x74,0x63,0x68])](()=>{_0x38d435(_0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5be3ee=0x47946b86^_0x347d46;function _0x54700a(){const _0x5cb214=_0x17df15([0x6c,0x6c,0x63,0x74,0x2d])+_0x2531fa(_0x478a1d(_0x3c7609)),_0x265cee=_0x1b35c2(_0x2531fa(window[_0x17df15([0x4d,0x61,0x74,0x68])][_0x17df15([0x63,0x65,0x69,0x6c])](_0x50b28a/_0x5be3ee)));window[_0x17df15([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17df15([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5cb214,_0x265cee);}function _0x3e6a38(){const _0x210b8e=_0x17df15([0x6c,0x6c,0x63,0x74,0x2d])+_0x2531fa(_0x478a1d(_0x3c7609)),_0x2f0919=window[_0x17df15([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17df15([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x210b8e);return _0x2f0919?window[_0x17df15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1b35c2(_0x2f0919),0x10)*_0x5be3ee:null;}function _0x2e3183(_0x3a330e){return new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x32359a,_0x42ba0d)=>{_0x3a330e[_0x17df15([0x74,0x68,0x65,0x6e])](_0x32359a,_0x42ba0d),window[_0x17df15([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x42ba0d,0x47a351c6^_0x347d46);});}}_0x1db701[_0x17df15([0x6f,0x6e])](_0x17df15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2beb68,_0x5e47d1)=>{if(_0x5e47d1[0x0]!=_0x3c7609)return _0x38d435(_0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5e47d1[0x1]={..._0x5e47d1[0x1],[_0x17df15([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x42f383};},{[_0x17df15([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17df15([0x68,0x69,0x67,0x68])}),_0x1db701[_0x17df15([0x6f,0x6e])](_0x17df15([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45a382=>{_0x541b6c(_0x45a382[_0x17df15([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c3409=!0x0,_0x3be8eb(_0x45a382[_0x17df15([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17df15([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17df15([0x6c,0x6f,0x77])}),_0x1e1729[_0x17df15([0x74,0x68,0x65,0x6e])](()=>{_0x4c3409||_0x38d435(_0x17df15([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x358a0e(){return _0x1db701[_0x17df15([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17df15([0x76,0x69,0x65,0x77])][_0x17df15([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17df15([0x61,0x75,0x74,0x6f]);}function _0x30fc8a(){_0x1db701[_0x17df15([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17df15([0x76,0x69,0x65,0x77])][_0x17df15([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17df15([0x61,0x75,0x74,0x6f]);}}function _0x368e06(_0x48157c){const _0x32f6a8=[new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b54f3=>setTimeout(_0x2b54f3,0x47abbbca^_0x347d46)),_0x1e1729[_0x17df15([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4b5908=>{let _0x370c71=0x0;_0x1db701[_0x17df15([0x6d,0x6f,0x64,0x65,0x6c])][_0x17df15([0x6f,0x6e])](_0x17df15([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5c1217,_0x3d1634)=>{_0x3d1634[0x0][_0x17df15([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x370c71++,_0x370c71==(0x47a284fe^_0x347d46)&&(_0x4b5908(),_0x5c1217[_0x17df15([0x6f,0x66,0x66])]());});}))];return window[_0x17df15([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17df15([0x72,0x61,0x63,0x65])](_0x32f6a8)[_0x17df15([0x74,0x68,0x65,0x6e])](()=>_0x48157c);}async function _0x4b7b14(){await _0x1e1729,_0x1db701[_0x17df15([0x6d,0x6f,0x64,0x65,0x6c])][_0x17df15([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x26caec,_0x1db701[_0x17df15([0x6d,0x6f,0x64,0x65,0x6c])][_0x17df15([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x26caec,_0x1db701[_0x17df15([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17df15([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3a7286(_0x2d9bc2){const _0x43c483=_0xdc3924();_0x1db701[_0x43c483]=_0x17df15([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2d9bc2,_0x2d9bc2!=_0x17df15([0x56,0x61,0x6c,0x69,0x64])&&_0x4b7b14();}function _0xdc3924(){const _0x4056b0=window[_0x17df15([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17df15([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17df15([0x6e,0x6f,0x77])]())[_0x17df15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17df15([0x2e]),'');let _0x54c9ce=_0x17df15([0x75]);for(let _0x5ede14=0x0;_0x5ede14<_0x4056b0[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ede14+=0x2){let _0x446a9f=window[_0x17df15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4056b0[_0x17df15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ede14,_0x5ede14+0x2));_0x446a9f>=_0x36ebdc[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x446a9f-=_0x36ebdc[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x54c9ce+=_0x36ebdc[_0x446a9f];}return _0x54c9ce;}function _0x1a970b(){const _0x53022c=_0x58c8c4[_0x17df15([0x73,0x70,0x6c,0x69,0x74])](_0x17df15([0x2e]));if(0x3!=_0x53022c[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x314da3(_0x53022c[0x1]);function _0x314da3(_0x44511e){const _0xdbf0ed=_0x406cb4(_0x44511e);return _0xdbf0ed&&_0x370f46()?_0xdbf0ed:null;function _0x370f46(){const _0x485fec=_0xdbf0ed[_0x17df15([0x6a,0x74,0x69])],_0x2f7e77=window[_0x17df15([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x485fec[_0x17df15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x485fec[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x452edd={..._0xdbf0ed,[_0x17df15([0x6a,0x74,0x69])]:_0x485fec[_0x17df15([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x485fec[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x452edd[_0x17df15([0x76,0x63])],_0x478a1d(_0x452edd)==_0x2f7e77;}}}async function _0x24fc96(){let _0x664b2d=!0x0;try{const _0x232251=_0x58c8c4[_0x17df15([0x73,0x70,0x6c,0x69,0x74])](_0x17df15([0x2e])),[_0x311a1f,_0x56df6c,_0x1c5808]=_0x232251;return _0x4f9c25(_0x311a1f),await _0x32f598(_0x311a1f,_0x56df6c,_0x1c5808),_0x664b2d;}catch{return!0x1;}function _0x4f9c25(_0x551913){const _0x478094=_0x406cb4(_0x551913);_0x478094&&_0x478094[_0x17df15([0x61,0x6c,0x67])]==_0x17df15([0x45,0x53,0x32,0x35,0x36])||(_0x664b2d=!0x1);}async function _0x32f598(_0x58eae1,_0x548458,_0x2929d2){const _0x498054=window[_0x17df15([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17df15([0x66,0x72,0x6f,0x6d])](_0x54edc7(_0x2929d2),_0x2d6a0b=>_0x2d6a0b[_0x17df15([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4d7eb0=new window[(_0x17df15([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17df15([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x58eae1+_0x17df15([0x2e])+_0x548458),_0x2326a6=window[_0x17df15([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17df15([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x2326a6)return;const _0x5d9183=await _0x2326a6[_0x17df15([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17df15([0x6a,0x77,0x6b]),_0x5150c1,{[_0x17df15([0x6e,0x61,0x6d,0x65])]:_0x17df15([0x45,0x43,0x44,0x53,0x41]),[_0x17df15([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17df15([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17df15([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x2326a6[_0x17df15([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17df15([0x6e,0x61,0x6d,0x65])]:_0x17df15([0x45,0x43,0x44,0x53,0x41]),[_0x17df15([0x68,0x61,0x73,0x68])]:{[_0x17df15([0x6e,0x61,0x6d,0x65])]:_0x17df15([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d9183,_0x498054,_0x4d7eb0)||(_0x664b2d=!0x1);}}function _0x406cb4(_0x3fdc25){return _0x3fdc25[_0x17df15([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17df15([0x65,0x79]))?JSON[_0x17df15([0x70,0x61,0x72,0x73,0x65])](_0x54edc7(_0x3fdc25)):null;}function _0x54edc7(_0x58be62){return window[_0x17df15([0x61,0x74,0x6f,0x62])](_0x58be62[_0x17df15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17df15([0x2b]))[_0x17df15([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17df15([0x2f])));}function _0x478a1d(_0x38d2b5){let _0x1e1b5e=0x1505;function _0x41186b(_0x203401){for(let _0x5f0075=0x0;_0x5f0075<_0x203401[_0x17df15([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5f0075++){const _0x3640b8=_0x203401[_0x17df15([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5f0075);_0x1e1b5e=(_0x1e1b5e<<0x5)+_0x1e1b5e+_0x3640b8,_0x1e1b5e&=_0x1e1b5e;}}function _0x37a943(_0xc49268){Array[_0x17df15([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xc49268)?_0xc49268[_0x17df15([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37a943):_0xc49268&&typeof _0xc49268==_0x17df15([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17df15([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xc49268)[_0x17df15([0x73,0x6f,0x72,0x74])]()[_0x17df15([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xc4bf4f,_0x45398b])=>{_0x41186b(_0xc4bf4f),_0x37a943(_0x45398b);}):_0x41186b(window[_0x17df15([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xc49268));}return _0x37a943(_0x38d2b5),_0x1e1b5e>>>0x0;}function _0x2531fa(_0x56d44a){return _0x56d44a[_0x17df15([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17df15([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17df15([0x30]));}function _0x1b35c2(_0x58cdd5){return _0x58cdd5[_0x17df15([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17df15([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17df15([0x6a,0x6f,0x69,0x6e])]('');}function _0x26caec(){}function _0x17df15(_0x14305e){return _0x14305e['map'](_0x456808=>String['fromCharCode'](_0x456808))['join']('');}_0x3a7286(await _0x352929());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2f36b4){const {plugins:_0x3be888,editing:_0x431fb9,model:_0x4ee956}=this['editor'],_0x362e6f=_0x3be888['get'](f)['getFootnote'](_0x2f36b4);return!!_0x362e6f&&(_0x4ee956['change'](_0x2a7252=>{_0x2a7252['setSelection'](_0x2a7252['createPositionAt'](_0x362e6f['definition'],'end'));}),_0x431fb9['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1d4125){const {plugins:_0x4f5459,editing:_0x4707d4,model:_0x5a6e75}=this['editor'],_0x210ad4=_0x4f5459['get'](f)['getFootnote'](_0x1d4125);return!!_0x210ad4&&(_0x5a6e75['change'](_0x24c664=>{_0x24c664['setSelection'](_0x210ad4['reference'],'on');}),_0x4707d4['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3500db}=this['editor']['model'],_0x161c3e=this['editor']['config']['get']('footnotes.multiBlock');_0x3500db['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3500db['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3500db['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x161c3e?_0x3500db['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3500db['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3500db['addChildCheck'](_0x4232a9=>{for(const _0x4ebbfd of _0x4232a9)if('footnoteDefinition'===_0x4ebbfd['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x395c6b}=this,{conversion:_0x9440c1,editing:_0x1b4237}=_0x395c6b,{t:t}=_0x395c6b['locale'];_0x9440c1['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x1b571b,{writer:_0x34dbde,consumable:_0x5805a2})=>{const _0x23da7a=_0x1b571b['getChild'](0x0);if(!_0x23da7a||!_0x23da7a['is']('element','a'))return null;const _0x42fcb7=_0x23da7a['getAttribute']('href')||'';if(!_0x42fcb7['startsWith']('#'))return null;const _0x2e73e7=_0x42fcb7['replace'](/^#/,'');if(!_0x2e73e7)return null;_0x5805a2['consume'](_0x23da7a,{'name':!0x0,'attributes':['href']});for(const {item:_0x597df0}of _0x1b4237['view']['createRangeIn'](_0x23da7a))_0x597df0['is']('$textProxy')?_0x5805a2['consume'](_0x597df0['textNode'],{'name':!0x0}):_0x597df0['is']('element')&&_0x5805a2['consume'](_0x597df0,{'name':!0x0});return _0x34dbde['createElement']('footnoteRef',{'footnoteId':_0x2e73e7});}}),_0x9440c1['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x57a733,{writer:_0x3da817})=>D(_0x57a733,_0x3da817)}),_0x9440c1['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2bb893,{writer:_0x27dcb6})=>{const _0x229b7d=_0x2bb893['getAttribute']('footnoteCounter');return _0x13b0c7(D(_0x2bb893,_0x27dcb6),_0x27dcb6,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x229b7d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x373aea}=this,{t:t}=_0x373aea['locale'],{conversion:_0x15489d}=_0x373aea;_0x15489d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x15489d['for']('upcast')['add'](_0xa9a545=>{_0xa9a545['on']('element:ol',(_0x1b442c,_0xfcc20a,_0x405d4d)=>{const _0x21b7e1=_0xfcc20a['viewItem'];if(!_0x21b7e1['hasClass']('footnotes-list')||!_0xfcc20a['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x405d4d['consumable']['consume'](_0x21b7e1,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x252519,modelCursor:_0x4f4ba2}=_0x405d4d['convertChildren'](_0xfcc20a['viewItem'],_0xfcc20a['modelCursor']);_0xfcc20a['modelRange']=_0x252519,_0xfcc20a['modelCursor']=_0x4f4ba2;}),_0xa9a545['on']('element:hr',(_0x17d77e,_0x1ba55b,_0x16eeb8)=>{const _0x1d1a18=_0x1ba55b['viewItem'];_0x1d1a18['hasClass']('footnotes-divider')&&_0x1ba55b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x16eeb8['consumable']['consume'](_0x1d1a18,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x15489d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x54296a,{writer:_0x2d236d})=>v(_0x2d236d)}),_0x15489d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4bcc75,{writer:_0xc2ad16})=>{const _0x362105=v(_0xc2ad16,{'data-footnotes-list-label':t('Footnotes')}),_0x357441=_0x13b0c7(_0x362105,_0xc2ad16,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xc2ad16['setCustomProperty']('footnotesDefinitions',!0x0,_0x357441),_0x357441;}});}['_defineDefinitionConverters'](){const {editor:_0x395868}=this,{conversion:_0x58cf52,locale:_0x3e9aeb}=_0x395868,_0x18398f=_0x395868['config']['get']('footnotes.multiBlock');_0x58cf52['for']('upcast')['add'](_0x3d9cdd=>{_0x3d9cdd['on']('element:li',(_0x40b5b5,_0x213402,_0x23f6a4)=>{const _0x49d75a=_0x213402['viewItem'];if(!_0x49d75a['hasClass']('footnote-definition')||!_0x49d75a['getAttribute']('id'))return;const _0x50ceb4=_0x49d75a['parent'];if(!_0x50ceb4['is']('element','ol')||!_0x50ceb4['hasClass']('footnotes-list'))return;if(!_0x23f6a4['consumable']['test'](_0x49d75a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x38da09=_0x23f6a4['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x49d75a['getAttribute']('id')});if(!_0x23f6a4['safeInsert'](_0x38da09,_0x213402['modelCursor']))return;_0x23f6a4['consumable']['consume'](_0x49d75a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x47d2b9=Array['from'](_0x49d75a['getChildren']())['find'](_0x36f6f6=>_0x36f6f6['is']('element')&&_0x36f6f6['hasClass']('footnote-content'));for(const _0x6f1bc4 of _0x49d75a['getChildren']())_0x6f1bc4['is']('element')&&(_0x23f6a4['consumable']['consume'](_0x6f1bc4,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x23f6a4['consumable']['consume'](_0x6f1bc4,{'name':!0x0,'classes':'footnote-content'}));if(_0x47d2b9){if(_0x18398f)_0x23f6a4['convertChildren'](_0x47d2b9,_0x38da09);else{const _0x2d66ad=_0x23f6a4['writer']['createElement']('footnoteInlineContent');_0x23f6a4['writer']['insert'](_0x2d66ad,_0x38da09),_0x23f6a4['convertChildren'](_0x47d2b9,_0x2d66ad);}}_0x23f6a4['updateConversionResult'](_0x38da09,_0x213402);});}),_0x58cf52['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x259e3e,{writer:_0xe66e2c})=>b(_0x259e3e,_0xe66e2c,_0x3e9aeb,{'dataPipeline':!0x0})}),_0x58cf52['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24a7fc,{writer:_0x165afe})=>b(_0x24a7fc,_0x165afe,_0x3e9aeb)});}['_defineBogusParagraphConverters'](){const {editor:_0x2620a8}=this,{conversion:_0x1e0535}=_0x2620a8;_0x2620a8['config']['get']('footnotes.multiBlock')?(_0x1e0535['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x1e0535['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2620a8['model']['document'],'change:data',()=>{!function(_0x4bf99a,_0x26415e){const _0xaeedcc=_0x4bf99a['document']['differ'],_0x28e370=new Set();for(const _0x503c0c of _0xaeedcc['getChanges']()){const _0x50fc14='attribute'==_0x503c0c['type']?_0x503c0c['range']['start']['parent']:_0x503c0c['position']['parent'];_0x50fc14['is']('element','footnoteDefinition')&&_0x28e370['add'](_0x50fc14);}for(const _0x425eb8 of _0x28e370['values']()){const _0xe37235=Array['from'](_0x425eb8['getChildren']())['filter'](_0x34b83b=>g(_0x34b83b,_0x26415e['mapper']));for(const _0x5b024e of _0xe37235)_0x26415e['reconvertItem'](_0x5b024e);}}(_0x2620a8['model'],_0x2620a8['editing']);})):(_0x1e0535['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x1e0535['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2fd713,{writer:_0x1b97b4})=>{const _0x56d73b=_0x1b97b4['createContainerElement']('span');return _0x1b97b4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x56d73b),_0x56d73b;}}));}['_defineKeyboardHandlers'](){const {editor:_0x485374}=this,{editing:_0x272b80,t:t}=_0x485374,_0x1018a4=_0x485374['model']['document']['selection'];_0x485374['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x485374['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x272b80['view']['document'],'enter',(_0x45654e,_0x572723)=>{const _0x3bbe9d=function(_0xfe35ff){const _0x25cdb7=_0xfe35ff['getSelectedElement']();if(_0x25cdb7?.['is']('element','footnoteRef'))return _0x25cdb7;return null;}(_0x1018a4);if(_0x3bbe9d){const _0x1eb4eb=_0x3bbe9d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1eb4eb),_0x572723['preventDefault'](),_0x45654e['stop']();}},{'context':_0x221df4});}['_defineClickHandlers'](){const {editor:_0x27489b}=this,{editing:_0x152fa3}=_0x27489b;_0x27489b['editing']['view']['addObserver'](_0x156f59),_0x27489b['editing']['view']['addObserver'](_0x4335ef);let _0x4f82e8=!0x1;this['listenTo'](_0x152fa3['view']['document'],'pointerdown',(_0x5bd65d,_0x1ef3e4)=>{const {target:_0x28e16c}=_0x1ef3e4,_0x19006e=_0x152fa3['view']['document']['selection'];_0x4f82e8=!!(_0x28e16c?.['is']('element','a')&&_0x28e16c['parent']?.['is']('element','sup')&&_0x28e16c['parent']['hasClass']('footnote'))&&_0x19006e['getSelectedElement']()===_0x28e16c['parent'];},{'priority':'high'}),this['listenTo'](_0x152fa3['view']['document'],'click',(_0x4fea24,_0xcfe0d7)=>{const {target:_0x49ddc5}=_0xcfe0d7;if(!_0x49ddc5?.['is']('element','a'))return;if(_0x49ddc5['parent']?.['is']('element','sup')&&_0x49ddc5['parent']['hasClass']('footnote')&&!_0x4f82e8)return void _0xcfe0d7['preventDefault']();let _0x560bb7=_0x49ddc5['getAttribute']('href');if(!_0x560bb7?.['startsWith']('#'))return;_0x560bb7=_0x560bb7['slice'](0x1);let _0x43bcca=!0x1;(_0x560bb7['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x560bb7['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x560bb7))&&(_0x43bcca=!0x0),_0x43bcca&&(_0xcfe0d7['preventDefault'](),_0x4fea24['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x103371}={}){return(_0x3f1e56,{writer:_0x5170d7})=>{if(!p(_0x3f1e56))return null;if(!_0x103371)return _0x5170d7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2c8d17=_0x5170d7['createContainerElement']('p');return _0x5170d7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2c8d17),_0x2c8d17;};}function p(_0x5d38eb){const {parent:_0x41d434}=_0x5d38eb;if(!_0x41d434?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x41d434['childCount'])return!0x1;for(const _0x3e9b97 of _0x5d38eb['getAttributeKeys']())if(!_0x3e9b97['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3e9b97)return!0x1;return!0x0;}function g(_0x338365,_0x5dfe4b){if(!_0x338365['is']('element','paragraph'))return!0x1;const _0x52a65b=_0x5dfe4b['toViewElement'](_0x338365);return!!_0x52a65b&&p(_0x338365)!==_0x52a65b['is']('element','span');}function J(_0x7983ba){return _0x221df4(_0x7983ba)&&_0x7983ba['is']('containerElement')&&!!_0x7983ba['getCustomProperty']('footnotesDefinitions');}function v(_0x184cbd,_0x1f0ebd={}){const _0x2da23e=_0x184cbd['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5ba0ec=_0x184cbd['createContainerElement']('ol',{'class':'footnotes-list'},_0x184cbd['createSlot']());return _0x184cbd['createContainerElement']('div',{'class':'footnotes',..._0x1f0ebd},[_0x2da23e,_0x5ba0ec]);}function D(_0x5146ba,_0x182c15){const _0x3bc605=_0x5146ba['getAttribute']('footnoteId'),_0x13f569=_0x5146ba['getAttribute']('footnoteCounter'),_0x2bc393=_0x182c15['createUIElement']('a',{'href':'#'+_0x3bc605},function(_0x8542f0){const _0x4d6a2b=this['toDomElement'](_0x8542f0);return _0x4d6a2b['textContent']=_0x13f569,_0x4d6a2b;}),_0x2d0443=_0x182c15['createContainerElement']('sup',{'id':'ref-'+_0x3bc605,'class':'footnote'},[_0x2bc393]);return _0x2d0443['getFillerOffset']=()=>null,_0x2d0443;}function b(_0x36e443,_0x560ba5,_0x4b047c,{dataPipeline:_0x5aec36}={}){const {t:t}=_0x4b047c,_0x8d6af0=_0x36e443['getAttribute']('footnoteId'),_0x2a4d68=_0x560ba5['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x8d6af0},function(_0x4b4bc8){const _0xd5ea0e=this['toDomElement'](_0x4b4bc8);return _0xd5ea0e['innerText']='^',_0xd5ea0e;}),_0x2e0f0e=_0x5aec36?_0x560ba5['createContainerElement']('div',{'class':'footnote-content'}):_0x3cf14d(_0x560ba5['createEditableElement']('div',{'class':'footnote-content'}),_0x560ba5,{'label':t('Footnote\x20content.')});return _0x560ba5['insert'](_0x560ba5['createPositionAt'](_0x2e0f0e,0x0),_0x560ba5['createSlot']()),_0x560ba5['createContainerElement']('li',{'class':'footnote-definition','id':_0x8d6af0},[_0x2a4d68,_0x2e0f0e]);}class e extends _0x39419f{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2156b4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x2c7ba4}=this,{plugins:_0x5f50dc,model:_0x54c9bc}=_0x2c7ba4,_0x15bd00=_0x5f50dc['get'](_0x2156b4),_0xc154c4=_0x5f50dc['get'](f);this['listenTo'](_0x15bd00,'outputTransformation',(_0x4688fc,_0x3c3b70)=>{const _0x478efd=c(_0x54c9bc['createRangeIn'](_0x3c3b70['content']));if(!_0x478efd['length'])return;const _0x1c4b1c=_0xc154c4['getFootnotes'](),_0x335b66=_0x478efd['reduce']((_0x3043f6,_0x5ec621)=>{const _0x3a289f=_0x1c4b1c['find'](_0x4613a5=>_0x4613a5['id']===_0x5ec621);if(_0x3a289f){const _0xac6a4f=_0x2c7ba4['data']['toView'](_0x3a289f['definition'],{'isClipboardPipeline':!0x0}),_0x15a5c0=_0x2c7ba4['data']['htmlProcessor']['toData'](_0xac6a4f);_0x3043f6[_0x3a289f['id']]=_0x15a5c0;}return _0x3043f6;},Object['create'](null));_0x3c3b70['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x335b66));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x11ec4a}=this,{model:_0xc7a6d3,plugins:_0x2e08ae}=_0x11ec4a,{view:_0x56577a}=_0x11ec4a['editing'],_0x2dccb3=_0x2e08ae['get'](_0x2156b4),_0x153cd1=_0x2e08ae['get'](f),_0x395d35=_0x11ec4a['config']['get']('footnotes.multiBlock');let _0x2c2865=null;this['listenTo'](_0x56577a['document'],'clipboardInput',(_0x525860,_0x9f049e)=>{const _0x325910=_0x9f049e['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2c2865=_0x325910?JSON['parse'](_0x325910):null;}),this['listenTo'](_0x2dccb3,'contentInsertion',(_0x1baaaa,_0x1b84f7)=>{const _0x4e5e05=_0x1b84f7['sourceEditorId']===this['editor']['id'];_0x4e5e05&&'drop'===_0x1b84f7['method']||_0xc7a6d3['change'](_0x244da4=>{let _0x3524c6=_0x153cd1['getFootnotesDefinitionsObjectElement']();const _0x595ae5=!!_0x3524c6&&Array['from'](_0xc7a6d3['document']['selection']['getSelectedBlocks']())['includes'](_0x3524c6);if((_0x3524c6&&!_0x595ae5||!_0x3524c6&&!_0x2c2865)&&function(_0x1a4d04,_0x36359e){const _0x5543c8=[];for(const {item:_0x558a12}of _0x1a4d04['createRangeIn'](_0x36359e))_0x558a12['is']('element','footnotesDefinitions')&&_0x5543c8['push'](_0x558a12);for(const _0x5363e4 of _0x5543c8)_0x1a4d04['remove'](_0x5363e4);}(_0x244da4,_0x1b84f7['content']),!_0x2c2865)return;const {selection:_0x2640d9}=_0xc7a6d3['document'],_0xfa9b53=_0x2640d9['getFirstRange']()['root'];_0x3524c6&&!_0x595ae5||(_0x3524c6=function(_0x922f79,_0x39474c){for(const {item:_0x105fed}of _0x922f79['createRangeIn'](_0x39474c))if(_0x105fed['is']('element','footnotesDefinitions'))return _0x105fed;return null;}(_0x244da4,_0x1b84f7['content']),_0x3524c6||=_0x153cd1['_insertEmptyFootnotesDefinitionsContainer'](_0x244da4,_0xfa9b53));const _0x5440f5=Array['from'](_0x2640d9['getRanges']())['flatMap'](c),_0x2e99d6=function(_0xef3150,_0x5a6778,_0xc84b3d){const _0x386430=Object['create'](null);for(const {item:_0x409409}of _0xef3150['createRangeIn'](_0x5a6778))if(_0x409409['is']('element','footnoteRef')){const _0x17fecb=_0x409409['getAttribute']('footnoteId');if(!_0xc84b3d(_0x17fecb))continue;_0x386430[_0x17fecb]||(_0x386430[_0x17fecb]=_0x63e192()),_0xef3150['setAttribute']('footnoteId',_0x386430[_0x17fecb],_0x409409);}return _0x386430;}(_0x244da4,_0x1b84f7['content'],_0x580ab7=>{if(!_0x4e5e05)return!0x0;return!!_0x153cd1['getFootnote'](_0x580ab7)&&!_0x5440f5['includes'](_0x580ab7);});for(const [_0x1c59ed,_0x2b217c]of Object['entries'](_0x2c2865)){const _0x497dcb=_0x2e99d6[_0x1c59ed]||_0x1c59ed,_0x197fff=_0x244da4['createElement']('footnoteDefinition',{'footnoteId':_0x497dcb}),_0x4a3179=_0x11ec4a['data']['htmlProcessor']['toView'](_0x2b217c);let _0x51fcc9;if(_0x395d35)_0x51fcc9=_0x11ec4a['data']['toModel'](_0x4a3179,_0x197fff);else{_0x51fcc9=_0x244da4['createElement']('footnoteInlineContent');const _0x542176=_0x11ec4a['data']['toModel'](_0x4a3179,_0x51fcc9);_0x244da4['insert'](_0x542176,_0x51fcc9);}_0x244da4['append'](_0x51fcc9,_0x197fff),_0x244da4['insert'](_0x197fff,_0x3524c6,'end');}_0x2c2865=null;});});}}function c(_0x37de2f){const _0x96a1e7=new Set();for(const {item:_0x513f66}of _0x37de2f)_0x513f66['is']('element','footnoteRef')&&_0x96a1e7['add'](_0x513f66['getAttribute']('footnoteId'));return Array['from'](_0x96a1e7);}class i extends _0x39419f{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xce5d42}=this,{componentFactory:_0x2d5f8c}=_0xce5d42['ui'];_0x2d5f8c['add']('insertFootnote',x(_0xce5d42,_0x3c8d4e)),_0x2d5f8c['add']('menuBar:insertFootnote',x(_0xce5d42,_0x581d9f)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3e6ba0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfc455;for(const _0x2f4112 in _0x3e6ba0){const _0x418bfd=_0x2f4112,_0x26f5a1=_0x3e6ba0[_0x418bfd];if('footnotesLicenseKeyValid'==_0x26f5a1||'footnotesLicenseKeyInvalid'==_0x26f5a1||'footnotesLicenseKeyExpired'==_0x26f5a1||'footnotesLicenseKeyDomainLimit'==_0x26f5a1||'footnotesLicenseKeyNotAllowed'==_0x26f5a1||'footnotesLicenseKeyEvaluationLimit'==_0x26f5a1||'footnotesLicenseKeyTrialLimit'==_0x26f5a1||'footnotesLicenseKeyUsageLimit'==_0x26f5a1){delete _0x3e6ba0[_0x418bfd],_0xfc455=_0x26f5a1,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xfc455&&_0x3e6ba0['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xfc455&&_0x3e6ba0['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xfc455&&_0x3e6ba0['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xfc455&&_0x3e6ba0['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xfc455&&_0x3e6ba0['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xfc455&&_0x3e6ba0['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xfc455&&_0x3e6ba0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x481185,_0x1578ea){const _0x14f9e4=_0x481185['commands']['get']('insertFootnote');return _0x3f9f7b=>{const {t:t}=_0x3f9f7b,_0x94ed7c=new _0x1578ea(_0x3f9f7b),_0x1dde21=_0x94ed7c instanceof _0x581d9f;return _0x94ed7c['bind']('isEnabled')['to'](_0x14f9e4,'isEnabled'),_0x94ed7c['set']({'label':t(_0x1dde21?'Footnote':'Insert\x20footnote'),'icon':_0x3ea16c,'tooltip':!0x0}),_0x94ed7c['on']('execute',()=>{_0x14f9e4['execute'](),_0x481185['editing']['view']['focus']();}),_0x94ed7c;};}class lt extends _0x39419f{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 _0x44f239{['refresh'](){const {editor:_0x1b481f}=this,_0x1aca08=_0x1b481f['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1aca08,this['value']=_0x1aca08?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x26736b}){const {editor:_0x50674e}=this,_0x2895e2=_0x50674e['plugins']['get'](f),_0x4f7a49=_0x2895e2['getFootnotesDefinitionsObjectElement']();_0x4f7a49&&Q['includes'](_0x26736b)&&_0x50674e['model']['change'](_0x509365=>{_0x509365['setAttribute']('footnotesListStyle',_0x26736b,_0x4f7a49),_0x2895e2['_updateFootnotesCounters'](_0x509365);});}}class C extends _0x44f239{['refresh'](){const {editor:_0x4e0fcd}=this,_0x33bc69=_0x4e0fcd['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x33bc69,this['value']=_0x33bc69?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x6e2eab}){const {editor:_0x20a81f}=this,_0x207c3e=_0x20a81f['plugins']['get'](f),_0x4cb5ec=_0x207c3e['getFootnotesDefinitionsObjectElement']();_0x4cb5ec&&Number['isInteger'](_0x6e2eab)&&_0x20a81f['model']['change'](_0xe4d0c3=>{_0xe4d0c3['setAttribute']('footnotesListStart',_0x6e2eab,_0x4cb5ec),_0x207c3e['_updateFootnotesCounters'](_0xe4d0c3);});}}class P extends _0x39419f{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x46428e}=this;_0x46428e['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x46428e['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x46428e['commands']['add']('footnotesStyle',new S(_0x46428e)),_0x46428e['commands']['add']('footnotesStart',new C(_0x46428e)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x131d3d}=this,{schema:_0x579d21}=_0x131d3d['model'];_0x579d21['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x59f6e3}=this,{conversion:_0x56f7a7,model:_0xe30811}=_0x59f6e3,{schema:_0x1b7cbd}=_0xe30811;_0x56f7a7['for']('upcast')['add'](_0x2b619a=>{_0x2b619a['on']('element:ol',(_0x15d5ce,_0x4fa1a9,_0x459e85)=>{const _0x1340a0=_0x4fa1a9['viewItem'],_0x232463=_0x4fa1a9['modelCursor']?.['parent'];_0x1340a0['hasClass']('footnotes-list')&&_0x232463?.['is']('element','footnotesDefinitions')&&(function(_0xfa0da6,_0x1db64d,_0x2f222c,_0x324303){if(!_0x324303['checkAttribute'](_0x1db64d,'footnotesListStart'))return;let _0x532c50=0x1;const _0x917d44=_0x2f222c['consumable']['consume'](_0xfa0da6,{'attributes':'start'});if(_0x917d44){const _0x405f6b=Number['parseInt'](_0xfa0da6['getAttribute']('start'),0xa);Number['isNaN'](_0x405f6b)||(_0x532c50=_0x405f6b);}!_0x917d44&&_0x1db64d['hasAttribute']('footnotesListStart')||_0x2f222c['writer']['setAttribute']('footnotesListStart',_0x532c50,_0x1db64d);}(_0x1340a0,_0x232463,_0x459e85,_0x1b7cbd),function(_0x1d4b2d,_0x3af091,_0x13df08,_0x4071da){if(!_0x4071da['checkAttribute'](_0x3af091,'footnotesListStyle'))return;let _0x454f0e='decimal',_0x1c458c=!0x1;if(_0x13df08['consumable']['consume'](_0x1d4b2d,{'attributes':'type'})){const _0x539d3b={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x1d4b2d['getAttribute']('type')];_0x539d3b&&(_0x454f0e=_0x539d3b),_0x1c458c=!0x0;}_0x13df08['consumable']['consume'](_0x1d4b2d,{'styles':'list-style-type'})&&(_0x454f0e=function(_0x332db3){switch(_0x332db3){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x332db3;}}(_0x1d4b2d['getStyle']('list-style-type')),_0x1c458c=!0x0),!_0x1c458c&&_0x3af091['hasAttribute']('footnotesListStyle')||_0x13df08['writer']['setAttribute']('footnotesListStyle',_0x454f0e,_0x3af091);}(_0x1340a0,_0x232463,_0x459e85,_0x1b7cbd));});}),_0x56f7a7['for']('downcast')['add'](_0xa11cc9=>{_0xa11cc9['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xcb617d,_0x2f146d,_0x2230be)=>{if(!_0x2230be['consumable']['consume'](_0x2f146d['item'],_0xcb617d['name']))return;const _0x38288c=M(_0x2f146d['item'],_0x2230be['mapper']),{attributeNewValue:_0x42a179}=_0x2f146d;null==_0x42a179||0x1===_0x42a179?_0x2230be['writer']['removeAttribute']('start',_0x38288c):_0x2230be['writer']['setAttribute']('start',String(_0x42a179),_0x38288c);}),_0xa11cc9['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2352a1,_0x325e12,_0x4d821f)=>{if(!_0x4d821f['consumable']['consume'](_0x325e12['item'],_0x2352a1['name']))return;const _0x4f8f04=M(_0x325e12['item'],_0x4d821f['mapper']),{attributeNewValue:_0x314e77}=_0x325e12;_0x314e77&&'decimal'!==_0x314e77?_0x4d821f['writer']['setStyle']('list-style-type',_0x314e77,_0x4f8f04):_0x4d821f['writer']['removeStyle']('list-style-type',_0x4f8f04);});});}['_definePostfixer'](){const {editor:_0x5da180}=this,{model:_0x3d986b}=_0x5da180,_0x22c10a=_0x5da180['plugins']['get'](f),_0x402642=this['_getDefaultListStyle'](),_0x40e35a=this['_getDefaultStartIndex']();_0x3d986b['document']['registerPostFixer'](_0xea5751=>{const _0x3a73ba=_0x3d986b['document']['differ']['getChanges']();let _0x16fbb6=!0x1;for(const _0x303252 of _0x3a73ba){if('insert'!==_0x303252['type']||'$text'===_0x303252['name'])continue;const _0x137785=_0x3d986b['createRangeOn'](_0x303252['position']['nodeAfter']);for(const _0x50a6e4 of _0x137785['getItems']())_0x50a6e4['is']('element','footnotesDefinitions')&&(!_0x50a6e4['hasAttribute']('footnotesListStart')&&_0x3d986b['schema']['checkAttribute'](_0x50a6e4,'footnotesListStart')&&(_0xea5751['setAttribute']('footnotesListStart',_0x40e35a,_0x50a6e4),_0x16fbb6=!0x0),!_0x50a6e4['hasAttribute']('footnotesListStyle')&&_0x3d986b['schema']['checkAttribute'](_0x50a6e4,'footnotesListStyle')&&(_0xea5751['setAttribute']('footnotesListStyle',_0x402642,_0x50a6e4),_0x16fbb6=!0x0));}return _0x16fbb6&&_0x22c10a['_updateFootnotesCounters'](_0xea5751),_0x16fbb6;});}['_defineFormatter'](){const {editor:_0x32a162}=this;_0x32a162['plugins']['get'](f)['setFootnoteFormatter'](_0x3317ab=>this['_formatFootnoteListValue'](_0x3317ab));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2ea635,value:_0xc84e33,digits:_0x3696fa}){const _0x3c01fc=_0x2ea635['getAttribute']('footnotesListStyle'),_0x49b1e1=_0x2ea635['getAttribute']('footnotesListStart'),_0x8d806a=Math['floor'](_0xc84e33)+(_0x49b1e1??0x1)-0x1;switch(_0x3c01fc){case'decimal-leading-zero':return function(_0x321a65,_0x3e1d0c){return String(_0x321a65)['padStart'](_0x3e1d0c,'0');}(_0x8d806a,Math['max'](0x2,_0x3696fa));case'lower-alpha':case'lower-latin':return N(_0x8d806a,!0x1);case'upper-alpha':case'upper-latin':return N(_0x8d806a,!0x0);case'lower-roman':return X(_0x8d806a,!0x1);case'upper-roman':return X(_0x8d806a,!0x0);default:return String(_0x8d806a);}}}function M(_0x5aa3ea,_0x4252b1){const _0x4e5e54=_0x4252b1['toViewElement'](_0x5aa3ea);return Array['from'](_0x4e5e54['getChildren']())['find'](_0x75b105=>_0x75b105['is']('element','ol')&&_0x75b105['hasClass']('footnotes-list'));}function N(_0x21222c,_0x329f59){let _0x1af978='',_0x2761e1=_0x21222c;for(;_0x2761e1>0x0;){const _0x57dbd9=(_0x2761e1-0x1)%0x1a;_0x1af978=String['fromCharCode'](0x61+_0x57dbd9)+_0x1af978,_0x2761e1=Math['floor']((_0x2761e1-0x1)/0x1a);}return _0x329f59?_0x1af978['toUpperCase']():_0x1af978;}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(_0x4ccf81,_0x44aefa){let _0x280262='',_0x405d1a=_0x4ccf81;for(const {value:_0x41c8ae,numeral:_0x364f38}of V)for(;_0x405d1a>=_0x41c8ae;)_0x280262+=_0x364f38,_0x405d1a-=_0x41c8ae;return _0x44aefa?_0x280262:_0x280262['toLowerCase']();}class H extends _0x142d8f{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x14a301();['focusCycler'];constructor(_0x4c034b,{styleButtonViews:_0x1a4848,styleGridAriaLabel:_0x4a0100}){super(_0x4c034b),(this['focusCycler']=new _0x1ef80b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1a4848,_0x4a0100),[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 _0x4f1c45 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4f1c45['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 _0x1f2208=_0x4c63d3=>_0x4c63d3['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1f2208),this['keystrokes']['set']('arrowleft',_0x1f2208),this['keystrokes']['set']('arrowup',_0x1f2208),this['keystrokes']['set']('arrowdown',_0x1f2208);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3190b6,_0x41123c){const _0x40d667=new _0x142d8f(this['locale']);return _0x40d667['children']=_0x40d667['createCollection'](),_0x40d667['children']['addMany'](_0x3190b6),_0x40d667['setTemplate']({'tag':'div','attributes':{'aria-label':_0x41123c,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x40d667['children']}),_0x40d667['children']['delegate']('execute')['to'](this),_0x40d667['focus']=function(){for(const _0x554256 of this['children'])if(_0x554256 instanceof _0x3c8d4e&&_0x554256['isOn'])return void _0x554256['focus']();this['children']['first']['focus']();},_0x40d667['focusTracker']=new ot(),_0x40d667['keystrokes']=new rt(),_0x40d667['render'](),_0x40d667['keystrokes']['listenTo'](_0x40d667['element']),this['children']['add'](_0x40d667),_0x40d667;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x495a5c=this['_createStartIndexPropertyView'](),_0x1b4784=[_0x495a5c],_0x5c8f17=new st(this['locale'],_0x1b4784);return _0x5c8f17['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5c8f17['buttonView']['bind']('isEnabled')['toMany'](_0x1b4784,'isEnabled',(..._0x24216e)=>_0x24216e['some'](_0x555cd9=>_0x555cd9)),_0x5c8f17['buttonView']['on']('change:isEnabled',(_0x26c22,_0x31ebb5,_0x1fc721)=>{_0x1fc721||(_0x5c8f17['isCollapsed']=!0x0);}),this['children']['add'](_0x5c8f17),[_0x495a5c,_0x5c8f17];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e406c=new it(this['locale'],et);return _0x2e406c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e406c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e406c['fieldView']['on']('input',()=>{const _0x1b2b82=_0x2e406c['fieldView']['element'],_0x2c7827=_0x1b2b82['valueAsNumber'];Number['isNaN'](_0x2c7827)?_0x2e406c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1b2b82['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2c7827}):_0x2e406c['errorText']=t(_0x2c7827<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2e406c;}}class j extends _0x39419f{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xdf35ea,_0x3db4cc];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x313376}=this,{componentFactory:_0x4f6ca2}=_0x313376['ui'];_0x313376['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4f6ca2['add']('footnotesStyle',function(_0x213faa){return _0x33b1d9=>{const {t:t}=_0x33b1d9,_0x2208f9=_0x213faa['commands']['get']('footnotesStyle'),_0x347894=_0x51b52e(_0x33b1d9),{buttonView:_0x49e61e}=_0x347894;return _0x347894['class']='ck-footnotes-styles-dropdown',_0x347894['bind']('isEnabled')['to'](_0x2208f9,'isEnabled'),_0x49e61e['set']({'label':t('Footnotes\x20style'),'icon':_0x3ea16c,'tooltip':!0x0}),_0x347894['once']('change:isOpen',()=>{const _0x2469fa=function({editor:_0x5cf544,dropdownView:_0x2b98d8}){const {t:t}=_0x5cf544['locale'],_0x29d4ab=t('Footnotes\x20definitions\x20styles'),_0x366f6c=function(_0x26a9d0){const t=_0x26a9d0['locale']['t'],_0x44ab57=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4d6b30},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4b5cee},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x38ffb6},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1fc4a5},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x34d13d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x24e982}];return _0x44ab57['map'](function(_0x3c7f54){const _0x58d488=_0x3c7f54['locale'];return({label:_0x30da40,icon:_0x4099ce,tooltip:_0x5ec6e0,style:_0x47f3a4})=>{const _0xa12047=_0x3c7f54['commands']['get']('footnotesStyle'),_0x6cc904=new _0x3c8d4e(_0x58d488);return _0x6cc904['set']({'label':_0x30da40,'icon':_0x4099ce,'tooltip':_0x5ec6e0}),_0x6cc904['bind']('isOn')['to'](_0xa12047,'value',_0x26ba33=>_0x26ba33===_0x47f3a4),_0x6cc904['bind']('isEnabled')['to'](_0xa12047,'isEnabled'),_0x6cc904['on']('execute',()=>{_0x3c7f54['execute']('footnotesStyle',{'value':_0x47f3a4}),_0x3c7f54['editing']['view']['focus']();}),_0x6cc904;};}(_0x26a9d0));}(_0x5cf544),_0x4d33f1=new H(_0x5cf544['locale'],{'styleGridAriaLabel':_0x29d4ab,'styleButtonViews':_0x366f6c}),_0xabb155=_0x5cf544['commands']['get']('footnotesStart');return _0x4d33f1['startIndexFieldView']['bind']('isEnabled')['to'](_0xabb155),_0x4d33f1['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xabb155),_0x4d33f1['on']('footnotesListStart',(_0x70c8c7,_0xc7a64f)=>{_0x5cf544['execute']('footnotesStart',{'value':_0xc7a64f['startIndex']});}),_0x4d33f1['delegate']('execute')['to'](_0x2b98d8),_0x4d33f1;}({'editor':_0x213faa,'dropdownView':_0x347894});_0x347894['panelView']['children']['add'](_0x2469fa);}),_0x347894;};}(_0x313376));}['afterInit'](){const {editor:_0x328258}=this,{t:t}=_0x328258['locale'],_0x21c80f=_0x328258['plugins']['get'](_0x3db4cc),{defaultPositions:_0x378fda}=_0x15e81d;_0x21c80f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x328258['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2d2cde=>{let _0x318c8d=_0x2d2cde['getFirstPosition']()?.['parent'];return _0x318c8d?.['is']('$text')&&(_0x318c8d=_0x318c8d['parent']),_0x318c8d?.['is']('element')?_0x318c8d['findAncestor'](J):null;},'positions':[_0x378fda['southArrowNorth'],_0x378fda['southArrowNorthMiddleWest'],_0x378fda['southArrowNorthMiddleEast'],_0x378fda['southArrowNorthWest'],_0x378fda['southArrowNorthEast'],_0x378fda['northArrowSouth'],_0x378fda['northArrowSouthMiddleWest'],_0x378fda['northArrowSouthMiddleEast'],_0x378fda['northArrowSouthWest'],_0x378fda['northArrowSouthEast'],_0x378fda['viewportStickyNorth']]});}}class ft extends _0x39419f{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-20251207.0",
3
+ "version": "0.0.0-nightly-20251208.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-20251207.0",
27
- "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251207.0",
28
- "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251207.0",
29
- "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251207.0",
30
- "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251207.0",
31
- "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251207.0",
32
- "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251207.0",
33
- "ckeditor5": "0.0.0-nightly-20251207.0"
26
+ "@ckeditor/ckeditor5-core": "0.0.0-nightly-20251208.0",
27
+ "@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251208.0",
28
+ "@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251208.0",
29
+ "@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251208.0",
30
+ "@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251208.0",
31
+ "@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251208.0",
32
+ "@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251208.0",
33
+ "ckeditor5": "0.0.0-nightly-20251208.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
- const _0x3d0142=_0x2534;(function(_0xbe9a90,_0x57504f){const _0x4ae135=_0x2534,_0x1691b3=_0xbe9a90();while(!![]){try{const _0x165f42=-parseInt(_0x4ae135(0x166))/0x1*(parseInt(_0x4ae135(0x16b))/0x2)+parseInt(_0x4ae135(0x171))/0x3*(-parseInt(_0x4ae135(0x17f))/0x4)+parseInt(_0x4ae135(0x176))/0x5*(-parseInt(_0x4ae135(0x175))/0x6)+parseInt(_0x4ae135(0x173))/0x7*(parseInt(_0x4ae135(0x16a))/0x8)+-parseInt(_0x4ae135(0x16d))/0x9+parseInt(_0x4ae135(0x170))/0xa*(-parseInt(_0x4ae135(0x178))/0xb)+parseInt(_0x4ae135(0x162))/0xc;if(_0x165f42===_0x57504f)break;else _0x1691b3['push'](_0x1691b3['shift']());}catch(_0x1e2f93){_0x1691b3['push'](_0x1691b3['shift']());}}}(_0x69d7,0x81745));function _0x69d7(){const _0x542275=['6470evoyOh','length','187ohXzIY','plugins','selection','checkChild','change','document','isEnabled','8jclMkm','isBlock','end','insert-footnote-command-executed-with-invalid-id','editor','getFirstRange','FootnotesEditing','createElement','_getPositionToInsertFootnote','execute','35564484uljELk','getItems','refresh','string','7kNXULA','_moveSelectionToFootnoteDefinition','get','isObject','136936nwDbiP','262394OkeVjH','insertObject','1815057OVWOCu','model','footnoteRef','51010nyYkgB','1584813WpKxkM','footnoteId','77xUmkgm','test','1662QhCovm'];_0x69d7=function(){return _0x542275;};return _0x69d7();}function _0x2534(_0x2bfecf,_0x2d898a){const _0x69d735=_0x69d7();return _0x2534=function(_0x253470,_0x512e8b){_0x253470=_0x253470-0x159;let _0xc30c61=_0x69d735[_0x253470];return _0xc30c61;},_0x2534(_0x2bfecf,_0x2d898a);}import{logWarning as _0x54b849,uid as _0x1acd80}from'ckeditor5/src/utils.js';import{Command as _0x46b0d3}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x46b0d3{[_0x3d0142(0x164)](){const _0x39b479=_0x3d0142,_0x3b1ffa=this[_0x39b479(0x15c)][_0x39b479(0x16e)][_0x39b479(0x17d)][_0x39b479(0x17a)],_0x2f0dad=this[_0x39b479(0x160)](_0x3b1ffa);this[_0x39b479(0x17e)]=!!_0x2f0dad;}[_0x3d0142(0x161)](_0x5b4e8e){const _0x1e6e67=_0x3d0142,{editor:_0x13c958}=this,{model:_0x4e83be}=_0x13c958,{selection:_0x279e45}=_0x4e83be[_0x1e6e67(0x17d)],_0x5db050=this[_0x1e6e67(0x160)](_0x279e45);if(!_0x5db050)return;const _0x2c95f4=_0x13c958[_0x1e6e67(0x179)][_0x1e6e67(0x168)](_0x1e6e67(0x15e)),_0x473e73=_0x5b4e8e?.[_0x1e6e67(0x172)]??_0x1acd80();!function(_0x58d091){const _0x33b6ed=_0x1e6e67;return _0x33b6ed(0x165)==typeof _0x58d091&&_0x58d091[_0x33b6ed(0x177)]>0x0&&!/\s/[_0x33b6ed(0x174)](_0x58d091)&&!/^\d/[_0x33b6ed(0x174)](_0x58d091);}(_0x473e73)?_0x54b849(_0x1e6e67(0x15b)):(_0x4e83be[_0x1e6e67(0x17c)](_0x341f69=>{const _0x9350dc=_0x1e6e67,_0x364cc=_0x341f69[_0x9350dc(0x15f)](_0x9350dc(0x16f),{'footnoteId':_0x473e73});_0x4e83be[_0x9350dc(0x16c)](_0x364cc,_0x5db050,null);}),_0x2c95f4[_0x1e6e67(0x167)](_0x473e73));}[_0x3d0142(0x160)](_0x1ed9d7){const _0xd884f6=_0x3d0142,{model:_0x355d73}=this[_0xd884f6(0x15c)],{schema:_0x3057c0}=_0x355d73,_0x518d52=_0x1ed9d7[_0xd884f6(0x15d)]();for(const _0xe7e289 of _0x518d52[_0xd884f6(0x163)]())if(_0x3057c0[_0xd884f6(0x159)](_0xe7e289)||_0x3057c0[_0xd884f6(0x169)](_0xe7e289))return null;const _0x499c60=_0x518d52[_0xd884f6(0x15a)];return _0x3057c0[_0xd884f6(0x17b)](_0x499c60,_0xd884f6(0x16f))?_0x499c60:null;}}
23
+ const _0xf5dc5f=_0x5e67;function _0x2f2d(){const _0x44e252=['string','261zjspjd','test','document','isBlock','2679477QDMVLR','isEnabled','FootnotesEditing','get','selection','createElement','change','getItems','plugins','8xpBGyU','3498486bHniUK','checkChild','157760XAwNDX','footnoteId','20302ZfreIL','end','refresh','length','isObject','footnoteRef','execute','editor','_moveSelectionToFootnoteDefinition','insert-footnote-command-executed-with-invalid-id','model','7642850dmXZzR','_getPositionToInsertFootnote','4366320QIUbre','43RCbvHf','insertObject','getFirstRange','1745080vRoZnU'];_0x2f2d=function(){return _0x44e252;};return _0x2f2d();}(function(_0x2fed8d,_0x4b71e3){const _0x3eba0d=_0x5e67,_0x442ea5=_0x2fed8d();while(!![]){try{const _0x311747=parseInt(_0x3eba0d(0x9c))/0x1*(parseInt(_0x3eba0d(0x8e))/0x2)+-parseInt(_0x3eba0d(0x80))/0x3+parseInt(_0x3eba0d(0x89))/0x4*(parseInt(_0x3eba0d(0x7a))/0x5)+-parseInt(_0x3eba0d(0x8a))/0x6+parseInt(_0x3eba0d(0x9b))/0x7+-parseInt(_0x3eba0d(0x8c))/0x8*(parseInt(_0x3eba0d(0x7c))/0x9)+parseInt(_0x3eba0d(0x99))/0xa;if(_0x311747===_0x4b71e3)break;else _0x442ea5['push'](_0x442ea5['shift']());}catch(_0xf50828){_0x442ea5['push'](_0x442ea5['shift']());}}}(_0x2f2d,0x73d52));import{logWarning as _0x226341,uid as _0x429896}from'ckeditor5/src/utils.js';function _0x5e67(_0x44a86e,_0x14f8e2){const _0x2f2d46=_0x2f2d();return _0x5e67=function(_0x5e67d7,_0x1cfe44){_0x5e67d7=_0x5e67d7-0x79;let _0x2c4c7a=_0x2f2d46[_0x5e67d7];return _0x2c4c7a;},_0x5e67(_0x44a86e,_0x14f8e2);}import{Command as _0x3c9d0c}from'ckeditor5/src/core.js';export class InsertFootnoteCommand extends _0x3c9d0c{[_0xf5dc5f(0x90)](){const _0x3d03b1=_0xf5dc5f,_0x1dde39=this[_0x3d03b1(0x95)][_0x3d03b1(0x98)][_0x3d03b1(0x7e)][_0x3d03b1(0x84)],_0x55de65=this[_0x3d03b1(0x9a)](_0x1dde39);this[_0x3d03b1(0x81)]=!!_0x55de65;}[_0xf5dc5f(0x94)](_0x6455b3){const _0x1a12f2=_0xf5dc5f,{editor:_0xedbf39}=this,{model:_0x3de395}=_0xedbf39,{selection:_0xf179a}=_0x3de395[_0x1a12f2(0x7e)],_0x1ec271=this[_0x1a12f2(0x9a)](_0xf179a);if(!_0x1ec271)return;const _0x443772=_0xedbf39[_0x1a12f2(0x88)][_0x1a12f2(0x83)](_0x1a12f2(0x82)),_0x4c2ff3=_0x6455b3?.[_0x1a12f2(0x8d)]??_0x429896();!function(_0x1e16a9){const _0x854b69=_0x1a12f2;return _0x854b69(0x7b)==typeof _0x1e16a9&&_0x1e16a9[_0x854b69(0x91)]>0x0&&!/\s/[_0x854b69(0x7d)](_0x1e16a9)&&!/^\d/[_0x854b69(0x7d)](_0x1e16a9);}(_0x4c2ff3)?_0x226341(_0x1a12f2(0x97)):(_0x3de395[_0x1a12f2(0x86)](_0x50ef50=>{const _0x385dc6=_0x1a12f2,_0x1ff9e9=_0x50ef50[_0x385dc6(0x85)](_0x385dc6(0x93),{'footnoteId':_0x4c2ff3});_0x3de395[_0x385dc6(0x9d)](_0x1ff9e9,_0x1ec271,null);}),_0x443772[_0x1a12f2(0x96)](_0x4c2ff3));}[_0xf5dc5f(0x9a)](_0x46a854){const _0x4cce26=_0xf5dc5f,{model:_0x3dc323}=this[_0x4cce26(0x95)],{schema:_0x178a90}=_0x3dc323,_0x27f067=_0x46a854[_0x4cce26(0x79)]();for(const _0x492b48 of _0x27f067[_0x4cce26(0x87)]())if(_0x178a90[_0x4cce26(0x7f)](_0x492b48)||_0x178a90[_0x4cce26(0x92)](_0x492b48))return null;const _0x467739=_0x27f067[_0x4cce26(0x8f)];return _0x178a90[_0x4cce26(0x8b)](_0x467739,_0x4cce26(0x93))?_0x467739:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x371732}from'ckeditor5/src/core.js';import{isWidget as _0x220f13,toWidget as _0x5d6684,toWidgetEditable as _0x26a5b4}from'ckeditor5/src/widget.js';import{uid as _0x17602e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3099e7,ClickObserver as _0x3e4685}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1503c2}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x199eb4}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x371732{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1503c2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x478be4}=this;_0x478be4['config']['define']('footnotes.multiBlock',!0x0),_0x478be4['commands']['add']('insertFootnote',new _0x199eb4(_0x478be4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3f2a0){const _0x4a9e9f=_0xdeb77d([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]),_0x59e799=0x47a28506,_0x5d49ab=0x47a5fe3e^_0x59e799,_0x453303=window[_0xdeb77d([0x44,0x61,0x74,0x65])][_0xdeb77d([0x6e,0x6f,0x77])](),_0x2a9f11=_0x3f2a0[_0xdeb77d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5673a2=new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50fdb2=>{_0x2a9f11[_0xdeb77d([0x6f,0x6e,0x63,0x65])](_0xdeb77d([0x72,0x65,0x61,0x64,0x79]),_0x50fdb2);}),_0x36d94e={[_0xdeb77d([0x6b,0x74,0x79])]:_0xdeb77d([0x45,0x43]),[_0xdeb77d([0x75,0x73,0x65])]:_0xdeb77d([0x73,0x69,0x67]),[_0xdeb77d([0x63,0x72,0x76])]:_0xdeb77d([0x50,0x2d,0x32,0x35,0x36]),[_0xdeb77d([0x78])]:_0xdeb77d([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]),[_0xdeb77d([0x79])]:_0xdeb77d([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]),[_0xdeb77d([0x61,0x6c,0x67])]:_0xdeb77d([0x45,0x53,0x32,0x35,0x36])},_0x2bb0c3=_0x2a9f11[_0xdeb77d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xdeb77d([0x67,0x65,0x74])](_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e27dc(){let _0x4e5fa4,_0x1a38ba=null,_0x5ebd18=null;try{if(_0x2bb0c3==_0xdeb77d([0x47,0x50,0x4c]))return _0xdeb77d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4e5fa4=_0x53ae47(),!_0x4e5fa4)return _0xdeb77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4e5fa4[_0xdeb77d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5ebd18=_0x30bfd8(_0x4e5fa4[_0xdeb77d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4e5fa4[_0xdeb77d([0x6a,0x74,0x69])])),await _0x52faac()?_0x43b231()?_0x55020e()?_0xdeb77d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4ab054()?(_0x4e5fa4[_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdeb77d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1a38ba=_0x357cba(_0xdeb77d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4e5fa4[_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdeb77d([0x74,0x72,0x69,0x61,0x6c])&&(_0x1a38ba=_0x357cba(_0xdeb77d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x227f9b()):_0xdeb77d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xdeb77d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xdeb77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xdeb77d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x55020e(){const _0x12fa99=[_0xdeb77d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xdeb77d([0x74,0x72,0x69,0x61,0x6c])][_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4e5fa4[_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x453303/0x3e8:0xe10*_0x5d49ab;return _0x4e5fa4[_0xdeb77d([0x65,0x78,0x70])]<_0x12fa99;}function _0x43b231(){const _0x9ca2a=_0x4e5fa4[_0xdeb77d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x9ca2a&&(!!_0x9ca2a[_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdeb77d([0x2a]))||!!_0x9ca2a[_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdeb77d([0x46,0x4f,0x4f])));}function _0x4ab054(){const _0x32b74e=_0x4e5fa4[_0xdeb77d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x32b74e||0x0==_0x32b74e[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1ece97}=new URL(window[_0xdeb77d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x32b74e[_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ece97))return!0x0;const _0xa665e7=_0x1ece97[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])](_0xdeb77d([0x2e]));return _0x32b74e[_0xdeb77d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x116ad1=>_0x116ad1[_0xdeb77d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdeb77d([0x2a])))[_0xdeb77d([0x6d,0x61,0x70])](_0x2ffd4a=>_0x2ffd4a[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])](_0xdeb77d([0x2e])))[_0xdeb77d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x350eba=>_0x350eba[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xa665e7[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdeb77d([0x6d,0x61,0x70])](_0x13c7ea=>Array(_0xa665e7[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13c7ea[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdeb77d([0x66,0x69,0x6c,0x6c])](_0x13c7ea[0x0]===_0xdeb77d([0x2a])?_0xdeb77d([0x2a]):'')[_0xdeb77d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13c7ea))[_0xdeb77d([0x73,0x6f,0x6d,0x65])](_0x2f7a74=>_0xa665e7[_0xdeb77d([0x65,0x76,0x65,0x72,0x79])]((_0x399a9b,_0x19e47a)=>_0x2f7a74[_0x19e47a]===_0x399a9b||_0x2f7a74[_0x19e47a]===_0xdeb77d([0x2a])));}function _0x227f9b(){return _0x1a38ba&&_0x5ebd18?new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x50dda1,_0xd70c39)=>{_0x1a38ba[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x50dda1,_0xd70c39),_0x5ebd18[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x1e579e=>{_0x1e579e!=_0xdeb77d([0x56,0x61,0x6c,0x69,0x64])&&_0x50dda1(_0x1e579e);},_0xd70c39);}):_0x1a38ba||_0x5ebd18||_0xdeb77d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x30bfd8(_0x3beea5,_0x3efeac){return new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27b581=>{if(_0x1dc39f())return _0x27b581(_0xdeb77d([0x56,0x61,0x6c,0x69,0x64]));_0x33c9f0(),_0x2a9f11[_0xdeb77d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xdeb77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5db929=!0x1;const _0x146633=_0x17602e();function _0x177d4a(_0x4b6f55){return!!_0x4b6f55&&(typeof _0x4b6f55===_0xdeb77d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x4b6f55===_0xdeb77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x4b6f55[_0xdeb77d([0x74,0x68,0x65,0x6e])]===_0xdeb77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x4b6f55[_0xdeb77d([0x63,0x61,0x74,0x63,0x68])]===_0xdeb77d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3de440(_0x13831a){_0x37a49f(_0x13831a)[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x5b8c0e=>{if(!_0x5b8c0e||_0x5b8c0e[_0xdeb77d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xdeb77d([0x6f,0x6b]))return _0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x23a70a(_0x15a0e5(_0x146633+_0x3efeac))!=_0x5b8c0e[_0xdeb77d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xdeb77d([0x56,0x61,0x6c,0x69,0x64]);})[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x267cc9=>(_0x61fde8(),_0x267cc9),()=>{const _0x4bfd47=_0x46b11a();return null==_0x4bfd47?(_0x61fde8(),_0xdeb77d([0x56,0x61,0x6c,0x69,0x64])):_0xdeb77d(_0x453303-_0x4bfd47>(0x63ae0106^_0x59e799)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x27b581)[_0xdeb77d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27b581(_0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x202762=0x47946b86^_0x59e799;function _0x61fde8(){const _0xa8809d=_0xdeb77d([0x6c,0x6c,0x63,0x74,0x2d])+_0x23a70a(_0x15a0e5(_0x3beea5)),_0x286181=_0xd82399(_0x23a70a(window[_0xdeb77d([0x4d,0x61,0x74,0x68])][_0xdeb77d([0x63,0x65,0x69,0x6c])](_0x453303/_0x202762)));window[_0xdeb77d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdeb77d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa8809d,_0x286181);}function _0x46b11a(){const _0x4a29e6=_0xdeb77d([0x6c,0x6c,0x63,0x74,0x2d])+_0x23a70a(_0x15a0e5(_0x3beea5)),_0x22ab3c=window[_0xdeb77d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdeb77d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a29e6);return _0x22ab3c?window[_0xdeb77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xd82399(_0x22ab3c),0x10)*_0x202762:null;}function _0x37a49f(_0x313c0e){return new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2841f5,_0x158e5a)=>{_0x313c0e[_0xdeb77d([0x74,0x68,0x65,0x6e])](_0x2841f5,_0x158e5a),window[_0xdeb77d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x158e5a,0x47a351c6^_0x59e799);});}}_0x2a9f11[_0xdeb77d([0x6f,0x6e])](_0xdeb77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21437b,_0x1a6650)=>{if(_0x1a6650[0x0]!=_0x3beea5)return _0x27b581(_0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a6650[0x1]={..._0x1a6650[0x1],[_0xdeb77d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x146633};},{[_0xdeb77d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdeb77d([0x68,0x69,0x67,0x68])}),_0x2a9f11[_0xdeb77d([0x6f,0x6e])](_0xdeb77d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5ac48c=>{_0x177d4a(_0x5ac48c[_0xdeb77d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5db929=!0x0,_0x3de440(_0x5ac48c[_0xdeb77d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xdeb77d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdeb77d([0x6c,0x6f,0x77])}),_0x5673a2[_0xdeb77d([0x74,0x68,0x65,0x6e])](()=>{_0x5db929||_0x27b581(_0xdeb77d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1dc39f(){return _0x2a9f11[_0xdeb77d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdeb77d([0x76,0x69,0x65,0x77])][_0xdeb77d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xdeb77d([0x61,0x75,0x74,0x6f]);}function _0x33c9f0(){_0x2a9f11[_0xdeb77d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdeb77d([0x76,0x69,0x65,0x77])][_0xdeb77d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xdeb77d([0x61,0x75,0x74,0x6f]);}}function _0x357cba(_0x263092){const _0x4eb6ba=[new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x150c2b=>setTimeout(_0x150c2b,0x47abbbca^_0x59e799)),_0x5673a2[_0xdeb77d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cd506=>{let _0x1a829d=0x0;_0x2a9f11[_0xdeb77d([0x6d,0x6f,0x64,0x65,0x6c])][_0xdeb77d([0x6f,0x6e])](_0xdeb77d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3c9d4a,_0x101a30)=>{_0x101a30[0x0][_0xdeb77d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1a829d++,_0x1a829d==(0x47a284fe^_0x59e799)&&(_0x1cd506(),_0x3c9d4a[_0xdeb77d([0x6f,0x66,0x66])]());});}))];return window[_0xdeb77d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xdeb77d([0x72,0x61,0x63,0x65])](_0x4eb6ba)[_0xdeb77d([0x74,0x68,0x65,0x6e])](()=>_0x263092);}async function _0x575eff(){await _0x5673a2,_0x2a9f11[_0xdeb77d([0x6d,0x6f,0x64,0x65,0x6c])][_0xdeb77d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x23bd30,_0x2a9f11[_0xdeb77d([0x6d,0x6f,0x64,0x65,0x6c])][_0xdeb77d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x23bd30,_0x2a9f11[_0xdeb77d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xdeb77d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xe2b225(_0x427471){const _0xf1b225=_0x3a42fb();_0x2a9f11[_0xf1b225]=_0xdeb77d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x427471,_0x427471!=_0xdeb77d([0x56,0x61,0x6c,0x69,0x64])&&_0x575eff();}function _0x3a42fb(){const _0x115392=window[_0xdeb77d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xdeb77d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xdeb77d([0x6e,0x6f,0x77])]())[_0xdeb77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xdeb77d([0x2e]),'');let _0xf46e78=_0xdeb77d([0x75]);for(let _0x3235b4=0x0;_0x3235b4<_0x115392[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3235b4+=0x2){let _0x574d0b=window[_0xdeb77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x115392[_0xdeb77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3235b4,_0x3235b4+0x2));_0x574d0b>=_0x4a9e9f[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x574d0b-=_0x4a9e9f[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf46e78+=_0x4a9e9f[_0x574d0b];}return _0xf46e78;}function _0x53ae47(){const _0x3147dd=_0x2bb0c3[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])](_0xdeb77d([0x2e]));if(0x3!=_0x3147dd[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x439442(_0x3147dd[0x1]);function _0x439442(_0xde3524){const _0x311186=_0x160148(_0xde3524);return _0x311186&&_0x401da4()?_0x311186:null;function _0x401da4(){const _0x164b44=_0x311186[_0xdeb77d([0x6a,0x74,0x69])],_0xe56424=window[_0xdeb77d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x164b44[_0xdeb77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x164b44[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xcd0052={..._0x311186,[_0xdeb77d([0x6a,0x74,0x69])]:_0x164b44[_0xdeb77d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x164b44[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xcd0052[_0xdeb77d([0x76,0x63])],_0x15a0e5(_0xcd0052)==_0xe56424;}}}async function _0x52faac(){let _0x4d63c1=!0x0;try{const _0xea6b02=_0x2bb0c3[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])](_0xdeb77d([0x2e])),[_0x52ab6d,_0xce3270,_0x2a80a1]=_0xea6b02;return _0x3fa85b(_0x52ab6d),await _0x2f103b(_0x52ab6d,_0xce3270,_0x2a80a1),_0x4d63c1;}catch{return!0x1;}function _0x3fa85b(_0x19f473){const _0x4bf838=_0x160148(_0x19f473);_0x4bf838&&_0x4bf838[_0xdeb77d([0x61,0x6c,0x67])]==_0xdeb77d([0x45,0x53,0x32,0x35,0x36])||(_0x4d63c1=!0x1);}async function _0x2f103b(_0x276b57,_0x32b496,_0x489c74){const _0x3bf606=window[_0xdeb77d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xdeb77d([0x66,0x72,0x6f,0x6d])](_0x5a7f50(_0x489c74),_0x1027d6=>_0x1027d6[_0xdeb77d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x57942a=new window[(_0xdeb77d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xdeb77d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x276b57+_0xdeb77d([0x2e])+_0x32b496),_0x223770=window[_0xdeb77d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xdeb77d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x223770)return;const _0x186101=await _0x223770[_0xdeb77d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xdeb77d([0x6a,0x77,0x6b]),_0x36d94e,{[_0xdeb77d([0x6e,0x61,0x6d,0x65])]:_0xdeb77d([0x45,0x43,0x44,0x53,0x41]),[_0xdeb77d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xdeb77d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xdeb77d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x223770[_0xdeb77d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xdeb77d([0x6e,0x61,0x6d,0x65])]:_0xdeb77d([0x45,0x43,0x44,0x53,0x41]),[_0xdeb77d([0x68,0x61,0x73,0x68])]:{[_0xdeb77d([0x6e,0x61,0x6d,0x65])]:_0xdeb77d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x186101,_0x3bf606,_0x57942a)||(_0x4d63c1=!0x1);}}function _0x160148(_0xa94542){return _0xa94542[_0xdeb77d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xdeb77d([0x65,0x79]))?JSON[_0xdeb77d([0x70,0x61,0x72,0x73,0x65])](_0x5a7f50(_0xa94542)):null;}function _0x5a7f50(_0x364f65){return window[_0xdeb77d([0x61,0x74,0x6f,0x62])](_0x364f65[_0xdeb77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xdeb77d([0x2b]))[_0xdeb77d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xdeb77d([0x2f])));}function _0x15a0e5(_0x4f616c){let _0x5a0708=0x1505;function _0xb30c70(_0x444a48){for(let _0x54f07f=0x0;_0x54f07f<_0x444a48[_0xdeb77d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x54f07f++){const _0x1bbc8c=_0x444a48[_0xdeb77d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x54f07f);_0x5a0708=(_0x5a0708<<0x5)+_0x5a0708+_0x1bbc8c,_0x5a0708&=_0x5a0708;}}function _0x1a0868(_0x5039da){Array[_0xdeb77d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5039da)?_0x5039da[_0xdeb77d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a0868):_0x5039da&&typeof _0x5039da==_0xdeb77d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xdeb77d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5039da)[_0xdeb77d([0x73,0x6f,0x72,0x74])]()[_0xdeb77d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36eb62,_0x1d68ca])=>{_0xb30c70(_0x36eb62),_0x1a0868(_0x1d68ca);}):_0xb30c70(window[_0xdeb77d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5039da));}return _0x1a0868(_0x4f616c),_0x5a0708>>>0x0;}function _0x23a70a(_0x15bb96){return _0x15bb96[_0xdeb77d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xdeb77d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xdeb77d([0x30]));}function _0xd82399(_0x3e5bb2){return _0x3e5bb2[_0xdeb77d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xdeb77d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xdeb77d([0x6a,0x6f,0x69,0x6e])]('');}function _0x23bd30(){}function _0xdeb77d(_0x8ee6b7){return _0x8ee6b7['map'](_0x3ccdab=>String['fromCharCode'](_0x3ccdab))['join']('');}_0xe2b225(await _0x4e27dc());}(this);}['_moveSelectionToFootnoteDefinition'](_0xd167dc){const {plugins:_0x5b65ea,editing:_0x1448fa,model:_0x11e364}=this['editor'],_0x2433e3=_0x5b65ea['get'](_0x1503c2)['getFootnote'](_0xd167dc);return!!_0x2433e3&&(_0x11e364['change'](_0x3007b5=>{_0x3007b5['setSelection'](_0x3007b5['createPositionAt'](_0x2433e3['definition'],'end'));}),_0x1448fa['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5a44d6){const {plugins:_0x4d9f41,editing:_0x5a07e1,model:_0x30c114}=this['editor'],_0x30fa7e=_0x4d9f41['get'](_0x1503c2)['getFootnote'](_0x5a44d6);return!!_0x30fa7e&&(_0x30c114['change'](_0x10c7ec=>{_0x10c7ec['setSelection'](_0x30fa7e['reference'],'on');}),_0x5a07e1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x261194}=this['editor']['model'],_0x337a27=this['editor']['config']['get']('footnotes.multiBlock');_0x261194['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x261194['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x261194['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x337a27?_0x261194['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x261194['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x261194['addChildCheck'](_0x2f7e7c=>{for(const _0x3eccf5 of _0x2f7e7c)if('footnoteDefinition'===_0x3eccf5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x54571a}=this,{conversion:_0x1f76e8,editing:_0x2e6ad2}=_0x54571a,{t:t}=_0x54571a['locale'];_0x1f76e8['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xb4ae27,{writer:_0x1556b5,consumable:_0x46b14f})=>{const _0xb61351=_0xb4ae27['getChild'](0x0);if(!_0xb61351||!_0xb61351['is']('element','a'))return null;const _0x3b2f68=_0xb61351['getAttribute']('href')||'';if(!_0x3b2f68['startsWith']('#'))return null;const _0x10280a=_0x3b2f68['replace'](/^#/,'');if(!_0x10280a)return null;_0x46b14f['consume'](_0xb61351,{'name':!0x0,'attributes':['href']});for(const {item:_0x5b7ef9}of _0x2e6ad2['view']['createRangeIn'](_0xb61351))_0x5b7ef9['is']('$textProxy')?_0x46b14f['consume'](_0x5b7ef9['textNode'],{'name':!0x0}):_0x5b7ef9['is']('element')&&_0x46b14f['consume'](_0x5b7ef9,{'name':!0x0});return _0x1556b5['createElement']('footnoteRef',{'footnoteId':_0x10280a});}}),_0x1f76e8['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19bfd5,{writer:_0x2edf10})=>D(_0x19bfd5,_0x2edf10)}),_0x1f76e8['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x110828,{writer:_0xfb4f06})=>{const _0x1accfc=_0x110828['getAttribute']('footnoteCounter');return _0x5d6684(D(_0x110828,_0xfb4f06),_0xfb4f06,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1accfc)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5615c8}=this,{t:t}=_0x5615c8['locale'],{conversion:_0x280239}=_0x5615c8;_0x280239['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x280239['for']('upcast')['add'](_0x5d6b04=>{_0x5d6b04['on']('element:ol',(_0x365ebc,_0x68ceb9,_0x34cb85)=>{const _0x3308ab=_0x68ceb9['viewItem'];if(!_0x3308ab['hasClass']('footnotes-list')||!_0x68ceb9['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x34cb85['consumable']['consume'](_0x3308ab,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x19c106,modelCursor:_0x20fc97}=_0x34cb85['convertChildren'](_0x68ceb9['viewItem'],_0x68ceb9['modelCursor']);_0x68ceb9['modelRange']=_0x19c106,_0x68ceb9['modelCursor']=_0x20fc97;}),_0x5d6b04['on']('element:hr',(_0x1c3651,_0x1980ae,_0x538fd9)=>{const _0x5df800=_0x1980ae['viewItem'];_0x5df800['hasClass']('footnotes-divider')&&_0x1980ae['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x538fd9['consumable']['consume'](_0x5df800,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x280239['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x49640b,{writer:_0x18444a})=>v(_0x18444a)}),_0x280239['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5dfab4,{writer:_0x2ef375})=>{const _0x52186d=v(_0x2ef375,{'data-footnotes-list-label':t('Footnotes')}),_0x342057=_0x5d6684(_0x52186d,_0x2ef375,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2ef375['setCustomProperty']('footnotesDefinitions',!0x0,_0x342057),_0x342057;}});}['_defineDefinitionConverters'](){const {editor:_0x5f08b5}=this,{conversion:_0x4b75fb,locale:_0xee52eb}=_0x5f08b5,_0x393610=_0x5f08b5['config']['get']('footnotes.multiBlock');_0x4b75fb['for']('upcast')['add'](_0x518185=>{_0x518185['on']('element:li',(_0x305869,_0x3bdebe,_0x495895)=>{const _0x566bbc=_0x3bdebe['viewItem'];if(!_0x566bbc['hasClass']('footnote-definition')||!_0x566bbc['getAttribute']('id'))return;const _0x243bb6=_0x566bbc['parent'];if(!_0x243bb6['is']('element','ol')||!_0x243bb6['hasClass']('footnotes-list'))return;if(!_0x495895['consumable']['test'](_0x566bbc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x56fbe1=_0x495895['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x566bbc['getAttribute']('id')});if(!_0x495895['safeInsert'](_0x56fbe1,_0x3bdebe['modelCursor']))return;_0x495895['consumable']['consume'](_0x566bbc,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x12bf30=Array['from'](_0x566bbc['getChildren']())['find'](_0x401a70=>_0x401a70['is']('element')&&_0x401a70['hasClass']('footnote-content'));for(const _0xfa1f6e of _0x566bbc['getChildren']())_0xfa1f6e['is']('element')&&(_0x495895['consumable']['consume'](_0xfa1f6e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x495895['consumable']['consume'](_0xfa1f6e,{'name':!0x0,'classes':'footnote-content'}));if(_0x12bf30){if(_0x393610)_0x495895['convertChildren'](_0x12bf30,_0x56fbe1);else{const _0x5096b9=_0x495895['writer']['createElement']('footnoteInlineContent');_0x495895['writer']['insert'](_0x5096b9,_0x56fbe1),_0x495895['convertChildren'](_0x12bf30,_0x5096b9);}}_0x495895['updateConversionResult'](_0x56fbe1,_0x3bdebe);});}),_0x4b75fb['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x45f6b8,{writer:_0xc49277})=>b(_0x45f6b8,_0xc49277,_0xee52eb,{'dataPipeline':!0x0})}),_0x4b75fb['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2c7c25,{writer:_0x10fb48})=>b(_0x2c7c25,_0x10fb48,_0xee52eb)});}['_defineBogusParagraphConverters'](){const {editor:_0x58bab2}=this,{conversion:_0x58d3cd}=_0x58bab2;_0x58bab2['config']['get']('footnotes.multiBlock')?(_0x58d3cd['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x58d3cd['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x58bab2['model']['document'],'change:data',()=>{!function(_0x57a339,_0x3d8b64){const _0x4594f2=_0x57a339['document']['differ'],_0x57a4c8=new Set();for(const _0x4846cf of _0x4594f2['getChanges']()){const _0xa002a2='attribute'==_0x4846cf['type']?_0x4846cf['range']['start']['parent']:_0x4846cf['position']['parent'];_0xa002a2['is']('element','footnoteDefinition')&&_0x57a4c8['add'](_0xa002a2);}for(const _0x1317f8 of _0x57a4c8['values']()){const _0x3c46ae=Array['from'](_0x1317f8['getChildren']())['filter'](_0x391888=>g(_0x391888,_0x3d8b64['mapper']));for(const _0x50ebcd of _0x3c46ae)_0x3d8b64['reconvertItem'](_0x50ebcd);}}(_0x58bab2['model'],_0x58bab2['editing']);})):(_0x58d3cd['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x58d3cd['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3f170a,{writer:_0x56de50})=>{const _0x17df10=_0x56de50['createContainerElement']('span');return _0x56de50['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x17df10),_0x17df10;}}));}['_defineKeyboardHandlers'](){const {editor:_0x492c50}=this,{editing:_0x5c84ab,t:t}=_0x492c50,_0x2c8027=_0x492c50['model']['document']['selection'];_0x492c50['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x492c50['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5c84ab['view']['document'],'enter',(_0x4d5f39,_0x188bfe)=>{const _0x1f7274=function(_0x1ad5c7){const _0x5e8c5f=_0x1ad5c7['getSelectedElement']();if(_0x5e8c5f?.['is']('element','footnoteRef'))return _0x5e8c5f;return null;}(_0x2c8027);if(_0x1f7274){const _0x1366ad=_0x1f7274['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1366ad),_0x188bfe['preventDefault'](),_0x4d5f39['stop']();}},{'context':_0x220f13});}['_defineClickHandlers'](){const {editor:_0x55df09}=this,{editing:_0x5bdf11}=_0x55df09;_0x55df09['editing']['view']['addObserver'](_0x3099e7),_0x55df09['editing']['view']['addObserver'](_0x3e4685);let _0x1e02f2=!0x1;this['listenTo'](_0x5bdf11['view']['document'],'pointerdown',(_0x3fca65,_0x33f44d)=>{const {target:_0x3d8168}=_0x33f44d,_0x4fafc5=_0x5bdf11['view']['document']['selection'];_0x1e02f2=!!(_0x3d8168?.['is']('element','a')&&_0x3d8168['parent']?.['is']('element','sup')&&_0x3d8168['parent']['hasClass']('footnote'))&&_0x4fafc5['getSelectedElement']()===_0x3d8168['parent'];},{'priority':'high'}),this['listenTo'](_0x5bdf11['view']['document'],'click',(_0x249404,_0x1d074f)=>{const {target:_0x5aca61}=_0x1d074f;if(!_0x5aca61?.['is']('element','a'))return;if(_0x5aca61['parent']?.['is']('element','sup')&&_0x5aca61['parent']['hasClass']('footnote')&&!_0x1e02f2)return void _0x1d074f['preventDefault']();let _0x1ba274=_0x5aca61['getAttribute']('href');if(!_0x1ba274?.['startsWith']('#'))return;_0x1ba274=_0x1ba274['slice'](0x1);let _0xb2aff3=!0x1;(_0x1ba274['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1ba274['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1ba274))&&(_0xb2aff3=!0x0),_0xb2aff3&&(_0x1d074f['preventDefault'](),_0x249404['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x830192}={}){return(_0x1a385e,{writer:_0x457719})=>{if(!p(_0x1a385e))return null;if(!_0x830192)return _0x457719['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2fbe3a=_0x457719['createContainerElement']('p');return _0x457719['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2fbe3a),_0x2fbe3a;};}function p(_0x27884f){const {parent:_0x10d4c5}=_0x27884f;if(!_0x10d4c5?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x10d4c5['childCount'])return!0x1;for(const _0x160d0c of _0x27884f['getAttributeKeys']())if(!_0x160d0c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x160d0c)return!0x1;return!0x0;}function g(_0x4babad,_0x2dd10e){if(!_0x4babad['is']('element','paragraph'))return!0x1;const _0x4c859f=_0x2dd10e['toViewElement'](_0x4babad);return!!_0x4c859f&&p(_0x4babad)!==_0x4c859f['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x44fcb2){return _0x220f13(_0x44fcb2)&&_0x44fcb2['is']('containerElement')&&!!_0x44fcb2['getCustomProperty']('footnotesDefinitions');}function v(_0x1d97e2,_0x4fa824={}){const _0x1fb986=_0x1d97e2['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4e01dd=_0x1d97e2['createContainerElement']('ol',{'class':'footnotes-list'},_0x1d97e2['createSlot']());return _0x1d97e2['createContainerElement']('div',{'class':'footnotes',..._0x4fa824},[_0x1fb986,_0x4e01dd]);}function D(_0x3c9397,_0x16c703){const _0x4f7ee2=_0x3c9397['getAttribute']('footnoteId'),_0x13a32=_0x3c9397['getAttribute']('footnoteCounter'),_0x34ff9f=_0x16c703['createUIElement']('a',{'href':'#'+_0x4f7ee2},function(_0x241e8f){const _0x1da8a7=this['toDomElement'](_0x241e8f);return _0x1da8a7['textContent']=_0x13a32,_0x1da8a7;}),_0x35f5bc=_0x16c703['createContainerElement']('sup',{'id':'ref-'+_0x4f7ee2,'class':'footnote'},[_0x34ff9f]);return _0x35f5bc['getFillerOffset']=()=>null,_0x35f5bc;}function b(_0x5f46b0,_0x32fb6e,_0x5c7198,{dataPipeline:_0x9cd08e}={}){const {t:t}=_0x5c7198,_0xeb1f6c=_0x5f46b0['getAttribute']('footnoteId'),_0x56f788=_0x32fb6e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xeb1f6c},function(_0x5514d4){const _0x158e6a=this['toDomElement'](_0x5514d4);return _0x158e6a['innerText']='^',_0x158e6a;}),_0x1733e9=_0x9cd08e?_0x32fb6e['createContainerElement']('div',{'class':'footnote-content'}):_0x26a5b4(_0x32fb6e['createEditableElement']('div',{'class':'footnote-content'}),_0x32fb6e,{'label':t('Footnote\x20content.')});return _0x32fb6e['insert'](_0x32fb6e['createPositionAt'](_0x1733e9,0x0),_0x32fb6e['createSlot']()),_0x32fb6e['createContainerElement']('li',{'class':'footnote-definition','id':_0xeb1f6c},[_0x56f788,_0x1733e9]);}
23
+ import{Plugin as _0x19c94d}from'ckeditor5/src/core.js';import{isWidget as _0x440873,toWidget as _0x1eec9a,toWidgetEditable as _0x4ae050}from'ckeditor5/src/widget.js';import{uid as _0x3b6196}from'ckeditor5/src/utils.js';import{PointerObserver as _0x39b1dd,ClickObserver as _0x500485}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x21b88c}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x46ceb0}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x19c94d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x21b88c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4a5a23}=this;_0x4a5a23['config']['define']('footnotes.multiBlock',!0x0),_0x4a5a23['commands']['add']('insertFootnote',new _0x46ceb0(_0x4a5a23)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4ffbfe){const _0xe87955=_0x48fa24([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]),_0x1d52f3=0x47a28506,_0x3b5ff1=0x47a5fe56^_0x1d52f3,_0x5eed83=window[_0x48fa24([0x44,0x61,0x74,0x65])][_0x48fa24([0x6e,0x6f,0x77])](),_0x119f5b=_0x4ffbfe[_0x48fa24([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c1a12=new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57a1bc=>{_0x119f5b[_0x48fa24([0x6f,0x6e,0x63,0x65])](_0x48fa24([0x72,0x65,0x61,0x64,0x79]),_0x57a1bc);}),_0x210406={[_0x48fa24([0x6b,0x74,0x79])]:_0x48fa24([0x45,0x43]),[_0x48fa24([0x75,0x73,0x65])]:_0x48fa24([0x73,0x69,0x67]),[_0x48fa24([0x63,0x72,0x76])]:_0x48fa24([0x50,0x2d,0x32,0x35,0x36]),[_0x48fa24([0x78])]:_0x48fa24([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]),[_0x48fa24([0x79])]:_0x48fa24([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]),[_0x48fa24([0x61,0x6c,0x67])]:_0x48fa24([0x45,0x53,0x32,0x35,0x36])},_0x18e6fd=_0x119f5b[_0x48fa24([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x48fa24([0x67,0x65,0x74])](_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1e3f3c(){let _0x440848,_0x3185bb=null,_0x5b6571=null;try{if(_0x18e6fd==_0x48fa24([0x47,0x50,0x4c]))return _0x48fa24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x440848=_0x5a9e77(),!_0x440848)return _0x48fa24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x440848[_0x48fa24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b6571=_0x11e6c9(_0x440848[_0x48fa24([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x440848[_0x48fa24([0x6a,0x74,0x69])])),await _0x41c758()?_0x937538()?_0x96cab3()?_0x48fa24([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x15e98b()?(_0x440848[_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48fa24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3185bb=_0x458aba(_0x48fa24([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x440848[_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x48fa24([0x74,0x72,0x69,0x61,0x6c])&&(_0x3185bb=_0x458aba(_0x48fa24([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x16b046()):_0x48fa24([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x48fa24([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x48fa24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x48fa24([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x96cab3(){const _0x432742=[_0x48fa24([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x48fa24([0x74,0x72,0x69,0x61,0x6c])][_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x440848[_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5eed83/0x3e8:0xe10*_0x3b5ff1;return _0x440848[_0x48fa24([0x65,0x78,0x70])]<_0x432742;}function _0x937538(){const _0x2ede06=_0x440848[_0x48fa24([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ede06&&(!!_0x2ede06[_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48fa24([0x2a]))||!!_0x2ede06[_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48fa24([0x46,0x4f,0x4f])));}function _0x15e98b(){const _0x4afb42=_0x440848[_0x48fa24([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4afb42||0x0==_0x4afb42[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x32fa39}=new URL(window[_0x48fa24([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4afb42[_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32fa39))return!0x0;const _0x2ca393=_0x32fa39[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])](_0x48fa24([0x2e]));return _0x4afb42[_0x48fa24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2d881b=>_0x2d881b[_0x48fa24([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48fa24([0x2a])))[_0x48fa24([0x6d,0x61,0x70])](_0x4016ef=>_0x4016ef[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])](_0x48fa24([0x2e])))[_0x48fa24([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x32e821=>_0x32e821[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2ca393[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48fa24([0x6d,0x61,0x70])](_0x1ee396=>Array(_0x2ca393[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1ee396[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x48fa24([0x66,0x69,0x6c,0x6c])](_0x1ee396[0x0]===_0x48fa24([0x2a])?_0x48fa24([0x2a]):'')[_0x48fa24([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1ee396))[_0x48fa24([0x73,0x6f,0x6d,0x65])](_0x221c80=>_0x2ca393[_0x48fa24([0x65,0x76,0x65,0x72,0x79])]((_0x604e4,_0x59221f)=>_0x221c80[_0x59221f]===_0x604e4||_0x221c80[_0x59221f]===_0x48fa24([0x2a])));}function _0x16b046(){return _0x3185bb&&_0x5b6571?new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x475bf5,_0x29e397)=>{_0x3185bb[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x475bf5,_0x29e397),_0x5b6571[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x4e66b4=>{_0x4e66b4!=_0x48fa24([0x56,0x61,0x6c,0x69,0x64])&&_0x475bf5(_0x4e66b4);},_0x29e397);}):_0x3185bb||_0x5b6571||_0x48fa24([0x56,0x61,0x6c,0x69,0x64]);}}function _0x11e6c9(_0xa3a66c,_0x258e66){return new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a868d=>{if(_0x3f0525())return _0x3a868d(_0x48fa24([0x56,0x61,0x6c,0x69,0x64]));_0x2aaef0(),_0x119f5b[_0x48fa24([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x48fa24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xcf55b0=!0x1;const _0x4d6c40=_0x3b6196();function _0x7bd49f(_0x3564ba){return!!_0x3564ba&&(typeof _0x3564ba===_0x48fa24([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3564ba===_0x48fa24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3564ba[_0x48fa24([0x74,0x68,0x65,0x6e])]===_0x48fa24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3564ba[_0x48fa24([0x63,0x61,0x74,0x63,0x68])]===_0x48fa24([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x373210(_0x315f51){_0x79e46b(_0x315f51)[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x58fc43=>{if(!_0x58fc43||_0x58fc43[_0x48fa24([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x48fa24([0x6f,0x6b]))return _0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xce3c13(_0x75102f(_0x4d6c40+_0x258e66))!=_0x58fc43[_0x48fa24([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x48fa24([0x56,0x61,0x6c,0x69,0x64]);})[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x164881=>(_0x3bb9a0(),_0x164881),()=>{const _0x53ee0a=_0x5d6d75();return null==_0x53ee0a?(_0x3bb9a0(),_0x48fa24([0x56,0x61,0x6c,0x69,0x64])):_0x48fa24(_0x5eed83-_0x53ee0a>(0x63ae0106^_0x1d52f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x3a868d)[_0x48fa24([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3a868d(_0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5eea31=0x47946b86^_0x1d52f3;function _0x3bb9a0(){const _0x2ae0fb=_0x48fa24([0x6c,0x6c,0x63,0x74,0x2d])+_0xce3c13(_0x75102f(_0xa3a66c)),_0xd29584=_0x10594f(_0xce3c13(window[_0x48fa24([0x4d,0x61,0x74,0x68])][_0x48fa24([0x63,0x65,0x69,0x6c])](_0x5eed83/_0x5eea31)));window[_0x48fa24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48fa24([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ae0fb,_0xd29584);}function _0x5d6d75(){const _0x181bc7=_0x48fa24([0x6c,0x6c,0x63,0x74,0x2d])+_0xce3c13(_0x75102f(_0xa3a66c)),_0x286436=window[_0x48fa24([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x48fa24([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x181bc7);return _0x286436?window[_0x48fa24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10594f(_0x286436),0x10)*_0x5eea31:null;}function _0x79e46b(_0x2e2e01){return new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d82ee,_0x7d8ffd)=>{_0x2e2e01[_0x48fa24([0x74,0x68,0x65,0x6e])](_0x3d82ee,_0x7d8ffd),window[_0x48fa24([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x7d8ffd,0x47a351c6^_0x1d52f3);});}}_0x119f5b[_0x48fa24([0x6f,0x6e])](_0x48fa24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x386441,_0x2e7eb6)=>{if(_0x2e7eb6[0x0]!=_0xa3a66c)return _0x3a868d(_0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e7eb6[0x1]={..._0x2e7eb6[0x1],[_0x48fa24([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d6c40};},{[_0x48fa24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48fa24([0x68,0x69,0x67,0x68])}),_0x119f5b[_0x48fa24([0x6f,0x6e])](_0x48fa24([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1b7552=>{_0x7bd49f(_0x1b7552[_0x48fa24([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xcf55b0=!0x0,_0x373210(_0x1b7552[_0x48fa24([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x48fa24([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x48fa24([0x6c,0x6f,0x77])}),_0x4c1a12[_0x48fa24([0x74,0x68,0x65,0x6e])](()=>{_0xcf55b0||_0x3a868d(_0x48fa24([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3f0525(){return _0x119f5b[_0x48fa24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48fa24([0x76,0x69,0x65,0x77])][_0x48fa24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x48fa24([0x61,0x75,0x74,0x6f]);}function _0x2aaef0(){_0x119f5b[_0x48fa24([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x48fa24([0x76,0x69,0x65,0x77])][_0x48fa24([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x48fa24([0x61,0x75,0x74,0x6f]);}}function _0x458aba(_0xa1d124){const _0x16793c=[new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f8737=>setTimeout(_0x2f8737,0x47abbbca^_0x1d52f3)),_0x4c1a12[_0x48fa24([0x74,0x68,0x65,0x6e])](()=>new window[(_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe7f22=>{let _0x4a7e34=0x0;_0x119f5b[_0x48fa24([0x6d,0x6f,0x64,0x65,0x6c])][_0x48fa24([0x6f,0x6e])](_0x48fa24([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x222f93,_0x55a131)=>{_0x55a131[0x0][_0x48fa24([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4a7e34++,_0x4a7e34==(0x47a284fe^_0x1d52f3)&&(_0xe7f22(),_0x222f93[_0x48fa24([0x6f,0x66,0x66])]());});}))];return window[_0x48fa24([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x48fa24([0x72,0x61,0x63,0x65])](_0x16793c)[_0x48fa24([0x74,0x68,0x65,0x6e])](()=>_0xa1d124);}async function _0x43c215(){await _0x4c1a12,_0x119f5b[_0x48fa24([0x6d,0x6f,0x64,0x65,0x6c])][_0x48fa24([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x55937a,_0x119f5b[_0x48fa24([0x6d,0x6f,0x64,0x65,0x6c])][_0x48fa24([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x55937a,_0x119f5b[_0x48fa24([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x48fa24([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45eec6(_0x1db49b){const _0x59bc77=_0x5783f9();_0x119f5b[_0x59bc77]=_0x48fa24([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1db49b,_0x1db49b!=_0x48fa24([0x56,0x61,0x6c,0x69,0x64])&&_0x43c215();}function _0x5783f9(){const _0x69f3e3=window[_0x48fa24([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x48fa24([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x48fa24([0x6e,0x6f,0x77])]())[_0x48fa24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x48fa24([0x2e]),'');let _0x5965e5=_0x48fa24([0x75]);for(let _0x294976=0x0;_0x294976<_0x69f3e3[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x294976+=0x2){let _0x2f910e=window[_0x48fa24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x69f3e3[_0x48fa24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x294976,_0x294976+0x2));_0x2f910e>=_0xe87955[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2f910e-=_0xe87955[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5965e5+=_0xe87955[_0x2f910e];}return _0x5965e5;}function _0x5a9e77(){const _0x2eff3b=_0x18e6fd[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])](_0x48fa24([0x2e]));if(0x3!=_0x2eff3b[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xe85d35(_0x2eff3b[0x1]);function _0xe85d35(_0x46c2e9){const _0x431c6a=_0x1b29ba(_0x46c2e9);return _0x431c6a&&_0x26e0ff()?_0x431c6a:null;function _0x26e0ff(){const _0x2e8634=_0x431c6a[_0x48fa24([0x6a,0x74,0x69])],_0x5ad70d=window[_0x48fa24([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e8634[_0x48fa24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e8634[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xeec78d={..._0x431c6a,[_0x48fa24([0x6a,0x74,0x69])]:_0x2e8634[_0x48fa24([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e8634[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xeec78d[_0x48fa24([0x76,0x63])],_0x75102f(_0xeec78d)==_0x5ad70d;}}}async function _0x41c758(){let _0x14113b=!0x0;try{const _0x1e968c=_0x18e6fd[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])](_0x48fa24([0x2e])),[_0x45d04e,_0x55aa85,_0x1954d6]=_0x1e968c;return _0x4809ee(_0x45d04e),await _0xb10fe3(_0x45d04e,_0x55aa85,_0x1954d6),_0x14113b;}catch{return!0x1;}function _0x4809ee(_0x603a45){const _0x567960=_0x1b29ba(_0x603a45);_0x567960&&_0x567960[_0x48fa24([0x61,0x6c,0x67])]==_0x48fa24([0x45,0x53,0x32,0x35,0x36])||(_0x14113b=!0x1);}async function _0xb10fe3(_0x399b19,_0x5175f2,_0x30e1b3){const _0x367c42=window[_0x48fa24([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x48fa24([0x66,0x72,0x6f,0x6d])](_0x33ae65(_0x30e1b3),_0x5d8bcd=>_0x5d8bcd[_0x48fa24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d569e=new window[(_0x48fa24([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x48fa24([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x399b19+_0x48fa24([0x2e])+_0x5175f2),_0x288b7a=window[_0x48fa24([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x48fa24([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x288b7a)return;const _0x3f2b9b=await _0x288b7a[_0x48fa24([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x48fa24([0x6a,0x77,0x6b]),_0x210406,{[_0x48fa24([0x6e,0x61,0x6d,0x65])]:_0x48fa24([0x45,0x43,0x44,0x53,0x41]),[_0x48fa24([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x48fa24([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x48fa24([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x288b7a[_0x48fa24([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x48fa24([0x6e,0x61,0x6d,0x65])]:_0x48fa24([0x45,0x43,0x44,0x53,0x41]),[_0x48fa24([0x68,0x61,0x73,0x68])]:{[_0x48fa24([0x6e,0x61,0x6d,0x65])]:_0x48fa24([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f2b9b,_0x367c42,_0x1d569e)||(_0x14113b=!0x1);}}function _0x1b29ba(_0x2f7594){return _0x2f7594[_0x48fa24([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x48fa24([0x65,0x79]))?JSON[_0x48fa24([0x70,0x61,0x72,0x73,0x65])](_0x33ae65(_0x2f7594)):null;}function _0x33ae65(_0x4d5aa1){return window[_0x48fa24([0x61,0x74,0x6f,0x62])](_0x4d5aa1[_0x48fa24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x48fa24([0x2b]))[_0x48fa24([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x48fa24([0x2f])));}function _0x75102f(_0x25cce0){let _0x4f64b6=0x1505;function _0x28c5d7(_0x503b01){for(let _0x303277=0x0;_0x303277<_0x503b01[_0x48fa24([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x303277++){const _0x39e9f0=_0x503b01[_0x48fa24([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x303277);_0x4f64b6=(_0x4f64b6<<0x5)+_0x4f64b6+_0x39e9f0,_0x4f64b6&=_0x4f64b6;}}function _0x4c53ae(_0x19c70f){Array[_0x48fa24([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x19c70f)?_0x19c70f[_0x48fa24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c53ae):_0x19c70f&&typeof _0x19c70f==_0x48fa24([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x48fa24([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x19c70f)[_0x48fa24([0x73,0x6f,0x72,0x74])]()[_0x48fa24([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xbcddad,_0xb202dd])=>{_0x28c5d7(_0xbcddad),_0x4c53ae(_0xb202dd);}):_0x28c5d7(window[_0x48fa24([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x19c70f));}return _0x4c53ae(_0x25cce0),_0x4f64b6>>>0x0;}function _0xce3c13(_0x1d917f){return _0x1d917f[_0x48fa24([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x48fa24([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x48fa24([0x30]));}function _0x10594f(_0x3e148c){return _0x3e148c[_0x48fa24([0x73,0x70,0x6c,0x69,0x74])]('')[_0x48fa24([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x48fa24([0x6a,0x6f,0x69,0x6e])]('');}function _0x55937a(){}function _0x48fa24(_0x26d75c){return _0x26d75c['map'](_0xe8639d=>String['fromCharCode'](_0xe8639d))['join']('');}_0x45eec6(await _0x1e3f3c());}(this);}['_moveSelectionToFootnoteDefinition'](_0xe8d4ad){const {plugins:_0x54005a,editing:_0x258a18,model:_0x5909c4}=this['editor'],_0x4476f6=_0x54005a['get'](_0x21b88c)['getFootnote'](_0xe8d4ad);return!!_0x4476f6&&(_0x5909c4['change'](_0x392523=>{_0x392523['setSelection'](_0x392523['createPositionAt'](_0x4476f6['definition'],'end'));}),_0x258a18['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x15301c){const {plugins:_0x31676f,editing:_0x295f7e,model:_0x341741}=this['editor'],_0x410f17=_0x31676f['get'](_0x21b88c)['getFootnote'](_0x15301c);return!!_0x410f17&&(_0x341741['change'](_0x237df4=>{_0x237df4['setSelection'](_0x410f17['reference'],'on');}),_0x295f7e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x55fb26}=this['editor']['model'],_0x5e15f5=this['editor']['config']['get']('footnotes.multiBlock');_0x55fb26['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x55fb26['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x55fb26['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5e15f5?_0x55fb26['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x55fb26['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x55fb26['addChildCheck'](_0x526590=>{for(const _0x413ffb of _0x526590)if('footnoteDefinition'===_0x413ffb['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2ca4d8}=this,{conversion:_0x7e8fc5,editing:_0x2c0491}=_0x2ca4d8,{t:t}=_0x2ca4d8['locale'];_0x7e8fc5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x750eb7,{writer:_0x2d6d3a,consumable:_0x1e18fc})=>{const _0x551062=_0x750eb7['getChild'](0x0);if(!_0x551062||!_0x551062['is']('element','a'))return null;const _0x24cac0=_0x551062['getAttribute']('href')||'';if(!_0x24cac0['startsWith']('#'))return null;const _0x2cf128=_0x24cac0['replace'](/^#/,'');if(!_0x2cf128)return null;_0x1e18fc['consume'](_0x551062,{'name':!0x0,'attributes':['href']});for(const {item:_0x2324ed}of _0x2c0491['view']['createRangeIn'](_0x551062))_0x2324ed['is']('$textProxy')?_0x1e18fc['consume'](_0x2324ed['textNode'],{'name':!0x0}):_0x2324ed['is']('element')&&_0x1e18fc['consume'](_0x2324ed,{'name':!0x0});return _0x2d6d3a['createElement']('footnoteRef',{'footnoteId':_0x2cf128});}}),_0x7e8fc5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x31da1f,{writer:_0x58002b})=>D(_0x31da1f,_0x58002b)}),_0x7e8fc5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4e172e,{writer:_0x311762})=>{const _0x32a556=_0x4e172e['getAttribute']('footnoteCounter');return _0x1eec9a(D(_0x4e172e,_0x311762),_0x311762,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x32a556)});}});}['_defineDefinitionsConverters'](){const {editor:_0x457ffa}=this,{t:t}=_0x457ffa['locale'],{conversion:_0x4ed8a6}=_0x457ffa;_0x4ed8a6['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4ed8a6['for']('upcast')['add'](_0x1ecd26=>{_0x1ecd26['on']('element:ol',(_0x5b9a32,_0x1f1afa,_0xc5970f)=>{const _0x2297b8=_0x1f1afa['viewItem'];if(!_0x2297b8['hasClass']('footnotes-list')||!_0x1f1afa['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xc5970f['consumable']['consume'](_0x2297b8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x7bd732,modelCursor:_0x5b8034}=_0xc5970f['convertChildren'](_0x1f1afa['viewItem'],_0x1f1afa['modelCursor']);_0x1f1afa['modelRange']=_0x7bd732,_0x1f1afa['modelCursor']=_0x5b8034;}),_0x1ecd26['on']('element:hr',(_0xe0c5a6,_0x2ab6e0,_0x1d4a25)=>{const _0x28d515=_0x2ab6e0['viewItem'];_0x28d515['hasClass']('footnotes-divider')&&_0x2ab6e0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1d4a25['consumable']['consume'](_0x28d515,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4ed8a6['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4cd299,{writer:_0x20afb5})=>v(_0x20afb5)}),_0x4ed8a6['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x46a400,{writer:_0xbcd767})=>{const _0x1ba3c5=v(_0xbcd767,{'data-footnotes-list-label':t('Footnotes')}),_0x116358=_0x1eec9a(_0x1ba3c5,_0xbcd767,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xbcd767['setCustomProperty']('footnotesDefinitions',!0x0,_0x116358),_0x116358;}});}['_defineDefinitionConverters'](){const {editor:_0x233cb2}=this,{conversion:_0xa8d6de,locale:_0x49548f}=_0x233cb2,_0x2e4ad9=_0x233cb2['config']['get']('footnotes.multiBlock');_0xa8d6de['for']('upcast')['add'](_0x1c11a3=>{_0x1c11a3['on']('element:li',(_0x989bd3,_0x3ada7a,_0x1706e9)=>{const _0x6f5ee0=_0x3ada7a['viewItem'];if(!_0x6f5ee0['hasClass']('footnote-definition')||!_0x6f5ee0['getAttribute']('id'))return;const _0x1d06e6=_0x6f5ee0['parent'];if(!_0x1d06e6['is']('element','ol')||!_0x1d06e6['hasClass']('footnotes-list'))return;if(!_0x1706e9['consumable']['test'](_0x6f5ee0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1883c6=_0x1706e9['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x6f5ee0['getAttribute']('id')});if(!_0x1706e9['safeInsert'](_0x1883c6,_0x3ada7a['modelCursor']))return;_0x1706e9['consumable']['consume'](_0x6f5ee0,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x516187=Array['from'](_0x6f5ee0['getChildren']())['find'](_0x2c135c=>_0x2c135c['is']('element')&&_0x2c135c['hasClass']('footnote-content'));for(const _0x413aee of _0x6f5ee0['getChildren']())_0x413aee['is']('element')&&(_0x1706e9['consumable']['consume'](_0x413aee,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1706e9['consumable']['consume'](_0x413aee,{'name':!0x0,'classes':'footnote-content'}));if(_0x516187){if(_0x2e4ad9)_0x1706e9['convertChildren'](_0x516187,_0x1883c6);else{const _0x3dc233=_0x1706e9['writer']['createElement']('footnoteInlineContent');_0x1706e9['writer']['insert'](_0x3dc233,_0x1883c6),_0x1706e9['convertChildren'](_0x516187,_0x3dc233);}}_0x1706e9['updateConversionResult'](_0x1883c6,_0x3ada7a);});}),_0xa8d6de['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x10ae71,{writer:_0x25148f})=>b(_0x10ae71,_0x25148f,_0x49548f,{'dataPipeline':!0x0})}),_0xa8d6de['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x43ce9a,{writer:_0x3372d8})=>b(_0x43ce9a,_0x3372d8,_0x49548f)});}['_defineBogusParagraphConverters'](){const {editor:_0x3c7637}=this,{conversion:_0x2dcda8}=_0x3c7637;_0x3c7637['config']['get']('footnotes.multiBlock')?(_0x2dcda8['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2dcda8['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3c7637['model']['document'],'change:data',()=>{!function(_0x3140b3,_0x137f83){const _0xdc20e0=_0x3140b3['document']['differ'],_0x1c0766=new Set();for(const _0x5bc8c5 of _0xdc20e0['getChanges']()){const _0x387788='attribute'==_0x5bc8c5['type']?_0x5bc8c5['range']['start']['parent']:_0x5bc8c5['position']['parent'];_0x387788['is']('element','footnoteDefinition')&&_0x1c0766['add'](_0x387788);}for(const _0x1b5bec of _0x1c0766['values']()){const _0x5b3b10=Array['from'](_0x1b5bec['getChildren']())['filter'](_0x3fcc27=>g(_0x3fcc27,_0x137f83['mapper']));for(const _0x246f30 of _0x5b3b10)_0x137f83['reconvertItem'](_0x246f30);}}(_0x3c7637['model'],_0x3c7637['editing']);})):(_0x2dcda8['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2dcda8['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x38f03a,{writer:_0x3e9bbd})=>{const _0x2b7508=_0x3e9bbd['createContainerElement']('span');return _0x3e9bbd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2b7508),_0x2b7508;}}));}['_defineKeyboardHandlers'](){const {editor:_0x215b49}=this,{editing:_0x478409,t:t}=_0x215b49,_0x5ec6c1=_0x215b49['model']['document']['selection'];_0x215b49['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x215b49['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x478409['view']['document'],'enter',(_0x4fa0f5,_0x4387cd)=>{const _0x424f7c=function(_0x1d8761){const _0x307137=_0x1d8761['getSelectedElement']();if(_0x307137?.['is']('element','footnoteRef'))return _0x307137;return null;}(_0x5ec6c1);if(_0x424f7c){const _0x19831a=_0x424f7c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x19831a),_0x4387cd['preventDefault'](),_0x4fa0f5['stop']();}},{'context':_0x440873});}['_defineClickHandlers'](){const {editor:_0x2ac682}=this,{editing:_0x247398}=_0x2ac682;_0x2ac682['editing']['view']['addObserver'](_0x39b1dd),_0x2ac682['editing']['view']['addObserver'](_0x500485);let _0x46a110=!0x1;this['listenTo'](_0x247398['view']['document'],'pointerdown',(_0x3af1bc,_0x3d8bbe)=>{const {target:_0x145dbc}=_0x3d8bbe,_0x12309c=_0x247398['view']['document']['selection'];_0x46a110=!!(_0x145dbc?.['is']('element','a')&&_0x145dbc['parent']?.['is']('element','sup')&&_0x145dbc['parent']['hasClass']('footnote'))&&_0x12309c['getSelectedElement']()===_0x145dbc['parent'];},{'priority':'high'}),this['listenTo'](_0x247398['view']['document'],'click',(_0xf29a54,_0x1812ce)=>{const {target:_0x9d2235}=_0x1812ce;if(!_0x9d2235?.['is']('element','a'))return;if(_0x9d2235['parent']?.['is']('element','sup')&&_0x9d2235['parent']['hasClass']('footnote')&&!_0x46a110)return void _0x1812ce['preventDefault']();let _0x2e7a75=_0x9d2235['getAttribute']('href');if(!_0x2e7a75?.['startsWith']('#'))return;_0x2e7a75=_0x2e7a75['slice'](0x1);let _0x48fca7=!0x1;(_0x2e7a75['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2e7a75['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2e7a75))&&(_0x48fca7=!0x0),_0x48fca7&&(_0x1812ce['preventDefault'](),_0xf29a54['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x3e04d0}={}){return(_0x5a1c09,{writer:_0xeed1e7})=>{if(!p(_0x5a1c09))return null;if(!_0x3e04d0)return _0xeed1e7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2e5537=_0xeed1e7['createContainerElement']('p');return _0xeed1e7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2e5537),_0x2e5537;};}function p(_0x1448f9){const {parent:_0x19c870}=_0x1448f9;if(!_0x19c870?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x19c870['childCount'])return!0x1;for(const _0xaee112 of _0x1448f9['getAttributeKeys']())if(!_0xaee112['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xaee112)return!0x1;return!0x0;}function g(_0x557b0f,_0x15b25e){if(!_0x557b0f['is']('element','paragraph'))return!0x1;const _0x20005d=_0x15b25e['toViewElement'](_0x557b0f);return!!_0x20005d&&p(_0x557b0f)!==_0x20005d['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4904ca){return _0x440873(_0x4904ca)&&_0x4904ca['is']('containerElement')&&!!_0x4904ca['getCustomProperty']('footnotesDefinitions');}function v(_0x47ab69,_0xae70fd={}){const _0x1ec236=_0x47ab69['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x542edf=_0x47ab69['createContainerElement']('ol',{'class':'footnotes-list'},_0x47ab69['createSlot']());return _0x47ab69['createContainerElement']('div',{'class':'footnotes',..._0xae70fd},[_0x1ec236,_0x542edf]);}function D(_0x12e197,_0x455238){const _0x7dab3e=_0x12e197['getAttribute']('footnoteId'),_0x576ec1=_0x12e197['getAttribute']('footnoteCounter'),_0x32f60b=_0x455238['createUIElement']('a',{'href':'#'+_0x7dab3e},function(_0x49e4ab){const _0x29b87c=this['toDomElement'](_0x49e4ab);return _0x29b87c['textContent']=_0x576ec1,_0x29b87c;}),_0x9578ee=_0x455238['createContainerElement']('sup',{'id':'ref-'+_0x7dab3e,'class':'footnote'},[_0x32f60b]);return _0x9578ee['getFillerOffset']=()=>null,_0x9578ee;}function b(_0x2ec4dc,_0x98e781,_0x1bc904,{dataPipeline:_0xaf1085}={}){const {t:t}=_0x1bc904,_0x2603a9=_0x2ec4dc['getAttribute']('footnoteId'),_0x2eb832=_0x98e781['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2603a9},function(_0x2db5fb){const _0x398106=this['toDomElement'](_0x2db5fb);return _0x398106['innerText']='^',_0x398106;}),_0x7dfbf=_0xaf1085?_0x98e781['createContainerElement']('div',{'class':'footnote-content'}):_0x4ae050(_0x98e781['createEditableElement']('div',{'class':'footnote-content'}),_0x98e781,{'label':t('Footnote\x20content.')});return _0x98e781['insert'](_0x98e781['createPositionAt'](_0x7dfbf,0x0),_0x98e781['createSlot']()),_0x98e781['createContainerElement']('li',{'class':'footnote-definition','id':_0x2603a9},[_0x2eb832,_0x7dfbf]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x459917=_0x129a;(function(_0x2950c9,_0x3fcfe1){const _0x28657c=_0x129a,_0x424083=_0x2950c9();while(!![]){try{const _0x3e51ff=parseInt(_0x28657c(0x1cd))/0x1+-parseInt(_0x28657c(0x1d7))/0x2*(-parseInt(_0x28657c(0x1cc))/0x3)+-parseInt(_0x28657c(0x1e1))/0x4+-parseInt(_0x28657c(0x1e0))/0x5*(-parseInt(_0x28657c(0x1cb))/0x6)+parseInt(_0x28657c(0x1d1))/0x7*(parseInt(_0x28657c(0x1dc))/0x8)+parseInt(_0x28657c(0x1d3))/0x9+-parseInt(_0x28657c(0x1d5))/0xa*(parseInt(_0x28657c(0x1d6))/0xb);if(_0x3e51ff===_0x3fcfe1)break;else _0x424083['push'](_0x424083['shift']());}catch(_0x5964b7){_0x424083['push'](_0x424083['shift']());}}}(_0x2e3e,0x77c7f));import{Command as _0x45f2fa}from'ckeditor5/src/core.js';function _0x129a(_0x997b99,_0x583a96){const _0x2e3ea2=_0x2e3e();return _0x129a=function(_0x129a32,_0x1e0e5b){_0x129a32=_0x129a32-0x1c9;let _0x3d587a=_0x2e3ea2[_0x129a32];return _0x3d587a;},_0x129a(_0x997b99,_0x583a96);}import{FootnotesTracker as _0xdf67a1}from'../../footnotestracker.js';function _0x2e3e(){const _0x10cca4=['469023lzJPJE','setAttribute','execute','plugins','2611RKNriY','value','5730417pBzluO','isInteger','30TIQrro','2782714ZwPbQe','6jOMbgN','change','footnotesListStart','getAttribute','_updateFootnotesCounters','1456pbjKPz','isEnabled','get','getFootnotesDefinitionsObjectElement','1042035IzJMei','2509960WWiEXX','refresh','model','12fFqcWY','286599drZiIj'];_0x2e3e=function(){return _0x10cca4;};return _0x2e3e();}export class FootnotesStartCommand extends _0x45f2fa{[_0x459917(0x1c9)](){const _0x2ccb9d=_0x459917,{editor:_0xc1fd0e}=this,_0xc11ff=_0xc1fd0e[_0x2ccb9d(0x1d0)][_0x2ccb9d(0x1de)](_0xdf67a1)[_0x2ccb9d(0x1df)]();this[_0x2ccb9d(0x1dd)]=!!_0xc11ff,this[_0x2ccb9d(0x1d2)]=_0xc11ff?.[_0x2ccb9d(0x1da)](_0x2ccb9d(0x1d9))??null;}[_0x459917(0x1cf)]({value:_0x378b0e}){const _0x4091aa=_0x459917,{editor:_0x39f350}=this,_0x1b67fe=_0x39f350[_0x4091aa(0x1d0)][_0x4091aa(0x1de)](_0xdf67a1),_0x55db77=_0x1b67fe[_0x4091aa(0x1df)]();_0x55db77&&Number[_0x4091aa(0x1d4)](_0x378b0e)&&_0x39f350[_0x4091aa(0x1ca)][_0x4091aa(0x1d8)](_0x590bee=>{const _0x28396c=_0x4091aa;_0x590bee[_0x28396c(0x1ce)](_0x28396c(0x1d9),_0x378b0e,_0x55db77),_0x1b67fe[_0x28396c(0x1db)](_0x590bee);});}}
23
+ const _0x268cdb=_0x4cb8;function _0x4cb8(_0x21705c,_0x58f095){const _0x55b3ae=_0x55b3();return _0x4cb8=function(_0x4cb8a6,_0x24b707){_0x4cb8a6=_0x4cb8a6-0xd6;let _0x474e4a=_0x55b3ae[_0x4cb8a6];return _0x474e4a;},_0x4cb8(_0x21705c,_0x58f095);}(function(_0x207886,_0x184fd2){const _0x455788=_0x4cb8,_0xbee94f=_0x207886();while(!![]){try{const _0xcc8597=-parseInt(_0x455788(0xed))/0x1+-parseInt(_0x455788(0xec))/0x2*(-parseInt(_0x455788(0xe2))/0x3)+parseInt(_0x455788(0xdf))/0x4+parseInt(_0x455788(0xd9))/0x5+-parseInt(_0x455788(0xd6))/0x6*(parseInt(_0x455788(0xdd))/0x7)+-parseInt(_0x455788(0xe9))/0x8+-parseInt(_0x455788(0xe6))/0x9*(-parseInt(_0x455788(0xe4))/0xa);if(_0xcc8597===_0x184fd2)break;else _0xbee94f['push'](_0xbee94f['shift']());}catch(_0x988a8f){_0xbee94f['push'](_0xbee94f['shift']());}}}(_0x55b3,0x29c22));import{Command as _0x36a9ad}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x276f5f}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x36a9ad{[_0x268cdb(0xe5)](){const _0x463255=_0x268cdb,{editor:_0x229b51}=this,_0x153d3a=_0x229b51[_0x463255(0xe8)][_0x463255(0xe3)](_0x276f5f)[_0x463255(0xe0)]();this[_0x463255(0xea)]=!!_0x153d3a,this[_0x463255(0xda)]=_0x153d3a?.[_0x463255(0xdc)](_0x463255(0xe7))??null;}[_0x268cdb(0xd8)]({value:_0x43c927}){const _0x5bcd86=_0x268cdb,{editor:_0x37f089}=this,_0x28c481=_0x37f089[_0x5bcd86(0xe8)][_0x5bcd86(0xe3)](_0x276f5f),_0x2885a8=_0x28c481[_0x5bcd86(0xe0)]();_0x2885a8&&Number[_0x5bcd86(0xdb)](_0x43c927)&&_0x37f089[_0x5bcd86(0xe1)][_0x5bcd86(0xeb)](_0x55266a=>{const _0x5485d2=_0x5bcd86;_0x55266a[_0x5485d2(0xd7)](_0x5485d2(0xe7),_0x43c927,_0x2885a8),_0x28c481[_0x5485d2(0xde)](_0x55266a);});}}function _0x55b3(){const _0x19a1d0=['2610agEMhx','refresh','1746wQSMLY','footnotesListStart','plugins','587480YNRTTV','isEnabled','change','2ZHRYUT','281775UtpbBV','18qprAcF','setAttribute','execute','1056825jYaHNL','value','isInteger','getAttribute','135443ICErvs','_updateFootnotesCounters','1222268gKWlnm','getFootnotesDefinitionsObjectElement','model','50199SsZsHJ','get'];_0x55b3=function(){return _0x19a1d0;};return _0x55b3();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x1f12ec=_0x19cf;(function(_0x324935,_0x4ee79f){const _0xb9904a=_0x19cf,_0x18b8d9=_0x324935();while(!![]){try{const _0x313374=-parseInt(_0xb9904a(0x17a))/0x1+-parseInt(_0xb9904a(0x18a))/0x2+-parseInt(_0xb9904a(0x18e))/0x3+parseInt(_0xb9904a(0x186))/0x4*(parseInt(_0xb9904a(0x17f))/0x5)+parseInt(_0xb9904a(0x184))/0x6+parseInt(_0xb9904a(0x17e))/0x7*(parseInt(_0xb9904a(0x17c))/0x8)+parseInt(_0xb9904a(0x180))/0x9;if(_0x313374===_0x4ee79f)break;else _0x18b8d9['push'](_0x18b8d9['shift']());}catch(_0x5f4228){_0x18b8d9['push'](_0x18b8d9['shift']());}}}(_0x3597,0xee6a8));import{Command as _0x134728}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x580881}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x1d9151}from'../../footnotestracker.js';function _0x19cf(_0x1000ae,_0x2f9218){const _0x359794=_0x3597();return _0x19cf=function(_0x19cf43,_0x4fd1c1){_0x19cf43=_0x19cf43-0x178;let _0x55bb9b=_0x359794[_0x19cf43];return _0x55bb9b;},_0x19cf(_0x1000ae,_0x2f9218);}export class FootnotesStyleCommand extends _0x134728{[_0x1f12ec(0x189)](){const _0x204124=_0x1f12ec,{editor:_0x1e35bc}=this,_0x5d5173=_0x1e35bc[_0x204124(0x182)][_0x204124(0x183)](_0x1d9151)[_0x204124(0x179)]();this[_0x204124(0x18c)]=!!_0x5d5173,this[_0x204124(0x17b)]=_0x5d5173?.[_0x204124(0x185)](_0x204124(0x178))??null;}[_0x1f12ec(0x18b)]({value:_0x372667}){const _0x403e31=_0x1f12ec,{editor:_0x8d7a8d}=this,_0x45b78e=_0x8d7a8d[_0x403e31(0x182)][_0x403e31(0x183)](_0x1d9151),_0x1732aa=_0x45b78e[_0x403e31(0x179)]();_0x1732aa&&_0x580881[_0x403e31(0x18d)](_0x372667)&&_0x8d7a8d[_0x403e31(0x187)][_0x403e31(0x181)](_0x9a4a0=>{const _0x2146c7=_0x403e31;_0x9a4a0[_0x2146c7(0x17d)](_0x2146c7(0x178),_0x372667,_0x1732aa),_0x45b78e[_0x2146c7(0x188)](_0x9a4a0);});}}function _0x3597(){const _0x4a99cc=['isEnabled','includes','3955893vermvR','footnotesListStyle','getFootnotesDefinitionsObjectElement','1696864IiMVlJ','value','648gvXnCH','setAttribute','30597JIzGCq','2750285PvhHjj','25984386CvaEyA','change','plugins','get','7938552BcKlZD','getAttribute','4YFXKZD','model','_updateFootnotesCounters','refresh','2244614DUuLEV','execute'];_0x3597=function(){return _0x4a99cc;};return _0x3597();}
23
+ const _0x380312=_0x4d80;(function(_0x4e3b72,_0x5cc86b){const _0x1a39f5=_0x4d80,_0x233f04=_0x4e3b72();while(!![]){try{const _0x17c317=-parseInt(_0x1a39f5(0x117))/0x1*(-parseInt(_0x1a39f5(0x105))/0x2)+parseInt(_0x1a39f5(0x107))/0x3+parseInt(_0x1a39f5(0x114))/0x4*(parseInt(_0x1a39f5(0x10c))/0x5)+parseInt(_0x1a39f5(0x106))/0x6+parseInt(_0x1a39f5(0x10a))/0x7*(parseInt(_0x1a39f5(0x115))/0x8)+-parseInt(_0x1a39f5(0x108))/0x9*(-parseInt(_0x1a39f5(0x112))/0xa)+-parseInt(_0x1a39f5(0x10f))/0xb;if(_0x17c317===_0x5cc86b)break;else _0x233f04['push'](_0x233f04['shift']());}catch(_0x2f7ede){_0x233f04['push'](_0x233f04['shift']());}}}(_0x4340,0x34b59));import{Command as _0x25cd9b}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x19e135}from'../footnotespropertiesconfig.js';function _0x4d80(_0x59518d,_0x2556b3){const _0x4340ae=_0x4340();return _0x4d80=function(_0x4d80af,_0x4389e1){_0x4d80af=_0x4d80af-0x105;let _0x1da461=_0x4340ae[_0x4d80af];return _0x1da461;},_0x4d80(_0x59518d,_0x2556b3);}function _0x4340(){const _0x13191d=['plugins','298049wvisPe','change','getAttribute','refresh','getFootnotesDefinitionsObjectElement','setAttribute','isEnabled','2HbMFHk','1954998xPcFrA','272715DLvqXi','126468tfetBF','footnotesListStyle','21zJNsfl','includes','710DmasjW','value','execute','8417431nJsgdt','get','_updateFootnotesCounters','50EIYCVF','model','444kgBUmu','480824HZdMCP'];_0x4340=function(){return _0x13191d;};return _0x4340();}import{FootnotesTracker as _0x97e262}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x25cd9b{[_0x380312(0x11a)](){const _0x474609=_0x380312,{editor:_0x20e5f4}=this,_0x3fe1f0=_0x20e5f4[_0x474609(0x116)][_0x474609(0x110)](_0x97e262)[_0x474609(0x11b)]();this[_0x474609(0x11d)]=!!_0x3fe1f0,this[_0x474609(0x10d)]=_0x3fe1f0?.[_0x474609(0x119)](_0x474609(0x109))??null;}[_0x380312(0x10e)]({value:_0x3cb738}){const _0x4243f7=_0x380312,{editor:_0x7e8c79}=this,_0x594da3=_0x7e8c79[_0x4243f7(0x116)][_0x4243f7(0x110)](_0x97e262),_0x63f6b=_0x594da3[_0x4243f7(0x11b)]();_0x63f6b&&_0x19e135[_0x4243f7(0x10b)](_0x3cb738)&&_0x7e8c79[_0x4243f7(0x113)][_0x4243f7(0x118)](_0x43dfef=>{const _0x2e5263=_0x4243f7;_0x43dfef[_0x2e5263(0x11c)](_0x2e5263(0x109),_0x3cb738,_0x63f6b),_0x594da3[_0x2e5263(0x111)](_0x43dfef);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{BalloonPanelView as _0x3bc883,ButtonView as _0x4573f1,ContextualBalloon as _0x51bfb0,createDropdown as _0x138f3d}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x581d35}from'ckeditor5/src/widget.js';import{Plugin as _0x551ce3}from'ckeditor5/src/core.js';import{IconFootnote as _0x295bdc,IconListStyleDecimal as _0x5dbe11,IconListStyleDecimalLeadingZero as _0x5deb6a,IconListStyleLowerLatin as _0x4d1b4d,IconListStyleLowerRoman as _0x56c8f1,IconListStyleUpperLatin as _0x5a953a,IconListStyleUpperRoman as _0x535c93}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x9dde76}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x11e20d}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x551ce3{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x51bfb0,_0x581d35];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe3f6c7}=this,{componentFactory:_0x382012}=_0xe3f6c7['ui'];_0xe3f6c7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x382012['add']('footnotesStyle',function(_0x1a3b91){return _0x13b3b0=>{const {t:t}=_0x13b3b0,_0x3a7153=_0x1a3b91['commands']['get']('footnotesStyle'),_0x2e7995=_0x138f3d(_0x13b3b0),{buttonView:_0x33d5c5}=_0x2e7995;return _0x2e7995['class']='ck-footnotes-styles-dropdown',_0x2e7995['bind']('isEnabled')['to'](_0x3a7153,'isEnabled'),_0x33d5c5['set']({'label':t('Footnotes\x20style'),'icon':_0x295bdc,'tooltip':!0x0}),_0x2e7995['once']('change:isOpen',()=>{const _0x4d6d8a=function({editor:_0x3450a1,dropdownView:_0x199ec9}){const {t:t}=_0x3450a1['locale'],_0x4fed4f=t('Footnotes\x20definitions\x20styles'),_0x278a4a=function(_0x3ba4ee){const t=_0x3ba4ee['locale']['t'],_0x8487d2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5dbe11},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5deb6a},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x56c8f1},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x535c93},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4d1b4d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5a953a}];return _0x8487d2['map'](function(_0x126078){const _0x2e7b39=_0x126078['locale'];return({label:_0x411e9d,icon:_0x4e7106,tooltip:_0x2de3ce,style:_0x2f84e8})=>{const _0x14c3ba=_0x126078['commands']['get']('footnotesStyle'),_0x446ba8=new _0x4573f1(_0x2e7b39);return _0x446ba8['set']({'label':_0x411e9d,'icon':_0x4e7106,'tooltip':_0x2de3ce}),_0x446ba8['bind']('isOn')['to'](_0x14c3ba,'value',_0x145d48=>_0x145d48===_0x2f84e8),_0x446ba8['bind']('isEnabled')['to'](_0x14c3ba,'isEnabled'),_0x446ba8['on']('execute',()=>{_0x126078['execute']('footnotesStyle',{'value':_0x2f84e8}),_0x126078['editing']['view']['focus']();}),_0x446ba8;};}(_0x3ba4ee));}(_0x3450a1),_0x2606f7=new _0x9dde76(_0x3450a1['locale'],{'styleGridAriaLabel':_0x4fed4f,'styleButtonViews':_0x278a4a}),_0x48e215=_0x3450a1['commands']['get']('footnotesStart');return _0x2606f7['startIndexFieldView']['bind']('isEnabled')['to'](_0x48e215),_0x2606f7['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x48e215),_0x2606f7['on']('footnotesListStart',(_0x339055,_0x9f0303)=>{_0x3450a1['execute']('footnotesStart',{'value':_0x9f0303['startIndex']});}),_0x2606f7['delegate']('execute')['to'](_0x199ec9),_0x2606f7;}({'editor':_0x1a3b91,'dropdownView':_0x2e7995});_0x2e7995['panelView']['children']['add'](_0x4d6d8a);}),_0x2e7995;};}(_0xe3f6c7));}['afterInit'](){const {editor:_0x34efd0}=this,{t:t}=_0x34efd0['locale'],_0x57d029=_0x34efd0['plugins']['get'](_0x581d35),{defaultPositions:_0x53a67a}=_0x3bc883;_0x57d029['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x34efd0['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x22018c=>{let _0xbdb254=_0x22018c['getFirstPosition']()?.['parent'];return _0xbdb254?.['is']('$text')&&(_0xbdb254=_0xbdb254['parent']),_0xbdb254?.['is']('element')?_0xbdb254['findAncestor'](_0x11e20d):null;},'positions':[_0x53a67a['southArrowNorth'],_0x53a67a['southArrowNorthMiddleWest'],_0x53a67a['southArrowNorthMiddleEast'],_0x53a67a['southArrowNorthWest'],_0x53a67a['southArrowNorthEast'],_0x53a67a['northArrowSouth'],_0x53a67a['northArrowSouthMiddleWest'],_0x53a67a['northArrowSouthMiddleEast'],_0x53a67a['northArrowSouthWest'],_0x53a67a['northArrowSouthEast'],_0x53a67a['viewportStickyNorth']]});}}
23
+ import{BalloonPanelView as _0x218881,ButtonView as _0x4873d6,ContextualBalloon as _0x416b0f,createDropdown as _0x3a6a44}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x35abb}from'ckeditor5/src/widget.js';import{Plugin as _0x3abf25}from'ckeditor5/src/core.js';import{IconFootnote as _0x1b7266,IconListStyleDecimal as _0x3dc0a5,IconListStyleDecimalLeadingZero as _0x1fb364,IconListStyleLowerLatin as _0x38ac60,IconListStyleLowerRoman as _0x314814,IconListStyleUpperLatin as _0x2cbdf5,IconListStyleUpperRoman as _0x546a76}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x2e042c}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x272049}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x3abf25{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x416b0f,_0x35abb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x53d3c9}=this,{componentFactory:_0x56c1ba}=_0x53d3c9['ui'];_0x53d3c9['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x56c1ba['add']('footnotesStyle',function(_0x10cd9f){return _0x1a9847=>{const {t:t}=_0x1a9847,_0x2fce33=_0x10cd9f['commands']['get']('footnotesStyle'),_0x3e12a7=_0x3a6a44(_0x1a9847),{buttonView:_0x1f2efd}=_0x3e12a7;return _0x3e12a7['class']='ck-footnotes-styles-dropdown',_0x3e12a7['bind']('isEnabled')['to'](_0x2fce33,'isEnabled'),_0x1f2efd['set']({'label':t('Footnotes\x20style'),'icon':_0x1b7266,'tooltip':!0x0}),_0x3e12a7['once']('change:isOpen',()=>{const _0x406da3=function({editor:_0x5945d6,dropdownView:_0x10002e}){const {t:t}=_0x5945d6['locale'],_0xfc53fd=t('Footnotes\x20definitions\x20styles'),_0x3d28c2=function(_0x268b1a){const t=_0x268b1a['locale']['t'],_0x3b49c6=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3dc0a5},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1fb364},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x314814},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x546a76},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x38ac60},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2cbdf5}];return _0x3b49c6['map'](function(_0x25478f){const _0x3147e5=_0x25478f['locale'];return({label:_0x14411a,icon:_0x73330d,tooltip:_0x2b8c27,style:_0x244092})=>{const _0x1b58ad=_0x25478f['commands']['get']('footnotesStyle'),_0x16bb39=new _0x4873d6(_0x3147e5);return _0x16bb39['set']({'label':_0x14411a,'icon':_0x73330d,'tooltip':_0x2b8c27}),_0x16bb39['bind']('isOn')['to'](_0x1b58ad,'value',_0x1c78b5=>_0x1c78b5===_0x244092),_0x16bb39['bind']('isEnabled')['to'](_0x1b58ad,'isEnabled'),_0x16bb39['on']('execute',()=>{_0x25478f['execute']('footnotesStyle',{'value':_0x244092}),_0x25478f['editing']['view']['focus']();}),_0x16bb39;};}(_0x268b1a));}(_0x5945d6),_0xf01908=new _0x2e042c(_0x5945d6['locale'],{'styleGridAriaLabel':_0xfc53fd,'styleButtonViews':_0x3d28c2}),_0x497338=_0x5945d6['commands']['get']('footnotesStart');return _0xf01908['startIndexFieldView']['bind']('isEnabled')['to'](_0x497338),_0xf01908['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x497338),_0xf01908['on']('footnotesListStart',(_0x19f5ee,_0x6e42c5)=>{_0x5945d6['execute']('footnotesStart',{'value':_0x6e42c5['startIndex']});}),_0xf01908['delegate']('execute')['to'](_0x10002e),_0xf01908;}({'editor':_0x10cd9f,'dropdownView':_0x3e12a7});_0x3e12a7['panelView']['children']['add'](_0x406da3);}),_0x3e12a7;};}(_0x53d3c9));}['afterInit'](){const {editor:_0x39d170}=this,{t:t}=_0x39d170['locale'],_0x4e4159=_0x39d170['plugins']['get'](_0x35abb),{defaultPositions:_0x4d2f88}=_0x218881;_0x4e4159['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x39d170['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4325a0=>{let _0x16fd10=_0x4325a0['getFirstPosition']()?.['parent'];return _0x16fd10?.['is']('$text')&&(_0x16fd10=_0x16fd10['parent']),_0x16fd10?.['is']('element')?_0x16fd10['findAncestor'](_0x272049):null;},'positions':[_0x4d2f88['southArrowNorth'],_0x4d2f88['southArrowNorthMiddleWest'],_0x4d2f88['southArrowNorthMiddleEast'],_0x4d2f88['southArrowNorthWest'],_0x4d2f88['southArrowNorthEast'],_0x4d2f88['northArrowSouth'],_0x4d2f88['northArrowSouthMiddleWest'],_0x4d2f88['northArrowSouthMiddleEast'],_0x4d2f88['northArrowSouthWest'],_0x4d2f88['northArrowSouthEast'],_0x4d2f88['viewportStickyNorth']]});}}