@ckeditor/ckeditor5-footnotes 47.4.0-alpha.3 → 47.4.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["values","getElementKey","has","rootName","_model","4FTtcvW","element","attributes","$graveyard","_trackedElements","createRangeOn","$text","set","2034432fSkmIF","position","690603yJkRRC","reset","getChanges","getItems","9461600eVttfj","get","remove","4361460TesKOZ","insert","nodeAfter","root","push","4428851OUXnQE","type","length","_elementName","elementName","816650XHbtLq","527WsCXIw","slice","from","clear","delete","add","1910gptmUM","name","flat","_getElementKey","8FMgCSi"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(377915===parseInt(e(359))/1*(-parseInt(e(365))/2)+-parseInt(e(385))/3*(-parseInt(e(375))/4)+-parseInt(e(358))/5+parseInt(e(348))/6+-parseInt(e(353))/7*(parseInt(e(369))/8)+-parseInt(e(383))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(374)];[a(356)];[a(368)];[a(379)]=new Map;constructor(t,e){const o=a;this[o(374)]=t,this[o(356)]=e[o(357)],this[o(368)]=e[o(371)]}[a(386)](){const t=a;this[t(379)][t(362)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(349)===i[e(354)]&&e(381)!==i[e(366)]&&i[e(384)][e(350)]){const t=this[e(374)][e(380)](i[e(384)][e(350)]);for(const o of t[e(388)]()){if(!o.is(e(376),this[e(356)]))continue;const t=this[e(368)](o);n[e(372)](t)||n[e(382)](t,[]),n[e(346)](t)[e(352)](o)}}if(e(347)===i[e(354)]&&i[e(366)]===this[e(356)]){const t=this[e(368)]({getAttribute:t=>i[e(377)][e(346)](t)});o[e(364)](t)}}for(const[t,n]of this[e(379)])e(378)===n[e(351)][e(373)]&&o[e(364)](t);for(const t of o)this[e(379)][e(363)](t);for(const[t,o]of n)this[e(379)][e(382)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(372)](t)&&(i[e(364)](s[0]),s[e(355)]>1?n[e(382)](t,s[e(360)](1)):n[e(363)](t),o[e(363)](t));return{removed:Array[e(361)](o),inserted:Array[e(361)](n[e(370)]())[e(367)](),moved:Array[e(361)](i)}}}const u=h;function f(){const t=["createRangeIn","reference","_footnotes","668390aOxUKn","footnotesDefinitions","enqueueChange","_handleFootnoteReferencesChanges","reset","388530WqsqmB","_handleFootnotesDefinitionsObjectChanges","before","getFootnotesFormatter","some","footnoteInlineContent","add","document","splice","getAttribute","indexOf","from","1501339XihKZn","compareWith","_handleMovedFootnoteReference","push","parent","getFootnote","definition","isOfficialPlugin","config","_ensureFootnotesReferencesHaveProperOrder","init","root","unshift","$graveyard","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","_footnoteFormatter","low","registerPostFixer","find","502080AxDlLV","isEqual","model","listenTo","setFootnoteFormatter","min","_handleRemoveFootnoteReferenceById","change:data","editor","171976XgIWET","234262DdAhyd","set","getFootnotes","getChanges","createPositionAt","end","_footnotesDefinitions","paragraph","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesDefinitionsContainerExists","footnoteRef","findIndex","after","footnotes.multiBlock","_footnoteDefsContainerTracker","singleton","getRootNames","_sortFootnoteDefinitions","6RheuBj","footnoteDefinition","footnoteCounter","rootName","FootnotesTracker","childCount","_footnoteRefsTracker","pluginName","footnoteId","insert","6GryiZS","9dcYvZd","length","move","differ","createElement","setAttribute","createPositionBefore","255135bnFYEL","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","append","high","remove","has","map","getFootnotesDefinitionsObjectElement","getChildren","createRangeOn","get","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(142797===parseInt(e(334))/1+-parseInt(e(392))/2+-parseInt(e(363))/3*(parseInt(e(324))/4)+parseInt(e(371))/5*(parseInt(e(353))/6)+parseInt(e(303))/7+parseInt(e(333))/8+parseInt(e(364))/9*(parseInt(e(387))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(386)]=[];[u(340)]=null;[u(320)]=null;[u(349)];[u(359)];[u(342)];static get[u(360)](){return u(357)}static get[u(310)](){return!0}static get[u(372)](){return!0}constructor(t){const e=u;super(t),this[e(349)]=new l(this[e(332)][e(326)],{elementName:e(388),getElementKey:()=>e(350)}),this[e(359)]=new l(this[e(332)][e(326)],{elementName:e(345),getElementKey:t=>t[e(401)](e(361))}),this[e(342)]=new l(this[e(332)][e(326)],{elementName:e(354),getElementKey:t=>t[e(401)](e(361))})}[u(313)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(399)][t(322)](e=>{const n=t,i=o[n(399)][n(367)][n(337)]();let s=!1;return this[n(393)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(312)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(352)](e)&&(s=!0),s}),this[t(327)](o[t(399)],t(331),()=>{const e=t;o[e(389)]({isUndoable:!1},t=>{this[e(344)](t)})},{priority:t(321)}),this[t(327)](n,t(335),()=>{const e=t;this[e(386)]=[],this[e(349)][e(391)](),this[e(359)][e(391)](),this[e(342)][e(391)]()},{priority:t(375)})}[u(379)](){return this[u(340)]}[u(308)](t){const e=u;return this[e(386)][e(323)](e=>e.id===t)||null}[u(336)](){const t=u;return Array[t(403)](this[t(386)])}[u(395)](){return this[u(320)]}[u(328)](t){this[u(320)]=t}[u(343)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(386)][o(365)];i++)this[o(317)](t,i)&&(n=!0);return n}[u(373)](t,e){const o=u,n=t[o(368)](o(388),{});return t[o(374)](n,e),this[o(340)]=n,n}[u(344)](t){const e=u;if(!this[e(386)][e(365)]||this[e(340)])return;const o=this[e(386)][0][e(385)][e(314)],n=this[e(373)](t,o);for(const o of this[e(386)])o[e(309)][e(307)]||t[e(362)](o[e(309)],n,e(339));this[e(343)](t)}[u(393)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(349)][o(337)](e);if(r[o(365)]&&(this[o(340)]=r[0]),i[o(365)])if(i[o(365)]>1||this[o(340)]&&i[o(396)](t=>t!==this[o(340)])){const e=t[o(368)](o(388),{}),s=[];this[o(340)]&&s[o(306)](this[o(340)]),s[o(306)](...i),t[o(362)](e,s[0],o(394));for(const n of s)t[o(366)](t[o(384)](n),t[o(338)](e,o(339))),t[o(376)](n);this[o(340)]=e,this[o(343)](t),n=!0}else this[o(340)]=i[0];if(s[o(365)]&&o(316)===this[o(340)]?.[o(314)][o(356)]){for(const e of this[o(386)])t[o(376)](e[o(385)]),n=!0;this[o(386)]=[],this[o(340)]=null}return n}[u(383)](t,e){const o=u;let n=!1;const i=this[o(332)][o(311)][o(382)](o(348)),{inserted:s,moved:r}=this[o(342)][o(337)](e);for(const e of[...r,...s]){const s=e[o(401)](o(361)),r=this[o(308)](s);r&&(r[o(309)]=e),p(t,i,e)&&(n=!0)}return n}[u(390)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(359)][o(337)](e);for(const e of i)this[o(330)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(305)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(340)])return!1;let o=!1;if(this[e(340)][e(358)]!==this[e(386)][e(365)]){const n=[];for(const t of this[e(340)][e(380)]()){const i=t[e(401)](e(361));this[e(308)](i)||(n[e(315)](t),o=!0)}for(const o of n)t[e(376)](o)}const n=new Set,i=[];for(const t of this[e(340)][e(380)]()){const s=t[e(401)](e(361));n[e(377)](s)?(i[e(315)](t),o=!0):n[e(398)](s)}for(const o of i)t[e(376)](o);return this[e(340)][e(358)]||(t[e(376)](this[e(340)]),this[e(340)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(386)][o(323)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(401)](o(361)),s=this[o(386)][o(346)](t=>t.id===i);-1!==s&&(t[o(376)](this[o(386)][s][o(385)]),this[o(386)][o(400)](s,1),n=!0);let r=this[o(340)]?function(t,e){const n=o;for(const o of t[n(380)]())if(o[n(401)](n(361))===e)return o;return null}(this[o(340)],i):null;r||(r=t[o(368)](o(354),{footnoteId:i}),this[o(340)]&&(t[o(362)](r,this[o(340)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(332)][o(326)],this[o(386)],e);this[o(386)][o(400)](c,0,a);let l=c;return-1!==s&&(l=Math[o(329)](c,s)),this[o(343)](t,l)&&(n=!0),n}[u(330)](t,e){const o=u,n=this[o(386)][o(346)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(386)][n];return o(316)!==s[o(309)][o(314)][o(356)]&&(t[o(376)](s[o(309)]),i=!0),this[o(386)][o(400)](n,1),this[o(343)](t,n)&&(i=!0),i}[u(305)](t,e){const o=u,n=e[o(401)](o(361)),i=this[o(386)][o(346)](t=>t.id===n),s=this[o(386)][i];let r=!1;s[o(385)]=e,this[o(386)][o(400)](i,1);const a=m(this[o(332)][o(326)],this[o(386)],e);return this[o(386)][o(400)](a,0,s),this[o(343)](t,Math[o(329)](i,a))&&(r=!0),r}[u(317)](t,e){const o=u;if(!this[o(340)])return!1;const n=this[o(386)][e];let i;return i=this[o(320)]?this[o(320)]({footnote:n,container:this[o(340)],digits:String(this[o(386)][o(365)])[o(365)],value:e+1}):String(e+1),n[o(385)][o(401)](o(355))!=i&&(t[o(369)](o(355),i,n[o(385)]),!0)}[u(352)](t){const e=u;if(!this[e(340)]||this[e(386)][e(365)]<2)return!1;if(function(t,o){const n=e;if(t[n(365)]!==o[n(365)])return!1;for(let e=0;e<t[n(365)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(386)][e(378)](t=>t.id),Array[e(403)](this[e(340)][e(380)]())[e(378)](t=>t[e(401)](e(361)))))return!1;let o=!1;for(let n=0;n<this[e(386)][e(365)];n++){const i=this[e(386)][n],s=t[e(370)](i[e(309)]),r=t[e(338)](this[e(340)],n);s[e(325)](r)||(t[e(366)](t[e(381)](i[e(309)]),r),o=!0)}return o}[u(312)](t){const e=u;if(!this[e(386)][e(365)])return!1;const{model:o}=this[e(332)];let n=!1;for(let i=0;i<this[e(386)][e(365)]-1;i++){const s=this[e(386)][i],r=this[e(386)][i+1],a=o[e(370)](s[e(385)]),c=o[e(370)](r[e(385)]);e(347)===a[e(304)](c)&&(this[e(305)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=f();return(h=function(t,e){return o[t-=303]})(t,e)}function p(t,e,o){const n=u;if(o[n(358)])return!1;const i=n(e?341:397);return t[n(362)](t[n(368)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(365)])return 0;const i=t[n(370)](o);for(let o=0;o<e[n(365)];o++){const s=e[o],r=t[n(370)](s[n(385)]);if(n(394)===i[n(304)](r))return o}const s=o[n(314)];let r=-1;for(let t=e[n(365)]-1;t>=0;t--)if(e[t][n(385)][n(314)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(399)][n(351)](),c=a[n(402)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(365)];t++)if(e[t][n(385)][n(314)][n(356)]===l)return t;return e[n(365)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=224]})(t,e)}function y(){const t=["getFirstRange","302vytRCU","insertObject","FootnotesEditing","isEnabled","4LEzJMt","createElement","length","5832670SgpOuq","footnoteId","string","1678002zFBGYw","execute","insert-footnote-command-executed-with-invalid-id","editor","_getPositionToInsertFootnote","checkChild","1077fiahSL","7365696kwoJav","end","footnoteRef","getItems","document","selection","refresh","isObject","1058504zTVyhx","3667405DhpGoD","18065853BhTQjI","get","_moveSelectionToFootnoteDefinition","change","plugins","model","isBlock","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(646354===parseInt(e(237))/1*(parseInt(e(257))/2)+-parseInt(e(231))/3+parseInt(e(225))/4*(parseInt(e(228))/5)+parseInt(e(238))/6+parseInt(e(247))/7+parseInt(e(246))/8+-parseInt(e(248))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(244)](){const t=g,e=this[t(234)][t(253)][t(242)][t(243)],o=this[t(235)](e);this[t(224)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(242)],r=this[e(235)](s);if(!r)return;const a=o[e(252)][e(249)](e(259)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(230)==typeof t&&t[o(227)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(233)):(n[e(251)](t=>{const o=e,i=t[o(226)](o(240),{footnoteId:c});n[o(258)](i,r,null)}),a[e(250)](c))}[g(235)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(241)]())if(n[e(254)](t)||n[e(245)](t))return null;const s=i[e(239)];return n[e(236)](s,e(240))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768089600;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const A=L;function D(){const t=["FootnotesClipboard","init","getData","document","data","getFootnote","reduce","stringify","pluginName","getFirstRange","getSelectedBlocks","drop","change","4865778dxKFsz","20946339MFpbcK","footnoteId","listenTo","create","toView","keys","getAttribute","getChildren","end","isOfficialPlugin","contentInsertion","push","dataTransfer","content","requires","editing","parse","setAttribute","27595XGnKUI","4176920sFwkid","footnotesDefinitions","add","string","get","application/ckeditor5-footnotes","footnoteRef","flatMap","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","entries","root","422352gtbLoc","from","length","getFootnotes","228iHgonL","createElement","createRangeIn","clipboardInput","append","editor","cloneElement","getRanges","remove","sourceEditorId","footnoteInlineContent","7JdMekC","hasAttribute","toData","toModel","96085YhlIJc","setData","method","_handlePasteFootnotesDefinitions","insert","footnotes.multiBlock","htmlProcessor","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","1089045UlGADD","find","selection","element","footnoteDefinition","definition","includes","_handleCopyFootnotesDefinitions","config"];return(D=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(623956===parseInt(e(432))/1+parseInt(e(413))/2+-parseInt(e(441))/3+parseInt(e(417))/4*(-parseInt(e(399))/5)+-parseInt(e(380))/6*(parseInt(e(428))/7)+-parseInt(e(400))/8+parseInt(e(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(375)](){return A(450)}static get[A(395)](){return[v,T.ClipboardPipeline]}static get[A(390)](){return!0}static get[A(410)](){return!0}[A(368)](){this[A(409)]()}[A(409)](){const t=A;this[t(448)](),this[t(435)]()}[A(448)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](T.ClipboardPipeline),s=o[t(404)](d);this[t(383)](i,t(439),(o,i)=>{const r=t,a=O(n[r(419)](i[r(394)]));if(!a[r(415)])return;const c=s[r(416)](),l=a[r(373)]((t,o)=>{const n=r,i=c[n(442)](t=>t.id===o);if(i){const o=e[n(371)][n(385)](i[n(446)],{isClipboardPipeline:!0}),s=e[n(371)][n(438)][n(430)](o);t[i.id]=s}return t},Object[r(384)](null));i[r(393)][r(433)](r(405),JSON[r(374)](l))})}[A(435)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(396)],r=n[t(404)](T.ClipboardPipeline),a=n[t(404)](d),c=e[t(449)][t(404)](t(437));let l=null;this[t(383)](s[t(370)],t(420),(e,o)=>{const n=t,i=o[n(393)][n(369)](n(405));l=i?JSON[n(397)](i):null}),this[t(383)](r,t(391),(n,s)=>{const r=t,u=s[r(426)]===this[r(422)].id;u&&r(378)===s[r(434)]||o[r(379)](t=>{const n=r;let f=a[n(408)]();const d=!!f&&Array[n(414)](o[n(370)][n(443)][n(377)]())[n(447)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(444),e(406)))return!0;return!1}(o[n(419)](s[n(394)]))&&(l=function(t,e){const o=n,i=P(t,e);if(!i)return null;const s=Object[o(384)](null);for(const e of i[o(388)]())e.is(o(444),o(445))&&e[o(429)](o(382))&&(s[e[o(387)](o(382))]=t[o(423)](e,!0));return Object[o(386)](s)[o(415)]?s:null}(t,s[n(394)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(419)](e))n.is(o(444),o(401))&&i[o(392)](n);for(const e of i)t[o(425)](e)}(t,s[n(394)]),!l)return;const{selection:h}=o[n(370)],p=h[n(376)]()[n(412)];f&&!d||(f=P(t,s[n(394)]),f||=a[n(440)](t,p));const m=Array[n(414)](h[n(424)]())[n(407)](O),g=function(t,e,o){const s=n,r=Object[s(384)](null);for(const{item:n}of t[s(419)](e))if(n.is(s(444),s(406))){const e=n[s(387)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(398)](s(382),r[e],n)}return r}(t,s[n(394)],t=>{const e=n;return!u||!!a[e(372)](t)&&!m[e(447)](t)});for(const[o,i]of Object[n(411)](l)){const s=g[o]||o;let r;if(n(403)!=typeof i)r=i,s!==o&&t[n(398)](n(382),s,r);else{r=t[n(418)](n(445),{footnoteId:s});const o=e[n(371)][n(438)][n(385)](i);let a;if(c)a=e[n(371)][n(431)](o,r);else{a=t[n(418)](n(427));const i=e[n(371)][n(431)](o,a);t[n(436)](i,a)}t[n(421)](a,r)}t[n(436)](r,f,n(389))}l=null})})}}function P(t,e){const o=A;for(const{item:n}of t[o(419)](e))if(n.is(o(444),o(401)))return n;return null}function L(t,e){const o=D();return(L=function(t,e){return o[t-=368]})(t,e)}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(444),e(406))&&o[e(402)](n[e(387)](e(382)));return Array[e(414)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),G=o(741),H=o.n(G),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=z().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=H();K()(q.A,X);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=376]})(t,e)}function $(){var t=["94IknNSJ","pluginName","6eZOYlw","7035014zWQwbV","19079bmRObX","5205456CYpNws","1293978HZrFOp","855729QgpBju","requires","isPremiumPlugin","2978040GXUMZB","3793365HYSxGn","Footnotes","isOfficialPlugin","24geqvqB"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(802701===parseInt(e(385))/1*(-parseInt(e(381))/2)+-parseInt(e(387))/3+parseInt(e(386))/4+-parseInt(e(377))/5+-parseInt(e(383))/6*(-parseInt(e(384))/7)+parseInt(e(380))/8*(parseInt(e(388))/9)+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(382)](){return Q(378)}static get[Q(389)](){return[v,_,Y]}static get[Q(379)](){return!0}static get[Q(390)](){return!0}}const et=nt;function ot(){const t=["lower-alpha","70jOgChI","38058DfGjOz","3245232RdwFus","decimal","526339Gzbled","2091DgxtZk","474653jcpMYZ","upper-roman","1405670qVOqOE","1516atpnku","5232852zmtYFL","lower-latin","decimal-leading-zero","4QekAhu","lower-roman","upper-latin","364enEPot","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(291924===parseInt(e(471))/1+-parseInt(e(455))/2*(-parseInt(e(470))/3)+-parseInt(e(459))/4*(-parseInt(e(473))/5)+parseInt(e(466))/6*(parseInt(e(462))/7)+-parseInt(e(467))/8+-parseInt(e(456))/9+-parseInt(e(465))/10*(parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(468),et(458),et(457),et(461),et(464),et(463),et(460),et(472)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=353]})(t,e)}function at(){const t=["4332312mtAfqV","model","getAttribute","getFootnotesDefinitionsObjectElement","includes","_updateFootnotesCounters","get","2502815JXWpQQ","4385832hxDhaK","footnotesListStyle","1764734vewIYK","1NojpiI","refresh","plugins","value","isEnabled","setAttribute","4636800anScsI","823915rzCTOR","execute","1825866MzXdzT","change"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(579818===parseInt(e(373))/1*(parseInt(e(372))/2)+-parseInt(e(360))/3+-parseInt(e(357))/4+-parseInt(e(358))/5+parseInt(e(370))/6+parseInt(e(369))/7+parseInt(e(362))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(374)](){const t=st,{editor:e}=this,o=e[t(353)][t(368)](d)[t(365)]();this[t(355)]=!!o,this[t(354)]=o?.[t(364)](t(371))??null}[st(359)]({value:t}){const e=st,{editor:o}=this,n=o[e(353)][e(368)](d),i=n[e(365)]();i&&it[e(366)](t)&&o[e(363)][e(361)](o=>{const s=e;o[s(356)](s(371),t,i),n[s(367)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(785738===-parseInt(e(438))/1+-parseInt(e(448))/2+parseInt(e(430))/3+parseInt(e(442))/4*(parseInt(e(447))/5)+parseInt(e(428))/6+parseInt(e(443))/7*(parseInt(e(445))/8)+-parseInt(e(436))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(444)][t(437)](d)[t(439)]();this[t(449)]=!!o,this[t(434)]=o?.[t(433)](t(429))??null}[lt(441)]({value:t}){const e=lt,{editor:o}=this,n=o[e(444)][e(437)](d),i=n[e(439)]();i&&Number[e(446)](t)&&o[e(431)][e(427)](o=>{const s=e;o[s(432)](s(429),t,i),n[s(435)](o)})}}function dt(){const t=["1179954SYZhqo","model","setAttribute","getAttribute","value","_updateFootnotesCounters","19310292dcZHZK","get","531929SSzcNG","getFootnotesDefinitionsObjectElement","refresh","execute","1683224sSMMHd","1253trpxdE","plugins","21544YGvFFh","isInteger","15GnkXoG","158936PxjZKw","isEnabled","change","8429640OPmBMQ","footnotesListStart"];return(dt=function(){return t})()}function ht(){const t=["footnotesListStyle","find","4942840lyHVfI","fromCharCode","editor","75736beoTBy","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","floor","isPremiumPlugin","type","_getDefaultListStyle","element:ol","name","_defineFormatter","lower-latin","writer","get","81cNoOiw","config","getChanges","createRangeOn","commands","start","_defineSchema","upper-roman","1224767sDTlCY","schema","removeStyle","8842932eGWUjO","_definePostfixer","document","consumable","extend","removeAttribute","footnotesListStart","mapper","setAttribute","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","FootnotesPropertiesEditing","padStart","3067911eYmYFj","upper-alpha","toViewElement","footnotesDefinitions","registerPostFixer","_defineConverters","isNaN","upcast","268279CtUXgd","modelCursor","differ","footnotesStyle","decimal-leading-zero","downcast","_formatFootnoteListValue","_getDefaultStartIndex","viewItem","lower-roman","define","attribute:footnotesListStart:footnotesDefinitions","insert","from","setStyle","pluginName","getAttribute","model","footnotes-list","parseInt","290MTXlMa","consume","getChildren","for","hasAttribute","toUpperCase","getStyle","max","plugins","hasClass","list-style-type","nodeAfter","init","getItems","$text","attribute:footnotesListStyle:footnotesDefinitions","element","upper-latin","decimal","position","item","4402578DjKoTG","setFootnoteFormatter","2butkdE","checkAttribute","footnotesStart","toLowerCase","5lEPyZs","parent","_updateFootnotesCounters","add","requires","24BKRMbn"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=252]})(t,e)}const mt=pt;!function(t){const e=pt,o=t();for(;;)try{if(770621===-parseInt(e(316))/1*(-parseInt(e(280))/2)+-parseInt(e(308))/3*(-parseInt(e(295))/4)+parseInt(e(284))/5*(parseInt(e(278))/6)+-parseInt(e(292))/7+parseInt(e(289))/8*(-parseInt(e(332))/9)+-parseInt(e(257))/10*(parseInt(e(340))/11)+parseInt(e(319))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[mt(252)](){return mt(330)}static get[mt(288)](){return[v,d]}static get[mt(296)](){return!0}static get[mt(299)](){return!0}[mt(269)](){const t=mt,{editor:e}=this;e[t(309)][t(350)](t(297),t(275)),e[t(309)][t(350)](t(329),1),e[t(312)][t(287)](t(343),new ct(e)),e[t(312)][t(287)](t(282),new ft(e)),this[t(314)](),this[t(337)](),this[t(304)](),this[t(320)]()}[mt(314)](){const t=mt,{editor:e}=this,{schema:o}=e[t(254)];o[t(323)](t(335),{allowAttributes:[t(290),t(325)]})}[mt(337)](){const t=mt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(260)](t(339))[t(287)](e=>{const o=t;e.on(o(302),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(341)]?.[s(285)];r[s(266)](s(255))&&a?.is(s(273),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(325)))return;let r=1;const a=o[i(322)][i(258)](t,{attributes:i(313)});if(a){const e=Number[i(256)](t[i(253)](i(313)),10);Number[i(338)](e)||(r=e)}!a&&e[i(261)](i(325))||o[i(306)][i(327)](i(325),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(290)))return;let r=i(275),a=!1;if(o[i(322)][i(258)](t,{attributes:i(300)})){const e={1:i(275),a:i(328),A:i(333),i:i(349),I:i(315)}[t[i(253)](i(300))];e&&(r=e),a=!0}o[i(322)][i(258)](t,{styles:i(267)})&&(r=function(t){const e=i;switch(t){case e(328):return e(305);case e(333):return e(274);default:return t}}(t[i(263)](i(267))),a=!0),!a&&e[i(261)](i(290))||o[i(306)][i(327)](i(290),r,e)}(r,a,n,i))})}),o[t(260)](t(345))[t(287)](e=>{const o=t;e.on(o(351),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;null==r||1===r?n[i(306)][i(324)](i(313),s):n[i(306)][i(327)](i(313),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(306)][i(354)](i(267),r,s):n[i(306)][i(318)](i(267),s)})})}[mt(320)](){const t=mt,{editor:e}=this,{model:o}=e,n=e[t(265)][t(307)](d),i=this[t(301)](),s=this[t(347)]();o[t(321)][t(336)](e=>{const r=t,a=o[r(321)][r(342)][r(310)]();let c=!1;for(const t of a){if(r(352)!==t[r(300)]||r(271)===t[r(303)])continue;const n=o[r(311)](t[r(276)][r(268)]);for(const t of n[r(270)]())t.is(r(273),r(335))&&(!t[r(261)](r(325))&&o[r(317)][r(281)](t,r(325))&&(e[r(327)](r(325),s,t),c=!0),!t[r(261)](r(290))&&o[r(317)][r(281)](t,r(290))&&(e[r(327)](r(290),i,t),c=!0))}return c&&n[r(286)](e),c})}[mt(304)](){const t=mt,{editor:e}=this;e[t(265)][t(307)](d)[t(279)](e=>this[t(346)](e))}[mt(301)](){const t=mt;return this[t(294)][t(309)][t(307)](t(297))}[mt(347)](){const t=mt;return this[t(294)][t(309)][t(307)](t(329))}[mt(346)]({container:t,value:e,digits:o}){const n=mt,i=t[n(253)](n(290)),s=t[n(253)](n(325)),r=Math[n(298)](e)+(s??1)-1;switch(i){case n(344):return function(t,e){const o=n;return String(t)[o(331)](e,"0")}(r,Math[n(264)](2,o));case n(328):case n(305):return yt(r,!1);case n(333):case n(274):return yt(r,!0);case n(349):return vt(r,!1);case n(315):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=mt,n=e[o(334)](t);return Array[o(353)](n[o(259)]())[o(291)](t=>t.is(o(273),"ol")&&t[o(266)](o(255)))}function yt(t,e){const o=mt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(298)]((i-1)/26)}return e?n[o(262)]():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=mt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(283)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=496]})(t,e)}function St(){var t=["isPremiumPlugin","1606263vJWwNz","4087611rGubAR","6fvDsgL","335sAxNTx","13864360oLMQXy","1524719OBodCT","isOfficialPlugin","272GFyyDp","requires","260721rsrKEA","FootnotesProperties","98284IuAlQY","110MtEonD","pluginName","8974hwQzuN"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(936706===-parseInt(e(497))/1*(-parseInt(e(506))/2)+-parseInt(e(499))/3+parseInt(e(510))/4*(-parseInt(e(502))/5)+-parseInt(e(501))/6*(-parseInt(e(504))/7)+parseInt(e(503))/8+parseInt(e(508))/9*(parseInt(e(511))/10)+-parseInt(e(500))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Tt extends t.Plugin{static get[xt(496)](){return xt(509)}static get[xt(507)](){return[gt,Ft]}static get[xt(505)](){return!0}static get[xt(498)](){return!0}}function At(){var t=["1827545VKwdnF","218745XiWyLU","1882320GAFDsB","1113066hrhcjS","147WBEdae","1171896yTunLG","4BolARx","150VLLFir","1587754iRAQED","590AdQILV"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(211537===parseInt(e(192))/1*(parseInt(e(187))/2)+parseInt(e(191))/3+parseInt(e(184))/4*(parseInt(e(188))/5)+-parseInt(e(193))/6+parseInt(e(186))/7+-parseInt(e(190))/8+parseInt(e(189))/9*(-parseInt(e(185))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["values","getElementKey","has","rootName","_model","4FTtcvW","element","attributes","$graveyard","_trackedElements","createRangeOn","$text","set","2034432fSkmIF","position","690603yJkRRC","reset","getChanges","getItems","9461600eVttfj","get","remove","4361460TesKOZ","insert","nodeAfter","root","push","4428851OUXnQE","type","length","_elementName","elementName","816650XHbtLq","527WsCXIw","slice","from","clear","delete","add","1910gptmUM","name","flat","_getElementKey","8FMgCSi"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(377915===parseInt(e(359))/1*(-parseInt(e(365))/2)+-parseInt(e(385))/3*(-parseInt(e(375))/4)+-parseInt(e(358))/5+parseInt(e(348))/6+-parseInt(e(353))/7*(parseInt(e(369))/8)+-parseInt(e(383))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(374)];[a(356)];[a(368)];[a(379)]=new Map;constructor(t,e){const o=a;this[o(374)]=t,this[o(356)]=e[o(357)],this[o(368)]=e[o(371)]}[a(386)](){const t=a;this[t(379)][t(362)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(349)===i[e(354)]&&e(381)!==i[e(366)]&&i[e(384)][e(350)]){const t=this[e(374)][e(380)](i[e(384)][e(350)]);for(const o of t[e(388)]()){if(!o.is(e(376),this[e(356)]))continue;const t=this[e(368)](o);n[e(372)](t)||n[e(382)](t,[]),n[e(346)](t)[e(352)](o)}}if(e(347)===i[e(354)]&&i[e(366)]===this[e(356)]){const t=this[e(368)]({getAttribute:t=>i[e(377)][e(346)](t)});o[e(364)](t)}}for(const[t,n]of this[e(379)])e(378)===n[e(351)][e(373)]&&o[e(364)](t);for(const t of o)this[e(379)][e(363)](t);for(const[t,o]of n)this[e(379)][e(382)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(372)](t)&&(i[e(364)](s[0]),s[e(355)]>1?n[e(382)](t,s[e(360)](1)):n[e(363)](t),o[e(363)](t));return{removed:Array[e(361)](o),inserted:Array[e(361)](n[e(370)]())[e(367)](),moved:Array[e(361)](i)}}}const u=h;function f(){const t=["createRangeIn","reference","_footnotes","668390aOxUKn","footnotesDefinitions","enqueueChange","_handleFootnoteReferencesChanges","reset","388530WqsqmB","_handleFootnotesDefinitionsObjectChanges","before","getFootnotesFormatter","some","footnoteInlineContent","add","document","splice","getAttribute","indexOf","from","1501339XihKZn","compareWith","_handleMovedFootnoteReference","push","parent","getFootnote","definition","isOfficialPlugin","config","_ensureFootnotesReferencesHaveProperOrder","init","root","unshift","$graveyard","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","_footnoteFormatter","low","registerPostFixer","find","502080AxDlLV","isEqual","model","listenTo","setFootnoteFormatter","min","_handleRemoveFootnoteReferenceById","change:data","editor","171976XgIWET","234262DdAhyd","set","getFootnotes","getChanges","createPositionAt","end","_footnotesDefinitions","paragraph","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesDefinitionsContainerExists","footnoteRef","findIndex","after","footnotes.multiBlock","_footnoteDefsContainerTracker","singleton","getRootNames","_sortFootnoteDefinitions","6RheuBj","footnoteDefinition","footnoteCounter","rootName","FootnotesTracker","childCount","_footnoteRefsTracker","pluginName","footnoteId","insert","6GryiZS","9dcYvZd","length","move","differ","createElement","setAttribute","createPositionBefore","255135bnFYEL","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","append","high","remove","has","map","getFootnotesDefinitionsObjectElement","getChildren","createRangeOn","get","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(142797===parseInt(e(334))/1+-parseInt(e(392))/2+-parseInt(e(363))/3*(parseInt(e(324))/4)+parseInt(e(371))/5*(parseInt(e(353))/6)+parseInt(e(303))/7+parseInt(e(333))/8+parseInt(e(364))/9*(parseInt(e(387))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(386)]=[];[u(340)]=null;[u(320)]=null;[u(349)];[u(359)];[u(342)];static get[u(360)](){return u(357)}static get[u(310)](){return!0}static get[u(372)](){return!0}constructor(t){const e=u;super(t),this[e(349)]=new l(this[e(332)][e(326)],{elementName:e(388),getElementKey:()=>e(350)}),this[e(359)]=new l(this[e(332)][e(326)],{elementName:e(345),getElementKey:t=>t[e(401)](e(361))}),this[e(342)]=new l(this[e(332)][e(326)],{elementName:e(354),getElementKey:t=>t[e(401)](e(361))})}[u(313)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(399)][t(322)](e=>{const n=t,i=o[n(399)][n(367)][n(337)]();let s=!1;return this[n(393)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(312)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(352)](e)&&(s=!0),s}),this[t(327)](o[t(399)],t(331),()=>{const e=t;o[e(389)]({isUndoable:!1},t=>{this[e(344)](t)})},{priority:t(321)}),this[t(327)](n,t(335),()=>{const e=t;this[e(386)]=[],this[e(349)][e(391)](),this[e(359)][e(391)](),this[e(342)][e(391)]()},{priority:t(375)})}[u(379)](){return this[u(340)]}[u(308)](t){const e=u;return this[e(386)][e(323)](e=>e.id===t)||null}[u(336)](){const t=u;return Array[t(403)](this[t(386)])}[u(395)](){return this[u(320)]}[u(328)](t){this[u(320)]=t}[u(343)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(386)][o(365)];i++)this[o(317)](t,i)&&(n=!0);return n}[u(373)](t,e){const o=u,n=t[o(368)](o(388),{});return t[o(374)](n,e),this[o(340)]=n,n}[u(344)](t){const e=u;if(!this[e(386)][e(365)]||this[e(340)])return;const o=this[e(386)][0][e(385)][e(314)],n=this[e(373)](t,o);for(const o of this[e(386)])o[e(309)][e(307)]||t[e(362)](o[e(309)],n,e(339));this[e(343)](t)}[u(393)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(349)][o(337)](e);if(r[o(365)]&&(this[o(340)]=r[0]),i[o(365)])if(i[o(365)]>1||this[o(340)]&&i[o(396)](t=>t!==this[o(340)])){const e=t[o(368)](o(388),{}),s=[];this[o(340)]&&s[o(306)](this[o(340)]),s[o(306)](...i),t[o(362)](e,s[0],o(394));for(const n of s)t[o(366)](t[o(384)](n),t[o(338)](e,o(339))),t[o(376)](n);this[o(340)]=e,this[o(343)](t),n=!0}else this[o(340)]=i[0];if(s[o(365)]&&o(316)===this[o(340)]?.[o(314)][o(356)]){for(const e of this[o(386)])t[o(376)](e[o(385)]),n=!0;this[o(386)]=[],this[o(340)]=null}return n}[u(383)](t,e){const o=u;let n=!1;const i=this[o(332)][o(311)][o(382)](o(348)),{inserted:s,moved:r}=this[o(342)][o(337)](e);for(const e of[...r,...s]){const s=e[o(401)](o(361)),r=this[o(308)](s);r&&(r[o(309)]=e),p(t,i,e)&&(n=!0)}return n}[u(390)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(359)][o(337)](e);for(const e of i)this[o(330)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(305)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(340)])return!1;let o=!1;if(this[e(340)][e(358)]!==this[e(386)][e(365)]){const n=[];for(const t of this[e(340)][e(380)]()){const i=t[e(401)](e(361));this[e(308)](i)||(n[e(315)](t),o=!0)}for(const o of n)t[e(376)](o)}const n=new Set,i=[];for(const t of this[e(340)][e(380)]()){const s=t[e(401)](e(361));n[e(377)](s)?(i[e(315)](t),o=!0):n[e(398)](s)}for(const o of i)t[e(376)](o);return this[e(340)][e(358)]||(t[e(376)](this[e(340)]),this[e(340)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(386)][o(323)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(401)](o(361)),s=this[o(386)][o(346)](t=>t.id===i);-1!==s&&(t[o(376)](this[o(386)][s][o(385)]),this[o(386)][o(400)](s,1),n=!0);let r=this[o(340)]?function(t,e){const n=o;for(const o of t[n(380)]())if(o[n(401)](n(361))===e)return o;return null}(this[o(340)],i):null;r||(r=t[o(368)](o(354),{footnoteId:i}),this[o(340)]&&(t[o(362)](r,this[o(340)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(332)][o(326)],this[o(386)],e);this[o(386)][o(400)](c,0,a);let l=c;return-1!==s&&(l=Math[o(329)](c,s)),this[o(343)](t,l)&&(n=!0),n}[u(330)](t,e){const o=u,n=this[o(386)][o(346)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(386)][n];return o(316)!==s[o(309)][o(314)][o(356)]&&(t[o(376)](s[o(309)]),i=!0),this[o(386)][o(400)](n,1),this[o(343)](t,n)&&(i=!0),i}[u(305)](t,e){const o=u,n=e[o(401)](o(361)),i=this[o(386)][o(346)](t=>t.id===n),s=this[o(386)][i];let r=!1;s[o(385)]=e,this[o(386)][o(400)](i,1);const a=m(this[o(332)][o(326)],this[o(386)],e);return this[o(386)][o(400)](a,0,s),this[o(343)](t,Math[o(329)](i,a))&&(r=!0),r}[u(317)](t,e){const o=u;if(!this[o(340)])return!1;const n=this[o(386)][e];let i;return i=this[o(320)]?this[o(320)]({footnote:n,container:this[o(340)],digits:String(this[o(386)][o(365)])[o(365)],value:e+1}):String(e+1),n[o(385)][o(401)](o(355))!=i&&(t[o(369)](o(355),i,n[o(385)]),!0)}[u(352)](t){const e=u;if(!this[e(340)]||this[e(386)][e(365)]<2)return!1;if(function(t,o){const n=e;if(t[n(365)]!==o[n(365)])return!1;for(let e=0;e<t[n(365)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(386)][e(378)](t=>t.id),Array[e(403)](this[e(340)][e(380)]())[e(378)](t=>t[e(401)](e(361)))))return!1;let o=!1;for(let n=0;n<this[e(386)][e(365)];n++){const i=this[e(386)][n],s=t[e(370)](i[e(309)]),r=t[e(338)](this[e(340)],n);s[e(325)](r)||(t[e(366)](t[e(381)](i[e(309)]),r),o=!0)}return o}[u(312)](t){const e=u;if(!this[e(386)][e(365)])return!1;const{model:o}=this[e(332)];let n=!1;for(let i=0;i<this[e(386)][e(365)]-1;i++){const s=this[e(386)][i],r=this[e(386)][i+1],a=o[e(370)](s[e(385)]),c=o[e(370)](r[e(385)]);e(347)===a[e(304)](c)&&(this[e(305)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=f();return(h=function(t,e){return o[t-=303]})(t,e)}function p(t,e,o){const n=u;if(o[n(358)])return!1;const i=n(e?341:397);return t[n(362)](t[n(368)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(365)])return 0;const i=t[n(370)](o);for(let o=0;o<e[n(365)];o++){const s=e[o],r=t[n(370)](s[n(385)]);if(n(394)===i[n(304)](r))return o}const s=o[n(314)];let r=-1;for(let t=e[n(365)]-1;t>=0;t--)if(e[t][n(385)][n(314)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(399)][n(351)](),c=a[n(402)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(365)];t++)if(e[t][n(385)][n(314)][n(356)]===l)return t;return e[n(365)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=224]})(t,e)}function y(){const t=["getFirstRange","302vytRCU","insertObject","FootnotesEditing","isEnabled","4LEzJMt","createElement","length","5832670SgpOuq","footnoteId","string","1678002zFBGYw","execute","insert-footnote-command-executed-with-invalid-id","editor","_getPositionToInsertFootnote","checkChild","1077fiahSL","7365696kwoJav","end","footnoteRef","getItems","document","selection","refresh","isObject","1058504zTVyhx","3667405DhpGoD","18065853BhTQjI","get","_moveSelectionToFootnoteDefinition","change","plugins","model","isBlock","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(646354===parseInt(e(237))/1*(parseInt(e(257))/2)+-parseInt(e(231))/3+parseInt(e(225))/4*(parseInt(e(228))/5)+parseInt(e(238))/6+parseInt(e(247))/7+parseInt(e(246))/8+-parseInt(e(248))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(244)](){const t=g,e=this[t(234)][t(253)][t(242)][t(243)],o=this[t(235)](e);this[t(224)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(242)],r=this[e(235)](s);if(!r)return;const a=o[e(252)][e(249)](e(259)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(230)==typeof t&&t[o(227)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(233)):(n[e(251)](t=>{const o=e,i=t[o(226)](o(240),{footnoteId:c});n[o(258)](i,r,null)}),a[e(250)](c))}[g(235)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(241)]())if(n[e(254)](t)||n[e(245)](t))return null;const s=i[e(239)];return n[e(236)](s,e(240))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768176e3;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const A=L;function D(){const t=["FootnotesClipboard","init","getData","document","data","getFootnote","reduce","stringify","pluginName","getFirstRange","getSelectedBlocks","drop","change","4865778dxKFsz","20946339MFpbcK","footnoteId","listenTo","create","toView","keys","getAttribute","getChildren","end","isOfficialPlugin","contentInsertion","push","dataTransfer","content","requires","editing","parse","setAttribute","27595XGnKUI","4176920sFwkid","footnotesDefinitions","add","string","get","application/ckeditor5-footnotes","footnoteRef","flatMap","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","entries","root","422352gtbLoc","from","length","getFootnotes","228iHgonL","createElement","createRangeIn","clipboardInput","append","editor","cloneElement","getRanges","remove","sourceEditorId","footnoteInlineContent","7JdMekC","hasAttribute","toData","toModel","96085YhlIJc","setData","method","_handlePasteFootnotesDefinitions","insert","footnotes.multiBlock","htmlProcessor","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","1089045UlGADD","find","selection","element","footnoteDefinition","definition","includes","_handleCopyFootnotesDefinitions","config"];return(D=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(623956===parseInt(e(432))/1+parseInt(e(413))/2+-parseInt(e(441))/3+parseInt(e(417))/4*(-parseInt(e(399))/5)+-parseInt(e(380))/6*(parseInt(e(428))/7)+-parseInt(e(400))/8+parseInt(e(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(375)](){return A(450)}static get[A(395)](){return[v,T.ClipboardPipeline]}static get[A(390)](){return!0}static get[A(410)](){return!0}[A(368)](){this[A(409)]()}[A(409)](){const t=A;this[t(448)](),this[t(435)]()}[A(448)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](T.ClipboardPipeline),s=o[t(404)](d);this[t(383)](i,t(439),(o,i)=>{const r=t,a=O(n[r(419)](i[r(394)]));if(!a[r(415)])return;const c=s[r(416)](),l=a[r(373)]((t,o)=>{const n=r,i=c[n(442)](t=>t.id===o);if(i){const o=e[n(371)][n(385)](i[n(446)],{isClipboardPipeline:!0}),s=e[n(371)][n(438)][n(430)](o);t[i.id]=s}return t},Object[r(384)](null));i[r(393)][r(433)](r(405),JSON[r(374)](l))})}[A(435)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(396)],r=n[t(404)](T.ClipboardPipeline),a=n[t(404)](d),c=e[t(449)][t(404)](t(437));let l=null;this[t(383)](s[t(370)],t(420),(e,o)=>{const n=t,i=o[n(393)][n(369)](n(405));l=i?JSON[n(397)](i):null}),this[t(383)](r,t(391),(n,s)=>{const r=t,u=s[r(426)]===this[r(422)].id;u&&r(378)===s[r(434)]||o[r(379)](t=>{const n=r;let f=a[n(408)]();const d=!!f&&Array[n(414)](o[n(370)][n(443)][n(377)]())[n(447)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(444),e(406)))return!0;return!1}(o[n(419)](s[n(394)]))&&(l=function(t,e){const o=n,i=P(t,e);if(!i)return null;const s=Object[o(384)](null);for(const e of i[o(388)]())e.is(o(444),o(445))&&e[o(429)](o(382))&&(s[e[o(387)](o(382))]=t[o(423)](e,!0));return Object[o(386)](s)[o(415)]?s:null}(t,s[n(394)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(419)](e))n.is(o(444),o(401))&&i[o(392)](n);for(const e of i)t[o(425)](e)}(t,s[n(394)]),!l)return;const{selection:h}=o[n(370)],p=h[n(376)]()[n(412)];f&&!d||(f=P(t,s[n(394)]),f||=a[n(440)](t,p));const m=Array[n(414)](h[n(424)]())[n(407)](O),g=function(t,e,o){const s=n,r=Object[s(384)](null);for(const{item:n}of t[s(419)](e))if(n.is(s(444),s(406))){const e=n[s(387)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(398)](s(382),r[e],n)}return r}(t,s[n(394)],t=>{const e=n;return!u||!!a[e(372)](t)&&!m[e(447)](t)});for(const[o,i]of Object[n(411)](l)){const s=g[o]||o;let r;if(n(403)!=typeof i)r=i,s!==o&&t[n(398)](n(382),s,r);else{r=t[n(418)](n(445),{footnoteId:s});const o=e[n(371)][n(438)][n(385)](i);let a;if(c)a=e[n(371)][n(431)](o,r);else{a=t[n(418)](n(427));const i=e[n(371)][n(431)](o,a);t[n(436)](i,a)}t[n(421)](a,r)}t[n(436)](r,f,n(389))}l=null})})}}function P(t,e){const o=A;for(const{item:n}of t[o(419)](e))if(n.is(o(444),o(401)))return n;return null}function L(t,e){const o=D();return(L=function(t,e){return o[t-=368]})(t,e)}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(444),e(406))&&o[e(402)](n[e(387)](e(382)));return Array[e(414)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),G=o(741),H=o.n(G),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=z().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=H();K()(q.A,X);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=376]})(t,e)}function $(){var t=["94IknNSJ","pluginName","6eZOYlw","7035014zWQwbV","19079bmRObX","5205456CYpNws","1293978HZrFOp","855729QgpBju","requires","isPremiumPlugin","2978040GXUMZB","3793365HYSxGn","Footnotes","isOfficialPlugin","24geqvqB"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(802701===parseInt(e(385))/1*(-parseInt(e(381))/2)+-parseInt(e(387))/3+parseInt(e(386))/4+-parseInt(e(377))/5+-parseInt(e(383))/6*(-parseInt(e(384))/7)+parseInt(e(380))/8*(parseInt(e(388))/9)+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(382)](){return Q(378)}static get[Q(389)](){return[v,_,Y]}static get[Q(379)](){return!0}static get[Q(390)](){return!0}}const et=nt;function ot(){const t=["lower-alpha","70jOgChI","38058DfGjOz","3245232RdwFus","decimal","526339Gzbled","2091DgxtZk","474653jcpMYZ","upper-roman","1405670qVOqOE","1516atpnku","5232852zmtYFL","lower-latin","decimal-leading-zero","4QekAhu","lower-roman","upper-latin","364enEPot","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(291924===parseInt(e(471))/1+-parseInt(e(455))/2*(-parseInt(e(470))/3)+-parseInt(e(459))/4*(-parseInt(e(473))/5)+parseInt(e(466))/6*(parseInt(e(462))/7)+-parseInt(e(467))/8+-parseInt(e(456))/9+-parseInt(e(465))/10*(parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(468),et(458),et(457),et(461),et(464),et(463),et(460),et(472)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=353]})(t,e)}function at(){const t=["4332312mtAfqV","model","getAttribute","getFootnotesDefinitionsObjectElement","includes","_updateFootnotesCounters","get","2502815JXWpQQ","4385832hxDhaK","footnotesListStyle","1764734vewIYK","1NojpiI","refresh","plugins","value","isEnabled","setAttribute","4636800anScsI","823915rzCTOR","execute","1825866MzXdzT","change"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(579818===parseInt(e(373))/1*(parseInt(e(372))/2)+-parseInt(e(360))/3+-parseInt(e(357))/4+-parseInt(e(358))/5+parseInt(e(370))/6+parseInt(e(369))/7+parseInt(e(362))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(374)](){const t=st,{editor:e}=this,o=e[t(353)][t(368)](d)[t(365)]();this[t(355)]=!!o,this[t(354)]=o?.[t(364)](t(371))??null}[st(359)]({value:t}){const e=st,{editor:o}=this,n=o[e(353)][e(368)](d),i=n[e(365)]();i&&it[e(366)](t)&&o[e(363)][e(361)](o=>{const s=e;o[s(356)](s(371),t,i),n[s(367)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(785738===-parseInt(e(438))/1+-parseInt(e(448))/2+parseInt(e(430))/3+parseInt(e(442))/4*(parseInt(e(447))/5)+parseInt(e(428))/6+parseInt(e(443))/7*(parseInt(e(445))/8)+-parseInt(e(436))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(444)][t(437)](d)[t(439)]();this[t(449)]=!!o,this[t(434)]=o?.[t(433)](t(429))??null}[lt(441)]({value:t}){const e=lt,{editor:o}=this,n=o[e(444)][e(437)](d),i=n[e(439)]();i&&Number[e(446)](t)&&o[e(431)][e(427)](o=>{const s=e;o[s(432)](s(429),t,i),n[s(435)](o)})}}function dt(){const t=["1179954SYZhqo","model","setAttribute","getAttribute","value","_updateFootnotesCounters","19310292dcZHZK","get","531929SSzcNG","getFootnotesDefinitionsObjectElement","refresh","execute","1683224sSMMHd","1253trpxdE","plugins","21544YGvFFh","isInteger","15GnkXoG","158936PxjZKw","isEnabled","change","8429640OPmBMQ","footnotesListStart"];return(dt=function(){return t})()}function ht(){const t=["footnotesListStyle","find","4942840lyHVfI","fromCharCode","editor","75736beoTBy","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","floor","isPremiumPlugin","type","_getDefaultListStyle","element:ol","name","_defineFormatter","lower-latin","writer","get","81cNoOiw","config","getChanges","createRangeOn","commands","start","_defineSchema","upper-roman","1224767sDTlCY","schema","removeStyle","8842932eGWUjO","_definePostfixer","document","consumable","extend","removeAttribute","footnotesListStart","mapper","setAttribute","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","FootnotesPropertiesEditing","padStart","3067911eYmYFj","upper-alpha","toViewElement","footnotesDefinitions","registerPostFixer","_defineConverters","isNaN","upcast","268279CtUXgd","modelCursor","differ","footnotesStyle","decimal-leading-zero","downcast","_formatFootnoteListValue","_getDefaultStartIndex","viewItem","lower-roman","define","attribute:footnotesListStart:footnotesDefinitions","insert","from","setStyle","pluginName","getAttribute","model","footnotes-list","parseInt","290MTXlMa","consume","getChildren","for","hasAttribute","toUpperCase","getStyle","max","plugins","hasClass","list-style-type","nodeAfter","init","getItems","$text","attribute:footnotesListStyle:footnotesDefinitions","element","upper-latin","decimal","position","item","4402578DjKoTG","setFootnoteFormatter","2butkdE","checkAttribute","footnotesStart","toLowerCase","5lEPyZs","parent","_updateFootnotesCounters","add","requires","24BKRMbn"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=252]})(t,e)}const mt=pt;!function(t){const e=pt,o=t();for(;;)try{if(770621===-parseInt(e(316))/1*(-parseInt(e(280))/2)+-parseInt(e(308))/3*(-parseInt(e(295))/4)+parseInt(e(284))/5*(parseInt(e(278))/6)+-parseInt(e(292))/7+parseInt(e(289))/8*(-parseInt(e(332))/9)+-parseInt(e(257))/10*(parseInt(e(340))/11)+parseInt(e(319))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[mt(252)](){return mt(330)}static get[mt(288)](){return[v,d]}static get[mt(296)](){return!0}static get[mt(299)](){return!0}[mt(269)](){const t=mt,{editor:e}=this;e[t(309)][t(350)](t(297),t(275)),e[t(309)][t(350)](t(329),1),e[t(312)][t(287)](t(343),new ct(e)),e[t(312)][t(287)](t(282),new ft(e)),this[t(314)](),this[t(337)](),this[t(304)](),this[t(320)]()}[mt(314)](){const t=mt,{editor:e}=this,{schema:o}=e[t(254)];o[t(323)](t(335),{allowAttributes:[t(290),t(325)]})}[mt(337)](){const t=mt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(260)](t(339))[t(287)](e=>{const o=t;e.on(o(302),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(341)]?.[s(285)];r[s(266)](s(255))&&a?.is(s(273),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(325)))return;let r=1;const a=o[i(322)][i(258)](t,{attributes:i(313)});if(a){const e=Number[i(256)](t[i(253)](i(313)),10);Number[i(338)](e)||(r=e)}!a&&e[i(261)](i(325))||o[i(306)][i(327)](i(325),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(290)))return;let r=i(275),a=!1;if(o[i(322)][i(258)](t,{attributes:i(300)})){const e={1:i(275),a:i(328),A:i(333),i:i(349),I:i(315)}[t[i(253)](i(300))];e&&(r=e),a=!0}o[i(322)][i(258)](t,{styles:i(267)})&&(r=function(t){const e=i;switch(t){case e(328):return e(305);case e(333):return e(274);default:return t}}(t[i(263)](i(267))),a=!0),!a&&e[i(261)](i(290))||o[i(306)][i(327)](i(290),r,e)}(r,a,n,i))})}),o[t(260)](t(345))[t(287)](e=>{const o=t;e.on(o(351),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;null==r||1===r?n[i(306)][i(324)](i(313),s):n[i(306)][i(327)](i(313),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(306)][i(354)](i(267),r,s):n[i(306)][i(318)](i(267),s)})})}[mt(320)](){const t=mt,{editor:e}=this,{model:o}=e,n=e[t(265)][t(307)](d),i=this[t(301)](),s=this[t(347)]();o[t(321)][t(336)](e=>{const r=t,a=o[r(321)][r(342)][r(310)]();let c=!1;for(const t of a){if(r(352)!==t[r(300)]||r(271)===t[r(303)])continue;const n=o[r(311)](t[r(276)][r(268)]);for(const t of n[r(270)]())t.is(r(273),r(335))&&(!t[r(261)](r(325))&&o[r(317)][r(281)](t,r(325))&&(e[r(327)](r(325),s,t),c=!0),!t[r(261)](r(290))&&o[r(317)][r(281)](t,r(290))&&(e[r(327)](r(290),i,t),c=!0))}return c&&n[r(286)](e),c})}[mt(304)](){const t=mt,{editor:e}=this;e[t(265)][t(307)](d)[t(279)](e=>this[t(346)](e))}[mt(301)](){const t=mt;return this[t(294)][t(309)][t(307)](t(297))}[mt(347)](){const t=mt;return this[t(294)][t(309)][t(307)](t(329))}[mt(346)]({container:t,value:e,digits:o}){const n=mt,i=t[n(253)](n(290)),s=t[n(253)](n(325)),r=Math[n(298)](e)+(s??1)-1;switch(i){case n(344):return function(t,e){const o=n;return String(t)[o(331)](e,"0")}(r,Math[n(264)](2,o));case n(328):case n(305):return yt(r,!1);case n(333):case n(274):return yt(r,!0);case n(349):return vt(r,!1);case n(315):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=mt,n=e[o(334)](t);return Array[o(353)](n[o(259)]())[o(291)](t=>t.is(o(273),"ol")&&t[o(266)](o(255)))}function yt(t,e){const o=mt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(298)]((i-1)/26)}return e?n[o(262)]():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=mt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(283)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=496]})(t,e)}function St(){var t=["isPremiumPlugin","1606263vJWwNz","4087611rGubAR","6fvDsgL","335sAxNTx","13864360oLMQXy","1524719OBodCT","isOfficialPlugin","272GFyyDp","requires","260721rsrKEA","FootnotesProperties","98284IuAlQY","110MtEonD","pluginName","8974hwQzuN"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(936706===-parseInt(e(497))/1*(-parseInt(e(506))/2)+-parseInt(e(499))/3+parseInt(e(510))/4*(-parseInt(e(502))/5)+-parseInt(e(501))/6*(-parseInt(e(504))/7)+parseInt(e(503))/8+parseInt(e(508))/9*(parseInt(e(511))/10)+-parseInt(e(500))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Tt extends t.Plugin{static get[xt(496)](){return xt(509)}static get[xt(507)](){return[gt,Ft]}static get[xt(505)](){return!0}static get[xt(498)](){return!0}}function At(){var t=["1827545VKwdnF","218745XiWyLU","1882320GAFDsB","1113066hrhcjS","147WBEdae","1171896yTunLG","4BolARx","150VLLFir","1587754iRAQED","590AdQILV"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(211537===parseInt(e(192))/1*(parseInt(e(187))/2)+parseInt(e(191))/3+parseInt(e(184))/4*(parseInt(e(188))/5)+-parseInt(e(193))/6+parseInt(e(186))/7+-parseInt(e(190))/8+parseInt(e(189))/9*(-parseInt(e(185))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x19eda0,Command as _0x351006}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x46d9c5,isWidget as _0x3b059c,toWidgetEditable as _0x180e5a,WidgetToolbarRepository as _0x4b86aa}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0xe68562,logWarning as _0x5aa102,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x33c070,ClickObserver as _0x37eab0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x3fef1b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1b55b4,ButtonView as _0x1fc42c,View as _0x350447,ViewCollection as _0x1ec22f,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0xce7b1e,BalloonPanelView as _0x410fb1,createDropdown as _0x3b9fda}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5a8fbf,IconListStyleDecimal as _0x2cca65,IconListStyleDecimalLeadingZero as _0x4d1f84,IconListStyleLowerRoman as _0x3b622a,IconListStyleUpperRoman as _0x521d19,IconListStyleLowerLatin as _0x4179bf,IconListStyleUpperLatin as _0x15bfb3}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4b4de4,_0x80e2e3){this['_model']=_0x4b4de4,this['_elementName']=_0x80e2e3['elementName'],this['_getElementKey']=_0x80e2e3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x401925){const _0x20b90f=new Set(),_0x5c78d7=new Map();for(const _0x3f8f5c of _0x401925){if('insert'===_0x3f8f5c['type']&&'$text'!==_0x3f8f5c['name']&&_0x3f8f5c['position']['nodeAfter']){const _0xb8cc09=this['_model']['createRangeOn'](_0x3f8f5c['position']['nodeAfter']);for(const _0x4460f2 of _0xb8cc09['getItems']()){if(!_0x4460f2['is']('element',this['_elementName']))continue;const _0x85873c=this['_getElementKey'](_0x4460f2);_0x5c78d7['has'](_0x85873c)||_0x5c78d7['set'](_0x85873c,[]),_0x5c78d7['get'](_0x85873c)['push'](_0x4460f2);}}if('remove'===_0x3f8f5c['type']&&_0x3f8f5c['name']===this['_elementName']){const _0x57b319=this['_getElementKey']({'getAttribute':_0x5a5989=>_0x3f8f5c['attributes']['get'](_0x5a5989)});_0x20b90f['add'](_0x57b319);}}for(const [_0x226124,_0x1dcafb]of this['_trackedElements'])'$graveyard'===_0x1dcafb['root']['rootName']&&_0x20b90f['add'](_0x226124);for(const _0x3acb0a of _0x20b90f)this['_trackedElements']['delete'](_0x3acb0a);for(const [_0x1a2b8e,_0x23e0e1]of _0x5c78d7)this['_trackedElements']['set'](_0x1a2b8e,_0x23e0e1[_0x23e0e1['length']-0x1]);const _0x76dab3=new Set();for(const [_0x27d3dc,_0x484ce0]of _0x5c78d7)_0x20b90f['has'](_0x27d3dc)&&(_0x76dab3['add'](_0x484ce0[0x0]),_0x484ce0['length']>0x1?_0x5c78d7['set'](_0x27d3dc,_0x484ce0['slice'](0x1)):_0x5c78d7['delete'](_0x27d3dc),_0x20b90f['delete'](_0x27d3dc));return{'removed':Array['from'](_0x20b90f),'inserted':Array['from'](_0x5c78d7['values']())['flat'](),'moved':Array['from'](_0x76dab3)};}}class f extends _0x19eda0{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56e833){super(_0x56e833),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x360554=>_0x360554['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x115fba=>_0x115fba['getAttribute']('footnoteId')});}['init'](){const {editor:_0x31b014}=this,{model:_0x3e8865,data:_0x414844}=_0x31b014;_0x3e8865['document']['registerPostFixer'](_0x2de95f=>{const _0x3fbfcc=_0x3e8865['document']['differ']['getChanges']();let _0x136565=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2de95f,_0x3fbfcc)&&(_0x136565=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2de95f,_0x3fbfcc)&&(_0x136565=!0x0),this['_handleFootnoteReferencesChanges'](_0x2de95f,_0x3fbfcc)&&(_0x136565=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2de95f)&&(_0x136565=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2de95f)&&(_0x136565=!0x0),this['_sortFootnoteDefinitions'](_0x2de95f)&&(_0x136565=!0x0),_0x136565;}),this['listenTo'](_0x3e8865['document'],'change:data',()=>{_0x3e8865['enqueueChange']({'isUndoable':!0x1},_0x2ab0af=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2ab0af);});},{'priority':'low'}),this['listenTo'](_0x414844,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x13d65b){return this['_footnotes']['find'](_0x54b88c=>_0x54b88c['id']===_0x13d65b)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x3a6126){this['_footnoteFormatter']=_0x3a6126;}['_updateFootnotesCounters'](_0x620e84,_0x492a4e=0x0){let _0x2e7119=!0x1;for(let _0x4b0702=_0x492a4e;_0x4b0702<this['_footnotes']['length'];_0x4b0702++)this['_updateFootnoteRefCounter'](_0x620e84,_0x4b0702)&&(_0x2e7119=!0x0);return _0x2e7119;}['_insertEmptyFootnotesDefinitionsContainer'](_0x5d48b2,_0x280952){const _0x3c4b79=_0x5d48b2['createElement']('footnotesDefinitions',{});return _0x5d48b2['append'](_0x3c4b79,_0x280952),this['_footnotesDefinitions']=_0x3c4b79,_0x3c4b79;}['_ensureFootnotesDefinitionsContainerExists'](_0x15e066){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x46b8fb=this['_footnotes'][0x0]['reference']['root'],_0x4b8607=this['_insertEmptyFootnotesDefinitionsContainer'](_0x15e066,_0x46b8fb);for(const _0x1943a7 of this['_footnotes'])_0x1943a7['definition']['parent']||_0x15e066['insert'](_0x1943a7['definition'],_0x4b8607,'end');this['_updateFootnotesCounters'](_0x15e066);}['_handleFootnotesDefinitionsObjectChanges'](_0x40c29b,_0x54ce9f){let _0xcd2768=!0x1;const {inserted:_0x1109b5,removed:_0x42a7b7,moved:_0x25d631}=this['_footnoteDefsContainerTracker']['getChanges'](_0x54ce9f);if(_0x25d631['length']&&(this['_footnotesDefinitions']=_0x25d631[0x0]),_0x1109b5['length']){if(_0x1109b5['length']>0x1||this['_footnotesDefinitions']&&_0x1109b5['some'](_0x156fdd=>_0x156fdd!==this['_footnotesDefinitions'])){const _0x1a6f41=_0x40c29b['createElement']('footnotesDefinitions',{}),_0x108658=[];this['_footnotesDefinitions']&&_0x108658['push'](this['_footnotesDefinitions']),_0x108658['push'](..._0x1109b5),_0x40c29b['insert'](_0x1a6f41,_0x108658[0x0],'before');for(const _0x1d0062 of _0x108658)_0x40c29b['move'](_0x40c29b['createRangeIn'](_0x1d0062),_0x40c29b['createPositionAt'](_0x1a6f41,'end')),_0x40c29b['remove'](_0x1d0062);this['_footnotesDefinitions']=_0x1a6f41,this['_updateFootnotesCounters'](_0x40c29b),_0xcd2768=!0x0;}else this['_footnotesDefinitions']=_0x1109b5[0x0];}if(_0x42a7b7['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x32c6ba of this['_footnotes'])_0x40c29b['remove'](_0x32c6ba['reference']),_0xcd2768=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xcd2768;}['_handleFootnoteDefinitionsChanges'](_0x5a3739,_0x360b50){let _0x452707=!0x1;const _0x2b65c2=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x36a186,moved:_0x5777ea}=this['_footnoteDefsTracker']['getChanges'](_0x360b50);for(const _0x646437 of[..._0x5777ea,..._0x36a186]){const _0x4b7d96=_0x646437['getAttribute']('footnoteId'),_0x4ea124=this['getFootnote'](_0x4b7d96);_0x4ea124&&(_0x4ea124['definition']=_0x646437),_(_0x5a3739,_0x2b65c2,_0x646437)&&(_0x452707=!0x0);}return _0x452707;}['_handleFootnoteReferencesChanges'](_0x5066b9,_0x25707b){let _0x4fe643=!0x1;const {removed:_0x8f6e9d,inserted:_0x3c6ada,moved:_0x59162c}=this['_footnoteRefsTracker']['getChanges'](_0x25707b);for(const _0x41580d of _0x8f6e9d)this['_handleRemoveFootnoteReferenceById'](_0x5066b9,_0x41580d)&&(_0x4fe643=!0x0);for(const _0x4352be of _0x3c6ada)this['_handleInsertedFootnoteReference'](_0x5066b9,_0x4352be)&&(_0x4fe643=!0x0);for(const _0x345412 of _0x59162c)this['_handleMovedFootnoteReference'](_0x5066b9,_0x345412)&&(_0x4fe643=!0x0);return _0x4fe643;}['_handleFootnotesDefinitionsObjectSync'](_0x164496){if(!this['_footnotesDefinitions'])return!0x1;let _0x5b2d7d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x21c12b=[];for(const _0x1e7bd2 of this['_footnotesDefinitions']['getChildren']()){const _0x50740e=_0x1e7bd2['getAttribute']('footnoteId');this['getFootnote'](_0x50740e)||(_0x21c12b['unshift'](_0x1e7bd2),_0x5b2d7d=!0x0);}for(const _0x538b29 of _0x21c12b)_0x164496['remove'](_0x538b29);}const _0x41df0f=new Set(),_0x252efd=[];for(const _0x200aac of this['_footnotesDefinitions']['getChildren']()){const _0xe67469=_0x200aac['getAttribute']('footnoteId');_0x41df0f['has'](_0xe67469)?(_0x252efd['unshift'](_0x200aac),_0x5b2d7d=!0x0):_0x41df0f['add'](_0xe67469);}for(const _0x4da757 of _0x252efd)_0x164496['remove'](_0x4da757);return this['_footnotesDefinitions']['childCount']||(_0x164496['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5b2d7d=!0x0),_0x5b2d7d;}['_handleInsertedFootnoteReference'](_0x214d68,_0x58afd5){if(this['_footnotes']['find'](_0x268caf=>_0x268caf['reference']===_0x58afd5))return!0x1;let _0x5e6ee7=!0x1;const _0x4d9fe9=_0x58afd5['getAttribute']('footnoteId'),_0x520cd0=this['_footnotes']['findIndex'](_0x1a39cc=>_0x1a39cc['id']===_0x4d9fe9);-0x1!==_0x520cd0&&(_0x214d68['remove'](this['_footnotes'][_0x520cd0]['reference']),this['_footnotes']['splice'](_0x520cd0,0x1),_0x5e6ee7=!0x0);let _0x3bf0b3=this['_footnotesDefinitions']?function(_0x1cbad2,_0x25046d){for(const _0x6e1c2 of _0x1cbad2['getChildren']())if(_0x6e1c2['getAttribute']('footnoteId')===_0x25046d)return _0x6e1c2;return null;}(this['_footnotesDefinitions'],_0x4d9fe9):null;_0x3bf0b3||(_0x3bf0b3=_0x214d68['createElement']('footnoteDefinition',{'footnoteId':_0x4d9fe9}),this['_footnotesDefinitions']&&(_0x214d68['insert'](_0x3bf0b3,this['_footnotesDefinitions'],'end'),_0x5e6ee7=!0x0));const _0x4f164b={'id':_0x4d9fe9,'reference':_0x58afd5,'definition':_0x3bf0b3},_0xedea11=I(this['editor']['model'],this['_footnotes'],_0x58afd5);this['_footnotes']['splice'](_0xedea11,0x0,_0x4f164b);let _0x274281=_0xedea11;return-0x1!==_0x520cd0&&(_0x274281=Math['min'](_0xedea11,_0x520cd0)),this['_updateFootnotesCounters'](_0x214d68,_0x274281)&&(_0x5e6ee7=!0x0),_0x5e6ee7;}['_handleRemoveFootnoteReferenceById'](_0x2c4d49,_0x1c9ee4){const _0x281a99=this['_footnotes']['findIndex'](_0x2744d7=>_0x2744d7['id']===_0x1c9ee4);if(-0x1===_0x281a99)return!0x1;let _0x556462=!0x1;const _0x4ce5a1=this['_footnotes'][_0x281a99];return'$graveyard'!==_0x4ce5a1['definition']['root']['rootName']&&(_0x2c4d49['remove'](_0x4ce5a1['definition']),_0x556462=!0x0),this['_footnotes']['splice'](_0x281a99,0x1),this['_updateFootnotesCounters'](_0x2c4d49,_0x281a99)&&(_0x556462=!0x0),_0x556462;}['_handleMovedFootnoteReference'](_0x593c41,_0x1db67b){const _0x31b254=_0x1db67b['getAttribute']('footnoteId'),_0xffe4b9=this['_footnotes']['findIndex'](_0x50b5c2=>_0x50b5c2['id']===_0x31b254),_0x1017c2=this['_footnotes'][_0xffe4b9];let _0x5c6c41=!0x1;_0x1017c2['reference']=_0x1db67b,this['_footnotes']['splice'](_0xffe4b9,0x1);const _0x25b2f5=I(this['editor']['model'],this['_footnotes'],_0x1db67b);return this['_footnotes']['splice'](_0x25b2f5,0x0,_0x1017c2),this['_updateFootnotesCounters'](_0x593c41,Math['min'](_0xffe4b9,_0x25b2f5))&&(_0x5c6c41=!0x0),_0x5c6c41;}['_updateFootnoteRefCounter'](_0x3db630,_0x354e6e){if(!this['_footnotesDefinitions'])return!0x1;const _0x1c085d=this['_footnotes'][_0x354e6e];let _0xc5149c;return _0xc5149c=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1c085d,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x354e6e+0x1}):String(_0x354e6e+0x1),_0x1c085d['reference']['getAttribute']('footnoteCounter')!=_0xc5149c&&(_0x3db630['setAttribute']('footnoteCounter',_0xc5149c,_0x1c085d['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x6d36f1){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x571781,_0x23d9d4){if(_0x571781['length']!==_0x23d9d4['length'])return!0x1;for(let _0xa20913=0x0;_0xa20913<_0x571781['length'];_0xa20913++)if(_0x571781[_0xa20913]!==_0x23d9d4[_0xa20913])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1886da=>_0x1886da['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x20f7c3=>_0x20f7c3['getAttribute']('footnoteId'))))return!0x1;let _0x4afc76=!0x1;for(let _0x29e90c=0x0;_0x29e90c<this['_footnotes']['length'];_0x29e90c++){const _0xacf9ae=this['_footnotes'][_0x29e90c],_0x3ec5e0=_0x6d36f1['createPositionBefore'](_0xacf9ae['definition']),_0x179448=_0x6d36f1['createPositionAt'](this['_footnotesDefinitions'],_0x29e90c);_0x3ec5e0['isEqual'](_0x179448)||(_0x6d36f1['move'](_0x6d36f1['createRangeOn'](_0xacf9ae['definition']),_0x179448),_0x4afc76=!0x0);}return _0x4afc76;}['_ensureFootnotesReferencesHaveProperOrder'](_0x39a2b1){if(!this['_footnotes']['length'])return!0x1;const {model:_0x464a8b}=this['editor'];let _0x24beec=!0x1;for(let _0x41d3ab=0x0;_0x41d3ab<this['_footnotes']['length']-0x1;_0x41d3ab++){const _0x54ade2=this['_footnotes'][_0x41d3ab],_0xdd86a2=this['_footnotes'][_0x41d3ab+0x1],_0x2cdcca=_0x464a8b['createPositionBefore'](_0x54ade2['reference']),_0x4f43e7=_0x464a8b['createPositionBefore'](_0xdd86a2['reference']);'after'===_0x2cdcca['compareWith'](_0x4f43e7)&&(this['_handleMovedFootnoteReference'](_0x39a2b1,_0x54ade2['reference']),_0x41d3ab=-0x1,_0x24beec=!0x0);}return _0x24beec;}}function _(_0x592612,_0x2c5dc3,_0x1acb21){if(_0x1acb21['childCount'])return!0x1;const _0x10fcdb=_0x2c5dc3?'paragraph':'footnoteInlineContent';return _0x592612['insert'](_0x592612['createElement'](_0x10fcdb),_0x1acb21),!0x0;}function I(_0x119e33,_0x4b90fd,_0x13be05){if(0x0===_0x4b90fd['length'])return 0x0;const _0x1a082c=_0x119e33['createPositionBefore'](_0x13be05);for(let _0x38607d=0x0;_0x38607d<_0x4b90fd['length'];_0x38607d++){const _0x56e4d3=_0x4b90fd[_0x38607d],_0x4c76cd=_0x119e33['createPositionBefore'](_0x56e4d3['reference']);if('before'===_0x1a082c['compareWith'](_0x4c76cd))return _0x38607d;}const _0x13b3de=_0x13be05['root'];let _0x189abb=-0x1;for(let _0x4dd45e=_0x4b90fd['length']-0x1;_0x4dd45e>=0x0;_0x4dd45e--)if(_0x4b90fd[_0x4dd45e]['reference']['root']===_0x13b3de){_0x189abb=_0x4dd45e;break;}if(-0x1!==_0x189abb)return _0x189abb+0x1;const _0x23319c=_0x119e33['document']['getRootNames'](),_0x3d6f7d=_0x23319c['indexOf'](_0x13b3de['rootName']),_0x30523e=_0x23319c[_0x3d6f7d+0x1];if(_0x30523e){for(let _0x3f2d43=0x0;_0x3f2d43<_0x4b90fd['length'];_0x3f2d43++)if(_0x4b90fd[_0x3f2d43]['reference']['root']['rootName']===_0x30523e)return _0x3f2d43;}return _0x4b90fd['length'];}class h extends _0x351006{['refresh'](){const _0x38c387=this['editor']['model']['document']['selection'],_0x4b8557=this['_getPositionToInsertFootnote'](_0x38c387);this['isEnabled']=!!_0x4b8557;}['execute'](_0x3f6ac8){const {editor:_0x253f61}=this,{model:_0x56c9f8}=_0x253f61,{selection:_0x3ac66e}=_0x56c9f8['document'],_0x332a6a=this['_getPositionToInsertFootnote'](_0x3ac66e);if(!_0x332a6a)return;const _0x13e4e7=_0x253f61['plugins']['get']('FootnotesEditing'),_0x325793=_0x3f6ac8?.['footnoteId']??_0xe68562();!function(_0x5a0154){return'string'==typeof _0x5a0154&&_0x5a0154['length']>0x0&&!/\s/['test'](_0x5a0154)&&!/^\d/['test'](_0x5a0154);}(_0x325793)?_0x5aa102('insert-footnote-command-executed-with-invalid-id'):(_0x56c9f8['change'](_0x2c7b62=>{const _0x567f64=_0x2c7b62['createElement']('footnoteRef',{'footnoteId':_0x325793});_0x56c9f8['insertObject'](_0x567f64,_0x332a6a,null);}),_0x13e4e7['_moveSelectionToFootnoteDefinition'](_0x325793));}['_getPositionToInsertFootnote'](_0x568fea){const {model:_0x33183a}=this['editor'],{schema:_0x2ee7b3}=_0x33183a,_0x5b8908=_0x568fea['getFirstRange']();for(const _0x53fc73 of _0x5b8908['getItems']())if(_0x2ee7b3['isBlock'](_0x53fc73)||_0x2ee7b3['isObject'](_0x53fc73))return null;const _0x56c86c=_0x5b8908['end'];return _0x2ee7b3['checkChild'](_0x56c86c,'footnoteRef')?_0x56c86c:null;}}class r extends _0x19eda0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1fd911}=this;_0x1fd911['config']['define']('footnotes.multiBlock',!0x0),_0x1fd911['commands']['add']('insertFootnote',new h(_0x1fd911)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x97e799){const _0x55e8ba=_0xdf3085([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]),_0x1a5a46=0x47a28506,_0x5ddad6=0x47a5fb86^_0x1a5a46,_0xab1153=window[_0xdf3085([0x44,0x61,0x74,0x65])][_0xdf3085([0x6e,0x6f,0x77])](),_0xdb8519=_0x97e799[_0xdf3085([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e04ba=new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e420=>{_0xdb8519[_0xdf3085([0x6f,0x6e,0x63,0x65])](_0xdf3085([0x72,0x65,0x61,0x64,0x79]),_0x34e420);}),_0x37c533={[_0xdf3085([0x6b,0x74,0x79])]:_0xdf3085([0x45,0x43]),[_0xdf3085([0x75,0x73,0x65])]:_0xdf3085([0x73,0x69,0x67]),[_0xdf3085([0x63,0x72,0x76])]:_0xdf3085([0x50,0x2d,0x32,0x35,0x36]),[_0xdf3085([0x78])]:_0xdf3085([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]),[_0xdf3085([0x79])]:_0xdf3085([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]),[_0xdf3085([0x61,0x6c,0x67])]:_0xdf3085([0x45,0x53,0x32,0x35,0x36])},_0x4d0960=_0xdb8519[_0xdf3085([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xdf3085([0x67,0x65,0x74])](_0xdf3085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4275c0(){let _0x4579f7,_0x17c046=null,_0x5381fb=null;try{if(_0x4d0960==_0xdf3085([0x47,0x50,0x4c]))return _0xdf3085([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4579f7=_0x560b3f(),!_0x4579f7)return _0xdf3085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4579f7[_0xdf3085([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5381fb=_0x5a577b(_0x4579f7[_0xdf3085([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4579f7[_0xdf3085([0x6a,0x74,0x69])])),await _0x58cd94()?_0xd737db()?_0x242cb5()?_0xdf3085([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e5477()?(_0x4579f7[_0xdf3085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdf3085([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17c046=_0x3bdcc7(_0xdf3085([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f7b4e()):_0xdf3085([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xdf3085([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xdf3085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xdf3085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x242cb5(){const _0x54b4c2=[_0xdf3085([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xdf3085([0x74,0x72,0x69,0x61,0x6c])][_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4579f7[_0xdf3085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xab1153/0x3e8:0xe10*_0x5ddad6;return _0x4579f7[_0xdf3085([0x65,0x78,0x70])]<_0x54b4c2;}function _0xd737db(){const _0x5ddb5b=_0x4579f7[_0xdf3085([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ddb5b&&(!!_0x5ddb5b[_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf3085([0x2a]))||!!_0x5ddb5b[_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf3085([0x46,0x4f,0x4f])));}function _0x2e5477(){const _0x37c73c=_0x4579f7[_0xdf3085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37c73c||0x0==_0x37c73c[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e25d1}=new URL(window[_0xdf3085([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37c73c[_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e25d1))return!0x0;const _0x428882=_0x5e25d1[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])](_0xdf3085([0x2e]));return _0x37c73c[_0xdf3085([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5087d4=>_0x5087d4[_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf3085([0x2a])))[_0xdf3085([0x6d,0x61,0x70])](_0x5e7a32=>_0x5e7a32[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])](_0xdf3085([0x2e])))[_0xdf3085([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f0ad0=>_0x3f0ad0[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x428882[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdf3085([0x6d,0x61,0x70])](_0x1a581f=>Array(_0x428882[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a581f[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdf3085([0x66,0x69,0x6c,0x6c])](_0x1a581f[0x0]===_0xdf3085([0x2a])?_0xdf3085([0x2a]):'')[_0xdf3085([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a581f))[_0xdf3085([0x73,0x6f,0x6d,0x65])](_0x43bf1b=>_0x428882[_0xdf3085([0x65,0x76,0x65,0x72,0x79])]((_0x557dfb,_0x2f9862)=>_0x43bf1b[_0x2f9862]===_0x557dfb||_0x43bf1b[_0x2f9862]===_0xdf3085([0x2a])));}function _0x3f7b4e(){return _0x17c046&&_0x5381fb?new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17e96a,_0x294b22)=>{_0x17c046[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x17e96a,_0x294b22),_0x5381fb[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x1960d0=>{_0x1960d0!=_0xdf3085([0x56,0x61,0x6c,0x69,0x64])&&_0x17e96a(_0x1960d0);},_0x294b22);}):_0x17c046||_0x5381fb||_0xdf3085([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a577b(_0xda64a2,_0x3c9840){return new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd73376=>{if(_0x25fb34())return _0xd73376(_0xdf3085([0x56,0x61,0x6c,0x69,0x64]));_0xd9dc1d(),_0xdb8519[_0xdf3085([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xdf3085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x367db1=!0x1;const _0x33afdf=_0xe68562();function _0x62c779(_0x6f40f3){return!!_0x6f40f3&&(typeof _0x6f40f3===_0xdf3085([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6f40f3===_0xdf3085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6f40f3[_0xdf3085([0x74,0x68,0x65,0x6e])]===_0xdf3085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6f40f3[_0xdf3085([0x63,0x61,0x74,0x63,0x68])]===_0xdf3085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ac6ea(_0x51d0ed){_0x489598(_0x51d0ed)[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x408245=>{if(!_0x408245||_0x408245[_0xdf3085([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xdf3085([0x6f,0x6b]))return _0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d2d44(_0x5544e3(_0x33afdf+_0x3c9840))!=_0x408245[_0xdf3085([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xdf3085([0x56,0x61,0x6c,0x69,0x64]);})[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x245255=>(_0x50b53a(),_0x245255),()=>{const _0x1693ac=_0x289ed8();return null==_0x1693ac?(_0x50b53a(),_0xdf3085([0x56,0x61,0x6c,0x69,0x64])):_0xdf3085(_0xab1153-_0x1693ac>(0x63ae0106^_0x1a5a46)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xdf3085([0x74,0x68,0x65,0x6e])](_0xd73376)[_0xdf3085([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd73376(_0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfb9126=0x47946b86^_0x1a5a46;function _0x50b53a(){const _0x4b50fa=_0xdf3085([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d2d44(_0x5544e3(_0xda64a2)),_0x2952d5=_0x1ed57e(_0x1d2d44(window[_0xdf3085([0x4d,0x61,0x74,0x68])][_0xdf3085([0x63,0x65,0x69,0x6c])](_0xab1153/_0xfb9126)));window[_0xdf3085([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdf3085([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b50fa,_0x2952d5);}function _0x289ed8(){const _0xd3cfd2=_0xdf3085([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d2d44(_0x5544e3(_0xda64a2)),_0x6b25d7=window[_0xdf3085([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdf3085([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd3cfd2);return _0x6b25d7?window[_0xdf3085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ed57e(_0x6b25d7),0x10)*_0xfb9126:null;}function _0x489598(_0x229e11){return new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aadd0,_0x5402ff)=>{_0x229e11[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x4aadd0,_0x5402ff),window[_0xdf3085([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5402ff,0x47a351c6^_0x1a5a46);});}}_0xdb8519[_0xdf3085([0x6f,0x6e])](_0xdf3085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58cc70,_0x252bd1)=>{if(_0x252bd1[0x0]!=_0xda64a2)return _0xd73376(_0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x252bd1[0x1]={..._0x252bd1[0x1],[_0xdf3085([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33afdf};},{[_0xdf3085([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdf3085([0x68,0x69,0x67,0x68])}),_0xdb8519[_0xdf3085([0x6f,0x6e])](_0xdf3085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56d7f4=>{_0x62c779(_0x56d7f4[_0xdf3085([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x367db1=!0x0,_0x4ac6ea(_0x56d7f4[_0xdf3085([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xdf3085([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdf3085([0x6c,0x6f,0x77])}),_0x5e04ba[_0xdf3085([0x74,0x68,0x65,0x6e])](()=>{_0x367db1||_0xd73376(_0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25fb34(){return _0xdb8519[_0xdf3085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdf3085([0x76,0x69,0x65,0x77])][_0xdf3085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xdf3085([0x61,0x75,0x74,0x6f]);}function _0xd9dc1d(){_0xdb8519[_0xdf3085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdf3085([0x76,0x69,0x65,0x77])][_0xdf3085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xdf3085([0x61,0x75,0x74,0x6f]);}}function _0x3bdcc7(_0x2fa7f0){const _0x1ca4fb=[new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c7e70=>setTimeout(_0x2c7e70,0x47abbbca^_0x1a5a46)),_0x5e04ba[_0xdf3085([0x74,0x68,0x65,0x6e])](()=>new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42cd64=>{let _0x58491e=0x0;_0xdb8519[_0xdf3085([0x6d,0x6f,0x64,0x65,0x6c])][_0xdf3085([0x6f,0x6e])](_0xdf3085([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ba61d,_0x3cb4f8)=>{_0x3cb4f8[0x0][_0xdf3085([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58491e++,_0x58491e==(0x47a280ee^_0x1a5a46)&&(_0x42cd64(),_0x5ba61d[_0xdf3085([0x6f,0x66,0x66])]());});}))];return window[_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xdf3085([0x72,0x61,0x63,0x65])](_0x1ca4fb)[_0xdf3085([0x74,0x68,0x65,0x6e])](()=>_0x2fa7f0);}async function _0x463950(){await _0x5e04ba,_0xdb8519[_0xdf3085([0x6d,0x6f,0x64,0x65,0x6c])][_0xdf3085([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x332251,_0xdb8519[_0xdf3085([0x6d,0x6f,0x64,0x65,0x6c])][_0xdf3085([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x332251,_0xdb8519[_0xdf3085([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xdf3085([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e88a2(_0x2b4f88){const _0x239105=_0x553e11();_0xdb8519[_0x239105]=_0xdf3085([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b4f88,_0x2b4f88!=_0xdf3085([0x56,0x61,0x6c,0x69,0x64])&&_0x463950();}function _0x553e11(){const _0x559edd=window[_0xdf3085([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xdf3085([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xdf3085([0x6e,0x6f,0x77])]())[_0xdf3085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xdf3085([0x2e]),'');let _0x39f14a=_0xdf3085([0x75]);for(let _0x5ad9f2=0x0;_0x5ad9f2<_0x559edd[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ad9f2+=0x2){let _0xbb05d0=window[_0xdf3085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x559edd[_0xdf3085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ad9f2,_0x5ad9f2+0x2));_0xbb05d0>=_0x55e8ba[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbb05d0-=_0x55e8ba[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39f14a+=_0x55e8ba[_0xbb05d0];}return _0x39f14a;}function _0x560b3f(){const _0x323029=_0x4d0960[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])](_0xdf3085([0x2e]));if(0x3!=_0x323029[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x485e50(_0x323029[0x1]);function _0x485e50(_0x127db8){const _0x19172b=_0x4e1ec6(_0x127db8);return _0x19172b&&_0x1a77ae()?_0x19172b:null;function _0x1a77ae(){const _0x34c81c=_0x19172b[_0xdf3085([0x6a,0x74,0x69])],_0x32fdf5=window[_0xdf3085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c81c[_0xdf3085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34c81c[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x493106={..._0x19172b,[_0xdf3085([0x6a,0x74,0x69])]:_0x34c81c[_0xdf3085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34c81c[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x493106[_0xdf3085([0x76,0x63])],_0x5544e3(_0x493106)==_0x32fdf5;}}}async function _0x58cd94(){let _0x4613d2=!0x0;try{const _0x2f3b95=_0x4d0960[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])](_0xdf3085([0x2e])),[_0x160760,_0x592e26,_0x41c320]=_0x2f3b95;return _0x2bcfcc(_0x160760),await _0x579591(_0x160760,_0x592e26,_0x41c320),_0x4613d2;}catch{return!0x1;}function _0x2bcfcc(_0x245da8){const _0x466863=_0x4e1ec6(_0x245da8);_0x466863&&_0x466863[_0xdf3085([0x61,0x6c,0x67])]==_0xdf3085([0x45,0x53,0x32,0x35,0x36])||(_0x4613d2=!0x1);}async function _0x579591(_0x2a3fb3,_0x2cbfe9,_0x4bead8){const _0x583b91=window[_0xdf3085([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xdf3085([0x66,0x72,0x6f,0x6d])](_0x27e683(_0x4bead8),_0x2f8378=>_0x2f8378[_0xdf3085([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dc387=new window[(_0xdf3085([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xdf3085([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a3fb3+_0xdf3085([0x2e])+_0x2cbfe9),_0x1a60b5=window[_0xdf3085([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xdf3085([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a60b5)return;const _0x57af7e=await _0x1a60b5[_0xdf3085([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xdf3085([0x6a,0x77,0x6b]),_0x37c533,{[_0xdf3085([0x6e,0x61,0x6d,0x65])]:_0xdf3085([0x45,0x43,0x44,0x53,0x41]),[_0xdf3085([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xdf3085([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xdf3085([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a60b5[_0xdf3085([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xdf3085([0x6e,0x61,0x6d,0x65])]:_0xdf3085([0x45,0x43,0x44,0x53,0x41]),[_0xdf3085([0x68,0x61,0x73,0x68])]:{[_0xdf3085([0x6e,0x61,0x6d,0x65])]:_0xdf3085([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57af7e,_0x583b91,_0x4dc387)||(_0x4613d2=!0x1);}}function _0x4e1ec6(_0x269e87){return _0x269e87[_0xdf3085([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xdf3085([0x65,0x79]))?JSON[_0xdf3085([0x70,0x61,0x72,0x73,0x65])](_0x27e683(_0x269e87)):null;}function _0x27e683(_0x942cb){return window[_0xdf3085([0x61,0x74,0x6f,0x62])](_0x942cb[_0xdf3085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xdf3085([0x2b]))[_0xdf3085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xdf3085([0x2f])));}function _0x5544e3(_0x2e96fb){let _0x5f05c8=0x1505;function _0x1a56fa(_0x79a812){for(let _0x1cfcbe=0x0;_0x1cfcbe<_0x79a812[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cfcbe++){const _0x32eee9=_0x79a812[_0xdf3085([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cfcbe);_0x5f05c8=(_0x5f05c8<<0x5)+_0x5f05c8+_0x32eee9,_0x5f05c8&=_0x5f05c8;}}function _0x1a72c6(_0x7efaf9){Array[_0xdf3085([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7efaf9)?_0x7efaf9[_0xdf3085([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a72c6):_0x7efaf9&&typeof _0x7efaf9==_0xdf3085([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xdf3085([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7efaf9)[_0xdf3085([0x73,0x6f,0x72,0x74])]()[_0xdf3085([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c9411,_0x487e83])=>{_0x1a56fa(_0x3c9411),_0x1a72c6(_0x487e83);}):_0x1a56fa(window[_0xdf3085([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7efaf9));}return _0x1a72c6(_0x2e96fb),_0x5f05c8>>>0x0;}function _0x1d2d44(_0x561b4c){return _0x561b4c[_0xdf3085([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xdf3085([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xdf3085([0x30]));}function _0x1ed57e(_0xff70f){return _0xff70f[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])]('')[_0xdf3085([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xdf3085([0x6a,0x6f,0x69,0x6e])]('');}function _0x332251(){}function _0xdf3085(_0x3c6e69){return _0x3c6e69['map'](_0x468776=>String['fromCharCode'](_0x468776))['join']('');}_0x5e88a2(await _0x4275c0());}(this);}['_moveSelectionToFootnoteDefinition'](_0x18f139){const {plugins:_0x51bf06,editing:_0x259cc1,model:_0x391d0e}=this['editor'],_0x97a63a=_0x51bf06['get'](f)['getFootnote'](_0x18f139);return!!_0x97a63a&&(_0x391d0e['change'](_0x301ecc=>{_0x301ecc['setSelection'](_0x301ecc['createPositionAt'](_0x97a63a['definition'],'end'));}),_0x259cc1['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x190455){const {plugins:_0x172909,editing:_0x4b6c43,model:_0x12562c}=this['editor'],_0x502a88=_0x172909['get'](f)['getFootnote'](_0x190455);return!!_0x502a88&&(_0x12562c['change'](_0x280035=>{_0x280035['setSelection'](_0x502a88['reference'],'on');}),_0x4b6c43['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xaa6b86}=this['editor']['model'],_0x390a82=this['editor']['config']['get']('footnotes.multiBlock');_0xaa6b86['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xaa6b86['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xaa6b86['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x390a82?_0xaa6b86['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xaa6b86['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xaa6b86['addChildCheck'](_0x5906f4=>{for(const _0x2712d2 of _0x5906f4)if('footnoteDefinition'===_0x2712d2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x500f20}=this,{conversion:_0x4b2c9f,editing:_0x58b464}=_0x500f20,{t:t}=_0x500f20['locale'];_0x4b2c9f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x38837e,{writer:_0x5d575f,consumable:_0x1008ba})=>{const _0x3473ec=_0x38837e['getChild'](0x0);if(!_0x3473ec||!_0x3473ec['is']('element','a'))return null;const _0x2f696b=_0x3473ec['getAttribute']('href')||'';if(!_0x2f696b['startsWith']('#'))return null;const _0x3ba948=_0x2f696b['replace'](/^#/,'');if(!_0x3ba948)return null;_0x1008ba['consume'](_0x3473ec,{'name':!0x0,'attributes':['href']});for(const {item:_0x26413c}of _0x58b464['view']['createRangeIn'](_0x3473ec))_0x26413c['is']('$textProxy')?_0x1008ba['consume'](_0x26413c['textNode'],{'name':!0x0}):_0x26413c['is']('element')&&_0x1008ba['consume'](_0x26413c,{'name':!0x0});return _0x5d575f['createElement']('footnoteRef',{'footnoteId':_0x3ba948});}}),_0x4b2c9f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x40afba,{writer:_0x4ba1a3})=>b(_0x40afba,_0x4ba1a3)}),_0x4b2c9f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xb5ca3d,{writer:_0x4281f8})=>{const _0x248371=_0xb5ca3d['getAttribute']('footnoteCounter');return _0x46d9c5(b(_0xb5ca3d,_0x4281f8),_0x4281f8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x248371)});}});}['_defineDefinitionsConverters'](){const {editor:_0x13ee6b}=this,{t:t}=_0x13ee6b['locale'],{conversion:_0x3b1a48}=_0x13ee6b;_0x3b1a48['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3b1a48['for']('upcast')['add'](_0x1e2680=>{_0x1e2680['on']('element:ol',(_0x20f405,_0x4b3d05,_0x3820cf)=>{const _0x475213=_0x4b3d05['viewItem'];if(!_0x475213['hasClass']('footnotes-list')||!_0x4b3d05['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3820cf['consumable']['consume'](_0x475213,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2c154c,modelCursor:_0x5c543a}=_0x3820cf['convertChildren'](_0x4b3d05['viewItem'],_0x4b3d05['modelCursor']);_0x4b3d05['modelRange']=_0x2c154c,_0x4b3d05['modelCursor']=_0x5c543a;}),_0x1e2680['on']('element:hr',(_0x4c646e,_0x248d23,_0x4a4c17)=>{const _0x5c7c54=_0x248d23['viewItem'];_0x5c7c54['hasClass']('footnotes-divider')&&_0x248d23['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4a4c17['consumable']['consume'](_0x5c7c54,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3b1a48['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2ac95d,{writer:_0x2cfde7})=>D(_0x2cfde7)}),_0x3b1a48['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3ed7a6,{writer:_0x2708d0})=>{const _0x15c322=D(_0x2708d0,{'data-footnotes-list-label':t('Footnotes')}),_0x339db1=_0x46d9c5(_0x15c322,_0x2708d0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2708d0['setCustomProperty']('footnotesDefinitions',!0x0,_0x339db1),_0x339db1;}});}['_defineDefinitionConverters'](){const {editor:_0x47a994}=this,{conversion:_0x4b3375,locale:_0x28a4ca}=_0x47a994,_0x495c19=_0x47a994['config']['get']('footnotes.multiBlock');_0x4b3375['for']('upcast')['add'](_0x3edbf4=>{_0x3edbf4['on']('element:li',(_0x216e8d,_0x2625d9,_0x1fa155)=>{const _0x152055=_0x2625d9['viewItem'];if(!_0x152055['hasClass']('footnote-definition')||!_0x152055['getAttribute']('id'))return;const _0x17fecf=_0x152055['parent'];if(!_0x17fecf['is']('element','ol')||!_0x17fecf['hasClass']('footnotes-list'))return;if(!_0x1fa155['consumable']['test'](_0x152055,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3e72ca=_0x1fa155['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x152055['getAttribute']('id')});if(!_0x1fa155['safeInsert'](_0x3e72ca,_0x2625d9['modelCursor']))return;_0x1fa155['consumable']['consume'](_0x152055,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x475bc1=Array['from'](_0x152055['getChildren']())['find'](_0x35230e=>_0x35230e['is']('element')&&_0x35230e['hasClass']('footnote-content'));for(const _0x41c6c9 of _0x152055['getChildren']())_0x41c6c9['is']('element')&&(_0x1fa155['consumable']['consume'](_0x41c6c9,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1fa155['consumable']['consume'](_0x41c6c9,{'name':!0x0,'classes':'footnote-content'}));if(_0x475bc1){if(_0x495c19)_0x1fa155['convertChildren'](_0x475bc1,_0x3e72ca);else{const _0x2bba68=_0x1fa155['writer']['createElement']('footnoteInlineContent');_0x1fa155['writer']['insert'](_0x2bba68,_0x3e72ca),_0x1fa155['convertChildren'](_0x475bc1,_0x2bba68);}}_0x1fa155['updateConversionResult'](_0x3e72ca,_0x2625d9);});}),_0x4b3375['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4c47f6,{writer:_0x48abb0})=>y(_0x4c47f6,_0x48abb0,_0x28a4ca,{'dataPipeline':!0x0})}),_0x4b3375['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1d2c5a,{writer:_0x59d8aa})=>y(_0x1d2c5a,_0x59d8aa,_0x28a4ca)});}['_defineBogusParagraphConverters'](){const {editor:_0x822fea}=this,{conversion:_0x492fe7}=_0x822fea;_0x822fea['config']['get']('footnotes.multiBlock')?(_0x492fe7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x492fe7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x822fea['model']['document'],'change:data',()=>{!function(_0x4b7ddd,_0x5f5d1d){const _0x162a88=_0x4b7ddd['document']['differ'],_0x492b55=new Set();for(const _0x46101f of _0x162a88['getChanges']()){const _0x1a21b6='attribute'==_0x46101f['type']?_0x46101f['range']['start']['parent']:_0x46101f['position']['parent'];_0x1a21b6['is']('element','footnoteDefinition')&&_0x492b55['add'](_0x1a21b6);}for(const _0x38044b of _0x492b55['values']()){const _0x36a522=Array['from'](_0x38044b['getChildren']())['filter'](_0x24a86f=>v(_0x24a86f,_0x5f5d1d['mapper']));for(const _0x560045 of _0x36a522)_0x5f5d1d['reconvertItem'](_0x560045);}}(_0x822fea['model'],_0x822fea['editing']);})):(_0x492fe7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x492fe7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x36212a,{writer:_0x50d137})=>{const _0x53855f=_0x50d137['createContainerElement']('span');return _0x50d137['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x53855f),_0x53855f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1c03ca}=this,{editing:_0x1f4ba3,t:t}=_0x1c03ca,_0x294f56=_0x1c03ca['model']['document']['selection'];_0x1c03ca['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1c03ca['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1f4ba3['view']['document'],'enter',(_0x57e11f,_0x5987d4)=>{const _0x1b03e3=function(_0x3fa73a){const _0x2a60ac=_0x3fa73a['getSelectedElement']();if(_0x2a60ac?.['is']('element','footnoteRef'))return _0x2a60ac;return null;}(_0x294f56);if(_0x1b03e3){const _0x1e9be0=_0x1b03e3['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1e9be0),_0x5987d4['preventDefault'](),_0x57e11f['stop']();}},{'context':_0x3b059c});}['_defineClickHandlers'](){const {editor:_0x4231ce}=this,{editing:_0x49232e}=_0x4231ce;_0x4231ce['editing']['view']['addObserver'](_0x33c070),_0x4231ce['editing']['view']['addObserver'](_0x37eab0);let _0x3fcff5=!0x1;this['listenTo'](_0x49232e['view']['document'],'pointerdown',(_0x174ce7,_0x125fdc)=>{const {target:_0x476a92}=_0x125fdc,_0x4e074b=_0x49232e['view']['document']['selection'];_0x3fcff5=!!(_0x476a92?.['is']('element','a')&&_0x476a92['parent']?.['is']('element','sup')&&_0x476a92['parent']['hasClass']('footnote'))&&_0x4e074b['getSelectedElement']()===_0x476a92['parent'];},{'priority':'high'}),this['listenTo'](_0x49232e['view']['document'],'click',(_0x283188,_0x388ca0)=>{const {target:_0x342df5}=_0x388ca0;if(!_0x342df5?.['is']('element','a'))return;if(_0x342df5['parent']?.['is']('element','sup')&&_0x342df5['parent']['hasClass']('footnote')&&!_0x3fcff5)return void _0x388ca0['preventDefault']();let _0x4fdab1=_0x342df5['getAttribute']('href');if(!_0x4fdab1?.['startsWith']('#'))return;_0x4fdab1=_0x4fdab1['slice'](0x1);let _0x4ad8f2=!0x1;(_0x4fdab1['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4fdab1['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4fdab1))&&(_0x4ad8f2=!0x0),_0x4ad8f2&&(_0x388ca0['preventDefault'](),_0x283188['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x163ced}={}){return(_0x8cdac,{writer:_0x23ae3d})=>{if(!g(_0x8cdac))return null;if(!_0x163ced)return _0x23ae3d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4cd075=_0x23ae3d['createContainerElement']('p');return _0x23ae3d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4cd075),_0x4cd075;};}function g(_0x5ae1e9){const {parent:_0x16dde0}=_0x5ae1e9;if(!_0x16dde0?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x16dde0['childCount'])return!0x1;for(const _0x3aa6 of _0x5ae1e9['getAttributeKeys']())if(!_0x3aa6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3aa6)return!0x1;return!0x0;}function v(_0xb8a2d9,_0x183a8a){if(!_0xb8a2d9['is']('element','paragraph'))return!0x1;const _0x533f3e=_0x183a8a['toViewElement'](_0xb8a2d9);return!!_0x533f3e&&g(_0xb8a2d9)!==_0x533f3e['is']('element','span');}function Q(_0x33de29){return _0x3b059c(_0x33de29)&&_0x33de29['is']('containerElement')&&!!_0x33de29['getCustomProperty']('footnotesDefinitions');}function D(_0x53be40,_0x4dfe88={}){const _0x1ff9b5=_0x53be40['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x48f71c=_0x53be40['createContainerElement']('ol',{'class':'footnotes-list'},_0x53be40['createSlot']());return _0x53be40['createContainerElement']('div',{'class':'footnotes',..._0x4dfe88},[_0x1ff9b5,_0x48f71c]);}function b(_0x5dcd9c,_0x23d8f5){const _0x36ce0f=_0x5dcd9c['getAttribute']('footnoteId'),_0x4e180c=_0x5dcd9c['getAttribute']('footnoteCounter'),_0x455861=_0x23d8f5['createUIElement']('a',{'href':'#'+_0x36ce0f},function(_0x1df7cd){const _0x43fc46=this['toDomElement'](_0x1df7cd);return _0x43fc46['textContent']=_0x4e180c,_0x43fc46;}),_0x5c4517=_0x23d8f5['createContainerElement']('sup',{'id':'ref-'+_0x36ce0f,'class':'footnote'},[_0x455861]);return _0x5c4517['getFillerOffset']=()=>null,_0x5c4517;}function y(_0x2465c5,_0x32502d,_0x9ffc79,{dataPipeline:_0x556db4}={}){const {t:t}=_0x9ffc79,_0x5dc00c=_0x2465c5['getAttribute']('footnoteId'),_0x3f66f1=_0x32502d['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5dc00c},function(_0x547088){const _0x22cfc0=this['toDomElement'](_0x547088);return _0x22cfc0['innerText']='^',_0x22cfc0;}),_0x54f031=_0x556db4?_0x32502d['createContainerElement']('div',{'class':'footnote-content'}):_0x180e5a(_0x32502d['createEditableElement']('div',{'class':'footnote-content'}),_0x32502d,{'label':t('Footnote\x20content.')});return _0x32502d['insert'](_0x32502d['createPositionAt'](_0x54f031,0x0),_0x32502d['createSlot']()),_0x32502d['createContainerElement']('li',{'class':'footnote-definition','id':_0x5dc00c},[_0x3f66f1,_0x54f031]);}class e extends _0x19eda0{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x3fef1b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5c0aa2}=this,{plugins:_0x55e309,model:_0x2dcf7b}=_0x5c0aa2,_0x667eab=_0x55e309['get'](_0x3fef1b),_0x6aaff9=_0x55e309['get'](f);this['listenTo'](_0x667eab,'outputTransformation',(_0x4e7251,_0x2d4528)=>{const _0x4ec1de=l(_0x2dcf7b['createRangeIn'](_0x2d4528['content']));if(!_0x4ec1de['length'])return;const _0x346aae=_0x6aaff9['getFootnotes'](),_0x3d66d7=_0x4ec1de['reduce']((_0x4d5b43,_0x2628b9)=>{const _0x31d473=_0x346aae['find'](_0xcc3719=>_0xcc3719['id']===_0x2628b9);if(_0x31d473){const _0x5b10fc=_0x5c0aa2['data']['toView'](_0x31d473['definition'],{'isClipboardPipeline':!0x0}),_0x4f951c=_0x5c0aa2['data']['htmlProcessor']['toData'](_0x5b10fc);_0x4d5b43[_0x31d473['id']]=_0x4f951c;}return _0x4d5b43;},Object['create'](null));_0x2d4528['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3d66d7));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5a39ec}=this,{model:_0x4a15de,plugins:_0x4a865a}=_0x5a39ec,{view:_0x3db6ae}=_0x5a39ec['editing'],_0x485978=_0x4a865a['get'](_0x3fef1b),_0x242972=_0x4a865a['get'](f),_0x44e0ee=_0x5a39ec['config']['get']('footnotes.multiBlock');let _0x2205b4=null;this['listenTo'](_0x3db6ae['document'],'clipboardInput',(_0x4773d0,_0x41d969)=>{const _0x21e5c9=_0x41d969['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2205b4=_0x21e5c9?JSON['parse'](_0x21e5c9):null;}),this['listenTo'](_0x485978,'contentInsertion',(_0x3b9dbb,_0x13b622)=>{const _0x4d4233=_0x13b622['sourceEditorId']===this['editor']['id'];_0x4d4233&&'drop'===_0x13b622['method']||_0x4a15de['change'](_0x392c45=>{let _0x3064f6=_0x242972['getFootnotesDefinitionsObjectElement']();const _0x102f8f=!!_0x3064f6&&Array['from'](_0x4a15de['document']['selection']['getSelectedBlocks']())['includes'](_0x3064f6);if(!_0x2205b4&&function(_0xd98060){for(const {item:_0x2a1405}of _0xd98060)if(_0x2a1405['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4a15de['createRangeIn'](_0x13b622['content']))&&(_0x2205b4=function(_0x393f3f,_0x35ea49){const _0x31833f=c(_0x393f3f,_0x35ea49);if(!_0x31833f)return null;const _0x46edd4=Object['create'](null);for(const _0x497d8b of _0x31833f['getChildren']())_0x497d8b['is']('element','footnoteDefinition')&&_0x497d8b['hasAttribute']('footnoteId')&&(_0x46edd4[_0x497d8b['getAttribute']('footnoteId')]=_0x393f3f['cloneElement'](_0x497d8b,!0x0));return Object['keys'](_0x46edd4)['length']?_0x46edd4:null;}(_0x392c45,_0x13b622['content'])),(_0x3064f6&&!_0x102f8f||!_0x3064f6&&!_0x2205b4)&&function(_0x2ae0fb,_0x5dd47e){const _0x255d3e=[];for(const {item:_0x22349c}of _0x2ae0fb['createRangeIn'](_0x5dd47e))_0x22349c['is']('element','footnotesDefinitions')&&_0x255d3e['push'](_0x22349c);for(const _0x510d4e of _0x255d3e)_0x2ae0fb['remove'](_0x510d4e);}(_0x392c45,_0x13b622['content']),!_0x2205b4)return;const {selection:_0x4b7466}=_0x4a15de['document'],_0x137454=_0x4b7466['getFirstRange']()['root'];_0x3064f6&&!_0x102f8f||(_0x3064f6=c(_0x392c45,_0x13b622['content']),_0x3064f6||=_0x242972['_insertEmptyFootnotesDefinitionsContainer'](_0x392c45,_0x137454));const _0x4e4740=Array['from'](_0x4b7466['getRanges']())['flatMap'](l),_0x17b74c=function(_0x30aaac,_0x44a83e,_0x4aa2f6){const _0x14f28d=Object['create'](null);for(const {item:_0xd7b9d1}of _0x30aaac['createRangeIn'](_0x44a83e))if(_0xd7b9d1['is']('element','footnoteRef')){const _0xd3acd6=_0xd7b9d1['getAttribute']('footnoteId');if(!_0x4aa2f6(_0xd3acd6))continue;_0x14f28d[_0xd3acd6]||(_0x14f28d[_0xd3acd6]=_0xe68562()),_0x30aaac['setAttribute']('footnoteId',_0x14f28d[_0xd3acd6],_0xd7b9d1);}return _0x14f28d;}(_0x392c45,_0x13b622['content'],_0x49318b=>{if(!_0x4d4233)return!0x0;return!!_0x242972['getFootnote'](_0x49318b)&&!_0x4e4740['includes'](_0x49318b);});for(const [_0x46791b,_0x41e564]of Object['entries'](_0x2205b4)){const _0xb882dd=_0x17b74c[_0x46791b]||_0x46791b;let _0x227bae;if('string'!=typeof _0x41e564)_0x227bae=_0x41e564,_0xb882dd!==_0x46791b&&_0x392c45['setAttribute']('footnoteId',_0xb882dd,_0x227bae);else{_0x227bae=_0x392c45['createElement']('footnoteDefinition',{'footnoteId':_0xb882dd});const _0x92ea8a=_0x5a39ec['data']['htmlProcessor']['toView'](_0x41e564);let _0x27ec88;if(_0x44e0ee)_0x27ec88=_0x5a39ec['data']['toModel'](_0x92ea8a,_0x227bae);else{_0x27ec88=_0x392c45['createElement']('footnoteInlineContent');const _0x3cbb62=_0x5a39ec['data']['toModel'](_0x92ea8a,_0x27ec88);_0x392c45['insert'](_0x3cbb62,_0x27ec88);}_0x392c45['append'](_0x27ec88,_0x227bae);}_0x392c45['insert'](_0x227bae,_0x3064f6,'end');}_0x2205b4=null;});});}}function c(_0x5a8a0b,_0x39dfbc){for(const {item:_0x20d144}of _0x5a8a0b['createRangeIn'](_0x39dfbc))if(_0x20d144['is']('element','footnotesDefinitions'))return _0x20d144;return null;}function l(_0x2ec7b2){const _0x538dcf=new Set();for(const {item:_0x4f09a0}of _0x2ec7b2)_0x4f09a0['is']('element','footnoteRef')&&_0x538dcf['add'](_0x4f09a0['getAttribute']('footnoteId'));return Array['from'](_0x538dcf);}class i extends _0x19eda0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c233d}=this,{componentFactory:_0x3eace9}=_0x5c233d['ui'];_0x3eace9['add']('insertFootnote',E(_0x5c233d,_0x1fc42c)),_0x3eace9['add']('menuBar:insertFootnote',E(_0x5c233d,_0x1b55b4)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40978a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d4c25;for(const _0xa6efb8 in _0x40978a){const _0x28845a=_0xa6efb8,_0x1da36c=_0x40978a[_0x28845a];if('footnotesLicenseKeyValid'==_0x1da36c||'footnotesLicenseKeyInvalid'==_0x1da36c||'footnotesLicenseKeyExpired'==_0x1da36c||'footnotesLicenseKeyDomainLimit'==_0x1da36c||'footnotesLicenseKeyNotAllowed'==_0x1da36c||'footnotesLicenseKeyEvaluationLimit'==_0x1da36c||'footnotesLicenseKeyUsageLimit'==_0x1da36c){delete _0x40978a[_0x28845a],_0x1d4c25=_0x1da36c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1d4c25&&_0x40978a['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1d4c25&&_0x40978a['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1d4c25&&_0x40978a['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1d4c25&&_0x40978a['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1d4c25&&_0x40978a['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x1d4c25&&_0x40978a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x36bbf6,_0x24fbd9){const _0x2b8cfe=_0x36bbf6['commands']['get']('insertFootnote');return _0x4e8f77=>{const {t:t}=_0x4e8f77,_0xaa0810=new _0x24fbd9(_0x4e8f77),_0x5b71a0=_0xaa0810 instanceof _0x1b55b4;return _0xaa0810['bind']('isEnabled')['to'](_0x2b8cfe,'isEnabled'),_0xaa0810['set']({'label':t(_0x5b71a0?'Footnote':'Insert\x20footnote'),'icon':_0x5a8fbf,'tooltip':!0x0}),_0xaa0810['on']('execute',()=>{_0x2b8cfe['execute'](),_0x36bbf6['editing']['view']['focus']();}),_0xaa0810;};}class lt extends _0x19eda0{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 _0x351006{['refresh'](){const {editor:_0x4a1ab0}=this,_0x3bf4c6=_0x4a1ab0['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3bf4c6,this['value']=_0x3bf4c6?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1444bb}){const {editor:_0x27109e}=this,_0x16c956=_0x27109e['plugins']['get'](f),_0x13616a=_0x16c956['getFootnotesDefinitionsObjectElement']();_0x13616a&&W['includes'](_0x1444bb)&&_0x27109e['model']['change'](_0x184aad=>{_0x184aad['setAttribute']('footnotesListStyle',_0x1444bb,_0x13616a),_0x16c956['_updateFootnotesCounters'](_0x184aad);});}}class C extends _0x351006{['refresh'](){const {editor:_0x5d34d5}=this,_0x4b79cc=_0x5d34d5['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4b79cc,this['value']=_0x4b79cc?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3d8273}){const {editor:_0x4255cb}=this,_0x351695=_0x4255cb['plugins']['get'](f),_0x109b3e=_0x351695['getFootnotesDefinitionsObjectElement']();_0x109b3e&&Number['isInteger'](_0x3d8273)&&_0x4255cb['model']['change'](_0x4f7baf=>{_0x4f7baf['setAttribute']('footnotesListStart',_0x3d8273,_0x109b3e),_0x351695['_updateFootnotesCounters'](_0x4f7baf);});}}class P extends _0x19eda0{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe5c6e5}=this;_0xe5c6e5['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0xe5c6e5['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0xe5c6e5['commands']['add']('footnotesStyle',new S(_0xe5c6e5)),_0xe5c6e5['commands']['add']('footnotesStart',new C(_0xe5c6e5)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4a1454}=this,{schema:_0x586254}=_0x4a1454['model'];_0x586254['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4d1f54}=this,{conversion:_0x15151f,model:_0x3e5a20}=_0x4d1f54,{schema:_0x737c64}=_0x3e5a20;_0x15151f['for']('upcast')['add'](_0x876a58=>{_0x876a58['on']('element:ol',(_0x862359,_0x94337a,_0x313cc9)=>{const _0x37af4c=_0x94337a['viewItem'],_0x1f4574=_0x94337a['modelCursor']?.['parent'];_0x37af4c['hasClass']('footnotes-list')&&_0x1f4574?.['is']('element','footnotesDefinitions')&&(function(_0x361240,_0x4c3dfa,_0x452d39,_0x23253f){if(!_0x23253f['checkAttribute'](_0x4c3dfa,'footnotesListStart'))return;let _0x186225=0x1;const _0x13ffca=_0x452d39['consumable']['consume'](_0x361240,{'attributes':'start'});if(_0x13ffca){const _0x4c6b68=Number['parseInt'](_0x361240['getAttribute']('start'),0xa);Number['isNaN'](_0x4c6b68)||(_0x186225=_0x4c6b68);}!_0x13ffca&&_0x4c3dfa['hasAttribute']('footnotesListStart')||_0x452d39['writer']['setAttribute']('footnotesListStart',_0x186225,_0x4c3dfa);}(_0x37af4c,_0x1f4574,_0x313cc9,_0x737c64),function(_0x5afdcd,_0x154146,_0x5dfa9e,_0x3f727b){if(!_0x3f727b['checkAttribute'](_0x154146,'footnotesListStyle'))return;let _0x3d833b='decimal',_0x376571=!0x1;if(_0x5dfa9e['consumable']['consume'](_0x5afdcd,{'attributes':'type'})){const _0x5743ea={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5afdcd['getAttribute']('type')];_0x5743ea&&(_0x3d833b=_0x5743ea),_0x376571=!0x0;}_0x5dfa9e['consumable']['consume'](_0x5afdcd,{'styles':'list-style-type'})&&(_0x3d833b=function(_0x1c6c1a){switch(_0x1c6c1a){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x1c6c1a;}}(_0x5afdcd['getStyle']('list-style-type')),_0x376571=!0x0),!_0x376571&&_0x154146['hasAttribute']('footnotesListStyle')||_0x5dfa9e['writer']['setAttribute']('footnotesListStyle',_0x3d833b,_0x154146);}(_0x37af4c,_0x1f4574,_0x313cc9,_0x737c64));});}),_0x15151f['for']('downcast')['add'](_0x87cd33=>{_0x87cd33['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1b9bc4,_0xe9d9cc,_0x12d2fd)=>{if(!_0x12d2fd['consumable']['consume'](_0xe9d9cc['item'],_0x1b9bc4['name']))return;const _0xa5226c=M(_0xe9d9cc['item'],_0x12d2fd['mapper']),{attributeNewValue:_0x3675f5}=_0xe9d9cc;null==_0x3675f5||0x1===_0x3675f5?_0x12d2fd['writer']['removeAttribute']('start',_0xa5226c):_0x12d2fd['writer']['setAttribute']('start',String(_0x3675f5),_0xa5226c);}),_0x87cd33['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2253a8,_0x29cc42,_0x20df12)=>{if(!_0x20df12['consumable']['consume'](_0x29cc42['item'],_0x2253a8['name']))return;const _0x465b82=M(_0x29cc42['item'],_0x20df12['mapper']),{attributeNewValue:_0x456461}=_0x29cc42;_0x456461&&'decimal'!==_0x456461?_0x20df12['writer']['setStyle']('list-style-type',_0x456461,_0x465b82):_0x20df12['writer']['removeStyle']('list-style-type',_0x465b82);});});}['_definePostfixer'](){const {editor:_0x571497}=this,{model:_0x5cf4e8}=_0x571497,_0x3792e1=_0x571497['plugins']['get'](f),_0x2ca5f5=this['_getDefaultListStyle'](),_0x7258f1=this['_getDefaultStartIndex']();_0x5cf4e8['document']['registerPostFixer'](_0x1747cf=>{const _0x466dde=_0x5cf4e8['document']['differ']['getChanges']();let _0x23e343=!0x1;for(const _0x1d40de of _0x466dde){if('insert'!==_0x1d40de['type']||'$text'===_0x1d40de['name'])continue;const _0x1b6f96=_0x5cf4e8['createRangeOn'](_0x1d40de['position']['nodeAfter']);for(const _0x530afd of _0x1b6f96['getItems']())_0x530afd['is']('element','footnotesDefinitions')&&(!_0x530afd['hasAttribute']('footnotesListStart')&&_0x5cf4e8['schema']['checkAttribute'](_0x530afd,'footnotesListStart')&&(_0x1747cf['setAttribute']('footnotesListStart',_0x7258f1,_0x530afd),_0x23e343=!0x0),!_0x530afd['hasAttribute']('footnotesListStyle')&&_0x5cf4e8['schema']['checkAttribute'](_0x530afd,'footnotesListStyle')&&(_0x1747cf['setAttribute']('footnotesListStyle',_0x2ca5f5,_0x530afd),_0x23e343=!0x0));}return _0x23e343&&_0x3792e1['_updateFootnotesCounters'](_0x1747cf),_0x23e343;});}['_defineFormatter'](){const {editor:_0x381337}=this;_0x381337['plugins']['get'](f)['setFootnoteFormatter'](_0x5dfcff=>this['_formatFootnoteListValue'](_0x5dfcff));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x28018d,value:_0x198d17,digits:_0x4a054d}){const _0xa18f=_0x28018d['getAttribute']('footnotesListStyle'),_0x3b08fd=_0x28018d['getAttribute']('footnotesListStart'),_0x21dd42=Math['floor'](_0x198d17)+(_0x3b08fd??0x1)-0x1;switch(_0xa18f){case'decimal-leading-zero':return function(_0x3d88d8,_0x573d76){return String(_0x3d88d8)['padStart'](_0x573d76,'0');}(_0x21dd42,Math['max'](0x2,_0x4a054d));case'lower-alpha':case'lower-latin':return N(_0x21dd42,!0x1);case'upper-alpha':case'upper-latin':return N(_0x21dd42,!0x0);case'lower-roman':return X(_0x21dd42,!0x1);case'upper-roman':return X(_0x21dd42,!0x0);default:return String(_0x21dd42);}}}function M(_0x4009f2,_0x89c46f){const _0x1eac6c=_0x89c46f['toViewElement'](_0x4009f2);return Array['from'](_0x1eac6c['getChildren']())['find'](_0x188a55=>_0x188a55['is']('element','ol')&&_0x188a55['hasClass']('footnotes-list'));}function N(_0x55b47f,_0x284fda){let _0x8e16cb='',_0x3967af=_0x55b47f;for(;_0x3967af>0x0;){const _0x15981b=(_0x3967af-0x1)%0x1a;_0x8e16cb=String['fromCharCode'](0x61+_0x15981b)+_0x8e16cb,_0x3967af=Math['floor']((_0x3967af-0x1)/0x1a);}return _0x284fda?_0x8e16cb['toUpperCase']():_0x8e16cb;}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(_0x241738,_0x92f841){let _0x5501d7='',_0x2b8e23=_0x241738;for(const {value:_0x53aeee,numeral:_0x1d88ed}of V)for(;_0x2b8e23>=_0x53aeee;)_0x5501d7+=_0x1d88ed,_0x2b8e23-=_0x53aeee;return _0x92f841?_0x5501d7:_0x5501d7['toLowerCase']();}class J extends _0x350447{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1ec22f();['focusCycler'];constructor(_0x3177ce,{styleButtonViews:_0x4299d8,styleGridAriaLabel:_0x4a970f}){super(_0x3177ce),(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'](_0x4299d8,_0x4a970f),[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 _0x32941d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x32941d['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 _0x166c18=_0x343715=>_0x343715['stopPropagation']();this['keystrokes']['set']('arrowright',_0x166c18),this['keystrokes']['set']('arrowleft',_0x166c18),this['keystrokes']['set']('arrowup',_0x166c18),this['keystrokes']['set']('arrowdown',_0x166c18);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5e7dd1,_0x3880f8){const _0x367d7c=new _0x350447(this['locale']);return _0x367d7c['children']=_0x367d7c['createCollection'](),_0x367d7c['children']['addMany'](_0x5e7dd1),_0x367d7c['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3880f8,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x367d7c['children']}),_0x367d7c['children']['delegate']('execute')['to'](this),_0x367d7c['focus']=function(){for(const _0x58144a of this['children'])if(_0x58144a instanceof _0x1fc42c&&_0x58144a['isOn'])return void _0x58144a['focus']();this['children']['first']['focus']();},_0x367d7c['focusTracker']=new rt(),_0x367d7c['keystrokes']=new nt(),_0x367d7c['render'](),_0x367d7c['keystrokes']['listenTo'](_0x367d7c['element']),this['children']['add'](_0x367d7c),_0x367d7c;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x32b918=this['_createStartIndexPropertyView'](),_0x14d015=[_0x32b918],_0x242da0=new it(this['locale'],_0x14d015);return _0x242da0['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x242da0['buttonView']['bind']('isEnabled')['toMany'](_0x14d015,'isEnabled',(..._0x1ed019)=>_0x1ed019['some'](_0x58a55f=>_0x58a55f)),_0x242da0['buttonView']['on']('change:isEnabled',(_0x341e6d,_0x3bed0a,_0x534a50)=>{_0x534a50||(_0x242da0['isCollapsed']=!0x0);}),this['children']['add'](_0x242da0),[_0x32b918,_0x242da0];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e87ed=new et(this['locale'],ot);return _0x2e87ed['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e87ed['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e87ed['fieldView']['on']('input',()=>{const _0x4d2273=_0x2e87ed['fieldView']['element'],_0xf7b6a9=_0x4d2273['valueAsNumber'];Number['isNaN'](_0xf7b6a9)?_0x2e87ed['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4d2273['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xf7b6a9}):_0x2e87ed['errorText']=t(_0xf7b6a9<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2e87ed;}}class j extends _0x19eda0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xce7b1e,_0x4b86aa];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa4c0d7}=this,{componentFactory:_0x129169}=_0xa4c0d7['ui'];_0xa4c0d7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x129169['add']('footnotesStyle',function(_0x51aefd){return _0x51f68a=>{const {t:t}=_0x51f68a,_0x4324b2=_0x51aefd['commands']['get']('footnotesStyle'),_0x4ab1a9=_0x3b9fda(_0x51f68a),{buttonView:_0x3e8334}=_0x4ab1a9;return _0x4ab1a9['class']='ck-footnotes-styles-dropdown',_0x4ab1a9['bind']('isEnabled')['to'](_0x4324b2,'isEnabled'),_0x3e8334['set']({'label':t('Footnotes\x20style'),'icon':_0x5a8fbf,'tooltip':!0x0}),_0x4ab1a9['once']('change:isOpen',()=>{const _0x145910=function({editor:_0x4247a0,dropdownView:_0x11a8e3}){const {t:t}=_0x4247a0['locale'],_0x62841b=t('Footnotes\x20definitions\x20styles'),_0x5809f3=function(_0x4e867a){const t=_0x4e867a['locale']['t'],_0x47ffd4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2cca65},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4d1f84},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3b622a},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x521d19},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4179bf},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x15bfb3}];return _0x47ffd4['map'](function(_0x495dfa){const _0x2cd051=_0x495dfa['locale'];return({label:_0x59d556,icon:_0x168429,tooltip:_0x4d9aec,style:_0x24e46b})=>{const _0xdde630=_0x495dfa['commands']['get']('footnotesStyle'),_0x23e16e=new _0x1fc42c(_0x2cd051);return _0x23e16e['set']({'label':_0x59d556,'icon':_0x168429,'tooltip':_0x4d9aec}),_0x23e16e['bind']('isOn')['to'](_0xdde630,'value',_0x503ba9=>_0x503ba9===_0x24e46b),_0x23e16e['bind']('isEnabled')['to'](_0xdde630,'isEnabled'),_0x23e16e['on']('execute',()=>{_0x495dfa['execute']('footnotesStyle',{'value':_0x24e46b}),_0x495dfa['editing']['view']['focus']();}),_0x23e16e;};}(_0x4e867a));}(_0x4247a0),_0x304b0e=new J(_0x4247a0['locale'],{'styleGridAriaLabel':_0x62841b,'styleButtonViews':_0x5809f3}),_0x488c18=_0x4247a0['commands']['get']('footnotesStart');return _0x304b0e['startIndexFieldView']['bind']('isEnabled')['to'](_0x488c18),_0x304b0e['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x488c18),_0x304b0e['on']('footnotesListStart',(_0x38cc2b,_0x5b9f27)=>{_0x4247a0['execute']('footnotesStart',{'value':_0x5b9f27['startIndex']});}),_0x304b0e['delegate']('execute')['to'](_0x11a8e3),_0x304b0e;}({'editor':_0x51aefd,'dropdownView':_0x4ab1a9});_0x4ab1a9['panelView']['children']['add'](_0x145910);}),_0x4ab1a9;};}(_0xa4c0d7));}['afterInit'](){const {editor:_0x3e6170}=this,{t:t}=_0x3e6170['locale'],_0x451612=_0x3e6170['plugins']['get'](_0x4b86aa),{defaultPositions:_0x3beea3}=_0x410fb1;_0x451612['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3e6170['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3e9945=>{let _0x3d8a69=_0x3e9945['getFirstPosition']()?.['parent'];return _0x3d8a69?.['is']('$text')&&(_0x3d8a69=_0x3d8a69['parent']),_0x3d8a69?.['is']('element')?_0x3d8a69['findAncestor'](Q):null;},'positions':[_0x3beea3['southArrowNorth'],_0x3beea3['southArrowNorthMiddleWest'],_0x3beea3['southArrowNorthMiddleEast'],_0x3beea3['southArrowNorthWest'],_0x3beea3['southArrowNorthEast'],_0x3beea3['northArrowSouth'],_0x3beea3['northArrowSouthMiddleWest'],_0x3beea3['northArrowSouthMiddleEast'],_0x3beea3['northArrowSouthWest'],_0x3beea3['northArrowSouthEast'],_0x3beea3['viewportStickyNorth']]});}}class ft extends _0x19eda0{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
23
+ import{Plugin as _0x30fa3c,Command as _0x53f55f}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x165f1f,isWidget as _0x93b993,toWidgetEditable as _0x271e10,WidgetToolbarRepository as _0x3ff51c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x50c6d8,logWarning as _0x56e64d,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3c84aa,ClickObserver as _0x217c58}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x496109}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x209317,ButtonView as _0x10acff,View as _0x2be6a4,ViewCollection as _0xb04a7c,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x4bc115,BalloonPanelView as _0x489f81,createDropdown as _0x4817e6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x990c6a,IconListStyleDecimal as _0x328fab,IconListStyleDecimalLeadingZero as _0x3b0897,IconListStyleLowerRoman as _0x2843c8,IconListStyleUpperRoman as _0x16d554,IconListStyleLowerLatin as _0x33d01d,IconListStyleUpperLatin as _0x5d9648}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x30a427,_0x4e2b14){this['_model']=_0x30a427,this['_elementName']=_0x4e2b14['elementName'],this['_getElementKey']=_0x4e2b14['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x52d6c5){const _0x4893bc=new Set(),_0x2c5a6e=new Map();for(const _0xe2bf1f of _0x52d6c5){if('insert'===_0xe2bf1f['type']&&'$text'!==_0xe2bf1f['name']&&_0xe2bf1f['position']['nodeAfter']){const _0x31ac54=this['_model']['createRangeOn'](_0xe2bf1f['position']['nodeAfter']);for(const _0x48d1a8 of _0x31ac54['getItems']()){if(!_0x48d1a8['is']('element',this['_elementName']))continue;const _0x5cac32=this['_getElementKey'](_0x48d1a8);_0x2c5a6e['has'](_0x5cac32)||_0x2c5a6e['set'](_0x5cac32,[]),_0x2c5a6e['get'](_0x5cac32)['push'](_0x48d1a8);}}if('remove'===_0xe2bf1f['type']&&_0xe2bf1f['name']===this['_elementName']){const _0x2fd3de=this['_getElementKey']({'getAttribute':_0x36e23d=>_0xe2bf1f['attributes']['get'](_0x36e23d)});_0x4893bc['add'](_0x2fd3de);}}for(const [_0x1b66e5,_0xe68021]of this['_trackedElements'])'$graveyard'===_0xe68021['root']['rootName']&&_0x4893bc['add'](_0x1b66e5);for(const _0x40eda1 of _0x4893bc)this['_trackedElements']['delete'](_0x40eda1);for(const [_0x556e35,_0x19e9fc]of _0x2c5a6e)this['_trackedElements']['set'](_0x556e35,_0x19e9fc[_0x19e9fc['length']-0x1]);const _0x4a5948=new Set();for(const [_0x39802a,_0x2792bc]of _0x2c5a6e)_0x4893bc['has'](_0x39802a)&&(_0x4a5948['add'](_0x2792bc[0x0]),_0x2792bc['length']>0x1?_0x2c5a6e['set'](_0x39802a,_0x2792bc['slice'](0x1)):_0x2c5a6e['delete'](_0x39802a),_0x4893bc['delete'](_0x39802a));return{'removed':Array['from'](_0x4893bc),'inserted':Array['from'](_0x2c5a6e['values']())['flat'](),'moved':Array['from'](_0x4a5948)};}}class f extends _0x30fa3c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5c6639){super(_0x5c6639),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x45fcb7=>_0x45fcb7['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x58b0a0=>_0x58b0a0['getAttribute']('footnoteId')});}['init'](){const {editor:_0x437966}=this,{model:_0x1e09ec,data:_0x24d2ee}=_0x437966;_0x1e09ec['document']['registerPostFixer'](_0xc6317a=>{const _0x2b3dc3=_0x1e09ec['document']['differ']['getChanges']();let _0x2f4854=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xc6317a,_0x2b3dc3)&&(_0x2f4854=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xc6317a,_0x2b3dc3)&&(_0x2f4854=!0x0),this['_handleFootnoteReferencesChanges'](_0xc6317a,_0x2b3dc3)&&(_0x2f4854=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xc6317a)&&(_0x2f4854=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xc6317a)&&(_0x2f4854=!0x0),this['_sortFootnoteDefinitions'](_0xc6317a)&&(_0x2f4854=!0x0),_0x2f4854;}),this['listenTo'](_0x1e09ec['document'],'change:data',()=>{_0x1e09ec['enqueueChange']({'isUndoable':!0x1},_0x29991c=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x29991c);});},{'priority':'low'}),this['listenTo'](_0x24d2ee,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x254ac0){return this['_footnotes']['find'](_0xcc97cf=>_0xcc97cf['id']===_0x254ac0)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x6fed66){this['_footnoteFormatter']=_0x6fed66;}['_updateFootnotesCounters'](_0x5c2d10,_0x4e3ea2=0x0){let _0x272987=!0x1;for(let _0x1b4ed6=_0x4e3ea2;_0x1b4ed6<this['_footnotes']['length'];_0x1b4ed6++)this['_updateFootnoteRefCounter'](_0x5c2d10,_0x1b4ed6)&&(_0x272987=!0x0);return _0x272987;}['_insertEmptyFootnotesDefinitionsContainer'](_0x49fe5b,_0x13794a){const _0x554316=_0x49fe5b['createElement']('footnotesDefinitions',{});return _0x49fe5b['append'](_0x554316,_0x13794a),this['_footnotesDefinitions']=_0x554316,_0x554316;}['_ensureFootnotesDefinitionsContainerExists'](_0x557d25){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x42eb59=this['_footnotes'][0x0]['reference']['root'],_0xa7a0ba=this['_insertEmptyFootnotesDefinitionsContainer'](_0x557d25,_0x42eb59);for(const _0x2db60c of this['_footnotes'])_0x2db60c['definition']['parent']||_0x557d25['insert'](_0x2db60c['definition'],_0xa7a0ba,'end');this['_updateFootnotesCounters'](_0x557d25);}['_handleFootnotesDefinitionsObjectChanges'](_0x38c7fb,_0x222d30){let _0xa267e8=!0x1;const {inserted:_0x492a4b,removed:_0x357e92,moved:_0x325f87}=this['_footnoteDefsContainerTracker']['getChanges'](_0x222d30);if(_0x325f87['length']&&(this['_footnotesDefinitions']=_0x325f87[0x0]),_0x492a4b['length']){if(_0x492a4b['length']>0x1||this['_footnotesDefinitions']&&_0x492a4b['some'](_0x15bae6=>_0x15bae6!==this['_footnotesDefinitions'])){const _0x4e8db1=_0x38c7fb['createElement']('footnotesDefinitions',{}),_0x4bfc31=[];this['_footnotesDefinitions']&&_0x4bfc31['push'](this['_footnotesDefinitions']),_0x4bfc31['push'](..._0x492a4b),_0x38c7fb['insert'](_0x4e8db1,_0x4bfc31[0x0],'before');for(const _0x4c0e57 of _0x4bfc31)_0x38c7fb['move'](_0x38c7fb['createRangeIn'](_0x4c0e57),_0x38c7fb['createPositionAt'](_0x4e8db1,'end')),_0x38c7fb['remove'](_0x4c0e57);this['_footnotesDefinitions']=_0x4e8db1,this['_updateFootnotesCounters'](_0x38c7fb),_0xa267e8=!0x0;}else this['_footnotesDefinitions']=_0x492a4b[0x0];}if(_0x357e92['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1c45eb of this['_footnotes'])_0x38c7fb['remove'](_0x1c45eb['reference']),_0xa267e8=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xa267e8;}['_handleFootnoteDefinitionsChanges'](_0x3abd98,_0x45aba0){let _0xa74cb8=!0x1;const _0x5a6692=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x1c7ddd,moved:_0x19e58f}=this['_footnoteDefsTracker']['getChanges'](_0x45aba0);for(const _0x3bb222 of[..._0x19e58f,..._0x1c7ddd]){const _0x31c385=_0x3bb222['getAttribute']('footnoteId'),_0x3396bd=this['getFootnote'](_0x31c385);_0x3396bd&&(_0x3396bd['definition']=_0x3bb222),_(_0x3abd98,_0x5a6692,_0x3bb222)&&(_0xa74cb8=!0x0);}return _0xa74cb8;}['_handleFootnoteReferencesChanges'](_0x3b5584,_0x49f665){let _0x18d3d3=!0x1;const {removed:_0xe3b796,inserted:_0x594efd,moved:_0x1d455e}=this['_footnoteRefsTracker']['getChanges'](_0x49f665);for(const _0x45526d of _0xe3b796)this['_handleRemoveFootnoteReferenceById'](_0x3b5584,_0x45526d)&&(_0x18d3d3=!0x0);for(const _0x2342a6 of _0x594efd)this['_handleInsertedFootnoteReference'](_0x3b5584,_0x2342a6)&&(_0x18d3d3=!0x0);for(const _0x100f9b of _0x1d455e)this['_handleMovedFootnoteReference'](_0x3b5584,_0x100f9b)&&(_0x18d3d3=!0x0);return _0x18d3d3;}['_handleFootnotesDefinitionsObjectSync'](_0x3b9f20){if(!this['_footnotesDefinitions'])return!0x1;let _0x352a0b=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4dd48a=[];for(const _0x487d5a of this['_footnotesDefinitions']['getChildren']()){const _0x39a77f=_0x487d5a['getAttribute']('footnoteId');this['getFootnote'](_0x39a77f)||(_0x4dd48a['unshift'](_0x487d5a),_0x352a0b=!0x0);}for(const _0xc4b969 of _0x4dd48a)_0x3b9f20['remove'](_0xc4b969);}const _0x5939ab=new Set(),_0x2d1095=[];for(const _0x2da707 of this['_footnotesDefinitions']['getChildren']()){const _0x37ba8d=_0x2da707['getAttribute']('footnoteId');_0x5939ab['has'](_0x37ba8d)?(_0x2d1095['unshift'](_0x2da707),_0x352a0b=!0x0):_0x5939ab['add'](_0x37ba8d);}for(const _0x10d2fc of _0x2d1095)_0x3b9f20['remove'](_0x10d2fc);return this['_footnotesDefinitions']['childCount']||(_0x3b9f20['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x352a0b=!0x0),_0x352a0b;}['_handleInsertedFootnoteReference'](_0x5d6faf,_0x4d4e41){if(this['_footnotes']['find'](_0x52605d=>_0x52605d['reference']===_0x4d4e41))return!0x1;let _0xcf3325=!0x1;const _0x1a6160=_0x4d4e41['getAttribute']('footnoteId'),_0x3ff53a=this['_footnotes']['findIndex'](_0x2e65f2=>_0x2e65f2['id']===_0x1a6160);-0x1!==_0x3ff53a&&(_0x5d6faf['remove'](this['_footnotes'][_0x3ff53a]['reference']),this['_footnotes']['splice'](_0x3ff53a,0x1),_0xcf3325=!0x0);let _0x448479=this['_footnotesDefinitions']?function(_0x2d6efe,_0x413aa0){for(const _0x3a0743 of _0x2d6efe['getChildren']())if(_0x3a0743['getAttribute']('footnoteId')===_0x413aa0)return _0x3a0743;return null;}(this['_footnotesDefinitions'],_0x1a6160):null;_0x448479||(_0x448479=_0x5d6faf['createElement']('footnoteDefinition',{'footnoteId':_0x1a6160}),this['_footnotesDefinitions']&&(_0x5d6faf['insert'](_0x448479,this['_footnotesDefinitions'],'end'),_0xcf3325=!0x0));const _0x7fd91d={'id':_0x1a6160,'reference':_0x4d4e41,'definition':_0x448479},_0x2e69ce=I(this['editor']['model'],this['_footnotes'],_0x4d4e41);this['_footnotes']['splice'](_0x2e69ce,0x0,_0x7fd91d);let _0x521654=_0x2e69ce;return-0x1!==_0x3ff53a&&(_0x521654=Math['min'](_0x2e69ce,_0x3ff53a)),this['_updateFootnotesCounters'](_0x5d6faf,_0x521654)&&(_0xcf3325=!0x0),_0xcf3325;}['_handleRemoveFootnoteReferenceById'](_0x434dd8,_0x261991){const _0x14d834=this['_footnotes']['findIndex'](_0x547a1c=>_0x547a1c['id']===_0x261991);if(-0x1===_0x14d834)return!0x1;let _0x5c0112=!0x1;const _0xb8f11d=this['_footnotes'][_0x14d834];return'$graveyard'!==_0xb8f11d['definition']['root']['rootName']&&(_0x434dd8['remove'](_0xb8f11d['definition']),_0x5c0112=!0x0),this['_footnotes']['splice'](_0x14d834,0x1),this['_updateFootnotesCounters'](_0x434dd8,_0x14d834)&&(_0x5c0112=!0x0),_0x5c0112;}['_handleMovedFootnoteReference'](_0x210191,_0x201918){const _0x2bdb2f=_0x201918['getAttribute']('footnoteId'),_0x3dc3ba=this['_footnotes']['findIndex'](_0x2cdc04=>_0x2cdc04['id']===_0x2bdb2f),_0x1f5b9b=this['_footnotes'][_0x3dc3ba];let _0x50f7a8=!0x1;_0x1f5b9b['reference']=_0x201918,this['_footnotes']['splice'](_0x3dc3ba,0x1);const _0x4d1629=I(this['editor']['model'],this['_footnotes'],_0x201918);return this['_footnotes']['splice'](_0x4d1629,0x0,_0x1f5b9b),this['_updateFootnotesCounters'](_0x210191,Math['min'](_0x3dc3ba,_0x4d1629))&&(_0x50f7a8=!0x0),_0x50f7a8;}['_updateFootnoteRefCounter'](_0xfa0731,_0x568558){if(!this['_footnotesDefinitions'])return!0x1;const _0x296c11=this['_footnotes'][_0x568558];let _0x137eb8;return _0x137eb8=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x296c11,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x568558+0x1}):String(_0x568558+0x1),_0x296c11['reference']['getAttribute']('footnoteCounter')!=_0x137eb8&&(_0xfa0731['setAttribute']('footnoteCounter',_0x137eb8,_0x296c11['reference']),!0x0);}['_sortFootnoteDefinitions'](_0xae8bbc){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x262e42,_0x235b4d){if(_0x262e42['length']!==_0x235b4d['length'])return!0x1;for(let _0x43ad41=0x0;_0x43ad41<_0x262e42['length'];_0x43ad41++)if(_0x262e42[_0x43ad41]!==_0x235b4d[_0x43ad41])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x134d2b=>_0x134d2b['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x59b5dd=>_0x59b5dd['getAttribute']('footnoteId'))))return!0x1;let _0x32d4f8=!0x1;for(let _0x5c97e2=0x0;_0x5c97e2<this['_footnotes']['length'];_0x5c97e2++){const _0x58af21=this['_footnotes'][_0x5c97e2],_0x59bdb6=_0xae8bbc['createPositionBefore'](_0x58af21['definition']),_0xb5d73d=_0xae8bbc['createPositionAt'](this['_footnotesDefinitions'],_0x5c97e2);_0x59bdb6['isEqual'](_0xb5d73d)||(_0xae8bbc['move'](_0xae8bbc['createRangeOn'](_0x58af21['definition']),_0xb5d73d),_0x32d4f8=!0x0);}return _0x32d4f8;}['_ensureFootnotesReferencesHaveProperOrder'](_0x267938){if(!this['_footnotes']['length'])return!0x1;const {model:_0x120890}=this['editor'];let _0x10b7c4=!0x1;for(let _0x4154a9=0x0;_0x4154a9<this['_footnotes']['length']-0x1;_0x4154a9++){const _0x130783=this['_footnotes'][_0x4154a9],_0x453d96=this['_footnotes'][_0x4154a9+0x1],_0x57fbe2=_0x120890['createPositionBefore'](_0x130783['reference']),_0x525cc3=_0x120890['createPositionBefore'](_0x453d96['reference']);'after'===_0x57fbe2['compareWith'](_0x525cc3)&&(this['_handleMovedFootnoteReference'](_0x267938,_0x130783['reference']),_0x4154a9=-0x1,_0x10b7c4=!0x0);}return _0x10b7c4;}}function _(_0x550b71,_0x4227f4,_0x344eab){if(_0x344eab['childCount'])return!0x1;const _0x43485e=_0x4227f4?'paragraph':'footnoteInlineContent';return _0x550b71['insert'](_0x550b71['createElement'](_0x43485e),_0x344eab),!0x0;}function I(_0x4cc027,_0x1ddad2,_0x49a480){if(0x0===_0x1ddad2['length'])return 0x0;const _0x1c287e=_0x4cc027['createPositionBefore'](_0x49a480);for(let _0x373622=0x0;_0x373622<_0x1ddad2['length'];_0x373622++){const _0x7eb7a2=_0x1ddad2[_0x373622],_0x132a4a=_0x4cc027['createPositionBefore'](_0x7eb7a2['reference']);if('before'===_0x1c287e['compareWith'](_0x132a4a))return _0x373622;}const _0x1520b7=_0x49a480['root'];let _0x46ed92=-0x1;for(let _0x336dd2=_0x1ddad2['length']-0x1;_0x336dd2>=0x0;_0x336dd2--)if(_0x1ddad2[_0x336dd2]['reference']['root']===_0x1520b7){_0x46ed92=_0x336dd2;break;}if(-0x1!==_0x46ed92)return _0x46ed92+0x1;const _0x5907a3=_0x4cc027['document']['getRootNames'](),_0x14ebeb=_0x5907a3['indexOf'](_0x1520b7['rootName']),_0xd6dd51=_0x5907a3[_0x14ebeb+0x1];if(_0xd6dd51){for(let _0x26739d=0x0;_0x26739d<_0x1ddad2['length'];_0x26739d++)if(_0x1ddad2[_0x26739d]['reference']['root']['rootName']===_0xd6dd51)return _0x26739d;}return _0x1ddad2['length'];}class h extends _0x53f55f{['refresh'](){const _0x562515=this['editor']['model']['document']['selection'],_0x41580f=this['_getPositionToInsertFootnote'](_0x562515);this['isEnabled']=!!_0x41580f;}['execute'](_0x514af0){const {editor:_0x40e083}=this,{model:_0x2d21b5}=_0x40e083,{selection:_0x5d7100}=_0x2d21b5['document'],_0x15667c=this['_getPositionToInsertFootnote'](_0x5d7100);if(!_0x15667c)return;const _0x150430=_0x40e083['plugins']['get']('FootnotesEditing'),_0x6f8b8=_0x514af0?.['footnoteId']??_0x50c6d8();!function(_0x27b650){return'string'==typeof _0x27b650&&_0x27b650['length']>0x0&&!/\s/['test'](_0x27b650)&&!/^\d/['test'](_0x27b650);}(_0x6f8b8)?_0x56e64d('insert-footnote-command-executed-with-invalid-id'):(_0x2d21b5['change'](_0x229b4f=>{const _0xeba82b=_0x229b4f['createElement']('footnoteRef',{'footnoteId':_0x6f8b8});_0x2d21b5['insertObject'](_0xeba82b,_0x15667c,null);}),_0x150430['_moveSelectionToFootnoteDefinition'](_0x6f8b8));}['_getPositionToInsertFootnote'](_0xc1c02a){const {model:_0x5ad661}=this['editor'],{schema:_0x339fad}=_0x5ad661,_0x1aa2da=_0xc1c02a['getFirstRange']();for(const _0x2d949b of _0x1aa2da['getItems']())if(_0x339fad['isBlock'](_0x2d949b)||_0x339fad['isObject'](_0x2d949b))return null;const _0x2020ab=_0x1aa2da['end'];return _0x339fad['checkChild'](_0x2020ab,'footnoteRef')?_0x2020ab:null;}}class r extends _0x30fa3c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5b8ba4}=this;_0x5b8ba4['config']['define']('footnotes.multiBlock',!0x0),_0x5b8ba4['commands']['add']('insertFootnote',new h(_0x5b8ba4)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x207ab1){const _0xe8e90d=_0x2f29dc([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]),_0x2118c8=0x47a28506,_0x3723b8=0x47a5fb9e^_0x2118c8,_0x47952f=window[_0x2f29dc([0x44,0x61,0x74,0x65])][_0x2f29dc([0x6e,0x6f,0x77])](),_0x389acd=_0x207ab1[_0x2f29dc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1744fa=new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x485802=>{_0x389acd[_0x2f29dc([0x6f,0x6e,0x63,0x65])](_0x2f29dc([0x72,0x65,0x61,0x64,0x79]),_0x485802);}),_0x4a76e4={[_0x2f29dc([0x6b,0x74,0x79])]:_0x2f29dc([0x45,0x43]),[_0x2f29dc([0x75,0x73,0x65])]:_0x2f29dc([0x73,0x69,0x67]),[_0x2f29dc([0x63,0x72,0x76])]:_0x2f29dc([0x50,0x2d,0x32,0x35,0x36]),[_0x2f29dc([0x78])]:_0x2f29dc([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]),[_0x2f29dc([0x79])]:_0x2f29dc([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]),[_0x2f29dc([0x61,0x6c,0x67])]:_0x2f29dc([0x45,0x53,0x32,0x35,0x36])},_0xf234fc=_0x389acd[_0x2f29dc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2f29dc([0x67,0x65,0x74])](_0x2f29dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cb0e0(){let _0x14cc83,_0x5c6457=null,_0x5f3538=null;try{if(_0xf234fc==_0x2f29dc([0x47,0x50,0x4c]))return _0x2f29dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x14cc83=_0x407437(),!_0x14cc83)return _0x2f29dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x14cc83[_0x2f29dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5f3538=_0x3c6bd6(_0x14cc83[_0x2f29dc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x14cc83[_0x2f29dc([0x6a,0x74,0x69])])),await _0x3c294b()?_0x5a7fd8()?_0x4e8525()?_0x2f29dc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1286a7()?(_0x14cc83[_0x2f29dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2f29dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5c6457=_0x24e548(_0x2f29dc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x6b417f()):_0x2f29dc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2f29dc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2f29dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2f29dc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4e8525(){const _0x15caea=[_0x2f29dc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2f29dc([0x74,0x72,0x69,0x61,0x6c])][_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14cc83[_0x2f29dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x47952f/0x3e8:0xe10*_0x3723b8;return _0x14cc83[_0x2f29dc([0x65,0x78,0x70])]<_0x15caea;}function _0x5a7fd8(){const _0x51284d=_0x14cc83[_0x2f29dc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x51284d&&(!!_0x51284d[_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f29dc([0x2a]))||!!_0x51284d[_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f29dc([0x46,0x4f,0x4f])));}function _0x1286a7(){const _0x11855e=_0x14cc83[_0x2f29dc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x11855e||0x0==_0x11855e[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x233f5f}=new URL(window[_0x2f29dc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x11855e[_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x233f5f))return!0x0;const _0x46d642=_0x233f5f[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])](_0x2f29dc([0x2e]));return _0x11855e[_0x2f29dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4be7e6=>_0x4be7e6[_0x2f29dc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2f29dc([0x2a])))[_0x2f29dc([0x6d,0x61,0x70])](_0x15c73c=>_0x15c73c[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])](_0x2f29dc([0x2e])))[_0x2f29dc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4edbdf=>_0x4edbdf[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x46d642[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f29dc([0x6d,0x61,0x70])](_0x4c0e0e=>Array(_0x46d642[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4c0e0e[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2f29dc([0x66,0x69,0x6c,0x6c])](_0x4c0e0e[0x0]===_0x2f29dc([0x2a])?_0x2f29dc([0x2a]):'')[_0x2f29dc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4c0e0e))[_0x2f29dc([0x73,0x6f,0x6d,0x65])](_0x7cc32f=>_0x46d642[_0x2f29dc([0x65,0x76,0x65,0x72,0x79])]((_0x20e362,_0xc3111a)=>_0x7cc32f[_0xc3111a]===_0x20e362||_0x7cc32f[_0xc3111a]===_0x2f29dc([0x2a])));}function _0x6b417f(){return _0x5c6457&&_0x5f3538?new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31e4c6,_0x16f6fe)=>{_0x5c6457[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x31e4c6,_0x16f6fe),_0x5f3538[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x57c7e2=>{_0x57c7e2!=_0x2f29dc([0x56,0x61,0x6c,0x69,0x64])&&_0x31e4c6(_0x57c7e2);},_0x16f6fe);}):_0x5c6457||_0x5f3538||_0x2f29dc([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3c6bd6(_0x45e0d7,_0x4980ba){return new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2b078b=>{if(_0x114c0c())return _0x2b078b(_0x2f29dc([0x56,0x61,0x6c,0x69,0x64]));_0x371a43(),_0x389acd[_0x2f29dc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2f29dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xf36869=!0x1;const _0x6c6eec=_0x50c6d8();function _0x3f441a(_0x516c68){return!!_0x516c68&&(typeof _0x516c68===_0x2f29dc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x516c68===_0x2f29dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x516c68[_0x2f29dc([0x74,0x68,0x65,0x6e])]===_0x2f29dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x516c68[_0x2f29dc([0x63,0x61,0x74,0x63,0x68])]===_0x2f29dc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ebac8(_0x1867cf){_0x4e9cb1(_0x1867cf)[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x39a407=>{if(!_0x39a407||_0x39a407[_0x2f29dc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2f29dc([0x6f,0x6b]))return _0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x13b951(_0x56fb6e(_0x6c6eec+_0x4980ba))!=_0x39a407[_0x2f29dc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2f29dc([0x56,0x61,0x6c,0x69,0x64]);})[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x27c657=>(_0x6bbfb0(),_0x27c657),()=>{const _0x271330=_0x28bd2f();return null==_0x271330?(_0x6bbfb0(),_0x2f29dc([0x56,0x61,0x6c,0x69,0x64])):_0x2f29dc(_0x47952f-_0x271330>(0x63ae0106^_0x2118c8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x2b078b)[_0x2f29dc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2b078b(_0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32e728=0x47946b86^_0x2118c8;function _0x6bbfb0(){const _0xcf9538=_0x2f29dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x13b951(_0x56fb6e(_0x45e0d7)),_0x28b2eb=_0x496f90(_0x13b951(window[_0x2f29dc([0x4d,0x61,0x74,0x68])][_0x2f29dc([0x63,0x65,0x69,0x6c])](_0x47952f/_0x32e728)));window[_0x2f29dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f29dc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xcf9538,_0x28b2eb);}function _0x28bd2f(){const _0x2ee077=_0x2f29dc([0x6c,0x6c,0x63,0x74,0x2d])+_0x13b951(_0x56fb6e(_0x45e0d7)),_0x421765=window[_0x2f29dc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2f29dc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2ee077);return _0x421765?window[_0x2f29dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x496f90(_0x421765),0x10)*_0x32e728:null;}function _0x4e9cb1(_0x387604){return new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1079bf,_0x56dbd6)=>{_0x387604[_0x2f29dc([0x74,0x68,0x65,0x6e])](_0x1079bf,_0x56dbd6),window[_0x2f29dc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x56dbd6,0x47a351c6^_0x2118c8);});}}_0x389acd[_0x2f29dc([0x6f,0x6e])](_0x2f29dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x449ef7,_0x22fa6a)=>{if(_0x22fa6a[0x0]!=_0x45e0d7)return _0x2b078b(_0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x22fa6a[0x1]={..._0x22fa6a[0x1],[_0x2f29dc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x6c6eec};},{[_0x2f29dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f29dc([0x68,0x69,0x67,0x68])}),_0x389acd[_0x2f29dc([0x6f,0x6e])](_0x2f29dc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2a16db=>{_0x3f441a(_0x2a16db[_0x2f29dc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xf36869=!0x0,_0x4ebac8(_0x2a16db[_0x2f29dc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2f29dc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2f29dc([0x6c,0x6f,0x77])}),_0x1744fa[_0x2f29dc([0x74,0x68,0x65,0x6e])](()=>{_0xf36869||_0x2b078b(_0x2f29dc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x114c0c(){return _0x389acd[_0x2f29dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f29dc([0x76,0x69,0x65,0x77])][_0x2f29dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2f29dc([0x61,0x75,0x74,0x6f]);}function _0x371a43(){_0x389acd[_0x2f29dc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2f29dc([0x76,0x69,0x65,0x77])][_0x2f29dc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2f29dc([0x61,0x75,0x74,0x6f]);}}function _0x24e548(_0x27f62d){const _0x20aa5a=[new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c5967=>setTimeout(_0x4c5967,0x47abbbca^_0x2118c8)),_0x1744fa[_0x2f29dc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27154f=>{let _0x568b10=0x0;_0x389acd[_0x2f29dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f29dc([0x6f,0x6e])](_0x2f29dc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5160a5,_0x5b42e4)=>{_0x5b42e4[0x0][_0x2f29dc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x568b10++,_0x568b10==(0x47a280ee^_0x2118c8)&&(_0x27154f(),_0x5160a5[_0x2f29dc([0x6f,0x66,0x66])]());});}))];return window[_0x2f29dc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2f29dc([0x72,0x61,0x63,0x65])](_0x20aa5a)[_0x2f29dc([0x74,0x68,0x65,0x6e])](()=>_0x27f62d);}async function _0x56822a(){await _0x1744fa,_0x389acd[_0x2f29dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f29dc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42fe4f,_0x389acd[_0x2f29dc([0x6d,0x6f,0x64,0x65,0x6c])][_0x2f29dc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42fe4f,_0x389acd[_0x2f29dc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2f29dc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x56de6a(_0x4c3e27){const _0x1508f0=_0x629001();_0x389acd[_0x1508f0]=_0x2f29dc([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4c3e27,_0x4c3e27!=_0x2f29dc([0x56,0x61,0x6c,0x69,0x64])&&_0x56822a();}function _0x629001(){const _0x35220d=window[_0x2f29dc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2f29dc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2f29dc([0x6e,0x6f,0x77])]())[_0x2f29dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2f29dc([0x2e]),'');let _0x20eb03=_0x2f29dc([0x75]);for(let _0x660505=0x0;_0x660505<_0x35220d[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x660505+=0x2){let _0xba169f=window[_0x2f29dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x35220d[_0x2f29dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x660505,_0x660505+0x2));_0xba169f>=_0xe8e90d[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xba169f-=_0xe8e90d[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20eb03+=_0xe8e90d[_0xba169f];}return _0x20eb03;}function _0x407437(){const _0x243bd0=_0xf234fc[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])](_0x2f29dc([0x2e]));if(0x3!=_0x243bd0[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xa87d83(_0x243bd0[0x1]);function _0xa87d83(_0x24ebc9){const _0x2ac67f=_0x23286c(_0x24ebc9);return _0x2ac67f&&_0x52993a()?_0x2ac67f:null;function _0x52993a(){const _0x3e3efa=_0x2ac67f[_0x2f29dc([0x6a,0x74,0x69])],_0x1c5728=window[_0x2f29dc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e3efa[_0x2f29dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3e3efa[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37d934={..._0x2ac67f,[_0x2f29dc([0x6a,0x74,0x69])]:_0x3e3efa[_0x2f29dc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3e3efa[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37d934[_0x2f29dc([0x76,0x63])],_0x56fb6e(_0x37d934)==_0x1c5728;}}}async function _0x3c294b(){let _0x85bee=!0x0;try{const _0x32e527=_0xf234fc[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])](_0x2f29dc([0x2e])),[_0x2f313c,_0x1cd567,_0x43df17]=_0x32e527;return _0x5d1b71(_0x2f313c),await _0x4a7c78(_0x2f313c,_0x1cd567,_0x43df17),_0x85bee;}catch{return!0x1;}function _0x5d1b71(_0x48739a){const _0x5a31be=_0x23286c(_0x48739a);_0x5a31be&&_0x5a31be[_0x2f29dc([0x61,0x6c,0x67])]==_0x2f29dc([0x45,0x53,0x32,0x35,0x36])||(_0x85bee=!0x1);}async function _0x4a7c78(_0x43e070,_0x2fa39f,_0x5933c8){const _0x147ec6=window[_0x2f29dc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2f29dc([0x66,0x72,0x6f,0x6d])](_0x11f3fb(_0x5933c8),_0x126e6e=>_0x126e6e[_0x2f29dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xbea034=new window[(_0x2f29dc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2f29dc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x43e070+_0x2f29dc([0x2e])+_0x2fa39f),_0x3c390d=window[_0x2f29dc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2f29dc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3c390d)return;const _0x1f9f36=await _0x3c390d[_0x2f29dc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2f29dc([0x6a,0x77,0x6b]),_0x4a76e4,{[_0x2f29dc([0x6e,0x61,0x6d,0x65])]:_0x2f29dc([0x45,0x43,0x44,0x53,0x41]),[_0x2f29dc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2f29dc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2f29dc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3c390d[_0x2f29dc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2f29dc([0x6e,0x61,0x6d,0x65])]:_0x2f29dc([0x45,0x43,0x44,0x53,0x41]),[_0x2f29dc([0x68,0x61,0x73,0x68])]:{[_0x2f29dc([0x6e,0x61,0x6d,0x65])]:_0x2f29dc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1f9f36,_0x147ec6,_0xbea034)||(_0x85bee=!0x1);}}function _0x23286c(_0x10776f){return _0x10776f[_0x2f29dc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2f29dc([0x65,0x79]))?JSON[_0x2f29dc([0x70,0x61,0x72,0x73,0x65])](_0x11f3fb(_0x10776f)):null;}function _0x11f3fb(_0x1a4f9e){return window[_0x2f29dc([0x61,0x74,0x6f,0x62])](_0x1a4f9e[_0x2f29dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2f29dc([0x2b]))[_0x2f29dc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2f29dc([0x2f])));}function _0x56fb6e(_0x3e9bba){let _0x5db261=0x1505;function _0x19b6df(_0x3d626d){for(let _0x15c617=0x0;_0x15c617<_0x3d626d[_0x2f29dc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x15c617++){const _0x6bf594=_0x3d626d[_0x2f29dc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x15c617);_0x5db261=(_0x5db261<<0x5)+_0x5db261+_0x6bf594,_0x5db261&=_0x5db261;}}function _0x1e8663(_0x27f180){Array[_0x2f29dc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x27f180)?_0x27f180[_0x2f29dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e8663):_0x27f180&&typeof _0x27f180==_0x2f29dc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2f29dc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x27f180)[_0x2f29dc([0x73,0x6f,0x72,0x74])]()[_0x2f29dc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x36fb64,_0x46278b])=>{_0x19b6df(_0x36fb64),_0x1e8663(_0x46278b);}):_0x19b6df(window[_0x2f29dc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x27f180));}return _0x1e8663(_0x3e9bba),_0x5db261>>>0x0;}function _0x13b951(_0x342175){return _0x342175[_0x2f29dc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2f29dc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2f29dc([0x30]));}function _0x496f90(_0x4a4432){return _0x4a4432[_0x2f29dc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2f29dc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2f29dc([0x6a,0x6f,0x69,0x6e])]('');}function _0x42fe4f(){}function _0x2f29dc(_0x21c460){return _0x21c460['map'](_0x10f62b=>String['fromCharCode'](_0x10f62b))['join']('');}_0x56de6a(await _0x3cb0e0());}(this);}['_moveSelectionToFootnoteDefinition'](_0x45ab38){const {plugins:_0x2bcd14,editing:_0x19c0a2,model:_0x6c99f3}=this['editor'],_0x3d9334=_0x2bcd14['get'](f)['getFootnote'](_0x45ab38);return!!_0x3d9334&&(_0x6c99f3['change'](_0x1fc8e8=>{_0x1fc8e8['setSelection'](_0x1fc8e8['createPositionAt'](_0x3d9334['definition'],'end'));}),_0x19c0a2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x342121){const {plugins:_0x3a4f85,editing:_0x5e00eb,model:_0x41b295}=this['editor'],_0x4bacde=_0x3a4f85['get'](f)['getFootnote'](_0x342121);return!!_0x4bacde&&(_0x41b295['change'](_0x307928=>{_0x307928['setSelection'](_0x4bacde['reference'],'on');}),_0x5e00eb['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3f4aed}=this['editor']['model'],_0xbce372=this['editor']['config']['get']('footnotes.multiBlock');_0x3f4aed['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3f4aed['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3f4aed['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xbce372?_0x3f4aed['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3f4aed['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3f4aed['addChildCheck'](_0x5aecb3=>{for(const _0x1001ac of _0x5aecb3)if('footnoteDefinition'===_0x1001ac['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xc0287b}=this,{conversion:_0x143788,editing:_0x35dd00}=_0xc0287b,{t:t}=_0xc0287b['locale'];_0x143788['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x49b837,{writer:_0x5ac879,consumable:_0x3e0252})=>{const _0xaa0431=_0x49b837['getChild'](0x0);if(!_0xaa0431||!_0xaa0431['is']('element','a'))return null;const _0x4f4fa3=_0xaa0431['getAttribute']('href')||'';if(!_0x4f4fa3['startsWith']('#'))return null;const _0xd95820=_0x4f4fa3['replace'](/^#/,'');if(!_0xd95820)return null;_0x3e0252['consume'](_0xaa0431,{'name':!0x0,'attributes':['href']});for(const {item:_0x3e01bd}of _0x35dd00['view']['createRangeIn'](_0xaa0431))_0x3e01bd['is']('$textProxy')?_0x3e0252['consume'](_0x3e01bd['textNode'],{'name':!0x0}):_0x3e01bd['is']('element')&&_0x3e0252['consume'](_0x3e01bd,{'name':!0x0});return _0x5ac879['createElement']('footnoteRef',{'footnoteId':_0xd95820});}}),_0x143788['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x554d73,{writer:_0x4287e7})=>b(_0x554d73,_0x4287e7)}),_0x143788['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1fa6f4,{writer:_0x13ff4d})=>{const _0x2b4cad=_0x1fa6f4['getAttribute']('footnoteCounter');return _0x165f1f(b(_0x1fa6f4,_0x13ff4d),_0x13ff4d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2b4cad)});}});}['_defineDefinitionsConverters'](){const {editor:_0x319a05}=this,{t:t}=_0x319a05['locale'],{conversion:_0x15ccf3}=_0x319a05;_0x15ccf3['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x15ccf3['for']('upcast')['add'](_0x7767d1=>{_0x7767d1['on']('element:ol',(_0x5bd35e,_0x15854f,_0x607069)=>{const _0x528b5e=_0x15854f['viewItem'];if(!_0x528b5e['hasClass']('footnotes-list')||!_0x15854f['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x607069['consumable']['consume'](_0x528b5e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x305ed6,modelCursor:_0x34cabf}=_0x607069['convertChildren'](_0x15854f['viewItem'],_0x15854f['modelCursor']);_0x15854f['modelRange']=_0x305ed6,_0x15854f['modelCursor']=_0x34cabf;}),_0x7767d1['on']('element:hr',(_0x50d38d,_0x52bfb9,_0x162512)=>{const _0x52e42d=_0x52bfb9['viewItem'];_0x52e42d['hasClass']('footnotes-divider')&&_0x52bfb9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x162512['consumable']['consume'](_0x52e42d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x15ccf3['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e42ca,{writer:_0x36af20})=>D(_0x36af20)}),_0x15ccf3['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4aa0c1,{writer:_0x38ccb3})=>{const _0x56cc9e=D(_0x38ccb3,{'data-footnotes-list-label':t('Footnotes')}),_0x185fb8=_0x165f1f(_0x56cc9e,_0x38ccb3,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x38ccb3['setCustomProperty']('footnotesDefinitions',!0x0,_0x185fb8),_0x185fb8;}});}['_defineDefinitionConverters'](){const {editor:_0x30ca67}=this,{conversion:_0x139884,locale:_0x47c0c4}=_0x30ca67,_0x5a6663=_0x30ca67['config']['get']('footnotes.multiBlock');_0x139884['for']('upcast')['add'](_0x30b25d=>{_0x30b25d['on']('element:li',(_0x52113c,_0x314977,_0x56ab89)=>{const _0x418be1=_0x314977['viewItem'];if(!_0x418be1['hasClass']('footnote-definition')||!_0x418be1['getAttribute']('id'))return;const _0x40ea21=_0x418be1['parent'];if(!_0x40ea21['is']('element','ol')||!_0x40ea21['hasClass']('footnotes-list'))return;if(!_0x56ab89['consumable']['test'](_0x418be1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x259a53=_0x56ab89['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x418be1['getAttribute']('id')});if(!_0x56ab89['safeInsert'](_0x259a53,_0x314977['modelCursor']))return;_0x56ab89['consumable']['consume'](_0x418be1,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x34664c=Array['from'](_0x418be1['getChildren']())['find'](_0x1d3fa3=>_0x1d3fa3['is']('element')&&_0x1d3fa3['hasClass']('footnote-content'));for(const _0x3f9aa1 of _0x418be1['getChildren']())_0x3f9aa1['is']('element')&&(_0x56ab89['consumable']['consume'](_0x3f9aa1,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x56ab89['consumable']['consume'](_0x3f9aa1,{'name':!0x0,'classes':'footnote-content'}));if(_0x34664c){if(_0x5a6663)_0x56ab89['convertChildren'](_0x34664c,_0x259a53);else{const _0x643cab=_0x56ab89['writer']['createElement']('footnoteInlineContent');_0x56ab89['writer']['insert'](_0x643cab,_0x259a53),_0x56ab89['convertChildren'](_0x34664c,_0x643cab);}}_0x56ab89['updateConversionResult'](_0x259a53,_0x314977);});}),_0x139884['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24b802,{writer:_0x229726})=>y(_0x24b802,_0x229726,_0x47c0c4,{'dataPipeline':!0x0})}),_0x139884['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x392f7c,{writer:_0x291779})=>y(_0x392f7c,_0x291779,_0x47c0c4)});}['_defineBogusParagraphConverters'](){const {editor:_0x5a0963}=this,{conversion:_0x2eb636}=_0x5a0963;_0x5a0963['config']['get']('footnotes.multiBlock')?(_0x2eb636['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x2eb636['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5a0963['model']['document'],'change:data',()=>{!function(_0x24cab5,_0x3d498b){const _0x5b23b8=_0x24cab5['document']['differ'],_0x45a0cf=new Set();for(const _0x158e97 of _0x5b23b8['getChanges']()){const _0x39d934='attribute'==_0x158e97['type']?_0x158e97['range']['start']['parent']:_0x158e97['position']['parent'];_0x39d934['is']('element','footnoteDefinition')&&_0x45a0cf['add'](_0x39d934);}for(const _0x82ded8 of _0x45a0cf['values']()){const _0x133299=Array['from'](_0x82ded8['getChildren']())['filter'](_0xad0cab=>v(_0xad0cab,_0x3d498b['mapper']));for(const _0x1c199b of _0x133299)_0x3d498b['reconvertItem'](_0x1c199b);}}(_0x5a0963['model'],_0x5a0963['editing']);})):(_0x2eb636['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x2eb636['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1701e8,{writer:_0x414e51})=>{const _0x55542e=_0x414e51['createContainerElement']('span');return _0x414e51['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x55542e),_0x55542e;}}));}['_defineKeyboardHandlers'](){const {editor:_0x52c186}=this,{editing:_0x4f8c9f,t:t}=_0x52c186,_0x31852e=_0x52c186['model']['document']['selection'];_0x52c186['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x52c186['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4f8c9f['view']['document'],'enter',(_0x578375,_0x18c30e)=>{const _0x12a87d=function(_0x5c07aa){const _0x36a339=_0x5c07aa['getSelectedElement']();if(_0x36a339?.['is']('element','footnoteRef'))return _0x36a339;return null;}(_0x31852e);if(_0x12a87d){const _0x1893f2=_0x12a87d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1893f2),_0x18c30e['preventDefault'](),_0x578375['stop']();}},{'context':_0x93b993});}['_defineClickHandlers'](){const {editor:_0x1518a0}=this,{editing:_0x3a4e55}=_0x1518a0;_0x1518a0['editing']['view']['addObserver'](_0x3c84aa),_0x1518a0['editing']['view']['addObserver'](_0x217c58);let _0x6a1d04=!0x1;this['listenTo'](_0x3a4e55['view']['document'],'pointerdown',(_0x1bde41,_0x3af03a)=>{const {target:_0xc38d4f}=_0x3af03a,_0x3efc0d=_0x3a4e55['view']['document']['selection'];_0x6a1d04=!!(_0xc38d4f?.['is']('element','a')&&_0xc38d4f['parent']?.['is']('element','sup')&&_0xc38d4f['parent']['hasClass']('footnote'))&&_0x3efc0d['getSelectedElement']()===_0xc38d4f['parent'];},{'priority':'high'}),this['listenTo'](_0x3a4e55['view']['document'],'click',(_0x87c666,_0x585b8f)=>{const {target:_0x3e858b}=_0x585b8f;if(!_0x3e858b?.['is']('element','a'))return;if(_0x3e858b['parent']?.['is']('element','sup')&&_0x3e858b['parent']['hasClass']('footnote')&&!_0x6a1d04)return void _0x585b8f['preventDefault']();let _0x19810a=_0x3e858b['getAttribute']('href');if(!_0x19810a?.['startsWith']('#'))return;_0x19810a=_0x19810a['slice'](0x1);let _0x2ad5d8=!0x1;(_0x19810a['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x19810a['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x19810a))&&(_0x2ad5d8=!0x0),_0x2ad5d8&&(_0x585b8f['preventDefault'](),_0x87c666['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x2c9f91}={}){return(_0x282ac1,{writer:_0x4a734d})=>{if(!g(_0x282ac1))return null;if(!_0x2c9f91)return _0x4a734d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x11ee86=_0x4a734d['createContainerElement']('p');return _0x4a734d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x11ee86),_0x11ee86;};}function g(_0x328e5a){const {parent:_0x2b94a8}=_0x328e5a;if(!_0x2b94a8?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2b94a8['childCount'])return!0x1;for(const _0x5c3e9c of _0x328e5a['getAttributeKeys']())if(!_0x5c3e9c['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5c3e9c)return!0x1;return!0x0;}function v(_0x54b12b,_0x4c9bea){if(!_0x54b12b['is']('element','paragraph'))return!0x1;const _0xab36f=_0x4c9bea['toViewElement'](_0x54b12b);return!!_0xab36f&&g(_0x54b12b)!==_0xab36f['is']('element','span');}function Q(_0x361c40){return _0x93b993(_0x361c40)&&_0x361c40['is']('containerElement')&&!!_0x361c40['getCustomProperty']('footnotesDefinitions');}function D(_0x43c2f2,_0x29d53e={}){const _0xc971e4=_0x43c2f2['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x39ab4b=_0x43c2f2['createContainerElement']('ol',{'class':'footnotes-list'},_0x43c2f2['createSlot']());return _0x43c2f2['createContainerElement']('div',{'class':'footnotes',..._0x29d53e},[_0xc971e4,_0x39ab4b]);}function b(_0x580fb1,_0x20601e){const _0x2e579b=_0x580fb1['getAttribute']('footnoteId'),_0x56aa14=_0x580fb1['getAttribute']('footnoteCounter'),_0x3cd425=_0x20601e['createUIElement']('a',{'href':'#'+_0x2e579b},function(_0x47e80c){const _0x66da53=this['toDomElement'](_0x47e80c);return _0x66da53['textContent']=_0x56aa14,_0x66da53;}),_0x58f3ec=_0x20601e['createContainerElement']('sup',{'id':'ref-'+_0x2e579b,'class':'footnote'},[_0x3cd425]);return _0x58f3ec['getFillerOffset']=()=>null,_0x58f3ec;}function y(_0x4c04dc,_0x40eb54,_0x15522d,{dataPipeline:_0x11d34b}={}){const {t:t}=_0x15522d,_0x2c2c8e=_0x4c04dc['getAttribute']('footnoteId'),_0x3681f3=_0x40eb54['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2c2c8e},function(_0x1ea95c){const _0x195bb3=this['toDomElement'](_0x1ea95c);return _0x195bb3['innerText']='^',_0x195bb3;}),_0x260a89=_0x11d34b?_0x40eb54['createContainerElement']('div',{'class':'footnote-content'}):_0x271e10(_0x40eb54['createEditableElement']('div',{'class':'footnote-content'}),_0x40eb54,{'label':t('Footnote\x20content.')});return _0x40eb54['insert'](_0x40eb54['createPositionAt'](_0x260a89,0x0),_0x40eb54['createSlot']()),_0x40eb54['createContainerElement']('li',{'class':'footnote-definition','id':_0x2c2c8e},[_0x3681f3,_0x260a89]);}class e extends _0x30fa3c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x496109];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x41ddc6}=this,{plugins:_0x2160b7,model:_0x583b80}=_0x41ddc6,_0x370c7d=_0x2160b7['get'](_0x496109),_0x163654=_0x2160b7['get'](f);this['listenTo'](_0x370c7d,'outputTransformation',(_0x65a4e1,_0x2cf4b2)=>{const _0x33b695=l(_0x583b80['createRangeIn'](_0x2cf4b2['content']));if(!_0x33b695['length'])return;const _0x27affb=_0x163654['getFootnotes'](),_0xcda6dd=_0x33b695['reduce']((_0x35cb67,_0x56152a)=>{const _0x5f1b3f=_0x27affb['find'](_0x148c05=>_0x148c05['id']===_0x56152a);if(_0x5f1b3f){const _0x146bda=_0x41ddc6['data']['toView'](_0x5f1b3f['definition'],{'isClipboardPipeline':!0x0}),_0x59153f=_0x41ddc6['data']['htmlProcessor']['toData'](_0x146bda);_0x35cb67[_0x5f1b3f['id']]=_0x59153f;}return _0x35cb67;},Object['create'](null));_0x2cf4b2['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xcda6dd));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x18235c}=this,{model:_0x4e947d,plugins:_0x226f4d}=_0x18235c,{view:_0x52563d}=_0x18235c['editing'],_0x321c67=_0x226f4d['get'](_0x496109),_0x2c46c2=_0x226f4d['get'](f),_0x458f7e=_0x18235c['config']['get']('footnotes.multiBlock');let _0x53df85=null;this['listenTo'](_0x52563d['document'],'clipboardInput',(_0x2e946a,_0x4e2274)=>{const _0x1172c2=_0x4e2274['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x53df85=_0x1172c2?JSON['parse'](_0x1172c2):null;}),this['listenTo'](_0x321c67,'contentInsertion',(_0x125027,_0x251402)=>{const _0x5d2c7d=_0x251402['sourceEditorId']===this['editor']['id'];_0x5d2c7d&&'drop'===_0x251402['method']||_0x4e947d['change'](_0x17cd95=>{let _0x24b9a0=_0x2c46c2['getFootnotesDefinitionsObjectElement']();const _0x3aeb99=!!_0x24b9a0&&Array['from'](_0x4e947d['document']['selection']['getSelectedBlocks']())['includes'](_0x24b9a0);if(!_0x53df85&&function(_0x5da671){for(const {item:_0x5571f}of _0x5da671)if(_0x5571f['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4e947d['createRangeIn'](_0x251402['content']))&&(_0x53df85=function(_0x2c9e56,_0x3490b1){const _0x74d610=c(_0x2c9e56,_0x3490b1);if(!_0x74d610)return null;const _0x206671=Object['create'](null);for(const _0x552339 of _0x74d610['getChildren']())_0x552339['is']('element','footnoteDefinition')&&_0x552339['hasAttribute']('footnoteId')&&(_0x206671[_0x552339['getAttribute']('footnoteId')]=_0x2c9e56['cloneElement'](_0x552339,!0x0));return Object['keys'](_0x206671)['length']?_0x206671:null;}(_0x17cd95,_0x251402['content'])),(_0x24b9a0&&!_0x3aeb99||!_0x24b9a0&&!_0x53df85)&&function(_0x3586d2,_0x43c7df){const _0x899237=[];for(const {item:_0x2b1903}of _0x3586d2['createRangeIn'](_0x43c7df))_0x2b1903['is']('element','footnotesDefinitions')&&_0x899237['push'](_0x2b1903);for(const _0x563086 of _0x899237)_0x3586d2['remove'](_0x563086);}(_0x17cd95,_0x251402['content']),!_0x53df85)return;const {selection:_0x3cb6bc}=_0x4e947d['document'],_0x1556a2=_0x3cb6bc['getFirstRange']()['root'];_0x24b9a0&&!_0x3aeb99||(_0x24b9a0=c(_0x17cd95,_0x251402['content']),_0x24b9a0||=_0x2c46c2['_insertEmptyFootnotesDefinitionsContainer'](_0x17cd95,_0x1556a2));const _0x408087=Array['from'](_0x3cb6bc['getRanges']())['flatMap'](l),_0x31c391=function(_0x499444,_0x428e66,_0x4b149f){const _0x2a7cf0=Object['create'](null);for(const {item:_0x3439c1}of _0x499444['createRangeIn'](_0x428e66))if(_0x3439c1['is']('element','footnoteRef')){const _0x354449=_0x3439c1['getAttribute']('footnoteId');if(!_0x4b149f(_0x354449))continue;_0x2a7cf0[_0x354449]||(_0x2a7cf0[_0x354449]=_0x50c6d8()),_0x499444['setAttribute']('footnoteId',_0x2a7cf0[_0x354449],_0x3439c1);}return _0x2a7cf0;}(_0x17cd95,_0x251402['content'],_0xac0b07=>{if(!_0x5d2c7d)return!0x0;return!!_0x2c46c2['getFootnote'](_0xac0b07)&&!_0x408087['includes'](_0xac0b07);});for(const [_0xbbf43e,_0x81f611]of Object['entries'](_0x53df85)){const _0x372b1e=_0x31c391[_0xbbf43e]||_0xbbf43e;let _0x75f40;if('string'!=typeof _0x81f611)_0x75f40=_0x81f611,_0x372b1e!==_0xbbf43e&&_0x17cd95['setAttribute']('footnoteId',_0x372b1e,_0x75f40);else{_0x75f40=_0x17cd95['createElement']('footnoteDefinition',{'footnoteId':_0x372b1e});const _0x433409=_0x18235c['data']['htmlProcessor']['toView'](_0x81f611);let _0x4b931e;if(_0x458f7e)_0x4b931e=_0x18235c['data']['toModel'](_0x433409,_0x75f40);else{_0x4b931e=_0x17cd95['createElement']('footnoteInlineContent');const _0x33511d=_0x18235c['data']['toModel'](_0x433409,_0x4b931e);_0x17cd95['insert'](_0x33511d,_0x4b931e);}_0x17cd95['append'](_0x4b931e,_0x75f40);}_0x17cd95['insert'](_0x75f40,_0x24b9a0,'end');}_0x53df85=null;});});}}function c(_0x212f5c,_0x5ee772){for(const {item:_0x5b2965}of _0x212f5c['createRangeIn'](_0x5ee772))if(_0x5b2965['is']('element','footnotesDefinitions'))return _0x5b2965;return null;}function l(_0x5bea4f){const _0x483014=new Set();for(const {item:_0x4b81e1}of _0x5bea4f)_0x4b81e1['is']('element','footnoteRef')&&_0x483014['add'](_0x4b81e1['getAttribute']('footnoteId'));return Array['from'](_0x483014);}class i extends _0x30fa3c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x595d98}=this,{componentFactory:_0x5c8619}=_0x595d98['ui'];_0x5c8619['add']('insertFootnote',E(_0x595d98,_0x10acff)),_0x5c8619['add']('menuBar:insertFootnote',E(_0x595d98,_0x209317)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x8650be=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x975bcc;for(const _0x11052a in _0x8650be){const _0x589788=_0x11052a,_0x442d90=_0x8650be[_0x589788];if('footnotesLicenseKeyValid'==_0x442d90||'footnotesLicenseKeyInvalid'==_0x442d90||'footnotesLicenseKeyExpired'==_0x442d90||'footnotesLicenseKeyDomainLimit'==_0x442d90||'footnotesLicenseKeyNotAllowed'==_0x442d90||'footnotesLicenseKeyEvaluationLimit'==_0x442d90||'footnotesLicenseKeyUsageLimit'==_0x442d90){delete _0x8650be[_0x589788],_0x975bcc=_0x442d90,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x975bcc&&_0x8650be['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x975bcc&&_0x8650be['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x975bcc&&_0x8650be['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x975bcc&&_0x8650be['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x975bcc&&_0x8650be['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x975bcc&&_0x8650be['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x59000f,_0x4956ec){const _0x2e5261=_0x59000f['commands']['get']('insertFootnote');return _0x5bbe26=>{const {t:t}=_0x5bbe26,_0x1d652e=new _0x4956ec(_0x5bbe26),_0x5269b3=_0x1d652e instanceof _0x209317;return _0x1d652e['bind']('isEnabled')['to'](_0x2e5261,'isEnabled'),_0x1d652e['set']({'label':t(_0x5269b3?'Footnote':'Insert\x20footnote'),'icon':_0x990c6a,'tooltip':!0x0}),_0x1d652e['on']('execute',()=>{_0x2e5261['execute'](),_0x59000f['editing']['view']['focus']();}),_0x1d652e;};}class lt extends _0x30fa3c{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 _0x53f55f{['refresh'](){const {editor:_0x2b7852}=this,_0x29ee7e=_0x2b7852['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x29ee7e,this['value']=_0x29ee7e?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4a9387}){const {editor:_0x44221d}=this,_0x504e3c=_0x44221d['plugins']['get'](f),_0x20baa2=_0x504e3c['getFootnotesDefinitionsObjectElement']();_0x20baa2&&W['includes'](_0x4a9387)&&_0x44221d['model']['change'](_0x1945cc=>{_0x1945cc['setAttribute']('footnotesListStyle',_0x4a9387,_0x20baa2),_0x504e3c['_updateFootnotesCounters'](_0x1945cc);});}}class C extends _0x53f55f{['refresh'](){const {editor:_0x33e562}=this,_0x28a5a5=_0x33e562['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x28a5a5,this['value']=_0x28a5a5?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0xa05136}){const {editor:_0x49927e}=this,_0x4b1d69=_0x49927e['plugins']['get'](f),_0x300bf8=_0x4b1d69['getFootnotesDefinitionsObjectElement']();_0x300bf8&&Number['isInteger'](_0xa05136)&&_0x49927e['model']['change'](_0x19834a=>{_0x19834a['setAttribute']('footnotesListStart',_0xa05136,_0x300bf8),_0x4b1d69['_updateFootnotesCounters'](_0x19834a);});}}class P extends _0x30fa3c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3c9ec1}=this;_0x3c9ec1['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x3c9ec1['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x3c9ec1['commands']['add']('footnotesStyle',new S(_0x3c9ec1)),_0x3c9ec1['commands']['add']('footnotesStart',new C(_0x3c9ec1)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x31fa2f}=this,{schema:_0x35abe5}=_0x31fa2f['model'];_0x35abe5['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1e4666}=this,{conversion:_0x2b139b,model:_0x5761d5}=_0x1e4666,{schema:_0x5f1594}=_0x5761d5;_0x2b139b['for']('upcast')['add'](_0xfdcac0=>{_0xfdcac0['on']('element:ol',(_0x6c21c2,_0x1858e9,_0x1bac1b)=>{const _0x587b7a=_0x1858e9['viewItem'],_0x2eb9ff=_0x1858e9['modelCursor']?.['parent'];_0x587b7a['hasClass']('footnotes-list')&&_0x2eb9ff?.['is']('element','footnotesDefinitions')&&(function(_0xa689d6,_0x55e782,_0x4d8a54,_0x619fe6){if(!_0x619fe6['checkAttribute'](_0x55e782,'footnotesListStart'))return;let _0x3efa7e=0x1;const _0x13c75a=_0x4d8a54['consumable']['consume'](_0xa689d6,{'attributes':'start'});if(_0x13c75a){const _0x25e83b=Number['parseInt'](_0xa689d6['getAttribute']('start'),0xa);Number['isNaN'](_0x25e83b)||(_0x3efa7e=_0x25e83b);}!_0x13c75a&&_0x55e782['hasAttribute']('footnotesListStart')||_0x4d8a54['writer']['setAttribute']('footnotesListStart',_0x3efa7e,_0x55e782);}(_0x587b7a,_0x2eb9ff,_0x1bac1b,_0x5f1594),function(_0x2b40e0,_0x45a82d,_0x14417f,_0x4a035c){if(!_0x4a035c['checkAttribute'](_0x45a82d,'footnotesListStyle'))return;let _0x4956e7='decimal',_0x1e09de=!0x1;if(_0x14417f['consumable']['consume'](_0x2b40e0,{'attributes':'type'})){const _0x11d7f5={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2b40e0['getAttribute']('type')];_0x11d7f5&&(_0x4956e7=_0x11d7f5),_0x1e09de=!0x0;}_0x14417f['consumable']['consume'](_0x2b40e0,{'styles':'list-style-type'})&&(_0x4956e7=function(_0x43c92b){switch(_0x43c92b){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x43c92b;}}(_0x2b40e0['getStyle']('list-style-type')),_0x1e09de=!0x0),!_0x1e09de&&_0x45a82d['hasAttribute']('footnotesListStyle')||_0x14417f['writer']['setAttribute']('footnotesListStyle',_0x4956e7,_0x45a82d);}(_0x587b7a,_0x2eb9ff,_0x1bac1b,_0x5f1594));});}),_0x2b139b['for']('downcast')['add'](_0x417edd=>{_0x417edd['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x24f36c,_0x443325,_0x3d82f1)=>{if(!_0x3d82f1['consumable']['consume'](_0x443325['item'],_0x24f36c['name']))return;const _0x4d854c=M(_0x443325['item'],_0x3d82f1['mapper']),{attributeNewValue:_0x3a3f74}=_0x443325;null==_0x3a3f74||0x1===_0x3a3f74?_0x3d82f1['writer']['removeAttribute']('start',_0x4d854c):_0x3d82f1['writer']['setAttribute']('start',String(_0x3a3f74),_0x4d854c);}),_0x417edd['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x472b75,_0x18b085,_0x1d5938)=>{if(!_0x1d5938['consumable']['consume'](_0x18b085['item'],_0x472b75['name']))return;const _0x5042e3=M(_0x18b085['item'],_0x1d5938['mapper']),{attributeNewValue:_0x3e78fa}=_0x18b085;_0x3e78fa&&'decimal'!==_0x3e78fa?_0x1d5938['writer']['setStyle']('list-style-type',_0x3e78fa,_0x5042e3):_0x1d5938['writer']['removeStyle']('list-style-type',_0x5042e3);});});}['_definePostfixer'](){const {editor:_0x2f2c1f}=this,{model:_0x155c9c}=_0x2f2c1f,_0x345059=_0x2f2c1f['plugins']['get'](f),_0x2ce3e6=this['_getDefaultListStyle'](),_0x12d51c=this['_getDefaultStartIndex']();_0x155c9c['document']['registerPostFixer'](_0x350448=>{const _0x17ca0e=_0x155c9c['document']['differ']['getChanges']();let _0x2921c4=!0x1;for(const _0x229fde of _0x17ca0e){if('insert'!==_0x229fde['type']||'$text'===_0x229fde['name'])continue;const _0x4b283e=_0x155c9c['createRangeOn'](_0x229fde['position']['nodeAfter']);for(const _0x161b0e of _0x4b283e['getItems']())_0x161b0e['is']('element','footnotesDefinitions')&&(!_0x161b0e['hasAttribute']('footnotesListStart')&&_0x155c9c['schema']['checkAttribute'](_0x161b0e,'footnotesListStart')&&(_0x350448['setAttribute']('footnotesListStart',_0x12d51c,_0x161b0e),_0x2921c4=!0x0),!_0x161b0e['hasAttribute']('footnotesListStyle')&&_0x155c9c['schema']['checkAttribute'](_0x161b0e,'footnotesListStyle')&&(_0x350448['setAttribute']('footnotesListStyle',_0x2ce3e6,_0x161b0e),_0x2921c4=!0x0));}return _0x2921c4&&_0x345059['_updateFootnotesCounters'](_0x350448),_0x2921c4;});}['_defineFormatter'](){const {editor:_0x1ba60f}=this;_0x1ba60f['plugins']['get'](f)['setFootnoteFormatter'](_0x27491d=>this['_formatFootnoteListValue'](_0x27491d));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x56895f,value:_0x5d00bf,digits:_0xd35c75}){const _0x246ac7=_0x56895f['getAttribute']('footnotesListStyle'),_0x3ee6c2=_0x56895f['getAttribute']('footnotesListStart'),_0x7382a5=Math['floor'](_0x5d00bf)+(_0x3ee6c2??0x1)-0x1;switch(_0x246ac7){case'decimal-leading-zero':return function(_0x3d963a,_0x2a7470){return String(_0x3d963a)['padStart'](_0x2a7470,'0');}(_0x7382a5,Math['max'](0x2,_0xd35c75));case'lower-alpha':case'lower-latin':return N(_0x7382a5,!0x1);case'upper-alpha':case'upper-latin':return N(_0x7382a5,!0x0);case'lower-roman':return X(_0x7382a5,!0x1);case'upper-roman':return X(_0x7382a5,!0x0);default:return String(_0x7382a5);}}}function M(_0xac08b6,_0x4c16e3){const _0x4f1b76=_0x4c16e3['toViewElement'](_0xac08b6);return Array['from'](_0x4f1b76['getChildren']())['find'](_0x3938c7=>_0x3938c7['is']('element','ol')&&_0x3938c7['hasClass']('footnotes-list'));}function N(_0x5a655b,_0x5e94b5){let _0x1d648d='',_0x22e39f=_0x5a655b;for(;_0x22e39f>0x0;){const _0x299878=(_0x22e39f-0x1)%0x1a;_0x1d648d=String['fromCharCode'](0x61+_0x299878)+_0x1d648d,_0x22e39f=Math['floor']((_0x22e39f-0x1)/0x1a);}return _0x5e94b5?_0x1d648d['toUpperCase']():_0x1d648d;}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(_0x494c81,_0x16b4b1){let _0x2407d7='',_0x1aadd3=_0x494c81;for(const {value:_0x1b4696,numeral:_0x409838}of V)for(;_0x1aadd3>=_0x1b4696;)_0x2407d7+=_0x409838,_0x1aadd3-=_0x1b4696;return _0x16b4b1?_0x2407d7:_0x2407d7['toLowerCase']();}class J extends _0x2be6a4{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0xb04a7c();['focusCycler'];constructor(_0x57fbda,{styleButtonViews:_0x3ec609,styleGridAriaLabel:_0xe68ea3}){super(_0x57fbda),(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'](_0x3ec609,_0xe68ea3),[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 _0x741240 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x741240['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 _0x854b96=_0x4054d7=>_0x4054d7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x854b96),this['keystrokes']['set']('arrowleft',_0x854b96),this['keystrokes']['set']('arrowup',_0x854b96),this['keystrokes']['set']('arrowdown',_0x854b96);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5a871b,_0x49d99e){const _0x569dc9=new _0x2be6a4(this['locale']);return _0x569dc9['children']=_0x569dc9['createCollection'](),_0x569dc9['children']['addMany'](_0x5a871b),_0x569dc9['setTemplate']({'tag':'div','attributes':{'aria-label':_0x49d99e,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x569dc9['children']}),_0x569dc9['children']['delegate']('execute')['to'](this),_0x569dc9['focus']=function(){for(const _0x3d3dd9 of this['children'])if(_0x3d3dd9 instanceof _0x10acff&&_0x3d3dd9['isOn'])return void _0x3d3dd9['focus']();this['children']['first']['focus']();},_0x569dc9['focusTracker']=new rt(),_0x569dc9['keystrokes']=new nt(),_0x569dc9['render'](),_0x569dc9['keystrokes']['listenTo'](_0x569dc9['element']),this['children']['add'](_0x569dc9),_0x569dc9;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x483957=this['_createStartIndexPropertyView'](),_0x48f397=[_0x483957],_0x2e087e=new it(this['locale'],_0x48f397);return _0x2e087e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2e087e['buttonView']['bind']('isEnabled')['toMany'](_0x48f397,'isEnabled',(..._0xc20a34)=>_0xc20a34['some'](_0x5d83af=>_0x5d83af)),_0x2e087e['buttonView']['on']('change:isEnabled',(_0x43344,_0x30955a,_0x33ea10)=>{_0x33ea10||(_0x2e087e['isCollapsed']=!0x0);}),this['children']['add'](_0x2e087e),[_0x483957,_0x2e087e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xe4bc56=new et(this['locale'],ot);return _0xe4bc56['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xe4bc56['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xe4bc56['fieldView']['on']('input',()=>{const _0x3b5464=_0xe4bc56['fieldView']['element'],_0x3585c3=_0x3b5464['valueAsNumber'];Number['isNaN'](_0x3585c3)?_0xe4bc56['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3b5464['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3585c3}):_0xe4bc56['errorText']=t(_0x3585c3<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xe4bc56;}}class j extends _0x30fa3c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4bc115,_0x3ff51c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b4b16}=this,{componentFactory:_0x5ae8bc}=_0x2b4b16['ui'];_0x2b4b16['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5ae8bc['add']('footnotesStyle',function(_0xfe437b){return _0x313139=>{const {t:t}=_0x313139,_0x4a4bd1=_0xfe437b['commands']['get']('footnotesStyle'),_0xf42969=_0x4817e6(_0x313139),{buttonView:_0x2c3239}=_0xf42969;return _0xf42969['class']='ck-footnotes-styles-dropdown',_0xf42969['bind']('isEnabled')['to'](_0x4a4bd1,'isEnabled'),_0x2c3239['set']({'label':t('Footnotes\x20style'),'icon':_0x990c6a,'tooltip':!0x0}),_0xf42969['once']('change:isOpen',()=>{const _0x245c1e=function({editor:_0x245849,dropdownView:_0x369e49}){const {t:t}=_0x245849['locale'],_0x4b264c=t('Footnotes\x20definitions\x20styles'),_0x1b8cba=function(_0x42ed10){const t=_0x42ed10['locale']['t'],_0x1ff1d3=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x328fab},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3b0897},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2843c8},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x16d554},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x33d01d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x5d9648}];return _0x1ff1d3['map'](function(_0x5abe64){const _0xfa104d=_0x5abe64['locale'];return({label:_0x4f6678,icon:_0x22a51f,tooltip:_0x26ecae,style:_0x339781})=>{const _0x467542=_0x5abe64['commands']['get']('footnotesStyle'),_0x1f975f=new _0x10acff(_0xfa104d);return _0x1f975f['set']({'label':_0x4f6678,'icon':_0x22a51f,'tooltip':_0x26ecae}),_0x1f975f['bind']('isOn')['to'](_0x467542,'value',_0x14b467=>_0x14b467===_0x339781),_0x1f975f['bind']('isEnabled')['to'](_0x467542,'isEnabled'),_0x1f975f['on']('execute',()=>{_0x5abe64['execute']('footnotesStyle',{'value':_0x339781}),_0x5abe64['editing']['view']['focus']();}),_0x1f975f;};}(_0x42ed10));}(_0x245849),_0x4da223=new J(_0x245849['locale'],{'styleGridAriaLabel':_0x4b264c,'styleButtonViews':_0x1b8cba}),_0x284bda=_0x245849['commands']['get']('footnotesStart');return _0x4da223['startIndexFieldView']['bind']('isEnabled')['to'](_0x284bda),_0x4da223['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x284bda),_0x4da223['on']('footnotesListStart',(_0x5dae30,_0x461a72)=>{_0x245849['execute']('footnotesStart',{'value':_0x461a72['startIndex']});}),_0x4da223['delegate']('execute')['to'](_0x369e49),_0x4da223;}({'editor':_0xfe437b,'dropdownView':_0xf42969});_0xf42969['panelView']['children']['add'](_0x245c1e);}),_0xf42969;};}(_0x2b4b16));}['afterInit'](){const {editor:_0x1aee5f}=this,{t:t}=_0x1aee5f['locale'],_0x46917d=_0x1aee5f['plugins']['get'](_0x3ff51c),{defaultPositions:_0x5d4a81}=_0x489f81;_0x46917d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1aee5f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x566dc0=>{let _0x3f4f47=_0x566dc0['getFirstPosition']()?.['parent'];return _0x3f4f47?.['is']('$text')&&(_0x3f4f47=_0x3f4f47['parent']),_0x3f4f47?.['is']('element')?_0x3f4f47['findAncestor'](Q):null;},'positions':[_0x5d4a81['southArrowNorth'],_0x5d4a81['southArrowNorthMiddleWest'],_0x5d4a81['southArrowNorthMiddleEast'],_0x5d4a81['southArrowNorthWest'],_0x5d4a81['southArrowNorthEast'],_0x5d4a81['northArrowSouth'],_0x5d4a81['northArrowSouthMiddleWest'],_0x5d4a81['northArrowSouthMiddleEast'],_0x5d4a81['northArrowSouthWest'],_0x5d4a81['northArrowSouthEast'],_0x5d4a81['viewportStickyNorth']]});}}class ft extends _0x30fa3c{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "47.4.0-alpha.3",
3
+ "version": "47.4.0-alpha.4",
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.4.0-alpha.3",
27
- "@ckeditor/ckeditor5-ui": "47.4.0-alpha.3",
28
- "@ckeditor/ckeditor5-engine": "47.4.0-alpha.3",
29
- "@ckeditor/ckeditor5-icons": "47.4.0-alpha.3",
30
- "@ckeditor/ckeditor5-widget": "47.4.0-alpha.3",
31
- "@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.3",
32
- "@ckeditor/ckeditor5-utils": "47.4.0-alpha.3",
33
- "ckeditor5": "47.4.0-alpha.3"
26
+ "@ckeditor/ckeditor5-core": "47.4.0-alpha.4",
27
+ "@ckeditor/ckeditor5-ui": "47.4.0-alpha.4",
28
+ "@ckeditor/ckeditor5-engine": "47.4.0-alpha.4",
29
+ "@ckeditor/ckeditor5-icons": "47.4.0-alpha.4",
30
+ "@ckeditor/ckeditor5-widget": "47.4.0-alpha.4",
31
+ "@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.4",
32
+ "@ckeditor/ckeditor5-utils": "47.4.0-alpha.4",
33
+ "ckeditor5": "47.4.0-alpha.4"
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 _0x1e244b}from'ckeditor5/src/core.js';import{isWidget as _0x39686a,toWidget as _0x1bd6bc,toWidgetEditable as _0x4cf5fb}from'ckeditor5/src/widget.js';import{uid as _0x224556}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4056a3,ClickObserver as _0x2495fa}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2e6bc4}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1d80f1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1e244b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2e6bc4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20a311}=this;_0x20a311['config']['define']('footnotes.multiBlock',!0x0),_0x20a311['commands']['add']('insertFootnote',new _0x1d80f1(_0x20a311)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x470ff2){const _0xd96dd9=_0x38a7ed([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]),_0x57f33d=0x47a28506,_0x59aa0a=0x47a5fb86^_0x57f33d,_0x208b3f=window[_0x38a7ed([0x44,0x61,0x74,0x65])][_0x38a7ed([0x6e,0x6f,0x77])](),_0x268b16=_0x470ff2[_0x38a7ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x597d77=new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f213d=>{_0x268b16[_0x38a7ed([0x6f,0x6e,0x63,0x65])](_0x38a7ed([0x72,0x65,0x61,0x64,0x79]),_0x3f213d);}),_0x5c90fb={[_0x38a7ed([0x6b,0x74,0x79])]:_0x38a7ed([0x45,0x43]),[_0x38a7ed([0x75,0x73,0x65])]:_0x38a7ed([0x73,0x69,0x67]),[_0x38a7ed([0x63,0x72,0x76])]:_0x38a7ed([0x50,0x2d,0x32,0x35,0x36]),[_0x38a7ed([0x78])]:_0x38a7ed([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]),[_0x38a7ed([0x79])]:_0x38a7ed([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]),[_0x38a7ed([0x61,0x6c,0x67])]:_0x38a7ed([0x45,0x53,0x32,0x35,0x36])},_0x385365=_0x268b16[_0x38a7ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38a7ed([0x67,0x65,0x74])](_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46a4f5(){let _0x139b98,_0x34354b=null,_0xca10f7=null;try{if(_0x385365==_0x38a7ed([0x47,0x50,0x4c]))return _0x38a7ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x139b98=_0x53c651(),!_0x139b98)return _0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x139b98[_0x38a7ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xca10f7=_0x390e09(_0x139b98[_0x38a7ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x139b98[_0x38a7ed([0x6a,0x74,0x69])])),await _0x364ac0()?_0x545309()?_0x11b043()?_0x38a7ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52fee7()?(_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38a7ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34354b=_0x1656de(_0x38a7ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3bfd79()):_0x38a7ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38a7ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11b043(){const _0x294304=[_0x38a7ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38a7ed([0x74,0x72,0x69,0x61,0x6c])][_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x208b3f/0x3e8:0xe10*_0x59aa0a;return _0x139b98[_0x38a7ed([0x65,0x78,0x70])]<_0x294304;}function _0x545309(){const _0xa6f4f0=_0x139b98[_0x38a7ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa6f4f0&&(!!_0xa6f4f0[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x2a]))||!!_0xa6f4f0[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x46,0x4f,0x4f])));}function _0x52fee7(){const _0x59413c=_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59413c||0x0==_0x59413c[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cb77a}=new URL(window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59413c[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cb77a))return!0x0;const _0x4d07b9=_0x2cb77a[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e]));return _0x59413c[_0x38a7ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aaa9b=>_0x4aaa9b[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x2a])))[_0x38a7ed([0x6d,0x61,0x70])](_0x5910f6=>_0x5910f6[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e])))[_0x38a7ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bc6ea=>_0x5bc6ea[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d07b9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a7ed([0x6d,0x61,0x70])](_0x423f1b=>Array(_0x4d07b9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x423f1b[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a7ed([0x66,0x69,0x6c,0x6c])](_0x423f1b[0x0]===_0x38a7ed([0x2a])?_0x38a7ed([0x2a]):'')[_0x38a7ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x423f1b))[_0x38a7ed([0x73,0x6f,0x6d,0x65])](_0x57bd09=>_0x4d07b9[_0x38a7ed([0x65,0x76,0x65,0x72,0x79])]((_0x422ff4,_0x290470)=>_0x57bd09[_0x290470]===_0x422ff4||_0x57bd09[_0x290470]===_0x38a7ed([0x2a])));}function _0x3bfd79(){return _0x34354b&&_0xca10f7?new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x584b63,_0x14caa5)=>{_0x34354b[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x584b63,_0x14caa5),_0xca10f7[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x5107ac=>{_0x5107ac!=_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])&&_0x584b63(_0x5107ac);},_0x14caa5);}):_0x34354b||_0xca10f7||_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x390e09(_0x839c5e,_0x3b1d48){return new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322e24=>{if(_0x9af91e())return _0x322e24(_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]));_0x187c0f(),_0x268b16[_0x38a7ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43b32f=!0x1;const _0x5ba721=_0x224556();function _0x3f32bf(_0x5df4d3){return!!_0x5df4d3&&(typeof _0x5df4d3===_0x38a7ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5df4d3===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5df4d3[_0x38a7ed([0x74,0x68,0x65,0x6e])]===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5df4d3[_0x38a7ed([0x63,0x61,0x74,0x63,0x68])]===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3740ac(_0x4d0375){_0x426e08(_0x4d0375)[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x58ae1e=>{if(!_0x58ae1e||_0x58ae1e[_0x38a7ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38a7ed([0x6f,0x6b]))return _0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x557b8a(_0x1fc4b1(_0x5ba721+_0x3b1d48))!=_0x58ae1e[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x15f772=>(_0x5d2e00(),_0x15f772),()=>{const _0x5485f4=_0x4887b0();return null==_0x5485f4?(_0x5d2e00(),_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])):_0x38a7ed(_0x208b3f-_0x5485f4>(0x63ae0106^_0x57f33d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x322e24)[_0x38a7ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fee42=0x47946b86^_0x57f33d;function _0x5d2e00(){const _0x4378f7=_0x38a7ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x557b8a(_0x1fc4b1(_0x839c5e)),_0x435f24=_0x1934ef(_0x557b8a(window[_0x38a7ed([0x4d,0x61,0x74,0x68])][_0x38a7ed([0x63,0x65,0x69,0x6c])](_0x208b3f/_0x4fee42)));window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a7ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4378f7,_0x435f24);}function _0x4887b0(){const _0x46b243=_0x38a7ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x557b8a(_0x1fc4b1(_0x839c5e)),_0x479862=window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a7ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46b243);return _0x479862?window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1934ef(_0x479862),0x10)*_0x4fee42:null;}function _0x426e08(_0x3a1f5e){return new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2705ad,_0x49a398)=>{_0x3a1f5e[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x2705ad,_0x49a398),window[_0x38a7ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49a398,0x47a351c6^_0x57f33d);});}}_0x268b16[_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18a674,_0x1ca046)=>{if(_0x1ca046[0x0]!=_0x839c5e)return _0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ca046[0x1]={..._0x1ca046[0x1],[_0x38a7ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ba721};},{[_0x38a7ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a7ed([0x68,0x69,0x67,0x68])}),_0x268b16[_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x96966f=>{_0x3f32bf(_0x96966f[_0x38a7ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43b32f=!0x0,_0x3740ac(_0x96966f[_0x38a7ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38a7ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a7ed([0x6c,0x6f,0x77])}),_0x597d77[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>{_0x43b32f||_0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9af91e(){return _0x268b16[_0x38a7ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a7ed([0x76,0x69,0x65,0x77])][_0x38a7ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38a7ed([0x61,0x75,0x74,0x6f]);}function _0x187c0f(){_0x268b16[_0x38a7ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a7ed([0x76,0x69,0x65,0x77])][_0x38a7ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38a7ed([0x61,0x75,0x74,0x6f]);}}function _0x1656de(_0x3de417){const _0x429946=[new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c3ef=>setTimeout(_0x52c3ef,0x47abbbca^_0x57f33d)),_0x597d77[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x252c12=>{let _0x55a295=0x0;_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16047e,_0x5a7147)=>{_0x5a7147[0x0][_0x38a7ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55a295++,_0x55a295==(0x47a280ee^_0x57f33d)&&(_0x252c12(),_0x16047e[_0x38a7ed([0x6f,0x66,0x66])]());});}))];return window[_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38a7ed([0x72,0x61,0x63,0x65])](_0x429946)[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>_0x3de417);}async function _0x3e3b4f(){await _0x597d77,_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4708b1,_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4708b1,_0x268b16[_0x38a7ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b9fde(_0x42ea0e){const _0x311fb9=_0x588a6f();_0x268b16[_0x311fb9]=_0x38a7ed([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42ea0e,_0x42ea0e!=_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])&&_0x3e3b4f();}function _0x588a6f(){const _0x4c60e6=window[_0x38a7ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38a7ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38a7ed([0x6e,0x6f,0x77])]())[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38a7ed([0x2e]),'');let _0x11e684=_0x38a7ed([0x75]);for(let _0x119dc9=0x0;_0x119dc9<_0x4c60e6[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x119dc9+=0x2){let _0x45b5fe=window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c60e6[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x119dc9,_0x119dc9+0x2));_0x45b5fe>=_0xd96dd9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45b5fe-=_0xd96dd9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11e684+=_0xd96dd9[_0x45b5fe];}return _0x11e684;}function _0x53c651(){const _0x2e1e4e=_0x385365[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e]));if(0x3!=_0x2e1e4e[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13eff9(_0x2e1e4e[0x1]);function _0x13eff9(_0x65cb70){const _0x35f8c4=_0x30ba15(_0x65cb70);return _0x35f8c4&&_0x450103()?_0x35f8c4:null;function _0x450103(){const _0x340635=_0x35f8c4[_0x38a7ed([0x6a,0x74,0x69])],_0x23c20b=window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x340635[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x340635[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdbb2fb={..._0x35f8c4,[_0x38a7ed([0x6a,0x74,0x69])]:_0x340635[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x340635[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdbb2fb[_0x38a7ed([0x76,0x63])],_0x1fc4b1(_0xdbb2fb)==_0x23c20b;}}}async function _0x364ac0(){let _0x511ff2=!0x0;try{const _0x2911df=_0x385365[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e])),[_0xca0d55,_0x2f05a0,_0x1bffe1]=_0x2911df;return _0x534e45(_0xca0d55),await _0x3e4bb3(_0xca0d55,_0x2f05a0,_0x1bffe1),_0x511ff2;}catch{return!0x1;}function _0x534e45(_0x3153e0){const _0x33e77d=_0x30ba15(_0x3153e0);_0x33e77d&&_0x33e77d[_0x38a7ed([0x61,0x6c,0x67])]==_0x38a7ed([0x45,0x53,0x32,0x35,0x36])||(_0x511ff2=!0x1);}async function _0x3e4bb3(_0x534993,_0x259679,_0x40fda3){const _0x1ecc2c=window[_0x38a7ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38a7ed([0x66,0x72,0x6f,0x6d])](_0x579bab(_0x40fda3),_0x484c7b=>_0x484c7b[_0x38a7ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16e6ee=new window[(_0x38a7ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38a7ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x534993+_0x38a7ed([0x2e])+_0x259679),_0x260c21=window[_0x38a7ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38a7ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x260c21)return;const _0x1adefb=await _0x260c21[_0x38a7ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38a7ed([0x6a,0x77,0x6b]),_0x5c90fb,{[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x45,0x43,0x44,0x53,0x41]),[_0x38a7ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38a7ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x260c21[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x45,0x43,0x44,0x53,0x41]),[_0x38a7ed([0x68,0x61,0x73,0x68])]:{[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1adefb,_0x1ecc2c,_0x16e6ee)||(_0x511ff2=!0x1);}}function _0x30ba15(_0xdf618){return _0xdf618[_0x38a7ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38a7ed([0x65,0x79]))?JSON[_0x38a7ed([0x70,0x61,0x72,0x73,0x65])](_0x579bab(_0xdf618)):null;}function _0x579bab(_0x5f5cfa){return window[_0x38a7ed([0x61,0x74,0x6f,0x62])](_0x5f5cfa[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38a7ed([0x2b]))[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38a7ed([0x2f])));}function _0x1fc4b1(_0x1029ed){let _0x2eab57=0x1505;function _0x1b3e44(_0x5ac8b3){for(let _0x47f672=0x0;_0x47f672<_0x5ac8b3[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47f672++){const _0x59b23d=_0x5ac8b3[_0x38a7ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47f672);_0x2eab57=(_0x2eab57<<0x5)+_0x2eab57+_0x59b23d,_0x2eab57&=_0x2eab57;}}function _0x451357(_0x3596c0){Array[_0x38a7ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3596c0)?_0x3596c0[_0x38a7ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x451357):_0x3596c0&&typeof _0x3596c0==_0x38a7ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38a7ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3596c0)[_0x38a7ed([0x73,0x6f,0x72,0x74])]()[_0x38a7ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fa70b,_0x5a00ff])=>{_0x1b3e44(_0x3fa70b),_0x451357(_0x5a00ff);}):_0x1b3e44(window[_0x38a7ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3596c0));}return _0x451357(_0x1029ed),_0x2eab57>>>0x0;}function _0x557b8a(_0x40dfef){return _0x40dfef[_0x38a7ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38a7ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38a7ed([0x30]));}function _0x1934ef(_0x2a3ec2){return _0x2a3ec2[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38a7ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38a7ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x4708b1(){}function _0x38a7ed(_0x590391){return _0x590391['map'](_0x224035=>String['fromCharCode'](_0x224035))['join']('');}_0x1b9fde(await _0x46a4f5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4a9084){const {plugins:_0x3ccb83,editing:_0x3858bb,model:_0x2e2fcc}=this['editor'],_0x4947c3=_0x3ccb83['get'](_0x2e6bc4)['getFootnote'](_0x4a9084);return!!_0x4947c3&&(_0x2e2fcc['change'](_0x1d3833=>{_0x1d3833['setSelection'](_0x1d3833['createPositionAt'](_0x4947c3['definition'],'end'));}),_0x3858bb['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3b217f){const {plugins:_0x1a33c7,editing:_0x3cdae8,model:_0x4a10a6}=this['editor'],_0x2f0579=_0x1a33c7['get'](_0x2e6bc4)['getFootnote'](_0x3b217f);return!!_0x2f0579&&(_0x4a10a6['change'](_0x5c61b9=>{_0x5c61b9['setSelection'](_0x2f0579['reference'],'on');}),_0x3cdae8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x53dacf}=this['editor']['model'],_0x5685d1=this['editor']['config']['get']('footnotes.multiBlock');_0x53dacf['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x53dacf['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x53dacf['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5685d1?_0x53dacf['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x53dacf['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x53dacf['addChildCheck'](_0x2e0d19=>{for(const _0x53a9cf of _0x2e0d19)if('footnoteDefinition'===_0x53a9cf['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x33b087}=this,{conversion:_0x4ff102,editing:_0x40124c}=_0x33b087,{t:t}=_0x33b087['locale'];_0x4ff102['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x34809f,{writer:_0x1cbb82,consumable:_0x66797c})=>{const _0x2fdaf7=_0x34809f['getChild'](0x0);if(!_0x2fdaf7||!_0x2fdaf7['is']('element','a'))return null;const _0x19d4aa=_0x2fdaf7['getAttribute']('href')||'';if(!_0x19d4aa['startsWith']('#'))return null;const _0x5d1620=_0x19d4aa['replace'](/^#/,'');if(!_0x5d1620)return null;_0x66797c['consume'](_0x2fdaf7,{'name':!0x0,'attributes':['href']});for(const {item:_0x451415}of _0x40124c['view']['createRangeIn'](_0x2fdaf7))_0x451415['is']('$textProxy')?_0x66797c['consume'](_0x451415['textNode'],{'name':!0x0}):_0x451415['is']('element')&&_0x66797c['consume'](_0x451415,{'name':!0x0});return _0x1cbb82['createElement']('footnoteRef',{'footnoteId':_0x5d1620});}}),_0x4ff102['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1bfc6f,{writer:_0xd6bca5})=>b(_0x1bfc6f,_0xd6bca5)}),_0x4ff102['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x21862f,{writer:_0x27f4a1})=>{const _0x32874c=_0x21862f['getAttribute']('footnoteCounter');return _0x1bd6bc(b(_0x21862f,_0x27f4a1),_0x27f4a1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x32874c)});}});}['_defineDefinitionsConverters'](){const {editor:_0x150421}=this,{t:t}=_0x150421['locale'],{conversion:_0x5594c6}=_0x150421;_0x5594c6['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5594c6['for']('upcast')['add'](_0x525d67=>{_0x525d67['on']('element:ol',(_0x4687d6,_0x61509e,_0xaf2f20)=>{const _0x4db7e7=_0x61509e['viewItem'];if(!_0x4db7e7['hasClass']('footnotes-list')||!_0x61509e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xaf2f20['consumable']['consume'](_0x4db7e7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x55f25b,modelCursor:_0x4b3246}=_0xaf2f20['convertChildren'](_0x61509e['viewItem'],_0x61509e['modelCursor']);_0x61509e['modelRange']=_0x55f25b,_0x61509e['modelCursor']=_0x4b3246;}),_0x525d67['on']('element:hr',(_0x4b1d10,_0x3e3a1d,_0x45c5f8)=>{const _0x351e47=_0x3e3a1d['viewItem'];_0x351e47['hasClass']('footnotes-divider')&&_0x3e3a1d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x45c5f8['consumable']['consume'](_0x351e47,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5594c6['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e169e,{writer:_0x199a25})=>D(_0x199a25)}),_0x5594c6['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x213547,{writer:_0x7a60b1})=>{const _0x574e1f=D(_0x7a60b1,{'data-footnotes-list-label':t('Footnotes')}),_0x1b9d31=_0x1bd6bc(_0x574e1f,_0x7a60b1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x7a60b1['setCustomProperty']('footnotesDefinitions',!0x0,_0x1b9d31),_0x1b9d31;}});}['_defineDefinitionConverters'](){const {editor:_0x5cb035}=this,{conversion:_0x4a95b7,locale:_0x5447d3}=_0x5cb035,_0x1bc9ab=_0x5cb035['config']['get']('footnotes.multiBlock');_0x4a95b7['for']('upcast')['add'](_0x558caf=>{_0x558caf['on']('element:li',(_0x59f8be,_0x424d2f,_0x348809)=>{const _0x1ba168=_0x424d2f['viewItem'];if(!_0x1ba168['hasClass']('footnote-definition')||!_0x1ba168['getAttribute']('id'))return;const _0x43068f=_0x1ba168['parent'];if(!_0x43068f['is']('element','ol')||!_0x43068f['hasClass']('footnotes-list'))return;if(!_0x348809['consumable']['test'](_0x1ba168,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x25229c=_0x348809['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1ba168['getAttribute']('id')});if(!_0x348809['safeInsert'](_0x25229c,_0x424d2f['modelCursor']))return;_0x348809['consumable']['consume'](_0x1ba168,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x520389=Array['from'](_0x1ba168['getChildren']())['find'](_0x1999ad=>_0x1999ad['is']('element')&&_0x1999ad['hasClass']('footnote-content'));for(const _0x450b4e of _0x1ba168['getChildren']())_0x450b4e['is']('element')&&(_0x348809['consumable']['consume'](_0x450b4e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x348809['consumable']['consume'](_0x450b4e,{'name':!0x0,'classes':'footnote-content'}));if(_0x520389){if(_0x1bc9ab)_0x348809['convertChildren'](_0x520389,_0x25229c);else{const _0x14d413=_0x348809['writer']['createElement']('footnoteInlineContent');_0x348809['writer']['insert'](_0x14d413,_0x25229c),_0x348809['convertChildren'](_0x520389,_0x14d413);}}_0x348809['updateConversionResult'](_0x25229c,_0x424d2f);});}),_0x4a95b7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x52fbe3,{writer:_0x40a237})=>y(_0x52fbe3,_0x40a237,_0x5447d3,{'dataPipeline':!0x0})}),_0x4a95b7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x545830,{writer:_0x1ca4e2})=>y(_0x545830,_0x1ca4e2,_0x5447d3)});}['_defineBogusParagraphConverters'](){const {editor:_0x3933c8}=this,{conversion:_0x144f49}=_0x3933c8;_0x3933c8['config']['get']('footnotes.multiBlock')?(_0x144f49['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x144f49['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3933c8['model']['document'],'change:data',()=>{!function(_0xe0e955,_0x5b64a7){const _0x40fc06=_0xe0e955['document']['differ'],_0x168a0d=new Set();for(const _0x398409 of _0x40fc06['getChanges']()){const _0x36b44f='attribute'==_0x398409['type']?_0x398409['range']['start']['parent']:_0x398409['position']['parent'];_0x36b44f['is']('element','footnoteDefinition')&&_0x168a0d['add'](_0x36b44f);}for(const _0x34ace5 of _0x168a0d['values']()){const _0xa09466=Array['from'](_0x34ace5['getChildren']())['filter'](_0x57a786=>v(_0x57a786,_0x5b64a7['mapper']));for(const _0x401529 of _0xa09466)_0x5b64a7['reconvertItem'](_0x401529);}}(_0x3933c8['model'],_0x3933c8['editing']);})):(_0x144f49['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x144f49['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2f382a,{writer:_0x830df2})=>{const _0x317e42=_0x830df2['createContainerElement']('span');return _0x830df2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x317e42),_0x317e42;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3c7e16}=this,{editing:_0x434364,t:t}=_0x3c7e16,_0x157231=_0x3c7e16['model']['document']['selection'];_0x3c7e16['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3c7e16['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x434364['view']['document'],'enter',(_0x4c09ad,_0x1a6c63)=>{const _0x54aec5=function(_0x4068fa){const _0xccf641=_0x4068fa['getSelectedElement']();if(_0xccf641?.['is']('element','footnoteRef'))return _0xccf641;return null;}(_0x157231);if(_0x54aec5){const _0x33eaec=_0x54aec5['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x33eaec),_0x1a6c63['preventDefault'](),_0x4c09ad['stop']();}},{'context':_0x39686a});}['_defineClickHandlers'](){const {editor:_0x5c5e50}=this,{editing:_0x59cdd7}=_0x5c5e50;_0x5c5e50['editing']['view']['addObserver'](_0x4056a3),_0x5c5e50['editing']['view']['addObserver'](_0x2495fa);let _0x388a11=!0x1;this['listenTo'](_0x59cdd7['view']['document'],'pointerdown',(_0x16e4b8,_0x1317bc)=>{const {target:_0x5703ef}=_0x1317bc,_0x1cf910=_0x59cdd7['view']['document']['selection'];_0x388a11=!!(_0x5703ef?.['is']('element','a')&&_0x5703ef['parent']?.['is']('element','sup')&&_0x5703ef['parent']['hasClass']('footnote'))&&_0x1cf910['getSelectedElement']()===_0x5703ef['parent'];},{'priority':'high'}),this['listenTo'](_0x59cdd7['view']['document'],'click',(_0x267592,_0x4d0f11)=>{const {target:_0x1063f6}=_0x4d0f11;if(!_0x1063f6?.['is']('element','a'))return;if(_0x1063f6['parent']?.['is']('element','sup')&&_0x1063f6['parent']['hasClass']('footnote')&&!_0x388a11)return void _0x4d0f11['preventDefault']();let _0x11b1e6=_0x1063f6['getAttribute']('href');if(!_0x11b1e6?.['startsWith']('#'))return;_0x11b1e6=_0x11b1e6['slice'](0x1);let _0x58aae9=!0x1;(_0x11b1e6['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x11b1e6['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x11b1e6))&&(_0x58aae9=!0x0),_0x58aae9&&(_0x4d0f11['preventDefault'](),_0x267592['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x23ea6a}={}){return(_0x4a4674,{writer:_0xf8e424})=>{if(!g(_0x4a4674))return null;if(!_0x23ea6a)return _0xf8e424['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5bafc8=_0xf8e424['createContainerElement']('p');return _0xf8e424['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5bafc8),_0x5bafc8;};}function g(_0x34833e){const {parent:_0x5f30af}=_0x34833e;if(!_0x5f30af?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5f30af['childCount'])return!0x1;for(const _0xf62171 of _0x34833e['getAttributeKeys']())if(!_0xf62171['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xf62171)return!0x1;return!0x0;}function v(_0x1046ae,_0x323236){if(!_0x1046ae['is']('element','paragraph'))return!0x1;const _0x31f2dd=_0x323236['toViewElement'](_0x1046ae);return!!_0x31f2dd&&g(_0x1046ae)!==_0x31f2dd['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x37298f){return _0x39686a(_0x37298f)&&_0x37298f['is']('containerElement')&&!!_0x37298f['getCustomProperty']('footnotesDefinitions');}function D(_0x388375,_0x1aee5e={}){const _0x33ec88=_0x388375['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1e57a5=_0x388375['createContainerElement']('ol',{'class':'footnotes-list'},_0x388375['createSlot']());return _0x388375['createContainerElement']('div',{'class':'footnotes',..._0x1aee5e},[_0x33ec88,_0x1e57a5]);}function b(_0x125641,_0x35f687){const _0x4e30ca=_0x125641['getAttribute']('footnoteId'),_0xde2477=_0x125641['getAttribute']('footnoteCounter'),_0x4823ad=_0x35f687['createUIElement']('a',{'href':'#'+_0x4e30ca},function(_0x224089){const _0x4dc123=this['toDomElement'](_0x224089);return _0x4dc123['textContent']=_0xde2477,_0x4dc123;}),_0x53213f=_0x35f687['createContainerElement']('sup',{'id':'ref-'+_0x4e30ca,'class':'footnote'},[_0x4823ad]);return _0x53213f['getFillerOffset']=()=>null,_0x53213f;}function y(_0x1db3a0,_0x213529,_0x2f806d,{dataPipeline:_0x43fde8}={}){const {t:t}=_0x2f806d,_0x4aca1a=_0x1db3a0['getAttribute']('footnoteId'),_0x39ae51=_0x213529['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4aca1a},function(_0x15bd0e){const _0x8cb68f=this['toDomElement'](_0x15bd0e);return _0x8cb68f['innerText']='^',_0x8cb68f;}),_0x55d8e2=_0x43fde8?_0x213529['createContainerElement']('div',{'class':'footnote-content'}):_0x4cf5fb(_0x213529['createEditableElement']('div',{'class':'footnote-content'}),_0x213529,{'label':t('Footnote\x20content.')});return _0x213529['insert'](_0x213529['createPositionAt'](_0x55d8e2,0x0),_0x213529['createSlot']()),_0x213529['createContainerElement']('li',{'class':'footnote-definition','id':_0x4aca1a},[_0x39ae51,_0x55d8e2]);}
23
+ import{Plugin as _0x19483c}from'ckeditor5/src/core.js';import{isWidget as _0x9a9ff2,toWidget as _0x4e8cd4,toWidgetEditable as _0x1e1055}from'ckeditor5/src/widget.js';import{uid as _0x3ca9a1}from'ckeditor5/src/utils.js';import{PointerObserver as _0x59f128,ClickObserver as _0x1d3d8b}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3d7d08}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x169aca}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x19483c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3d7d08];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x140971}=this;_0x140971['config']['define']('footnotes.multiBlock',!0x0),_0x140971['commands']['add']('insertFootnote',new _0x169aca(_0x140971)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1c2b87){const _0x16a3ff=_0x1af073([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]),_0xecbf0f=0x47a28506,_0x476b73=0x47a5fb9e^_0xecbf0f,_0x179fdb=window[_0x1af073([0x44,0x61,0x74,0x65])][_0x1af073([0x6e,0x6f,0x77])](),_0x46b58f=_0x1c2b87[_0x1af073([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x249c77=new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41e4c8=>{_0x46b58f[_0x1af073([0x6f,0x6e,0x63,0x65])](_0x1af073([0x72,0x65,0x61,0x64,0x79]),_0x41e4c8);}),_0x2dab3b={[_0x1af073([0x6b,0x74,0x79])]:_0x1af073([0x45,0x43]),[_0x1af073([0x75,0x73,0x65])]:_0x1af073([0x73,0x69,0x67]),[_0x1af073([0x63,0x72,0x76])]:_0x1af073([0x50,0x2d,0x32,0x35,0x36]),[_0x1af073([0x78])]:_0x1af073([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]),[_0x1af073([0x79])]:_0x1af073([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]),[_0x1af073([0x61,0x6c,0x67])]:_0x1af073([0x45,0x53,0x32,0x35,0x36])},_0x262768=_0x46b58f[_0x1af073([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1af073([0x67,0x65,0x74])](_0x1af073([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x47d2bb(){let _0x261928,_0x27b977=null,_0x502de2=null;try{if(_0x262768==_0x1af073([0x47,0x50,0x4c]))return _0x1af073([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x261928=_0x224311(),!_0x261928)return _0x1af073([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x261928[_0x1af073([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x502de2=_0x406cb3(_0x261928[_0x1af073([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x261928[_0x1af073([0x6a,0x74,0x69])])),await _0x4697ab()?_0x1c42f6()?_0x3ff08d()?_0x1af073([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x20a938()?(_0x261928[_0x1af073([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1af073([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x27b977=_0x2ee4e9(_0x1af073([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x25aefc()):_0x1af073([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1af073([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1af073([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1af073([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ff08d(){const _0x4c72a6=[_0x1af073([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1af073([0x74,0x72,0x69,0x61,0x6c])][_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x261928[_0x1af073([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x179fdb/0x3e8:0xe10*_0x476b73;return _0x261928[_0x1af073([0x65,0x78,0x70])]<_0x4c72a6;}function _0x1c42f6(){const _0x5be354=_0x261928[_0x1af073([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5be354&&(!!_0x5be354[_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1af073([0x2a]))||!!_0x5be354[_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1af073([0x46,0x4f,0x4f])));}function _0x20a938(){const _0x10590d=_0x261928[_0x1af073([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x10590d||0x0==_0x10590d[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x237f14}=new URL(window[_0x1af073([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x10590d[_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x237f14))return!0x0;const _0x11daed=_0x237f14[_0x1af073([0x73,0x70,0x6c,0x69,0x74])](_0x1af073([0x2e]));return _0x10590d[_0x1af073([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xbac2ee=>_0xbac2ee[_0x1af073([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1af073([0x2a])))[_0x1af073([0x6d,0x61,0x70])](_0x2de9a7=>_0x2de9a7[_0x1af073([0x73,0x70,0x6c,0x69,0x74])](_0x1af073([0x2e])))[_0x1af073([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4615db=>_0x4615db[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x11daed[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1af073([0x6d,0x61,0x70])](_0x5d8351=>Array(_0x11daed[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5d8351[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1af073([0x66,0x69,0x6c,0x6c])](_0x5d8351[0x0]===_0x1af073([0x2a])?_0x1af073([0x2a]):'')[_0x1af073([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5d8351))[_0x1af073([0x73,0x6f,0x6d,0x65])](_0x1cd773=>_0x11daed[_0x1af073([0x65,0x76,0x65,0x72,0x79])]((_0xd2f002,_0x3b8b03)=>_0x1cd773[_0x3b8b03]===_0xd2f002||_0x1cd773[_0x3b8b03]===_0x1af073([0x2a])));}function _0x25aefc(){return _0x27b977&&_0x502de2?new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4af82e,_0x55426a)=>{_0x27b977[_0x1af073([0x74,0x68,0x65,0x6e])](_0x4af82e,_0x55426a),_0x502de2[_0x1af073([0x74,0x68,0x65,0x6e])](_0x531b47=>{_0x531b47!=_0x1af073([0x56,0x61,0x6c,0x69,0x64])&&_0x4af82e(_0x531b47);},_0x55426a);}):_0x27b977||_0x502de2||_0x1af073([0x56,0x61,0x6c,0x69,0x64]);}}function _0x406cb3(_0x5cf4e7,_0x44ac91){return new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c3f29=>{if(_0x47e018())return _0x1c3f29(_0x1af073([0x56,0x61,0x6c,0x69,0x64]));_0x2b9a51(),_0x46b58f[_0x1af073([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1af073([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x15a0b6=!0x1;const _0x164804=_0x3ca9a1();function _0x5a8086(_0x25bb0c){return!!_0x25bb0c&&(typeof _0x25bb0c===_0x1af073([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x25bb0c===_0x1af073([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x25bb0c[_0x1af073([0x74,0x68,0x65,0x6e])]===_0x1af073([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x25bb0c[_0x1af073([0x63,0x61,0x74,0x63,0x68])]===_0x1af073([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f7901(_0x24b9f6){_0x392e1f(_0x24b9f6)[_0x1af073([0x74,0x68,0x65,0x6e])](_0x190551=>{if(!_0x190551||_0x190551[_0x1af073([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1af073([0x6f,0x6b]))return _0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x207b54(_0x3d5bd1(_0x164804+_0x44ac91))!=_0x190551[_0x1af073([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1af073([0x56,0x61,0x6c,0x69,0x64]);})[_0x1af073([0x74,0x68,0x65,0x6e])](_0x4b730d=>(_0x242cf3(),_0x4b730d),()=>{const _0x588905=_0x2da19a();return null==_0x588905?(_0x242cf3(),_0x1af073([0x56,0x61,0x6c,0x69,0x64])):_0x1af073(_0x179fdb-_0x588905>(0x63ae0106^_0xecbf0f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1af073([0x74,0x68,0x65,0x6e])](_0x1c3f29)[_0x1af073([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1c3f29(_0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x184fe9=0x47946b86^_0xecbf0f;function _0x242cf3(){const _0x481256=_0x1af073([0x6c,0x6c,0x63,0x74,0x2d])+_0x207b54(_0x3d5bd1(_0x5cf4e7)),_0x17fb50=_0x1bcff0(_0x207b54(window[_0x1af073([0x4d,0x61,0x74,0x68])][_0x1af073([0x63,0x65,0x69,0x6c])](_0x179fdb/_0x184fe9)));window[_0x1af073([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1af073([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x481256,_0x17fb50);}function _0x2da19a(){const _0x1f8e31=_0x1af073([0x6c,0x6c,0x63,0x74,0x2d])+_0x207b54(_0x3d5bd1(_0x5cf4e7)),_0x3306f2=window[_0x1af073([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1af073([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1f8e31);return _0x3306f2?window[_0x1af073([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bcff0(_0x3306f2),0x10)*_0x184fe9:null;}function _0x392e1f(_0x5cf5d6){return new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x529d21,_0x2c4025)=>{_0x5cf5d6[_0x1af073([0x74,0x68,0x65,0x6e])](_0x529d21,_0x2c4025),window[_0x1af073([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c4025,0x47a351c6^_0xecbf0f);});}}_0x46b58f[_0x1af073([0x6f,0x6e])](_0x1af073([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bc5f2,_0xa0bfcb)=>{if(_0xa0bfcb[0x0]!=_0x5cf4e7)return _0x1c3f29(_0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa0bfcb[0x1]={..._0xa0bfcb[0x1],[_0x1af073([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x164804};},{[_0x1af073([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1af073([0x68,0x69,0x67,0x68])}),_0x46b58f[_0x1af073([0x6f,0x6e])](_0x1af073([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27e747=>{_0x5a8086(_0x27e747[_0x1af073([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x15a0b6=!0x0,_0x2f7901(_0x27e747[_0x1af073([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1af073([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1af073([0x6c,0x6f,0x77])}),_0x249c77[_0x1af073([0x74,0x68,0x65,0x6e])](()=>{_0x15a0b6||_0x1c3f29(_0x1af073([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x47e018(){return _0x46b58f[_0x1af073([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1af073([0x76,0x69,0x65,0x77])][_0x1af073([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1af073([0x61,0x75,0x74,0x6f]);}function _0x2b9a51(){_0x46b58f[_0x1af073([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1af073([0x76,0x69,0x65,0x77])][_0x1af073([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1af073([0x61,0x75,0x74,0x6f]);}}function _0x2ee4e9(_0x40df99){const _0x28f010=[new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c9ab5=>setTimeout(_0x3c9ab5,0x47abbbca^_0xecbf0f)),_0x249c77[_0x1af073([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x263409=>{let _0x393c0c=0x0;_0x46b58f[_0x1af073([0x6d,0x6f,0x64,0x65,0x6c])][_0x1af073([0x6f,0x6e])](_0x1af073([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x36c177,_0x1811cd)=>{_0x1811cd[0x0][_0x1af073([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x393c0c++,_0x393c0c==(0x47a280ee^_0xecbf0f)&&(_0x263409(),_0x36c177[_0x1af073([0x6f,0x66,0x66])]());});}))];return window[_0x1af073([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1af073([0x72,0x61,0x63,0x65])](_0x28f010)[_0x1af073([0x74,0x68,0x65,0x6e])](()=>_0x40df99);}async function _0x4ddda3(){await _0x249c77,_0x46b58f[_0x1af073([0x6d,0x6f,0x64,0x65,0x6c])][_0x1af073([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x25cf63,_0x46b58f[_0x1af073([0x6d,0x6f,0x64,0x65,0x6c])][_0x1af073([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x25cf63,_0x46b58f[_0x1af073([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1af073([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1ada36(_0x3bc596){const _0x1d5260=_0x47238c();_0x46b58f[_0x1d5260]=_0x1af073([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x3bc596,_0x3bc596!=_0x1af073([0x56,0x61,0x6c,0x69,0x64])&&_0x4ddda3();}function _0x47238c(){const _0x3919aa=window[_0x1af073([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1af073([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1af073([0x6e,0x6f,0x77])]())[_0x1af073([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1af073([0x2e]),'');let _0x3a9f9e=_0x1af073([0x75]);for(let _0x2da695=0x0;_0x2da695<_0x3919aa[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2da695+=0x2){let _0xb76105=window[_0x1af073([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3919aa[_0x1af073([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2da695,_0x2da695+0x2));_0xb76105>=_0x16a3ff[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb76105-=_0x16a3ff[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3a9f9e+=_0x16a3ff[_0xb76105];}return _0x3a9f9e;}function _0x224311(){const _0x10a32f=_0x262768[_0x1af073([0x73,0x70,0x6c,0x69,0x74])](_0x1af073([0x2e]));if(0x3!=_0x10a32f[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x274853(_0x10a32f[0x1]);function _0x274853(_0x5d3790){const _0xa5edcb=_0x4b4fb4(_0x5d3790);return _0xa5edcb&&_0x423dfd()?_0xa5edcb:null;function _0x423dfd(){const _0x4bf577=_0xa5edcb[_0x1af073([0x6a,0x74,0x69])],_0x1b16a1=window[_0x1af073([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4bf577[_0x1af073([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bf577[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x138c89={..._0xa5edcb,[_0x1af073([0x6a,0x74,0x69])]:_0x4bf577[_0x1af073([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4bf577[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x138c89[_0x1af073([0x76,0x63])],_0x3d5bd1(_0x138c89)==_0x1b16a1;}}}async function _0x4697ab(){let _0xb04e59=!0x0;try{const _0x5168f6=_0x262768[_0x1af073([0x73,0x70,0x6c,0x69,0x74])](_0x1af073([0x2e])),[_0x66ead8,_0x5aa417,_0x1cf7fa]=_0x5168f6;return _0x369256(_0x66ead8),await _0x296d1f(_0x66ead8,_0x5aa417,_0x1cf7fa),_0xb04e59;}catch{return!0x1;}function _0x369256(_0x551309){const _0x2a5f18=_0x4b4fb4(_0x551309);_0x2a5f18&&_0x2a5f18[_0x1af073([0x61,0x6c,0x67])]==_0x1af073([0x45,0x53,0x32,0x35,0x36])||(_0xb04e59=!0x1);}async function _0x296d1f(_0x5237ee,_0x1b9977,_0x3b9d5c){const _0x546fe5=window[_0x1af073([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1af073([0x66,0x72,0x6f,0x6d])](_0x71fa43(_0x3b9d5c),_0x3f5cc0=>_0x3f5cc0[_0x1af073([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x49b69e=new window[(_0x1af073([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1af073([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5237ee+_0x1af073([0x2e])+_0x1b9977),_0x21f751=window[_0x1af073([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1af073([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x21f751)return;const _0x24fcbc=await _0x21f751[_0x1af073([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1af073([0x6a,0x77,0x6b]),_0x2dab3b,{[_0x1af073([0x6e,0x61,0x6d,0x65])]:_0x1af073([0x45,0x43,0x44,0x53,0x41]),[_0x1af073([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1af073([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1af073([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x21f751[_0x1af073([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1af073([0x6e,0x61,0x6d,0x65])]:_0x1af073([0x45,0x43,0x44,0x53,0x41]),[_0x1af073([0x68,0x61,0x73,0x68])]:{[_0x1af073([0x6e,0x61,0x6d,0x65])]:_0x1af073([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24fcbc,_0x546fe5,_0x49b69e)||(_0xb04e59=!0x1);}}function _0x4b4fb4(_0x2f51c3){return _0x2f51c3[_0x1af073([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1af073([0x65,0x79]))?JSON[_0x1af073([0x70,0x61,0x72,0x73,0x65])](_0x71fa43(_0x2f51c3)):null;}function _0x71fa43(_0x1944d3){return window[_0x1af073([0x61,0x74,0x6f,0x62])](_0x1944d3[_0x1af073([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1af073([0x2b]))[_0x1af073([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1af073([0x2f])));}function _0x3d5bd1(_0x6e2e14){let _0x1424f0=0x1505;function _0x5ebec7(_0x3dc2c7){for(let _0x1f09dc=0x0;_0x1f09dc<_0x3dc2c7[_0x1af073([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f09dc++){const _0x3024ae=_0x3dc2c7[_0x1af073([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f09dc);_0x1424f0=(_0x1424f0<<0x5)+_0x1424f0+_0x3024ae,_0x1424f0&=_0x1424f0;}}function _0x14e172(_0x838dc6){Array[_0x1af073([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x838dc6)?_0x838dc6[_0x1af073([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x14e172):_0x838dc6&&typeof _0x838dc6==_0x1af073([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1af073([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x838dc6)[_0x1af073([0x73,0x6f,0x72,0x74])]()[_0x1af073([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3861a9,_0x449306])=>{_0x5ebec7(_0x3861a9),_0x14e172(_0x449306);}):_0x5ebec7(window[_0x1af073([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x838dc6));}return _0x14e172(_0x6e2e14),_0x1424f0>>>0x0;}function _0x207b54(_0x49942e){return _0x49942e[_0x1af073([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1af073([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1af073([0x30]));}function _0x1bcff0(_0x2f5621){return _0x2f5621[_0x1af073([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1af073([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1af073([0x6a,0x6f,0x69,0x6e])]('');}function _0x25cf63(){}function _0x1af073(_0x1d2235){return _0x1d2235['map'](_0x4e78f2=>String['fromCharCode'](_0x4e78f2))['join']('');}_0x1ada36(await _0x47d2bb());}(this);}['_moveSelectionToFootnoteDefinition'](_0x12e033){const {plugins:_0x9c6374,editing:_0x17f635,model:_0x225483}=this['editor'],_0x4f946d=_0x9c6374['get'](_0x3d7d08)['getFootnote'](_0x12e033);return!!_0x4f946d&&(_0x225483['change'](_0x3bd444=>{_0x3bd444['setSelection'](_0x3bd444['createPositionAt'](_0x4f946d['definition'],'end'));}),_0x17f635['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x29551f){const {plugins:_0x10997a,editing:_0x50568c,model:_0x1833f3}=this['editor'],_0x5043b2=_0x10997a['get'](_0x3d7d08)['getFootnote'](_0x29551f);return!!_0x5043b2&&(_0x1833f3['change'](_0x33def3=>{_0x33def3['setSelection'](_0x5043b2['reference'],'on');}),_0x50568c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2b15fb}=this['editor']['model'],_0x17c0e3=this['editor']['config']['get']('footnotes.multiBlock');_0x2b15fb['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2b15fb['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2b15fb['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x17c0e3?_0x2b15fb['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2b15fb['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2b15fb['addChildCheck'](_0x5f577b=>{for(const _0x4b9e7b of _0x5f577b)if('footnoteDefinition'===_0x4b9e7b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x45766f}=this,{conversion:_0x1f1b46,editing:_0x5ed37f}=_0x45766f,{t:t}=_0x45766f['locale'];_0x1f1b46['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x16ba13,{writer:_0xf17d52,consumable:_0x2c7c04})=>{const _0x1f4ad6=_0x16ba13['getChild'](0x0);if(!_0x1f4ad6||!_0x1f4ad6['is']('element','a'))return null;const _0x2f7a18=_0x1f4ad6['getAttribute']('href')||'';if(!_0x2f7a18['startsWith']('#'))return null;const _0x53471b=_0x2f7a18['replace'](/^#/,'');if(!_0x53471b)return null;_0x2c7c04['consume'](_0x1f4ad6,{'name':!0x0,'attributes':['href']});for(const {item:_0x539092}of _0x5ed37f['view']['createRangeIn'](_0x1f4ad6))_0x539092['is']('$textProxy')?_0x2c7c04['consume'](_0x539092['textNode'],{'name':!0x0}):_0x539092['is']('element')&&_0x2c7c04['consume'](_0x539092,{'name':!0x0});return _0xf17d52['createElement']('footnoteRef',{'footnoteId':_0x53471b});}}),_0x1f1b46['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2cb305,{writer:_0x176923})=>b(_0x2cb305,_0x176923)}),_0x1f1b46['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x3b06d4,{writer:_0xdcfe1})=>{const _0x284423=_0x3b06d4['getAttribute']('footnoteCounter');return _0x4e8cd4(b(_0x3b06d4,_0xdcfe1),_0xdcfe1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x284423)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1bc206}=this,{t:t}=_0x1bc206['locale'],{conversion:_0x5b0849}=_0x1bc206;_0x5b0849['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5b0849['for']('upcast')['add'](_0x489974=>{_0x489974['on']('element:ol',(_0x847ba1,_0x160a83,_0x28081f)=>{const _0x4d7c52=_0x160a83['viewItem'];if(!_0x4d7c52['hasClass']('footnotes-list')||!_0x160a83['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x28081f['consumable']['consume'](_0x4d7c52,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3423ba,modelCursor:_0x18f819}=_0x28081f['convertChildren'](_0x160a83['viewItem'],_0x160a83['modelCursor']);_0x160a83['modelRange']=_0x3423ba,_0x160a83['modelCursor']=_0x18f819;}),_0x489974['on']('element:hr',(_0x38408e,_0x24b2cd,_0xc96df6)=>{const _0x1e7c5a=_0x24b2cd['viewItem'];_0x1e7c5a['hasClass']('footnotes-divider')&&_0x24b2cd['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xc96df6['consumable']['consume'](_0x1e7c5a,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5b0849['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3c6780,{writer:_0x555418})=>D(_0x555418)}),_0x5b0849['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e7b16,{writer:_0x1822a0})=>{const _0x1a8792=D(_0x1822a0,{'data-footnotes-list-label':t('Footnotes')}),_0x12cb5b=_0x4e8cd4(_0x1a8792,_0x1822a0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1822a0['setCustomProperty']('footnotesDefinitions',!0x0,_0x12cb5b),_0x12cb5b;}});}['_defineDefinitionConverters'](){const {editor:_0x47a7ff}=this,{conversion:_0x3124a4,locale:_0x29f592}=_0x47a7ff,_0x5edece=_0x47a7ff['config']['get']('footnotes.multiBlock');_0x3124a4['for']('upcast')['add'](_0x31726c=>{_0x31726c['on']('element:li',(_0x4516da,_0x24b576,_0x193bb3)=>{const _0x33e24a=_0x24b576['viewItem'];if(!_0x33e24a['hasClass']('footnote-definition')||!_0x33e24a['getAttribute']('id'))return;const _0x55762f=_0x33e24a['parent'];if(!_0x55762f['is']('element','ol')||!_0x55762f['hasClass']('footnotes-list'))return;if(!_0x193bb3['consumable']['test'](_0x33e24a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4b4376=_0x193bb3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x33e24a['getAttribute']('id')});if(!_0x193bb3['safeInsert'](_0x4b4376,_0x24b576['modelCursor']))return;_0x193bb3['consumable']['consume'](_0x33e24a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x77dc38=Array['from'](_0x33e24a['getChildren']())['find'](_0x44dcda=>_0x44dcda['is']('element')&&_0x44dcda['hasClass']('footnote-content'));for(const _0x2d16c0 of _0x33e24a['getChildren']())_0x2d16c0['is']('element')&&(_0x193bb3['consumable']['consume'](_0x2d16c0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x193bb3['consumable']['consume'](_0x2d16c0,{'name':!0x0,'classes':'footnote-content'}));if(_0x77dc38){if(_0x5edece)_0x193bb3['convertChildren'](_0x77dc38,_0x4b4376);else{const _0xeedd0e=_0x193bb3['writer']['createElement']('footnoteInlineContent');_0x193bb3['writer']['insert'](_0xeedd0e,_0x4b4376),_0x193bb3['convertChildren'](_0x77dc38,_0xeedd0e);}}_0x193bb3['updateConversionResult'](_0x4b4376,_0x24b576);});}),_0x3124a4['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xeb9d16,{writer:_0x5c627e})=>y(_0xeb9d16,_0x5c627e,_0x29f592,{'dataPipeline':!0x0})}),_0x3124a4['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x35e911,{writer:_0x3e7b68})=>y(_0x35e911,_0x3e7b68,_0x29f592)});}['_defineBogusParagraphConverters'](){const {editor:_0x3630c8}=this,{conversion:_0x1d2086}=_0x3630c8;_0x3630c8['config']['get']('footnotes.multiBlock')?(_0x1d2086['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1d2086['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3630c8['model']['document'],'change:data',()=>{!function(_0x3a3a16,_0x2cd957){const _0x21ef84=_0x3a3a16['document']['differ'],_0x5cf9e6=new Set();for(const _0xeb8a23 of _0x21ef84['getChanges']()){const _0x568816='attribute'==_0xeb8a23['type']?_0xeb8a23['range']['start']['parent']:_0xeb8a23['position']['parent'];_0x568816['is']('element','footnoteDefinition')&&_0x5cf9e6['add'](_0x568816);}for(const _0x3a3b08 of _0x5cf9e6['values']()){const _0x6a90d2=Array['from'](_0x3a3b08['getChildren']())['filter'](_0x5d1959=>v(_0x5d1959,_0x2cd957['mapper']));for(const _0x2f6c00 of _0x6a90d2)_0x2cd957['reconvertItem'](_0x2f6c00);}}(_0x3630c8['model'],_0x3630c8['editing']);})):(_0x1d2086['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1d2086['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3675cf,{writer:_0x5b9fd8})=>{const _0x44b0b5=_0x5b9fd8['createContainerElement']('span');return _0x5b9fd8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x44b0b5),_0x44b0b5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x448748}=this,{editing:_0x3eb3d1,t:t}=_0x448748,_0x3b1621=_0x448748['model']['document']['selection'];_0x448748['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x448748['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3eb3d1['view']['document'],'enter',(_0xaebf2,_0x204bde)=>{const _0x494510=function(_0x28c8bf){const _0x2848e3=_0x28c8bf['getSelectedElement']();if(_0x2848e3?.['is']('element','footnoteRef'))return _0x2848e3;return null;}(_0x3b1621);if(_0x494510){const _0x8a6b85=_0x494510['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x8a6b85),_0x204bde['preventDefault'](),_0xaebf2['stop']();}},{'context':_0x9a9ff2});}['_defineClickHandlers'](){const {editor:_0x4baa4f}=this,{editing:_0x342f07}=_0x4baa4f;_0x4baa4f['editing']['view']['addObserver'](_0x59f128),_0x4baa4f['editing']['view']['addObserver'](_0x1d3d8b);let _0x5d3e6a=!0x1;this['listenTo'](_0x342f07['view']['document'],'pointerdown',(_0x4f439b,_0x1e0c12)=>{const {target:_0x5a4401}=_0x1e0c12,_0x328817=_0x342f07['view']['document']['selection'];_0x5d3e6a=!!(_0x5a4401?.['is']('element','a')&&_0x5a4401['parent']?.['is']('element','sup')&&_0x5a4401['parent']['hasClass']('footnote'))&&_0x328817['getSelectedElement']()===_0x5a4401['parent'];},{'priority':'high'}),this['listenTo'](_0x342f07['view']['document'],'click',(_0x1ba9f3,_0x14714e)=>{const {target:_0x140f1d}=_0x14714e;if(!_0x140f1d?.['is']('element','a'))return;if(_0x140f1d['parent']?.['is']('element','sup')&&_0x140f1d['parent']['hasClass']('footnote')&&!_0x5d3e6a)return void _0x14714e['preventDefault']();let _0x2cac92=_0x140f1d['getAttribute']('href');if(!_0x2cac92?.['startsWith']('#'))return;_0x2cac92=_0x2cac92['slice'](0x1);let _0x936d33=!0x1;(_0x2cac92['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2cac92['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2cac92))&&(_0x936d33=!0x0),_0x936d33&&(_0x14714e['preventDefault'](),_0x1ba9f3['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x22e96c}={}){return(_0x450449,{writer:_0x2157f6})=>{if(!g(_0x450449))return null;if(!_0x22e96c)return _0x2157f6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x473ccc=_0x2157f6['createContainerElement']('p');return _0x2157f6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x473ccc),_0x473ccc;};}function g(_0x23a7f1){const {parent:_0x3e2335}=_0x23a7f1;if(!_0x3e2335?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3e2335['childCount'])return!0x1;for(const _0x12175b of _0x23a7f1['getAttributeKeys']())if(!_0x12175b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x12175b)return!0x1;return!0x0;}function v(_0x4f2f87,_0x38edbf){if(!_0x4f2f87['is']('element','paragraph'))return!0x1;const _0x2b9588=_0x38edbf['toViewElement'](_0x4f2f87);return!!_0x2b9588&&g(_0x4f2f87)!==_0x2b9588['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x50de29){return _0x9a9ff2(_0x50de29)&&_0x50de29['is']('containerElement')&&!!_0x50de29['getCustomProperty']('footnotesDefinitions');}function D(_0x52b46c,_0x16ce59={}){const _0x4d9fd8=_0x52b46c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x225eee=_0x52b46c['createContainerElement']('ol',{'class':'footnotes-list'},_0x52b46c['createSlot']());return _0x52b46c['createContainerElement']('div',{'class':'footnotes',..._0x16ce59},[_0x4d9fd8,_0x225eee]);}function b(_0x3bd8d3,_0x2e1a99){const _0x2d285e=_0x3bd8d3['getAttribute']('footnoteId'),_0x2655c7=_0x3bd8d3['getAttribute']('footnoteCounter'),_0x4c895a=_0x2e1a99['createUIElement']('a',{'href':'#'+_0x2d285e},function(_0x3d09ba){const _0x205878=this['toDomElement'](_0x3d09ba);return _0x205878['textContent']=_0x2655c7,_0x205878;}),_0x187701=_0x2e1a99['createContainerElement']('sup',{'id':'ref-'+_0x2d285e,'class':'footnote'},[_0x4c895a]);return _0x187701['getFillerOffset']=()=>null,_0x187701;}function y(_0x831e8b,_0x18f4cb,_0x487129,{dataPipeline:_0x374f6f}={}){const {t:t}=_0x487129,_0x4d6606=_0x831e8b['getAttribute']('footnoteId'),_0x20a56e=_0x18f4cb['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4d6606},function(_0x26c011){const _0xbe385c=this['toDomElement'](_0x26c011);return _0xbe385c['innerText']='^',_0xbe385c;}),_0x1f9a92=_0x374f6f?_0x18f4cb['createContainerElement']('div',{'class':'footnote-content'}):_0x1e1055(_0x18f4cb['createEditableElement']('div',{'class':'footnote-content'}),_0x18f4cb,{'label':t('Footnote\x20content.')});return _0x18f4cb['insert'](_0x18f4cb['createPositionAt'](_0x1f9a92,0x0),_0x18f4cb['createSlot']()),_0x18f4cb['createContainerElement']('li',{'class':'footnote-definition','id':_0x4d6606},[_0x20a56e,_0x1f9a92]);}