@ckeditor/ckeditor5-footnotes 47.7.2-alpha.0 → 47.7.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={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},271(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},366(t){"use strict";t.exports=function(t){return t[1]}},789(t){"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},298(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)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(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)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},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:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["root","reset","getItems","nodeAfter","createRangeOn","has","44WtIqrA","_getElementKey","name","218gnrlHV","5779dSIlik","_elementName","$graveyard","type","12215256hGKLDV","7Cukbbn","position","flat","clear","elementName","1843770UtkrvX","attributes","set","6354378muhHVo","slice","rootName","remove","values","element","_model","779283JXEWHK","4493769XyOZrQ","get","delete","length","insert","getElementKey","from","add","getChanges","3118230nPpEqp","_trackedElements","push","12CaKSjI","$text"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=127]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(780151===-parseInt(e(146))/1*(parseInt(e(145))/2)+-parseInt(e(167))/3+-parseInt(e(134))/4*(-parseInt(e(156))/5)+-parseInt(e(159))/6+parseInt(e(151))/7*(parseInt(e(150))/8)+parseInt(e(166))/9+parseInt(e(131))/10*(parseInt(e(142))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(165)];[r(147)];[r(143)];[r(132)]=new Map;constructor(t,e){const o=r;this[o(165)]=t,this[o(147)]=e[o(155)],this[o(143)]=e[o(127)]}[r(137)](){const t=r;this[t(132)][t(154)]()}[r(130)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(171)===i[e(149)]&&e(135)!==i[e(144)]&&i[e(152)][e(139)]){const t=this[e(165)][e(140)](i[e(152)][e(139)]);for(const o of t[e(138)]()){if(!o.is(e(164),this[e(147)]))continue;const t=this[e(143)](o);n[e(141)](t)||n[e(158)](t,[]),n[e(168)](t)[e(133)](o)}}if(e(162)===i[e(149)]&&i[e(144)]===this[e(147)]){const t=this[e(143)]({getAttribute:t=>i[e(157)][e(168)](t)});o[e(129)](t)}}for(const[t,n]of this[e(132)])e(148)===n[e(136)][e(161)]&&o[e(129)](t);for(const t of o)this[e(132)][e(169)](t);for(const[t,o]of n)this[e(132)][e(158)](t,o[o[e(170)]-1]);const i=new Set;for(const[t,s]of n)o[e(141)](t)&&(i[e(129)](s[0]),s[e(170)]>1?n[e(158)](t,s[e(160)](1)):n[e(169)](t),o[e(169)](t));return{removed:Array[e(128)](o),inserted:Array[e(128)](n[e(163)]())[e(153)](),moved:Array[e(128)](i)}}}function f(){const t=["listenTo","isPremiumPlugin","pluginName","createPositionAt","append","getFootnotesFormatter","_updateFootnotesCounters","7299CYCnSk","getFootnotes","_footnoteFormatter","10292440ACVwTd","editor","_handleFootnotesDefinitionsObjectChanges","move","min","_footnotes","_insertEmptyFootnotesDefinitionsContainer","138zWDYyW","_handleFootnotesDefinitionsObjectSync","footnoteDefinition","setFootnoteFormatter","enqueueChange","_handleFootnoteReferencesChanges","find","indexOf","paragraph","footnoteRef","add","getRootNames","_footnoteDefsTracker","_footnoteDefsContainerTracker","low","387506fChEUB","findIndex","FootnotesTracker","footnoteId","reset","root","footnotes.multiBlock","registerPostFixer","length","singleton","23668623HRDUVQ","reference","set","6820450XCDnom","rootName","_handleInsertedFootnoteReference","definition","insert","unshift","push","27884mrdVDO","_sortFootnoteDefinitions","_handleFootnoteDefinitionsChanges","from","getChanges","document","_handleMovedFootnoteReference","createElement","_updateFootnoteRefCounter","footnoteInlineContent","splice","model","getFootnotesDefinitionsObjectElement","some","parent","$graveyard","compareWith","createRangeIn","high","footnotesDefinitions","config","createPositionBefore","map","footnoteCounter","_ensureFootnotesReferencesHaveProperOrder","differ","959006WCRMit","init","has","end","get","_footnotesDefinitions","childCount","isOfficialPlugin","12360mBdxRh","getChildren","_ensureFootnotesDefinitionsContainerExists","_handleRemoveFootnoteReferenceById","setAttribute","getFootnote","getAttribute","change:data","before","_footnoteRefsTracker","after","remove","2bcVEjx","363CFvkFx","createRangeOn","isEqual"];return(f=function(){return t})()}const u=p;!function(t){const e=p,o=t();for(;;)try{if(824897===-parseInt(e(220))/1*(-parseInt(e(302))/2)+-parseInt(e(221))/3*(parseInt(e(276))/4)+parseInt(e(269))/5+parseInt(e(241))/6*(parseInt(e(256))/7)+parseInt(e(310))/8*(parseInt(e(231))/9)+-parseInt(e(234))/10+-parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(239)]=[];[u(307)]=null;[u(233)]=null;[u(254)];[u(217)];[u(253)];static get[u(226)](){return u(258)}static get[u(309)](){return!0}static get[u(225)](){return!0}constructor(t){const e=u;super(t),this[e(254)]=new l(this[e(235)][e(287)],{elementName:e(295),getElementKey:()=>e(265)}),this[e(217)]=new l(this[e(235)][e(287)],{elementName:e(250),getElementKey:t=>t[e(316)](e(259))}),this[e(253)]=new l(this[e(235)][e(287)],{elementName:e(243),getElementKey:t=>t[e(316)](e(259))})}[u(303)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(281)][t(263)](e=>{const n=t,i=o[n(281)][n(301)][n(280)]();let s=!1;return this[n(236)](e,i)&&(s=!0),this[n(278)](e,i)&&(s=!0),this[n(246)](e,i)&&(s=!0),this[n(300)](e)&&(s=!0),this[n(242)](e)&&(s=!0),this[n(277)](e)&&(s=!0),s}),this[t(224)](o[t(281)],t(317),()=>{const e=t;o[e(245)]({isUndoable:!1},t=>{this[e(312)](t)})},{priority:t(255)}),this[t(224)](n,t(268),()=>{const e=t;this[e(239)]=[],this[e(254)][e(260)](),this[e(217)][e(260)](),this[e(253)][e(260)]()},{priority:t(294)})}[u(288)](){return this[u(307)]}[u(315)](t){const e=u;return this[e(239)][e(247)](e=>e.id===t)||null}[u(232)](){const t=u;return Array[t(279)](this[t(239)])}[u(229)](){return this[u(233)]}[u(244)](t){this[u(233)]=t}[u(230)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(239)][o(264)];i++)this[o(284)](t,i)&&(n=!0);return n}[u(240)](t,e){const o=u,n=t[o(283)](o(295),{});return t[o(228)](n,e),this[o(307)]=n,n}[u(312)](t){const e=u;if(!this[e(239)][e(264)]||this[e(307)])return;const o=this[e(239)][0][e(267)][e(261)],n=this[e(240)](t,o);for(const o of this[e(239)])o[e(272)][e(290)]||t[e(273)](o[e(272)],n,e(305));this[e(230)](t)}[u(236)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(254)][o(280)](e);if(r[o(264)]&&(this[o(307)]=r[0]),i[o(264)])if(i[o(264)]>1||this[o(307)]&&i[o(289)](t=>t!==this[o(307)])){const e=t[o(283)](o(295),{}),s=[];this[o(307)]&&s[o(275)](this[o(307)]),s[o(275)](...i),t[o(273)](e,s[0],o(216));for(const n of s)t[o(237)](t[o(293)](n),t[o(227)](e,o(305))),t[o(219)](n);this[o(307)]=e,this[o(230)](t),n=!0}else this[o(307)]=i[0];if(s[o(264)]&&o(291)===this[o(307)]?.[o(261)][o(270)]){for(const e of this[o(239)])t[o(219)](e[o(267)]),n=!0;this[o(239)]=[],this[o(307)]=null}return n}[u(278)](t,e){const o=u;let n=!1;const i=this[o(235)][o(296)][o(306)](o(262)),{inserted:s,moved:r}=this[o(253)][o(280)](e);for(const e of[...r,...s]){const s=e[o(316)](o(259)),r=this[o(315)](s);r&&(r[o(272)]=e),h(t,i,e)&&(n=!0)}return n}[u(246)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(217)][o(280)](e);for(const e of i)this[o(313)](t,e)&&(n=!0);for(const e of s)this[o(271)](t,e)&&(n=!0);for(const e of r)this[o(282)](t,e)&&(n=!0);return n}[u(242)](t){const e=u;if(!this[e(307)])return!1;let o=!1;if(this[e(307)][e(308)]!==this[e(239)][e(264)]){const n=[];for(const t of this[e(307)][e(311)]()){const i=t[e(316)](e(259));this[e(315)](i)||(n[e(274)](t),o=!0)}for(const o of n)t[e(219)](o)}const n=new Set,i=[];for(const t of this[e(307)][e(311)]()){const s=t[e(316)](e(259));n[e(304)](s)?(i[e(274)](t),o=!0):n[e(251)](s)}for(const o of i)t[e(219)](o);return this[e(307)][e(308)]||(t[e(219)](this[e(307)]),this[e(307)]=null,o=!0),o}[u(271)](t,e){const o=u;if(this[o(239)][o(247)](t=>t[o(267)]===e))return!1;let n=!1;const i=e[o(316)](o(259)),s=this[o(239)][o(257)](t=>t.id===i);-1!==s&&(t[o(219)](this[o(239)][s][o(267)]),this[o(239)][o(286)](s,1),n=!0);let r=this[o(307)]?function(t,e){const n=o;for(const o of t[n(311)]())if(o[n(316)](n(259))===e)return o;return null}(this[o(307)],i):null;r||(r=t[o(283)](o(243),{footnoteId:i}),this[o(307)]&&(t[o(273)](r,this[o(307)],o(305)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(235)][o(287)],this[o(239)],e);this[o(239)][o(286)](c,0,a);let l=c;return-1!==s&&(l=Math[o(238)](c,s)),this[o(230)](t,l)&&(n=!0),n}[u(313)](t,e){const o=u,n=this[o(239)][o(257)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(239)][n];return o(291)!==s[o(272)][o(261)][o(270)]&&(t[o(219)](s[o(272)]),i=!0),this[o(239)][o(286)](n,1),this[o(230)](t,n)&&(i=!0),i}[u(282)](t,e){const o=u,n=e[o(316)](o(259)),i=this[o(239)][o(257)](t=>t.id===n),s=this[o(239)][i];let r=!1;s[o(267)]=e,this[o(239)][o(286)](i,1);const a=m(this[o(235)][o(287)],this[o(239)],e);return this[o(239)][o(286)](a,0,s),this[o(230)](t,Math[o(238)](i,a))&&(r=!0),r}[u(284)](t,e){const o=u;if(!this[o(307)])return!1;const n=this[o(239)][e];let i;return i=this[o(233)]?this[o(233)]({footnote:n,container:this[o(307)],digits:String(this[o(239)][o(264)])[o(264)],value:e+1}):String(e+1),n[o(267)][o(316)](o(299))!=i&&(t[o(314)](o(299),i,n[o(267)]),!0)}[u(277)](t){const e=u;if(!this[e(307)]||this[e(239)][e(264)]<2)return!1;if(function(t,o){const n=e;if(t[n(264)]!==o[n(264)])return!1;for(let e=0;e<t[n(264)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(239)][e(298)](t=>t.id),Array[e(279)](this[e(307)][e(311)]())[e(298)](t=>t[e(316)](e(259)))))return!1;let o=!1;for(let n=0;n<this[e(239)][e(264)];n++){const i=this[e(239)][n],s=t[e(297)](i[e(272)]),r=t[e(227)](this[e(307)],n);s[e(223)](r)||(t[e(237)](t[e(222)](i[e(272)]),r),o=!0)}return o}[u(300)](t){const e=u;if(!this[e(239)][e(264)])return!1;const{model:o}=this[e(235)];let n=!1;for(let i=0;i<this[e(239)][e(264)]-1;i++){const s=this[e(239)][i],r=this[e(239)][i+1],a=o[e(297)](s[e(267)]),c=o[e(297)](r[e(267)]);e(218)===a[e(292)](c)&&(this[e(282)](t,s[e(267)]),i=-1,n=!0)}return n}}function p(t,e){const o=f();return(p=function(t,e){return o[t-=216]})(t,e)}function h(t,e,o){const n=u;if(o[n(308)])return!1;const i=n(e?249:285);return t[n(273)](t[n(283)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(264)])return 0;const i=t[n(297)](o);for(let o=0;o<e[n(264)];o++){const s=e[o],r=t[n(297)](s[n(267)]);if(n(216)===i[n(292)](r))return o}const s=o[n(261)];let r=-1;for(let t=e[n(264)]-1;t>=0;t--)if(e[t][n(267)][n(261)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(281)][n(252)](),c=a[n(248)](s[n(270)]),l=a[c+1];if(l)for(let t=0;t<e[n(264)];t++)if(e[t][n(267)][n(261)][n(270)]===l)return t;return e[n(264)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=147]})(t,e)}function y(){const t=["9WmBNlH","change","429664gwfXhG","insertObject","length","getFirstRange","_moveSelectionToFootnoteDefinition","_getPositionToInsertFootnote","refresh","196wusgBB","editor","createElement","isObject","40wHRAJC","model","87732gvNtvD","FootnotesEditing","1680841ucXfaH","getItems","footnoteRef","test","6824anuZhr","6772104pxFvfi","execute","footnoteId","12786653OcuFxg","insert-footnote-command-executed-with-invalid-id","document","3880EkiOYf","end","checkChild","selection","get","isBlock","string","214252bSzZyk","isEnabled","plugins"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(938729===-parseInt(e(160))/1+-parseInt(e(178))/2*(parseInt(e(181))/3)+parseInt(e(164))/4*(-parseInt(e(171))/5)+parseInt(e(165))/6+-parseInt(e(152))/7*(parseInt(e(183))/8)+-parseInt(e(158))/9+-parseInt(e(156))/10*(-parseInt(e(168))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(151)](){const t=g,e=this[t(153)][t(157)][t(170)][t(174)],o=this[t(150)](e);this[t(179)]=!!o}[g(166)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(170)],r=this[e(150)](s);if(!r)return;const a=o[e(180)][e(175)](e(159)),c=t?.[e(167)]??(0,i.uid)();!function(t){const o=e;return o(177)==typeof t&&t[o(147)]>0&&!/\s/[o(163)](t)&&!/^\d/[o(163)](t)}(c)?(0,i.logWarning)(e(169)):(n[e(182)](t=>{const o=e,i=t[o(154)](o(162),{footnoteId:c});n[o(184)](i,r,null)}),a[e(149)](c))}[g(150)](t){const e=g,{model:o}=this[e(153)],{schema:n}=o,i=t[e(148)]();for(const t of i[e(161)]())if(n[e(176)](t)||n[e(155)](t))return null;const s=i[e(172)];return n[e(173)](s,e(162))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1778803200;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const P=T;function D(){const t=["selection","getAttribute","element","toData","1276101cDFzrY","string","createElement","hasAttribute","getData","sourceEditorId","reduce","toModel","1863060WXUGof","init","content","getFirstRange","toView","getFootnotesDefinitionsObjectElement","22zQArtQ","length","footnotesDefinitions","document","includes","_defineClipboardIntegration","getFootnote","end","getRanges","find","_handlePasteFootnotesDefinitions","htmlProcessor","root","9peHTpZ","_handleCopyFootnotesDefinitions","pluginName","keys","dataTransfer","getChildren","createRangeIn","getSelectedBlocks","listenTo","isPremiumPlugin","stringify","requires","flatMap","footnoteId","application/ckeditor5-footnotes","drop","241832rsrTqP","103744QFNTTL","41184KFLInw","contentInsertion","setAttribute","cloneElement","method","append","change","footnoteRef","definition","226500IOoCAM","editing","14FYdGPg","insert","create","remove","push","outputTransformation","FootnotesClipboard","footnoteDefinition","footnoteInlineContent","entries","footnotes.multiBlock","isOfficialPlugin","_insertEmptyFootnotesDefinitionsContainer","parse","data","editor","50Vsetez","config","getFootnotes","add","from","setData","clipboardInput","get","148994cYaEHA"];return(D=function(){return t})()}function T(t,e){const o=D();return(T=function(t,e){return o[t-=232]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(230219===parseInt(e(259))/1+parseInt(e(309))/2+parseInt(e(291))/3*(parseInt(e(307))/4)+parseInt(e(251))/5*(-parseInt(e(233))/6)+-parseInt(e(235))/7*(-parseInt(e(308))/8)+-parseInt(e(264))/9+parseInt(e(272))/10*(parseInt(e(278))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[P(293)](){return P(241)}static get[P(302)](){return[v,A.ClipboardPipeline]}static get[P(246)](){return!0}static get[P(300)](){return!0}[P(273)](){this[P(283)]()}[P(283)](){const t=P;this[t(292)](),this[t(288)]()}[P(292)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(258)](A.ClipboardPipeline),s=o[t(258)](d);this[t(299)](i,t(240),(o,i)=>{const r=t,a=V(n[r(297)](i[r(274)]));if(!a[r(279)])return;const c=s[r(253)](),l=a[r(270)]((t,o)=>{const n=r,i=c[n(287)](t=>t.id===o);if(i){const o=e[n(249)][n(276)](i[n(232)],{isClipboardPipeline:!0}),s=e[n(249)][n(289)][n(263)](o);t[i.id]=s}return t},Object[r(237)](null));i[r(295)][r(256)](r(305),JSON[r(301)](l))})}[P(288)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(234)],r=n[t(258)](A.ClipboardPipeline),a=n[t(258)](d),c=e[t(252)][t(258)](t(245));let l=null;this[t(299)](s[t(281)],t(257),(e,o)=>{const n=t,i=o[n(295)][n(268)](n(305));l=i?JSON[n(248)](i):null}),this[t(299)](r,t(310),(n,s)=>{const r=t,f=s[r(269)]===this[r(250)].id;f&&r(306)===s[r(313)]||o[r(315)](t=>{const n=r;let u=a[n(277)]();const d=!!u&&Array[n(255)](o[n(281)][n(260)][n(298)]())[n(282)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(262),e(316)))return!0;return!1}(o[n(297)](s[n(274)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(237)](null);for(const e of i[o(296)]())e.is(o(262),o(242))&&e[o(267)](o(304))&&(s[e[o(261)](o(304))]=t[o(312)](e,!0));return Object[o(294)](s)[o(279)]?s:null}(t,s[n(274)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(297)](e))n.is(o(262),o(280))&&i[o(239)](n);for(const e of i)t[o(238)](e)}(t,s[n(274)]),!l)return;const{selection:p}=o[n(281)],h=p[n(275)]()[n(290)];u&&!d||(u=L(t,s[n(274)]),u||=a[n(247)](t,h));const m=Array[n(255)](p[n(286)]())[n(303)](V),g=function(t,e,o){const s=n,r=Object[s(237)](null);for(const{item:n}of t[s(297)](e))if(n.is(s(262),s(316))){const e=n[s(261)](s(304));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(311)](s(304),r[e],n)}return r}(t,s[n(274)],t=>{const e=n;return!f||!!a[e(284)](t)&&!m[e(282)](t)});for(const[o,i]of Object[n(244)](l)){const s=g[o]||o;let r;if(n(265)!=typeof i)r=i,s!==o&&t[n(311)](n(304),s,r);else{r=t[n(266)](n(242),{footnoteId:s});const o=e[n(249)][n(289)][n(276)](i);let a;if(c)a=e[n(249)][n(271)](o,r);else{a=t[n(266)](n(243));const i=e[n(249)][n(271)](o,a);t[n(236)](i,a)}t[n(314)](a,r)}t[n(236)](r,u,n(285))}l=null})})}}function L(t,e){const o=P;for(const{item:n}of t[o(297)](e))if(n.is(o(262),o(280)))return n;return null}function V(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(262),e(316))&&o[e(254)](n[e(261)](e(304)));return Array[e(255)](o)}var O=o(311),N=o(355),R=o(789),K=o.n(R),M=o(437),j=o.n(M),B=o(298),z=o.n(B),W=o(207),H=o.n(W),U=o(825),q=o.n(U),X=o(264),Q={attributes:{"data-cke":!0}};Q.setAttributes=H(),Q.insert=z().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=q();K()(X.A,Q);X.A&&X.A.locals&&X.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,O.ButtonView)),e.add("menuBar:insertFootnote",Z(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function $(t,e){var o=Y();return($=function(t,e){return o[t-=195]})(t,e)}var G=$;function Y(){var t=["138675hXRuzW","isOfficialPlugin","378202caFnio","1002400TJXzyN","Footnotes","1584456GkmPhn","430332QQNxTB","4EqoCkL","pluginName","2658672QxLocw","886863CRJZoD","isPremiumPlugin","1SdEvzQ","requires"];return(Y=function(){return t})()}!function(t){for(var e=$,o=t();;)try{if(160128===parseInt(e(207))/1*(-parseInt(e(197))/2)+parseInt(e(205))/3*(parseInt(e(202))/4)+parseInt(e(195))/5+parseInt(e(201))/6+-parseInt(e(198))/7+-parseInt(e(200))/8+parseInt(e(204))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[G(203)](){return G(199)}static get[G(208)](){return[v,_,J]}static get[G(196)](){return!0}static get[G(206)](){return!0}}const et=ot;function ot(t,e){const o=it();return(ot=function(t,e){return o[t-=476]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(814394===-parseInt(e(492))/1*(parseInt(e(491))/2)+parseInt(e(480))/3*(parseInt(e(493))/4)+parseInt(e(479))/5*(parseInt(e(494))/6)+-parseInt(e(482))/7+parseInt(e(481))/8+parseInt(e(489))/9+parseInt(e(483))/10*(-parseInt(e(487))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[et(488),et(485),et(484),et(476),et(478),et(486),et(477),et(490)];function it(){const t=["10zxxSHB","78801lvPkfk","10442136aODOKQ","10111626gMShBb","490HZspuB","lower-latin","decimal-leading-zero","upper-alpha","108922iSwjEQ","decimal","5274720FClEiZ","upper-roman","2672354WMMxhM","1kyxSza","120BguepK","4202790NRAPrE","upper-latin","lower-roman","lower-alpha"];return(it=function(){return t})()}const st=at;function rt(){const t=["get","11bWJdfc","99pibLOx","410416JFHnft","40555464ziRslC","6bDScMM","260Ylpubc","setAttribute","change","model","5CMmVUd","value","7407160OMSjZE","refresh","getAttribute","7563262CqKMUK","getFootnotesDefinitionsObjectElement","26142PbxdSn","plugins","5110470oHQzML","execute","includes","isEnabled","_updateFootnotesCounters","footnotesListStyle","813238KbLJSl"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=184]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(947585===-parseInt(e(204))/1+parseInt(e(185))/2*(parseInt(e(196))/3)+-parseInt(e(191))/4*(-parseInt(e(189))/5)+parseInt(e(184))/6*(parseInt(e(194))/7)+parseInt(e(208))/8*(parseInt(e(207))/9)+parseInt(e(198))/10*(parseInt(e(206))/11)+-parseInt(e(209))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(192)](){const t=st,{editor:e}=this,o=e[t(197)][t(205)](d)[t(195)]();this[t(201)]=!!o,this[t(190)]=o?.[t(193)](t(203))??null}[st(199)]({value:t}){const e=st,{editor:o}=this,n=o[e(197)][e(205)](d),i=n[e(195)]();i&&nt[e(200)](t)&&o[e(188)][e(187)](o=>{const s=e;o[s(186)](s(203),t,i),n[s(202)](o)})}}const lt=ut;function ft(){const t=["getFootnotesDefinitionsObjectElement","isEnabled","get","12221816vgyLXX","isInteger","model","1xlpNCq","getAttribute","_updateFootnotesCounters","plugins","32041207yaieZE","setAttribute","412adAukW","value","5331805FJcVzo","change","footnotesListStart","1383302DMfwcj","refresh","357txvcTX","22839IFsphH","2441790Duqyka","execute","10uoJpvO","73428UEBQxy"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=186]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(764065===-parseInt(e(194))/1*(parseInt(e(205))/2)+parseInt(e(208))/3*(parseInt(e(200))/4)+-parseInt(e(202))/5+parseInt(e(187))/6*(parseInt(e(207))/7)+-parseInt(e(191))/8+-parseInt(e(209))/9+-parseInt(e(186))/10*(-parseInt(e(198))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(206)](){const t=lt,{editor:e}=this,o=e[t(197)][t(190)](d)[t(188)]();this[t(189)]=!!o,this[t(201)]=o?.[t(195)](t(204))??null}[lt(210)]({value:t}){const e=lt,{editor:o}=this,n=o[e(197)][e(190)](d),i=n[e(188)]();i&&Number[e(192)](t)&&o[e(193)][e(203)](o=>{const s=e;o[s(199)](s(204),t,i),n[s(196)](o)})}}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=466]})(t,e)}function mt(){const t=["1214fXWoCp","decimal","setFootnoteFormatter","mapper","removeAttribute","from","lower-roman","2590917qgNtkE","getStyle","footnotesDefinitions","start","_defineConverters","_formatFootnoteListValue","isOfficialPlugin","parent","type","toLowerCase","padStart","checkAttribute","element","setAttribute","1702356gQsZqy","footnotes.footnotesProperties.defaultStartIndex","8QKGzOm","requires","upper-alpha","consumable","commands","footnotesListStyle","attribute:footnotesListStart:footnotesDefinitions","getChildren","footnotes-list","get","pluginName","_updateFootnotesCounters","name","setStyle","differ","schema","registerPostFixer","hasClass","toUpperCase","_definePostfixer","getChanges","FootnotesPropertiesEditing","1395600OCuHWd","floor","define","position","init","document","lower-alpha","extend","footnotesStyle","add","upcast","item","lower-latin","footnotesListStart","toViewElement","54857KHQAEb","element:ol","model","_getDefaultStartIndex","4117580fhlFjD","decimal-leading-zero","778EHGqUf","250542gnnqvP","parseInt","6kVRrfq","modelCursor","removeStyle","find","config","nodeAfter","getAttribute","downcast","upper-latin","fromCharCode","isPremiumPlugin","plugins","_getDefaultListStyle","getItems","viewItem","upper-roman","consume","footnotes.footnotesProperties.defaultListStyle","$text","createRangeOn","430fCUwlL","_defineFormatter","insert","hasAttribute","max","writer","list-style-type","footnotesStart","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","for","isNaN","editor"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(527217===parseInt(e(495))/1*(parseInt(e(561))/2)+-parseInt(e(516))/3+parseInt(e(559))/4+parseInt(e(540))/5*(-parseInt(e(564))/6)+parseInt(e(502))/7*(-parseInt(e(518))/8)+parseInt(e(562))/9+parseInt(e(482))/10*(parseInt(e(555))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(528)](){return pt(539)}static get[pt(519)](){return[v,d]}static get[pt(508)](){return!0}static get[pt(472)](){return!0}[pt(544)](){const t=pt,{editor:e}=this;e[t(466)][t(542)](t(479),t(496)),e[t(466)][t(542)](t(517),1),e[t(522)][t(549)](t(548),new ct(e)),e[t(522)][t(549)](t(489),new dt(e)),this[t(491)](),this[t(506)](),this[t(483)](),this[t(537)]()}[pt(491)](){const t=pt,{editor:e}=this,{schema:o}=e[t(557)];o[t(547)](t(504),{allowAttributes:[t(523),t(553)]})}[pt(506)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(492)](t(550))[t(549)](e=>{const o=t;e.on(o(556),(t,e,n)=>{const s=o,r=e[s(476)],a=e[s(565)]?.[s(509)];r[s(535)](s(526))&&a?.is(s(514),s(504))&&(function(t,e,o,n){const i=s;if(!n[i(513)](e,i(553)))return;let r=1;const a=o[i(521)][i(478)](t,{attributes:i(505)});if(a){const e=Number[i(563)](t[i(468)](i(505)),10);Number[i(493)](e)||(r=e)}!a&&e[i(485)](i(553))||o[i(487)][i(515)](i(553),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(513)](e,i(523)))return;let r=i(496),a=!1;if(o[i(521)][i(478)](t,{attributes:i(510)})){const e={1:i(496),a:i(546),A:i(520),i:i(501),I:i(477)}[t[i(468)](i(510))];e&&(r=e),a=!0}o[i(521)][i(478)](t,{styles:i(488)})&&(r=function(t){const e=i;switch(t){case e(546):return e(552);case e(520):return e(470);default:return t}}(t[i(503)](i(488))),a=!0),!a&&e[i(485)](i(523))||o[i(487)][i(515)](i(523),r,e)}(r,a,n,i))})}),o[t(492)](t(469))[t(549)](e=>{const o=t;e.on(o(524),(t,e,n)=>{const i=o;if(!n[i(521)][i(478)](e[i(551)],t[i(530)]))return;const s=wt(e[i(551)],n[i(498)]),{attributeNewValue:r}=e;null==r||1===r?n[i(487)][i(499)](i(505),s):n[i(487)][i(515)](i(505),String(r),s)}),e.on(o(490),(t,e,n)=>{const i=o;if(!n[i(521)][i(478)](e[i(551)],t[i(530)]))return;const s=wt(e[i(551)],n[i(498)]),{attributeNewValue:r}=e;r&&i(496)!==r?n[i(487)][i(531)](i(488),r,s):n[i(487)][i(566)](i(488),s)})})}[pt(537)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(473)][t(527)](d),i=this[t(474)](),s=this[t(558)]();o[t(545)][t(534)](e=>{const r=t,a=o[r(545)][r(532)][r(538)]();let c=!1;for(const t of a){if(r(484)!==t[r(510)]||r(480)===t[r(530)])continue;const n=o[r(481)](t[r(543)][r(467)]);for(const t of n[r(475)]())t.is(r(514),r(504))&&(!t[r(485)](r(553))&&o[r(533)][r(513)](t,r(553))&&(e[r(515)](r(553),s,t),c=!0),!t[r(485)](r(523))&&o[r(533)][r(513)](t,r(523))&&(e[r(515)](r(523),i,t),c=!0))}return c&&n[r(529)](e),c})}[pt(483)](){const t=pt,{editor:e}=this;e[t(473)][t(527)](d)[t(497)](e=>this[t(507)](e))}[pt(474)](){const t=pt;return this[t(494)][t(466)][t(527)](t(479))}[pt(558)](){const t=pt;return this[t(494)][t(466)][t(527)](t(517))}[pt(507)]({container:t,value:e,digits:o}){const n=pt,i=t[n(468)](n(523)),s=t[n(468)](n(553)),r=Math[n(541)](e)+(s??1)-1;switch(i){case n(560):return function(t,e){const o=n;return String(t)[o(512)](e,"0")}(r,Math[n(486)](2,o));case n(546):case n(552):return yt(r,!1);case n(520):case n(470):return yt(r,!0);case n(501):return vt(r,!1);case n(477):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(554)](t);return Array[o(500)](n[o(525)]())[o(567)](t=>t.is(o(514),"ol")&&t[o(535)](o(526)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(471)](97+t)+n,i=Math[o(541)]((i-1)/26)}return e?n[o(536)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(511)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=z().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["120ZdjxJb","7odcWyK","128460qLfmgO","requires","isOfficialPlugin","3622473nRrXfx","11232064vjLBJC","2578536BpYnpA","113277RFiWvA","pluginName","FootnotesProperties","841328OzLavA","isPremiumPlugin","72AMTVtA","2768650qWqkzE"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=180]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(891174===parseInt(e(187))/1+parseInt(e(189))/2*(-parseInt(e(184))/3)+parseInt(e(183))/4+-parseInt(e(191))/5*(parseInt(e(193))/6)+-parseInt(e(192))/7*(-parseInt(e(182))/8)+-parseInt(e(181))/9+parseInt(e(190))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class At extends t.Plugin{static get[xt(185)](){return xt(186)}static get[xt(194)](){return[gt,Ft]}static get[xt(180)](){return!0}static get[xt(188)](){return!0}}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=233]})(t,e)}function Dt(){var t=["160xLKwQL","51cQDZcR","1487034vEogxo","7803822UxwkVN","7WkyLmv","270230gxNZHe","8659696EBtpgH","1909568sXLjQx","6272815ymXJfd","60988JJdmrI"];return(Dt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(859642===-parseInt(e(237))/1+parseInt(e(241))/2*(-parseInt(e(233))/3)+parseInt(e(239))/4+-parseInt(e(240))/5+parseInt(e(235))/6*(-parseInt(e(236))/7)+parseInt(e(238))/8+parseInt(e(234))/9*(parseInt(e(242))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),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},271(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},366(t){"use strict";t.exports=function(t){return t[1]}},789(t){"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},298(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)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(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)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},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:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["root","reset","getItems","nodeAfter","createRangeOn","has","44WtIqrA","_getElementKey","name","218gnrlHV","5779dSIlik","_elementName","$graveyard","type","12215256hGKLDV","7Cukbbn","position","flat","clear","elementName","1843770UtkrvX","attributes","set","6354378muhHVo","slice","rootName","remove","values","element","_model","779283JXEWHK","4493769XyOZrQ","get","delete","length","insert","getElementKey","from","add","getChanges","3118230nPpEqp","_trackedElements","push","12CaKSjI","$text"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=127]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(780151===-parseInt(e(146))/1*(parseInt(e(145))/2)+-parseInt(e(167))/3+-parseInt(e(134))/4*(-parseInt(e(156))/5)+-parseInt(e(159))/6+parseInt(e(151))/7*(parseInt(e(150))/8)+parseInt(e(166))/9+parseInt(e(131))/10*(parseInt(e(142))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(165)];[r(147)];[r(143)];[r(132)]=new Map;constructor(t,e){const o=r;this[o(165)]=t,this[o(147)]=e[o(155)],this[o(143)]=e[o(127)]}[r(137)](){const t=r;this[t(132)][t(154)]()}[r(130)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(171)===i[e(149)]&&e(135)!==i[e(144)]&&i[e(152)][e(139)]){const t=this[e(165)][e(140)](i[e(152)][e(139)]);for(const o of t[e(138)]()){if(!o.is(e(164),this[e(147)]))continue;const t=this[e(143)](o);n[e(141)](t)||n[e(158)](t,[]),n[e(168)](t)[e(133)](o)}}if(e(162)===i[e(149)]&&i[e(144)]===this[e(147)]){const t=this[e(143)]({getAttribute:t=>i[e(157)][e(168)](t)});o[e(129)](t)}}for(const[t,n]of this[e(132)])e(148)===n[e(136)][e(161)]&&o[e(129)](t);for(const t of o)this[e(132)][e(169)](t);for(const[t,o]of n)this[e(132)][e(158)](t,o[o[e(170)]-1]);const i=new Set;for(const[t,s]of n)o[e(141)](t)&&(i[e(129)](s[0]),s[e(170)]>1?n[e(158)](t,s[e(160)](1)):n[e(169)](t),o[e(169)](t));return{removed:Array[e(128)](o),inserted:Array[e(128)](n[e(163)]())[e(153)](),moved:Array[e(128)](i)}}}function f(){const t=["listenTo","isPremiumPlugin","pluginName","createPositionAt","append","getFootnotesFormatter","_updateFootnotesCounters","7299CYCnSk","getFootnotes","_footnoteFormatter","10292440ACVwTd","editor","_handleFootnotesDefinitionsObjectChanges","move","min","_footnotes","_insertEmptyFootnotesDefinitionsContainer","138zWDYyW","_handleFootnotesDefinitionsObjectSync","footnoteDefinition","setFootnoteFormatter","enqueueChange","_handleFootnoteReferencesChanges","find","indexOf","paragraph","footnoteRef","add","getRootNames","_footnoteDefsTracker","_footnoteDefsContainerTracker","low","387506fChEUB","findIndex","FootnotesTracker","footnoteId","reset","root","footnotes.multiBlock","registerPostFixer","length","singleton","23668623HRDUVQ","reference","set","6820450XCDnom","rootName","_handleInsertedFootnoteReference","definition","insert","unshift","push","27884mrdVDO","_sortFootnoteDefinitions","_handleFootnoteDefinitionsChanges","from","getChanges","document","_handleMovedFootnoteReference","createElement","_updateFootnoteRefCounter","footnoteInlineContent","splice","model","getFootnotesDefinitionsObjectElement","some","parent","$graveyard","compareWith","createRangeIn","high","footnotesDefinitions","config","createPositionBefore","map","footnoteCounter","_ensureFootnotesReferencesHaveProperOrder","differ","959006WCRMit","init","has","end","get","_footnotesDefinitions","childCount","isOfficialPlugin","12360mBdxRh","getChildren","_ensureFootnotesDefinitionsContainerExists","_handleRemoveFootnoteReferenceById","setAttribute","getFootnote","getAttribute","change:data","before","_footnoteRefsTracker","after","remove","2bcVEjx","363CFvkFx","createRangeOn","isEqual"];return(f=function(){return t})()}const u=p;!function(t){const e=p,o=t();for(;;)try{if(824897===-parseInt(e(220))/1*(-parseInt(e(302))/2)+-parseInt(e(221))/3*(parseInt(e(276))/4)+parseInt(e(269))/5+parseInt(e(241))/6*(parseInt(e(256))/7)+parseInt(e(310))/8*(parseInt(e(231))/9)+-parseInt(e(234))/10+-parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(239)]=[];[u(307)]=null;[u(233)]=null;[u(254)];[u(217)];[u(253)];static get[u(226)](){return u(258)}static get[u(309)](){return!0}static get[u(225)](){return!0}constructor(t){const e=u;super(t),this[e(254)]=new l(this[e(235)][e(287)],{elementName:e(295),getElementKey:()=>e(265)}),this[e(217)]=new l(this[e(235)][e(287)],{elementName:e(250),getElementKey:t=>t[e(316)](e(259))}),this[e(253)]=new l(this[e(235)][e(287)],{elementName:e(243),getElementKey:t=>t[e(316)](e(259))})}[u(303)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(281)][t(263)](e=>{const n=t,i=o[n(281)][n(301)][n(280)]();let s=!1;return this[n(236)](e,i)&&(s=!0),this[n(278)](e,i)&&(s=!0),this[n(246)](e,i)&&(s=!0),this[n(300)](e)&&(s=!0),this[n(242)](e)&&(s=!0),this[n(277)](e)&&(s=!0),s}),this[t(224)](o[t(281)],t(317),()=>{const e=t;o[e(245)]({isUndoable:!1},t=>{this[e(312)](t)})},{priority:t(255)}),this[t(224)](n,t(268),()=>{const e=t;this[e(239)]=[],this[e(254)][e(260)](),this[e(217)][e(260)](),this[e(253)][e(260)]()},{priority:t(294)})}[u(288)](){return this[u(307)]}[u(315)](t){const e=u;return this[e(239)][e(247)](e=>e.id===t)||null}[u(232)](){const t=u;return Array[t(279)](this[t(239)])}[u(229)](){return this[u(233)]}[u(244)](t){this[u(233)]=t}[u(230)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(239)][o(264)];i++)this[o(284)](t,i)&&(n=!0);return n}[u(240)](t,e){const o=u,n=t[o(283)](o(295),{});return t[o(228)](n,e),this[o(307)]=n,n}[u(312)](t){const e=u;if(!this[e(239)][e(264)]||this[e(307)])return;const o=this[e(239)][0][e(267)][e(261)],n=this[e(240)](t,o);for(const o of this[e(239)])o[e(272)][e(290)]||t[e(273)](o[e(272)],n,e(305));this[e(230)](t)}[u(236)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(254)][o(280)](e);if(r[o(264)]&&(this[o(307)]=r[0]),i[o(264)])if(i[o(264)]>1||this[o(307)]&&i[o(289)](t=>t!==this[o(307)])){const e=t[o(283)](o(295),{}),s=[];this[o(307)]&&s[o(275)](this[o(307)]),s[o(275)](...i),t[o(273)](e,s[0],o(216));for(const n of s)t[o(237)](t[o(293)](n),t[o(227)](e,o(305))),t[o(219)](n);this[o(307)]=e,this[o(230)](t),n=!0}else this[o(307)]=i[0];if(s[o(264)]&&o(291)===this[o(307)]?.[o(261)][o(270)]){for(const e of this[o(239)])t[o(219)](e[o(267)]),n=!0;this[o(239)]=[],this[o(307)]=null}return n}[u(278)](t,e){const o=u;let n=!1;const i=this[o(235)][o(296)][o(306)](o(262)),{inserted:s,moved:r}=this[o(253)][o(280)](e);for(const e of[...r,...s]){const s=e[o(316)](o(259)),r=this[o(315)](s);r&&(r[o(272)]=e),h(t,i,e)&&(n=!0)}return n}[u(246)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(217)][o(280)](e);for(const e of i)this[o(313)](t,e)&&(n=!0);for(const e of s)this[o(271)](t,e)&&(n=!0);for(const e of r)this[o(282)](t,e)&&(n=!0);return n}[u(242)](t){const e=u;if(!this[e(307)])return!1;let o=!1;if(this[e(307)][e(308)]!==this[e(239)][e(264)]){const n=[];for(const t of this[e(307)][e(311)]()){const i=t[e(316)](e(259));this[e(315)](i)||(n[e(274)](t),o=!0)}for(const o of n)t[e(219)](o)}const n=new Set,i=[];for(const t of this[e(307)][e(311)]()){const s=t[e(316)](e(259));n[e(304)](s)?(i[e(274)](t),o=!0):n[e(251)](s)}for(const o of i)t[e(219)](o);return this[e(307)][e(308)]||(t[e(219)](this[e(307)]),this[e(307)]=null,o=!0),o}[u(271)](t,e){const o=u;if(this[o(239)][o(247)](t=>t[o(267)]===e))return!1;let n=!1;const i=e[o(316)](o(259)),s=this[o(239)][o(257)](t=>t.id===i);-1!==s&&(t[o(219)](this[o(239)][s][o(267)]),this[o(239)][o(286)](s,1),n=!0);let r=this[o(307)]?function(t,e){const n=o;for(const o of t[n(311)]())if(o[n(316)](n(259))===e)return o;return null}(this[o(307)],i):null;r||(r=t[o(283)](o(243),{footnoteId:i}),this[o(307)]&&(t[o(273)](r,this[o(307)],o(305)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(235)][o(287)],this[o(239)],e);this[o(239)][o(286)](c,0,a);let l=c;return-1!==s&&(l=Math[o(238)](c,s)),this[o(230)](t,l)&&(n=!0),n}[u(313)](t,e){const o=u,n=this[o(239)][o(257)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(239)][n];return o(291)!==s[o(272)][o(261)][o(270)]&&(t[o(219)](s[o(272)]),i=!0),this[o(239)][o(286)](n,1),this[o(230)](t,n)&&(i=!0),i}[u(282)](t,e){const o=u,n=e[o(316)](o(259)),i=this[o(239)][o(257)](t=>t.id===n),s=this[o(239)][i];let r=!1;s[o(267)]=e,this[o(239)][o(286)](i,1);const a=m(this[o(235)][o(287)],this[o(239)],e);return this[o(239)][o(286)](a,0,s),this[o(230)](t,Math[o(238)](i,a))&&(r=!0),r}[u(284)](t,e){const o=u;if(!this[o(307)])return!1;const n=this[o(239)][e];let i;return i=this[o(233)]?this[o(233)]({footnote:n,container:this[o(307)],digits:String(this[o(239)][o(264)])[o(264)],value:e+1}):String(e+1),n[o(267)][o(316)](o(299))!=i&&(t[o(314)](o(299),i,n[o(267)]),!0)}[u(277)](t){const e=u;if(!this[e(307)]||this[e(239)][e(264)]<2)return!1;if(function(t,o){const n=e;if(t[n(264)]!==o[n(264)])return!1;for(let e=0;e<t[n(264)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(239)][e(298)](t=>t.id),Array[e(279)](this[e(307)][e(311)]())[e(298)](t=>t[e(316)](e(259)))))return!1;let o=!1;for(let n=0;n<this[e(239)][e(264)];n++){const i=this[e(239)][n],s=t[e(297)](i[e(272)]),r=t[e(227)](this[e(307)],n);s[e(223)](r)||(t[e(237)](t[e(222)](i[e(272)]),r),o=!0)}return o}[u(300)](t){const e=u;if(!this[e(239)][e(264)])return!1;const{model:o}=this[e(235)];let n=!1;for(let i=0;i<this[e(239)][e(264)]-1;i++){const s=this[e(239)][i],r=this[e(239)][i+1],a=o[e(297)](s[e(267)]),c=o[e(297)](r[e(267)]);e(218)===a[e(292)](c)&&(this[e(282)](t,s[e(267)]),i=-1,n=!0)}return n}}function p(t,e){const o=f();return(p=function(t,e){return o[t-=216]})(t,e)}function h(t,e,o){const n=u;if(o[n(308)])return!1;const i=n(e?249:285);return t[n(273)](t[n(283)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(264)])return 0;const i=t[n(297)](o);for(let o=0;o<e[n(264)];o++){const s=e[o],r=t[n(297)](s[n(267)]);if(n(216)===i[n(292)](r))return o}const s=o[n(261)];let r=-1;for(let t=e[n(264)]-1;t>=0;t--)if(e[t][n(267)][n(261)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(281)][n(252)](),c=a[n(248)](s[n(270)]),l=a[c+1];if(l)for(let t=0;t<e[n(264)];t++)if(e[t][n(267)][n(261)][n(270)]===l)return t;return e[n(264)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=147]})(t,e)}function y(){const t=["9WmBNlH","change","429664gwfXhG","insertObject","length","getFirstRange","_moveSelectionToFootnoteDefinition","_getPositionToInsertFootnote","refresh","196wusgBB","editor","createElement","isObject","40wHRAJC","model","87732gvNtvD","FootnotesEditing","1680841ucXfaH","getItems","footnoteRef","test","6824anuZhr","6772104pxFvfi","execute","footnoteId","12786653OcuFxg","insert-footnote-command-executed-with-invalid-id","document","3880EkiOYf","end","checkChild","selection","get","isBlock","string","214252bSzZyk","isEnabled","plugins"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(938729===-parseInt(e(160))/1+-parseInt(e(178))/2*(parseInt(e(181))/3)+parseInt(e(164))/4*(-parseInt(e(171))/5)+parseInt(e(165))/6+-parseInt(e(152))/7*(parseInt(e(183))/8)+-parseInt(e(158))/9+-parseInt(e(156))/10*(-parseInt(e(168))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(151)](){const t=g,e=this[t(153)][t(157)][t(170)][t(174)],o=this[t(150)](e);this[t(179)]=!!o}[g(166)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(170)],r=this[e(150)](s);if(!r)return;const a=o[e(180)][e(175)](e(159)),c=t?.[e(167)]??(0,i.uid)();!function(t){const o=e;return o(177)==typeof t&&t[o(147)]>0&&!/\s/[o(163)](t)&&!/^\d/[o(163)](t)}(c)?(0,i.logWarning)(e(169)):(n[e(182)](t=>{const o=e,i=t[o(154)](o(162),{footnoteId:c});n[o(184)](i,r,null)}),a[e(149)](c))}[g(150)](t){const e=g,{model:o}=this[e(153)],{schema:n}=o,i=t[e(148)]();for(const t of i[e(161)]())if(n[e(176)](t)||n[e(155)](t))return null;const s=i[e(172)];return n[e(173)](s,e(162))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1779062400;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const P=T;function D(){const t=["selection","getAttribute","element","toData","1276101cDFzrY","string","createElement","hasAttribute","getData","sourceEditorId","reduce","toModel","1863060WXUGof","init","content","getFirstRange","toView","getFootnotesDefinitionsObjectElement","22zQArtQ","length","footnotesDefinitions","document","includes","_defineClipboardIntegration","getFootnote","end","getRanges","find","_handlePasteFootnotesDefinitions","htmlProcessor","root","9peHTpZ","_handleCopyFootnotesDefinitions","pluginName","keys","dataTransfer","getChildren","createRangeIn","getSelectedBlocks","listenTo","isPremiumPlugin","stringify","requires","flatMap","footnoteId","application/ckeditor5-footnotes","drop","241832rsrTqP","103744QFNTTL","41184KFLInw","contentInsertion","setAttribute","cloneElement","method","append","change","footnoteRef","definition","226500IOoCAM","editing","14FYdGPg","insert","create","remove","push","outputTransformation","FootnotesClipboard","footnoteDefinition","footnoteInlineContent","entries","footnotes.multiBlock","isOfficialPlugin","_insertEmptyFootnotesDefinitionsContainer","parse","data","editor","50Vsetez","config","getFootnotes","add","from","setData","clipboardInput","get","148994cYaEHA"];return(D=function(){return t})()}function T(t,e){const o=D();return(T=function(t,e){return o[t-=232]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(230219===parseInt(e(259))/1+parseInt(e(309))/2+parseInt(e(291))/3*(parseInt(e(307))/4)+parseInt(e(251))/5*(-parseInt(e(233))/6)+-parseInt(e(235))/7*(-parseInt(e(308))/8)+-parseInt(e(264))/9+parseInt(e(272))/10*(parseInt(e(278))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[P(293)](){return P(241)}static get[P(302)](){return[v,A.ClipboardPipeline]}static get[P(246)](){return!0}static get[P(300)](){return!0}[P(273)](){this[P(283)]()}[P(283)](){const t=P;this[t(292)](),this[t(288)]()}[P(292)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(258)](A.ClipboardPipeline),s=o[t(258)](d);this[t(299)](i,t(240),(o,i)=>{const r=t,a=V(n[r(297)](i[r(274)]));if(!a[r(279)])return;const c=s[r(253)](),l=a[r(270)]((t,o)=>{const n=r,i=c[n(287)](t=>t.id===o);if(i){const o=e[n(249)][n(276)](i[n(232)],{isClipboardPipeline:!0}),s=e[n(249)][n(289)][n(263)](o);t[i.id]=s}return t},Object[r(237)](null));i[r(295)][r(256)](r(305),JSON[r(301)](l))})}[P(288)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(234)],r=n[t(258)](A.ClipboardPipeline),a=n[t(258)](d),c=e[t(252)][t(258)](t(245));let l=null;this[t(299)](s[t(281)],t(257),(e,o)=>{const n=t,i=o[n(295)][n(268)](n(305));l=i?JSON[n(248)](i):null}),this[t(299)](r,t(310),(n,s)=>{const r=t,f=s[r(269)]===this[r(250)].id;f&&r(306)===s[r(313)]||o[r(315)](t=>{const n=r;let u=a[n(277)]();const d=!!u&&Array[n(255)](o[n(281)][n(260)][n(298)]())[n(282)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(262),e(316)))return!0;return!1}(o[n(297)](s[n(274)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(237)](null);for(const e of i[o(296)]())e.is(o(262),o(242))&&e[o(267)](o(304))&&(s[e[o(261)](o(304))]=t[o(312)](e,!0));return Object[o(294)](s)[o(279)]?s:null}(t,s[n(274)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(297)](e))n.is(o(262),o(280))&&i[o(239)](n);for(const e of i)t[o(238)](e)}(t,s[n(274)]),!l)return;const{selection:p}=o[n(281)],h=p[n(275)]()[n(290)];u&&!d||(u=L(t,s[n(274)]),u||=a[n(247)](t,h));const m=Array[n(255)](p[n(286)]())[n(303)](V),g=function(t,e,o){const s=n,r=Object[s(237)](null);for(const{item:n}of t[s(297)](e))if(n.is(s(262),s(316))){const e=n[s(261)](s(304));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(311)](s(304),r[e],n)}return r}(t,s[n(274)],t=>{const e=n;return!f||!!a[e(284)](t)&&!m[e(282)](t)});for(const[o,i]of Object[n(244)](l)){const s=g[o]||o;let r;if(n(265)!=typeof i)r=i,s!==o&&t[n(311)](n(304),s,r);else{r=t[n(266)](n(242),{footnoteId:s});const o=e[n(249)][n(289)][n(276)](i);let a;if(c)a=e[n(249)][n(271)](o,r);else{a=t[n(266)](n(243));const i=e[n(249)][n(271)](o,a);t[n(236)](i,a)}t[n(314)](a,r)}t[n(236)](r,u,n(285))}l=null})})}}function L(t,e){const o=P;for(const{item:n}of t[o(297)](e))if(n.is(o(262),o(280)))return n;return null}function V(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(262),e(316))&&o[e(254)](n[e(261)](e(304)));return Array[e(255)](o)}var O=o(311),N=o(355),R=o(789),K=o.n(R),M=o(437),j=o.n(M),B=o(298),z=o.n(B),W=o(207),H=o.n(W),U=o(825),q=o.n(U),X=o(264),Q={attributes:{"data-cke":!0}};Q.setAttributes=H(),Q.insert=z().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=q();K()(X.A,Q);X.A&&X.A.locals&&X.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,O.ButtonView)),e.add("menuBar:insertFootnote",Z(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function $(t,e){var o=Y();return($=function(t,e){return o[t-=195]})(t,e)}var G=$;function Y(){var t=["138675hXRuzW","isOfficialPlugin","378202caFnio","1002400TJXzyN","Footnotes","1584456GkmPhn","430332QQNxTB","4EqoCkL","pluginName","2658672QxLocw","886863CRJZoD","isPremiumPlugin","1SdEvzQ","requires"];return(Y=function(){return t})()}!function(t){for(var e=$,o=t();;)try{if(160128===parseInt(e(207))/1*(-parseInt(e(197))/2)+parseInt(e(205))/3*(parseInt(e(202))/4)+parseInt(e(195))/5+parseInt(e(201))/6+-parseInt(e(198))/7+-parseInt(e(200))/8+parseInt(e(204))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[G(203)](){return G(199)}static get[G(208)](){return[v,_,J]}static get[G(196)](){return!0}static get[G(206)](){return!0}}const et=ot;function ot(t,e){const o=it();return(ot=function(t,e){return o[t-=476]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(814394===-parseInt(e(492))/1*(parseInt(e(491))/2)+parseInt(e(480))/3*(parseInt(e(493))/4)+parseInt(e(479))/5*(parseInt(e(494))/6)+-parseInt(e(482))/7+parseInt(e(481))/8+parseInt(e(489))/9+parseInt(e(483))/10*(-parseInt(e(487))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const nt=[et(488),et(485),et(484),et(476),et(478),et(486),et(477),et(490)];function it(){const t=["10zxxSHB","78801lvPkfk","10442136aODOKQ","10111626gMShBb","490HZspuB","lower-latin","decimal-leading-zero","upper-alpha","108922iSwjEQ","decimal","5274720FClEiZ","upper-roman","2672354WMMxhM","1kyxSza","120BguepK","4202790NRAPrE","upper-latin","lower-roman","lower-alpha"];return(it=function(){return t})()}const st=at;function rt(){const t=["get","11bWJdfc","99pibLOx","410416JFHnft","40555464ziRslC","6bDScMM","260Ylpubc","setAttribute","change","model","5CMmVUd","value","7407160OMSjZE","refresh","getAttribute","7563262CqKMUK","getFootnotesDefinitionsObjectElement","26142PbxdSn","plugins","5110470oHQzML","execute","includes","isEnabled","_updateFootnotesCounters","footnotesListStyle","813238KbLJSl"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=184]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(947585===-parseInt(e(204))/1+parseInt(e(185))/2*(parseInt(e(196))/3)+-parseInt(e(191))/4*(-parseInt(e(189))/5)+parseInt(e(184))/6*(parseInt(e(194))/7)+parseInt(e(208))/8*(parseInt(e(207))/9)+parseInt(e(198))/10*(parseInt(e(206))/11)+-parseInt(e(209))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(192)](){const t=st,{editor:e}=this,o=e[t(197)][t(205)](d)[t(195)]();this[t(201)]=!!o,this[t(190)]=o?.[t(193)](t(203))??null}[st(199)]({value:t}){const e=st,{editor:o}=this,n=o[e(197)][e(205)](d),i=n[e(195)]();i&&nt[e(200)](t)&&o[e(188)][e(187)](o=>{const s=e;o[s(186)](s(203),t,i),n[s(202)](o)})}}const lt=ut;function ft(){const t=["getFootnotesDefinitionsObjectElement","isEnabled","get","12221816vgyLXX","isInteger","model","1xlpNCq","getAttribute","_updateFootnotesCounters","plugins","32041207yaieZE","setAttribute","412adAukW","value","5331805FJcVzo","change","footnotesListStart","1383302DMfwcj","refresh","357txvcTX","22839IFsphH","2441790Duqyka","execute","10uoJpvO","73428UEBQxy"];return(ft=function(){return t})()}function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=186]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(764065===-parseInt(e(194))/1*(parseInt(e(205))/2)+parseInt(e(208))/3*(parseInt(e(200))/4)+-parseInt(e(202))/5+parseInt(e(187))/6*(parseInt(e(207))/7)+-parseInt(e(191))/8+-parseInt(e(209))/9+-parseInt(e(186))/10*(-parseInt(e(198))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(206)](){const t=lt,{editor:e}=this,o=e[t(197)][t(190)](d)[t(188)]();this[t(189)]=!!o,this[t(201)]=o?.[t(195)](t(204))??null}[lt(210)]({value:t}){const e=lt,{editor:o}=this,n=o[e(197)][e(190)](d),i=n[e(188)]();i&&Number[e(192)](t)&&o[e(193)][e(203)](o=>{const s=e;o[s(199)](s(204),t,i),n[s(196)](o)})}}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=466]})(t,e)}function mt(){const t=["1214fXWoCp","decimal","setFootnoteFormatter","mapper","removeAttribute","from","lower-roman","2590917qgNtkE","getStyle","footnotesDefinitions","start","_defineConverters","_formatFootnoteListValue","isOfficialPlugin","parent","type","toLowerCase","padStart","checkAttribute","element","setAttribute","1702356gQsZqy","footnotes.footnotesProperties.defaultStartIndex","8QKGzOm","requires","upper-alpha","consumable","commands","footnotesListStyle","attribute:footnotesListStart:footnotesDefinitions","getChildren","footnotes-list","get","pluginName","_updateFootnotesCounters","name","setStyle","differ","schema","registerPostFixer","hasClass","toUpperCase","_definePostfixer","getChanges","FootnotesPropertiesEditing","1395600OCuHWd","floor","define","position","init","document","lower-alpha","extend","footnotesStyle","add","upcast","item","lower-latin","footnotesListStart","toViewElement","54857KHQAEb","element:ol","model","_getDefaultStartIndex","4117580fhlFjD","decimal-leading-zero","778EHGqUf","250542gnnqvP","parseInt","6kVRrfq","modelCursor","removeStyle","find","config","nodeAfter","getAttribute","downcast","upper-latin","fromCharCode","isPremiumPlugin","plugins","_getDefaultListStyle","getItems","viewItem","upper-roman","consume","footnotes.footnotesProperties.defaultListStyle","$text","createRangeOn","430fCUwlL","_defineFormatter","insert","hasAttribute","max","writer","list-style-type","footnotesStart","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","for","isNaN","editor"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(527217===parseInt(e(495))/1*(parseInt(e(561))/2)+-parseInt(e(516))/3+parseInt(e(559))/4+parseInt(e(540))/5*(-parseInt(e(564))/6)+parseInt(e(502))/7*(-parseInt(e(518))/8)+parseInt(e(562))/9+parseInt(e(482))/10*(parseInt(e(555))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(528)](){return pt(539)}static get[pt(519)](){return[v,d]}static get[pt(508)](){return!0}static get[pt(472)](){return!0}[pt(544)](){const t=pt,{editor:e}=this;e[t(466)][t(542)](t(479),t(496)),e[t(466)][t(542)](t(517),1),e[t(522)][t(549)](t(548),new ct(e)),e[t(522)][t(549)](t(489),new dt(e)),this[t(491)](),this[t(506)](),this[t(483)](),this[t(537)]()}[pt(491)](){const t=pt,{editor:e}=this,{schema:o}=e[t(557)];o[t(547)](t(504),{allowAttributes:[t(523),t(553)]})}[pt(506)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(492)](t(550))[t(549)](e=>{const o=t;e.on(o(556),(t,e,n)=>{const s=o,r=e[s(476)],a=e[s(565)]?.[s(509)];r[s(535)](s(526))&&a?.is(s(514),s(504))&&(function(t,e,o,n){const i=s;if(!n[i(513)](e,i(553)))return;let r=1;const a=o[i(521)][i(478)](t,{attributes:i(505)});if(a){const e=Number[i(563)](t[i(468)](i(505)),10);Number[i(493)](e)||(r=e)}!a&&e[i(485)](i(553))||o[i(487)][i(515)](i(553),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(513)](e,i(523)))return;let r=i(496),a=!1;if(o[i(521)][i(478)](t,{attributes:i(510)})){const e={1:i(496),a:i(546),A:i(520),i:i(501),I:i(477)}[t[i(468)](i(510))];e&&(r=e),a=!0}o[i(521)][i(478)](t,{styles:i(488)})&&(r=function(t){const e=i;switch(t){case e(546):return e(552);case e(520):return e(470);default:return t}}(t[i(503)](i(488))),a=!0),!a&&e[i(485)](i(523))||o[i(487)][i(515)](i(523),r,e)}(r,a,n,i))})}),o[t(492)](t(469))[t(549)](e=>{const o=t;e.on(o(524),(t,e,n)=>{const i=o;if(!n[i(521)][i(478)](e[i(551)],t[i(530)]))return;const s=wt(e[i(551)],n[i(498)]),{attributeNewValue:r}=e;null==r||1===r?n[i(487)][i(499)](i(505),s):n[i(487)][i(515)](i(505),String(r),s)}),e.on(o(490),(t,e,n)=>{const i=o;if(!n[i(521)][i(478)](e[i(551)],t[i(530)]))return;const s=wt(e[i(551)],n[i(498)]),{attributeNewValue:r}=e;r&&i(496)!==r?n[i(487)][i(531)](i(488),r,s):n[i(487)][i(566)](i(488),s)})})}[pt(537)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(473)][t(527)](d),i=this[t(474)](),s=this[t(558)]();o[t(545)][t(534)](e=>{const r=t,a=o[r(545)][r(532)][r(538)]();let c=!1;for(const t of a){if(r(484)!==t[r(510)]||r(480)===t[r(530)])continue;const n=o[r(481)](t[r(543)][r(467)]);for(const t of n[r(475)]())t.is(r(514),r(504))&&(!t[r(485)](r(553))&&o[r(533)][r(513)](t,r(553))&&(e[r(515)](r(553),s,t),c=!0),!t[r(485)](r(523))&&o[r(533)][r(513)](t,r(523))&&(e[r(515)](r(523),i,t),c=!0))}return c&&n[r(529)](e),c})}[pt(483)](){const t=pt,{editor:e}=this;e[t(473)][t(527)](d)[t(497)](e=>this[t(507)](e))}[pt(474)](){const t=pt;return this[t(494)][t(466)][t(527)](t(479))}[pt(558)](){const t=pt;return this[t(494)][t(466)][t(527)](t(517))}[pt(507)]({container:t,value:e,digits:o}){const n=pt,i=t[n(468)](n(523)),s=t[n(468)](n(553)),r=Math[n(541)](e)+(s??1)-1;switch(i){case n(560):return function(t,e){const o=n;return String(t)[o(512)](e,"0")}(r,Math[n(486)](2,o));case n(546):case n(552):return yt(r,!1);case n(520):case n(470):return yt(r,!0);case n(501):return vt(r,!1);case n(477):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(554)](t);return Array[o(500)](n[o(525)]())[o(567)](t=>t.is(o(514),"ol")&&t[o(535)](o(526)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(471)](97+t)+n,i=Math[o(541)]((i-1)/26)}return e?n[o(536)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(511)]()}class It extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=z().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=St;function Et(){var t=["120ZdjxJb","7odcWyK","128460qLfmgO","requires","isOfficialPlugin","3622473nRrXfx","11232064vjLBJC","2578536BpYnpA","113277RFiWvA","pluginName","FootnotesProperties","841328OzLavA","isPremiumPlugin","72AMTVtA","2768650qWqkzE"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=180]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(891174===parseInt(e(187))/1+parseInt(e(189))/2*(-parseInt(e(184))/3)+parseInt(e(183))/4+-parseInt(e(191))/5*(parseInt(e(193))/6)+-parseInt(e(192))/7*(-parseInt(e(182))/8)+-parseInt(e(181))/9+parseInt(e(190))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class At extends t.Plugin{static get[xt(185)](){return xt(186)}static get[xt(194)](){return[gt,Ft]}static get[xt(180)](){return!0}static get[xt(188)](){return!0}}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=233]})(t,e)}function Dt(){var t=["160xLKwQL","51cQDZcR","1487034vEogxo","7803822UxwkVN","7WkyLmv","270230gxNZHe","8659696EBtpgH","1909568sXLjQx","6272815ymXJfd","60988JJdmrI"];return(Dt=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(859642===-parseInt(e(237))/1+parseInt(e(241))/2*(-parseInt(e(233))/3)+parseInt(e(239))/4+-parseInt(e(240))/5+parseInt(e(235))/6*(-parseInt(e(236))/7)+parseInt(e(238))/8+parseInt(e(234))/9*(parseInt(e(242))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(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 _0x2cb8f8,Command as _0x5cbc87}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2b46a3,isWidget as _0x4e231d,toWidgetEditable as _0xe026d4,WidgetToolbarRepository as _0x1f0d24}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x8f38f,logWarning as _0x38459d,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x410bca,ClickObserver as _0x182ea6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xfcd335}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x2fb2a7,ButtonView as _0x4b4e2f,View as _0x4e4bbf,ViewCollection as _0x589861,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x372daf,BalloonPanelView as _0x21a899,createDropdown as _0x1e5899}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xb948b1,IconListStyleDecimal as _0x1bb748,IconListStyleDecimalLeadingZero as _0x4a4bf5,IconListStyleLowerRoman as _0x59a039,IconListStyleUpperRoman as _0x102590,IconListStyleLowerLatin as _0x1aad39,IconListStyleUpperLatin as _0x10cf7a}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x25ac76,_0xd75689){this['_model']=_0x25ac76,this['_elementName']=_0xd75689['elementName'],this['_getElementKey']=_0xd75689['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x336ae5){const _0x4513eb=new Set(),_0x2d1369=new Map();for(const _0x328d43 of _0x336ae5){if('insert'===_0x328d43['type']&&'$text'!==_0x328d43['name']&&_0x328d43['position']['nodeAfter']){const _0x13540e=this['_model']['createRangeOn'](_0x328d43['position']['nodeAfter']);for(const _0x40a71e of _0x13540e['getItems']()){if(!_0x40a71e['is']('element',this['_elementName']))continue;const _0x4b1f8e=this['_getElementKey'](_0x40a71e);_0x2d1369['has'](_0x4b1f8e)||_0x2d1369['set'](_0x4b1f8e,[]),_0x2d1369['get'](_0x4b1f8e)['push'](_0x40a71e);}}if('remove'===_0x328d43['type']&&_0x328d43['name']===this['_elementName']){const _0x5f35b5=this['_getElementKey']({'getAttribute':_0x1e3719=>_0x328d43['attributes']['get'](_0x1e3719)});_0x4513eb['add'](_0x5f35b5);}}for(const [_0x37e646,_0xc6fcdf]of this['_trackedElements'])'$graveyard'===_0xc6fcdf['root']['rootName']&&_0x4513eb['add'](_0x37e646);for(const _0x10e6bd of _0x4513eb)this['_trackedElements']['delete'](_0x10e6bd);for(const [_0x3970cb,_0x142b87]of _0x2d1369)this['_trackedElements']['set'](_0x3970cb,_0x142b87[_0x142b87['length']-0x1]);const _0x28f579=new Set();for(const [_0xc23726,_0x34cadb]of _0x2d1369)_0x4513eb['has'](_0xc23726)&&(_0x28f579['add'](_0x34cadb[0x0]),_0x34cadb['length']>0x1?_0x2d1369['set'](_0xc23726,_0x34cadb['slice'](0x1)):_0x2d1369['delete'](_0xc23726),_0x4513eb['delete'](_0xc23726));return{'removed':Array['from'](_0x4513eb),'inserted':Array['from'](_0x2d1369['values']())['flat'](),'moved':Array['from'](_0x28f579)};}}class f extends _0x2cb8f8{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0xed5f8b){super(_0xed5f8b),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5130cf=>_0x5130cf['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5bad29=>_0x5bad29['getAttribute']('footnoteId')});}['init'](){const {editor:_0x23af6c}=this,{model:_0x2fe383,data:_0x3b2863}=_0x23af6c;_0x2fe383['document']['registerPostFixer'](_0x6dd1ba=>{const _0x363728=_0x2fe383['document']['differ']['getChanges']();let _0x19caf2=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x6dd1ba,_0x363728)&&(_0x19caf2=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x6dd1ba,_0x363728)&&(_0x19caf2=!0x0),this['_handleFootnoteReferencesChanges'](_0x6dd1ba,_0x363728)&&(_0x19caf2=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x6dd1ba)&&(_0x19caf2=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x6dd1ba)&&(_0x19caf2=!0x0),this['_sortFootnoteDefinitions'](_0x6dd1ba)&&(_0x19caf2=!0x0),_0x19caf2;}),this['listenTo'](_0x2fe383['document'],'change:data',()=>{_0x2fe383['enqueueChange']({'isUndoable':!0x1},_0x581ec0=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x581ec0);});},{'priority':'low'}),this['listenTo'](_0x3b2863,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x324fa4){return this['_footnotes']['find'](_0x345609=>_0x345609['id']===_0x324fa4)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1ad17b){this['_footnoteFormatter']=_0x1ad17b;}['_updateFootnotesCounters'](_0x3b7099,_0x305f5e=0x0){let _0x56b958=!0x1;for(let _0x43c3cb=_0x305f5e;_0x43c3cb<this['_footnotes']['length'];_0x43c3cb++)this['_updateFootnoteRefCounter'](_0x3b7099,_0x43c3cb)&&(_0x56b958=!0x0);return _0x56b958;}['_insertEmptyFootnotesDefinitionsContainer'](_0x360491,_0x56b11f){const _0x389908=_0x360491['createElement']('footnotesDefinitions',{});return _0x360491['append'](_0x389908,_0x56b11f),this['_footnotesDefinitions']=_0x389908,_0x389908;}['_ensureFootnotesDefinitionsContainerExists'](_0x3eaec7){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0xc71f39=this['_footnotes'][0x0]['reference']['root'],_0x376e8a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x3eaec7,_0xc71f39);for(const _0x17f1c4 of this['_footnotes'])_0x17f1c4['definition']['parent']||_0x3eaec7['insert'](_0x17f1c4['definition'],_0x376e8a,'end');this['_updateFootnotesCounters'](_0x3eaec7);}['_handleFootnotesDefinitionsObjectChanges'](_0x5d82f5,_0x490b9a){let _0x199983=!0x1;const {inserted:_0x446b53,removed:_0x4d48d4,moved:_0x328407}=this['_footnoteDefsContainerTracker']['getChanges'](_0x490b9a);if(_0x328407['length']&&(this['_footnotesDefinitions']=_0x328407[0x0]),_0x446b53['length']){if(_0x446b53['length']>0x1||this['_footnotesDefinitions']&&_0x446b53['some'](_0x1d19fd=>_0x1d19fd!==this['_footnotesDefinitions'])){const _0x35ff61=_0x5d82f5['createElement']('footnotesDefinitions',{}),_0x4bee2c=[];this['_footnotesDefinitions']&&_0x4bee2c['push'](this['_footnotesDefinitions']),_0x4bee2c['push'](..._0x446b53),_0x5d82f5['insert'](_0x35ff61,_0x4bee2c[0x0],'before');for(const _0x2d07b4 of _0x4bee2c)_0x5d82f5['move'](_0x5d82f5['createRangeIn'](_0x2d07b4),_0x5d82f5['createPositionAt'](_0x35ff61,'end')),_0x5d82f5['remove'](_0x2d07b4);this['_footnotesDefinitions']=_0x35ff61,this['_updateFootnotesCounters'](_0x5d82f5),_0x199983=!0x0;}else this['_footnotesDefinitions']=_0x446b53[0x0];}if(_0x4d48d4['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x10540c of this['_footnotes'])_0x5d82f5['remove'](_0x10540c['reference']),_0x199983=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x199983;}['_handleFootnoteDefinitionsChanges'](_0x2959ab,_0x1263b3){let _0x43bae1=!0x1;const _0x440447=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x129dd3,moved:_0x4c9d06}=this['_footnoteDefsTracker']['getChanges'](_0x1263b3);for(const _0x577935 of[..._0x4c9d06,..._0x129dd3]){const _0x4a98a1=_0x577935['getAttribute']('footnoteId'),_0x35d847=this['getFootnote'](_0x4a98a1);_0x35d847&&(_0x35d847['definition']=_0x577935),_(_0x2959ab,_0x440447,_0x577935)&&(_0x43bae1=!0x0);}return _0x43bae1;}['_handleFootnoteReferencesChanges'](_0x457706,_0x336f62){let _0x2f1349=!0x1;const {removed:_0x4b3c54,inserted:_0x624388,moved:_0x2f7ee4}=this['_footnoteRefsTracker']['getChanges'](_0x336f62);for(const _0xb19e33 of _0x4b3c54)this['_handleRemoveFootnoteReferenceById'](_0x457706,_0xb19e33)&&(_0x2f1349=!0x0);for(const _0x50ec3c of _0x624388)this['_handleInsertedFootnoteReference'](_0x457706,_0x50ec3c)&&(_0x2f1349=!0x0);for(const _0x209cd5 of _0x2f7ee4)this['_handleMovedFootnoteReference'](_0x457706,_0x209cd5)&&(_0x2f1349=!0x0);return _0x2f1349;}['_handleFootnotesDefinitionsObjectSync'](_0x1846d3){if(!this['_footnotesDefinitions'])return!0x1;let _0x80f554=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x514e2c=[];for(const _0x39f68b of this['_footnotesDefinitions']['getChildren']()){const _0x594789=_0x39f68b['getAttribute']('footnoteId');this['getFootnote'](_0x594789)||(_0x514e2c['unshift'](_0x39f68b),_0x80f554=!0x0);}for(const _0x9d4e2c of _0x514e2c)_0x1846d3['remove'](_0x9d4e2c);}const _0x6815be=new Set(),_0x5f0125=[];for(const _0x5d6019 of this['_footnotesDefinitions']['getChildren']()){const _0x3c631d=_0x5d6019['getAttribute']('footnoteId');_0x6815be['has'](_0x3c631d)?(_0x5f0125['unshift'](_0x5d6019),_0x80f554=!0x0):_0x6815be['add'](_0x3c631d);}for(const _0x4211f0 of _0x5f0125)_0x1846d3['remove'](_0x4211f0);return this['_footnotesDefinitions']['childCount']||(_0x1846d3['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x80f554=!0x0),_0x80f554;}['_handleInsertedFootnoteReference'](_0x5c2b26,_0x50980a){if(this['_footnotes']['find'](_0xc6a8e7=>_0xc6a8e7['reference']===_0x50980a))return!0x1;let _0x16e9f1=!0x1;const _0x338ade=_0x50980a['getAttribute']('footnoteId'),_0x4ed864=this['_footnotes']['findIndex'](_0x5e3daa=>_0x5e3daa['id']===_0x338ade);-0x1!==_0x4ed864&&(_0x5c2b26['remove'](this['_footnotes'][_0x4ed864]['reference']),this['_footnotes']['splice'](_0x4ed864,0x1),_0x16e9f1=!0x0);let _0x483522=this['_footnotesDefinitions']?function(_0xe519a3,_0x26abbf){for(const _0x490234 of _0xe519a3['getChildren']())if(_0x490234['getAttribute']('footnoteId')===_0x26abbf)return _0x490234;return null;}(this['_footnotesDefinitions'],_0x338ade):null;_0x483522||(_0x483522=_0x5c2b26['createElement']('footnoteDefinition',{'footnoteId':_0x338ade}),this['_footnotesDefinitions']&&(_0x5c2b26['insert'](_0x483522,this['_footnotesDefinitions'],'end'),_0x16e9f1=!0x0));const _0x1f4321={'id':_0x338ade,'reference':_0x50980a,'definition':_0x483522},_0x2bc916=I(this['editor']['model'],this['_footnotes'],_0x50980a);this['_footnotes']['splice'](_0x2bc916,0x0,_0x1f4321);let _0x1df55d=_0x2bc916;return-0x1!==_0x4ed864&&(_0x1df55d=Math['min'](_0x2bc916,_0x4ed864)),this['_updateFootnotesCounters'](_0x5c2b26,_0x1df55d)&&(_0x16e9f1=!0x0),_0x16e9f1;}['_handleRemoveFootnoteReferenceById'](_0x1fa6c2,_0x25678e){const _0x500bb1=this['_footnotes']['findIndex'](_0x20ef44=>_0x20ef44['id']===_0x25678e);if(-0x1===_0x500bb1)return!0x1;let _0x4b3549=!0x1;const _0x2639fa=this['_footnotes'][_0x500bb1];return'$graveyard'!==_0x2639fa['definition']['root']['rootName']&&(_0x1fa6c2['remove'](_0x2639fa['definition']),_0x4b3549=!0x0),this['_footnotes']['splice'](_0x500bb1,0x1),this['_updateFootnotesCounters'](_0x1fa6c2,_0x500bb1)&&(_0x4b3549=!0x0),_0x4b3549;}['_handleMovedFootnoteReference'](_0x57c318,_0x341ffd){const _0x16755d=_0x341ffd['getAttribute']('footnoteId'),_0x48c83e=this['_footnotes']['findIndex'](_0x37faf0=>_0x37faf0['id']===_0x16755d),_0x5ad509=this['_footnotes'][_0x48c83e];let _0x1503c4=!0x1;_0x5ad509['reference']=_0x341ffd,this['_footnotes']['splice'](_0x48c83e,0x1);const _0x40be73=I(this['editor']['model'],this['_footnotes'],_0x341ffd);return this['_footnotes']['splice'](_0x40be73,0x0,_0x5ad509),this['_updateFootnotesCounters'](_0x57c318,Math['min'](_0x48c83e,_0x40be73))&&(_0x1503c4=!0x0),_0x1503c4;}['_updateFootnoteRefCounter'](_0x300459,_0x5265e5){if(!this['_footnotesDefinitions'])return!0x1;const _0x2f9d8c=this['_footnotes'][_0x5265e5];let _0x2f8dd9;return _0x2f8dd9=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2f9d8c,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x5265e5+0x1}):String(_0x5265e5+0x1),_0x2f9d8c['reference']['getAttribute']('footnoteCounter')!=_0x2f8dd9&&(_0x300459['setAttribute']('footnoteCounter',_0x2f8dd9,_0x2f9d8c['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x580657){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x5aed33,_0xc529b6){if(_0x5aed33['length']!==_0xc529b6['length'])return!0x1;for(let _0x520997=0x0;_0x520997<_0x5aed33['length'];_0x520997++)if(_0x5aed33[_0x520997]!==_0xc529b6[_0x520997])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x44fc61=>_0x44fc61['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x394177=>_0x394177['getAttribute']('footnoteId'))))return!0x1;let _0x44d4c2=!0x1;for(let _0x137372=0x0;_0x137372<this['_footnotes']['length'];_0x137372++){const _0x5a9c6c=this['_footnotes'][_0x137372],_0x244823=_0x580657['createPositionBefore'](_0x5a9c6c['definition']),_0x35e6b9=_0x580657['createPositionAt'](this['_footnotesDefinitions'],_0x137372);_0x244823['isEqual'](_0x35e6b9)||(_0x580657['move'](_0x580657['createRangeOn'](_0x5a9c6c['definition']),_0x35e6b9),_0x44d4c2=!0x0);}return _0x44d4c2;}['_ensureFootnotesReferencesHaveProperOrder'](_0x1c9e4e){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4b90bb}=this['editor'];let _0x5f42e5=!0x1;for(let _0x35df17=0x0;_0x35df17<this['_footnotes']['length']-0x1;_0x35df17++){const _0x4d3658=this['_footnotes'][_0x35df17],_0x2c9529=this['_footnotes'][_0x35df17+0x1],_0x554138=_0x4b90bb['createPositionBefore'](_0x4d3658['reference']),_0x353d4d=_0x4b90bb['createPositionBefore'](_0x2c9529['reference']);'after'===_0x554138['compareWith'](_0x353d4d)&&(this['_handleMovedFootnoteReference'](_0x1c9e4e,_0x4d3658['reference']),_0x35df17=-0x1,_0x5f42e5=!0x0);}return _0x5f42e5;}}function _(_0x4781cc,_0x22bad4,_0xacc48e){if(_0xacc48e['childCount'])return!0x1;const _0x4dc383=_0x22bad4?'paragraph':'footnoteInlineContent';return _0x4781cc['insert'](_0x4781cc['createElement'](_0x4dc383),_0xacc48e),!0x0;}function I(_0x5ee26d,_0x4eff1d,_0x32f6d9){if(0x0===_0x4eff1d['length'])return 0x0;const _0x18331f=_0x5ee26d['createPositionBefore'](_0x32f6d9);for(let _0x14c46a=0x0;_0x14c46a<_0x4eff1d['length'];_0x14c46a++){const _0xabef74=_0x4eff1d[_0x14c46a],_0x3b950e=_0x5ee26d['createPositionBefore'](_0xabef74['reference']);if('before'===_0x18331f['compareWith'](_0x3b950e))return _0x14c46a;}const _0x42da86=_0x32f6d9['root'];let _0x2c18bb=-0x1;for(let _0x3ee66e=_0x4eff1d['length']-0x1;_0x3ee66e>=0x0;_0x3ee66e--)if(_0x4eff1d[_0x3ee66e]['reference']['root']===_0x42da86){_0x2c18bb=_0x3ee66e;break;}if(-0x1!==_0x2c18bb)return _0x2c18bb+0x1;const _0x178eb4=_0x5ee26d['document']['getRootNames'](),_0xcf9c8e=_0x178eb4['indexOf'](_0x42da86['rootName']),_0x21ef1b=_0x178eb4[_0xcf9c8e+0x1];if(_0x21ef1b){for(let _0xb307a8=0x0;_0xb307a8<_0x4eff1d['length'];_0xb307a8++)if(_0x4eff1d[_0xb307a8]['reference']['root']['rootName']===_0x21ef1b)return _0xb307a8;}return _0x4eff1d['length'];}class h extends _0x5cbc87{['refresh'](){const _0x2664db=this['editor']['model']['document']['selection'],_0x594a87=this['_getPositionToInsertFootnote'](_0x2664db);this['isEnabled']=!!_0x594a87;}['execute'](_0x381879){const {editor:_0xf95924}=this,{model:_0x42fd43}=_0xf95924,{selection:_0x2900a4}=_0x42fd43['document'],_0x1127e5=this['_getPositionToInsertFootnote'](_0x2900a4);if(!_0x1127e5)return;const _0x431553=_0xf95924['plugins']['get']('FootnotesEditing'),_0x29ae63=_0x381879?.['footnoteId']??_0x8f38f();!function(_0x315e61){return'string'==typeof _0x315e61&&_0x315e61['length']>0x0&&!/\s/['test'](_0x315e61)&&!/^\d/['test'](_0x315e61);}(_0x29ae63)?_0x38459d('insert-footnote-command-executed-with-invalid-id'):(_0x42fd43['change'](_0x179525=>{const _0x5bcf60=_0x179525['createElement']('footnoteRef',{'footnoteId':_0x29ae63});_0x42fd43['insertObject'](_0x5bcf60,_0x1127e5,null);}),_0x431553['_moveSelectionToFootnoteDefinition'](_0x29ae63));}['_getPositionToInsertFootnote'](_0xd8d4e1){const {model:_0x30ab02}=this['editor'],{schema:_0x568016}=_0x30ab02,_0x605d69=_0xd8d4e1['getFirstRange']();for(const _0x8e10a5 of _0x605d69['getItems']())if(_0x568016['isBlock'](_0x8e10a5)||_0x568016['isObject'](_0x8e10a5))return null;const _0x3c19cf=_0x605d69['end'];return _0x568016['checkChild'](_0x3c19cf,'footnoteRef')?_0x3c19cf:null;}}class r extends _0x2cb8f8{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5095e8}=this;_0x5095e8['config']['define']('footnotes.multiBlock',!0x0),_0x5095e8['commands']['add']('insertFootnote',new h(_0x5095e8)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3ef5b7){const _0x2932ff=_0x2b3890([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]),_0xd3d03d=0x47a28506,_0x555c69=0x47a50f26^_0xd3d03d,_0x39e08d=window[_0x2b3890([0x44,0x61,0x74,0x65])][_0x2b3890([0x6e,0x6f,0x77])](),_0x4434c7=_0x3ef5b7[_0x2b3890([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x16e988=new window[(_0x2b3890([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f7e60=>{_0x4434c7[_0x2b3890([0x6f,0x6e,0x63,0x65])](_0x2b3890([0x72,0x65,0x61,0x64,0x79]),_0x2f7e60);}),_0x22ef26={[_0x2b3890([0x6b,0x74,0x79])]:_0x2b3890([0x45,0x43]),[_0x2b3890([0x75,0x73,0x65])]:_0x2b3890([0x73,0x69,0x67]),[_0x2b3890([0x63,0x72,0x76])]:_0x2b3890([0x50,0x2d,0x32,0x35,0x36]),[_0x2b3890([0x78])]:_0x2b3890([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]),[_0x2b3890([0x79])]:_0x2b3890([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]),[_0x2b3890([0x61,0x6c,0x67])]:_0x2b3890([0x45,0x53,0x32,0x35,0x36])},_0x2e5e65=_0x4434c7[_0x2b3890([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2b3890([0x67,0x65,0x74])](_0x2b3890([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cbd1b(){let _0x5ceaca,_0x3da631=null,_0x431c77=null;try{if(_0x2e5e65==_0x2b3890([0x47,0x50,0x4c]))return _0x2b3890([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5ceaca=_0x114610(),!_0x5ceaca)return _0x2b3890([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5ceaca[_0x2b3890([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x431c77=_0x326015(_0x5ceaca[_0x2b3890([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5ceaca[_0x2b3890([0x6a,0x74,0x69])])),await _0x3a4cca()?_0x196aca()?_0x8a2a4()?_0x2b3890([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x300385()?(_0x5ceaca[_0x2b3890([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2b3890([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3da631=_0x540aab(_0x2b3890([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x73fca3()):_0x2b3890([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2b3890([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2b3890([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2b3890([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x8a2a4(){const _0x34e1fe=[_0x2b3890([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2b3890([0x74,0x72,0x69,0x61,0x6c])][_0x2b3890([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5ceaca[_0x2b3890([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39e08d/0x3e8:0xe10*_0x555c69;return _0x5ceaca[_0x2b3890([0x65,0x78,0x70])]<_0x34e1fe;}function _0x196aca(){const _0x2a726a=_0x5ceaca[_0x2b3890([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2a726a&&(!!_0x2a726a[_0x2b3890([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b3890([0x2a]))||!!_0x2a726a[_0x2b3890([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b3890([0x46,0x4f,0x4f])));}function _0x300385(){const _0x1a5172=_0x5ceaca[_0x2b3890([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1a5172||0x0==_0x1a5172[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4272f8}=new URL(window[_0x2b3890([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1a5172[_0x2b3890([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4272f8))return!0x0;const _0x4481dd=_0x4272f8[_0x2b3890([0x73,0x70,0x6c,0x69,0x74])](_0x2b3890([0x2e]));return _0x1a5172[_0x2b3890([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2420c6=>_0x2420c6[_0x2b3890([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b3890([0x2a])))[_0x2b3890([0x6d,0x61,0x70])](_0x51a2ce=>_0x51a2ce[_0x2b3890([0x73,0x70,0x6c,0x69,0x74])](_0x2b3890([0x2e])))[_0x2b3890([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xe2b4ad=>_0xe2b4ad[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4481dd[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b3890([0x6d,0x61,0x70])](_0x5c6bc9=>Array(_0x4481dd[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c6bc9[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2b3890([0x66,0x69,0x6c,0x6c])](_0x5c6bc9[0x0]===_0x2b3890([0x2a])?_0x2b3890([0x2a]):'')[_0x2b3890([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c6bc9))[_0x2b3890([0x73,0x6f,0x6d,0x65])](_0x216ae7=>_0x4481dd[_0x2b3890([0x65,0x76,0x65,0x72,0x79])]((_0x41583b,_0x26d31f)=>_0x216ae7[_0x26d31f]===_0x41583b||_0x216ae7[_0x26d31f]===_0x2b3890([0x2a])));}function _0x73fca3(){return _0x3da631&&_0x431c77?new window[(_0x2b3890([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e3534,_0x4c44f3)=>{_0x3da631[_0x2b3890([0x74,0x68,0x65,0x6e])](_0x1e3534,_0x4c44f3),_0x431c77[_0x2b3890([0x74,0x68,0x65,0x6e])](_0x5299f2=>{_0x5299f2!=_0x2b3890([0x56,0x61,0x6c,0x69,0x64])&&_0x1e3534(_0x5299f2);},_0x4c44f3);}):_0x3da631||_0x431c77||_0x2b3890([0x56,0x61,0x6c,0x69,0x64]);}}function _0x326015(_0x38bed1,_0x25ecc6){return new window[(_0x2b3890([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27819b=>{if(_0x4e2d46())return _0x27819b(_0x2b3890([0x56,0x61,0x6c,0x69,0x64]));_0x4c3eb6(),_0x4434c7[_0x2b3890([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2b3890([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x326e0d=!0x1;const _0xfd2f58=_0x8f38f();function _0x3630b5(_0x1634de){return!!_0x1634de&&(typeof _0x1634de===_0x2b3890([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1634de===_0x2b3890([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1634de[_0x2b3890([0x74,0x68,0x65,0x6e])]===_0x2b3890([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1634de[_0x2b3890([0x63,0x61,0x74,0x63,0x68])]===_0x2b3890([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1a2203(_0x3a6809){_0x76a8ce(_0x3a6809)[_0x2b3890([0x74,0x68,0x65,0x6e])](_0x19a2e0=>{if(!_0x19a2e0||_0x19a2e0[_0x2b3890([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2b3890([0x6f,0x6b]))return _0x2b3890([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x36ce07(_0x1f13d0(_0xfd2f58+_0x25ecc6))!=_0x19a2e0[_0x2b3890([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2b3890([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2b3890([0x56,0x61,0x6c,0x69,0x64]);})[_0x2b3890([0x74,0x68,0x65,0x6e])](_0x5f0b49=>(_0x39eb8f(),_0x5f0b49),()=>{const _0x545862=_0x393f70();return null==_0x545862?(_0x39eb8f(),_0x2b3890([0x56,0x61,0x6c,0x69,0x64])):_0x2b3890(_0x39e08d-_0x545862>(0x63ae0106^_0xd3d03d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2b3890([0x74,0x68,0x65,0x6e])](_0x27819b)[_0x2b3890([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27819b(_0x2b3890([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x11f418=0x47946b86^_0xd3d03d;function _0x39eb8f(){const _0x81b272=_0x2b3890([0x6c,0x6c,0x63,0x74,0x2d])+_0x36ce07(_0x1f13d0(_0x38bed1)),_0x312c70=_0x1f38b1(_0x36ce07(window[_0x2b3890([0x4d,0x61,0x74,0x68])][_0x2b3890([0x63,0x65,0x69,0x6c])](_0x39e08d/_0x11f418)));window[_0x2b3890([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b3890([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x81b272,_0x312c70);}function _0x393f70(){const _0x578040=_0x2b3890([0x6c,0x6c,0x63,0x74,0x2d])+_0x36ce07(_0x1f13d0(_0x38bed1)),_0x25e5ea=window[_0x2b3890([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2b3890([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x578040);return _0x25e5ea?window[_0x2b3890([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f38b1(_0x25e5ea),0x10)*_0x11f418:null;}function _0x76a8ce(_0xc4ea2b){return new window[(_0x2b3890([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x42f779,_0x1c1bf6)=>{_0xc4ea2b[_0x2b3890([0x74,0x68,0x65,0x6e])](_0x42f779,_0x1c1bf6),window[_0x2b3890([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1c1bf6,0x47a351c6^_0xd3d03d);});}}_0x4434c7[_0x2b3890([0x6f,0x6e])](_0x2b3890([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3b70d6,_0x5ad399)=>{if(_0x5ad399[0x0]!=_0x38bed1)return _0x27819b(_0x2b3890([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5ad399[0x1]={..._0x5ad399[0x1],[_0x2b3890([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xfd2f58};},{[_0x2b3890([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b3890([0x68,0x69,0x67,0x68])}),_0x4434c7[_0x2b3890([0x6f,0x6e])](_0x2b3890([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x470e36=>{_0x3630b5(_0x470e36[_0x2b3890([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x326e0d=!0x0,_0x1a2203(_0x470e36[_0x2b3890([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2b3890([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2b3890([0x6c,0x6f,0x77])}),_0x16e988[_0x2b3890([0x74,0x68,0x65,0x6e])](()=>{_0x326e0d||_0x27819b(_0x2b3890([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4e2d46(){return _0x4434c7[_0x2b3890([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b3890([0x76,0x69,0x65,0x77])][_0x2b3890([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2b3890([0x61,0x75,0x74,0x6f]);}function _0x4c3eb6(){_0x4434c7[_0x2b3890([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2b3890([0x76,0x69,0x65,0x77])][_0x2b3890([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2b3890([0x61,0x75,0x74,0x6f]);}}function _0x540aab(_0x156871){const _0x4d9702=[new window[(_0x2b3890([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16b86e=>setTimeout(_0x16b86e,0x47abbbca^_0xd3d03d)),_0x16e988[_0x2b3890([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2b3890([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x98ab70=>{let _0x5e323f=0x0;_0x4434c7[_0x2b3890([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b3890([0x6f,0x6e])](_0x2b3890([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x12194a,_0x545378)=>{_0x545378[0x0][_0x2b3890([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5e323f++,_0x5e323f==(0x47a280ee^_0xd3d03d)&&(_0x98ab70(),_0x12194a[_0x2b3890([0x6f,0x66,0x66])]());});}))];return window[_0x2b3890([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2b3890([0x72,0x61,0x63,0x65])](_0x4d9702)[_0x2b3890([0x74,0x68,0x65,0x6e])](()=>_0x156871);}async function _0x13f68d(){await _0x16e988,_0x4434c7[_0x2b3890([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b3890([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x31cefc,_0x4434c7[_0x2b3890([0x6d,0x6f,0x64,0x65,0x6c])][_0x2b3890([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x31cefc,_0x4434c7[_0x2b3890([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2b3890([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x25caff(_0x1c182e){const _0x508b02=_0x4ff72b();_0x4434c7[_0x508b02]=_0x2b3890([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c182e,_0x1c182e!=_0x2b3890([0x56,0x61,0x6c,0x69,0x64])&&_0x13f68d();}function _0x4ff72b(){const _0x357d20=window[_0x2b3890([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2b3890([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2b3890([0x6e,0x6f,0x77])]())[_0x2b3890([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2b3890([0x2e]),'');let _0xbafbc5=_0x2b3890([0x75]);for(let _0x2d7c59=0x0;_0x2d7c59<_0x357d20[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2d7c59+=0x2){let _0x188ed4=window[_0x2b3890([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x357d20[_0x2b3890([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d7c59,_0x2d7c59+0x2));_0x188ed4>=_0x2932ff[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x188ed4-=_0x2932ff[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xbafbc5+=_0x2932ff[_0x188ed4];}return _0xbafbc5;}function _0x114610(){const _0xbfe398=_0x2e5e65[_0x2b3890([0x73,0x70,0x6c,0x69,0x74])](_0x2b3890([0x2e]));if(0x3!=_0xbfe398[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xfd2e00(_0xbfe398[0x1]);function _0xfd2e00(_0x4c0c5e){const _0x103d1f=_0x3943bc(_0x4c0c5e);return _0x103d1f&&_0x168949()?_0x103d1f:null;function _0x168949(){const _0x3e2032=_0x103d1f[_0x2b3890([0x6a,0x74,0x69])],_0x47fc03=window[_0x2b3890([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e2032[_0x2b3890([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e2032[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x320415={..._0x103d1f,[_0x2b3890([0x6a,0x74,0x69])]:_0x3e2032[_0x2b3890([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e2032[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x320415[_0x2b3890([0x76,0x63])],_0x1f13d0(_0x320415)==_0x47fc03;}}}async function _0x3a4cca(){let _0x266ccb=!0x0;try{const _0x6bbc15=_0x2e5e65[_0x2b3890([0x73,0x70,0x6c,0x69,0x74])](_0x2b3890([0x2e])),[_0x4e5f3d,_0xdc1326,_0x4b9982]=_0x6bbc15;return _0x35d7e0(_0x4e5f3d),await _0x7e2f4(_0x4e5f3d,_0xdc1326,_0x4b9982),_0x266ccb;}catch{return!0x1;}function _0x35d7e0(_0x3dd418){const _0x408f2d=_0x3943bc(_0x3dd418);_0x408f2d&&_0x408f2d[_0x2b3890([0x61,0x6c,0x67])]==_0x2b3890([0x45,0x53,0x32,0x35,0x36])||(_0x266ccb=!0x1);}async function _0x7e2f4(_0x54d838,_0x442cf5,_0x42f2b6){const _0xeb986=window[_0x2b3890([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2b3890([0x66,0x72,0x6f,0x6d])](_0x41f3a5(_0x42f2b6),_0x405eab=>_0x405eab[_0x2b3890([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x595350=new window[(_0x2b3890([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2b3890([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x54d838+_0x2b3890([0x2e])+_0x442cf5),_0x12ce9d=window[_0x2b3890([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2b3890([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12ce9d)return;const _0x4ae5e4=await _0x12ce9d[_0x2b3890([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2b3890([0x6a,0x77,0x6b]),_0x22ef26,{[_0x2b3890([0x6e,0x61,0x6d,0x65])]:_0x2b3890([0x45,0x43,0x44,0x53,0x41]),[_0x2b3890([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2b3890([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2b3890([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12ce9d[_0x2b3890([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2b3890([0x6e,0x61,0x6d,0x65])]:_0x2b3890([0x45,0x43,0x44,0x53,0x41]),[_0x2b3890([0x68,0x61,0x73,0x68])]:{[_0x2b3890([0x6e,0x61,0x6d,0x65])]:_0x2b3890([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ae5e4,_0xeb986,_0x595350)||(_0x266ccb=!0x1);}}function _0x3943bc(_0xf0eda9){return _0xf0eda9[_0x2b3890([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2b3890([0x65,0x79]))?JSON[_0x2b3890([0x70,0x61,0x72,0x73,0x65])](_0x41f3a5(_0xf0eda9)):null;}function _0x41f3a5(_0x5daa9f){return window[_0x2b3890([0x61,0x74,0x6f,0x62])](_0x5daa9f[_0x2b3890([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2b3890([0x2b]))[_0x2b3890([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2b3890([0x2f])));}function _0x1f13d0(_0x4c7b70){let _0x4d7887=0x1505;function _0x455558(_0x6ff4ce){for(let _0x27329c=0x0;_0x27329c<_0x6ff4ce[_0x2b3890([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27329c++){const _0x56d66a=_0x6ff4ce[_0x2b3890([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x27329c);_0x4d7887=(_0x4d7887<<0x5)+_0x4d7887+_0x56d66a,_0x4d7887&=_0x4d7887;}}function _0x59754a(_0xb38b29){Array[_0x2b3890([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xb38b29)?_0xb38b29[_0x2b3890([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59754a):_0xb38b29&&typeof _0xb38b29==_0x2b3890([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2b3890([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xb38b29)[_0x2b3890([0x73,0x6f,0x72,0x74])]()[_0x2b3890([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x508a5e,_0x6b7be8])=>{_0x455558(_0x508a5e),_0x59754a(_0x6b7be8);}):_0x455558(window[_0x2b3890([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xb38b29));}return _0x59754a(_0x4c7b70),_0x4d7887>>>0x0;}function _0x36ce07(_0x104564){return _0x104564[_0x2b3890([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2b3890([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2b3890([0x30]));}function _0x1f38b1(_0x52bb61){return _0x52bb61[_0x2b3890([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2b3890([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2b3890([0x6a,0x6f,0x69,0x6e])]('');}function _0x31cefc(){}function _0x2b3890(_0x3ee5e8){return _0x3ee5e8['map'](_0x2e2a3=>String['fromCharCode'](_0x2e2a3))['join']('');}_0x25caff(await _0x4cbd1b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4876cf){const {plugins:_0x1d2b06,editing:_0x54f6ab,model:_0x2af8ca}=this['editor'],_0x6279f4=_0x1d2b06['get'](f)['getFootnote'](_0x4876cf);return!!_0x6279f4&&(_0x2af8ca['change'](_0x584ce3=>{_0x584ce3['setSelection'](_0x584ce3['createPositionAt'](_0x6279f4['definition'],'end'));}),_0x54f6ab['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x121a60){const {plugins:_0x4a7551,editing:_0x470b4e,model:_0x131585}=this['editor'],_0x5f1218=_0x4a7551['get'](f)['getFootnote'](_0x121a60);return!!_0x5f1218&&(_0x131585['change'](_0x67a943=>{_0x67a943['setSelection'](_0x5f1218['reference'],'on');}),_0x470b4e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3bcaa5}=this['editor']['model'],_0x594ead=this['editor']['config']['get']('footnotes.multiBlock');_0x3bcaa5['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3bcaa5['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3bcaa5['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x594ead?_0x3bcaa5['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3bcaa5['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3bcaa5['addChildCheck'](_0x2193a1=>{for(const _0x1e065a of _0x2193a1)if('footnoteDefinition'===_0x1e065a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5618aa}=this,{conversion:_0x31ac3f,editing:_0x57347d}=_0x5618aa,{t:t}=_0x5618aa['locale'];_0x31ac3f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x40d3c9,{writer:_0xd4455a,consumable:_0x2e71be})=>{const _0x1bb90c=_0x40d3c9['getChild'](0x0);if(!_0x1bb90c||!_0x1bb90c['is']('element','a'))return null;const _0x503c36=_0x1bb90c['getAttribute']('href')||'';if(!_0x503c36['startsWith']('#'))return null;const _0x3864f1=_0x503c36['replace'](/^#/,'');if(!_0x3864f1)return null;_0x2e71be['consume'](_0x1bb90c,{'name':!0x0,'attributes':['href']});for(const {item:_0x2d31e2}of _0x57347d['view']['createRangeIn'](_0x1bb90c))_0x2d31e2['is']('$textProxy')?_0x2e71be['consume'](_0x2d31e2['textNode'],{'name':!0x0}):_0x2d31e2['is']('element')&&_0x2e71be['consume'](_0x2d31e2,{'name':!0x0});return _0xd4455a['createElement']('footnoteRef',{'footnoteId':_0x3864f1});}}),_0x31ac3f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x24bd0f,{writer:_0x331b8b})=>b(_0x24bd0f,_0x331b8b)}),_0x31ac3f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3e284d,{writer:_0x20d35a})=>{const _0x34be54=_0x3e284d['getAttribute']('footnoteCounter');return _0x2b46a3(b(_0x3e284d,_0x20d35a),_0x20d35a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x34be54)});}});}['_defineDefinitionsConverters'](){const {editor:_0x225f96}=this,{t:t}=_0x225f96['locale'],{conversion:_0x4412c8}=_0x225f96;_0x4412c8['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4412c8['for']('upcast')['add'](_0x1301dc=>{_0x1301dc['on']('element:ol',(_0x2e4364,_0x457966,_0x133a68)=>{const _0x17b274=_0x457966['viewItem'];if(!_0x17b274['hasClass']('footnotes-list')||!_0x457966['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x133a68['consumable']['consume'](_0x17b274,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5d35be,modelCursor:_0x215d38}=_0x133a68['convertChildren'](_0x457966['viewItem'],_0x457966['modelCursor']);_0x457966['modelRange']=_0x5d35be,_0x457966['modelCursor']=_0x215d38;}),_0x1301dc['on']('element:hr',(_0x31014a,_0x3cc863,_0x27a505)=>{const _0x2ecc03=_0x3cc863['viewItem'];_0x2ecc03['hasClass']('footnotes-divider')&&_0x3cc863['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x27a505['consumable']['consume'](_0x2ecc03,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4412c8['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5b045a,{writer:_0x9b6fad})=>D(_0x9b6fad)}),_0x4412c8['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x47b802,{writer:_0x4d75f2})=>{const _0x417342=D(_0x4d75f2,{'data-footnotes-list-label':t('Footnotes')}),_0xe80e89=_0x2b46a3(_0x417342,_0x4d75f2,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4d75f2['setCustomProperty']('footnotesDefinitions',!0x0,_0xe80e89),_0xe80e89;}});}['_defineDefinitionConverters'](){const {editor:_0x1a0de4}=this,{conversion:_0x3833ab,locale:_0x2f93c9}=_0x1a0de4,_0x24ba8d=_0x1a0de4['config']['get']('footnotes.multiBlock');_0x3833ab['for']('upcast')['add'](_0x1d145b=>{_0x1d145b['on']('element:li',(_0x31fc3a,_0x7fe81e,_0x32ed6e)=>{const _0x13e87b=_0x7fe81e['viewItem'];if(!_0x13e87b['hasClass']('footnote-definition')||!_0x13e87b['getAttribute']('id'))return;const _0x4534cc=_0x13e87b['parent'];if(!_0x4534cc['is']('element','ol')||!_0x4534cc['hasClass']('footnotes-list'))return;if(!_0x32ed6e['consumable']['test'](_0x13e87b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3cfb1a=_0x32ed6e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x13e87b['getAttribute']('id')});if(!_0x32ed6e['safeInsert'](_0x3cfb1a,_0x7fe81e['modelCursor']))return;_0x32ed6e['consumable']['consume'](_0x13e87b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x13e4dc=Array['from'](_0x13e87b['getChildren']())['find'](_0x2b3e82=>_0x2b3e82['is']('element')&&_0x2b3e82['hasClass']('footnote-content'));for(const _0x4a2d45 of _0x13e87b['getChildren']())_0x4a2d45['is']('element')&&(_0x32ed6e['consumable']['consume'](_0x4a2d45,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x32ed6e['consumable']['consume'](_0x4a2d45,{'name':!0x0,'classes':'footnote-content'}));if(_0x13e4dc){if(_0x24ba8d)_0x32ed6e['convertChildren'](_0x13e4dc,_0x3cfb1a);else{const _0x428332=_0x32ed6e['writer']['createElement']('footnoteInlineContent');_0x32ed6e['writer']['insert'](_0x428332,_0x3cfb1a),_0x32ed6e['convertChildren'](_0x13e4dc,_0x428332);}}_0x32ed6e['updateConversionResult'](_0x3cfb1a,_0x7fe81e);});}),_0x3833ab['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5805af,{writer:_0x5c6c6f})=>y(_0x5805af,_0x5c6c6f,_0x2f93c9,{'dataPipeline':!0x0})}),_0x3833ab['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x52648f,{writer:_0x58e6bb})=>y(_0x52648f,_0x58e6bb,_0x2f93c9)});}['_defineBogusParagraphConverters'](){const {editor:_0x229a4e}=this,{conversion:_0x56161d}=_0x229a4e;_0x229a4e['config']['get']('footnotes.multiBlock')?(_0x56161d['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x56161d['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x229a4e['model']['document'],'change:data',()=>{!function(_0x112c14,_0x266c00){const _0x5df37f=_0x112c14['document']['differ'],_0x256230=new Set();for(const _0x5a5110 of _0x5df37f['getChanges']()){const _0x20a5b6='attribute'==_0x5a5110['type']?_0x5a5110['range']['start']['parent']:_0x5a5110['position']['parent'];_0x20a5b6['is']('element','footnoteDefinition')&&_0x256230['add'](_0x20a5b6);}for(const _0x5dbac8 of _0x256230['values']()){const _0x3eba7a=Array['from'](_0x5dbac8['getChildren']())['filter'](_0x1ec31e=>v(_0x1ec31e,_0x266c00['mapper']));for(const _0x4e2828 of _0x3eba7a)_0x266c00['reconvertItem'](_0x4e2828);}}(_0x229a4e['model'],_0x229a4e['editing']);})):(_0x56161d['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x56161d['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x90fb7c,{writer:_0x2b69fe})=>{const _0x4e1d5c=_0x2b69fe['createContainerElement']('span');return _0x2b69fe['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4e1d5c),_0x4e1d5c;}}));}['_defineKeyboardHandlers'](){const {editor:_0x29eb60}=this,{editing:_0x543914,t:t}=_0x29eb60,_0x2457fb=_0x29eb60['model']['document']['selection'];_0x29eb60['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x29eb60['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x543914['view']['document'],'enter',(_0x4834c7,_0x287bd9)=>{const _0x68870b=function(_0x19a0d6){const _0x192ad6=_0x19a0d6['getSelectedElement']();if(_0x192ad6?.['is']('element','footnoteRef'))return _0x192ad6;return null;}(_0x2457fb);if(_0x68870b){const _0x3e0abc=_0x68870b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3e0abc),_0x287bd9['preventDefault'](),_0x4834c7['stop']();}},{'context':_0x4e231d});}['_defineClickHandlers'](){const {editor:_0x4e5dba}=this,{editing:_0xced964}=_0x4e5dba;_0x4e5dba['editing']['view']['addObserver'](_0x410bca),_0x4e5dba['editing']['view']['addObserver'](_0x182ea6);let _0x1f5b05=!0x1;this['listenTo'](_0xced964['view']['document'],'pointerdown',(_0xff54a4,_0x508462)=>{const {target:_0x9aa080}=_0x508462,_0x53c098=_0xced964['view']['document']['selection'];_0x1f5b05=!!(_0x9aa080?.['is']('element','a')&&_0x9aa080['parent']?.['is']('element','sup')&&_0x9aa080['parent']['hasClass']('footnote'))&&_0x53c098['getSelectedElement']()===_0x9aa080['parent'];},{'priority':'high'}),this['listenTo'](_0xced964['view']['document'],'click',(_0x1dc34b,_0x3b2b3c)=>{const {target:_0x23e97f}=_0x3b2b3c;if(!_0x23e97f?.['is']('element','a'))return;if(_0x23e97f['parent']?.['is']('element','sup')&&_0x23e97f['parent']['hasClass']('footnote')&&!_0x1f5b05)return void _0x3b2b3c['preventDefault']();let _0x194778=_0x23e97f['getAttribute']('href');if(!_0x194778?.['startsWith']('#'))return;_0x194778=_0x194778['slice'](0x1);let _0x36d01d=!0x1;(_0x194778['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x194778['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x194778))&&(_0x36d01d=!0x0),_0x36d01d&&(_0x3b2b3c['preventDefault'](),_0x1dc34b['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xd57a7c}={}){return(_0x47327f,{writer:_0x9f6ecc})=>{if(!g(_0x47327f))return null;if(!_0xd57a7c)return _0x9f6ecc['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x135555=_0x9f6ecc['createContainerElement']('p');return _0x9f6ecc['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x135555),_0x135555;};}function g(_0x1c859c){const {parent:_0xfd3fc5}=_0x1c859c;if(!_0xfd3fc5?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0xfd3fc5['childCount'])return!0x1;for(const _0x4e6540 of _0x1c859c['getAttributeKeys']())if(!_0x4e6540['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4e6540)return!0x1;return!0x0;}function v(_0x44d031,_0x5deb28){if(!_0x44d031['is']('element','paragraph'))return!0x1;const _0x33ede5=_0x5deb28['toViewElement'](_0x44d031);return!!_0x33ede5&&g(_0x44d031)!==_0x33ede5['is']('element','span');}function Q(_0x2d1235){return _0x4e231d(_0x2d1235)&&_0x2d1235['is']('containerElement')&&!!_0x2d1235['getCustomProperty']('footnotesDefinitions');}function D(_0x4c20df,_0x1ae9ff={}){const _0x491229=_0x4c20df['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x64893f=_0x4c20df['createContainerElement']('ol',{'class':'footnotes-list'},_0x4c20df['createSlot']());return _0x4c20df['createContainerElement']('div',{'class':'footnotes',..._0x1ae9ff},[_0x491229,_0x64893f]);}function b(_0x45b480,_0x1ee86b){const _0x3e89a5=_0x45b480['getAttribute']('footnoteId'),_0x15645d=_0x45b480['getAttribute']('footnoteCounter'),_0x4f18a3=_0x1ee86b['createUIElement']('a',{'href':'#'+_0x3e89a5},function(_0x68bbfa){const _0x768379=this['toDomElement'](_0x68bbfa);return _0x768379['textContent']=_0x15645d,_0x768379;}),_0x4f876a=_0x1ee86b['createContainerElement']('sup',{'id':'ref-'+_0x3e89a5,'class':'footnote'},[_0x4f18a3]);return _0x4f876a['getFillerOffset']=()=>null,_0x4f876a;}function y(_0x5a4e5f,_0x1f5e1b,_0x1a3e38,{dataPipeline:_0x9d615f}={}){const {t:t}=_0x1a3e38,_0x5943da=_0x5a4e5f['getAttribute']('footnoteId'),_0x4c1b68=_0x1f5e1b['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5943da},function(_0x3cbaf3){const _0x2ddc8a=this['toDomElement'](_0x3cbaf3);return _0x2ddc8a['innerText']='^',_0x2ddc8a;}),_0x19c41d=_0x9d615f?_0x1f5e1b['createContainerElement']('div',{'class':'footnote-content'}):_0xe026d4(_0x1f5e1b['createEditableElement']('div',{'class':'footnote-content'}),_0x1f5e1b,{'label':t('Footnote\x20content.')});return _0x1f5e1b['insert'](_0x1f5e1b['createPositionAt'](_0x19c41d,0x0),_0x1f5e1b['createSlot']()),_0x1f5e1b['createContainerElement']('li',{'class':'footnote-definition','id':_0x5943da},[_0x4c1b68,_0x19c41d]);}class e extends _0x2cb8f8{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xfcd335];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x52223f}=this,{plugins:_0x546b64,model:_0x4920eb}=_0x52223f,_0x1386eb=_0x546b64['get'](_0xfcd335),_0x18f112=_0x546b64['get'](f);this['listenTo'](_0x1386eb,'outputTransformation',(_0x4000ee,_0x3a4480)=>{const _0x4eeff8=l(_0x4920eb['createRangeIn'](_0x3a4480['content']));if(!_0x4eeff8['length'])return;const _0x4d5104=_0x18f112['getFootnotes'](),_0x5c978f=_0x4eeff8['reduce']((_0x3c6454,_0x1edbeb)=>{const _0x392703=_0x4d5104['find'](_0x218453=>_0x218453['id']===_0x1edbeb);if(_0x392703){const _0x1f6039=_0x52223f['data']['toView'](_0x392703['definition'],{'isClipboardPipeline':!0x0}),_0x4751b6=_0x52223f['data']['htmlProcessor']['toData'](_0x1f6039);_0x3c6454[_0x392703['id']]=_0x4751b6;}return _0x3c6454;},Object['create'](null));_0x3a4480['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x5c978f));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1573c8}=this,{model:_0x2cf6cb,plugins:_0x5b3511}=_0x1573c8,{view:_0x44eb70}=_0x1573c8['editing'],_0x58d17c=_0x5b3511['get'](_0xfcd335),_0x4d2b0d=_0x5b3511['get'](f),_0x2f3903=_0x1573c8['config']['get']('footnotes.multiBlock');let _0x51f381=null;this['listenTo'](_0x44eb70['document'],'clipboardInput',(_0x38e5b0,_0x6a16ca)=>{const _0x51982f=_0x6a16ca['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x51f381=_0x51982f?JSON['parse'](_0x51982f):null;}),this['listenTo'](_0x58d17c,'contentInsertion',(_0x3af7a8,_0x317d42)=>{const _0x39f583=_0x317d42['sourceEditorId']===this['editor']['id'];_0x39f583&&'drop'===_0x317d42['method']||_0x2cf6cb['change'](_0x151317=>{let _0x1c8233=_0x4d2b0d['getFootnotesDefinitionsObjectElement']();const _0x4c1f3d=!!_0x1c8233&&Array['from'](_0x2cf6cb['document']['selection']['getSelectedBlocks']())['includes'](_0x1c8233);if(!_0x51f381&&function(_0x518945){for(const {item:_0x1d9212}of _0x518945)if(_0x1d9212['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2cf6cb['createRangeIn'](_0x317d42['content']))&&(_0x51f381=function(_0x35ea84,_0xb15235){const _0x497340=c(_0x35ea84,_0xb15235);if(!_0x497340)return null;const _0x451ec9=Object['create'](null);for(const _0x54a7e4 of _0x497340['getChildren']())_0x54a7e4['is']('element','footnoteDefinition')&&_0x54a7e4['hasAttribute']('footnoteId')&&(_0x451ec9[_0x54a7e4['getAttribute']('footnoteId')]=_0x35ea84['cloneElement'](_0x54a7e4,!0x0));return Object['keys'](_0x451ec9)['length']?_0x451ec9:null;}(_0x151317,_0x317d42['content'])),(_0x1c8233&&!_0x4c1f3d||!_0x1c8233&&!_0x51f381)&&function(_0x1d3061,_0x1a9552){const _0x16f50e=[];for(const {item:_0x1d0851}of _0x1d3061['createRangeIn'](_0x1a9552))_0x1d0851['is']('element','footnotesDefinitions')&&_0x16f50e['push'](_0x1d0851);for(const _0x278115 of _0x16f50e)_0x1d3061['remove'](_0x278115);}(_0x151317,_0x317d42['content']),!_0x51f381)return;const {selection:_0x5abca8}=_0x2cf6cb['document'],_0x391fae=_0x5abca8['getFirstRange']()['root'];_0x1c8233&&!_0x4c1f3d||(_0x1c8233=c(_0x151317,_0x317d42['content']),_0x1c8233||=_0x4d2b0d['_insertEmptyFootnotesDefinitionsContainer'](_0x151317,_0x391fae));const _0x9dfe2d=Array['from'](_0x5abca8['getRanges']())['flatMap'](l),_0x1d2a84=function(_0x2967ab,_0x1277ca,_0x577810){const _0x30e8bc=Object['create'](null);for(const {item:_0x2b7e65}of _0x2967ab['createRangeIn'](_0x1277ca))if(_0x2b7e65['is']('element','footnoteRef')){const _0x13742f=_0x2b7e65['getAttribute']('footnoteId');if(!_0x577810(_0x13742f))continue;_0x30e8bc[_0x13742f]||(_0x30e8bc[_0x13742f]=_0x8f38f()),_0x2967ab['setAttribute']('footnoteId',_0x30e8bc[_0x13742f],_0x2b7e65);}return _0x30e8bc;}(_0x151317,_0x317d42['content'],_0x213d40=>{if(!_0x39f583)return!0x0;return!!_0x4d2b0d['getFootnote'](_0x213d40)&&!_0x9dfe2d['includes'](_0x213d40);});for(const [_0x1d3a5d,_0x118508]of Object['entries'](_0x51f381)){const _0x45991a=_0x1d2a84[_0x1d3a5d]||_0x1d3a5d;let _0x525e55;if('string'!=typeof _0x118508)_0x525e55=_0x118508,_0x45991a!==_0x1d3a5d&&_0x151317['setAttribute']('footnoteId',_0x45991a,_0x525e55);else{_0x525e55=_0x151317['createElement']('footnoteDefinition',{'footnoteId':_0x45991a});const _0x4590cc=_0x1573c8['data']['htmlProcessor']['toView'](_0x118508);let _0x480faf;if(_0x2f3903)_0x480faf=_0x1573c8['data']['toModel'](_0x4590cc,_0x525e55);else{_0x480faf=_0x151317['createElement']('footnoteInlineContent');const _0x569948=_0x1573c8['data']['toModel'](_0x4590cc,_0x480faf);_0x151317['insert'](_0x569948,_0x480faf);}_0x151317['append'](_0x480faf,_0x525e55);}_0x151317['insert'](_0x525e55,_0x1c8233,'end');}_0x51f381=null;});});}}function c(_0x44188f,_0xbfbfe2){for(const {item:_0x1ded80}of _0x44188f['createRangeIn'](_0xbfbfe2))if(_0x1ded80['is']('element','footnotesDefinitions'))return _0x1ded80;return null;}function l(_0x39fbc3){const _0x3ab834=new Set();for(const {item:_0x3aa65b}of _0x39fbc3)_0x3aa65b['is']('element','footnoteRef')&&_0x3ab834['add'](_0x3aa65b['getAttribute']('footnoteId'));return Array['from'](_0x3ab834);}class i extends _0x2cb8f8{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x387ae8}=this,{componentFactory:_0x53b84e}=_0x387ae8['ui'];_0x53b84e['add']('insertFootnote',E(_0x387ae8,_0x4b4e2f)),_0x53b84e['add']('menuBar:insertFootnote',E(_0x387ae8,_0x2fb2a7)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x513df1=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xd3d2aa;for(const _0x2776da in _0x513df1){const _0x5a0bc9=_0x2776da,_0x5d83b4=_0x513df1[_0x5a0bc9];if('footnotesLicenseKeyValid'==_0x5d83b4||'footnotesLicenseKeyInvalid'==_0x5d83b4||'footnotesLicenseKeyExpired'==_0x5d83b4||'footnotesLicenseKeyDomainLimit'==_0x5d83b4||'footnotesLicenseKeyNotAllowed'==_0x5d83b4||'footnotesLicenseKeyEvaluationLimit'==_0x5d83b4||'footnotesLicenseKeyUsageLimit'==_0x5d83b4){delete _0x513df1[_0x5a0bc9],_0xd3d2aa=_0x5d83b4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xd3d2aa&&_0x513df1['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xd3d2aa&&_0x513df1['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xd3d2aa&&_0x513df1['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xd3d2aa&&_0x513df1['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xd3d2aa&&_0x513df1['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xd3d2aa&&_0x513df1['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x1fc9e0,_0x3d66ef){const _0x117500=_0x1fc9e0['commands']['get']('insertFootnote');return _0x2a9a39=>{const {t:t}=_0x2a9a39,_0x5889d9=new _0x3d66ef(_0x2a9a39),_0x59e45e=_0x5889d9 instanceof _0x2fb2a7;return _0x5889d9['bind']('isEnabled')['to'](_0x117500,'isEnabled'),_0x5889d9['set']({'label':t(_0x59e45e?'Footnote':'Insert\x20footnote'),'icon':_0xb948b1,'tooltip':!0x0}),_0x5889d9['on']('execute',()=>{_0x117500['execute'](),_0x1fc9e0['editing']['view']['focus']();}),_0x5889d9;};}class Footnotes extends _0x2cb8f8{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 _0x5cbc87{['refresh'](){const {editor:_0x13a605}=this,_0x42a050=_0x13a605['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x42a050,this['value']=_0x42a050?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x174313}){const {editor:_0x11d0bc}=this,_0x26b344=_0x11d0bc['plugins']['get'](f),_0x37b91c=_0x26b344['getFootnotesDefinitionsObjectElement']();_0x37b91c&&W['includes'](_0x174313)&&_0x11d0bc['model']['change'](_0x537d4f=>{_0x537d4f['setAttribute']('footnotesListStyle',_0x174313,_0x37b91c),_0x26b344['_updateFootnotesCounters'](_0x537d4f);});}}class C extends _0x5cbc87{['refresh'](){const {editor:_0x396a37}=this,_0x21aac2=_0x396a37['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x21aac2,this['value']=_0x21aac2?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x35e92e}){const {editor:_0x287bce}=this,_0xab2e9a=_0x287bce['plugins']['get'](f),_0x159117=_0xab2e9a['getFootnotesDefinitionsObjectElement']();_0x159117&&Number['isInteger'](_0x35e92e)&&_0x287bce['model']['change'](_0x477a3c=>{_0x477a3c['setAttribute']('footnotesListStart',_0x35e92e,_0x159117),_0xab2e9a['_updateFootnotesCounters'](_0x477a3c);});}}class P extends _0x2cb8f8{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5ca622}=this;_0x5ca622['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5ca622['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5ca622['commands']['add']('footnotesStyle',new S(_0x5ca622)),_0x5ca622['commands']['add']('footnotesStart',new C(_0x5ca622)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x560b51}=this,{schema:_0x528f88}=_0x560b51['model'];_0x528f88['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5428e0}=this,{conversion:_0xc659c0,model:_0x459f3a}=_0x5428e0,{schema:_0x5b703f}=_0x459f3a;_0xc659c0['for']('upcast')['add'](_0x2b4020=>{_0x2b4020['on']('element:ol',(_0xdf46cc,_0x4d4a63,_0x42fec6)=>{const _0x2983b5=_0x4d4a63['viewItem'],_0x2df638=_0x4d4a63['modelCursor']?.['parent'];_0x2983b5['hasClass']('footnotes-list')&&_0x2df638?.['is']('element','footnotesDefinitions')&&(function(_0xc0d839,_0x4b4c44,_0x4b4a4a,_0x520589){if(!_0x520589['checkAttribute'](_0x4b4c44,'footnotesListStart'))return;let _0x268244=0x1;const _0x649629=_0x4b4a4a['consumable']['consume'](_0xc0d839,{'attributes':'start'});if(_0x649629){const _0x14b659=Number['parseInt'](_0xc0d839['getAttribute']('start'),0xa);Number['isNaN'](_0x14b659)||(_0x268244=_0x14b659);}!_0x649629&&_0x4b4c44['hasAttribute']('footnotesListStart')||_0x4b4a4a['writer']['setAttribute']('footnotesListStart',_0x268244,_0x4b4c44);}(_0x2983b5,_0x2df638,_0x42fec6,_0x5b703f),function(_0x217b7b,_0x154eeb,_0x1b49c4,_0x1a4404){if(!_0x1a4404['checkAttribute'](_0x154eeb,'footnotesListStyle'))return;let _0x2b2deb='decimal',_0x27b885=!0x1;if(_0x1b49c4['consumable']['consume'](_0x217b7b,{'attributes':'type'})){const _0x43e06f={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x217b7b['getAttribute']('type')];_0x43e06f&&(_0x2b2deb=_0x43e06f),_0x27b885=!0x0;}_0x1b49c4['consumable']['consume'](_0x217b7b,{'styles':'list-style-type'})&&(_0x2b2deb=function(_0x3f2d9b){switch(_0x3f2d9b){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x3f2d9b;}}(_0x217b7b['getStyle']('list-style-type')),_0x27b885=!0x0),!_0x27b885&&_0x154eeb['hasAttribute']('footnotesListStyle')||_0x1b49c4['writer']['setAttribute']('footnotesListStyle',_0x2b2deb,_0x154eeb);}(_0x2983b5,_0x2df638,_0x42fec6,_0x5b703f));});}),_0xc659c0['for']('downcast')['add'](_0x3093db=>{_0x3093db['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xe834b7,_0x41ba0e,_0x4e0e73)=>{if(!_0x4e0e73['consumable']['consume'](_0x41ba0e['item'],_0xe834b7['name']))return;const _0xf7af38=M(_0x41ba0e['item'],_0x4e0e73['mapper']),{attributeNewValue:_0x3ffb7f}=_0x41ba0e;null==_0x3ffb7f||0x1===_0x3ffb7f?_0x4e0e73['writer']['removeAttribute']('start',_0xf7af38):_0x4e0e73['writer']['setAttribute']('start',String(_0x3ffb7f),_0xf7af38);}),_0x3093db['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x319fb5,_0x3e18da,_0x27c3d7)=>{if(!_0x27c3d7['consumable']['consume'](_0x3e18da['item'],_0x319fb5['name']))return;const _0xb3bf9a=M(_0x3e18da['item'],_0x27c3d7['mapper']),{attributeNewValue:_0x4692d1}=_0x3e18da;_0x4692d1&&'decimal'!==_0x4692d1?_0x27c3d7['writer']['setStyle']('list-style-type',_0x4692d1,_0xb3bf9a):_0x27c3d7['writer']['removeStyle']('list-style-type',_0xb3bf9a);});});}['_definePostfixer'](){const {editor:_0x36c2d8}=this,{model:_0x690d84}=_0x36c2d8,_0x59d63c=_0x36c2d8['plugins']['get'](f),_0x295d9e=this['_getDefaultListStyle'](),_0x1950ab=this['_getDefaultStartIndex']();_0x690d84['document']['registerPostFixer'](_0x58405f=>{const _0x1e9925=_0x690d84['document']['differ']['getChanges']();let _0x38d27b=!0x1;for(const _0x245870 of _0x1e9925){if('insert'!==_0x245870['type']||'$text'===_0x245870['name'])continue;const _0x2c899a=_0x690d84['createRangeOn'](_0x245870['position']['nodeAfter']);for(const _0x29da9d of _0x2c899a['getItems']())_0x29da9d['is']('element','footnotesDefinitions')&&(!_0x29da9d['hasAttribute']('footnotesListStart')&&_0x690d84['schema']['checkAttribute'](_0x29da9d,'footnotesListStart')&&(_0x58405f['setAttribute']('footnotesListStart',_0x1950ab,_0x29da9d),_0x38d27b=!0x0),!_0x29da9d['hasAttribute']('footnotesListStyle')&&_0x690d84['schema']['checkAttribute'](_0x29da9d,'footnotesListStyle')&&(_0x58405f['setAttribute']('footnotesListStyle',_0x295d9e,_0x29da9d),_0x38d27b=!0x0));}return _0x38d27b&&_0x59d63c['_updateFootnotesCounters'](_0x58405f),_0x38d27b;});}['_defineFormatter'](){const {editor:_0x38c5b2}=this;_0x38c5b2['plugins']['get'](f)['setFootnoteFormatter'](_0x5a55ce=>this['_formatFootnoteListValue'](_0x5a55ce));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x383411,value:_0x2f0d30,digits:_0x2ea884}){const _0x4282d9=_0x383411['getAttribute']('footnotesListStyle'),_0x136296=_0x383411['getAttribute']('footnotesListStart'),_0x3372fc=Math['floor'](_0x2f0d30)+(_0x136296??0x1)-0x1;switch(_0x4282d9){case'decimal-leading-zero':return function(_0x4623a2,_0x34258d){return String(_0x4623a2)['padStart'](_0x34258d,'0');}(_0x3372fc,Math['max'](0x2,_0x2ea884));case'lower-alpha':case'lower-latin':return N(_0x3372fc,!0x1);case'upper-alpha':case'upper-latin':return N(_0x3372fc,!0x0);case'lower-roman':return X(_0x3372fc,!0x1);case'upper-roman':return X(_0x3372fc,!0x0);default:return String(_0x3372fc);}}}function M(_0x2fbc70,_0x190538){const _0x255a52=_0x190538['toViewElement'](_0x2fbc70);return Array['from'](_0x255a52['getChildren']())['find'](_0x27760f=>_0x27760f['is']('element','ol')&&_0x27760f['hasClass']('footnotes-list'));}function N(_0x16acae,_0x5ed515){let _0x29b24a='',_0x4a50ba=_0x16acae;for(;_0x4a50ba>0x0;){const _0x544902=(_0x4a50ba-0x1)%0x1a;_0x29b24a=String['fromCharCode'](0x61+_0x544902)+_0x29b24a,_0x4a50ba=Math['floor']((_0x4a50ba-0x1)/0x1a);}return _0x5ed515?_0x29b24a['toUpperCase']():_0x29b24a;}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(_0x4c32a6,_0x1814f0){let _0x5bf7f3='',_0x1f8be9=_0x4c32a6;for(const {value:_0x5e817b,numeral:_0x328c49}of V)for(;_0x1f8be9>=_0x5e817b;)_0x5bf7f3+=_0x328c49,_0x1f8be9-=_0x5e817b;return _0x1814f0?_0x5bf7f3:_0x5bf7f3['toLowerCase']();}class J extends _0x4e4bbf{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x589861();['focusCycler'];constructor(_0x491c4b,{styleButtonViews:_0x10c3a2,styleGridAriaLabel:_0x23d3df}){super(_0x491c4b),(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'](_0x10c3a2,_0x23d3df),[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 _0x45750d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x45750d['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 _0x2a58f6=_0x36a1d5=>_0x36a1d5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2a58f6),this['keystrokes']['set']('arrowleft',_0x2a58f6),this['keystrokes']['set']('arrowup',_0x2a58f6),this['keystrokes']['set']('arrowdown',_0x2a58f6);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x654d0e,_0x27c6b1){const _0x2cd2d5=new _0x4e4bbf(this['locale']);return _0x2cd2d5['children']=_0x2cd2d5['createCollection'](),_0x2cd2d5['children']['addMany'](_0x654d0e),_0x2cd2d5['setTemplate']({'tag':'div','attributes':{'aria-label':_0x27c6b1,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2cd2d5['children']}),_0x2cd2d5['children']['delegate']('execute')['to'](this),_0x2cd2d5['focus']=function(){for(const _0x237ce0 of this['children'])if(_0x237ce0 instanceof _0x4b4e2f&&_0x237ce0['isOn'])return void _0x237ce0['focus']();this['children']['first']['focus']();},_0x2cd2d5['focusTracker']=new rt(),_0x2cd2d5['keystrokes']=new nt(),_0x2cd2d5['render'](),_0x2cd2d5['keystrokes']['listenTo'](_0x2cd2d5['element']),this['children']['add'](_0x2cd2d5),_0x2cd2d5;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1110ee=this['_createStartIndexPropertyView'](),_0x24ff98=[_0x1110ee],_0x817bac=new it(this['locale'],_0x24ff98);return _0x817bac['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x817bac['buttonView']['bind']('isEnabled')['toMany'](_0x24ff98,'isEnabled',(..._0x5bffff)=>_0x5bffff['some'](_0x322b67=>_0x322b67)),_0x817bac['buttonView']['on']('change:isEnabled',(_0x4d67f6,_0x221e8d,_0x16c8c9)=>{_0x16c8c9||(_0x817bac['isCollapsed']=!0x0);}),this['children']['add'](_0x817bac),[_0x1110ee,_0x817bac];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2ec11c=new et(this['locale'],ot);return _0x2ec11c['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2ec11c['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2ec11c['fieldView']['on']('input',()=>{const _0x1dbf2e=_0x2ec11c['fieldView']['element'],_0x4fb1f6=_0x1dbf2e['valueAsNumber'];Number['isNaN'](_0x4fb1f6)?_0x2ec11c['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1dbf2e['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4fb1f6}):_0x2ec11c['errorText']=t(_0x4fb1f6<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2ec11c;}}class j extends _0x2cb8f8{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x372daf,_0x1f0d24];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x42f4b9}=this,{componentFactory:_0x1fc48c}=_0x42f4b9['ui'];_0x42f4b9['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1fc48c['add']('footnotesStyle',function(_0x301cb3){return _0x1177a8=>{const {t:t}=_0x1177a8,_0xd5f4cb=_0x301cb3['commands']['get']('footnotesStyle'),_0xabc318=_0x1e5899(_0x1177a8),{buttonView:_0x4b7692}=_0xabc318;return _0xabc318['class']='ck-footnotes-styles-dropdown',_0xabc318['bind']('isEnabled')['to'](_0xd5f4cb,'isEnabled'),_0x4b7692['set']({'label':t('Footnotes\x20style'),'icon':_0xb948b1,'tooltip':!0x0}),_0xabc318['once']('change:isOpen',()=>{const _0x13a5fa=function({editor:_0x4acdc1,dropdownView:_0x3c5e2d}){const {t:t}=_0x4acdc1['locale'],_0x785e71=t('Footnotes\x20definitions\x20styles'),_0x25dbf4=function(_0x4637ba){const t=_0x4637ba['locale']['t'],_0x4cbf4e=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1bb748},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4a4bf5},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x59a039},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x102590},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x1aad39},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x10cf7a}];return _0x4cbf4e['map'](function(_0x570b3c){const _0x39a002=_0x570b3c['locale'];return({label:_0x23a136,icon:_0x4f5dd8,tooltip:_0xd84819,style:_0x44a292})=>{const _0x1402d9=_0x570b3c['commands']['get']('footnotesStyle'),_0x480456=new _0x4b4e2f(_0x39a002);return _0x480456['set']({'label':_0x23a136,'icon':_0x4f5dd8,'tooltip':_0xd84819}),_0x480456['bind']('isOn')['to'](_0x1402d9,'value',_0x1301d0=>_0x1301d0===_0x44a292),_0x480456['bind']('isEnabled')['to'](_0x1402d9,'isEnabled'),_0x480456['on']('execute',()=>{_0x570b3c['execute']('footnotesStyle',{'value':_0x44a292}),_0x570b3c['editing']['view']['focus']();}),_0x480456;};}(_0x4637ba));}(_0x4acdc1),_0x11f28c=new J(_0x4acdc1['locale'],{'styleGridAriaLabel':_0x785e71,'styleButtonViews':_0x25dbf4}),_0x35e140=_0x4acdc1['commands']['get']('footnotesStart');return _0x11f28c['startIndexFieldView']['bind']('isEnabled')['to'](_0x35e140),_0x11f28c['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x35e140),_0x11f28c['on']('footnotesListStart',(_0x4f43e2,_0x5debfd)=>{_0x4acdc1['execute']('footnotesStart',{'value':_0x5debfd['startIndex']});}),_0x11f28c['delegate']('execute')['to'](_0x3c5e2d),_0x11f28c;}({'editor':_0x301cb3,'dropdownView':_0xabc318});_0xabc318['panelView']['children']['add'](_0x13a5fa);}),_0xabc318;};}(_0x42f4b9));}['afterInit'](){const {editor:_0x316e6e}=this,{t:t}=_0x316e6e['locale'],_0x2a9061=_0x316e6e['plugins']['get'](_0x1f0d24),{defaultPositions:_0x12438b}=_0x21a899;_0x2a9061['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x316e6e['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3e83e3=>{let _0xc30abb=_0x3e83e3['getFirstPosition']()?.['parent'];return _0xc30abb?.['is']('$text')&&(_0xc30abb=_0xc30abb['parent']),_0xc30abb?.['is']('element')?_0xc30abb['findAncestor'](Q):null;},'positions':[_0x12438b['southArrowNorth'],_0x12438b['southArrowNorthMiddleWest'],_0x12438b['southArrowNorthMiddleEast'],_0x12438b['southArrowNorthWest'],_0x12438b['southArrowNorthEast'],_0x12438b['northArrowSouth'],_0x12438b['northArrowSouthMiddleWest'],_0x12438b['northArrowSouthMiddleEast'],_0x12438b['northArrowSouthWest'],_0x12438b['northArrowSouthEast'],_0x12438b['viewportStickyNorth']]});}}class FootnotesProperties extends _0x2cb8f8{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Footnotes,e as FootnotesClipboard,r as FootnotesEditing,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 _0x4fc131,Command as _0x49231e}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x6dea39,isWidget as _0x51fd9c,toWidgetEditable as _0xad0cde,WidgetToolbarRepository as _0x320c08}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x243e9b,logWarning as _0x3c5e13,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x21a1b6,ClickObserver as _0x4110ad}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x3a748a}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5a2cd9,ButtonView as _0x8e371f,View as _0x4e6711,ViewCollection as _0x2a57cc,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x53c815,BalloonPanelView as _0x4fdc30,createDropdown as _0x1ee889}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x37a0a9,IconListStyleDecimal as _0x4af244,IconListStyleDecimalLeadingZero as _0x5bc590,IconListStyleLowerRoman as _0x1a3ea7,IconListStyleUpperRoman as _0x381784,IconListStyleLowerLatin as _0x35b866,IconListStyleUpperLatin as _0x2745ed}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3c8359,_0x429366){this['_model']=_0x3c8359,this['_elementName']=_0x429366['elementName'],this['_getElementKey']=_0x429366['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x336ce9){const _0xb1784b=new Set(),_0x2ffbb3=new Map();for(const _0x1014d8 of _0x336ce9){if('insert'===_0x1014d8['type']&&'$text'!==_0x1014d8['name']&&_0x1014d8['position']['nodeAfter']){const _0x10c57b=this['_model']['createRangeOn'](_0x1014d8['position']['nodeAfter']);for(const _0x2ee8ad of _0x10c57b['getItems']()){if(!_0x2ee8ad['is']('element',this['_elementName']))continue;const _0x5e05cc=this['_getElementKey'](_0x2ee8ad);_0x2ffbb3['has'](_0x5e05cc)||_0x2ffbb3['set'](_0x5e05cc,[]),_0x2ffbb3['get'](_0x5e05cc)['push'](_0x2ee8ad);}}if('remove'===_0x1014d8['type']&&_0x1014d8['name']===this['_elementName']){const _0xfa8280=this['_getElementKey']({'getAttribute':_0x5baef5=>_0x1014d8['attributes']['get'](_0x5baef5)});_0xb1784b['add'](_0xfa8280);}}for(const [_0x2edf12,_0x505b64]of this['_trackedElements'])'$graveyard'===_0x505b64['root']['rootName']&&_0xb1784b['add'](_0x2edf12);for(const _0x5b5449 of _0xb1784b)this['_trackedElements']['delete'](_0x5b5449);for(const [_0x105607,_0x3887b5]of _0x2ffbb3)this['_trackedElements']['set'](_0x105607,_0x3887b5[_0x3887b5['length']-0x1]);const _0x30e852=new Set();for(const [_0x2c9cb1,_0x21d613]of _0x2ffbb3)_0xb1784b['has'](_0x2c9cb1)&&(_0x30e852['add'](_0x21d613[0x0]),_0x21d613['length']>0x1?_0x2ffbb3['set'](_0x2c9cb1,_0x21d613['slice'](0x1)):_0x2ffbb3['delete'](_0x2c9cb1),_0xb1784b['delete'](_0x2c9cb1));return{'removed':Array['from'](_0xb1784b),'inserted':Array['from'](_0x2ffbb3['values']())['flat'](),'moved':Array['from'](_0x30e852)};}}class f extends _0x4fc131{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1ba2ba){super(_0x1ba2ba),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x59d9c0=>_0x59d9c0['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1b5197=>_0x1b5197['getAttribute']('footnoteId')});}['init'](){const {editor:_0x3bed84}=this,{model:_0x18559b,data:_0x3654cf}=_0x3bed84;_0x18559b['document']['registerPostFixer'](_0x2091e7=>{const _0x7cc5d5=_0x18559b['document']['differ']['getChanges']();let _0x2f2163=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2091e7,_0x7cc5d5)&&(_0x2f2163=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2091e7,_0x7cc5d5)&&(_0x2f2163=!0x0),this['_handleFootnoteReferencesChanges'](_0x2091e7,_0x7cc5d5)&&(_0x2f2163=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2091e7)&&(_0x2f2163=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2091e7)&&(_0x2f2163=!0x0),this['_sortFootnoteDefinitions'](_0x2091e7)&&(_0x2f2163=!0x0),_0x2f2163;}),this['listenTo'](_0x18559b['document'],'change:data',()=>{_0x18559b['enqueueChange']({'isUndoable':!0x1},_0x52a600=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x52a600);});},{'priority':'low'}),this['listenTo'](_0x3654cf,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4a1ccf){return this['_footnotes']['find'](_0x230d86=>_0x230d86['id']===_0x4a1ccf)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x579862){this['_footnoteFormatter']=_0x579862;}['_updateFootnotesCounters'](_0xae4bd2,_0x4d3c99=0x0){let _0x4844e4=!0x1;for(let _0x345f53=_0x4d3c99;_0x345f53<this['_footnotes']['length'];_0x345f53++)this['_updateFootnoteRefCounter'](_0xae4bd2,_0x345f53)&&(_0x4844e4=!0x0);return _0x4844e4;}['_insertEmptyFootnotesDefinitionsContainer'](_0x443491,_0x15e277){const _0x5a6f0d=_0x443491['createElement']('footnotesDefinitions',{});return _0x443491['append'](_0x5a6f0d,_0x15e277),this['_footnotesDefinitions']=_0x5a6f0d,_0x5a6f0d;}['_ensureFootnotesDefinitionsContainerExists'](_0x550933){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x10f5d6=this['_footnotes'][0x0]['reference']['root'],_0x257ed9=this['_insertEmptyFootnotesDefinitionsContainer'](_0x550933,_0x10f5d6);for(const _0x3a2d5b of this['_footnotes'])_0x3a2d5b['definition']['parent']||_0x550933['insert'](_0x3a2d5b['definition'],_0x257ed9,'end');this['_updateFootnotesCounters'](_0x550933);}['_handleFootnotesDefinitionsObjectChanges'](_0x5714ca,_0x3b23c6){let _0x132f1d=!0x1;const {inserted:_0x151e66,removed:_0x4a9527,moved:_0x4bc621}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3b23c6);if(_0x4bc621['length']&&(this['_footnotesDefinitions']=_0x4bc621[0x0]),_0x151e66['length']){if(_0x151e66['length']>0x1||this['_footnotesDefinitions']&&_0x151e66['some'](_0x3742bb=>_0x3742bb!==this['_footnotesDefinitions'])){const _0x4dcec0=_0x5714ca['createElement']('footnotesDefinitions',{}),_0x117853=[];this['_footnotesDefinitions']&&_0x117853['push'](this['_footnotesDefinitions']),_0x117853['push'](..._0x151e66),_0x5714ca['insert'](_0x4dcec0,_0x117853[0x0],'before');for(const _0x44e431 of _0x117853)_0x5714ca['move'](_0x5714ca['createRangeIn'](_0x44e431),_0x5714ca['createPositionAt'](_0x4dcec0,'end')),_0x5714ca['remove'](_0x44e431);this['_footnotesDefinitions']=_0x4dcec0,this['_updateFootnotesCounters'](_0x5714ca),_0x132f1d=!0x0;}else this['_footnotesDefinitions']=_0x151e66[0x0];}if(_0x4a9527['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3fa051 of this['_footnotes'])_0x5714ca['remove'](_0x3fa051['reference']),_0x132f1d=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x132f1d;}['_handleFootnoteDefinitionsChanges'](_0x380678,_0x40fd22){let _0x4b81f6=!0x1;const _0x1ec67d=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x3548d5,moved:_0x551b48}=this['_footnoteDefsTracker']['getChanges'](_0x40fd22);for(const _0x3ea8cb of[..._0x551b48,..._0x3548d5]){const _0x5310f5=_0x3ea8cb['getAttribute']('footnoteId'),_0x9a77dc=this['getFootnote'](_0x5310f5);_0x9a77dc&&(_0x9a77dc['definition']=_0x3ea8cb),_(_0x380678,_0x1ec67d,_0x3ea8cb)&&(_0x4b81f6=!0x0);}return _0x4b81f6;}['_handleFootnoteReferencesChanges'](_0x14ad4f,_0x682f81){let _0x46d4b=!0x1;const {removed:_0x327ac0,inserted:_0x493340,moved:_0x41615e}=this['_footnoteRefsTracker']['getChanges'](_0x682f81);for(const _0x439411 of _0x327ac0)this['_handleRemoveFootnoteReferenceById'](_0x14ad4f,_0x439411)&&(_0x46d4b=!0x0);for(const _0x54e1f6 of _0x493340)this['_handleInsertedFootnoteReference'](_0x14ad4f,_0x54e1f6)&&(_0x46d4b=!0x0);for(const _0x5a8b49 of _0x41615e)this['_handleMovedFootnoteReference'](_0x14ad4f,_0x5a8b49)&&(_0x46d4b=!0x0);return _0x46d4b;}['_handleFootnotesDefinitionsObjectSync'](_0xd295e5){if(!this['_footnotesDefinitions'])return!0x1;let _0x2f4825=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5e428c=[];for(const _0x1a0ce8 of this['_footnotesDefinitions']['getChildren']()){const _0x3822f6=_0x1a0ce8['getAttribute']('footnoteId');this['getFootnote'](_0x3822f6)||(_0x5e428c['unshift'](_0x1a0ce8),_0x2f4825=!0x0);}for(const _0x201b96 of _0x5e428c)_0xd295e5['remove'](_0x201b96);}const _0x22bf73=new Set(),_0x5c3057=[];for(const _0x4579b0 of this['_footnotesDefinitions']['getChildren']()){const _0x27a238=_0x4579b0['getAttribute']('footnoteId');_0x22bf73['has'](_0x27a238)?(_0x5c3057['unshift'](_0x4579b0),_0x2f4825=!0x0):_0x22bf73['add'](_0x27a238);}for(const _0x29946b of _0x5c3057)_0xd295e5['remove'](_0x29946b);return this['_footnotesDefinitions']['childCount']||(_0xd295e5['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2f4825=!0x0),_0x2f4825;}['_handleInsertedFootnoteReference'](_0x4ab3b2,_0x5c4b56){if(this['_footnotes']['find'](_0x4154e2=>_0x4154e2['reference']===_0x5c4b56))return!0x1;let _0x468d16=!0x1;const _0x1668cd=_0x5c4b56['getAttribute']('footnoteId'),_0xc4bbbe=this['_footnotes']['findIndex'](_0x51d25c=>_0x51d25c['id']===_0x1668cd);-0x1!==_0xc4bbbe&&(_0x4ab3b2['remove'](this['_footnotes'][_0xc4bbbe]['reference']),this['_footnotes']['splice'](_0xc4bbbe,0x1),_0x468d16=!0x0);let _0x448cf7=this['_footnotesDefinitions']?function(_0x168792,_0x3e76e4){for(const _0x3f7548 of _0x168792['getChildren']())if(_0x3f7548['getAttribute']('footnoteId')===_0x3e76e4)return _0x3f7548;return null;}(this['_footnotesDefinitions'],_0x1668cd):null;_0x448cf7||(_0x448cf7=_0x4ab3b2['createElement']('footnoteDefinition',{'footnoteId':_0x1668cd}),this['_footnotesDefinitions']&&(_0x4ab3b2['insert'](_0x448cf7,this['_footnotesDefinitions'],'end'),_0x468d16=!0x0));const _0x596251={'id':_0x1668cd,'reference':_0x5c4b56,'definition':_0x448cf7},_0x8196ec=I(this['editor']['model'],this['_footnotes'],_0x5c4b56);this['_footnotes']['splice'](_0x8196ec,0x0,_0x596251);let _0x2fbd3e=_0x8196ec;return-0x1!==_0xc4bbbe&&(_0x2fbd3e=Math['min'](_0x8196ec,_0xc4bbbe)),this['_updateFootnotesCounters'](_0x4ab3b2,_0x2fbd3e)&&(_0x468d16=!0x0),_0x468d16;}['_handleRemoveFootnoteReferenceById'](_0x5e77e8,_0x438e2e){const _0x122a85=this['_footnotes']['findIndex'](_0x349603=>_0x349603['id']===_0x438e2e);if(-0x1===_0x122a85)return!0x1;let _0x367632=!0x1;const _0x37d557=this['_footnotes'][_0x122a85];return'$graveyard'!==_0x37d557['definition']['root']['rootName']&&(_0x5e77e8['remove'](_0x37d557['definition']),_0x367632=!0x0),this['_footnotes']['splice'](_0x122a85,0x1),this['_updateFootnotesCounters'](_0x5e77e8,_0x122a85)&&(_0x367632=!0x0),_0x367632;}['_handleMovedFootnoteReference'](_0x534bc7,_0x365318){const _0x5a2af6=_0x365318['getAttribute']('footnoteId'),_0x2302c1=this['_footnotes']['findIndex'](_0x525d42=>_0x525d42['id']===_0x5a2af6),_0x243a90=this['_footnotes'][_0x2302c1];let _0x1731b8=!0x1;_0x243a90['reference']=_0x365318,this['_footnotes']['splice'](_0x2302c1,0x1);const _0x2cf894=I(this['editor']['model'],this['_footnotes'],_0x365318);return this['_footnotes']['splice'](_0x2cf894,0x0,_0x243a90),this['_updateFootnotesCounters'](_0x534bc7,Math['min'](_0x2302c1,_0x2cf894))&&(_0x1731b8=!0x0),_0x1731b8;}['_updateFootnoteRefCounter'](_0x97b603,_0x218f62){if(!this['_footnotesDefinitions'])return!0x1;const _0x2907e6=this['_footnotes'][_0x218f62];let _0x648b07;return _0x648b07=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2907e6,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x218f62+0x1}):String(_0x218f62+0x1),_0x2907e6['reference']['getAttribute']('footnoteCounter')!=_0x648b07&&(_0x97b603['setAttribute']('footnoteCounter',_0x648b07,_0x2907e6['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x39bfa0){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x21c025,_0x1e80ba){if(_0x21c025['length']!==_0x1e80ba['length'])return!0x1;for(let _0x1be5f5=0x0;_0x1be5f5<_0x21c025['length'];_0x1be5f5++)if(_0x21c025[_0x1be5f5]!==_0x1e80ba[_0x1be5f5])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1067eb=>_0x1067eb['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0xc16fa=>_0xc16fa['getAttribute']('footnoteId'))))return!0x1;let _0x58a1b7=!0x1;for(let _0x34f9c8=0x0;_0x34f9c8<this['_footnotes']['length'];_0x34f9c8++){const _0x5f0e60=this['_footnotes'][_0x34f9c8],_0x563c5e=_0x39bfa0['createPositionBefore'](_0x5f0e60['definition']),_0x5ac6c4=_0x39bfa0['createPositionAt'](this['_footnotesDefinitions'],_0x34f9c8);_0x563c5e['isEqual'](_0x5ac6c4)||(_0x39bfa0['move'](_0x39bfa0['createRangeOn'](_0x5f0e60['definition']),_0x5ac6c4),_0x58a1b7=!0x0);}return _0x58a1b7;}['_ensureFootnotesReferencesHaveProperOrder'](_0xbf0e94){if(!this['_footnotes']['length'])return!0x1;const {model:_0x26921a}=this['editor'];let _0x257976=!0x1;for(let _0x5ac170=0x0;_0x5ac170<this['_footnotes']['length']-0x1;_0x5ac170++){const _0x10dbe2=this['_footnotes'][_0x5ac170],_0x3c4b89=this['_footnotes'][_0x5ac170+0x1],_0x482513=_0x26921a['createPositionBefore'](_0x10dbe2['reference']),_0x49fc25=_0x26921a['createPositionBefore'](_0x3c4b89['reference']);'after'===_0x482513['compareWith'](_0x49fc25)&&(this['_handleMovedFootnoteReference'](_0xbf0e94,_0x10dbe2['reference']),_0x5ac170=-0x1,_0x257976=!0x0);}return _0x257976;}}function _(_0x964541,_0x43a1e2,_0x528c1e){if(_0x528c1e['childCount'])return!0x1;const _0x2b9eaa=_0x43a1e2?'paragraph':'footnoteInlineContent';return _0x964541['insert'](_0x964541['createElement'](_0x2b9eaa),_0x528c1e),!0x0;}function I(_0x364ce7,_0x58e0ce,_0x36e109){if(0x0===_0x58e0ce['length'])return 0x0;const _0x4065a3=_0x364ce7['createPositionBefore'](_0x36e109);for(let _0x3402a2=0x0;_0x3402a2<_0x58e0ce['length'];_0x3402a2++){const _0x4e236a=_0x58e0ce[_0x3402a2],_0x576afe=_0x364ce7['createPositionBefore'](_0x4e236a['reference']);if('before'===_0x4065a3['compareWith'](_0x576afe))return _0x3402a2;}const _0xc5f01=_0x36e109['root'];let _0xf1b786=-0x1;for(let _0x2dc972=_0x58e0ce['length']-0x1;_0x2dc972>=0x0;_0x2dc972--)if(_0x58e0ce[_0x2dc972]['reference']['root']===_0xc5f01){_0xf1b786=_0x2dc972;break;}if(-0x1!==_0xf1b786)return _0xf1b786+0x1;const _0x112c31=_0x364ce7['document']['getRootNames'](),_0x55d47e=_0x112c31['indexOf'](_0xc5f01['rootName']),_0x1e10be=_0x112c31[_0x55d47e+0x1];if(_0x1e10be){for(let _0x215f4b=0x0;_0x215f4b<_0x58e0ce['length'];_0x215f4b++)if(_0x58e0ce[_0x215f4b]['reference']['root']['rootName']===_0x1e10be)return _0x215f4b;}return _0x58e0ce['length'];}class h extends _0x49231e{['refresh'](){const _0x58a16b=this['editor']['model']['document']['selection'],_0x24568d=this['_getPositionToInsertFootnote'](_0x58a16b);this['isEnabled']=!!_0x24568d;}['execute'](_0xf51d90){const {editor:_0x53fcb1}=this,{model:_0x470c54}=_0x53fcb1,{selection:_0x174b90}=_0x470c54['document'],_0x537045=this['_getPositionToInsertFootnote'](_0x174b90);if(!_0x537045)return;const _0x34812b=_0x53fcb1['plugins']['get']('FootnotesEditing'),_0x2137f7=_0xf51d90?.['footnoteId']??_0x243e9b();!function(_0x1f52ae){return'string'==typeof _0x1f52ae&&_0x1f52ae['length']>0x0&&!/\s/['test'](_0x1f52ae)&&!/^\d/['test'](_0x1f52ae);}(_0x2137f7)?_0x3c5e13('insert-footnote-command-executed-with-invalid-id'):(_0x470c54['change'](_0x23ae5b=>{const _0x24ade7=_0x23ae5b['createElement']('footnoteRef',{'footnoteId':_0x2137f7});_0x470c54['insertObject'](_0x24ade7,_0x537045,null);}),_0x34812b['_moveSelectionToFootnoteDefinition'](_0x2137f7));}['_getPositionToInsertFootnote'](_0x763408){const {model:_0x535d7e}=this['editor'],{schema:_0x312490}=_0x535d7e,_0x1a4298=_0x763408['getFirstRange']();for(const _0x4f544a of _0x1a4298['getItems']())if(_0x312490['isBlock'](_0x4f544a)||_0x312490['isObject'](_0x4f544a))return null;const _0x3e8b40=_0x1a4298['end'];return _0x312490['checkChild'](_0x3e8b40,'footnoteRef')?_0x3e8b40:null;}}class r extends _0x4fc131{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x38cec2}=this;_0x38cec2['config']['define']('footnotes.multiBlock',!0x0),_0x38cec2['commands']['add']('insertFootnote',new h(_0x38cec2)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4b8ab5){const _0x1e725d=_0x1a20e1([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]),_0x152eb8=0x47a28506,_0x42ffce=0x47a50f6e^_0x152eb8,_0x390ad6=window[_0x1a20e1([0x44,0x61,0x74,0x65])][_0x1a20e1([0x6e,0x6f,0x77])](),_0x3e7e5d=_0x4b8ab5[_0x1a20e1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1761dd=new window[(_0x1a20e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b0d6a=>{_0x3e7e5d[_0x1a20e1([0x6f,0x6e,0x63,0x65])](_0x1a20e1([0x72,0x65,0x61,0x64,0x79]),_0x3b0d6a);}),_0x465ade={[_0x1a20e1([0x6b,0x74,0x79])]:_0x1a20e1([0x45,0x43]),[_0x1a20e1([0x75,0x73,0x65])]:_0x1a20e1([0x73,0x69,0x67]),[_0x1a20e1([0x63,0x72,0x76])]:_0x1a20e1([0x50,0x2d,0x32,0x35,0x36]),[_0x1a20e1([0x78])]:_0x1a20e1([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]),[_0x1a20e1([0x79])]:_0x1a20e1([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]),[_0x1a20e1([0x61,0x6c,0x67])]:_0x1a20e1([0x45,0x53,0x32,0x35,0x36])},_0x516660=_0x3e7e5d[_0x1a20e1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1a20e1([0x67,0x65,0x74])](_0x1a20e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xadd256(){let _0x8aa184,_0x4331e0=null,_0xeb152a=null;try{if(_0x516660==_0x1a20e1([0x47,0x50,0x4c]))return _0x1a20e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8aa184=_0x1ca154(),!_0x8aa184)return _0x1a20e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8aa184[_0x1a20e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xeb152a=_0x1fc862(_0x8aa184[_0x1a20e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8aa184[_0x1a20e1([0x6a,0x74,0x69])])),await _0x1858a0()?_0x44cef2()?_0x569db4()?_0x1a20e1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x154f22()?(_0x8aa184[_0x1a20e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1a20e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4331e0=_0x3e8c32(_0x1a20e1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x34b0ea()):_0x1a20e1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1a20e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1a20e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1a20e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x569db4(){const _0x4b0036=[_0x1a20e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1a20e1([0x74,0x72,0x69,0x61,0x6c])][_0x1a20e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8aa184[_0x1a20e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x390ad6/0x3e8:0xe10*_0x42ffce;return _0x8aa184[_0x1a20e1([0x65,0x78,0x70])]<_0x4b0036;}function _0x44cef2(){const _0x1734fd=_0x8aa184[_0x1a20e1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1734fd&&(!!_0x1734fd[_0x1a20e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a20e1([0x2a]))||!!_0x1734fd[_0x1a20e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a20e1([0x46,0x4f,0x4f])));}function _0x154f22(){const _0x48f3ad=_0x8aa184[_0x1a20e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x48f3ad||0x0==_0x48f3ad[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x485b65}=new URL(window[_0x1a20e1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x48f3ad[_0x1a20e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x485b65))return!0x0;const _0x399c95=_0x485b65[_0x1a20e1([0x73,0x70,0x6c,0x69,0x74])](_0x1a20e1([0x2e]));return _0x48f3ad[_0x1a20e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x436ba1=>_0x436ba1[_0x1a20e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1a20e1([0x2a])))[_0x1a20e1([0x6d,0x61,0x70])](_0x1b30d1=>_0x1b30d1[_0x1a20e1([0x73,0x70,0x6c,0x69,0x74])](_0x1a20e1([0x2e])))[_0x1a20e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4d2c9c=>_0x4d2c9c[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x399c95[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a20e1([0x6d,0x61,0x70])](_0x324a05=>Array(_0x399c95[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x324a05[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1a20e1([0x66,0x69,0x6c,0x6c])](_0x324a05[0x0]===_0x1a20e1([0x2a])?_0x1a20e1([0x2a]):'')[_0x1a20e1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x324a05))[_0x1a20e1([0x73,0x6f,0x6d,0x65])](_0x4c194b=>_0x399c95[_0x1a20e1([0x65,0x76,0x65,0x72,0x79])]((_0x562e81,_0x56a29d)=>_0x4c194b[_0x56a29d]===_0x562e81||_0x4c194b[_0x56a29d]===_0x1a20e1([0x2a])));}function _0x34b0ea(){return _0x4331e0&&_0xeb152a?new window[(_0x1a20e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4908a7,_0x405e0e)=>{_0x4331e0[_0x1a20e1([0x74,0x68,0x65,0x6e])](_0x4908a7,_0x405e0e),_0xeb152a[_0x1a20e1([0x74,0x68,0x65,0x6e])](_0x164542=>{_0x164542!=_0x1a20e1([0x56,0x61,0x6c,0x69,0x64])&&_0x4908a7(_0x164542);},_0x405e0e);}):_0x4331e0||_0xeb152a||_0x1a20e1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fc862(_0x3e00cc,_0x420a78){return new window[(_0x1a20e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fcc1e=>{if(_0x56812f())return _0x3fcc1e(_0x1a20e1([0x56,0x61,0x6c,0x69,0x64]));_0x2573f(),_0x3e7e5d[_0x1a20e1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1a20e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x441b68=!0x1;const _0xecce4a=_0x243e9b();function _0x33a880(_0x2edffc){return!!_0x2edffc&&(typeof _0x2edffc===_0x1a20e1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2edffc===_0x1a20e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2edffc[_0x1a20e1([0x74,0x68,0x65,0x6e])]===_0x1a20e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2edffc[_0x1a20e1([0x63,0x61,0x74,0x63,0x68])]===_0x1a20e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1da076(_0x54a839){_0x5d768e(_0x54a839)[_0x1a20e1([0x74,0x68,0x65,0x6e])](_0x3ad516=>{if(!_0x3ad516||_0x3ad516[_0x1a20e1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1a20e1([0x6f,0x6b]))return _0x1a20e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4fd005(_0x240395(_0xecce4a+_0x420a78))!=_0x3ad516[_0x1a20e1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1a20e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1a20e1([0x56,0x61,0x6c,0x69,0x64]);})[_0x1a20e1([0x74,0x68,0x65,0x6e])](_0x55e54d=>(_0x2eb174(),_0x55e54d),()=>{const _0x190305=_0x1b55cf();return null==_0x190305?(_0x2eb174(),_0x1a20e1([0x56,0x61,0x6c,0x69,0x64])):_0x1a20e1(_0x390ad6-_0x190305>(0x63ae0106^_0x152eb8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1a20e1([0x74,0x68,0x65,0x6e])](_0x3fcc1e)[_0x1a20e1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3fcc1e(_0x1a20e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x14a5fd=0x47946b86^_0x152eb8;function _0x2eb174(){const _0x34528b=_0x1a20e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fd005(_0x240395(_0x3e00cc)),_0x30d9be=_0x5a9e7c(_0x4fd005(window[_0x1a20e1([0x4d,0x61,0x74,0x68])][_0x1a20e1([0x63,0x65,0x69,0x6c])](_0x390ad6/_0x14a5fd)));window[_0x1a20e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a20e1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34528b,_0x30d9be);}function _0x1b55cf(){const _0x3702f6=_0x1a20e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x4fd005(_0x240395(_0x3e00cc)),_0x232357=window[_0x1a20e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1a20e1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3702f6);return _0x232357?window[_0x1a20e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a9e7c(_0x232357),0x10)*_0x14a5fd:null;}function _0x5d768e(_0xe3c8fd){return new window[(_0x1a20e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x41bcdf,_0x287687)=>{_0xe3c8fd[_0x1a20e1([0x74,0x68,0x65,0x6e])](_0x41bcdf,_0x287687),window[_0x1a20e1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x287687,0x47a351c6^_0x152eb8);});}}_0x3e7e5d[_0x1a20e1([0x6f,0x6e])](_0x1a20e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3bc012,_0x364fc3)=>{if(_0x364fc3[0x0]!=_0x3e00cc)return _0x3fcc1e(_0x1a20e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x364fc3[0x1]={..._0x364fc3[0x1],[_0x1a20e1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xecce4a};},{[_0x1a20e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a20e1([0x68,0x69,0x67,0x68])}),_0x3e7e5d[_0x1a20e1([0x6f,0x6e])](_0x1a20e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x57e99e=>{_0x33a880(_0x57e99e[_0x1a20e1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x441b68=!0x0,_0x1da076(_0x57e99e[_0x1a20e1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1a20e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1a20e1([0x6c,0x6f,0x77])}),_0x1761dd[_0x1a20e1([0x74,0x68,0x65,0x6e])](()=>{_0x441b68||_0x3fcc1e(_0x1a20e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x56812f(){return _0x3e7e5d[_0x1a20e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a20e1([0x76,0x69,0x65,0x77])][_0x1a20e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1a20e1([0x61,0x75,0x74,0x6f]);}function _0x2573f(){_0x3e7e5d[_0x1a20e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1a20e1([0x76,0x69,0x65,0x77])][_0x1a20e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1a20e1([0x61,0x75,0x74,0x6f]);}}function _0x3e8c32(_0x53e33f){const _0x41e6a0=[new window[(_0x1a20e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f322c=>setTimeout(_0x3f322c,0x47abbbca^_0x152eb8)),_0x1761dd[_0x1a20e1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1a20e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316843=>{let _0x4524c9=0x0;_0x3e7e5d[_0x1a20e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a20e1([0x6f,0x6e])](_0x1a20e1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x21a05f,_0x52cc7f)=>{_0x52cc7f[0x0][_0x1a20e1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4524c9++,_0x4524c9==(0x47a280ee^_0x152eb8)&&(_0x316843(),_0x21a05f[_0x1a20e1([0x6f,0x66,0x66])]());});}))];return window[_0x1a20e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1a20e1([0x72,0x61,0x63,0x65])](_0x41e6a0)[_0x1a20e1([0x74,0x68,0x65,0x6e])](()=>_0x53e33f);}async function _0x15d231(){await _0x1761dd,_0x3e7e5d[_0x1a20e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a20e1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x378f5e,_0x3e7e5d[_0x1a20e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x1a20e1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x378f5e,_0x3e7e5d[_0x1a20e1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1a20e1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2640d1(_0x3a9e82){const _0xec7fcc=_0x57c601();_0x3e7e5d[_0xec7fcc]=_0x1a20e1([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3a9e82,_0x3a9e82!=_0x1a20e1([0x56,0x61,0x6c,0x69,0x64])&&_0x15d231();}function _0x57c601(){const _0x275806=window[_0x1a20e1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1a20e1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1a20e1([0x6e,0x6f,0x77])]())[_0x1a20e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1a20e1([0x2e]),'');let _0xf58222=_0x1a20e1([0x75]);for(let _0x16fc5c=0x0;_0x16fc5c<_0x275806[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x16fc5c+=0x2){let _0x158a5f=window[_0x1a20e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275806[_0x1a20e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x16fc5c,_0x16fc5c+0x2));_0x158a5f>=_0x1e725d[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x158a5f-=_0x1e725d[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xf58222+=_0x1e725d[_0x158a5f];}return _0xf58222;}function _0x1ca154(){const _0x587886=_0x516660[_0x1a20e1([0x73,0x70,0x6c,0x69,0x74])](_0x1a20e1([0x2e]));if(0x3!=_0x587886[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x7aa0f9(_0x587886[0x1]);function _0x7aa0f9(_0x259462){const _0x125fc0=_0x5a84ed(_0x259462);return _0x125fc0&&_0x23c2a0()?_0x125fc0:null;function _0x23c2a0(){const _0x3847db=_0x125fc0[_0x1a20e1([0x6a,0x74,0x69])],_0x4aa7f5=window[_0x1a20e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3847db[_0x1a20e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3847db[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x296d9f={..._0x125fc0,[_0x1a20e1([0x6a,0x74,0x69])]:_0x3847db[_0x1a20e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3847db[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x296d9f[_0x1a20e1([0x76,0x63])],_0x240395(_0x296d9f)==_0x4aa7f5;}}}async function _0x1858a0(){let _0x6a4c4b=!0x0;try{const _0x13a445=_0x516660[_0x1a20e1([0x73,0x70,0x6c,0x69,0x74])](_0x1a20e1([0x2e])),[_0x265dea,_0x237787,_0xff084f]=_0x13a445;return _0x6f1894(_0x265dea),await _0x1defeb(_0x265dea,_0x237787,_0xff084f),_0x6a4c4b;}catch{return!0x1;}function _0x6f1894(_0x3454df){const _0x3f9689=_0x5a84ed(_0x3454df);_0x3f9689&&_0x3f9689[_0x1a20e1([0x61,0x6c,0x67])]==_0x1a20e1([0x45,0x53,0x32,0x35,0x36])||(_0x6a4c4b=!0x1);}async function _0x1defeb(_0x3eb203,_0xfb9ef2,_0xd5d13d){const _0x3ce4df=window[_0x1a20e1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1a20e1([0x66,0x72,0x6f,0x6d])](_0x7717e6(_0xd5d13d),_0x3f5dc9=>_0x3f5dc9[_0x1a20e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1d08b0=new window[(_0x1a20e1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1a20e1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3eb203+_0x1a20e1([0x2e])+_0xfb9ef2),_0x3730c5=window[_0x1a20e1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1a20e1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3730c5)return;const _0xd5134e=await _0x3730c5[_0x1a20e1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1a20e1([0x6a,0x77,0x6b]),_0x465ade,{[_0x1a20e1([0x6e,0x61,0x6d,0x65])]:_0x1a20e1([0x45,0x43,0x44,0x53,0x41]),[_0x1a20e1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1a20e1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1a20e1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3730c5[_0x1a20e1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1a20e1([0x6e,0x61,0x6d,0x65])]:_0x1a20e1([0x45,0x43,0x44,0x53,0x41]),[_0x1a20e1([0x68,0x61,0x73,0x68])]:{[_0x1a20e1([0x6e,0x61,0x6d,0x65])]:_0x1a20e1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xd5134e,_0x3ce4df,_0x1d08b0)||(_0x6a4c4b=!0x1);}}function _0x5a84ed(_0x88165){return _0x88165[_0x1a20e1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1a20e1([0x65,0x79]))?JSON[_0x1a20e1([0x70,0x61,0x72,0x73,0x65])](_0x7717e6(_0x88165)):null;}function _0x7717e6(_0x596369){return window[_0x1a20e1([0x61,0x74,0x6f,0x62])](_0x596369[_0x1a20e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1a20e1([0x2b]))[_0x1a20e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1a20e1([0x2f])));}function _0x240395(_0x1bf672){let _0x3b81f2=0x1505;function _0x665275(_0x228208){for(let _0x4c1f5a=0x0;_0x4c1f5a<_0x228208[_0x1a20e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4c1f5a++){const _0x2288a6=_0x228208[_0x1a20e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4c1f5a);_0x3b81f2=(_0x3b81f2<<0x5)+_0x3b81f2+_0x2288a6,_0x3b81f2&=_0x3b81f2;}}function _0x585064(_0x5cba47){Array[_0x1a20e1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5cba47)?_0x5cba47[_0x1a20e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x585064):_0x5cba47&&typeof _0x5cba47==_0x1a20e1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1a20e1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5cba47)[_0x1a20e1([0x73,0x6f,0x72,0x74])]()[_0x1a20e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2a66c7,_0x5a55a9])=>{_0x665275(_0x2a66c7),_0x585064(_0x5a55a9);}):_0x665275(window[_0x1a20e1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5cba47));}return _0x585064(_0x1bf672),_0x3b81f2>>>0x0;}function _0x4fd005(_0x688606){return _0x688606[_0x1a20e1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1a20e1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1a20e1([0x30]));}function _0x5a9e7c(_0x29496d){return _0x29496d[_0x1a20e1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1a20e1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1a20e1([0x6a,0x6f,0x69,0x6e])]('');}function _0x378f5e(){}function _0x1a20e1(_0x4fe7a3){return _0x4fe7a3['map'](_0x5e3721=>String['fromCharCode'](_0x5e3721))['join']('');}_0x2640d1(await _0xadd256());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1d0764){const {plugins:_0xa5e1b5,editing:_0x560065,model:_0x175dae}=this['editor'],_0x525131=_0xa5e1b5['get'](f)['getFootnote'](_0x1d0764);return!!_0x525131&&(_0x175dae['change'](_0x1def13=>{_0x1def13['setSelection'](_0x1def13['createPositionAt'](_0x525131['definition'],'end'));}),_0x560065['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5d2060){const {plugins:_0xee602a,editing:_0x4ac9c5,model:_0x10dfd5}=this['editor'],_0x5eae6d=_0xee602a['get'](f)['getFootnote'](_0x5d2060);return!!_0x5eae6d&&(_0x10dfd5['change'](_0x4d2782=>{_0x4d2782['setSelection'](_0x5eae6d['reference'],'on');}),_0x4ac9c5['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5ee1e2}=this['editor']['model'],_0x69a927=this['editor']['config']['get']('footnotes.multiBlock');_0x5ee1e2['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5ee1e2['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5ee1e2['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x69a927?_0x5ee1e2['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5ee1e2['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5ee1e2['addChildCheck'](_0x255f65=>{for(const _0x4ab9f3 of _0x255f65)if('footnoteDefinition'===_0x4ab9f3['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x280816}=this,{conversion:_0x56a1cb,editing:_0x50a5e4}=_0x280816,{t:t}=_0x280816['locale'];_0x56a1cb['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3553a3,{writer:_0x536335,consumable:_0x9add23})=>{const _0x29a6dd=_0x3553a3['getChild'](0x0);if(!_0x29a6dd||!_0x29a6dd['is']('element','a'))return null;const _0x53f3d3=_0x29a6dd['getAttribute']('href')||'';if(!_0x53f3d3['startsWith']('#'))return null;const _0x25986a=_0x53f3d3['replace'](/^#/,'');if(!_0x25986a)return null;_0x9add23['consume'](_0x29a6dd,{'name':!0x0,'attributes':['href']});for(const {item:_0x5f1db8}of _0x50a5e4['view']['createRangeIn'](_0x29a6dd))_0x5f1db8['is']('$textProxy')?_0x9add23['consume'](_0x5f1db8['textNode'],{'name':!0x0}):_0x5f1db8['is']('element')&&_0x9add23['consume'](_0x5f1db8,{'name':!0x0});return _0x536335['createElement']('footnoteRef',{'footnoteId':_0x25986a});}}),_0x56a1cb['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x56fb3f,{writer:_0x527f38})=>b(_0x56fb3f,_0x527f38)}),_0x56a1cb['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5964d2,{writer:_0x52c815})=>{const _0x13a3be=_0x5964d2['getAttribute']('footnoteCounter');return _0x6dea39(b(_0x5964d2,_0x52c815),_0x52c815,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x13a3be)});}});}['_defineDefinitionsConverters'](){const {editor:_0x462530}=this,{t:t}=_0x462530['locale'],{conversion:_0x48421a}=_0x462530;_0x48421a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x48421a['for']('upcast')['add'](_0x3ee859=>{_0x3ee859['on']('element:ol',(_0x568988,_0x55281c,_0x361b63)=>{const _0x12220b=_0x55281c['viewItem'];if(!_0x12220b['hasClass']('footnotes-list')||!_0x55281c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x361b63['consumable']['consume'](_0x12220b,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5640ea,modelCursor:_0x373431}=_0x361b63['convertChildren'](_0x55281c['viewItem'],_0x55281c['modelCursor']);_0x55281c['modelRange']=_0x5640ea,_0x55281c['modelCursor']=_0x373431;}),_0x3ee859['on']('element:hr',(_0x43fce4,_0x46c9b6,_0x58cef6)=>{const _0x8f1289=_0x46c9b6['viewItem'];_0x8f1289['hasClass']('footnotes-divider')&&_0x46c9b6['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x58cef6['consumable']['consume'](_0x8f1289,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x48421a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2e5ec1,{writer:_0x584d57})=>D(_0x584d57)}),_0x48421a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x495c03,{writer:_0x582950})=>{const _0x866b21=D(_0x582950,{'data-footnotes-list-label':t('Footnotes')}),_0x3e85dc=_0x6dea39(_0x866b21,_0x582950,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x582950['setCustomProperty']('footnotesDefinitions',!0x0,_0x3e85dc),_0x3e85dc;}});}['_defineDefinitionConverters'](){const {editor:_0x1a89a9}=this,{conversion:_0x71470a,locale:_0x5bb3bb}=_0x1a89a9,_0x127444=_0x1a89a9['config']['get']('footnotes.multiBlock');_0x71470a['for']('upcast')['add'](_0xd1cc43=>{_0xd1cc43['on']('element:li',(_0xb45cc2,_0x2923ce,_0xfca3a4)=>{const _0x354adf=_0x2923ce['viewItem'];if(!_0x354adf['hasClass']('footnote-definition')||!_0x354adf['getAttribute']('id'))return;const _0x2eeeb7=_0x354adf['parent'];if(!_0x2eeeb7['is']('element','ol')||!_0x2eeeb7['hasClass']('footnotes-list'))return;if(!_0xfca3a4['consumable']['test'](_0x354adf,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x311960=_0xfca3a4['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x354adf['getAttribute']('id')});if(!_0xfca3a4['safeInsert'](_0x311960,_0x2923ce['modelCursor']))return;_0xfca3a4['consumable']['consume'](_0x354adf,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x38ef5b=Array['from'](_0x354adf['getChildren']())['find'](_0x1711ed=>_0x1711ed['is']('element')&&_0x1711ed['hasClass']('footnote-content'));for(const _0x38de53 of _0x354adf['getChildren']())_0x38de53['is']('element')&&(_0xfca3a4['consumable']['consume'](_0x38de53,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xfca3a4['consumable']['consume'](_0x38de53,{'name':!0x0,'classes':'footnote-content'}));if(_0x38ef5b){if(_0x127444)_0xfca3a4['convertChildren'](_0x38ef5b,_0x311960);else{const _0xf6240d=_0xfca3a4['writer']['createElement']('footnoteInlineContent');_0xfca3a4['writer']['insert'](_0xf6240d,_0x311960),_0xfca3a4['convertChildren'](_0x38ef5b,_0xf6240d);}}_0xfca3a4['updateConversionResult'](_0x311960,_0x2923ce);});}),_0x71470a['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2d6bdf,{writer:_0x50f122})=>y(_0x2d6bdf,_0x50f122,_0x5bb3bb,{'dataPipeline':!0x0})}),_0x71470a['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xcf1331,{writer:_0x1624ae})=>y(_0xcf1331,_0x1624ae,_0x5bb3bb)});}['_defineBogusParagraphConverters'](){const {editor:_0x11ec41}=this,{conversion:_0x40dfc7}=_0x11ec41;_0x11ec41['config']['get']('footnotes.multiBlock')?(_0x40dfc7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x40dfc7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x11ec41['model']['document'],'change:data',()=>{!function(_0x1a09c2,_0x3c3ba4){const _0x13f2e0=_0x1a09c2['document']['differ'],_0x5f3519=new Set();for(const _0x4b19f3 of _0x13f2e0['getChanges']()){const _0x35a92f='attribute'==_0x4b19f3['type']?_0x4b19f3['range']['start']['parent']:_0x4b19f3['position']['parent'];_0x35a92f['is']('element','footnoteDefinition')&&_0x5f3519['add'](_0x35a92f);}for(const _0x1ad533 of _0x5f3519['values']()){const _0x58a274=Array['from'](_0x1ad533['getChildren']())['filter'](_0x423dd5=>v(_0x423dd5,_0x3c3ba4['mapper']));for(const _0x1d178f of _0x58a274)_0x3c3ba4['reconvertItem'](_0x1d178f);}}(_0x11ec41['model'],_0x11ec41['editing']);})):(_0x40dfc7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x40dfc7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x9614a1,{writer:_0xeb804})=>{const _0x2798be=_0xeb804['createContainerElement']('span');return _0xeb804['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2798be),_0x2798be;}}));}['_defineKeyboardHandlers'](){const {editor:_0x339597}=this,{editing:_0x17f558,t:t}=_0x339597,_0x1254a6=_0x339597['model']['document']['selection'];_0x339597['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x339597['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x17f558['view']['document'],'enter',(_0x54a020,_0x1c8e03)=>{const _0x2560b9=function(_0x59a0bf){const _0x7261eb=_0x59a0bf['getSelectedElement']();if(_0x7261eb?.['is']('element','footnoteRef'))return _0x7261eb;return null;}(_0x1254a6);if(_0x2560b9){const _0x1875fc=_0x2560b9['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1875fc),_0x1c8e03['preventDefault'](),_0x54a020['stop']();}},{'context':_0x51fd9c});}['_defineClickHandlers'](){const {editor:_0x9807c2}=this,{editing:_0x34188}=_0x9807c2;_0x9807c2['editing']['view']['addObserver'](_0x21a1b6),_0x9807c2['editing']['view']['addObserver'](_0x4110ad);let _0x587410=!0x1;this['listenTo'](_0x34188['view']['document'],'pointerdown',(_0x9ca67d,_0x42791b)=>{const {target:_0x539158}=_0x42791b,_0x1523f5=_0x34188['view']['document']['selection'];_0x587410=!!(_0x539158?.['is']('element','a')&&_0x539158['parent']?.['is']('element','sup')&&_0x539158['parent']['hasClass']('footnote'))&&_0x1523f5['getSelectedElement']()===_0x539158['parent'];},{'priority':'high'}),this['listenTo'](_0x34188['view']['document'],'click',(_0x5061aa,_0x2a3c8e)=>{const {target:_0x1cacc6}=_0x2a3c8e;if(!_0x1cacc6?.['is']('element','a'))return;if(_0x1cacc6['parent']?.['is']('element','sup')&&_0x1cacc6['parent']['hasClass']('footnote')&&!_0x587410)return void _0x2a3c8e['preventDefault']();let _0x34440f=_0x1cacc6['getAttribute']('href');if(!_0x34440f?.['startsWith']('#'))return;_0x34440f=_0x34440f['slice'](0x1);let _0x5287c4=!0x1;(_0x34440f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x34440f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x34440f))&&(_0x5287c4=!0x0),_0x5287c4&&(_0x2a3c8e['preventDefault'](),_0x5061aa['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x2b80ba}={}){return(_0x1ece89,{writer:_0x5b9d62})=>{if(!g(_0x1ece89))return null;if(!_0x2b80ba)return _0x5b9d62['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4b620d=_0x5b9d62['createContainerElement']('p');return _0x5b9d62['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4b620d),_0x4b620d;};}function g(_0x499228){const {parent:_0x4fda13}=_0x499228;if(!_0x4fda13?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x4fda13['childCount'])return!0x1;for(const _0x326f27 of _0x499228['getAttributeKeys']())if(!_0x326f27['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x326f27)return!0x1;return!0x0;}function v(_0x456b25,_0x3afa85){if(!_0x456b25['is']('element','paragraph'))return!0x1;const _0x390d5a=_0x3afa85['toViewElement'](_0x456b25);return!!_0x390d5a&&g(_0x456b25)!==_0x390d5a['is']('element','span');}function Q(_0x1803c1){return _0x51fd9c(_0x1803c1)&&_0x1803c1['is']('containerElement')&&!!_0x1803c1['getCustomProperty']('footnotesDefinitions');}function D(_0x1889ca,_0x5144a8={}){const _0x1e9550=_0x1889ca['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x35accf=_0x1889ca['createContainerElement']('ol',{'class':'footnotes-list'},_0x1889ca['createSlot']());return _0x1889ca['createContainerElement']('div',{'class':'footnotes',..._0x5144a8},[_0x1e9550,_0x35accf]);}function b(_0x7991dd,_0x2ec7ec){const _0x45d491=_0x7991dd['getAttribute']('footnoteId'),_0x4c5b5c=_0x7991dd['getAttribute']('footnoteCounter'),_0x4da445=_0x2ec7ec['createUIElement']('a',{'href':'#'+_0x45d491},function(_0x1414f3){const _0x38f566=this['toDomElement'](_0x1414f3);return _0x38f566['textContent']=_0x4c5b5c,_0x38f566;}),_0x4dc573=_0x2ec7ec['createContainerElement']('sup',{'id':'ref-'+_0x45d491,'class':'footnote'},[_0x4da445]);return _0x4dc573['getFillerOffset']=()=>null,_0x4dc573;}function y(_0x9ee281,_0x2aac55,_0x591999,{dataPipeline:_0x2971da}={}){const {t:t}=_0x591999,_0xcafe55=_0x9ee281['getAttribute']('footnoteId'),_0x435ffc=_0x2aac55['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xcafe55},function(_0x310e43){const _0x103a9c=this['toDomElement'](_0x310e43);return _0x103a9c['innerText']='^',_0x103a9c;}),_0x1b63b3=_0x2971da?_0x2aac55['createContainerElement']('div',{'class':'footnote-content'}):_0xad0cde(_0x2aac55['createEditableElement']('div',{'class':'footnote-content'}),_0x2aac55,{'label':t('Footnote\x20content.')});return _0x2aac55['insert'](_0x2aac55['createPositionAt'](_0x1b63b3,0x0),_0x2aac55['createSlot']()),_0x2aac55['createContainerElement']('li',{'class':'footnote-definition','id':_0xcafe55},[_0x435ffc,_0x1b63b3]);}class e extends _0x4fc131{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x3a748a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x46b66f}=this,{plugins:_0x58f75d,model:_0x1c5ac8}=_0x46b66f,_0x228bc5=_0x58f75d['get'](_0x3a748a),_0x9a7b75=_0x58f75d['get'](f);this['listenTo'](_0x228bc5,'outputTransformation',(_0x47631c,_0x32957b)=>{const _0x210542=l(_0x1c5ac8['createRangeIn'](_0x32957b['content']));if(!_0x210542['length'])return;const _0xe82d9d=_0x9a7b75['getFootnotes'](),_0x25794a=_0x210542['reduce']((_0x58d7ac,_0x5bde3f)=>{const _0x56a91d=_0xe82d9d['find'](_0x9991b7=>_0x9991b7['id']===_0x5bde3f);if(_0x56a91d){const _0x4a493b=_0x46b66f['data']['toView'](_0x56a91d['definition'],{'isClipboardPipeline':!0x0}),_0x320805=_0x46b66f['data']['htmlProcessor']['toData'](_0x4a493b);_0x58d7ac[_0x56a91d['id']]=_0x320805;}return _0x58d7ac;},Object['create'](null));_0x32957b['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x25794a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x159acc}=this,{model:_0x43095f,plugins:_0x1c3d95}=_0x159acc,{view:_0x4987d1}=_0x159acc['editing'],_0x2e8449=_0x1c3d95['get'](_0x3a748a),_0x435db1=_0x1c3d95['get'](f),_0x3b6a25=_0x159acc['config']['get']('footnotes.multiBlock');let _0x190ade=null;this['listenTo'](_0x4987d1['document'],'clipboardInput',(_0x2076d4,_0x33af9f)=>{const _0x3f2c0e=_0x33af9f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x190ade=_0x3f2c0e?JSON['parse'](_0x3f2c0e):null;}),this['listenTo'](_0x2e8449,'contentInsertion',(_0x21cb02,_0x1b3d5b)=>{const _0x477333=_0x1b3d5b['sourceEditorId']===this['editor']['id'];_0x477333&&'drop'===_0x1b3d5b['method']||_0x43095f['change'](_0x141049=>{let _0x10b585=_0x435db1['getFootnotesDefinitionsObjectElement']();const _0x7c835e=!!_0x10b585&&Array['from'](_0x43095f['document']['selection']['getSelectedBlocks']())['includes'](_0x10b585);if(!_0x190ade&&function(_0x300d35){for(const {item:_0x241a22}of _0x300d35)if(_0x241a22['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x43095f['createRangeIn'](_0x1b3d5b['content']))&&(_0x190ade=function(_0x41609f,_0x245a4d){const _0x285436=c(_0x41609f,_0x245a4d);if(!_0x285436)return null;const _0x2c5459=Object['create'](null);for(const _0x50eb79 of _0x285436['getChildren']())_0x50eb79['is']('element','footnoteDefinition')&&_0x50eb79['hasAttribute']('footnoteId')&&(_0x2c5459[_0x50eb79['getAttribute']('footnoteId')]=_0x41609f['cloneElement'](_0x50eb79,!0x0));return Object['keys'](_0x2c5459)['length']?_0x2c5459:null;}(_0x141049,_0x1b3d5b['content'])),(_0x10b585&&!_0x7c835e||!_0x10b585&&!_0x190ade)&&function(_0x78da20,_0x4185ef){const _0x1f9bb3=[];for(const {item:_0x22c143}of _0x78da20['createRangeIn'](_0x4185ef))_0x22c143['is']('element','footnotesDefinitions')&&_0x1f9bb3['push'](_0x22c143);for(const _0x1492fc of _0x1f9bb3)_0x78da20['remove'](_0x1492fc);}(_0x141049,_0x1b3d5b['content']),!_0x190ade)return;const {selection:_0x542d68}=_0x43095f['document'],_0x13e45d=_0x542d68['getFirstRange']()['root'];_0x10b585&&!_0x7c835e||(_0x10b585=c(_0x141049,_0x1b3d5b['content']),_0x10b585||=_0x435db1['_insertEmptyFootnotesDefinitionsContainer'](_0x141049,_0x13e45d));const _0x1f9961=Array['from'](_0x542d68['getRanges']())['flatMap'](l),_0x5ddad4=function(_0x947166,_0x14ec29,_0x1daa19){const _0x171ef4=Object['create'](null);for(const {item:_0x1371dd}of _0x947166['createRangeIn'](_0x14ec29))if(_0x1371dd['is']('element','footnoteRef')){const _0x511d19=_0x1371dd['getAttribute']('footnoteId');if(!_0x1daa19(_0x511d19))continue;_0x171ef4[_0x511d19]||(_0x171ef4[_0x511d19]=_0x243e9b()),_0x947166['setAttribute']('footnoteId',_0x171ef4[_0x511d19],_0x1371dd);}return _0x171ef4;}(_0x141049,_0x1b3d5b['content'],_0x2c1439=>{if(!_0x477333)return!0x0;return!!_0x435db1['getFootnote'](_0x2c1439)&&!_0x1f9961['includes'](_0x2c1439);});for(const [_0x7b2b65,_0xb34590]of Object['entries'](_0x190ade)){const _0x15509d=_0x5ddad4[_0x7b2b65]||_0x7b2b65;let _0x1e795c;if('string'!=typeof _0xb34590)_0x1e795c=_0xb34590,_0x15509d!==_0x7b2b65&&_0x141049['setAttribute']('footnoteId',_0x15509d,_0x1e795c);else{_0x1e795c=_0x141049['createElement']('footnoteDefinition',{'footnoteId':_0x15509d});const _0x357036=_0x159acc['data']['htmlProcessor']['toView'](_0xb34590);let _0x6a4a4e;if(_0x3b6a25)_0x6a4a4e=_0x159acc['data']['toModel'](_0x357036,_0x1e795c);else{_0x6a4a4e=_0x141049['createElement']('footnoteInlineContent');const _0x3a7d0a=_0x159acc['data']['toModel'](_0x357036,_0x6a4a4e);_0x141049['insert'](_0x3a7d0a,_0x6a4a4e);}_0x141049['append'](_0x6a4a4e,_0x1e795c);}_0x141049['insert'](_0x1e795c,_0x10b585,'end');}_0x190ade=null;});});}}function c(_0x36ba52,_0x751a4e){for(const {item:_0x21b8c0}of _0x36ba52['createRangeIn'](_0x751a4e))if(_0x21b8c0['is']('element','footnotesDefinitions'))return _0x21b8c0;return null;}function l(_0x490f6e){const _0x959c39=new Set();for(const {item:_0x733d5d}of _0x490f6e)_0x733d5d['is']('element','footnoteRef')&&_0x959c39['add'](_0x733d5d['getAttribute']('footnoteId'));return Array['from'](_0x959c39);}class i extends _0x4fc131{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2521b7}=this,{componentFactory:_0xd97081}=_0x2521b7['ui'];_0xd97081['add']('insertFootnote',E(_0x2521b7,_0x8e371f)),_0xd97081['add']('menuBar:insertFootnote',E(_0x2521b7,_0x5a2cd9)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x228ad0=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xfa11a3;for(const _0x5e93c5 in _0x228ad0){const _0x1e5f7b=_0x5e93c5,_0x15d18b=_0x228ad0[_0x1e5f7b];if('footnotesLicenseKeyValid'==_0x15d18b||'footnotesLicenseKeyInvalid'==_0x15d18b||'footnotesLicenseKeyExpired'==_0x15d18b||'footnotesLicenseKeyDomainLimit'==_0x15d18b||'footnotesLicenseKeyNotAllowed'==_0x15d18b||'footnotesLicenseKeyEvaluationLimit'==_0x15d18b||'footnotesLicenseKeyUsageLimit'==_0x15d18b){delete _0x228ad0[_0x1e5f7b],_0xfa11a3=_0x15d18b,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xfa11a3&&_0x228ad0['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xfa11a3&&_0x228ad0['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xfa11a3&&_0x228ad0['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xfa11a3&&_0x228ad0['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xfa11a3&&_0x228ad0['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xfa11a3&&_0x228ad0['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x3d4e37,_0xb7c980){const _0x2258d8=_0x3d4e37['commands']['get']('insertFootnote');return _0x49d264=>{const {t:t}=_0x49d264,_0x2ddc5d=new _0xb7c980(_0x49d264),_0x6f6873=_0x2ddc5d instanceof _0x5a2cd9;return _0x2ddc5d['bind']('isEnabled')['to'](_0x2258d8,'isEnabled'),_0x2ddc5d['set']({'label':t(_0x6f6873?'Footnote':'Insert\x20footnote'),'icon':_0x37a0a9,'tooltip':!0x0}),_0x2ddc5d['on']('execute',()=>{_0x2258d8['execute'](),_0x3d4e37['editing']['view']['focus']();}),_0x2ddc5d;};}class Footnotes extends _0x4fc131{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 _0x49231e{['refresh'](){const {editor:_0x20decb}=this,_0x997140=_0x20decb['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x997140,this['value']=_0x997140?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2ab2e0}){const {editor:_0x2dc703}=this,_0xd6048e=_0x2dc703['plugins']['get'](f),_0x20d3c7=_0xd6048e['getFootnotesDefinitionsObjectElement']();_0x20d3c7&&W['includes'](_0x2ab2e0)&&_0x2dc703['model']['change'](_0x4b06f1=>{_0x4b06f1['setAttribute']('footnotesListStyle',_0x2ab2e0,_0x20d3c7),_0xd6048e['_updateFootnotesCounters'](_0x4b06f1);});}}class C extends _0x49231e{['refresh'](){const {editor:_0x47f3e9}=this,_0x117924=_0x47f3e9['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x117924,this['value']=_0x117924?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x569d8e}){const {editor:_0x35e4f9}=this,_0x1ba1b5=_0x35e4f9['plugins']['get'](f),_0x301214=_0x1ba1b5['getFootnotesDefinitionsObjectElement']();_0x301214&&Number['isInteger'](_0x569d8e)&&_0x35e4f9['model']['change'](_0x305bd2=>{_0x305bd2['setAttribute']('footnotesListStart',_0x569d8e,_0x301214),_0x1ba1b5['_updateFootnotesCounters'](_0x305bd2);});}}class P extends _0x4fc131{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58d8d1}=this;_0x58d8d1['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x58d8d1['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x58d8d1['commands']['add']('footnotesStyle',new S(_0x58d8d1)),_0x58d8d1['commands']['add']('footnotesStart',new C(_0x58d8d1)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x157e52}=this,{schema:_0x17b939}=_0x157e52['model'];_0x17b939['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x12d893}=this,{conversion:_0x4d3e3c,model:_0x4cf4e5}=_0x12d893,{schema:_0x525d58}=_0x4cf4e5;_0x4d3e3c['for']('upcast')['add'](_0x52a405=>{_0x52a405['on']('element:ol',(_0x1c973a,_0x4297ff,_0x158951)=>{const _0x2d727e=_0x4297ff['viewItem'],_0x1cb413=_0x4297ff['modelCursor']?.['parent'];_0x2d727e['hasClass']('footnotes-list')&&_0x1cb413?.['is']('element','footnotesDefinitions')&&(function(_0x3f7f78,_0x161d2a,_0xdec999,_0x1e9721){if(!_0x1e9721['checkAttribute'](_0x161d2a,'footnotesListStart'))return;let _0x23c9c9=0x1;const _0xdbcde8=_0xdec999['consumable']['consume'](_0x3f7f78,{'attributes':'start'});if(_0xdbcde8){const _0x231a2a=Number['parseInt'](_0x3f7f78['getAttribute']('start'),0xa);Number['isNaN'](_0x231a2a)||(_0x23c9c9=_0x231a2a);}!_0xdbcde8&&_0x161d2a['hasAttribute']('footnotesListStart')||_0xdec999['writer']['setAttribute']('footnotesListStart',_0x23c9c9,_0x161d2a);}(_0x2d727e,_0x1cb413,_0x158951,_0x525d58),function(_0x1db115,_0x3b5996,_0x1569b4,_0x53fba4){if(!_0x53fba4['checkAttribute'](_0x3b5996,'footnotesListStyle'))return;let _0x2cddc9='decimal',_0x3436bc=!0x1;if(_0x1569b4['consumable']['consume'](_0x1db115,{'attributes':'type'})){const _0x570695={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x1db115['getAttribute']('type')];_0x570695&&(_0x2cddc9=_0x570695),_0x3436bc=!0x0;}_0x1569b4['consumable']['consume'](_0x1db115,{'styles':'list-style-type'})&&(_0x2cddc9=function(_0x184295){switch(_0x184295){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x184295;}}(_0x1db115['getStyle']('list-style-type')),_0x3436bc=!0x0),!_0x3436bc&&_0x3b5996['hasAttribute']('footnotesListStyle')||_0x1569b4['writer']['setAttribute']('footnotesListStyle',_0x2cddc9,_0x3b5996);}(_0x2d727e,_0x1cb413,_0x158951,_0x525d58));});}),_0x4d3e3c['for']('downcast')['add'](_0xa005a0=>{_0xa005a0['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5a1cbb,_0x1b582b,_0xe89553)=>{if(!_0xe89553['consumable']['consume'](_0x1b582b['item'],_0x5a1cbb['name']))return;const _0x5364cb=M(_0x1b582b['item'],_0xe89553['mapper']),{attributeNewValue:_0x3e05ee}=_0x1b582b;null==_0x3e05ee||0x1===_0x3e05ee?_0xe89553['writer']['removeAttribute']('start',_0x5364cb):_0xe89553['writer']['setAttribute']('start',String(_0x3e05ee),_0x5364cb);}),_0xa005a0['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x45afce,_0x339ab1,_0x289350)=>{if(!_0x289350['consumable']['consume'](_0x339ab1['item'],_0x45afce['name']))return;const _0x33e267=M(_0x339ab1['item'],_0x289350['mapper']),{attributeNewValue:_0xe576c3}=_0x339ab1;_0xe576c3&&'decimal'!==_0xe576c3?_0x289350['writer']['setStyle']('list-style-type',_0xe576c3,_0x33e267):_0x289350['writer']['removeStyle']('list-style-type',_0x33e267);});});}['_definePostfixer'](){const {editor:_0x52b91c}=this,{model:_0x62e472}=_0x52b91c,_0x557e02=_0x52b91c['plugins']['get'](f),_0x2aa95e=this['_getDefaultListStyle'](),_0x128420=this['_getDefaultStartIndex']();_0x62e472['document']['registerPostFixer'](_0xcab2bf=>{const _0x45e55a=_0x62e472['document']['differ']['getChanges']();let _0x421678=!0x1;for(const _0x4ad156 of _0x45e55a){if('insert'!==_0x4ad156['type']||'$text'===_0x4ad156['name'])continue;const _0x324daf=_0x62e472['createRangeOn'](_0x4ad156['position']['nodeAfter']);for(const _0x59daa6 of _0x324daf['getItems']())_0x59daa6['is']('element','footnotesDefinitions')&&(!_0x59daa6['hasAttribute']('footnotesListStart')&&_0x62e472['schema']['checkAttribute'](_0x59daa6,'footnotesListStart')&&(_0xcab2bf['setAttribute']('footnotesListStart',_0x128420,_0x59daa6),_0x421678=!0x0),!_0x59daa6['hasAttribute']('footnotesListStyle')&&_0x62e472['schema']['checkAttribute'](_0x59daa6,'footnotesListStyle')&&(_0xcab2bf['setAttribute']('footnotesListStyle',_0x2aa95e,_0x59daa6),_0x421678=!0x0));}return _0x421678&&_0x557e02['_updateFootnotesCounters'](_0xcab2bf),_0x421678;});}['_defineFormatter'](){const {editor:_0x5df90f}=this;_0x5df90f['plugins']['get'](f)['setFootnoteFormatter'](_0xd25c9a=>this['_formatFootnoteListValue'](_0xd25c9a));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5e2676,value:_0x3c25d9,digits:_0x3481ed}){const _0x45763c=_0x5e2676['getAttribute']('footnotesListStyle'),_0x3e9840=_0x5e2676['getAttribute']('footnotesListStart'),_0x3fbbd4=Math['floor'](_0x3c25d9)+(_0x3e9840??0x1)-0x1;switch(_0x45763c){case'decimal-leading-zero':return function(_0x4d72d0,_0x14ba49){return String(_0x4d72d0)['padStart'](_0x14ba49,'0');}(_0x3fbbd4,Math['max'](0x2,_0x3481ed));case'lower-alpha':case'lower-latin':return N(_0x3fbbd4,!0x1);case'upper-alpha':case'upper-latin':return N(_0x3fbbd4,!0x0);case'lower-roman':return X(_0x3fbbd4,!0x1);case'upper-roman':return X(_0x3fbbd4,!0x0);default:return String(_0x3fbbd4);}}}function M(_0x5d6663,_0x562321){const _0x4f1058=_0x562321['toViewElement'](_0x5d6663);return Array['from'](_0x4f1058['getChildren']())['find'](_0x300fd1=>_0x300fd1['is']('element','ol')&&_0x300fd1['hasClass']('footnotes-list'));}function N(_0x2bd66f,_0x30cfa3){let _0x4dc912='',_0x5438cd=_0x2bd66f;for(;_0x5438cd>0x0;){const _0x17df76=(_0x5438cd-0x1)%0x1a;_0x4dc912=String['fromCharCode'](0x61+_0x17df76)+_0x4dc912,_0x5438cd=Math['floor']((_0x5438cd-0x1)/0x1a);}return _0x30cfa3?_0x4dc912['toUpperCase']():_0x4dc912;}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(_0x11cb54,_0x30626f){let _0x138846='',_0x27cb2d=_0x11cb54;for(const {value:_0x4dede2,numeral:_0x1783dc}of V)for(;_0x27cb2d>=_0x4dede2;)_0x138846+=_0x1783dc,_0x27cb2d-=_0x4dede2;return _0x30626f?_0x138846:_0x138846['toLowerCase']();}class J extends _0x4e6711{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x2a57cc();['focusCycler'];constructor(_0xd756e1,{styleButtonViews:_0x463c89,styleGridAriaLabel:_0x34a593}){super(_0xd756e1),(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'](_0x463c89,_0x34a593),[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 _0x368fa6 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x368fa6['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 _0x2f8e98=_0x1bd328=>_0x1bd328['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2f8e98),this['keystrokes']['set']('arrowleft',_0x2f8e98),this['keystrokes']['set']('arrowup',_0x2f8e98),this['keystrokes']['set']('arrowdown',_0x2f8e98);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x46a9f6,_0x5d5699){const _0x58b24e=new _0x4e6711(this['locale']);return _0x58b24e['children']=_0x58b24e['createCollection'](),_0x58b24e['children']['addMany'](_0x46a9f6),_0x58b24e['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5d5699,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x58b24e['children']}),_0x58b24e['children']['delegate']('execute')['to'](this),_0x58b24e['focus']=function(){for(const _0x497d41 of this['children'])if(_0x497d41 instanceof _0x8e371f&&_0x497d41['isOn'])return void _0x497d41['focus']();this['children']['first']['focus']();},_0x58b24e['focusTracker']=new rt(),_0x58b24e['keystrokes']=new nt(),_0x58b24e['render'](),_0x58b24e['keystrokes']['listenTo'](_0x58b24e['element']),this['children']['add'](_0x58b24e),_0x58b24e;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1e25de=this['_createStartIndexPropertyView'](),_0x5e0971=[_0x1e25de],_0x4c54da=new it(this['locale'],_0x5e0971);return _0x4c54da['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x4c54da['buttonView']['bind']('isEnabled')['toMany'](_0x5e0971,'isEnabled',(..._0x4f421e)=>_0x4f421e['some'](_0x4b497e=>_0x4b497e)),_0x4c54da['buttonView']['on']('change:isEnabled',(_0x23e0f3,_0x5c1838,_0x3d9a76)=>{_0x3d9a76||(_0x4c54da['isCollapsed']=!0x0);}),this['children']['add'](_0x4c54da),[_0x1e25de,_0x4c54da];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xc731b6=new et(this['locale'],ot);return _0xc731b6['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xc731b6['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xc731b6['fieldView']['on']('input',()=>{const _0x23c5c6=_0xc731b6['fieldView']['element'],_0x336c84=_0x23c5c6['valueAsNumber'];Number['isNaN'](_0x336c84)?_0xc731b6['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x23c5c6['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x336c84}):_0xc731b6['errorText']=t(_0x336c84<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xc731b6;}}class j extends _0x4fc131{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x53c815,_0x320c08];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f0ced}=this,{componentFactory:_0x342982}=_0x1f0ced['ui'];_0x1f0ced['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x342982['add']('footnotesStyle',function(_0x705e8e){return _0x488ac9=>{const {t:t}=_0x488ac9,_0x42f7e9=_0x705e8e['commands']['get']('footnotesStyle'),_0x554fc7=_0x1ee889(_0x488ac9),{buttonView:_0x59df55}=_0x554fc7;return _0x554fc7['class']='ck-footnotes-styles-dropdown',_0x554fc7['bind']('isEnabled')['to'](_0x42f7e9,'isEnabled'),_0x59df55['set']({'label':t('Footnotes\x20style'),'icon':_0x37a0a9,'tooltip':!0x0}),_0x554fc7['once']('change:isOpen',()=>{const _0x45ecc4=function({editor:_0x55cfae,dropdownView:_0x385abd}){const {t:t}=_0x55cfae['locale'],_0x216688=t('Footnotes\x20definitions\x20styles'),_0x39e981=function(_0x48a4fc){const t=_0x48a4fc['locale']['t'],_0x42d8d5=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4af244},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5bc590},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x1a3ea7},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x381784},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x35b866},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2745ed}];return _0x42d8d5['map'](function(_0xf44a78){const _0x2d9140=_0xf44a78['locale'];return({label:_0x301d8c,icon:_0x31e7a3,tooltip:_0x1c7048,style:_0x102090})=>{const _0x2f4d4e=_0xf44a78['commands']['get']('footnotesStyle'),_0x19207b=new _0x8e371f(_0x2d9140);return _0x19207b['set']({'label':_0x301d8c,'icon':_0x31e7a3,'tooltip':_0x1c7048}),_0x19207b['bind']('isOn')['to'](_0x2f4d4e,'value',_0xd4b940=>_0xd4b940===_0x102090),_0x19207b['bind']('isEnabled')['to'](_0x2f4d4e,'isEnabled'),_0x19207b['on']('execute',()=>{_0xf44a78['execute']('footnotesStyle',{'value':_0x102090}),_0xf44a78['editing']['view']['focus']();}),_0x19207b;};}(_0x48a4fc));}(_0x55cfae),_0x50bc3d=new J(_0x55cfae['locale'],{'styleGridAriaLabel':_0x216688,'styleButtonViews':_0x39e981}),_0x38b8ba=_0x55cfae['commands']['get']('footnotesStart');return _0x50bc3d['startIndexFieldView']['bind']('isEnabled')['to'](_0x38b8ba),_0x50bc3d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x38b8ba),_0x50bc3d['on']('footnotesListStart',(_0x2124ff,_0x3930da)=>{_0x55cfae['execute']('footnotesStart',{'value':_0x3930da['startIndex']});}),_0x50bc3d['delegate']('execute')['to'](_0x385abd),_0x50bc3d;}({'editor':_0x705e8e,'dropdownView':_0x554fc7});_0x554fc7['panelView']['children']['add'](_0x45ecc4);}),_0x554fc7;};}(_0x1f0ced));}['afterInit'](){const {editor:_0x362625}=this,{t:t}=_0x362625['locale'],_0xcdf63c=_0x362625['plugins']['get'](_0x320c08),{defaultPositions:_0x492423}=_0x4fdc30;_0xcdf63c['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x362625['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1ca07b=>{let _0x9475b2=_0x1ca07b['getFirstPosition']()?.['parent'];return _0x9475b2?.['is']('$text')&&(_0x9475b2=_0x9475b2['parent']),_0x9475b2?.['is']('element')?_0x9475b2['findAncestor'](Q):null;},'positions':[_0x492423['southArrowNorth'],_0x492423['southArrowNorthMiddleWest'],_0x492423['southArrowNorthMiddleEast'],_0x492423['southArrowNorthWest'],_0x492423['southArrowNorthEast'],_0x492423['northArrowSouth'],_0x492423['northArrowSouthMiddleWest'],_0x492423['northArrowSouthMiddleEast'],_0x492423['northArrowSouthWest'],_0x492423['northArrowSouthEast'],_0x492423['viewportStickyNorth']]});}}class FootnotesProperties extends _0x4fc131{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Footnotes,e as FootnotesClipboard,r as FootnotesEditing,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.7.2-alpha.0",
3
+ "version": "47.7.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.7.2-alpha.0",
27
- "@ckeditor/ckeditor5-ui": "47.7.2-alpha.0",
28
- "@ckeditor/ckeditor5-engine": "47.7.2-alpha.0",
29
- "@ckeditor/ckeditor5-icons": "47.7.2-alpha.0",
30
- "@ckeditor/ckeditor5-widget": "47.7.2-alpha.0",
31
- "@ckeditor/ckeditor5-clipboard": "47.7.2-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "47.7.2-alpha.0",
33
- "ckeditor5": "47.7.2-alpha.0"
26
+ "@ckeditor/ckeditor5-core": "47.7.2",
27
+ "@ckeditor/ckeditor5-ui": "47.7.2",
28
+ "@ckeditor/ckeditor5-engine": "47.7.2",
29
+ "@ckeditor/ckeditor5-icons": "47.7.2",
30
+ "@ckeditor/ckeditor5-widget": "47.7.2",
31
+ "@ckeditor/ckeditor5-clipboard": "47.7.2",
32
+ "@ckeditor/ckeditor5-utils": "47.7.2",
33
+ "ckeditor5": "47.7.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 _0x31d412}from'ckeditor5/src/core.js';import{isWidget as _0x211e94,toWidget as _0x8a5f9b,toWidgetEditable as _0xa188de}from'ckeditor5/src/widget.js';import{uid as _0xcfb3f8}from'ckeditor5/src/utils.js';import{PointerObserver as _0xbfc670,ClickObserver as _0x45ffb7}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5ccc84}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x107a5d}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x31d412{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5ccc84];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4639cd}=this;_0x4639cd['config']['define']('footnotes.multiBlock',!0x0),_0x4639cd['commands']['add']('insertFootnote',new _0x107a5d(_0x4639cd)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x20f173){const _0x5ba431=_0xe98dd8([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]),_0x3ddd68=0x47a28506,_0x1a8603=0x47a50f26^_0x3ddd68,_0x34d816=window[_0xe98dd8([0x44,0x61,0x74,0x65])][_0xe98dd8([0x6e,0x6f,0x77])](),_0x28be49=_0x20f173[_0xe98dd8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1936fa=new window[(_0xe98dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x517a73=>{_0x28be49[_0xe98dd8([0x6f,0x6e,0x63,0x65])](_0xe98dd8([0x72,0x65,0x61,0x64,0x79]),_0x517a73);}),_0x22669d={[_0xe98dd8([0x6b,0x74,0x79])]:_0xe98dd8([0x45,0x43]),[_0xe98dd8([0x75,0x73,0x65])]:_0xe98dd8([0x73,0x69,0x67]),[_0xe98dd8([0x63,0x72,0x76])]:_0xe98dd8([0x50,0x2d,0x32,0x35,0x36]),[_0xe98dd8([0x78])]:_0xe98dd8([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]),[_0xe98dd8([0x79])]:_0xe98dd8([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]),[_0xe98dd8([0x61,0x6c,0x67])]:_0xe98dd8([0x45,0x53,0x32,0x35,0x36])},_0x5d7312=_0x28be49[_0xe98dd8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe98dd8([0x67,0x65,0x74])](_0xe98dd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xb260a8(){let _0x56228a,_0x46ac19=null,_0xc4af43=null;try{if(_0x5d7312==_0xe98dd8([0x47,0x50,0x4c]))return _0xe98dd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56228a=_0xa09db(),!_0x56228a)return _0xe98dd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56228a[_0xe98dd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xc4af43=_0x2c5e81(_0x56228a[_0xe98dd8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56228a[_0xe98dd8([0x6a,0x74,0x69])])),await _0x3b63f5()?_0x5cd56c()?_0x25017e()?_0xe98dd8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x50f248()?(_0x56228a[_0xe98dd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe98dd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46ac19=_0x10f26f(_0xe98dd8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x331d75()):_0xe98dd8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe98dd8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe98dd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe98dd8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x25017e(){const _0x26b7c2=[_0xe98dd8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe98dd8([0x74,0x72,0x69,0x61,0x6c])][_0xe98dd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56228a[_0xe98dd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x34d816/0x3e8:0xe10*_0x1a8603;return _0x56228a[_0xe98dd8([0x65,0x78,0x70])]<_0x26b7c2;}function _0x5cd56c(){const _0x530a92=_0x56228a[_0xe98dd8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x530a92&&(!!_0x530a92[_0xe98dd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe98dd8([0x2a]))||!!_0x530a92[_0xe98dd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe98dd8([0x46,0x4f,0x4f])));}function _0x50f248(){const _0x2d0e12=_0x56228a[_0xe98dd8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2d0e12||0x0==_0x2d0e12[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30f8e7}=new URL(window[_0xe98dd8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2d0e12[_0xe98dd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30f8e7))return!0x0;const _0x345fd0=_0x30f8e7[_0xe98dd8([0x73,0x70,0x6c,0x69,0x74])](_0xe98dd8([0x2e]));return _0x2d0e12[_0xe98dd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2c779a=>_0x2c779a[_0xe98dd8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe98dd8([0x2a])))[_0xe98dd8([0x6d,0x61,0x70])](_0x4b6a02=>_0x4b6a02[_0xe98dd8([0x73,0x70,0x6c,0x69,0x74])](_0xe98dd8([0x2e])))[_0xe98dd8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36a437=>_0x36a437[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x345fd0[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe98dd8([0x6d,0x61,0x70])](_0x190f58=>Array(_0x345fd0[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x190f58[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe98dd8([0x66,0x69,0x6c,0x6c])](_0x190f58[0x0]===_0xe98dd8([0x2a])?_0xe98dd8([0x2a]):'')[_0xe98dd8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x190f58))[_0xe98dd8([0x73,0x6f,0x6d,0x65])](_0x187b55=>_0x345fd0[_0xe98dd8([0x65,0x76,0x65,0x72,0x79])]((_0x586c1f,_0xf5024a)=>_0x187b55[_0xf5024a]===_0x586c1f||_0x187b55[_0xf5024a]===_0xe98dd8([0x2a])));}function _0x331d75(){return _0x46ac19&&_0xc4af43?new window[(_0xe98dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x355d58,_0x5de262)=>{_0x46ac19[_0xe98dd8([0x74,0x68,0x65,0x6e])](_0x355d58,_0x5de262),_0xc4af43[_0xe98dd8([0x74,0x68,0x65,0x6e])](_0x202eb4=>{_0x202eb4!=_0xe98dd8([0x56,0x61,0x6c,0x69,0x64])&&_0x355d58(_0x202eb4);},_0x5de262);}):_0x46ac19||_0xc4af43||_0xe98dd8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2c5e81(_0x276c16,_0x32378a){return new window[(_0xe98dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10496a=>{if(_0x6ef80d())return _0x10496a(_0xe98dd8([0x56,0x61,0x6c,0x69,0x64]));_0x429fa2(),_0x28be49[_0xe98dd8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe98dd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3b9c5d=!0x1;const _0x34c39f=_0xcfb3f8();function _0x5c9c7a(_0x5e6efb){return!!_0x5e6efb&&(typeof _0x5e6efb===_0xe98dd8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5e6efb===_0xe98dd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5e6efb[_0xe98dd8([0x74,0x68,0x65,0x6e])]===_0xe98dd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5e6efb[_0xe98dd8([0x63,0x61,0x74,0x63,0x68])]===_0xe98dd8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x17a5de(_0x23594d){_0x433ee1(_0x23594d)[_0xe98dd8([0x74,0x68,0x65,0x6e])](_0x2e9245=>{if(!_0x2e9245||_0x2e9245[_0xe98dd8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe98dd8([0x6f,0x6b]))return _0xe98dd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x514a73(_0x5173a0(_0x34c39f+_0x32378a))!=_0x2e9245[_0xe98dd8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe98dd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe98dd8([0x56,0x61,0x6c,0x69,0x64]);})[_0xe98dd8([0x74,0x68,0x65,0x6e])](_0x40b55b=>(_0x2f4edb(),_0x40b55b),()=>{const _0x9b28f3=_0x2be965();return null==_0x9b28f3?(_0x2f4edb(),_0xe98dd8([0x56,0x61,0x6c,0x69,0x64])):_0xe98dd8(_0x34d816-_0x9b28f3>(0x63ae0106^_0x3ddd68)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe98dd8([0x74,0x68,0x65,0x6e])](_0x10496a)[_0xe98dd8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10496a(_0xe98dd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2f4cc1=0x47946b86^_0x3ddd68;function _0x2f4edb(){const _0x299529=_0xe98dd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x514a73(_0x5173a0(_0x276c16)),_0x4ddf41=_0x506a08(_0x514a73(window[_0xe98dd8([0x4d,0x61,0x74,0x68])][_0xe98dd8([0x63,0x65,0x69,0x6c])](_0x34d816/_0x2f4cc1)));window[_0xe98dd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe98dd8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x299529,_0x4ddf41);}function _0x2be965(){const _0x579fdb=_0xe98dd8([0x6c,0x6c,0x63,0x74,0x2d])+_0x514a73(_0x5173a0(_0x276c16)),_0x5355a9=window[_0xe98dd8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe98dd8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x579fdb);return _0x5355a9?window[_0xe98dd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x506a08(_0x5355a9),0x10)*_0x2f4cc1:null;}function _0x433ee1(_0x5383f9){return new window[(_0xe98dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4722d1,_0x5be324)=>{_0x5383f9[_0xe98dd8([0x74,0x68,0x65,0x6e])](_0x4722d1,_0x5be324),window[_0xe98dd8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5be324,0x47a351c6^_0x3ddd68);});}}_0x28be49[_0xe98dd8([0x6f,0x6e])](_0xe98dd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xc9f82f,_0x13c27f)=>{if(_0x13c27f[0x0]!=_0x276c16)return _0x10496a(_0xe98dd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x13c27f[0x1]={..._0x13c27f[0x1],[_0xe98dd8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x34c39f};},{[_0xe98dd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe98dd8([0x68,0x69,0x67,0x68])}),_0x28be49[_0xe98dd8([0x6f,0x6e])](_0xe98dd8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5e90e0=>{_0x5c9c7a(_0x5e90e0[_0xe98dd8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3b9c5d=!0x0,_0x17a5de(_0x5e90e0[_0xe98dd8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe98dd8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe98dd8([0x6c,0x6f,0x77])}),_0x1936fa[_0xe98dd8([0x74,0x68,0x65,0x6e])](()=>{_0x3b9c5d||_0x10496a(_0xe98dd8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x6ef80d(){return _0x28be49[_0xe98dd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe98dd8([0x76,0x69,0x65,0x77])][_0xe98dd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe98dd8([0x61,0x75,0x74,0x6f]);}function _0x429fa2(){_0x28be49[_0xe98dd8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe98dd8([0x76,0x69,0x65,0x77])][_0xe98dd8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe98dd8([0x61,0x75,0x74,0x6f]);}}function _0x10f26f(_0xbbb19e){const _0x164ece=[new window[(_0xe98dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5dffbe=>setTimeout(_0x5dffbe,0x47abbbca^_0x3ddd68)),_0x1936fa[_0xe98dd8([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe98dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ca938=>{let _0x3c2452=0x0;_0x28be49[_0xe98dd8([0x6d,0x6f,0x64,0x65,0x6c])][_0xe98dd8([0x6f,0x6e])](_0xe98dd8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1a81da,_0x211a6e)=>{_0x211a6e[0x0][_0xe98dd8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3c2452++,_0x3c2452==(0x47a280ee^_0x3ddd68)&&(_0x2ca938(),_0x1a81da[_0xe98dd8([0x6f,0x66,0x66])]());});}))];return window[_0xe98dd8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe98dd8([0x72,0x61,0x63,0x65])](_0x164ece)[_0xe98dd8([0x74,0x68,0x65,0x6e])](()=>_0xbbb19e);}async function _0x4f64e8(){await _0x1936fa,_0x28be49[_0xe98dd8([0x6d,0x6f,0x64,0x65,0x6c])][_0xe98dd8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x48e70c,_0x28be49[_0xe98dd8([0x6d,0x6f,0x64,0x65,0x6c])][_0xe98dd8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x48e70c,_0x28be49[_0xe98dd8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe98dd8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xa25000(_0x48263b){const _0x32ac10=_0x31dc65();_0x28be49[_0x32ac10]=_0xe98dd8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x48263b,_0x48263b!=_0xe98dd8([0x56,0x61,0x6c,0x69,0x64])&&_0x4f64e8();}function _0x31dc65(){const _0x222c5f=window[_0xe98dd8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe98dd8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe98dd8([0x6e,0x6f,0x77])]())[_0xe98dd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe98dd8([0x2e]),'');let _0x2c8514=_0xe98dd8([0x75]);for(let _0xec72db=0x0;_0xec72db<_0x222c5f[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xec72db+=0x2){let _0x426a4d=window[_0xe98dd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x222c5f[_0xe98dd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xec72db,_0xec72db+0x2));_0x426a4d>=_0x5ba431[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x426a4d-=_0x5ba431[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c8514+=_0x5ba431[_0x426a4d];}return _0x2c8514;}function _0xa09db(){const _0x87b3d7=_0x5d7312[_0xe98dd8([0x73,0x70,0x6c,0x69,0x74])](_0xe98dd8([0x2e]));if(0x3!=_0x87b3d7[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x766c53(_0x87b3d7[0x1]);function _0x766c53(_0x59a0b8){const _0x5e6f35=_0x30bb99(_0x59a0b8);return _0x5e6f35&&_0x4f8381()?_0x5e6f35:null;function _0x4f8381(){const _0x3f3cc8=_0x5e6f35[_0xe98dd8([0x6a,0x74,0x69])],_0x58ffe0=window[_0xe98dd8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f3cc8[_0xe98dd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3f3cc8[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x40c181={..._0x5e6f35,[_0xe98dd8([0x6a,0x74,0x69])]:_0x3f3cc8[_0xe98dd8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3f3cc8[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x40c181[_0xe98dd8([0x76,0x63])],_0x5173a0(_0x40c181)==_0x58ffe0;}}}async function _0x3b63f5(){let _0x56de44=!0x0;try{const _0x236c2b=_0x5d7312[_0xe98dd8([0x73,0x70,0x6c,0x69,0x74])](_0xe98dd8([0x2e])),[_0x15e6af,_0x532f0d,_0x2cdb55]=_0x236c2b;return _0x53fa20(_0x15e6af),await _0x31816c(_0x15e6af,_0x532f0d,_0x2cdb55),_0x56de44;}catch{return!0x1;}function _0x53fa20(_0x44caf5){const _0x568e05=_0x30bb99(_0x44caf5);_0x568e05&&_0x568e05[_0xe98dd8([0x61,0x6c,0x67])]==_0xe98dd8([0x45,0x53,0x32,0x35,0x36])||(_0x56de44=!0x1);}async function _0x31816c(_0x2b0c71,_0xa633ba,_0x2c5388){const _0x590cb6=window[_0xe98dd8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe98dd8([0x66,0x72,0x6f,0x6d])](_0x5021c4(_0x2c5388),_0x4febe7=>_0x4febe7[_0xe98dd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1b4a40=new window[(_0xe98dd8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe98dd8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2b0c71+_0xe98dd8([0x2e])+_0xa633ba),_0x574033=window[_0xe98dd8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe98dd8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x574033)return;const _0x3ed254=await _0x574033[_0xe98dd8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe98dd8([0x6a,0x77,0x6b]),_0x22669d,{[_0xe98dd8([0x6e,0x61,0x6d,0x65])]:_0xe98dd8([0x45,0x43,0x44,0x53,0x41]),[_0xe98dd8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe98dd8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe98dd8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x574033[_0xe98dd8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe98dd8([0x6e,0x61,0x6d,0x65])]:_0xe98dd8([0x45,0x43,0x44,0x53,0x41]),[_0xe98dd8([0x68,0x61,0x73,0x68])]:{[_0xe98dd8([0x6e,0x61,0x6d,0x65])]:_0xe98dd8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3ed254,_0x590cb6,_0x1b4a40)||(_0x56de44=!0x1);}}function _0x30bb99(_0x57d8b0){return _0x57d8b0[_0xe98dd8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe98dd8([0x65,0x79]))?JSON[_0xe98dd8([0x70,0x61,0x72,0x73,0x65])](_0x5021c4(_0x57d8b0)):null;}function _0x5021c4(_0x52387e){return window[_0xe98dd8([0x61,0x74,0x6f,0x62])](_0x52387e[_0xe98dd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe98dd8([0x2b]))[_0xe98dd8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe98dd8([0x2f])));}function _0x5173a0(_0x180c5f){let _0x38848b=0x1505;function _0x332cff(_0x4f7f70){for(let _0x5b7992=0x0;_0x5b7992<_0x4f7f70[_0xe98dd8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5b7992++){const _0xd0532e=_0x4f7f70[_0xe98dd8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x5b7992);_0x38848b=(_0x38848b<<0x5)+_0x38848b+_0xd0532e,_0x38848b&=_0x38848b;}}function _0x23c421(_0x52fc93){Array[_0xe98dd8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x52fc93)?_0x52fc93[_0xe98dd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23c421):_0x52fc93&&typeof _0x52fc93==_0xe98dd8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe98dd8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x52fc93)[_0xe98dd8([0x73,0x6f,0x72,0x74])]()[_0xe98dd8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x390216,_0x535f94])=>{_0x332cff(_0x390216),_0x23c421(_0x535f94);}):_0x332cff(window[_0xe98dd8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x52fc93));}return _0x23c421(_0x180c5f),_0x38848b>>>0x0;}function _0x514a73(_0x373d14){return _0x373d14[_0xe98dd8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe98dd8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe98dd8([0x30]));}function _0x506a08(_0x30544e){return _0x30544e[_0xe98dd8([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe98dd8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe98dd8([0x6a,0x6f,0x69,0x6e])]('');}function _0x48e70c(){}function _0xe98dd8(_0x4c5650){return _0x4c5650['map'](_0x20e9e7=>String['fromCharCode'](_0x20e9e7))['join']('');}_0xa25000(await _0xb260a8());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2ae7bb){const {plugins:_0x9be680,editing:_0x4ceae2,model:_0x50612b}=this['editor'],_0x27e6e6=_0x9be680['get'](_0x5ccc84)['getFootnote'](_0x2ae7bb);return!!_0x27e6e6&&(_0x50612b['change'](_0x25ee78=>{_0x25ee78['setSelection'](_0x25ee78['createPositionAt'](_0x27e6e6['definition'],'end'));}),_0x4ceae2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3ca87b){const {plugins:_0x3e374f,editing:_0x12c53a,model:_0x567a6d}=this['editor'],_0x54ed6c=_0x3e374f['get'](_0x5ccc84)['getFootnote'](_0x3ca87b);return!!_0x54ed6c&&(_0x567a6d['change'](_0x1dcc5a=>{_0x1dcc5a['setSelection'](_0x54ed6c['reference'],'on');}),_0x12c53a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x415ea9}=this['editor']['model'],_0x5b2ac0=this['editor']['config']['get']('footnotes.multiBlock');_0x415ea9['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x415ea9['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x415ea9['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5b2ac0?_0x415ea9['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x415ea9['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x415ea9['addChildCheck'](_0x221197=>{for(const _0x3873cb of _0x221197)if('footnoteDefinition'===_0x3873cb['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2bca9c}=this,{conversion:_0x40d3b5,editing:_0x471f1f}=_0x2bca9c,{t:t}=_0x2bca9c['locale'];_0x40d3b5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4657f5,{writer:_0x4a14e9,consumable:_0x24dd9d})=>{const _0x3cb131=_0x4657f5['getChild'](0x0);if(!_0x3cb131||!_0x3cb131['is']('element','a'))return null;const _0x506a77=_0x3cb131['getAttribute']('href')||'';if(!_0x506a77['startsWith']('#'))return null;const _0x441b8f=_0x506a77['replace'](/^#/,'');if(!_0x441b8f)return null;_0x24dd9d['consume'](_0x3cb131,{'name':!0x0,'attributes':['href']});for(const {item:_0x3203cb}of _0x471f1f['view']['createRangeIn'](_0x3cb131))_0x3203cb['is']('$textProxy')?_0x24dd9d['consume'](_0x3203cb['textNode'],{'name':!0x0}):_0x3203cb['is']('element')&&_0x24dd9d['consume'](_0x3203cb,{'name':!0x0});return _0x4a14e9['createElement']('footnoteRef',{'footnoteId':_0x441b8f});}}),_0x40d3b5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b1cc6,{writer:_0x54d912})=>b(_0x4b1cc6,_0x54d912)}),_0x40d3b5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xaa04a3,{writer:_0x13d32a})=>{const _0x3fad4d=_0xaa04a3['getAttribute']('footnoteCounter');return _0x8a5f9b(b(_0xaa04a3,_0x13d32a),_0x13d32a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3fad4d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x139036}=this,{t:t}=_0x139036['locale'],{conversion:_0x17e83d}=_0x139036;_0x17e83d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x17e83d['for']('upcast')['add'](_0x7b5e9=>{_0x7b5e9['on']('element:ol',(_0x3c6339,_0x21edc9,_0x537930)=>{const _0x20c1f5=_0x21edc9['viewItem'];if(!_0x20c1f5['hasClass']('footnotes-list')||!_0x21edc9['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x537930['consumable']['consume'](_0x20c1f5,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x36d6b9,modelCursor:_0x1d83cf}=_0x537930['convertChildren'](_0x21edc9['viewItem'],_0x21edc9['modelCursor']);_0x21edc9['modelRange']=_0x36d6b9,_0x21edc9['modelCursor']=_0x1d83cf;}),_0x7b5e9['on']('element:hr',(_0x20289a,_0x424275,_0x6261fb)=>{const _0x5ee511=_0x424275['viewItem'];_0x5ee511['hasClass']('footnotes-divider')&&_0x424275['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x6261fb['consumable']['consume'](_0x5ee511,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x17e83d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x25af6e,{writer:_0x48ab92})=>D(_0x48ab92)}),_0x17e83d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x48035d,{writer:_0x27cdb1})=>{const _0x3cc499=D(_0x27cdb1,{'data-footnotes-list-label':t('Footnotes')}),_0x2c7bd5=_0x8a5f9b(_0x3cc499,_0x27cdb1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x27cdb1['setCustomProperty']('footnotesDefinitions',!0x0,_0x2c7bd5),_0x2c7bd5;}});}['_defineDefinitionConverters'](){const {editor:_0x59c5dd}=this,{conversion:_0x2f5ba3,locale:_0x32ebcc}=_0x59c5dd,_0x2b5a01=_0x59c5dd['config']['get']('footnotes.multiBlock');_0x2f5ba3['for']('upcast')['add'](_0x4dc1cb=>{_0x4dc1cb['on']('element:li',(_0x239027,_0x1abbf6,_0x337d3b)=>{const _0x1d0e2b=_0x1abbf6['viewItem'];if(!_0x1d0e2b['hasClass']('footnote-definition')||!_0x1d0e2b['getAttribute']('id'))return;const _0x5c712b=_0x1d0e2b['parent'];if(!_0x5c712b['is']('element','ol')||!_0x5c712b['hasClass']('footnotes-list'))return;if(!_0x337d3b['consumable']['test'](_0x1d0e2b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5184e1=_0x337d3b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1d0e2b['getAttribute']('id')});if(!_0x337d3b['safeInsert'](_0x5184e1,_0x1abbf6['modelCursor']))return;_0x337d3b['consumable']['consume'](_0x1d0e2b,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x471f07=Array['from'](_0x1d0e2b['getChildren']())['find'](_0x21c524=>_0x21c524['is']('element')&&_0x21c524['hasClass']('footnote-content'));for(const _0x3c08d of _0x1d0e2b['getChildren']())_0x3c08d['is']('element')&&(_0x337d3b['consumable']['consume'](_0x3c08d,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x337d3b['consumable']['consume'](_0x3c08d,{'name':!0x0,'classes':'footnote-content'}));if(_0x471f07){if(_0x2b5a01)_0x337d3b['convertChildren'](_0x471f07,_0x5184e1);else{const _0x347fae=_0x337d3b['writer']['createElement']('footnoteInlineContent');_0x337d3b['writer']['insert'](_0x347fae,_0x5184e1),_0x337d3b['convertChildren'](_0x471f07,_0x347fae);}}_0x337d3b['updateConversionResult'](_0x5184e1,_0x1abbf6);});}),_0x2f5ba3['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3108c1,{writer:_0x4bbde1})=>y(_0x3108c1,_0x4bbde1,_0x32ebcc,{'dataPipeline':!0x0})}),_0x2f5ba3['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x25ece0,{writer:_0x324f0e})=>y(_0x25ece0,_0x324f0e,_0x32ebcc)});}['_defineBogusParagraphConverters'](){const {editor:_0x6c996a}=this,{conversion:_0x14685a}=_0x6c996a;_0x6c996a['config']['get']('footnotes.multiBlock')?(_0x14685a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x14685a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x6c996a['model']['document'],'change:data',()=>{!function(_0x12c869,_0x410c6c){const _0x494c71=_0x12c869['document']['differ'],_0x4ae218=new Set();for(const _0x308de6 of _0x494c71['getChanges']()){const _0x32fa33='attribute'==_0x308de6['type']?_0x308de6['range']['start']['parent']:_0x308de6['position']['parent'];_0x32fa33['is']('element','footnoteDefinition')&&_0x4ae218['add'](_0x32fa33);}for(const _0x2fd70a of _0x4ae218['values']()){const _0x420af4=Array['from'](_0x2fd70a['getChildren']())['filter'](_0x58c57c=>v(_0x58c57c,_0x410c6c['mapper']));for(const _0x232235 of _0x420af4)_0x410c6c['reconvertItem'](_0x232235);}}(_0x6c996a['model'],_0x6c996a['editing']);})):(_0x14685a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x14685a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4c41f1,{writer:_0x4886f9})=>{const _0x3c0ffa=_0x4886f9['createContainerElement']('span');return _0x4886f9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c0ffa),_0x3c0ffa;}}));}['_defineKeyboardHandlers'](){const {editor:_0x50871d}=this,{editing:_0x34fa81,t:t}=_0x50871d,_0x263300=_0x50871d['model']['document']['selection'];_0x50871d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x50871d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x34fa81['view']['document'],'enter',(_0x16e52b,_0x42bb3e)=>{const _0x27309e=function(_0x39bc28){const _0x4c4602=_0x39bc28['getSelectedElement']();if(_0x4c4602?.['is']('element','footnoteRef'))return _0x4c4602;return null;}(_0x263300);if(_0x27309e){const _0xed51dd=_0x27309e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xed51dd),_0x42bb3e['preventDefault'](),_0x16e52b['stop']();}},{'context':_0x211e94});}['_defineClickHandlers'](){const {editor:_0x454e8d}=this,{editing:_0x3f7326}=_0x454e8d;_0x454e8d['editing']['view']['addObserver'](_0xbfc670),_0x454e8d['editing']['view']['addObserver'](_0x45ffb7);let _0x4cbd69=!0x1;this['listenTo'](_0x3f7326['view']['document'],'pointerdown',(_0x194874,_0x35e63a)=>{const {target:_0x20c8ff}=_0x35e63a,_0x359f12=_0x3f7326['view']['document']['selection'];_0x4cbd69=!!(_0x20c8ff?.['is']('element','a')&&_0x20c8ff['parent']?.['is']('element','sup')&&_0x20c8ff['parent']['hasClass']('footnote'))&&_0x359f12['getSelectedElement']()===_0x20c8ff['parent'];},{'priority':'high'}),this['listenTo'](_0x3f7326['view']['document'],'click',(_0x3a4641,_0x2de70c)=>{const {target:_0x31687b}=_0x2de70c;if(!_0x31687b?.['is']('element','a'))return;if(_0x31687b['parent']?.['is']('element','sup')&&_0x31687b['parent']['hasClass']('footnote')&&!_0x4cbd69)return void _0x2de70c['preventDefault']();let _0x5b22fd=_0x31687b['getAttribute']('href');if(!_0x5b22fd?.['startsWith']('#'))return;_0x5b22fd=_0x5b22fd['slice'](0x1);let _0x59474e=!0x1;(_0x5b22fd['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5b22fd['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5b22fd))&&(_0x59474e=!0x0),_0x59474e&&(_0x2de70c['preventDefault'](),_0x3a4641['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x548c4c}={}){return(_0xd2bf48,{writer:_0x1bcc4a})=>{if(!g(_0xd2bf48))return null;if(!_0x548c4c)return _0x1bcc4a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x399d7e=_0x1bcc4a['createContainerElement']('p');return _0x1bcc4a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x399d7e),_0x399d7e;};}function g(_0x508497){const {parent:_0x21a7e9}=_0x508497;if(!_0x21a7e9?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x21a7e9['childCount'])return!0x1;for(const _0x1a8117 of _0x508497['getAttributeKeys']())if(!_0x1a8117['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1a8117)return!0x1;return!0x0;}function v(_0xb78697,_0x440f4d){if(!_0xb78697['is']('element','paragraph'))return!0x1;const _0x25e334=_0x440f4d['toViewElement'](_0xb78697);return!!_0x25e334&&g(_0xb78697)!==_0x25e334['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x6533c1){return _0x211e94(_0x6533c1)&&_0x6533c1['is']('containerElement')&&!!_0x6533c1['getCustomProperty']('footnotesDefinitions');}function D(_0x49def6,_0x3496b9={}){const _0x178b2f=_0x49def6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x195800=_0x49def6['createContainerElement']('ol',{'class':'footnotes-list'},_0x49def6['createSlot']());return _0x49def6['createContainerElement']('div',{'class':'footnotes',..._0x3496b9},[_0x178b2f,_0x195800]);}function b(_0x1627ad,_0x14fe39){const _0x2326df=_0x1627ad['getAttribute']('footnoteId'),_0x315d38=_0x1627ad['getAttribute']('footnoteCounter'),_0x1b97fe=_0x14fe39['createUIElement']('a',{'href':'#'+_0x2326df},function(_0x1be5f5){const _0x2a334c=this['toDomElement'](_0x1be5f5);return _0x2a334c['textContent']=_0x315d38,_0x2a334c;}),_0x6b75c=_0x14fe39['createContainerElement']('sup',{'id':'ref-'+_0x2326df,'class':'footnote'},[_0x1b97fe]);return _0x6b75c['getFillerOffset']=()=>null,_0x6b75c;}function y(_0x483e79,_0x4c1e82,_0xb47e3d,{dataPipeline:_0x417047}={}){const {t:t}=_0xb47e3d,_0x216433=_0x483e79['getAttribute']('footnoteId'),_0x3d9d34=_0x4c1e82['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x216433},function(_0xa5a78a){const _0x4bf863=this['toDomElement'](_0xa5a78a);return _0x4bf863['innerText']='^',_0x4bf863;}),_0x5cad14=_0x417047?_0x4c1e82['createContainerElement']('div',{'class':'footnote-content'}):_0xa188de(_0x4c1e82['createEditableElement']('div',{'class':'footnote-content'}),_0x4c1e82,{'label':t('Footnote\x20content.')});return _0x4c1e82['insert'](_0x4c1e82['createPositionAt'](_0x5cad14,0x0),_0x4c1e82['createSlot']()),_0x4c1e82['createContainerElement']('li',{'class':'footnote-definition','id':_0x216433},[_0x3d9d34,_0x5cad14]);}
23
+ import{Plugin as _0x9305a2}from'ckeditor5/src/core.js';import{isWidget as _0x19820f,toWidget as _0x32c383,toWidgetEditable as _0x19cd7c}from'ckeditor5/src/widget.js';import{uid as _0x13f973}from'ckeditor5/src/utils.js';import{PointerObserver as _0x26ea48,ClickObserver as _0x5c3b29}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5e2be2}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5a7e25}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x9305a2{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5e2be2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x114086}=this;_0x114086['config']['define']('footnotes.multiBlock',!0x0),_0x114086['commands']['add']('insertFootnote',new _0x5a7e25(_0x114086)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x311f66){const _0x59d034=_0xe9c830([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]),_0x35dc0f=0x47a28506,_0x4aaa12=0x47a50f6e^_0x35dc0f,_0x1fb4dd=window[_0xe9c830([0x44,0x61,0x74,0x65])][_0xe9c830([0x6e,0x6f,0x77])](),_0x3ad186=_0x311f66[_0xe9c830([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1b4e59=new window[(_0xe9c830([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fdb9=>{_0x3ad186[_0xe9c830([0x6f,0x6e,0x63,0x65])](_0xe9c830([0x72,0x65,0x61,0x64,0x79]),_0x11fdb9);}),_0x486a5f={[_0xe9c830([0x6b,0x74,0x79])]:_0xe9c830([0x45,0x43]),[_0xe9c830([0x75,0x73,0x65])]:_0xe9c830([0x73,0x69,0x67]),[_0xe9c830([0x63,0x72,0x76])]:_0xe9c830([0x50,0x2d,0x32,0x35,0x36]),[_0xe9c830([0x78])]:_0xe9c830([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]),[_0xe9c830([0x79])]:_0xe9c830([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]),[_0xe9c830([0x61,0x6c,0x67])]:_0xe9c830([0x45,0x53,0x32,0x35,0x36])},_0x4fb9f3=_0x3ad186[_0xe9c830([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe9c830([0x67,0x65,0x74])](_0xe9c830([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3bf74d(){let _0xb92064,_0x370781=null,_0x2feb24=null;try{if(_0x4fb9f3==_0xe9c830([0x47,0x50,0x4c]))return _0xe9c830([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb92064=_0x1e2e4a(),!_0xb92064)return _0xe9c830([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb92064[_0xe9c830([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2feb24=_0x2a6ade(_0xb92064[_0xe9c830([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb92064[_0xe9c830([0x6a,0x74,0x69])])),await _0x4c75a8()?_0x135ef5()?_0x201d45()?_0xe9c830([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29658f()?(_0xb92064[_0xe9c830([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe9c830([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x370781=_0x23632a(_0xe9c830([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1369f8()):_0xe9c830([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe9c830([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe9c830([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe9c830([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x201d45(){const _0x4e4aa5=[_0xe9c830([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe9c830([0x74,0x72,0x69,0x61,0x6c])][_0xe9c830([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb92064[_0xe9c830([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1fb4dd/0x3e8:0xe10*_0x4aaa12;return _0xb92064[_0xe9c830([0x65,0x78,0x70])]<_0x4e4aa5;}function _0x135ef5(){const _0x58c0dd=_0xb92064[_0xe9c830([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x58c0dd&&(!!_0x58c0dd[_0xe9c830([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe9c830([0x2a]))||!!_0x58c0dd[_0xe9c830([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe9c830([0x46,0x4f,0x4f])));}function _0x29658f(){const _0x1c0e92=_0xb92064[_0xe9c830([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c0e92||0x0==_0x1c0e92[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x589938}=new URL(window[_0xe9c830([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c0e92[_0xe9c830([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x589938))return!0x0;const _0x3311bc=_0x589938[_0xe9c830([0x73,0x70,0x6c,0x69,0x74])](_0xe9c830([0x2e]));return _0x1c0e92[_0xe9c830([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc958e0=>_0xc958e0[_0xe9c830([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe9c830([0x2a])))[_0xe9c830([0x6d,0x61,0x70])](_0x4b7e4d=>_0x4b7e4d[_0xe9c830([0x73,0x70,0x6c,0x69,0x74])](_0xe9c830([0x2e])))[_0xe9c830([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5d47bd=>_0x5d47bd[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3311bc[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe9c830([0x6d,0x61,0x70])](_0x1f090e=>Array(_0x3311bc[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1f090e[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe9c830([0x66,0x69,0x6c,0x6c])](_0x1f090e[0x0]===_0xe9c830([0x2a])?_0xe9c830([0x2a]):'')[_0xe9c830([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1f090e))[_0xe9c830([0x73,0x6f,0x6d,0x65])](_0x1f4727=>_0x3311bc[_0xe9c830([0x65,0x76,0x65,0x72,0x79])]((_0x164b54,_0x462f3a)=>_0x1f4727[_0x462f3a]===_0x164b54||_0x1f4727[_0x462f3a]===_0xe9c830([0x2a])));}function _0x1369f8(){return _0x370781&&_0x2feb24?new window[(_0xe9c830([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5904e9,_0x760a7c)=>{_0x370781[_0xe9c830([0x74,0x68,0x65,0x6e])](_0x5904e9,_0x760a7c),_0x2feb24[_0xe9c830([0x74,0x68,0x65,0x6e])](_0x3cafaa=>{_0x3cafaa!=_0xe9c830([0x56,0x61,0x6c,0x69,0x64])&&_0x5904e9(_0x3cafaa);},_0x760a7c);}):_0x370781||_0x2feb24||_0xe9c830([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2a6ade(_0x3d8b18,_0x591e68){return new window[(_0xe9c830([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5be0c6=>{if(_0x3de2c6())return _0x5be0c6(_0xe9c830([0x56,0x61,0x6c,0x69,0x64]));_0x253b92(),_0x3ad186[_0xe9c830([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe9c830([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x497bb5=!0x1;const _0x31aae0=_0x13f973();function _0x486132(_0xbe706b){return!!_0xbe706b&&(typeof _0xbe706b===_0xe9c830([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xbe706b===_0xe9c830([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xbe706b[_0xe9c830([0x74,0x68,0x65,0x6e])]===_0xe9c830([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xbe706b[_0xe9c830([0x63,0x61,0x74,0x63,0x68])]===_0xe9c830([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x566394(_0x422639){_0xdfc509(_0x422639)[_0xe9c830([0x74,0x68,0x65,0x6e])](_0x3463aa=>{if(!_0x3463aa||_0x3463aa[_0xe9c830([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe9c830([0x6f,0x6b]))return _0xe9c830([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2dccc3(_0x497e37(_0x31aae0+_0x591e68))!=_0x3463aa[_0xe9c830([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe9c830([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe9c830([0x56,0x61,0x6c,0x69,0x64]);})[_0xe9c830([0x74,0x68,0x65,0x6e])](_0x55c835=>(_0x4afb4f(),_0x55c835),()=>{const _0x1b4090=_0x1deec2();return null==_0x1b4090?(_0x4afb4f(),_0xe9c830([0x56,0x61,0x6c,0x69,0x64])):_0xe9c830(_0x1fb4dd-_0x1b4090>(0x63ae0106^_0x35dc0f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe9c830([0x74,0x68,0x65,0x6e])](_0x5be0c6)[_0xe9c830([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5be0c6(_0xe9c830([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b3996=0x47946b86^_0x35dc0f;function _0x4afb4f(){const _0x13a368=_0xe9c830([0x6c,0x6c,0x63,0x74,0x2d])+_0x2dccc3(_0x497e37(_0x3d8b18)),_0x516705=_0x29b77f(_0x2dccc3(window[_0xe9c830([0x4d,0x61,0x74,0x68])][_0xe9c830([0x63,0x65,0x69,0x6c])](_0x1fb4dd/_0x3b3996)));window[_0xe9c830([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe9c830([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x13a368,_0x516705);}function _0x1deec2(){const _0x4cc9e2=_0xe9c830([0x6c,0x6c,0x63,0x74,0x2d])+_0x2dccc3(_0x497e37(_0x3d8b18)),_0x4eae46=window[_0xe9c830([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe9c830([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4cc9e2);return _0x4eae46?window[_0xe9c830([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29b77f(_0x4eae46),0x10)*_0x3b3996:null;}function _0xdfc509(_0x21789b){return new window[(_0xe9c830([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46236c,_0xb4e1b0)=>{_0x21789b[_0xe9c830([0x74,0x68,0x65,0x6e])](_0x46236c,_0xb4e1b0),window[_0xe9c830([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xb4e1b0,0x47a351c6^_0x35dc0f);});}}_0x3ad186[_0xe9c830([0x6f,0x6e])](_0xe9c830([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x528d01,_0x723b1d)=>{if(_0x723b1d[0x0]!=_0x3d8b18)return _0x5be0c6(_0xe9c830([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x723b1d[0x1]={..._0x723b1d[0x1],[_0xe9c830([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x31aae0};},{[_0xe9c830([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe9c830([0x68,0x69,0x67,0x68])}),_0x3ad186[_0xe9c830([0x6f,0x6e])](_0xe9c830([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x294fb3=>{_0x486132(_0x294fb3[_0xe9c830([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x497bb5=!0x0,_0x566394(_0x294fb3[_0xe9c830([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe9c830([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe9c830([0x6c,0x6f,0x77])}),_0x1b4e59[_0xe9c830([0x74,0x68,0x65,0x6e])](()=>{_0x497bb5||_0x5be0c6(_0xe9c830([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3de2c6(){return _0x3ad186[_0xe9c830([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe9c830([0x76,0x69,0x65,0x77])][_0xe9c830([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe9c830([0x61,0x75,0x74,0x6f]);}function _0x253b92(){_0x3ad186[_0xe9c830([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe9c830([0x76,0x69,0x65,0x77])][_0xe9c830([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe9c830([0x61,0x75,0x74,0x6f]);}}function _0x23632a(_0x15f29e){const _0x114a72=[new window[(_0xe9c830([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2d2585=>setTimeout(_0x2d2585,0x47abbbca^_0x35dc0f)),_0x1b4e59[_0xe9c830([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe9c830([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2a1ad3=>{let _0x30e679=0x0;_0x3ad186[_0xe9c830([0x6d,0x6f,0x64,0x65,0x6c])][_0xe9c830([0x6f,0x6e])](_0xe9c830([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1ef8ba,_0xbfb1f8)=>{_0xbfb1f8[0x0][_0xe9c830([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x30e679++,_0x30e679==(0x47a280ee^_0x35dc0f)&&(_0x2a1ad3(),_0x1ef8ba[_0xe9c830([0x6f,0x66,0x66])]());});}))];return window[_0xe9c830([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe9c830([0x72,0x61,0x63,0x65])](_0x114a72)[_0xe9c830([0x74,0x68,0x65,0x6e])](()=>_0x15f29e);}async function _0x9a918a(){await _0x1b4e59,_0x3ad186[_0xe9c830([0x6d,0x6f,0x64,0x65,0x6c])][_0xe9c830([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x22a5e8,_0x3ad186[_0xe9c830([0x6d,0x6f,0x64,0x65,0x6c])][_0xe9c830([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x22a5e8,_0x3ad186[_0xe9c830([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe9c830([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c4391(_0x5079d2){const _0x2fa5db=_0x52e5ab();_0x3ad186[_0x2fa5db]=_0xe9c830([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5079d2,_0x5079d2!=_0xe9c830([0x56,0x61,0x6c,0x69,0x64])&&_0x9a918a();}function _0x52e5ab(){const _0x321b60=window[_0xe9c830([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe9c830([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe9c830([0x6e,0x6f,0x77])]())[_0xe9c830([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe9c830([0x2e]),'');let _0x2227f6=_0xe9c830([0x75]);for(let _0x447f1f=0x0;_0x447f1f<_0x321b60[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x447f1f+=0x2){let _0x1df374=window[_0xe9c830([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x321b60[_0xe9c830([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x447f1f,_0x447f1f+0x2));_0x1df374>=_0x59d034[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1df374-=_0x59d034[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2227f6+=_0x59d034[_0x1df374];}return _0x2227f6;}function _0x1e2e4a(){const _0x25671a=_0x4fb9f3[_0xe9c830([0x73,0x70,0x6c,0x69,0x74])](_0xe9c830([0x2e]));if(0x3!=_0x25671a[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x4a7581(_0x25671a[0x1]);function _0x4a7581(_0x255972){const _0x5994d1=_0x3246ba(_0x255972);return _0x5994d1&&_0x519c6c()?_0x5994d1:null;function _0x519c6c(){const _0x464ea6=_0x5994d1[_0xe9c830([0x6a,0x74,0x69])],_0xb75170=window[_0xe9c830([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x464ea6[_0xe9c830([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x464ea6[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x212b47={..._0x5994d1,[_0xe9c830([0x6a,0x74,0x69])]:_0x464ea6[_0xe9c830([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x464ea6[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x212b47[_0xe9c830([0x76,0x63])],_0x497e37(_0x212b47)==_0xb75170;}}}async function _0x4c75a8(){let _0x1c04c3=!0x0;try{const _0x6c995=_0x4fb9f3[_0xe9c830([0x73,0x70,0x6c,0x69,0x74])](_0xe9c830([0x2e])),[_0x3ce65e,_0x44ab41,_0x5ea4c0]=_0x6c995;return _0x289361(_0x3ce65e),await _0x19fbb8(_0x3ce65e,_0x44ab41,_0x5ea4c0),_0x1c04c3;}catch{return!0x1;}function _0x289361(_0x1d394d){const _0x3ac36b=_0x3246ba(_0x1d394d);_0x3ac36b&&_0x3ac36b[_0xe9c830([0x61,0x6c,0x67])]==_0xe9c830([0x45,0x53,0x32,0x35,0x36])||(_0x1c04c3=!0x1);}async function _0x19fbb8(_0x5c1e5c,_0x353de3,_0x416f08){const _0x208883=window[_0xe9c830([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe9c830([0x66,0x72,0x6f,0x6d])](_0x12b0e8(_0x416f08),_0x1fb95e=>_0x1fb95e[_0xe9c830([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2120f3=new window[(_0xe9c830([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe9c830([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c1e5c+_0xe9c830([0x2e])+_0x353de3),_0x1b65f4=window[_0xe9c830([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe9c830([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1b65f4)return;const _0x2d9a85=await _0x1b65f4[_0xe9c830([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe9c830([0x6a,0x77,0x6b]),_0x486a5f,{[_0xe9c830([0x6e,0x61,0x6d,0x65])]:_0xe9c830([0x45,0x43,0x44,0x53,0x41]),[_0xe9c830([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe9c830([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe9c830([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1b65f4[_0xe9c830([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe9c830([0x6e,0x61,0x6d,0x65])]:_0xe9c830([0x45,0x43,0x44,0x53,0x41]),[_0xe9c830([0x68,0x61,0x73,0x68])]:{[_0xe9c830([0x6e,0x61,0x6d,0x65])]:_0xe9c830([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2d9a85,_0x208883,_0x2120f3)||(_0x1c04c3=!0x1);}}function _0x3246ba(_0x464d52){return _0x464d52[_0xe9c830([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe9c830([0x65,0x79]))?JSON[_0xe9c830([0x70,0x61,0x72,0x73,0x65])](_0x12b0e8(_0x464d52)):null;}function _0x12b0e8(_0x289223){return window[_0xe9c830([0x61,0x74,0x6f,0x62])](_0x289223[_0xe9c830([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe9c830([0x2b]))[_0xe9c830([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe9c830([0x2f])));}function _0x497e37(_0xab0fa3){let _0x11751d=0x1505;function _0x46e732(_0x52f97d){for(let _0x4bc785=0x0;_0x4bc785<_0x52f97d[_0xe9c830([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bc785++){const _0x465f48=_0x52f97d[_0xe9c830([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4bc785);_0x11751d=(_0x11751d<<0x5)+_0x11751d+_0x465f48,_0x11751d&=_0x11751d;}}function _0x4381e2(_0x313409){Array[_0xe9c830([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x313409)?_0x313409[_0xe9c830([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4381e2):_0x313409&&typeof _0x313409==_0xe9c830([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe9c830([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x313409)[_0xe9c830([0x73,0x6f,0x72,0x74])]()[_0xe9c830([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x409d97,_0x278ddd])=>{_0x46e732(_0x409d97),_0x4381e2(_0x278ddd);}):_0x46e732(window[_0xe9c830([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x313409));}return _0x4381e2(_0xab0fa3),_0x11751d>>>0x0;}function _0x2dccc3(_0x5de124){return _0x5de124[_0xe9c830([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe9c830([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe9c830([0x30]));}function _0x29b77f(_0x5500c5){return _0x5500c5[_0xe9c830([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe9c830([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe9c830([0x6a,0x6f,0x69,0x6e])]('');}function _0x22a5e8(){}function _0xe9c830(_0x108b88){return _0x108b88['map'](_0x576a02=>String['fromCharCode'](_0x576a02))['join']('');}_0x3c4391(await _0x3bf74d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x53e8f3){const {plugins:_0x5ea8fa,editing:_0x21cdc5,model:_0x2d558e}=this['editor'],_0x247dba=_0x5ea8fa['get'](_0x5e2be2)['getFootnote'](_0x53e8f3);return!!_0x247dba&&(_0x2d558e['change'](_0x1d371a=>{_0x1d371a['setSelection'](_0x1d371a['createPositionAt'](_0x247dba['definition'],'end'));}),_0x21cdc5['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xef1fdf){const {plugins:_0x5f5045,editing:_0x2dcdd3,model:_0xa3f54d}=this['editor'],_0x1a482c=_0x5f5045['get'](_0x5e2be2)['getFootnote'](_0xef1fdf);return!!_0x1a482c&&(_0xa3f54d['change'](_0x54c8ab=>{_0x54c8ab['setSelection'](_0x1a482c['reference'],'on');}),_0x2dcdd3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x108858}=this['editor']['model'],_0x130b76=this['editor']['config']['get']('footnotes.multiBlock');_0x108858['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x108858['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x108858['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x130b76?_0x108858['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x108858['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x108858['addChildCheck'](_0x5997de=>{for(const _0x3c4dbc of _0x5997de)if('footnoteDefinition'===_0x3c4dbc['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x32b6d5}=this,{conversion:_0x4d1305,editing:_0x2c1b95}=_0x32b6d5,{t:t}=_0x32b6d5['locale'];_0x4d1305['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x47b3ad,{writer:_0x1b5f15,consumable:_0x2c450d})=>{const _0x36ba69=_0x47b3ad['getChild'](0x0);if(!_0x36ba69||!_0x36ba69['is']('element','a'))return null;const _0x5dd16d=_0x36ba69['getAttribute']('href')||'';if(!_0x5dd16d['startsWith']('#'))return null;const _0x4b7f8b=_0x5dd16d['replace'](/^#/,'');if(!_0x4b7f8b)return null;_0x2c450d['consume'](_0x36ba69,{'name':!0x0,'attributes':['href']});for(const {item:_0x342c41}of _0x2c1b95['view']['createRangeIn'](_0x36ba69))_0x342c41['is']('$textProxy')?_0x2c450d['consume'](_0x342c41['textNode'],{'name':!0x0}):_0x342c41['is']('element')&&_0x2c450d['consume'](_0x342c41,{'name':!0x0});return _0x1b5f15['createElement']('footnoteRef',{'footnoteId':_0x4b7f8b});}}),_0x4d1305['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x36ba72,{writer:_0x57b874})=>b(_0x36ba72,_0x57b874)}),_0x4d1305['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x34a702,{writer:_0x5c9056})=>{const _0x37632f=_0x34a702['getAttribute']('footnoteCounter');return _0x32c383(b(_0x34a702,_0x5c9056),_0x5c9056,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x37632f)});}});}['_defineDefinitionsConverters'](){const {editor:_0x493e6c}=this,{t:t}=_0x493e6c['locale'],{conversion:_0x237ee8}=_0x493e6c;_0x237ee8['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x237ee8['for']('upcast')['add'](_0x3df3a1=>{_0x3df3a1['on']('element:ol',(_0x1bc5b0,_0x5150a0,_0x2e2a30)=>{const _0x25a93a=_0x5150a0['viewItem'];if(!_0x25a93a['hasClass']('footnotes-list')||!_0x5150a0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2e2a30['consumable']['consume'](_0x25a93a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x28e84a,modelCursor:_0x1a8350}=_0x2e2a30['convertChildren'](_0x5150a0['viewItem'],_0x5150a0['modelCursor']);_0x5150a0['modelRange']=_0x28e84a,_0x5150a0['modelCursor']=_0x1a8350;}),_0x3df3a1['on']('element:hr',(_0x44ddb9,_0x2b7a7d,_0x5ced97)=>{const _0x2a7e51=_0x2b7a7d['viewItem'];_0x2a7e51['hasClass']('footnotes-divider')&&_0x2b7a7d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5ced97['consumable']['consume'](_0x2a7e51,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x237ee8['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3414da,{writer:_0x4f85dc})=>D(_0x4f85dc)}),_0x237ee8['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1b74ee,{writer:_0x5865bb})=>{const _0x3c4dfa=D(_0x5865bb,{'data-footnotes-list-label':t('Footnotes')}),_0x2fe891=_0x32c383(_0x3c4dfa,_0x5865bb,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5865bb['setCustomProperty']('footnotesDefinitions',!0x0,_0x2fe891),_0x2fe891;}});}['_defineDefinitionConverters'](){const {editor:_0x49917e}=this,{conversion:_0x579dbf,locale:_0x1dd94f}=_0x49917e,_0x8a0d5f=_0x49917e['config']['get']('footnotes.multiBlock');_0x579dbf['for']('upcast')['add'](_0x118a77=>{_0x118a77['on']('element:li',(_0x11a474,_0x1d681d,_0x41d96f)=>{const _0x32816e=_0x1d681d['viewItem'];if(!_0x32816e['hasClass']('footnote-definition')||!_0x32816e['getAttribute']('id'))return;const _0x3fffe0=_0x32816e['parent'];if(!_0x3fffe0['is']('element','ol')||!_0x3fffe0['hasClass']('footnotes-list'))return;if(!_0x41d96f['consumable']['test'](_0x32816e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5b363e=_0x41d96f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x32816e['getAttribute']('id')});if(!_0x41d96f['safeInsert'](_0x5b363e,_0x1d681d['modelCursor']))return;_0x41d96f['consumable']['consume'](_0x32816e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1ea946=Array['from'](_0x32816e['getChildren']())['find'](_0x1b6b8e=>_0x1b6b8e['is']('element')&&_0x1b6b8e['hasClass']('footnote-content'));for(const _0x1fad50 of _0x32816e['getChildren']())_0x1fad50['is']('element')&&(_0x41d96f['consumable']['consume'](_0x1fad50,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x41d96f['consumable']['consume'](_0x1fad50,{'name':!0x0,'classes':'footnote-content'}));if(_0x1ea946){if(_0x8a0d5f)_0x41d96f['convertChildren'](_0x1ea946,_0x5b363e);else{const _0x4b24b5=_0x41d96f['writer']['createElement']('footnoteInlineContent');_0x41d96f['writer']['insert'](_0x4b24b5,_0x5b363e),_0x41d96f['convertChildren'](_0x1ea946,_0x4b24b5);}}_0x41d96f['updateConversionResult'](_0x5b363e,_0x1d681d);});}),_0x579dbf['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2be743,{writer:_0x4e4968})=>y(_0x2be743,_0x4e4968,_0x1dd94f,{'dataPipeline':!0x0})}),_0x579dbf['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x7e9fc0,{writer:_0x17b02e})=>y(_0x7e9fc0,_0x17b02e,_0x1dd94f)});}['_defineBogusParagraphConverters'](){const {editor:_0x54808a}=this,{conversion:_0x3d0245}=_0x54808a;_0x54808a['config']['get']('footnotes.multiBlock')?(_0x3d0245['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3d0245['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x54808a['model']['document'],'change:data',()=>{!function(_0x302c0c,_0x13bc27){const _0x391535=_0x302c0c['document']['differ'],_0x14767d=new Set();for(const _0xdc1549 of _0x391535['getChanges']()){const _0x88a479='attribute'==_0xdc1549['type']?_0xdc1549['range']['start']['parent']:_0xdc1549['position']['parent'];_0x88a479['is']('element','footnoteDefinition')&&_0x14767d['add'](_0x88a479);}for(const _0x58c447 of _0x14767d['values']()){const _0x5193b7=Array['from'](_0x58c447['getChildren']())['filter'](_0x136034=>v(_0x136034,_0x13bc27['mapper']));for(const _0x21d92a of _0x5193b7)_0x13bc27['reconvertItem'](_0x21d92a);}}(_0x54808a['model'],_0x54808a['editing']);})):(_0x3d0245['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3d0245['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5997d4,{writer:_0x3dc2cd})=>{const _0x5d9dc3=_0x3dc2cd['createContainerElement']('span');return _0x3dc2cd['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5d9dc3),_0x5d9dc3;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2b5a71}=this,{editing:_0x350967,t:t}=_0x2b5a71,_0x2950b0=_0x2b5a71['model']['document']['selection'];_0x2b5a71['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2b5a71['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x350967['view']['document'],'enter',(_0x488696,_0x45b936)=>{const _0x5d865b=function(_0xacadc7){const _0x3c2330=_0xacadc7['getSelectedElement']();if(_0x3c2330?.['is']('element','footnoteRef'))return _0x3c2330;return null;}(_0x2950b0);if(_0x5d865b){const _0x14f216=_0x5d865b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x14f216),_0x45b936['preventDefault'](),_0x488696['stop']();}},{'context':_0x19820f});}['_defineClickHandlers'](){const {editor:_0x18b1b2}=this,{editing:_0x138e77}=_0x18b1b2;_0x18b1b2['editing']['view']['addObserver'](_0x26ea48),_0x18b1b2['editing']['view']['addObserver'](_0x5c3b29);let _0x4b2090=!0x1;this['listenTo'](_0x138e77['view']['document'],'pointerdown',(_0xbc23c8,_0x1dada2)=>{const {target:_0x29b811}=_0x1dada2,_0x3f8ae0=_0x138e77['view']['document']['selection'];_0x4b2090=!!(_0x29b811?.['is']('element','a')&&_0x29b811['parent']?.['is']('element','sup')&&_0x29b811['parent']['hasClass']('footnote'))&&_0x3f8ae0['getSelectedElement']()===_0x29b811['parent'];},{'priority':'high'}),this['listenTo'](_0x138e77['view']['document'],'click',(_0x17f0e8,_0x32fb09)=>{const {target:_0xf8b807}=_0x32fb09;if(!_0xf8b807?.['is']('element','a'))return;if(_0xf8b807['parent']?.['is']('element','sup')&&_0xf8b807['parent']['hasClass']('footnote')&&!_0x4b2090)return void _0x32fb09['preventDefault']();let _0xa58015=_0xf8b807['getAttribute']('href');if(!_0xa58015?.['startsWith']('#'))return;_0xa58015=_0xa58015['slice'](0x1);let _0x5121e0=!0x1;(_0xa58015['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xa58015['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xa58015))&&(_0x5121e0=!0x0),_0x5121e0&&(_0x32fb09['preventDefault'](),_0x17f0e8['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x49d540}={}){return(_0x11de9a,{writer:_0x1a2e87})=>{if(!g(_0x11de9a))return null;if(!_0x49d540)return _0x1a2e87['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x14c02b=_0x1a2e87['createContainerElement']('p');return _0x1a2e87['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x14c02b),_0x14c02b;};}function g(_0x2effd1){const {parent:_0x1a0317}=_0x2effd1;if(!_0x1a0317?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1a0317['childCount'])return!0x1;for(const _0x3bc679 of _0x2effd1['getAttributeKeys']())if(!_0x3bc679['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3bc679)return!0x1;return!0x0;}function v(_0xd4d41a,_0x567d10){if(!_0xd4d41a['is']('element','paragraph'))return!0x1;const _0x246713=_0x567d10['toViewElement'](_0xd4d41a);return!!_0x246713&&g(_0xd4d41a)!==_0x246713['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x340224){return _0x19820f(_0x340224)&&_0x340224['is']('containerElement')&&!!_0x340224['getCustomProperty']('footnotesDefinitions');}function D(_0x1de98f,_0x3d2676={}){const _0x45a2a7=_0x1de98f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x592798=_0x1de98f['createContainerElement']('ol',{'class':'footnotes-list'},_0x1de98f['createSlot']());return _0x1de98f['createContainerElement']('div',{'class':'footnotes',..._0x3d2676},[_0x45a2a7,_0x592798]);}function b(_0x55346e,_0x5a3222){const _0xccc017=_0x55346e['getAttribute']('footnoteId'),_0x58af01=_0x55346e['getAttribute']('footnoteCounter'),_0x429587=_0x5a3222['createUIElement']('a',{'href':'#'+_0xccc017},function(_0x1baf50){const _0x5c742e=this['toDomElement'](_0x1baf50);return _0x5c742e['textContent']=_0x58af01,_0x5c742e;}),_0x1f7816=_0x5a3222['createContainerElement']('sup',{'id':'ref-'+_0xccc017,'class':'footnote'},[_0x429587]);return _0x1f7816['getFillerOffset']=()=>null,_0x1f7816;}function y(_0x37c9b5,_0x3383fb,_0x13d439,{dataPipeline:_0x165c69}={}){const {t:t}=_0x13d439,_0x3fd256=_0x37c9b5['getAttribute']('footnoteId'),_0x5bc845=_0x3383fb['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3fd256},function(_0x40965e){const _0x2e1a3=this['toDomElement'](_0x40965e);return _0x2e1a3['innerText']='^',_0x2e1a3;}),_0x50da69=_0x165c69?_0x3383fb['createContainerElement']('div',{'class':'footnote-content'}):_0x19cd7c(_0x3383fb['createEditableElement']('div',{'class':'footnote-content'}),_0x3383fb,{'label':t('Footnote\x20content.')});return _0x3383fb['insert'](_0x3383fb['createPositionAt'](_0x50da69,0x0),_0x3383fb['createSlot']()),_0x3383fb['createContainerElement']('li',{'class':'footnote-definition','id':_0x3fd256},[_0x5bc845,_0x50da69]);}