@ckeditor/ckeditor5-footnotes 47.6.2-alpha.0 → 47.6.2

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 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:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=a();return(r=function(t,e){return o[t-=370]})(t,e)}function a(){const t=["3PSOicY","_model","delete","root","attributes","getChanges","717979CXFwMc","4744GnnhZi","777TEbAuH","getItems","4007277CwanjO","length","type","rootName","insert","elementName","$graveyard","reset","clear","add","slice","nodeAfter","name","3048400yIdgjC","4092268knULNH","values","get","_getElementKey","_trackedElements","createRangeOn","remove","6viExUB","position","2804992wxoFIC","push","from","set","19361680AvSjGn","element","$text","_elementName","flat","has","getElementKey"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(740156===-parseInt(e(389))/1+-parseInt(e(372))/2+parseInt(e(383))/3*(parseInt(e(407))/4)+parseInt(e(406))/5*(-parseInt(e(370))/6)+parseInt(e(391))/7*(parseInt(e(390))/8)+parseInt(e(393))/9+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(384)];[c(379)];[c(410)];[c(411)]=new Map;constructor(t,e){const o=c;this[o(384)]=t,this[o(379)]=e[o(398)],this[o(410)]=e[o(382)]}[c(400)](){const t=c;this[t(411)][t(401)]()}[c(388)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(397)===i[e(395)]&&e(378)!==i[e(405)]&&i[e(371)][e(404)]){const t=this[e(384)][e(412)](i[e(371)][e(404)]);for(const o of t[e(392)]()){if(!o.is(e(377),this[e(379)]))continue;const t=this[e(410)](o);n[e(381)](t)||n[e(375)](t,[]),n[e(409)](t)[e(373)](o)}}if(e(413)===i[e(395)]&&i[e(405)]===this[e(379)]){const t=this[e(410)]({getAttribute:t=>i[e(387)][e(409)](t)});o[e(402)](t)}}for(const[t,n]of this[e(411)])e(399)===n[e(386)][e(396)]&&o[e(402)](t);for(const t of o)this[e(411)][e(385)](t);for(const[t,o]of n)this[e(411)][e(375)](t,o[o[e(394)]-1]);const i=new Set;for(const[t,s]of n)o[e(381)](t)&&(i[e(402)](s[0]),s[e(394)]>1?n[e(375)](t,s[e(403)](1)):n[e(385)](t),o[e(385)](t));return{removed:Array[e(374)](o),inserted:Array[e(374)](n[e(408)]())[e(380)](),moved:Array[e(374)](i)}}}const u=d;function f(){const t=["_footnoteDefsTracker","end","_sortFootnoteDefinitions","getAttribute","registerPostFixer","getFootnotes","47021nAESuo","getRootNames","init","createPositionAt","push","footnoteId","375330QNUtfL","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","low","createRangeOn","getFootnotesFormatter","paragraph","length","getFootnotesDefinitionsObjectElement","definition","_footnotes","map","change:data","_handleFootnoteDefinitionsChanges","_handleRemoveFootnoteReferenceById","insert","parent","add","append","footnotesDefinitions","getChanges","setFootnoteFormatter","_updateFootnotesCounters","isPremiumPlugin","631694hRZrYB","pluginName","enqueueChange","405HxLBUf","120wPKkRH","unshift","createRangeIn","set","has","isOfficialPlugin","findIndex","document","_updateFootnoteRefCounter","differ","363eYiHUY","compareWith","listenTo","rootName","root","262047pWGYqn","_footnoteDefsContainerTracker","4bqtIoR","_ensureFootnotesDefinitionsContainerExists","23196MuoJDM","_ensureFootnotesReferencesHaveProperOrder","getChildren","remove","createPositionBefore","setAttribute","high","editor","singleton","indexOf","_footnoteRefsTracker","isEqual","24uqsyFB","reference","_handleFootnotesDefinitionsObjectSync","config","666CjKtSs","footnotes.multiBlock","1552149QuwOji","model","footnoteRef","getFootnote","footnoteDefinition","reset","footnoteCounter","$graveyard","_insertEmptyFootnotesDefinitionsContainer","min","before","get","splice","from","some","childCount","createElement","move","_footnoteFormatter","find","106232WrJEgw","_handleMovedFootnoteReference","_handleFootnoteReferencesChanges","_handleInsertedFootnoteReference","_footnotesDefinitions","after","footnoteInlineContent"];return(f=function(){return t})()}function d(t,e){const o=f();return(d=function(t,e){return o[t-=271]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(640613===-parseInt(e(299))/1*(-parseInt(e(301))/2)+parseInt(e(321))/3+-parseInt(e(303))/4*(parseInt(e(283))/5)+parseInt(e(315))/6*(parseInt(e(280))/7)+-parseInt(e(341))/8*(-parseInt(e(319))/9)+parseInt(e(360))/10*(-parseInt(e(294))/11)+parseInt(e(284))/12*(-parseInt(e(354))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class h extends t.Plugin{[u(370)]=[];[u(345)]=null;[u(339)]=null;[u(300)];[u(313)];[u(348)];static get[u(281)](){return u(361)}static get[u(289)](){return!0}static get[u(279)](){return!0}constructor(t){const e=u;super(t),this[e(300)]=new l(this[e(310)][e(322)],{elementName:e(275),getElementKey:()=>e(311)}),this[e(313)]=new l(this[e(310)][e(322)],{elementName:e(323),getElementKey:t=>t[e(351)](e(359))}),this[e(348)]=new l(this[e(310)][e(322)],{elementName:e(325),getElementKey:t=>t[e(351)](e(359))})}[u(356)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(291)][t(352)](e=>{const n=t,i=o[n(291)][n(293)][n(276)]();let s=!1;return this[n(362)](e,i)&&(s=!0),this[n(373)](e,i)&&(s=!0),this[n(343)](e,i)&&(s=!0),this[n(304)](e)&&(s=!0),this[n(317)](e)&&(s=!0),this[n(350)](e)&&(s=!0),s}),this[t(296)](o[t(291)],t(372),()=>{const e=t;o[e(282)]({isUndoable:!1},t=>{this[e(302)](t)})},{priority:t(363)}),this[t(296)](n,t(287),()=>{const e=t;this[e(370)]=[],this[e(300)][e(326)](),this[e(313)][e(326)](),this[e(348)][e(326)]()},{priority:t(309)})}[u(368)](){return this[u(345)]}[u(324)](t){const e=u;return this[e(370)][e(340)](e=>e.id===t)||null}[u(353)](){const t=u;return Array[t(334)](this[t(370)])}[u(365)](){return this[u(339)]}[u(277)](t){this[u(339)]=t}[u(278)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(370)][o(367)];i++)this[o(292)](t,i)&&(n=!0);return n}[u(329)](t,e){const o=u,n=t[o(337)](o(275),{});return t[o(274)](n,e),this[o(345)]=n,n}[u(302)](t){const e=u;if(!this[e(370)][e(367)]||this[e(345)])return;const o=this[e(370)][0][e(316)][e(298)],n=this[e(329)](t,o);for(const o of this[e(370)])o[e(369)][e(272)]||t[e(271)](o[e(369)],n,e(349));this[e(278)](t)}[u(362)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(300)][o(276)](e);if(r[o(367)]&&(this[o(345)]=r[0]),i[o(367)])if(i[o(367)]>1||this[o(345)]&&i[o(335)](t=>t!==this[o(345)])){const e=t[o(337)](o(275),{}),s=[];this[o(345)]&&s[o(358)](this[o(345)]),s[o(358)](...i),t[o(271)](e,s[0],o(331));for(const n of s)t[o(338)](t[o(286)](n),t[o(357)](e,o(349))),t[o(306)](n);this[o(345)]=e,this[o(278)](t),n=!0}else this[o(345)]=i[0];if(s[o(367)]&&o(328)===this[o(345)]?.[o(298)][o(297)]){for(const e of this[o(370)])t[o(306)](e[o(316)]),n=!0;this[o(370)]=[],this[o(345)]=null}return n}[u(373)](t,e){const o=u;let n=!1;const i=this[o(310)][o(318)][o(332)](o(320)),{inserted:s,moved:r}=this[o(348)][o(276)](e);for(const e of[...r,...s]){const s=e[o(351)](o(359)),r=this[o(324)](s);r&&(r[o(369)]=e),p(t,i,e)&&(n=!0)}return n}[u(343)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(313)][o(276)](e);for(const e of i)this[o(374)](t,e)&&(n=!0);for(const e of s)this[o(344)](t,e)&&(n=!0);for(const e of r)this[o(342)](t,e)&&(n=!0);return n}[u(317)](t){const e=u;if(!this[e(345)])return!1;let o=!1;if(this[e(345)][e(336)]!==this[e(370)][e(367)]){const n=[];for(const t of this[e(345)][e(305)]()){const i=t[e(351)](e(359));this[e(324)](i)||(n[e(285)](t),o=!0)}for(const o of n)t[e(306)](o)}const n=new Set,i=[];for(const t of this[e(345)][e(305)]()){const s=t[e(351)](e(359));n[e(288)](s)?(i[e(285)](t),o=!0):n[e(273)](s)}for(const o of i)t[e(306)](o);return this[e(345)][e(336)]||(t[e(306)](this[e(345)]),this[e(345)]=null,o=!0),o}[u(344)](t,e){const o=u;if(this[o(370)][o(340)](t=>t[o(316)]===e))return!1;let n=!1;const i=e[o(351)](o(359)),s=this[o(370)][o(290)](t=>t.id===i);-1!==s&&(t[o(306)](this[o(370)][s][o(316)]),this[o(370)][o(333)](s,1),n=!0);let r=this[o(345)]?function(t,e){const n=o;for(const o of t[n(305)]())if(o[n(351)](n(359))===e)return o;return null}(this[o(345)],i):null;r||(r=t[o(337)](o(325),{footnoteId:i}),this[o(345)]&&(t[o(271)](r,this[o(345)],o(349)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(310)][o(322)],this[o(370)],e);this[o(370)][o(333)](c,0,a);let l=c;return-1!==s&&(l=Math[o(330)](c,s)),this[o(278)](t,l)&&(n=!0),n}[u(374)](t,e){const o=u,n=this[o(370)][o(290)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(370)][n];return o(328)!==s[o(369)][o(298)][o(297)]&&(t[o(306)](s[o(369)]),i=!0),this[o(370)][o(333)](n,1),this[o(278)](t,n)&&(i=!0),i}[u(342)](t,e){const o=u,n=e[o(351)](o(359)),i=this[o(370)][o(290)](t=>t.id===n),s=this[o(370)][i];let r=!1;s[o(316)]=e,this[o(370)][o(333)](i,1);const a=m(this[o(310)][o(322)],this[o(370)],e);return this[o(370)][o(333)](a,0,s),this[o(278)](t,Math[o(330)](i,a))&&(r=!0),r}[u(292)](t,e){const o=u;if(!this[o(345)])return!1;const n=this[o(370)][e];let i;return i=this[o(339)]?this[o(339)]({footnote:n,container:this[o(345)],digits:String(this[o(370)][o(367)])[o(367)],value:e+1}):String(e+1),n[o(316)][o(351)](o(327))!=i&&(t[o(308)](o(327),i,n[o(316)]),!0)}[u(350)](t){const e=u;if(!this[e(345)]||this[e(370)][e(367)]<2)return!1;if(function(t,o){const n=e;if(t[n(367)]!==o[n(367)])return!1;for(let e=0;e<t[n(367)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(370)][e(371)](t=>t.id),Array[e(334)](this[e(345)][e(305)]())[e(371)](t=>t[e(351)](e(359)))))return!1;let o=!1;for(let n=0;n<this[e(370)][e(367)];n++){const i=this[e(370)][n],s=t[e(307)](i[e(369)]),r=t[e(357)](this[e(345)],n);s[e(314)](r)||(t[e(338)](t[e(364)](i[e(369)]),r),o=!0)}return o}[u(304)](t){const e=u;if(!this[e(370)][e(367)])return!1;const{model:o}=this[e(310)];let n=!1;for(let i=0;i<this[e(370)][e(367)]-1;i++){const s=this[e(370)][i],r=this[e(370)][i+1],a=o[e(307)](s[e(316)]),c=o[e(307)](r[e(316)]);e(346)===a[e(295)](c)&&(this[e(342)](t,s[e(316)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(336)])return!1;const i=n(e?366:347);return t[n(271)](t[n(337)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(367)])return 0;const i=t[n(307)](o);for(let o=0;o<e[n(367)];o++){const s=e[o],r=t[n(307)](s[n(316)]);if(n(331)===i[n(295)](r))return o}const s=o[n(298)];let r=-1;for(let t=e[n(367)]-1;t>=0;t--)if(e[t][n(316)][n(298)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(291)][n(355)](),c=a[n(312)](s[n(297)]),l=a[c+1];if(l)for(let t=0;t<e[n(367)];t++)if(e[t][n(316)][n(298)][n(297)]===l)return t;return e[n(367)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=492]})(t,e)}const w=g;function y(){const t=["string","isEnabled","2242708KSRruS","FootnotesEditing","1687472zjPWAQ","getItems","203492XnxHus","execute","footnoteId","_moveSelectionToFootnoteDefinition","footnoteRef","888138kFViXO","end","5590179XVniDD","refresh","2842164qkHGkf","5iMisJh","isObject","checkChild","plugins","insertObject","getFirstRange","insert-footnote-command-executed-with-invalid-id","change","document","editor","isBlock","27tzefQl","length","_getPositionToInsertFootnote","createElement","model","21xoYhEm","selection","18145510wUmjKd","test","get"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(466969===-parseInt(e(502))/1+parseInt(e(497))/2*(-parseInt(e(523))/3)+parseInt(e(493))/4+-parseInt(e(507))/5*(parseInt(e(506))/6)+parseInt(e(504))/7+parseInt(e(495))/8*(-parseInt(e(518))/9)+parseInt(e(525))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(505)](){const t=w,e=this[t(516)][t(522)][t(515)][t(524)],o=this[t(520)](e);this[t(492)]=!!o}[w(498)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(515)],r=this[e(520)](s);if(!r)return;const a=o[e(510)][e(527)](e(494)),c=t?.[e(499)]??(0,i.uid)();!function(t){const o=e;return o(528)==typeof t&&t[o(519)]>0&&!/\s/[o(526)](t)&&!/^\d/[o(526)](t)}(c)?(0,i.logWarning)(e(513)):(n[e(514)](t=>{const o=e,i=t[o(521)](o(501),{footnoteId:c});n[o(511)](i,r,null)}),a[e(500)](c))}[w(520)](t){const e=w,{model:o}=this[e(516)],{schema:n}=o,i=t[e(512)]();for(const t of i[e(496)]())if(n[e(517)](t)||n[e(508)](t))return null;const s=i[e(503)];return n[e(509)](s,e(501))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}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:177552e4;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(h).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(h).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 D(t,e){const o=T();return(D=function(t,e){return o[t-=211]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(938735===parseInt(e(241))/1*(parseInt(e(213))/2)+parseInt(e(216))/3+parseInt(e(295))/4*(parseInt(e(244))/5)+parseInt(e(236))/6+parseInt(e(273))/7*(parseInt(e(245))/8)+parseInt(e(266))/9+parseInt(e(278))/10*(-parseInt(e(220))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(239)](){return A(247)}static get[A(268)](){return[v,P.ClipboardPipeline]}static get[A(250)](){return!0}static get[A(223)](){return!0}[A(254)](){this[A(246)]()}[A(246)](){const t=A;this[t(277)](),this[t(276)]()}[A(277)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(214)](P.ClipboardPipeline),s=o[t(214)](h);this[t(257)](i,t(226),(o,i)=>{const r=t,a=V(n[r(215)](i[r(283)]));if(!a[r(258)])return;const c=s[r(231)](),l=a[r(292)]((t,o)=>{const n=r,i=c[n(261)](t=>t.id===o);if(i){const o=e[n(224)][n(218)](i[n(272)],{isClipboardPipeline:!0}),s=e[n(224)][n(212)][n(251)](o);t[i.id]=s}return t},Object[r(293)](null));i[r(265)][r(275)](r(235),JSON[r(242)](l))})}[A(276)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(259)],r=n[t(214)](P.ClipboardPipeline),a=n[t(214)](h),c=e[t(230)][t(214)](t(253));let l=null;this[t(257)](s[t(248)],t(252),(e,o)=>{const n=t,i=o[n(265)][n(232)](n(235));l=i?JSON[n(219)](i):null}),this[t(257)](r,t(233),(n,s)=>{const r=t,u=s[r(260)]===this[r(227)].id;u&&r(240)===s[r(249)]||o[r(222)](t=>{const n=r;let f=a[n(264)]();const d=!!f&&Array[n(221)](o[n(248)][n(270)][n(238)]())[n(286)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(279),e(255)))return!0;return!1}(o[n(215)](s[n(283)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(293)](null);for(const e of i[o(225)]())e.is(o(279),o(284))&&e[o(229)](o(271))&&(s[e[o(228)](o(271))]=t[o(280)](e,!0));return Object[o(269)](s)[o(258)]?s:null}(t,s[n(283)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(215)](e))n.is(o(279),o(217))&&i[o(211)](n);for(const e of i)t[o(285)](e)}(t,s[n(283)]),!l)return;const{selection:h}=o[n(248)],p=h[n(263)]()[n(281)];f&&!d||(f=L(t,s[n(283)]),f||=a[n(262)](t,p));const m=Array[n(221)](h[n(287)]())[n(291)](V),g=function(t,e,o){const s=n,r=Object[s(293)](null);for(const{item:n}of t[s(215)](e))if(n.is(s(279),s(255))){const e=n[s(228)](s(271));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(237)](s(271),r[e],n)}return r}(t,s[n(283)],t=>{const e=n;return!u||!!a[e(256)](t)&&!m[e(286)](t)});for(const[o,i]of Object[n(282)](l)){const s=g[o]||o;let r;if(n(274)!=typeof i)r=i,s!==o&&t[n(237)](n(271),s,r);else{r=t[n(267)](n(284),{footnoteId:s});const o=e[n(224)][n(212)][n(218)](i);let a;if(c)a=e[n(224)][n(290)](o,r);else{a=t[n(267)](n(288));const i=e[n(224)][n(290)](o,a);t[n(243)](i,a)}t[n(234)](a,r)}t[n(243)](r,f,n(289))}l=null})})}}function T(){const t=["footnoteRef","getFootnote","listenTo","length","editing","sourceEditorId","find","_insertEmptyFootnotesDefinitionsContainer","getFirstRange","getFootnotesDefinitionsObjectElement","dataTransfer","11559222zwXwEe","createElement","requires","keys","selection","footnoteId","definition","7200641YFjoCL","string","setData","_handlePasteFootnotesDefinitions","_handleCopyFootnotesDefinitions","63752620TlmIyp","element","cloneElement","root","entries","content","footnoteDefinition","remove","includes","getRanges","footnoteInlineContent","end","toModel","flatMap","reduce","create","add","7736AFQvJu","push","htmlProcessor","4uFAnvn","get","createRangeIn","4936170YRDXct","footnotesDefinitions","toView","parse","11lgMwHt","from","change","isPremiumPlugin","data","getChildren","outputTransformation","editor","getAttribute","hasAttribute","config","getFootnotes","getData","contentInsertion","append","application/ckeditor5-footnotes","9139620LLIUgd","setAttribute","getSelectedBlocks","pluginName","drop","832029nnbbZr","stringify","insert","435pdnwJa","8LoEizs","_defineClipboardIntegration","FootnotesClipboard","document","method","isOfficialPlugin","toData","clipboardInput","footnotes.multiBlock","init"];return(T=function(){return t})()}function L(t,e){const o=A;for(const{item:n}of t[o(215)](e))if(n.is(o(279),o(217)))return n;return null}function V(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(279),e(255))&&o[e(294)](n[e(228)](e(271)));return Array[e(221)](o)}var R=o(311),O=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),W=o.n(z),H=o(741),X=o.n(H),J=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=W(),Q.insert=U().bind(null,"head"),Q.domAPI=M(),Q.insertStyleElement=X();K()(J.A,Q);J.A&&J.A.locals&&J.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,R.ButtonView)),e.add("menuBar:insertFootnote",G(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=397]})(t,e)}function $(){var t=["isOfficialPlugin","8hDNGsk","646180ikMaoP","isPremiumPlugin","6EumeDz","180858VIdvUb","requires","93577UJjfuP","1749013owBifU","123976YilMSQ","727JevgGf","594QwZZxF","Footnotes","pluginName","228wXiUWA","9GYpPOe","1718890AKztVx"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(125423===parseInt(e(406))/1*(parseInt(e(407))/2)+parseInt(e(401))/3*(-parseInt(e(397))/4)+-parseInt(e(398))/5*(-parseInt(e(400))/6)+parseInt(e(404))/7+-parseInt(e(405))/8+parseInt(e(411))/9*(-parseInt(e(412))/10)+parseInt(e(403))/11*(-parseInt(e(410))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(409)](){return Y(408)}static get[Y(402)](){return[v,_,q]}static get[Y(413)](){return!0}static get[Y(399)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=108]})(t,e)}function nt(){const t=["upper-alpha","9516JxvEUP","lower-alpha","15472AfwmKQ","decimal-leading-zero","1085SOvgSJ","2128836fEtaZb","6813cPRapD","488252JIuyqV","lower-latin","340704tZBDlC","upper-roman","upper-latin","6247017Xlnsoo","514544wlfWng","decimal","lower-roman"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(448922===parseInt(e(109))/1+parseInt(e(115))/2+parseInt(e(111))/3+-parseInt(e(119))/4*(-parseInt(e(123))/5)+-parseInt(e(124))/6+parseInt(e(114))/7+-parseInt(e(121))/8*(parseInt(e(108))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(116),et(122),et(110),et(113),et(120),et(118),et(117),et(112)];function st(t,e){const o=rt();return(st=function(t,e){return o[t-=206]})(t,e)}function rt(){const t=["getAttribute","isEnabled","model","get","121420snITQn","718464RzUGKh","getFootnotesDefinitionsObjectElement","3579mRRaXk","1344590tnCOaC","change","82XhdFIs","footnotesListStyle","refresh","20axRaJM","_updateFootnotesCounters","includes","147456PGqyJq","execute","615654GBgPhR","value","7XsxoIe","204658KtXokQ","plugins","setAttribute"];return(rt=function(){return t})()}const at=st;!function(t){const e=st,o=t();for(;;)try{if(103308===-parseInt(e(226))/1+parseInt(e(215))/2*(parseInt(e(212))/3)+-parseInt(e(218))/4*(-parseInt(e(209))/5)+parseInt(e(221))/6+parseInt(e(225))/7*(-parseInt(e(210))/8)+parseInt(e(223))/9+parseInt(e(213))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[at(217)](){const t=at,{editor:e}=this,o=e[t(227)][t(208)](h)[t(211)]();this[t(206)]=!!o,this[t(224)]=o?.[t(229)](t(216))??null}[at(222)]({value:t}){const e=at,{editor:o}=this,n=o[e(227)][e(208)](h),i=n[e(211)]();i&&it[e(220)](t)&&o[e(207)][e(214)](o=>{const s=e;o[s(228)](s(216),t,i),n[s(219)](o)})}}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=223]})(t,e)}function ft(){const t=["get","8ifBsxR","6GhMJXN","model","155026boCNVd","refresh","plugins","getAttribute","getFootnotesDefinitionsObjectElement","32TYNWjO","execute","1177MGHygB","_updateFootnotesCounters","2423334PEWSdQ","24747KfCHRv","setAttribute","change","5540950OzQpkw","2152367QvITur","12571632BUVUid","footnotesListStart","value","178390UtjvRD","isInteger","isEnabled"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(936947===parseInt(e(239))/1+-parseInt(e(223))/2+parseInt(e(224))/3*(parseInt(e(244))/4)+parseInt(e(227))/5+parseInt(e(237))/6*(parseInt(e(228))/7)+parseInt(e(236))/8*(-parseInt(e(229))/9)+-parseInt(e(232))/10*(-parseInt(e(246))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(240)](){const t=lt,{editor:e}=this,o=e[t(241)][t(235)](h)[t(243)]();this[t(234)]=!!o,this[t(231)]=o?.[t(242)](t(230))??null}[lt(245)]({value:t}){const e=lt,{editor:o}=this,n=o[e(241)][e(235)](h),i=n[e(243)]();i&&Number[e(233)](t)&&o[e(238)][e(226)](o=>{const s=e;o[s(225)](s(230),t,i),n[s(247)](o)})}}const ht=pt;function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=384]})(t,e)}function mt(){const t=["upcast","pluginName","insert","2YbQIZo","init","removeAttribute","setAttribute","2126916Fdkevz","parseInt","footnotes.footnotesProperties.defaultListStyle","isNaN","120bvdYYs","hasClass","isOfficialPlugin","decimal","decimal-leading-zero","checkAttribute","getChildren","hasAttribute","footnotes-list","commands","fromCharCode","upper-roman","_getDefaultStartIndex","define","_defineSchema","44065QvmVlB","isPremiumPlugin","lower-latin","4981188DaeVGJ","9nEYvdL","nodeAfter","_getDefaultListStyle","document","_updateFootnotesCounters","_defineFormatter","createRangeOn","element","from","editor","name","toLowerCase","$text","element:ol","removeStyle","start","parent","14951770KsCteB","differ","consumable","getStyle","writer","209DFtymU","lower-alpha","toViewElement","3898540mqqBDu","plugins","4WPKGrb","registerPostFixer","footnotesStart","87814fNfpRi","upper-alpha","upper-latin","list-style-type","model","find","attribute:footnotesListStart:footnotesDefinitions","item","getChanges","_defineConverters","add","get","modelCursor","footnotesStyle","2894109PlcUik","getAttribute","mapper","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","for","getItems","type","downcast","toUpperCase","consume","schema","viewItem","padStart","_definePostfixer","extend","footnotesDefinitions","floor","lower-roman","config","setStyle","FootnotesPropertiesEditing","position","_formatFootnoteListValue","requires","max","setFootnoteFormatter","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStyle"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(775988===-parseInt(e(461))/1+parseInt(e(404))/2*(-parseInt(e(475))/3)+-parseInt(e(458))/4*(parseInt(e(456))/5)+parseInt(e(430))/6+-parseInt(e(427))/7*(parseInt(e(412))/8)+parseInt(e(431))/9*(-parseInt(e(448))/10)+parseInt(e(453))/11*(parseInt(e(408))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(402)](){return ht(393)}static get[ht(396)](){return[v,h]}static get[ht(414)](){return!0}static get[ht(428)](){return!0}[ht(405)](){const t=ht,{editor:e}=this;e[t(391)][t(425)](t(410),t(415)),e[t(391)][t(425)](t(478),1),e[t(421)][t(471)](t(474),new ct(e)),e[t(421)][t(471)](t(460),new dt(e)),this[t(426)](),this[t(470)](),this[t(436)](),this[t(386)]()}[ht(426)](){const t=ht,{editor:e}=this,{schema:o}=e[t(465)];o[t(387)](t(388),{allowAttributes:[t(400),t(479)]})}[ht(470)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(480)](t(401))[t(471)](e=>{const o=t;e.on(o(444),(t,e,n)=>{const s=o,r=e[s(384)],a=e[s(473)]?.[s(447)];r[s(413)](s(420))&&a?.is(s(438),s(388))&&(function(t,e,o,n){const i=s;if(!n[i(417)](e,i(479)))return;let r=1;const a=o[i(450)][i(485)](t,{attributes:i(446)});if(a){const e=Number[i(409)](t[i(476)](i(446)),10);Number[i(411)](e)||(r=e)}!a&&e[i(419)](i(479))||o[i(452)][i(407)](i(479),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(417)](e,i(400)))return;let r=i(415),a=!1;if(o[i(450)][i(485)](t,{attributes:i(482)})){const e={1:i(415),a:i(454),A:i(462),i:i(390),I:i(423)}[t[i(476)](i(482))];e&&(r=e),a=!0}o[i(450)][i(485)](t,{styles:i(464)})&&(r=function(t){const e=i;switch(t){case e(454):return e(429);case e(462):return e(463);default:return t}}(t[i(451)](i(464))),a=!0),!a&&e[i(419)](i(400))||o[i(452)][i(407)](i(400),r,e)}(r,a,n,i))})}),o[t(480)](t(483))[t(471)](e=>{const o=t;e.on(o(467),(t,e,n)=>{const i=o;if(!n[i(450)][i(485)](e[i(468)],t[i(441)]))return;const s=wt(e[i(468)],n[i(477)]),{attributeNewValue:r}=e;null==r||1===r?n[i(452)][i(406)](i(446),s):n[i(452)][i(407)](i(446),String(r),s)}),e.on(o(399),(t,e,n)=>{const i=o;if(!n[i(450)][i(485)](e[i(468)],t[i(441)]))return;const s=wt(e[i(468)],n[i(477)]),{attributeNewValue:r}=e;r&&i(415)!==r?n[i(452)][i(392)](i(464),r,s):n[i(452)][i(445)](i(464),s)})})}[ht(386)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(457)][t(472)](h),i=this[t(433)](),s=this[t(424)]();o[t(434)][t(459)](e=>{const r=t,a=o[r(434)][r(449)][r(469)]();let c=!1;for(const t of a){if(r(403)!==t[r(482)]||r(443)===t[r(441)])continue;const n=o[r(437)](t[r(394)][r(432)]);for(const t of n[r(481)]())t.is(r(438),r(388))&&(!t[r(419)](r(479))&&o[r(486)][r(417)](t,r(479))&&(e[r(407)](r(479),s,t),c=!0),!t[r(419)](r(400))&&o[r(486)][r(417)](t,r(400))&&(e[r(407)](r(400),i,t),c=!0))}return c&&n[r(435)](e),c})}[ht(436)](){const t=ht,{editor:e}=this;e[t(457)][t(472)](h)[t(398)](e=>this[t(395)](e))}[ht(433)](){const t=ht;return this[t(440)][t(391)][t(472)](t(410))}[ht(424)](){const t=ht;return this[t(440)][t(391)][t(472)](t(478))}[ht(395)]({container:t,value:e,digits:o}){const n=ht,i=t[n(476)](n(400)),s=t[n(476)](n(479)),r=Math[n(389)](e)+(s??1)-1;switch(i){case n(416):return function(t,e){const o=n;return String(t)[o(385)](e,"0")}(r,Math[n(397)](2,o));case n(454):case n(429):return yt(r,!1);case n(462):case n(463):return yt(r,!0);case n(390):return vt(r,!1);case n(423):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(455)](t);return Array[o(439)](n[o(418)]())[o(466)](t=>t.is(o(438),"ol")&&t[o(413)](o(420)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(422)](97+t)+n,i=Math[o(389)]((i-1)/26)}return e?n[o(484)]():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(442)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=X();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(){var t=["isPremiumPlugin","5472594KQNuaz","851662iMNQMb","319707eIMAOn","pluginName","276540bBVLJS","110bvCmaw","7jOomFL","isOfficialPlugin","2566473NAKkxj","23090400ISzXdX","112RZxrdK","requires","FootnotesProperties","338576kRRcbj"];return(xt=function(){return t})()}var Et=St;function St(t,e){var o=xt();return(St=function(t,e){return o[t-=411]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(786810===parseInt(e(417))/1+parseInt(e(414))/2+-parseInt(e(424))/3+-parseInt(e(420))/4*(-parseInt(e(421))/5)+parseInt(e(416))/6*(parseInt(e(422))/7)+parseInt(e(411))/8*(parseInt(e(418))/9)+-parseInt(e(425))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Et(419)](){return Et(413)}static get[Et(412)](){return[gt,Ft]}static get[Et(423)](){return!0}static get[Et(415)](){return!0}}function At(){var t=["21976aeMhSe","745XnyuVU","18188203FawEmH","6aRkphn","38elfKlV","4473ESxWmC","1154363jlDMvh","845341UNzUuT","295794rdTwUQ","20zmpyIc","8588744QZJhyu"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=477]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(700813===parseInt(e(483))/1+parseInt(e(481))/2*(-parseInt(e(482))/3)+-parseInt(e(477))/4*(parseInt(e(478))/5)+parseInt(e(480))/6*(-parseInt(e(484))/7)+-parseInt(e(487))/8+parseInt(e(485))/9*(-parseInt(e(486))/10)+parseInt(e(479))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=a();return(r=function(t,e){return o[t-=370]})(t,e)}function a(){const t=["3PSOicY","_model","delete","root","attributes","getChanges","717979CXFwMc","4744GnnhZi","777TEbAuH","getItems","4007277CwanjO","length","type","rootName","insert","elementName","$graveyard","reset","clear","add","slice","nodeAfter","name","3048400yIdgjC","4092268knULNH","values","get","_getElementKey","_trackedElements","createRangeOn","remove","6viExUB","position","2804992wxoFIC","push","from","set","19361680AvSjGn","element","$text","_elementName","flat","has","getElementKey"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(740156===-parseInt(e(389))/1+-parseInt(e(372))/2+parseInt(e(383))/3*(parseInt(e(407))/4)+parseInt(e(406))/5*(-parseInt(e(370))/6)+parseInt(e(391))/7*(parseInt(e(390))/8)+parseInt(e(393))/9+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(384)];[c(379)];[c(410)];[c(411)]=new Map;constructor(t,e){const o=c;this[o(384)]=t,this[o(379)]=e[o(398)],this[o(410)]=e[o(382)]}[c(400)](){const t=c;this[t(411)][t(401)]()}[c(388)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(397)===i[e(395)]&&e(378)!==i[e(405)]&&i[e(371)][e(404)]){const t=this[e(384)][e(412)](i[e(371)][e(404)]);for(const o of t[e(392)]()){if(!o.is(e(377),this[e(379)]))continue;const t=this[e(410)](o);n[e(381)](t)||n[e(375)](t,[]),n[e(409)](t)[e(373)](o)}}if(e(413)===i[e(395)]&&i[e(405)]===this[e(379)]){const t=this[e(410)]({getAttribute:t=>i[e(387)][e(409)](t)});o[e(402)](t)}}for(const[t,n]of this[e(411)])e(399)===n[e(386)][e(396)]&&o[e(402)](t);for(const t of o)this[e(411)][e(385)](t);for(const[t,o]of n)this[e(411)][e(375)](t,o[o[e(394)]-1]);const i=new Set;for(const[t,s]of n)o[e(381)](t)&&(i[e(402)](s[0]),s[e(394)]>1?n[e(375)](t,s[e(403)](1)):n[e(385)](t),o[e(385)](t));return{removed:Array[e(374)](o),inserted:Array[e(374)](n[e(408)]())[e(380)](),moved:Array[e(374)](i)}}}const u=d;function f(){const t=["_footnoteDefsTracker","end","_sortFootnoteDefinitions","getAttribute","registerPostFixer","getFootnotes","47021nAESuo","getRootNames","init","createPositionAt","push","footnoteId","375330QNUtfL","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","low","createRangeOn","getFootnotesFormatter","paragraph","length","getFootnotesDefinitionsObjectElement","definition","_footnotes","map","change:data","_handleFootnoteDefinitionsChanges","_handleRemoveFootnoteReferenceById","insert","parent","add","append","footnotesDefinitions","getChanges","setFootnoteFormatter","_updateFootnotesCounters","isPremiumPlugin","631694hRZrYB","pluginName","enqueueChange","405HxLBUf","120wPKkRH","unshift","createRangeIn","set","has","isOfficialPlugin","findIndex","document","_updateFootnoteRefCounter","differ","363eYiHUY","compareWith","listenTo","rootName","root","262047pWGYqn","_footnoteDefsContainerTracker","4bqtIoR","_ensureFootnotesDefinitionsContainerExists","23196MuoJDM","_ensureFootnotesReferencesHaveProperOrder","getChildren","remove","createPositionBefore","setAttribute","high","editor","singleton","indexOf","_footnoteRefsTracker","isEqual","24uqsyFB","reference","_handleFootnotesDefinitionsObjectSync","config","666CjKtSs","footnotes.multiBlock","1552149QuwOji","model","footnoteRef","getFootnote","footnoteDefinition","reset","footnoteCounter","$graveyard","_insertEmptyFootnotesDefinitionsContainer","min","before","get","splice","from","some","childCount","createElement","move","_footnoteFormatter","find","106232WrJEgw","_handleMovedFootnoteReference","_handleFootnoteReferencesChanges","_handleInsertedFootnoteReference","_footnotesDefinitions","after","footnoteInlineContent"];return(f=function(){return t})()}function d(t,e){const o=f();return(d=function(t,e){return o[t-=271]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(640613===-parseInt(e(299))/1*(-parseInt(e(301))/2)+parseInt(e(321))/3+-parseInt(e(303))/4*(parseInt(e(283))/5)+parseInt(e(315))/6*(parseInt(e(280))/7)+-parseInt(e(341))/8*(-parseInt(e(319))/9)+parseInt(e(360))/10*(-parseInt(e(294))/11)+parseInt(e(284))/12*(-parseInt(e(354))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class h extends t.Plugin{[u(370)]=[];[u(345)]=null;[u(339)]=null;[u(300)];[u(313)];[u(348)];static get[u(281)](){return u(361)}static get[u(289)](){return!0}static get[u(279)](){return!0}constructor(t){const e=u;super(t),this[e(300)]=new l(this[e(310)][e(322)],{elementName:e(275),getElementKey:()=>e(311)}),this[e(313)]=new l(this[e(310)][e(322)],{elementName:e(323),getElementKey:t=>t[e(351)](e(359))}),this[e(348)]=new l(this[e(310)][e(322)],{elementName:e(325),getElementKey:t=>t[e(351)](e(359))})}[u(356)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(291)][t(352)](e=>{const n=t,i=o[n(291)][n(293)][n(276)]();let s=!1;return this[n(362)](e,i)&&(s=!0),this[n(373)](e,i)&&(s=!0),this[n(343)](e,i)&&(s=!0),this[n(304)](e)&&(s=!0),this[n(317)](e)&&(s=!0),this[n(350)](e)&&(s=!0),s}),this[t(296)](o[t(291)],t(372),()=>{const e=t;o[e(282)]({isUndoable:!1},t=>{this[e(302)](t)})},{priority:t(363)}),this[t(296)](n,t(287),()=>{const e=t;this[e(370)]=[],this[e(300)][e(326)](),this[e(313)][e(326)](),this[e(348)][e(326)]()},{priority:t(309)})}[u(368)](){return this[u(345)]}[u(324)](t){const e=u;return this[e(370)][e(340)](e=>e.id===t)||null}[u(353)](){const t=u;return Array[t(334)](this[t(370)])}[u(365)](){return this[u(339)]}[u(277)](t){this[u(339)]=t}[u(278)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(370)][o(367)];i++)this[o(292)](t,i)&&(n=!0);return n}[u(329)](t,e){const o=u,n=t[o(337)](o(275),{});return t[o(274)](n,e),this[o(345)]=n,n}[u(302)](t){const e=u;if(!this[e(370)][e(367)]||this[e(345)])return;const o=this[e(370)][0][e(316)][e(298)],n=this[e(329)](t,o);for(const o of this[e(370)])o[e(369)][e(272)]||t[e(271)](o[e(369)],n,e(349));this[e(278)](t)}[u(362)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(300)][o(276)](e);if(r[o(367)]&&(this[o(345)]=r[0]),i[o(367)])if(i[o(367)]>1||this[o(345)]&&i[o(335)](t=>t!==this[o(345)])){const e=t[o(337)](o(275),{}),s=[];this[o(345)]&&s[o(358)](this[o(345)]),s[o(358)](...i),t[o(271)](e,s[0],o(331));for(const n of s)t[o(338)](t[o(286)](n),t[o(357)](e,o(349))),t[o(306)](n);this[o(345)]=e,this[o(278)](t),n=!0}else this[o(345)]=i[0];if(s[o(367)]&&o(328)===this[o(345)]?.[o(298)][o(297)]){for(const e of this[o(370)])t[o(306)](e[o(316)]),n=!0;this[o(370)]=[],this[o(345)]=null}return n}[u(373)](t,e){const o=u;let n=!1;const i=this[o(310)][o(318)][o(332)](o(320)),{inserted:s,moved:r}=this[o(348)][o(276)](e);for(const e of[...r,...s]){const s=e[o(351)](o(359)),r=this[o(324)](s);r&&(r[o(369)]=e),p(t,i,e)&&(n=!0)}return n}[u(343)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(313)][o(276)](e);for(const e of i)this[o(374)](t,e)&&(n=!0);for(const e of s)this[o(344)](t,e)&&(n=!0);for(const e of r)this[o(342)](t,e)&&(n=!0);return n}[u(317)](t){const e=u;if(!this[e(345)])return!1;let o=!1;if(this[e(345)][e(336)]!==this[e(370)][e(367)]){const n=[];for(const t of this[e(345)][e(305)]()){const i=t[e(351)](e(359));this[e(324)](i)||(n[e(285)](t),o=!0)}for(const o of n)t[e(306)](o)}const n=new Set,i=[];for(const t of this[e(345)][e(305)]()){const s=t[e(351)](e(359));n[e(288)](s)?(i[e(285)](t),o=!0):n[e(273)](s)}for(const o of i)t[e(306)](o);return this[e(345)][e(336)]||(t[e(306)](this[e(345)]),this[e(345)]=null,o=!0),o}[u(344)](t,e){const o=u;if(this[o(370)][o(340)](t=>t[o(316)]===e))return!1;let n=!1;const i=e[o(351)](o(359)),s=this[o(370)][o(290)](t=>t.id===i);-1!==s&&(t[o(306)](this[o(370)][s][o(316)]),this[o(370)][o(333)](s,1),n=!0);let r=this[o(345)]?function(t,e){const n=o;for(const o of t[n(305)]())if(o[n(351)](n(359))===e)return o;return null}(this[o(345)],i):null;r||(r=t[o(337)](o(325),{footnoteId:i}),this[o(345)]&&(t[o(271)](r,this[o(345)],o(349)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(310)][o(322)],this[o(370)],e);this[o(370)][o(333)](c,0,a);let l=c;return-1!==s&&(l=Math[o(330)](c,s)),this[o(278)](t,l)&&(n=!0),n}[u(374)](t,e){const o=u,n=this[o(370)][o(290)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(370)][n];return o(328)!==s[o(369)][o(298)][o(297)]&&(t[o(306)](s[o(369)]),i=!0),this[o(370)][o(333)](n,1),this[o(278)](t,n)&&(i=!0),i}[u(342)](t,e){const o=u,n=e[o(351)](o(359)),i=this[o(370)][o(290)](t=>t.id===n),s=this[o(370)][i];let r=!1;s[o(316)]=e,this[o(370)][o(333)](i,1);const a=m(this[o(310)][o(322)],this[o(370)],e);return this[o(370)][o(333)](a,0,s),this[o(278)](t,Math[o(330)](i,a))&&(r=!0),r}[u(292)](t,e){const o=u;if(!this[o(345)])return!1;const n=this[o(370)][e];let i;return i=this[o(339)]?this[o(339)]({footnote:n,container:this[o(345)],digits:String(this[o(370)][o(367)])[o(367)],value:e+1}):String(e+1),n[o(316)][o(351)](o(327))!=i&&(t[o(308)](o(327),i,n[o(316)]),!0)}[u(350)](t){const e=u;if(!this[e(345)]||this[e(370)][e(367)]<2)return!1;if(function(t,o){const n=e;if(t[n(367)]!==o[n(367)])return!1;for(let e=0;e<t[n(367)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(370)][e(371)](t=>t.id),Array[e(334)](this[e(345)][e(305)]())[e(371)](t=>t[e(351)](e(359)))))return!1;let o=!1;for(let n=0;n<this[e(370)][e(367)];n++){const i=this[e(370)][n],s=t[e(307)](i[e(369)]),r=t[e(357)](this[e(345)],n);s[e(314)](r)||(t[e(338)](t[e(364)](i[e(369)]),r),o=!0)}return o}[u(304)](t){const e=u;if(!this[e(370)][e(367)])return!1;const{model:o}=this[e(310)];let n=!1;for(let i=0;i<this[e(370)][e(367)]-1;i++){const s=this[e(370)][i],r=this[e(370)][i+1],a=o[e(307)](s[e(316)]),c=o[e(307)](r[e(316)]);e(346)===a[e(295)](c)&&(this[e(342)](t,s[e(316)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(336)])return!1;const i=n(e?366:347);return t[n(271)](t[n(337)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(367)])return 0;const i=t[n(307)](o);for(let o=0;o<e[n(367)];o++){const s=e[o],r=t[n(307)](s[n(316)]);if(n(331)===i[n(295)](r))return o}const s=o[n(298)];let r=-1;for(let t=e[n(367)]-1;t>=0;t--)if(e[t][n(316)][n(298)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(291)][n(355)](),c=a[n(312)](s[n(297)]),l=a[c+1];if(l)for(let t=0;t<e[n(367)];t++)if(e[t][n(316)][n(298)][n(297)]===l)return t;return e[n(367)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=492]})(t,e)}const w=g;function y(){const t=["string","isEnabled","2242708KSRruS","FootnotesEditing","1687472zjPWAQ","getItems","203492XnxHus","execute","footnoteId","_moveSelectionToFootnoteDefinition","footnoteRef","888138kFViXO","end","5590179XVniDD","refresh","2842164qkHGkf","5iMisJh","isObject","checkChild","plugins","insertObject","getFirstRange","insert-footnote-command-executed-with-invalid-id","change","document","editor","isBlock","27tzefQl","length","_getPositionToInsertFootnote","createElement","model","21xoYhEm","selection","18145510wUmjKd","test","get"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(466969===-parseInt(e(502))/1+parseInt(e(497))/2*(-parseInt(e(523))/3)+parseInt(e(493))/4+-parseInt(e(507))/5*(parseInt(e(506))/6)+parseInt(e(504))/7+parseInt(e(495))/8*(-parseInt(e(518))/9)+parseInt(e(525))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(505)](){const t=w,e=this[t(516)][t(522)][t(515)][t(524)],o=this[t(520)](e);this[t(492)]=!!o}[w(498)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(515)],r=this[e(520)](s);if(!r)return;const a=o[e(510)][e(527)](e(494)),c=t?.[e(499)]??(0,i.uid)();!function(t){const o=e;return o(528)==typeof t&&t[o(519)]>0&&!/\s/[o(526)](t)&&!/^\d/[o(526)](t)}(c)?(0,i.logWarning)(e(513)):(n[e(514)](t=>{const o=e,i=t[o(521)](o(501),{footnoteId:c});n[o(511)](i,r,null)}),a[e(500)](c))}[w(520)](t){const e=w,{model:o}=this[e(516)],{schema:n}=o,i=t[e(512)]();for(const t of i[e(496)]())if(n[e(517)](t)||n[e(508)](t))return null;const s=i[e(503)];return n[e(509)](s,e(501))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}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:1775606400;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(h).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(h).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 D(t,e){const o=T();return(D=function(t,e){return o[t-=211]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(938735===parseInt(e(241))/1*(parseInt(e(213))/2)+parseInt(e(216))/3+parseInt(e(295))/4*(parseInt(e(244))/5)+parseInt(e(236))/6+parseInt(e(273))/7*(parseInt(e(245))/8)+parseInt(e(266))/9+parseInt(e(278))/10*(-parseInt(e(220))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(239)](){return A(247)}static get[A(268)](){return[v,P.ClipboardPipeline]}static get[A(250)](){return!0}static get[A(223)](){return!0}[A(254)](){this[A(246)]()}[A(246)](){const t=A;this[t(277)](),this[t(276)]()}[A(277)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(214)](P.ClipboardPipeline),s=o[t(214)](h);this[t(257)](i,t(226),(o,i)=>{const r=t,a=V(n[r(215)](i[r(283)]));if(!a[r(258)])return;const c=s[r(231)](),l=a[r(292)]((t,o)=>{const n=r,i=c[n(261)](t=>t.id===o);if(i){const o=e[n(224)][n(218)](i[n(272)],{isClipboardPipeline:!0}),s=e[n(224)][n(212)][n(251)](o);t[i.id]=s}return t},Object[r(293)](null));i[r(265)][r(275)](r(235),JSON[r(242)](l))})}[A(276)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(259)],r=n[t(214)](P.ClipboardPipeline),a=n[t(214)](h),c=e[t(230)][t(214)](t(253));let l=null;this[t(257)](s[t(248)],t(252),(e,o)=>{const n=t,i=o[n(265)][n(232)](n(235));l=i?JSON[n(219)](i):null}),this[t(257)](r,t(233),(n,s)=>{const r=t,u=s[r(260)]===this[r(227)].id;u&&r(240)===s[r(249)]||o[r(222)](t=>{const n=r;let f=a[n(264)]();const d=!!f&&Array[n(221)](o[n(248)][n(270)][n(238)]())[n(286)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(279),e(255)))return!0;return!1}(o[n(215)](s[n(283)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(293)](null);for(const e of i[o(225)]())e.is(o(279),o(284))&&e[o(229)](o(271))&&(s[e[o(228)](o(271))]=t[o(280)](e,!0));return Object[o(269)](s)[o(258)]?s:null}(t,s[n(283)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(215)](e))n.is(o(279),o(217))&&i[o(211)](n);for(const e of i)t[o(285)](e)}(t,s[n(283)]),!l)return;const{selection:h}=o[n(248)],p=h[n(263)]()[n(281)];f&&!d||(f=L(t,s[n(283)]),f||=a[n(262)](t,p));const m=Array[n(221)](h[n(287)]())[n(291)](V),g=function(t,e,o){const s=n,r=Object[s(293)](null);for(const{item:n}of t[s(215)](e))if(n.is(s(279),s(255))){const e=n[s(228)](s(271));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(237)](s(271),r[e],n)}return r}(t,s[n(283)],t=>{const e=n;return!u||!!a[e(256)](t)&&!m[e(286)](t)});for(const[o,i]of Object[n(282)](l)){const s=g[o]||o;let r;if(n(274)!=typeof i)r=i,s!==o&&t[n(237)](n(271),s,r);else{r=t[n(267)](n(284),{footnoteId:s});const o=e[n(224)][n(212)][n(218)](i);let a;if(c)a=e[n(224)][n(290)](o,r);else{a=t[n(267)](n(288));const i=e[n(224)][n(290)](o,a);t[n(243)](i,a)}t[n(234)](a,r)}t[n(243)](r,f,n(289))}l=null})})}}function T(){const t=["footnoteRef","getFootnote","listenTo","length","editing","sourceEditorId","find","_insertEmptyFootnotesDefinitionsContainer","getFirstRange","getFootnotesDefinitionsObjectElement","dataTransfer","11559222zwXwEe","createElement","requires","keys","selection","footnoteId","definition","7200641YFjoCL","string","setData","_handlePasteFootnotesDefinitions","_handleCopyFootnotesDefinitions","63752620TlmIyp","element","cloneElement","root","entries","content","footnoteDefinition","remove","includes","getRanges","footnoteInlineContent","end","toModel","flatMap","reduce","create","add","7736AFQvJu","push","htmlProcessor","4uFAnvn","get","createRangeIn","4936170YRDXct","footnotesDefinitions","toView","parse","11lgMwHt","from","change","isPremiumPlugin","data","getChildren","outputTransformation","editor","getAttribute","hasAttribute","config","getFootnotes","getData","contentInsertion","append","application/ckeditor5-footnotes","9139620LLIUgd","setAttribute","getSelectedBlocks","pluginName","drop","832029nnbbZr","stringify","insert","435pdnwJa","8LoEizs","_defineClipboardIntegration","FootnotesClipboard","document","method","isOfficialPlugin","toData","clipboardInput","footnotes.multiBlock","init"];return(T=function(){return t})()}function L(t,e){const o=A;for(const{item:n}of t[o(215)](e))if(n.is(o(279),o(217)))return n;return null}function V(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(279),e(255))&&o[e(294)](n[e(228)](e(271)));return Array[e(221)](o)}var R=o(311),O=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),W=o.n(z),H=o(741),X=o.n(H),J=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=W(),Q.insert=U().bind(null,"head"),Q.domAPI=M(),Q.insertStyleElement=X();K()(J.A,Q);J.A&&J.A.locals&&J.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,R.ButtonView)),e.add("menuBar:insertFootnote",G(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=397]})(t,e)}function $(){var t=["isOfficialPlugin","8hDNGsk","646180ikMaoP","isPremiumPlugin","6EumeDz","180858VIdvUb","requires","93577UJjfuP","1749013owBifU","123976YilMSQ","727JevgGf","594QwZZxF","Footnotes","pluginName","228wXiUWA","9GYpPOe","1718890AKztVx"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(125423===parseInt(e(406))/1*(parseInt(e(407))/2)+parseInt(e(401))/3*(-parseInt(e(397))/4)+-parseInt(e(398))/5*(-parseInt(e(400))/6)+parseInt(e(404))/7+-parseInt(e(405))/8+parseInt(e(411))/9*(-parseInt(e(412))/10)+parseInt(e(403))/11*(-parseInt(e(410))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(409)](){return Y(408)}static get[Y(402)](){return[v,_,q]}static get[Y(413)](){return!0}static get[Y(399)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=108]})(t,e)}function nt(){const t=["upper-alpha","9516JxvEUP","lower-alpha","15472AfwmKQ","decimal-leading-zero","1085SOvgSJ","2128836fEtaZb","6813cPRapD","488252JIuyqV","lower-latin","340704tZBDlC","upper-roman","upper-latin","6247017Xlnsoo","514544wlfWng","decimal","lower-roman"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(448922===parseInt(e(109))/1+parseInt(e(115))/2+parseInt(e(111))/3+-parseInt(e(119))/4*(-parseInt(e(123))/5)+-parseInt(e(124))/6+parseInt(e(114))/7+-parseInt(e(121))/8*(parseInt(e(108))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(116),et(122),et(110),et(113),et(120),et(118),et(117),et(112)];function st(t,e){const o=rt();return(st=function(t,e){return o[t-=206]})(t,e)}function rt(){const t=["getAttribute","isEnabled","model","get","121420snITQn","718464RzUGKh","getFootnotesDefinitionsObjectElement","3579mRRaXk","1344590tnCOaC","change","82XhdFIs","footnotesListStyle","refresh","20axRaJM","_updateFootnotesCounters","includes","147456PGqyJq","execute","615654GBgPhR","value","7XsxoIe","204658KtXokQ","plugins","setAttribute"];return(rt=function(){return t})()}const at=st;!function(t){const e=st,o=t();for(;;)try{if(103308===-parseInt(e(226))/1+parseInt(e(215))/2*(parseInt(e(212))/3)+-parseInt(e(218))/4*(-parseInt(e(209))/5)+parseInt(e(221))/6+parseInt(e(225))/7*(-parseInt(e(210))/8)+parseInt(e(223))/9+parseInt(e(213))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[at(217)](){const t=at,{editor:e}=this,o=e[t(227)][t(208)](h)[t(211)]();this[t(206)]=!!o,this[t(224)]=o?.[t(229)](t(216))??null}[at(222)]({value:t}){const e=at,{editor:o}=this,n=o[e(227)][e(208)](h),i=n[e(211)]();i&&it[e(220)](t)&&o[e(207)][e(214)](o=>{const s=e;o[s(228)](s(216),t,i),n[s(219)](o)})}}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=223]})(t,e)}function ft(){const t=["get","8ifBsxR","6GhMJXN","model","155026boCNVd","refresh","plugins","getAttribute","getFootnotesDefinitionsObjectElement","32TYNWjO","execute","1177MGHygB","_updateFootnotesCounters","2423334PEWSdQ","24747KfCHRv","setAttribute","change","5540950OzQpkw","2152367QvITur","12571632BUVUid","footnotesListStart","value","178390UtjvRD","isInteger","isEnabled"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(936947===parseInt(e(239))/1+-parseInt(e(223))/2+parseInt(e(224))/3*(parseInt(e(244))/4)+parseInt(e(227))/5+parseInt(e(237))/6*(parseInt(e(228))/7)+parseInt(e(236))/8*(-parseInt(e(229))/9)+-parseInt(e(232))/10*(-parseInt(e(246))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(240)](){const t=lt,{editor:e}=this,o=e[t(241)][t(235)](h)[t(243)]();this[t(234)]=!!o,this[t(231)]=o?.[t(242)](t(230))??null}[lt(245)]({value:t}){const e=lt,{editor:o}=this,n=o[e(241)][e(235)](h),i=n[e(243)]();i&&Number[e(233)](t)&&o[e(238)][e(226)](o=>{const s=e;o[s(225)](s(230),t,i),n[s(247)](o)})}}const ht=pt;function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=384]})(t,e)}function mt(){const t=["upcast","pluginName","insert","2YbQIZo","init","removeAttribute","setAttribute","2126916Fdkevz","parseInt","footnotes.footnotesProperties.defaultListStyle","isNaN","120bvdYYs","hasClass","isOfficialPlugin","decimal","decimal-leading-zero","checkAttribute","getChildren","hasAttribute","footnotes-list","commands","fromCharCode","upper-roman","_getDefaultStartIndex","define","_defineSchema","44065QvmVlB","isPremiumPlugin","lower-latin","4981188DaeVGJ","9nEYvdL","nodeAfter","_getDefaultListStyle","document","_updateFootnotesCounters","_defineFormatter","createRangeOn","element","from","editor","name","toLowerCase","$text","element:ol","removeStyle","start","parent","14951770KsCteB","differ","consumable","getStyle","writer","209DFtymU","lower-alpha","toViewElement","3898540mqqBDu","plugins","4WPKGrb","registerPostFixer","footnotesStart","87814fNfpRi","upper-alpha","upper-latin","list-style-type","model","find","attribute:footnotesListStart:footnotesDefinitions","item","getChanges","_defineConverters","add","get","modelCursor","footnotesStyle","2894109PlcUik","getAttribute","mapper","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","for","getItems","type","downcast","toUpperCase","consume","schema","viewItem","padStart","_definePostfixer","extend","footnotesDefinitions","floor","lower-roman","config","setStyle","FootnotesPropertiesEditing","position","_formatFootnoteListValue","requires","max","setFootnoteFormatter","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStyle"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(775988===-parseInt(e(461))/1+parseInt(e(404))/2*(-parseInt(e(475))/3)+-parseInt(e(458))/4*(parseInt(e(456))/5)+parseInt(e(430))/6+-parseInt(e(427))/7*(parseInt(e(412))/8)+parseInt(e(431))/9*(-parseInt(e(448))/10)+parseInt(e(453))/11*(parseInt(e(408))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(402)](){return ht(393)}static get[ht(396)](){return[v,h]}static get[ht(414)](){return!0}static get[ht(428)](){return!0}[ht(405)](){const t=ht,{editor:e}=this;e[t(391)][t(425)](t(410),t(415)),e[t(391)][t(425)](t(478),1),e[t(421)][t(471)](t(474),new ct(e)),e[t(421)][t(471)](t(460),new dt(e)),this[t(426)](),this[t(470)](),this[t(436)](),this[t(386)]()}[ht(426)](){const t=ht,{editor:e}=this,{schema:o}=e[t(465)];o[t(387)](t(388),{allowAttributes:[t(400),t(479)]})}[ht(470)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(480)](t(401))[t(471)](e=>{const o=t;e.on(o(444),(t,e,n)=>{const s=o,r=e[s(384)],a=e[s(473)]?.[s(447)];r[s(413)](s(420))&&a?.is(s(438),s(388))&&(function(t,e,o,n){const i=s;if(!n[i(417)](e,i(479)))return;let r=1;const a=o[i(450)][i(485)](t,{attributes:i(446)});if(a){const e=Number[i(409)](t[i(476)](i(446)),10);Number[i(411)](e)||(r=e)}!a&&e[i(419)](i(479))||o[i(452)][i(407)](i(479),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(417)](e,i(400)))return;let r=i(415),a=!1;if(o[i(450)][i(485)](t,{attributes:i(482)})){const e={1:i(415),a:i(454),A:i(462),i:i(390),I:i(423)}[t[i(476)](i(482))];e&&(r=e),a=!0}o[i(450)][i(485)](t,{styles:i(464)})&&(r=function(t){const e=i;switch(t){case e(454):return e(429);case e(462):return e(463);default:return t}}(t[i(451)](i(464))),a=!0),!a&&e[i(419)](i(400))||o[i(452)][i(407)](i(400),r,e)}(r,a,n,i))})}),o[t(480)](t(483))[t(471)](e=>{const o=t;e.on(o(467),(t,e,n)=>{const i=o;if(!n[i(450)][i(485)](e[i(468)],t[i(441)]))return;const s=wt(e[i(468)],n[i(477)]),{attributeNewValue:r}=e;null==r||1===r?n[i(452)][i(406)](i(446),s):n[i(452)][i(407)](i(446),String(r),s)}),e.on(o(399),(t,e,n)=>{const i=o;if(!n[i(450)][i(485)](e[i(468)],t[i(441)]))return;const s=wt(e[i(468)],n[i(477)]),{attributeNewValue:r}=e;r&&i(415)!==r?n[i(452)][i(392)](i(464),r,s):n[i(452)][i(445)](i(464),s)})})}[ht(386)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(457)][t(472)](h),i=this[t(433)](),s=this[t(424)]();o[t(434)][t(459)](e=>{const r=t,a=o[r(434)][r(449)][r(469)]();let c=!1;for(const t of a){if(r(403)!==t[r(482)]||r(443)===t[r(441)])continue;const n=o[r(437)](t[r(394)][r(432)]);for(const t of n[r(481)]())t.is(r(438),r(388))&&(!t[r(419)](r(479))&&o[r(486)][r(417)](t,r(479))&&(e[r(407)](r(479),s,t),c=!0),!t[r(419)](r(400))&&o[r(486)][r(417)](t,r(400))&&(e[r(407)](r(400),i,t),c=!0))}return c&&n[r(435)](e),c})}[ht(436)](){const t=ht,{editor:e}=this;e[t(457)][t(472)](h)[t(398)](e=>this[t(395)](e))}[ht(433)](){const t=ht;return this[t(440)][t(391)][t(472)](t(410))}[ht(424)](){const t=ht;return this[t(440)][t(391)][t(472)](t(478))}[ht(395)]({container:t,value:e,digits:o}){const n=ht,i=t[n(476)](n(400)),s=t[n(476)](n(479)),r=Math[n(389)](e)+(s??1)-1;switch(i){case n(416):return function(t,e){const o=n;return String(t)[o(385)](e,"0")}(r,Math[n(397)](2,o));case n(454):case n(429):return yt(r,!1);case n(462):case n(463):return yt(r,!0);case n(390):return vt(r,!1);case n(423):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(455)](t);return Array[o(439)](n[o(418)]())[o(466)](t=>t.is(o(438),"ol")&&t[o(413)](o(420)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(422)](97+t)+n,i=Math[o(389)]((i-1)/26)}return e?n[o(484)]():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(442)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=X();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(){var t=["isPremiumPlugin","5472594KQNuaz","851662iMNQMb","319707eIMAOn","pluginName","276540bBVLJS","110bvCmaw","7jOomFL","isOfficialPlugin","2566473NAKkxj","23090400ISzXdX","112RZxrdK","requires","FootnotesProperties","338576kRRcbj"];return(xt=function(){return t})()}var Et=St;function St(t,e){var o=xt();return(St=function(t,e){return o[t-=411]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(786810===parseInt(e(417))/1+parseInt(e(414))/2+-parseInt(e(424))/3+-parseInt(e(420))/4*(-parseInt(e(421))/5)+parseInt(e(416))/6*(parseInt(e(422))/7)+parseInt(e(411))/8*(parseInt(e(418))/9)+-parseInt(e(425))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Et(419)](){return Et(413)}static get[Et(412)](){return[gt,Ft]}static get[Et(423)](){return!0}static get[Et(415)](){return!0}}function At(){var t=["21976aeMhSe","745XnyuVU","18188203FawEmH","6aRkphn","38elfKlV","4473ESxWmC","1154363jlDMvh","845341UNzUuT","295794rdTwUQ","20zmpyIc","8588744QZJhyu"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=477]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(700813===parseInt(e(483))/1+parseInt(e(481))/2*(-parseInt(e(482))/3)+-parseInt(e(477))/4*(parseInt(e(478))/5)+parseInt(e(480))/6*(-parseInt(e(484))/7)+-parseInt(e(487))/8+parseInt(e(485))/9*(-parseInt(e(486))/10)+parseInt(e(479))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x52c91a,Command as _0x17b8c2}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3e5be2,isWidget as _0xe316e2,toWidgetEditable as _0x4c83a2,WidgetToolbarRepository as _0x3548d2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x103fff,logWarning as _0x6f6007,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x502c1d,ClickObserver as _0x32dba0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1f257f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x448ada,ButtonView as _0xaa47e,View as _0x1d7450,ViewCollection as _0x5ec28e,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x3f4586,BalloonPanelView as _0x33d17d,createDropdown as _0x4b8e9c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3c02ef,IconListStyleDecimal as _0x5aca3a,IconListStyleDecimalLeadingZero as _0x24ed39,IconListStyleLowerRoman as _0x4838c6,IconListStyleUpperRoman as _0x5920a1,IconListStyleLowerLatin as _0x3e9ff8,IconListStyleUpperLatin as _0x315415}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x528ce1,_0x12c51a){this['_model']=_0x528ce1,this['_elementName']=_0x12c51a['elementName'],this['_getElementKey']=_0x12c51a['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1e9218){const _0x30e20f=new Set(),_0x290ff8=new Map();for(const _0x37e226 of _0x1e9218){if('insert'===_0x37e226['type']&&'$text'!==_0x37e226['name']&&_0x37e226['position']['nodeAfter']){const _0x46a98e=this['_model']['createRangeOn'](_0x37e226['position']['nodeAfter']);for(const _0x2ae309 of _0x46a98e['getItems']()){if(!_0x2ae309['is']('element',this['_elementName']))continue;const _0x133eab=this['_getElementKey'](_0x2ae309);_0x290ff8['has'](_0x133eab)||_0x290ff8['set'](_0x133eab,[]),_0x290ff8['get'](_0x133eab)['push'](_0x2ae309);}}if('remove'===_0x37e226['type']&&_0x37e226['name']===this['_elementName']){const _0x577075=this['_getElementKey']({'getAttribute':_0xb2386b=>_0x37e226['attributes']['get'](_0xb2386b)});_0x30e20f['add'](_0x577075);}}for(const [_0x113712,_0x407f08]of this['_trackedElements'])'$graveyard'===_0x407f08['root']['rootName']&&_0x30e20f['add'](_0x113712);for(const _0xe3ef3d of _0x30e20f)this['_trackedElements']['delete'](_0xe3ef3d);for(const [_0x1d4442,_0x114996]of _0x290ff8)this['_trackedElements']['set'](_0x1d4442,_0x114996[_0x114996['length']-0x1]);const _0x7be228=new Set();for(const [_0x963459,_0x262ff2]of _0x290ff8)_0x30e20f['has'](_0x963459)&&(_0x7be228['add'](_0x262ff2[0x0]),_0x262ff2['length']>0x1?_0x290ff8['set'](_0x963459,_0x262ff2['slice'](0x1)):_0x290ff8['delete'](_0x963459),_0x30e20f['delete'](_0x963459));return{'removed':Array['from'](_0x30e20f),'inserted':Array['from'](_0x290ff8['values']())['flat'](),'moved':Array['from'](_0x7be228)};}}class f extends _0x52c91a{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x10d5f2){super(_0x10d5f2),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x29b4b9=>_0x29b4b9['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3fd7d0=>_0x3fd7d0['getAttribute']('footnoteId')});}['init'](){const {editor:_0x9940d1}=this,{model:_0x5d12a2,data:_0x57ae1a}=_0x9940d1;_0x5d12a2['document']['registerPostFixer'](_0x18e78e=>{const _0x2ec35e=_0x5d12a2['document']['differ']['getChanges']();let _0x285ea9=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x18e78e,_0x2ec35e)&&(_0x285ea9=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x18e78e,_0x2ec35e)&&(_0x285ea9=!0x0),this['_handleFootnoteReferencesChanges'](_0x18e78e,_0x2ec35e)&&(_0x285ea9=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x18e78e)&&(_0x285ea9=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x18e78e)&&(_0x285ea9=!0x0),this['_sortFootnoteDefinitions'](_0x18e78e)&&(_0x285ea9=!0x0),_0x285ea9;}),this['listenTo'](_0x5d12a2['document'],'change:data',()=>{_0x5d12a2['enqueueChange']({'isUndoable':!0x1},_0x18f2b3=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x18f2b3);});},{'priority':'low'}),this['listenTo'](_0x57ae1a,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x59424a){return this['_footnotes']['find'](_0x4a5dfe=>_0x4a5dfe['id']===_0x59424a)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x56bfe5){this['_footnoteFormatter']=_0x56bfe5;}['_updateFootnotesCounters'](_0x435ed2,_0x3be1b9=0x0){let _0x49b88d=!0x1;for(let _0x427f56=_0x3be1b9;_0x427f56<this['_footnotes']['length'];_0x427f56++)this['_updateFootnoteRefCounter'](_0x435ed2,_0x427f56)&&(_0x49b88d=!0x0);return _0x49b88d;}['_insertEmptyFootnotesDefinitionsContainer'](_0x265ba0,_0x51b72c){const _0x130f92=_0x265ba0['createElement']('footnotesDefinitions',{});return _0x265ba0['append'](_0x130f92,_0x51b72c),this['_footnotesDefinitions']=_0x130f92,_0x130f92;}['_ensureFootnotesDefinitionsContainerExists'](_0x429cf4){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0xe4dd19=this['_footnotes'][0x0]['reference']['root'],_0x116318=this['_insertEmptyFootnotesDefinitionsContainer'](_0x429cf4,_0xe4dd19);for(const _0x2b143c of this['_footnotes'])_0x2b143c['definition']['parent']||_0x429cf4['insert'](_0x2b143c['definition'],_0x116318,'end');this['_updateFootnotesCounters'](_0x429cf4);}['_handleFootnotesDefinitionsObjectChanges'](_0x1f1579,_0x1633b5){let _0x48e134=!0x1;const {inserted:_0x17e820,removed:_0x473d37,moved:_0x29c412}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1633b5);if(_0x29c412['length']&&(this['_footnotesDefinitions']=_0x29c412[0x0]),_0x17e820['length']){if(_0x17e820['length']>0x1||this['_footnotesDefinitions']&&_0x17e820['some'](_0x46fd23=>_0x46fd23!==this['_footnotesDefinitions'])){const _0x1f4c8e=_0x1f1579['createElement']('footnotesDefinitions',{}),_0xb19775=[];this['_footnotesDefinitions']&&_0xb19775['push'](this['_footnotesDefinitions']),_0xb19775['push'](..._0x17e820),_0x1f1579['insert'](_0x1f4c8e,_0xb19775[0x0],'before');for(const _0x1092f4 of _0xb19775)_0x1f1579['move'](_0x1f1579['createRangeIn'](_0x1092f4),_0x1f1579['createPositionAt'](_0x1f4c8e,'end')),_0x1f1579['remove'](_0x1092f4);this['_footnotesDefinitions']=_0x1f4c8e,this['_updateFootnotesCounters'](_0x1f1579),_0x48e134=!0x0;}else this['_footnotesDefinitions']=_0x17e820[0x0];}if(_0x473d37['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3e34d4 of this['_footnotes'])_0x1f1579['remove'](_0x3e34d4['reference']),_0x48e134=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x48e134;}['_handleFootnoteDefinitionsChanges'](_0x20a8cd,_0xd3512a){let _0x1b5d7f=!0x1;const _0x3a3376=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x88e491,moved:_0x2014e2}=this['_footnoteDefsTracker']['getChanges'](_0xd3512a);for(const _0x1e9db3 of[..._0x2014e2,..._0x88e491]){const _0x5d655c=_0x1e9db3['getAttribute']('footnoteId'),_0x1d0cbe=this['getFootnote'](_0x5d655c);_0x1d0cbe&&(_0x1d0cbe['definition']=_0x1e9db3),_(_0x20a8cd,_0x3a3376,_0x1e9db3)&&(_0x1b5d7f=!0x0);}return _0x1b5d7f;}['_handleFootnoteReferencesChanges'](_0x45cead,_0x177257){let _0xeddb89=!0x1;const {removed:_0x19a2ff,inserted:_0x35486e,moved:_0x3a3d14}=this['_footnoteRefsTracker']['getChanges'](_0x177257);for(const _0x27e408 of _0x19a2ff)this['_handleRemoveFootnoteReferenceById'](_0x45cead,_0x27e408)&&(_0xeddb89=!0x0);for(const _0x2ca786 of _0x35486e)this['_handleInsertedFootnoteReference'](_0x45cead,_0x2ca786)&&(_0xeddb89=!0x0);for(const _0x194db9 of _0x3a3d14)this['_handleMovedFootnoteReference'](_0x45cead,_0x194db9)&&(_0xeddb89=!0x0);return _0xeddb89;}['_handleFootnotesDefinitionsObjectSync'](_0x5a2260){if(!this['_footnotesDefinitions'])return!0x1;let _0x4ce683=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x225508=[];for(const _0x11717f of this['_footnotesDefinitions']['getChildren']()){const _0x11c1d6=_0x11717f['getAttribute']('footnoteId');this['getFootnote'](_0x11c1d6)||(_0x225508['unshift'](_0x11717f),_0x4ce683=!0x0);}for(const _0x27c3fe of _0x225508)_0x5a2260['remove'](_0x27c3fe);}const _0xb7c9d2=new Set(),_0x542a59=[];for(const _0x56a031 of this['_footnotesDefinitions']['getChildren']()){const _0x14bcdd=_0x56a031['getAttribute']('footnoteId');_0xb7c9d2['has'](_0x14bcdd)?(_0x542a59['unshift'](_0x56a031),_0x4ce683=!0x0):_0xb7c9d2['add'](_0x14bcdd);}for(const _0x1ea3c3 of _0x542a59)_0x5a2260['remove'](_0x1ea3c3);return this['_footnotesDefinitions']['childCount']||(_0x5a2260['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4ce683=!0x0),_0x4ce683;}['_handleInsertedFootnoteReference'](_0x3f23c3,_0x464b68){if(this['_footnotes']['find'](_0x2d2303=>_0x2d2303['reference']===_0x464b68))return!0x1;let _0x5e86c2=!0x1;const _0x22b0d6=_0x464b68['getAttribute']('footnoteId'),_0x1040bc=this['_footnotes']['findIndex'](_0x21d2ca=>_0x21d2ca['id']===_0x22b0d6);-0x1!==_0x1040bc&&(_0x3f23c3['remove'](this['_footnotes'][_0x1040bc]['reference']),this['_footnotes']['splice'](_0x1040bc,0x1),_0x5e86c2=!0x0);let _0x4e2f15=this['_footnotesDefinitions']?function(_0x266d38,_0x11efea){for(const _0x2b2a4f of _0x266d38['getChildren']())if(_0x2b2a4f['getAttribute']('footnoteId')===_0x11efea)return _0x2b2a4f;return null;}(this['_footnotesDefinitions'],_0x22b0d6):null;_0x4e2f15||(_0x4e2f15=_0x3f23c3['createElement']('footnoteDefinition',{'footnoteId':_0x22b0d6}),this['_footnotesDefinitions']&&(_0x3f23c3['insert'](_0x4e2f15,this['_footnotesDefinitions'],'end'),_0x5e86c2=!0x0));const _0x7c00cf={'id':_0x22b0d6,'reference':_0x464b68,'definition':_0x4e2f15},_0x522aa6=I(this['editor']['model'],this['_footnotes'],_0x464b68);this['_footnotes']['splice'](_0x522aa6,0x0,_0x7c00cf);let _0x22366b=_0x522aa6;return-0x1!==_0x1040bc&&(_0x22366b=Math['min'](_0x522aa6,_0x1040bc)),this['_updateFootnotesCounters'](_0x3f23c3,_0x22366b)&&(_0x5e86c2=!0x0),_0x5e86c2;}['_handleRemoveFootnoteReferenceById'](_0x325771,_0x35edee){const _0x27c195=this['_footnotes']['findIndex'](_0x10841a=>_0x10841a['id']===_0x35edee);if(-0x1===_0x27c195)return!0x1;let _0x11ff71=!0x1;const _0x50ef9b=this['_footnotes'][_0x27c195];return'$graveyard'!==_0x50ef9b['definition']['root']['rootName']&&(_0x325771['remove'](_0x50ef9b['definition']),_0x11ff71=!0x0),this['_footnotes']['splice'](_0x27c195,0x1),this['_updateFootnotesCounters'](_0x325771,_0x27c195)&&(_0x11ff71=!0x0),_0x11ff71;}['_handleMovedFootnoteReference'](_0x1f43d6,_0x5eee0d){const _0x1eb153=_0x5eee0d['getAttribute']('footnoteId'),_0x39d1f9=this['_footnotes']['findIndex'](_0x52a127=>_0x52a127['id']===_0x1eb153),_0x2ea218=this['_footnotes'][_0x39d1f9];let _0xcdb346=!0x1;_0x2ea218['reference']=_0x5eee0d,this['_footnotes']['splice'](_0x39d1f9,0x1);const _0x5e2398=I(this['editor']['model'],this['_footnotes'],_0x5eee0d);return this['_footnotes']['splice'](_0x5e2398,0x0,_0x2ea218),this['_updateFootnotesCounters'](_0x1f43d6,Math['min'](_0x39d1f9,_0x5e2398))&&(_0xcdb346=!0x0),_0xcdb346;}['_updateFootnoteRefCounter'](_0x6545a9,_0x35c230){if(!this['_footnotesDefinitions'])return!0x1;const _0x474660=this['_footnotes'][_0x35c230];let _0x4cdd48;return _0x4cdd48=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x474660,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x35c230+0x1}):String(_0x35c230+0x1),_0x474660['reference']['getAttribute']('footnoteCounter')!=_0x4cdd48&&(_0x6545a9['setAttribute']('footnoteCounter',_0x4cdd48,_0x474660['reference']),!0x0);}['_sortFootnoteDefinitions'](_0xb6d83e){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3fc63a,_0x362920){if(_0x3fc63a['length']!==_0x362920['length'])return!0x1;for(let _0x9888a3=0x0;_0x9888a3<_0x3fc63a['length'];_0x9888a3++)if(_0x3fc63a[_0x9888a3]!==_0x362920[_0x9888a3])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2338b4=>_0x2338b4['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x167ccd=>_0x167ccd['getAttribute']('footnoteId'))))return!0x1;let _0x34b995=!0x1;for(let _0x4e0993=0x0;_0x4e0993<this['_footnotes']['length'];_0x4e0993++){const _0xbb35c2=this['_footnotes'][_0x4e0993],_0x4bd733=_0xb6d83e['createPositionBefore'](_0xbb35c2['definition']),_0x2467fe=_0xb6d83e['createPositionAt'](this['_footnotesDefinitions'],_0x4e0993);_0x4bd733['isEqual'](_0x2467fe)||(_0xb6d83e['move'](_0xb6d83e['createRangeOn'](_0xbb35c2['definition']),_0x2467fe),_0x34b995=!0x0);}return _0x34b995;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3a2191){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5dcc53}=this['editor'];let _0x544377=!0x1;for(let _0x447a1f=0x0;_0x447a1f<this['_footnotes']['length']-0x1;_0x447a1f++){const _0x865707=this['_footnotes'][_0x447a1f],_0x180aa5=this['_footnotes'][_0x447a1f+0x1],_0x29d118=_0x5dcc53['createPositionBefore'](_0x865707['reference']),_0x23c039=_0x5dcc53['createPositionBefore'](_0x180aa5['reference']);'after'===_0x29d118['compareWith'](_0x23c039)&&(this['_handleMovedFootnoteReference'](_0x3a2191,_0x865707['reference']),_0x447a1f=-0x1,_0x544377=!0x0);}return _0x544377;}}function _(_0x482837,_0x4f0a8c,_0x517be6){if(_0x517be6['childCount'])return!0x1;const _0x82b8d5=_0x4f0a8c?'paragraph':'footnoteInlineContent';return _0x482837['insert'](_0x482837['createElement'](_0x82b8d5),_0x517be6),!0x0;}function I(_0x238e26,_0x12d8c0,_0x34e8b1){if(0x0===_0x12d8c0['length'])return 0x0;const _0x4e2c06=_0x238e26['createPositionBefore'](_0x34e8b1);for(let _0x2c1ee1=0x0;_0x2c1ee1<_0x12d8c0['length'];_0x2c1ee1++){const _0x3aecb0=_0x12d8c0[_0x2c1ee1],_0x3d5eec=_0x238e26['createPositionBefore'](_0x3aecb0['reference']);if('before'===_0x4e2c06['compareWith'](_0x3d5eec))return _0x2c1ee1;}const _0x291338=_0x34e8b1['root'];let _0x8eba3a=-0x1;for(let _0x1bee29=_0x12d8c0['length']-0x1;_0x1bee29>=0x0;_0x1bee29--)if(_0x12d8c0[_0x1bee29]['reference']['root']===_0x291338){_0x8eba3a=_0x1bee29;break;}if(-0x1!==_0x8eba3a)return _0x8eba3a+0x1;const _0x42bab6=_0x238e26['document']['getRootNames'](),_0x45a431=_0x42bab6['indexOf'](_0x291338['rootName']),_0x12330b=_0x42bab6[_0x45a431+0x1];if(_0x12330b){for(let _0x34fa08=0x0;_0x34fa08<_0x12d8c0['length'];_0x34fa08++)if(_0x12d8c0[_0x34fa08]['reference']['root']['rootName']===_0x12330b)return _0x34fa08;}return _0x12d8c0['length'];}class h extends _0x17b8c2{['refresh'](){const _0x1a1089=this['editor']['model']['document']['selection'],_0x4a9d36=this['_getPositionToInsertFootnote'](_0x1a1089);this['isEnabled']=!!_0x4a9d36;}['execute'](_0xa047b0){const {editor:_0x530ae1}=this,{model:_0xa2e55}=_0x530ae1,{selection:_0x538d70}=_0xa2e55['document'],_0x5f3e93=this['_getPositionToInsertFootnote'](_0x538d70);if(!_0x5f3e93)return;const _0x11ddef=_0x530ae1['plugins']['get']('FootnotesEditing'),_0x3a5a40=_0xa047b0?.['footnoteId']??_0x103fff();!function(_0x3b98b1){return'string'==typeof _0x3b98b1&&_0x3b98b1['length']>0x0&&!/\s/['test'](_0x3b98b1)&&!/^\d/['test'](_0x3b98b1);}(_0x3a5a40)?_0x6f6007('insert-footnote-command-executed-with-invalid-id'):(_0xa2e55['change'](_0x294401=>{const _0x56296d=_0x294401['createElement']('footnoteRef',{'footnoteId':_0x3a5a40});_0xa2e55['insertObject'](_0x56296d,_0x5f3e93,null);}),_0x11ddef['_moveSelectionToFootnoteDefinition'](_0x3a5a40));}['_getPositionToInsertFootnote'](_0x59eb5e){const {model:_0x45e3b3}=this['editor'],{schema:_0x104f1e}=_0x45e3b3,_0x294081=_0x59eb5e['getFirstRange']();for(const _0x3243a9 of _0x294081['getItems']())if(_0x104f1e['isBlock'](_0x3243a9)||_0x104f1e['isObject'](_0x3243a9))return null;const _0x1f6e11=_0x294081['end'];return _0x104f1e['checkChild'](_0x1f6e11,'footnoteRef')?_0x1f6e11:null;}}class r extends _0x52c91a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x284158}=this;_0x284158['config']['define']('footnotes.multiBlock',!0x0),_0x284158['commands']['add']('insertFootnote',new h(_0x284158)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2ae7b1){const _0x36ff75=_0x4b1d84([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]),_0x264438=0x47a28506,_0x539236=0x47a50396^_0x264438,_0x3bd6ea=window[_0x4b1d84([0x44,0x61,0x74,0x65])][_0x4b1d84([0x6e,0x6f,0x77])](),_0x447a8c=_0x2ae7b1[_0x4b1d84([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5da812=new window[(_0x4b1d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x33673e=>{_0x447a8c[_0x4b1d84([0x6f,0x6e,0x63,0x65])](_0x4b1d84([0x72,0x65,0x61,0x64,0x79]),_0x33673e);}),_0x21e016={[_0x4b1d84([0x6b,0x74,0x79])]:_0x4b1d84([0x45,0x43]),[_0x4b1d84([0x75,0x73,0x65])]:_0x4b1d84([0x73,0x69,0x67]),[_0x4b1d84([0x63,0x72,0x76])]:_0x4b1d84([0x50,0x2d,0x32,0x35,0x36]),[_0x4b1d84([0x78])]:_0x4b1d84([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]),[_0x4b1d84([0x79])]:_0x4b1d84([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]),[_0x4b1d84([0x61,0x6c,0x67])]:_0x4b1d84([0x45,0x53,0x32,0x35,0x36])},_0x5ae118=_0x447a8c[_0x4b1d84([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b1d84([0x67,0x65,0x74])](_0x4b1d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x540931(){let _0x177507,_0x5aa9c6=null,_0x357927=null;try{if(_0x5ae118==_0x4b1d84([0x47,0x50,0x4c]))return _0x4b1d84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x177507=_0x46d457(),!_0x177507)return _0x4b1d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x177507[_0x4b1d84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x357927=_0x830acb(_0x177507[_0x4b1d84([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x177507[_0x4b1d84([0x6a,0x74,0x69])])),await _0x135392()?_0x7cb268()?_0x6c2c85()?_0x4b1d84([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2628d8()?(_0x177507[_0x4b1d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b1d84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5aa9c6=_0x49a9a8(_0x4b1d84([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4efcfb()):_0x4b1d84([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b1d84([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b1d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b1d84([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x6c2c85(){const _0x127666=[_0x4b1d84([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b1d84([0x74,0x72,0x69,0x61,0x6c])][_0x4b1d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x177507[_0x4b1d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3bd6ea/0x3e8:0xe10*_0x539236;return _0x177507[_0x4b1d84([0x65,0x78,0x70])]<_0x127666;}function _0x7cb268(){const _0x53cc29=_0x177507[_0x4b1d84([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x53cc29&&(!!_0x53cc29[_0x4b1d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b1d84([0x2a]))||!!_0x53cc29[_0x4b1d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b1d84([0x46,0x4f,0x4f])));}function _0x2628d8(){const _0x4c66ab=_0x177507[_0x4b1d84([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4c66ab||0x0==_0x4c66ab[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x341b2f}=new URL(window[_0x4b1d84([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4c66ab[_0x4b1d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x341b2f))return!0x0;const _0x106e78=_0x341b2f[_0x4b1d84([0x73,0x70,0x6c,0x69,0x74])](_0x4b1d84([0x2e]));return _0x4c66ab[_0x4b1d84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xaa0395=>_0xaa0395[_0x4b1d84([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b1d84([0x2a])))[_0x4b1d84([0x6d,0x61,0x70])](_0x540551=>_0x540551[_0x4b1d84([0x73,0x70,0x6c,0x69,0x74])](_0x4b1d84([0x2e])))[_0x4b1d84([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x50ec22=>_0x50ec22[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x106e78[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b1d84([0x6d,0x61,0x70])](_0x24878c=>Array(_0x106e78[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x24878c[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b1d84([0x66,0x69,0x6c,0x6c])](_0x24878c[0x0]===_0x4b1d84([0x2a])?_0x4b1d84([0x2a]):'')[_0x4b1d84([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x24878c))[_0x4b1d84([0x73,0x6f,0x6d,0x65])](_0x172782=>_0x106e78[_0x4b1d84([0x65,0x76,0x65,0x72,0x79])]((_0x42e978,_0x39cbc3)=>_0x172782[_0x39cbc3]===_0x42e978||_0x172782[_0x39cbc3]===_0x4b1d84([0x2a])));}function _0x4efcfb(){return _0x5aa9c6&&_0x357927?new window[(_0x4b1d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2fbf3c,_0x756b23)=>{_0x5aa9c6[_0x4b1d84([0x74,0x68,0x65,0x6e])](_0x2fbf3c,_0x756b23),_0x357927[_0x4b1d84([0x74,0x68,0x65,0x6e])](_0x8584f0=>{_0x8584f0!=_0x4b1d84([0x56,0x61,0x6c,0x69,0x64])&&_0x2fbf3c(_0x8584f0);},_0x756b23);}):_0x5aa9c6||_0x357927||_0x4b1d84([0x56,0x61,0x6c,0x69,0x64]);}}function _0x830acb(_0x32e029,_0x111a85){return new window[(_0x4b1d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c366e=>{if(_0x3265f7())return _0x2c366e(_0x4b1d84([0x56,0x61,0x6c,0x69,0x64]));_0x43f5ab(),_0x447a8c[_0x4b1d84([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b1d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x497fe2=!0x1;const _0x262d97=_0x103fff();function _0x36f4f4(_0x505319){return!!_0x505319&&(typeof _0x505319===_0x4b1d84([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x505319===_0x4b1d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x505319[_0x4b1d84([0x74,0x68,0x65,0x6e])]===_0x4b1d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x505319[_0x4b1d84([0x63,0x61,0x74,0x63,0x68])]===_0x4b1d84([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x16fe76(_0x5b7963){_0x57fbac(_0x5b7963)[_0x4b1d84([0x74,0x68,0x65,0x6e])](_0x536eca=>{if(!_0x536eca||_0x536eca[_0x4b1d84([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b1d84([0x6f,0x6b]))return _0x4b1d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ff5c1(_0x408740(_0x262d97+_0x111a85))!=_0x536eca[_0x4b1d84([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b1d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b1d84([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b1d84([0x74,0x68,0x65,0x6e])](_0x1976f0=>(_0x1afb8c(),_0x1976f0),()=>{const _0xba0f9=_0x586323();return null==_0xba0f9?(_0x1afb8c(),_0x4b1d84([0x56,0x61,0x6c,0x69,0x64])):_0x4b1d84(_0x3bd6ea-_0xba0f9>(0x63ae0106^_0x264438)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b1d84([0x74,0x68,0x65,0x6e])](_0x2c366e)[_0x4b1d84([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c366e(_0x4b1d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4d8d60=0x47946b86^_0x264438;function _0x1afb8c(){const _0x14b5b3=_0x4b1d84([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ff5c1(_0x408740(_0x32e029)),_0xcd5836=_0x590163(_0x1ff5c1(window[_0x4b1d84([0x4d,0x61,0x74,0x68])][_0x4b1d84([0x63,0x65,0x69,0x6c])](_0x3bd6ea/_0x4d8d60)));window[_0x4b1d84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b1d84([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x14b5b3,_0xcd5836);}function _0x586323(){const _0x2c50af=_0x4b1d84([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ff5c1(_0x408740(_0x32e029)),_0x1fc817=window[_0x4b1d84([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b1d84([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2c50af);return _0x1fc817?window[_0x4b1d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x590163(_0x1fc817),0x10)*_0x4d8d60:null;}function _0x57fbac(_0x3faa54){return new window[(_0x4b1d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x37c6b0,_0x104f5d)=>{_0x3faa54[_0x4b1d84([0x74,0x68,0x65,0x6e])](_0x37c6b0,_0x104f5d),window[_0x4b1d84([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x104f5d,0x47a351c6^_0x264438);});}}_0x447a8c[_0x4b1d84([0x6f,0x6e])](_0x4b1d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x29816b,_0x44fa0a)=>{if(_0x44fa0a[0x0]!=_0x32e029)return _0x2c366e(_0x4b1d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x44fa0a[0x1]={..._0x44fa0a[0x1],[_0x4b1d84([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x262d97};},{[_0x4b1d84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b1d84([0x68,0x69,0x67,0x68])}),_0x447a8c[_0x4b1d84([0x6f,0x6e])](_0x4b1d84([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x35bc82=>{_0x36f4f4(_0x35bc82[_0x4b1d84([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x497fe2=!0x0,_0x16fe76(_0x35bc82[_0x4b1d84([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b1d84([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b1d84([0x6c,0x6f,0x77])}),_0x5da812[_0x4b1d84([0x74,0x68,0x65,0x6e])](()=>{_0x497fe2||_0x2c366e(_0x4b1d84([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3265f7(){return _0x447a8c[_0x4b1d84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b1d84([0x76,0x69,0x65,0x77])][_0x4b1d84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b1d84([0x61,0x75,0x74,0x6f]);}function _0x43f5ab(){_0x447a8c[_0x4b1d84([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b1d84([0x76,0x69,0x65,0x77])][_0x4b1d84([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b1d84([0x61,0x75,0x74,0x6f]);}}function _0x49a9a8(_0x4ebeb8){const _0x110ba6=[new window[(_0x4b1d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x59fa1f=>setTimeout(_0x59fa1f,0x47abbbca^_0x264438)),_0x5da812[_0x4b1d84([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b1d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x306866=>{let _0x57cf32=0x0;_0x447a8c[_0x4b1d84([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b1d84([0x6f,0x6e])](_0x4b1d84([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5d2c8e,_0x3c427e)=>{_0x3c427e[0x0][_0x4b1d84([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x57cf32++,_0x57cf32==(0x47a280ee^_0x264438)&&(_0x306866(),_0x5d2c8e[_0x4b1d84([0x6f,0x66,0x66])]());});}))];return window[_0x4b1d84([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b1d84([0x72,0x61,0x63,0x65])](_0x110ba6)[_0x4b1d84([0x74,0x68,0x65,0x6e])](()=>_0x4ebeb8);}async function _0x3a8e60(){await _0x5da812,_0x447a8c[_0x4b1d84([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b1d84([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42a1c9,_0x447a8c[_0x4b1d84([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b1d84([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42a1c9,_0x447a8c[_0x4b1d84([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b1d84([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x31801b(_0x1c576e){const _0x416177=_0x94162f();_0x447a8c[_0x416177]=_0x4b1d84([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c576e,_0x1c576e!=_0x4b1d84([0x56,0x61,0x6c,0x69,0x64])&&_0x3a8e60();}function _0x94162f(){const _0x4fde3d=window[_0x4b1d84([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b1d84([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b1d84([0x6e,0x6f,0x77])]())[_0x4b1d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b1d84([0x2e]),'');let _0x477d68=_0x4b1d84([0x75]);for(let _0xd6af2b=0x0;_0xd6af2b<_0x4fde3d[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd6af2b+=0x2){let _0x5cb77e=window[_0x4b1d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4fde3d[_0x4b1d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xd6af2b,_0xd6af2b+0x2));_0x5cb77e>=_0x36ff75[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5cb77e-=_0x36ff75[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x477d68+=_0x36ff75[_0x5cb77e];}return _0x477d68;}function _0x46d457(){const _0x143714=_0x5ae118[_0x4b1d84([0x73,0x70,0x6c,0x69,0x74])](_0x4b1d84([0x2e]));if(0x3!=_0x143714[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x312896(_0x143714[0x1]);function _0x312896(_0x1c3e7a){const _0x3b951=_0x4b668f(_0x1c3e7a);return _0x3b951&&_0x461ca5()?_0x3b951:null;function _0x461ca5(){const _0x57f559=_0x3b951[_0x4b1d84([0x6a,0x74,0x69])],_0x239632=window[_0x4b1d84([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x57f559[_0x4b1d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x57f559[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2fb186={..._0x3b951,[_0x4b1d84([0x6a,0x74,0x69])]:_0x57f559[_0x4b1d84([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x57f559[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2fb186[_0x4b1d84([0x76,0x63])],_0x408740(_0x2fb186)==_0x239632;}}}async function _0x135392(){let _0x461cf9=!0x0;try{const _0x271f4a=_0x5ae118[_0x4b1d84([0x73,0x70,0x6c,0x69,0x74])](_0x4b1d84([0x2e])),[_0x18ef58,_0x5a49c7,_0x2cb13c]=_0x271f4a;return _0x46ff1c(_0x18ef58),await _0x2887c0(_0x18ef58,_0x5a49c7,_0x2cb13c),_0x461cf9;}catch{return!0x1;}function _0x46ff1c(_0x26385c){const _0x36b5d0=_0x4b668f(_0x26385c);_0x36b5d0&&_0x36b5d0[_0x4b1d84([0x61,0x6c,0x67])]==_0x4b1d84([0x45,0x53,0x32,0x35,0x36])||(_0x461cf9=!0x1);}async function _0x2887c0(_0xccd0c9,_0x475df8,_0x1990cd){const _0x5ee89d=window[_0x4b1d84([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b1d84([0x66,0x72,0x6f,0x6d])](_0x372dd3(_0x1990cd),_0x2c6f0b=>_0x2c6f0b[_0x4b1d84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4f1496=new window[(_0x4b1d84([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b1d84([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xccd0c9+_0x4b1d84([0x2e])+_0x475df8),_0x3de143=window[_0x4b1d84([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b1d84([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3de143)return;const _0x5cb00b=await _0x3de143[_0x4b1d84([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b1d84([0x6a,0x77,0x6b]),_0x21e016,{[_0x4b1d84([0x6e,0x61,0x6d,0x65])]:_0x4b1d84([0x45,0x43,0x44,0x53,0x41]),[_0x4b1d84([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b1d84([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b1d84([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3de143[_0x4b1d84([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b1d84([0x6e,0x61,0x6d,0x65])]:_0x4b1d84([0x45,0x43,0x44,0x53,0x41]),[_0x4b1d84([0x68,0x61,0x73,0x68])]:{[_0x4b1d84([0x6e,0x61,0x6d,0x65])]:_0x4b1d84([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5cb00b,_0x5ee89d,_0x4f1496)||(_0x461cf9=!0x1);}}function _0x4b668f(_0x29089c){return _0x29089c[_0x4b1d84([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b1d84([0x65,0x79]))?JSON[_0x4b1d84([0x70,0x61,0x72,0x73,0x65])](_0x372dd3(_0x29089c)):null;}function _0x372dd3(_0x7da81){return window[_0x4b1d84([0x61,0x74,0x6f,0x62])](_0x7da81[_0x4b1d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b1d84([0x2b]))[_0x4b1d84([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b1d84([0x2f])));}function _0x408740(_0x1bc850){let _0xca6938=0x1505;function _0x55a46e(_0x1d039b){for(let _0x52312f=0x0;_0x52312f<_0x1d039b[_0x4b1d84([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x52312f++){const _0xa421a7=_0x1d039b[_0x4b1d84([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x52312f);_0xca6938=(_0xca6938<<0x5)+_0xca6938+_0xa421a7,_0xca6938&=_0xca6938;}}function _0x8e8bf2(_0x401de4){Array[_0x4b1d84([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x401de4)?_0x401de4[_0x4b1d84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x8e8bf2):_0x401de4&&typeof _0x401de4==_0x4b1d84([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b1d84([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x401de4)[_0x4b1d84([0x73,0x6f,0x72,0x74])]()[_0x4b1d84([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2e80a1,_0x5b0a47])=>{_0x55a46e(_0x2e80a1),_0x8e8bf2(_0x5b0a47);}):_0x55a46e(window[_0x4b1d84([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x401de4));}return _0x8e8bf2(_0x1bc850),_0xca6938>>>0x0;}function _0x1ff5c1(_0x1bf532){return _0x1bf532[_0x4b1d84([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b1d84([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b1d84([0x30]));}function _0x590163(_0x2274d7){return _0x2274d7[_0x4b1d84([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b1d84([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b1d84([0x6a,0x6f,0x69,0x6e])]('');}function _0x42a1c9(){}function _0x4b1d84(_0x51b516){return _0x51b516['map'](_0x54b135=>String['fromCharCode'](_0x54b135))['join']('');}_0x31801b(await _0x540931());}(this);}['_moveSelectionToFootnoteDefinition'](_0x437fc4){const {plugins:_0x5048c3,editing:_0x3ff388,model:_0xb127c1}=this['editor'],_0x5a2656=_0x5048c3['get'](f)['getFootnote'](_0x437fc4);return!!_0x5a2656&&(_0xb127c1['change'](_0x2c9d3a=>{_0x2c9d3a['setSelection'](_0x2c9d3a['createPositionAt'](_0x5a2656['definition'],'end'));}),_0x3ff388['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4d0c64){const {plugins:_0x30d411,editing:_0x278d63,model:_0x46d84e}=this['editor'],_0x49815e=_0x30d411['get'](f)['getFootnote'](_0x4d0c64);return!!_0x49815e&&(_0x46d84e['change'](_0x4f584d=>{_0x4f584d['setSelection'](_0x49815e['reference'],'on');}),_0x278d63['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x433eb6}=this['editor']['model'],_0x4f30f2=this['editor']['config']['get']('footnotes.multiBlock');_0x433eb6['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x433eb6['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x433eb6['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4f30f2?_0x433eb6['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x433eb6['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x433eb6['addChildCheck'](_0x34372e=>{for(const _0x2e4448 of _0x34372e)if('footnoteDefinition'===_0x2e4448['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1ed55a}=this,{conversion:_0x5e775f,editing:_0x4dec6e}=_0x1ed55a,{t:t}=_0x1ed55a['locale'];_0x5e775f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3398c1,{writer:_0x266307,consumable:_0x4d429f})=>{const _0x2d7cf6=_0x3398c1['getChild'](0x0);if(!_0x2d7cf6||!_0x2d7cf6['is']('element','a'))return null;const _0x39ea29=_0x2d7cf6['getAttribute']('href')||'';if(!_0x39ea29['startsWith']('#'))return null;const _0x12868a=_0x39ea29['replace'](/^#/,'');if(!_0x12868a)return null;_0x4d429f['consume'](_0x2d7cf6,{'name':!0x0,'attributes':['href']});for(const {item:_0x548b72}of _0x4dec6e['view']['createRangeIn'](_0x2d7cf6))_0x548b72['is']('$textProxy')?_0x4d429f['consume'](_0x548b72['textNode'],{'name':!0x0}):_0x548b72['is']('element')&&_0x4d429f['consume'](_0x548b72,{'name':!0x0});return _0x266307['createElement']('footnoteRef',{'footnoteId':_0x12868a});}}),_0x5e775f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5d7c19,{writer:_0x16d535})=>b(_0x5d7c19,_0x16d535)}),_0x5e775f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3086c0,{writer:_0x544860})=>{const _0xf1efc1=_0x3086c0['getAttribute']('footnoteCounter');return _0x3e5be2(b(_0x3086c0,_0x544860),_0x544860,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xf1efc1)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1f9585}=this,{t:t}=_0x1f9585['locale'],{conversion:_0x573125}=_0x1f9585;_0x573125['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x573125['for']('upcast')['add'](_0x10897f=>{_0x10897f['on']('element:ol',(_0x25b07f,_0x5895a2,_0x4c88f6)=>{const _0x38ce89=_0x5895a2['viewItem'];if(!_0x38ce89['hasClass']('footnotes-list')||!_0x5895a2['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4c88f6['consumable']['consume'](_0x38ce89,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2568f2,modelCursor:_0x2a2857}=_0x4c88f6['convertChildren'](_0x5895a2['viewItem'],_0x5895a2['modelCursor']);_0x5895a2['modelRange']=_0x2568f2,_0x5895a2['modelCursor']=_0x2a2857;}),_0x10897f['on']('element:hr',(_0x1b94c1,_0x59ff50,_0xe45ebd)=>{const _0x3d07fe=_0x59ff50['viewItem'];_0x3d07fe['hasClass']('footnotes-divider')&&_0x59ff50['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xe45ebd['consumable']['consume'](_0x3d07fe,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x573125['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4e9c09,{writer:_0x41967c})=>D(_0x41967c)}),_0x573125['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xb56204,{writer:_0xe0da3f})=>{const _0x28d931=D(_0xe0da3f,{'data-footnotes-list-label':t('Footnotes')}),_0xcf009d=_0x3e5be2(_0x28d931,_0xe0da3f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xe0da3f['setCustomProperty']('footnotesDefinitions',!0x0,_0xcf009d),_0xcf009d;}});}['_defineDefinitionConverters'](){const {editor:_0x5eda0a}=this,{conversion:_0x2b1cc9,locale:_0x521df1}=_0x5eda0a,_0x454ff9=_0x5eda0a['config']['get']('footnotes.multiBlock');_0x2b1cc9['for']('upcast')['add'](_0x4995e8=>{_0x4995e8['on']('element:li',(_0x3fa48f,_0x89d9ed,_0x47abbb)=>{const _0x267d36=_0x89d9ed['viewItem'];if(!_0x267d36['hasClass']('footnote-definition')||!_0x267d36['getAttribute']('id'))return;const _0x1b18cc=_0x267d36['parent'];if(!_0x1b18cc['is']('element','ol')||!_0x1b18cc['hasClass']('footnotes-list'))return;if(!_0x47abbb['consumable']['test'](_0x267d36,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x582c78=_0x47abbb['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x267d36['getAttribute']('id')});if(!_0x47abbb['safeInsert'](_0x582c78,_0x89d9ed['modelCursor']))return;_0x47abbb['consumable']['consume'](_0x267d36,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x368b32=Array['from'](_0x267d36['getChildren']())['find'](_0x3867fb=>_0x3867fb['is']('element')&&_0x3867fb['hasClass']('footnote-content'));for(const _0x36c968 of _0x267d36['getChildren']())_0x36c968['is']('element')&&(_0x47abbb['consumable']['consume'](_0x36c968,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x47abbb['consumable']['consume'](_0x36c968,{'name':!0x0,'classes':'footnote-content'}));if(_0x368b32){if(_0x454ff9)_0x47abbb['convertChildren'](_0x368b32,_0x582c78);else{const _0x44d46f=_0x47abbb['writer']['createElement']('footnoteInlineContent');_0x47abbb['writer']['insert'](_0x44d46f,_0x582c78),_0x47abbb['convertChildren'](_0x368b32,_0x44d46f);}}_0x47abbb['updateConversionResult'](_0x582c78,_0x89d9ed);});}),_0x2b1cc9['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4a36a8,{writer:_0xef0328})=>y(_0x4a36a8,_0xef0328,_0x521df1,{'dataPipeline':!0x0})}),_0x2b1cc9['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x18688e,{writer:_0x3b75e0})=>y(_0x18688e,_0x3b75e0,_0x521df1)});}['_defineBogusParagraphConverters'](){const {editor:_0x1682d9}=this,{conversion:_0x18f4df}=_0x1682d9;_0x1682d9['config']['get']('footnotes.multiBlock')?(_0x18f4df['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x18f4df['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1682d9['model']['document'],'change:data',()=>{!function(_0x297f6e,_0x29439d){const _0xf7078a=_0x297f6e['document']['differ'],_0x440878=new Set();for(const _0xa3363d of _0xf7078a['getChanges']()){const _0x35f9af='attribute'==_0xa3363d['type']?_0xa3363d['range']['start']['parent']:_0xa3363d['position']['parent'];_0x35f9af['is']('element','footnoteDefinition')&&_0x440878['add'](_0x35f9af);}for(const _0x396d9e of _0x440878['values']()){const _0x1b9f6f=Array['from'](_0x396d9e['getChildren']())['filter'](_0x4399cd=>v(_0x4399cd,_0x29439d['mapper']));for(const _0x8d7c5b of _0x1b9f6f)_0x29439d['reconvertItem'](_0x8d7c5b);}}(_0x1682d9['model'],_0x1682d9['editing']);})):(_0x18f4df['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x18f4df['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1c778b,{writer:_0x28cdad})=>{const _0x416969=_0x28cdad['createContainerElement']('span');return _0x28cdad['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x416969),_0x416969;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1ea670}=this,{editing:_0x1b1a01,t:t}=_0x1ea670,_0x11dacc=_0x1ea670['model']['document']['selection'];_0x1ea670['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1ea670['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1b1a01['view']['document'],'enter',(_0x2c723e,_0x22743d)=>{const _0x385da8=function(_0x329776){const _0x17edd6=_0x329776['getSelectedElement']();if(_0x17edd6?.['is']('element','footnoteRef'))return _0x17edd6;return null;}(_0x11dacc);if(_0x385da8){const _0x496501=_0x385da8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x496501),_0x22743d['preventDefault'](),_0x2c723e['stop']();}},{'context':_0xe316e2});}['_defineClickHandlers'](){const {editor:_0x2ce053}=this,{editing:_0x228537}=_0x2ce053;_0x2ce053['editing']['view']['addObserver'](_0x502c1d),_0x2ce053['editing']['view']['addObserver'](_0x32dba0);let _0x189bf3=!0x1;this['listenTo'](_0x228537['view']['document'],'pointerdown',(_0x4bddbb,_0xc32b7d)=>{const {target:_0x5396ed}=_0xc32b7d,_0x488d78=_0x228537['view']['document']['selection'];_0x189bf3=!!(_0x5396ed?.['is']('element','a')&&_0x5396ed['parent']?.['is']('element','sup')&&_0x5396ed['parent']['hasClass']('footnote'))&&_0x488d78['getSelectedElement']()===_0x5396ed['parent'];},{'priority':'high'}),this['listenTo'](_0x228537['view']['document'],'click',(_0x3bc20b,_0x3bba8a)=>{const {target:_0x3c705e}=_0x3bba8a;if(!_0x3c705e?.['is']('element','a'))return;if(_0x3c705e['parent']?.['is']('element','sup')&&_0x3c705e['parent']['hasClass']('footnote')&&!_0x189bf3)return void _0x3bba8a['preventDefault']();let _0x409fcc=_0x3c705e['getAttribute']('href');if(!_0x409fcc?.['startsWith']('#'))return;_0x409fcc=_0x409fcc['slice'](0x1);let _0x159165=!0x1;(_0x409fcc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x409fcc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x409fcc))&&(_0x159165=!0x0),_0x159165&&(_0x3bba8a['preventDefault'](),_0x3bc20b['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x5b6f63}={}){return(_0x3d8a48,{writer:_0x3e1d57})=>{if(!g(_0x3d8a48))return null;if(!_0x5b6f63)return _0x3e1d57['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x332418=_0x3e1d57['createContainerElement']('p');return _0x3e1d57['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x332418),_0x332418;};}function g(_0x535703){const {parent:_0x151027}=_0x535703;if(!_0x151027?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x151027['childCount'])return!0x1;for(const _0x160f3e of _0x535703['getAttributeKeys']())if(!_0x160f3e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x160f3e)return!0x1;return!0x0;}function v(_0x3f69a9,_0x44cce5){if(!_0x3f69a9['is']('element','paragraph'))return!0x1;const _0x1ad1cb=_0x44cce5['toViewElement'](_0x3f69a9);return!!_0x1ad1cb&&g(_0x3f69a9)!==_0x1ad1cb['is']('element','span');}function Q(_0x2c1ccc){return _0xe316e2(_0x2c1ccc)&&_0x2c1ccc['is']('containerElement')&&!!_0x2c1ccc['getCustomProperty']('footnotesDefinitions');}function D(_0x3f6ffe,_0x1e4d06={}){const _0x1ec5e2=_0x3f6ffe['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x3af2e3=_0x3f6ffe['createContainerElement']('ol',{'class':'footnotes-list'},_0x3f6ffe['createSlot']());return _0x3f6ffe['createContainerElement']('div',{'class':'footnotes',..._0x1e4d06},[_0x1ec5e2,_0x3af2e3]);}function b(_0xf94c47,_0x6bbc98){const _0x169359=_0xf94c47['getAttribute']('footnoteId'),_0x31667a=_0xf94c47['getAttribute']('footnoteCounter'),_0x462064=_0x6bbc98['createUIElement']('a',{'href':'#'+_0x169359},function(_0x2bd3c2){const _0x5c8ddb=this['toDomElement'](_0x2bd3c2);return _0x5c8ddb['textContent']=_0x31667a,_0x5c8ddb;}),_0x79d215=_0x6bbc98['createContainerElement']('sup',{'id':'ref-'+_0x169359,'class':'footnote'},[_0x462064]);return _0x79d215['getFillerOffset']=()=>null,_0x79d215;}function y(_0x56b7f1,_0x187dad,_0x1c3748,{dataPipeline:_0x4f78d4}={}){const {t:t}=_0x1c3748,_0x5f1f71=_0x56b7f1['getAttribute']('footnoteId'),_0x1134d6=_0x187dad['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5f1f71},function(_0x242fcc){const _0xb2b8e2=this['toDomElement'](_0x242fcc);return _0xb2b8e2['innerText']='^',_0xb2b8e2;}),_0x56da9b=_0x4f78d4?_0x187dad['createContainerElement']('div',{'class':'footnote-content'}):_0x4c83a2(_0x187dad['createEditableElement']('div',{'class':'footnote-content'}),_0x187dad,{'label':t('Footnote\x20content.')});return _0x187dad['insert'](_0x187dad['createPositionAt'](_0x56da9b,0x0),_0x187dad['createSlot']()),_0x187dad['createContainerElement']('li',{'class':'footnote-definition','id':_0x5f1f71},[_0x1134d6,_0x56da9b]);}class e extends _0x52c91a{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1f257f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x34d6e9}=this,{plugins:_0x140d1b,model:_0x489fca}=_0x34d6e9,_0x500b87=_0x140d1b['get'](_0x1f257f),_0x2db072=_0x140d1b['get'](f);this['listenTo'](_0x500b87,'outputTransformation',(_0x2f4363,_0x1b52b6)=>{const _0x19ec1b=l(_0x489fca['createRangeIn'](_0x1b52b6['content']));if(!_0x19ec1b['length'])return;const _0x2c2f85=_0x2db072['getFootnotes'](),_0x1526be=_0x19ec1b['reduce']((_0xda4598,_0xbe40ff)=>{const _0x138a1f=_0x2c2f85['find'](_0x1fdad0=>_0x1fdad0['id']===_0xbe40ff);if(_0x138a1f){const _0x3165e9=_0x34d6e9['data']['toView'](_0x138a1f['definition'],{'isClipboardPipeline':!0x0}),_0x2c5985=_0x34d6e9['data']['htmlProcessor']['toData'](_0x3165e9);_0xda4598[_0x138a1f['id']]=_0x2c5985;}return _0xda4598;},Object['create'](null));_0x1b52b6['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x1526be));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x475f06}=this,{model:_0x1d4d51,plugins:_0x1354a0}=_0x475f06,{view:_0x5b559e}=_0x475f06['editing'],_0x570e3f=_0x1354a0['get'](_0x1f257f),_0x26cc72=_0x1354a0['get'](f),_0x16e910=_0x475f06['config']['get']('footnotes.multiBlock');let _0x3fe476=null;this['listenTo'](_0x5b559e['document'],'clipboardInput',(_0x323a0e,_0xb968fb)=>{const _0x4a6781=_0xb968fb['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x3fe476=_0x4a6781?JSON['parse'](_0x4a6781):null;}),this['listenTo'](_0x570e3f,'contentInsertion',(_0x517fec,_0x362228)=>{const _0x45b146=_0x362228['sourceEditorId']===this['editor']['id'];_0x45b146&&'drop'===_0x362228['method']||_0x1d4d51['change'](_0x2fb954=>{let _0x5ae4ef=_0x26cc72['getFootnotesDefinitionsObjectElement']();const _0x81af61=!!_0x5ae4ef&&Array['from'](_0x1d4d51['document']['selection']['getSelectedBlocks']())['includes'](_0x5ae4ef);if(!_0x3fe476&&function(_0x54288d){for(const {item:_0x3bd072}of _0x54288d)if(_0x3bd072['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x1d4d51['createRangeIn'](_0x362228['content']))&&(_0x3fe476=function(_0x39b828,_0x5ecce7){const _0x2ccd57=c(_0x39b828,_0x5ecce7);if(!_0x2ccd57)return null;const _0x4c09bd=Object['create'](null);for(const _0x430aed of _0x2ccd57['getChildren']())_0x430aed['is']('element','footnoteDefinition')&&_0x430aed['hasAttribute']('footnoteId')&&(_0x4c09bd[_0x430aed['getAttribute']('footnoteId')]=_0x39b828['cloneElement'](_0x430aed,!0x0));return Object['keys'](_0x4c09bd)['length']?_0x4c09bd:null;}(_0x2fb954,_0x362228['content'])),(_0x5ae4ef&&!_0x81af61||!_0x5ae4ef&&!_0x3fe476)&&function(_0x4752da,_0x2df3ff){const _0x33f5ce=[];for(const {item:_0x2f1364}of _0x4752da['createRangeIn'](_0x2df3ff))_0x2f1364['is']('element','footnotesDefinitions')&&_0x33f5ce['push'](_0x2f1364);for(const _0x2c2ecc of _0x33f5ce)_0x4752da['remove'](_0x2c2ecc);}(_0x2fb954,_0x362228['content']),!_0x3fe476)return;const {selection:_0x214335}=_0x1d4d51['document'],_0x46d8fe=_0x214335['getFirstRange']()['root'];_0x5ae4ef&&!_0x81af61||(_0x5ae4ef=c(_0x2fb954,_0x362228['content']),_0x5ae4ef||=_0x26cc72['_insertEmptyFootnotesDefinitionsContainer'](_0x2fb954,_0x46d8fe));const _0x2a16bb=Array['from'](_0x214335['getRanges']())['flatMap'](l),_0x5151a9=function(_0x30892b,_0x374459,_0x3ecd15){const _0x377479=Object['create'](null);for(const {item:_0x5e66f2}of _0x30892b['createRangeIn'](_0x374459))if(_0x5e66f2['is']('element','footnoteRef')){const _0x4cd6a4=_0x5e66f2['getAttribute']('footnoteId');if(!_0x3ecd15(_0x4cd6a4))continue;_0x377479[_0x4cd6a4]||(_0x377479[_0x4cd6a4]=_0x103fff()),_0x30892b['setAttribute']('footnoteId',_0x377479[_0x4cd6a4],_0x5e66f2);}return _0x377479;}(_0x2fb954,_0x362228['content'],_0x26af1b=>{if(!_0x45b146)return!0x0;return!!_0x26cc72['getFootnote'](_0x26af1b)&&!_0x2a16bb['includes'](_0x26af1b);});for(const [_0x2d62a1,_0x2ecf02]of Object['entries'](_0x3fe476)){const _0x48f098=_0x5151a9[_0x2d62a1]||_0x2d62a1;let _0x544da7;if('string'!=typeof _0x2ecf02)_0x544da7=_0x2ecf02,_0x48f098!==_0x2d62a1&&_0x2fb954['setAttribute']('footnoteId',_0x48f098,_0x544da7);else{_0x544da7=_0x2fb954['createElement']('footnoteDefinition',{'footnoteId':_0x48f098});const _0x3d126b=_0x475f06['data']['htmlProcessor']['toView'](_0x2ecf02);let _0x138cb4;if(_0x16e910)_0x138cb4=_0x475f06['data']['toModel'](_0x3d126b,_0x544da7);else{_0x138cb4=_0x2fb954['createElement']('footnoteInlineContent');const _0x580381=_0x475f06['data']['toModel'](_0x3d126b,_0x138cb4);_0x2fb954['insert'](_0x580381,_0x138cb4);}_0x2fb954['append'](_0x138cb4,_0x544da7);}_0x2fb954['insert'](_0x544da7,_0x5ae4ef,'end');}_0x3fe476=null;});});}}function c(_0x4c0e8f,_0x75084d){for(const {item:_0x47ead9}of _0x4c0e8f['createRangeIn'](_0x75084d))if(_0x47ead9['is']('element','footnotesDefinitions'))return _0x47ead9;return null;}function l(_0x6b58ed){const _0xd21de6=new Set();for(const {item:_0x23b06e}of _0x6b58ed)_0x23b06e['is']('element','footnoteRef')&&_0xd21de6['add'](_0x23b06e['getAttribute']('footnoteId'));return Array['from'](_0xd21de6);}class i extends _0x52c91a{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x164526}=this,{componentFactory:_0x1761db}=_0x164526['ui'];_0x1761db['add']('insertFootnote',E(_0x164526,_0xaa47e)),_0x1761db['add']('menuBar:insertFootnote',E(_0x164526,_0x448ada)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x2b74c9=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x494838;for(const _0x15511e in _0x2b74c9){const _0x388b41=_0x15511e,_0x132e9a=_0x2b74c9[_0x388b41];if('footnotesLicenseKeyValid'==_0x132e9a||'footnotesLicenseKeyInvalid'==_0x132e9a||'footnotesLicenseKeyExpired'==_0x132e9a||'footnotesLicenseKeyDomainLimit'==_0x132e9a||'footnotesLicenseKeyNotAllowed'==_0x132e9a||'footnotesLicenseKeyEvaluationLimit'==_0x132e9a||'footnotesLicenseKeyUsageLimit'==_0x132e9a){delete _0x2b74c9[_0x388b41],_0x494838=_0x132e9a,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x494838&&_0x2b74c9['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x494838&&_0x2b74c9['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x494838&&_0x2b74c9['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x494838&&_0x2b74c9['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x494838&&_0x2b74c9['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x494838&&_0x2b74c9['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x39202d,_0x1b93b4){const _0x9e8789=_0x39202d['commands']['get']('insertFootnote');return _0x54f477=>{const {t:t}=_0x54f477,_0x3630fb=new _0x1b93b4(_0x54f477),_0x2d5dbf=_0x3630fb instanceof _0x448ada;return _0x3630fb['bind']('isEnabled')['to'](_0x9e8789,'isEnabled'),_0x3630fb['set']({'label':t(_0x2d5dbf?'Footnote':'Insert\x20footnote'),'icon':_0x3c02ef,'tooltip':!0x0}),_0x3630fb['on']('execute',()=>{_0x9e8789['execute'](),_0x39202d['editing']['view']['focus']();}),_0x3630fb;};}class lt extends _0x52c91a{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 _0x17b8c2{['refresh'](){const {editor:_0x6283b0}=this,_0x4c0013=_0x6283b0['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4c0013,this['value']=_0x4c0013?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xa491b0}){const {editor:_0xbf5791}=this,_0x48c3fd=_0xbf5791['plugins']['get'](f),_0x2ac6e9=_0x48c3fd['getFootnotesDefinitionsObjectElement']();_0x2ac6e9&&W['includes'](_0xa491b0)&&_0xbf5791['model']['change'](_0x102b8c=>{_0x102b8c['setAttribute']('footnotesListStyle',_0xa491b0,_0x2ac6e9),_0x48c3fd['_updateFootnotesCounters'](_0x102b8c);});}}class C extends _0x17b8c2{['refresh'](){const {editor:_0x5de300}=this,_0x1896e9=_0x5de300['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1896e9,this['value']=_0x1896e9?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x37f874}){const {editor:_0x31b27a}=this,_0x2c55f0=_0x31b27a['plugins']['get'](f),_0x53336a=_0x2c55f0['getFootnotesDefinitionsObjectElement']();_0x53336a&&Number['isInteger'](_0x37f874)&&_0x31b27a['model']['change'](_0x3c32d4=>{_0x3c32d4['setAttribute']('footnotesListStart',_0x37f874,_0x53336a),_0x2c55f0['_updateFootnotesCounters'](_0x3c32d4);});}}class P extends _0x52c91a{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xc19c62}=this;_0xc19c62['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0xc19c62['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0xc19c62['commands']['add']('footnotesStyle',new S(_0xc19c62)),_0xc19c62['commands']['add']('footnotesStart',new C(_0xc19c62)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2ae7b0}=this,{schema:_0x545226}=_0x2ae7b0['model'];_0x545226['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4238f1}=this,{conversion:_0x5443d1,model:_0x661ca6}=_0x4238f1,{schema:_0x4aee22}=_0x661ca6;_0x5443d1['for']('upcast')['add'](_0x5377dd=>{_0x5377dd['on']('element:ol',(_0x42a41a,_0x53aade,_0x3e4839)=>{const _0x4329e8=_0x53aade['viewItem'],_0x24c0f3=_0x53aade['modelCursor']?.['parent'];_0x4329e8['hasClass']('footnotes-list')&&_0x24c0f3?.['is']('element','footnotesDefinitions')&&(function(_0x3002f3,_0xa83119,_0x318970,_0x4876d3){if(!_0x4876d3['checkAttribute'](_0xa83119,'footnotesListStart'))return;let _0x3fb783=0x1;const _0x381e95=_0x318970['consumable']['consume'](_0x3002f3,{'attributes':'start'});if(_0x381e95){const _0x35a08c=Number['parseInt'](_0x3002f3['getAttribute']('start'),0xa);Number['isNaN'](_0x35a08c)||(_0x3fb783=_0x35a08c);}!_0x381e95&&_0xa83119['hasAttribute']('footnotesListStart')||_0x318970['writer']['setAttribute']('footnotesListStart',_0x3fb783,_0xa83119);}(_0x4329e8,_0x24c0f3,_0x3e4839,_0x4aee22),function(_0x57fee5,_0x4150ca,_0x512123,_0x591303){if(!_0x591303['checkAttribute'](_0x4150ca,'footnotesListStyle'))return;let _0x4f3e18='decimal',_0x453f52=!0x1;if(_0x512123['consumable']['consume'](_0x57fee5,{'attributes':'type'})){const _0x2b39da={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x57fee5['getAttribute']('type')];_0x2b39da&&(_0x4f3e18=_0x2b39da),_0x453f52=!0x0;}_0x512123['consumable']['consume'](_0x57fee5,{'styles':'list-style-type'})&&(_0x4f3e18=function(_0x5c601b){switch(_0x5c601b){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x5c601b;}}(_0x57fee5['getStyle']('list-style-type')),_0x453f52=!0x0),!_0x453f52&&_0x4150ca['hasAttribute']('footnotesListStyle')||_0x512123['writer']['setAttribute']('footnotesListStyle',_0x4f3e18,_0x4150ca);}(_0x4329e8,_0x24c0f3,_0x3e4839,_0x4aee22));});}),_0x5443d1['for']('downcast')['add'](_0x3df0fe=>{_0x3df0fe['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x6c7a0f,_0x1b7fd2,_0x255b1e)=>{if(!_0x255b1e['consumable']['consume'](_0x1b7fd2['item'],_0x6c7a0f['name']))return;const _0xce1923=M(_0x1b7fd2['item'],_0x255b1e['mapper']),{attributeNewValue:_0x5e0a29}=_0x1b7fd2;null==_0x5e0a29||0x1===_0x5e0a29?_0x255b1e['writer']['removeAttribute']('start',_0xce1923):_0x255b1e['writer']['setAttribute']('start',String(_0x5e0a29),_0xce1923);}),_0x3df0fe['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x320bd7,_0x401267,_0x268edf)=>{if(!_0x268edf['consumable']['consume'](_0x401267['item'],_0x320bd7['name']))return;const _0x403159=M(_0x401267['item'],_0x268edf['mapper']),{attributeNewValue:_0x4b2eb0}=_0x401267;_0x4b2eb0&&'decimal'!==_0x4b2eb0?_0x268edf['writer']['setStyle']('list-style-type',_0x4b2eb0,_0x403159):_0x268edf['writer']['removeStyle']('list-style-type',_0x403159);});});}['_definePostfixer'](){const {editor:_0x45f997}=this,{model:_0x493da6}=_0x45f997,_0x31a182=_0x45f997['plugins']['get'](f),_0x2965ad=this['_getDefaultListStyle'](),_0x4a5c20=this['_getDefaultStartIndex']();_0x493da6['document']['registerPostFixer'](_0x3d7f24=>{const _0x14e2a6=_0x493da6['document']['differ']['getChanges']();let _0xff80e3=!0x1;for(const _0x58d6c7 of _0x14e2a6){if('insert'!==_0x58d6c7['type']||'$text'===_0x58d6c7['name'])continue;const _0x5565b1=_0x493da6['createRangeOn'](_0x58d6c7['position']['nodeAfter']);for(const _0x930ca3 of _0x5565b1['getItems']())_0x930ca3['is']('element','footnotesDefinitions')&&(!_0x930ca3['hasAttribute']('footnotesListStart')&&_0x493da6['schema']['checkAttribute'](_0x930ca3,'footnotesListStart')&&(_0x3d7f24['setAttribute']('footnotesListStart',_0x4a5c20,_0x930ca3),_0xff80e3=!0x0),!_0x930ca3['hasAttribute']('footnotesListStyle')&&_0x493da6['schema']['checkAttribute'](_0x930ca3,'footnotesListStyle')&&(_0x3d7f24['setAttribute']('footnotesListStyle',_0x2965ad,_0x930ca3),_0xff80e3=!0x0));}return _0xff80e3&&_0x31a182['_updateFootnotesCounters'](_0x3d7f24),_0xff80e3;});}['_defineFormatter'](){const {editor:_0x20127f}=this;_0x20127f['plugins']['get'](f)['setFootnoteFormatter'](_0x1d0a71=>this['_formatFootnoteListValue'](_0x1d0a71));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x536d08,value:_0xb0ccb5,digits:_0x4df090}){const _0x3b70a1=_0x536d08['getAttribute']('footnotesListStyle'),_0x28eebf=_0x536d08['getAttribute']('footnotesListStart'),_0xf8f602=Math['floor'](_0xb0ccb5)+(_0x28eebf??0x1)-0x1;switch(_0x3b70a1){case'decimal-leading-zero':return function(_0x53804a,_0xed5f48){return String(_0x53804a)['padStart'](_0xed5f48,'0');}(_0xf8f602,Math['max'](0x2,_0x4df090));case'lower-alpha':case'lower-latin':return N(_0xf8f602,!0x1);case'upper-alpha':case'upper-latin':return N(_0xf8f602,!0x0);case'lower-roman':return X(_0xf8f602,!0x1);case'upper-roman':return X(_0xf8f602,!0x0);default:return String(_0xf8f602);}}}function M(_0x9c553f,_0x563778){const _0x3b9f73=_0x563778['toViewElement'](_0x9c553f);return Array['from'](_0x3b9f73['getChildren']())['find'](_0x118b59=>_0x118b59['is']('element','ol')&&_0x118b59['hasClass']('footnotes-list'));}function N(_0x44bad5,_0x5df893){let _0x3a8d91='',_0x2c936f=_0x44bad5;for(;_0x2c936f>0x0;){const _0x5f4d1a=(_0x2c936f-0x1)%0x1a;_0x3a8d91=String['fromCharCode'](0x61+_0x5f4d1a)+_0x3a8d91,_0x2c936f=Math['floor']((_0x2c936f-0x1)/0x1a);}return _0x5df893?_0x3a8d91['toUpperCase']():_0x3a8d91;}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(_0x23f3df,_0x1eb321){let _0x236463='',_0x400aab=_0x23f3df;for(const {value:_0x5272a8,numeral:_0x13f439}of V)for(;_0x400aab>=_0x5272a8;)_0x236463+=_0x13f439,_0x400aab-=_0x5272a8;return _0x1eb321?_0x236463:_0x236463['toLowerCase']();}class J extends _0x1d7450{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x5ec28e();['focusCycler'];constructor(_0x2b6917,{styleButtonViews:_0xee05e,styleGridAriaLabel:_0x4b7fed}){super(_0x2b6917),(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'](_0xee05e,_0x4b7fed),[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 _0x4431a9 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4431a9['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 _0x4ef982=_0x30e02f=>_0x30e02f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4ef982),this['keystrokes']['set']('arrowleft',_0x4ef982),this['keystrokes']['set']('arrowup',_0x4ef982),this['keystrokes']['set']('arrowdown',_0x4ef982);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2cda21,_0x22cb13){const _0x59af9e=new _0x1d7450(this['locale']);return _0x59af9e['children']=_0x59af9e['createCollection'](),_0x59af9e['children']['addMany'](_0x2cda21),_0x59af9e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x22cb13,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x59af9e['children']}),_0x59af9e['children']['delegate']('execute')['to'](this),_0x59af9e['focus']=function(){for(const _0x47dd57 of this['children'])if(_0x47dd57 instanceof _0xaa47e&&_0x47dd57['isOn'])return void _0x47dd57['focus']();this['children']['first']['focus']();},_0x59af9e['focusTracker']=new rt(),_0x59af9e['keystrokes']=new nt(),_0x59af9e['render'](),_0x59af9e['keystrokes']['listenTo'](_0x59af9e['element']),this['children']['add'](_0x59af9e),_0x59af9e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x35ce10=this['_createStartIndexPropertyView'](),_0x3d27b9=[_0x35ce10],_0x1f3c23=new it(this['locale'],_0x3d27b9);return _0x1f3c23['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1f3c23['buttonView']['bind']('isEnabled')['toMany'](_0x3d27b9,'isEnabled',(..._0x87ea24)=>_0x87ea24['some'](_0x1363b6=>_0x1363b6)),_0x1f3c23['buttonView']['on']('change:isEnabled',(_0x73768f,_0x5ace08,_0x5f1948)=>{_0x5f1948||(_0x1f3c23['isCollapsed']=!0x0);}),this['children']['add'](_0x1f3c23),[_0x35ce10,_0x1f3c23];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x104c62=new et(this['locale'],ot);return _0x104c62['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x104c62['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x104c62['fieldView']['on']('input',()=>{const _0x4294ed=_0x104c62['fieldView']['element'],_0x121b05=_0x4294ed['valueAsNumber'];Number['isNaN'](_0x121b05)?_0x104c62['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4294ed['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x121b05}):_0x104c62['errorText']=t(_0x121b05<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x104c62;}}class j extends _0x52c91a{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3f4586,_0x3548d2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x567a15}=this,{componentFactory:_0x1d3d1e}=_0x567a15['ui'];_0x567a15['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1d3d1e['add']('footnotesStyle',function(_0x2e5292){return _0x2e0c1f=>{const {t:t}=_0x2e0c1f,_0x541bd8=_0x2e5292['commands']['get']('footnotesStyle'),_0x3e310f=_0x4b8e9c(_0x2e0c1f),{buttonView:_0x419ceb}=_0x3e310f;return _0x3e310f['class']='ck-footnotes-styles-dropdown',_0x3e310f['bind']('isEnabled')['to'](_0x541bd8,'isEnabled'),_0x419ceb['set']({'label':t('Footnotes\x20style'),'icon':_0x3c02ef,'tooltip':!0x0}),_0x3e310f['once']('change:isOpen',()=>{const _0x93406d=function({editor:_0x5e9626,dropdownView:_0x50e36d}){const {t:t}=_0x5e9626['locale'],_0x15c5e2=t('Footnotes\x20definitions\x20styles'),_0x5a62d5=function(_0x27316c){const t=_0x27316c['locale']['t'],_0x4931aa=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5aca3a},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x24ed39},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4838c6},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5920a1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3e9ff8},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x315415}];return _0x4931aa['map'](function(_0x297a13){const _0x2f5a11=_0x297a13['locale'];return({label:_0x493b09,icon:_0x23576d,tooltip:_0x3c54dc,style:_0x486a06})=>{const _0x1d12e3=_0x297a13['commands']['get']('footnotesStyle'),_0x2d4197=new _0xaa47e(_0x2f5a11);return _0x2d4197['set']({'label':_0x493b09,'icon':_0x23576d,'tooltip':_0x3c54dc}),_0x2d4197['bind']('isOn')['to'](_0x1d12e3,'value',_0x179e2c=>_0x179e2c===_0x486a06),_0x2d4197['bind']('isEnabled')['to'](_0x1d12e3,'isEnabled'),_0x2d4197['on']('execute',()=>{_0x297a13['execute']('footnotesStyle',{'value':_0x486a06}),_0x297a13['editing']['view']['focus']();}),_0x2d4197;};}(_0x27316c));}(_0x5e9626),_0x459a09=new J(_0x5e9626['locale'],{'styleGridAriaLabel':_0x15c5e2,'styleButtonViews':_0x5a62d5}),_0x578edd=_0x5e9626['commands']['get']('footnotesStart');return _0x459a09['startIndexFieldView']['bind']('isEnabled')['to'](_0x578edd),_0x459a09['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x578edd),_0x459a09['on']('footnotesListStart',(_0x380616,_0x3069ea)=>{_0x5e9626['execute']('footnotesStart',{'value':_0x3069ea['startIndex']});}),_0x459a09['delegate']('execute')['to'](_0x50e36d),_0x459a09;}({'editor':_0x2e5292,'dropdownView':_0x3e310f});_0x3e310f['panelView']['children']['add'](_0x93406d);}),_0x3e310f;};}(_0x567a15));}['afterInit'](){const {editor:_0x4d26d2}=this,{t:t}=_0x4d26d2['locale'],_0x64acd6=_0x4d26d2['plugins']['get'](_0x3548d2),{defaultPositions:_0x237a9f}=_0x33d17d;_0x64acd6['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x4d26d2['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x2b88e1=>{let _0x2beae2=_0x2b88e1['getFirstPosition']()?.['parent'];return _0x2beae2?.['is']('$text')&&(_0x2beae2=_0x2beae2['parent']),_0x2beae2?.['is']('element')?_0x2beae2['findAncestor'](Q):null;},'positions':[_0x237a9f['southArrowNorth'],_0x237a9f['southArrowNorthMiddleWest'],_0x237a9f['southArrowNorthMiddleEast'],_0x237a9f['southArrowNorthWest'],_0x237a9f['southArrowNorthEast'],_0x237a9f['northArrowSouth'],_0x237a9f['northArrowSouthMiddleWest'],_0x237a9f['northArrowSouthMiddleEast'],_0x237a9f['northArrowSouthWest'],_0x237a9f['northArrowSouthEast'],_0x237a9f['viewportStickyNorth']]});}}class ft extends _0x52c91a{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 _0x1fe668,Command as _0x338c19}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1cba50,isWidget as _0x3fd354,toWidgetEditable as _0x2e516e,WidgetToolbarRepository as _0x7a5d21}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1db42f,logWarning as _0x25d6b8,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x9c7408,ClickObserver as _0x1b8a61}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x499f5f}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5ec42c,ButtonView as _0x4fa049,View as _0x6b212b,ViewCollection as _0x18d75f,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x1155da,BalloonPanelView as _0x2b6864,createDropdown as _0x5d3538}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xfb31bc,IconListStyleDecimal as _0x478e9,IconListStyleDecimalLeadingZero as _0xc13896,IconListStyleLowerRoman as _0x45067d,IconListStyleUpperRoman as _0x18bc3e,IconListStyleLowerLatin as _0x91079c,IconListStyleUpperLatin as _0x2f870c}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2f2c5c,_0x35fa52){this['_model']=_0x2f2c5c,this['_elementName']=_0x35fa52['elementName'],this['_getElementKey']=_0x35fa52['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xbcbfb2){const _0x8e0aad=new Set(),_0x3a7067=new Map();for(const _0x4c6da6 of _0xbcbfb2){if('insert'===_0x4c6da6['type']&&'$text'!==_0x4c6da6['name']&&_0x4c6da6['position']['nodeAfter']){const _0x43e642=this['_model']['createRangeOn'](_0x4c6da6['position']['nodeAfter']);for(const _0x3f1ef6 of _0x43e642['getItems']()){if(!_0x3f1ef6['is']('element',this['_elementName']))continue;const _0x39db62=this['_getElementKey'](_0x3f1ef6);_0x3a7067['has'](_0x39db62)||_0x3a7067['set'](_0x39db62,[]),_0x3a7067['get'](_0x39db62)['push'](_0x3f1ef6);}}if('remove'===_0x4c6da6['type']&&_0x4c6da6['name']===this['_elementName']){const _0x125f84=this['_getElementKey']({'getAttribute':_0xc318e7=>_0x4c6da6['attributes']['get'](_0xc318e7)});_0x8e0aad['add'](_0x125f84);}}for(const [_0x46cfe9,_0x41b703]of this['_trackedElements'])'$graveyard'===_0x41b703['root']['rootName']&&_0x8e0aad['add'](_0x46cfe9);for(const _0x443981 of _0x8e0aad)this['_trackedElements']['delete'](_0x443981);for(const [_0x198f3d,_0x34f3a6]of _0x3a7067)this['_trackedElements']['set'](_0x198f3d,_0x34f3a6[_0x34f3a6['length']-0x1]);const _0x240045=new Set();for(const [_0x5be1fb,_0x45854e]of _0x3a7067)_0x8e0aad['has'](_0x5be1fb)&&(_0x240045['add'](_0x45854e[0x0]),_0x45854e['length']>0x1?_0x3a7067['set'](_0x5be1fb,_0x45854e['slice'](0x1)):_0x3a7067['delete'](_0x5be1fb),_0x8e0aad['delete'](_0x5be1fb));return{'removed':Array['from'](_0x8e0aad),'inserted':Array['from'](_0x3a7067['values']())['flat'](),'moved':Array['from'](_0x240045)};}}class f extends _0x1fe668{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x3226f1){super(_0x3226f1),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2e07b1=>_0x2e07b1['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x50d9cd=>_0x50d9cd['getAttribute']('footnoteId')});}['init'](){const {editor:_0x23cd39}=this,{model:_0x38cad1,data:_0x1dfae6}=_0x23cd39;_0x38cad1['document']['registerPostFixer'](_0x192da0=>{const _0x1983bc=_0x38cad1['document']['differ']['getChanges']();let _0x2c6551=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x192da0,_0x1983bc)&&(_0x2c6551=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x192da0,_0x1983bc)&&(_0x2c6551=!0x0),this['_handleFootnoteReferencesChanges'](_0x192da0,_0x1983bc)&&(_0x2c6551=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x192da0)&&(_0x2c6551=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x192da0)&&(_0x2c6551=!0x0),this['_sortFootnoteDefinitions'](_0x192da0)&&(_0x2c6551=!0x0),_0x2c6551;}),this['listenTo'](_0x38cad1['document'],'change:data',()=>{_0x38cad1['enqueueChange']({'isUndoable':!0x1},_0x52ff32=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x52ff32);});},{'priority':'low'}),this['listenTo'](_0x1dfae6,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x159375){return this['_footnotes']['find'](_0x5a8a1c=>_0x5a8a1c['id']===_0x159375)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2e444c){this['_footnoteFormatter']=_0x2e444c;}['_updateFootnotesCounters'](_0x1494b8,_0x5c1800=0x0){let _0x227b20=!0x1;for(let _0xf139db=_0x5c1800;_0xf139db<this['_footnotes']['length'];_0xf139db++)this['_updateFootnoteRefCounter'](_0x1494b8,_0xf139db)&&(_0x227b20=!0x0);return _0x227b20;}['_insertEmptyFootnotesDefinitionsContainer'](_0x360fc7,_0x132be3){const _0x4a8353=_0x360fc7['createElement']('footnotesDefinitions',{});return _0x360fc7['append'](_0x4a8353,_0x132be3),this['_footnotesDefinitions']=_0x4a8353,_0x4a8353;}['_ensureFootnotesDefinitionsContainerExists'](_0x211355){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4cf643=this['_footnotes'][0x0]['reference']['root'],_0x3c42a0=this['_insertEmptyFootnotesDefinitionsContainer'](_0x211355,_0x4cf643);for(const _0x48e4a8 of this['_footnotes'])_0x48e4a8['definition']['parent']||_0x211355['insert'](_0x48e4a8['definition'],_0x3c42a0,'end');this['_updateFootnotesCounters'](_0x211355);}['_handleFootnotesDefinitionsObjectChanges'](_0x440cd5,_0x3c37e5){let _0x5e18ee=!0x1;const {inserted:_0x5e0339,removed:_0x410be7,moved:_0x5d6ea5}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3c37e5);if(_0x5d6ea5['length']&&(this['_footnotesDefinitions']=_0x5d6ea5[0x0]),_0x5e0339['length']){if(_0x5e0339['length']>0x1||this['_footnotesDefinitions']&&_0x5e0339['some'](_0x456f35=>_0x456f35!==this['_footnotesDefinitions'])){const _0x2991d2=_0x440cd5['createElement']('footnotesDefinitions',{}),_0x7eb5a1=[];this['_footnotesDefinitions']&&_0x7eb5a1['push'](this['_footnotesDefinitions']),_0x7eb5a1['push'](..._0x5e0339),_0x440cd5['insert'](_0x2991d2,_0x7eb5a1[0x0],'before');for(const _0x24c605 of _0x7eb5a1)_0x440cd5['move'](_0x440cd5['createRangeIn'](_0x24c605),_0x440cd5['createPositionAt'](_0x2991d2,'end')),_0x440cd5['remove'](_0x24c605);this['_footnotesDefinitions']=_0x2991d2,this['_updateFootnotesCounters'](_0x440cd5),_0x5e18ee=!0x0;}else this['_footnotesDefinitions']=_0x5e0339[0x0];}if(_0x410be7['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3fab49 of this['_footnotes'])_0x440cd5['remove'](_0x3fab49['reference']),_0x5e18ee=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5e18ee;}['_handleFootnoteDefinitionsChanges'](_0x19a06f,_0x31f7bb){let _0x252345=!0x1;const _0x592efe=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x287985,moved:_0x3b8320}=this['_footnoteDefsTracker']['getChanges'](_0x31f7bb);for(const _0x3b9870 of[..._0x3b8320,..._0x287985]){const _0x2cdd9e=_0x3b9870['getAttribute']('footnoteId'),_0xc6d6e9=this['getFootnote'](_0x2cdd9e);_0xc6d6e9&&(_0xc6d6e9['definition']=_0x3b9870),_(_0x19a06f,_0x592efe,_0x3b9870)&&(_0x252345=!0x0);}return _0x252345;}['_handleFootnoteReferencesChanges'](_0x1f8d6d,_0x51b01f){let _0x1ac6a5=!0x1;const {removed:_0x59e0a5,inserted:_0x453383,moved:_0x125ba6}=this['_footnoteRefsTracker']['getChanges'](_0x51b01f);for(const _0x375ec3 of _0x59e0a5)this['_handleRemoveFootnoteReferenceById'](_0x1f8d6d,_0x375ec3)&&(_0x1ac6a5=!0x0);for(const _0x460299 of _0x453383)this['_handleInsertedFootnoteReference'](_0x1f8d6d,_0x460299)&&(_0x1ac6a5=!0x0);for(const _0x108755 of _0x125ba6)this['_handleMovedFootnoteReference'](_0x1f8d6d,_0x108755)&&(_0x1ac6a5=!0x0);return _0x1ac6a5;}['_handleFootnotesDefinitionsObjectSync'](_0x517ced){if(!this['_footnotesDefinitions'])return!0x1;let _0x42ea3d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x234e14=[];for(const _0x3c5d6a of this['_footnotesDefinitions']['getChildren']()){const _0x15f3c9=_0x3c5d6a['getAttribute']('footnoteId');this['getFootnote'](_0x15f3c9)||(_0x234e14['unshift'](_0x3c5d6a),_0x42ea3d=!0x0);}for(const _0x521448 of _0x234e14)_0x517ced['remove'](_0x521448);}const _0x554530=new Set(),_0x390881=[];for(const _0x173ca1 of this['_footnotesDefinitions']['getChildren']()){const _0x17eedb=_0x173ca1['getAttribute']('footnoteId');_0x554530['has'](_0x17eedb)?(_0x390881['unshift'](_0x173ca1),_0x42ea3d=!0x0):_0x554530['add'](_0x17eedb);}for(const _0x5f5b04 of _0x390881)_0x517ced['remove'](_0x5f5b04);return this['_footnotesDefinitions']['childCount']||(_0x517ced['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x42ea3d=!0x0),_0x42ea3d;}['_handleInsertedFootnoteReference'](_0x4212d4,_0x471b73){if(this['_footnotes']['find'](_0x823bd8=>_0x823bd8['reference']===_0x471b73))return!0x1;let _0x2115c1=!0x1;const _0x3f9717=_0x471b73['getAttribute']('footnoteId'),_0x2110f9=this['_footnotes']['findIndex'](_0x2d50a0=>_0x2d50a0['id']===_0x3f9717);-0x1!==_0x2110f9&&(_0x4212d4['remove'](this['_footnotes'][_0x2110f9]['reference']),this['_footnotes']['splice'](_0x2110f9,0x1),_0x2115c1=!0x0);let _0x3e0bcc=this['_footnotesDefinitions']?function(_0x2d182a,_0x11692a){for(const _0x42e7d4 of _0x2d182a['getChildren']())if(_0x42e7d4['getAttribute']('footnoteId')===_0x11692a)return _0x42e7d4;return null;}(this['_footnotesDefinitions'],_0x3f9717):null;_0x3e0bcc||(_0x3e0bcc=_0x4212d4['createElement']('footnoteDefinition',{'footnoteId':_0x3f9717}),this['_footnotesDefinitions']&&(_0x4212d4['insert'](_0x3e0bcc,this['_footnotesDefinitions'],'end'),_0x2115c1=!0x0));const _0xa9bdf0={'id':_0x3f9717,'reference':_0x471b73,'definition':_0x3e0bcc},_0x162227=I(this['editor']['model'],this['_footnotes'],_0x471b73);this['_footnotes']['splice'](_0x162227,0x0,_0xa9bdf0);let _0x4cc484=_0x162227;return-0x1!==_0x2110f9&&(_0x4cc484=Math['min'](_0x162227,_0x2110f9)),this['_updateFootnotesCounters'](_0x4212d4,_0x4cc484)&&(_0x2115c1=!0x0),_0x2115c1;}['_handleRemoveFootnoteReferenceById'](_0xa258bc,_0x4d45ac){const _0x2b2a72=this['_footnotes']['findIndex'](_0x34949f=>_0x34949f['id']===_0x4d45ac);if(-0x1===_0x2b2a72)return!0x1;let _0x4df995=!0x1;const _0x40d884=this['_footnotes'][_0x2b2a72];return'$graveyard'!==_0x40d884['definition']['root']['rootName']&&(_0xa258bc['remove'](_0x40d884['definition']),_0x4df995=!0x0),this['_footnotes']['splice'](_0x2b2a72,0x1),this['_updateFootnotesCounters'](_0xa258bc,_0x2b2a72)&&(_0x4df995=!0x0),_0x4df995;}['_handleMovedFootnoteReference'](_0x18e75b,_0x172f12){const _0xc356ca=_0x172f12['getAttribute']('footnoteId'),_0x6653ff=this['_footnotes']['findIndex'](_0xbb95ac=>_0xbb95ac['id']===_0xc356ca),_0x33d8ae=this['_footnotes'][_0x6653ff];let _0x35c95d=!0x1;_0x33d8ae['reference']=_0x172f12,this['_footnotes']['splice'](_0x6653ff,0x1);const _0x3e4b3f=I(this['editor']['model'],this['_footnotes'],_0x172f12);return this['_footnotes']['splice'](_0x3e4b3f,0x0,_0x33d8ae),this['_updateFootnotesCounters'](_0x18e75b,Math['min'](_0x6653ff,_0x3e4b3f))&&(_0x35c95d=!0x0),_0x35c95d;}['_updateFootnoteRefCounter'](_0x4ba35b,_0x9741c){if(!this['_footnotesDefinitions'])return!0x1;const _0x40d401=this['_footnotes'][_0x9741c];let _0x5694ab;return _0x5694ab=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x40d401,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x9741c+0x1}):String(_0x9741c+0x1),_0x40d401['reference']['getAttribute']('footnoteCounter')!=_0x5694ab&&(_0x4ba35b['setAttribute']('footnoteCounter',_0x5694ab,_0x40d401['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x153687){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5c479c,_0xfbc1fa){if(_0x5c479c['length']!==_0xfbc1fa['length'])return!0x1;for(let _0x4ebb2c=0x0;_0x4ebb2c<_0x5c479c['length'];_0x4ebb2c++)if(_0x5c479c[_0x4ebb2c]!==_0xfbc1fa[_0x4ebb2c])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x56ee9b=>_0x56ee9b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x56de8c=>_0x56de8c['getAttribute']('footnoteId'))))return!0x1;let _0x6c7a5=!0x1;for(let _0xdc36c4=0x0;_0xdc36c4<this['_footnotes']['length'];_0xdc36c4++){const _0x22b069=this['_footnotes'][_0xdc36c4],_0x18b871=_0x153687['createPositionBefore'](_0x22b069['definition']),_0xe2c1bc=_0x153687['createPositionAt'](this['_footnotesDefinitions'],_0xdc36c4);_0x18b871['isEqual'](_0xe2c1bc)||(_0x153687['move'](_0x153687['createRangeOn'](_0x22b069['definition']),_0xe2c1bc),_0x6c7a5=!0x0);}return _0x6c7a5;}['_ensureFootnotesReferencesHaveProperOrder'](_0x387366){if(!this['_footnotes']['length'])return!0x1;const {model:_0x105b61}=this['editor'];let _0x595c5b=!0x1;for(let _0x2c5847=0x0;_0x2c5847<this['_footnotes']['length']-0x1;_0x2c5847++){const _0x107d8e=this['_footnotes'][_0x2c5847],_0x60ff84=this['_footnotes'][_0x2c5847+0x1],_0x3df44f=_0x105b61['createPositionBefore'](_0x107d8e['reference']),_0x4e0840=_0x105b61['createPositionBefore'](_0x60ff84['reference']);'after'===_0x3df44f['compareWith'](_0x4e0840)&&(this['_handleMovedFootnoteReference'](_0x387366,_0x107d8e['reference']),_0x2c5847=-0x1,_0x595c5b=!0x0);}return _0x595c5b;}}function _(_0x541682,_0x2cb49d,_0x1330d6){if(_0x1330d6['childCount'])return!0x1;const _0x52a3b5=_0x2cb49d?'paragraph':'footnoteInlineContent';return _0x541682['insert'](_0x541682['createElement'](_0x52a3b5),_0x1330d6),!0x0;}function I(_0x2ca4e9,_0x335795,_0x55780e){if(0x0===_0x335795['length'])return 0x0;const _0x5ebdf0=_0x2ca4e9['createPositionBefore'](_0x55780e);for(let _0x376e9d=0x0;_0x376e9d<_0x335795['length'];_0x376e9d++){const _0x21a1db=_0x335795[_0x376e9d],_0x1e9d7c=_0x2ca4e9['createPositionBefore'](_0x21a1db['reference']);if('before'===_0x5ebdf0['compareWith'](_0x1e9d7c))return _0x376e9d;}const _0x1ab367=_0x55780e['root'];let _0xecd458=-0x1;for(let _0x19bfe7=_0x335795['length']-0x1;_0x19bfe7>=0x0;_0x19bfe7--)if(_0x335795[_0x19bfe7]['reference']['root']===_0x1ab367){_0xecd458=_0x19bfe7;break;}if(-0x1!==_0xecd458)return _0xecd458+0x1;const _0x34b1bc=_0x2ca4e9['document']['getRootNames'](),_0x215e86=_0x34b1bc['indexOf'](_0x1ab367['rootName']),_0x2e0abc=_0x34b1bc[_0x215e86+0x1];if(_0x2e0abc){for(let _0x18f04c=0x0;_0x18f04c<_0x335795['length'];_0x18f04c++)if(_0x335795[_0x18f04c]['reference']['root']['rootName']===_0x2e0abc)return _0x18f04c;}return _0x335795['length'];}class h extends _0x338c19{['refresh'](){const _0x206ba2=this['editor']['model']['document']['selection'],_0x2bbacc=this['_getPositionToInsertFootnote'](_0x206ba2);this['isEnabled']=!!_0x2bbacc;}['execute'](_0x1bed73){const {editor:_0x518d55}=this,{model:_0x889516}=_0x518d55,{selection:_0x54c725}=_0x889516['document'],_0x3aac56=this['_getPositionToInsertFootnote'](_0x54c725);if(!_0x3aac56)return;const _0x2397c2=_0x518d55['plugins']['get']('FootnotesEditing'),_0x219dae=_0x1bed73?.['footnoteId']??_0x1db42f();!function(_0x171377){return'string'==typeof _0x171377&&_0x171377['length']>0x0&&!/\s/['test'](_0x171377)&&!/^\d/['test'](_0x171377);}(_0x219dae)?_0x25d6b8('insert-footnote-command-executed-with-invalid-id'):(_0x889516['change'](_0x29936a=>{const _0xc304ab=_0x29936a['createElement']('footnoteRef',{'footnoteId':_0x219dae});_0x889516['insertObject'](_0xc304ab,_0x3aac56,null);}),_0x2397c2['_moveSelectionToFootnoteDefinition'](_0x219dae));}['_getPositionToInsertFootnote'](_0x1b1781){const {model:_0x422e45}=this['editor'],{schema:_0xfafa7a}=_0x422e45,_0x137a69=_0x1b1781['getFirstRange']();for(const _0x175c8f of _0x137a69['getItems']())if(_0xfafa7a['isBlock'](_0x175c8f)||_0xfafa7a['isObject'](_0x175c8f))return null;const _0x43e617=_0x137a69['end'];return _0xfafa7a['checkChild'](_0x43e617,'footnoteRef')?_0x43e617:null;}}class r extends _0x1fe668{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4efec5}=this;_0x4efec5['config']['define']('footnotes.multiBlock',!0x0),_0x4efec5['commands']['add']('insertFootnote',new h(_0x4efec5)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3f1d02){const _0x2e0cb3=_0xa33f4f([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]),_0x215d97=0x47a28506,_0x1b4d96=0x47a503ae^_0x215d97,_0x1d6970=window[_0xa33f4f([0x44,0x61,0x74,0x65])][_0xa33f4f([0x6e,0x6f,0x77])](),_0x2a9b22=_0x3f1d02[_0xa33f4f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40f71a=new window[(_0xa33f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30401d=>{_0x2a9b22[_0xa33f4f([0x6f,0x6e,0x63,0x65])](_0xa33f4f([0x72,0x65,0x61,0x64,0x79]),_0x30401d);}),_0x497bca={[_0xa33f4f([0x6b,0x74,0x79])]:_0xa33f4f([0x45,0x43]),[_0xa33f4f([0x75,0x73,0x65])]:_0xa33f4f([0x73,0x69,0x67]),[_0xa33f4f([0x63,0x72,0x76])]:_0xa33f4f([0x50,0x2d,0x32,0x35,0x36]),[_0xa33f4f([0x78])]:_0xa33f4f([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]),[_0xa33f4f([0x79])]:_0xa33f4f([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]),[_0xa33f4f([0x61,0x6c,0x67])]:_0xa33f4f([0x45,0x53,0x32,0x35,0x36])},_0x14c2f7=_0x2a9b22[_0xa33f4f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa33f4f([0x67,0x65,0x74])](_0xa33f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1791c8(){let _0x1a83b9,_0x577e25=null,_0x5a2f32=null;try{if(_0x14c2f7==_0xa33f4f([0x47,0x50,0x4c]))return _0xa33f4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1a83b9=_0x399d10(),!_0x1a83b9)return _0xa33f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1a83b9[_0xa33f4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5a2f32=_0x19547b(_0x1a83b9[_0xa33f4f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1a83b9[_0xa33f4f([0x6a,0x74,0x69])])),await _0x3989dc()?_0x4c7c95()?_0x13a9ed()?_0xa33f4f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1f7601()?(_0x1a83b9[_0xa33f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa33f4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x577e25=_0xbd3069(_0xa33f4f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd24625()):_0xa33f4f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa33f4f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa33f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa33f4f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x13a9ed(){const _0x59bbd1=[_0xa33f4f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa33f4f([0x74,0x72,0x69,0x61,0x6c])][_0xa33f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a83b9[_0xa33f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d6970/0x3e8:0xe10*_0x1b4d96;return _0x1a83b9[_0xa33f4f([0x65,0x78,0x70])]<_0x59bbd1;}function _0x4c7c95(){const _0x198f7b=_0x1a83b9[_0xa33f4f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x198f7b&&(!!_0x198f7b[_0xa33f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa33f4f([0x2a]))||!!_0x198f7b[_0xa33f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa33f4f([0x46,0x4f,0x4f])));}function _0x1f7601(){const _0x3ae9a8=_0x1a83b9[_0xa33f4f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3ae9a8||0x0==_0x3ae9a8[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4cc92b}=new URL(window[_0xa33f4f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3ae9a8[_0xa33f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4cc92b))return!0x0;const _0x54393b=_0x4cc92b[_0xa33f4f([0x73,0x70,0x6c,0x69,0x74])](_0xa33f4f([0x2e]));return _0x3ae9a8[_0xa33f4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4bd4f3=>_0x4bd4f3[_0xa33f4f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa33f4f([0x2a])))[_0xa33f4f([0x6d,0x61,0x70])](_0x1e7d2f=>_0x1e7d2f[_0xa33f4f([0x73,0x70,0x6c,0x69,0x74])](_0xa33f4f([0x2e])))[_0xa33f4f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1148f0=>_0x1148f0[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54393b[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa33f4f([0x6d,0x61,0x70])](_0x39ca23=>Array(_0x54393b[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39ca23[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa33f4f([0x66,0x69,0x6c,0x6c])](_0x39ca23[0x0]===_0xa33f4f([0x2a])?_0xa33f4f([0x2a]):'')[_0xa33f4f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39ca23))[_0xa33f4f([0x73,0x6f,0x6d,0x65])](_0x2b4481=>_0x54393b[_0xa33f4f([0x65,0x76,0x65,0x72,0x79])]((_0x1e183c,_0x265339)=>_0x2b4481[_0x265339]===_0x1e183c||_0x2b4481[_0x265339]===_0xa33f4f([0x2a])));}function _0xd24625(){return _0x577e25&&_0x5a2f32?new window[(_0xa33f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4b3949,_0x53eb2e)=>{_0x577e25[_0xa33f4f([0x74,0x68,0x65,0x6e])](_0x4b3949,_0x53eb2e),_0x5a2f32[_0xa33f4f([0x74,0x68,0x65,0x6e])](_0x27ef51=>{_0x27ef51!=_0xa33f4f([0x56,0x61,0x6c,0x69,0x64])&&_0x4b3949(_0x27ef51);},_0x53eb2e);}):_0x577e25||_0x5a2f32||_0xa33f4f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19547b(_0x53a154,_0x207cd5){return new window[(_0xa33f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x366275=>{if(_0x34f0ef())return _0x366275(_0xa33f4f([0x56,0x61,0x6c,0x69,0x64]));_0x2c0814(),_0x2a9b22[_0xa33f4f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa33f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xede0f8=!0x1;const _0x130952=_0x1db42f();function _0x1c87eb(_0x5c9d14){return!!_0x5c9d14&&(typeof _0x5c9d14===_0xa33f4f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5c9d14===_0xa33f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5c9d14[_0xa33f4f([0x74,0x68,0x65,0x6e])]===_0xa33f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5c9d14[_0xa33f4f([0x63,0x61,0x74,0x63,0x68])]===_0xa33f4f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2aa106(_0x1d1cb8){_0x327c57(_0x1d1cb8)[_0xa33f4f([0x74,0x68,0x65,0x6e])](_0x4d57dd=>{if(!_0x4d57dd||_0x4d57dd[_0xa33f4f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa33f4f([0x6f,0x6b]))return _0xa33f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0xed175c(_0x285c0d(_0x130952+_0x207cd5))!=_0x4d57dd[_0xa33f4f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa33f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa33f4f([0x56,0x61,0x6c,0x69,0x64]);})[_0xa33f4f([0x74,0x68,0x65,0x6e])](_0x2ecad6=>(_0x5233dd(),_0x2ecad6),()=>{const _0x1e8d50=_0x7c208f();return null==_0x1e8d50?(_0x5233dd(),_0xa33f4f([0x56,0x61,0x6c,0x69,0x64])):_0xa33f4f(_0x1d6970-_0x1e8d50>(0x63ae0106^_0x215d97)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa33f4f([0x74,0x68,0x65,0x6e])](_0x366275)[_0xa33f4f([0x63,0x61,0x74,0x63,0x68])](()=>{_0x366275(_0xa33f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4a85e6=0x47946b86^_0x215d97;function _0x5233dd(){const _0xa612be=_0xa33f4f([0x6c,0x6c,0x63,0x74,0x2d])+_0xed175c(_0x285c0d(_0x53a154)),_0x4b2fd8=_0x520056(_0xed175c(window[_0xa33f4f([0x4d,0x61,0x74,0x68])][_0xa33f4f([0x63,0x65,0x69,0x6c])](_0x1d6970/_0x4a85e6)));window[_0xa33f4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa33f4f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xa612be,_0x4b2fd8);}function _0x7c208f(){const _0x337489=_0xa33f4f([0x6c,0x6c,0x63,0x74,0x2d])+_0xed175c(_0x285c0d(_0x53a154)),_0x30bdfc=window[_0xa33f4f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa33f4f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x337489);return _0x30bdfc?window[_0xa33f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x520056(_0x30bdfc),0x10)*_0x4a85e6:null;}function _0x327c57(_0x5d7613){return new window[(_0xa33f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3d1004,_0x5898b6)=>{_0x5d7613[_0xa33f4f([0x74,0x68,0x65,0x6e])](_0x3d1004,_0x5898b6),window[_0xa33f4f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5898b6,0x47a351c6^_0x215d97);});}}_0x2a9b22[_0xa33f4f([0x6f,0x6e])](_0xa33f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x8f72ad,_0x166320)=>{if(_0x166320[0x0]!=_0x53a154)return _0x366275(_0xa33f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x166320[0x1]={..._0x166320[0x1],[_0xa33f4f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x130952};},{[_0xa33f4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa33f4f([0x68,0x69,0x67,0x68])}),_0x2a9b22[_0xa33f4f([0x6f,0x6e])](_0xa33f4f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27fe53=>{_0x1c87eb(_0x27fe53[_0xa33f4f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xede0f8=!0x0,_0x2aa106(_0x27fe53[_0xa33f4f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa33f4f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa33f4f([0x6c,0x6f,0x77])}),_0x40f71a[_0xa33f4f([0x74,0x68,0x65,0x6e])](()=>{_0xede0f8||_0x366275(_0xa33f4f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x34f0ef(){return _0x2a9b22[_0xa33f4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa33f4f([0x76,0x69,0x65,0x77])][_0xa33f4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa33f4f([0x61,0x75,0x74,0x6f]);}function _0x2c0814(){_0x2a9b22[_0xa33f4f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa33f4f([0x76,0x69,0x65,0x77])][_0xa33f4f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa33f4f([0x61,0x75,0x74,0x6f]);}}function _0xbd3069(_0x7cc0f8){const _0x94924e=[new window[(_0xa33f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbf8be0=>setTimeout(_0xbf8be0,0x47abbbca^_0x215d97)),_0x40f71a[_0xa33f4f([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa33f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4bb909=>{let _0x2be384=0x0;_0x2a9b22[_0xa33f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa33f4f([0x6f,0x6e])](_0xa33f4f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x582d5a,_0x579fbe)=>{_0x579fbe[0x0][_0xa33f4f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2be384++,_0x2be384==(0x47a280ee^_0x215d97)&&(_0x4bb909(),_0x582d5a[_0xa33f4f([0x6f,0x66,0x66])]());});}))];return window[_0xa33f4f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa33f4f([0x72,0x61,0x63,0x65])](_0x94924e)[_0xa33f4f([0x74,0x68,0x65,0x6e])](()=>_0x7cc0f8);}async function _0x25940a(){await _0x40f71a,_0x2a9b22[_0xa33f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa33f4f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5ad1b0,_0x2a9b22[_0xa33f4f([0x6d,0x6f,0x64,0x65,0x6c])][_0xa33f4f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5ad1b0,_0x2a9b22[_0xa33f4f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa33f4f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3f22c5(_0x2a0d60){const _0x1bed60=_0x756b1b();_0x2a9b22[_0x1bed60]=_0xa33f4f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2a0d60,_0x2a0d60!=_0xa33f4f([0x56,0x61,0x6c,0x69,0x64])&&_0x25940a();}function _0x756b1b(){const _0x5d883b=window[_0xa33f4f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa33f4f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa33f4f([0x6e,0x6f,0x77])]())[_0xa33f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa33f4f([0x2e]),'');let _0xcdc2b8=_0xa33f4f([0x75]);for(let _0xc19ade=0x0;_0xc19ade<_0x5d883b[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc19ade+=0x2){let _0x5d503c=window[_0xa33f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d883b[_0xa33f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc19ade,_0xc19ade+0x2));_0x5d503c>=_0x2e0cb3[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d503c-=_0x2e0cb3[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcdc2b8+=_0x2e0cb3[_0x5d503c];}return _0xcdc2b8;}function _0x399d10(){const _0x47de09=_0x14c2f7[_0xa33f4f([0x73,0x70,0x6c,0x69,0x74])](_0xa33f4f([0x2e]));if(0x3!=_0x47de09[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x259d17(_0x47de09[0x1]);function _0x259d17(_0x5566b0){const _0x45e757=_0x559f2b(_0x5566b0);return _0x45e757&&_0x5bcb6c()?_0x45e757:null;function _0x5bcb6c(){const _0x3fd6f4=_0x45e757[_0xa33f4f([0x6a,0x74,0x69])],_0x11e7b6=window[_0xa33f4f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3fd6f4[_0xa33f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3fd6f4[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x499121={..._0x45e757,[_0xa33f4f([0x6a,0x74,0x69])]:_0x3fd6f4[_0xa33f4f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3fd6f4[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x499121[_0xa33f4f([0x76,0x63])],_0x285c0d(_0x499121)==_0x11e7b6;}}}async function _0x3989dc(){let _0x6f6a2e=!0x0;try{const _0x459f40=_0x14c2f7[_0xa33f4f([0x73,0x70,0x6c,0x69,0x74])](_0xa33f4f([0x2e])),[_0x4da9e8,_0x52d277,_0x570503]=_0x459f40;return _0x33e42c(_0x4da9e8),await _0x3abd12(_0x4da9e8,_0x52d277,_0x570503),_0x6f6a2e;}catch{return!0x1;}function _0x33e42c(_0x342589){const _0x5dab9c=_0x559f2b(_0x342589);_0x5dab9c&&_0x5dab9c[_0xa33f4f([0x61,0x6c,0x67])]==_0xa33f4f([0x45,0x53,0x32,0x35,0x36])||(_0x6f6a2e=!0x1);}async function _0x3abd12(_0x2cb29f,_0x416feb,_0x361fc0){const _0x317d71=window[_0xa33f4f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa33f4f([0x66,0x72,0x6f,0x6d])](_0x1bc886(_0x361fc0),_0x35326a=>_0x35326a[_0xa33f4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x509675=new window[(_0xa33f4f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa33f4f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cb29f+_0xa33f4f([0x2e])+_0x416feb),_0x168434=window[_0xa33f4f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa33f4f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x168434)return;const _0x5d8748=await _0x168434[_0xa33f4f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa33f4f([0x6a,0x77,0x6b]),_0x497bca,{[_0xa33f4f([0x6e,0x61,0x6d,0x65])]:_0xa33f4f([0x45,0x43,0x44,0x53,0x41]),[_0xa33f4f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa33f4f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa33f4f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x168434[_0xa33f4f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa33f4f([0x6e,0x61,0x6d,0x65])]:_0xa33f4f([0x45,0x43,0x44,0x53,0x41]),[_0xa33f4f([0x68,0x61,0x73,0x68])]:{[_0xa33f4f([0x6e,0x61,0x6d,0x65])]:_0xa33f4f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x5d8748,_0x317d71,_0x509675)||(_0x6f6a2e=!0x1);}}function _0x559f2b(_0x11baaf){return _0x11baaf[_0xa33f4f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa33f4f([0x65,0x79]))?JSON[_0xa33f4f([0x70,0x61,0x72,0x73,0x65])](_0x1bc886(_0x11baaf)):null;}function _0x1bc886(_0x473b2c){return window[_0xa33f4f([0x61,0x74,0x6f,0x62])](_0x473b2c[_0xa33f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa33f4f([0x2b]))[_0xa33f4f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa33f4f([0x2f])));}function _0x285c0d(_0x152c57){let _0x45d31b=0x1505;function _0x42cfbc(_0x426d36){for(let _0x6f3156=0x0;_0x6f3156<_0x426d36[_0xa33f4f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x6f3156++){const _0x49a4eb=_0x426d36[_0xa33f4f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x6f3156);_0x45d31b=(_0x45d31b<<0x5)+_0x45d31b+_0x49a4eb,_0x45d31b&=_0x45d31b;}}function _0x3a2d2d(_0x32f91a){Array[_0xa33f4f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x32f91a)?_0x32f91a[_0xa33f4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3a2d2d):_0x32f91a&&typeof _0x32f91a==_0xa33f4f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa33f4f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x32f91a)[_0xa33f4f([0x73,0x6f,0x72,0x74])]()[_0xa33f4f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2492f6,_0x3772a9])=>{_0x42cfbc(_0x2492f6),_0x3a2d2d(_0x3772a9);}):_0x42cfbc(window[_0xa33f4f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x32f91a));}return _0x3a2d2d(_0x152c57),_0x45d31b>>>0x0;}function _0xed175c(_0x57f83c){return _0x57f83c[_0xa33f4f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa33f4f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa33f4f([0x30]));}function _0x520056(_0x589dd6){return _0x589dd6[_0xa33f4f([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa33f4f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa33f4f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5ad1b0(){}function _0xa33f4f(_0x16cada){return _0x16cada['map'](_0xfdea21=>String['fromCharCode'](_0xfdea21))['join']('');}_0x3f22c5(await _0x1791c8());}(this);}['_moveSelectionToFootnoteDefinition'](_0x45535d){const {plugins:_0x3bcc7b,editing:_0x5ca1a6,model:_0x6d1849}=this['editor'],_0x1a9215=_0x3bcc7b['get'](f)['getFootnote'](_0x45535d);return!!_0x1a9215&&(_0x6d1849['change'](_0xfeecf6=>{_0xfeecf6['setSelection'](_0xfeecf6['createPositionAt'](_0x1a9215['definition'],'end'));}),_0x5ca1a6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4ca4a4){const {plugins:_0x246908,editing:_0xdc0a51,model:_0xcb921a}=this['editor'],_0xf9171=_0x246908['get'](f)['getFootnote'](_0x4ca4a4);return!!_0xf9171&&(_0xcb921a['change'](_0x4dd251=>{_0x4dd251['setSelection'](_0xf9171['reference'],'on');}),_0xdc0a51['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x51ab9f}=this['editor']['model'],_0x13c387=this['editor']['config']['get']('footnotes.multiBlock');_0x51ab9f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x51ab9f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x51ab9f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x13c387?_0x51ab9f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x51ab9f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x51ab9f['addChildCheck'](_0x161c1e=>{for(const _0x1b48cf of _0x161c1e)if('footnoteDefinition'===_0x1b48cf['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x10d6c3}=this,{conversion:_0x21f0bb,editing:_0x4add1b}=_0x10d6c3,{t:t}=_0x10d6c3['locale'];_0x21f0bb['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x56fc98,{writer:_0x57dedf,consumable:_0x12a74a})=>{const _0x1b51d8=_0x56fc98['getChild'](0x0);if(!_0x1b51d8||!_0x1b51d8['is']('element','a'))return null;const _0x69a212=_0x1b51d8['getAttribute']('href')||'';if(!_0x69a212['startsWith']('#'))return null;const _0x4138ef=_0x69a212['replace'](/^#/,'');if(!_0x4138ef)return null;_0x12a74a['consume'](_0x1b51d8,{'name':!0x0,'attributes':['href']});for(const {item:_0x403f67}of _0x4add1b['view']['createRangeIn'](_0x1b51d8))_0x403f67['is']('$textProxy')?_0x12a74a['consume'](_0x403f67['textNode'],{'name':!0x0}):_0x403f67['is']('element')&&_0x12a74a['consume'](_0x403f67,{'name':!0x0});return _0x57dedf['createElement']('footnoteRef',{'footnoteId':_0x4138ef});}}),_0x21f0bb['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2ff300,{writer:_0x7dfab2})=>b(_0x2ff300,_0x7dfab2)}),_0x21f0bb['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x43dc1e,{writer:_0x22f853})=>{const _0xd0f210=_0x43dc1e['getAttribute']('footnoteCounter');return _0x1cba50(b(_0x43dc1e,_0x22f853),_0x22f853,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xd0f210)});}});}['_defineDefinitionsConverters'](){const {editor:_0x18de70}=this,{t:t}=_0x18de70['locale'],{conversion:_0x5da969}=_0x18de70;_0x5da969['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5da969['for']('upcast')['add'](_0x165f9c=>{_0x165f9c['on']('element:ol',(_0x1ca7b9,_0x2ece53,_0x4fc332)=>{const _0x1aa711=_0x2ece53['viewItem'];if(!_0x1aa711['hasClass']('footnotes-list')||!_0x2ece53['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4fc332['consumable']['consume'](_0x1aa711,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5c3f63,modelCursor:_0xc4cb4a}=_0x4fc332['convertChildren'](_0x2ece53['viewItem'],_0x2ece53['modelCursor']);_0x2ece53['modelRange']=_0x5c3f63,_0x2ece53['modelCursor']=_0xc4cb4a;}),_0x165f9c['on']('element:hr',(_0x4b308f,_0x4b3b12,_0x4ab604)=>{const _0x2c3d4a=_0x4b3b12['viewItem'];_0x2c3d4a['hasClass']('footnotes-divider')&&_0x4b3b12['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4ab604['consumable']['consume'](_0x2c3d4a,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5da969['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4c5bbe,{writer:_0x4aae55})=>D(_0x4aae55)}),_0x5da969['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x456368,{writer:_0x95911d})=>{const _0x428ec2=D(_0x95911d,{'data-footnotes-list-label':t('Footnotes')}),_0x501f2c=_0x1cba50(_0x428ec2,_0x95911d,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x95911d['setCustomProperty']('footnotesDefinitions',!0x0,_0x501f2c),_0x501f2c;}});}['_defineDefinitionConverters'](){const {editor:_0x65ba3a}=this,{conversion:_0x1078b2,locale:_0x5c4dc9}=_0x65ba3a,_0xb1ad61=_0x65ba3a['config']['get']('footnotes.multiBlock');_0x1078b2['for']('upcast')['add'](_0x13842b=>{_0x13842b['on']('element:li',(_0x440d74,_0x3223ea,_0x2e4cab)=>{const _0x1739be=_0x3223ea['viewItem'];if(!_0x1739be['hasClass']('footnote-definition')||!_0x1739be['getAttribute']('id'))return;const _0x10363a=_0x1739be['parent'];if(!_0x10363a['is']('element','ol')||!_0x10363a['hasClass']('footnotes-list'))return;if(!_0x2e4cab['consumable']['test'](_0x1739be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x37eb38=_0x2e4cab['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1739be['getAttribute']('id')});if(!_0x2e4cab['safeInsert'](_0x37eb38,_0x3223ea['modelCursor']))return;_0x2e4cab['consumable']['consume'](_0x1739be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4f76c1=Array['from'](_0x1739be['getChildren']())['find'](_0x459d0a=>_0x459d0a['is']('element')&&_0x459d0a['hasClass']('footnote-content'));for(const _0x3a317c of _0x1739be['getChildren']())_0x3a317c['is']('element')&&(_0x2e4cab['consumable']['consume'](_0x3a317c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2e4cab['consumable']['consume'](_0x3a317c,{'name':!0x0,'classes':'footnote-content'}));if(_0x4f76c1){if(_0xb1ad61)_0x2e4cab['convertChildren'](_0x4f76c1,_0x37eb38);else{const _0x38e09b=_0x2e4cab['writer']['createElement']('footnoteInlineContent');_0x2e4cab['writer']['insert'](_0x38e09b,_0x37eb38),_0x2e4cab['convertChildren'](_0x4f76c1,_0x38e09b);}}_0x2e4cab['updateConversionResult'](_0x37eb38,_0x3223ea);});}),_0x1078b2['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x166c9b,{writer:_0x63aa31})=>y(_0x166c9b,_0x63aa31,_0x5c4dc9,{'dataPipeline':!0x0})}),_0x1078b2['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x324ba2,{writer:_0x4e341b})=>y(_0x324ba2,_0x4e341b,_0x5c4dc9)});}['_defineBogusParagraphConverters'](){const {editor:_0x30a7e9}=this,{conversion:_0x5c7e81}=_0x30a7e9;_0x30a7e9['config']['get']('footnotes.multiBlock')?(_0x5c7e81['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x5c7e81['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x30a7e9['model']['document'],'change:data',()=>{!function(_0x3ed7ae,_0x5a88c7){const _0x534536=_0x3ed7ae['document']['differ'],_0x3bade4=new Set();for(const _0x3011df of _0x534536['getChanges']()){const _0x435e10='attribute'==_0x3011df['type']?_0x3011df['range']['start']['parent']:_0x3011df['position']['parent'];_0x435e10['is']('element','footnoteDefinition')&&_0x3bade4['add'](_0x435e10);}for(const _0x2f2348 of _0x3bade4['values']()){const _0x151859=Array['from'](_0x2f2348['getChildren']())['filter'](_0x579baa=>v(_0x579baa,_0x5a88c7['mapper']));for(const _0x14b636 of _0x151859)_0x5a88c7['reconvertItem'](_0x14b636);}}(_0x30a7e9['model'],_0x30a7e9['editing']);})):(_0x5c7e81['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x5c7e81['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x420d45,{writer:_0x40a78})=>{const _0x1fbdb4=_0x40a78['createContainerElement']('span');return _0x40a78['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1fbdb4),_0x1fbdb4;}}));}['_defineKeyboardHandlers'](){const {editor:_0x39c6f7}=this,{editing:_0x3fa47b,t:t}=_0x39c6f7,_0x2758f9=_0x39c6f7['model']['document']['selection'];_0x39c6f7['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x39c6f7['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3fa47b['view']['document'],'enter',(_0x430413,_0xb27c53)=>{const _0x119b76=function(_0x5ba7bc){const _0x19d55e=_0x5ba7bc['getSelectedElement']();if(_0x19d55e?.['is']('element','footnoteRef'))return _0x19d55e;return null;}(_0x2758f9);if(_0x119b76){const _0xa65524=_0x119b76['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xa65524),_0xb27c53['preventDefault'](),_0x430413['stop']();}},{'context':_0x3fd354});}['_defineClickHandlers'](){const {editor:_0x1c8269}=this,{editing:_0x206503}=_0x1c8269;_0x1c8269['editing']['view']['addObserver'](_0x9c7408),_0x1c8269['editing']['view']['addObserver'](_0x1b8a61);let _0x55e8ea=!0x1;this['listenTo'](_0x206503['view']['document'],'pointerdown',(_0x5a0833,_0x5730c6)=>{const {target:_0x55b9e4}=_0x5730c6,_0x27c9bc=_0x206503['view']['document']['selection'];_0x55e8ea=!!(_0x55b9e4?.['is']('element','a')&&_0x55b9e4['parent']?.['is']('element','sup')&&_0x55b9e4['parent']['hasClass']('footnote'))&&_0x27c9bc['getSelectedElement']()===_0x55b9e4['parent'];},{'priority':'high'}),this['listenTo'](_0x206503['view']['document'],'click',(_0x56bf83,_0x89b2b1)=>{const {target:_0x541f23}=_0x89b2b1;if(!_0x541f23?.['is']('element','a'))return;if(_0x541f23['parent']?.['is']('element','sup')&&_0x541f23['parent']['hasClass']('footnote')&&!_0x55e8ea)return void _0x89b2b1['preventDefault']();let _0x2916f1=_0x541f23['getAttribute']('href');if(!_0x2916f1?.['startsWith']('#'))return;_0x2916f1=_0x2916f1['slice'](0x1);let _0xa18d68=!0x1;(_0x2916f1['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2916f1['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2916f1))&&(_0xa18d68=!0x0),_0xa18d68&&(_0x89b2b1['preventDefault'](),_0x56bf83['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x3885af}={}){return(_0x4f2bee,{writer:_0x355aa9})=>{if(!g(_0x4f2bee))return null;if(!_0x3885af)return _0x355aa9['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x23cae0=_0x355aa9['createContainerElement']('p');return _0x355aa9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23cae0),_0x23cae0;};}function g(_0x411e88){const {parent:_0x5bfc93}=_0x411e88;if(!_0x5bfc93?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5bfc93['childCount'])return!0x1;for(const _0x31d8b6 of _0x411e88['getAttributeKeys']())if(!_0x31d8b6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x31d8b6)return!0x1;return!0x0;}function v(_0x23d27a,_0x58749e){if(!_0x23d27a['is']('element','paragraph'))return!0x1;const _0x161ed5=_0x58749e['toViewElement'](_0x23d27a);return!!_0x161ed5&&g(_0x23d27a)!==_0x161ed5['is']('element','span');}function Q(_0x3d903d){return _0x3fd354(_0x3d903d)&&_0x3d903d['is']('containerElement')&&!!_0x3d903d['getCustomProperty']('footnotesDefinitions');}function D(_0x1ae7ba,_0x356029={}){const _0x2c3c1b=_0x1ae7ba['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2ac8b4=_0x1ae7ba['createContainerElement']('ol',{'class':'footnotes-list'},_0x1ae7ba['createSlot']());return _0x1ae7ba['createContainerElement']('div',{'class':'footnotes',..._0x356029},[_0x2c3c1b,_0x2ac8b4]);}function b(_0x282d3c,_0x1d80f4){const _0x169379=_0x282d3c['getAttribute']('footnoteId'),_0x49441d=_0x282d3c['getAttribute']('footnoteCounter'),_0x2cdab3=_0x1d80f4['createUIElement']('a',{'href':'#'+_0x169379},function(_0x38af43){const _0x450c30=this['toDomElement'](_0x38af43);return _0x450c30['textContent']=_0x49441d,_0x450c30;}),_0x14a284=_0x1d80f4['createContainerElement']('sup',{'id':'ref-'+_0x169379,'class':'footnote'},[_0x2cdab3]);return _0x14a284['getFillerOffset']=()=>null,_0x14a284;}function y(_0x66edd6,_0xde8a64,_0x4a981b,{dataPipeline:_0x3236fd}={}){const {t:t}=_0x4a981b,_0x20117a=_0x66edd6['getAttribute']('footnoteId'),_0x100baa=_0xde8a64['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x20117a},function(_0x63dffa){const _0x40a82d=this['toDomElement'](_0x63dffa);return _0x40a82d['innerText']='^',_0x40a82d;}),_0xef5ed8=_0x3236fd?_0xde8a64['createContainerElement']('div',{'class':'footnote-content'}):_0x2e516e(_0xde8a64['createEditableElement']('div',{'class':'footnote-content'}),_0xde8a64,{'label':t('Footnote\x20content.')});return _0xde8a64['insert'](_0xde8a64['createPositionAt'](_0xef5ed8,0x0),_0xde8a64['createSlot']()),_0xde8a64['createContainerElement']('li',{'class':'footnote-definition','id':_0x20117a},[_0x100baa,_0xef5ed8]);}class e extends _0x1fe668{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x499f5f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x44c67c}=this,{plugins:_0x4771c4,model:_0x569536}=_0x44c67c,_0x338eed=_0x4771c4['get'](_0x499f5f),_0x453dec=_0x4771c4['get'](f);this['listenTo'](_0x338eed,'outputTransformation',(_0x3c1b6f,_0x226fc9)=>{const _0x56174e=l(_0x569536['createRangeIn'](_0x226fc9['content']));if(!_0x56174e['length'])return;const _0x1dadbf=_0x453dec['getFootnotes'](),_0x1d087b=_0x56174e['reduce']((_0x289486,_0x31a853)=>{const _0x36ed1e=_0x1dadbf['find'](_0x256a59=>_0x256a59['id']===_0x31a853);if(_0x36ed1e){const _0x5b4c2a=_0x44c67c['data']['toView'](_0x36ed1e['definition'],{'isClipboardPipeline':!0x0}),_0x32482e=_0x44c67c['data']['htmlProcessor']['toData'](_0x5b4c2a);_0x289486[_0x36ed1e['id']]=_0x32482e;}return _0x289486;},Object['create'](null));_0x226fc9['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x1d087b));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x12bec0}=this,{model:_0x2f4eab,plugins:_0x1d629a}=_0x12bec0,{view:_0x4882c7}=_0x12bec0['editing'],_0x2ee690=_0x1d629a['get'](_0x499f5f),_0x344ab4=_0x1d629a['get'](f),_0x1f1d52=_0x12bec0['config']['get']('footnotes.multiBlock');let _0x5af86b=null;this['listenTo'](_0x4882c7['document'],'clipboardInput',(_0xe9a3c2,_0x5cd5fd)=>{const _0x374709=_0x5cd5fd['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x5af86b=_0x374709?JSON['parse'](_0x374709):null;}),this['listenTo'](_0x2ee690,'contentInsertion',(_0x5b1653,_0x526eee)=>{const _0x42c799=_0x526eee['sourceEditorId']===this['editor']['id'];_0x42c799&&'drop'===_0x526eee['method']||_0x2f4eab['change'](_0x9fbcc2=>{let _0x16a965=_0x344ab4['getFootnotesDefinitionsObjectElement']();const _0x5d879c=!!_0x16a965&&Array['from'](_0x2f4eab['document']['selection']['getSelectedBlocks']())['includes'](_0x16a965);if(!_0x5af86b&&function(_0x52a885){for(const {item:_0x288f27}of _0x52a885)if(_0x288f27['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2f4eab['createRangeIn'](_0x526eee['content']))&&(_0x5af86b=function(_0x181645,_0x3d754f){const _0x4195ec=c(_0x181645,_0x3d754f);if(!_0x4195ec)return null;const _0x45ecd9=Object['create'](null);for(const _0x92965 of _0x4195ec['getChildren']())_0x92965['is']('element','footnoteDefinition')&&_0x92965['hasAttribute']('footnoteId')&&(_0x45ecd9[_0x92965['getAttribute']('footnoteId')]=_0x181645['cloneElement'](_0x92965,!0x0));return Object['keys'](_0x45ecd9)['length']?_0x45ecd9:null;}(_0x9fbcc2,_0x526eee['content'])),(_0x16a965&&!_0x5d879c||!_0x16a965&&!_0x5af86b)&&function(_0x29d7b3,_0x1a852e){const _0x41a1d2=[];for(const {item:_0x284724}of _0x29d7b3['createRangeIn'](_0x1a852e))_0x284724['is']('element','footnotesDefinitions')&&_0x41a1d2['push'](_0x284724);for(const _0x303424 of _0x41a1d2)_0x29d7b3['remove'](_0x303424);}(_0x9fbcc2,_0x526eee['content']),!_0x5af86b)return;const {selection:_0x43ea4a}=_0x2f4eab['document'],_0x112c5d=_0x43ea4a['getFirstRange']()['root'];_0x16a965&&!_0x5d879c||(_0x16a965=c(_0x9fbcc2,_0x526eee['content']),_0x16a965||=_0x344ab4['_insertEmptyFootnotesDefinitionsContainer'](_0x9fbcc2,_0x112c5d));const _0x4977f7=Array['from'](_0x43ea4a['getRanges']())['flatMap'](l),_0x3b9da5=function(_0x1ddf23,_0x34824a,_0x17e4c){const _0x527f6a=Object['create'](null);for(const {item:_0x597381}of _0x1ddf23['createRangeIn'](_0x34824a))if(_0x597381['is']('element','footnoteRef')){const _0x10e651=_0x597381['getAttribute']('footnoteId');if(!_0x17e4c(_0x10e651))continue;_0x527f6a[_0x10e651]||(_0x527f6a[_0x10e651]=_0x1db42f()),_0x1ddf23['setAttribute']('footnoteId',_0x527f6a[_0x10e651],_0x597381);}return _0x527f6a;}(_0x9fbcc2,_0x526eee['content'],_0x4f7c8d=>{if(!_0x42c799)return!0x0;return!!_0x344ab4['getFootnote'](_0x4f7c8d)&&!_0x4977f7['includes'](_0x4f7c8d);});for(const [_0x2df259,_0x7adf3a]of Object['entries'](_0x5af86b)){const _0x5c5ad7=_0x3b9da5[_0x2df259]||_0x2df259;let _0xc03a61;if('string'!=typeof _0x7adf3a)_0xc03a61=_0x7adf3a,_0x5c5ad7!==_0x2df259&&_0x9fbcc2['setAttribute']('footnoteId',_0x5c5ad7,_0xc03a61);else{_0xc03a61=_0x9fbcc2['createElement']('footnoteDefinition',{'footnoteId':_0x5c5ad7});const _0x2c2bbf=_0x12bec0['data']['htmlProcessor']['toView'](_0x7adf3a);let _0x83ab06;if(_0x1f1d52)_0x83ab06=_0x12bec0['data']['toModel'](_0x2c2bbf,_0xc03a61);else{_0x83ab06=_0x9fbcc2['createElement']('footnoteInlineContent');const _0x481c90=_0x12bec0['data']['toModel'](_0x2c2bbf,_0x83ab06);_0x9fbcc2['insert'](_0x481c90,_0x83ab06);}_0x9fbcc2['append'](_0x83ab06,_0xc03a61);}_0x9fbcc2['insert'](_0xc03a61,_0x16a965,'end');}_0x5af86b=null;});});}}function c(_0x131b4d,_0x167fbb){for(const {item:_0x50501c}of _0x131b4d['createRangeIn'](_0x167fbb))if(_0x50501c['is']('element','footnotesDefinitions'))return _0x50501c;return null;}function l(_0x3109ad){const _0x46a796=new Set();for(const {item:_0x18dcb6}of _0x3109ad)_0x18dcb6['is']('element','footnoteRef')&&_0x46a796['add'](_0x18dcb6['getAttribute']('footnoteId'));return Array['from'](_0x46a796);}class i extends _0x1fe668{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x477d43}=this,{componentFactory:_0x1cb56d}=_0x477d43['ui'];_0x1cb56d['add']('insertFootnote',E(_0x477d43,_0x4fa049)),_0x1cb56d['add']('menuBar:insertFootnote',E(_0x477d43,_0x5ec42c)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1d9e65=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x7ece87;for(const _0x25d720 in _0x1d9e65){const _0x34cf30=_0x25d720,_0x4dd5c2=_0x1d9e65[_0x34cf30];if('footnotesLicenseKeyValid'==_0x4dd5c2||'footnotesLicenseKeyInvalid'==_0x4dd5c2||'footnotesLicenseKeyExpired'==_0x4dd5c2||'footnotesLicenseKeyDomainLimit'==_0x4dd5c2||'footnotesLicenseKeyNotAllowed'==_0x4dd5c2||'footnotesLicenseKeyEvaluationLimit'==_0x4dd5c2||'footnotesLicenseKeyUsageLimit'==_0x4dd5c2){delete _0x1d9e65[_0x34cf30],_0x7ece87=_0x4dd5c2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x7ece87&&_0x1d9e65['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x7ece87&&_0x1d9e65['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x7ece87&&_0x1d9e65['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x7ece87&&_0x1d9e65['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x7ece87&&_0x1d9e65['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x7ece87&&_0x1d9e65['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x3aa8f5,_0x44136c){const _0x8d2c3b=_0x3aa8f5['commands']['get']('insertFootnote');return _0x4a9b2d=>{const {t:t}=_0x4a9b2d,_0xff6742=new _0x44136c(_0x4a9b2d),_0xac75bd=_0xff6742 instanceof _0x5ec42c;return _0xff6742['bind']('isEnabled')['to'](_0x8d2c3b,'isEnabled'),_0xff6742['set']({'label':t(_0xac75bd?'Footnote':'Insert\x20footnote'),'icon':_0xfb31bc,'tooltip':!0x0}),_0xff6742['on']('execute',()=>{_0x8d2c3b['execute'](),_0x3aa8f5['editing']['view']['focus']();}),_0xff6742;};}class lt extends _0x1fe668{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 _0x338c19{['refresh'](){const {editor:_0xe6ba40}=this,_0x1d5186=_0xe6ba40['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1d5186,this['value']=_0x1d5186?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2d371c}){const {editor:_0x5d82ed}=this,_0x41d350=_0x5d82ed['plugins']['get'](f),_0x56b39d=_0x41d350['getFootnotesDefinitionsObjectElement']();_0x56b39d&&W['includes'](_0x2d371c)&&_0x5d82ed['model']['change'](_0x21c1de=>{_0x21c1de['setAttribute']('footnotesListStyle',_0x2d371c,_0x56b39d),_0x41d350['_updateFootnotesCounters'](_0x21c1de);});}}class C extends _0x338c19{['refresh'](){const {editor:_0x152b39}=this,_0xf404bf=_0x152b39['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xf404bf,this['value']=_0xf404bf?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x554896}){const {editor:_0x58a3eb}=this,_0x1cdf9a=_0x58a3eb['plugins']['get'](f),_0x20158b=_0x1cdf9a['getFootnotesDefinitionsObjectElement']();_0x20158b&&Number['isInteger'](_0x554896)&&_0x58a3eb['model']['change'](_0x57d531=>{_0x57d531['setAttribute']('footnotesListStart',_0x554896,_0x20158b),_0x1cdf9a['_updateFootnotesCounters'](_0x57d531);});}}class P extends _0x1fe668{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2a7b1d}=this;_0x2a7b1d['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x2a7b1d['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x2a7b1d['commands']['add']('footnotesStyle',new S(_0x2a7b1d)),_0x2a7b1d['commands']['add']('footnotesStart',new C(_0x2a7b1d)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x5954f2}=this,{schema:_0x1885d6}=_0x5954f2['model'];_0x1885d6['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4ac522}=this,{conversion:_0x2892b3,model:_0x2e4f4a}=_0x4ac522,{schema:_0x249a41}=_0x2e4f4a;_0x2892b3['for']('upcast')['add'](_0x2f18d0=>{_0x2f18d0['on']('element:ol',(_0xfd94ff,_0x8ad00c,_0x2410e2)=>{const _0x17db99=_0x8ad00c['viewItem'],_0x11fdba=_0x8ad00c['modelCursor']?.['parent'];_0x17db99['hasClass']('footnotes-list')&&_0x11fdba?.['is']('element','footnotesDefinitions')&&(function(_0x71b970,_0x4b0590,_0x5d93f3,_0x2bbb4d){if(!_0x2bbb4d['checkAttribute'](_0x4b0590,'footnotesListStart'))return;let _0x142c5d=0x1;const _0x297141=_0x5d93f3['consumable']['consume'](_0x71b970,{'attributes':'start'});if(_0x297141){const _0x5286fe=Number['parseInt'](_0x71b970['getAttribute']('start'),0xa);Number['isNaN'](_0x5286fe)||(_0x142c5d=_0x5286fe);}!_0x297141&&_0x4b0590['hasAttribute']('footnotesListStart')||_0x5d93f3['writer']['setAttribute']('footnotesListStart',_0x142c5d,_0x4b0590);}(_0x17db99,_0x11fdba,_0x2410e2,_0x249a41),function(_0x16b44d,_0x588335,_0x191cbc,_0x34c0df){if(!_0x34c0df['checkAttribute'](_0x588335,'footnotesListStyle'))return;let _0x31c411='decimal',_0xd761c8=!0x1;if(_0x191cbc['consumable']['consume'](_0x16b44d,{'attributes':'type'})){const _0x491716={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x16b44d['getAttribute']('type')];_0x491716&&(_0x31c411=_0x491716),_0xd761c8=!0x0;}_0x191cbc['consumable']['consume'](_0x16b44d,{'styles':'list-style-type'})&&(_0x31c411=function(_0xd1529f){switch(_0xd1529f){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0xd1529f;}}(_0x16b44d['getStyle']('list-style-type')),_0xd761c8=!0x0),!_0xd761c8&&_0x588335['hasAttribute']('footnotesListStyle')||_0x191cbc['writer']['setAttribute']('footnotesListStyle',_0x31c411,_0x588335);}(_0x17db99,_0x11fdba,_0x2410e2,_0x249a41));});}),_0x2892b3['for']('downcast')['add'](_0x4d2876=>{_0x4d2876['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5abf45,_0x1dde7e,_0x8f105)=>{if(!_0x8f105['consumable']['consume'](_0x1dde7e['item'],_0x5abf45['name']))return;const _0x3d2c09=M(_0x1dde7e['item'],_0x8f105['mapper']),{attributeNewValue:_0x3aebfa}=_0x1dde7e;null==_0x3aebfa||0x1===_0x3aebfa?_0x8f105['writer']['removeAttribute']('start',_0x3d2c09):_0x8f105['writer']['setAttribute']('start',String(_0x3aebfa),_0x3d2c09);}),_0x4d2876['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x46a33c,_0x184aba,_0x4070c8)=>{if(!_0x4070c8['consumable']['consume'](_0x184aba['item'],_0x46a33c['name']))return;const _0x1f237d=M(_0x184aba['item'],_0x4070c8['mapper']),{attributeNewValue:_0x553241}=_0x184aba;_0x553241&&'decimal'!==_0x553241?_0x4070c8['writer']['setStyle']('list-style-type',_0x553241,_0x1f237d):_0x4070c8['writer']['removeStyle']('list-style-type',_0x1f237d);});});}['_definePostfixer'](){const {editor:_0x7e09fc}=this,{model:_0x2f9c0f}=_0x7e09fc,_0x4f6e05=_0x7e09fc['plugins']['get'](f),_0x4acf5a=this['_getDefaultListStyle'](),_0x2a1603=this['_getDefaultStartIndex']();_0x2f9c0f['document']['registerPostFixer'](_0x4960e3=>{const _0x6e638f=_0x2f9c0f['document']['differ']['getChanges']();let _0xe4162c=!0x1;for(const _0x184448 of _0x6e638f){if('insert'!==_0x184448['type']||'$text'===_0x184448['name'])continue;const _0x536bac=_0x2f9c0f['createRangeOn'](_0x184448['position']['nodeAfter']);for(const _0x1cf8ca of _0x536bac['getItems']())_0x1cf8ca['is']('element','footnotesDefinitions')&&(!_0x1cf8ca['hasAttribute']('footnotesListStart')&&_0x2f9c0f['schema']['checkAttribute'](_0x1cf8ca,'footnotesListStart')&&(_0x4960e3['setAttribute']('footnotesListStart',_0x2a1603,_0x1cf8ca),_0xe4162c=!0x0),!_0x1cf8ca['hasAttribute']('footnotesListStyle')&&_0x2f9c0f['schema']['checkAttribute'](_0x1cf8ca,'footnotesListStyle')&&(_0x4960e3['setAttribute']('footnotesListStyle',_0x4acf5a,_0x1cf8ca),_0xe4162c=!0x0));}return _0xe4162c&&_0x4f6e05['_updateFootnotesCounters'](_0x4960e3),_0xe4162c;});}['_defineFormatter'](){const {editor:_0x2ea192}=this;_0x2ea192['plugins']['get'](f)['setFootnoteFormatter'](_0x2ad113=>this['_formatFootnoteListValue'](_0x2ad113));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4230b9,value:_0x107d1d,digits:_0x3bc489}){const _0x4b41df=_0x4230b9['getAttribute']('footnotesListStyle'),_0xe9935d=_0x4230b9['getAttribute']('footnotesListStart'),_0x437db7=Math['floor'](_0x107d1d)+(_0xe9935d??0x1)-0x1;switch(_0x4b41df){case'decimal-leading-zero':return function(_0x3e8daa,_0x4d5d14){return String(_0x3e8daa)['padStart'](_0x4d5d14,'0');}(_0x437db7,Math['max'](0x2,_0x3bc489));case'lower-alpha':case'lower-latin':return N(_0x437db7,!0x1);case'upper-alpha':case'upper-latin':return N(_0x437db7,!0x0);case'lower-roman':return X(_0x437db7,!0x1);case'upper-roman':return X(_0x437db7,!0x0);default:return String(_0x437db7);}}}function M(_0x580224,_0x50b2ac){const _0x4d68b2=_0x50b2ac['toViewElement'](_0x580224);return Array['from'](_0x4d68b2['getChildren']())['find'](_0x26e991=>_0x26e991['is']('element','ol')&&_0x26e991['hasClass']('footnotes-list'));}function N(_0x24e902,_0x1d9a4a){let _0x511e73='',_0x4b737f=_0x24e902;for(;_0x4b737f>0x0;){const _0x448dbc=(_0x4b737f-0x1)%0x1a;_0x511e73=String['fromCharCode'](0x61+_0x448dbc)+_0x511e73,_0x4b737f=Math['floor']((_0x4b737f-0x1)/0x1a);}return _0x1d9a4a?_0x511e73['toUpperCase']():_0x511e73;}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(_0x3492a8,_0x3d8865){let _0x4c049f='',_0x17dcee=_0x3492a8;for(const {value:_0x47a42e,numeral:_0x5ef5a5}of V)for(;_0x17dcee>=_0x47a42e;)_0x4c049f+=_0x5ef5a5,_0x17dcee-=_0x47a42e;return _0x3d8865?_0x4c049f:_0x4c049f['toLowerCase']();}class J extends _0x6b212b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x18d75f();['focusCycler'];constructor(_0xc9407,{styleButtonViews:_0x4bf1e0,styleGridAriaLabel:_0x289988}){super(_0xc9407),(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'](_0x4bf1e0,_0x289988),[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 _0x2ad831 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2ad831['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 _0x47b669=_0x328992=>_0x328992['stopPropagation']();this['keystrokes']['set']('arrowright',_0x47b669),this['keystrokes']['set']('arrowleft',_0x47b669),this['keystrokes']['set']('arrowup',_0x47b669),this['keystrokes']['set']('arrowdown',_0x47b669);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4c299f,_0x36fd8b){const _0x5a6ad0=new _0x6b212b(this['locale']);return _0x5a6ad0['children']=_0x5a6ad0['createCollection'](),_0x5a6ad0['children']['addMany'](_0x4c299f),_0x5a6ad0['setTemplate']({'tag':'div','attributes':{'aria-label':_0x36fd8b,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5a6ad0['children']}),_0x5a6ad0['children']['delegate']('execute')['to'](this),_0x5a6ad0['focus']=function(){for(const _0x23c5b6 of this['children'])if(_0x23c5b6 instanceof _0x4fa049&&_0x23c5b6['isOn'])return void _0x23c5b6['focus']();this['children']['first']['focus']();},_0x5a6ad0['focusTracker']=new rt(),_0x5a6ad0['keystrokes']=new nt(),_0x5a6ad0['render'](),_0x5a6ad0['keystrokes']['listenTo'](_0x5a6ad0['element']),this['children']['add'](_0x5a6ad0),_0x5a6ad0;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x122a98=this['_createStartIndexPropertyView'](),_0x38040b=[_0x122a98],_0x5a2a58=new it(this['locale'],_0x38040b);return _0x5a2a58['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5a2a58['buttonView']['bind']('isEnabled')['toMany'](_0x38040b,'isEnabled',(..._0x5db940)=>_0x5db940['some'](_0xd72b29=>_0xd72b29)),_0x5a2a58['buttonView']['on']('change:isEnabled',(_0x3736ee,_0x3fb66d,_0x274a9b)=>{_0x274a9b||(_0x5a2a58['isCollapsed']=!0x0);}),this['children']['add'](_0x5a2a58),[_0x122a98,_0x5a2a58];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x186e5f=new et(this['locale'],ot);return _0x186e5f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x186e5f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x186e5f['fieldView']['on']('input',()=>{const _0x24c110=_0x186e5f['fieldView']['element'],_0x44424e=_0x24c110['valueAsNumber'];Number['isNaN'](_0x44424e)?_0x186e5f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x24c110['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x44424e}):_0x186e5f['errorText']=t(_0x44424e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x186e5f;}}class j extends _0x1fe668{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1155da,_0x7a5d21];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51ee08}=this,{componentFactory:_0x1888af}=_0x51ee08['ui'];_0x51ee08['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1888af['add']('footnotesStyle',function(_0x1bce91){return _0x3b5502=>{const {t:t}=_0x3b5502,_0x4dfcc0=_0x1bce91['commands']['get']('footnotesStyle'),_0x279537=_0x5d3538(_0x3b5502),{buttonView:_0x40a0f4}=_0x279537;return _0x279537['class']='ck-footnotes-styles-dropdown',_0x279537['bind']('isEnabled')['to'](_0x4dfcc0,'isEnabled'),_0x40a0f4['set']({'label':t('Footnotes\x20style'),'icon':_0xfb31bc,'tooltip':!0x0}),_0x279537['once']('change:isOpen',()=>{const _0x30068a=function({editor:_0x17f4ee,dropdownView:_0x4c3044}){const {t:t}=_0x17f4ee['locale'],_0x17ac8d=t('Footnotes\x20definitions\x20styles'),_0x3b6449=function(_0x2a7725){const t=_0x2a7725['locale']['t'],_0x3dbf7c=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x478e9},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xc13896},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x45067d},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x18bc3e},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x91079c},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2f870c}];return _0x3dbf7c['map'](function(_0x559683){const _0x9ba3c7=_0x559683['locale'];return({label:_0x356418,icon:_0x4469e5,tooltip:_0xc26e94,style:_0x5395a6})=>{const _0x45461d=_0x559683['commands']['get']('footnotesStyle'),_0x46e2fc=new _0x4fa049(_0x9ba3c7);return _0x46e2fc['set']({'label':_0x356418,'icon':_0x4469e5,'tooltip':_0xc26e94}),_0x46e2fc['bind']('isOn')['to'](_0x45461d,'value',_0x4592ae=>_0x4592ae===_0x5395a6),_0x46e2fc['bind']('isEnabled')['to'](_0x45461d,'isEnabled'),_0x46e2fc['on']('execute',()=>{_0x559683['execute']('footnotesStyle',{'value':_0x5395a6}),_0x559683['editing']['view']['focus']();}),_0x46e2fc;};}(_0x2a7725));}(_0x17f4ee),_0x5954f1=new J(_0x17f4ee['locale'],{'styleGridAriaLabel':_0x17ac8d,'styleButtonViews':_0x3b6449}),_0x1532a5=_0x17f4ee['commands']['get']('footnotesStart');return _0x5954f1['startIndexFieldView']['bind']('isEnabled')['to'](_0x1532a5),_0x5954f1['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x1532a5),_0x5954f1['on']('footnotesListStart',(_0xf956cc,_0x5908ad)=>{_0x17f4ee['execute']('footnotesStart',{'value':_0x5908ad['startIndex']});}),_0x5954f1['delegate']('execute')['to'](_0x4c3044),_0x5954f1;}({'editor':_0x1bce91,'dropdownView':_0x279537});_0x279537['panelView']['children']['add'](_0x30068a);}),_0x279537;};}(_0x51ee08));}['afterInit'](){const {editor:_0xe967cc}=this,{t:t}=_0xe967cc['locale'],_0x438046=_0xe967cc['plugins']['get'](_0x7a5d21),{defaultPositions:_0x4f3896}=_0x2b6864;_0x438046['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xe967cc['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x70219e=>{let _0x3901e4=_0x70219e['getFirstPosition']()?.['parent'];return _0x3901e4?.['is']('$text')&&(_0x3901e4=_0x3901e4['parent']),_0x3901e4?.['is']('element')?_0x3901e4['findAncestor'](Q):null;},'positions':[_0x4f3896['southArrowNorth'],_0x4f3896['southArrowNorthMiddleWest'],_0x4f3896['southArrowNorthMiddleEast'],_0x4f3896['southArrowNorthWest'],_0x4f3896['southArrowNorthEast'],_0x4f3896['northArrowSouth'],_0x4f3896['northArrowSouthMiddleWest'],_0x4f3896['northArrowSouthMiddleEast'],_0x4f3896['northArrowSouthWest'],_0x4f3896['northArrowSouthEast'],_0x4f3896['viewportStickyNorth']]});}}class ft extends _0x1fe668{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.6.2-alpha.0",
3
+ "version": "47.6.2",
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.6.2-alpha.0",
27
- "@ckeditor/ckeditor5-ui": "47.6.2-alpha.0",
28
- "@ckeditor/ckeditor5-engine": "47.6.2-alpha.0",
29
- "@ckeditor/ckeditor5-icons": "47.6.2-alpha.0",
30
- "@ckeditor/ckeditor5-widget": "47.6.2-alpha.0",
31
- "@ckeditor/ckeditor5-clipboard": "47.6.2-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "47.6.2-alpha.0",
33
- "ckeditor5": "47.6.2-alpha.0"
26
+ "@ckeditor/ckeditor5-core": "47.6.2",
27
+ "@ckeditor/ckeditor5-ui": "47.6.2",
28
+ "@ckeditor/ckeditor5-engine": "47.6.2",
29
+ "@ckeditor/ckeditor5-icons": "47.6.2",
30
+ "@ckeditor/ckeditor5-widget": "47.6.2",
31
+ "@ckeditor/ckeditor5-clipboard": "47.6.2",
32
+ "@ckeditor/ckeditor5-utils": "47.6.2",
33
+ "ckeditor5": "47.6.2"
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 _0x4b571a}from'ckeditor5/src/core.js';import{isWidget as _0x3011e7,toWidget as _0x552e17,toWidgetEditable as _0x2829e1}from'ckeditor5/src/widget.js';import{uid as _0x24054a}from'ckeditor5/src/utils.js';import{PointerObserver as _0x419de8,ClickObserver as _0x5bd886}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x35a9c9}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x50fca1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4b571a{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x35a9c9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24ca46}=this;_0x24ca46['config']['define']('footnotes.multiBlock',!0x0),_0x24ca46['commands']['add']('insertFootnote',new _0x50fca1(_0x24ca46)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4577f6){const _0x194e8a=_0xa3e445([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]),_0x4c52b5=0x47a28506,_0xe275c9=0x47a50396^_0x4c52b5,_0x427d69=window[_0xa3e445([0x44,0x61,0x74,0x65])][_0xa3e445([0x6e,0x6f,0x77])](),_0x45a9e4=_0x4577f6[_0xa3e445([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x15d9a2=new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5c9aa5=>{_0x45a9e4[_0xa3e445([0x6f,0x6e,0x63,0x65])](_0xa3e445([0x72,0x65,0x61,0x64,0x79]),_0x5c9aa5);}),_0x1f38e7={[_0xa3e445([0x6b,0x74,0x79])]:_0xa3e445([0x45,0x43]),[_0xa3e445([0x75,0x73,0x65])]:_0xa3e445([0x73,0x69,0x67]),[_0xa3e445([0x63,0x72,0x76])]:_0xa3e445([0x50,0x2d,0x32,0x35,0x36]),[_0xa3e445([0x78])]:_0xa3e445([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]),[_0xa3e445([0x79])]:_0xa3e445([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]),[_0xa3e445([0x61,0x6c,0x67])]:_0xa3e445([0x45,0x53,0x32,0x35,0x36])},_0x4c1c1a=_0x45a9e4[_0xa3e445([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xa3e445([0x67,0x65,0x74])](_0xa3e445([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4e51da(){let _0x5f51f3,_0x1f78cf=null,_0x12ded7=null;try{if(_0x4c1c1a==_0xa3e445([0x47,0x50,0x4c]))return _0xa3e445([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5f51f3=_0x3719a3(),!_0x5f51f3)return _0xa3e445([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5f51f3[_0xa3e445([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x12ded7=_0x3b2ebe(_0x5f51f3[_0xa3e445([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5f51f3[_0xa3e445([0x6a,0x74,0x69])])),await _0x520bd6()?_0x4ad093()?_0x4d3ee4()?_0xa3e445([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x18b51f()?(_0x5f51f3[_0xa3e445([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xa3e445([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f78cf=_0x1ca831(_0xa3e445([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x23f1e2()):_0xa3e445([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xa3e445([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xa3e445([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xa3e445([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4d3ee4(){const _0x1ca6e3=[_0xa3e445([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xa3e445([0x74,0x72,0x69,0x61,0x6c])][_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5f51f3[_0xa3e445([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x427d69/0x3e8:0xe10*_0xe275c9;return _0x5f51f3[_0xa3e445([0x65,0x78,0x70])]<_0x1ca6e3;}function _0x4ad093(){const _0x5ab1c6=_0x5f51f3[_0xa3e445([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ab1c6&&(!!_0x5ab1c6[_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3e445([0x2a]))||!!_0x5ab1c6[_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3e445([0x46,0x4f,0x4f])));}function _0x18b51f(){const _0x43b87c=_0x5f51f3[_0xa3e445([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x43b87c||0x0==_0x43b87c[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x194b20}=new URL(window[_0xa3e445([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x43b87c[_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x194b20))return!0x0;const _0x1db5f1=_0x194b20[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])](_0xa3e445([0x2e]));return _0x43b87c[_0xa3e445([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f0d15=>_0x4f0d15[_0xa3e445([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa3e445([0x2a])))[_0xa3e445([0x6d,0x61,0x70])](_0x3276e4=>_0x3276e4[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])](_0xa3e445([0x2e])))[_0xa3e445([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11ce7b=>_0x11ce7b[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1db5f1[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa3e445([0x6d,0x61,0x70])](_0x219e66=>Array(_0x1db5f1[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x219e66[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xa3e445([0x66,0x69,0x6c,0x6c])](_0x219e66[0x0]===_0xa3e445([0x2a])?_0xa3e445([0x2a]):'')[_0xa3e445([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x219e66))[_0xa3e445([0x73,0x6f,0x6d,0x65])](_0x34f7ea=>_0x1db5f1[_0xa3e445([0x65,0x76,0x65,0x72,0x79])]((_0x1489d5,_0x2e6206)=>_0x34f7ea[_0x2e6206]===_0x1489d5||_0x34f7ea[_0x2e6206]===_0xa3e445([0x2a])));}function _0x23f1e2(){return _0x1f78cf&&_0x12ded7?new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9ddbf1,_0x292847)=>{_0x1f78cf[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x9ddbf1,_0x292847),_0x12ded7[_0xa3e445([0x74,0x68,0x65,0x6e])](_0xc5fa76=>{_0xc5fa76!=_0xa3e445([0x56,0x61,0x6c,0x69,0x64])&&_0x9ddbf1(_0xc5fa76);},_0x292847);}):_0x1f78cf||_0x12ded7||_0xa3e445([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3b2ebe(_0x1c347f,_0x16adb0){return new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x369640=>{if(_0x4eee43())return _0x369640(_0xa3e445([0x56,0x61,0x6c,0x69,0x64]));_0x570781(),_0x45a9e4[_0xa3e445([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xa3e445([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x26475e=!0x1;const _0x44a28e=_0x24054a();function _0x20b1e7(_0x2c5346){return!!_0x2c5346&&(typeof _0x2c5346===_0xa3e445([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2c5346===_0xa3e445([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2c5346[_0xa3e445([0x74,0x68,0x65,0x6e])]===_0xa3e445([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2c5346[_0xa3e445([0x63,0x61,0x74,0x63,0x68])]===_0xa3e445([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2c0c80(_0x161ee1){_0x4e5f34(_0x161ee1)[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x37d4ac=>{if(!_0x37d4ac||_0x37d4ac[_0xa3e445([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xa3e445([0x6f,0x6b]))return _0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x517545(_0x3dc1b7(_0x44a28e+_0x16adb0))!=_0x37d4ac[_0xa3e445([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xa3e445([0x56,0x61,0x6c,0x69,0x64]);})[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x98224b=>(_0x2897a7(),_0x98224b),()=>{const _0x24a075=_0x77fded();return null==_0x24a075?(_0x2897a7(),_0xa3e445([0x56,0x61,0x6c,0x69,0x64])):_0xa3e445(_0x427d69-_0x24a075>(0x63ae0106^_0x4c52b5)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x369640)[_0xa3e445([0x63,0x61,0x74,0x63,0x68])](()=>{_0x369640(_0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x40f755=0x47946b86^_0x4c52b5;function _0x2897a7(){const _0x28da5a=_0xa3e445([0x6c,0x6c,0x63,0x74,0x2d])+_0x517545(_0x3dc1b7(_0x1c347f)),_0x271837=_0x196224(_0x517545(window[_0xa3e445([0x4d,0x61,0x74,0x68])][_0xa3e445([0x63,0x65,0x69,0x6c])](_0x427d69/_0x40f755)));window[_0xa3e445([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa3e445([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x28da5a,_0x271837);}function _0x77fded(){const _0x415d38=_0xa3e445([0x6c,0x6c,0x63,0x74,0x2d])+_0x517545(_0x3dc1b7(_0x1c347f)),_0x55f084=window[_0xa3e445([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xa3e445([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x415d38);return _0x55f084?window[_0xa3e445([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x196224(_0x55f084),0x10)*_0x40f755:null;}function _0x4e5f34(_0x3962d5){return new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x55ee78,_0x5c29dc)=>{_0x3962d5[_0xa3e445([0x74,0x68,0x65,0x6e])](_0x55ee78,_0x5c29dc),window[_0xa3e445([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5c29dc,0x47a351c6^_0x4c52b5);});}}_0x45a9e4[_0xa3e445([0x6f,0x6e])](_0xa3e445([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x19d90e,_0x35adc5)=>{if(_0x35adc5[0x0]!=_0x1c347f)return _0x369640(_0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x35adc5[0x1]={..._0x35adc5[0x1],[_0xa3e445([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x44a28e};},{[_0xa3e445([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa3e445([0x68,0x69,0x67,0x68])}),_0x45a9e4[_0xa3e445([0x6f,0x6e])](_0xa3e445([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58f607=>{_0x20b1e7(_0x58f607[_0xa3e445([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x26475e=!0x0,_0x2c0c80(_0x58f607[_0xa3e445([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xa3e445([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xa3e445([0x6c,0x6f,0x77])}),_0x15d9a2[_0xa3e445([0x74,0x68,0x65,0x6e])](()=>{_0x26475e||_0x369640(_0xa3e445([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4eee43(){return _0x45a9e4[_0xa3e445([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa3e445([0x76,0x69,0x65,0x77])][_0xa3e445([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xa3e445([0x61,0x75,0x74,0x6f]);}function _0x570781(){_0x45a9e4[_0xa3e445([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xa3e445([0x76,0x69,0x65,0x77])][_0xa3e445([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xa3e445([0x61,0x75,0x74,0x6f]);}}function _0x1ca831(_0x2b8b22){const _0x26f85c=[new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3d3516=>setTimeout(_0x3d3516,0x47abbbca^_0x4c52b5)),_0x15d9a2[_0xa3e445([0x74,0x68,0x65,0x6e])](()=>new window[(_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c9b3b=>{let _0x431ce1=0x0;_0x45a9e4[_0xa3e445([0x6d,0x6f,0x64,0x65,0x6c])][_0xa3e445([0x6f,0x6e])](_0xa3e445([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2b5a9f,_0x48b708)=>{_0x48b708[0x0][_0xa3e445([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x431ce1++,_0x431ce1==(0x47a280ee^_0x4c52b5)&&(_0x4c9b3b(),_0x2b5a9f[_0xa3e445([0x6f,0x66,0x66])]());});}))];return window[_0xa3e445([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xa3e445([0x72,0x61,0x63,0x65])](_0x26f85c)[_0xa3e445([0x74,0x68,0x65,0x6e])](()=>_0x2b8b22);}async function _0x1f2b60(){await _0x15d9a2,_0x45a9e4[_0xa3e445([0x6d,0x6f,0x64,0x65,0x6c])][_0xa3e445([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e5295,_0x45a9e4[_0xa3e445([0x6d,0x6f,0x64,0x65,0x6c])][_0xa3e445([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e5295,_0x45a9e4[_0xa3e445([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xa3e445([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3d36e9(_0x1bc94e){const _0x3334b4=_0x56bd85();_0x45a9e4[_0x3334b4]=_0xa3e445([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bc94e,_0x1bc94e!=_0xa3e445([0x56,0x61,0x6c,0x69,0x64])&&_0x1f2b60();}function _0x56bd85(){const _0x3bd88f=window[_0xa3e445([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xa3e445([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xa3e445([0x6e,0x6f,0x77])]())[_0xa3e445([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xa3e445([0x2e]),'');let _0x2e143e=_0xa3e445([0x75]);for(let _0x4716d6=0x0;_0x4716d6<_0x3bd88f[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4716d6+=0x2){let _0x4efbb9=window[_0xa3e445([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3bd88f[_0xa3e445([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4716d6,_0x4716d6+0x2));_0x4efbb9>=_0x194e8a[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4efbb9-=_0x194e8a[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e143e+=_0x194e8a[_0x4efbb9];}return _0x2e143e;}function _0x3719a3(){const _0x2a1d12=_0x4c1c1a[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])](_0xa3e445([0x2e]));if(0x3!=_0x2a1d12[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x121f60(_0x2a1d12[0x1]);function _0x121f60(_0x1d610f){const _0x2eed3d=_0x39a918(_0x1d610f);return _0x2eed3d&&_0x58cfa0()?_0x2eed3d:null;function _0x58cfa0(){const _0x32810d=_0x2eed3d[_0xa3e445([0x6a,0x74,0x69])],_0x146e46=window[_0xa3e445([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x32810d[_0xa3e445([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x32810d[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x458c19={..._0x2eed3d,[_0xa3e445([0x6a,0x74,0x69])]:_0x32810d[_0xa3e445([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x32810d[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x458c19[_0xa3e445([0x76,0x63])],_0x3dc1b7(_0x458c19)==_0x146e46;}}}async function _0x520bd6(){let _0x5f2dde=!0x0;try{const _0x12fcb2=_0x4c1c1a[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])](_0xa3e445([0x2e])),[_0x4d9683,_0x5865fd,_0x1ba68f]=_0x12fcb2;return _0x2f52f4(_0x4d9683),await _0x285987(_0x4d9683,_0x5865fd,_0x1ba68f),_0x5f2dde;}catch{return!0x1;}function _0x2f52f4(_0x18f175){const _0x45d18a=_0x39a918(_0x18f175);_0x45d18a&&_0x45d18a[_0xa3e445([0x61,0x6c,0x67])]==_0xa3e445([0x45,0x53,0x32,0x35,0x36])||(_0x5f2dde=!0x1);}async function _0x285987(_0xf3dfa6,_0x1e87d9,_0x5a16e2){const _0x4a5ffe=window[_0xa3e445([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xa3e445([0x66,0x72,0x6f,0x6d])](_0x3c1bbc(_0x5a16e2),_0x4378de=>_0x4378de[_0xa3e445([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x458087=new window[(_0xa3e445([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xa3e445([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xf3dfa6+_0xa3e445([0x2e])+_0x1e87d9),_0x376590=window[_0xa3e445([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xa3e445([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x376590)return;const _0x2f8b60=await _0x376590[_0xa3e445([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xa3e445([0x6a,0x77,0x6b]),_0x1f38e7,{[_0xa3e445([0x6e,0x61,0x6d,0x65])]:_0xa3e445([0x45,0x43,0x44,0x53,0x41]),[_0xa3e445([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xa3e445([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xa3e445([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x376590[_0xa3e445([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xa3e445([0x6e,0x61,0x6d,0x65])]:_0xa3e445([0x45,0x43,0x44,0x53,0x41]),[_0xa3e445([0x68,0x61,0x73,0x68])]:{[_0xa3e445([0x6e,0x61,0x6d,0x65])]:_0xa3e445([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2f8b60,_0x4a5ffe,_0x458087)||(_0x5f2dde=!0x1);}}function _0x39a918(_0x34c785){return _0x34c785[_0xa3e445([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xa3e445([0x65,0x79]))?JSON[_0xa3e445([0x70,0x61,0x72,0x73,0x65])](_0x3c1bbc(_0x34c785)):null;}function _0x3c1bbc(_0x3d6a21){return window[_0xa3e445([0x61,0x74,0x6f,0x62])](_0x3d6a21[_0xa3e445([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xa3e445([0x2b]))[_0xa3e445([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xa3e445([0x2f])));}function _0x3dc1b7(_0x5a9eef){let _0x8b8628=0x1505;function _0x31a159(_0x2c70f4){for(let _0x5518d2=0x0;_0x5518d2<_0x2c70f4[_0xa3e445([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5518d2++){const _0x21b473=_0x2c70f4[_0xa3e445([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5518d2);_0x8b8628=(_0x8b8628<<0x5)+_0x8b8628+_0x21b473,_0x8b8628&=_0x8b8628;}}function _0x5bae6c(_0x2d4f90){Array[_0xa3e445([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2d4f90)?_0x2d4f90[_0xa3e445([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bae6c):_0x2d4f90&&typeof _0x2d4f90==_0xa3e445([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xa3e445([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2d4f90)[_0xa3e445([0x73,0x6f,0x72,0x74])]()[_0xa3e445([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x19370d,_0x2094f9])=>{_0x31a159(_0x19370d),_0x5bae6c(_0x2094f9);}):_0x31a159(window[_0xa3e445([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2d4f90));}return _0x5bae6c(_0x5a9eef),_0x8b8628>>>0x0;}function _0x517545(_0x312a61){return _0x312a61[_0xa3e445([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xa3e445([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xa3e445([0x30]));}function _0x196224(_0x580683){return _0x580683[_0xa3e445([0x73,0x70,0x6c,0x69,0x74])]('')[_0xa3e445([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xa3e445([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e5295(){}function _0xa3e445(_0x392d7f){return _0x392d7f['map'](_0x70c5ad=>String['fromCharCode'](_0x70c5ad))['join']('');}_0x3d36e9(await _0x4e51da());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3e3831){const {plugins:_0x3782bd,editing:_0xd71b58,model:_0x3c49dd}=this['editor'],_0x4dba82=_0x3782bd['get'](_0x35a9c9)['getFootnote'](_0x3e3831);return!!_0x4dba82&&(_0x3c49dd['change'](_0x411412=>{_0x411412['setSelection'](_0x411412['createPositionAt'](_0x4dba82['definition'],'end'));}),_0xd71b58['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x31eaa5){const {plugins:_0xcf7bd,editing:_0x14fcfe,model:_0x2c49bf}=this['editor'],_0x5b8191=_0xcf7bd['get'](_0x35a9c9)['getFootnote'](_0x31eaa5);return!!_0x5b8191&&(_0x2c49bf['change'](_0x217296=>{_0x217296['setSelection'](_0x5b8191['reference'],'on');}),_0x14fcfe['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2cd474}=this['editor']['model'],_0x34d898=this['editor']['config']['get']('footnotes.multiBlock');_0x2cd474['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2cd474['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2cd474['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x34d898?_0x2cd474['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2cd474['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2cd474['addChildCheck'](_0x5488e3=>{for(const _0x382c44 of _0x5488e3)if('footnoteDefinition'===_0x382c44['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x24c5fd}=this,{conversion:_0x54b41d,editing:_0x405f7a}=_0x24c5fd,{t:t}=_0x24c5fd['locale'];_0x54b41d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2c944a,{writer:_0x38e387,consumable:_0x36d88d})=>{const _0x26c9eb=_0x2c944a['getChild'](0x0);if(!_0x26c9eb||!_0x26c9eb['is']('element','a'))return null;const _0x5ca2fb=_0x26c9eb['getAttribute']('href')||'';if(!_0x5ca2fb['startsWith']('#'))return null;const _0x2f6ce2=_0x5ca2fb['replace'](/^#/,'');if(!_0x2f6ce2)return null;_0x36d88d['consume'](_0x26c9eb,{'name':!0x0,'attributes':['href']});for(const {item:_0x31a252}of _0x405f7a['view']['createRangeIn'](_0x26c9eb))_0x31a252['is']('$textProxy')?_0x36d88d['consume'](_0x31a252['textNode'],{'name':!0x0}):_0x31a252['is']('element')&&_0x36d88d['consume'](_0x31a252,{'name':!0x0});return _0x38e387['createElement']('footnoteRef',{'footnoteId':_0x2f6ce2});}}),_0x54b41d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4a8395,{writer:_0x3ab5fa})=>b(_0x4a8395,_0x3ab5fa)}),_0x54b41d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x542b32,{writer:_0x547356})=>{const _0x2b8dcd=_0x542b32['getAttribute']('footnoteCounter');return _0x552e17(b(_0x542b32,_0x547356),_0x547356,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2b8dcd)});}});}['_defineDefinitionsConverters'](){const {editor:_0x27d241}=this,{t:t}=_0x27d241['locale'],{conversion:_0x508a1b}=_0x27d241;_0x508a1b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x508a1b['for']('upcast')['add'](_0x5c0597=>{_0x5c0597['on']('element:ol',(_0x4e0c52,_0x3b7ec5,_0x1f7de4)=>{const _0xffe13e=_0x3b7ec5['viewItem'];if(!_0xffe13e['hasClass']('footnotes-list')||!_0x3b7ec5['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1f7de4['consumable']['consume'](_0xffe13e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x117e73,modelCursor:_0xf90cb}=_0x1f7de4['convertChildren'](_0x3b7ec5['viewItem'],_0x3b7ec5['modelCursor']);_0x3b7ec5['modelRange']=_0x117e73,_0x3b7ec5['modelCursor']=_0xf90cb;}),_0x5c0597['on']('element:hr',(_0x56df5d,_0x347216,_0x588276)=>{const _0x235984=_0x347216['viewItem'];_0x235984['hasClass']('footnotes-divider')&&_0x347216['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x588276['consumable']['consume'](_0x235984,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x508a1b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5af48e,{writer:_0xf55c31})=>D(_0xf55c31)}),_0x508a1b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e5f55,{writer:_0x58ae2c})=>{const _0x12c8bb=D(_0x58ae2c,{'data-footnotes-list-label':t('Footnotes')}),_0x28a544=_0x552e17(_0x12c8bb,_0x58ae2c,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x58ae2c['setCustomProperty']('footnotesDefinitions',!0x0,_0x28a544),_0x28a544;}});}['_defineDefinitionConverters'](){const {editor:_0x2d2883}=this,{conversion:_0x1d3bda,locale:_0x17f6f8}=_0x2d2883,_0x42560d=_0x2d2883['config']['get']('footnotes.multiBlock');_0x1d3bda['for']('upcast')['add'](_0xc972e=>{_0xc972e['on']('element:li',(_0x386911,_0x2b5148,_0x331e1a)=>{const _0x442fc9=_0x2b5148['viewItem'];if(!_0x442fc9['hasClass']('footnote-definition')||!_0x442fc9['getAttribute']('id'))return;const _0x2cc0af=_0x442fc9['parent'];if(!_0x2cc0af['is']('element','ol')||!_0x2cc0af['hasClass']('footnotes-list'))return;if(!_0x331e1a['consumable']['test'](_0x442fc9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3619c3=_0x331e1a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x442fc9['getAttribute']('id')});if(!_0x331e1a['safeInsert'](_0x3619c3,_0x2b5148['modelCursor']))return;_0x331e1a['consumable']['consume'](_0x442fc9,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x264c62=Array['from'](_0x442fc9['getChildren']())['find'](_0x48c217=>_0x48c217['is']('element')&&_0x48c217['hasClass']('footnote-content'));for(const _0x125d75 of _0x442fc9['getChildren']())_0x125d75['is']('element')&&(_0x331e1a['consumable']['consume'](_0x125d75,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x331e1a['consumable']['consume'](_0x125d75,{'name':!0x0,'classes':'footnote-content'}));if(_0x264c62){if(_0x42560d)_0x331e1a['convertChildren'](_0x264c62,_0x3619c3);else{const _0x40883e=_0x331e1a['writer']['createElement']('footnoteInlineContent');_0x331e1a['writer']['insert'](_0x40883e,_0x3619c3),_0x331e1a['convertChildren'](_0x264c62,_0x40883e);}}_0x331e1a['updateConversionResult'](_0x3619c3,_0x2b5148);});}),_0x1d3bda['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2e83ad,{writer:_0x4c7ef7})=>y(_0x2e83ad,_0x4c7ef7,_0x17f6f8,{'dataPipeline':!0x0})}),_0x1d3bda['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5220c1,{writer:_0x577522})=>y(_0x5220c1,_0x577522,_0x17f6f8)});}['_defineBogusParagraphConverters'](){const {editor:_0x3f4668}=this,{conversion:_0x28c427}=_0x3f4668;_0x3f4668['config']['get']('footnotes.multiBlock')?(_0x28c427['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x28c427['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3f4668['model']['document'],'change:data',()=>{!function(_0xed2323,_0x4cc9fc){const _0x4949da=_0xed2323['document']['differ'],_0x19b295=new Set();for(const _0x5d0ae7 of _0x4949da['getChanges']()){const _0x17171d='attribute'==_0x5d0ae7['type']?_0x5d0ae7['range']['start']['parent']:_0x5d0ae7['position']['parent'];_0x17171d['is']('element','footnoteDefinition')&&_0x19b295['add'](_0x17171d);}for(const _0x4b44f1 of _0x19b295['values']()){const _0x11d4f7=Array['from'](_0x4b44f1['getChildren']())['filter'](_0x53009d=>v(_0x53009d,_0x4cc9fc['mapper']));for(const _0x32afe5 of _0x11d4f7)_0x4cc9fc['reconvertItem'](_0x32afe5);}}(_0x3f4668['model'],_0x3f4668['editing']);})):(_0x28c427['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x28c427['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5145b9,{writer:_0x1691b9})=>{const _0x936d62=_0x1691b9['createContainerElement']('span');return _0x1691b9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x936d62),_0x936d62;}}));}['_defineKeyboardHandlers'](){const {editor:_0x33ef8b}=this,{editing:_0x44c107,t:t}=_0x33ef8b,_0x2c3058=_0x33ef8b['model']['document']['selection'];_0x33ef8b['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x33ef8b['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x44c107['view']['document'],'enter',(_0x74a7f2,_0x401294)=>{const _0x4a7bac=function(_0x1476d6){const _0x1387ee=_0x1476d6['getSelectedElement']();if(_0x1387ee?.['is']('element','footnoteRef'))return _0x1387ee;return null;}(_0x2c3058);if(_0x4a7bac){const _0x151b47=_0x4a7bac['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x151b47),_0x401294['preventDefault'](),_0x74a7f2['stop']();}},{'context':_0x3011e7});}['_defineClickHandlers'](){const {editor:_0x161604}=this,{editing:_0x137724}=_0x161604;_0x161604['editing']['view']['addObserver'](_0x419de8),_0x161604['editing']['view']['addObserver'](_0x5bd886);let _0x35a4e7=!0x1;this['listenTo'](_0x137724['view']['document'],'pointerdown',(_0x2c34f2,_0x5bb56b)=>{const {target:_0x5728e0}=_0x5bb56b,_0x4d20bd=_0x137724['view']['document']['selection'];_0x35a4e7=!!(_0x5728e0?.['is']('element','a')&&_0x5728e0['parent']?.['is']('element','sup')&&_0x5728e0['parent']['hasClass']('footnote'))&&_0x4d20bd['getSelectedElement']()===_0x5728e0['parent'];},{'priority':'high'}),this['listenTo'](_0x137724['view']['document'],'click',(_0xc089e9,_0x3784e9)=>{const {target:_0x632b92}=_0x3784e9;if(!_0x632b92?.['is']('element','a'))return;if(_0x632b92['parent']?.['is']('element','sup')&&_0x632b92['parent']['hasClass']('footnote')&&!_0x35a4e7)return void _0x3784e9['preventDefault']();let _0x3d80ef=_0x632b92['getAttribute']('href');if(!_0x3d80ef?.['startsWith']('#'))return;_0x3d80ef=_0x3d80ef['slice'](0x1);let _0x225f57=!0x1;(_0x3d80ef['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3d80ef['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3d80ef))&&(_0x225f57=!0x0),_0x225f57&&(_0x3784e9['preventDefault'](),_0xc089e9['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x11ff0e}={}){return(_0x200834,{writer:_0x414529})=>{if(!g(_0x200834))return null;if(!_0x11ff0e)return _0x414529['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x384408=_0x414529['createContainerElement']('p');return _0x414529['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x384408),_0x384408;};}function g(_0x3a4012){const {parent:_0x413769}=_0x3a4012;if(!_0x413769?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x413769['childCount'])return!0x1;for(const _0x33d487 of _0x3a4012['getAttributeKeys']())if(!_0x33d487['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x33d487)return!0x1;return!0x0;}function v(_0x566625,_0x39280a){if(!_0x566625['is']('element','paragraph'))return!0x1;const _0x5bf4e7=_0x39280a['toViewElement'](_0x566625);return!!_0x5bf4e7&&g(_0x566625)!==_0x5bf4e7['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x241c15){return _0x3011e7(_0x241c15)&&_0x241c15['is']('containerElement')&&!!_0x241c15['getCustomProperty']('footnotesDefinitions');}function D(_0x58fc37,_0x29f830={}){const _0x263ed8=_0x58fc37['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x494b8d=_0x58fc37['createContainerElement']('ol',{'class':'footnotes-list'},_0x58fc37['createSlot']());return _0x58fc37['createContainerElement']('div',{'class':'footnotes',..._0x29f830},[_0x263ed8,_0x494b8d]);}function b(_0x3febd8,_0xf08d3){const _0x14a725=_0x3febd8['getAttribute']('footnoteId'),_0x4e1cc8=_0x3febd8['getAttribute']('footnoteCounter'),_0x4c662c=_0xf08d3['createUIElement']('a',{'href':'#'+_0x14a725},function(_0x30d67a){const _0x53f369=this['toDomElement'](_0x30d67a);return _0x53f369['textContent']=_0x4e1cc8,_0x53f369;}),_0x1c6453=_0xf08d3['createContainerElement']('sup',{'id':'ref-'+_0x14a725,'class':'footnote'},[_0x4c662c]);return _0x1c6453['getFillerOffset']=()=>null,_0x1c6453;}function y(_0x282a36,_0xc602e,_0x37fa62,{dataPipeline:_0x41b183}={}){const {t:t}=_0x37fa62,_0x4c3ff7=_0x282a36['getAttribute']('footnoteId'),_0x794c3c=_0xc602e['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4c3ff7},function(_0x54e60c){const _0x49653b=this['toDomElement'](_0x54e60c);return _0x49653b['innerText']='^',_0x49653b;}),_0x3aa508=_0x41b183?_0xc602e['createContainerElement']('div',{'class':'footnote-content'}):_0x2829e1(_0xc602e['createEditableElement']('div',{'class':'footnote-content'}),_0xc602e,{'label':t('Footnote\x20content.')});return _0xc602e['insert'](_0xc602e['createPositionAt'](_0x3aa508,0x0),_0xc602e['createSlot']()),_0xc602e['createContainerElement']('li',{'class':'footnote-definition','id':_0x4c3ff7},[_0x794c3c,_0x3aa508]);}
23
+ import{Plugin as _0x333537}from'ckeditor5/src/core.js';import{isWidget as _0x25e575,toWidget as _0x59f13c,toWidgetEditable as _0x35bdb1}from'ckeditor5/src/widget.js';import{uid as _0x279778}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4a5546,ClickObserver as _0x20172c}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x27eadf}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x3877d3}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x333537{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x27eadf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x21af96}=this;_0x21af96['config']['define']('footnotes.multiBlock',!0x0),_0x21af96['commands']['add']('insertFootnote',new _0x3877d3(_0x21af96)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x43c2ca){const _0x30cda3=_0x4072bb([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]),_0x12b3b4=0x47a28506,_0x5db55b=0x47a503ae^_0x12b3b4,_0x14b7c9=window[_0x4072bb([0x44,0x61,0x74,0x65])][_0x4072bb([0x6e,0x6f,0x77])](),_0x568c9b=_0x43c2ca[_0x4072bb([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5c4f56=new window[(_0x4072bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x425ab3=>{_0x568c9b[_0x4072bb([0x6f,0x6e,0x63,0x65])](_0x4072bb([0x72,0x65,0x61,0x64,0x79]),_0x425ab3);}),_0x53fb71={[_0x4072bb([0x6b,0x74,0x79])]:_0x4072bb([0x45,0x43]),[_0x4072bb([0x75,0x73,0x65])]:_0x4072bb([0x73,0x69,0x67]),[_0x4072bb([0x63,0x72,0x76])]:_0x4072bb([0x50,0x2d,0x32,0x35,0x36]),[_0x4072bb([0x78])]:_0x4072bb([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]),[_0x4072bb([0x79])]:_0x4072bb([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]),[_0x4072bb([0x61,0x6c,0x67])]:_0x4072bb([0x45,0x53,0x32,0x35,0x36])},_0x152101=_0x568c9b[_0x4072bb([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4072bb([0x67,0x65,0x74])](_0x4072bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f7fd8(){let _0x2dc33c,_0x39a639=null,_0x1f6823=null;try{if(_0x152101==_0x4072bb([0x47,0x50,0x4c]))return _0x4072bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2dc33c=_0x2ecbbb(),!_0x2dc33c)return _0x4072bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2dc33c[_0x4072bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f6823=_0x119c12(_0x2dc33c[_0x4072bb([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2dc33c[_0x4072bb([0x6a,0x74,0x69])])),await _0x198205()?_0x20f71d()?_0xb46327()?_0x4072bb([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x137cb2()?(_0x2dc33c[_0x4072bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4072bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39a639=_0x58547c(_0x4072bb([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x36d2f4()):_0x4072bb([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4072bb([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4072bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4072bb([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xb46327(){const _0xfb7837=[_0x4072bb([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4072bb([0x74,0x72,0x69,0x61,0x6c])][_0x4072bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2dc33c[_0x4072bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x14b7c9/0x3e8:0xe10*_0x5db55b;return _0x2dc33c[_0x4072bb([0x65,0x78,0x70])]<_0xfb7837;}function _0x20f71d(){const _0x219b97=_0x2dc33c[_0x4072bb([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x219b97&&(!!_0x219b97[_0x4072bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4072bb([0x2a]))||!!_0x219b97[_0x4072bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4072bb([0x46,0x4f,0x4f])));}function _0x137cb2(){const _0x4cb71c=_0x2dc33c[_0x4072bb([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4cb71c||0x0==_0x4cb71c[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2df715}=new URL(window[_0x4072bb([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4cb71c[_0x4072bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2df715))return!0x0;const _0x3ea142=_0x2df715[_0x4072bb([0x73,0x70,0x6c,0x69,0x74])](_0x4072bb([0x2e]));return _0x4cb71c[_0x4072bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2158b4=>_0x2158b4[_0x4072bb([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4072bb([0x2a])))[_0x4072bb([0x6d,0x61,0x70])](_0x44bbe=>_0x44bbe[_0x4072bb([0x73,0x70,0x6c,0x69,0x74])](_0x4072bb([0x2e])))[_0x4072bb([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d178b=>_0x4d178b[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ea142[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4072bb([0x6d,0x61,0x70])](_0x3070bd=>Array(_0x3ea142[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3070bd[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4072bb([0x66,0x69,0x6c,0x6c])](_0x3070bd[0x0]===_0x4072bb([0x2a])?_0x4072bb([0x2a]):'')[_0x4072bb([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3070bd))[_0x4072bb([0x73,0x6f,0x6d,0x65])](_0x3a0a1b=>_0x3ea142[_0x4072bb([0x65,0x76,0x65,0x72,0x79])]((_0x171a00,_0x48fc5b)=>_0x3a0a1b[_0x48fc5b]===_0x171a00||_0x3a0a1b[_0x48fc5b]===_0x4072bb([0x2a])));}function _0x36d2f4(){return _0x39a639&&_0x1f6823?new window[(_0x4072bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x44c1b7,_0x15788f)=>{_0x39a639[_0x4072bb([0x74,0x68,0x65,0x6e])](_0x44c1b7,_0x15788f),_0x1f6823[_0x4072bb([0x74,0x68,0x65,0x6e])](_0x2ae789=>{_0x2ae789!=_0x4072bb([0x56,0x61,0x6c,0x69,0x64])&&_0x44c1b7(_0x2ae789);},_0x15788f);}):_0x39a639||_0x1f6823||_0x4072bb([0x56,0x61,0x6c,0x69,0x64]);}}function _0x119c12(_0x25887a,_0x18bf19){return new window[(_0x4072bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xace489=>{if(_0x2f2753())return _0xace489(_0x4072bb([0x56,0x61,0x6c,0x69,0x64]));_0x30d0ba(),_0x568c9b[_0x4072bb([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4072bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1629ea=!0x1;const _0x27f11c=_0x279778();function _0x193574(_0x57b929){return!!_0x57b929&&(typeof _0x57b929===_0x4072bb([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x57b929===_0x4072bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x57b929[_0x4072bb([0x74,0x68,0x65,0x6e])]===_0x4072bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x57b929[_0x4072bb([0x63,0x61,0x74,0x63,0x68])]===_0x4072bb([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4d2114(_0x2fdf8e){_0x589af7(_0x2fdf8e)[_0x4072bb([0x74,0x68,0x65,0x6e])](_0x2c1dad=>{if(!_0x2c1dad||_0x2c1dad[_0x4072bb([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4072bb([0x6f,0x6b]))return _0x4072bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x9e34da(_0x51c362(_0x27f11c+_0x18bf19))!=_0x2c1dad[_0x4072bb([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4072bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4072bb([0x56,0x61,0x6c,0x69,0x64]);})[_0x4072bb([0x74,0x68,0x65,0x6e])](_0x1fa69c=>(_0x5d3c10(),_0x1fa69c),()=>{const _0x437aaa=_0x7e6a14();return null==_0x437aaa?(_0x5d3c10(),_0x4072bb([0x56,0x61,0x6c,0x69,0x64])):_0x4072bb(_0x14b7c9-_0x437aaa>(0x63ae0106^_0x12b3b4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4072bb([0x74,0x68,0x65,0x6e])](_0xace489)[_0x4072bb([0x63,0x61,0x74,0x63,0x68])](()=>{_0xace489(_0x4072bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2be423=0x47946b86^_0x12b3b4;function _0x5d3c10(){const _0x1f9c9b=_0x4072bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x9e34da(_0x51c362(_0x25887a)),_0x4cb1b7=_0x9f3b0e(_0x9e34da(window[_0x4072bb([0x4d,0x61,0x74,0x68])][_0x4072bb([0x63,0x65,0x69,0x6c])](_0x14b7c9/_0x2be423)));window[_0x4072bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4072bb([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f9c9b,_0x4cb1b7);}function _0x7e6a14(){const _0x828637=_0x4072bb([0x6c,0x6c,0x63,0x74,0x2d])+_0x9e34da(_0x51c362(_0x25887a)),_0x34fc6b=window[_0x4072bb([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4072bb([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x828637);return _0x34fc6b?window[_0x4072bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x9f3b0e(_0x34fc6b),0x10)*_0x2be423:null;}function _0x589af7(_0x353c1f){return new window[(_0x4072bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2edf2f,_0xcac8ff)=>{_0x353c1f[_0x4072bb([0x74,0x68,0x65,0x6e])](_0x2edf2f,_0xcac8ff),window[_0x4072bb([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xcac8ff,0x47a351c6^_0x12b3b4);});}}_0x568c9b[_0x4072bb([0x6f,0x6e])](_0x4072bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xb8b7da,_0x15ad7d)=>{if(_0x15ad7d[0x0]!=_0x25887a)return _0xace489(_0x4072bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x15ad7d[0x1]={..._0x15ad7d[0x1],[_0x4072bb([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x27f11c};},{[_0x4072bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4072bb([0x68,0x69,0x67,0x68])}),_0x568c9b[_0x4072bb([0x6f,0x6e])](_0x4072bb([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x477c9b=>{_0x193574(_0x477c9b[_0x4072bb([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1629ea=!0x0,_0x4d2114(_0x477c9b[_0x4072bb([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4072bb([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4072bb([0x6c,0x6f,0x77])}),_0x5c4f56[_0x4072bb([0x74,0x68,0x65,0x6e])](()=>{_0x1629ea||_0xace489(_0x4072bb([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2f2753(){return _0x568c9b[_0x4072bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4072bb([0x76,0x69,0x65,0x77])][_0x4072bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4072bb([0x61,0x75,0x74,0x6f]);}function _0x30d0ba(){_0x568c9b[_0x4072bb([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4072bb([0x76,0x69,0x65,0x77])][_0x4072bb([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4072bb([0x61,0x75,0x74,0x6f]);}}function _0x58547c(_0x9f835c){const _0x1e7694=[new window[(_0x4072bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x44c9ee=>setTimeout(_0x44c9ee,0x47abbbca^_0x12b3b4)),_0x5c4f56[_0x4072bb([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4072bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x978931=>{let _0x211732=0x0;_0x568c9b[_0x4072bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4072bb([0x6f,0x6e])](_0x4072bb([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3fa0e0,_0x1212d1)=>{_0x1212d1[0x0][_0x4072bb([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x211732++,_0x211732==(0x47a280ee^_0x12b3b4)&&(_0x978931(),_0x3fa0e0[_0x4072bb([0x6f,0x66,0x66])]());});}))];return window[_0x4072bb([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4072bb([0x72,0x61,0x63,0x65])](_0x1e7694)[_0x4072bb([0x74,0x68,0x65,0x6e])](()=>_0x9f835c);}async function _0x203480(){await _0x5c4f56,_0x568c9b[_0x4072bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4072bb([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1e618d,_0x568c9b[_0x4072bb([0x6d,0x6f,0x64,0x65,0x6c])][_0x4072bb([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1e618d,_0x568c9b[_0x4072bb([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4072bb([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16ce1b(_0x4403fa){const _0x4fa9c1=_0x663ad7();_0x568c9b[_0x4fa9c1]=_0x4072bb([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4403fa,_0x4403fa!=_0x4072bb([0x56,0x61,0x6c,0x69,0x64])&&_0x203480();}function _0x663ad7(){const _0x8c1b88=window[_0x4072bb([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4072bb([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4072bb([0x6e,0x6f,0x77])]())[_0x4072bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4072bb([0x2e]),'');let _0x148177=_0x4072bb([0x75]);for(let _0x2732ac=0x0;_0x2732ac<_0x8c1b88[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2732ac+=0x2){let _0x2d93da=window[_0x4072bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x8c1b88[_0x4072bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2732ac,_0x2732ac+0x2));_0x2d93da>=_0x30cda3[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2d93da-=_0x30cda3[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x148177+=_0x30cda3[_0x2d93da];}return _0x148177;}function _0x2ecbbb(){const _0x3062ca=_0x152101[_0x4072bb([0x73,0x70,0x6c,0x69,0x74])](_0x4072bb([0x2e]));if(0x3!=_0x3062ca[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x490cc6(_0x3062ca[0x1]);function _0x490cc6(_0x463809){const _0x2a0583=_0x21dabd(_0x463809);return _0x2a0583&&_0x222f05()?_0x2a0583:null;function _0x222f05(){const _0x28f8d0=_0x2a0583[_0x4072bb([0x6a,0x74,0x69])],_0x4bfdfb=window[_0x4072bb([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28f8d0[_0x4072bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x28f8d0[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x19f865={..._0x2a0583,[_0x4072bb([0x6a,0x74,0x69])]:_0x28f8d0[_0x4072bb([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x28f8d0[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x19f865[_0x4072bb([0x76,0x63])],_0x51c362(_0x19f865)==_0x4bfdfb;}}}async function _0x198205(){let _0x4bdcde=!0x0;try{const _0xf8c4e2=_0x152101[_0x4072bb([0x73,0x70,0x6c,0x69,0x74])](_0x4072bb([0x2e])),[_0x12674c,_0x180b01,_0x5d438c]=_0xf8c4e2;return _0x557e08(_0x12674c),await _0x702b79(_0x12674c,_0x180b01,_0x5d438c),_0x4bdcde;}catch{return!0x1;}function _0x557e08(_0x499a81){const _0x96e8ec=_0x21dabd(_0x499a81);_0x96e8ec&&_0x96e8ec[_0x4072bb([0x61,0x6c,0x67])]==_0x4072bb([0x45,0x53,0x32,0x35,0x36])||(_0x4bdcde=!0x1);}async function _0x702b79(_0x3a8ab3,_0x35fdec,_0x1aafee){const _0x543572=window[_0x4072bb([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4072bb([0x66,0x72,0x6f,0x6d])](_0x5c24ec(_0x1aafee),_0x229bc5=>_0x229bc5[_0x4072bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5675db=new window[(_0x4072bb([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4072bb([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3a8ab3+_0x4072bb([0x2e])+_0x35fdec),_0x222b9e=window[_0x4072bb([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4072bb([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x222b9e)return;const _0x10bd9b=await _0x222b9e[_0x4072bb([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4072bb([0x6a,0x77,0x6b]),_0x53fb71,{[_0x4072bb([0x6e,0x61,0x6d,0x65])]:_0x4072bb([0x45,0x43,0x44,0x53,0x41]),[_0x4072bb([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4072bb([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4072bb([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x222b9e[_0x4072bb([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4072bb([0x6e,0x61,0x6d,0x65])]:_0x4072bb([0x45,0x43,0x44,0x53,0x41]),[_0x4072bb([0x68,0x61,0x73,0x68])]:{[_0x4072bb([0x6e,0x61,0x6d,0x65])]:_0x4072bb([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10bd9b,_0x543572,_0x5675db)||(_0x4bdcde=!0x1);}}function _0x21dabd(_0x387f90){return _0x387f90[_0x4072bb([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4072bb([0x65,0x79]))?JSON[_0x4072bb([0x70,0x61,0x72,0x73,0x65])](_0x5c24ec(_0x387f90)):null;}function _0x5c24ec(_0xe14978){return window[_0x4072bb([0x61,0x74,0x6f,0x62])](_0xe14978[_0x4072bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4072bb([0x2b]))[_0x4072bb([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4072bb([0x2f])));}function _0x51c362(_0x3813f9){let _0x3170a2=0x1505;function _0x4da25b(_0x18c997){for(let _0x51616c=0x0;_0x51616c<_0x18c997[_0x4072bb([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x51616c++){const _0x4b4cf3=_0x18c997[_0x4072bb([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x51616c);_0x3170a2=(_0x3170a2<<0x5)+_0x3170a2+_0x4b4cf3,_0x3170a2&=_0x3170a2;}}function _0xf15d42(_0x2028b7){Array[_0x4072bb([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2028b7)?_0x2028b7[_0x4072bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf15d42):_0x2028b7&&typeof _0x2028b7==_0x4072bb([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4072bb([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2028b7)[_0x4072bb([0x73,0x6f,0x72,0x74])]()[_0x4072bb([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x511000,_0x530d30])=>{_0x4da25b(_0x511000),_0xf15d42(_0x530d30);}):_0x4da25b(window[_0x4072bb([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2028b7));}return _0xf15d42(_0x3813f9),_0x3170a2>>>0x0;}function _0x9e34da(_0x19acbd){return _0x19acbd[_0x4072bb([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4072bb([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4072bb([0x30]));}function _0x9f3b0e(_0x4a199c){return _0x4a199c[_0x4072bb([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4072bb([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4072bb([0x6a,0x6f,0x69,0x6e])]('');}function _0x1e618d(){}function _0x4072bb(_0x581d04){return _0x581d04['map'](_0x5cbc86=>String['fromCharCode'](_0x5cbc86))['join']('');}_0x16ce1b(await _0x3f7fd8());}(this);}['_moveSelectionToFootnoteDefinition'](_0x49036b){const {plugins:_0x262ff6,editing:_0x36a46b,model:_0x44bb47}=this['editor'],_0x3557d3=_0x262ff6['get'](_0x27eadf)['getFootnote'](_0x49036b);return!!_0x3557d3&&(_0x44bb47['change'](_0x1231f0=>{_0x1231f0['setSelection'](_0x1231f0['createPositionAt'](_0x3557d3['definition'],'end'));}),_0x36a46b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1ac149){const {plugins:_0x18212f,editing:_0x30afb5,model:_0x2fc179}=this['editor'],_0x2dc336=_0x18212f['get'](_0x27eadf)['getFootnote'](_0x1ac149);return!!_0x2dc336&&(_0x2fc179['change'](_0x469f88=>{_0x469f88['setSelection'](_0x2dc336['reference'],'on');}),_0x30afb5['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2b3a60}=this['editor']['model'],_0x2a9b5e=this['editor']['config']['get']('footnotes.multiBlock');_0x2b3a60['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2b3a60['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2b3a60['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2a9b5e?_0x2b3a60['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2b3a60['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2b3a60['addChildCheck'](_0xffe4aa=>{for(const _0x299bb4 of _0xffe4aa)if('footnoteDefinition'===_0x299bb4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x268298}=this,{conversion:_0x379b44,editing:_0x8de31a}=_0x268298,{t:t}=_0x268298['locale'];_0x379b44['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x14a2d6,{writer:_0x41afd9,consumable:_0x133f46})=>{const _0xc013d8=_0x14a2d6['getChild'](0x0);if(!_0xc013d8||!_0xc013d8['is']('element','a'))return null;const _0x57863e=_0xc013d8['getAttribute']('href')||'';if(!_0x57863e['startsWith']('#'))return null;const _0xb0abcf=_0x57863e['replace'](/^#/,'');if(!_0xb0abcf)return null;_0x133f46['consume'](_0xc013d8,{'name':!0x0,'attributes':['href']});for(const {item:_0x110d53}of _0x8de31a['view']['createRangeIn'](_0xc013d8))_0x110d53['is']('$textProxy')?_0x133f46['consume'](_0x110d53['textNode'],{'name':!0x0}):_0x110d53['is']('element')&&_0x133f46['consume'](_0x110d53,{'name':!0x0});return _0x41afd9['createElement']('footnoteRef',{'footnoteId':_0xb0abcf});}}),_0x379b44['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1d7a1d,{writer:_0xf68d5a})=>b(_0x1d7a1d,_0xf68d5a)}),_0x379b44['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x270488,{writer:_0x4aa6ac})=>{const _0x3afb98=_0x270488['getAttribute']('footnoteCounter');return _0x59f13c(b(_0x270488,_0x4aa6ac),_0x4aa6ac,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3afb98)});}});}['_defineDefinitionsConverters'](){const {editor:_0x58f535}=this,{t:t}=_0x58f535['locale'],{conversion:_0x3fd52a}=_0x58f535;_0x3fd52a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3fd52a['for']('upcast')['add'](_0x3d650f=>{_0x3d650f['on']('element:ol',(_0x3dc3cb,_0x1eaca9,_0x27bcb4)=>{const _0x474e93=_0x1eaca9['viewItem'];if(!_0x474e93['hasClass']('footnotes-list')||!_0x1eaca9['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x27bcb4['consumable']['consume'](_0x474e93,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x161adc,modelCursor:_0x1535d2}=_0x27bcb4['convertChildren'](_0x1eaca9['viewItem'],_0x1eaca9['modelCursor']);_0x1eaca9['modelRange']=_0x161adc,_0x1eaca9['modelCursor']=_0x1535d2;}),_0x3d650f['on']('element:hr',(_0x18c3c6,_0x2cb842,_0x52c0b7)=>{const _0x3c85d0=_0x2cb842['viewItem'];_0x3c85d0['hasClass']('footnotes-divider')&&_0x2cb842['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x52c0b7['consumable']['consume'](_0x3c85d0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3fd52a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x55282b,{writer:_0x3858aa})=>D(_0x3858aa)}),_0x3fd52a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x51f1de,{writer:_0x1f2db0})=>{const _0x452656=D(_0x1f2db0,{'data-footnotes-list-label':t('Footnotes')}),_0x355325=_0x59f13c(_0x452656,_0x1f2db0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1f2db0['setCustomProperty']('footnotesDefinitions',!0x0,_0x355325),_0x355325;}});}['_defineDefinitionConverters'](){const {editor:_0x5cbafa}=this,{conversion:_0x840956,locale:_0x4acac4}=_0x5cbafa,_0x52062b=_0x5cbafa['config']['get']('footnotes.multiBlock');_0x840956['for']('upcast')['add'](_0x2a058a=>{_0x2a058a['on']('element:li',(_0x19fc18,_0x3edf3e,_0x1f4836)=>{const _0x3d2129=_0x3edf3e['viewItem'];if(!_0x3d2129['hasClass']('footnote-definition')||!_0x3d2129['getAttribute']('id'))return;const _0x791384=_0x3d2129['parent'];if(!_0x791384['is']('element','ol')||!_0x791384['hasClass']('footnotes-list'))return;if(!_0x1f4836['consumable']['test'](_0x3d2129,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x406aac=_0x1f4836['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3d2129['getAttribute']('id')});if(!_0x1f4836['safeInsert'](_0x406aac,_0x3edf3e['modelCursor']))return;_0x1f4836['consumable']['consume'](_0x3d2129,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4941b5=Array['from'](_0x3d2129['getChildren']())['find'](_0x3f77bf=>_0x3f77bf['is']('element')&&_0x3f77bf['hasClass']('footnote-content'));for(const _0x357702 of _0x3d2129['getChildren']())_0x357702['is']('element')&&(_0x1f4836['consumable']['consume'](_0x357702,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1f4836['consumable']['consume'](_0x357702,{'name':!0x0,'classes':'footnote-content'}));if(_0x4941b5){if(_0x52062b)_0x1f4836['convertChildren'](_0x4941b5,_0x406aac);else{const _0x720e82=_0x1f4836['writer']['createElement']('footnoteInlineContent');_0x1f4836['writer']['insert'](_0x720e82,_0x406aac),_0x1f4836['convertChildren'](_0x4941b5,_0x720e82);}}_0x1f4836['updateConversionResult'](_0x406aac,_0x3edf3e);});}),_0x840956['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x436e65,{writer:_0x2c2c09})=>y(_0x436e65,_0x2c2c09,_0x4acac4,{'dataPipeline':!0x0})}),_0x840956['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x17cb92,{writer:_0x45f947})=>y(_0x17cb92,_0x45f947,_0x4acac4)});}['_defineBogusParagraphConverters'](){const {editor:_0x313a8f}=this,{conversion:_0x5f59ab}=_0x313a8f;_0x313a8f['config']['get']('footnotes.multiBlock')?(_0x5f59ab['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x5f59ab['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x313a8f['model']['document'],'change:data',()=>{!function(_0x46953c,_0x42443d){const _0x2a0537=_0x46953c['document']['differ'],_0x5df71e=new Set();for(const _0x5eac51 of _0x2a0537['getChanges']()){const _0x319eea='attribute'==_0x5eac51['type']?_0x5eac51['range']['start']['parent']:_0x5eac51['position']['parent'];_0x319eea['is']('element','footnoteDefinition')&&_0x5df71e['add'](_0x319eea);}for(const _0x1e074e of _0x5df71e['values']()){const _0x3a25bb=Array['from'](_0x1e074e['getChildren']())['filter'](_0xf26aed=>v(_0xf26aed,_0x42443d['mapper']));for(const _0x57a134 of _0x3a25bb)_0x42443d['reconvertItem'](_0x57a134);}}(_0x313a8f['model'],_0x313a8f['editing']);})):(_0x5f59ab['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x5f59ab['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3220cc,{writer:_0x3cbbc4})=>{const _0x5afcd7=_0x3cbbc4['createContainerElement']('span');return _0x3cbbc4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5afcd7),_0x5afcd7;}}));}['_defineKeyboardHandlers'](){const {editor:_0x224be5}=this,{editing:_0xf87e80,t:t}=_0x224be5,_0x5eb17d=_0x224be5['model']['document']['selection'];_0x224be5['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x224be5['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xf87e80['view']['document'],'enter',(_0x29b0b5,_0x3776b5)=>{const _0x5bb2ea=function(_0x26577d){const _0x5c1f93=_0x26577d['getSelectedElement']();if(_0x5c1f93?.['is']('element','footnoteRef'))return _0x5c1f93;return null;}(_0x5eb17d);if(_0x5bb2ea){const _0xbaa77e=_0x5bb2ea['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xbaa77e),_0x3776b5['preventDefault'](),_0x29b0b5['stop']();}},{'context':_0x25e575});}['_defineClickHandlers'](){const {editor:_0x4a29b7}=this,{editing:_0x4a7b6d}=_0x4a29b7;_0x4a29b7['editing']['view']['addObserver'](_0x4a5546),_0x4a29b7['editing']['view']['addObserver'](_0x20172c);let _0x406229=!0x1;this['listenTo'](_0x4a7b6d['view']['document'],'pointerdown',(_0x57b7e6,_0x225830)=>{const {target:_0xcfbfad}=_0x225830,_0x3c5845=_0x4a7b6d['view']['document']['selection'];_0x406229=!!(_0xcfbfad?.['is']('element','a')&&_0xcfbfad['parent']?.['is']('element','sup')&&_0xcfbfad['parent']['hasClass']('footnote'))&&_0x3c5845['getSelectedElement']()===_0xcfbfad['parent'];},{'priority':'high'}),this['listenTo'](_0x4a7b6d['view']['document'],'click',(_0x371aee,_0x158761)=>{const {target:_0x27ede9}=_0x158761;if(!_0x27ede9?.['is']('element','a'))return;if(_0x27ede9['parent']?.['is']('element','sup')&&_0x27ede9['parent']['hasClass']('footnote')&&!_0x406229)return void _0x158761['preventDefault']();let _0x6ff650=_0x27ede9['getAttribute']('href');if(!_0x6ff650?.['startsWith']('#'))return;_0x6ff650=_0x6ff650['slice'](0x1);let _0x547356=!0x1;(_0x6ff650['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x6ff650['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x6ff650))&&(_0x547356=!0x0),_0x547356&&(_0x158761['preventDefault'](),_0x371aee['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1a51af}={}){return(_0x48f830,{writer:_0x1205df})=>{if(!g(_0x48f830))return null;if(!_0x1a51af)return _0x1205df['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x277912=_0x1205df['createContainerElement']('p');return _0x1205df['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x277912),_0x277912;};}function g(_0x121e6e){const {parent:_0x35e083}=_0x121e6e;if(!_0x35e083?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x35e083['childCount'])return!0x1;for(const _0x4e96ec of _0x121e6e['getAttributeKeys']())if(!_0x4e96ec['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4e96ec)return!0x1;return!0x0;}function v(_0x4f0b85,_0x570131){if(!_0x4f0b85['is']('element','paragraph'))return!0x1;const _0x5d819d=_0x570131['toViewElement'](_0x4f0b85);return!!_0x5d819d&&g(_0x4f0b85)!==_0x5d819d['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x15c2e4){return _0x25e575(_0x15c2e4)&&_0x15c2e4['is']('containerElement')&&!!_0x15c2e4['getCustomProperty']('footnotesDefinitions');}function D(_0x58704f,_0x32a816={}){const _0x5b885d=_0x58704f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x389512=_0x58704f['createContainerElement']('ol',{'class':'footnotes-list'},_0x58704f['createSlot']());return _0x58704f['createContainerElement']('div',{'class':'footnotes',..._0x32a816},[_0x5b885d,_0x389512]);}function b(_0x1698f3,_0x1f0872){const _0x87cd63=_0x1698f3['getAttribute']('footnoteId'),_0x20ba9b=_0x1698f3['getAttribute']('footnoteCounter'),_0x14fb49=_0x1f0872['createUIElement']('a',{'href':'#'+_0x87cd63},function(_0x2f22af){const _0x153e6f=this['toDomElement'](_0x2f22af);return _0x153e6f['textContent']=_0x20ba9b,_0x153e6f;}),_0xab4e54=_0x1f0872['createContainerElement']('sup',{'id':'ref-'+_0x87cd63,'class':'footnote'},[_0x14fb49]);return _0xab4e54['getFillerOffset']=()=>null,_0xab4e54;}function y(_0x288684,_0x408b27,_0x88f317,{dataPipeline:_0x542d21}={}){const {t:t}=_0x88f317,_0xdcdfaf=_0x288684['getAttribute']('footnoteId'),_0x58a17d=_0x408b27['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xdcdfaf},function(_0x5e40d4){const _0x57d7ad=this['toDomElement'](_0x5e40d4);return _0x57d7ad['innerText']='^',_0x57d7ad;}),_0x5475ed=_0x542d21?_0x408b27['createContainerElement']('div',{'class':'footnote-content'}):_0x35bdb1(_0x408b27['createEditableElement']('div',{'class':'footnote-content'}),_0x408b27,{'label':t('Footnote\x20content.')});return _0x408b27['insert'](_0x408b27['createPositionAt'](_0x5475ed,0x0),_0x408b27['createSlot']()),_0x408b27['createContainerElement']('li',{'class':'footnote-definition','id':_0xdcdfaf},[_0x58a17d,_0x5475ed]);}