@ckeditor/ckeditor5-footnotes 47.5.0-alpha.4 → 47.5.0-alpha.5

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-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["4vPaHqx","values","$graveyard","$text","push","createRangeOn","root","length","128177YjAxKI","flat","nodeAfter","add","rootName","_getElementKey","reset","18dTXtgz","delete","_elementName","get","from","getItems","insert","remove","_model","862023htXSMC","name","8xemtgq","7619967gxFZWg","6513130pOWlZH","_trackedElements","slice","getElementKey","has","element","getChanges","set","attributes","type","40444unQdIa","clear","elementName","7919160zxStvK","position","1896770GyRjqS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=327]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(677454===-parseInt(e(336))/1*(parseInt(e(330))/2)+parseInt(e(360))/3*(parseInt(e(362))/4)+-parseInt(e(335))/5+-parseInt(e(351))/6*(-parseInt(e(344))/7)+-parseInt(e(333))/8+parseInt(e(363))/9+parseInt(e(364))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(359)];[a(353)];[a(349)];[a(365)]=new Map;constructor(t,e){const o=a;this[o(359)]=t,this[o(353)]=e[o(332)],this[o(349)]=e[o(367)]}[a(350)](){const t=a;this[t(365)][t(331)]()}[a(370)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(357)===i[e(329)]&&e(339)!==i[e(361)]&&i[e(334)][e(346)]){const t=this[e(359)][e(341)](i[e(334)][e(346)]);for(const o of t[e(356)]()){if(!o.is(e(369),this[e(353)]))continue;const t=this[e(349)](o);n[e(368)](t)||n[e(327)](t,[]),n[e(354)](t)[e(340)](o)}}if(e(358)===i[e(329)]&&i[e(361)]===this[e(353)]){const t=this[e(349)]({getAttribute:t=>i[e(328)][e(354)](t)});o[e(347)](t)}}for(const[t,n]of this[e(365)])e(338)===n[e(342)][e(348)]&&o[e(347)](t);for(const t of o)this[e(365)][e(352)](t);for(const[t,o]of n)this[e(365)][e(327)](t,o[o[e(343)]-1]);const i=new Set;for(const[t,s]of n)o[e(368)](t)&&(i[e(347)](s[0]),s[e(343)]>1?n[e(327)](t,s[e(366)](1)):n[e(352)](t),o[e(352)](t));return{removed:Array[e(355)](o),inserted:Array[e(355)](n[e(337)]())[e(345)](),moved:Array[e(355)](i)}}}const f=u;function u(t,e){const o=h();return(u=function(t,e){return o[t-=266]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(938390===-parseInt(e(330))/1*(-parseInt(e(355))/2)+-parseInt(e(305))/3*(-parseInt(e(349))/4)+-parseInt(e(321))/5*(-parseInt(e(288))/6)+parseInt(e(314))/7*(-parseInt(e(273))/8)+-parseInt(e(310))/9+parseInt(e(275))/10+parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[f(346)]=[];[f(318)]=null;[f(301)]=null;[f(359)];[f(328)];[f(322)];static get[f(353)](){return f(274)}static get[f(327)](){return!0}static get[f(267)](){return!0}constructor(t){const e=f;super(t),this[e(359)]=new l(this[e(354)][e(287)],{elementName:e(339),getElementKey:()=>e(331)}),this[e(328)]=new l(this[e(354)][e(287)],{elementName:e(298),getElementKey:t=>t[e(292)](e(365))}),this[e(322)]=new l(this[e(354)][e(287)],{elementName:e(311),getElementKey:t=>t[e(292)](e(365))})}[f(340)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(323)][t(338)](e=>{const n=t,i=o[n(323)][n(308)][n(364)]();let s=!1;return this[n(334)](e,i)&&(s=!0),this[n(344)](e,i)&&(s=!0),this[n(294)](e,i)&&(s=!0),this[n(367)](e)&&(s=!0),this[n(313)](e)&&(s=!0),this[n(347)](e)&&(s=!0),s}),this[t(337)](o[t(323)],t(293),()=>{const e=t;o[e(362)]({isUndoable:!1},t=>{this[e(363)](t)})},{priority:t(317)}),this[t(337)](n,t(352),()=>{const e=t;this[e(346)]=[],this[e(359)][e(295)](),this[e(328)][e(295)](),this[e(322)][e(295)]()},{priority:t(285)})}[f(325)](){return this[f(318)]}[f(319)](t){const e=f;return this[e(346)][e(348)](e=>e.id===t)||null}[f(304)](){const t=f;return Array[t(300)](this[t(346)])}[f(283)](){return this[f(301)]}[f(315)](t){this[f(301)]=t}[f(279)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(346)][o(271)];i++)this[o(280)](t,i)&&(n=!0);return n}[f(366)](t,e){const o=f,n=t[o(345)](o(339),{});return t[o(361)](n,e),this[o(318)]=n,n}[f(363)](t){const e=f;if(!this[e(346)][e(271)]||this[e(318)])return;const o=this[e(346)][0][e(299)][e(357)],n=this[e(366)](t,o);for(const o of this[e(346)])o[e(316)][e(309)]||t[e(326)](o[e(316)],n,e(329));this[e(279)](t)}[f(334)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(359)][o(364)](e);if(r[o(271)]&&(this[o(318)]=r[0]),i[o(271)])if(i[o(271)]>1||this[o(318)]&&i[o(289)](t=>t!==this[o(318)])){const e=t[o(345)](o(339),{}),s=[];this[o(318)]&&s[o(343)](this[o(318)]),s[o(343)](...i),t[o(326)](e,s[0],o(336));for(const n of s)t[o(276)](t[o(333)](n),t[o(282)](e,o(329))),t[o(342)](n);this[o(318)]=e,this[o(279)](t),n=!0}else this[o(318)]=i[0];if(s[o(271)]&&o(320)===this[o(318)]?.[o(357)][o(269)]){for(const e of this[o(346)])t[o(342)](e[o(299)]),n=!0;this[o(346)]=[],this[o(318)]=null}return n}[f(344)](t,e){const o=f;let n=!1;const i=this[o(354)][o(350)][o(312)](o(358)),{inserted:s,moved:r}=this[o(322)][o(364)](e);for(const e of[...r,...s]){const s=e[o(292)](o(365)),r=this[o(319)](s);r&&(r[o(316)]=e),p(t,i,e)&&(n=!0)}return n}[f(294)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(328)][o(364)](e);for(const e of i)this[o(302)](t,e)&&(n=!0);for(const e of s)this[o(332)](t,e)&&(n=!0);for(const e of r)this[o(303)](t,e)&&(n=!0);return n}[f(313)](t){const e=f;if(!this[e(318)])return!1;let o=!1;if(this[e(318)][e(360)]!==this[e(346)][e(271)]){const n=[];for(const t of this[e(318)][e(341)]()){const i=t[e(292)](e(365));this[e(319)](i)||(n[e(286)](t),o=!0)}for(const o of n)t[e(342)](o)}const n=new Set,i=[];for(const t of this[e(318)][e(341)]()){const s=t[e(292)](e(365));n[e(270)](s)?(i[e(286)](t),o=!0):n[e(356)](s)}for(const o of i)t[e(342)](o);return this[e(318)][e(360)]||(t[e(342)](this[e(318)]),this[e(318)]=null,o=!0),o}[f(332)](t,e){const o=f;if(this[o(346)][o(348)](t=>t[o(299)]===e))return!1;let n=!1;const i=e[o(292)](o(365)),s=this[o(346)][o(272)](t=>t.id===i);-1!==s&&(t[o(342)](this[o(346)][s][o(299)]),this[o(346)][o(296)](s,1),n=!0);let r=this[o(318)]?function(t,e){const n=o;for(const o of t[n(341)]())if(o[n(292)](n(365))===e)return o;return null}(this[o(318)],i):null;r||(r=t[o(345)](o(311),{footnoteId:i}),this[o(318)]&&(t[o(326)](r,this[o(318)],o(329)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(354)][o(287)],this[o(346)],e);this[o(346)][o(296)](c,0,a);let l=c;return-1!==s&&(l=Math[o(351)](c,s)),this[o(279)](t,l)&&(n=!0),n}[f(302)](t,e){const o=f,n=this[o(346)][o(272)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(346)][n];return o(320)!==s[o(316)][o(357)][o(269)]&&(t[o(342)](s[o(316)]),i=!0),this[o(346)][o(296)](n,1),this[o(279)](t,n)&&(i=!0),i}[f(303)](t,e){const o=f,n=e[o(292)](o(365)),i=this[o(346)][o(272)](t=>t.id===n),s=this[o(346)][i];let r=!1;s[o(299)]=e,this[o(346)][o(296)](i,1);const a=m(this[o(354)][o(287)],this[o(346)],e);return this[o(346)][o(296)](a,0,s),this[o(279)](t,Math[o(351)](i,a))&&(r=!0),r}[f(280)](t,e){const o=f;if(!this[o(318)])return!1;const n=this[o(346)][e];let i;return i=this[o(301)]?this[o(301)]({footnote:n,container:this[o(318)],digits:String(this[o(346)][o(271)])[o(271)],value:e+1}):String(e+1),n[o(299)][o(292)](o(297))!=i&&(t[o(306)](o(297),i,n[o(299)]),!0)}[f(347)](t){const e=f;if(!this[e(318)]||this[e(346)][e(271)]<2)return!1;if(function(t,o){const n=e;if(t[n(271)]!==o[n(271)])return!1;for(let e=0;e<t[n(271)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(346)][e(335)](t=>t.id),Array[e(300)](this[e(318)][e(341)]())[e(335)](t=>t[e(292)](e(365)))))return!1;let o=!1;for(let n=0;n<this[e(346)][e(271)];n++){const i=this[e(346)][n],s=t[e(324)](i[e(316)]),r=t[e(282)](this[e(318)],n);s[e(290)](r)||(t[e(276)](t[e(291)](i[e(316)]),r),o=!0)}return o}[f(367)](t){const e=f;if(!this[e(346)][e(271)])return!1;const{model:o}=this[e(354)];let n=!1;for(let i=0;i<this[e(346)][e(271)]-1;i++){const s=this[e(346)][i],r=this[e(346)][i+1],a=o[e(324)](s[e(299)]),c=o[e(324)](r[e(299)]);e(284)===a[e(268)](c)&&(this[e(303)](t,s[e(299)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(360)])return!1;const i=n(e?281:307);return t[n(326)](t[n(345)](i),o),!0}function h(){const t=["footnotes.multiBlock","_footnoteDefsContainerTracker","childCount","append","enqueueChange","_ensureFootnotesDefinitionsContainerExists","getChanges","footnoteId","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesReferencesHaveProperOrder","5098654gDUpEP","isPremiumPlugin","compareWith","rootName","has","length","findIndex","56FQDtwF","FootnotesTracker","3904940PNpzrd","move","getRootNames","indexOf","_updateFootnotesCounters","_updateFootnoteRefCounter","paragraph","createPositionAt","getFootnotesFormatter","after","high","unshift","model","6AYuhSV","some","isEqual","createRangeOn","getAttribute","change:data","_handleFootnoteReferencesChanges","reset","splice","footnoteCounter","footnoteRef","reference","from","_footnoteFormatter","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","getFootnotes","1250655AylzvG","setAttribute","footnoteInlineContent","differ","parent","4856841NhHSIl","footnoteDefinition","get","_handleFootnotesDefinitionsObjectSync","1754312JMYfel","setFootnoteFormatter","definition","low","_footnotesDefinitions","getFootnote","$graveyard","5090270xWNWzf","_footnoteDefsTracker","document","createPositionBefore","getFootnotesDefinitionsObjectElement","insert","isOfficialPlugin","_footnoteRefsTracker","end","7831ocLVpN","singleton","_handleInsertedFootnoteReference","createRangeIn","_handleFootnotesDefinitionsObjectChanges","map","before","listenTo","registerPostFixer","footnotesDefinitions","init","getChildren","remove","push","_handleFootnoteDefinitionsChanges","createElement","_footnotes","_sortFootnoteDefinitions","find","12ymrYFj","config","min","set","pluginName","editor","28DCnFFb","add","root"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(271)])return 0;const i=t[n(324)](o);for(let o=0;o<e[n(271)];o++){const s=e[o],r=t[n(324)](s[n(299)]);if(n(336)===i[n(268)](r))return o}const s=o[n(357)];let r=-1;for(let t=e[n(271)]-1;t>=0;t--)if(e[t][n(299)][n(357)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(323)][n(277)](),c=a[n(278)](s[n(269)]),l=a[c+1];if(l)for(let t=0;t<e[n(271)];t++)if(e[t][n(299)][n(357)][n(269)]===l)return t;return e[n(271)]}const g=y;function w(){const t=["getFirstRange","selection","_getPositionToInsertFootnote","plugins","4085904BkUuHJ","change","isBlock","model","22PMLnNx","string","_moveSelectionToFootnoteDefinition","insertObject","3611090cPtzEv","test","3052044oxMTuY","418292OEjLTg","get","FootnotesEditing","insert-footnote-command-executed-with-invalid-id","getItems","createElement","footnoteRef","execute","editor","document","isObject","end","length","refresh","7HQcuTT","checkChild","footnoteId","153WKfwJp","11759124JlDPDJ","6362EefJDA","isEnabled","15mJDdSe","960145UZsPeq","12zttFzf"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=294]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(401005===-parseInt(e(329))/1*(parseInt(e(331))/2)+-parseInt(e(294))/3*(-parseInt(e(312))/4)+parseInt(e(295))/5*(-parseInt(e(296))/6)+parseInt(e(326))/7*(-parseInt(e(301))/8)+-parseInt(e(311))/9+-parseInt(e(309))/10+-parseInt(e(305))/11*(-parseInt(e(330))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(325)](){const t=g,e=this[t(320)][t(304)][t(321)][t(298)],o=this[t(299)](e);this[t(332)]=!!o}[g(319)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(321)],r=this[e(299)](s);if(!r)return;const a=o[e(300)][e(313)](e(314)),c=t?.[e(328)]??(0,i.uid)();!function(t){const o=e;return o(306)==typeof t&&t[o(324)]>0&&!/\s/[o(310)](t)&&!/^\d/[o(310)](t)}(c)?(0,i.logWarning)(e(315)):(n[e(302)](t=>{const o=e,i=t[o(317)](o(318),{footnoteId:c});n[o(308)](i,r,null)}),a[e(307)](c))}[g(299)](t){const e=g,{model:o}=this[e(320)],{schema:n}=o,i=t[e(297)]();for(const t of i[e(316)]())if(n[e(303)](t)||n[e(322)](t))return null;const s=i[e(323)];return n[e(327)](s,e(318))?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=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770508800;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const A=D;function T(){const t=["drop","listenTo","footnotesDefinitions","FootnotesClipboard","setAttribute","toData","_defineClipboardIntegration","push","clipboardInput","isOfficialPlugin","pluginName","8rqzslh","_insertEmptyFootnotesDefinitionsContainer","3nJwkts","113260DMsZQS","getFootnote","createElement","_handlePasteFootnotesDefinitions","insert","keys","reduce","toModel","flatMap","requires","element","footnoteId","getRanges","entries","getSelectedBlocks","isPremiumPlugin","3188ttcpdC","document","create","remove","76577hrTbUQ","footnotes.multiBlock","getFootnotes","hasAttribute","get","334146OEqtuD","2393586yzvBkm","end","data","string","cloneElement","length","root","selection","footnoteInlineContent","method","_handleCopyFootnotesDefinitions","getChildren","getAttribute","htmlProcessor","createRangeIn","footnoteRef","59283UrTAjS","config","dataTransfer","parse","toView","outputTransformation","stringify","396994QVYpOu","getFirstRange","getFootnotesDefinitionsObjectElement","includes","application/ckeditor5-footnotes","sourceEditorId","editing","change","definition","editor","from","append","setData","contentInsertion","find","footnoteDefinition","init","content","add","getData"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(103323===parseInt(e(198))/1+parseInt(e(144))/2*(-parseInt(e(177))/3)+parseInt(e(194))/4+parseInt(e(178))/5+-parseInt(e(120))/6+-parseInt(e(137))/7+parseInt(e(175))/8*(parseInt(e(121))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(174)](){return A(167)}static get[A(187)](){return[v,P.ClipboardPipeline]}static get[A(173)](){return!0}static get[A(193)](){return!0}[A(160)](){this[A(170)]()}[A(170)](){const t=A;this[t(131)](),this[t(181)]()}[A(131)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(119)](P.ClipboardPipeline),s=o[t(119)](d);this[t(165)](i,t(142),(o,i)=>{const r=t,a=N(n[r(135)](i[r(161)]));if(!a[r(126)])return;const c=s[r(117)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(158)](t=>t.id===o);if(i){const o=e[n(123)][n(141)](i[n(152)],{isClipboardPipeline:!0}),s=e[n(123)][n(134)][n(169)](o);t[i.id]=s}return t},Object[r(196)](null));i[r(139)][r(156)](r(148),JSON[r(143)](l))})}[A(181)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(150)],r=n[t(119)](P.ClipboardPipeline),a=n[t(119)](d),c=e[t(138)][t(119)](t(116));let l=null;this[t(165)](s[t(195)],t(172),(e,o)=>{const n=t,i=o[n(139)][n(163)](n(148));l=i?JSON[n(140)](i):null}),this[t(165)](r,t(157),(n,s)=>{const r=t,f=s[r(149)]===this[r(153)].id;f&&r(164)===s[r(130)]||o[r(151)](t=>{const n=r;let u=a[n(146)]();const d=!!u&&Array[n(154)](o[n(195)][n(128)][n(192)]())[n(147)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(188),e(136)))return!0;return!1}(o[n(135)](s[n(161)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(196)](null);for(const e of i[o(132)]())e.is(o(188),o(159))&&e[o(118)](o(189))&&(s[e[o(133)](o(189))]=t[o(125)](e,!0));return Object[o(183)](s)[o(126)]?s:null}(t,s[n(161)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(135)](e))n.is(o(188),o(166))&&i[o(171)](n);for(const e of i)t[o(197)](e)}(t,s[n(161)]),!l)return;const{selection:p}=o[n(195)],h=p[n(145)]()[n(127)];u&&!d||(u=L(t,s[n(161)]),u||=a[n(176)](t,h));const m=Array[n(154)](p[n(190)]())[n(186)](N),g=function(t,e,o){const s=n,r=Object[s(196)](null);for(const{item:n}of t[s(135)](e))if(n.is(s(188),s(136))){const e=n[s(133)](s(189));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(168)](s(189),r[e],n)}return r}(t,s[n(161)],t=>{const e=n;return!f||!!a[e(179)](t)&&!m[e(147)](t)});for(const[o,i]of Object[n(191)](l)){const s=g[o]||o;let r;if(n(124)!=typeof i)r=i,s!==o&&t[n(168)](n(189),s,r);else{r=t[n(180)](n(159),{footnoteId:s});const o=e[n(123)][n(134)][n(141)](i);let a;if(c)a=e[n(123)][n(185)](o,r);else{a=t[n(180)](n(129));const i=e[n(123)][n(185)](o,a);t[n(182)](i,a)}t[n(155)](a,r)}t[n(182)](r,u,n(122))}l=null})})}}function L(t,e){const o=A;for(const{item:n}of t[o(135)](e))if(n.is(o(188),o(166)))return n;return null}function N(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(188),e(136))&&o[e(162)](n[e(133)](e(189)));return Array[e(154)](o)}var V=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),z=o(102),U=o.n(z),B=o(123),W=o.n(B),q=o(741),H=o.n(q),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=H();K()(J.A,X);J.A&&J.A.locals&&J.A.locals;class G 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",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(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||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=$;function Y(){var t=["pluginName","7aszOkN","1635GfwsrH","210325nFoRPy","isPremiumPlugin","requires","Footnotes","2792UTOJCP","isOfficialPlugin","3087165NTVoGs","519446fqSQyz","16456581QJglMA","3767728AtvzqU","6187938rXIqNW"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=143]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(612641===-parseInt(e(145))/1+parseInt(e(152))/2+parseInt(e(144))/3*(-parseInt(e(149))/4)+parseInt(e(151))/5+-parseInt(e(155))/6+parseInt(e(143))/7*(-parseInt(e(154))/8)+parseInt(e(153))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Q(156)](){return Q(148)}static get[Q(147)](){return[v,_,G]}static get[Q(150)](){return!0}static get[Q(146)](){return!0}}const et=nt;function ot(){const t=["879750qIgpSk","lower-alpha","decimal-leading-zero","48587UxEWqM","upper-alpha","lower-latin","14936896vCZbdw","1394225NZsYXn","lower-roman","25369479Zujubs","726dxMMaZ","decimal","upper-latin","60fPlFSd","1206282YdlRJI","493340eQZOnD","upper-roman"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=284]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(980984===-parseInt(e(287))/1+-parseInt(e(294))/2+-parseInt(e(297))/3+-parseInt(e(293))/4*(-parseInt(e(295))/5)+-parseInt(e(290))/6*(-parseInt(e(300))/7)+-parseInt(e(286))/8+parseInt(e(289))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(291),et(299),et(285),et(292),et(298),et(284),et(288),et(296)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=445]})(t,e)}function at(){const t=["1072220ywNSZH","16wxwvjE","refresh","1069750omPqCf","18owGpNl","7307649viishP","setAttribute","includes","plugins","execute","12vUmzYw","value","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","5593fYpcFD","model","27802905mTyapp","isEnabled","change","get","8sGgEAR","178046bAzEGi","getAttribute","55FPWrrR","4518575hFMdXQ","6654aMetUj","footnotesListStyle"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(889594===parseInt(e(464))/1*(-parseInt(e(463))/2)+parseInt(e(447))/3*(-parseInt(e(470))/4)+-parseInt(e(467))/5+parseInt(e(468))/6*(parseInt(e(457))/7)+parseInt(e(471))/8*(parseInt(e(448))/9)+parseInt(e(446))/10*(-parseInt(e(466))/11)+parseInt(e(453))/12*(parseInt(e(459))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(445)](){const t=st,{editor:e}=this,o=e[t(451)][t(462)](d)[t(456)]();this[t(460)]=!!o,this[t(454)]=o?.[t(465)](t(469))??null}[st(452)]({value:t}){const e=st,{editor:o}=this,n=o[e(451)][e(462)](d),i=n[e(456)]();i&&it[e(450)](t)&&o[e(458)][e(461)](o=>{const s=e;o[s(449)](s(469),t,i),n[s(455)](o)})}}function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=442]})(t,e)}const ft=lt;function ut(){const t=["3310535UJRxzw","refresh","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","getAttribute","4157598RUlrSp","isEnabled","3856664Aavbtm","2mFzGXA","4sARyam","execute","975060SVBmbt","get","value","5443352qgWZgf","change","isInteger","21103956nrXskw","footnotesListStart","model","plugins","setAttribute","2162703zrbBYD"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(488630===parseInt(e(444))/1*(-parseInt(e(464))/2)+-parseInt(e(455))/3+parseInt(e(442))/4*(parseInt(e(456))/5)+-parseInt(e(461))/6+parseInt(e(463))/7+-parseInt(e(447))/8+parseInt(e(450))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[ft(457)](){const t=ft,{editor:e}=this,o=e[t(453)][t(445)](d)[t(458)]();this[t(462)]=!!o,this[t(446)]=o?.[t(460)](t(451))??null}[ft(443)]({value:t}){const e=ft,{editor:o}=this,n=o[e(453)][e(445)](d),i=n[e(458)]();i&&Number[e(449)](t)&&o[e(452)][e(448)](o=>{const s=e;o[s(454)](s(451),t,i),n[s(459)](o)})}}const pt=gt;function ht(){const t=["start","get","footnotes-list","upper-roman","insert","getChildren","12DdehKk","_formatFootnoteListValue","element:ol","consume","upper-alpha","attribute:footnotesListStart:footnotesDefinitions","createRangeOn","_defineFormatter","schema","from","isNaN","floor","downcast","setFootnoteFormatter","list-style-type","footnotes.footnotesProperties.defaultStartIndex","$text","setStyle","config","footnotesStyle","_definePostfixer","model","for","init","padStart","registerPostFixer","plugins","7418expqTM","3225669khsOAu","parent","element","setAttribute","nodeAfter","4130287tJgPUU","editor","upper-latin","decimal","85563bIlvCK","getChanges","max","5135916jHSNGU","_updateFootnotesCounters","getAttribute","parseInt","isPremiumPlugin","requires","_getDefaultListStyle","toLowerCase","toViewElement","pluginName","_getDefaultStartIndex","name","viewItem","add","lower-roman","228BXikYq","footnotesListStyle","upcast","commands","checkAttribute","removeStyle","fromCharCode","4576165PnxBga","footnotesDefinitions","lower-latin","find","getItems","removeAttribute","type","FootnotesPropertiesEditing","getStyle","decimal-leading-zero","3993810eBbteH","extend","define","modelCursor","hasAttribute","writer","_defineConverters","position","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","40cAfPwA","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","4EbzIaR","footnotesStart","hasClass","mapper","document","toUpperCase","footnotesListStart","item","33eWcGXR","lower-alpha","differ","consumable"];return(ht=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(662623===parseInt(e(156))/1*(parseInt(e(184))/2)+-parseInt(e(157))/3*(-parseInt(e(214))/4)+-parseInt(e(191))/5+parseInt(e(232))/6*(-parseInt(e(162))/7)+-parseInt(e(211))/8*(parseInt(e(166))/9)+-parseInt(e(201))/10+-parseInt(e(222))/11*(-parseInt(e(169))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(178)](){return pt(198)}static get[pt(174)](){return[v,d]}static get[pt(212)](){return!0}static get[pt(173)](){return!0}[pt(152)](){const t=pt,{editor:e}=this;e[t(147)][t(203)](t(213),t(165)),e[t(147)][t(203)](t(144),1),e[t(187)][t(182)](t(148),new ct(e)),e[t(187)][t(182)](t(215),new dt(e)),this[t(210)](),this[t(207)](),this[t(239)](),this[t(149)]()}[pt(210)](){const t=pt,{editor:e}=this,{schema:o}=e[t(150)];o[t(202)](t(192),{allowAttributes:[t(185),t(220)]})}[pt(207)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(151)](t(186))[t(182)](e=>{const o=t;e.on(o(234),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(204)]?.[s(158)];r[s(216)](s(228))&&a?.is(s(159),s(192))&&(function(t,e,o,n){const i=s;if(!n[i(188)](e,i(220)))return;let r=1;const a=o[i(225)][i(235)](t,{attributes:i(226)});if(a){const e=Number[i(172)](t[i(171)](i(226)),10);Number[i(242)](e)||(r=e)}!a&&e[i(205)](i(220))||o[i(206)][i(160)](i(220),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(188)](e,i(185)))return;let r=i(165),a=!1;if(o[i(225)][i(235)](t,{attributes:i(197)})){const e={1:i(165),a:i(223),A:i(236),i:i(183),I:i(229)}[t[i(171)](i(197))];e&&(r=e),a=!0}o[i(225)][i(235)](t,{styles:i(143)})&&(r=function(t){const e=i;switch(t){case e(223):return e(193);case e(236):return e(164);default:return t}}(t[i(199)](i(143))),a=!0),!a&&e[i(205)](i(185))||o[i(206)][i(160)](i(185),r,e)}(r,a,n,i))})}),o[t(151)](t(244))[t(182)](e=>{const o=t;e.on(o(237),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;null==r||1===r?n[i(206)][i(196)](i(226),s):n[i(206)][i(160)](i(226),String(r),s)}),e.on(o(209),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;r&&i(165)!==r?n[i(206)][i(146)](i(143),r,s):n[i(206)][i(189)](i(143),s)})})}[pt(149)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(155)][t(227)](d),i=this[t(175)](),s=this[t(179)]();o[t(218)][t(154)](e=>{const r=t,a=o[r(218)][r(224)][r(167)]();let c=!1;for(const t of a){if(r(230)!==t[r(197)]||r(145)===t[r(180)])continue;const n=o[r(238)](t[r(208)][r(161)]);for(const t of n[r(195)]())t.is(r(159),r(192))&&(!t[r(205)](r(220))&&o[r(240)][r(188)](t,r(220))&&(e[r(160)](r(220),s,t),c=!0),!t[r(205)](r(185))&&o[r(240)][r(188)](t,r(185))&&(e[r(160)](r(185),i,t),c=!0))}return c&&n[r(170)](e),c})}[pt(239)](){const t=pt,{editor:e}=this;e[t(155)][t(227)](d)[t(245)](e=>this[t(233)](e))}[pt(175)](){const t=pt;return this[t(163)][t(147)][t(227)](t(213))}[pt(179)](){const t=pt;return this[t(163)][t(147)][t(227)](t(144))}[pt(233)]({container:t,value:e,digits:o}){const n=pt,i=t[n(171)](n(185)),s=t[n(171)](n(220)),r=Math[n(243)](e)+(s??1)-1;switch(i){case n(200):return function(t,e){const o=n;return String(t)[o(153)](e,"0")}(r,Math[n(168)](2,o));case n(223):case n(193):return yt(r,!1);case n(236):case n(164):return yt(r,!0);case n(183):return vt(r,!1);case n(229):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht();return(gt=function(t,e){return o[t-=143]})(t,e)}function wt(t,e){const o=pt,n=e[o(177)](t);return Array[o(241)](n[o(231)]())[o(194)](t=>t.is(o(159),"ol")&&t[o(216)](o(228)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(190)](97+t)+n,i=Math[o(243)]((i-1)/26)}return e?n[o(219)]():n}const bt=[{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 vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(176)]()}class It 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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["1018kiWdfe","1235908UDIAcM","FootnotesProperties","pluginName","isOfficialPlugin","4807840FfBzdX","1480554iLxXTI","7LLaOrz","isPremiumPlugin","25JrkKOs","592434LQsMFo","1324467nEzbHP","requires","957704CVziyS","909loRZFm"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=214]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(272465===-parseInt(e(226))/1*(-parseInt(e(227))/2)+-parseInt(e(223))/3+parseInt(e(228))/4+parseInt(e(221))/5*(-parseInt(e(222))/6)+-parseInt(e(219))/7*(-parseInt(e(225))/8)+-parseInt(e(218))/9+parseInt(e(217))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(215)](){return xt(214)}static get[xt(224)](){return[mt,Ft]}static get[xt(216)](){return!0}static get[xt(220)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=173]})(t,e)}function Tt(){var t=["2010162PDJkst","7lyEehe","326608rlEUaQ","23810bKJRaP","162VHqjuo","4157335XfGvav","11860hdoUwE","3448716tNAukk","3688824LvcUWS","142Hrmgbg"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(796733===parseInt(e(173))/1*(parseInt(e(176))/2)+parseInt(e(175))/3+-parseInt(e(174))/4+-parseInt(e(182))/5+parseInt(e(177))/6+-parseInt(e(178))/7*(-parseInt(e(179))/8)+-parseInt(e(181))/9*(-parseInt(e(180))/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),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["4vPaHqx","values","$graveyard","$text","push","createRangeOn","root","length","128177YjAxKI","flat","nodeAfter","add","rootName","_getElementKey","reset","18dTXtgz","delete","_elementName","get","from","getItems","insert","remove","_model","862023htXSMC","name","8xemtgq","7619967gxFZWg","6513130pOWlZH","_trackedElements","slice","getElementKey","has","element","getChanges","set","attributes","type","40444unQdIa","clear","elementName","7919160zxStvK","position","1896770GyRjqS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=327]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(677454===-parseInt(e(336))/1*(parseInt(e(330))/2)+parseInt(e(360))/3*(parseInt(e(362))/4)+-parseInt(e(335))/5+-parseInt(e(351))/6*(-parseInt(e(344))/7)+-parseInt(e(333))/8+parseInt(e(363))/9+parseInt(e(364))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(359)];[a(353)];[a(349)];[a(365)]=new Map;constructor(t,e){const o=a;this[o(359)]=t,this[o(353)]=e[o(332)],this[o(349)]=e[o(367)]}[a(350)](){const t=a;this[t(365)][t(331)]()}[a(370)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(357)===i[e(329)]&&e(339)!==i[e(361)]&&i[e(334)][e(346)]){const t=this[e(359)][e(341)](i[e(334)][e(346)]);for(const o of t[e(356)]()){if(!o.is(e(369),this[e(353)]))continue;const t=this[e(349)](o);n[e(368)](t)||n[e(327)](t,[]),n[e(354)](t)[e(340)](o)}}if(e(358)===i[e(329)]&&i[e(361)]===this[e(353)]){const t=this[e(349)]({getAttribute:t=>i[e(328)][e(354)](t)});o[e(347)](t)}}for(const[t,n]of this[e(365)])e(338)===n[e(342)][e(348)]&&o[e(347)](t);for(const t of o)this[e(365)][e(352)](t);for(const[t,o]of n)this[e(365)][e(327)](t,o[o[e(343)]-1]);const i=new Set;for(const[t,s]of n)o[e(368)](t)&&(i[e(347)](s[0]),s[e(343)]>1?n[e(327)](t,s[e(366)](1)):n[e(352)](t),o[e(352)](t));return{removed:Array[e(355)](o),inserted:Array[e(355)](n[e(337)]())[e(345)](),moved:Array[e(355)](i)}}}const u=f;function f(t,e){const o=p();return(f=function(t,e){return o[t-=266]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(938390===-parseInt(e(330))/1*(-parseInt(e(355))/2)+-parseInt(e(305))/3*(-parseInt(e(349))/4)+-parseInt(e(321))/5*(-parseInt(e(288))/6)+parseInt(e(314))/7*(-parseInt(e(273))/8)+-parseInt(e(310))/9+parseInt(e(275))/10+parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[u(346)]=[];[u(318)]=null;[u(301)]=null;[u(359)];[u(328)];[u(322)];static get[u(353)](){return u(274)}static get[u(327)](){return!0}static get[u(267)](){return!0}constructor(t){const e=u;super(t),this[e(359)]=new l(this[e(354)][e(287)],{elementName:e(339),getElementKey:()=>e(331)}),this[e(328)]=new l(this[e(354)][e(287)],{elementName:e(298),getElementKey:t=>t[e(292)](e(365))}),this[e(322)]=new l(this[e(354)][e(287)],{elementName:e(311),getElementKey:t=>t[e(292)](e(365))})}[u(340)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(323)][t(338)](e=>{const n=t,i=o[n(323)][n(308)][n(364)]();let s=!1;return this[n(334)](e,i)&&(s=!0),this[n(344)](e,i)&&(s=!0),this[n(294)](e,i)&&(s=!0),this[n(367)](e)&&(s=!0),this[n(313)](e)&&(s=!0),this[n(347)](e)&&(s=!0),s}),this[t(337)](o[t(323)],t(293),()=>{const e=t;o[e(362)]({isUndoable:!1},t=>{this[e(363)](t)})},{priority:t(317)}),this[t(337)](n,t(352),()=>{const e=t;this[e(346)]=[],this[e(359)][e(295)](),this[e(328)][e(295)](),this[e(322)][e(295)]()},{priority:t(285)})}[u(325)](){return this[u(318)]}[u(319)](t){const e=u;return this[e(346)][e(348)](e=>e.id===t)||null}[u(304)](){const t=u;return Array[t(300)](this[t(346)])}[u(283)](){return this[u(301)]}[u(315)](t){this[u(301)]=t}[u(279)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(346)][o(271)];i++)this[o(280)](t,i)&&(n=!0);return n}[u(366)](t,e){const o=u,n=t[o(345)](o(339),{});return t[o(361)](n,e),this[o(318)]=n,n}[u(363)](t){const e=u;if(!this[e(346)][e(271)]||this[e(318)])return;const o=this[e(346)][0][e(299)][e(357)],n=this[e(366)](t,o);for(const o of this[e(346)])o[e(316)][e(309)]||t[e(326)](o[e(316)],n,e(329));this[e(279)](t)}[u(334)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(359)][o(364)](e);if(r[o(271)]&&(this[o(318)]=r[0]),i[o(271)])if(i[o(271)]>1||this[o(318)]&&i[o(289)](t=>t!==this[o(318)])){const e=t[o(345)](o(339),{}),s=[];this[o(318)]&&s[o(343)](this[o(318)]),s[o(343)](...i),t[o(326)](e,s[0],o(336));for(const n of s)t[o(276)](t[o(333)](n),t[o(282)](e,o(329))),t[o(342)](n);this[o(318)]=e,this[o(279)](t),n=!0}else this[o(318)]=i[0];if(s[o(271)]&&o(320)===this[o(318)]?.[o(357)][o(269)]){for(const e of this[o(346)])t[o(342)](e[o(299)]),n=!0;this[o(346)]=[],this[o(318)]=null}return n}[u(344)](t,e){const o=u;let n=!1;const i=this[o(354)][o(350)][o(312)](o(358)),{inserted:s,moved:r}=this[o(322)][o(364)](e);for(const e of[...r,...s]){const s=e[o(292)](o(365)),r=this[o(319)](s);r&&(r[o(316)]=e),h(t,i,e)&&(n=!0)}return n}[u(294)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(328)][o(364)](e);for(const e of i)this[o(302)](t,e)&&(n=!0);for(const e of s)this[o(332)](t,e)&&(n=!0);for(const e of r)this[o(303)](t,e)&&(n=!0);return n}[u(313)](t){const e=u;if(!this[e(318)])return!1;let o=!1;if(this[e(318)][e(360)]!==this[e(346)][e(271)]){const n=[];for(const t of this[e(318)][e(341)]()){const i=t[e(292)](e(365));this[e(319)](i)||(n[e(286)](t),o=!0)}for(const o of n)t[e(342)](o)}const n=new Set,i=[];for(const t of this[e(318)][e(341)]()){const s=t[e(292)](e(365));n[e(270)](s)?(i[e(286)](t),o=!0):n[e(356)](s)}for(const o of i)t[e(342)](o);return this[e(318)][e(360)]||(t[e(342)](this[e(318)]),this[e(318)]=null,o=!0),o}[u(332)](t,e){const o=u;if(this[o(346)][o(348)](t=>t[o(299)]===e))return!1;let n=!1;const i=e[o(292)](o(365)),s=this[o(346)][o(272)](t=>t.id===i);-1!==s&&(t[o(342)](this[o(346)][s][o(299)]),this[o(346)][o(296)](s,1),n=!0);let r=this[o(318)]?function(t,e){const n=o;for(const o of t[n(341)]())if(o[n(292)](n(365))===e)return o;return null}(this[o(318)],i):null;r||(r=t[o(345)](o(311),{footnoteId:i}),this[o(318)]&&(t[o(326)](r,this[o(318)],o(329)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(354)][o(287)],this[o(346)],e);this[o(346)][o(296)](c,0,a);let l=c;return-1!==s&&(l=Math[o(351)](c,s)),this[o(279)](t,l)&&(n=!0),n}[u(302)](t,e){const o=u,n=this[o(346)][o(272)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(346)][n];return o(320)!==s[o(316)][o(357)][o(269)]&&(t[o(342)](s[o(316)]),i=!0),this[o(346)][o(296)](n,1),this[o(279)](t,n)&&(i=!0),i}[u(303)](t,e){const o=u,n=e[o(292)](o(365)),i=this[o(346)][o(272)](t=>t.id===n),s=this[o(346)][i];let r=!1;s[o(299)]=e,this[o(346)][o(296)](i,1);const a=m(this[o(354)][o(287)],this[o(346)],e);return this[o(346)][o(296)](a,0,s),this[o(279)](t,Math[o(351)](i,a))&&(r=!0),r}[u(280)](t,e){const o=u;if(!this[o(318)])return!1;const n=this[o(346)][e];let i;return i=this[o(301)]?this[o(301)]({footnote:n,container:this[o(318)],digits:String(this[o(346)][o(271)])[o(271)],value:e+1}):String(e+1),n[o(299)][o(292)](o(297))!=i&&(t[o(306)](o(297),i,n[o(299)]),!0)}[u(347)](t){const e=u;if(!this[e(318)]||this[e(346)][e(271)]<2)return!1;if(function(t,o){const n=e;if(t[n(271)]!==o[n(271)])return!1;for(let e=0;e<t[n(271)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(346)][e(335)](t=>t.id),Array[e(300)](this[e(318)][e(341)]())[e(335)](t=>t[e(292)](e(365)))))return!1;let o=!1;for(let n=0;n<this[e(346)][e(271)];n++){const i=this[e(346)][n],s=t[e(324)](i[e(316)]),r=t[e(282)](this[e(318)],n);s[e(290)](r)||(t[e(276)](t[e(291)](i[e(316)]),r),o=!0)}return o}[u(367)](t){const e=u;if(!this[e(346)][e(271)])return!1;const{model:o}=this[e(354)];let n=!1;for(let i=0;i<this[e(346)][e(271)]-1;i++){const s=this[e(346)][i],r=this[e(346)][i+1],a=o[e(324)](s[e(299)]),c=o[e(324)](r[e(299)]);e(284)===a[e(268)](c)&&(this[e(303)](t,s[e(299)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(360)])return!1;const i=n(e?281:307);return t[n(326)](t[n(345)](i),o),!0}function p(){const t=["footnotes.multiBlock","_footnoteDefsContainerTracker","childCount","append","enqueueChange","_ensureFootnotesDefinitionsContainerExists","getChanges","footnoteId","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesReferencesHaveProperOrder","5098654gDUpEP","isPremiumPlugin","compareWith","rootName","has","length","findIndex","56FQDtwF","FootnotesTracker","3904940PNpzrd","move","getRootNames","indexOf","_updateFootnotesCounters","_updateFootnoteRefCounter","paragraph","createPositionAt","getFootnotesFormatter","after","high","unshift","model","6AYuhSV","some","isEqual","createRangeOn","getAttribute","change:data","_handleFootnoteReferencesChanges","reset","splice","footnoteCounter","footnoteRef","reference","from","_footnoteFormatter","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","getFootnotes","1250655AylzvG","setAttribute","footnoteInlineContent","differ","parent","4856841NhHSIl","footnoteDefinition","get","_handleFootnotesDefinitionsObjectSync","1754312JMYfel","setFootnoteFormatter","definition","low","_footnotesDefinitions","getFootnote","$graveyard","5090270xWNWzf","_footnoteDefsTracker","document","createPositionBefore","getFootnotesDefinitionsObjectElement","insert","isOfficialPlugin","_footnoteRefsTracker","end","7831ocLVpN","singleton","_handleInsertedFootnoteReference","createRangeIn","_handleFootnotesDefinitionsObjectChanges","map","before","listenTo","registerPostFixer","footnotesDefinitions","init","getChildren","remove","push","_handleFootnoteDefinitionsChanges","createElement","_footnotes","_sortFootnoteDefinitions","find","12ymrYFj","config","min","set","pluginName","editor","28DCnFFb","add","root"];return(p=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(271)])return 0;const i=t[n(324)](o);for(let o=0;o<e[n(271)];o++){const s=e[o],r=t[n(324)](s[n(299)]);if(n(336)===i[n(268)](r))return o}const s=o[n(357)];let r=-1;for(let t=e[n(271)]-1;t>=0;t--)if(e[t][n(299)][n(357)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(323)][n(277)](),c=a[n(278)](s[n(269)]),l=a[c+1];if(l)for(let t=0;t<e[n(271)];t++)if(e[t][n(299)][n(357)][n(269)]===l)return t;return e[n(271)]}const g=y;function w(){const t=["getFirstRange","selection","_getPositionToInsertFootnote","plugins","4085904BkUuHJ","change","isBlock","model","22PMLnNx","string","_moveSelectionToFootnoteDefinition","insertObject","3611090cPtzEv","test","3052044oxMTuY","418292OEjLTg","get","FootnotesEditing","insert-footnote-command-executed-with-invalid-id","getItems","createElement","footnoteRef","execute","editor","document","isObject","end","length","refresh","7HQcuTT","checkChild","footnoteId","153WKfwJp","11759124JlDPDJ","6362EefJDA","isEnabled","15mJDdSe","960145UZsPeq","12zttFzf"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=294]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(401005===-parseInt(e(329))/1*(parseInt(e(331))/2)+-parseInt(e(294))/3*(-parseInt(e(312))/4)+parseInt(e(295))/5*(-parseInt(e(296))/6)+parseInt(e(326))/7*(-parseInt(e(301))/8)+-parseInt(e(311))/9+-parseInt(e(309))/10+-parseInt(e(305))/11*(-parseInt(e(330))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(325)](){const t=g,e=this[t(320)][t(304)][t(321)][t(298)],o=this[t(299)](e);this[t(332)]=!!o}[g(319)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(321)],r=this[e(299)](s);if(!r)return;const a=o[e(300)][e(313)](e(314)),c=t?.[e(328)]??(0,i.uid)();!function(t){const o=e;return o(306)==typeof t&&t[o(324)]>0&&!/\s/[o(310)](t)&&!/^\d/[o(310)](t)}(c)?(0,i.logWarning)(e(315)):(n[e(302)](t=>{const o=e,i=t[o(317)](o(318),{footnoteId:c});n[o(308)](i,r,null)}),a[e(307)](c))}[g(299)](t){const e=g,{model:o}=this[e(320)],{schema:n}=o,i=t[e(297)]();for(const t of i[e(316)]())if(n[e(303)](t)||n[e(322)](t))return null;const s=i[e(323)];return n[e(327)](s,e(318))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770595200;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const A=D;function T(){const t=["drop","listenTo","footnotesDefinitions","FootnotesClipboard","setAttribute","toData","_defineClipboardIntegration","push","clipboardInput","isOfficialPlugin","pluginName","8rqzslh","_insertEmptyFootnotesDefinitionsContainer","3nJwkts","113260DMsZQS","getFootnote","createElement","_handlePasteFootnotesDefinitions","insert","keys","reduce","toModel","flatMap","requires","element","footnoteId","getRanges","entries","getSelectedBlocks","isPremiumPlugin","3188ttcpdC","document","create","remove","76577hrTbUQ","footnotes.multiBlock","getFootnotes","hasAttribute","get","334146OEqtuD","2393586yzvBkm","end","data","string","cloneElement","length","root","selection","footnoteInlineContent","method","_handleCopyFootnotesDefinitions","getChildren","getAttribute","htmlProcessor","createRangeIn","footnoteRef","59283UrTAjS","config","dataTransfer","parse","toView","outputTransformation","stringify","396994QVYpOu","getFirstRange","getFootnotesDefinitionsObjectElement","includes","application/ckeditor5-footnotes","sourceEditorId","editing","change","definition","editor","from","append","setData","contentInsertion","find","footnoteDefinition","init","content","add","getData"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(103323===parseInt(e(198))/1+parseInt(e(144))/2*(-parseInt(e(177))/3)+parseInt(e(194))/4+parseInt(e(178))/5+-parseInt(e(120))/6+-parseInt(e(137))/7+parseInt(e(175))/8*(parseInt(e(121))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(174)](){return A(167)}static get[A(187)](){return[v,P.ClipboardPipeline]}static get[A(173)](){return!0}static get[A(193)](){return!0}[A(160)](){this[A(170)]()}[A(170)](){const t=A;this[t(131)](),this[t(181)]()}[A(131)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(119)](P.ClipboardPipeline),s=o[t(119)](d);this[t(165)](i,t(142),(o,i)=>{const r=t,a=O(n[r(135)](i[r(161)]));if(!a[r(126)])return;const c=s[r(117)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(158)](t=>t.id===o);if(i){const o=e[n(123)][n(141)](i[n(152)],{isClipboardPipeline:!0}),s=e[n(123)][n(134)][n(169)](o);t[i.id]=s}return t},Object[r(196)](null));i[r(139)][r(156)](r(148),JSON[r(143)](l))})}[A(181)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(150)],r=n[t(119)](P.ClipboardPipeline),a=n[t(119)](d),c=e[t(138)][t(119)](t(116));let l=null;this[t(165)](s[t(195)],t(172),(e,o)=>{const n=t,i=o[n(139)][n(163)](n(148));l=i?JSON[n(140)](i):null}),this[t(165)](r,t(157),(n,s)=>{const r=t,u=s[r(149)]===this[r(153)].id;u&&r(164)===s[r(130)]||o[r(151)](t=>{const n=r;let f=a[n(146)]();const d=!!f&&Array[n(154)](o[n(195)][n(128)][n(192)]())[n(147)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(188),e(136)))return!0;return!1}(o[n(135)](s[n(161)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(196)](null);for(const e of i[o(132)]())e.is(o(188),o(159))&&e[o(118)](o(189))&&(s[e[o(133)](o(189))]=t[o(125)](e,!0));return Object[o(183)](s)[o(126)]?s:null}(t,s[n(161)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(135)](e))n.is(o(188),o(166))&&i[o(171)](n);for(const e of i)t[o(197)](e)}(t,s[n(161)]),!l)return;const{selection:h}=o[n(195)],p=h[n(145)]()[n(127)];f&&!d||(f=L(t,s[n(161)]),f||=a[n(176)](t,p));const m=Array[n(154)](h[n(190)]())[n(186)](O),g=function(t,e,o){const s=n,r=Object[s(196)](null);for(const{item:n}of t[s(135)](e))if(n.is(s(188),s(136))){const e=n[s(133)](s(189));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(168)](s(189),r[e],n)}return r}(t,s[n(161)],t=>{const e=n;return!u||!!a[e(179)](t)&&!m[e(147)](t)});for(const[o,i]of Object[n(191)](l)){const s=g[o]||o;let r;if(n(124)!=typeof i)r=i,s!==o&&t[n(168)](n(189),s,r);else{r=t[n(180)](n(159),{footnoteId:s});const o=e[n(123)][n(134)][n(141)](i);let a;if(c)a=e[n(123)][n(185)](o,r);else{a=t[n(180)](n(129));const i=e[n(123)][n(185)](o,a);t[n(182)](i,a)}t[n(155)](a,r)}t[n(182)](r,f,n(122))}l=null})})}}function L(t,e){const o=A;for(const{item:n}of t[o(135)](e))if(n.is(o(188),o(166)))return n;return null}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(188),e(136))&&o[e(162)](n[e(133)](e(189)));return Array[e(154)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),z=o(102),U=o.n(z),B=o(123),W=o.n(B),H=o(741),q=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=q();K()(J.A,X);J.A&&J.A.locals&&J.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,V.ButtonView)),e.add("menuBar:insertFootnote",Y(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||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof 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 Z=$;function Q(){var t=["pluginName","7aszOkN","1635GfwsrH","210325nFoRPy","isPremiumPlugin","requires","Footnotes","2792UTOJCP","isOfficialPlugin","3087165NTVoGs","519446fqSQyz","16456581QJglMA","3767728AtvzqU","6187938rXIqNW"];return(Q=function(){return t})()}function $(t,e){var o=Q();return($=function(t,e){return o[t-=143]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(612641===-parseInt(e(145))/1+parseInt(e(152))/2+parseInt(e(144))/3*(-parseInt(e(149))/4)+parseInt(e(151))/5+-parseInt(e(155))/6+parseInt(e(143))/7*(-parseInt(e(154))/8)+parseInt(e(153))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class tt extends t.Plugin{static get[Z(156)](){return Z(148)}static get[Z(147)](){return[v,_,G]}static get[Z(150)](){return!0}static get[Z(146)](){return!0}}const et=nt;function ot(){const t=["879750qIgpSk","lower-alpha","decimal-leading-zero","48587UxEWqM","upper-alpha","lower-latin","14936896vCZbdw","1394225NZsYXn","lower-roman","25369479Zujubs","726dxMMaZ","decimal","upper-latin","60fPlFSd","1206282YdlRJI","493340eQZOnD","upper-roman"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=284]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(980984===-parseInt(e(287))/1+-parseInt(e(294))/2+-parseInt(e(297))/3+-parseInt(e(293))/4*(-parseInt(e(295))/5)+-parseInt(e(290))/6*(-parseInt(e(300))/7)+-parseInt(e(286))/8+parseInt(e(289))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(291),et(299),et(285),et(292),et(298),et(284),et(288),et(296)],st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=190]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(105863===parseInt(e(201))/1+-parseInt(e(211))/2+parseInt(e(200))/3*(parseInt(e(207))/4)+parseInt(e(194))/5*(parseInt(e(195))/6)+-parseInt(e(196))/7+parseInt(e(208))/8*(parseInt(e(190))/9)+-parseInt(e(210))/10*(-parseInt(e(209))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(213)](){const t=st,{editor:e}=this,o=e[t(197)][t(198)](d)[t(212)]();this[t(214)]=!!o,this[t(199)]=o?.[t(192)](t(204))??null}[st(206)]({value:t}){const e=st,{editor:o}=this,n=o[e(197)][e(198)](d),i=n[e(212)]();i&&it[e(202)](t)&&o[e(205)][e(193)](o=>{const s=e;o[s(191)](s(204),t,i),n[s(203)](o)})}}function ct(){const t=["106536pwFCTL","663313NwKGER","plugins","get","value","60PBRfok","7829RNsuGO","includes","_updateFootnotesCounters","footnotesListStyle","model","execute","12908YUhdAV","84472Mcjtuh","44DMrIGk","568220vfanTh","325724pOmILm","getFootnotesDefinitionsObjectElement","refresh","isEnabled","9ypHUUh","setAttribute","getAttribute","change","15RWiYoi"];return(ct=function(){return t})()}function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=442]})(t,e)}const ut=lt;function ft(){const t=["3310535UJRxzw","refresh","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","getAttribute","4157598RUlrSp","isEnabled","3856664Aavbtm","2mFzGXA","4sARyam","execute","975060SVBmbt","get","value","5443352qgWZgf","change","isInteger","21103956nrXskw","footnotesListStart","model","plugins","setAttribute","2162703zrbBYD"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(488630===parseInt(e(444))/1*(-parseInt(e(464))/2)+-parseInt(e(455))/3+parseInt(e(442))/4*(parseInt(e(456))/5)+-parseInt(e(461))/6+parseInt(e(463))/7+-parseInt(e(447))/8+parseInt(e(450))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[ut(457)](){const t=ut,{editor:e}=this,o=e[t(453)][t(445)](d)[t(458)]();this[t(462)]=!!o,this[t(446)]=o?.[t(460)](t(451))??null}[ut(443)]({value:t}){const e=ut,{editor:o}=this,n=o[e(453)][e(445)](d),i=n[e(458)]();i&&Number[e(449)](t)&&o[e(452)][e(448)](o=>{const s=e;o[s(454)](s(451),t,i),n[s(459)](o)})}}const ht=gt;function pt(){const t=["start","get","footnotes-list","upper-roman","insert","getChildren","12DdehKk","_formatFootnoteListValue","element:ol","consume","upper-alpha","attribute:footnotesListStart:footnotesDefinitions","createRangeOn","_defineFormatter","schema","from","isNaN","floor","downcast","setFootnoteFormatter","list-style-type","footnotes.footnotesProperties.defaultStartIndex","$text","setStyle","config","footnotesStyle","_definePostfixer","model","for","init","padStart","registerPostFixer","plugins","7418expqTM","3225669khsOAu","parent","element","setAttribute","nodeAfter","4130287tJgPUU","editor","upper-latin","decimal","85563bIlvCK","getChanges","max","5135916jHSNGU","_updateFootnotesCounters","getAttribute","parseInt","isPremiumPlugin","requires","_getDefaultListStyle","toLowerCase","toViewElement","pluginName","_getDefaultStartIndex","name","viewItem","add","lower-roman","228BXikYq","footnotesListStyle","upcast","commands","checkAttribute","removeStyle","fromCharCode","4576165PnxBga","footnotesDefinitions","lower-latin","find","getItems","removeAttribute","type","FootnotesPropertiesEditing","getStyle","decimal-leading-zero","3993810eBbteH","extend","define","modelCursor","hasAttribute","writer","_defineConverters","position","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","40cAfPwA","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","4EbzIaR","footnotesStart","hasClass","mapper","document","toUpperCase","footnotesListStart","item","33eWcGXR","lower-alpha","differ","consumable"];return(pt=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(662623===parseInt(e(156))/1*(parseInt(e(184))/2)+-parseInt(e(157))/3*(-parseInt(e(214))/4)+-parseInt(e(191))/5+parseInt(e(232))/6*(-parseInt(e(162))/7)+-parseInt(e(211))/8*(parseInt(e(166))/9)+-parseInt(e(201))/10+-parseInt(e(222))/11*(-parseInt(e(169))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(178)](){return ht(198)}static get[ht(174)](){return[v,d]}static get[ht(212)](){return!0}static get[ht(173)](){return!0}[ht(152)](){const t=ht,{editor:e}=this;e[t(147)][t(203)](t(213),t(165)),e[t(147)][t(203)](t(144),1),e[t(187)][t(182)](t(148),new at(e)),e[t(187)][t(182)](t(215),new dt(e)),this[t(210)](),this[t(207)](),this[t(239)](),this[t(149)]()}[ht(210)](){const t=ht,{editor:e}=this,{schema:o}=e[t(150)];o[t(202)](t(192),{allowAttributes:[t(185),t(220)]})}[ht(207)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(151)](t(186))[t(182)](e=>{const o=t;e.on(o(234),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(204)]?.[s(158)];r[s(216)](s(228))&&a?.is(s(159),s(192))&&(function(t,e,o,n){const i=s;if(!n[i(188)](e,i(220)))return;let r=1;const a=o[i(225)][i(235)](t,{attributes:i(226)});if(a){const e=Number[i(172)](t[i(171)](i(226)),10);Number[i(242)](e)||(r=e)}!a&&e[i(205)](i(220))||o[i(206)][i(160)](i(220),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(188)](e,i(185)))return;let r=i(165),a=!1;if(o[i(225)][i(235)](t,{attributes:i(197)})){const e={1:i(165),a:i(223),A:i(236),i:i(183),I:i(229)}[t[i(171)](i(197))];e&&(r=e),a=!0}o[i(225)][i(235)](t,{styles:i(143)})&&(r=function(t){const e=i;switch(t){case e(223):return e(193);case e(236):return e(164);default:return t}}(t[i(199)](i(143))),a=!0),!a&&e[i(205)](i(185))||o[i(206)][i(160)](i(185),r,e)}(r,a,n,i))})}),o[t(151)](t(244))[t(182)](e=>{const o=t;e.on(o(237),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;null==r||1===r?n[i(206)][i(196)](i(226),s):n[i(206)][i(160)](i(226),String(r),s)}),e.on(o(209),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;r&&i(165)!==r?n[i(206)][i(146)](i(143),r,s):n[i(206)][i(189)](i(143),s)})})}[ht(149)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(155)][t(227)](d),i=this[t(175)](),s=this[t(179)]();o[t(218)][t(154)](e=>{const r=t,a=o[r(218)][r(224)][r(167)]();let c=!1;for(const t of a){if(r(230)!==t[r(197)]||r(145)===t[r(180)])continue;const n=o[r(238)](t[r(208)][r(161)]);for(const t of n[r(195)]())t.is(r(159),r(192))&&(!t[r(205)](r(220))&&o[r(240)][r(188)](t,r(220))&&(e[r(160)](r(220),s,t),c=!0),!t[r(205)](r(185))&&o[r(240)][r(188)](t,r(185))&&(e[r(160)](r(185),i,t),c=!0))}return c&&n[r(170)](e),c})}[ht(239)](){const t=ht,{editor:e}=this;e[t(155)][t(227)](d)[t(245)](e=>this[t(233)](e))}[ht(175)](){const t=ht;return this[t(163)][t(147)][t(227)](t(213))}[ht(179)](){const t=ht;return this[t(163)][t(147)][t(227)](t(144))}[ht(233)]({container:t,value:e,digits:o}){const n=ht,i=t[n(171)](n(185)),s=t[n(171)](n(220)),r=Math[n(243)](e)+(s??1)-1;switch(i){case n(200):return function(t,e){const o=n;return String(t)[o(153)](e,"0")}(r,Math[n(168)](2,o));case n(223):case n(193):return yt(r,!1);case n(236):case n(164):return yt(r,!0);case n(183):return vt(r,!1);case n(229):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt();return(gt=function(t,e){return o[t-=143]})(t,e)}function wt(t,e){const o=ht,n=e[o(177)](t);return Array[o(241)](n[o(231)]())[o(194)](t=>t.is(o(159),"ol")&&t[o(216)](o(228)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(190)](97+t)+n,i=Math[o(243)]((i-1)/26)}return e?n[o(219)]():n}const bt=[{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 vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(176)]()}class It 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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[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 It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["1018kiWdfe","1235908UDIAcM","FootnotesProperties","pluginName","isOfficialPlugin","4807840FfBzdX","1480554iLxXTI","7LLaOrz","isPremiumPlugin","25JrkKOs","592434LQsMFo","1324467nEzbHP","requires","957704CVziyS","909loRZFm"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=214]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(272465===-parseInt(e(226))/1*(-parseInt(e(227))/2)+-parseInt(e(223))/3+parseInt(e(228))/4+parseInt(e(221))/5*(-parseInt(e(222))/6)+-parseInt(e(219))/7*(-parseInt(e(225))/8)+-parseInt(e(218))/9+parseInt(e(217))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(215)](){return xt(214)}static get[xt(224)](){return[mt,Ft]}static get[xt(216)](){return!0}static get[xt(220)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=173]})(t,e)}function Tt(){var t=["2010162PDJkst","7lyEehe","326608rlEUaQ","23810bKJRaP","162VHqjuo","4157335XfGvav","11860hdoUwE","3448716tNAukk","3688824LvcUWS","142Hrmgbg"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(796733===parseInt(e(173))/1*(parseInt(e(176))/2)+parseInt(e(175))/3+-parseInt(e(174))/4+-parseInt(e(182))/5+parseInt(e(177))/6+-parseInt(e(178))/7*(-parseInt(e(179))/8)+-parseInt(e(181))/9*(-parseInt(e(180))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(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 _0x22932d,Command as _0x35fe5e}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0xcfc6d5,isWidget as _0x526906,toWidgetEditable as _0x5563f,WidgetToolbarRepository as _0x51b7eb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x28567c,logWarning as _0x305bc7,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5fbd1,ClickObserver as _0x1f2027}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1ca48c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x2ca2ec,ButtonView as _0x295c20,View as _0x30d034,ViewCollection as _0x276d50,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x3de55f,BalloonPanelView as _0x214aeb,createDropdown as _0x1d0c43}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xd6817,IconListStyleDecimal as _0x838114,IconListStyleDecimalLeadingZero as _0xe3534,IconListStyleLowerRoman as _0x539df2,IconListStyleUpperRoman as _0x2d045b,IconListStyleLowerLatin as _0x57e3d6,IconListStyleUpperLatin as _0x4dd14f}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x47ca37,_0x2b32c6){this['_model']=_0x47ca37,this['_elementName']=_0x2b32c6['elementName'],this['_getElementKey']=_0x2b32c6['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x591399){const _0x23ecec=new Set(),_0x4fd701=new Map();for(const _0x4ff918 of _0x591399){if('insert'===_0x4ff918['type']&&'$text'!==_0x4ff918['name']&&_0x4ff918['position']['nodeAfter']){const _0x32c18a=this['_model']['createRangeOn'](_0x4ff918['position']['nodeAfter']);for(const _0x285b37 of _0x32c18a['getItems']()){if(!_0x285b37['is']('element',this['_elementName']))continue;const _0x137398=this['_getElementKey'](_0x285b37);_0x4fd701['has'](_0x137398)||_0x4fd701['set'](_0x137398,[]),_0x4fd701['get'](_0x137398)['push'](_0x285b37);}}if('remove'===_0x4ff918['type']&&_0x4ff918['name']===this['_elementName']){const _0x12ba43=this['_getElementKey']({'getAttribute':_0x1a6387=>_0x4ff918['attributes']['get'](_0x1a6387)});_0x23ecec['add'](_0x12ba43);}}for(const [_0x2427d9,_0x9da422]of this['_trackedElements'])'$graveyard'===_0x9da422['root']['rootName']&&_0x23ecec['add'](_0x2427d9);for(const _0x299860 of _0x23ecec)this['_trackedElements']['delete'](_0x299860);for(const [_0x61cef5,_0x19324d]of _0x4fd701)this['_trackedElements']['set'](_0x61cef5,_0x19324d[_0x19324d['length']-0x1]);const _0x372716=new Set();for(const [_0x36c72e,_0x7f132f]of _0x4fd701)_0x23ecec['has'](_0x36c72e)&&(_0x372716['add'](_0x7f132f[0x0]),_0x7f132f['length']>0x1?_0x4fd701['set'](_0x36c72e,_0x7f132f['slice'](0x1)):_0x4fd701['delete'](_0x36c72e),_0x23ecec['delete'](_0x36c72e));return{'removed':Array['from'](_0x23ecec),'inserted':Array['from'](_0x4fd701['values']())['flat'](),'moved':Array['from'](_0x372716)};}}class f extends _0x22932d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xf00d39){super(_0xf00d39),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3594bb=>_0x3594bb['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x435a1e=>_0x435a1e['getAttribute']('footnoteId')});}['init'](){const {editor:_0x53c318}=this,{model:_0x567456,data:_0x1f829b}=_0x53c318;_0x567456['document']['registerPostFixer'](_0x17e7d4=>{const _0x7b393c=_0x567456['document']['differ']['getChanges']();let _0x455151=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x17e7d4,_0x7b393c)&&(_0x455151=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x17e7d4,_0x7b393c)&&(_0x455151=!0x0),this['_handleFootnoteReferencesChanges'](_0x17e7d4,_0x7b393c)&&(_0x455151=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x17e7d4)&&(_0x455151=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x17e7d4)&&(_0x455151=!0x0),this['_sortFootnoteDefinitions'](_0x17e7d4)&&(_0x455151=!0x0),_0x455151;}),this['listenTo'](_0x567456['document'],'change:data',()=>{_0x567456['enqueueChange']({'isUndoable':!0x1},_0x1e8bd1=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1e8bd1);});},{'priority':'low'}),this['listenTo'](_0x1f829b,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x26d2e2){return this['_footnotes']['find'](_0x57d6df=>_0x57d6df['id']===_0x26d2e2)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4b5bb0){this['_footnoteFormatter']=_0x4b5bb0;}['_updateFootnotesCounters'](_0x3e7f23,_0x23cd95=0x0){let _0xa3c86c=!0x1;for(let _0x4747ea=_0x23cd95;_0x4747ea<this['_footnotes']['length'];_0x4747ea++)this['_updateFootnoteRefCounter'](_0x3e7f23,_0x4747ea)&&(_0xa3c86c=!0x0);return _0xa3c86c;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2b1ece,_0x1e0442){const _0x3b2506=_0x2b1ece['createElement']('footnotesDefinitions',{});return _0x2b1ece['append'](_0x3b2506,_0x1e0442),this['_footnotesDefinitions']=_0x3b2506,_0x3b2506;}['_ensureFootnotesDefinitionsContainerExists'](_0x1ee64b){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4c476a=this['_footnotes'][0x0]['reference']['root'],_0x29767e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1ee64b,_0x4c476a);for(const _0x1721ca of this['_footnotes'])_0x1721ca['definition']['parent']||_0x1ee64b['insert'](_0x1721ca['definition'],_0x29767e,'end');this['_updateFootnotesCounters'](_0x1ee64b);}['_handleFootnotesDefinitionsObjectChanges'](_0x583719,_0x5859b4){let _0x15737b=!0x1;const {inserted:_0x5c5453,removed:_0x4857e4,moved:_0x2441cd}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5859b4);if(_0x2441cd['length']&&(this['_footnotesDefinitions']=_0x2441cd[0x0]),_0x5c5453['length']){if(_0x5c5453['length']>0x1||this['_footnotesDefinitions']&&_0x5c5453['some'](_0x2c1bd0=>_0x2c1bd0!==this['_footnotesDefinitions'])){const _0x29769e=_0x583719['createElement']('footnotesDefinitions',{}),_0x46b842=[];this['_footnotesDefinitions']&&_0x46b842['push'](this['_footnotesDefinitions']),_0x46b842['push'](..._0x5c5453),_0x583719['insert'](_0x29769e,_0x46b842[0x0],'before');for(const _0x2247f1 of _0x46b842)_0x583719['move'](_0x583719['createRangeIn'](_0x2247f1),_0x583719['createPositionAt'](_0x29769e,'end')),_0x583719['remove'](_0x2247f1);this['_footnotesDefinitions']=_0x29769e,this['_updateFootnotesCounters'](_0x583719),_0x15737b=!0x0;}else this['_footnotesDefinitions']=_0x5c5453[0x0];}if(_0x4857e4['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x266aa9 of this['_footnotes'])_0x583719['remove'](_0x266aa9['reference']),_0x15737b=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x15737b;}['_handleFootnoteDefinitionsChanges'](_0x5cd471,_0xf5b548){let _0x98881e=!0x1;const _0x47fef0=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x3a5a4f,moved:_0x863419}=this['_footnoteDefsTracker']['getChanges'](_0xf5b548);for(const _0x1a32e1 of[..._0x863419,..._0x3a5a4f]){const _0x5e1593=_0x1a32e1['getAttribute']('footnoteId'),_0x52f808=this['getFootnote'](_0x5e1593);_0x52f808&&(_0x52f808['definition']=_0x1a32e1),_(_0x5cd471,_0x47fef0,_0x1a32e1)&&(_0x98881e=!0x0);}return _0x98881e;}['_handleFootnoteReferencesChanges'](_0x21d8ef,_0x448e41){let _0x3aa39d=!0x1;const {removed:_0x9b2027,inserted:_0x10147d,moved:_0x36a09c}=this['_footnoteRefsTracker']['getChanges'](_0x448e41);for(const _0x3ce2bc of _0x9b2027)this['_handleRemoveFootnoteReferenceById'](_0x21d8ef,_0x3ce2bc)&&(_0x3aa39d=!0x0);for(const _0x3f9e78 of _0x10147d)this['_handleInsertedFootnoteReference'](_0x21d8ef,_0x3f9e78)&&(_0x3aa39d=!0x0);for(const _0x4e77d0 of _0x36a09c)this['_handleMovedFootnoteReference'](_0x21d8ef,_0x4e77d0)&&(_0x3aa39d=!0x0);return _0x3aa39d;}['_handleFootnotesDefinitionsObjectSync'](_0x4a6246){if(!this['_footnotesDefinitions'])return!0x1;let _0x192630=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x28e9c3=[];for(const _0x5aab64 of this['_footnotesDefinitions']['getChildren']()){const _0x598d34=_0x5aab64['getAttribute']('footnoteId');this['getFootnote'](_0x598d34)||(_0x28e9c3['unshift'](_0x5aab64),_0x192630=!0x0);}for(const _0x208875 of _0x28e9c3)_0x4a6246['remove'](_0x208875);}const _0x44562d=new Set(),_0x10093f=[];for(const _0x2ece18 of this['_footnotesDefinitions']['getChildren']()){const _0x4140a2=_0x2ece18['getAttribute']('footnoteId');_0x44562d['has'](_0x4140a2)?(_0x10093f['unshift'](_0x2ece18),_0x192630=!0x0):_0x44562d['add'](_0x4140a2);}for(const _0x514e89 of _0x10093f)_0x4a6246['remove'](_0x514e89);return this['_footnotesDefinitions']['childCount']||(_0x4a6246['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x192630=!0x0),_0x192630;}['_handleInsertedFootnoteReference'](_0x15eae4,_0x408dca){if(this['_footnotes']['find'](_0x3455dc=>_0x3455dc['reference']===_0x408dca))return!0x1;let _0x37b562=!0x1;const _0x52c031=_0x408dca['getAttribute']('footnoteId'),_0x46ca2e=this['_footnotes']['findIndex'](_0x5add99=>_0x5add99['id']===_0x52c031);-0x1!==_0x46ca2e&&(_0x15eae4['remove'](this['_footnotes'][_0x46ca2e]['reference']),this['_footnotes']['splice'](_0x46ca2e,0x1),_0x37b562=!0x0);let _0x115bf3=this['_footnotesDefinitions']?function(_0x534e8d,_0x49d31e){for(const _0x12d606 of _0x534e8d['getChildren']())if(_0x12d606['getAttribute']('footnoteId')===_0x49d31e)return _0x12d606;return null;}(this['_footnotesDefinitions'],_0x52c031):null;_0x115bf3||(_0x115bf3=_0x15eae4['createElement']('footnoteDefinition',{'footnoteId':_0x52c031}),this['_footnotesDefinitions']&&(_0x15eae4['insert'](_0x115bf3,this['_footnotesDefinitions'],'end'),_0x37b562=!0x0));const _0x3810f1={'id':_0x52c031,'reference':_0x408dca,'definition':_0x115bf3},_0x249663=I(this['editor']['model'],this['_footnotes'],_0x408dca);this['_footnotes']['splice'](_0x249663,0x0,_0x3810f1);let _0xe3d9b0=_0x249663;return-0x1!==_0x46ca2e&&(_0xe3d9b0=Math['min'](_0x249663,_0x46ca2e)),this['_updateFootnotesCounters'](_0x15eae4,_0xe3d9b0)&&(_0x37b562=!0x0),_0x37b562;}['_handleRemoveFootnoteReferenceById'](_0x17119a,_0x5a9752){const _0xab1570=this['_footnotes']['findIndex'](_0x4a579f=>_0x4a579f['id']===_0x5a9752);if(-0x1===_0xab1570)return!0x1;let _0x38e1f9=!0x1;const _0x2696ea=this['_footnotes'][_0xab1570];return'$graveyard'!==_0x2696ea['definition']['root']['rootName']&&(_0x17119a['remove'](_0x2696ea['definition']),_0x38e1f9=!0x0),this['_footnotes']['splice'](_0xab1570,0x1),this['_updateFootnotesCounters'](_0x17119a,_0xab1570)&&(_0x38e1f9=!0x0),_0x38e1f9;}['_handleMovedFootnoteReference'](_0x2341b1,_0x4d9e0e){const _0x585ddb=_0x4d9e0e['getAttribute']('footnoteId'),_0x2290ae=this['_footnotes']['findIndex'](_0x36fc7f=>_0x36fc7f['id']===_0x585ddb),_0x219b2d=this['_footnotes'][_0x2290ae];let _0x1072bb=!0x1;_0x219b2d['reference']=_0x4d9e0e,this['_footnotes']['splice'](_0x2290ae,0x1);const _0x2a4a92=I(this['editor']['model'],this['_footnotes'],_0x4d9e0e);return this['_footnotes']['splice'](_0x2a4a92,0x0,_0x219b2d),this['_updateFootnotesCounters'](_0x2341b1,Math['min'](_0x2290ae,_0x2a4a92))&&(_0x1072bb=!0x0),_0x1072bb;}['_updateFootnoteRefCounter'](_0x1de996,_0x104864){if(!this['_footnotesDefinitions'])return!0x1;const _0x3c853f=this['_footnotes'][_0x104864];let _0x5dd3a5;return _0x5dd3a5=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3c853f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x104864+0x1}):String(_0x104864+0x1),_0x3c853f['reference']['getAttribute']('footnoteCounter')!=_0x5dd3a5&&(_0x1de996['setAttribute']('footnoteCounter',_0x5dd3a5,_0x3c853f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5bbd64){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3b2485,_0x2ebbd2){if(_0x3b2485['length']!==_0x2ebbd2['length'])return!0x1;for(let _0x24325b=0x0;_0x24325b<_0x3b2485['length'];_0x24325b++)if(_0x3b2485[_0x24325b]!==_0x2ebbd2[_0x24325b])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x454380=>_0x454380['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x4879bf=>_0x4879bf['getAttribute']('footnoteId'))))return!0x1;let _0x20b14e=!0x1;for(let _0x44064d=0x0;_0x44064d<this['_footnotes']['length'];_0x44064d++){const _0x1d71c6=this['_footnotes'][_0x44064d],_0x5ee177=_0x5bbd64['createPositionBefore'](_0x1d71c6['definition']),_0x237dc2=_0x5bbd64['createPositionAt'](this['_footnotesDefinitions'],_0x44064d);_0x5ee177['isEqual'](_0x237dc2)||(_0x5bbd64['move'](_0x5bbd64['createRangeOn'](_0x1d71c6['definition']),_0x237dc2),_0x20b14e=!0x0);}return _0x20b14e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x441cea){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1b17b9}=this['editor'];let _0x3ad17c=!0x1;for(let _0x2f08f9=0x0;_0x2f08f9<this['_footnotes']['length']-0x1;_0x2f08f9++){const _0x30d19a=this['_footnotes'][_0x2f08f9],_0x32d174=this['_footnotes'][_0x2f08f9+0x1],_0x12b3f8=_0x1b17b9['createPositionBefore'](_0x30d19a['reference']),_0x566357=_0x1b17b9['createPositionBefore'](_0x32d174['reference']);'after'===_0x12b3f8['compareWith'](_0x566357)&&(this['_handleMovedFootnoteReference'](_0x441cea,_0x30d19a['reference']),_0x2f08f9=-0x1,_0x3ad17c=!0x0);}return _0x3ad17c;}}function _(_0x15d06c,_0x55bee8,_0x59f299){if(_0x59f299['childCount'])return!0x1;const _0x4266f2=_0x55bee8?'paragraph':'footnoteInlineContent';return _0x15d06c['insert'](_0x15d06c['createElement'](_0x4266f2),_0x59f299),!0x0;}function I(_0xcac98a,_0xdd6f86,_0x3790b6){if(0x0===_0xdd6f86['length'])return 0x0;const _0x157d03=_0xcac98a['createPositionBefore'](_0x3790b6);for(let _0x3b84c2=0x0;_0x3b84c2<_0xdd6f86['length'];_0x3b84c2++){const _0x44ef75=_0xdd6f86[_0x3b84c2],_0x6881db=_0xcac98a['createPositionBefore'](_0x44ef75['reference']);if('before'===_0x157d03['compareWith'](_0x6881db))return _0x3b84c2;}const _0x1b87ba=_0x3790b6['root'];let _0x59b013=-0x1;for(let _0x1ccdf2=_0xdd6f86['length']-0x1;_0x1ccdf2>=0x0;_0x1ccdf2--)if(_0xdd6f86[_0x1ccdf2]['reference']['root']===_0x1b87ba){_0x59b013=_0x1ccdf2;break;}if(-0x1!==_0x59b013)return _0x59b013+0x1;const _0x241fde=_0xcac98a['document']['getRootNames'](),_0x4b6be2=_0x241fde['indexOf'](_0x1b87ba['rootName']),_0x2960e6=_0x241fde[_0x4b6be2+0x1];if(_0x2960e6){for(let _0x3c8ecd=0x0;_0x3c8ecd<_0xdd6f86['length'];_0x3c8ecd++)if(_0xdd6f86[_0x3c8ecd]['reference']['root']['rootName']===_0x2960e6)return _0x3c8ecd;}return _0xdd6f86['length'];}class h extends _0x35fe5e{['refresh'](){const _0x311586=this['editor']['model']['document']['selection'],_0x5bcd24=this['_getPositionToInsertFootnote'](_0x311586);this['isEnabled']=!!_0x5bcd24;}['execute'](_0x516ed4){const {editor:_0x1ccae7}=this,{model:_0x5ee5b4}=_0x1ccae7,{selection:_0x1d8a42}=_0x5ee5b4['document'],_0x3c47ea=this['_getPositionToInsertFootnote'](_0x1d8a42);if(!_0x3c47ea)return;const _0x510ac0=_0x1ccae7['plugins']['get']('FootnotesEditing'),_0x4c1e21=_0x516ed4?.['footnoteId']??_0x28567c();!function(_0x4cb095){return'string'==typeof _0x4cb095&&_0x4cb095['length']>0x0&&!/\s/['test'](_0x4cb095)&&!/^\d/['test'](_0x4cb095);}(_0x4c1e21)?_0x305bc7('insert-footnote-command-executed-with-invalid-id'):(_0x5ee5b4['change'](_0x3ba49d=>{const _0x1e4e5e=_0x3ba49d['createElement']('footnoteRef',{'footnoteId':_0x4c1e21});_0x5ee5b4['insertObject'](_0x1e4e5e,_0x3c47ea,null);}),_0x510ac0['_moveSelectionToFootnoteDefinition'](_0x4c1e21));}['_getPositionToInsertFootnote'](_0x26bdd0){const {model:_0x4afd18}=this['editor'],{schema:_0x1f6a6c}=_0x4afd18,_0x4b6ac6=_0x26bdd0['getFirstRange']();for(const _0x24302d of _0x4b6ac6['getItems']())if(_0x1f6a6c['isBlock'](_0x24302d)||_0x1f6a6c['isObject'](_0x24302d))return null;const _0x2eb5dc=_0x4b6ac6['end'];return _0x1f6a6c['checkChild'](_0x2eb5dc,'footnoteRef')?_0x2eb5dc:null;}}class r extends _0x22932d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51ed43}=this;_0x51ed43['config']['define']('footnotes.multiBlock',!0x0),_0x51ed43['commands']['add']('insertFootnote',new h(_0x51ed43)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x9cf48){const _0x39fcbe=_0x2cdec1([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]),_0x3fd1b5=0x47a28506,_0x195b28=0x47a50426^_0x3fd1b5,_0x52bbdb=window[_0x2cdec1([0x44,0x61,0x74,0x65])][_0x2cdec1([0x6e,0x6f,0x77])](),_0x30b4a7=_0x9cf48[_0x2cdec1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cd1a5=new window[(_0x2cdec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x418446=>{_0x30b4a7[_0x2cdec1([0x6f,0x6e,0x63,0x65])](_0x2cdec1([0x72,0x65,0x61,0x64,0x79]),_0x418446);}),_0x751143={[_0x2cdec1([0x6b,0x74,0x79])]:_0x2cdec1([0x45,0x43]),[_0x2cdec1([0x75,0x73,0x65])]:_0x2cdec1([0x73,0x69,0x67]),[_0x2cdec1([0x63,0x72,0x76])]:_0x2cdec1([0x50,0x2d,0x32,0x35,0x36]),[_0x2cdec1([0x78])]:_0x2cdec1([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]),[_0x2cdec1([0x79])]:_0x2cdec1([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]),[_0x2cdec1([0x61,0x6c,0x67])]:_0x2cdec1([0x45,0x53,0x32,0x35,0x36])},_0x417e71=_0x30b4a7[_0x2cdec1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2cdec1([0x67,0x65,0x74])](_0x2cdec1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xd43e(){let _0x3cf83c,_0xa49484=null,_0xf2f832=null;try{if(_0x417e71==_0x2cdec1([0x47,0x50,0x4c]))return _0x2cdec1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3cf83c=_0x514019(),!_0x3cf83c)return _0x2cdec1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3cf83c[_0x2cdec1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xf2f832=_0x3d0528(_0x3cf83c[_0x2cdec1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3cf83c[_0x2cdec1([0x6a,0x74,0x69])])),await _0x2165a4()?_0x13376f()?_0x11a857()?_0x2cdec1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3233ad()?(_0x3cf83c[_0x2cdec1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2cdec1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xa49484=_0xed79a7(_0x2cdec1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1da228()):_0x2cdec1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2cdec1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2cdec1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2cdec1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11a857(){const _0x4e97b1=[_0x2cdec1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2cdec1([0x74,0x72,0x69,0x61,0x6c])][_0x2cdec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cf83c[_0x2cdec1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x52bbdb/0x3e8:0xe10*_0x195b28;return _0x3cf83c[_0x2cdec1([0x65,0x78,0x70])]<_0x4e97b1;}function _0x13376f(){const _0x443831=_0x3cf83c[_0x2cdec1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x443831&&(!!_0x443831[_0x2cdec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdec1([0x2a]))||!!_0x443831[_0x2cdec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdec1([0x46,0x4f,0x4f])));}function _0x3233ad(){const _0x816059=_0x3cf83c[_0x2cdec1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x816059||0x0==_0x816059[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cb230}=new URL(window[_0x2cdec1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x816059[_0x2cdec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cb230))return!0x0;const _0xaea870=_0x2cb230[_0x2cdec1([0x73,0x70,0x6c,0x69,0x74])](_0x2cdec1([0x2e]));return _0x816059[_0x2cdec1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x14205c=>_0x14205c[_0x2cdec1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cdec1([0x2a])))[_0x2cdec1([0x6d,0x61,0x70])](_0x315f26=>_0x315f26[_0x2cdec1([0x73,0x70,0x6c,0x69,0x74])](_0x2cdec1([0x2e])))[_0x2cdec1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x38d3a4=>_0x38d3a4[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xaea870[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cdec1([0x6d,0x61,0x70])](_0x3a59e9=>Array(_0xaea870[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a59e9[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2cdec1([0x66,0x69,0x6c,0x6c])](_0x3a59e9[0x0]===_0x2cdec1([0x2a])?_0x2cdec1([0x2a]):'')[_0x2cdec1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a59e9))[_0x2cdec1([0x73,0x6f,0x6d,0x65])](_0xea1652=>_0xaea870[_0x2cdec1([0x65,0x76,0x65,0x72,0x79])]((_0x5ea955,_0x4b75b8)=>_0xea1652[_0x4b75b8]===_0x5ea955||_0xea1652[_0x4b75b8]===_0x2cdec1([0x2a])));}function _0x1da228(){return _0xa49484&&_0xf2f832?new window[(_0x2cdec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45ee67,_0x488700)=>{_0xa49484[_0x2cdec1([0x74,0x68,0x65,0x6e])](_0x45ee67,_0x488700),_0xf2f832[_0x2cdec1([0x74,0x68,0x65,0x6e])](_0x522ea7=>{_0x522ea7!=_0x2cdec1([0x56,0x61,0x6c,0x69,0x64])&&_0x45ee67(_0x522ea7);},_0x488700);}):_0xa49484||_0xf2f832||_0x2cdec1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d0528(_0x4916c4,_0x51e6cc){return new window[(_0x2cdec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29cac6=>{if(_0x331b3f())return _0x29cac6(_0x2cdec1([0x56,0x61,0x6c,0x69,0x64]));_0x29221c(),_0x30b4a7[_0x2cdec1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2cdec1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2972bd=!0x1;const _0x4d657c=_0x28567c();function _0x4f0c8d(_0x342b9e){return!!_0x342b9e&&(typeof _0x342b9e===_0x2cdec1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x342b9e===_0x2cdec1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x342b9e[_0x2cdec1([0x74,0x68,0x65,0x6e])]===_0x2cdec1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x342b9e[_0x2cdec1([0x63,0x61,0x74,0x63,0x68])]===_0x2cdec1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2249b2(_0x3bf2c7){_0x529902(_0x3bf2c7)[_0x2cdec1([0x74,0x68,0x65,0x6e])](_0x3aa885=>{if(!_0x3aa885||_0x3aa885[_0x2cdec1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2cdec1([0x6f,0x6b]))return _0x2cdec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5f3082(_0x180501(_0x4d657c+_0x51e6cc))!=_0x3aa885[_0x2cdec1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2cdec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2cdec1([0x56,0x61,0x6c,0x69,0x64]);})[_0x2cdec1([0x74,0x68,0x65,0x6e])](_0x60b817=>(_0x42ddc4(),_0x60b817),()=>{const _0x1210f4=_0x35e59a();return null==_0x1210f4?(_0x42ddc4(),_0x2cdec1([0x56,0x61,0x6c,0x69,0x64])):_0x2cdec1(_0x52bbdb-_0x1210f4>(0x63ae0106^_0x3fd1b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2cdec1([0x74,0x68,0x65,0x6e])](_0x29cac6)[_0x2cdec1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29cac6(_0x2cdec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x85b58a=0x47946b86^_0x3fd1b5;function _0x42ddc4(){const _0x237cc6=_0x2cdec1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3082(_0x180501(_0x4916c4)),_0x1aa565=_0x1d8940(_0x5f3082(window[_0x2cdec1([0x4d,0x61,0x74,0x68])][_0x2cdec1([0x63,0x65,0x69,0x6c])](_0x52bbdb/_0x85b58a)));window[_0x2cdec1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cdec1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x237cc6,_0x1aa565);}function _0x35e59a(){const _0x4242ac=_0x2cdec1([0x6c,0x6c,0x63,0x74,0x2d])+_0x5f3082(_0x180501(_0x4916c4)),_0xea53bd=window[_0x2cdec1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2cdec1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4242ac);return _0xea53bd?window[_0x2cdec1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1d8940(_0xea53bd),0x10)*_0x85b58a:null;}function _0x529902(_0x300f41){return new window[(_0x2cdec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4cacf6,_0x5fba28)=>{_0x300f41[_0x2cdec1([0x74,0x68,0x65,0x6e])](_0x4cacf6,_0x5fba28),window[_0x2cdec1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5fba28,0x47a351c6^_0x3fd1b5);});}}_0x30b4a7[_0x2cdec1([0x6f,0x6e])](_0x2cdec1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2f630a,_0x3815a8)=>{if(_0x3815a8[0x0]!=_0x4916c4)return _0x29cac6(_0x2cdec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3815a8[0x1]={..._0x3815a8[0x1],[_0x2cdec1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d657c};},{[_0x2cdec1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cdec1([0x68,0x69,0x67,0x68])}),_0x30b4a7[_0x2cdec1([0x6f,0x6e])](_0x2cdec1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26879c=>{_0x4f0c8d(_0x26879c[_0x2cdec1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2972bd=!0x0,_0x2249b2(_0x26879c[_0x2cdec1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2cdec1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2cdec1([0x6c,0x6f,0x77])}),_0x1cd1a5[_0x2cdec1([0x74,0x68,0x65,0x6e])](()=>{_0x2972bd||_0x29cac6(_0x2cdec1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x331b3f(){return _0x30b4a7[_0x2cdec1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cdec1([0x76,0x69,0x65,0x77])][_0x2cdec1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2cdec1([0x61,0x75,0x74,0x6f]);}function _0x29221c(){_0x30b4a7[_0x2cdec1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2cdec1([0x76,0x69,0x65,0x77])][_0x2cdec1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2cdec1([0x61,0x75,0x74,0x6f]);}}function _0xed79a7(_0x417f06){const _0x4ebf9f=[new window[(_0x2cdec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2787e=>setTimeout(_0x2787e,0x47abbbca^_0x3fd1b5)),_0x1cd1a5[_0x2cdec1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2cdec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bd6e1=>{let _0xd734ab=0x0;_0x30b4a7[_0x2cdec1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdec1([0x6f,0x6e])](_0x2cdec1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd82e13,_0x478aea)=>{_0x478aea[0x0][_0x2cdec1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xd734ab++,_0xd734ab==(0x47a280ee^_0x3fd1b5)&&(_0x3bd6e1(),_0xd82e13[_0x2cdec1([0x6f,0x66,0x66])]());});}))];return window[_0x2cdec1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2cdec1([0x72,0x61,0x63,0x65])](_0x4ebf9f)[_0x2cdec1([0x74,0x68,0x65,0x6e])](()=>_0x417f06);}async function _0x12913c(){await _0x1cd1a5,_0x30b4a7[_0x2cdec1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdec1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4ec60e,_0x30b4a7[_0x2cdec1([0x6d,0x6f,0x64,0x65,0x6c])][_0x2cdec1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4ec60e,_0x30b4a7[_0x2cdec1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2cdec1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x39b196(_0x2def99){const _0x49e18f=_0x738caf();_0x30b4a7[_0x49e18f]=_0x2cdec1([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2def99,_0x2def99!=_0x2cdec1([0x56,0x61,0x6c,0x69,0x64])&&_0x12913c();}function _0x738caf(){const _0x4912d9=window[_0x2cdec1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2cdec1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2cdec1([0x6e,0x6f,0x77])]())[_0x2cdec1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2cdec1([0x2e]),'');let _0x577f95=_0x2cdec1([0x75]);for(let _0x5b4d94=0x0;_0x5b4d94<_0x4912d9[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b4d94+=0x2){let _0x503169=window[_0x2cdec1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4912d9[_0x2cdec1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5b4d94,_0x5b4d94+0x2));_0x503169>=_0x39fcbe[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x503169-=_0x39fcbe[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x577f95+=_0x39fcbe[_0x503169];}return _0x577f95;}function _0x514019(){const _0x230567=_0x417e71[_0x2cdec1([0x73,0x70,0x6c,0x69,0x74])](_0x2cdec1([0x2e]));if(0x3!=_0x230567[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x162d20(_0x230567[0x1]);function _0x162d20(_0x515d89){const _0x55e4cf=_0x1fd172(_0x515d89);return _0x55e4cf&&_0x1e9ec8()?_0x55e4cf:null;function _0x1e9ec8(){const _0x2e7586=_0x55e4cf[_0x2cdec1([0x6a,0x74,0x69])],_0x30b8a9=window[_0x2cdec1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e7586[_0x2cdec1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2e7586[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5b04f8={..._0x55e4cf,[_0x2cdec1([0x6a,0x74,0x69])]:_0x2e7586[_0x2cdec1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2e7586[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5b04f8[_0x2cdec1([0x76,0x63])],_0x180501(_0x5b04f8)==_0x30b8a9;}}}async function _0x2165a4(){let _0x146d3b=!0x0;try{const _0x162e33=_0x417e71[_0x2cdec1([0x73,0x70,0x6c,0x69,0x74])](_0x2cdec1([0x2e])),[_0x228d52,_0x16fedc,_0x1fb09c]=_0x162e33;return _0x1c8bf6(_0x228d52),await _0x30605d(_0x228d52,_0x16fedc,_0x1fb09c),_0x146d3b;}catch{return!0x1;}function _0x1c8bf6(_0x5a3782){const _0xcee323=_0x1fd172(_0x5a3782);_0xcee323&&_0xcee323[_0x2cdec1([0x61,0x6c,0x67])]==_0x2cdec1([0x45,0x53,0x32,0x35,0x36])||(_0x146d3b=!0x1);}async function _0x30605d(_0x3446a1,_0x3d71bc,_0x419862){const _0x4cf0d6=window[_0x2cdec1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2cdec1([0x66,0x72,0x6f,0x6d])](_0x1c0853(_0x419862),_0x4d7d70=>_0x4d7d70[_0x2cdec1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4fd449=new window[(_0x2cdec1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2cdec1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3446a1+_0x2cdec1([0x2e])+_0x3d71bc),_0x1579d9=window[_0x2cdec1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2cdec1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1579d9)return;const _0x24c1af=await _0x1579d9[_0x2cdec1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2cdec1([0x6a,0x77,0x6b]),_0x751143,{[_0x2cdec1([0x6e,0x61,0x6d,0x65])]:_0x2cdec1([0x45,0x43,0x44,0x53,0x41]),[_0x2cdec1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2cdec1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2cdec1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1579d9[_0x2cdec1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2cdec1([0x6e,0x61,0x6d,0x65])]:_0x2cdec1([0x45,0x43,0x44,0x53,0x41]),[_0x2cdec1([0x68,0x61,0x73,0x68])]:{[_0x2cdec1([0x6e,0x61,0x6d,0x65])]:_0x2cdec1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24c1af,_0x4cf0d6,_0x4fd449)||(_0x146d3b=!0x1);}}function _0x1fd172(_0x34b6a3){return _0x34b6a3[_0x2cdec1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2cdec1([0x65,0x79]))?JSON[_0x2cdec1([0x70,0x61,0x72,0x73,0x65])](_0x1c0853(_0x34b6a3)):null;}function _0x1c0853(_0x296f68){return window[_0x2cdec1([0x61,0x74,0x6f,0x62])](_0x296f68[_0x2cdec1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2cdec1([0x2b]))[_0x2cdec1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2cdec1([0x2f])));}function _0x180501(_0x329242){let _0x3f63f8=0x1505;function _0x34ecdf(_0x452b6a){for(let _0x44db50=0x0;_0x44db50<_0x452b6a[_0x2cdec1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x44db50++){const _0x28cda3=_0x452b6a[_0x2cdec1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x44db50);_0x3f63f8=(_0x3f63f8<<0x5)+_0x3f63f8+_0x28cda3,_0x3f63f8&=_0x3f63f8;}}function _0x2069f2(_0x55f5a2){Array[_0x2cdec1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x55f5a2)?_0x55f5a2[_0x2cdec1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2069f2):_0x55f5a2&&typeof _0x55f5a2==_0x2cdec1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2cdec1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x55f5a2)[_0x2cdec1([0x73,0x6f,0x72,0x74])]()[_0x2cdec1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x28ea8e,_0xfc03f2])=>{_0x34ecdf(_0x28ea8e),_0x2069f2(_0xfc03f2);}):_0x34ecdf(window[_0x2cdec1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x55f5a2));}return _0x2069f2(_0x329242),_0x3f63f8>>>0x0;}function _0x5f3082(_0x531a65){return _0x531a65[_0x2cdec1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2cdec1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2cdec1([0x30]));}function _0x1d8940(_0x504f3f){return _0x504f3f[_0x2cdec1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2cdec1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2cdec1([0x6a,0x6f,0x69,0x6e])]('');}function _0x4ec60e(){}function _0x2cdec1(_0x5f56cc){return _0x5f56cc['map'](_0x780901=>String['fromCharCode'](_0x780901))['join']('');}_0x39b196(await _0xd43e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3a64f5){const {plugins:_0x575887,editing:_0x35cf48,model:_0x56c84d}=this['editor'],_0x300d11=_0x575887['get'](f)['getFootnote'](_0x3a64f5);return!!_0x300d11&&(_0x56c84d['change'](_0x50d4e1=>{_0x50d4e1['setSelection'](_0x50d4e1['createPositionAt'](_0x300d11['definition'],'end'));}),_0x35cf48['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x228cd8){const {plugins:_0x368d48,editing:_0x102b57,model:_0x242da2}=this['editor'],_0x346531=_0x368d48['get'](f)['getFootnote'](_0x228cd8);return!!_0x346531&&(_0x242da2['change'](_0x7aa862=>{_0x7aa862['setSelection'](_0x346531['reference'],'on');}),_0x102b57['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x50f990}=this['editor']['model'],_0x19fdb6=this['editor']['config']['get']('footnotes.multiBlock');_0x50f990['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x50f990['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x50f990['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x19fdb6?_0x50f990['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x50f990['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x50f990['addChildCheck'](_0x57db78=>{for(const _0x570bfe of _0x57db78)if('footnoteDefinition'===_0x570bfe['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x43673d}=this,{conversion:_0xad0a1,editing:_0x38ba96}=_0x43673d,{t:t}=_0x43673d['locale'];_0xad0a1['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x8b0346,{writer:_0x5b1c5d,consumable:_0xd5e36a})=>{const _0x1f0f36=_0x8b0346['getChild'](0x0);if(!_0x1f0f36||!_0x1f0f36['is']('element','a'))return null;const _0x197664=_0x1f0f36['getAttribute']('href')||'';if(!_0x197664['startsWith']('#'))return null;const _0x37a756=_0x197664['replace'](/^#/,'');if(!_0x37a756)return null;_0xd5e36a['consume'](_0x1f0f36,{'name':!0x0,'attributes':['href']});for(const {item:_0x27c590}of _0x38ba96['view']['createRangeIn'](_0x1f0f36))_0x27c590['is']('$textProxy')?_0xd5e36a['consume'](_0x27c590['textNode'],{'name':!0x0}):_0x27c590['is']('element')&&_0xd5e36a['consume'](_0x27c590,{'name':!0x0});return _0x5b1c5d['createElement']('footnoteRef',{'footnoteId':_0x37a756});}}),_0xad0a1['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2c8ebc,{writer:_0x52a901})=>b(_0x2c8ebc,_0x52a901)}),_0xad0a1['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x301918,{writer:_0x513f19})=>{const _0x2671ba=_0x301918['getAttribute']('footnoteCounter');return _0xcfc6d5(b(_0x301918,_0x513f19),_0x513f19,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2671ba)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5a6895}=this,{t:t}=_0x5a6895['locale'],{conversion:_0x48c99e}=_0x5a6895;_0x48c99e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x48c99e['for']('upcast')['add'](_0xe429f=>{_0xe429f['on']('element:ol',(_0x10e7b8,_0x502810,_0x46e4fd)=>{const _0x9e7801=_0x502810['viewItem'];if(!_0x9e7801['hasClass']('footnotes-list')||!_0x502810['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x46e4fd['consumable']['consume'](_0x9e7801,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5cff70,modelCursor:_0x7669a8}=_0x46e4fd['convertChildren'](_0x502810['viewItem'],_0x502810['modelCursor']);_0x502810['modelRange']=_0x5cff70,_0x502810['modelCursor']=_0x7669a8;}),_0xe429f['on']('element:hr',(_0x324f06,_0x4fb869,_0x4b5493)=>{const _0xae57f4=_0x4fb869['viewItem'];_0xae57f4['hasClass']('footnotes-divider')&&_0x4fb869['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4b5493['consumable']['consume'](_0xae57f4,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x48c99e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4daf2d,{writer:_0x17f4ae})=>D(_0x17f4ae)}),_0x48c99e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x23559a,{writer:_0x51d254})=>{const _0xdca077=D(_0x51d254,{'data-footnotes-list-label':t('Footnotes')}),_0x34cb58=_0xcfc6d5(_0xdca077,_0x51d254,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x51d254['setCustomProperty']('footnotesDefinitions',!0x0,_0x34cb58),_0x34cb58;}});}['_defineDefinitionConverters'](){const {editor:_0x3814a4}=this,{conversion:_0x320dd6,locale:_0x2b4fbd}=_0x3814a4,_0x63a7be=_0x3814a4['config']['get']('footnotes.multiBlock');_0x320dd6['for']('upcast')['add'](_0x5c1b65=>{_0x5c1b65['on']('element:li',(_0x42ad38,_0xfaca76,_0x17486f)=>{const _0x3ee19a=_0xfaca76['viewItem'];if(!_0x3ee19a['hasClass']('footnote-definition')||!_0x3ee19a['getAttribute']('id'))return;const _0x169f10=_0x3ee19a['parent'];if(!_0x169f10['is']('element','ol')||!_0x169f10['hasClass']('footnotes-list'))return;if(!_0x17486f['consumable']['test'](_0x3ee19a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4e22d3=_0x17486f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3ee19a['getAttribute']('id')});if(!_0x17486f['safeInsert'](_0x4e22d3,_0xfaca76['modelCursor']))return;_0x17486f['consumable']['consume'](_0x3ee19a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4313aa=Array['from'](_0x3ee19a['getChildren']())['find'](_0x67160f=>_0x67160f['is']('element')&&_0x67160f['hasClass']('footnote-content'));for(const _0x6b7a89 of _0x3ee19a['getChildren']())_0x6b7a89['is']('element')&&(_0x17486f['consumable']['consume'](_0x6b7a89,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x17486f['consumable']['consume'](_0x6b7a89,{'name':!0x0,'classes':'footnote-content'}));if(_0x4313aa){if(_0x63a7be)_0x17486f['convertChildren'](_0x4313aa,_0x4e22d3);else{const _0x50e642=_0x17486f['writer']['createElement']('footnoteInlineContent');_0x17486f['writer']['insert'](_0x50e642,_0x4e22d3),_0x17486f['convertChildren'](_0x4313aa,_0x50e642);}}_0x17486f['updateConversionResult'](_0x4e22d3,_0xfaca76);});}),_0x320dd6['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4c403f,{writer:_0x2456c2})=>y(_0x4c403f,_0x2456c2,_0x2b4fbd,{'dataPipeline':!0x0})}),_0x320dd6['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2bbe14,{writer:_0x500f71})=>y(_0x2bbe14,_0x500f71,_0x2b4fbd)});}['_defineBogusParagraphConverters'](){const {editor:_0x2b33b8}=this,{conversion:_0x464ae6}=_0x2b33b8;_0x2b33b8['config']['get']('footnotes.multiBlock')?(_0x464ae6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x464ae6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2b33b8['model']['document'],'change:data',()=>{!function(_0x358bbf,_0x3e5c03){const _0x1870ef=_0x358bbf['document']['differ'],_0x14ce2a=new Set();for(const _0x3502cc of _0x1870ef['getChanges']()){const _0x29afa0='attribute'==_0x3502cc['type']?_0x3502cc['range']['start']['parent']:_0x3502cc['position']['parent'];_0x29afa0['is']('element','footnoteDefinition')&&_0x14ce2a['add'](_0x29afa0);}for(const _0x4989d2 of _0x14ce2a['values']()){const _0x491915=Array['from'](_0x4989d2['getChildren']())['filter'](_0x224eda=>v(_0x224eda,_0x3e5c03['mapper']));for(const _0x2bfb32 of _0x491915)_0x3e5c03['reconvertItem'](_0x2bfb32);}}(_0x2b33b8['model'],_0x2b33b8['editing']);})):(_0x464ae6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x464ae6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2de7ae,{writer:_0x29b8ff})=>{const _0x43a165=_0x29b8ff['createContainerElement']('span');return _0x29b8ff['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x43a165),_0x43a165;}}));}['_defineKeyboardHandlers'](){const {editor:_0x34ffaf}=this,{editing:_0xcbbfce,t:t}=_0x34ffaf,_0x166195=_0x34ffaf['model']['document']['selection'];_0x34ffaf['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x34ffaf['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xcbbfce['view']['document'],'enter',(_0x55e25d,_0x55f5ff)=>{const _0x3050ce=function(_0x34c619){const _0x36a22e=_0x34c619['getSelectedElement']();if(_0x36a22e?.['is']('element','footnoteRef'))return _0x36a22e;return null;}(_0x166195);if(_0x3050ce){const _0x923f93=_0x3050ce['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x923f93),_0x55f5ff['preventDefault'](),_0x55e25d['stop']();}},{'context':_0x526906});}['_defineClickHandlers'](){const {editor:_0x4b8c6c}=this,{editing:_0x1eae6a}=_0x4b8c6c;_0x4b8c6c['editing']['view']['addObserver'](_0x5fbd1),_0x4b8c6c['editing']['view']['addObserver'](_0x1f2027);let _0x889b0=!0x1;this['listenTo'](_0x1eae6a['view']['document'],'pointerdown',(_0x22f8a7,_0x479846)=>{const {target:_0xd56d99}=_0x479846,_0x57eb72=_0x1eae6a['view']['document']['selection'];_0x889b0=!!(_0xd56d99?.['is']('element','a')&&_0xd56d99['parent']?.['is']('element','sup')&&_0xd56d99['parent']['hasClass']('footnote'))&&_0x57eb72['getSelectedElement']()===_0xd56d99['parent'];},{'priority':'high'}),this['listenTo'](_0x1eae6a['view']['document'],'click',(_0x355142,_0x17ff17)=>{const {target:_0x5d0dbb}=_0x17ff17;if(!_0x5d0dbb?.['is']('element','a'))return;if(_0x5d0dbb['parent']?.['is']('element','sup')&&_0x5d0dbb['parent']['hasClass']('footnote')&&!_0x889b0)return void _0x17ff17['preventDefault']();let _0x4b77f6=_0x5d0dbb['getAttribute']('href');if(!_0x4b77f6?.['startsWith']('#'))return;_0x4b77f6=_0x4b77f6['slice'](0x1);let _0x176ad7=!0x1;(_0x4b77f6['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4b77f6['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4b77f6))&&(_0x176ad7=!0x0),_0x176ad7&&(_0x17ff17['preventDefault'](),_0x355142['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x3c5b05}={}){return(_0xed26fa,{writer:_0x231744})=>{if(!g(_0xed26fa))return null;if(!_0x3c5b05)return _0x231744['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xaf932f=_0x231744['createContainerElement']('p');return _0x231744['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xaf932f),_0xaf932f;};}function g(_0xa8124b){const {parent:_0x1b37d4}=_0xa8124b;if(!_0x1b37d4?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1b37d4['childCount'])return!0x1;for(const _0x2eee59 of _0xa8124b['getAttributeKeys']())if(!_0x2eee59['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2eee59)return!0x1;return!0x0;}function v(_0x4fd916,_0x5b88f4){if(!_0x4fd916['is']('element','paragraph'))return!0x1;const _0x5dbf11=_0x5b88f4['toViewElement'](_0x4fd916);return!!_0x5dbf11&&g(_0x4fd916)!==_0x5dbf11['is']('element','span');}function Q(_0x259b68){return _0x526906(_0x259b68)&&_0x259b68['is']('containerElement')&&!!_0x259b68['getCustomProperty']('footnotesDefinitions');}function D(_0x3e4b2c,_0x2ee65a={}){const _0x59714f=_0x3e4b2c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4b4d57=_0x3e4b2c['createContainerElement']('ol',{'class':'footnotes-list'},_0x3e4b2c['createSlot']());return _0x3e4b2c['createContainerElement']('div',{'class':'footnotes',..._0x2ee65a},[_0x59714f,_0x4b4d57]);}function b(_0x33a011,_0x1d9ed7){const _0x355128=_0x33a011['getAttribute']('footnoteId'),_0x5985df=_0x33a011['getAttribute']('footnoteCounter'),_0x2c2c1c=_0x1d9ed7['createUIElement']('a',{'href':'#'+_0x355128},function(_0x56e6c5){const _0x2cab8d=this['toDomElement'](_0x56e6c5);return _0x2cab8d['textContent']=_0x5985df,_0x2cab8d;}),_0x5f34b1=_0x1d9ed7['createContainerElement']('sup',{'id':'ref-'+_0x355128,'class':'footnote'},[_0x2c2c1c]);return _0x5f34b1['getFillerOffset']=()=>null,_0x5f34b1;}function y(_0x2b176d,_0x5b2efa,_0x4b28a8,{dataPipeline:_0x5d4091}={}){const {t:t}=_0x4b28a8,_0x4df5cc=_0x2b176d['getAttribute']('footnoteId'),_0x2d1a24=_0x5b2efa['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4df5cc},function(_0x41a799){const _0x48a10c=this['toDomElement'](_0x41a799);return _0x48a10c['innerText']='^',_0x48a10c;}),_0x5604b8=_0x5d4091?_0x5b2efa['createContainerElement']('div',{'class':'footnote-content'}):_0x5563f(_0x5b2efa['createEditableElement']('div',{'class':'footnote-content'}),_0x5b2efa,{'label':t('Footnote\x20content.')});return _0x5b2efa['insert'](_0x5b2efa['createPositionAt'](_0x5604b8,0x0),_0x5b2efa['createSlot']()),_0x5b2efa['createContainerElement']('li',{'class':'footnote-definition','id':_0x4df5cc},[_0x2d1a24,_0x5604b8]);}class e extends _0x22932d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1ca48c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x15d20a}=this,{plugins:_0x4cba03,model:_0x591501}=_0x15d20a,_0x35cdb3=_0x4cba03['get'](_0x1ca48c),_0x51d280=_0x4cba03['get'](f);this['listenTo'](_0x35cdb3,'outputTransformation',(_0x40acf2,_0x25b4ef)=>{const _0xc59061=l(_0x591501['createRangeIn'](_0x25b4ef['content']));if(!_0xc59061['length'])return;const _0x5caf7c=_0x51d280['getFootnotes'](),_0x198776=_0xc59061['reduce']((_0x2b2fed,_0x61e7bb)=>{const _0x2f1fa1=_0x5caf7c['find'](_0x167b33=>_0x167b33['id']===_0x61e7bb);if(_0x2f1fa1){const _0x43a396=_0x15d20a['data']['toView'](_0x2f1fa1['definition'],{'isClipboardPipeline':!0x0}),_0xf1373=_0x15d20a['data']['htmlProcessor']['toData'](_0x43a396);_0x2b2fed[_0x2f1fa1['id']]=_0xf1373;}return _0x2b2fed;},Object['create'](null));_0x25b4ef['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x198776));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1d4a23}=this,{model:_0xec4d05,plugins:_0x4381d2}=_0x1d4a23,{view:_0x128a88}=_0x1d4a23['editing'],_0x15ba3c=_0x4381d2['get'](_0x1ca48c),_0x5f45bc=_0x4381d2['get'](f),_0x5b18fd=_0x1d4a23['config']['get']('footnotes.multiBlock');let _0xcae63e=null;this['listenTo'](_0x128a88['document'],'clipboardInput',(_0x2a9b96,_0x21f7c8)=>{const _0x15ec27=_0x21f7c8['dataTransfer']['getData']('application/ckeditor5-footnotes');_0xcae63e=_0x15ec27?JSON['parse'](_0x15ec27):null;}),this['listenTo'](_0x15ba3c,'contentInsertion',(_0xc98691,_0x51cae4)=>{const _0xfd55c2=_0x51cae4['sourceEditorId']===this['editor']['id'];_0xfd55c2&&'drop'===_0x51cae4['method']||_0xec4d05['change'](_0x27785f=>{let _0x45d27d=_0x5f45bc['getFootnotesDefinitionsObjectElement']();const _0x37be06=!!_0x45d27d&&Array['from'](_0xec4d05['document']['selection']['getSelectedBlocks']())['includes'](_0x45d27d);if(!_0xcae63e&&function(_0x59df88){for(const {item:_0x588f44}of _0x59df88)if(_0x588f44['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0xec4d05['createRangeIn'](_0x51cae4['content']))&&(_0xcae63e=function(_0x358b19,_0x54609){const _0x272901=c(_0x358b19,_0x54609);if(!_0x272901)return null;const _0xd5571d=Object['create'](null);for(const _0x1725c3 of _0x272901['getChildren']())_0x1725c3['is']('element','footnoteDefinition')&&_0x1725c3['hasAttribute']('footnoteId')&&(_0xd5571d[_0x1725c3['getAttribute']('footnoteId')]=_0x358b19['cloneElement'](_0x1725c3,!0x0));return Object['keys'](_0xd5571d)['length']?_0xd5571d:null;}(_0x27785f,_0x51cae4['content'])),(_0x45d27d&&!_0x37be06||!_0x45d27d&&!_0xcae63e)&&function(_0x4fddb1,_0x42f253){const _0x3d7377=[];for(const {item:_0x1d4ea4}of _0x4fddb1['createRangeIn'](_0x42f253))_0x1d4ea4['is']('element','footnotesDefinitions')&&_0x3d7377['push'](_0x1d4ea4);for(const _0x4cfff1 of _0x3d7377)_0x4fddb1['remove'](_0x4cfff1);}(_0x27785f,_0x51cae4['content']),!_0xcae63e)return;const {selection:_0x1c6efc}=_0xec4d05['document'],_0x174ca4=_0x1c6efc['getFirstRange']()['root'];_0x45d27d&&!_0x37be06||(_0x45d27d=c(_0x27785f,_0x51cae4['content']),_0x45d27d||=_0x5f45bc['_insertEmptyFootnotesDefinitionsContainer'](_0x27785f,_0x174ca4));const _0x18bcd6=Array['from'](_0x1c6efc['getRanges']())['flatMap'](l),_0x395b36=function(_0x49b01a,_0x185892,_0x3447d3){const _0x40f763=Object['create'](null);for(const {item:_0x4f203c}of _0x49b01a['createRangeIn'](_0x185892))if(_0x4f203c['is']('element','footnoteRef')){const _0x4eb297=_0x4f203c['getAttribute']('footnoteId');if(!_0x3447d3(_0x4eb297))continue;_0x40f763[_0x4eb297]||(_0x40f763[_0x4eb297]=_0x28567c()),_0x49b01a['setAttribute']('footnoteId',_0x40f763[_0x4eb297],_0x4f203c);}return _0x40f763;}(_0x27785f,_0x51cae4['content'],_0x29b01f=>{if(!_0xfd55c2)return!0x0;return!!_0x5f45bc['getFootnote'](_0x29b01f)&&!_0x18bcd6['includes'](_0x29b01f);});for(const [_0x2493dd,_0x2d281e]of Object['entries'](_0xcae63e)){const _0x123212=_0x395b36[_0x2493dd]||_0x2493dd;let _0x465cdb;if('string'!=typeof _0x2d281e)_0x465cdb=_0x2d281e,_0x123212!==_0x2493dd&&_0x27785f['setAttribute']('footnoteId',_0x123212,_0x465cdb);else{_0x465cdb=_0x27785f['createElement']('footnoteDefinition',{'footnoteId':_0x123212});const _0x342249=_0x1d4a23['data']['htmlProcessor']['toView'](_0x2d281e);let _0x59e8ff;if(_0x5b18fd)_0x59e8ff=_0x1d4a23['data']['toModel'](_0x342249,_0x465cdb);else{_0x59e8ff=_0x27785f['createElement']('footnoteInlineContent');const _0x45dc5c=_0x1d4a23['data']['toModel'](_0x342249,_0x59e8ff);_0x27785f['insert'](_0x45dc5c,_0x59e8ff);}_0x27785f['append'](_0x59e8ff,_0x465cdb);}_0x27785f['insert'](_0x465cdb,_0x45d27d,'end');}_0xcae63e=null;});});}}function c(_0x4d7389,_0x5788c7){for(const {item:_0xdb5cb4}of _0x4d7389['createRangeIn'](_0x5788c7))if(_0xdb5cb4['is']('element','footnotesDefinitions'))return _0xdb5cb4;return null;}function l(_0x3ee2d5){const _0x15d2f5=new Set();for(const {item:_0x282283}of _0x3ee2d5)_0x282283['is']('element','footnoteRef')&&_0x15d2f5['add'](_0x282283['getAttribute']('footnoteId'));return Array['from'](_0x15d2f5);}class i extends _0x22932d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x19144b}=this,{componentFactory:_0x572495}=_0x19144b['ui'];_0x572495['add']('insertFootnote',E(_0x19144b,_0x295c20)),_0x572495['add']('menuBar:insertFootnote',E(_0x19144b,_0x2ca2ec)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3caae2=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x275869;for(const _0x550704 in _0x3caae2){const _0x22e1c8=_0x550704,_0x2d9c3e=_0x3caae2[_0x22e1c8];if('footnotesLicenseKeyValid'==_0x2d9c3e||'footnotesLicenseKeyInvalid'==_0x2d9c3e||'footnotesLicenseKeyExpired'==_0x2d9c3e||'footnotesLicenseKeyDomainLimit'==_0x2d9c3e||'footnotesLicenseKeyNotAllowed'==_0x2d9c3e||'footnotesLicenseKeyEvaluationLimit'==_0x2d9c3e||'footnotesLicenseKeyUsageLimit'==_0x2d9c3e){delete _0x3caae2[_0x22e1c8],_0x275869=_0x2d9c3e,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x275869&&_0x3caae2['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x275869&&_0x3caae2['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x275869&&_0x3caae2['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x275869&&_0x3caae2['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x275869&&_0x3caae2['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x275869&&_0x3caae2['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0xdfa9a7,_0x206658){const _0x5e4663=_0xdfa9a7['commands']['get']('insertFootnote');return _0x8757c3=>{const {t:t}=_0x8757c3,_0x2f25dd=new _0x206658(_0x8757c3),_0x4a4e76=_0x2f25dd instanceof _0x2ca2ec;return _0x2f25dd['bind']('isEnabled')['to'](_0x5e4663,'isEnabled'),_0x2f25dd['set']({'label':t(_0x4a4e76?'Footnote':'Insert\x20footnote'),'icon':_0xd6817,'tooltip':!0x0}),_0x2f25dd['on']('execute',()=>{_0x5e4663['execute'](),_0xdfa9a7['editing']['view']['focus']();}),_0x2f25dd;};}class lt extends _0x22932d{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x35fe5e{['refresh'](){const {editor:_0x24030d}=this,_0x4084b2=_0x24030d['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4084b2,this['value']=_0x4084b2?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x247a97}){const {editor:_0x41125a}=this,_0x13c6f8=_0x41125a['plugins']['get'](f),_0x545770=_0x13c6f8['getFootnotesDefinitionsObjectElement']();_0x545770&&W['includes'](_0x247a97)&&_0x41125a['model']['change'](_0x3b653f=>{_0x3b653f['setAttribute']('footnotesListStyle',_0x247a97,_0x545770),_0x13c6f8['_updateFootnotesCounters'](_0x3b653f);});}}class C extends _0x35fe5e{['refresh'](){const {editor:_0x3c777f}=this,_0x5d9620=_0x3c777f['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5d9620,this['value']=_0x5d9620?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x2a0435}){const {editor:_0x1f40b1}=this,_0x4b2aa1=_0x1f40b1['plugins']['get'](f),_0x4c3f3a=_0x4b2aa1['getFootnotesDefinitionsObjectElement']();_0x4c3f3a&&Number['isInteger'](_0x2a0435)&&_0x1f40b1['model']['change'](_0xb6e68e=>{_0xb6e68e['setAttribute']('footnotesListStart',_0x2a0435,_0x4c3f3a),_0x4b2aa1['_updateFootnotesCounters'](_0xb6e68e);});}}class P extends _0x22932d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1dcc02}=this;_0x1dcc02['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x1dcc02['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x1dcc02['commands']['add']('footnotesStyle',new S(_0x1dcc02)),_0x1dcc02['commands']['add']('footnotesStart',new C(_0x1dcc02)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x24a0ef}=this,{schema:_0x3c4588}=_0x24a0ef['model'];_0x3c4588['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x408be6}=this,{conversion:_0x153e49,model:_0x5d5d4e}=_0x408be6,{schema:_0x1459c2}=_0x5d5d4e;_0x153e49['for']('upcast')['add'](_0x3e1f07=>{_0x3e1f07['on']('element:ol',(_0x33d7cb,_0x5314cd,_0x4635f6)=>{const _0x3c04b2=_0x5314cd['viewItem'],_0x21e819=_0x5314cd['modelCursor']?.['parent'];_0x3c04b2['hasClass']('footnotes-list')&&_0x21e819?.['is']('element','footnotesDefinitions')&&(function(_0x4a5ed0,_0x4db506,_0x23397b,_0x5daa1a){if(!_0x5daa1a['checkAttribute'](_0x4db506,'footnotesListStart'))return;let _0x263e59=0x1;const _0x10f5dc=_0x23397b['consumable']['consume'](_0x4a5ed0,{'attributes':'start'});if(_0x10f5dc){const _0x29e852=Number['parseInt'](_0x4a5ed0['getAttribute']('start'),0xa);Number['isNaN'](_0x29e852)||(_0x263e59=_0x29e852);}!_0x10f5dc&&_0x4db506['hasAttribute']('footnotesListStart')||_0x23397b['writer']['setAttribute']('footnotesListStart',_0x263e59,_0x4db506);}(_0x3c04b2,_0x21e819,_0x4635f6,_0x1459c2),function(_0x3a0e86,_0x275221,_0x991288,_0x59867e){if(!_0x59867e['checkAttribute'](_0x275221,'footnotesListStyle'))return;let _0x17822c='decimal',_0x190445=!0x1;if(_0x991288['consumable']['consume'](_0x3a0e86,{'attributes':'type'})){const _0x864bf2={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x3a0e86['getAttribute']('type')];_0x864bf2&&(_0x17822c=_0x864bf2),_0x190445=!0x0;}_0x991288['consumable']['consume'](_0x3a0e86,{'styles':'list-style-type'})&&(_0x17822c=function(_0x12558b){switch(_0x12558b){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x12558b;}}(_0x3a0e86['getStyle']('list-style-type')),_0x190445=!0x0),!_0x190445&&_0x275221['hasAttribute']('footnotesListStyle')||_0x991288['writer']['setAttribute']('footnotesListStyle',_0x17822c,_0x275221);}(_0x3c04b2,_0x21e819,_0x4635f6,_0x1459c2));});}),_0x153e49['for']('downcast')['add'](_0x512295=>{_0x512295['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x96803,_0x40cb02,_0x18127d)=>{if(!_0x18127d['consumable']['consume'](_0x40cb02['item'],_0x96803['name']))return;const _0x4236a4=M(_0x40cb02['item'],_0x18127d['mapper']),{attributeNewValue:_0x268bed}=_0x40cb02;null==_0x268bed||0x1===_0x268bed?_0x18127d['writer']['removeAttribute']('start',_0x4236a4):_0x18127d['writer']['setAttribute']('start',String(_0x268bed),_0x4236a4);}),_0x512295['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2c3d4f,_0x16449e,_0x1a9db3)=>{if(!_0x1a9db3['consumable']['consume'](_0x16449e['item'],_0x2c3d4f['name']))return;const _0x41cf91=M(_0x16449e['item'],_0x1a9db3['mapper']),{attributeNewValue:_0x4a4907}=_0x16449e;_0x4a4907&&'decimal'!==_0x4a4907?_0x1a9db3['writer']['setStyle']('list-style-type',_0x4a4907,_0x41cf91):_0x1a9db3['writer']['removeStyle']('list-style-type',_0x41cf91);});});}['_definePostfixer'](){const {editor:_0x4c2be2}=this,{model:_0x1823bb}=_0x4c2be2,_0x2e8cb6=_0x4c2be2['plugins']['get'](f),_0x256be0=this['_getDefaultListStyle'](),_0x1b372e=this['_getDefaultStartIndex']();_0x1823bb['document']['registerPostFixer'](_0x178e1d=>{const _0x3cc6f9=_0x1823bb['document']['differ']['getChanges']();let _0x198374=!0x1;for(const _0x2e8640 of _0x3cc6f9){if('insert'!==_0x2e8640['type']||'$text'===_0x2e8640['name'])continue;const _0x579577=_0x1823bb['createRangeOn'](_0x2e8640['position']['nodeAfter']);for(const _0x1c6885 of _0x579577['getItems']())_0x1c6885['is']('element','footnotesDefinitions')&&(!_0x1c6885['hasAttribute']('footnotesListStart')&&_0x1823bb['schema']['checkAttribute'](_0x1c6885,'footnotesListStart')&&(_0x178e1d['setAttribute']('footnotesListStart',_0x1b372e,_0x1c6885),_0x198374=!0x0),!_0x1c6885['hasAttribute']('footnotesListStyle')&&_0x1823bb['schema']['checkAttribute'](_0x1c6885,'footnotesListStyle')&&(_0x178e1d['setAttribute']('footnotesListStyle',_0x256be0,_0x1c6885),_0x198374=!0x0));}return _0x198374&&_0x2e8cb6['_updateFootnotesCounters'](_0x178e1d),_0x198374;});}['_defineFormatter'](){const {editor:_0x26241c}=this;_0x26241c['plugins']['get'](f)['setFootnoteFormatter'](_0x2022fa=>this['_formatFootnoteListValue'](_0x2022fa));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x270c54,value:_0x3cc114,digits:_0x1fe795}){const _0x377e61=_0x270c54['getAttribute']('footnotesListStyle'),_0xe64b65=_0x270c54['getAttribute']('footnotesListStart'),_0x1af479=Math['floor'](_0x3cc114)+(_0xe64b65??0x1)-0x1;switch(_0x377e61){case'decimal-leading-zero':return function(_0x4f55a8,_0x2572f7){return String(_0x4f55a8)['padStart'](_0x2572f7,'0');}(_0x1af479,Math['max'](0x2,_0x1fe795));case'lower-alpha':case'lower-latin':return N(_0x1af479,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1af479,!0x0);case'lower-roman':return X(_0x1af479,!0x1);case'upper-roman':return X(_0x1af479,!0x0);default:return String(_0x1af479);}}}function M(_0x577489,_0x428896){const _0x3ebaec=_0x428896['toViewElement'](_0x577489);return Array['from'](_0x3ebaec['getChildren']())['find'](_0x1fc610=>_0x1fc610['is']('element','ol')&&_0x1fc610['hasClass']('footnotes-list'));}function N(_0x251b99,_0x509bf4){let _0x37f0be='',_0x5b0de2=_0x251b99;for(;_0x5b0de2>0x0;){const _0x4dad86=(_0x5b0de2-0x1)%0x1a;_0x37f0be=String['fromCharCode'](0x61+_0x4dad86)+_0x37f0be,_0x5b0de2=Math['floor']((_0x5b0de2-0x1)/0x1a);}return _0x509bf4?_0x37f0be['toUpperCase']():_0x37f0be;}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(_0x1e9ddd,_0x5c7eff){let _0x142647='',_0x17fdb9=_0x1e9ddd;for(const {value:_0x10b2a5,numeral:_0x2d4a15}of V)for(;_0x17fdb9>=_0x10b2a5;)_0x142647+=_0x2d4a15,_0x17fdb9-=_0x10b2a5;return _0x5c7eff?_0x142647:_0x142647['toLowerCase']();}class J extends _0x30d034{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x276d50();['focusCycler'];constructor(_0x195b16,{styleButtonViews:_0x40b875,styleGridAriaLabel:_0x484c79}){super(_0x195b16),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x40b875,_0x484c79),[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 _0x56f7f5 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x56f7f5['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x5ed3b0=_0x4879f7=>_0x4879f7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5ed3b0),this['keystrokes']['set']('arrowleft',_0x5ed3b0),this['keystrokes']['set']('arrowup',_0x5ed3b0),this['keystrokes']['set']('arrowdown',_0x5ed3b0);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x15cfd7,_0x2c7405){const _0x3280e6=new _0x30d034(this['locale']);return _0x3280e6['children']=_0x3280e6['createCollection'](),_0x3280e6['children']['addMany'](_0x15cfd7),_0x3280e6['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2c7405,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3280e6['children']}),_0x3280e6['children']['delegate']('execute')['to'](this),_0x3280e6['focus']=function(){for(const _0x3ea7ef of this['children'])if(_0x3ea7ef instanceof _0x295c20&&_0x3ea7ef['isOn'])return void _0x3ea7ef['focus']();this['children']['first']['focus']();},_0x3280e6['focusTracker']=new rt(),_0x3280e6['keystrokes']=new nt(),_0x3280e6['render'](),_0x3280e6['keystrokes']['listenTo'](_0x3280e6['element']),this['children']['add'](_0x3280e6),_0x3280e6;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x385bdd=this['_createStartIndexPropertyView'](),_0x14360e=[_0x385bdd],_0x354b68=new it(this['locale'],_0x14360e);return _0x354b68['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x354b68['buttonView']['bind']('isEnabled')['toMany'](_0x14360e,'isEnabled',(..._0xf37466)=>_0xf37466['some'](_0x43c9fb=>_0x43c9fb)),_0x354b68['buttonView']['on']('change:isEnabled',(_0x2135fb,_0x4a446c,_0x4c6540)=>{_0x4c6540||(_0x354b68['isCollapsed']=!0x0);}),this['children']['add'](_0x354b68),[_0x385bdd,_0x354b68];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1a294c=new et(this['locale'],ot);return _0x1a294c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1a294c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1a294c['fieldView']['on']('input',()=>{const _0x50a4d3=_0x1a294c['fieldView']['element'],_0x1533ee=_0x50a4d3['valueAsNumber'];Number['isNaN'](_0x1533ee)?_0x1a294c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x50a4d3['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1533ee}):_0x1a294c['errorText']=t(_0x1533ee<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1a294c;}}class j extends _0x22932d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3de55f,_0x51b7eb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2d5873}=this,{componentFactory:_0x180245}=_0x2d5873['ui'];_0x2d5873['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x180245['add']('footnotesStyle',function(_0xf15d35){return _0x4d7014=>{const {t:t}=_0x4d7014,_0x433cea=_0xf15d35['commands']['get']('footnotesStyle'),_0x5b08af=_0x1d0c43(_0x4d7014),{buttonView:_0x3cb952}=_0x5b08af;return _0x5b08af['class']='ck-footnotes-styles-dropdown',_0x5b08af['bind']('isEnabled')['to'](_0x433cea,'isEnabled'),_0x3cb952['set']({'label':t('Footnotes\x20style'),'icon':_0xd6817,'tooltip':!0x0}),_0x5b08af['once']('change:isOpen',()=>{const _0x2ac6e2=function({editor:_0x1aa33d,dropdownView:_0x1261e9}){const {t:t}=_0x1aa33d['locale'],_0x274dac=t('Footnotes\x20definitions\x20styles'),_0x29bfc2=function(_0x155b98){const t=_0x155b98['locale']['t'],_0x3e6e12=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x838114},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xe3534},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x539df2},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2d045b},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x57e3d6},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4dd14f}];return _0x3e6e12['map'](function(_0x222131){const _0x5b6fb0=_0x222131['locale'];return({label:_0xfc523c,icon:_0x2d07ac,tooltip:_0x3bbb8e,style:_0xb5a239})=>{const _0xaaeac9=_0x222131['commands']['get']('footnotesStyle'),_0x391816=new _0x295c20(_0x5b6fb0);return _0x391816['set']({'label':_0xfc523c,'icon':_0x2d07ac,'tooltip':_0x3bbb8e}),_0x391816['bind']('isOn')['to'](_0xaaeac9,'value',_0x3d0077=>_0x3d0077===_0xb5a239),_0x391816['bind']('isEnabled')['to'](_0xaaeac9,'isEnabled'),_0x391816['on']('execute',()=>{_0x222131['execute']('footnotesStyle',{'value':_0xb5a239}),_0x222131['editing']['view']['focus']();}),_0x391816;};}(_0x155b98));}(_0x1aa33d),_0x5833fe=new J(_0x1aa33d['locale'],{'styleGridAriaLabel':_0x274dac,'styleButtonViews':_0x29bfc2}),_0xa479a3=_0x1aa33d['commands']['get']('footnotesStart');return _0x5833fe['startIndexFieldView']['bind']('isEnabled')['to'](_0xa479a3),_0x5833fe['startIndexFieldView']['fieldView']['bind']('value')['to'](_0xa479a3),_0x5833fe['on']('footnotesListStart',(_0x576362,_0x304ac8)=>{_0x1aa33d['execute']('footnotesStart',{'value':_0x304ac8['startIndex']});}),_0x5833fe['delegate']('execute')['to'](_0x1261e9),_0x5833fe;}({'editor':_0xf15d35,'dropdownView':_0x5b08af});_0x5b08af['panelView']['children']['add'](_0x2ac6e2);}),_0x5b08af;};}(_0x2d5873));}['afterInit'](){const {editor:_0x302506}=this,{t:t}=_0x302506['locale'],_0x1a7c54=_0x302506['plugins']['get'](_0x51b7eb),{defaultPositions:_0x45f5e5}=_0x214aeb;_0x1a7c54['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x302506['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x582784=>{let _0x48823f=_0x582784['getFirstPosition']()?.['parent'];return _0x48823f?.['is']('$text')&&(_0x48823f=_0x48823f['parent']),_0x48823f?.['is']('element')?_0x48823f['findAncestor'](Q):null;},'positions':[_0x45f5e5['southArrowNorth'],_0x45f5e5['southArrowNorthMiddleWest'],_0x45f5e5['southArrowNorthMiddleEast'],_0x45f5e5['southArrowNorthWest'],_0x45f5e5['southArrowNorthEast'],_0x45f5e5['northArrowSouth'],_0x45f5e5['northArrowSouthMiddleWest'],_0x45f5e5['northArrowSouthMiddleEast'],_0x45f5e5['northArrowSouthWest'],_0x45f5e5['northArrowSouthEast'],_0x45f5e5['viewportStickyNorth']]});}}class ft extends _0x22932d{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
23
+ import{Plugin as _0x19d282,Command as _0x5dcd72}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1e629c,isWidget as _0x1b91e8,toWidgetEditable as _0x168b8d,WidgetToolbarRepository as _0x485e67}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x494e29,logWarning as _0x388350,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xfda84c,ClickObserver as _0x455301}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1c55f9}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0xac728b,ButtonView as _0x57e31b,View as _0x3f35c4,ViewCollection as _0x34314c,FocusCycler as _0x5aa4bf,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x3d3e38,BalloonPanelView as _0x39994f,createDropdown as _0x27e3e8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x59fbc4,IconListStyleDecimal as _0x3ef62f,IconListStyleDecimalLeadingZero as _0x1e4f2c,IconListStyleLowerRoman as _0xde1ffd,IconListStyleUpperRoman as _0xad5bad,IconListStyleLowerLatin as _0x185c0d,IconListStyleUpperLatin as _0x8b695d}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x406fa2,_0x16b1a6){this['_model']=_0x406fa2,this['_elementName']=_0x16b1a6['elementName'],this['_getElementKey']=_0x16b1a6['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3d7bc7){const _0x107f35=new Set(),_0x260e42=new Map();for(const _0x34c23f of _0x3d7bc7){if('insert'===_0x34c23f['type']&&'$text'!==_0x34c23f['name']&&_0x34c23f['position']['nodeAfter']){const _0x23167f=this['_model']['createRangeOn'](_0x34c23f['position']['nodeAfter']);for(const _0x3fa77e of _0x23167f['getItems']()){if(!_0x3fa77e['is']('element',this['_elementName']))continue;const _0x5737f2=this['_getElementKey'](_0x3fa77e);_0x260e42['has'](_0x5737f2)||_0x260e42['set'](_0x5737f2,[]),_0x260e42['get'](_0x5737f2)['push'](_0x3fa77e);}}if('remove'===_0x34c23f['type']&&_0x34c23f['name']===this['_elementName']){const _0x7ead75=this['_getElementKey']({'getAttribute':_0x5df005=>_0x34c23f['attributes']['get'](_0x5df005)});_0x107f35['add'](_0x7ead75);}}for(const [_0x16d2b6,_0x5f48a0]of this['_trackedElements'])'$graveyard'===_0x5f48a0['root']['rootName']&&_0x107f35['add'](_0x16d2b6);for(const _0x97782e of _0x107f35)this['_trackedElements']['delete'](_0x97782e);for(const [_0x44dbcc,_0xcf7b82]of _0x260e42)this['_trackedElements']['set'](_0x44dbcc,_0xcf7b82[_0xcf7b82['length']-0x1]);const _0x3fa4c6=new Set();for(const [_0xb6436c,_0x4272e8]of _0x260e42)_0x107f35['has'](_0xb6436c)&&(_0x3fa4c6['add'](_0x4272e8[0x0]),_0x4272e8['length']>0x1?_0x260e42['set'](_0xb6436c,_0x4272e8['slice'](0x1)):_0x260e42['delete'](_0xb6436c),_0x107f35['delete'](_0xb6436c));return{'removed':Array['from'](_0x107f35),'inserted':Array['from'](_0x260e42['values']())['flat'](),'moved':Array['from'](_0x3fa4c6)};}}class f extends _0x19d282{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52d629){super(_0x52d629),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x45e8e3=>_0x45e8e3['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5e7389=>_0x5e7389['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4897cb}=this,{model:_0x5a385c,data:_0x3a8df7}=_0x4897cb;_0x5a385c['document']['registerPostFixer'](_0x2027a6=>{const _0x3aee73=_0x5a385c['document']['differ']['getChanges']();let _0x232ea2=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2027a6,_0x3aee73)&&(_0x232ea2=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2027a6,_0x3aee73)&&(_0x232ea2=!0x0),this['_handleFootnoteReferencesChanges'](_0x2027a6,_0x3aee73)&&(_0x232ea2=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2027a6)&&(_0x232ea2=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2027a6)&&(_0x232ea2=!0x0),this['_sortFootnoteDefinitions'](_0x2027a6)&&(_0x232ea2=!0x0),_0x232ea2;}),this['listenTo'](_0x5a385c['document'],'change:data',()=>{_0x5a385c['enqueueChange']({'isUndoable':!0x1},_0x380515=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x380515);});},{'priority':'low'}),this['listenTo'](_0x3a8df7,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x32bb27){return this['_footnotes']['find'](_0x50ff84=>_0x50ff84['id']===_0x32bb27)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x47abac){this['_footnoteFormatter']=_0x47abac;}['_updateFootnotesCounters'](_0x4be667,_0x8d147d=0x0){let _0x173ed1=!0x1;for(let _0x2bf587=_0x8d147d;_0x2bf587<this['_footnotes']['length'];_0x2bf587++)this['_updateFootnoteRefCounter'](_0x4be667,_0x2bf587)&&(_0x173ed1=!0x0);return _0x173ed1;}['_insertEmptyFootnotesDefinitionsContainer'](_0x4a32f3,_0x242370){const _0x51880b=_0x4a32f3['createElement']('footnotesDefinitions',{});return _0x4a32f3['append'](_0x51880b,_0x242370),this['_footnotesDefinitions']=_0x51880b,_0x51880b;}['_ensureFootnotesDefinitionsContainerExists'](_0x6c09d5){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x835b4c=this['_footnotes'][0x0]['reference']['root'],_0x5abbe1=this['_insertEmptyFootnotesDefinitionsContainer'](_0x6c09d5,_0x835b4c);for(const _0x6f5788 of this['_footnotes'])_0x6f5788['definition']['parent']||_0x6c09d5['insert'](_0x6f5788['definition'],_0x5abbe1,'end');this['_updateFootnotesCounters'](_0x6c09d5);}['_handleFootnotesDefinitionsObjectChanges'](_0x132960,_0x20089c){let _0x23c5f0=!0x1;const {inserted:_0x3344d4,removed:_0x4deb6f,moved:_0x3a7e29}=this['_footnoteDefsContainerTracker']['getChanges'](_0x20089c);if(_0x3a7e29['length']&&(this['_footnotesDefinitions']=_0x3a7e29[0x0]),_0x3344d4['length']){if(_0x3344d4['length']>0x1||this['_footnotesDefinitions']&&_0x3344d4['some'](_0x134b03=>_0x134b03!==this['_footnotesDefinitions'])){const _0xfb1233=_0x132960['createElement']('footnotesDefinitions',{}),_0x25df2a=[];this['_footnotesDefinitions']&&_0x25df2a['push'](this['_footnotesDefinitions']),_0x25df2a['push'](..._0x3344d4),_0x132960['insert'](_0xfb1233,_0x25df2a[0x0],'before');for(const _0x20e911 of _0x25df2a)_0x132960['move'](_0x132960['createRangeIn'](_0x20e911),_0x132960['createPositionAt'](_0xfb1233,'end')),_0x132960['remove'](_0x20e911);this['_footnotesDefinitions']=_0xfb1233,this['_updateFootnotesCounters'](_0x132960),_0x23c5f0=!0x0;}else this['_footnotesDefinitions']=_0x3344d4[0x0];}if(_0x4deb6f['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x19be48 of this['_footnotes'])_0x132960['remove'](_0x19be48['reference']),_0x23c5f0=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x23c5f0;}['_handleFootnoteDefinitionsChanges'](_0x1db84c,_0x32143a){let _0x4e7918=!0x1;const _0x2bf728=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4dc5ef,moved:_0x3aafa2}=this['_footnoteDefsTracker']['getChanges'](_0x32143a);for(const _0x3de677 of[..._0x3aafa2,..._0x4dc5ef]){const _0x512007=_0x3de677['getAttribute']('footnoteId'),_0x4527a8=this['getFootnote'](_0x512007);_0x4527a8&&(_0x4527a8['definition']=_0x3de677),_(_0x1db84c,_0x2bf728,_0x3de677)&&(_0x4e7918=!0x0);}return _0x4e7918;}['_handleFootnoteReferencesChanges'](_0x3f92ec,_0x1afb10){let _0x56f794=!0x1;const {removed:_0x16b0af,inserted:_0x393a42,moved:_0x3f5b1c}=this['_footnoteRefsTracker']['getChanges'](_0x1afb10);for(const _0xc5e71e of _0x16b0af)this['_handleRemoveFootnoteReferenceById'](_0x3f92ec,_0xc5e71e)&&(_0x56f794=!0x0);for(const _0xbf6cc2 of _0x393a42)this['_handleInsertedFootnoteReference'](_0x3f92ec,_0xbf6cc2)&&(_0x56f794=!0x0);for(const _0x593387 of _0x3f5b1c)this['_handleMovedFootnoteReference'](_0x3f92ec,_0x593387)&&(_0x56f794=!0x0);return _0x56f794;}['_handleFootnotesDefinitionsObjectSync'](_0x1ea76e){if(!this['_footnotesDefinitions'])return!0x1;let _0x5afce4=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4e75b1=[];for(const _0x29c885 of this['_footnotesDefinitions']['getChildren']()){const _0x197df3=_0x29c885['getAttribute']('footnoteId');this['getFootnote'](_0x197df3)||(_0x4e75b1['unshift'](_0x29c885),_0x5afce4=!0x0);}for(const _0x242296 of _0x4e75b1)_0x1ea76e['remove'](_0x242296);}const _0x563637=new Set(),_0x1aff72=[];for(const _0x192952 of this['_footnotesDefinitions']['getChildren']()){const _0x8ce623=_0x192952['getAttribute']('footnoteId');_0x563637['has'](_0x8ce623)?(_0x1aff72['unshift'](_0x192952),_0x5afce4=!0x0):_0x563637['add'](_0x8ce623);}for(const _0x7d71c8 of _0x1aff72)_0x1ea76e['remove'](_0x7d71c8);return this['_footnotesDefinitions']['childCount']||(_0x1ea76e['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5afce4=!0x0),_0x5afce4;}['_handleInsertedFootnoteReference'](_0x24dea5,_0x344590){if(this['_footnotes']['find'](_0x260f7e=>_0x260f7e['reference']===_0x344590))return!0x1;let _0x747719=!0x1;const _0x12f609=_0x344590['getAttribute']('footnoteId'),_0xfa7df7=this['_footnotes']['findIndex'](_0x4922d9=>_0x4922d9['id']===_0x12f609);-0x1!==_0xfa7df7&&(_0x24dea5['remove'](this['_footnotes'][_0xfa7df7]['reference']),this['_footnotes']['splice'](_0xfa7df7,0x1),_0x747719=!0x0);let _0x11c515=this['_footnotesDefinitions']?function(_0x46c173,_0x52bd98){for(const _0x4968b6 of _0x46c173['getChildren']())if(_0x4968b6['getAttribute']('footnoteId')===_0x52bd98)return _0x4968b6;return null;}(this['_footnotesDefinitions'],_0x12f609):null;_0x11c515||(_0x11c515=_0x24dea5['createElement']('footnoteDefinition',{'footnoteId':_0x12f609}),this['_footnotesDefinitions']&&(_0x24dea5['insert'](_0x11c515,this['_footnotesDefinitions'],'end'),_0x747719=!0x0));const _0x23922e={'id':_0x12f609,'reference':_0x344590,'definition':_0x11c515},_0x31bff9=I(this['editor']['model'],this['_footnotes'],_0x344590);this['_footnotes']['splice'](_0x31bff9,0x0,_0x23922e);let _0x1d9918=_0x31bff9;return-0x1!==_0xfa7df7&&(_0x1d9918=Math['min'](_0x31bff9,_0xfa7df7)),this['_updateFootnotesCounters'](_0x24dea5,_0x1d9918)&&(_0x747719=!0x0),_0x747719;}['_handleRemoveFootnoteReferenceById'](_0x1222ca,_0x6809fe){const _0x3bba25=this['_footnotes']['findIndex'](_0x455a1e=>_0x455a1e['id']===_0x6809fe);if(-0x1===_0x3bba25)return!0x1;let _0x42a236=!0x1;const _0x9d4ffe=this['_footnotes'][_0x3bba25];return'$graveyard'!==_0x9d4ffe['definition']['root']['rootName']&&(_0x1222ca['remove'](_0x9d4ffe['definition']),_0x42a236=!0x0),this['_footnotes']['splice'](_0x3bba25,0x1),this['_updateFootnotesCounters'](_0x1222ca,_0x3bba25)&&(_0x42a236=!0x0),_0x42a236;}['_handleMovedFootnoteReference'](_0x31f18b,_0x2ab23a){const _0x86c9a2=_0x2ab23a['getAttribute']('footnoteId'),_0x1b9ff3=this['_footnotes']['findIndex'](_0x5049c0=>_0x5049c0['id']===_0x86c9a2),_0x3bda1a=this['_footnotes'][_0x1b9ff3];let _0xb0ac7c=!0x1;_0x3bda1a['reference']=_0x2ab23a,this['_footnotes']['splice'](_0x1b9ff3,0x1);const _0x4fc190=I(this['editor']['model'],this['_footnotes'],_0x2ab23a);return this['_footnotes']['splice'](_0x4fc190,0x0,_0x3bda1a),this['_updateFootnotesCounters'](_0x31f18b,Math['min'](_0x1b9ff3,_0x4fc190))&&(_0xb0ac7c=!0x0),_0xb0ac7c;}['_updateFootnoteRefCounter'](_0x3289bb,_0xbd19fe){if(!this['_footnotesDefinitions'])return!0x1;const _0x366271=this['_footnotes'][_0xbd19fe];let _0x13dd67;return _0x13dd67=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x366271,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xbd19fe+0x1}):String(_0xbd19fe+0x1),_0x366271['reference']['getAttribute']('footnoteCounter')!=_0x13dd67&&(_0x3289bb['setAttribute']('footnoteCounter',_0x13dd67,_0x366271['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x57a609){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x371d6e,_0x492bd8){if(_0x371d6e['length']!==_0x492bd8['length'])return!0x1;for(let _0x5b2f0e=0x0;_0x5b2f0e<_0x371d6e['length'];_0x5b2f0e++)if(_0x371d6e[_0x5b2f0e]!==_0x492bd8[_0x5b2f0e])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3ed112=>_0x3ed112['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x29c03a=>_0x29c03a['getAttribute']('footnoteId'))))return!0x1;let _0x2e7d2d=!0x1;for(let _0x1f5a67=0x0;_0x1f5a67<this['_footnotes']['length'];_0x1f5a67++){const _0x5da777=this['_footnotes'][_0x1f5a67],_0x3ec313=_0x57a609['createPositionBefore'](_0x5da777['definition']),_0xebdae4=_0x57a609['createPositionAt'](this['_footnotesDefinitions'],_0x1f5a67);_0x3ec313['isEqual'](_0xebdae4)||(_0x57a609['move'](_0x57a609['createRangeOn'](_0x5da777['definition']),_0xebdae4),_0x2e7d2d=!0x0);}return _0x2e7d2d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x16b953){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5dcce2}=this['editor'];let _0x46a957=!0x1;for(let _0x2f040d=0x0;_0x2f040d<this['_footnotes']['length']-0x1;_0x2f040d++){const _0x1085d9=this['_footnotes'][_0x2f040d],_0x1acfd7=this['_footnotes'][_0x2f040d+0x1],_0x2095e8=_0x5dcce2['createPositionBefore'](_0x1085d9['reference']),_0x304382=_0x5dcce2['createPositionBefore'](_0x1acfd7['reference']);'after'===_0x2095e8['compareWith'](_0x304382)&&(this['_handleMovedFootnoteReference'](_0x16b953,_0x1085d9['reference']),_0x2f040d=-0x1,_0x46a957=!0x0);}return _0x46a957;}}function _(_0x2b1ac3,_0x20c52e,_0x16001b){if(_0x16001b['childCount'])return!0x1;const _0x5ad36f=_0x20c52e?'paragraph':'footnoteInlineContent';return _0x2b1ac3['insert'](_0x2b1ac3['createElement'](_0x5ad36f),_0x16001b),!0x0;}function I(_0x206d0b,_0x35dd20,_0x40d937){if(0x0===_0x35dd20['length'])return 0x0;const _0x5c2510=_0x206d0b['createPositionBefore'](_0x40d937);for(let _0x37f243=0x0;_0x37f243<_0x35dd20['length'];_0x37f243++){const _0x3d11de=_0x35dd20[_0x37f243],_0x19e00b=_0x206d0b['createPositionBefore'](_0x3d11de['reference']);if('before'===_0x5c2510['compareWith'](_0x19e00b))return _0x37f243;}const _0x25d483=_0x40d937['root'];let _0x4502a1=-0x1;for(let _0x508e86=_0x35dd20['length']-0x1;_0x508e86>=0x0;_0x508e86--)if(_0x35dd20[_0x508e86]['reference']['root']===_0x25d483){_0x4502a1=_0x508e86;break;}if(-0x1!==_0x4502a1)return _0x4502a1+0x1;const _0x5f4f50=_0x206d0b['document']['getRootNames'](),_0xa0ea97=_0x5f4f50['indexOf'](_0x25d483['rootName']),_0xbdec92=_0x5f4f50[_0xa0ea97+0x1];if(_0xbdec92){for(let _0x5c1310=0x0;_0x5c1310<_0x35dd20['length'];_0x5c1310++)if(_0x35dd20[_0x5c1310]['reference']['root']['rootName']===_0xbdec92)return _0x5c1310;}return _0x35dd20['length'];}class h extends _0x5dcd72{['refresh'](){const _0x54290e=this['editor']['model']['document']['selection'],_0x28d198=this['_getPositionToInsertFootnote'](_0x54290e);this['isEnabled']=!!_0x28d198;}['execute'](_0x152245){const {editor:_0x3b7f41}=this,{model:_0xf508e6}=_0x3b7f41,{selection:_0x1ebeea}=_0xf508e6['document'],_0x37a2f8=this['_getPositionToInsertFootnote'](_0x1ebeea);if(!_0x37a2f8)return;const _0x300a98=_0x3b7f41['plugins']['get']('FootnotesEditing'),_0x4237d6=_0x152245?.['footnoteId']??_0x494e29();!function(_0x4e13d8){return'string'==typeof _0x4e13d8&&_0x4e13d8['length']>0x0&&!/\s/['test'](_0x4e13d8)&&!/^\d/['test'](_0x4e13d8);}(_0x4237d6)?_0x388350('insert-footnote-command-executed-with-invalid-id'):(_0xf508e6['change'](_0x504758=>{const _0x1375da=_0x504758['createElement']('footnoteRef',{'footnoteId':_0x4237d6});_0xf508e6['insertObject'](_0x1375da,_0x37a2f8,null);}),_0x300a98['_moveSelectionToFootnoteDefinition'](_0x4237d6));}['_getPositionToInsertFootnote'](_0xde42b2){const {model:_0xc58709}=this['editor'],{schema:_0x407e64}=_0xc58709,_0x163890=_0xde42b2['getFirstRange']();for(const _0x3b988b of _0x163890['getItems']())if(_0x407e64['isBlock'](_0x3b988b)||_0x407e64['isObject'](_0x3b988b))return null;const _0x1bf8fa=_0x163890['end'];return _0x407e64['checkChild'](_0x1bf8fa,'footnoteRef')?_0x1bf8fa:null;}}class r extends _0x19d282{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5984de}=this;_0x5984de['config']['define']('footnotes.multiBlock',!0x0),_0x5984de['commands']['add']('insertFootnote',new h(_0x5984de)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x25879f){const _0x2b54ba=_0x23ae18([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]),_0x5d2d89=0x47a28506,_0x2a8940=0x47a5043e^_0x5d2d89,_0x54f086=window[_0x23ae18([0x44,0x61,0x74,0x65])][_0x23ae18([0x6e,0x6f,0x77])](),_0xd12d5e=_0x25879f[_0x23ae18([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cc962=new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a9c9=>{_0xd12d5e[_0x23ae18([0x6f,0x6e,0x63,0x65])](_0x23ae18([0x72,0x65,0x61,0x64,0x79]),_0x45a9c9);}),_0x24d95f={[_0x23ae18([0x6b,0x74,0x79])]:_0x23ae18([0x45,0x43]),[_0x23ae18([0x75,0x73,0x65])]:_0x23ae18([0x73,0x69,0x67]),[_0x23ae18([0x63,0x72,0x76])]:_0x23ae18([0x50,0x2d,0x32,0x35,0x36]),[_0x23ae18([0x78])]:_0x23ae18([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]),[_0x23ae18([0x79])]:_0x23ae18([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]),[_0x23ae18([0x61,0x6c,0x67])]:_0x23ae18([0x45,0x53,0x32,0x35,0x36])},_0x2f31c1=_0xd12d5e[_0x23ae18([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23ae18([0x67,0x65,0x74])](_0x23ae18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x116de7(){let _0x2a7456,_0x4bb4e6=null,_0xce2774=null;try{if(_0x2f31c1==_0x23ae18([0x47,0x50,0x4c]))return _0x23ae18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a7456=_0x27928f(),!_0x2a7456)return _0x23ae18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a7456[_0x23ae18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xce2774=_0x38d31a(_0x2a7456[_0x23ae18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a7456[_0x23ae18([0x6a,0x74,0x69])])),await _0x52ea55()?_0xf149aa()?_0x3d9bcf()?_0x23ae18([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa03479()?(_0x2a7456[_0x23ae18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23ae18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bb4e6=_0x36099f(_0x23ae18([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28589c()):_0x23ae18([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23ae18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23ae18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23ae18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d9bcf(){const _0x5276d0=[_0x23ae18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23ae18([0x74,0x72,0x69,0x61,0x6c])][_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a7456[_0x23ae18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54f086/0x3e8:0xe10*_0x2a8940;return _0x2a7456[_0x23ae18([0x65,0x78,0x70])]<_0x5276d0;}function _0xf149aa(){const _0x4e552c=_0x2a7456[_0x23ae18([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e552c&&(!!_0x4e552c[_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ae18([0x2a]))||!!_0x4e552c[_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ae18([0x46,0x4f,0x4f])));}function _0xa03479(){const _0x5278d4=_0x2a7456[_0x23ae18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5278d4||0x0==_0x5278d4[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b4e48}=new URL(window[_0x23ae18([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5278d4[_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4e48))return!0x0;const _0x137e9d=_0x2b4e48[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])](_0x23ae18([0x2e]));return _0x5278d4[_0x23ae18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45836c=>_0x45836c[_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ae18([0x2a])))[_0x23ae18([0x6d,0x61,0x70])](_0x32bc09=>_0x32bc09[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])](_0x23ae18([0x2e])))[_0x23ae18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fa32d=>_0x2fa32d[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x137e9d[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23ae18([0x6d,0x61,0x70])](_0x2cb1ec=>Array(_0x137e9d[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2cb1ec[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23ae18([0x66,0x69,0x6c,0x6c])](_0x2cb1ec[0x0]===_0x23ae18([0x2a])?_0x23ae18([0x2a]):'')[_0x23ae18([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2cb1ec))[_0x23ae18([0x73,0x6f,0x6d,0x65])](_0x413422=>_0x137e9d[_0x23ae18([0x65,0x76,0x65,0x72,0x79])]((_0x4b04a9,_0x1e9275)=>_0x413422[_0x1e9275]===_0x4b04a9||_0x413422[_0x1e9275]===_0x23ae18([0x2a])));}function _0x28589c(){return _0x4bb4e6&&_0xce2774?new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fd458,_0x22b376)=>{_0x4bb4e6[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x4fd458,_0x22b376),_0xce2774[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x33d8f4=>{_0x33d8f4!=_0x23ae18([0x56,0x61,0x6c,0x69,0x64])&&_0x4fd458(_0x33d8f4);},_0x22b376);}):_0x4bb4e6||_0xce2774||_0x23ae18([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38d31a(_0x3bfff9,_0x557e1c){return new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe57aef=>{if(_0x13638c())return _0xe57aef(_0x23ae18([0x56,0x61,0x6c,0x69,0x64]));_0x3a9c65(),_0xd12d5e[_0x23ae18([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23ae18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3514be=!0x1;const _0x33966f=_0x494e29();function _0x905db7(_0x2f6809){return!!_0x2f6809&&(typeof _0x2f6809===_0x23ae18([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f6809===_0x23ae18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f6809[_0x23ae18([0x74,0x68,0x65,0x6e])]===_0x23ae18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f6809[_0x23ae18([0x63,0x61,0x74,0x63,0x68])]===_0x23ae18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52ea72(_0xd917e0){_0x1d7172(_0xd917e0)[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x3f4a9d=>{if(!_0x3f4a9d||_0x3f4a9d[_0x23ae18([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23ae18([0x6f,0x6b]))return _0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x268cbb(_0x5d2951(_0x33966f+_0x557e1c))!=_0x3f4a9d[_0x23ae18([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23ae18([0x56,0x61,0x6c,0x69,0x64]);})[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x49dfe5=>(_0x130272(),_0x49dfe5),()=>{const _0x44868e=_0x5b15a3();return null==_0x44868e?(_0x130272(),_0x23ae18([0x56,0x61,0x6c,0x69,0x64])):_0x23ae18(_0x54f086-_0x44868e>(0x63ae0106^_0x5d2d89)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23ae18([0x74,0x68,0x65,0x6e])](_0xe57aef)[_0x23ae18([0x63,0x61,0x74,0x63,0x68])](()=>{_0xe57aef(_0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57bc2f=0x47946b86^_0x5d2d89;function _0x130272(){const _0x55f9a2=_0x23ae18([0x6c,0x6c,0x63,0x74,0x2d])+_0x268cbb(_0x5d2951(_0x3bfff9)),_0x30a7ed=_0x330d78(_0x268cbb(window[_0x23ae18([0x4d,0x61,0x74,0x68])][_0x23ae18([0x63,0x65,0x69,0x6c])](_0x54f086/_0x57bc2f)));window[_0x23ae18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23ae18([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55f9a2,_0x30a7ed);}function _0x5b15a3(){const _0x58e90f=_0x23ae18([0x6c,0x6c,0x63,0x74,0x2d])+_0x268cbb(_0x5d2951(_0x3bfff9)),_0xc982ee=window[_0x23ae18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23ae18([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58e90f);return _0xc982ee?window[_0x23ae18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x330d78(_0xc982ee),0x10)*_0x57bc2f:null;}function _0x1d7172(_0x436658){return new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33f2be,_0x21a200)=>{_0x436658[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x33f2be,_0x21a200),window[_0x23ae18([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21a200,0x47a351c6^_0x5d2d89);});}}_0xd12d5e[_0x23ae18([0x6f,0x6e])](_0x23ae18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ffc81,_0x3b8950)=>{if(_0x3b8950[0x0]!=_0x3bfff9)return _0xe57aef(_0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b8950[0x1]={..._0x3b8950[0x1],[_0x23ae18([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33966f};},{[_0x23ae18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23ae18([0x68,0x69,0x67,0x68])}),_0xd12d5e[_0x23ae18([0x6f,0x6e])](_0x23ae18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a1fd6=>{_0x905db7(_0x3a1fd6[_0x23ae18([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3514be=!0x0,_0x52ea72(_0x3a1fd6[_0x23ae18([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23ae18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23ae18([0x6c,0x6f,0x77])}),_0x1cc962[_0x23ae18([0x74,0x68,0x65,0x6e])](()=>{_0x3514be||_0xe57aef(_0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13638c(){return _0xd12d5e[_0x23ae18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23ae18([0x76,0x69,0x65,0x77])][_0x23ae18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23ae18([0x61,0x75,0x74,0x6f]);}function _0x3a9c65(){_0xd12d5e[_0x23ae18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23ae18([0x76,0x69,0x65,0x77])][_0x23ae18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23ae18([0x61,0x75,0x74,0x6f]);}}function _0x36099f(_0x4d1a90){const _0x12e37d=[new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163d48=>setTimeout(_0x163d48,0x47abbbca^_0x5d2d89)),_0x1cc962[_0x23ae18([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4adea8=>{let _0x334f3a=0x0;_0xd12d5e[_0x23ae18([0x6d,0x6f,0x64,0x65,0x6c])][_0x23ae18([0x6f,0x6e])](_0x23ae18([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5499ba,_0x559a4a)=>{_0x559a4a[0x0][_0x23ae18([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x334f3a++,_0x334f3a==(0x47a280ee^_0x5d2d89)&&(_0x4adea8(),_0x5499ba[_0x23ae18([0x6f,0x66,0x66])]());});}))];return window[_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23ae18([0x72,0x61,0x63,0x65])](_0x12e37d)[_0x23ae18([0x74,0x68,0x65,0x6e])](()=>_0x4d1a90);}async function _0x1cc9a5(){await _0x1cc962,_0xd12d5e[_0x23ae18([0x6d,0x6f,0x64,0x65,0x6c])][_0x23ae18([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bd3b6,_0xd12d5e[_0x23ae18([0x6d,0x6f,0x64,0x65,0x6c])][_0x23ae18([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bd3b6,_0xd12d5e[_0x23ae18([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23ae18([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20d80a(_0x453b05){const _0x3255a2=_0x3b0d1e();_0xd12d5e[_0x3255a2]=_0x23ae18([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x453b05,_0x453b05!=_0x23ae18([0x56,0x61,0x6c,0x69,0x64])&&_0x1cc9a5();}function _0x3b0d1e(){const _0x3ed409=window[_0x23ae18([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23ae18([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23ae18([0x6e,0x6f,0x77])]())[_0x23ae18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23ae18([0x2e]),'');let _0x2e5fe5=_0x23ae18([0x75]);for(let _0x17c843=0x0;_0x17c843<_0x3ed409[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17c843+=0x2){let _0x4914fa=window[_0x23ae18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed409[_0x23ae18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17c843,_0x17c843+0x2));_0x4914fa>=_0x2b54ba[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4914fa-=_0x2b54ba[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e5fe5+=_0x2b54ba[_0x4914fa];}return _0x2e5fe5;}function _0x27928f(){const _0x53880a=_0x2f31c1[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])](_0x23ae18([0x2e]));if(0x3!=_0x53880a[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16d677(_0x53880a[0x1]);function _0x16d677(_0x286a41){const _0x2aa4c3=_0x44ffa8(_0x286a41);return _0x2aa4c3&&_0x339249()?_0x2aa4c3:null;function _0x339249(){const _0x5a9e5e=_0x2aa4c3[_0x23ae18([0x6a,0x74,0x69])],_0x3df659=window[_0x23ae18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a9e5e[_0x23ae18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a9e5e[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50e305={..._0x2aa4c3,[_0x23ae18([0x6a,0x74,0x69])]:_0x5a9e5e[_0x23ae18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a9e5e[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50e305[_0x23ae18([0x76,0x63])],_0x5d2951(_0x50e305)==_0x3df659;}}}async function _0x52ea55(){let _0x321f09=!0x0;try{const _0x1ed20c=_0x2f31c1[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])](_0x23ae18([0x2e])),[_0x194977,_0x45982b,_0x1fc96f]=_0x1ed20c;return _0x48c3d3(_0x194977),await _0x5602bd(_0x194977,_0x45982b,_0x1fc96f),_0x321f09;}catch{return!0x1;}function _0x48c3d3(_0x4922e1){const _0xe9a414=_0x44ffa8(_0x4922e1);_0xe9a414&&_0xe9a414[_0x23ae18([0x61,0x6c,0x67])]==_0x23ae18([0x45,0x53,0x32,0x35,0x36])||(_0x321f09=!0x1);}async function _0x5602bd(_0x8b04d2,_0x226bee,_0x3dbd2d){const _0x453d32=window[_0x23ae18([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23ae18([0x66,0x72,0x6f,0x6d])](_0x428cef(_0x3dbd2d),_0x338d21=>_0x338d21[_0x23ae18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c0e09=new window[(_0x23ae18([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23ae18([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8b04d2+_0x23ae18([0x2e])+_0x226bee),_0x22b98c=window[_0x23ae18([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23ae18([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22b98c)return;const _0x57431c=await _0x22b98c[_0x23ae18([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23ae18([0x6a,0x77,0x6b]),_0x24d95f,{[_0x23ae18([0x6e,0x61,0x6d,0x65])]:_0x23ae18([0x45,0x43,0x44,0x53,0x41]),[_0x23ae18([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23ae18([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23ae18([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22b98c[_0x23ae18([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23ae18([0x6e,0x61,0x6d,0x65])]:_0x23ae18([0x45,0x43,0x44,0x53,0x41]),[_0x23ae18([0x68,0x61,0x73,0x68])]:{[_0x23ae18([0x6e,0x61,0x6d,0x65])]:_0x23ae18([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57431c,_0x453d32,_0x1c0e09)||(_0x321f09=!0x1);}}function _0x44ffa8(_0x3e60ef){return _0x3e60ef[_0x23ae18([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23ae18([0x65,0x79]))?JSON[_0x23ae18([0x70,0x61,0x72,0x73,0x65])](_0x428cef(_0x3e60ef)):null;}function _0x428cef(_0x27f70a){return window[_0x23ae18([0x61,0x74,0x6f,0x62])](_0x27f70a[_0x23ae18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23ae18([0x2b]))[_0x23ae18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23ae18([0x2f])));}function _0x5d2951(_0x530fb1){let _0x1d5e3b=0x1505;function _0xea1b50(_0x580820){for(let _0x108bb2=0x0;_0x108bb2<_0x580820[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x108bb2++){const _0x1264fe=_0x580820[_0x23ae18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x108bb2);_0x1d5e3b=(_0x1d5e3b<<0x5)+_0x1d5e3b+_0x1264fe,_0x1d5e3b&=_0x1d5e3b;}}function _0x3abfa5(_0x54bd82){Array[_0x23ae18([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54bd82)?_0x54bd82[_0x23ae18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3abfa5):_0x54bd82&&typeof _0x54bd82==_0x23ae18([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23ae18([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54bd82)[_0x23ae18([0x73,0x6f,0x72,0x74])]()[_0x23ae18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x370e51,_0x4d3c0e])=>{_0xea1b50(_0x370e51),_0x3abfa5(_0x4d3c0e);}):_0xea1b50(window[_0x23ae18([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54bd82));}return _0x3abfa5(_0x530fb1),_0x1d5e3b>>>0x0;}function _0x268cbb(_0x3f5212){return _0x3f5212[_0x23ae18([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23ae18([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23ae18([0x30]));}function _0x330d78(_0x4e009b){return _0x4e009b[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23ae18([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23ae18([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bd3b6(){}function _0x23ae18(_0x83687d){return _0x83687d['map'](_0x231071=>String['fromCharCode'](_0x231071))['join']('');}_0x20d80a(await _0x116de7());}(this);}['_moveSelectionToFootnoteDefinition'](_0x65ad03){const {plugins:_0x2b3cdc,editing:_0x3e0fb6,model:_0x503ef4}=this['editor'],_0x4c0134=_0x2b3cdc['get'](f)['getFootnote'](_0x65ad03);return!!_0x4c0134&&(_0x503ef4['change'](_0x2bc34f=>{_0x2bc34f['setSelection'](_0x2bc34f['createPositionAt'](_0x4c0134['definition'],'end'));}),_0x3e0fb6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x331570){const {plugins:_0x2d79e2,editing:_0x502c17,model:_0x4b3690}=this['editor'],_0x34b34d=_0x2d79e2['get'](f)['getFootnote'](_0x331570);return!!_0x34b34d&&(_0x4b3690['change'](_0x3ce3a3=>{_0x3ce3a3['setSelection'](_0x34b34d['reference'],'on');}),_0x502c17['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x125e6c}=this['editor']['model'],_0x29e319=this['editor']['config']['get']('footnotes.multiBlock');_0x125e6c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x125e6c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x125e6c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x29e319?_0x125e6c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x125e6c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x125e6c['addChildCheck'](_0xc68710=>{for(const _0x11e893 of _0xc68710)if('footnoteDefinition'===_0x11e893['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x52d9a0}=this,{conversion:_0xdbbc0a,editing:_0x500b6b}=_0x52d9a0,{t:t}=_0x52d9a0['locale'];_0xdbbc0a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x381d86,{writer:_0x3c8d15,consumable:_0x21f04b})=>{const _0x13b9c3=_0x381d86['getChild'](0x0);if(!_0x13b9c3||!_0x13b9c3['is']('element','a'))return null;const _0xc4863a=_0x13b9c3['getAttribute']('href')||'';if(!_0xc4863a['startsWith']('#'))return null;const _0xc1864d=_0xc4863a['replace'](/^#/,'');if(!_0xc1864d)return null;_0x21f04b['consume'](_0x13b9c3,{'name':!0x0,'attributes':['href']});for(const {item:_0x14273f}of _0x500b6b['view']['createRangeIn'](_0x13b9c3))_0x14273f['is']('$textProxy')?_0x21f04b['consume'](_0x14273f['textNode'],{'name':!0x0}):_0x14273f['is']('element')&&_0x21f04b['consume'](_0x14273f,{'name':!0x0});return _0x3c8d15['createElement']('footnoteRef',{'footnoteId':_0xc1864d});}}),_0xdbbc0a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x425ef3,{writer:_0x2b14ae})=>b(_0x425ef3,_0x2b14ae)}),_0xdbbc0a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2551cb,{writer:_0x500349})=>{const _0x581242=_0x2551cb['getAttribute']('footnoteCounter');return _0x1e629c(b(_0x2551cb,_0x500349),_0x500349,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x581242)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5a065d}=this,{t:t}=_0x5a065d['locale'],{conversion:_0x3bc238}=_0x5a065d;_0x3bc238['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3bc238['for']('upcast')['add'](_0x2a15e0=>{_0x2a15e0['on']('element:ol',(_0xc48e9,_0x1c3496,_0x4aa6d6)=>{const _0x19c36d=_0x1c3496['viewItem'];if(!_0x19c36d['hasClass']('footnotes-list')||!_0x1c3496['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4aa6d6['consumable']['consume'](_0x19c36d,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xb5cbba,modelCursor:_0x31d366}=_0x4aa6d6['convertChildren'](_0x1c3496['viewItem'],_0x1c3496['modelCursor']);_0x1c3496['modelRange']=_0xb5cbba,_0x1c3496['modelCursor']=_0x31d366;}),_0x2a15e0['on']('element:hr',(_0x3bad8b,_0x5c14ab,_0x4f94c7)=>{const _0x1ba317=_0x5c14ab['viewItem'];_0x1ba317['hasClass']('footnotes-divider')&&_0x5c14ab['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4f94c7['consumable']['consume'](_0x1ba317,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3bc238['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2c6b42,{writer:_0x2b2064})=>D(_0x2b2064)}),_0x3bc238['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4f525c,{writer:_0x3f39a1})=>{const _0x28bf55=D(_0x3f39a1,{'data-footnotes-list-label':t('Footnotes')}),_0x306c2e=_0x1e629c(_0x28bf55,_0x3f39a1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3f39a1['setCustomProperty']('footnotesDefinitions',!0x0,_0x306c2e),_0x306c2e;}});}['_defineDefinitionConverters'](){const {editor:_0x5d5336}=this,{conversion:_0x235689,locale:_0xa373aa}=_0x5d5336,_0x2c9790=_0x5d5336['config']['get']('footnotes.multiBlock');_0x235689['for']('upcast')['add'](_0x1542a6=>{_0x1542a6['on']('element:li',(_0x1f301e,_0x4f381d,_0xab082c)=>{const _0x2931de=_0x4f381d['viewItem'];if(!_0x2931de['hasClass']('footnote-definition')||!_0x2931de['getAttribute']('id'))return;const _0x5044ed=_0x2931de['parent'];if(!_0x5044ed['is']('element','ol')||!_0x5044ed['hasClass']('footnotes-list'))return;if(!_0xab082c['consumable']['test'](_0x2931de,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x271835=_0xab082c['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2931de['getAttribute']('id')});if(!_0xab082c['safeInsert'](_0x271835,_0x4f381d['modelCursor']))return;_0xab082c['consumable']['consume'](_0x2931de,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2565a6=Array['from'](_0x2931de['getChildren']())['find'](_0x1bffc2=>_0x1bffc2['is']('element')&&_0x1bffc2['hasClass']('footnote-content'));for(const _0x8c899c of _0x2931de['getChildren']())_0x8c899c['is']('element')&&(_0xab082c['consumable']['consume'](_0x8c899c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xab082c['consumable']['consume'](_0x8c899c,{'name':!0x0,'classes':'footnote-content'}));if(_0x2565a6){if(_0x2c9790)_0xab082c['convertChildren'](_0x2565a6,_0x271835);else{const _0x178ca4=_0xab082c['writer']['createElement']('footnoteInlineContent');_0xab082c['writer']['insert'](_0x178ca4,_0x271835),_0xab082c['convertChildren'](_0x2565a6,_0x178ca4);}}_0xab082c['updateConversionResult'](_0x271835,_0x4f381d);});}),_0x235689['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x478383,{writer:_0x569f87})=>y(_0x478383,_0x569f87,_0xa373aa,{'dataPipeline':!0x0})}),_0x235689['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x314ed2,{writer:_0x50fafd})=>y(_0x314ed2,_0x50fafd,_0xa373aa)});}['_defineBogusParagraphConverters'](){const {editor:_0x4019bb}=this,{conversion:_0x253a9f}=_0x4019bb;_0x4019bb['config']['get']('footnotes.multiBlock')?(_0x253a9f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x253a9f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4019bb['model']['document'],'change:data',()=>{!function(_0x2b815c,_0x4db046){const _0x301364=_0x2b815c['document']['differ'],_0x599628=new Set();for(const _0xcc9e9b of _0x301364['getChanges']()){const _0x8b29c0='attribute'==_0xcc9e9b['type']?_0xcc9e9b['range']['start']['parent']:_0xcc9e9b['position']['parent'];_0x8b29c0['is']('element','footnoteDefinition')&&_0x599628['add'](_0x8b29c0);}for(const _0x4cceb3 of _0x599628['values']()){const _0x4b78ef=Array['from'](_0x4cceb3['getChildren']())['filter'](_0x38bf56=>v(_0x38bf56,_0x4db046['mapper']));for(const _0x36872c of _0x4b78ef)_0x4db046['reconvertItem'](_0x36872c);}}(_0x4019bb['model'],_0x4019bb['editing']);})):(_0x253a9f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x253a9f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1a42ed,{writer:_0x374d75})=>{const _0x29f040=_0x374d75['createContainerElement']('span');return _0x374d75['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x29f040),_0x29f040;}}));}['_defineKeyboardHandlers'](){const {editor:_0x25ad08}=this,{editing:_0x10219e,t:t}=_0x25ad08,_0x571a86=_0x25ad08['model']['document']['selection'];_0x25ad08['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x25ad08['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x10219e['view']['document'],'enter',(_0x4a324e,_0x38fba3)=>{const _0x5987bf=function(_0x4981c2){const _0x1c15e3=_0x4981c2['getSelectedElement']();if(_0x1c15e3?.['is']('element','footnoteRef'))return _0x1c15e3;return null;}(_0x571a86);if(_0x5987bf){const _0x367724=_0x5987bf['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x367724),_0x38fba3['preventDefault'](),_0x4a324e['stop']();}},{'context':_0x1b91e8});}['_defineClickHandlers'](){const {editor:_0x133265}=this,{editing:_0x2ee967}=_0x133265;_0x133265['editing']['view']['addObserver'](_0xfda84c),_0x133265['editing']['view']['addObserver'](_0x455301);let _0x435a60=!0x1;this['listenTo'](_0x2ee967['view']['document'],'pointerdown',(_0x343fc3,_0xd42720)=>{const {target:_0xe8fa86}=_0xd42720,_0x2da299=_0x2ee967['view']['document']['selection'];_0x435a60=!!(_0xe8fa86?.['is']('element','a')&&_0xe8fa86['parent']?.['is']('element','sup')&&_0xe8fa86['parent']['hasClass']('footnote'))&&_0x2da299['getSelectedElement']()===_0xe8fa86['parent'];},{'priority':'high'}),this['listenTo'](_0x2ee967['view']['document'],'click',(_0x8649d4,_0x169765)=>{const {target:_0x171788}=_0x169765;if(!_0x171788?.['is']('element','a'))return;if(_0x171788['parent']?.['is']('element','sup')&&_0x171788['parent']['hasClass']('footnote')&&!_0x435a60)return void _0x169765['preventDefault']();let _0x3dfcb0=_0x171788['getAttribute']('href');if(!_0x3dfcb0?.['startsWith']('#'))return;_0x3dfcb0=_0x3dfcb0['slice'](0x1);let _0x5da320=!0x1;(_0x3dfcb0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3dfcb0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3dfcb0))&&(_0x5da320=!0x0),_0x5da320&&(_0x169765['preventDefault'](),_0x8649d4['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x30770a}={}){return(_0x47ee42,{writer:_0x53aaaf})=>{if(!g(_0x47ee42))return null;if(!_0x30770a)return _0x53aaaf['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x24e840=_0x53aaaf['createContainerElement']('p');return _0x53aaaf['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x24e840),_0x24e840;};}function g(_0xa1525c){const {parent:_0x5a8a12}=_0xa1525c;if(!_0x5a8a12?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5a8a12['childCount'])return!0x1;for(const _0xfebf89 of _0xa1525c['getAttributeKeys']())if(!_0xfebf89['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xfebf89)return!0x1;return!0x0;}function v(_0x12414e,_0x3148ea){if(!_0x12414e['is']('element','paragraph'))return!0x1;const _0x598498=_0x3148ea['toViewElement'](_0x12414e);return!!_0x598498&&g(_0x12414e)!==_0x598498['is']('element','span');}function Q(_0x5b4ad1){return _0x1b91e8(_0x5b4ad1)&&_0x5b4ad1['is']('containerElement')&&!!_0x5b4ad1['getCustomProperty']('footnotesDefinitions');}function D(_0x41bbe3,_0x408653={}){const _0x1864c5=_0x41bbe3['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2f99f9=_0x41bbe3['createContainerElement']('ol',{'class':'footnotes-list'},_0x41bbe3['createSlot']());return _0x41bbe3['createContainerElement']('div',{'class':'footnotes',..._0x408653},[_0x1864c5,_0x2f99f9]);}function b(_0x4dda20,_0x991852){const _0x25e227=_0x4dda20['getAttribute']('footnoteId'),_0x161d07=_0x4dda20['getAttribute']('footnoteCounter'),_0x131d10=_0x991852['createUIElement']('a',{'href':'#'+_0x25e227},function(_0x39ad98){const _0x8f8c4=this['toDomElement'](_0x39ad98);return _0x8f8c4['textContent']=_0x161d07,_0x8f8c4;}),_0x5ec13b=_0x991852['createContainerElement']('sup',{'id':'ref-'+_0x25e227,'class':'footnote'},[_0x131d10]);return _0x5ec13b['getFillerOffset']=()=>null,_0x5ec13b;}function y(_0x2e4093,_0x2ac730,_0x3ec909,{dataPipeline:_0x291e43}={}){const {t:t}=_0x3ec909,_0x264b4f=_0x2e4093['getAttribute']('footnoteId'),_0x24d251=_0x2ac730['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x264b4f},function(_0x23ce55){const _0xaa2c3a=this['toDomElement'](_0x23ce55);return _0xaa2c3a['innerText']='^',_0xaa2c3a;}),_0x258a76=_0x291e43?_0x2ac730['createContainerElement']('div',{'class':'footnote-content'}):_0x168b8d(_0x2ac730['createEditableElement']('div',{'class':'footnote-content'}),_0x2ac730,{'label':t('Footnote\x20content.')});return _0x2ac730['insert'](_0x2ac730['createPositionAt'](_0x258a76,0x0),_0x2ac730['createSlot']()),_0x2ac730['createContainerElement']('li',{'class':'footnote-definition','id':_0x264b4f},[_0x24d251,_0x258a76]);}class e extends _0x19d282{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1c55f9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x1233d2}=this,{plugins:_0x1f0e20,model:_0x2ad77f}=_0x1233d2,_0x36850d=_0x1f0e20['get'](_0x1c55f9),_0x638b3=_0x1f0e20['get'](f);this['listenTo'](_0x36850d,'outputTransformation',(_0x1c0c26,_0x211681)=>{const _0x347df4=l(_0x2ad77f['createRangeIn'](_0x211681['content']));if(!_0x347df4['length'])return;const _0x146763=_0x638b3['getFootnotes'](),_0x43b869=_0x347df4['reduce']((_0x560a12,_0x86a13f)=>{const _0xc32491=_0x146763['find'](_0x3e633a=>_0x3e633a['id']===_0x86a13f);if(_0xc32491){const _0x23d078=_0x1233d2['data']['toView'](_0xc32491['definition'],{'isClipboardPipeline':!0x0}),_0xafa212=_0x1233d2['data']['htmlProcessor']['toData'](_0x23d078);_0x560a12[_0xc32491['id']]=_0xafa212;}return _0x560a12;},Object['create'](null));_0x211681['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x43b869));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5c5fe4}=this,{model:_0x318574,plugins:_0x1a60c1}=_0x5c5fe4,{view:_0x2748f7}=_0x5c5fe4['editing'],_0x325093=_0x1a60c1['get'](_0x1c55f9),_0x1cedd4=_0x1a60c1['get'](f),_0x3320c2=_0x5c5fe4['config']['get']('footnotes.multiBlock');let _0x9f4f60=null;this['listenTo'](_0x2748f7['document'],'clipboardInput',(_0x1ac2f6,_0x25b141)=>{const _0x297afb=_0x25b141['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x9f4f60=_0x297afb?JSON['parse'](_0x297afb):null;}),this['listenTo'](_0x325093,'contentInsertion',(_0x372d5f,_0x2841d3)=>{const _0x3304d6=_0x2841d3['sourceEditorId']===this['editor']['id'];_0x3304d6&&'drop'===_0x2841d3['method']||_0x318574['change'](_0x10aa9a=>{let _0x141c37=_0x1cedd4['getFootnotesDefinitionsObjectElement']();const _0x5c265a=!!_0x141c37&&Array['from'](_0x318574['document']['selection']['getSelectedBlocks']())['includes'](_0x141c37);if(!_0x9f4f60&&function(_0x4e782e){for(const {item:_0x334d69}of _0x4e782e)if(_0x334d69['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x318574['createRangeIn'](_0x2841d3['content']))&&(_0x9f4f60=function(_0x35f099,_0x17c3b1){const _0x1f0e44=c(_0x35f099,_0x17c3b1);if(!_0x1f0e44)return null;const _0x4f6fc1=Object['create'](null);for(const _0x16ebbf of _0x1f0e44['getChildren']())_0x16ebbf['is']('element','footnoteDefinition')&&_0x16ebbf['hasAttribute']('footnoteId')&&(_0x4f6fc1[_0x16ebbf['getAttribute']('footnoteId')]=_0x35f099['cloneElement'](_0x16ebbf,!0x0));return Object['keys'](_0x4f6fc1)['length']?_0x4f6fc1:null;}(_0x10aa9a,_0x2841d3['content'])),(_0x141c37&&!_0x5c265a||!_0x141c37&&!_0x9f4f60)&&function(_0x19c495,_0x38c174){const _0x425948=[];for(const {item:_0x21af33}of _0x19c495['createRangeIn'](_0x38c174))_0x21af33['is']('element','footnotesDefinitions')&&_0x425948['push'](_0x21af33);for(const _0xae4aad of _0x425948)_0x19c495['remove'](_0xae4aad);}(_0x10aa9a,_0x2841d3['content']),!_0x9f4f60)return;const {selection:_0x72c9bc}=_0x318574['document'],_0x1c9eea=_0x72c9bc['getFirstRange']()['root'];_0x141c37&&!_0x5c265a||(_0x141c37=c(_0x10aa9a,_0x2841d3['content']),_0x141c37||=_0x1cedd4['_insertEmptyFootnotesDefinitionsContainer'](_0x10aa9a,_0x1c9eea));const _0x308346=Array['from'](_0x72c9bc['getRanges']())['flatMap'](l),_0x345be5=function(_0x243fdf,_0x2489c0,_0x286fcb){const _0x40c24b=Object['create'](null);for(const {item:_0x55c4dd}of _0x243fdf['createRangeIn'](_0x2489c0))if(_0x55c4dd['is']('element','footnoteRef')){const _0x37eb07=_0x55c4dd['getAttribute']('footnoteId');if(!_0x286fcb(_0x37eb07))continue;_0x40c24b[_0x37eb07]||(_0x40c24b[_0x37eb07]=_0x494e29()),_0x243fdf['setAttribute']('footnoteId',_0x40c24b[_0x37eb07],_0x55c4dd);}return _0x40c24b;}(_0x10aa9a,_0x2841d3['content'],_0x3143cf=>{if(!_0x3304d6)return!0x0;return!!_0x1cedd4['getFootnote'](_0x3143cf)&&!_0x308346['includes'](_0x3143cf);});for(const [_0x579253,_0xaff816]of Object['entries'](_0x9f4f60)){const _0x4f3d4b=_0x345be5[_0x579253]||_0x579253;let _0x1c4365;if('string'!=typeof _0xaff816)_0x1c4365=_0xaff816,_0x4f3d4b!==_0x579253&&_0x10aa9a['setAttribute']('footnoteId',_0x4f3d4b,_0x1c4365);else{_0x1c4365=_0x10aa9a['createElement']('footnoteDefinition',{'footnoteId':_0x4f3d4b});const _0x1d4780=_0x5c5fe4['data']['htmlProcessor']['toView'](_0xaff816);let _0x1b75cc;if(_0x3320c2)_0x1b75cc=_0x5c5fe4['data']['toModel'](_0x1d4780,_0x1c4365);else{_0x1b75cc=_0x10aa9a['createElement']('footnoteInlineContent');const _0x229c78=_0x5c5fe4['data']['toModel'](_0x1d4780,_0x1b75cc);_0x10aa9a['insert'](_0x229c78,_0x1b75cc);}_0x10aa9a['append'](_0x1b75cc,_0x1c4365);}_0x10aa9a['insert'](_0x1c4365,_0x141c37,'end');}_0x9f4f60=null;});});}}function c(_0x5468f3,_0x32e884){for(const {item:_0x1e1095}of _0x5468f3['createRangeIn'](_0x32e884))if(_0x1e1095['is']('element','footnotesDefinitions'))return _0x1e1095;return null;}function l(_0x4cf7b0){const _0x2bc6c5=new Set();for(const {item:_0x1db234}of _0x4cf7b0)_0x1db234['is']('element','footnoteRef')&&_0x2bc6c5['add'](_0x1db234['getAttribute']('footnoteId'));return Array['from'](_0x2bc6c5);}class i extends _0x19d282{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5602d3}=this,{componentFactory:_0x4cfbbf}=_0x5602d3['ui'];_0x4cfbbf['add']('insertFootnote',E(_0x5602d3,_0x57e31b)),_0x4cfbbf['add']('menuBar:insertFootnote',E(_0x5602d3,_0xac728b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x140204=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa2b884;for(const _0x3e8eeb in _0x140204){const _0x2c2baf=_0x3e8eeb,_0x4cce81=_0x140204[_0x2c2baf];if('footnotesLicenseKeyValid'==_0x4cce81||'footnotesLicenseKeyInvalid'==_0x4cce81||'footnotesLicenseKeyExpired'==_0x4cce81||'footnotesLicenseKeyDomainLimit'==_0x4cce81||'footnotesLicenseKeyNotAllowed'==_0x4cce81||'footnotesLicenseKeyEvaluationLimit'==_0x4cce81||'footnotesLicenseKeyUsageLimit'==_0x4cce81){delete _0x140204[_0x2c2baf],_0xa2b884=_0x4cce81,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xa2b884&&_0x140204['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xa2b884&&_0x140204['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xa2b884&&_0x140204['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xa2b884&&_0x140204['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xa2b884&&_0x140204['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xa2b884&&_0x140204['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x316450,_0x4edb71){const _0x191dcc=_0x316450['commands']['get']('insertFootnote');return _0x15515b=>{const {t:t}=_0x15515b,_0x42e527=new _0x4edb71(_0x15515b),_0x1c44de=_0x42e527 instanceof _0xac728b;return _0x42e527['bind']('isEnabled')['to'](_0x191dcc,'isEnabled'),_0x42e527['set']({'label':t(_0x1c44de?'Footnote':'Insert\x20footnote'),'icon':_0x59fbc4,'tooltip':!0x0}),_0x42e527['on']('execute',()=>{_0x191dcc['execute'](),_0x316450['editing']['view']['focus']();}),_0x42e527;};}class lt extends _0x19d282{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const ct=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x5dcd72{['refresh'](){const {editor:_0x138157}=this,_0x20bbf3=_0x138157['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x20bbf3,this['value']=_0x20bbf3?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xd25ef8}){const {editor:_0x13745a}=this,_0x4e4468=_0x13745a['plugins']['get'](f),_0x5c9963=_0x4e4468['getFootnotesDefinitionsObjectElement']();_0x5c9963&&ct['includes'](_0xd25ef8)&&_0x13745a['model']['change'](_0x1a1bef=>{_0x1a1bef['setAttribute']('footnotesListStyle',_0xd25ef8,_0x5c9963),_0x4e4468['_updateFootnotesCounters'](_0x1a1bef);});}}class C extends _0x5dcd72{['refresh'](){const {editor:_0x1d2f9f}=this,_0x33a1e0=_0x1d2f9f['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x33a1e0,this['value']=_0x33a1e0?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x33a506}){const {editor:_0x1d8b6c}=this,_0x2f1a90=_0x1d8b6c['plugins']['get'](f),_0x5162b5=_0x2f1a90['getFootnotesDefinitionsObjectElement']();_0x5162b5&&Number['isInteger'](_0x33a506)&&_0x1d8b6c['model']['change'](_0x550fb2=>{_0x550fb2['setAttribute']('footnotesListStart',_0x33a506,_0x5162b5),_0x2f1a90['_updateFootnotesCounters'](_0x550fb2);});}}class P extends _0x19d282{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x363b96}=this;_0x363b96['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x363b96['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x363b96['commands']['add']('footnotesStyle',new S(_0x363b96)),_0x363b96['commands']['add']('footnotesStart',new C(_0x363b96)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3b7fd7}=this,{schema:_0x46b3e2}=_0x3b7fd7['model'];_0x46b3e2['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x483b55}=this,{conversion:_0x1f3e19,model:_0x5569a4}=_0x483b55,{schema:_0x1267f0}=_0x5569a4;_0x1f3e19['for']('upcast')['add'](_0x18a72c=>{_0x18a72c['on']('element:ol',(_0x166dba,_0x461e9b,_0x3aed84)=>{const _0x18beaa=_0x461e9b['viewItem'],_0x592765=_0x461e9b['modelCursor']?.['parent'];_0x18beaa['hasClass']('footnotes-list')&&_0x592765?.['is']('element','footnotesDefinitions')&&(function(_0x522b35,_0x376490,_0x452b40,_0x580ece){if(!_0x580ece['checkAttribute'](_0x376490,'footnotesListStart'))return;let _0x36087a=0x1;const _0x3f252f=_0x452b40['consumable']['consume'](_0x522b35,{'attributes':'start'});if(_0x3f252f){const _0x164093=Number['parseInt'](_0x522b35['getAttribute']('start'),0xa);Number['isNaN'](_0x164093)||(_0x36087a=_0x164093);}!_0x3f252f&&_0x376490['hasAttribute']('footnotesListStart')||_0x452b40['writer']['setAttribute']('footnotesListStart',_0x36087a,_0x376490);}(_0x18beaa,_0x592765,_0x3aed84,_0x1267f0),function(_0x5d576d,_0x85781f,_0x4b3f44,_0x31b13a){if(!_0x31b13a['checkAttribute'](_0x85781f,'footnotesListStyle'))return;let _0x4e33a5='decimal',_0x1e6023=!0x1;if(_0x4b3f44['consumable']['consume'](_0x5d576d,{'attributes':'type'})){const _0x3d67a9={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5d576d['getAttribute']('type')];_0x3d67a9&&(_0x4e33a5=_0x3d67a9),_0x1e6023=!0x0;}_0x4b3f44['consumable']['consume'](_0x5d576d,{'styles':'list-style-type'})&&(_0x4e33a5=function(_0x304508){switch(_0x304508){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x304508;}}(_0x5d576d['getStyle']('list-style-type')),_0x1e6023=!0x0),!_0x1e6023&&_0x85781f['hasAttribute']('footnotesListStyle')||_0x4b3f44['writer']['setAttribute']('footnotesListStyle',_0x4e33a5,_0x85781f);}(_0x18beaa,_0x592765,_0x3aed84,_0x1267f0));});}),_0x1f3e19['for']('downcast')['add'](_0x5dc196=>{_0x5dc196['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x285431,_0x4b36a5,_0x4e87f6)=>{if(!_0x4e87f6['consumable']['consume'](_0x4b36a5['item'],_0x285431['name']))return;const _0x17bdda=M(_0x4b36a5['item'],_0x4e87f6['mapper']),{attributeNewValue:_0xfda0da}=_0x4b36a5;null==_0xfda0da||0x1===_0xfda0da?_0x4e87f6['writer']['removeAttribute']('start',_0x17bdda):_0x4e87f6['writer']['setAttribute']('start',String(_0xfda0da),_0x17bdda);}),_0x5dc196['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3a5c7c,_0x58602c,_0x3aa301)=>{if(!_0x3aa301['consumable']['consume'](_0x58602c['item'],_0x3a5c7c['name']))return;const _0x5a2dc1=M(_0x58602c['item'],_0x3aa301['mapper']),{attributeNewValue:_0x19112d}=_0x58602c;_0x19112d&&'decimal'!==_0x19112d?_0x3aa301['writer']['setStyle']('list-style-type',_0x19112d,_0x5a2dc1):_0x3aa301['writer']['removeStyle']('list-style-type',_0x5a2dc1);});});}['_definePostfixer'](){const {editor:_0x15eb76}=this,{model:_0x18a622}=_0x15eb76,_0x2929c6=_0x15eb76['plugins']['get'](f),_0x4245d1=this['_getDefaultListStyle'](),_0x503b11=this['_getDefaultStartIndex']();_0x18a622['document']['registerPostFixer'](_0x1fc813=>{const _0x2f96e1=_0x18a622['document']['differ']['getChanges']();let _0x4edd0c=!0x1;for(const _0x2c2680 of _0x2f96e1){if('insert'!==_0x2c2680['type']||'$text'===_0x2c2680['name'])continue;const _0x59b25e=_0x18a622['createRangeOn'](_0x2c2680['position']['nodeAfter']);for(const _0x59b439 of _0x59b25e['getItems']())_0x59b439['is']('element','footnotesDefinitions')&&(!_0x59b439['hasAttribute']('footnotesListStart')&&_0x18a622['schema']['checkAttribute'](_0x59b439,'footnotesListStart')&&(_0x1fc813['setAttribute']('footnotesListStart',_0x503b11,_0x59b439),_0x4edd0c=!0x0),!_0x59b439['hasAttribute']('footnotesListStyle')&&_0x18a622['schema']['checkAttribute'](_0x59b439,'footnotesListStyle')&&(_0x1fc813['setAttribute']('footnotesListStyle',_0x4245d1,_0x59b439),_0x4edd0c=!0x0));}return _0x4edd0c&&_0x2929c6['_updateFootnotesCounters'](_0x1fc813),_0x4edd0c;});}['_defineFormatter'](){const {editor:_0xa8920d}=this;_0xa8920d['plugins']['get'](f)['setFootnoteFormatter'](_0x1a44d8=>this['_formatFootnoteListValue'](_0x1a44d8));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x55e5fc,value:_0x101084,digits:_0x32dc79}){const _0x263124=_0x55e5fc['getAttribute']('footnotesListStyle'),_0x3f941b=_0x55e5fc['getAttribute']('footnotesListStart'),_0x1aaf87=Math['floor'](_0x101084)+(_0x3f941b??0x1)-0x1;switch(_0x263124){case'decimal-leading-zero':return function(_0x20ae0d,_0x1be6a3){return String(_0x20ae0d)['padStart'](_0x1be6a3,'0');}(_0x1aaf87,Math['max'](0x2,_0x32dc79));case'lower-alpha':case'lower-latin':return N(_0x1aaf87,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1aaf87,!0x0);case'lower-roman':return X(_0x1aaf87,!0x1);case'upper-roman':return X(_0x1aaf87,!0x0);default:return String(_0x1aaf87);}}}function M(_0x26dcce,_0x274f5d){const _0x334b9d=_0x274f5d['toViewElement'](_0x26dcce);return Array['from'](_0x334b9d['getChildren']())['find'](_0x490e0f=>_0x490e0f['is']('element','ol')&&_0x490e0f['hasClass']('footnotes-list'));}function N(_0x3a3722,_0x1f8b5c){let _0x37c040='',_0x311392=_0x3a3722;for(;_0x311392>0x0;){const _0x305582=(_0x311392-0x1)%0x1a;_0x37c040=String['fromCharCode'](0x61+_0x305582)+_0x37c040,_0x311392=Math['floor']((_0x311392-0x1)/0x1a);}return _0x1f8b5c?_0x37c040['toUpperCase']():_0x37c040;}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(_0x2272af,_0x17f2f1){let _0x28c266='',_0x2ca744=_0x2272af;for(const {value:_0x2a8415,numeral:_0x2cb2ee}of V)for(;_0x2ca744>=_0x2a8415;)_0x28c266+=_0x2cb2ee,_0x2ca744-=_0x2a8415;return _0x17f2f1?_0x28c266:_0x28c266['toLowerCase']();}class J extends _0x3f35c4{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x34314c();['focusCycler'];constructor(_0x5487e5,{styleButtonViews:_0x19c74f,styleGridAriaLabel:_0x5805ca}){super(_0x5487e5),(this['focusCycler']=new _0x5aa4bf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x19c74f,_0x5805ca),[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 _0x50b135 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x50b135['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 _0x1b6ca7=_0x41a852=>_0x41a852['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1b6ca7),this['keystrokes']['set']('arrowleft',_0x1b6ca7),this['keystrokes']['set']('arrowup',_0x1b6ca7),this['keystrokes']['set']('arrowdown',_0x1b6ca7);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3e7d93,_0xe89fc7){const _0x365e9b=new _0x3f35c4(this['locale']);return _0x365e9b['children']=_0x365e9b['createCollection'](),_0x365e9b['children']['addMany'](_0x3e7d93),_0x365e9b['setTemplate']({'tag':'div','attributes':{'aria-label':_0xe89fc7,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x365e9b['children']}),_0x365e9b['children']['delegate']('execute')['to'](this),_0x365e9b['focus']=function(){for(const _0x360170 of this['children'])if(_0x360170 instanceof _0x57e31b&&_0x360170['isOn'])return void _0x360170['focus']();this['children']['first']['focus']();},_0x365e9b['focusTracker']=new ot(),_0x365e9b['keystrokes']=new rt(),_0x365e9b['render'](),_0x365e9b['keystrokes']['listenTo'](_0x365e9b['element']),this['children']['add'](_0x365e9b),_0x365e9b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x221398=this['_createStartIndexPropertyView'](),_0x3fb778=[_0x221398],_0x1fbc7a=new st(this['locale'],_0x3fb778);return _0x1fbc7a['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1fbc7a['buttonView']['bind']('isEnabled')['toMany'](_0x3fb778,'isEnabled',(..._0xbf0778)=>_0xbf0778['some'](_0x52e6be=>_0x52e6be)),_0x1fbc7a['buttonView']['on']('change:isEnabled',(_0x450839,_0x323ddc,_0x4c5a4d)=>{_0x4c5a4d||(_0x1fbc7a['isCollapsed']=!0x0);}),this['children']['add'](_0x1fbc7a),[_0x221398,_0x1fbc7a];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x15d002=new it(this['locale'],et);return _0x15d002['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x15d002['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x15d002['fieldView']['on']('input',()=>{const _0x9114a3=_0x15d002['fieldView']['element'],_0x3a927b=_0x9114a3['valueAsNumber'];Number['isNaN'](_0x3a927b)?_0x15d002['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x9114a3['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3a927b}):_0x15d002['errorText']=t(_0x3a927b<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x15d002;}}class j extends _0x19d282{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3d3e38,_0x485e67];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20e074}=this,{componentFactory:_0x1bc9d8}=_0x20e074['ui'];_0x20e074['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1bc9d8['add']('footnotesStyle',function(_0x4531b5){return _0x5b5f90=>{const {t:t}=_0x5b5f90,_0x12d0ce=_0x4531b5['commands']['get']('footnotesStyle'),_0x171d30=_0x27e3e8(_0x5b5f90),{buttonView:_0x4ee523}=_0x171d30;return _0x171d30['class']='ck-footnotes-styles-dropdown',_0x171d30['bind']('isEnabled')['to'](_0x12d0ce,'isEnabled'),_0x4ee523['set']({'label':t('Footnotes\x20style'),'icon':_0x59fbc4,'tooltip':!0x0}),_0x171d30['once']('change:isOpen',()=>{const _0x2eb292=function({editor:_0x421b4a,dropdownView:_0x34ec54}){const {t:t}=_0x421b4a['locale'],_0x3f0c36=t('Footnotes\x20definitions\x20styles'),_0x401da2=function(_0x472278){const t=_0x472278['locale']['t'],_0x4bb42d=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3ef62f},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1e4f2c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xde1ffd},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xad5bad},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x185c0d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x8b695d}];return _0x4bb42d['map'](function(_0x325183){const _0x18e9d9=_0x325183['locale'];return({label:_0x154ee8,icon:_0x136dab,tooltip:_0x1d36e6,style:_0x109c16})=>{const _0x1eecf2=_0x325183['commands']['get']('footnotesStyle'),_0x2763bc=new _0x57e31b(_0x18e9d9);return _0x2763bc['set']({'label':_0x154ee8,'icon':_0x136dab,'tooltip':_0x1d36e6}),_0x2763bc['bind']('isOn')['to'](_0x1eecf2,'value',_0x27d200=>_0x27d200===_0x109c16),_0x2763bc['bind']('isEnabled')['to'](_0x1eecf2,'isEnabled'),_0x2763bc['on']('execute',()=>{_0x325183['execute']('footnotesStyle',{'value':_0x109c16}),_0x325183['editing']['view']['focus']();}),_0x2763bc;};}(_0x472278));}(_0x421b4a),_0x398003=new J(_0x421b4a['locale'],{'styleGridAriaLabel':_0x3f0c36,'styleButtonViews':_0x401da2}),_0x1c885e=_0x421b4a['commands']['get']('footnotesStart');return _0x398003['startIndexFieldView']['bind']('isEnabled')['to'](_0x1c885e),_0x398003['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x1c885e),_0x398003['on']('footnotesListStart',(_0x39b6fc,_0x545537)=>{_0x421b4a['execute']('footnotesStart',{'value':_0x545537['startIndex']});}),_0x398003['delegate']('execute')['to'](_0x34ec54),_0x398003;}({'editor':_0x4531b5,'dropdownView':_0x171d30});_0x171d30['panelView']['children']['add'](_0x2eb292);}),_0x171d30;};}(_0x20e074));}['afterInit'](){const {editor:_0x12908d}=this,{t:t}=_0x12908d['locale'],_0x10852c=_0x12908d['plugins']['get'](_0x485e67),{defaultPositions:_0x457eeb}=_0x39994f;_0x10852c['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x12908d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x137271=>{let _0x42a3b6=_0x137271['getFirstPosition']()?.['parent'];return _0x42a3b6?.['is']('$text')&&(_0x42a3b6=_0x42a3b6['parent']),_0x42a3b6?.['is']('element')?_0x42a3b6['findAncestor'](Q):null;},'positions':[_0x457eeb['southArrowNorth'],_0x457eeb['southArrowNorthMiddleWest'],_0x457eeb['southArrowNorthMiddleEast'],_0x457eeb['southArrowNorthWest'],_0x457eeb['southArrowNorthEast'],_0x457eeb['northArrowSouth'],_0x457eeb['northArrowSouthMiddleWest'],_0x457eeb['northArrowSouthMiddleEast'],_0x457eeb['northArrowSouthWest'],_0x457eeb['northArrowSouthEast'],_0x457eeb['viewportStickyNorth']]});}}class ft extends _0x19d282{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "47.5.0-alpha.4",
3
+ "version": "47.5.0-alpha.5",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "47.5.0-alpha.4",
27
- "@ckeditor/ckeditor5-ui": "47.5.0-alpha.4",
28
- "@ckeditor/ckeditor5-engine": "47.5.0-alpha.4",
29
- "@ckeditor/ckeditor5-icons": "47.5.0-alpha.4",
30
- "@ckeditor/ckeditor5-widget": "47.5.0-alpha.4",
31
- "@ckeditor/ckeditor5-clipboard": "47.5.0-alpha.4",
32
- "@ckeditor/ckeditor5-utils": "47.5.0-alpha.4",
33
- "ckeditor5": "47.5.0-alpha.4"
26
+ "@ckeditor/ckeditor5-core": "47.5.0-alpha.5",
27
+ "@ckeditor/ckeditor5-ui": "47.5.0-alpha.5",
28
+ "@ckeditor/ckeditor5-engine": "47.5.0-alpha.5",
29
+ "@ckeditor/ckeditor5-icons": "47.5.0-alpha.5",
30
+ "@ckeditor/ckeditor5-widget": "47.5.0-alpha.5",
31
+ "@ckeditor/ckeditor5-clipboard": "47.5.0-alpha.5",
32
+ "@ckeditor/ckeditor5-utils": "47.5.0-alpha.5",
33
+ "ckeditor5": "47.5.0-alpha.5"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x510f63}from'ckeditor5/src/core.js';import{isWidget as _0x4eca2f,toWidget as _0x487142,toWidgetEditable as _0x1d6eb0}from'ckeditor5/src/widget.js';import{uid as _0xb2a8d8}from'ckeditor5/src/utils.js';import{PointerObserver as _0x2a6de7,ClickObserver as _0x1f1675}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x17d4f8}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x49a746}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x510f63{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x17d4f8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x91c47f}=this;_0x91c47f['config']['define']('footnotes.multiBlock',!0x0),_0x91c47f['commands']['add']('insertFootnote',new _0x49a746(_0x91c47f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x390dd9){const _0x390aaa=_0x8d114([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]),_0x50c421=0x47a28506,_0x3f36c4=0x47a50426^_0x50c421,_0x451070=window[_0x8d114([0x44,0x61,0x74,0x65])][_0x8d114([0x6e,0x6f,0x77])](),_0x1fb532=_0x390dd9[_0x8d114([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x87e0e6=new window[(_0x8d114([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a93e4=>{_0x1fb532[_0x8d114([0x6f,0x6e,0x63,0x65])](_0x8d114([0x72,0x65,0x61,0x64,0x79]),_0x1a93e4);}),_0x4303ef={[_0x8d114([0x6b,0x74,0x79])]:_0x8d114([0x45,0x43]),[_0x8d114([0x75,0x73,0x65])]:_0x8d114([0x73,0x69,0x67]),[_0x8d114([0x63,0x72,0x76])]:_0x8d114([0x50,0x2d,0x32,0x35,0x36]),[_0x8d114([0x78])]:_0x8d114([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]),[_0x8d114([0x79])]:_0x8d114([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]),[_0x8d114([0x61,0x6c,0x67])]:_0x8d114([0x45,0x53,0x32,0x35,0x36])},_0x5a8b31=_0x1fb532[_0x8d114([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x8d114([0x67,0x65,0x74])](_0x8d114([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x858e62(){let _0x165485,_0x1135dc=null,_0x141214=null;try{if(_0x5a8b31==_0x8d114([0x47,0x50,0x4c]))return _0x8d114([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x165485=_0x356630(),!_0x165485)return _0x8d114([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x165485[_0x8d114([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x141214=_0x3b5ad0(_0x165485[_0x8d114([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x165485[_0x8d114([0x6a,0x74,0x69])])),await _0x9d206()?_0x29a11d()?_0x2dfad2()?_0x8d114([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x58432d()?(_0x165485[_0x8d114([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x8d114([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1135dc=_0x65fb77(_0x8d114([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3e92f2()):_0x8d114([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x8d114([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x8d114([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x8d114([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x2dfad2(){const _0x4be8d4=[_0x8d114([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x8d114([0x74,0x72,0x69,0x61,0x6c])][_0x8d114([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x165485[_0x8d114([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x451070/0x3e8:0xe10*_0x3f36c4;return _0x165485[_0x8d114([0x65,0x78,0x70])]<_0x4be8d4;}function _0x29a11d(){const _0x5aa996=_0x165485[_0x8d114([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5aa996&&(!!_0x5aa996[_0x8d114([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d114([0x2a]))||!!_0x5aa996[_0x8d114([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d114([0x46,0x4f,0x4f])));}function _0x58432d(){const _0x1363a1=_0x165485[_0x8d114([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1363a1||0x0==_0x1363a1[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c9676}=new URL(window[_0x8d114([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1363a1[_0x8d114([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c9676))return!0x0;const _0x5339b4=_0x3c9676[_0x8d114([0x73,0x70,0x6c,0x69,0x74])](_0x8d114([0x2e]));return _0x1363a1[_0x8d114([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3aa5fb=>_0x3aa5fb[_0x8d114([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8d114([0x2a])))[_0x8d114([0x6d,0x61,0x70])](_0x388bd7=>_0x388bd7[_0x8d114([0x73,0x70,0x6c,0x69,0x74])](_0x8d114([0x2e])))[_0x8d114([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aef64=>_0x4aef64[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5339b4[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8d114([0x6d,0x61,0x70])](_0x4f5256=>Array(_0x5339b4[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4f5256[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x8d114([0x66,0x69,0x6c,0x6c])](_0x4f5256[0x0]===_0x8d114([0x2a])?_0x8d114([0x2a]):'')[_0x8d114([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4f5256))[_0x8d114([0x73,0x6f,0x6d,0x65])](_0x2075d6=>_0x5339b4[_0x8d114([0x65,0x76,0x65,0x72,0x79])]((_0x30fc6e,_0x30c707)=>_0x2075d6[_0x30c707]===_0x30fc6e||_0x2075d6[_0x30c707]===_0x8d114([0x2a])));}function _0x3e92f2(){return _0x1135dc&&_0x141214?new window[(_0x8d114([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x487c85,_0x5a6223)=>{_0x1135dc[_0x8d114([0x74,0x68,0x65,0x6e])](_0x487c85,_0x5a6223),_0x141214[_0x8d114([0x74,0x68,0x65,0x6e])](_0x1f8e78=>{_0x1f8e78!=_0x8d114([0x56,0x61,0x6c,0x69,0x64])&&_0x487c85(_0x1f8e78);},_0x5a6223);}):_0x1135dc||_0x141214||_0x8d114([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b5ad0(_0x3a9373,_0xe42dd5){return new window[(_0x8d114([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d2ea5=>{if(_0x37c0a1())return _0x2d2ea5(_0x8d114([0x56,0x61,0x6c,0x69,0x64]));_0x49b687(),_0x1fb532[_0x8d114([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x8d114([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x539571=!0x1;const _0x1e6332=_0xb2a8d8();function _0x585cf8(_0x35319a){return!!_0x35319a&&(typeof _0x35319a===_0x8d114([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x35319a===_0x8d114([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x35319a[_0x8d114([0x74,0x68,0x65,0x6e])]===_0x8d114([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x35319a[_0x8d114([0x63,0x61,0x74,0x63,0x68])]===_0x8d114([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cb546(_0x54b9cf){_0x4b3694(_0x54b9cf)[_0x8d114([0x74,0x68,0x65,0x6e])](_0x217b68=>{if(!_0x217b68||_0x217b68[_0x8d114([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x8d114([0x6f,0x6b]))return _0x8d114([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xb05afb(_0x7a1244(_0x1e6332+_0xe42dd5))!=_0x217b68[_0x8d114([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x8d114([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x8d114([0x56,0x61,0x6c,0x69,0x64]);})[_0x8d114([0x74,0x68,0x65,0x6e])](_0x5194c4=>(_0x570aa2(),_0x5194c4),()=>{const _0xf137f0=_0x3341b3();return null==_0xf137f0?(_0x570aa2(),_0x8d114([0x56,0x61,0x6c,0x69,0x64])):_0x8d114(_0x451070-_0xf137f0>(0x63ae0106^_0x50c421)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x8d114([0x74,0x68,0x65,0x6e])](_0x2d2ea5)[_0x8d114([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2d2ea5(_0x8d114([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xd845f8=0x47946b86^_0x50c421;function _0x570aa2(){const _0x56f04b=_0x8d114([0x6c,0x6c,0x63,0x74,0x2d])+_0xb05afb(_0x7a1244(_0x3a9373)),_0x2bdcdf=_0x151d04(_0xb05afb(window[_0x8d114([0x4d,0x61,0x74,0x68])][_0x8d114([0x63,0x65,0x69,0x6c])](_0x451070/_0xd845f8)));window[_0x8d114([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8d114([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56f04b,_0x2bdcdf);}function _0x3341b3(){const _0x1f09e7=_0x8d114([0x6c,0x6c,0x63,0x74,0x2d])+_0xb05afb(_0x7a1244(_0x3a9373)),_0x1ac9a0=window[_0x8d114([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x8d114([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f09e7);return _0x1ac9a0?window[_0x8d114([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x151d04(_0x1ac9a0),0x10)*_0xd845f8:null;}function _0x4b3694(_0x327cc9){return new window[(_0x8d114([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x145e81,_0x229369)=>{_0x327cc9[_0x8d114([0x74,0x68,0x65,0x6e])](_0x145e81,_0x229369),window[_0x8d114([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x229369,0x47a351c6^_0x50c421);});}}_0x1fb532[_0x8d114([0x6f,0x6e])](_0x8d114([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4d5cd2,_0x4a2d42)=>{if(_0x4a2d42[0x0]!=_0x3a9373)return _0x2d2ea5(_0x8d114([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4a2d42[0x1]={..._0x4a2d42[0x1],[_0x8d114([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e6332};},{[_0x8d114([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8d114([0x68,0x69,0x67,0x68])}),_0x1fb532[_0x8d114([0x6f,0x6e])](_0x8d114([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9e9ab7=>{_0x585cf8(_0x9e9ab7[_0x8d114([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x539571=!0x0,_0x1cb546(_0x9e9ab7[_0x8d114([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x8d114([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x8d114([0x6c,0x6f,0x77])}),_0x87e0e6[_0x8d114([0x74,0x68,0x65,0x6e])](()=>{_0x539571||_0x2d2ea5(_0x8d114([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x37c0a1(){return _0x1fb532[_0x8d114([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8d114([0x76,0x69,0x65,0x77])][_0x8d114([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x8d114([0x61,0x75,0x74,0x6f]);}function _0x49b687(){_0x1fb532[_0x8d114([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x8d114([0x76,0x69,0x65,0x77])][_0x8d114([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x8d114([0x61,0x75,0x74,0x6f]);}}function _0x65fb77(_0x43864b){const _0x3dcd88=[new window[(_0x8d114([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d19c5=>setTimeout(_0x1d19c5,0x47abbbca^_0x50c421)),_0x87e0e6[_0x8d114([0x74,0x68,0x65,0x6e])](()=>new window[(_0x8d114([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x38ca08=>{let _0x3d8544=0x0;_0x1fb532[_0x8d114([0x6d,0x6f,0x64,0x65,0x6c])][_0x8d114([0x6f,0x6e])](_0x8d114([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x40fe60,_0x2d0470)=>{_0x2d0470[0x0][_0x8d114([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3d8544++,_0x3d8544==(0x47a280ee^_0x50c421)&&(_0x38ca08(),_0x40fe60[_0x8d114([0x6f,0x66,0x66])]());});}))];return window[_0x8d114([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x8d114([0x72,0x61,0x63,0x65])](_0x3dcd88)[_0x8d114([0x74,0x68,0x65,0x6e])](()=>_0x43864b);}async function _0x5a4f50(){await _0x87e0e6,_0x1fb532[_0x8d114([0x6d,0x6f,0x64,0x65,0x6c])][_0x8d114([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x13a827,_0x1fb532[_0x8d114([0x6d,0x6f,0x64,0x65,0x6c])][_0x8d114([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x13a827,_0x1fb532[_0x8d114([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x8d114([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x515403(_0x370cb0){const _0x5aaa47=_0x1f2973();_0x1fb532[_0x5aaa47]=_0x8d114([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x370cb0,_0x370cb0!=_0x8d114([0x56,0x61,0x6c,0x69,0x64])&&_0x5a4f50();}function _0x1f2973(){const _0x47c198=window[_0x8d114([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x8d114([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x8d114([0x6e,0x6f,0x77])]())[_0x8d114([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x8d114([0x2e]),'');let _0x27126f=_0x8d114([0x75]);for(let _0xf3041f=0x0;_0xf3041f<_0x47c198[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf3041f+=0x2){let _0x2111c2=window[_0x8d114([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x47c198[_0x8d114([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xf3041f,_0xf3041f+0x2));_0x2111c2>=_0x390aaa[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2111c2-=_0x390aaa[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x27126f+=_0x390aaa[_0x2111c2];}return _0x27126f;}function _0x356630(){const _0x117c45=_0x5a8b31[_0x8d114([0x73,0x70,0x6c,0x69,0x74])](_0x8d114([0x2e]));if(0x3!=_0x117c45[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x292b6b(_0x117c45[0x1]);function _0x292b6b(_0x29abc5){const _0x327232=_0x21e5f1(_0x29abc5);return _0x327232&&_0x4a64f4()?_0x327232:null;function _0x4a64f4(){const _0x427a19=_0x327232[_0x8d114([0x6a,0x74,0x69])],_0x33a90b=window[_0x8d114([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x427a19[_0x8d114([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x427a19[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5800c7={..._0x327232,[_0x8d114([0x6a,0x74,0x69])]:_0x427a19[_0x8d114([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x427a19[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5800c7[_0x8d114([0x76,0x63])],_0x7a1244(_0x5800c7)==_0x33a90b;}}}async function _0x9d206(){let _0x449b2d=!0x0;try{const _0x426bf3=_0x5a8b31[_0x8d114([0x73,0x70,0x6c,0x69,0x74])](_0x8d114([0x2e])),[_0x351e5e,_0x201c04,_0x5f44ac]=_0x426bf3;return _0x2bd83b(_0x351e5e),await _0xa9da8b(_0x351e5e,_0x201c04,_0x5f44ac),_0x449b2d;}catch{return!0x1;}function _0x2bd83b(_0xa928b){const _0x53cae6=_0x21e5f1(_0xa928b);_0x53cae6&&_0x53cae6[_0x8d114([0x61,0x6c,0x67])]==_0x8d114([0x45,0x53,0x32,0x35,0x36])||(_0x449b2d=!0x1);}async function _0xa9da8b(_0xd31b5d,_0x36d476,_0x392059){const _0x148465=window[_0x8d114([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x8d114([0x66,0x72,0x6f,0x6d])](_0x3eeb29(_0x392059),_0x3c5f5e=>_0x3c5f5e[_0x8d114([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x14f432=new window[(_0x8d114([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x8d114([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd31b5d+_0x8d114([0x2e])+_0x36d476),_0xe19a62=window[_0x8d114([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x8d114([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xe19a62)return;const _0x2af2ec=await _0xe19a62[_0x8d114([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x8d114([0x6a,0x77,0x6b]),_0x4303ef,{[_0x8d114([0x6e,0x61,0x6d,0x65])]:_0x8d114([0x45,0x43,0x44,0x53,0x41]),[_0x8d114([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x8d114([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x8d114([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xe19a62[_0x8d114([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x8d114([0x6e,0x61,0x6d,0x65])]:_0x8d114([0x45,0x43,0x44,0x53,0x41]),[_0x8d114([0x68,0x61,0x73,0x68])]:{[_0x8d114([0x6e,0x61,0x6d,0x65])]:_0x8d114([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2af2ec,_0x148465,_0x14f432)||(_0x449b2d=!0x1);}}function _0x21e5f1(_0x220bb7){return _0x220bb7[_0x8d114([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x8d114([0x65,0x79]))?JSON[_0x8d114([0x70,0x61,0x72,0x73,0x65])](_0x3eeb29(_0x220bb7)):null;}function _0x3eeb29(_0xe211c1){return window[_0x8d114([0x61,0x74,0x6f,0x62])](_0xe211c1[_0x8d114([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x8d114([0x2b]))[_0x8d114([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x8d114([0x2f])));}function _0x7a1244(_0x12d1c6){let _0x1cab52=0x1505;function _0x44d8c4(_0x81fd6e){for(let _0x14b864=0x0;_0x14b864<_0x81fd6e[_0x8d114([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x14b864++){const _0x69c10e=_0x81fd6e[_0x8d114([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x14b864);_0x1cab52=(_0x1cab52<<0x5)+_0x1cab52+_0x69c10e,_0x1cab52&=_0x1cab52;}}function _0x1aa26b(_0x1c60e7){Array[_0x8d114([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c60e7)?_0x1c60e7[_0x8d114([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1aa26b):_0x1c60e7&&typeof _0x1c60e7==_0x8d114([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x8d114([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c60e7)[_0x8d114([0x73,0x6f,0x72,0x74])]()[_0x8d114([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x207fe5,_0x11684e])=>{_0x44d8c4(_0x207fe5),_0x1aa26b(_0x11684e);}):_0x44d8c4(window[_0x8d114([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c60e7));}return _0x1aa26b(_0x12d1c6),_0x1cab52>>>0x0;}function _0xb05afb(_0x2cb11b){return _0x2cb11b[_0x8d114([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x8d114([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x8d114([0x30]));}function _0x151d04(_0x22a4fa){return _0x22a4fa[_0x8d114([0x73,0x70,0x6c,0x69,0x74])]('')[_0x8d114([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x8d114([0x6a,0x6f,0x69,0x6e])]('');}function _0x13a827(){}function _0x8d114(_0x2a2038){return _0x2a2038['map'](_0x3e9543=>String['fromCharCode'](_0x3e9543))['join']('');}_0x515403(await _0x858e62());}(this);}['_moveSelectionToFootnoteDefinition'](_0x320572){const {plugins:_0x28a444,editing:_0x2d71ce,model:_0x52b80c}=this['editor'],_0x3120a1=_0x28a444['get'](_0x17d4f8)['getFootnote'](_0x320572);return!!_0x3120a1&&(_0x52b80c['change'](_0x574b1c=>{_0x574b1c['setSelection'](_0x574b1c['createPositionAt'](_0x3120a1['definition'],'end'));}),_0x2d71ce['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x154e6d){const {plugins:_0x127f78,editing:_0x1f283c,model:_0x18d772}=this['editor'],_0x2e51cd=_0x127f78['get'](_0x17d4f8)['getFootnote'](_0x154e6d);return!!_0x2e51cd&&(_0x18d772['change'](_0x17290c=>{_0x17290c['setSelection'](_0x2e51cd['reference'],'on');}),_0x1f283c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x427a2a}=this['editor']['model'],_0x25bc7f=this['editor']['config']['get']('footnotes.multiBlock');_0x427a2a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x427a2a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x427a2a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x25bc7f?_0x427a2a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x427a2a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x427a2a['addChildCheck'](_0x1b82a3=>{for(const _0x35f983 of _0x1b82a3)if('footnoteDefinition'===_0x35f983['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2fd29b}=this,{conversion:_0x1fabfd,editing:_0x22b66e}=_0x2fd29b,{t:t}=_0x2fd29b['locale'];_0x1fabfd['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x48f5bd,{writer:_0x6a59ed,consumable:_0xdbe2d2})=>{const _0x9286e0=_0x48f5bd['getChild'](0x0);if(!_0x9286e0||!_0x9286e0['is']('element','a'))return null;const _0x10a6d1=_0x9286e0['getAttribute']('href')||'';if(!_0x10a6d1['startsWith']('#'))return null;const _0x5c14cb=_0x10a6d1['replace'](/^#/,'');if(!_0x5c14cb)return null;_0xdbe2d2['consume'](_0x9286e0,{'name':!0x0,'attributes':['href']});for(const {item:_0x33dfe0}of _0x22b66e['view']['createRangeIn'](_0x9286e0))_0x33dfe0['is']('$textProxy')?_0xdbe2d2['consume'](_0x33dfe0['textNode'],{'name':!0x0}):_0x33dfe0['is']('element')&&_0xdbe2d2['consume'](_0x33dfe0,{'name':!0x0});return _0x6a59ed['createElement']('footnoteRef',{'footnoteId':_0x5c14cb});}}),_0x1fabfd['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x31d6a4,{writer:_0x2b5910})=>b(_0x31d6a4,_0x2b5910)}),_0x1fabfd['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x357f77,{writer:_0x183e78})=>{const _0x52cbb5=_0x357f77['getAttribute']('footnoteCounter');return _0x487142(b(_0x357f77,_0x183e78),_0x183e78,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x52cbb5)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3d0485}=this,{t:t}=_0x3d0485['locale'],{conversion:_0xcc107a}=_0x3d0485;_0xcc107a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xcc107a['for']('upcast')['add'](_0x252ced=>{_0x252ced['on']('element:ol',(_0x4a1b2a,_0x33a2c0,_0x5ca9c2)=>{const _0x461a40=_0x33a2c0['viewItem'];if(!_0x461a40['hasClass']('footnotes-list')||!_0x33a2c0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5ca9c2['consumable']['consume'](_0x461a40,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x37c4ac,modelCursor:_0x34ae43}=_0x5ca9c2['convertChildren'](_0x33a2c0['viewItem'],_0x33a2c0['modelCursor']);_0x33a2c0['modelRange']=_0x37c4ac,_0x33a2c0['modelCursor']=_0x34ae43;}),_0x252ced['on']('element:hr',(_0x5b5dcb,_0x5ce39f,_0x609422)=>{const _0x26be5d=_0x5ce39f['viewItem'];_0x26be5d['hasClass']('footnotes-divider')&&_0x5ce39f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x609422['consumable']['consume'](_0x26be5d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xcc107a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2cb31d,{writer:_0x46d3ab})=>D(_0x46d3ab)}),_0xcc107a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x508429,{writer:_0x202a9f})=>{const _0x2bbdd0=D(_0x202a9f,{'data-footnotes-list-label':t('Footnotes')}),_0x554523=_0x487142(_0x2bbdd0,_0x202a9f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x202a9f['setCustomProperty']('footnotesDefinitions',!0x0,_0x554523),_0x554523;}});}['_defineDefinitionConverters'](){const {editor:_0x4a6fe0}=this,{conversion:_0x7f67bf,locale:_0x31bcf2}=_0x4a6fe0,_0x7d35c7=_0x4a6fe0['config']['get']('footnotes.multiBlock');_0x7f67bf['for']('upcast')['add'](_0x50dff2=>{_0x50dff2['on']('element:li',(_0x15a39c,_0x372db6,_0x1e19ca)=>{const _0x522605=_0x372db6['viewItem'];if(!_0x522605['hasClass']('footnote-definition')||!_0x522605['getAttribute']('id'))return;const _0x51b7e8=_0x522605['parent'];if(!_0x51b7e8['is']('element','ol')||!_0x51b7e8['hasClass']('footnotes-list'))return;if(!_0x1e19ca['consumable']['test'](_0x522605,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x29e957=_0x1e19ca['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x522605['getAttribute']('id')});if(!_0x1e19ca['safeInsert'](_0x29e957,_0x372db6['modelCursor']))return;_0x1e19ca['consumable']['consume'](_0x522605,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x495d98=Array['from'](_0x522605['getChildren']())['find'](_0x2fa9f5=>_0x2fa9f5['is']('element')&&_0x2fa9f5['hasClass']('footnote-content'));for(const _0x5cdf92 of _0x522605['getChildren']())_0x5cdf92['is']('element')&&(_0x1e19ca['consumable']['consume'](_0x5cdf92,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1e19ca['consumable']['consume'](_0x5cdf92,{'name':!0x0,'classes':'footnote-content'}));if(_0x495d98){if(_0x7d35c7)_0x1e19ca['convertChildren'](_0x495d98,_0x29e957);else{const _0x509958=_0x1e19ca['writer']['createElement']('footnoteInlineContent');_0x1e19ca['writer']['insert'](_0x509958,_0x29e957),_0x1e19ca['convertChildren'](_0x495d98,_0x509958);}}_0x1e19ca['updateConversionResult'](_0x29e957,_0x372db6);});}),_0x7f67bf['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x47be9c,{writer:_0x2c38df})=>y(_0x47be9c,_0x2c38df,_0x31bcf2,{'dataPipeline':!0x0})}),_0x7f67bf['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x46fa52,{writer:_0x3b2f71})=>y(_0x46fa52,_0x3b2f71,_0x31bcf2)});}['_defineBogusParagraphConverters'](){const {editor:_0x19b931}=this,{conversion:_0x1f4467}=_0x19b931;_0x19b931['config']['get']('footnotes.multiBlock')?(_0x1f4467['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1f4467['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x19b931['model']['document'],'change:data',()=>{!function(_0x1f237c,_0x3e4267){const _0xe09630=_0x1f237c['document']['differ'],_0x59f5c6=new Set();for(const _0x5e347a of _0xe09630['getChanges']()){const _0x507f6f='attribute'==_0x5e347a['type']?_0x5e347a['range']['start']['parent']:_0x5e347a['position']['parent'];_0x507f6f['is']('element','footnoteDefinition')&&_0x59f5c6['add'](_0x507f6f);}for(const _0x82fdd6 of _0x59f5c6['values']()){const _0x59189e=Array['from'](_0x82fdd6['getChildren']())['filter'](_0x178fe5=>v(_0x178fe5,_0x3e4267['mapper']));for(const _0x2f6c23 of _0x59189e)_0x3e4267['reconvertItem'](_0x2f6c23);}}(_0x19b931['model'],_0x19b931['editing']);})):(_0x1f4467['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1f4467['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5d8256,{writer:_0x29a097})=>{const _0x3db06a=_0x29a097['createContainerElement']('span');return _0x29a097['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3db06a),_0x3db06a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x14ea7c}=this,{editing:_0x2e0110,t:t}=_0x14ea7c,_0x983c63=_0x14ea7c['model']['document']['selection'];_0x14ea7c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x14ea7c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2e0110['view']['document'],'enter',(_0x4e2d65,_0x520922)=>{const _0x1e7484=function(_0x282e07){const _0xeade64=_0x282e07['getSelectedElement']();if(_0xeade64?.['is']('element','footnoteRef'))return _0xeade64;return null;}(_0x983c63);if(_0x1e7484){const _0x44b37f=_0x1e7484['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x44b37f),_0x520922['preventDefault'](),_0x4e2d65['stop']();}},{'context':_0x4eca2f});}['_defineClickHandlers'](){const {editor:_0x3dae91}=this,{editing:_0x22efab}=_0x3dae91;_0x3dae91['editing']['view']['addObserver'](_0x2a6de7),_0x3dae91['editing']['view']['addObserver'](_0x1f1675);let _0x35da08=!0x1;this['listenTo'](_0x22efab['view']['document'],'pointerdown',(_0x4b16fb,_0x35bc0c)=>{const {target:_0x3f7902}=_0x35bc0c,_0x1acbd8=_0x22efab['view']['document']['selection'];_0x35da08=!!(_0x3f7902?.['is']('element','a')&&_0x3f7902['parent']?.['is']('element','sup')&&_0x3f7902['parent']['hasClass']('footnote'))&&_0x1acbd8['getSelectedElement']()===_0x3f7902['parent'];},{'priority':'high'}),this['listenTo'](_0x22efab['view']['document'],'click',(_0x5e8f43,_0x4cc201)=>{const {target:_0x16d236}=_0x4cc201;if(!_0x16d236?.['is']('element','a'))return;if(_0x16d236['parent']?.['is']('element','sup')&&_0x16d236['parent']['hasClass']('footnote')&&!_0x35da08)return void _0x4cc201['preventDefault']();let _0x2144c4=_0x16d236['getAttribute']('href');if(!_0x2144c4?.['startsWith']('#'))return;_0x2144c4=_0x2144c4['slice'](0x1);let _0x308b25=!0x1;(_0x2144c4['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2144c4['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2144c4))&&(_0x308b25=!0x0),_0x308b25&&(_0x4cc201['preventDefault'](),_0x5e8f43['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1aa7e6}={}){return(_0x4c200f,{writer:_0x45f3c9})=>{if(!g(_0x4c200f))return null;if(!_0x1aa7e6)return _0x45f3c9['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4b45e5=_0x45f3c9['createContainerElement']('p');return _0x45f3c9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4b45e5),_0x4b45e5;};}function g(_0x185bba){const {parent:_0x5d7786}=_0x185bba;if(!_0x5d7786?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5d7786['childCount'])return!0x1;for(const _0x6cfe4d of _0x185bba['getAttributeKeys']())if(!_0x6cfe4d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x6cfe4d)return!0x1;return!0x0;}function v(_0x2f7775,_0x140e89){if(!_0x2f7775['is']('element','paragraph'))return!0x1;const _0x2b2caa=_0x140e89['toViewElement'](_0x2f7775);return!!_0x2b2caa&&g(_0x2f7775)!==_0x2b2caa['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x20b994){return _0x4eca2f(_0x20b994)&&_0x20b994['is']('containerElement')&&!!_0x20b994['getCustomProperty']('footnotesDefinitions');}function D(_0x30242e,_0x49ed1b={}){const _0x3a0208=_0x30242e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1876ab=_0x30242e['createContainerElement']('ol',{'class':'footnotes-list'},_0x30242e['createSlot']());return _0x30242e['createContainerElement']('div',{'class':'footnotes',..._0x49ed1b},[_0x3a0208,_0x1876ab]);}function b(_0x57e83b,_0xf9d3f7){const _0x8f4fb=_0x57e83b['getAttribute']('footnoteId'),_0x5a4e4a=_0x57e83b['getAttribute']('footnoteCounter'),_0x437b1e=_0xf9d3f7['createUIElement']('a',{'href':'#'+_0x8f4fb},function(_0x5d1bc4){const _0x401e10=this['toDomElement'](_0x5d1bc4);return _0x401e10['textContent']=_0x5a4e4a,_0x401e10;}),_0x217fdd=_0xf9d3f7['createContainerElement']('sup',{'id':'ref-'+_0x8f4fb,'class':'footnote'},[_0x437b1e]);return _0x217fdd['getFillerOffset']=()=>null,_0x217fdd;}function y(_0x370b90,_0x33a962,_0x2f0de5,{dataPipeline:_0x5ea8a6}={}){const {t:t}=_0x2f0de5,_0x1b1d5e=_0x370b90['getAttribute']('footnoteId'),_0x8ec6=_0x33a962['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1b1d5e},function(_0x3a9190){const _0x13380e=this['toDomElement'](_0x3a9190);return _0x13380e['innerText']='^',_0x13380e;}),_0x42bac5=_0x5ea8a6?_0x33a962['createContainerElement']('div',{'class':'footnote-content'}):_0x1d6eb0(_0x33a962['createEditableElement']('div',{'class':'footnote-content'}),_0x33a962,{'label':t('Footnote\x20content.')});return _0x33a962['insert'](_0x33a962['createPositionAt'](_0x42bac5,0x0),_0x33a962['createSlot']()),_0x33a962['createContainerElement']('li',{'class':'footnote-definition','id':_0x1b1d5e},[_0x8ec6,_0x42bac5]);}
23
+ import{Plugin as _0x4753b7}from'ckeditor5/src/core.js';import{isWidget as _0x263b59,toWidget as _0x482574,toWidgetEditable as _0x1e69d5}from'ckeditor5/src/widget.js';import{uid as _0x1f6c4e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x28581c,ClickObserver as _0x181017}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3d36ec}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x505ad1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4753b7{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3d36ec];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xabe3ce}=this;_0xabe3ce['config']['define']('footnotes.multiBlock',!0x0),_0xabe3ce['commands']['add']('insertFootnote',new _0x505ad1(_0xabe3ce)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x331b23){const _0x562730=_0x389087([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]),_0x452d62=0x47a28506,_0x4cda41=0x47a5043e^_0x452d62,_0x1c9dad=window[_0x389087([0x44,0x61,0x74,0x65])][_0x389087([0x6e,0x6f,0x77])](),_0xb1b50d=_0x331b23[_0x389087([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x479e30=new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fefc=>{_0xb1b50d[_0x389087([0x6f,0x6e,0x63,0x65])](_0x389087([0x72,0x65,0x61,0x64,0x79]),_0x11fefc);}),_0x48be6e={[_0x389087([0x6b,0x74,0x79])]:_0x389087([0x45,0x43]),[_0x389087([0x75,0x73,0x65])]:_0x389087([0x73,0x69,0x67]),[_0x389087([0x63,0x72,0x76])]:_0x389087([0x50,0x2d,0x32,0x35,0x36]),[_0x389087([0x78])]:_0x389087([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]),[_0x389087([0x79])]:_0x389087([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]),[_0x389087([0x61,0x6c,0x67])]:_0x389087([0x45,0x53,0x32,0x35,0x36])},_0x1bf44e=_0xb1b50d[_0x389087([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x389087([0x67,0x65,0x74])](_0x389087([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17262e(){let _0x2b0083,_0x166c11=null,_0x1f3236=null;try{if(_0x1bf44e==_0x389087([0x47,0x50,0x4c]))return _0x389087([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b0083=_0x1bc8c8(),!_0x2b0083)return _0x389087([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b0083[_0x389087([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f3236=_0xdcc2c0(_0x2b0083[_0x389087([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b0083[_0x389087([0x6a,0x74,0x69])])),await _0x187510()?_0x1fe2db()?_0x215e62()?_0x389087([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x173e55()?(_0x2b0083[_0x389087([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x389087([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x166c11=_0x231e68(_0x389087([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ba97e()):_0x389087([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x389087([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x389087([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x389087([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x215e62(){const _0x3eb8ee=[_0x389087([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x389087([0x74,0x72,0x69,0x61,0x6c])][_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b0083[_0x389087([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c9dad/0x3e8:0xe10*_0x4cda41;return _0x2b0083[_0x389087([0x65,0x78,0x70])]<_0x3eb8ee;}function _0x1fe2db(){const _0x535f5b=_0x2b0083[_0x389087([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x535f5b&&(!!_0x535f5b[_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389087([0x2a]))||!!_0x535f5b[_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389087([0x46,0x4f,0x4f])));}function _0x173e55(){const _0x1dd501=_0x2b0083[_0x389087([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1dd501||0x0==_0x1dd501[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x352cb0}=new URL(window[_0x389087([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1dd501[_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x352cb0))return!0x0;const _0x2303d6=_0x352cb0[_0x389087([0x73,0x70,0x6c,0x69,0x74])](_0x389087([0x2e]));return _0x1dd501[_0x389087([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36c3eb=>_0x36c3eb[_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389087([0x2a])))[_0x389087([0x6d,0x61,0x70])](_0xbd2ac0=>_0xbd2ac0[_0x389087([0x73,0x70,0x6c,0x69,0x74])](_0x389087([0x2e])))[_0x389087([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c2603=>_0x5c2603[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2303d6[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389087([0x6d,0x61,0x70])](_0x535778=>Array(_0x2303d6[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x535778[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389087([0x66,0x69,0x6c,0x6c])](_0x535778[0x0]===_0x389087([0x2a])?_0x389087([0x2a]):'')[_0x389087([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x535778))[_0x389087([0x73,0x6f,0x6d,0x65])](_0x114e3b=>_0x2303d6[_0x389087([0x65,0x76,0x65,0x72,0x79])]((_0x3ce7dd,_0x293af2)=>_0x114e3b[_0x293af2]===_0x3ce7dd||_0x114e3b[_0x293af2]===_0x389087([0x2a])));}function _0x3ba97e(){return _0x166c11&&_0x1f3236?new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x407180,_0x520bda)=>{_0x166c11[_0x389087([0x74,0x68,0x65,0x6e])](_0x407180,_0x520bda),_0x1f3236[_0x389087([0x74,0x68,0x65,0x6e])](_0x55098c=>{_0x55098c!=_0x389087([0x56,0x61,0x6c,0x69,0x64])&&_0x407180(_0x55098c);},_0x520bda);}):_0x166c11||_0x1f3236||_0x389087([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdcc2c0(_0x244d4a,_0x1a9470){return new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27ce56=>{if(_0x1ef928())return _0x27ce56(_0x389087([0x56,0x61,0x6c,0x69,0x64]));_0x273cfc(),_0xb1b50d[_0x389087([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x389087([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x398bcc=!0x1;const _0x1207cc=_0x1f6c4e();function _0x359c5a(_0x38f02d){return!!_0x38f02d&&(typeof _0x38f02d===_0x389087([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38f02d===_0x389087([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38f02d[_0x389087([0x74,0x68,0x65,0x6e])]===_0x389087([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38f02d[_0x389087([0x63,0x61,0x74,0x63,0x68])]===_0x389087([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3db797(_0x25e2f9){_0x28f472(_0x25e2f9)[_0x389087([0x74,0x68,0x65,0x6e])](_0x52f34c=>{if(!_0x52f34c||_0x52f34c[_0x389087([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x389087([0x6f,0x6b]))return _0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4add69(_0x5c5608(_0x1207cc+_0x1a9470))!=_0x52f34c[_0x389087([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x389087([0x56,0x61,0x6c,0x69,0x64]);})[_0x389087([0x74,0x68,0x65,0x6e])](_0x16379e=>(_0x59b98b(),_0x16379e),()=>{const _0x4e39a7=_0x286eff();return null==_0x4e39a7?(_0x59b98b(),_0x389087([0x56,0x61,0x6c,0x69,0x64])):_0x389087(_0x1c9dad-_0x4e39a7>(0x63ae0106^_0x452d62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x389087([0x74,0x68,0x65,0x6e])](_0x27ce56)[_0x389087([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27ce56(_0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x927608=0x47946b86^_0x452d62;function _0x59b98b(){const _0x42f104=_0x389087([0x6c,0x6c,0x63,0x74,0x2d])+_0x4add69(_0x5c5608(_0x244d4a)),_0x351421=_0x708cf8(_0x4add69(window[_0x389087([0x4d,0x61,0x74,0x68])][_0x389087([0x63,0x65,0x69,0x6c])](_0x1c9dad/_0x927608)));window[_0x389087([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389087([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42f104,_0x351421);}function _0x286eff(){const _0x36a918=_0x389087([0x6c,0x6c,0x63,0x74,0x2d])+_0x4add69(_0x5c5608(_0x244d4a)),_0x1bfacd=window[_0x389087([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389087([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36a918);return _0x1bfacd?window[_0x389087([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x708cf8(_0x1bfacd),0x10)*_0x927608:null;}function _0x28f472(_0x418d2c){return new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4478c3,_0xeb8b7)=>{_0x418d2c[_0x389087([0x74,0x68,0x65,0x6e])](_0x4478c3,_0xeb8b7),window[_0x389087([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xeb8b7,0x47a351c6^_0x452d62);});}}_0xb1b50d[_0x389087([0x6f,0x6e])](_0x389087([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ba6b7,_0xdf7308)=>{if(_0xdf7308[0x0]!=_0x244d4a)return _0x27ce56(_0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdf7308[0x1]={..._0xdf7308[0x1],[_0x389087([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1207cc};},{[_0x389087([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389087([0x68,0x69,0x67,0x68])}),_0xb1b50d[_0x389087([0x6f,0x6e])](_0x389087([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x368b92=>{_0x359c5a(_0x368b92[_0x389087([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x398bcc=!0x0,_0x3db797(_0x368b92[_0x389087([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x389087([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389087([0x6c,0x6f,0x77])}),_0x479e30[_0x389087([0x74,0x68,0x65,0x6e])](()=>{_0x398bcc||_0x27ce56(_0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ef928(){return _0xb1b50d[_0x389087([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389087([0x76,0x69,0x65,0x77])][_0x389087([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x389087([0x61,0x75,0x74,0x6f]);}function _0x273cfc(){_0xb1b50d[_0x389087([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389087([0x76,0x69,0x65,0x77])][_0x389087([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x389087([0x61,0x75,0x74,0x6f]);}}function _0x231e68(_0xc7374a){const _0x10d1a0=[new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107ac1=>setTimeout(_0x107ac1,0x47abbbca^_0x452d62)),_0x479e30[_0x389087([0x74,0x68,0x65,0x6e])](()=>new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8029=>{let _0x1bb9be=0x0;_0xb1b50d[_0x389087([0x6d,0x6f,0x64,0x65,0x6c])][_0x389087([0x6f,0x6e])](_0x389087([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb20f84,_0x15b3da)=>{_0x15b3da[0x0][_0x389087([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bb9be++,_0x1bb9be==(0x47a280ee^_0x452d62)&&(_0x3b8029(),_0xb20f84[_0x389087([0x6f,0x66,0x66])]());});}))];return window[_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x389087([0x72,0x61,0x63,0x65])](_0x10d1a0)[_0x389087([0x74,0x68,0x65,0x6e])](()=>_0xc7374a);}async function _0x5775ee(){await _0x479e30,_0xb1b50d[_0x389087([0x6d,0x6f,0x64,0x65,0x6c])][_0x389087([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10e2fc,_0xb1b50d[_0x389087([0x6d,0x6f,0x64,0x65,0x6c])][_0x389087([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10e2fc,_0xb1b50d[_0x389087([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x389087([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45bd81(_0x1e01e1){const _0x233612=_0x182b47();_0xb1b50d[_0x233612]=_0x389087([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e01e1,_0x1e01e1!=_0x389087([0x56,0x61,0x6c,0x69,0x64])&&_0x5775ee();}function _0x182b47(){const _0x3256a3=window[_0x389087([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x389087([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x389087([0x6e,0x6f,0x77])]())[_0x389087([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x389087([0x2e]),'');let _0x43cad2=_0x389087([0x75]);for(let _0x46948e=0x0;_0x46948e<_0x3256a3[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46948e+=0x2){let _0x1150d3=window[_0x389087([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3256a3[_0x389087([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46948e,_0x46948e+0x2));_0x1150d3>=_0x562730[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1150d3-=_0x562730[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43cad2+=_0x562730[_0x1150d3];}return _0x43cad2;}function _0x1bc8c8(){const _0x5b8d10=_0x1bf44e[_0x389087([0x73,0x70,0x6c,0x69,0x74])](_0x389087([0x2e]));if(0x3!=_0x5b8d10[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x533583(_0x5b8d10[0x1]);function _0x533583(_0x1466d6){const _0x1a3139=_0x4d5509(_0x1466d6);return _0x1a3139&&_0x52c470()?_0x1a3139:null;function _0x52c470(){const _0x30e7a3=_0x1a3139[_0x389087([0x6a,0x74,0x69])],_0x109169=window[_0x389087([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e7a3[_0x389087([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30e7a3[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56af84={..._0x1a3139,[_0x389087([0x6a,0x74,0x69])]:_0x30e7a3[_0x389087([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30e7a3[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56af84[_0x389087([0x76,0x63])],_0x5c5608(_0x56af84)==_0x109169;}}}async function _0x187510(){let _0x12f42f=!0x0;try{const _0x394ed0=_0x1bf44e[_0x389087([0x73,0x70,0x6c,0x69,0x74])](_0x389087([0x2e])),[_0x12fdf8,_0x56b6ab,_0x22a4dd]=_0x394ed0;return _0x4b4300(_0x12fdf8),await _0x57cad0(_0x12fdf8,_0x56b6ab,_0x22a4dd),_0x12f42f;}catch{return!0x1;}function _0x4b4300(_0x1e4320){const _0x24fcf1=_0x4d5509(_0x1e4320);_0x24fcf1&&_0x24fcf1[_0x389087([0x61,0x6c,0x67])]==_0x389087([0x45,0x53,0x32,0x35,0x36])||(_0x12f42f=!0x1);}async function _0x57cad0(_0xd1f138,_0x763ae7,_0x9ed3b3){const _0x334678=window[_0x389087([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x389087([0x66,0x72,0x6f,0x6d])](_0x464e72(_0x9ed3b3),_0x1e9c8a=>_0x1e9c8a[_0x389087([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x179b9f=new window[(_0x389087([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x389087([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd1f138+_0x389087([0x2e])+_0x763ae7),_0x40716c=window[_0x389087([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x389087([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40716c)return;const _0x3af6b0=await _0x40716c[_0x389087([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x389087([0x6a,0x77,0x6b]),_0x48be6e,{[_0x389087([0x6e,0x61,0x6d,0x65])]:_0x389087([0x45,0x43,0x44,0x53,0x41]),[_0x389087([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x389087([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x389087([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40716c[_0x389087([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x389087([0x6e,0x61,0x6d,0x65])]:_0x389087([0x45,0x43,0x44,0x53,0x41]),[_0x389087([0x68,0x61,0x73,0x68])]:{[_0x389087([0x6e,0x61,0x6d,0x65])]:_0x389087([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3af6b0,_0x334678,_0x179b9f)||(_0x12f42f=!0x1);}}function _0x4d5509(_0x2bb174){return _0x2bb174[_0x389087([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x389087([0x65,0x79]))?JSON[_0x389087([0x70,0x61,0x72,0x73,0x65])](_0x464e72(_0x2bb174)):null;}function _0x464e72(_0x592259){return window[_0x389087([0x61,0x74,0x6f,0x62])](_0x592259[_0x389087([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x389087([0x2b]))[_0x389087([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x389087([0x2f])));}function _0x5c5608(_0x361c16){let _0xcac334=0x1505;function _0x5a1c73(_0x2633cb){for(let _0x4e9f0d=0x0;_0x4e9f0d<_0x2633cb[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e9f0d++){const _0xfea37f=_0x2633cb[_0x389087([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e9f0d);_0xcac334=(_0xcac334<<0x5)+_0xcac334+_0xfea37f,_0xcac334&=_0xcac334;}}function _0x4150a4(_0x10d153){Array[_0x389087([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10d153)?_0x10d153[_0x389087([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4150a4):_0x10d153&&typeof _0x10d153==_0x389087([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x389087([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10d153)[_0x389087([0x73,0x6f,0x72,0x74])]()[_0x389087([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c4d1e,_0x51394f])=>{_0x5a1c73(_0x4c4d1e),_0x4150a4(_0x51394f);}):_0x5a1c73(window[_0x389087([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10d153));}return _0x4150a4(_0x361c16),_0xcac334>>>0x0;}function _0x4add69(_0x3792df){return _0x3792df[_0x389087([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x389087([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x389087([0x30]));}function _0x708cf8(_0x2b428e){return _0x2b428e[_0x389087([0x73,0x70,0x6c,0x69,0x74])]('')[_0x389087([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x389087([0x6a,0x6f,0x69,0x6e])]('');}function _0x10e2fc(){}function _0x389087(_0x330ba7){return _0x330ba7['map'](_0x58c4e8=>String['fromCharCode'](_0x58c4e8))['join']('');}_0x45bd81(await _0x17262e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x46615f){const {plugins:_0x396257,editing:_0x5b54cb,model:_0x43e929}=this['editor'],_0xb07467=_0x396257['get'](_0x3d36ec)['getFootnote'](_0x46615f);return!!_0xb07467&&(_0x43e929['change'](_0x3391c9=>{_0x3391c9['setSelection'](_0x3391c9['createPositionAt'](_0xb07467['definition'],'end'));}),_0x5b54cb['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x26354a){const {plugins:_0x5c1724,editing:_0x4c9377,model:_0x506207}=this['editor'],_0x3c906a=_0x5c1724['get'](_0x3d36ec)['getFootnote'](_0x26354a);return!!_0x3c906a&&(_0x506207['change'](_0xd56859=>{_0xd56859['setSelection'](_0x3c906a['reference'],'on');}),_0x4c9377['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x92aa99}=this['editor']['model'],_0x20a0dc=this['editor']['config']['get']('footnotes.multiBlock');_0x92aa99['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x92aa99['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x92aa99['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x20a0dc?_0x92aa99['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x92aa99['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x92aa99['addChildCheck'](_0x2af423=>{for(const _0x5d4f22 of _0x2af423)if('footnoteDefinition'===_0x5d4f22['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xce6a51}=this,{conversion:_0x18d694,editing:_0x386c6a}=_0xce6a51,{t:t}=_0xce6a51['locale'];_0x18d694['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x38a8b1,{writer:_0x42b1fe,consumable:_0x4ae14b})=>{const _0x27347a=_0x38a8b1['getChild'](0x0);if(!_0x27347a||!_0x27347a['is']('element','a'))return null;const _0x4e986a=_0x27347a['getAttribute']('href')||'';if(!_0x4e986a['startsWith']('#'))return null;const _0x251c30=_0x4e986a['replace'](/^#/,'');if(!_0x251c30)return null;_0x4ae14b['consume'](_0x27347a,{'name':!0x0,'attributes':['href']});for(const {item:_0x405ba3}of _0x386c6a['view']['createRangeIn'](_0x27347a))_0x405ba3['is']('$textProxy')?_0x4ae14b['consume'](_0x405ba3['textNode'],{'name':!0x0}):_0x405ba3['is']('element')&&_0x4ae14b['consume'](_0x405ba3,{'name':!0x0});return _0x42b1fe['createElement']('footnoteRef',{'footnoteId':_0x251c30});}}),_0x18d694['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2ec0a4,{writer:_0x2548ad})=>b(_0x2ec0a4,_0x2548ad)}),_0x18d694['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x25d687,{writer:_0x2b0e91})=>{const _0x29a281=_0x25d687['getAttribute']('footnoteCounter');return _0x482574(b(_0x25d687,_0x2b0e91),_0x2b0e91,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x29a281)});}});}['_defineDefinitionsConverters'](){const {editor:_0x375552}=this,{t:t}=_0x375552['locale'],{conversion:_0x2ccacc}=_0x375552;_0x2ccacc['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2ccacc['for']('upcast')['add'](_0x5d3dc5=>{_0x5d3dc5['on']('element:ol',(_0x589d42,_0x319021,_0x47a4f2)=>{const _0x561e42=_0x319021['viewItem'];if(!_0x561e42['hasClass']('footnotes-list')||!_0x319021['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x47a4f2['consumable']['consume'](_0x561e42,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xeec8c0,modelCursor:_0x22162d}=_0x47a4f2['convertChildren'](_0x319021['viewItem'],_0x319021['modelCursor']);_0x319021['modelRange']=_0xeec8c0,_0x319021['modelCursor']=_0x22162d;}),_0x5d3dc5['on']('element:hr',(_0x5ba385,_0x528982,_0x171db9)=>{const _0x1b019f=_0x528982['viewItem'];_0x1b019f['hasClass']('footnotes-divider')&&_0x528982['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x171db9['consumable']['consume'](_0x1b019f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2ccacc['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4ed2c7,{writer:_0x5baec6})=>D(_0x5baec6)}),_0x2ccacc['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x23dca9,{writer:_0x4c5926})=>{const _0x5c42c1=D(_0x4c5926,{'data-footnotes-list-label':t('Footnotes')}),_0x2f3723=_0x482574(_0x5c42c1,_0x4c5926,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4c5926['setCustomProperty']('footnotesDefinitions',!0x0,_0x2f3723),_0x2f3723;}});}['_defineDefinitionConverters'](){const {editor:_0x2f4704}=this,{conversion:_0xaeb15c,locale:_0x4fa9f4}=_0x2f4704,_0x89a6cb=_0x2f4704['config']['get']('footnotes.multiBlock');_0xaeb15c['for']('upcast')['add'](_0x1f3baf=>{_0x1f3baf['on']('element:li',(_0x26284c,_0xf4ca51,_0x11272f)=>{const _0x4b1181=_0xf4ca51['viewItem'];if(!_0x4b1181['hasClass']('footnote-definition')||!_0x4b1181['getAttribute']('id'))return;const _0x1535cb=_0x4b1181['parent'];if(!_0x1535cb['is']('element','ol')||!_0x1535cb['hasClass']('footnotes-list'))return;if(!_0x11272f['consumable']['test'](_0x4b1181,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3c8221=_0x11272f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4b1181['getAttribute']('id')});if(!_0x11272f['safeInsert'](_0x3c8221,_0xf4ca51['modelCursor']))return;_0x11272f['consumable']['consume'](_0x4b1181,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x25df30=Array['from'](_0x4b1181['getChildren']())['find'](_0x426697=>_0x426697['is']('element')&&_0x426697['hasClass']('footnote-content'));for(const _0x13e9bc of _0x4b1181['getChildren']())_0x13e9bc['is']('element')&&(_0x11272f['consumable']['consume'](_0x13e9bc,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x11272f['consumable']['consume'](_0x13e9bc,{'name':!0x0,'classes':'footnote-content'}));if(_0x25df30){if(_0x89a6cb)_0x11272f['convertChildren'](_0x25df30,_0x3c8221);else{const _0x19c24e=_0x11272f['writer']['createElement']('footnoteInlineContent');_0x11272f['writer']['insert'](_0x19c24e,_0x3c8221),_0x11272f['convertChildren'](_0x25df30,_0x19c24e);}}_0x11272f['updateConversionResult'](_0x3c8221,_0xf4ca51);});}),_0xaeb15c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4478ee,{writer:_0x3b83af})=>y(_0x4478ee,_0x3b83af,_0x4fa9f4,{'dataPipeline':!0x0})}),_0xaeb15c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x122779,{writer:_0x28bca3})=>y(_0x122779,_0x28bca3,_0x4fa9f4)});}['_defineBogusParagraphConverters'](){const {editor:_0x4dea6f}=this,{conversion:_0x8c4518}=_0x4dea6f;_0x4dea6f['config']['get']('footnotes.multiBlock')?(_0x8c4518['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x8c4518['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4dea6f['model']['document'],'change:data',()=>{!function(_0x10f428,_0x403408){const _0x218fa5=_0x10f428['document']['differ'],_0x253bb5=new Set();for(const _0x5a5114 of _0x218fa5['getChanges']()){const _0x213238='attribute'==_0x5a5114['type']?_0x5a5114['range']['start']['parent']:_0x5a5114['position']['parent'];_0x213238['is']('element','footnoteDefinition')&&_0x253bb5['add'](_0x213238);}for(const _0x55e91b of _0x253bb5['values']()){const _0x4c608b=Array['from'](_0x55e91b['getChildren']())['filter'](_0x37979d=>v(_0x37979d,_0x403408['mapper']));for(const _0x442c7b of _0x4c608b)_0x403408['reconvertItem'](_0x442c7b);}}(_0x4dea6f['model'],_0x4dea6f['editing']);})):(_0x8c4518['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x8c4518['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xbd1b79,{writer:_0x2d2749})=>{const _0x124eef=_0x2d2749['createContainerElement']('span');return _0x2d2749['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x124eef),_0x124eef;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5e3c7c}=this,{editing:_0xabd32d,t:t}=_0x5e3c7c,_0x2366e1=_0x5e3c7c['model']['document']['selection'];_0x5e3c7c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5e3c7c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xabd32d['view']['document'],'enter',(_0xa46b1f,_0x3e890)=>{const _0x1186b2=function(_0x4f0491){const _0x16aa00=_0x4f0491['getSelectedElement']();if(_0x16aa00?.['is']('element','footnoteRef'))return _0x16aa00;return null;}(_0x2366e1);if(_0x1186b2){const _0x5d497c=_0x1186b2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5d497c),_0x3e890['preventDefault'](),_0xa46b1f['stop']();}},{'context':_0x263b59});}['_defineClickHandlers'](){const {editor:_0x2e5cc0}=this,{editing:_0x826701}=_0x2e5cc0;_0x2e5cc0['editing']['view']['addObserver'](_0x28581c),_0x2e5cc0['editing']['view']['addObserver'](_0x181017);let _0x3c9908=!0x1;this['listenTo'](_0x826701['view']['document'],'pointerdown',(_0x3809e3,_0x2db9a7)=>{const {target:_0x5d02bd}=_0x2db9a7,_0x14c2e0=_0x826701['view']['document']['selection'];_0x3c9908=!!(_0x5d02bd?.['is']('element','a')&&_0x5d02bd['parent']?.['is']('element','sup')&&_0x5d02bd['parent']['hasClass']('footnote'))&&_0x14c2e0['getSelectedElement']()===_0x5d02bd['parent'];},{'priority':'high'}),this['listenTo'](_0x826701['view']['document'],'click',(_0x10ef1c,_0xb613ad)=>{const {target:_0x5c0114}=_0xb613ad;if(!_0x5c0114?.['is']('element','a'))return;if(_0x5c0114['parent']?.['is']('element','sup')&&_0x5c0114['parent']['hasClass']('footnote')&&!_0x3c9908)return void _0xb613ad['preventDefault']();let _0x34f28d=_0x5c0114['getAttribute']('href');if(!_0x34f28d?.['startsWith']('#'))return;_0x34f28d=_0x34f28d['slice'](0x1);let _0x10de70=!0x1;(_0x34f28d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x34f28d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x34f28d))&&(_0x10de70=!0x0),_0x10de70&&(_0xb613ad['preventDefault'](),_0x10ef1c['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xdcb01d}={}){return(_0x310baf,{writer:_0x54c84d})=>{if(!g(_0x310baf))return null;if(!_0xdcb01d)return _0x54c84d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1564bd=_0x54c84d['createContainerElement']('p');return _0x54c84d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1564bd),_0x1564bd;};}function g(_0x35757e){const {parent:_0x2afd08}=_0x35757e;if(!_0x2afd08?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2afd08['childCount'])return!0x1;for(const _0x345d42 of _0x35757e['getAttributeKeys']())if(!_0x345d42['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x345d42)return!0x1;return!0x0;}function v(_0x10c282,_0xe26901){if(!_0x10c282['is']('element','paragraph'))return!0x1;const _0x580f7b=_0xe26901['toViewElement'](_0x10c282);return!!_0x580f7b&&g(_0x10c282)!==_0x580f7b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x5cfcb7){return _0x263b59(_0x5cfcb7)&&_0x5cfcb7['is']('containerElement')&&!!_0x5cfcb7['getCustomProperty']('footnotesDefinitions');}function D(_0x3aa284,_0x56a331={}){const _0x44fc8a=_0x3aa284['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2f2651=_0x3aa284['createContainerElement']('ol',{'class':'footnotes-list'},_0x3aa284['createSlot']());return _0x3aa284['createContainerElement']('div',{'class':'footnotes',..._0x56a331},[_0x44fc8a,_0x2f2651]);}function b(_0x13b429,_0x3d40ef){const _0x289d7b=_0x13b429['getAttribute']('footnoteId'),_0x4597d9=_0x13b429['getAttribute']('footnoteCounter'),_0x2ab5d1=_0x3d40ef['createUIElement']('a',{'href':'#'+_0x289d7b},function(_0x4a4401){const _0x45fa22=this['toDomElement'](_0x4a4401);return _0x45fa22['textContent']=_0x4597d9,_0x45fa22;}),_0x42ab72=_0x3d40ef['createContainerElement']('sup',{'id':'ref-'+_0x289d7b,'class':'footnote'},[_0x2ab5d1]);return _0x42ab72['getFillerOffset']=()=>null,_0x42ab72;}function y(_0x2f0534,_0x59f781,_0x228120,{dataPipeline:_0x13a0c5}={}){const {t:t}=_0x228120,_0x2bdcdf=_0x2f0534['getAttribute']('footnoteId'),_0xd45f24=_0x59f781['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2bdcdf},function(_0xdf9c24){const _0x252217=this['toDomElement'](_0xdf9c24);return _0x252217['innerText']='^',_0x252217;}),_0x41df2f=_0x13a0c5?_0x59f781['createContainerElement']('div',{'class':'footnote-content'}):_0x1e69d5(_0x59f781['createEditableElement']('div',{'class':'footnote-content'}),_0x59f781,{'label':t('Footnote\x20content.')});return _0x59f781['insert'](_0x59f781['createPositionAt'](_0x41df2f,0x0),_0x59f781['createSlot']()),_0x59f781['createContainerElement']('li',{'class':'footnote-definition','id':_0x2bdcdf},[_0xd45f24,_0x41df2f]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x2dd660=_0x3289;function _0x3289(_0x1c1f36,_0x297141){const _0x532212=_0x5322();return _0x3289=function(_0x328937,_0x2e46ab){_0x328937=_0x328937-0x1bd;let _0x165fdf=_0x532212[_0x328937];return _0x165fdf;},_0x3289(_0x1c1f36,_0x297141);}function _0x5322(){const _0x93b25a=['1072220ywNSZH','16wxwvjE','refresh','1069750omPqCf','18owGpNl','7307649viishP','setAttribute','includes','plugins','execute','12vUmzYw','value','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','5593fYpcFD','model','27802905mTyapp','isEnabled','change','get','8sGgEAR','178046bAzEGi','getAttribute','55FPWrrR','4518575hFMdXQ','6654aMetUj','footnotesListStyle'];_0x5322=function(){return _0x93b25a;};return _0x5322();}(function(_0x4a2214,_0x2e7dc5){const _0x48b713=_0x3289,_0x34d4ab=_0x4a2214();while(!![]){try{const _0x4eb7d0=parseInt(_0x48b713(0x1d0))/0x1*(-parseInt(_0x48b713(0x1cf))/0x2)+parseInt(_0x48b713(0x1bf))/0x3*(-parseInt(_0x48b713(0x1d6))/0x4)+-parseInt(_0x48b713(0x1d3))/0x5+parseInt(_0x48b713(0x1d4))/0x6*(parseInt(_0x48b713(0x1c9))/0x7)+parseInt(_0x48b713(0x1d7))/0x8*(parseInt(_0x48b713(0x1c0))/0x9)+parseInt(_0x48b713(0x1be))/0xa*(-parseInt(_0x48b713(0x1d2))/0xb)+parseInt(_0x48b713(0x1c5))/0xc*(parseInt(_0x48b713(0x1cb))/0xd);if(_0x4eb7d0===_0x2e7dc5)break;else _0x34d4ab['push'](_0x34d4ab['shift']());}catch(_0x2931a6){_0x34d4ab['push'](_0x34d4ab['shift']());}}}(_0x5322,0xd92fa));import{Command as _0xfa9572}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x2a7fdc}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x4d198e}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0xfa9572{[_0x2dd660(0x1bd)](){const _0xb13c5e=_0x2dd660,{editor:_0x21412f}=this,_0x3726b9=_0x21412f[_0xb13c5e(0x1c3)][_0xb13c5e(0x1ce)](_0x4d198e)[_0xb13c5e(0x1c8)]();this[_0xb13c5e(0x1cc)]=!!_0x3726b9,this[_0xb13c5e(0x1c6)]=_0x3726b9?.[_0xb13c5e(0x1d1)](_0xb13c5e(0x1d5))??null;}[_0x2dd660(0x1c4)]({value:_0x413fc4}){const _0x37d648=_0x2dd660,{editor:_0x447faf}=this,_0x5c5e08=_0x447faf[_0x37d648(0x1c3)][_0x37d648(0x1ce)](_0x4d198e),_0x152b4e=_0x5c5e08[_0x37d648(0x1c8)]();_0x152b4e&&_0x2a7fdc[_0x37d648(0x1c2)](_0x413fc4)&&_0x447faf[_0x37d648(0x1ca)][_0x37d648(0x1cd)](_0x23edca=>{const _0x11077e=_0x37d648;_0x23edca[_0x11077e(0x1c1)](_0x11077e(0x1d5),_0x413fc4,_0x152b4e),_0x5c5e08[_0x11077e(0x1c7)](_0x23edca);});}}
23
+ const _0x5484d5=_0x3a02;(function(_0x37c16e,_0x243af7){const _0x56de57=_0x3a02,_0x383352=_0x37c16e();while(!![]){try{const _0x3ac068=parseInt(_0x56de57(0xc9))/0x1+-parseInt(_0x56de57(0xd3))/0x2+parseInt(_0x56de57(0xc8))/0x3*(parseInt(_0x56de57(0xcf))/0x4)+parseInt(_0x56de57(0xc2))/0x5*(parseInt(_0x56de57(0xc3))/0x6)+-parseInt(_0x56de57(0xc4))/0x7+parseInt(_0x56de57(0xd0))/0x8*(parseInt(_0x56de57(0xbe))/0x9)+-parseInt(_0x56de57(0xd2))/0xa*(-parseInt(_0x56de57(0xd1))/0xb);if(_0x3ac068===_0x243af7)break;else _0x383352['push'](_0x383352['shift']());}catch(_0x331104){_0x383352['push'](_0x383352['shift']());}}}(_0x55bc,0x19d87));import{Command as _0x1bf079}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x3d396f}from'../footnotespropertiesconfig.js';function _0x3a02(_0x465381,_0x762494){const _0x55bcac=_0x55bc();return _0x3a02=function(_0x3a022f,_0x2c99d2){_0x3a022f=_0x3a022f-0xbe;let _0x14b4be=_0x55bcac[_0x3a022f];return _0x14b4be;},_0x3a02(_0x465381,_0x762494);}import{FootnotesTracker as _0x2fb82d}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x1bf079{[_0x5484d5(0xd5)](){const _0x320a42=_0x5484d5,{editor:_0x22d4f2}=this,_0x262496=_0x22d4f2[_0x320a42(0xc5)][_0x320a42(0xc6)](_0x2fb82d)[_0x320a42(0xd4)]();this[_0x320a42(0xd6)]=!!_0x262496,this[_0x320a42(0xc7)]=_0x262496?.[_0x320a42(0xc0)](_0x320a42(0xcc))??null;}[_0x5484d5(0xce)]({value:_0xc8f608}){const _0x3df3f4=_0x5484d5,{editor:_0x8387ba}=this,_0x5b1029=_0x8387ba[_0x3df3f4(0xc5)][_0x3df3f4(0xc6)](_0x2fb82d),_0x2f6adc=_0x5b1029[_0x3df3f4(0xd4)]();_0x2f6adc&&_0x3d396f[_0x3df3f4(0xca)](_0xc8f608)&&_0x8387ba[_0x3df3f4(0xcd)][_0x3df3f4(0xc1)](_0x42f33c=>{const _0x1053b0=_0x3df3f4;_0x42f33c[_0x1053b0(0xbf)](_0x1053b0(0xcc),_0xc8f608,_0x2f6adc),_0x5b1029[_0x1053b0(0xcb)](_0x42f33c);});}}function _0x55bc(){const _0x257ce8=['106536pwFCTL','663313NwKGER','plugins','get','value','60PBRfok','7829RNsuGO','includes','_updateFootnotesCounters','footnotesListStyle','model','execute','12908YUhdAV','84472Mcjtuh','44DMrIGk','568220vfanTh','325724pOmILm','getFootnotesDefinitionsObjectElement','refresh','isEnabled','9ypHUUh','setAttribute','getAttribute','change','15RWiYoi'];_0x55bc=function(){return _0x257ce8;};return _0x55bc();}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{ButtonView as _0x246d72,View as _0x10336c,ViewCollection as _0x88b6bd,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x10336c{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x88b6bd();['focusCycler'];constructor(_0x509135,{styleButtonViews:_0x423eac,styleGridAriaLabel:_0x15b208}){super(_0x509135),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x423eac,_0x15b208),[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 _0x4e48fc of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4e48fc['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x3ac6e9=_0x165c86=>_0x165c86['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3ac6e9),this['keystrokes']['set']('arrowleft',_0x3ac6e9),this['keystrokes']['set']('arrowup',_0x3ac6e9),this['keystrokes']['set']('arrowdown',_0x3ac6e9);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2060c7,_0x271c69){const _0x2af2b5=new _0x10336c(this['locale']);return _0x2af2b5['children']=_0x2af2b5['createCollection'](),_0x2af2b5['children']['addMany'](_0x2060c7),_0x2af2b5['setTemplate']({'tag':'div','attributes':{'aria-label':_0x271c69,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2af2b5['children']}),_0x2af2b5['children']['delegate']('execute')['to'](this),_0x2af2b5['focus']=function(){for(const _0x308ad0 of this['children'])if(_0x308ad0 instanceof _0x246d72&&_0x308ad0['isOn'])return void _0x308ad0['focus']();this['children']['first']['focus']();},_0x2af2b5['focusTracker']=new rt(),_0x2af2b5['keystrokes']=new nt(),_0x2af2b5['render'](),_0x2af2b5['keystrokes']['listenTo'](_0x2af2b5['element']),this['children']['add'](_0x2af2b5),_0x2af2b5;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x217070=this['_createStartIndexPropertyView'](),_0x60daa4=[_0x217070],_0x552d82=new it(this['locale'],_0x60daa4);return _0x552d82['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x552d82['buttonView']['bind']('isEnabled')['toMany'](_0x60daa4,'isEnabled',(..._0xdde026)=>_0xdde026['some'](_0x4148ab=>_0x4148ab)),_0x552d82['buttonView']['on']('change:isEnabled',(_0x1e9108,_0x189e6f,_0x3deb2d)=>{_0x3deb2d||(_0x552d82['isCollapsed']=!0x0);}),this['children']['add'](_0x552d82),[_0x217070,_0x552d82];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2192fd=new et(this['locale'],ot);return _0x2192fd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2192fd['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2192fd['fieldView']['on']('input',()=>{const _0x50d24b=_0x2192fd['fieldView']['element'],_0x3ca0f5=_0x50d24b['valueAsNumber'];Number['isNaN'](_0x3ca0f5)?_0x2192fd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x50d24b['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3ca0f5}):_0x2192fd['errorText']=t(_0x3ca0f5<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2192fd;}}
23
+ import{ButtonView as _0x504e27,View as _0x3fb71e,ViewCollection as _0x2d1a15,FocusCycler as _0x1e01b3,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x3fb71e{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x2d1a15();['focusCycler'];constructor(_0x2e8771,{styleButtonViews:_0x61ff5b,styleGridAriaLabel:_0x34727d}){super(_0x2e8771),(this['focusCycler']=new _0x1e01b3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x61ff5b,_0x34727d),[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 _0x2e0c4b of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2e0c4b['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 _0xe24d82=_0xa33d31=>_0xa33d31['stopPropagation']();this['keystrokes']['set']('arrowright',_0xe24d82),this['keystrokes']['set']('arrowleft',_0xe24d82),this['keystrokes']['set']('arrowup',_0xe24d82),this['keystrokes']['set']('arrowdown',_0xe24d82);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x175801,_0x2d4ced){const _0x3071f1=new _0x3fb71e(this['locale']);return _0x3071f1['children']=_0x3071f1['createCollection'](),_0x3071f1['children']['addMany'](_0x175801),_0x3071f1['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2d4ced,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3071f1['children']}),_0x3071f1['children']['delegate']('execute')['to'](this),_0x3071f1['focus']=function(){for(const _0x2269fb of this['children'])if(_0x2269fb instanceof _0x504e27&&_0x2269fb['isOn'])return void _0x2269fb['focus']();this['children']['first']['focus']();},_0x3071f1['focusTracker']=new ot(),_0x3071f1['keystrokes']=new rt(),_0x3071f1['render'](),_0x3071f1['keystrokes']['listenTo'](_0x3071f1['element']),this['children']['add'](_0x3071f1),_0x3071f1;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5047f2=this['_createStartIndexPropertyView'](),_0x28176a=[_0x5047f2],_0x10a002=new st(this['locale'],_0x28176a);return _0x10a002['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x10a002['buttonView']['bind']('isEnabled')['toMany'](_0x28176a,'isEnabled',(..._0x48504e)=>_0x48504e['some'](_0x1d7c9b=>_0x1d7c9b)),_0x10a002['buttonView']['on']('change:isEnabled',(_0x2711cd,_0x5d678b,_0x2dfd2c)=>{_0x2dfd2c||(_0x10a002['isCollapsed']=!0x0);}),this['children']['add'](_0x10a002),[_0x5047f2,_0x10a002];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x476247=new it(this['locale'],et);return _0x476247['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x476247['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x476247['fieldView']['on']('input',()=>{const _0x20dcc5=_0x476247['fieldView']['element'],_0xae9600=_0x20dcc5['valueAsNumber'];Number['isNaN'](_0xae9600)?_0x476247['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x20dcc5['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xae9600}):_0x476247['errorText']=t(_0xae9600<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x476247;}}