@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251204.0 → 0.0.0-nightly-20251205.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["nodeAfter","_model","element","push","7VzOgjY","1148408kHyYRU","type","delete","clear","values","_elementName","_trackedElements","root","remove","getItems","rootName","6215658GaYfqT","81Bbxxyo","$graveyard","12zYygBB","length","has","_getElementKey","set","getElementKey","getChanges","from","position","get","15RQAjbw","136926ZiQTuc","attributes","$text","createRangeOn","478304zXcZlo","653956dfuSqG","name","add","elementName","flat","14096830LQoHiD","insert","slice","reset","42698403VTWBfS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=352]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(713168===parseInt(e(352))/1+parseInt(e(392))/2*(parseInt(e(381))/3)+parseInt(e(396))/4*(-parseInt(e(391))/5)+parseInt(e(378))/6*(-parseInt(e(366))/7)+parseInt(e(367))/8*(-parseInt(e(379))/9)+-parseInt(e(357))/10+parseInt(e(361))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(363)];[a(372)];[a(384)];[a(373)]=new Map;constructor(t,e){const o=a;this[o(363)]=t,this[o(372)]=e[o(355)],this[o(384)]=e[o(386)]}[a(360)](){const t=a;this[t(373)][t(370)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(358)===i[e(368)]&&e(394)!==i[e(353)]&&i[e(389)][e(362)]){const t=this[e(363)][e(395)](i[e(389)][e(362)]);for(const o of t[e(376)]()){if(!o.is(e(364),this[e(372)]))continue;const t=this[e(384)](o);n[e(383)](t)||n[e(385)](t,[]),n[e(390)](t)[e(365)](o)}}if(e(375)===i[e(368)]&&i[e(353)]===this[e(372)]){const t=this[e(384)]({getAttribute:t=>i[e(393)][e(390)](t)});o[e(354)](t)}}for(const[t,n]of this[e(373)])e(380)===n[e(374)][e(377)]&&o[e(354)](t);for(const t of o)this[e(373)][e(369)](t);for(const[t,o]of n)this[e(373)][e(385)](t,o[o[e(382)]-1]);const i=new Set;for(const[t,s]of n)o[e(383)](t)&&(i[e(354)](s[0]),s[e(382)]>1?n[e(385)](t,s[e(359)](1)):n[e(369)](t),o[e(369)](t));return{removed:Array[e(388)](o),inserted:Array[e(388)](n[e(371)]())[e(356)](),moved:Array[e(388)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=378]})(t,e)}function d(){const t=["_updateFootnotesCounters","enqueueChange","splice","get","model","min","_ensureFootnotesReferencesHaveProperOrder","move","childCount","change:data","setFootnoteFormatter","isPremiumPlugin","footnoteInlineContent","remove","end","add","isOfficialPlugin","_footnoteRefsTracker","_footnotesDefinitions","getChanges","low","_footnoteDefsTracker","_handleFootnoteDefinitionsChanges","376368xaGwMR","compareWith","createRangeOn","_updateFootnoteRefCounter","unshift","_footnotes","_handleFootnotesDefinitionsObjectSync","set","getChildren","$graveyard","273510AVrheI","document","footnotes.multiBlock","push","reset","definition","_handleFootnoteReferencesChanges","createElement","parent","before","differ","815400ZsHGhz","after","getFootnotes","high","getFootnotesDefinitionsObjectElement","createPositionAt","_handleInsertedFootnoteReference","footnoteId","_ensureFootnotesDefinitionsContainerExists","getFootnote","_footnoteFormatter","footnoteRef","1931258ZUdIhW","_handleRemoveFootnoteReferenceById","append","singleton","24zFcthq","config","footnotesDefinitions","FootnotesTracker","map","from","isEqual","insert","createPositionBefore","_footnoteDefsContainerTracker","300027ZPzLxp","_handleMovedFootnoteReference","8fAPUKk","setAttribute","editor","getFootnotesFormatter","_handleFootnotesDefinitionsObjectChanges","193985ycmBbl","createRangeIn","getAttribute","root","paragraph","reference","getRootNames","length","registerPostFixer","rootName","init","some","_sortFootnoteDefinitions","_insertEmptyFootnotesDefinitionsContainer","1115172zkRJbD","pluginName","footnoteDefinition","has","indexOf","footnoteCounter","listenTo","findIndex","find"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(449104===parseInt(e(437))/1+parseInt(e(383))/2+-parseInt(e(430))/3+-parseInt(e(404))/4+parseInt(e(393))/5*(parseInt(e(420))/6)+-parseInt(e(416))/7*(-parseInt(e(432))/8)+-parseInt(e(451))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(388)]=[];[f(378)]=null;[f(414)]=null;[f(429)];[f(477)];[f(381)];static get[f(452)](){return f(423)}static get[f(476)](){return!0}static get[f(471)](){return!0}constructor(t){const e=f;super(t),this[e(429)]=new l(this[e(434)][e(464)],{elementName:e(422),getElementKey:()=>e(419)}),this[e(477)]=new l(this[e(434)][e(464)],{elementName:e(415),getElementKey:t=>t[e(439)](e(411))}),this[e(381)]=new l(this[e(434)][e(464)],{elementName:e(453),getElementKey:t=>t[e(439)](e(411))})}[f(447)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(394)][t(445)](e=>{const n=t,i=o[n(394)][n(403)][n(379)]();let s=!1;return this[n(436)](e,i)&&(s=!0),this[n(382)](e,i)&&(s=!0),this[n(399)](e,i)&&(s=!0),this[n(466)](e)&&(s=!0),this[n(389)](e)&&(s=!0),this[n(449)](e)&&(s=!0),s}),this[t(457)](o[t(394)],t(469),()=>{const e=t;o[e(461)]({isUndoable:!1},t=>{this[e(412)](t)})},{priority:t(380)}),this[t(457)](n,t(390),()=>{const e=t;this[e(388)]=[],this[e(429)][e(397)](),this[e(477)][e(397)](),this[e(381)][e(397)]()},{priority:t(407)})}[f(408)](){return this[f(378)]}[f(413)](t){const e=f;return this[e(388)][e(459)](e=>e.id===t)||null}[f(406)](){const t=f;return Array[t(425)](this[t(388)])}[f(435)](){return this[f(414)]}[f(470)](t){this[f(414)]=t}[f(460)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(388)][o(444)];i++)this[o(386)](t,i)&&(n=!0);return n}[f(450)](t,e){const o=f,n=t[o(400)](o(422),{});return t[o(418)](n,e),this[o(378)]=n,n}[f(412)](t){const e=f;if(!this[e(388)][e(444)]||this[e(378)])return;const o=this[e(388)][0][e(442)][e(440)],n=this[e(450)](t,o);for(const o of this[e(388)])o[e(398)][e(401)]||t[e(427)](o[e(398)],n,e(474));this[e(460)](t)}[f(436)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(429)][o(379)](e);if(r[o(444)]&&(this[o(378)]=r[0]),i[o(444)])if(i[o(444)]>1||this[o(378)]&&i[o(448)](t=>t!==this[o(378)])){const e=t[o(400)](o(422),{}),s=[];this[o(378)]&&s[o(396)](this[o(378)]),s[o(396)](...i),t[o(427)](e,s[0],o(402));for(const n of s)t[o(467)](t[o(438)](n),t[o(409)](e,o(474))),t[o(473)](n);this[o(378)]=e,this[o(460)](t),n=!0}else this[o(378)]=i[0];if(s[o(444)]&&o(392)===this[o(378)]?.[o(440)][o(446)]){for(const e of this[o(388)])t[o(473)](e[o(442)]),n=!0;this[o(388)]=[],this[o(378)]=null}return n}[f(382)](t,e){const o=f;let n=!1;const i=this[o(434)][o(421)][o(463)](o(395)),{inserted:s,moved:r}=this[o(381)][o(379)](e);for(const e of[...r,...s]){const s=e[o(439)](o(411)),r=this[o(413)](s);r&&(r[o(398)]=e),p(t,i,e)&&(n=!0)}return n}[f(399)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(477)][o(379)](e);for(const e of i)this[o(417)](t,e)&&(n=!0);for(const e of s)this[o(410)](t,e)&&(n=!0);for(const e of r)this[o(431)](t,e)&&(n=!0);return n}[f(389)](t){const e=f;if(!this[e(378)])return!1;let o=!1;if(this[e(378)][e(468)]!==this[e(388)][e(444)]){const n=[];for(const t of this[e(378)][e(391)]()){const i=t[e(439)](e(411));this[e(413)](i)||(n[e(387)](t),o=!0)}for(const o of n)t[e(473)](o)}const n=new Set,i=[];for(const t of this[e(378)][e(391)]()){const s=t[e(439)](e(411));n[e(454)](s)?(i[e(387)](t),o=!0):n[e(475)](s)}for(const o of i)t[e(473)](o);return this[e(378)][e(468)]||(t[e(473)](this[e(378)]),this[e(378)]=null,o=!0),o}[f(410)](t,e){const o=f;if(this[o(388)][o(459)](t=>t[o(442)]===e))return!1;let n=!1;const i=e[o(439)](o(411)),s=this[o(388)][o(458)](t=>t.id===i);-1!==s&&(t[o(473)](this[o(388)][s][o(442)]),this[o(388)][o(462)](s,1),n=!0);let r=this[o(378)]?function(t,e){const n=o;for(const o of t[n(391)]())if(o[n(439)](n(411))===e)return o;return null}(this[o(378)],i):null;r||(r=t[o(400)](o(453),{footnoteId:i}),this[o(378)]&&(t[o(427)](r,this[o(378)],o(474)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(434)][o(464)],this[o(388)],e);this[o(388)][o(462)](c,0,a);let l=c;return-1!==s&&(l=Math[o(465)](c,s)),this[o(460)](t,l)&&(n=!0),n}[f(417)](t,e){const o=f,n=this[o(388)][o(458)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(388)][n];return o(392)!==s[o(398)][o(440)][o(446)]&&(t[o(473)](s[o(398)]),i=!0),this[o(388)][o(462)](n,1),this[o(460)](t,n)&&(i=!0),i}[f(431)](t,e){const o=f,n=e[o(439)](o(411)),i=this[o(388)][o(458)](t=>t.id===n),s=this[o(388)][i];let r=!1;s[o(442)]=e,this[o(388)][o(462)](i,1);const a=m(this[o(434)][o(464)],this[o(388)],e);return this[o(388)][o(462)](a,0,s),this[o(460)](t,Math[o(465)](i,a))&&(r=!0),r}[f(386)](t,e){const o=f;if(!this[o(378)])return!1;const n=this[o(388)][e];let i;return i=this[o(414)]?this[o(414)]({footnote:n,container:this[o(378)],digits:String(this[o(388)][o(444)])[o(444)],value:e+1}):String(e+1),n[o(442)][o(439)](o(456))!=i&&(t[o(433)](o(456),i,n[o(442)]),!0)}[f(449)](t){const e=f;if(!this[e(378)]||this[e(388)][e(444)]<2)return!1;if(function(t,o){const n=e;if(t[n(444)]!==o[n(444)])return!1;for(let e=0;e<t[n(444)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(388)][e(424)](t=>t.id),Array[e(425)](this[e(378)][e(391)]())[e(424)](t=>t[e(439)](e(411)))))return!1;let o=!1;for(let n=0;n<this[e(388)][e(444)];n++){const i=this[e(388)][n],s=t[e(428)](i[e(398)]),r=t[e(409)](this[e(378)],n);s[e(426)](r)||(t[e(467)](t[e(385)](i[e(398)]),r),o=!0)}return o}[f(466)](t){const e=f;if(!this[e(388)][e(444)])return!1;const{model:o}=this[e(434)];let n=!1;for(let i=0;i<this[e(388)][e(444)]-1;i++){const s=this[e(388)][i],r=this[e(388)][i+1],a=o[e(428)](s[e(442)]),c=o[e(428)](r[e(442)]);e(405)===a[e(384)](c)&&(this[e(431)](t,s[e(442)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(468)])return!1;const i=n(e?441:472);return t[n(427)](t[n(400)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(444)])return 0;const i=t[n(428)](o);for(let o=0;o<e[n(444)];o++){const s=e[o],r=t[n(428)](s[n(442)]);if(n(402)===i[n(384)](r))return o}const s=o[n(440)];let r=-1;for(let t=e[n(444)]-1;t>=0;t--)if(e[t][n(442)][n(440)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(394)][n(443)](),c=a[n(455)](s[n(446)]),l=a[c+1];if(l)for(let t=0;t<e[n(444)];t++)if(e[t][n(442)][n(440)][n(446)]===l)return t;return e[n(444)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=412]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","footnoteId","49GnmOrT","insertObject","insert-footnote-command-executed-with-invalid-id","checkChild","model","getFirstRange","editor","string","document","change","37800vUbpNP","length","_moveSelectionToFootnoteDefinition","plugins","refresh","isObject","5853555QklSpI","FootnotesEditing","1228088NvfwaA","isEnabled","529333ZGRHfA","footnoteRef","4499joGpdL","execute","56IUdHST","921040IcMlPH","createElement","end","getItems","6ooTCkv","33718ZTsAQu","selection","test","6198zJTPsh","isBlock","get","3965vRSRcK"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(470300===-parseInt(e(439))/1*(parseInt(e(430))/2)+-parseInt(e(429))/3*(-parseInt(e(418))/4)+-parseInt(e(436))/5*(parseInt(e(433))/6)+parseInt(e(420))/7*(-parseInt(e(424))/8)+parseInt(e(416))/9+parseInt(e(425))/10+parseInt(e(422))/11*(parseInt(e(449))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(414)](){const t=g,e=this[t(445)][t(443)][t(447)][t(431)],o=this[t(437)](e);this[t(419)]=!!o}[g(423)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(447)],r=this[e(437)](s);if(!r)return;const a=o[e(413)][e(435)](e(417)),c=t?.[e(438)]??(0,i.uid)();!function(t){const o=e;return o(446)==typeof t&&t[o(450)]>0&&!/\s/[o(432)](t)&&!/^\d/[o(432)](t)}(c)?(0,i.logWarning)(e(441)):(n[e(448)](t=>{const o=e,i=t[o(426)](o(421),{footnoteId:c});n[o(440)](i,r,null)}),a[e(412)](c))}[g(437)](t){const e=g,{model:o}=this[e(445)],{schema:n}=o,i=t[e(444)]();for(const t of i[e(428)]())if(n[e(434)](t)||n[e(415)](t))return null;const s=i[e(427)];return n[e(442)](s,e(421))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764806400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=A;function A(t,e){const o=L();return(A=function(t,e){return o[t-=128]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(490476===-parseInt(e(136))/1+-parseInt(e(162))/2*(parseInt(e(131))/3)+-parseInt(e(165))/4+parseInt(e(160))/5+parseInt(e(161))/6+-parseInt(e(163))/7*(-parseInt(e(200))/8)+-parseInt(e(180))/9*(parseInt(e(175))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(L);class _ extends t.Plugin{static get[T(141)](){return T(185)}static get[T(177)](){return[v,P.ClipboardPipeline]}static get[T(167)](){return!0}static get[T(181)](){return!0}[T(135)](){this[T(143)]()}[T(143)](){const t=T;this[t(171)](),this[t(140)]()}[T(171)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(133)](P.ClipboardPipeline),s=o[t(133)](h);this[t(148)](i,t(147),(o,i)=>{const r=t,a=D(n[r(137)](i[r(158)]));if(!a[r(155)])return;const c=s[r(168)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(196)](t=>t.id===o);if(i){const o=e[n(144)][n(186)](i[n(195)],{isClipboardPipeline:!0}),s=e[n(144)][n(203)][n(164)](o);t[i.id]=s}return t},Object[r(187)](null));i[r(205)][r(169)](r(152),JSON[r(173)](l))})}[T(140)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(194)],r=n[t(133)](P.ClipboardPipeline),a=n[t(133)](h),c=e[t(142)][t(133)](t(157));let l=null;this[t(148)](s[t(178)],t(150),(e,o)=>{const n=t,i=o[n(205)][n(192)](n(152));l=i?JSON[n(153)](i):null}),this[t(148)](r,t(146),(n,s)=>{const r=t,f=s[r(189)]===this[r(204)].id;f&&r(156)===s[r(138)]||o[r(145)](t=>{const n=r;let u=a[n(182)]();const d=!!u&&Array[n(179)](o[n(178)][n(190)][n(129)]())[n(174)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(137)](e))n.is(o(166),o(198))&&i[o(188)](n);for(const e of i)t[o(199)](e)}(t,s[n(158)]),!l)return;const{selection:h}=o[n(178)],p=h[n(197)]()[n(130)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(137)](e))if(n.is(o(166),o(198)))return n;return null}(t,s[n(158)]),u||=a[n(191)](t,p));const m=Array[n(179)](h[n(151)]())[n(170)](D),g=function(t,e,o){const s=n,r=Object[s(187)](null);for(const{item:n}of t[s(137)](e))if(n.is(s(166),s(154))){const e=n[s(128)](s(176));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(159)](s(176),r[e],n)}return r}(t,s[n(158)],t=>{const e=n;return!f||!!a[e(132)](t)&&!m[e(174)](t)});for(const[o,i]of Object[n(134)](l)){const s=g[o]||o,r=t[n(193)](n(206),{footnoteId:s}),a=e[n(144)][n(203)][n(186)](i);let l;if(c)l=e[n(144)][n(139)](a,r);else{l=t[n(193)](n(202));const o=e[n(144)][n(139)](a,l);t[n(149)](o,l)}t[n(172)](l,r),t[n(149)](r,u,n(183))}l=null})})}}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(166),e(154))&&o[e(201)](n[e(128)](e(176)));return Array[e(179)](o)}function L(){const t=["htmlProcessor","editor","dataTransfer","footnoteDefinition","getAttribute","getSelectedBlocks","root","36969PxvGMG","getFootnote","get","entries","init","957794hYSnhP","createRangeIn","method","toModel","_handlePasteFootnotesDefinitions","pluginName","config","_defineClipboardIntegration","data","change","contentInsertion","outputTransformation","listenTo","insert","clipboardInput","getRanges","application/ckeditor5-footnotes","parse","footnoteRef","length","drop","footnotes.multiBlock","content","setAttribute","4896740ScGAXE","5119512OLGOal","82dSADsY","14VRFkma","toData","125256suFFUD","element","isOfficialPlugin","getFootnotes","setData","flatMap","_handleCopyFootnotesDefinitions","append","stringify","includes","70xCeEOQ","footnoteId","requires","document","from","1006569pasxHx","isPremiumPlugin","getFootnotesDefinitionsObjectElement","end","reduce","FootnotesClipboard","toView","create","push","sourceEditorId","selection","_insertEmptyFootnotesDefinitionsContainer","getData","createElement","editing","definition","find","getFirstRange","footnotesDefinitions","remove","3740456hTSnFb","add","footnoteInlineContent"];return(L=function(){return t})()}var R=o(311),V=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),U=o(123),z=o.n(U),H=o(741),W=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=W();O()(q.A,G);q.A&&q.A.locals&&q.A.locals;class X 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,R.ButtonView)),e.add("menuBar:insertFootnote",Z(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(){var t=["isOfficialPlugin","10IlCjdw","pluginName","6whKXVL","1006040wolHlV","4759876ROBHio","isPremiumPlugin","9WQXlRD","requires","3360378nLBulU","1396664kCPRAF","6GRsgPZ","Footnotes","325792fKsvJZ","529830fRBoRf","2865845xgjqgn"];return(Q=function(){return t})()}var J=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=131]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(610484===-parseInt(e(132))/1+-parseInt(e(131))/2*(-parseInt(e(145))/3)+parseInt(e(144))/4+-parseInt(e(133))/5*(parseInt(e(137))/6)+parseInt(e(143))/7+parseInt(e(138))/8*(parseInt(e(141))/9)+-parseInt(e(135))/10*(-parseInt(e(139))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[J(136)](){return J(146)}static get[J(142)](){return[v,_,X]}static get[J(134)](){return!0}static get[J(140)](){return!0}}const tt=ot;!function(t){const e=ot,o=t();for(;;)try{if(446983===-parseInt(e(144))/1+parseInt(e(141))/2*(-parseInt(e(148))/3)+-parseInt(e(154))/4+-parseInt(e(138))/5*(-parseInt(e(147))/6)+parseInt(e(140))/7*(parseInt(e(142))/8)+-parseInt(e(137))/9+parseInt(e(139))/10*(parseInt(e(155))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const et=[tt(153),tt(143),tt(152),tt(146),tt(151),tt(149),tt(150),tt(145)];function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=137]})(t,e)}function nt(){const t=["upper-latin","6zcfKNg","162129gGhewY","upper-alpha","lower-roman","lower-alpha","lower-latin","decimal","716040oKiEST","11ctwHNL","398655glnZXV","475890NDVjJc","3075040MklXFl","7EMEECU","6cfMrIC","5027448KPxEHL","decimal-leading-zero","198696zFUqMP","upper-roman"];return(nt=function(){return t})()}function it(){const t=["plugins","266464xxlQCr","value","execute","get","1569115RtJbng","558ICXvtH","412116yatSix","refresh","model","getFootnotesDefinitionsObjectElement","footnotesListStyle","58648CPwvdY","includes","2069424tJlhqO","218212NqsXVv","12UWZwjN","change","isEnabled","_updateFootnotesCounters","308946nSxWcX","setAttribute","getAttribute"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=it();return(rt=function(t,e){return o[t-=428]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(223694===parseInt(e(429))/1+parseInt(e(446))/2+-parseInt(e(438))/3*(parseInt(e(437))/4)+-parseInt(e(450))/5+parseInt(e(442))/6+-parseInt(e(436))/7+parseInt(e(434))/8*(parseInt(e(428))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class at extends t.Command{[st(430)](){const t=st,{editor:e}=this,o=e[t(445)][t(449)](h)[t(432)]();this[t(440)]=!!o,this[t(447)]=o?.[t(444)](t(433))??null}[st(448)]({value:t}){const e=st,{editor:o}=this,n=o[e(445)][e(449)](h),i=n[e(432)]();i&&et[e(435)](t)&&o[e(431)][e(439)](o=>{const s=e;o[s(443)](s(433),t,i),n[s(441)](o)})}}function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=244]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(872796===-parseInt(e(250))/1+-parseInt(e(253))/2+parseInt(e(266))/3*(-parseInt(e(256))/4)+parseInt(e(245))/5+parseInt(e(265))/6+-parseInt(e(255))/7*(-parseInt(e(264))/8)+parseInt(e(258))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[lt(260)](){const t=lt,{editor:e}=this,o=e[t(249)][t(259)](h)[t(257)]();this[t(263)]=!!o,this[t(262)]=o?.[t(251)](t(244))??null}[lt(247)]({value:t}){const e=lt,{editor:o}=this,n=o[e(249)][e(259)](h),i=n[e(257)]();i&&Number[e(246)](t)&&o[e(248)][e(254)](o=>{const s=e;o[s(252)](s(244),t,i),n[s(261)](o)})}}function ut(){const t=["isEnabled","32TmfobF","5651124wSOUta","75auItPR","footnotesListStart","4444735niCjCL","isInteger","execute","model","plugins","452768jRJUtz","getAttribute","setAttribute","628966LkawRr","change","333648XtnAxe","144836vWdDLn","getFootnotesDefinitionsObjectElement","4714335EPLETQ","get","refresh","_updateFootnotesCounters","value"];return(ut=function(){return t})()}function dt(){const t=["document","setAttribute","$text","registerPostFixer","decimal-leading-zero","setStyle","FootnotesPropertiesEditing","3915680avDasZ","find","getChanges","for","floor","nodeAfter","consumable","extend","checkAttribute","attribute:footnotesListStyle:footnotesDefinitions","parent","init","add","_updateFootnotesCounters","5520vOFUNu","toLowerCase","pluginName","toViewElement","footnotes-list","item","viewItem","hasAttribute","removeAttribute","upcast","get","isOfficialPlugin","getAttribute","start","from","type","upper-roman","consume","_formatFootnoteListValue","list-style-type","footnotesDefinitions","parseInt","2321718zWXQjF","_defineFormatter","104vBhxnC","_defineSchema","footnotesListStyle","34256DebALz","upper-alpha","footnotes.footnotesProperties.defaultListStyle","insert","isNaN","decimal","define","removeStyle","element","toUpperCase","schema","position","1565160BPBCfB","element:ol","attribute:footnotesListStart:footnotesDefinitions","downcast","config","padStart","_defineConverters","lower-roman","mapper","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","editor","_getDefaultStartIndex","isPremiumPlugin","19223UgdHGr","getItems","hasClass","footnotesStart","686MZhEbd","writer","34ENgHtg","commands","_definePostfixer","9072297qlDyIE","setFootnoteFormatter","footnotesStyle","name","differ","model","requires","modelCursor","plugins","upper-latin","max","_getDefaultListStyle","getStyle","lower-alpha","lower-latin","getChildren","fromCharCode","createRangeOn"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=445]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(522183===parseInt(e(542))/1*(-parseInt(e(447))/2)+-parseInt(e(489))/3*(parseInt(e(513))/4)+parseInt(e(528))/5+parseInt(e(511))/6+-parseInt(e(445))/7*(parseInt(e(516))/8)+parseInt(e(450))/9+-parseInt(e(475))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(491)](){return ht(474)}static get[ht(456)](){return[v,h]}static get[ht(500)](){return!0}static get[ht(541)](){return!0}[ht(486)](){const t=ht,{editor:e}=this;e[t(532)][t(522)](t(518),t(521)),e[t(532)][t(522)](t(537),1),e[t(448)][t(487)](t(452),new at(e)),e[t(448)][t(487)](t(545),new ft(e)),this[t(514)](),this[t(534)](),this[t(512)](),this[t(449)]()}[ht(514)](){const t=ht,{editor:e}=this,{schema:o}=e[t(455)];o[t(482)](t(509),{allowAttributes:[t(515),t(538)]})}[ht(534)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(478)](t(498))[t(487)](e=>{const o=t;e.on(o(529),(t,e,n)=>{const s=o,r=e[s(495)],a=e[s(457)]?.[s(485)];r[s(544)](s(493))&&a?.is(s(524),s(509))&&(function(t,e,o,n){const i=s;if(!n[i(483)](e,i(538)))return;let r=1;const a=o[i(481)][i(506)](t,{attributes:i(502)});if(a){const e=Number[i(510)](t[i(501)](i(502)),10);Number[i(520)](e)||(r=e)}!a&&e[i(496)](i(538))||o[i(446)][i(469)](i(538),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(483)](e,i(515)))return;let r=i(521),a=!1;if(o[i(481)][i(506)](t,{attributes:i(504)})){const e={1:i(521),a:i(463),A:i(517),i:i(535),I:i(505)}[t[i(501)](i(504))];e&&(r=e),a=!0}o[i(481)][i(506)](t,{styles:i(508)})&&(r=function(t){const e=i;switch(t){case e(463):return e(464);case e(517):return e(459);default:return t}}(t[i(462)](i(508))),a=!0),!a&&e[i(496)](i(515))||o[i(446)][i(469)](i(515),r,e)}(r,a,n,i))})}),o[t(478)](t(531))[t(487)](e=>{const o=t;e.on(o(530),(t,e,n)=>{const i=o;if(!n[i(481)][i(506)](e[i(494)],t[i(453)]))return;const s=gt(e[i(494)],n[i(536)]),{attributeNewValue:r}=e;null==r||1===r?n[i(446)][i(497)](i(502),s):n[i(446)][i(469)](i(502),String(r),s)}),e.on(o(484),(t,e,n)=>{const i=o;if(!n[i(481)][i(506)](e[i(494)],t[i(453)]))return;const s=gt(e[i(494)],n[i(536)]),{attributeNewValue:r}=e;r&&i(521)!==r?n[i(446)][i(473)](i(508),r,s):n[i(446)][i(523)](i(508),s)})})}[ht(449)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(458)][t(499)](h),i=this[t(461)](),s=this[t(540)]();o[t(468)][t(471)](e=>{const r=t,a=o[r(468)][r(454)][r(477)]();let c=!1;for(const t of a){if(r(519)!==t[r(504)]||r(470)===t[r(453)])continue;const n=o[r(467)](t[r(527)][r(480)]);for(const t of n[r(543)]())t.is(r(524),r(509))&&(!t[r(496)](r(538))&&o[r(526)][r(483)](t,r(538))&&(e[r(469)](r(538),s,t),c=!0),!t[r(496)](r(515))&&o[r(526)][r(483)](t,r(515))&&(e[r(469)](r(515),i,t),c=!0))}return c&&n[r(488)](e),c})}[ht(512)](){const t=ht,{editor:e}=this;e[t(458)][t(499)](h)[t(451)](e=>this[t(507)](e))}[ht(461)](){const t=ht;return this[t(539)][t(532)][t(499)](t(518))}[ht(540)](){const t=ht;return this[t(539)][t(532)][t(499)](t(537))}[ht(507)]({container:t,value:e,digits:o}){const n=ht,i=t[n(501)](n(515)),s=t[n(501)](n(538)),r=Math[n(479)](e)+(s??1)-1;switch(i){case n(472):return function(t,e){const o=n;return String(t)[o(533)](e,"0")}(r,Math[n(460)](2,o));case n(463):case n(464):return wt(r,!1);case n(517):case n(459):return wt(r,!0);case n(535):return bt(r,!1);case n(505):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(492)](t);return Array[o(503)](n[o(465)]())[o(476)](t=>t.is(o(524),"ol")&&t[o(544)](o(493)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(466)](97+t)+n,i=Math[o(479)]((i-1)/26)}return e?n[o(525)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(490)]()}class vt extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=495]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(753354===-parseInt(e(507))/1*(parseInt(e(504))/2)+parseInt(e(505))/3+parseInt(e(496))/4+-parseInt(e(497))/5+parseInt(e(501))/6+parseInt(e(503))/7+-parseInt(e(502))/8*(parseInt(e(506))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Et extends t.Plugin{static get[Ft(508)](){return Ft(495)}static get[Ft(498)](){return[mt,Ct]}static get[Ft(500)](){return!0}static get[Ft(499)](){return!0}}function St(){var t=["22045800JXSfSX","5278679LxRyBx","171388kIPrgF","3070182NtGQJD","9TzWvUm","6QqoYlu","pluginName","FootnotesProperties","5087808qMxiaF","1648130kYAysX","requires","isPremiumPlugin","isOfficialPlugin","7820556sextcu"];return(St=function(){return t})()}function Pt(){var t=["771534Knnmdl","10kQVHGc","10456pfUHCz","119aQTbzm","68394qPuuFA","379140foYYWa","2mSmZNe","3201048AoTzDG","1044644nMXNfp","3875690edmvxU"];return(Pt=function(){return t})()}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=340]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(309323===-parseInt(e(340))/1*(-parseInt(e(348))/2)+parseInt(e(349))/3+-parseInt(e(342))/4*(parseInt(e(345))/5)+-parseInt(e(344))/6+parseInt(e(347))/7*(parseInt(e(346))/8)+parseInt(e(341))/9+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["nodeAfter","_model","element","push","7VzOgjY","1148408kHyYRU","type","delete","clear","values","_elementName","_trackedElements","root","remove","getItems","rootName","6215658GaYfqT","81Bbxxyo","$graveyard","12zYygBB","length","has","_getElementKey","set","getElementKey","getChanges","from","position","get","15RQAjbw","136926ZiQTuc","attributes","$text","createRangeOn","478304zXcZlo","653956dfuSqG","name","add","elementName","flat","14096830LQoHiD","insert","slice","reset","42698403VTWBfS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=352]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(713168===parseInt(e(352))/1+parseInt(e(392))/2*(parseInt(e(381))/3)+parseInt(e(396))/4*(-parseInt(e(391))/5)+parseInt(e(378))/6*(-parseInt(e(366))/7)+parseInt(e(367))/8*(-parseInt(e(379))/9)+-parseInt(e(357))/10+parseInt(e(361))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(363)];[a(372)];[a(384)];[a(373)]=new Map;constructor(t,e){const o=a;this[o(363)]=t,this[o(372)]=e[o(355)],this[o(384)]=e[o(386)]}[a(360)](){const t=a;this[t(373)][t(370)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(358)===i[e(368)]&&e(394)!==i[e(353)]&&i[e(389)][e(362)]){const t=this[e(363)][e(395)](i[e(389)][e(362)]);for(const o of t[e(376)]()){if(!o.is(e(364),this[e(372)]))continue;const t=this[e(384)](o);n[e(383)](t)||n[e(385)](t,[]),n[e(390)](t)[e(365)](o)}}if(e(375)===i[e(368)]&&i[e(353)]===this[e(372)]){const t=this[e(384)]({getAttribute:t=>i[e(393)][e(390)](t)});o[e(354)](t)}}for(const[t,n]of this[e(373)])e(380)===n[e(374)][e(377)]&&o[e(354)](t);for(const t of o)this[e(373)][e(369)](t);for(const[t,o]of n)this[e(373)][e(385)](t,o[o[e(382)]-1]);const i=new Set;for(const[t,s]of n)o[e(383)](t)&&(i[e(354)](s[0]),s[e(382)]>1?n[e(385)](t,s[e(359)](1)):n[e(369)](t),o[e(369)](t));return{removed:Array[e(388)](o),inserted:Array[e(388)](n[e(371)]())[e(356)](),moved:Array[e(388)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=378]})(t,e)}function d(){const t=["_updateFootnotesCounters","enqueueChange","splice","get","model","min","_ensureFootnotesReferencesHaveProperOrder","move","childCount","change:data","setFootnoteFormatter","isPremiumPlugin","footnoteInlineContent","remove","end","add","isOfficialPlugin","_footnoteRefsTracker","_footnotesDefinitions","getChanges","low","_footnoteDefsTracker","_handleFootnoteDefinitionsChanges","376368xaGwMR","compareWith","createRangeOn","_updateFootnoteRefCounter","unshift","_footnotes","_handleFootnotesDefinitionsObjectSync","set","getChildren","$graveyard","273510AVrheI","document","footnotes.multiBlock","push","reset","definition","_handleFootnoteReferencesChanges","createElement","parent","before","differ","815400ZsHGhz","after","getFootnotes","high","getFootnotesDefinitionsObjectElement","createPositionAt","_handleInsertedFootnoteReference","footnoteId","_ensureFootnotesDefinitionsContainerExists","getFootnote","_footnoteFormatter","footnoteRef","1931258ZUdIhW","_handleRemoveFootnoteReferenceById","append","singleton","24zFcthq","config","footnotesDefinitions","FootnotesTracker","map","from","isEqual","insert","createPositionBefore","_footnoteDefsContainerTracker","300027ZPzLxp","_handleMovedFootnoteReference","8fAPUKk","setAttribute","editor","getFootnotesFormatter","_handleFootnotesDefinitionsObjectChanges","193985ycmBbl","createRangeIn","getAttribute","root","paragraph","reference","getRootNames","length","registerPostFixer","rootName","init","some","_sortFootnoteDefinitions","_insertEmptyFootnotesDefinitionsContainer","1115172zkRJbD","pluginName","footnoteDefinition","has","indexOf","footnoteCounter","listenTo","findIndex","find"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(449104===parseInt(e(437))/1+parseInt(e(383))/2+-parseInt(e(430))/3+-parseInt(e(404))/4+parseInt(e(393))/5*(parseInt(e(420))/6)+-parseInt(e(416))/7*(-parseInt(e(432))/8)+-parseInt(e(451))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(388)]=[];[f(378)]=null;[f(414)]=null;[f(429)];[f(477)];[f(381)];static get[f(452)](){return f(423)}static get[f(476)](){return!0}static get[f(471)](){return!0}constructor(t){const e=f;super(t),this[e(429)]=new l(this[e(434)][e(464)],{elementName:e(422),getElementKey:()=>e(419)}),this[e(477)]=new l(this[e(434)][e(464)],{elementName:e(415),getElementKey:t=>t[e(439)](e(411))}),this[e(381)]=new l(this[e(434)][e(464)],{elementName:e(453),getElementKey:t=>t[e(439)](e(411))})}[f(447)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(394)][t(445)](e=>{const n=t,i=o[n(394)][n(403)][n(379)]();let s=!1;return this[n(436)](e,i)&&(s=!0),this[n(382)](e,i)&&(s=!0),this[n(399)](e,i)&&(s=!0),this[n(466)](e)&&(s=!0),this[n(389)](e)&&(s=!0),this[n(449)](e)&&(s=!0),s}),this[t(457)](o[t(394)],t(469),()=>{const e=t;o[e(461)]({isUndoable:!1},t=>{this[e(412)](t)})},{priority:t(380)}),this[t(457)](n,t(390),()=>{const e=t;this[e(388)]=[],this[e(429)][e(397)](),this[e(477)][e(397)](),this[e(381)][e(397)]()},{priority:t(407)})}[f(408)](){return this[f(378)]}[f(413)](t){const e=f;return this[e(388)][e(459)](e=>e.id===t)||null}[f(406)](){const t=f;return Array[t(425)](this[t(388)])}[f(435)](){return this[f(414)]}[f(470)](t){this[f(414)]=t}[f(460)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(388)][o(444)];i++)this[o(386)](t,i)&&(n=!0);return n}[f(450)](t,e){const o=f,n=t[o(400)](o(422),{});return t[o(418)](n,e),this[o(378)]=n,n}[f(412)](t){const e=f;if(!this[e(388)][e(444)]||this[e(378)])return;const o=this[e(388)][0][e(442)][e(440)],n=this[e(450)](t,o);for(const o of this[e(388)])o[e(398)][e(401)]||t[e(427)](o[e(398)],n,e(474));this[e(460)](t)}[f(436)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(429)][o(379)](e);if(r[o(444)]&&(this[o(378)]=r[0]),i[o(444)])if(i[o(444)]>1||this[o(378)]&&i[o(448)](t=>t!==this[o(378)])){const e=t[o(400)](o(422),{}),s=[];this[o(378)]&&s[o(396)](this[o(378)]),s[o(396)](...i),t[o(427)](e,s[0],o(402));for(const n of s)t[o(467)](t[o(438)](n),t[o(409)](e,o(474))),t[o(473)](n);this[o(378)]=e,this[o(460)](t),n=!0}else this[o(378)]=i[0];if(s[o(444)]&&o(392)===this[o(378)]?.[o(440)][o(446)]){for(const e of this[o(388)])t[o(473)](e[o(442)]),n=!0;this[o(388)]=[],this[o(378)]=null}return n}[f(382)](t,e){const o=f;let n=!1;const i=this[o(434)][o(421)][o(463)](o(395)),{inserted:s,moved:r}=this[o(381)][o(379)](e);for(const e of[...r,...s]){const s=e[o(439)](o(411)),r=this[o(413)](s);r&&(r[o(398)]=e),p(t,i,e)&&(n=!0)}return n}[f(399)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(477)][o(379)](e);for(const e of i)this[o(417)](t,e)&&(n=!0);for(const e of s)this[o(410)](t,e)&&(n=!0);for(const e of r)this[o(431)](t,e)&&(n=!0);return n}[f(389)](t){const e=f;if(!this[e(378)])return!1;let o=!1;if(this[e(378)][e(468)]!==this[e(388)][e(444)]){const n=[];for(const t of this[e(378)][e(391)]()){const i=t[e(439)](e(411));this[e(413)](i)||(n[e(387)](t),o=!0)}for(const o of n)t[e(473)](o)}const n=new Set,i=[];for(const t of this[e(378)][e(391)]()){const s=t[e(439)](e(411));n[e(454)](s)?(i[e(387)](t),o=!0):n[e(475)](s)}for(const o of i)t[e(473)](o);return this[e(378)][e(468)]||(t[e(473)](this[e(378)]),this[e(378)]=null,o=!0),o}[f(410)](t,e){const o=f;if(this[o(388)][o(459)](t=>t[o(442)]===e))return!1;let n=!1;const i=e[o(439)](o(411)),s=this[o(388)][o(458)](t=>t.id===i);-1!==s&&(t[o(473)](this[o(388)][s][o(442)]),this[o(388)][o(462)](s,1),n=!0);let r=this[o(378)]?function(t,e){const n=o;for(const o of t[n(391)]())if(o[n(439)](n(411))===e)return o;return null}(this[o(378)],i):null;r||(r=t[o(400)](o(453),{footnoteId:i}),this[o(378)]&&(t[o(427)](r,this[o(378)],o(474)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(434)][o(464)],this[o(388)],e);this[o(388)][o(462)](c,0,a);let l=c;return-1!==s&&(l=Math[o(465)](c,s)),this[o(460)](t,l)&&(n=!0),n}[f(417)](t,e){const o=f,n=this[o(388)][o(458)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(388)][n];return o(392)!==s[o(398)][o(440)][o(446)]&&(t[o(473)](s[o(398)]),i=!0),this[o(388)][o(462)](n,1),this[o(460)](t,n)&&(i=!0),i}[f(431)](t,e){const o=f,n=e[o(439)](o(411)),i=this[o(388)][o(458)](t=>t.id===n),s=this[o(388)][i];let r=!1;s[o(442)]=e,this[o(388)][o(462)](i,1);const a=m(this[o(434)][o(464)],this[o(388)],e);return this[o(388)][o(462)](a,0,s),this[o(460)](t,Math[o(465)](i,a))&&(r=!0),r}[f(386)](t,e){const o=f;if(!this[o(378)])return!1;const n=this[o(388)][e];let i;return i=this[o(414)]?this[o(414)]({footnote:n,container:this[o(378)],digits:String(this[o(388)][o(444)])[o(444)],value:e+1}):String(e+1),n[o(442)][o(439)](o(456))!=i&&(t[o(433)](o(456),i,n[o(442)]),!0)}[f(449)](t){const e=f;if(!this[e(378)]||this[e(388)][e(444)]<2)return!1;if(function(t,o){const n=e;if(t[n(444)]!==o[n(444)])return!1;for(let e=0;e<t[n(444)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(388)][e(424)](t=>t.id),Array[e(425)](this[e(378)][e(391)]())[e(424)](t=>t[e(439)](e(411)))))return!1;let o=!1;for(let n=0;n<this[e(388)][e(444)];n++){const i=this[e(388)][n],s=t[e(428)](i[e(398)]),r=t[e(409)](this[e(378)],n);s[e(426)](r)||(t[e(467)](t[e(385)](i[e(398)]),r),o=!0)}return o}[f(466)](t){const e=f;if(!this[e(388)][e(444)])return!1;const{model:o}=this[e(434)];let n=!1;for(let i=0;i<this[e(388)][e(444)]-1;i++){const s=this[e(388)][i],r=this[e(388)][i+1],a=o[e(428)](s[e(442)]),c=o[e(428)](r[e(442)]);e(405)===a[e(384)](c)&&(this[e(431)](t,s[e(442)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(468)])return!1;const i=n(e?441:472);return t[n(427)](t[n(400)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(444)])return 0;const i=t[n(428)](o);for(let o=0;o<e[n(444)];o++){const s=e[o],r=t[n(428)](s[n(442)]);if(n(402)===i[n(384)](r))return o}const s=o[n(440)];let r=-1;for(let t=e[n(444)]-1;t>=0;t--)if(e[t][n(442)][n(440)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(394)][n(443)](),c=a[n(455)](s[n(446)]),l=a[c+1];if(l)for(let t=0;t<e[n(444)];t++)if(e[t][n(442)][n(440)][n(446)]===l)return t;return e[n(444)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=412]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","footnoteId","49GnmOrT","insertObject","insert-footnote-command-executed-with-invalid-id","checkChild","model","getFirstRange","editor","string","document","change","37800vUbpNP","length","_moveSelectionToFootnoteDefinition","plugins","refresh","isObject","5853555QklSpI","FootnotesEditing","1228088NvfwaA","isEnabled","529333ZGRHfA","footnoteRef","4499joGpdL","execute","56IUdHST","921040IcMlPH","createElement","end","getItems","6ooTCkv","33718ZTsAQu","selection","test","6198zJTPsh","isBlock","get","3965vRSRcK"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(470300===-parseInt(e(439))/1*(parseInt(e(430))/2)+-parseInt(e(429))/3*(-parseInt(e(418))/4)+-parseInt(e(436))/5*(parseInt(e(433))/6)+parseInt(e(420))/7*(-parseInt(e(424))/8)+parseInt(e(416))/9+parseInt(e(425))/10+parseInt(e(422))/11*(parseInt(e(449))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(414)](){const t=g,e=this[t(445)][t(443)][t(447)][t(431)],o=this[t(437)](e);this[t(419)]=!!o}[g(423)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(447)],r=this[e(437)](s);if(!r)return;const a=o[e(413)][e(435)](e(417)),c=t?.[e(438)]??(0,i.uid)();!function(t){const o=e;return o(446)==typeof t&&t[o(450)]>0&&!/\s/[o(432)](t)&&!/^\d/[o(432)](t)}(c)?(0,i.logWarning)(e(441)):(n[e(448)](t=>{const o=e,i=t[o(426)](o(421),{footnoteId:c});n[o(440)](i,r,null)}),a[e(412)](c))}[g(437)](t){const e=g,{model:o}=this[e(445)],{schema:n}=o,i=t[e(444)]();for(const t of i[e(428)]())if(n[e(434)](t)||n[e(415)](t))return null;const s=i[e(427)];return n[e(442)](s,e(421))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764892800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=A;function A(t,e){const o=L();return(A=function(t,e){return o[t-=128]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(490476===-parseInt(e(136))/1+-parseInt(e(162))/2*(parseInt(e(131))/3)+-parseInt(e(165))/4+parseInt(e(160))/5+parseInt(e(161))/6+-parseInt(e(163))/7*(-parseInt(e(200))/8)+-parseInt(e(180))/9*(parseInt(e(175))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(L);class _ extends t.Plugin{static get[T(141)](){return T(185)}static get[T(177)](){return[v,P.ClipboardPipeline]}static get[T(167)](){return!0}static get[T(181)](){return!0}[T(135)](){this[T(143)]()}[T(143)](){const t=T;this[t(171)](),this[t(140)]()}[T(171)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(133)](P.ClipboardPipeline),s=o[t(133)](h);this[t(148)](i,t(147),(o,i)=>{const r=t,a=D(n[r(137)](i[r(158)]));if(!a[r(155)])return;const c=s[r(168)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(196)](t=>t.id===o);if(i){const o=e[n(144)][n(186)](i[n(195)],{isClipboardPipeline:!0}),s=e[n(144)][n(203)][n(164)](o);t[i.id]=s}return t},Object[r(187)](null));i[r(205)][r(169)](r(152),JSON[r(173)](l))})}[T(140)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(194)],r=n[t(133)](P.ClipboardPipeline),a=n[t(133)](h),c=e[t(142)][t(133)](t(157));let l=null;this[t(148)](s[t(178)],t(150),(e,o)=>{const n=t,i=o[n(205)][n(192)](n(152));l=i?JSON[n(153)](i):null}),this[t(148)](r,t(146),(n,s)=>{const r=t,f=s[r(189)]===this[r(204)].id;f&&r(156)===s[r(138)]||o[r(145)](t=>{const n=r;let u=a[n(182)]();const d=!!u&&Array[n(179)](o[n(178)][n(190)][n(129)]())[n(174)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(137)](e))n.is(o(166),o(198))&&i[o(188)](n);for(const e of i)t[o(199)](e)}(t,s[n(158)]),!l)return;const{selection:h}=o[n(178)],p=h[n(197)]()[n(130)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(137)](e))if(n.is(o(166),o(198)))return n;return null}(t,s[n(158)]),u||=a[n(191)](t,p));const m=Array[n(179)](h[n(151)]())[n(170)](D),g=function(t,e,o){const s=n,r=Object[s(187)](null);for(const{item:n}of t[s(137)](e))if(n.is(s(166),s(154))){const e=n[s(128)](s(176));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(159)](s(176),r[e],n)}return r}(t,s[n(158)],t=>{const e=n;return!f||!!a[e(132)](t)&&!m[e(174)](t)});for(const[o,i]of Object[n(134)](l)){const s=g[o]||o,r=t[n(193)](n(206),{footnoteId:s}),a=e[n(144)][n(203)][n(186)](i);let l;if(c)l=e[n(144)][n(139)](a,r);else{l=t[n(193)](n(202));const o=e[n(144)][n(139)](a,l);t[n(149)](o,l)}t[n(172)](l,r),t[n(149)](r,u,n(183))}l=null})})}}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(166),e(154))&&o[e(201)](n[e(128)](e(176)));return Array[e(179)](o)}function L(){const t=["htmlProcessor","editor","dataTransfer","footnoteDefinition","getAttribute","getSelectedBlocks","root","36969PxvGMG","getFootnote","get","entries","init","957794hYSnhP","createRangeIn","method","toModel","_handlePasteFootnotesDefinitions","pluginName","config","_defineClipboardIntegration","data","change","contentInsertion","outputTransformation","listenTo","insert","clipboardInput","getRanges","application/ckeditor5-footnotes","parse","footnoteRef","length","drop","footnotes.multiBlock","content","setAttribute","4896740ScGAXE","5119512OLGOal","82dSADsY","14VRFkma","toData","125256suFFUD","element","isOfficialPlugin","getFootnotes","setData","flatMap","_handleCopyFootnotesDefinitions","append","stringify","includes","70xCeEOQ","footnoteId","requires","document","from","1006569pasxHx","isPremiumPlugin","getFootnotesDefinitionsObjectElement","end","reduce","FootnotesClipboard","toView","create","push","sourceEditorId","selection","_insertEmptyFootnotesDefinitionsContainer","getData","createElement","editing","definition","find","getFirstRange","footnotesDefinitions","remove","3740456hTSnFb","add","footnoteInlineContent"];return(L=function(){return t})()}var R=o(311),V=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),U=o(123),z=o.n(U),H=o(741),W=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=W();O()(q.A,G);q.A&&q.A.locals&&q.A.locals;class X 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,R.ButtonView)),e.add("menuBar:insertFootnote",Z(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(){var t=["isOfficialPlugin","10IlCjdw","pluginName","6whKXVL","1006040wolHlV","4759876ROBHio","isPremiumPlugin","9WQXlRD","requires","3360378nLBulU","1396664kCPRAF","6GRsgPZ","Footnotes","325792fKsvJZ","529830fRBoRf","2865845xgjqgn"];return(Q=function(){return t})()}var J=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=131]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(610484===-parseInt(e(132))/1+-parseInt(e(131))/2*(-parseInt(e(145))/3)+parseInt(e(144))/4+-parseInt(e(133))/5*(parseInt(e(137))/6)+parseInt(e(143))/7+parseInt(e(138))/8*(parseInt(e(141))/9)+-parseInt(e(135))/10*(-parseInt(e(139))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[J(136)](){return J(146)}static get[J(142)](){return[v,_,X]}static get[J(134)](){return!0}static get[J(140)](){return!0}}const tt=ot;!function(t){const e=ot,o=t();for(;;)try{if(446983===-parseInt(e(144))/1+parseInt(e(141))/2*(-parseInt(e(148))/3)+-parseInt(e(154))/4+-parseInt(e(138))/5*(-parseInt(e(147))/6)+parseInt(e(140))/7*(parseInt(e(142))/8)+-parseInt(e(137))/9+parseInt(e(139))/10*(parseInt(e(155))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const et=[tt(153),tt(143),tt(152),tt(146),tt(151),tt(149),tt(150),tt(145)];function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=137]})(t,e)}function nt(){const t=["upper-latin","6zcfKNg","162129gGhewY","upper-alpha","lower-roman","lower-alpha","lower-latin","decimal","716040oKiEST","11ctwHNL","398655glnZXV","475890NDVjJc","3075040MklXFl","7EMEECU","6cfMrIC","5027448KPxEHL","decimal-leading-zero","198696zFUqMP","upper-roman"];return(nt=function(){return t})()}function it(){const t=["plugins","266464xxlQCr","value","execute","get","1569115RtJbng","558ICXvtH","412116yatSix","refresh","model","getFootnotesDefinitionsObjectElement","footnotesListStyle","58648CPwvdY","includes","2069424tJlhqO","218212NqsXVv","12UWZwjN","change","isEnabled","_updateFootnotesCounters","308946nSxWcX","setAttribute","getAttribute"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=it();return(rt=function(t,e){return o[t-=428]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(223694===parseInt(e(429))/1+parseInt(e(446))/2+-parseInt(e(438))/3*(parseInt(e(437))/4)+-parseInt(e(450))/5+parseInt(e(442))/6+-parseInt(e(436))/7+parseInt(e(434))/8*(parseInt(e(428))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class at extends t.Command{[st(430)](){const t=st,{editor:e}=this,o=e[t(445)][t(449)](h)[t(432)]();this[t(440)]=!!o,this[t(447)]=o?.[t(444)](t(433))??null}[st(448)]({value:t}){const e=st,{editor:o}=this,n=o[e(445)][e(449)](h),i=n[e(432)]();i&&et[e(435)](t)&&o[e(431)][e(439)](o=>{const s=e;o[s(443)](s(433),t,i),n[s(441)](o)})}}function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=244]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(872796===-parseInt(e(250))/1+-parseInt(e(253))/2+parseInt(e(266))/3*(-parseInt(e(256))/4)+parseInt(e(245))/5+parseInt(e(265))/6+-parseInt(e(255))/7*(-parseInt(e(264))/8)+parseInt(e(258))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[lt(260)](){const t=lt,{editor:e}=this,o=e[t(249)][t(259)](h)[t(257)]();this[t(263)]=!!o,this[t(262)]=o?.[t(251)](t(244))??null}[lt(247)]({value:t}){const e=lt,{editor:o}=this,n=o[e(249)][e(259)](h),i=n[e(257)]();i&&Number[e(246)](t)&&o[e(248)][e(254)](o=>{const s=e;o[s(252)](s(244),t,i),n[s(261)](o)})}}function ut(){const t=["isEnabled","32TmfobF","5651124wSOUta","75auItPR","footnotesListStart","4444735niCjCL","isInteger","execute","model","plugins","452768jRJUtz","getAttribute","setAttribute","628966LkawRr","change","333648XtnAxe","144836vWdDLn","getFootnotesDefinitionsObjectElement","4714335EPLETQ","get","refresh","_updateFootnotesCounters","value"];return(ut=function(){return t})()}function dt(){const t=["document","setAttribute","$text","registerPostFixer","decimal-leading-zero","setStyle","FootnotesPropertiesEditing","3915680avDasZ","find","getChanges","for","floor","nodeAfter","consumable","extend","checkAttribute","attribute:footnotesListStyle:footnotesDefinitions","parent","init","add","_updateFootnotesCounters","5520vOFUNu","toLowerCase","pluginName","toViewElement","footnotes-list","item","viewItem","hasAttribute","removeAttribute","upcast","get","isOfficialPlugin","getAttribute","start","from","type","upper-roman","consume","_formatFootnoteListValue","list-style-type","footnotesDefinitions","parseInt","2321718zWXQjF","_defineFormatter","104vBhxnC","_defineSchema","footnotesListStyle","34256DebALz","upper-alpha","footnotes.footnotesProperties.defaultListStyle","insert","isNaN","decimal","define","removeStyle","element","toUpperCase","schema","position","1565160BPBCfB","element:ol","attribute:footnotesListStart:footnotesDefinitions","downcast","config","padStart","_defineConverters","lower-roman","mapper","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","editor","_getDefaultStartIndex","isPremiumPlugin","19223UgdHGr","getItems","hasClass","footnotesStart","686MZhEbd","writer","34ENgHtg","commands","_definePostfixer","9072297qlDyIE","setFootnoteFormatter","footnotesStyle","name","differ","model","requires","modelCursor","plugins","upper-latin","max","_getDefaultListStyle","getStyle","lower-alpha","lower-latin","getChildren","fromCharCode","createRangeOn"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=445]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(522183===parseInt(e(542))/1*(-parseInt(e(447))/2)+-parseInt(e(489))/3*(parseInt(e(513))/4)+parseInt(e(528))/5+parseInt(e(511))/6+-parseInt(e(445))/7*(parseInt(e(516))/8)+parseInt(e(450))/9+-parseInt(e(475))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(491)](){return ht(474)}static get[ht(456)](){return[v,h]}static get[ht(500)](){return!0}static get[ht(541)](){return!0}[ht(486)](){const t=ht,{editor:e}=this;e[t(532)][t(522)](t(518),t(521)),e[t(532)][t(522)](t(537),1),e[t(448)][t(487)](t(452),new at(e)),e[t(448)][t(487)](t(545),new ft(e)),this[t(514)](),this[t(534)](),this[t(512)](),this[t(449)]()}[ht(514)](){const t=ht,{editor:e}=this,{schema:o}=e[t(455)];o[t(482)](t(509),{allowAttributes:[t(515),t(538)]})}[ht(534)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(478)](t(498))[t(487)](e=>{const o=t;e.on(o(529),(t,e,n)=>{const s=o,r=e[s(495)],a=e[s(457)]?.[s(485)];r[s(544)](s(493))&&a?.is(s(524),s(509))&&(function(t,e,o,n){const i=s;if(!n[i(483)](e,i(538)))return;let r=1;const a=o[i(481)][i(506)](t,{attributes:i(502)});if(a){const e=Number[i(510)](t[i(501)](i(502)),10);Number[i(520)](e)||(r=e)}!a&&e[i(496)](i(538))||o[i(446)][i(469)](i(538),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(483)](e,i(515)))return;let r=i(521),a=!1;if(o[i(481)][i(506)](t,{attributes:i(504)})){const e={1:i(521),a:i(463),A:i(517),i:i(535),I:i(505)}[t[i(501)](i(504))];e&&(r=e),a=!0}o[i(481)][i(506)](t,{styles:i(508)})&&(r=function(t){const e=i;switch(t){case e(463):return e(464);case e(517):return e(459);default:return t}}(t[i(462)](i(508))),a=!0),!a&&e[i(496)](i(515))||o[i(446)][i(469)](i(515),r,e)}(r,a,n,i))})}),o[t(478)](t(531))[t(487)](e=>{const o=t;e.on(o(530),(t,e,n)=>{const i=o;if(!n[i(481)][i(506)](e[i(494)],t[i(453)]))return;const s=gt(e[i(494)],n[i(536)]),{attributeNewValue:r}=e;null==r||1===r?n[i(446)][i(497)](i(502),s):n[i(446)][i(469)](i(502),String(r),s)}),e.on(o(484),(t,e,n)=>{const i=o;if(!n[i(481)][i(506)](e[i(494)],t[i(453)]))return;const s=gt(e[i(494)],n[i(536)]),{attributeNewValue:r}=e;r&&i(521)!==r?n[i(446)][i(473)](i(508),r,s):n[i(446)][i(523)](i(508),s)})})}[ht(449)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(458)][t(499)](h),i=this[t(461)](),s=this[t(540)]();o[t(468)][t(471)](e=>{const r=t,a=o[r(468)][r(454)][r(477)]();let c=!1;for(const t of a){if(r(519)!==t[r(504)]||r(470)===t[r(453)])continue;const n=o[r(467)](t[r(527)][r(480)]);for(const t of n[r(543)]())t.is(r(524),r(509))&&(!t[r(496)](r(538))&&o[r(526)][r(483)](t,r(538))&&(e[r(469)](r(538),s,t),c=!0),!t[r(496)](r(515))&&o[r(526)][r(483)](t,r(515))&&(e[r(469)](r(515),i,t),c=!0))}return c&&n[r(488)](e),c})}[ht(512)](){const t=ht,{editor:e}=this;e[t(458)][t(499)](h)[t(451)](e=>this[t(507)](e))}[ht(461)](){const t=ht;return this[t(539)][t(532)][t(499)](t(518))}[ht(540)](){const t=ht;return this[t(539)][t(532)][t(499)](t(537))}[ht(507)]({container:t,value:e,digits:o}){const n=ht,i=t[n(501)](n(515)),s=t[n(501)](n(538)),r=Math[n(479)](e)+(s??1)-1;switch(i){case n(472):return function(t,e){const o=n;return String(t)[o(533)](e,"0")}(r,Math[n(460)](2,o));case n(463):case n(464):return wt(r,!1);case n(517):case n(459):return wt(r,!0);case n(535):return bt(r,!1);case n(505):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(492)](t);return Array[o(503)](n[o(465)]())[o(476)](t=>t.is(o(524),"ol")&&t[o(544)](o(493)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(466)](97+t)+n,i=Math[o(479)]((i-1)/26)}return e?n[o(525)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(490)]()}class vt extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=495]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(753354===-parseInt(e(507))/1*(parseInt(e(504))/2)+parseInt(e(505))/3+parseInt(e(496))/4+-parseInt(e(497))/5+parseInt(e(501))/6+parseInt(e(503))/7+-parseInt(e(502))/8*(parseInt(e(506))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Et extends t.Plugin{static get[Ft(508)](){return Ft(495)}static get[Ft(498)](){return[mt,Ct]}static get[Ft(500)](){return!0}static get[Ft(499)](){return!0}}function St(){var t=["22045800JXSfSX","5278679LxRyBx","171388kIPrgF","3070182NtGQJD","9TzWvUm","6QqoYlu","pluginName","FootnotesProperties","5087808qMxiaF","1648130kYAysX","requires","isPremiumPlugin","isOfficialPlugin","7820556sextcu"];return(St=function(){return t})()}function Pt(){var t=["771534Knnmdl","10kQVHGc","10456pfUHCz","119aQTbzm","68394qPuuFA","379140foYYWa","2mSmZNe","3201048AoTzDG","1044644nMXNfp","3875690edmvxU"];return(Pt=function(){return t})()}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=340]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(309323===-parseInt(e(340))/1*(-parseInt(e(348))/2)+parseInt(e(349))/3+-parseInt(e(342))/4*(parseInt(e(345))/5)+-parseInt(e(344))/6+parseInt(e(347))/7*(parseInt(e(346))/8)+parseInt(e(341))/9+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(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 _0x7cf97c,Command as _0x508bf5}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x932ce6,isWidget as _0x5d8c7c,toWidgetEditable as _0x5983a7,WidgetToolbarRepository as _0xd701c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0xb2ad1e,logWarning as _0x4fe30e,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3ddfa1,ClickObserver as _0x3b82a8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2cf3f1}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x341efd,ButtonView as _0x48319d,View as _0x1e6c01,ViewCollection as _0x3409d7,FocusCycler as _0x453729,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x4d12df,BalloonPanelView as _0x2bfacc,createDropdown as _0xc55082}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2445ed,IconListStyleDecimal as _0xe0b9cb,IconListStyleDecimalLeadingZero as _0x315e77,IconListStyleLowerRoman as _0x5e3ec5,IconListStyleUpperRoman as _0x2e1c7c,IconListStyleLowerLatin as _0x3238b6,IconListStyleUpperLatin as _0x4b2dda}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4c38c1,_0x33e889){this['_model']=_0x4c38c1,this['_elementName']=_0x33e889['elementName'],this['_getElementKey']=_0x33e889['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x235697){const _0x5d3b97=new Set(),_0x2474e3=new Map();for(const _0x15da79 of _0x235697){if('insert'===_0x15da79['type']&&'$text'!==_0x15da79['name']&&_0x15da79['position']['nodeAfter']){const _0x263b77=this['_model']['createRangeOn'](_0x15da79['position']['nodeAfter']);for(const _0x51af18 of _0x263b77['getItems']()){if(!_0x51af18['is']('element',this['_elementName']))continue;const _0x5248e7=this['_getElementKey'](_0x51af18);_0x2474e3['has'](_0x5248e7)||_0x2474e3['set'](_0x5248e7,[]),_0x2474e3['get'](_0x5248e7)['push'](_0x51af18);}}if('remove'===_0x15da79['type']&&_0x15da79['name']===this['_elementName']){const _0x30ee9d=this['_getElementKey']({'getAttribute':_0x363267=>_0x15da79['attributes']['get'](_0x363267)});_0x5d3b97['add'](_0x30ee9d);}}for(const [_0x2aba87,_0x544045]of this['_trackedElements'])'$graveyard'===_0x544045['root']['rootName']&&_0x5d3b97['add'](_0x2aba87);for(const _0x2e1d of _0x5d3b97)this['_trackedElements']['delete'](_0x2e1d);for(const [_0x9ba3c0,_0x74539b]of _0x2474e3)this['_trackedElements']['set'](_0x9ba3c0,_0x74539b[_0x74539b['length']-0x1]);const _0x13ba0f=new Set();for(const [_0x40cca0,_0x49a826]of _0x2474e3)_0x5d3b97['has'](_0x40cca0)&&(_0x13ba0f['add'](_0x49a826[0x0]),_0x49a826['length']>0x1?_0x2474e3['set'](_0x40cca0,_0x49a826['slice'](0x1)):_0x2474e3['delete'](_0x40cca0),_0x5d3b97['delete'](_0x40cca0));return{'removed':Array['from'](_0x5d3b97),'inserted':Array['from'](_0x2474e3['values']())['flat'](),'moved':Array['from'](_0x13ba0f)};}}class f extends _0x7cf97c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x4fe6b0){super(_0x4fe6b0),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3872d7=>_0x3872d7['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x378c32=>_0x378c32['getAttribute']('footnoteId')});}['init'](){const {editor:_0x13bec3}=this,{model:_0x3f68e0,data:_0x2051ec}=_0x13bec3;_0x3f68e0['document']['registerPostFixer'](_0x363c84=>{const _0x1d6d46=_0x3f68e0['document']['differ']['getChanges']();let _0x956963=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x363c84,_0x1d6d46)&&(_0x956963=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x363c84,_0x1d6d46)&&(_0x956963=!0x0),this['_handleFootnoteReferencesChanges'](_0x363c84,_0x1d6d46)&&(_0x956963=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x363c84)&&(_0x956963=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x363c84)&&(_0x956963=!0x0),this['_sortFootnoteDefinitions'](_0x363c84)&&(_0x956963=!0x0),_0x956963;}),this['listenTo'](_0x3f68e0['document'],'change:data',()=>{_0x3f68e0['enqueueChange']({'isUndoable':!0x1},_0xe3a793=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xe3a793);});},{'priority':'low'}),this['listenTo'](_0x2051ec,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x48063f){return this['_footnotes']['find'](_0xe59d8c=>_0xe59d8c['id']===_0x48063f)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x371725){this['_footnoteFormatter']=_0x371725;}['_updateFootnotesCounters'](_0x1bc25b,_0x42922a=0x0){let _0x26b132=!0x1;for(let _0x482ef5=_0x42922a;_0x482ef5<this['_footnotes']['length'];_0x482ef5++)this['_updateFootnoteRefCounter'](_0x1bc25b,_0x482ef5)&&(_0x26b132=!0x0);return _0x26b132;}['_insertEmptyFootnotesDefinitionsContainer'](_0x10823a,_0xa11f95){const _0x302fd3=_0x10823a['createElement']('footnotesDefinitions',{});return _0x10823a['append'](_0x302fd3,_0xa11f95),this['_footnotesDefinitions']=_0x302fd3,_0x302fd3;}['_ensureFootnotesDefinitionsContainerExists'](_0xbb11dc){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x44da82=this['_footnotes'][0x0]['reference']['root'],_0x2545c9=this['_insertEmptyFootnotesDefinitionsContainer'](_0xbb11dc,_0x44da82);for(const _0x3b479f of this['_footnotes'])_0x3b479f['definition']['parent']||_0xbb11dc['insert'](_0x3b479f['definition'],_0x2545c9,'end');this['_updateFootnotesCounters'](_0xbb11dc);}['_handleFootnotesDefinitionsObjectChanges'](_0x303706,_0x551acc){let _0xac0b93=!0x1;const {inserted:_0x5a30f2,removed:_0x176521,moved:_0x55ebf5}=this['_footnoteDefsContainerTracker']['getChanges'](_0x551acc);if(_0x55ebf5['length']&&(this['_footnotesDefinitions']=_0x55ebf5[0x0]),_0x5a30f2['length']){if(_0x5a30f2['length']>0x1||this['_footnotesDefinitions']&&_0x5a30f2['some'](_0x13ba6f=>_0x13ba6f!==this['_footnotesDefinitions'])){const _0x5dbdf2=_0x303706['createElement']('footnotesDefinitions',{}),_0x18f754=[];this['_footnotesDefinitions']&&_0x18f754['push'](this['_footnotesDefinitions']),_0x18f754['push'](..._0x5a30f2),_0x303706['insert'](_0x5dbdf2,_0x18f754[0x0],'before');for(const _0x518f09 of _0x18f754)_0x303706['move'](_0x303706['createRangeIn'](_0x518f09),_0x303706['createPositionAt'](_0x5dbdf2,'end')),_0x303706['remove'](_0x518f09);this['_footnotesDefinitions']=_0x5dbdf2,this['_updateFootnotesCounters'](_0x303706),_0xac0b93=!0x0;}else this['_footnotesDefinitions']=_0x5a30f2[0x0];}if(_0x176521['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x599b7a of this['_footnotes'])_0x303706['remove'](_0x599b7a['reference']),_0xac0b93=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xac0b93;}['_handleFootnoteDefinitionsChanges'](_0x419cdd,_0x24f3d8){let _0x20042a=!0x1;const _0x1842ae=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x43df79,moved:_0x32eb1d}=this['_footnoteDefsTracker']['getChanges'](_0x24f3d8);for(const _0x3901e6 of[..._0x32eb1d,..._0x43df79]){const _0x4a224e=_0x3901e6['getAttribute']('footnoteId'),_0x19f6ca=this['getFootnote'](_0x4a224e);_0x19f6ca&&(_0x19f6ca['definition']=_0x3901e6),_(_0x419cdd,_0x1842ae,_0x3901e6)&&(_0x20042a=!0x0);}return _0x20042a;}['_handleFootnoteReferencesChanges'](_0x358fad,_0x1667bb){let _0x4a51ff=!0x1;const {removed:_0x2498eb,inserted:_0x8345c6,moved:_0x5ed587}=this['_footnoteRefsTracker']['getChanges'](_0x1667bb);for(const _0x3a696b of _0x2498eb)this['_handleRemoveFootnoteReferenceById'](_0x358fad,_0x3a696b)&&(_0x4a51ff=!0x0);for(const _0x2880d9 of _0x8345c6)this['_handleInsertedFootnoteReference'](_0x358fad,_0x2880d9)&&(_0x4a51ff=!0x0);for(const _0x4e0b76 of _0x5ed587)this['_handleMovedFootnoteReference'](_0x358fad,_0x4e0b76)&&(_0x4a51ff=!0x0);return _0x4a51ff;}['_handleFootnotesDefinitionsObjectSync'](_0x33918a){if(!this['_footnotesDefinitions'])return!0x1;let _0x31783d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4452e1=[];for(const _0x3fc16a of this['_footnotesDefinitions']['getChildren']()){const _0x367680=_0x3fc16a['getAttribute']('footnoteId');this['getFootnote'](_0x367680)||(_0x4452e1['unshift'](_0x3fc16a),_0x31783d=!0x0);}for(const _0x27dfcd of _0x4452e1)_0x33918a['remove'](_0x27dfcd);}const _0x12442f=new Set(),_0x12cb04=[];for(const _0x294df0 of this['_footnotesDefinitions']['getChildren']()){const _0x2c35f3=_0x294df0['getAttribute']('footnoteId');_0x12442f['has'](_0x2c35f3)?(_0x12cb04['unshift'](_0x294df0),_0x31783d=!0x0):_0x12442f['add'](_0x2c35f3);}for(const _0x2945dd of _0x12cb04)_0x33918a['remove'](_0x2945dd);return this['_footnotesDefinitions']['childCount']||(_0x33918a['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x31783d=!0x0),_0x31783d;}['_handleInsertedFootnoteReference'](_0x19df52,_0x50eb45){if(this['_footnotes']['find'](_0x1246ad=>_0x1246ad['reference']===_0x50eb45))return!0x1;let _0x2a7c91=!0x1;const _0x254b07=_0x50eb45['getAttribute']('footnoteId'),_0x31bf3d=this['_footnotes']['findIndex'](_0x7ab61f=>_0x7ab61f['id']===_0x254b07);-0x1!==_0x31bf3d&&(_0x19df52['remove'](this['_footnotes'][_0x31bf3d]['reference']),this['_footnotes']['splice'](_0x31bf3d,0x1),_0x2a7c91=!0x0);let _0x496d4b=this['_footnotesDefinitions']?function(_0x1ed258,_0x5f06a6){for(const _0x4c44d7 of _0x1ed258['getChildren']())if(_0x4c44d7['getAttribute']('footnoteId')===_0x5f06a6)return _0x4c44d7;return null;}(this['_footnotesDefinitions'],_0x254b07):null;_0x496d4b||(_0x496d4b=_0x19df52['createElement']('footnoteDefinition',{'footnoteId':_0x254b07}),this['_footnotesDefinitions']&&(_0x19df52['insert'](_0x496d4b,this['_footnotesDefinitions'],'end'),_0x2a7c91=!0x0));const _0x9eb824={'id':_0x254b07,'reference':_0x50eb45,'definition':_0x496d4b},_0x11bab7=I(this['editor']['model'],this['_footnotes'],_0x50eb45);this['_footnotes']['splice'](_0x11bab7,0x0,_0x9eb824);let _0x553e38=_0x11bab7;return-0x1!==_0x31bf3d&&(_0x553e38=Math['min'](_0x11bab7,_0x31bf3d)),this['_updateFootnotesCounters'](_0x19df52,_0x553e38)&&(_0x2a7c91=!0x0),_0x2a7c91;}['_handleRemoveFootnoteReferenceById'](_0x3065f8,_0x358620){const _0x5a9e8a=this['_footnotes']['findIndex'](_0x53889e=>_0x53889e['id']===_0x358620);if(-0x1===_0x5a9e8a)return!0x1;let _0x7d55a0=!0x1;const _0x30ef44=this['_footnotes'][_0x5a9e8a];return'$graveyard'!==_0x30ef44['definition']['root']['rootName']&&(_0x3065f8['remove'](_0x30ef44['definition']),_0x7d55a0=!0x0),this['_footnotes']['splice'](_0x5a9e8a,0x1),this['_updateFootnotesCounters'](_0x3065f8,_0x5a9e8a)&&(_0x7d55a0=!0x0),_0x7d55a0;}['_handleMovedFootnoteReference'](_0x56cc4d,_0x43c276){const _0x390e60=_0x43c276['getAttribute']('footnoteId'),_0xad6b90=this['_footnotes']['findIndex'](_0x311400=>_0x311400['id']===_0x390e60),_0x3647e8=this['_footnotes'][_0xad6b90];let _0x585e26=!0x1;_0x3647e8['reference']=_0x43c276,this['_footnotes']['splice'](_0xad6b90,0x1);const _0x3686cb=I(this['editor']['model'],this['_footnotes'],_0x43c276);return this['_footnotes']['splice'](_0x3686cb,0x0,_0x3647e8),this['_updateFootnotesCounters'](_0x56cc4d,Math['min'](_0xad6b90,_0x3686cb))&&(_0x585e26=!0x0),_0x585e26;}['_updateFootnoteRefCounter'](_0x1acccc,_0xb3b5d3){if(!this['_footnotesDefinitions'])return!0x1;const _0x12b6b7=this['_footnotes'][_0xb3b5d3];let _0x5d1861;return _0x5d1861=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x12b6b7,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xb3b5d3+0x1}):String(_0xb3b5d3+0x1),_0x12b6b7['reference']['getAttribute']('footnoteCounter')!=_0x5d1861&&(_0x1acccc['setAttribute']('footnoteCounter',_0x5d1861,_0x12b6b7['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x50a010){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3ec8cc,_0x3d7c3f){if(_0x3ec8cc['length']!==_0x3d7c3f['length'])return!0x1;for(let _0x4149cf=0x0;_0x4149cf<_0x3ec8cc['length'];_0x4149cf++)if(_0x3ec8cc[_0x4149cf]!==_0x3d7c3f[_0x4149cf])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x12ecf5=>_0x12ecf5['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x57531c=>_0x57531c['getAttribute']('footnoteId'))))return!0x1;let _0x5440a8=!0x1;for(let _0xfbaff3=0x0;_0xfbaff3<this['_footnotes']['length'];_0xfbaff3++){const _0x96f73c=this['_footnotes'][_0xfbaff3],_0x26f7d1=_0x50a010['createPositionBefore'](_0x96f73c['definition']),_0xc27286=_0x50a010['createPositionAt'](this['_footnotesDefinitions'],_0xfbaff3);_0x26f7d1['isEqual'](_0xc27286)||(_0x50a010['move'](_0x50a010['createRangeOn'](_0x96f73c['definition']),_0xc27286),_0x5440a8=!0x0);}return _0x5440a8;}['_ensureFootnotesReferencesHaveProperOrder'](_0x490046){if(!this['_footnotes']['length'])return!0x1;const {model:_0x1eeed4}=this['editor'];let _0x4d5d9f=!0x1;for(let _0x44b108=0x0;_0x44b108<this['_footnotes']['length']-0x1;_0x44b108++){const _0x20fc3b=this['_footnotes'][_0x44b108],_0x22c895=this['_footnotes'][_0x44b108+0x1],_0x21a8d6=_0x1eeed4['createPositionBefore'](_0x20fc3b['reference']),_0x85e579=_0x1eeed4['createPositionBefore'](_0x22c895['reference']);'after'===_0x21a8d6['compareWith'](_0x85e579)&&(this['_handleMovedFootnoteReference'](_0x490046,_0x20fc3b['reference']),_0x44b108=-0x1,_0x4d5d9f=!0x0);}return _0x4d5d9f;}}function _(_0x4d8902,_0x55f42b,_0x3b3b4e){if(_0x3b3b4e['childCount'])return!0x1;const _0xd9069e=_0x55f42b?'paragraph':'footnoteInlineContent';return _0x4d8902['insert'](_0x4d8902['createElement'](_0xd9069e),_0x3b3b4e),!0x0;}function I(_0x5cf147,_0x33829a,_0x4299c6){if(0x0===_0x33829a['length'])return 0x0;const _0x2f067d=_0x5cf147['createPositionBefore'](_0x4299c6);for(let _0x5b8658=0x0;_0x5b8658<_0x33829a['length'];_0x5b8658++){const _0x1be4be=_0x33829a[_0x5b8658],_0x2c45dc=_0x5cf147['createPositionBefore'](_0x1be4be['reference']);if('before'===_0x2f067d['compareWith'](_0x2c45dc))return _0x5b8658;}const _0x5c86ad=_0x4299c6['root'];let _0x3ae4fa=-0x1;for(let _0x3db109=_0x33829a['length']-0x1;_0x3db109>=0x0;_0x3db109--)if(_0x33829a[_0x3db109]['reference']['root']===_0x5c86ad){_0x3ae4fa=_0x3db109;break;}if(-0x1!==_0x3ae4fa)return _0x3ae4fa+0x1;const _0x323fd5=_0x5cf147['document']['getRootNames'](),_0x1d1b83=_0x323fd5['indexOf'](_0x5c86ad['rootName']),_0x22ad68=_0x323fd5[_0x1d1b83+0x1];if(_0x22ad68){for(let _0x91b364=0x0;_0x91b364<_0x33829a['length'];_0x91b364++)if(_0x33829a[_0x91b364]['reference']['root']['rootName']===_0x22ad68)return _0x91b364;}return _0x33829a['length'];}class m extends _0x508bf5{['refresh'](){const _0x2124b2=this['editor']['model']['document']['selection'],_0x2ae0c5=this['_getPositionToInsertFootnote'](_0x2124b2);this['isEnabled']=!!_0x2ae0c5;}['execute'](_0x2a6803){const {editor:_0x215f4c}=this,{model:_0x4cc2d9}=_0x215f4c,{selection:_0x244110}=_0x4cc2d9['document'],_0x336e89=this['_getPositionToInsertFootnote'](_0x244110);if(!_0x336e89)return;const _0x58f6fc=_0x215f4c['plugins']['get']('FootnotesEditing'),_0xc2c0fe=_0x2a6803?.['footnoteId']??_0xb2ad1e();!function(_0x26dd4e){return'string'==typeof _0x26dd4e&&_0x26dd4e['length']>0x0&&!/\s/['test'](_0x26dd4e)&&!/^\d/['test'](_0x26dd4e);}(_0xc2c0fe)?_0x4fe30e('insert-footnote-command-executed-with-invalid-id'):(_0x4cc2d9['change'](_0x561edb=>{const _0x39acb9=_0x561edb['createElement']('footnoteRef',{'footnoteId':_0xc2c0fe});_0x4cc2d9['insertObject'](_0x39acb9,_0x336e89,null);}),_0x58f6fc['_moveSelectionToFootnoteDefinition'](_0xc2c0fe));}['_getPositionToInsertFootnote'](_0xad25e6){const {model:_0x36420e}=this['editor'],{schema:_0x467f18}=_0x36420e,_0x179df6=_0xad25e6['getFirstRange']();for(const _0x4e4c4d of _0x179df6['getItems']())if(_0x467f18['isBlock'](_0x4e4c4d)||_0x467f18['isObject'](_0x4e4c4d))return null;const _0x34cc31=_0x179df6['end'];return _0x467f18['checkChild'](_0x34cc31,'footnoteRef')?_0x34cc31:null;}}class r extends _0x7cf97c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c16d8}=this;_0x4c16d8['config']['define']('footnotes.multiBlock',!0x0),_0x4c16d8['commands']['add']('insertFootnote',new m(_0x4c16d8)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xaae967){const _0x4d241f=_0x4adc92([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]),_0x37a113=0x47a28506,_0x2d9394=0x47a5fff6^_0x37a113,_0x4d131c=window[_0x4adc92([0x44,0x61,0x74,0x65])][_0x4adc92([0x6e,0x6f,0x77])](),_0x5df3a2=_0xaae967[_0x4adc92([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b0598=new window[(_0x4adc92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3cbfbe=>{_0x5df3a2[_0x4adc92([0x6f,0x6e,0x63,0x65])](_0x4adc92([0x72,0x65,0x61,0x64,0x79]),_0x3cbfbe);}),_0x5567b4={[_0x4adc92([0x6b,0x74,0x79])]:_0x4adc92([0x45,0x43]),[_0x4adc92([0x75,0x73,0x65])]:_0x4adc92([0x73,0x69,0x67]),[_0x4adc92([0x63,0x72,0x76])]:_0x4adc92([0x50,0x2d,0x32,0x35,0x36]),[_0x4adc92([0x78])]:_0x4adc92([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]),[_0x4adc92([0x79])]:_0x4adc92([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]),[_0x4adc92([0x61,0x6c,0x67])]:_0x4adc92([0x45,0x53,0x32,0x35,0x36])},_0x1ddb7f=_0x5df3a2[_0x4adc92([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4adc92([0x67,0x65,0x74])](_0x4adc92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4cee46(){let _0x578814,_0x29f663=null,_0x1c1830=null;try{if(_0x1ddb7f==_0x4adc92([0x47,0x50,0x4c]))return _0x4adc92([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x578814=_0x4e49a9(),!_0x578814)return _0x4adc92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x578814[_0x4adc92([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c1830=_0x1a1ba2(_0x578814[_0x4adc92([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x578814[_0x4adc92([0x6a,0x74,0x69])])),await _0x37eb0a()?_0x2b6a78()?_0x5e52ab()?_0x4adc92([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5b2dd9()?(_0x578814[_0x4adc92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4adc92([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x29f663=_0x2dcce4(_0x4adc92([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x578814[_0x4adc92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4adc92([0x74,0x72,0x69,0x61,0x6c])&&(_0x29f663=_0x2dcce4(_0x4adc92([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1e3bbd()):_0x4adc92([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4adc92([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4adc92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4adc92([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5e52ab(){const _0x54abd5=[_0x4adc92([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4adc92([0x74,0x72,0x69,0x61,0x6c])][_0x4adc92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x578814[_0x4adc92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d131c/0x3e8:0xe10*_0x2d9394;return _0x578814[_0x4adc92([0x65,0x78,0x70])]<_0x54abd5;}function _0x2b6a78(){const _0x1f1d04=_0x578814[_0x4adc92([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1f1d04&&(!!_0x1f1d04[_0x4adc92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4adc92([0x2a]))||!!_0x1f1d04[_0x4adc92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4adc92([0x46,0x4f,0x4f])));}function _0x5b2dd9(){const _0x2fa23a=_0x578814[_0x4adc92([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2fa23a||0x0==_0x2fa23a[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1f43e2}=new URL(window[_0x4adc92([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2fa23a[_0x4adc92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f43e2))return!0x0;const _0x2dab2e=_0x1f43e2[_0x4adc92([0x73,0x70,0x6c,0x69,0x74])](_0x4adc92([0x2e]));return _0x2fa23a[_0x4adc92([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x187089=>_0x187089[_0x4adc92([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4adc92([0x2a])))[_0x4adc92([0x6d,0x61,0x70])](_0x28c535=>_0x28c535[_0x4adc92([0x73,0x70,0x6c,0x69,0x74])](_0x4adc92([0x2e])))[_0x4adc92([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xa0e413=>_0xa0e413[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2dab2e[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4adc92([0x6d,0x61,0x70])](_0x5bafe8=>Array(_0x2dab2e[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5bafe8[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4adc92([0x66,0x69,0x6c,0x6c])](_0x5bafe8[0x0]===_0x4adc92([0x2a])?_0x4adc92([0x2a]):'')[_0x4adc92([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5bafe8))[_0x4adc92([0x73,0x6f,0x6d,0x65])](_0xd54621=>_0x2dab2e[_0x4adc92([0x65,0x76,0x65,0x72,0x79])]((_0x4131bc,_0x529924)=>_0xd54621[_0x529924]===_0x4131bc||_0xd54621[_0x529924]===_0x4adc92([0x2a])));}function _0x1e3bbd(){return _0x29f663&&_0x1c1830?new window[(_0x4adc92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fc8df,_0x314c84)=>{_0x29f663[_0x4adc92([0x74,0x68,0x65,0x6e])](_0x3fc8df,_0x314c84),_0x1c1830[_0x4adc92([0x74,0x68,0x65,0x6e])](_0x3e7d30=>{_0x3e7d30!=_0x4adc92([0x56,0x61,0x6c,0x69,0x64])&&_0x3fc8df(_0x3e7d30);},_0x314c84);}):_0x29f663||_0x1c1830||_0x4adc92([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1a1ba2(_0x481004,_0x4d54c3){return new window[(_0x4adc92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20b3d5=>{if(_0xa26c2a())return _0x20b3d5(_0x4adc92([0x56,0x61,0x6c,0x69,0x64]));_0x2f494b(),_0x5df3a2[_0x4adc92([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4adc92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0xd5e703=!0x1;const _0x207fc9=_0xb2ad1e();function _0x2ab200(_0x9ac064){return!!_0x9ac064&&(typeof _0x9ac064===_0x4adc92([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x9ac064===_0x4adc92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x9ac064[_0x4adc92([0x74,0x68,0x65,0x6e])]===_0x4adc92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x9ac064[_0x4adc92([0x63,0x61,0x74,0x63,0x68])]===_0x4adc92([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x31c656(_0x57a290){_0x5d2713(_0x57a290)[_0x4adc92([0x74,0x68,0x65,0x6e])](_0x182a1e=>{if(!_0x182a1e||_0x182a1e[_0x4adc92([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4adc92([0x6f,0x6b]))return _0x4adc92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x375667(_0x5ba378(_0x207fc9+_0x4d54c3))!=_0x182a1e[_0x4adc92([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4adc92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4adc92([0x56,0x61,0x6c,0x69,0x64]);})[_0x4adc92([0x74,0x68,0x65,0x6e])](_0x4323bb=>(_0x463566(),_0x4323bb),()=>{const _0x12a59f=_0x24c5e3();return null==_0x12a59f?(_0x463566(),_0x4adc92([0x56,0x61,0x6c,0x69,0x64])):_0x4adc92(_0x4d131c-_0x12a59f>(0x63ae0106^_0x37a113)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4adc92([0x74,0x68,0x65,0x6e])](_0x20b3d5)[_0x4adc92([0x63,0x61,0x74,0x63,0x68])](()=>{_0x20b3d5(_0x4adc92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x217a65=0x47946b86^_0x37a113;function _0x463566(){const _0x2f5385=_0x4adc92([0x6c,0x6c,0x63,0x74,0x2d])+_0x375667(_0x5ba378(_0x481004)),_0x4c03a6=_0x5bd2b1(_0x375667(window[_0x4adc92([0x4d,0x61,0x74,0x68])][_0x4adc92([0x63,0x65,0x69,0x6c])](_0x4d131c/_0x217a65)));window[_0x4adc92([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4adc92([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2f5385,_0x4c03a6);}function _0x24c5e3(){const _0x4a3ff2=_0x4adc92([0x6c,0x6c,0x63,0x74,0x2d])+_0x375667(_0x5ba378(_0x481004)),_0x285bdc=window[_0x4adc92([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4adc92([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4a3ff2);return _0x285bdc?window[_0x4adc92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5bd2b1(_0x285bdc),0x10)*_0x217a65:null;}function _0x5d2713(_0x23527a){return new window[(_0x4adc92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x606828,_0x31b5b6)=>{_0x23527a[_0x4adc92([0x74,0x68,0x65,0x6e])](_0x606828,_0x31b5b6),window[_0x4adc92([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x31b5b6,0x47a351c6^_0x37a113);});}}_0x5df3a2[_0x4adc92([0x6f,0x6e])](_0x4adc92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x368258,_0x3980ef)=>{if(_0x3980ef[0x0]!=_0x481004)return _0x20b3d5(_0x4adc92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3980ef[0x1]={..._0x3980ef[0x1],[_0x4adc92([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x207fc9};},{[_0x4adc92([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4adc92([0x68,0x69,0x67,0x68])}),_0x5df3a2[_0x4adc92([0x6f,0x6e])](_0x4adc92([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x483e91=>{_0x2ab200(_0x483e91[_0x4adc92([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0xd5e703=!0x0,_0x31c656(_0x483e91[_0x4adc92([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4adc92([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4adc92([0x6c,0x6f,0x77])}),_0x4b0598[_0x4adc92([0x74,0x68,0x65,0x6e])](()=>{_0xd5e703||_0x20b3d5(_0x4adc92([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0xa26c2a(){return _0x5df3a2[_0x4adc92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4adc92([0x76,0x69,0x65,0x77])][_0x4adc92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4adc92([0x61,0x75,0x74,0x6f]);}function _0x2f494b(){_0x5df3a2[_0x4adc92([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4adc92([0x76,0x69,0x65,0x77])][_0x4adc92([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4adc92([0x61,0x75,0x74,0x6f]);}}function _0x2dcce4(_0x5e17c9){const _0x5a0117=[new window[(_0x4adc92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x57e7a6=>setTimeout(_0x57e7a6,0x47abbbca^_0x37a113)),_0x4b0598[_0x4adc92([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4adc92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x457a09=>{let _0x2dcfe5=0x0;_0x5df3a2[_0x4adc92([0x6d,0x6f,0x64,0x65,0x6c])][_0x4adc92([0x6f,0x6e])](_0x4adc92([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42b22b,_0x277ce9)=>{_0x277ce9[0x0][_0x4adc92([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2dcfe5++,_0x2dcfe5==(0x47a284fe^_0x37a113)&&(_0x457a09(),_0x42b22b[_0x4adc92([0x6f,0x66,0x66])]());});}))];return window[_0x4adc92([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4adc92([0x72,0x61,0x63,0x65])](_0x5a0117)[_0x4adc92([0x74,0x68,0x65,0x6e])](()=>_0x5e17c9);}async function _0x14fd46(){await _0x4b0598,_0x5df3a2[_0x4adc92([0x6d,0x6f,0x64,0x65,0x6c])][_0x4adc92([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9eb4ba,_0x5df3a2[_0x4adc92([0x6d,0x6f,0x64,0x65,0x6c])][_0x4adc92([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9eb4ba,_0x5df3a2[_0x4adc92([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4adc92([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2a2ada(_0x174279){const _0x3aea56=_0x40da68();_0x5df3a2[_0x3aea56]=_0x4adc92([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x174279,_0x174279!=_0x4adc92([0x56,0x61,0x6c,0x69,0x64])&&_0x14fd46();}function _0x40da68(){const _0x253265=window[_0x4adc92([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4adc92([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4adc92([0x6e,0x6f,0x77])]())[_0x4adc92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4adc92([0x2e]),'');let _0x68b651=_0x4adc92([0x75]);for(let _0x21082d=0x0;_0x21082d<_0x253265[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x21082d+=0x2){let _0x4d2dd8=window[_0x4adc92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x253265[_0x4adc92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x21082d,_0x21082d+0x2));_0x4d2dd8>=_0x4d241f[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4d2dd8-=_0x4d241f[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x68b651+=_0x4d241f[_0x4d2dd8];}return _0x68b651;}function _0x4e49a9(){const _0x28a1ca=_0x1ddb7f[_0x4adc92([0x73,0x70,0x6c,0x69,0x74])](_0x4adc92([0x2e]));if(0x3!=_0x28a1ca[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x18df80(_0x28a1ca[0x1]);function _0x18df80(_0x816347){const _0x50dae9=_0x272997(_0x816347);return _0x50dae9&&_0x18452d()?_0x50dae9:null;function _0x18452d(){const _0x2cdece=_0x50dae9[_0x4adc92([0x6a,0x74,0x69])],_0x5f4c57=window[_0x4adc92([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2cdece[_0x4adc92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2cdece[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x38188b={..._0x50dae9,[_0x4adc92([0x6a,0x74,0x69])]:_0x2cdece[_0x4adc92([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2cdece[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x38188b[_0x4adc92([0x76,0x63])],_0x5ba378(_0x38188b)==_0x5f4c57;}}}async function _0x37eb0a(){let _0x4b865d=!0x0;try{const _0x45043c=_0x1ddb7f[_0x4adc92([0x73,0x70,0x6c,0x69,0x74])](_0x4adc92([0x2e])),[_0x48c5c3,_0x12717b,_0x50c1c5]=_0x45043c;return _0x514e4d(_0x48c5c3),await _0x22ebf3(_0x48c5c3,_0x12717b,_0x50c1c5),_0x4b865d;}catch{return!0x1;}function _0x514e4d(_0xc68092){const _0x2a6c2a=_0x272997(_0xc68092);_0x2a6c2a&&_0x2a6c2a[_0x4adc92([0x61,0x6c,0x67])]==_0x4adc92([0x45,0x53,0x32,0x35,0x36])||(_0x4b865d=!0x1);}async function _0x22ebf3(_0x397ddf,_0x151b38,_0x24318c){const _0xd4e230=window[_0x4adc92([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4adc92([0x66,0x72,0x6f,0x6d])](_0x4aaae1(_0x24318c),_0x151b50=>_0x151b50[_0x4adc92([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x378f05=new window[(_0x4adc92([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4adc92([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x397ddf+_0x4adc92([0x2e])+_0x151b38),_0x47c423=window[_0x4adc92([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4adc92([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x47c423)return;const _0x203f2f=await _0x47c423[_0x4adc92([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4adc92([0x6a,0x77,0x6b]),_0x5567b4,{[_0x4adc92([0x6e,0x61,0x6d,0x65])]:_0x4adc92([0x45,0x43,0x44,0x53,0x41]),[_0x4adc92([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4adc92([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4adc92([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x47c423[_0x4adc92([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4adc92([0x6e,0x61,0x6d,0x65])]:_0x4adc92([0x45,0x43,0x44,0x53,0x41]),[_0x4adc92([0x68,0x61,0x73,0x68])]:{[_0x4adc92([0x6e,0x61,0x6d,0x65])]:_0x4adc92([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x203f2f,_0xd4e230,_0x378f05)||(_0x4b865d=!0x1);}}function _0x272997(_0x596a76){return _0x596a76[_0x4adc92([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4adc92([0x65,0x79]))?JSON[_0x4adc92([0x70,0x61,0x72,0x73,0x65])](_0x4aaae1(_0x596a76)):null;}function _0x4aaae1(_0x30e6b9){return window[_0x4adc92([0x61,0x74,0x6f,0x62])](_0x30e6b9[_0x4adc92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4adc92([0x2b]))[_0x4adc92([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4adc92([0x2f])));}function _0x5ba378(_0x5dfe25){let _0x3adb03=0x1505;function _0x3f65f0(_0x399f4b){for(let _0x7ae9e3=0x0;_0x7ae9e3<_0x399f4b[_0x4adc92([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x7ae9e3++){const _0x3e6175=_0x399f4b[_0x4adc92([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x7ae9e3);_0x3adb03=(_0x3adb03<<0x5)+_0x3adb03+_0x3e6175,_0x3adb03&=_0x3adb03;}}function _0x15988f(_0x5ccae4){Array[_0x4adc92([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5ccae4)?_0x5ccae4[_0x4adc92([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x15988f):_0x5ccae4&&typeof _0x5ccae4==_0x4adc92([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4adc92([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5ccae4)[_0x4adc92([0x73,0x6f,0x72,0x74])]()[_0x4adc92([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4fcc1d,_0x3aa177])=>{_0x3f65f0(_0x4fcc1d),_0x15988f(_0x3aa177);}):_0x3f65f0(window[_0x4adc92([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5ccae4));}return _0x15988f(_0x5dfe25),_0x3adb03>>>0x0;}function _0x375667(_0x28dd0d){return _0x28dd0d[_0x4adc92([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4adc92([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4adc92([0x30]));}function _0x5bd2b1(_0x12bf81){return _0x12bf81[_0x4adc92([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4adc92([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4adc92([0x6a,0x6f,0x69,0x6e])]('');}function _0x9eb4ba(){}function _0x4adc92(_0x3c37b5){return _0x3c37b5['map'](_0x4a2aa1=>String['fromCharCode'](_0x4a2aa1))['join']('');}_0x2a2ada(await _0x4cee46());}(this);}['_moveSelectionToFootnoteDefinition'](_0x568063){const {plugins:_0x32f9ba,editing:_0x2bc1cf,model:_0x5e882f}=this['editor'],_0x26dc2b=_0x32f9ba['get'](f)['getFootnote'](_0x568063);return!!_0x26dc2b&&(_0x5e882f['change'](_0x508134=>{_0x508134['setSelection'](_0x508134['createPositionAt'](_0x26dc2b['definition'],'end'));}),_0x2bc1cf['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x8a701f){const {plugins:_0x463bab,editing:_0x7e3c82,model:_0x5cd012}=this['editor'],_0x510f42=_0x463bab['get'](f)['getFootnote'](_0x8a701f);return!!_0x510f42&&(_0x5cd012['change'](_0x5126fb=>{_0x5126fb['setSelection'](_0x510f42['reference'],'on');}),_0x7e3c82['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2e6a5c}=this['editor']['model'],_0xf42879=this['editor']['config']['get']('footnotes.multiBlock');_0x2e6a5c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2e6a5c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2e6a5c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xf42879?_0x2e6a5c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2e6a5c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2e6a5c['addChildCheck'](_0x4b673e=>{for(const _0x5be377 of _0x4b673e)if('footnoteDefinition'===_0x5be377['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x23ab08}=this,{conversion:_0x3c9dd9,editing:_0x666c47}=_0x23ab08,{t:t}=_0x23ab08['locale'];_0x3c9dd9['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x330b1c,{writer:_0x92de75,consumable:_0x35a048})=>{const _0x32073c=_0x330b1c['getChild'](0x0);if(!_0x32073c||!_0x32073c['is']('element','a'))return null;const _0x130673=_0x32073c['getAttribute']('href')||'';if(!_0x130673['startsWith']('#'))return null;const _0x1812c3=_0x130673['replace'](/^#/,'');if(!_0x1812c3)return null;_0x35a048['consume'](_0x32073c,{'name':!0x0,'attributes':['href']});for(const {item:_0x3719ce}of _0x666c47['view']['createRangeIn'](_0x32073c))_0x3719ce['is']('$textProxy')?_0x35a048['consume'](_0x3719ce['textNode'],{'name':!0x0}):_0x3719ce['is']('element')&&_0x35a048['consume'](_0x3719ce,{'name':!0x0});return _0x92de75['createElement']('footnoteRef',{'footnoteId':_0x1812c3});}}),_0x3c9dd9['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5ba9c7,{writer:_0x1eac78})=>D(_0x5ba9c7,_0x1eac78)}),_0x3c9dd9['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x206081,{writer:_0x4c9cd9})=>{const _0x2de8c7=_0x206081['getAttribute']('footnoteCounter');return _0x932ce6(D(_0x206081,_0x4c9cd9),_0x4c9cd9,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2de8c7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x563ad8}=this,{t:t}=_0x563ad8['locale'],{conversion:_0x1f89f7}=_0x563ad8;_0x1f89f7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1f89f7['for']('upcast')['add'](_0x1d4c58=>{_0x1d4c58['on']('element:ol',(_0x9b7a57,_0x25fbb3,_0x12c372)=>{const _0x101b3f=_0x25fbb3['viewItem'];if(!_0x101b3f['hasClass']('footnotes-list')||!_0x25fbb3['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x12c372['consumable']['consume'](_0x101b3f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x53bf19,modelCursor:_0x2bc013}=_0x12c372['convertChildren'](_0x25fbb3['viewItem'],_0x25fbb3['modelCursor']);_0x25fbb3['modelRange']=_0x53bf19,_0x25fbb3['modelCursor']=_0x2bc013;}),_0x1d4c58['on']('element:hr',(_0x313f09,_0x2e40d1,_0x2d415f)=>{const _0x1cd881=_0x2e40d1['viewItem'];_0x1cd881['hasClass']('footnotes-divider')&&_0x2e40d1['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2d415f['consumable']['consume'](_0x1cd881,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1f89f7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x272a7d,{writer:_0x535acc})=>v(_0x535acc)}),_0x1f89f7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xcc5eb1,{writer:_0x2fd8b6})=>{const _0xfc8d25=v(_0x2fd8b6,{'data-footnotes-list-label':t('Footnotes')}),_0x42bbfd=_0x932ce6(_0xfc8d25,_0x2fd8b6,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2fd8b6['setCustomProperty']('footnotesDefinitions',!0x0,_0x42bbfd),_0x42bbfd;}});}['_defineDefinitionConverters'](){const {editor:_0x1cb636}=this,{conversion:_0x4195ab,locale:_0x16de80}=_0x1cb636,_0x34c4b2=_0x1cb636['config']['get']('footnotes.multiBlock');_0x4195ab['for']('upcast')['add'](_0x410c47=>{_0x410c47['on']('element:li',(_0x209f4b,_0x4a7584,_0x24439f)=>{const _0x5c2c10=_0x4a7584['viewItem'];if(!_0x5c2c10['hasClass']('footnote-definition')||!_0x5c2c10['getAttribute']('id'))return;const _0x2dc376=_0x5c2c10['parent'];if(!_0x2dc376['is']('element','ol')||!_0x2dc376['hasClass']('footnotes-list'))return;if(!_0x24439f['consumable']['test'](_0x5c2c10,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x32a8bf=_0x24439f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5c2c10['getAttribute']('id')});if(!_0x24439f['safeInsert'](_0x32a8bf,_0x4a7584['modelCursor']))return;_0x24439f['consumable']['consume'](_0x5c2c10,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4aa8a2=Array['from'](_0x5c2c10['getChildren']())['find'](_0x3e5245=>_0x3e5245['is']('element')&&_0x3e5245['hasClass']('footnote-content'));for(const _0x2d5094 of _0x5c2c10['getChildren']())_0x2d5094['is']('element')&&(_0x24439f['consumable']['consume'](_0x2d5094,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x24439f['consumable']['consume'](_0x2d5094,{'name':!0x0,'classes':'footnote-content'}));if(_0x4aa8a2){if(_0x34c4b2)_0x24439f['convertChildren'](_0x4aa8a2,_0x32a8bf);else{const _0x2b789f=_0x24439f['writer']['createElement']('footnoteInlineContent');_0x24439f['writer']['insert'](_0x2b789f,_0x32a8bf),_0x24439f['convertChildren'](_0x4aa8a2,_0x2b789f);}}_0x24439f['updateConversionResult'](_0x32a8bf,_0x4a7584);});}),_0x4195ab['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4a05c8,{writer:_0x4011cf})=>b(_0x4a05c8,_0x4011cf,_0x16de80,{'dataPipeline':!0x0})}),_0x4195ab['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4c24aa,{writer:_0xb2e25f})=>b(_0x4c24aa,_0xb2e25f,_0x16de80)});}['_defineBogusParagraphConverters'](){const {editor:_0x37b7de}=this,{conversion:_0x399bd5}=_0x37b7de;_0x37b7de['config']['get']('footnotes.multiBlock')?(_0x399bd5['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x399bd5['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x37b7de['model']['document'],'change:data',()=>{!function(_0x53e4f0,_0x230a55){const _0x205976=_0x53e4f0['document']['differ'],_0x2df4f4=new Set();for(const _0x4b32d0 of _0x205976['getChanges']()){const _0x4057b4='attribute'==_0x4b32d0['type']?_0x4b32d0['range']['start']['parent']:_0x4b32d0['position']['parent'];_0x4057b4['is']('element','footnoteDefinition')&&_0x2df4f4['add'](_0x4057b4);}for(const _0x25efba of _0x2df4f4['values']()){const _0x13614c=Array['from'](_0x25efba['getChildren']())['filter'](_0x3eac42=>g(_0x3eac42,_0x230a55['mapper']));for(const _0x373fe0 of _0x13614c)_0x230a55['reconvertItem'](_0x373fe0);}}(_0x37b7de['model'],_0x37b7de['editing']);})):(_0x399bd5['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x399bd5['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4c0f6f,{writer:_0x41775e})=>{const _0x1be874=_0x41775e['createContainerElement']('span');return _0x41775e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1be874),_0x1be874;}}));}['_defineKeyboardHandlers'](){const {editor:_0x113d1d}=this,{editing:_0x4e54c3,t:t}=_0x113d1d,_0x1b4d9d=_0x113d1d['model']['document']['selection'];_0x113d1d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x113d1d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4e54c3['view']['document'],'enter',(_0x317088,_0x2c8f71)=>{const _0x3f8585=function(_0x5216e8){const _0x5e125e=_0x5216e8['getSelectedElement']();if(_0x5e125e?.['is']('element','footnoteRef'))return _0x5e125e;return null;}(_0x1b4d9d);if(_0x3f8585){const _0x46de0c=_0x3f8585['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x46de0c),_0x2c8f71['preventDefault'](),_0x317088['stop']();}},{'context':_0x5d8c7c});}['_defineClickHandlers'](){const {editor:_0x42d51f}=this,{editing:_0x2f95af}=_0x42d51f;_0x42d51f['editing']['view']['addObserver'](_0x3ddfa1),_0x42d51f['editing']['view']['addObserver'](_0x3b82a8);let _0x318f3e=!0x1;this['listenTo'](_0x2f95af['view']['document'],'pointerdown',(_0x2dfae9,_0x1d8c46)=>{const {target:_0xc096fa}=_0x1d8c46,_0x4e8ee7=_0x2f95af['view']['document']['selection'];_0x318f3e=!!(_0xc096fa?.['is']('element','a')&&_0xc096fa['parent']?.['is']('element','sup')&&_0xc096fa['parent']['hasClass']('footnote'))&&_0x4e8ee7['getSelectedElement']()===_0xc096fa['parent'];},{'priority':'high'}),this['listenTo'](_0x2f95af['view']['document'],'click',(_0x3c837b,_0x2a8b62)=>{const {target:_0x4003b8}=_0x2a8b62;if(!_0x4003b8?.['is']('element','a'))return;if(_0x4003b8['parent']?.['is']('element','sup')&&_0x4003b8['parent']['hasClass']('footnote')&&!_0x318f3e)return void _0x2a8b62['preventDefault']();let _0x1c53fd=_0x4003b8['getAttribute']('href');if(!_0x1c53fd?.['startsWith']('#'))return;_0x1c53fd=_0x1c53fd['slice'](0x1);let _0x16a06e=!0x1;(_0x1c53fd['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1c53fd['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1c53fd))&&(_0x16a06e=!0x0),_0x16a06e&&(_0x2a8b62['preventDefault'](),_0x3c837b['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x21660f}={}){return(_0x2cc288,{writer:_0x144def})=>{if(!p(_0x2cc288))return null;if(!_0x21660f)return _0x144def['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x23322d=_0x144def['createContainerElement']('p');return _0x144def['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x23322d),_0x23322d;};}function p(_0x1e96c6){const {parent:_0x38329a}=_0x1e96c6;if(!_0x38329a?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x38329a['childCount'])return!0x1;for(const _0x37b541 of _0x1e96c6['getAttributeKeys']())if(!_0x37b541['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x37b541)return!0x1;return!0x0;}function g(_0x3293be,_0x42c69c){if(!_0x3293be['is']('element','paragraph'))return!0x1;const _0x42d292=_0x42c69c['toViewElement'](_0x3293be);return!!_0x42d292&&p(_0x3293be)!==_0x42d292['is']('element','span');}function J(_0x26a7fe){return _0x5d8c7c(_0x26a7fe)&&_0x26a7fe['is']('containerElement')&&!!_0x26a7fe['getCustomProperty']('footnotesDefinitions');}function v(_0x3a82f8,_0x197251={}){const _0x3cf18a=_0x3a82f8['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x452ae1=_0x3a82f8['createContainerElement']('ol',{'class':'footnotes-list'},_0x3a82f8['createSlot']());return _0x3a82f8['createContainerElement']('div',{'class':'footnotes',..._0x197251},[_0x3cf18a,_0x452ae1]);}function D(_0x1be931,_0x161ea7){const _0x56423c=_0x1be931['getAttribute']('footnoteId'),_0x509836=_0x1be931['getAttribute']('footnoteCounter'),_0x3e2a01=_0x161ea7['createUIElement']('a',{'href':'#'+_0x56423c},function(_0x1e71ed){const _0x30813f=this['toDomElement'](_0x1e71ed);return _0x30813f['textContent']=_0x509836,_0x30813f;}),_0x258449=_0x161ea7['createContainerElement']('sup',{'id':'ref-'+_0x56423c,'class':'footnote'},[_0x3e2a01]);return _0x258449['getFillerOffset']=()=>null,_0x258449;}function b(_0x279f38,_0x5cc47a,_0x72a480,{dataPipeline:_0x56a111}={}){const {t:t}=_0x72a480,_0x97d50f=_0x279f38['getAttribute']('footnoteId'),_0x466bc7=_0x5cc47a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x97d50f},function(_0x363b15){const _0xe91865=this['toDomElement'](_0x363b15);return _0xe91865['innerText']='^',_0xe91865;}),_0x50db11=_0x56a111?_0x5cc47a['createContainerElement']('div',{'class':'footnote-content'}):_0x5983a7(_0x5cc47a['createEditableElement']('div',{'class':'footnote-content'}),_0x5cc47a,{'label':t('Footnote\x20content.')});return _0x5cc47a['insert'](_0x5cc47a['createPositionAt'](_0x50db11,0x0),_0x5cc47a['createSlot']()),_0x5cc47a['createContainerElement']('li',{'class':'footnote-definition','id':_0x97d50f},[_0x466bc7,_0x50db11]);}class e extends _0x7cf97c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2cf3f1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3ce811}=this,{plugins:_0x8e82ae,model:_0x26b8ce}=_0x3ce811,_0x4c248a=_0x8e82ae['get'](_0x2cf3f1),_0x45906b=_0x8e82ae['get'](f);this['listenTo'](_0x4c248a,'outputTransformation',(_0x16c666,_0x4f03c5)=>{const _0x22457b=c(_0x26b8ce['createRangeIn'](_0x4f03c5['content']));if(!_0x22457b['length'])return;const _0x2c4991=_0x45906b['getFootnotes'](),_0x91ede8=_0x22457b['reduce']((_0x18d384,_0xb08028)=>{const _0x12daff=_0x2c4991['find'](_0x57844d=>_0x57844d['id']===_0xb08028);if(_0x12daff){const _0xc05eb4=_0x3ce811['data']['toView'](_0x12daff['definition'],{'isClipboardPipeline':!0x0}),_0x5799c1=_0x3ce811['data']['htmlProcessor']['toData'](_0xc05eb4);_0x18d384[_0x12daff['id']]=_0x5799c1;}return _0x18d384;},Object['create'](null));_0x4f03c5['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x91ede8));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5c618e}=this,{model:_0x2fbd94,plugins:_0x3ef240}=_0x5c618e,{view:_0x731e25}=_0x5c618e['editing'],_0x3990fd=_0x3ef240['get'](_0x2cf3f1),_0x554c6b=_0x3ef240['get'](f),_0x1244b5=_0x5c618e['config']['get']('footnotes.multiBlock');let _0x3601ca=null;this['listenTo'](_0x731e25['document'],'clipboardInput',(_0x2df546,_0x1c6f71)=>{const _0xcbc1cd=_0x1c6f71['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x3601ca=_0xcbc1cd?JSON['parse'](_0xcbc1cd):null;}),this['listenTo'](_0x3990fd,'contentInsertion',(_0x4af526,_0x3c6723)=>{const _0x1740f8=_0x3c6723['sourceEditorId']===this['editor']['id'];_0x1740f8&&'drop'===_0x3c6723['method']||_0x2fbd94['change'](_0x3347bf=>{let _0x25163d=_0x554c6b['getFootnotesDefinitionsObjectElement']();const _0x82d789=!!_0x25163d&&Array['from'](_0x2fbd94['document']['selection']['getSelectedBlocks']())['includes'](_0x25163d);if((_0x25163d&&!_0x82d789||!_0x25163d&&!_0x3601ca)&&function(_0x41ed43,_0x490ded){const _0x30f4ad=[];for(const {item:_0x4421c0}of _0x41ed43['createRangeIn'](_0x490ded))_0x4421c0['is']('element','footnotesDefinitions')&&_0x30f4ad['push'](_0x4421c0);for(const _0x454439 of _0x30f4ad)_0x41ed43['remove'](_0x454439);}(_0x3347bf,_0x3c6723['content']),!_0x3601ca)return;const {selection:_0x78dadd}=_0x2fbd94['document'],_0xb16c9a=_0x78dadd['getFirstRange']()['root'];_0x25163d&&!_0x82d789||(_0x25163d=function(_0x7be895,_0x207b76){for(const {item:_0x3d597b}of _0x7be895['createRangeIn'](_0x207b76))if(_0x3d597b['is']('element','footnotesDefinitions'))return _0x3d597b;return null;}(_0x3347bf,_0x3c6723['content']),_0x25163d||=_0x554c6b['_insertEmptyFootnotesDefinitionsContainer'](_0x3347bf,_0xb16c9a));const _0x20bcb9=Array['from'](_0x78dadd['getRanges']())['flatMap'](c),_0x1c0c11=function(_0x2b0cac,_0x436267,_0x4b65fe){const _0x1acab4=Object['create'](null);for(const {item:_0x3a57a0}of _0x2b0cac['createRangeIn'](_0x436267))if(_0x3a57a0['is']('element','footnoteRef')){const _0x423dc3=_0x3a57a0['getAttribute']('footnoteId');if(!_0x4b65fe(_0x423dc3))continue;_0x1acab4[_0x423dc3]||(_0x1acab4[_0x423dc3]=_0xb2ad1e()),_0x2b0cac['setAttribute']('footnoteId',_0x1acab4[_0x423dc3],_0x3a57a0);}return _0x1acab4;}(_0x3347bf,_0x3c6723['content'],_0x5c8042=>{if(!_0x1740f8)return!0x0;return!!_0x554c6b['getFootnote'](_0x5c8042)&&!_0x20bcb9['includes'](_0x5c8042);});for(const [_0x273957,_0x418620]of Object['entries'](_0x3601ca)){const _0x41523d=_0x1c0c11[_0x273957]||_0x273957,_0x260b10=_0x3347bf['createElement']('footnoteDefinition',{'footnoteId':_0x41523d}),_0x28a097=_0x5c618e['data']['htmlProcessor']['toView'](_0x418620);let _0x54e8a6;if(_0x1244b5)_0x54e8a6=_0x5c618e['data']['toModel'](_0x28a097,_0x260b10);else{_0x54e8a6=_0x3347bf['createElement']('footnoteInlineContent');const _0x3f5a39=_0x5c618e['data']['toModel'](_0x28a097,_0x54e8a6);_0x3347bf['insert'](_0x3f5a39,_0x54e8a6);}_0x3347bf['append'](_0x54e8a6,_0x260b10),_0x3347bf['insert'](_0x260b10,_0x25163d,'end');}_0x3601ca=null;});});}}function c(_0x2d59c8){const _0x1a09a9=new Set();for(const {item:_0xf64dc3}of _0x2d59c8)_0xf64dc3['is']('element','footnoteRef')&&_0x1a09a9['add'](_0xf64dc3['getAttribute']('footnoteId'));return Array['from'](_0x1a09a9);}class i extends _0x7cf97c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x565c45}=this,{componentFactory:_0x5392d2}=_0x565c45['ui'];_0x5392d2['add']('insertFootnote',x(_0x565c45,_0x48319d)),_0x5392d2['add']('menuBar:insertFootnote',x(_0x565c45,_0x341efd)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x287808=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3c58d4;for(const _0x165be6 in _0x287808){const _0x17adb2=_0x165be6,_0x4ad6fd=_0x287808[_0x17adb2];if('footnotesLicenseKeyValid'==_0x4ad6fd||'footnotesLicenseKeyInvalid'==_0x4ad6fd||'footnotesLicenseKeyExpired'==_0x4ad6fd||'footnotesLicenseKeyDomainLimit'==_0x4ad6fd||'footnotesLicenseKeyNotAllowed'==_0x4ad6fd||'footnotesLicenseKeyEvaluationLimit'==_0x4ad6fd||'footnotesLicenseKeyTrialLimit'==_0x4ad6fd||'footnotesLicenseKeyUsageLimit'==_0x4ad6fd){delete _0x287808[_0x17adb2],_0x3c58d4=_0x4ad6fd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3c58d4&&_0x287808['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3c58d4&&_0x287808['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3c58d4&&_0x287808['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3c58d4&&_0x287808['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3c58d4&&_0x287808['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x3c58d4&&_0x287808['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x3c58d4&&_0x287808['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x49e65f,_0x2b7a7e){const _0x49957b=_0x49e65f['commands']['get']('insertFootnote');return _0x138482=>{const {t:t}=_0x138482,_0x3276aa=new _0x2b7a7e(_0x138482),_0x3976c9=_0x3276aa instanceof _0x341efd;return _0x3276aa['bind']('isEnabled')['to'](_0x49957b,'isEnabled'),_0x3276aa['set']({'label':t(_0x3976c9?'Footnote':'Insert\x20footnote'),'icon':_0x2445ed,'tooltip':!0x0}),_0x3276aa['on']('execute',()=>{_0x49957b['execute'](),_0x49e65f['editing']['view']['focus']();}),_0x3276aa;};}class lt extends _0x7cf97c{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x508bf5{['refresh'](){const {editor:_0x340b18}=this,_0x399245=_0x340b18['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x399245,this['value']=_0x399245?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x201935}){const {editor:_0x2f2a92}=this,_0x59dddd=_0x2f2a92['plugins']['get'](f),_0x23e069=_0x59dddd['getFootnotesDefinitionsObjectElement']();_0x23e069&&Q['includes'](_0x201935)&&_0x2f2a92['model']['change'](_0x5aa4bc=>{_0x5aa4bc['setAttribute']('footnotesListStyle',_0x201935,_0x23e069),_0x59dddd['_updateFootnotesCounters'](_0x5aa4bc);});}}class C extends _0x508bf5{['refresh'](){const {editor:_0x2e9a25}=this,_0x994bb0=_0x2e9a25['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x994bb0,this['value']=_0x994bb0?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0xd17fa9}){const {editor:_0x592316}=this,_0x482328=_0x592316['plugins']['get'](f),_0x2dc2ae=_0x482328['getFootnotesDefinitionsObjectElement']();_0x2dc2ae&&Number['isInteger'](_0xd17fa9)&&_0x592316['model']['change'](_0x28325e=>{_0x28325e['setAttribute']('footnotesListStart',_0xd17fa9,_0x2dc2ae),_0x482328['_updateFootnotesCounters'](_0x28325e);});}}class P extends _0x7cf97c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x355354}=this;_0x355354['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x355354['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x355354['commands']['add']('footnotesStyle',new S(_0x355354)),_0x355354['commands']['add']('footnotesStart',new C(_0x355354)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x84650f}=this,{schema:_0x14e53b}=_0x84650f['model'];_0x14e53b['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x264af2}=this,{conversion:_0x264233,model:_0x3a0ef4}=_0x264af2,{schema:_0x154df0}=_0x3a0ef4;_0x264233['for']('upcast')['add'](_0x9160d6=>{_0x9160d6['on']('element:ol',(_0x5c640e,_0x159c49,_0x430a1d)=>{const _0x495cae=_0x159c49['viewItem'],_0x54e451=_0x159c49['modelCursor']?.['parent'];_0x495cae['hasClass']('footnotes-list')&&_0x54e451?.['is']('element','footnotesDefinitions')&&(function(_0x5b4c65,_0x2b033d,_0x47e054,_0x5a2c0a){if(!_0x5a2c0a['checkAttribute'](_0x2b033d,'footnotesListStart'))return;let _0x3334c3=0x1;const _0x3a231a=_0x47e054['consumable']['consume'](_0x5b4c65,{'attributes':'start'});if(_0x3a231a){const _0x4a730b=Number['parseInt'](_0x5b4c65['getAttribute']('start'),0xa);Number['isNaN'](_0x4a730b)||(_0x3334c3=_0x4a730b);}!_0x3a231a&&_0x2b033d['hasAttribute']('footnotesListStart')||_0x47e054['writer']['setAttribute']('footnotesListStart',_0x3334c3,_0x2b033d);}(_0x495cae,_0x54e451,_0x430a1d,_0x154df0),function(_0x2fb1ee,_0x15f25c,_0x513110,_0x9b3d31){if(!_0x9b3d31['checkAttribute'](_0x15f25c,'footnotesListStyle'))return;let _0x4f9bd2='decimal',_0x593bff=!0x1;if(_0x513110['consumable']['consume'](_0x2fb1ee,{'attributes':'type'})){const _0xe4c2cf={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2fb1ee['getAttribute']('type')];_0xe4c2cf&&(_0x4f9bd2=_0xe4c2cf),_0x593bff=!0x0;}_0x513110['consumable']['consume'](_0x2fb1ee,{'styles':'list-style-type'})&&(_0x4f9bd2=function(_0x46fad3){switch(_0x46fad3){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x46fad3;}}(_0x2fb1ee['getStyle']('list-style-type')),_0x593bff=!0x0),!_0x593bff&&_0x15f25c['hasAttribute']('footnotesListStyle')||_0x513110['writer']['setAttribute']('footnotesListStyle',_0x4f9bd2,_0x15f25c);}(_0x495cae,_0x54e451,_0x430a1d,_0x154df0));});}),_0x264233['for']('downcast')['add'](_0x53081a=>{_0x53081a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x467c95,_0x58b694,_0x36876a)=>{if(!_0x36876a['consumable']['consume'](_0x58b694['item'],_0x467c95['name']))return;const _0x1f8f51=M(_0x58b694['item'],_0x36876a['mapper']),{attributeNewValue:_0x2159c2}=_0x58b694;null==_0x2159c2||0x1===_0x2159c2?_0x36876a['writer']['removeAttribute']('start',_0x1f8f51):_0x36876a['writer']['setAttribute']('start',String(_0x2159c2),_0x1f8f51);}),_0x53081a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1002c2,_0x40dd55,_0x369218)=>{if(!_0x369218['consumable']['consume'](_0x40dd55['item'],_0x1002c2['name']))return;const _0x1d5abe=M(_0x40dd55['item'],_0x369218['mapper']),{attributeNewValue:_0x38f711}=_0x40dd55;_0x38f711&&'decimal'!==_0x38f711?_0x369218['writer']['setStyle']('list-style-type',_0x38f711,_0x1d5abe):_0x369218['writer']['removeStyle']('list-style-type',_0x1d5abe);});});}['_definePostfixer'](){const {editor:_0xb51b62}=this,{model:_0xe5da04}=_0xb51b62,_0x26f3ed=_0xb51b62['plugins']['get'](f),_0x8d04b1=this['_getDefaultListStyle'](),_0x50d7b6=this['_getDefaultStartIndex']();_0xe5da04['document']['registerPostFixer'](_0x58d4c0=>{const _0x10bf49=_0xe5da04['document']['differ']['getChanges']();let _0x1eab44=!0x1;for(const _0x2be705 of _0x10bf49){if('insert'!==_0x2be705['type']||'$text'===_0x2be705['name'])continue;const _0x587f51=_0xe5da04['createRangeOn'](_0x2be705['position']['nodeAfter']);for(const _0x5d5c0f of _0x587f51['getItems']())_0x5d5c0f['is']('element','footnotesDefinitions')&&(!_0x5d5c0f['hasAttribute']('footnotesListStart')&&_0xe5da04['schema']['checkAttribute'](_0x5d5c0f,'footnotesListStart')&&(_0x58d4c0['setAttribute']('footnotesListStart',_0x50d7b6,_0x5d5c0f),_0x1eab44=!0x0),!_0x5d5c0f['hasAttribute']('footnotesListStyle')&&_0xe5da04['schema']['checkAttribute'](_0x5d5c0f,'footnotesListStyle')&&(_0x58d4c0['setAttribute']('footnotesListStyle',_0x8d04b1,_0x5d5c0f),_0x1eab44=!0x0));}return _0x1eab44&&_0x26f3ed['_updateFootnotesCounters'](_0x58d4c0),_0x1eab44;});}['_defineFormatter'](){const {editor:_0x13d669}=this;_0x13d669['plugins']['get'](f)['setFootnoteFormatter'](_0x47b5b3=>this['_formatFootnoteListValue'](_0x47b5b3));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1daa0b,value:_0x2ec1db,digits:_0x3590f0}){const _0x1f7e1b=_0x1daa0b['getAttribute']('footnotesListStyle'),_0x1f3aed=_0x1daa0b['getAttribute']('footnotesListStart'),_0x7f9bd0=Math['floor'](_0x2ec1db)+(_0x1f3aed??0x1)-0x1;switch(_0x1f7e1b){case'decimal-leading-zero':return function(_0x53e2e3,_0x3c157e){return String(_0x53e2e3)['padStart'](_0x3c157e,'0');}(_0x7f9bd0,Math['max'](0x2,_0x3590f0));case'lower-alpha':case'lower-latin':return N(_0x7f9bd0,!0x1);case'upper-alpha':case'upper-latin':return N(_0x7f9bd0,!0x0);case'lower-roman':return X(_0x7f9bd0,!0x1);case'upper-roman':return X(_0x7f9bd0,!0x0);default:return String(_0x7f9bd0);}}}function M(_0xeeb81d,_0x40a33e){const _0x44be53=_0x40a33e['toViewElement'](_0xeeb81d);return Array['from'](_0x44be53['getChildren']())['find'](_0x1bd821=>_0x1bd821['is']('element','ol')&&_0x1bd821['hasClass']('footnotes-list'));}function N(_0x492ddc,_0x5790eb){let _0x2abb3c='',_0x497fc6=_0x492ddc;for(;_0x497fc6>0x0;){const _0x421135=(_0x497fc6-0x1)%0x1a;_0x2abb3c=String['fromCharCode'](0x61+_0x421135)+_0x2abb3c,_0x497fc6=Math['floor']((_0x497fc6-0x1)/0x1a);}return _0x5790eb?_0x2abb3c['toUpperCase']():_0x2abb3c;}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(_0xca0d8f,_0x19c0dc){let _0x4ae0ac='',_0x35b02d=_0xca0d8f;for(const {value:_0x13d728,numeral:_0x27cbdd}of V)for(;_0x35b02d>=_0x13d728;)_0x4ae0ac+=_0x27cbdd,_0x35b02d-=_0x13d728;return _0x19c0dc?_0x4ae0ac:_0x4ae0ac['toLowerCase']();}class H extends _0x1e6c01{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x3409d7();['focusCycler'];constructor(_0x339404,{styleButtonViews:_0x164063,styleGridAriaLabel:_0x21fe90}){super(_0x339404),(this['focusCycler']=new _0x453729({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x164063,_0x21fe90),[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 _0x874f33 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x874f33['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x1e63b8=_0x42a236=>_0x42a236['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1e63b8),this['keystrokes']['set']('arrowleft',_0x1e63b8),this['keystrokes']['set']('arrowup',_0x1e63b8),this['keystrokes']['set']('arrowdown',_0x1e63b8);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x41f25b,_0x57f119){const _0x208144=new _0x1e6c01(this['locale']);return _0x208144['children']=_0x208144['createCollection'](),_0x208144['children']['addMany'](_0x41f25b),_0x208144['setTemplate']({'tag':'div','attributes':{'aria-label':_0x57f119,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x208144['children']}),_0x208144['children']['delegate']('execute')['to'](this),_0x208144['focus']=function(){for(const _0x3f3872 of this['children'])if(_0x3f3872 instanceof _0x48319d&&_0x3f3872['isOn'])return void _0x3f3872['focus']();this['children']['first']['focus']();},_0x208144['focusTracker']=new ot(),_0x208144['keystrokes']=new rt(),_0x208144['render'](),_0x208144['keystrokes']['listenTo'](_0x208144['element']),this['children']['add'](_0x208144),_0x208144;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0xc92f4e=this['_createStartIndexPropertyView'](),_0x1c3da3=[_0xc92f4e],_0x3484f7=new st(this['locale'],_0x1c3da3);return _0x3484f7['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3484f7['buttonView']['bind']('isEnabled')['toMany'](_0x1c3da3,'isEnabled',(..._0xac1ff3)=>_0xac1ff3['some'](_0x26e15c=>_0x26e15c)),_0x3484f7['buttonView']['on']('change:isEnabled',(_0x526461,_0x57648a,_0x13d668)=>{_0x13d668||(_0x3484f7['isCollapsed']=!0x0);}),this['children']['add'](_0x3484f7),[_0xc92f4e,_0x3484f7];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xa64885=new it(this['locale'],et);return _0xa64885['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xa64885['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xa64885['fieldView']['on']('input',()=>{const _0x18a2fb=_0xa64885['fieldView']['element'],_0x20255e=_0x18a2fb['valueAsNumber'];Number['isNaN'](_0x20255e)?_0xa64885['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x18a2fb['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x20255e}):_0xa64885['errorText']=t(_0x20255e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xa64885;}}class j extends _0x7cf97c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4d12df,_0xd701c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x417540}=this,{componentFactory:_0x3a8a66}=_0x417540['ui'];_0x417540['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3a8a66['add']('footnotesStyle',function(_0x90f032){return _0x10616c=>{const {t:t}=_0x10616c,_0x37a2d2=_0x90f032['commands']['get']('footnotesStyle'),_0x3e59bf=_0xc55082(_0x10616c),{buttonView:_0x1fc301}=_0x3e59bf;return _0x3e59bf['class']='ck-footnotes-styles-dropdown',_0x3e59bf['bind']('isEnabled')['to'](_0x37a2d2,'isEnabled'),_0x1fc301['set']({'label':t('Footnotes\x20style'),'icon':_0x2445ed,'tooltip':!0x0}),_0x3e59bf['once']('change:isOpen',()=>{const _0x2415ab=function({editor:_0x43d261,dropdownView:_0x54c37d}){const {t:t}=_0x43d261['locale'],_0x2c55ce=t('Footnotes\x20definitions\x20styles'),_0x3fade3=function(_0xe6b1a2){const t=_0xe6b1a2['locale']['t'],_0x2f16f2=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0xe0b9cb},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x315e77},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5e3ec5},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2e1c7c},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3238b6},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4b2dda}];return _0x2f16f2['map'](function(_0x4081b4){const _0x14e1b3=_0x4081b4['locale'];return({label:_0x4b9597,icon:_0x569cb2,tooltip:_0x2cd6fd,style:_0x3bc094})=>{const _0x56cbcc=_0x4081b4['commands']['get']('footnotesStyle'),_0x2dbeed=new _0x48319d(_0x14e1b3);return _0x2dbeed['set']({'label':_0x4b9597,'icon':_0x569cb2,'tooltip':_0x2cd6fd}),_0x2dbeed['bind']('isOn')['to'](_0x56cbcc,'value',_0xad9363=>_0xad9363===_0x3bc094),_0x2dbeed['bind']('isEnabled')['to'](_0x56cbcc,'isEnabled'),_0x2dbeed['on']('execute',()=>{_0x4081b4['execute']('footnotesStyle',{'value':_0x3bc094}),_0x4081b4['editing']['view']['focus']();}),_0x2dbeed;};}(_0xe6b1a2));}(_0x43d261),_0x2fdf4a=new H(_0x43d261['locale'],{'styleGridAriaLabel':_0x2c55ce,'styleButtonViews':_0x3fade3}),_0x3ca480=_0x43d261['commands']['get']('footnotesStart');return _0x2fdf4a['startIndexFieldView']['bind']('isEnabled')['to'](_0x3ca480),_0x2fdf4a['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x3ca480),_0x2fdf4a['on']('footnotesListStart',(_0x154cac,_0x22a6e9)=>{_0x43d261['execute']('footnotesStart',{'value':_0x22a6e9['startIndex']});}),_0x2fdf4a['delegate']('execute')['to'](_0x54c37d),_0x2fdf4a;}({'editor':_0x90f032,'dropdownView':_0x3e59bf});_0x3e59bf['panelView']['children']['add'](_0x2415ab);}),_0x3e59bf;};}(_0x417540));}['afterInit'](){const {editor:_0x3dd72f}=this,{t:t}=_0x3dd72f['locale'],_0x40f070=_0x3dd72f['plugins']['get'](_0xd701c),{defaultPositions:_0x3b6340}=_0x2bfacc;_0x40f070['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3dd72f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x26d4b5=>{let _0x159a02=_0x26d4b5['getFirstPosition']()?.['parent'];return _0x159a02?.['is']('$text')&&(_0x159a02=_0x159a02['parent']),_0x159a02?.['is']('element')?_0x159a02['findAncestor'](J):null;},'positions':[_0x3b6340['southArrowNorth'],_0x3b6340['southArrowNorthMiddleWest'],_0x3b6340['southArrowNorthMiddleEast'],_0x3b6340['southArrowNorthWest'],_0x3b6340['southArrowNorthEast'],_0x3b6340['northArrowSouth'],_0x3b6340['northArrowSouthMiddleWest'],_0x3b6340['northArrowSouthMiddleEast'],_0x3b6340['northArrowSouthWest'],_0x3b6340['northArrowSouthEast'],_0x3b6340['viewportStickyNorth']]});}}class ft extends _0x7cf97c{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x3263b6,Command as _0x390675}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x58422d,isWidget as _0x54c03d,toWidgetEditable as _0x5abf7f,WidgetToolbarRepository as _0x1d7021}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1c4e41,logWarning as _0x4e7b2a,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x39f5a2,ClickObserver as _0x2d1ad5}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x500ebe}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x9fabdf,ButtonView as _0xa80dc1,View as _0x425827,ViewCollection as _0x482a02,FocusCycler as _0x5b8f14,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x5d26d8,BalloonPanelView as _0x162d1c,createDropdown as _0x30f580}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2db4f8,IconListStyleDecimal as _0x173ec3,IconListStyleDecimalLeadingZero as _0x36e591,IconListStyleLowerRoman as _0x5efc48,IconListStyleUpperRoman as _0x526c34,IconListStyleLowerLatin as _0x5e7c46,IconListStyleUpperLatin as _0x526891}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x3685cd,_0x19b349){this['_model']=_0x3685cd,this['_elementName']=_0x19b349['elementName'],this['_getElementKey']=_0x19b349['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x16e1c6){const _0x371d3a=new Set(),_0x323632=new Map();for(const _0x170b89 of _0x16e1c6){if('insert'===_0x170b89['type']&&'$text'!==_0x170b89['name']&&_0x170b89['position']['nodeAfter']){const _0x2cfabd=this['_model']['createRangeOn'](_0x170b89['position']['nodeAfter']);for(const _0x23c6c9 of _0x2cfabd['getItems']()){if(!_0x23c6c9['is']('element',this['_elementName']))continue;const _0x5b693f=this['_getElementKey'](_0x23c6c9);_0x323632['has'](_0x5b693f)||_0x323632['set'](_0x5b693f,[]),_0x323632['get'](_0x5b693f)['push'](_0x23c6c9);}}if('remove'===_0x170b89['type']&&_0x170b89['name']===this['_elementName']){const _0x353b69=this['_getElementKey']({'getAttribute':_0x34332f=>_0x170b89['attributes']['get'](_0x34332f)});_0x371d3a['add'](_0x353b69);}}for(const [_0x242d65,_0x3b0358]of this['_trackedElements'])'$graveyard'===_0x3b0358['root']['rootName']&&_0x371d3a['add'](_0x242d65);for(const _0x1401de of _0x371d3a)this['_trackedElements']['delete'](_0x1401de);for(const [_0x2c8ec9,_0x3fddc9]of _0x323632)this['_trackedElements']['set'](_0x2c8ec9,_0x3fddc9[_0x3fddc9['length']-0x1]);const _0x280543=new Set();for(const [_0x2a290b,_0x4563a5]of _0x323632)_0x371d3a['has'](_0x2a290b)&&(_0x280543['add'](_0x4563a5[0x0]),_0x4563a5['length']>0x1?_0x323632['set'](_0x2a290b,_0x4563a5['slice'](0x1)):_0x323632['delete'](_0x2a290b),_0x371d3a['delete'](_0x2a290b));return{'removed':Array['from'](_0x371d3a),'inserted':Array['from'](_0x323632['values']())['flat'](),'moved':Array['from'](_0x280543)};}}class f extends _0x3263b6{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x538365){super(_0x538365),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x33485b=>_0x33485b['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x3fc6fa=>_0x3fc6fa['getAttribute']('footnoteId')});}['init'](){const {editor:_0x3a0136}=this,{model:_0x1e0a5d,data:_0x5c4b61}=_0x3a0136;_0x1e0a5d['document']['registerPostFixer'](_0xc6b38c=>{const _0x172030=_0x1e0a5d['document']['differ']['getChanges']();let _0x4e239d=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0xc6b38c,_0x172030)&&(_0x4e239d=!0x0),this['_handleFootnoteDefinitionsChanges'](_0xc6b38c,_0x172030)&&(_0x4e239d=!0x0),this['_handleFootnoteReferencesChanges'](_0xc6b38c,_0x172030)&&(_0x4e239d=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0xc6b38c)&&(_0x4e239d=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0xc6b38c)&&(_0x4e239d=!0x0),this['_sortFootnoteDefinitions'](_0xc6b38c)&&(_0x4e239d=!0x0),_0x4e239d;}),this['listenTo'](_0x1e0a5d['document'],'change:data',()=>{_0x1e0a5d['enqueueChange']({'isUndoable':!0x1},_0x41346c=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x41346c);});},{'priority':'low'}),this['listenTo'](_0x5c4b61,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5b38be){return this['_footnotes']['find'](_0x4dad67=>_0x4dad67['id']===_0x5b38be)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x53397c){this['_footnoteFormatter']=_0x53397c;}['_updateFootnotesCounters'](_0xc332ac,_0x2eaa3e=0x0){let _0x3141cb=!0x1;for(let _0x5a0391=_0x2eaa3e;_0x5a0391<this['_footnotes']['length'];_0x5a0391++)this['_updateFootnoteRefCounter'](_0xc332ac,_0x5a0391)&&(_0x3141cb=!0x0);return _0x3141cb;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3e9a05,_0x2858c9){const _0x5a245a=_0x3e9a05['createElement']('footnotesDefinitions',{});return _0x3e9a05['append'](_0x5a245a,_0x2858c9),this['_footnotesDefinitions']=_0x5a245a,_0x5a245a;}['_ensureFootnotesDefinitionsContainerExists'](_0x2fe20a){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x7c97af=this['_footnotes'][0x0]['reference']['root'],_0x11cb30=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2fe20a,_0x7c97af);for(const _0x1b45be of this['_footnotes'])_0x1b45be['definition']['parent']||_0x2fe20a['insert'](_0x1b45be['definition'],_0x11cb30,'end');this['_updateFootnotesCounters'](_0x2fe20a);}['_handleFootnotesDefinitionsObjectChanges'](_0x561bd8,_0x28b122){let _0x383a00=!0x1;const {inserted:_0x22d9ca,removed:_0x4cd46b,moved:_0x7f22a5}=this['_footnoteDefsContainerTracker']['getChanges'](_0x28b122);if(_0x7f22a5['length']&&(this['_footnotesDefinitions']=_0x7f22a5[0x0]),_0x22d9ca['length']){if(_0x22d9ca['length']>0x1||this['_footnotesDefinitions']&&_0x22d9ca['some'](_0x1927cc=>_0x1927cc!==this['_footnotesDefinitions'])){const _0x4d31b4=_0x561bd8['createElement']('footnotesDefinitions',{}),_0x52febf=[];this['_footnotesDefinitions']&&_0x52febf['push'](this['_footnotesDefinitions']),_0x52febf['push'](..._0x22d9ca),_0x561bd8['insert'](_0x4d31b4,_0x52febf[0x0],'before');for(const _0x5e3bd0 of _0x52febf)_0x561bd8['move'](_0x561bd8['createRangeIn'](_0x5e3bd0),_0x561bd8['createPositionAt'](_0x4d31b4,'end')),_0x561bd8['remove'](_0x5e3bd0);this['_footnotesDefinitions']=_0x4d31b4,this['_updateFootnotesCounters'](_0x561bd8),_0x383a00=!0x0;}else this['_footnotesDefinitions']=_0x22d9ca[0x0];}if(_0x4cd46b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x39020b of this['_footnotes'])_0x561bd8['remove'](_0x39020b['reference']),_0x383a00=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x383a00;}['_handleFootnoteDefinitionsChanges'](_0x23599a,_0x200418){let _0x1f552e=!0x1;const _0x4e121b=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x61d466,moved:_0x51ff00}=this['_footnoteDefsTracker']['getChanges'](_0x200418);for(const _0x205470 of[..._0x51ff00,..._0x61d466]){const _0x57a8cd=_0x205470['getAttribute']('footnoteId'),_0x566a69=this['getFootnote'](_0x57a8cd);_0x566a69&&(_0x566a69['definition']=_0x205470),_(_0x23599a,_0x4e121b,_0x205470)&&(_0x1f552e=!0x0);}return _0x1f552e;}['_handleFootnoteReferencesChanges'](_0x3fb207,_0x1d7eeb){let _0x534316=!0x1;const {removed:_0x582a30,inserted:_0x5a10ae,moved:_0x5c8b9d}=this['_footnoteRefsTracker']['getChanges'](_0x1d7eeb);for(const _0x122b59 of _0x582a30)this['_handleRemoveFootnoteReferenceById'](_0x3fb207,_0x122b59)&&(_0x534316=!0x0);for(const _0x3435ab of _0x5a10ae)this['_handleInsertedFootnoteReference'](_0x3fb207,_0x3435ab)&&(_0x534316=!0x0);for(const _0x30cc79 of _0x5c8b9d)this['_handleMovedFootnoteReference'](_0x3fb207,_0x30cc79)&&(_0x534316=!0x0);return _0x534316;}['_handleFootnotesDefinitionsObjectSync'](_0x586ae5){if(!this['_footnotesDefinitions'])return!0x1;let _0x2c46da=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x162da5=[];for(const _0x16ba05 of this['_footnotesDefinitions']['getChildren']()){const _0x20b24a=_0x16ba05['getAttribute']('footnoteId');this['getFootnote'](_0x20b24a)||(_0x162da5['unshift'](_0x16ba05),_0x2c46da=!0x0);}for(const _0x3c0ccf of _0x162da5)_0x586ae5['remove'](_0x3c0ccf);}const _0x115531=new Set(),_0x351936=[];for(const _0x1231ea of this['_footnotesDefinitions']['getChildren']()){const _0x798976=_0x1231ea['getAttribute']('footnoteId');_0x115531['has'](_0x798976)?(_0x351936['unshift'](_0x1231ea),_0x2c46da=!0x0):_0x115531['add'](_0x798976);}for(const _0x45cde3 of _0x351936)_0x586ae5['remove'](_0x45cde3);return this['_footnotesDefinitions']['childCount']||(_0x586ae5['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2c46da=!0x0),_0x2c46da;}['_handleInsertedFootnoteReference'](_0x54ce92,_0x2160fd){if(this['_footnotes']['find'](_0x436034=>_0x436034['reference']===_0x2160fd))return!0x1;let _0x4d9c00=!0x1;const _0x4b1958=_0x2160fd['getAttribute']('footnoteId'),_0x26a80a=this['_footnotes']['findIndex'](_0x46b242=>_0x46b242['id']===_0x4b1958);-0x1!==_0x26a80a&&(_0x54ce92['remove'](this['_footnotes'][_0x26a80a]['reference']),this['_footnotes']['splice'](_0x26a80a,0x1),_0x4d9c00=!0x0);let _0x134893=this['_footnotesDefinitions']?function(_0x2a0a05,_0x1b44f8){for(const _0x234ba9 of _0x2a0a05['getChildren']())if(_0x234ba9['getAttribute']('footnoteId')===_0x1b44f8)return _0x234ba9;return null;}(this['_footnotesDefinitions'],_0x4b1958):null;_0x134893||(_0x134893=_0x54ce92['createElement']('footnoteDefinition',{'footnoteId':_0x4b1958}),this['_footnotesDefinitions']&&(_0x54ce92['insert'](_0x134893,this['_footnotesDefinitions'],'end'),_0x4d9c00=!0x0));const _0x48a195={'id':_0x4b1958,'reference':_0x2160fd,'definition':_0x134893},_0x42be38=I(this['editor']['model'],this['_footnotes'],_0x2160fd);this['_footnotes']['splice'](_0x42be38,0x0,_0x48a195);let _0x15d8c6=_0x42be38;return-0x1!==_0x26a80a&&(_0x15d8c6=Math['min'](_0x42be38,_0x26a80a)),this['_updateFootnotesCounters'](_0x54ce92,_0x15d8c6)&&(_0x4d9c00=!0x0),_0x4d9c00;}['_handleRemoveFootnoteReferenceById'](_0x1e35f9,_0x540561){const _0x5747a2=this['_footnotes']['findIndex'](_0x4fd68b=>_0x4fd68b['id']===_0x540561);if(-0x1===_0x5747a2)return!0x1;let _0x4fd042=!0x1;const _0x2cf9c3=this['_footnotes'][_0x5747a2];return'$graveyard'!==_0x2cf9c3['definition']['root']['rootName']&&(_0x1e35f9['remove'](_0x2cf9c3['definition']),_0x4fd042=!0x0),this['_footnotes']['splice'](_0x5747a2,0x1),this['_updateFootnotesCounters'](_0x1e35f9,_0x5747a2)&&(_0x4fd042=!0x0),_0x4fd042;}['_handleMovedFootnoteReference'](_0x296af,_0x414ddb){const _0x202400=_0x414ddb['getAttribute']('footnoteId'),_0x4cb5b7=this['_footnotes']['findIndex'](_0x3de81b=>_0x3de81b['id']===_0x202400),_0x2ef627=this['_footnotes'][_0x4cb5b7];let _0x1b93b9=!0x1;_0x2ef627['reference']=_0x414ddb,this['_footnotes']['splice'](_0x4cb5b7,0x1);const _0x361d13=I(this['editor']['model'],this['_footnotes'],_0x414ddb);return this['_footnotes']['splice'](_0x361d13,0x0,_0x2ef627),this['_updateFootnotesCounters'](_0x296af,Math['min'](_0x4cb5b7,_0x361d13))&&(_0x1b93b9=!0x0),_0x1b93b9;}['_updateFootnoteRefCounter'](_0x25c9e3,_0x1d6902){if(!this['_footnotesDefinitions'])return!0x1;const _0x239873=this['_footnotes'][_0x1d6902];let _0x336cf7;return _0x336cf7=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x239873,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1d6902+0x1}):String(_0x1d6902+0x1),_0x239873['reference']['getAttribute']('footnoteCounter')!=_0x336cf7&&(_0x25c9e3['setAttribute']('footnoteCounter',_0x336cf7,_0x239873['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4dafca){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1b07e2,_0x3f17e9){if(_0x1b07e2['length']!==_0x3f17e9['length'])return!0x1;for(let _0x13da46=0x0;_0x13da46<_0x1b07e2['length'];_0x13da46++)if(_0x1b07e2[_0x13da46]!==_0x3f17e9[_0x13da46])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3984e7=>_0x3984e7['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x51ec4f=>_0x51ec4f['getAttribute']('footnoteId'))))return!0x1;let _0x352d36=!0x1;for(let _0x49ae3c=0x0;_0x49ae3c<this['_footnotes']['length'];_0x49ae3c++){const _0x17c5ec=this['_footnotes'][_0x49ae3c],_0x55e323=_0x4dafca['createPositionBefore'](_0x17c5ec['definition']),_0x573b31=_0x4dafca['createPositionAt'](this['_footnotesDefinitions'],_0x49ae3c);_0x55e323['isEqual'](_0x573b31)||(_0x4dafca['move'](_0x4dafca['createRangeOn'](_0x17c5ec['definition']),_0x573b31),_0x352d36=!0x0);}return _0x352d36;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3c203d){if(!this['_footnotes']['length'])return!0x1;const {model:_0x502396}=this['editor'];let _0x1f1b55=!0x1;for(let _0x475ded=0x0;_0x475ded<this['_footnotes']['length']-0x1;_0x475ded++){const _0x4f42a4=this['_footnotes'][_0x475ded],_0x165a17=this['_footnotes'][_0x475ded+0x1],_0x55dc17=_0x502396['createPositionBefore'](_0x4f42a4['reference']),_0x5bf194=_0x502396['createPositionBefore'](_0x165a17['reference']);'after'===_0x55dc17['compareWith'](_0x5bf194)&&(this['_handleMovedFootnoteReference'](_0x3c203d,_0x4f42a4['reference']),_0x475ded=-0x1,_0x1f1b55=!0x0);}return _0x1f1b55;}}function _(_0x3c7de5,_0x1f9a81,_0x215fee){if(_0x215fee['childCount'])return!0x1;const _0xb7a4c2=_0x1f9a81?'paragraph':'footnoteInlineContent';return _0x3c7de5['insert'](_0x3c7de5['createElement'](_0xb7a4c2),_0x215fee),!0x0;}function I(_0x2cb7a9,_0x51119f,_0xdcef2f){if(0x0===_0x51119f['length'])return 0x0;const _0x1e215d=_0x2cb7a9['createPositionBefore'](_0xdcef2f);for(let _0x248841=0x0;_0x248841<_0x51119f['length'];_0x248841++){const _0x1fddae=_0x51119f[_0x248841],_0x353fd6=_0x2cb7a9['createPositionBefore'](_0x1fddae['reference']);if('before'===_0x1e215d['compareWith'](_0x353fd6))return _0x248841;}const _0x183741=_0xdcef2f['root'];let _0x58cde4=-0x1;for(let _0x4f6d1e=_0x51119f['length']-0x1;_0x4f6d1e>=0x0;_0x4f6d1e--)if(_0x51119f[_0x4f6d1e]['reference']['root']===_0x183741){_0x58cde4=_0x4f6d1e;break;}if(-0x1!==_0x58cde4)return _0x58cde4+0x1;const _0x51759d=_0x2cb7a9['document']['getRootNames'](),_0x5dd428=_0x51759d['indexOf'](_0x183741['rootName']),_0x36a511=_0x51759d[_0x5dd428+0x1];if(_0x36a511){for(let _0x533a47=0x0;_0x533a47<_0x51119f['length'];_0x533a47++)if(_0x51119f[_0x533a47]['reference']['root']['rootName']===_0x36a511)return _0x533a47;}return _0x51119f['length'];}class m extends _0x390675{['refresh'](){const _0x26444b=this['editor']['model']['document']['selection'],_0x2cb613=this['_getPositionToInsertFootnote'](_0x26444b);this['isEnabled']=!!_0x2cb613;}['execute'](_0x50fd6d){const {editor:_0x4655e3}=this,{model:_0x445bb3}=_0x4655e3,{selection:_0x1025aa}=_0x445bb3['document'],_0x50b4cf=this['_getPositionToInsertFootnote'](_0x1025aa);if(!_0x50b4cf)return;const _0x5da51f=_0x4655e3['plugins']['get']('FootnotesEditing'),_0x50048d=_0x50fd6d?.['footnoteId']??_0x1c4e41();!function(_0x38189f){return'string'==typeof _0x38189f&&_0x38189f['length']>0x0&&!/\s/['test'](_0x38189f)&&!/^\d/['test'](_0x38189f);}(_0x50048d)?_0x4e7b2a('insert-footnote-command-executed-with-invalid-id'):(_0x445bb3['change'](_0x5b2536=>{const _0x39bf99=_0x5b2536['createElement']('footnoteRef',{'footnoteId':_0x50048d});_0x445bb3['insertObject'](_0x39bf99,_0x50b4cf,null);}),_0x5da51f['_moveSelectionToFootnoteDefinition'](_0x50048d));}['_getPositionToInsertFootnote'](_0x4773e0){const {model:_0x27f427}=this['editor'],{schema:_0x425663}=_0x27f427,_0x4f246d=_0x4773e0['getFirstRange']();for(const _0x3da190 of _0x4f246d['getItems']())if(_0x425663['isBlock'](_0x3da190)||_0x425663['isObject'](_0x3da190))return null;const _0x39417f=_0x4f246d['end'];return _0x425663['checkChild'](_0x39417f,'footnoteRef')?_0x39417f:null;}}class r extends _0x3263b6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x805e41}=this;_0x805e41['config']['define']('footnotes.multiBlock',!0x0),_0x805e41['commands']['add']('insertFootnote',new m(_0x805e41)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x430c8a){const _0xcbe02d=_0x1ade85([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]),_0x577dd1=0x47a28506,_0x4afda8=0x47a5fe0e^_0x577dd1,_0x4806ba=window[_0x1ade85([0x44,0x61,0x74,0x65])][_0x1ade85([0x6e,0x6f,0x77])](),_0x74147a=_0x430c8a[_0x1ade85([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x40c3ea=new window[(_0x1ade85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1b029f=>{_0x74147a[_0x1ade85([0x6f,0x6e,0x63,0x65])](_0x1ade85([0x72,0x65,0x61,0x64,0x79]),_0x1b029f);}),_0x3fe03d={[_0x1ade85([0x6b,0x74,0x79])]:_0x1ade85([0x45,0x43]),[_0x1ade85([0x75,0x73,0x65])]:_0x1ade85([0x73,0x69,0x67]),[_0x1ade85([0x63,0x72,0x76])]:_0x1ade85([0x50,0x2d,0x32,0x35,0x36]),[_0x1ade85([0x78])]:_0x1ade85([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]),[_0x1ade85([0x79])]:_0x1ade85([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]),[_0x1ade85([0x61,0x6c,0x67])]:_0x1ade85([0x45,0x53,0x32,0x35,0x36])},_0x3a1541=_0x74147a[_0x1ade85([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1ade85([0x67,0x65,0x74])](_0x1ade85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d74d9(){let _0x1c6ba7,_0x12a3de=null,_0x5e2a76=null;try{if(_0x3a1541==_0x1ade85([0x47,0x50,0x4c]))return _0x1ade85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1c6ba7=_0x5acae2(),!_0x1c6ba7)return _0x1ade85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1c6ba7[_0x1ade85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e2a76=_0x4843ff(_0x1c6ba7[_0x1ade85([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1c6ba7[_0x1ade85([0x6a,0x74,0x69])])),await _0x1ea0e3()?_0x399cdf()?_0x154715()?_0x1ade85([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x198817()?(_0x1c6ba7[_0x1ade85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ade85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x12a3de=_0x1cbf2d(_0x1ade85([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1c6ba7[_0x1ade85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1ade85([0x74,0x72,0x69,0x61,0x6c])&&(_0x12a3de=_0x1cbf2d(_0x1ade85([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5e156a()):_0x1ade85([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1ade85([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1ade85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1ade85([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x154715(){const _0x14e35e=[_0x1ade85([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1ade85([0x74,0x72,0x69,0x61,0x6c])][_0x1ade85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c6ba7[_0x1ade85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4806ba/0x3e8:0xe10*_0x4afda8;return _0x1c6ba7[_0x1ade85([0x65,0x78,0x70])]<_0x14e35e;}function _0x399cdf(){const _0x424334=_0x1c6ba7[_0x1ade85([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x424334&&(!!_0x424334[_0x1ade85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ade85([0x2a]))||!!_0x424334[_0x1ade85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ade85([0x46,0x4f,0x4f])));}function _0x198817(){const _0x1d825b=_0x1c6ba7[_0x1ade85([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1d825b||0x0==_0x1d825b[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x58e28c}=new URL(window[_0x1ade85([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1d825b[_0x1ade85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x58e28c))return!0x0;const _0x1ba2ad=_0x58e28c[_0x1ade85([0x73,0x70,0x6c,0x69,0x74])](_0x1ade85([0x2e]));return _0x1d825b[_0x1ade85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x330ed7=>_0x330ed7[_0x1ade85([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1ade85([0x2a])))[_0x1ade85([0x6d,0x61,0x70])](_0x387102=>_0x387102[_0x1ade85([0x73,0x70,0x6c,0x69,0x74])](_0x1ade85([0x2e])))[_0x1ade85([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x545795=>_0x545795[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ba2ad[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ade85([0x6d,0x61,0x70])](_0x13d751=>Array(_0x1ba2ad[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x13d751[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1ade85([0x66,0x69,0x6c,0x6c])](_0x13d751[0x0]===_0x1ade85([0x2a])?_0x1ade85([0x2a]):'')[_0x1ade85([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x13d751))[_0x1ade85([0x73,0x6f,0x6d,0x65])](_0x29927b=>_0x1ba2ad[_0x1ade85([0x65,0x76,0x65,0x72,0x79])]((_0x1b4c5b,_0x42b5d3)=>_0x29927b[_0x42b5d3]===_0x1b4c5b||_0x29927b[_0x42b5d3]===_0x1ade85([0x2a])));}function _0x5e156a(){return _0x12a3de&&_0x5e2a76?new window[(_0x1ade85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5b0234,_0x99f1a7)=>{_0x12a3de[_0x1ade85([0x74,0x68,0x65,0x6e])](_0x5b0234,_0x99f1a7),_0x5e2a76[_0x1ade85([0x74,0x68,0x65,0x6e])](_0x3ab5e8=>{_0x3ab5e8!=_0x1ade85([0x56,0x61,0x6c,0x69,0x64])&&_0x5b0234(_0x3ab5e8);},_0x99f1a7);}):_0x12a3de||_0x5e2a76||_0x1ade85([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4843ff(_0x5cd97c,_0x2c35be){return new window[(_0x1ade85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1290cd=>{if(_0x499011())return _0x1290cd(_0x1ade85([0x56,0x61,0x6c,0x69,0x64]));_0x27396f(),_0x74147a[_0x1ade85([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1ade85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x19f6e4=!0x1;const _0x4232e6=_0x1c4e41();function _0x48b201(_0x30190d){return!!_0x30190d&&(typeof _0x30190d===_0x1ade85([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30190d===_0x1ade85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30190d[_0x1ade85([0x74,0x68,0x65,0x6e])]===_0x1ade85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30190d[_0x1ade85([0x63,0x61,0x74,0x63,0x68])]===_0x1ade85([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x178919(_0x4904fd){_0x3eec5c(_0x4904fd)[_0x1ade85([0x74,0x68,0x65,0x6e])](_0x4184d5=>{if(!_0x4184d5||_0x4184d5[_0x1ade85([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1ade85([0x6f,0x6b]))return _0x1ade85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cc3ba(_0x5cabc9(_0x4232e6+_0x2c35be))!=_0x4184d5[_0x1ade85([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1ade85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1ade85([0x56,0x61,0x6c,0x69,0x64]);})[_0x1ade85([0x74,0x68,0x65,0x6e])](_0xe2c696=>(_0x3e3ed6(),_0xe2c696),()=>{const _0x3d7ad0=_0x48c062();return null==_0x3d7ad0?(_0x3e3ed6(),_0x1ade85([0x56,0x61,0x6c,0x69,0x64])):_0x1ade85(_0x4806ba-_0x3d7ad0>(0x63ae0106^_0x577dd1)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1ade85([0x74,0x68,0x65,0x6e])](_0x1290cd)[_0x1ade85([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1290cd(_0x1ade85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x739848=0x47946b86^_0x577dd1;function _0x3e3ed6(){const _0x45c2c8=_0x1ade85([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cc3ba(_0x5cabc9(_0x5cd97c)),_0x153d74=_0x574c38(_0x3cc3ba(window[_0x1ade85([0x4d,0x61,0x74,0x68])][_0x1ade85([0x63,0x65,0x69,0x6c])](_0x4806ba/_0x739848)));window[_0x1ade85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ade85([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x45c2c8,_0x153d74);}function _0x48c062(){const _0x3a277c=_0x1ade85([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cc3ba(_0x5cabc9(_0x5cd97c)),_0x557c81=window[_0x1ade85([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1ade85([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3a277c);return _0x557c81?window[_0x1ade85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x574c38(_0x557c81),0x10)*_0x739848:null;}function _0x3eec5c(_0x5e8ff1){return new window[(_0x1ade85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a2916,_0x15947e)=>{_0x5e8ff1[_0x1ade85([0x74,0x68,0x65,0x6e])](_0x5a2916,_0x15947e),window[_0x1ade85([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x15947e,0x47a351c6^_0x577dd1);});}}_0x74147a[_0x1ade85([0x6f,0x6e])](_0x1ade85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x59fcb4,_0x164986)=>{if(_0x164986[0x0]!=_0x5cd97c)return _0x1290cd(_0x1ade85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x164986[0x1]={..._0x164986[0x1],[_0x1ade85([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4232e6};},{[_0x1ade85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ade85([0x68,0x69,0x67,0x68])}),_0x74147a[_0x1ade85([0x6f,0x6e])](_0x1ade85([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x38bd2d=>{_0x48b201(_0x38bd2d[_0x1ade85([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x19f6e4=!0x0,_0x178919(_0x38bd2d[_0x1ade85([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1ade85([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1ade85([0x6c,0x6f,0x77])}),_0x40c3ea[_0x1ade85([0x74,0x68,0x65,0x6e])](()=>{_0x19f6e4||_0x1290cd(_0x1ade85([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x499011(){return _0x74147a[_0x1ade85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ade85([0x76,0x69,0x65,0x77])][_0x1ade85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1ade85([0x61,0x75,0x74,0x6f]);}function _0x27396f(){_0x74147a[_0x1ade85([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1ade85([0x76,0x69,0x65,0x77])][_0x1ade85([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1ade85([0x61,0x75,0x74,0x6f]);}}function _0x1cbf2d(_0x57d1ae){const _0x6f56c3=[new window[(_0x1ade85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4194ff=>setTimeout(_0x4194ff,0x47abbbca^_0x577dd1)),_0x40c3ea[_0x1ade85([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1ade85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x410d81=>{let _0x40ebd9=0x0;_0x74147a[_0x1ade85([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ade85([0x6f,0x6e])](_0x1ade85([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x38bd77,_0x1c38c0)=>{_0x1c38c0[0x0][_0x1ade85([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x40ebd9++,_0x40ebd9==(0x47a284fe^_0x577dd1)&&(_0x410d81(),_0x38bd77[_0x1ade85([0x6f,0x66,0x66])]());});}))];return window[_0x1ade85([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1ade85([0x72,0x61,0x63,0x65])](_0x6f56c3)[_0x1ade85([0x74,0x68,0x65,0x6e])](()=>_0x57d1ae);}async function _0x28f056(){await _0x40c3ea,_0x74147a[_0x1ade85([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ade85([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa59c,_0x74147a[_0x1ade85([0x6d,0x6f,0x64,0x65,0x6c])][_0x1ade85([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa59c,_0x74147a[_0x1ade85([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1ade85([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4892cc(_0x25e5e9){const _0x8ee987=_0x1109a6();_0x74147a[_0x8ee987]=_0x1ade85([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x25e5e9,_0x25e5e9!=_0x1ade85([0x56,0x61,0x6c,0x69,0x64])&&_0x28f056();}function _0x1109a6(){const _0x5442e1=window[_0x1ade85([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1ade85([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1ade85([0x6e,0x6f,0x77])]())[_0x1ade85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1ade85([0x2e]),'');let _0x5c2910=_0x1ade85([0x75]);for(let _0x4bc851=0x0;_0x4bc851<_0x5442e1[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4bc851+=0x2){let _0x2ff7b3=window[_0x1ade85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5442e1[_0x1ade85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4bc851,_0x4bc851+0x2));_0x2ff7b3>=_0xcbe02d[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2ff7b3-=_0xcbe02d[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5c2910+=_0xcbe02d[_0x2ff7b3];}return _0x5c2910;}function _0x5acae2(){const _0x3c10ad=_0x3a1541[_0x1ade85([0x73,0x70,0x6c,0x69,0x74])](_0x1ade85([0x2e]));if(0x3!=_0x3c10ad[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x24ae01(_0x3c10ad[0x1]);function _0x24ae01(_0x53b9c2){const _0x477561=_0x31fd07(_0x53b9c2);return _0x477561&&_0x336b87()?_0x477561:null;function _0x336b87(){const _0x966641=_0x477561[_0x1ade85([0x6a,0x74,0x69])],_0x5799bc=window[_0x1ade85([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x966641[_0x1ade85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x966641[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x320e02={..._0x477561,[_0x1ade85([0x6a,0x74,0x69])]:_0x966641[_0x1ade85([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x966641[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x320e02[_0x1ade85([0x76,0x63])],_0x5cabc9(_0x320e02)==_0x5799bc;}}}async function _0x1ea0e3(){let _0xf52fb1=!0x0;try{const _0x8c8d03=_0x3a1541[_0x1ade85([0x73,0x70,0x6c,0x69,0x74])](_0x1ade85([0x2e])),[_0x377679,_0x2b5bc9,_0x199c35]=_0x8c8d03;return _0x319828(_0x377679),await _0x26bea4(_0x377679,_0x2b5bc9,_0x199c35),_0xf52fb1;}catch{return!0x1;}function _0x319828(_0x5ca0e6){const _0x234344=_0x31fd07(_0x5ca0e6);_0x234344&&_0x234344[_0x1ade85([0x61,0x6c,0x67])]==_0x1ade85([0x45,0x53,0x32,0x35,0x36])||(_0xf52fb1=!0x1);}async function _0x26bea4(_0x5c6700,_0x311201,_0x12eb58){const _0x21e7c6=window[_0x1ade85([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1ade85([0x66,0x72,0x6f,0x6d])](_0x2d02fd(_0x12eb58),_0x321cb7=>_0x321cb7[_0x1ade85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x209441=new window[(_0x1ade85([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1ade85([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5c6700+_0x1ade85([0x2e])+_0x311201),_0x53b7fb=window[_0x1ade85([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1ade85([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53b7fb)return;const _0x1dd995=await _0x53b7fb[_0x1ade85([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1ade85([0x6a,0x77,0x6b]),_0x3fe03d,{[_0x1ade85([0x6e,0x61,0x6d,0x65])]:_0x1ade85([0x45,0x43,0x44,0x53,0x41]),[_0x1ade85([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1ade85([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1ade85([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53b7fb[_0x1ade85([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1ade85([0x6e,0x61,0x6d,0x65])]:_0x1ade85([0x45,0x43,0x44,0x53,0x41]),[_0x1ade85([0x68,0x61,0x73,0x68])]:{[_0x1ade85([0x6e,0x61,0x6d,0x65])]:_0x1ade85([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1dd995,_0x21e7c6,_0x209441)||(_0xf52fb1=!0x1);}}function _0x31fd07(_0x669699){return _0x669699[_0x1ade85([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1ade85([0x65,0x79]))?JSON[_0x1ade85([0x70,0x61,0x72,0x73,0x65])](_0x2d02fd(_0x669699)):null;}function _0x2d02fd(_0x3db2c4){return window[_0x1ade85([0x61,0x74,0x6f,0x62])](_0x3db2c4[_0x1ade85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1ade85([0x2b]))[_0x1ade85([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1ade85([0x2f])));}function _0x5cabc9(_0x54eecd){let _0x25f621=0x1505;function _0x51ac88(_0xc7ed8e){for(let _0x330086=0x0;_0x330086<_0xc7ed8e[_0x1ade85([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x330086++){const _0x9904e9=_0xc7ed8e[_0x1ade85([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x330086);_0x25f621=(_0x25f621<<0x5)+_0x25f621+_0x9904e9,_0x25f621&=_0x25f621;}}function _0x54f846(_0x10c183){Array[_0x1ade85([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10c183)?_0x10c183[_0x1ade85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x54f846):_0x10c183&&typeof _0x10c183==_0x1ade85([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1ade85([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10c183)[_0x1ade85([0x73,0x6f,0x72,0x74])]()[_0x1ade85([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x580572,_0x324d44])=>{_0x51ac88(_0x580572),_0x54f846(_0x324d44);}):_0x51ac88(window[_0x1ade85([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10c183));}return _0x54f846(_0x54eecd),_0x25f621>>>0x0;}function _0x3cc3ba(_0xac3f8f){return _0xac3f8f[_0x1ade85([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1ade85([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1ade85([0x30]));}function _0x574c38(_0x2f8141){return _0x2f8141[_0x1ade85([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1ade85([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1ade85([0x6a,0x6f,0x69,0x6e])]('');}function _0x4fa59c(){}function _0x1ade85(_0x22f733){return _0x22f733['map'](_0x40be09=>String['fromCharCode'](_0x40be09))['join']('');}_0x4892cc(await _0x3d74d9());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4721de){const {plugins:_0x5047f2,editing:_0xe58aa,model:_0x1bbbbd}=this['editor'],_0x22bfed=_0x5047f2['get'](f)['getFootnote'](_0x4721de);return!!_0x22bfed&&(_0x1bbbbd['change'](_0x56a611=>{_0x56a611['setSelection'](_0x56a611['createPositionAt'](_0x22bfed['definition'],'end'));}),_0xe58aa['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x165a55){const {plugins:_0x51efdc,editing:_0x13ce72,model:_0x4ac1ec}=this['editor'],_0x4661c3=_0x51efdc['get'](f)['getFootnote'](_0x165a55);return!!_0x4661c3&&(_0x4ac1ec['change'](_0x47ada5=>{_0x47ada5['setSelection'](_0x4661c3['reference'],'on');}),_0x13ce72['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2cd0e4}=this['editor']['model'],_0x38e0b3=this['editor']['config']['get']('footnotes.multiBlock');_0x2cd0e4['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2cd0e4['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2cd0e4['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x38e0b3?_0x2cd0e4['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2cd0e4['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2cd0e4['addChildCheck'](_0x118839=>{for(const _0x43b96b of _0x118839)if('footnoteDefinition'===_0x43b96b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xff640a}=this,{conversion:_0x174ba1,editing:_0x38d6a6}=_0xff640a,{t:t}=_0xff640a['locale'];_0x174ba1['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3b8733,{writer:_0x52200e,consumable:_0x3831d1})=>{const _0x2abfb8=_0x3b8733['getChild'](0x0);if(!_0x2abfb8||!_0x2abfb8['is']('element','a'))return null;const _0x2f6903=_0x2abfb8['getAttribute']('href')||'';if(!_0x2f6903['startsWith']('#'))return null;const _0x24fb95=_0x2f6903['replace'](/^#/,'');if(!_0x24fb95)return null;_0x3831d1['consume'](_0x2abfb8,{'name':!0x0,'attributes':['href']});for(const {item:_0x15cf1d}of _0x38d6a6['view']['createRangeIn'](_0x2abfb8))_0x15cf1d['is']('$textProxy')?_0x3831d1['consume'](_0x15cf1d['textNode'],{'name':!0x0}):_0x15cf1d['is']('element')&&_0x3831d1['consume'](_0x15cf1d,{'name':!0x0});return _0x52200e['createElement']('footnoteRef',{'footnoteId':_0x24fb95});}}),_0x174ba1['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5bd361,{writer:_0x44fe83})=>D(_0x5bd361,_0x44fe83)}),_0x174ba1['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x35cf6b,{writer:_0x152cab})=>{const _0x25cafb=_0x35cf6b['getAttribute']('footnoteCounter');return _0x58422d(D(_0x35cf6b,_0x152cab),_0x152cab,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x25cafb)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3f42a8}=this,{t:t}=_0x3f42a8['locale'],{conversion:_0x20a562}=_0x3f42a8;_0x20a562['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x20a562['for']('upcast')['add'](_0x621e7f=>{_0x621e7f['on']('element:ol',(_0x1777a4,_0x14000c,_0x366182)=>{const _0x1adec1=_0x14000c['viewItem'];if(!_0x1adec1['hasClass']('footnotes-list')||!_0x14000c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x366182['consumable']['consume'](_0x1adec1,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x280d86,modelCursor:_0x43ac6f}=_0x366182['convertChildren'](_0x14000c['viewItem'],_0x14000c['modelCursor']);_0x14000c['modelRange']=_0x280d86,_0x14000c['modelCursor']=_0x43ac6f;}),_0x621e7f['on']('element:hr',(_0x2f5ec8,_0x1b2c44,_0x3e6414)=>{const _0x442f7d=_0x1b2c44['viewItem'];_0x442f7d['hasClass']('footnotes-divider')&&_0x1b2c44['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3e6414['consumable']['consume'](_0x442f7d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x20a562['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5dd1fb,{writer:_0x246630})=>v(_0x246630)}),_0x20a562['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x476157,{writer:_0x4776f5})=>{const _0x855544=v(_0x4776f5,{'data-footnotes-list-label':t('Footnotes')}),_0x5a35e3=_0x58422d(_0x855544,_0x4776f5,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4776f5['setCustomProperty']('footnotesDefinitions',!0x0,_0x5a35e3),_0x5a35e3;}});}['_defineDefinitionConverters'](){const {editor:_0x528314}=this,{conversion:_0x538efa,locale:_0xe751fe}=_0x528314,_0x25a868=_0x528314['config']['get']('footnotes.multiBlock');_0x538efa['for']('upcast')['add'](_0xa31bf5=>{_0xa31bf5['on']('element:li',(_0x49e89c,_0x2d45ba,_0x213cfb)=>{const _0x5bb062=_0x2d45ba['viewItem'];if(!_0x5bb062['hasClass']('footnote-definition')||!_0x5bb062['getAttribute']('id'))return;const _0xdb5f0a=_0x5bb062['parent'];if(!_0xdb5f0a['is']('element','ol')||!_0xdb5f0a['hasClass']('footnotes-list'))return;if(!_0x213cfb['consumable']['test'](_0x5bb062,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x417161=_0x213cfb['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5bb062['getAttribute']('id')});if(!_0x213cfb['safeInsert'](_0x417161,_0x2d45ba['modelCursor']))return;_0x213cfb['consumable']['consume'](_0x5bb062,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x52bfe8=Array['from'](_0x5bb062['getChildren']())['find'](_0x11930a=>_0x11930a['is']('element')&&_0x11930a['hasClass']('footnote-content'));for(const _0x516518 of _0x5bb062['getChildren']())_0x516518['is']('element')&&(_0x213cfb['consumable']['consume'](_0x516518,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x213cfb['consumable']['consume'](_0x516518,{'name':!0x0,'classes':'footnote-content'}));if(_0x52bfe8){if(_0x25a868)_0x213cfb['convertChildren'](_0x52bfe8,_0x417161);else{const _0x1f90e1=_0x213cfb['writer']['createElement']('footnoteInlineContent');_0x213cfb['writer']['insert'](_0x1f90e1,_0x417161),_0x213cfb['convertChildren'](_0x52bfe8,_0x1f90e1);}}_0x213cfb['updateConversionResult'](_0x417161,_0x2d45ba);});}),_0x538efa['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x298c9b,{writer:_0x1f841b})=>b(_0x298c9b,_0x1f841b,_0xe751fe,{'dataPipeline':!0x0})}),_0x538efa['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x315c86,{writer:_0x4e9772})=>b(_0x315c86,_0x4e9772,_0xe751fe)});}['_defineBogusParagraphConverters'](){const {editor:_0x1c3860}=this,{conversion:_0x30aab6}=_0x1c3860;_0x1c3860['config']['get']('footnotes.multiBlock')?(_0x30aab6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x30aab6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1c3860['model']['document'],'change:data',()=>{!function(_0x5d3ab4,_0x3a508c){const _0x4ca565=_0x5d3ab4['document']['differ'],_0x5476c1=new Set();for(const _0xef54ed of _0x4ca565['getChanges']()){const _0x3d602f='attribute'==_0xef54ed['type']?_0xef54ed['range']['start']['parent']:_0xef54ed['position']['parent'];_0x3d602f['is']('element','footnoteDefinition')&&_0x5476c1['add'](_0x3d602f);}for(const _0x1477fe of _0x5476c1['values']()){const _0x43ac47=Array['from'](_0x1477fe['getChildren']())['filter'](_0xb71649=>g(_0xb71649,_0x3a508c['mapper']));for(const _0x5ab3f0 of _0x43ac47)_0x3a508c['reconvertItem'](_0x5ab3f0);}}(_0x1c3860['model'],_0x1c3860['editing']);})):(_0x30aab6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x30aab6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x34d07f,{writer:_0x2d1f02})=>{const _0x413c50=_0x2d1f02['createContainerElement']('span');return _0x2d1f02['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x413c50),_0x413c50;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4621fd}=this,{editing:_0x181da6,t:t}=_0x4621fd,_0x4d843d=_0x4621fd['model']['document']['selection'];_0x4621fd['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4621fd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x181da6['view']['document'],'enter',(_0x40b573,_0x219541)=>{const _0xc08dac=function(_0x37eb2e){const _0x1018d3=_0x37eb2e['getSelectedElement']();if(_0x1018d3?.['is']('element','footnoteRef'))return _0x1018d3;return null;}(_0x4d843d);if(_0xc08dac){const _0x3a621c=_0xc08dac['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3a621c),_0x219541['preventDefault'](),_0x40b573['stop']();}},{'context':_0x54c03d});}['_defineClickHandlers'](){const {editor:_0x483a97}=this,{editing:_0x45ce2d}=_0x483a97;_0x483a97['editing']['view']['addObserver'](_0x39f5a2),_0x483a97['editing']['view']['addObserver'](_0x2d1ad5);let _0x2c700c=!0x1;this['listenTo'](_0x45ce2d['view']['document'],'pointerdown',(_0xdc9cdc,_0x190edd)=>{const {target:_0x338ee5}=_0x190edd,_0x1142b7=_0x45ce2d['view']['document']['selection'];_0x2c700c=!!(_0x338ee5?.['is']('element','a')&&_0x338ee5['parent']?.['is']('element','sup')&&_0x338ee5['parent']['hasClass']('footnote'))&&_0x1142b7['getSelectedElement']()===_0x338ee5['parent'];},{'priority':'high'}),this['listenTo'](_0x45ce2d['view']['document'],'click',(_0x5a2e57,_0x55fbc7)=>{const {target:_0x397954}=_0x55fbc7;if(!_0x397954?.['is']('element','a'))return;if(_0x397954['parent']?.['is']('element','sup')&&_0x397954['parent']['hasClass']('footnote')&&!_0x2c700c)return void _0x55fbc7['preventDefault']();let _0x3fa49d=_0x397954['getAttribute']('href');if(!_0x3fa49d?.['startsWith']('#'))return;_0x3fa49d=_0x3fa49d['slice'](0x1);let _0x5d42ab=!0x1;(_0x3fa49d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3fa49d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3fa49d))&&(_0x5d42ab=!0x0),_0x5d42ab&&(_0x55fbc7['preventDefault'](),_0x5a2e57['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x495132}={}){return(_0x13ae2a,{writer:_0x1d4d7b})=>{if(!p(_0x13ae2a))return null;if(!_0x495132)return _0x1d4d7b['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3c281c=_0x1d4d7b['createContainerElement']('p');return _0x1d4d7b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3c281c),_0x3c281c;};}function p(_0x1ed054){const {parent:_0x335a78}=_0x1ed054;if(!_0x335a78?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x335a78['childCount'])return!0x1;for(const _0x2b4250 of _0x1ed054['getAttributeKeys']())if(!_0x2b4250['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2b4250)return!0x1;return!0x0;}function g(_0x95008a,_0x3ef466){if(!_0x95008a['is']('element','paragraph'))return!0x1;const _0x1bfc24=_0x3ef466['toViewElement'](_0x95008a);return!!_0x1bfc24&&p(_0x95008a)!==_0x1bfc24['is']('element','span');}function J(_0x4566cc){return _0x54c03d(_0x4566cc)&&_0x4566cc['is']('containerElement')&&!!_0x4566cc['getCustomProperty']('footnotesDefinitions');}function v(_0x14f3e8,_0x12db0b={}){const _0x11949b=_0x14f3e8['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x45ac04=_0x14f3e8['createContainerElement']('ol',{'class':'footnotes-list'},_0x14f3e8['createSlot']());return _0x14f3e8['createContainerElement']('div',{'class':'footnotes',..._0x12db0b},[_0x11949b,_0x45ac04]);}function D(_0x160b77,_0x55e13c){const _0x46cb2d=_0x160b77['getAttribute']('footnoteId'),_0x521fb4=_0x160b77['getAttribute']('footnoteCounter'),_0x7fde8a=_0x55e13c['createUIElement']('a',{'href':'#'+_0x46cb2d},function(_0x1a747e){const _0x5a95c2=this['toDomElement'](_0x1a747e);return _0x5a95c2['textContent']=_0x521fb4,_0x5a95c2;}),_0x69d8c2=_0x55e13c['createContainerElement']('sup',{'id':'ref-'+_0x46cb2d,'class':'footnote'},[_0x7fde8a]);return _0x69d8c2['getFillerOffset']=()=>null,_0x69d8c2;}function b(_0x26fa5e,_0x5033e2,_0x52c9a3,{dataPipeline:_0x5ae599}={}){const {t:t}=_0x52c9a3,_0x1d6d3c=_0x26fa5e['getAttribute']('footnoteId'),_0x118c88=_0x5033e2['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1d6d3c},function(_0x5b1a54){const _0x3996a8=this['toDomElement'](_0x5b1a54);return _0x3996a8['innerText']='^',_0x3996a8;}),_0x4c412f=_0x5ae599?_0x5033e2['createContainerElement']('div',{'class':'footnote-content'}):_0x5abf7f(_0x5033e2['createEditableElement']('div',{'class':'footnote-content'}),_0x5033e2,{'label':t('Footnote\x20content.')});return _0x5033e2['insert'](_0x5033e2['createPositionAt'](_0x4c412f,0x0),_0x5033e2['createSlot']()),_0x5033e2['createContainerElement']('li',{'class':'footnote-definition','id':_0x1d6d3c},[_0x118c88,_0x4c412f]);}class e extends _0x3263b6{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x500ebe];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x242049}=this,{plugins:_0x214475,model:_0x1e2058}=_0x242049,_0x4d5874=_0x214475['get'](_0x500ebe),_0x3700b2=_0x214475['get'](f);this['listenTo'](_0x4d5874,'outputTransformation',(_0x1f7799,_0x4f168a)=>{const _0x5676b9=c(_0x1e2058['createRangeIn'](_0x4f168a['content']));if(!_0x5676b9['length'])return;const _0x538cb1=_0x3700b2['getFootnotes'](),_0x22eb96=_0x5676b9['reduce']((_0x3f003a,_0x46a233)=>{const _0x134dc7=_0x538cb1['find'](_0x373310=>_0x373310['id']===_0x46a233);if(_0x134dc7){const _0x2e95a2=_0x242049['data']['toView'](_0x134dc7['definition'],{'isClipboardPipeline':!0x0}),_0x42169d=_0x242049['data']['htmlProcessor']['toData'](_0x2e95a2);_0x3f003a[_0x134dc7['id']]=_0x42169d;}return _0x3f003a;},Object['create'](null));_0x4f168a['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x22eb96));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x38e841}=this,{model:_0x760a81,plugins:_0x1e0672}=_0x38e841,{view:_0x27cc93}=_0x38e841['editing'],_0x4bc00d=_0x1e0672['get'](_0x500ebe),_0x2aebe6=_0x1e0672['get'](f),_0x4a18e5=_0x38e841['config']['get']('footnotes.multiBlock');let _0x43b999=null;this['listenTo'](_0x27cc93['document'],'clipboardInput',(_0x5ef717,_0xe492fe)=>{const _0x2b96b8=_0xe492fe['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x43b999=_0x2b96b8?JSON['parse'](_0x2b96b8):null;}),this['listenTo'](_0x4bc00d,'contentInsertion',(_0x22185f,_0x59ddf9)=>{const _0x228207=_0x59ddf9['sourceEditorId']===this['editor']['id'];_0x228207&&'drop'===_0x59ddf9['method']||_0x760a81['change'](_0x43db38=>{let _0x227c4f=_0x2aebe6['getFootnotesDefinitionsObjectElement']();const _0x2f6a24=!!_0x227c4f&&Array['from'](_0x760a81['document']['selection']['getSelectedBlocks']())['includes'](_0x227c4f);if((_0x227c4f&&!_0x2f6a24||!_0x227c4f&&!_0x43b999)&&function(_0x16b3c4,_0x2f3ad8){const _0x53d336=[];for(const {item:_0x43171b}of _0x16b3c4['createRangeIn'](_0x2f3ad8))_0x43171b['is']('element','footnotesDefinitions')&&_0x53d336['push'](_0x43171b);for(const _0x100f37 of _0x53d336)_0x16b3c4['remove'](_0x100f37);}(_0x43db38,_0x59ddf9['content']),!_0x43b999)return;const {selection:_0x18343c}=_0x760a81['document'],_0x922b6e=_0x18343c['getFirstRange']()['root'];_0x227c4f&&!_0x2f6a24||(_0x227c4f=function(_0x4bbbf9,_0x11b4c1){for(const {item:_0x13d5da}of _0x4bbbf9['createRangeIn'](_0x11b4c1))if(_0x13d5da['is']('element','footnotesDefinitions'))return _0x13d5da;return null;}(_0x43db38,_0x59ddf9['content']),_0x227c4f||=_0x2aebe6['_insertEmptyFootnotesDefinitionsContainer'](_0x43db38,_0x922b6e));const _0x507881=Array['from'](_0x18343c['getRanges']())['flatMap'](c),_0x185d1a=function(_0x54835a,_0x4bb387,_0x27bbd0){const _0x4959a9=Object['create'](null);for(const {item:_0x225542}of _0x54835a['createRangeIn'](_0x4bb387))if(_0x225542['is']('element','footnoteRef')){const _0x4465d7=_0x225542['getAttribute']('footnoteId');if(!_0x27bbd0(_0x4465d7))continue;_0x4959a9[_0x4465d7]||(_0x4959a9[_0x4465d7]=_0x1c4e41()),_0x54835a['setAttribute']('footnoteId',_0x4959a9[_0x4465d7],_0x225542);}return _0x4959a9;}(_0x43db38,_0x59ddf9['content'],_0x4c8e1e=>{if(!_0x228207)return!0x0;return!!_0x2aebe6['getFootnote'](_0x4c8e1e)&&!_0x507881['includes'](_0x4c8e1e);});for(const [_0x2df5cb,_0x96cc1b]of Object['entries'](_0x43b999)){const _0x4aa1db=_0x185d1a[_0x2df5cb]||_0x2df5cb,_0x2bca1b=_0x43db38['createElement']('footnoteDefinition',{'footnoteId':_0x4aa1db}),_0x576437=_0x38e841['data']['htmlProcessor']['toView'](_0x96cc1b);let _0x5e1f7b;if(_0x4a18e5)_0x5e1f7b=_0x38e841['data']['toModel'](_0x576437,_0x2bca1b);else{_0x5e1f7b=_0x43db38['createElement']('footnoteInlineContent');const _0x4258fe=_0x38e841['data']['toModel'](_0x576437,_0x5e1f7b);_0x43db38['insert'](_0x4258fe,_0x5e1f7b);}_0x43db38['append'](_0x5e1f7b,_0x2bca1b),_0x43db38['insert'](_0x2bca1b,_0x227c4f,'end');}_0x43b999=null;});});}}function c(_0x2baa9b){const _0x1abceb=new Set();for(const {item:_0xf85ee7}of _0x2baa9b)_0xf85ee7['is']('element','footnoteRef')&&_0x1abceb['add'](_0xf85ee7['getAttribute']('footnoteId'));return Array['from'](_0x1abceb);}class i extends _0x3263b6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x100669}=this,{componentFactory:_0x3d63ca}=_0x100669['ui'];_0x3d63ca['add']('insertFootnote',x(_0x100669,_0xa80dc1)),_0x3d63ca['add']('menuBar:insertFootnote',x(_0x100669,_0x9fabdf)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x1b6f74=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x45557a;for(const _0x3fe56c in _0x1b6f74){const _0xab918a=_0x3fe56c,_0x1c9534=_0x1b6f74[_0xab918a];if('footnotesLicenseKeyValid'==_0x1c9534||'footnotesLicenseKeyInvalid'==_0x1c9534||'footnotesLicenseKeyExpired'==_0x1c9534||'footnotesLicenseKeyDomainLimit'==_0x1c9534||'footnotesLicenseKeyNotAllowed'==_0x1c9534||'footnotesLicenseKeyEvaluationLimit'==_0x1c9534||'footnotesLicenseKeyTrialLimit'==_0x1c9534||'footnotesLicenseKeyUsageLimit'==_0x1c9534){delete _0x1b6f74[_0xab918a],_0x45557a=_0x1c9534,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x45557a&&_0x1b6f74['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x45557a&&_0x1b6f74['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x45557a&&_0x1b6f74['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x45557a&&_0x1b6f74['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x45557a&&_0x1b6f74['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x45557a&&_0x1b6f74['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x45557a&&_0x1b6f74['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x29ad3a,_0x556e26){const _0x10814c=_0x29ad3a['commands']['get']('insertFootnote');return _0x2cea72=>{const {t:t}=_0x2cea72,_0x110327=new _0x556e26(_0x2cea72),_0x1d65f4=_0x110327 instanceof _0x9fabdf;return _0x110327['bind']('isEnabled')['to'](_0x10814c,'isEnabled'),_0x110327['set']({'label':t(_0x1d65f4?'Footnote':'Insert\x20footnote'),'icon':_0x2db4f8,'tooltip':!0x0}),_0x110327['on']('execute',()=>{_0x10814c['execute'](),_0x29ad3a['editing']['view']['focus']();}),_0x110327;};}class lt extends _0x3263b6{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x390675{['refresh'](){const {editor:_0x15f60e}=this,_0x521ee9=_0x15f60e['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x521ee9,this['value']=_0x521ee9?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x573c0f}){const {editor:_0x2fc223}=this,_0x531f22=_0x2fc223['plugins']['get'](f),_0x183971=_0x531f22['getFootnotesDefinitionsObjectElement']();_0x183971&&Q['includes'](_0x573c0f)&&_0x2fc223['model']['change'](_0x474a11=>{_0x474a11['setAttribute']('footnotesListStyle',_0x573c0f,_0x183971),_0x531f22['_updateFootnotesCounters'](_0x474a11);});}}class C extends _0x390675{['refresh'](){const {editor:_0x4f826b}=this,_0x106772=_0x4f826b['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x106772,this['value']=_0x106772?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3f6d2a}){const {editor:_0x15e0aa}=this,_0x3e3c55=_0x15e0aa['plugins']['get'](f),_0x5ab018=_0x3e3c55['getFootnotesDefinitionsObjectElement']();_0x5ab018&&Number['isInteger'](_0x3f6d2a)&&_0x15e0aa['model']['change'](_0x48841c=>{_0x48841c['setAttribute']('footnotesListStart',_0x3f6d2a,_0x5ab018),_0x3e3c55['_updateFootnotesCounters'](_0x48841c);});}}class P extends _0x3263b6{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x258ff7}=this;_0x258ff7['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x258ff7['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x258ff7['commands']['add']('footnotesStyle',new S(_0x258ff7)),_0x258ff7['commands']['add']('footnotesStart',new C(_0x258ff7)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x5d9411}=this,{schema:_0x166ab9}=_0x5d9411['model'];_0x166ab9['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x146b58}=this,{conversion:_0x15dde5,model:_0x506b76}=_0x146b58,{schema:_0xddbc9f}=_0x506b76;_0x15dde5['for']('upcast')['add'](_0x149474=>{_0x149474['on']('element:ol',(_0x524e4d,_0x18bd66,_0x160116)=>{const _0xdd3fd6=_0x18bd66['viewItem'],_0xacfb88=_0x18bd66['modelCursor']?.['parent'];_0xdd3fd6['hasClass']('footnotes-list')&&_0xacfb88?.['is']('element','footnotesDefinitions')&&(function(_0x13e759,_0x33493a,_0x28b059,_0x4a77b3){if(!_0x4a77b3['checkAttribute'](_0x33493a,'footnotesListStart'))return;let _0x149513=0x1;const _0x3cb90b=_0x28b059['consumable']['consume'](_0x13e759,{'attributes':'start'});if(_0x3cb90b){const _0x2da53a=Number['parseInt'](_0x13e759['getAttribute']('start'),0xa);Number['isNaN'](_0x2da53a)||(_0x149513=_0x2da53a);}!_0x3cb90b&&_0x33493a['hasAttribute']('footnotesListStart')||_0x28b059['writer']['setAttribute']('footnotesListStart',_0x149513,_0x33493a);}(_0xdd3fd6,_0xacfb88,_0x160116,_0xddbc9f),function(_0x22c4be,_0x513bc0,_0x4e3bff,_0x790c83){if(!_0x790c83['checkAttribute'](_0x513bc0,'footnotesListStyle'))return;let _0x5f44f1='decimal',_0x441a8f=!0x1;if(_0x4e3bff['consumable']['consume'](_0x22c4be,{'attributes':'type'})){const _0x2594a0={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x22c4be['getAttribute']('type')];_0x2594a0&&(_0x5f44f1=_0x2594a0),_0x441a8f=!0x0;}_0x4e3bff['consumable']['consume'](_0x22c4be,{'styles':'list-style-type'})&&(_0x5f44f1=function(_0x22ad02){switch(_0x22ad02){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x22ad02;}}(_0x22c4be['getStyle']('list-style-type')),_0x441a8f=!0x0),!_0x441a8f&&_0x513bc0['hasAttribute']('footnotesListStyle')||_0x4e3bff['writer']['setAttribute']('footnotesListStyle',_0x5f44f1,_0x513bc0);}(_0xdd3fd6,_0xacfb88,_0x160116,_0xddbc9f));});}),_0x15dde5['for']('downcast')['add'](_0x59bed3=>{_0x59bed3['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xadd72b,_0x2f2057,_0x5e18e4)=>{if(!_0x5e18e4['consumable']['consume'](_0x2f2057['item'],_0xadd72b['name']))return;const _0x4cd8cb=M(_0x2f2057['item'],_0x5e18e4['mapper']),{attributeNewValue:_0x8d8eb9}=_0x2f2057;null==_0x8d8eb9||0x1===_0x8d8eb9?_0x5e18e4['writer']['removeAttribute']('start',_0x4cd8cb):_0x5e18e4['writer']['setAttribute']('start',String(_0x8d8eb9),_0x4cd8cb);}),_0x59bed3['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1138e1,_0x5b58d0,_0xbcf0ad)=>{if(!_0xbcf0ad['consumable']['consume'](_0x5b58d0['item'],_0x1138e1['name']))return;const _0x431003=M(_0x5b58d0['item'],_0xbcf0ad['mapper']),{attributeNewValue:_0x3de480}=_0x5b58d0;_0x3de480&&'decimal'!==_0x3de480?_0xbcf0ad['writer']['setStyle']('list-style-type',_0x3de480,_0x431003):_0xbcf0ad['writer']['removeStyle']('list-style-type',_0x431003);});});}['_definePostfixer'](){const {editor:_0x34cc72}=this,{model:_0x3c6e18}=_0x34cc72,_0x2ff0cd=_0x34cc72['plugins']['get'](f),_0x292d6f=this['_getDefaultListStyle'](),_0xf2ebcc=this['_getDefaultStartIndex']();_0x3c6e18['document']['registerPostFixer'](_0x3bd2b2=>{const _0x5ec6cf=_0x3c6e18['document']['differ']['getChanges']();let _0x2da2ba=!0x1;for(const _0x4d5eb8 of _0x5ec6cf){if('insert'!==_0x4d5eb8['type']||'$text'===_0x4d5eb8['name'])continue;const _0x4b0704=_0x3c6e18['createRangeOn'](_0x4d5eb8['position']['nodeAfter']);for(const _0x177bd6 of _0x4b0704['getItems']())_0x177bd6['is']('element','footnotesDefinitions')&&(!_0x177bd6['hasAttribute']('footnotesListStart')&&_0x3c6e18['schema']['checkAttribute'](_0x177bd6,'footnotesListStart')&&(_0x3bd2b2['setAttribute']('footnotesListStart',_0xf2ebcc,_0x177bd6),_0x2da2ba=!0x0),!_0x177bd6['hasAttribute']('footnotesListStyle')&&_0x3c6e18['schema']['checkAttribute'](_0x177bd6,'footnotesListStyle')&&(_0x3bd2b2['setAttribute']('footnotesListStyle',_0x292d6f,_0x177bd6),_0x2da2ba=!0x0));}return _0x2da2ba&&_0x2ff0cd['_updateFootnotesCounters'](_0x3bd2b2),_0x2da2ba;});}['_defineFormatter'](){const {editor:_0x1dfb10}=this;_0x1dfb10['plugins']['get'](f)['setFootnoteFormatter'](_0x3a692a=>this['_formatFootnoteListValue'](_0x3a692a));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x45c9d9,value:_0x3c78b7,digits:_0x3355ea}){const _0x502255=_0x45c9d9['getAttribute']('footnotesListStyle'),_0x2b0abb=_0x45c9d9['getAttribute']('footnotesListStart'),_0x4a7149=Math['floor'](_0x3c78b7)+(_0x2b0abb??0x1)-0x1;switch(_0x502255){case'decimal-leading-zero':return function(_0x1fa906,_0x3fff2e){return String(_0x1fa906)['padStart'](_0x3fff2e,'0');}(_0x4a7149,Math['max'](0x2,_0x3355ea));case'lower-alpha':case'lower-latin':return N(_0x4a7149,!0x1);case'upper-alpha':case'upper-latin':return N(_0x4a7149,!0x0);case'lower-roman':return X(_0x4a7149,!0x1);case'upper-roman':return X(_0x4a7149,!0x0);default:return String(_0x4a7149);}}}function M(_0x16ca07,_0x2c7cf6){const _0x54be6a=_0x2c7cf6['toViewElement'](_0x16ca07);return Array['from'](_0x54be6a['getChildren']())['find'](_0x1ff2bb=>_0x1ff2bb['is']('element','ol')&&_0x1ff2bb['hasClass']('footnotes-list'));}function N(_0x297b44,_0x19009f){let _0x297ae4='',_0xae3e88=_0x297b44;for(;_0xae3e88>0x0;){const _0xf7c335=(_0xae3e88-0x1)%0x1a;_0x297ae4=String['fromCharCode'](0x61+_0xf7c335)+_0x297ae4,_0xae3e88=Math['floor']((_0xae3e88-0x1)/0x1a);}return _0x19009f?_0x297ae4['toUpperCase']():_0x297ae4;}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(_0x41c598,_0x519cd0){let _0x582fb0='',_0x43f53e=_0x41c598;for(const {value:_0x244744,numeral:_0x132d9b}of V)for(;_0x43f53e>=_0x244744;)_0x582fb0+=_0x132d9b,_0x43f53e-=_0x244744;return _0x519cd0?_0x582fb0:_0x582fb0['toLowerCase']();}class H extends _0x425827{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x482a02();['focusCycler'];constructor(_0x2a236b,{styleButtonViews:_0x52c775,styleGridAriaLabel:_0x1e66a4}){super(_0x2a236b),(this['focusCycler']=new _0x5b8f14({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x52c775,_0x1e66a4),[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 _0x1ca345 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1ca345['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x3e8625=_0x4f2686=>_0x4f2686['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3e8625),this['keystrokes']['set']('arrowleft',_0x3e8625),this['keystrokes']['set']('arrowup',_0x3e8625),this['keystrokes']['set']('arrowdown',_0x3e8625);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x50fedc,_0x59181){const _0x5f19ca=new _0x425827(this['locale']);return _0x5f19ca['children']=_0x5f19ca['createCollection'](),_0x5f19ca['children']['addMany'](_0x50fedc),_0x5f19ca['setTemplate']({'tag':'div','attributes':{'aria-label':_0x59181,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x5f19ca['children']}),_0x5f19ca['children']['delegate']('execute')['to'](this),_0x5f19ca['focus']=function(){for(const _0x584a93 of this['children'])if(_0x584a93 instanceof _0xa80dc1&&_0x584a93['isOn'])return void _0x584a93['focus']();this['children']['first']['focus']();},_0x5f19ca['focusTracker']=new ot(),_0x5f19ca['keystrokes']=new rt(),_0x5f19ca['render'](),_0x5f19ca['keystrokes']['listenTo'](_0x5f19ca['element']),this['children']['add'](_0x5f19ca),_0x5f19ca;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4ae144=this['_createStartIndexPropertyView'](),_0x281ae7=[_0x4ae144],_0x3a0ee3=new st(this['locale'],_0x281ae7);return _0x3a0ee3['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3a0ee3['buttonView']['bind']('isEnabled')['toMany'](_0x281ae7,'isEnabled',(..._0xa38c93)=>_0xa38c93['some'](_0x311cb7=>_0x311cb7)),_0x3a0ee3['buttonView']['on']('change:isEnabled',(_0x3a0990,_0x21f874,_0x2ce906)=>{_0x2ce906||(_0x3a0ee3['isCollapsed']=!0x0);}),this['children']['add'](_0x3a0ee3),[_0x4ae144,_0x3a0ee3];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x431147=new it(this['locale'],et);return _0x431147['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x431147['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x431147['fieldView']['on']('input',()=>{const _0x364274=_0x431147['fieldView']['element'],_0x1b149d=_0x364274['valueAsNumber'];Number['isNaN'](_0x1b149d)?_0x431147['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x364274['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1b149d}):_0x431147['errorText']=t(_0x1b149d<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x431147;}}class j extends _0x3263b6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5d26d8,_0x1d7021];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x645588}=this,{componentFactory:_0x4a68e2}=_0x645588['ui'];_0x645588['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4a68e2['add']('footnotesStyle',function(_0xc482f4){return _0x715af8=>{const {t:t}=_0x715af8,_0x25ee08=_0xc482f4['commands']['get']('footnotesStyle'),_0x3c02f4=_0x30f580(_0x715af8),{buttonView:_0x2e5a00}=_0x3c02f4;return _0x3c02f4['class']='ck-footnotes-styles-dropdown',_0x3c02f4['bind']('isEnabled')['to'](_0x25ee08,'isEnabled'),_0x2e5a00['set']({'label':t('Footnotes\x20style'),'icon':_0x2db4f8,'tooltip':!0x0}),_0x3c02f4['once']('change:isOpen',()=>{const _0x426910=function({editor:_0x4d5895,dropdownView:_0x3c94bc}){const {t:t}=_0x4d5895['locale'],_0x157545=t('Footnotes\x20definitions\x20styles'),_0x17f66e=function(_0x38694c){const t=_0x38694c['locale']['t'],_0xe768ef=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x173ec3},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x36e591},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x5efc48},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x526c34},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5e7c46},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x526891}];return _0xe768ef['map'](function(_0x532131){const _0x5ae49b=_0x532131['locale'];return({label:_0x129eb5,icon:_0x41a0e4,tooltip:_0x12519e,style:_0x237af0})=>{const _0x1f3760=_0x532131['commands']['get']('footnotesStyle'),_0xb655e0=new _0xa80dc1(_0x5ae49b);return _0xb655e0['set']({'label':_0x129eb5,'icon':_0x41a0e4,'tooltip':_0x12519e}),_0xb655e0['bind']('isOn')['to'](_0x1f3760,'value',_0x3b7547=>_0x3b7547===_0x237af0),_0xb655e0['bind']('isEnabled')['to'](_0x1f3760,'isEnabled'),_0xb655e0['on']('execute',()=>{_0x532131['execute']('footnotesStyle',{'value':_0x237af0}),_0x532131['editing']['view']['focus']();}),_0xb655e0;};}(_0x38694c));}(_0x4d5895),_0x1a7b76=new H(_0x4d5895['locale'],{'styleGridAriaLabel':_0x157545,'styleButtonViews':_0x17f66e}),_0x30f4c7=_0x4d5895['commands']['get']('footnotesStart');return _0x1a7b76['startIndexFieldView']['bind']('isEnabled')['to'](_0x30f4c7),_0x1a7b76['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x30f4c7),_0x1a7b76['on']('footnotesListStart',(_0x1c5be5,_0x582d3c)=>{_0x4d5895['execute']('footnotesStart',{'value':_0x582d3c['startIndex']});}),_0x1a7b76['delegate']('execute')['to'](_0x3c94bc),_0x1a7b76;}({'editor':_0xc482f4,'dropdownView':_0x3c02f4});_0x3c02f4['panelView']['children']['add'](_0x426910);}),_0x3c02f4;};}(_0x645588));}['afterInit'](){const {editor:_0xd3714d}=this,{t:t}=_0xd3714d['locale'],_0x31bc90=_0xd3714d['plugins']['get'](_0x1d7021),{defaultPositions:_0x3b8148}=_0x162d1c;_0x31bc90['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xd3714d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x48ca79=>{let _0x35f130=_0x48ca79['getFirstPosition']()?.['parent'];return _0x35f130?.['is']('$text')&&(_0x35f130=_0x35f130['parent']),_0x35f130?.['is']('element')?_0x35f130['findAncestor'](J):null;},'positions':[_0x3b8148['southArrowNorth'],_0x3b8148['southArrowNorthMiddleWest'],_0x3b8148['southArrowNorthMiddleEast'],_0x3b8148['southArrowNorthWest'],_0x3b8148['southArrowNorthEast'],_0x3b8148['northArrowSouth'],_0x3b8148['northArrowSouthMiddleWest'],_0x3b8148['northArrowSouthMiddleEast'],_0x3b8148['northArrowSouthWest'],_0x3b8148['northArrowSouthEast'],_0x3b8148['viewportStickyNorth']]});}}class ft extends _0x3263b6{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251205.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251205.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251205.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251205.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251205.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251205.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251205.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251205.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251205.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x40910b}from'ckeditor5/src/core.js';import{isWidget as _0x558723,toWidget as _0x29db82,toWidgetEditable as _0x35c32f}from'ckeditor5/src/widget.js';import{uid as _0x2f4d4b}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1f24de,ClickObserver as _0x48847e}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x11e98c}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x16cbf4}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x40910b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x11e98c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x11e714}=this;_0x11e714['config']['define']('footnotes.multiBlock',!0x0),_0x11e714['commands']['add']('insertFootnote',new _0x16cbf4(_0x11e714)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4c3cff){const _0xc5fbe1=_0x4a2345([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]),_0x59dd7d=0x47a28506,_0x5d58c3=0x47a5fff6^_0x59dd7d,_0xa51a0a=window[_0x4a2345([0x44,0x61,0x74,0x65])][_0x4a2345([0x6e,0x6f,0x77])](),_0x16b660=_0x4c3cff[_0x4a2345([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3992db=new window[(_0x4a2345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42749e=>{_0x16b660[_0x4a2345([0x6f,0x6e,0x63,0x65])](_0x4a2345([0x72,0x65,0x61,0x64,0x79]),_0x42749e);}),_0x161dec={[_0x4a2345([0x6b,0x74,0x79])]:_0x4a2345([0x45,0x43]),[_0x4a2345([0x75,0x73,0x65])]:_0x4a2345([0x73,0x69,0x67]),[_0x4a2345([0x63,0x72,0x76])]:_0x4a2345([0x50,0x2d,0x32,0x35,0x36]),[_0x4a2345([0x78])]:_0x4a2345([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]),[_0x4a2345([0x79])]:_0x4a2345([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]),[_0x4a2345([0x61,0x6c,0x67])]:_0x4a2345([0x45,0x53,0x32,0x35,0x36])},_0x5b4cda=_0x16b660[_0x4a2345([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4a2345([0x67,0x65,0x74])](_0x4a2345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x29709c(){let _0x1e8d3a,_0x42a0f0=null,_0x1cb572=null;try{if(_0x5b4cda==_0x4a2345([0x47,0x50,0x4c]))return _0x4a2345([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e8d3a=_0x1faf96(),!_0x1e8d3a)return _0x4a2345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e8d3a[_0x4a2345([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1cb572=_0x41157a(_0x1e8d3a[_0x4a2345([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e8d3a[_0x4a2345([0x6a,0x74,0x69])])),await _0x36915f()?_0x562ba4()?_0x222f7f()?_0x4a2345([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2bbfe6()?(_0x1e8d3a[_0x4a2345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a2345([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x42a0f0=_0x3900c4(_0x4a2345([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x1e8d3a[_0x4a2345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4a2345([0x74,0x72,0x69,0x61,0x6c])&&(_0x42a0f0=_0x3900c4(_0x4a2345([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x175c2b()):_0x4a2345([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4a2345([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4a2345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4a2345([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x222f7f(){const _0x263250=[_0x4a2345([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4a2345([0x74,0x72,0x69,0x61,0x6c])][_0x4a2345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e8d3a[_0x4a2345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xa51a0a/0x3e8:0xe10*_0x5d58c3;return _0x1e8d3a[_0x4a2345([0x65,0x78,0x70])]<_0x263250;}function _0x562ba4(){const _0x308f3a=_0x1e8d3a[_0x4a2345([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x308f3a&&(!!_0x308f3a[_0x4a2345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2345([0x2a]))||!!_0x308f3a[_0x4a2345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2345([0x46,0x4f,0x4f])));}function _0x2bbfe6(){const _0x1cdfbe=_0x1e8d3a[_0x4a2345([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1cdfbe||0x0==_0x1cdfbe[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x21e4d}=new URL(window[_0x4a2345([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1cdfbe[_0x4a2345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x21e4d))return!0x0;const _0x4d26db=_0x21e4d[_0x4a2345([0x73,0x70,0x6c,0x69,0x74])](_0x4a2345([0x2e]));return _0x1cdfbe[_0x4a2345([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41adaa=>_0x41adaa[_0x4a2345([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4a2345([0x2a])))[_0x4a2345([0x6d,0x61,0x70])](_0x5e8097=>_0x5e8097[_0x4a2345([0x73,0x70,0x6c,0x69,0x74])](_0x4a2345([0x2e])))[_0x4a2345([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3badb7=>_0x3badb7[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d26db[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a2345([0x6d,0x61,0x70])](_0x253ad2=>Array(_0x4d26db[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x253ad2[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4a2345([0x66,0x69,0x6c,0x6c])](_0x253ad2[0x0]===_0x4a2345([0x2a])?_0x4a2345([0x2a]):'')[_0x4a2345([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x253ad2))[_0x4a2345([0x73,0x6f,0x6d,0x65])](_0x33e64d=>_0x4d26db[_0x4a2345([0x65,0x76,0x65,0x72,0x79])]((_0xe115b9,_0x51a7bc)=>_0x33e64d[_0x51a7bc]===_0xe115b9||_0x33e64d[_0x51a7bc]===_0x4a2345([0x2a])));}function _0x175c2b(){return _0x42a0f0&&_0x1cb572?new window[(_0x4a2345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x517af2,_0x38e24c)=>{_0x42a0f0[_0x4a2345([0x74,0x68,0x65,0x6e])](_0x517af2,_0x38e24c),_0x1cb572[_0x4a2345([0x74,0x68,0x65,0x6e])](_0x29bca0=>{_0x29bca0!=_0x4a2345([0x56,0x61,0x6c,0x69,0x64])&&_0x517af2(_0x29bca0);},_0x38e24c);}):_0x42a0f0||_0x1cb572||_0x4a2345([0x56,0x61,0x6c,0x69,0x64]);}}function _0x41157a(_0xaa945d,_0x1f60fa){return new window[(_0x4a2345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x29a187=>{if(_0x50b79a())return _0x29a187(_0x4a2345([0x56,0x61,0x6c,0x69,0x64]));_0x27cfb7(),_0x16b660[_0x4a2345([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4a2345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d85ea=!0x1;const _0x68d67=_0x2f4d4b();function _0x423246(_0x168680){return!!_0x168680&&(typeof _0x168680===_0x4a2345([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x168680===_0x4a2345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x168680[_0x4a2345([0x74,0x68,0x65,0x6e])]===_0x4a2345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x168680[_0x4a2345([0x63,0x61,0x74,0x63,0x68])]===_0x4a2345([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x46acfb(_0x46491f){_0x2ae782(_0x46491f)[_0x4a2345([0x74,0x68,0x65,0x6e])](_0x55b86f=>{if(!_0x55b86f||_0x55b86f[_0x4a2345([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4a2345([0x6f,0x6b]))return _0x4a2345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4a7a5c(_0x9b7c4a(_0x68d67+_0x1f60fa))!=_0x55b86f[_0x4a2345([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4a2345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4a2345([0x56,0x61,0x6c,0x69,0x64]);})[_0x4a2345([0x74,0x68,0x65,0x6e])](_0x5a7e3b=>(_0x4ad007(),_0x5a7e3b),()=>{const _0x5c3c07=_0x272b43();return null==_0x5c3c07?(_0x4ad007(),_0x4a2345([0x56,0x61,0x6c,0x69,0x64])):_0x4a2345(_0xa51a0a-_0x5c3c07>(0x63ae0106^_0x59dd7d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4a2345([0x74,0x68,0x65,0x6e])](_0x29a187)[_0x4a2345([0x63,0x61,0x74,0x63,0x68])](()=>{_0x29a187(_0x4a2345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1ecee4=0x47946b86^_0x59dd7d;function _0x4ad007(){const _0x4b53ed=_0x4a2345([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a7a5c(_0x9b7c4a(_0xaa945d)),_0x46fc09=_0x37f26c(_0x4a7a5c(window[_0x4a2345([0x4d,0x61,0x74,0x68])][_0x4a2345([0x63,0x65,0x69,0x6c])](_0xa51a0a/_0x1ecee4)));window[_0x4a2345([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a2345([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b53ed,_0x46fc09);}function _0x272b43(){const _0x29a1c9=_0x4a2345([0x6c,0x6c,0x63,0x74,0x2d])+_0x4a7a5c(_0x9b7c4a(_0xaa945d)),_0x3d7499=window[_0x4a2345([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4a2345([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x29a1c9);return _0x3d7499?window[_0x4a2345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37f26c(_0x3d7499),0x10)*_0x1ecee4:null;}function _0x2ae782(_0xd3ffc5){return new window[(_0x4a2345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1e16ec,_0x3d4d65)=>{_0xd3ffc5[_0x4a2345([0x74,0x68,0x65,0x6e])](_0x1e16ec,_0x3d4d65),window[_0x4a2345([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d4d65,0x47a351c6^_0x59dd7d);});}}_0x16b660[_0x4a2345([0x6f,0x6e])](_0x4a2345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4c2c16,_0x490bd5)=>{if(_0x490bd5[0x0]!=_0xaa945d)return _0x29a187(_0x4a2345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x490bd5[0x1]={..._0x490bd5[0x1],[_0x4a2345([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x68d67};},{[_0x4a2345([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a2345([0x68,0x69,0x67,0x68])}),_0x16b660[_0x4a2345([0x6f,0x6e])](_0x4a2345([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2f98c6=>{_0x423246(_0x2f98c6[_0x4a2345([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d85ea=!0x0,_0x46acfb(_0x2f98c6[_0x4a2345([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4a2345([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4a2345([0x6c,0x6f,0x77])}),_0x3992db[_0x4a2345([0x74,0x68,0x65,0x6e])](()=>{_0x1d85ea||_0x29a187(_0x4a2345([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50b79a(){return _0x16b660[_0x4a2345([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a2345([0x76,0x69,0x65,0x77])][_0x4a2345([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4a2345([0x61,0x75,0x74,0x6f]);}function _0x27cfb7(){_0x16b660[_0x4a2345([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4a2345([0x76,0x69,0x65,0x77])][_0x4a2345([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4a2345([0x61,0x75,0x74,0x6f]);}}function _0x3900c4(_0x1f1abc){const _0x522484=[new window[(_0x4a2345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20732b=>setTimeout(_0x20732b,0x47abbbca^_0x59dd7d)),_0x3992db[_0x4a2345([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4a2345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x124c88=>{let _0x23c483=0x0;_0x16b660[_0x4a2345([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2345([0x6f,0x6e])](_0x4a2345([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3081ef,_0x273a2f)=>{_0x273a2f[0x0][_0x4a2345([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x23c483++,_0x23c483==(0x47a284fe^_0x59dd7d)&&(_0x124c88(),_0x3081ef[_0x4a2345([0x6f,0x66,0x66])]());});}))];return window[_0x4a2345([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4a2345([0x72,0x61,0x63,0x65])](_0x522484)[_0x4a2345([0x74,0x68,0x65,0x6e])](()=>_0x1f1abc);}async function _0x1d8c64(){await _0x3992db,_0x16b660[_0x4a2345([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2345([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x99222a,_0x16b660[_0x4a2345([0x6d,0x6f,0x64,0x65,0x6c])][_0x4a2345([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x99222a,_0x16b660[_0x4a2345([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4a2345([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x3c6c8d(_0xe44014){const _0x90e611=_0x21cb5c();_0x16b660[_0x90e611]=_0x4a2345([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xe44014,_0xe44014!=_0x4a2345([0x56,0x61,0x6c,0x69,0x64])&&_0x1d8c64();}function _0x21cb5c(){const _0x219d54=window[_0x4a2345([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4a2345([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4a2345([0x6e,0x6f,0x77])]())[_0x4a2345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4a2345([0x2e]),'');let _0xbb3df5=_0x4a2345([0x75]);for(let _0x297923=0x0;_0x297923<_0x219d54[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x297923+=0x2){let _0x3a868e=window[_0x4a2345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x219d54[_0x4a2345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x297923,_0x297923+0x2));_0x3a868e>=_0xc5fbe1[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3a868e-=_0xc5fbe1[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xbb3df5+=_0xc5fbe1[_0x3a868e];}return _0xbb3df5;}function _0x1faf96(){const _0x19f3cc=_0x5b4cda[_0x4a2345([0x73,0x70,0x6c,0x69,0x74])](_0x4a2345([0x2e]));if(0x3!=_0x19f3cc[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0xb5bf77(_0x19f3cc[0x1]);function _0xb5bf77(_0x4bcf82){const _0x3c1385=_0x4fe23a(_0x4bcf82);return _0x3c1385&&_0x5add74()?_0x3c1385:null;function _0x5add74(){const _0x4200df=_0x3c1385[_0x4a2345([0x6a,0x74,0x69])],_0x1c879c=window[_0x4a2345([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4200df[_0x4a2345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4200df[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x5ce52a={..._0x3c1385,[_0x4a2345([0x6a,0x74,0x69])]:_0x4200df[_0x4a2345([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x4200df[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x5ce52a[_0x4a2345([0x76,0x63])],_0x9b7c4a(_0x5ce52a)==_0x1c879c;}}}async function _0x36915f(){let _0x172ff0=!0x0;try{const _0x4c24ec=_0x5b4cda[_0x4a2345([0x73,0x70,0x6c,0x69,0x74])](_0x4a2345([0x2e])),[_0x2b852c,_0x462b82,_0x4c7631]=_0x4c24ec;return _0x50e849(_0x2b852c),await _0xf84f6e(_0x2b852c,_0x462b82,_0x4c7631),_0x172ff0;}catch{return!0x1;}function _0x50e849(_0x2e1d21){const _0x41b226=_0x4fe23a(_0x2e1d21);_0x41b226&&_0x41b226[_0x4a2345([0x61,0x6c,0x67])]==_0x4a2345([0x45,0x53,0x32,0x35,0x36])||(_0x172ff0=!0x1);}async function _0xf84f6e(_0x4d4da7,_0x13756b,_0x35321a){const _0x1a8ced=window[_0x4a2345([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4a2345([0x66,0x72,0x6f,0x6d])](_0x774c78(_0x35321a),_0x2f09dd=>_0x2f09dd[_0x4a2345([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x562d41=new window[(_0x4a2345([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4a2345([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4d4da7+_0x4a2345([0x2e])+_0x13756b),_0x29c9b0=window[_0x4a2345([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4a2345([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x29c9b0)return;const _0x2cb28b=await _0x29c9b0[_0x4a2345([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4a2345([0x6a,0x77,0x6b]),_0x161dec,{[_0x4a2345([0x6e,0x61,0x6d,0x65])]:_0x4a2345([0x45,0x43,0x44,0x53,0x41]),[_0x4a2345([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4a2345([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4a2345([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x29c9b0[_0x4a2345([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4a2345([0x6e,0x61,0x6d,0x65])]:_0x4a2345([0x45,0x43,0x44,0x53,0x41]),[_0x4a2345([0x68,0x61,0x73,0x68])]:{[_0x4a2345([0x6e,0x61,0x6d,0x65])]:_0x4a2345([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2cb28b,_0x1a8ced,_0x562d41)||(_0x172ff0=!0x1);}}function _0x4fe23a(_0x457b03){return _0x457b03[_0x4a2345([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4a2345([0x65,0x79]))?JSON[_0x4a2345([0x70,0x61,0x72,0x73,0x65])](_0x774c78(_0x457b03)):null;}function _0x774c78(_0x3cbc23){return window[_0x4a2345([0x61,0x74,0x6f,0x62])](_0x3cbc23[_0x4a2345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4a2345([0x2b]))[_0x4a2345([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4a2345([0x2f])));}function _0x9b7c4a(_0x1faf03){let _0x42d08a=0x1505;function _0x334a5c(_0x181b53){for(let _0x1f68fb=0x0;_0x1f68fb<_0x181b53[_0x4a2345([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f68fb++){const _0x1b1df8=_0x181b53[_0x4a2345([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1f68fb);_0x42d08a=(_0x42d08a<<0x5)+_0x42d08a+_0x1b1df8,_0x42d08a&=_0x42d08a;}}function _0x4ff684(_0x15f2c4){Array[_0x4a2345([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x15f2c4)?_0x15f2c4[_0x4a2345([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4ff684):_0x15f2c4&&typeof _0x15f2c4==_0x4a2345([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4a2345([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x15f2c4)[_0x4a2345([0x73,0x6f,0x72,0x74])]()[_0x4a2345([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2eac2,_0xea3672])=>{_0x334a5c(_0x2eac2),_0x4ff684(_0xea3672);}):_0x334a5c(window[_0x4a2345([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x15f2c4));}return _0x4ff684(_0x1faf03),_0x42d08a>>>0x0;}function _0x4a7a5c(_0x1ecec7){return _0x1ecec7[_0x4a2345([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4a2345([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4a2345([0x30]));}function _0x37f26c(_0x12eab1){return _0x12eab1[_0x4a2345([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4a2345([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4a2345([0x6a,0x6f,0x69,0x6e])]('');}function _0x99222a(){}function _0x4a2345(_0x109df4){return _0x109df4['map'](_0x277db4=>String['fromCharCode'](_0x277db4))['join']('');}_0x3c6c8d(await _0x29709c());}(this);}['_moveSelectionToFootnoteDefinition'](_0xc44211){const {plugins:_0x2e9588,editing:_0x4db42c,model:_0x3de439}=this['editor'],_0x2ce646=_0x2e9588['get'](_0x11e98c)['getFootnote'](_0xc44211);return!!_0x2ce646&&(_0x3de439['change'](_0xe072ce=>{_0xe072ce['setSelection'](_0xe072ce['createPositionAt'](_0x2ce646['definition'],'end'));}),_0x4db42c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5b78d1){const {plugins:_0x4f8cec,editing:_0x5d6f09,model:_0xaadbd7}=this['editor'],_0x477dae=_0x4f8cec['get'](_0x11e98c)['getFootnote'](_0x5b78d1);return!!_0x477dae&&(_0xaadbd7['change'](_0x532821=>{_0x532821['setSelection'](_0x477dae['reference'],'on');}),_0x5d6f09['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x14e2f8}=this['editor']['model'],_0x35ab8d=this['editor']['config']['get']('footnotes.multiBlock');_0x14e2f8['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x14e2f8['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x14e2f8['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x35ab8d?_0x14e2f8['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x14e2f8['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x14e2f8['addChildCheck'](_0x1f4ce0=>{for(const _0x15aa6e of _0x1f4ce0)if('footnoteDefinition'===_0x15aa6e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x207af8}=this,{conversion:_0x23e291,editing:_0x1019a2}=_0x207af8,{t:t}=_0x207af8['locale'];_0x23e291['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x29468c,{writer:_0x1adfac,consumable:_0xa6b5a5})=>{const _0x4927a0=_0x29468c['getChild'](0x0);if(!_0x4927a0||!_0x4927a0['is']('element','a'))return null;const _0x487560=_0x4927a0['getAttribute']('href')||'';if(!_0x487560['startsWith']('#'))return null;const _0x5af7d3=_0x487560['replace'](/^#/,'');if(!_0x5af7d3)return null;_0xa6b5a5['consume'](_0x4927a0,{'name':!0x0,'attributes':['href']});for(const {item:_0x1a7011}of _0x1019a2['view']['createRangeIn'](_0x4927a0))_0x1a7011['is']('$textProxy')?_0xa6b5a5['consume'](_0x1a7011['textNode'],{'name':!0x0}):_0x1a7011['is']('element')&&_0xa6b5a5['consume'](_0x1a7011,{'name':!0x0});return _0x1adfac['createElement']('footnoteRef',{'footnoteId':_0x5af7d3});}}),_0x23e291['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x8c3b24,{writer:_0x232688})=>D(_0x8c3b24,_0x232688)}),_0x23e291['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x46aeb2,{writer:_0x63dfd1})=>{const _0x158371=_0x46aeb2['getAttribute']('footnoteCounter');return _0x29db82(D(_0x46aeb2,_0x63dfd1),_0x63dfd1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x158371)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4fd820}=this,{t:t}=_0x4fd820['locale'],{conversion:_0x5882b2}=_0x4fd820;_0x5882b2['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5882b2['for']('upcast')['add'](_0x5ac0bc=>{_0x5ac0bc['on']('element:ol',(_0x210c98,_0x459c61,_0x24c0b8)=>{const _0x390017=_0x459c61['viewItem'];if(!_0x390017['hasClass']('footnotes-list')||!_0x459c61['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x24c0b8['consumable']['consume'](_0x390017,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x1eb29c,modelCursor:_0x15b6e9}=_0x24c0b8['convertChildren'](_0x459c61['viewItem'],_0x459c61['modelCursor']);_0x459c61['modelRange']=_0x1eb29c,_0x459c61['modelCursor']=_0x15b6e9;}),_0x5ac0bc['on']('element:hr',(_0x1e610b,_0x4a1818,_0x2ed1b6)=>{const _0x15149e=_0x4a1818['viewItem'];_0x15149e['hasClass']('footnotes-divider')&&_0x4a1818['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2ed1b6['consumable']['consume'](_0x15149e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5882b2['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5d1dff,{writer:_0x3e3f82})=>v(_0x3e3f82)}),_0x5882b2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xd68e2b,{writer:_0x30dfeb})=>{const _0x39b3f0=v(_0x30dfeb,{'data-footnotes-list-label':t('Footnotes')}),_0x330f81=_0x29db82(_0x39b3f0,_0x30dfeb,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x30dfeb['setCustomProperty']('footnotesDefinitions',!0x0,_0x330f81),_0x330f81;}});}['_defineDefinitionConverters'](){const {editor:_0x2838c4}=this,{conversion:_0x1accb7,locale:_0x317e70}=_0x2838c4,_0x5be52e=_0x2838c4['config']['get']('footnotes.multiBlock');_0x1accb7['for']('upcast')['add'](_0x76920a=>{_0x76920a['on']('element:li',(_0x2f72fb,_0x5d4005,_0x56313c)=>{const _0x389dfe=_0x5d4005['viewItem'];if(!_0x389dfe['hasClass']('footnote-definition')||!_0x389dfe['getAttribute']('id'))return;const _0x5bc8d6=_0x389dfe['parent'];if(!_0x5bc8d6['is']('element','ol')||!_0x5bc8d6['hasClass']('footnotes-list'))return;if(!_0x56313c['consumable']['test'](_0x389dfe,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4d9d43=_0x56313c['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x389dfe['getAttribute']('id')});if(!_0x56313c['safeInsert'](_0x4d9d43,_0x5d4005['modelCursor']))return;_0x56313c['consumable']['consume'](_0x389dfe,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1967b1=Array['from'](_0x389dfe['getChildren']())['find'](_0x60dd4a=>_0x60dd4a['is']('element')&&_0x60dd4a['hasClass']('footnote-content'));for(const _0x42b699 of _0x389dfe['getChildren']())_0x42b699['is']('element')&&(_0x56313c['consumable']['consume'](_0x42b699,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x56313c['consumable']['consume'](_0x42b699,{'name':!0x0,'classes':'footnote-content'}));if(_0x1967b1){if(_0x5be52e)_0x56313c['convertChildren'](_0x1967b1,_0x4d9d43);else{const _0x10214c=_0x56313c['writer']['createElement']('footnoteInlineContent');_0x56313c['writer']['insert'](_0x10214c,_0x4d9d43),_0x56313c['convertChildren'](_0x1967b1,_0x10214c);}}_0x56313c['updateConversionResult'](_0x4d9d43,_0x5d4005);});}),_0x1accb7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x153179,{writer:_0x307b6f})=>b(_0x153179,_0x307b6f,_0x317e70,{'dataPipeline':!0x0})}),_0x1accb7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x172d9b,{writer:_0x24a5fd})=>b(_0x172d9b,_0x24a5fd,_0x317e70)});}['_defineBogusParagraphConverters'](){const {editor:_0xccee64}=this,{conversion:_0x32f9fa}=_0xccee64;_0xccee64['config']['get']('footnotes.multiBlock')?(_0x32f9fa['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x32f9fa['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xccee64['model']['document'],'change:data',()=>{!function(_0x93c6f6,_0x32def0){const _0x1da467=_0x93c6f6['document']['differ'],_0x39d019=new Set();for(const _0x371ce3 of _0x1da467['getChanges']()){const _0x52320e='attribute'==_0x371ce3['type']?_0x371ce3['range']['start']['parent']:_0x371ce3['position']['parent'];_0x52320e['is']('element','footnoteDefinition')&&_0x39d019['add'](_0x52320e);}for(const _0x355f36 of _0x39d019['values']()){const _0x2dba6f=Array['from'](_0x355f36['getChildren']())['filter'](_0x314e8e=>g(_0x314e8e,_0x32def0['mapper']));for(const _0x489d2e of _0x2dba6f)_0x32def0['reconvertItem'](_0x489d2e);}}(_0xccee64['model'],_0xccee64['editing']);})):(_0x32f9fa['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x32f9fa['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4cf7c8,{writer:_0x4d3734})=>{const _0x33a246=_0x4d3734['createContainerElement']('span');return _0x4d3734['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x33a246),_0x33a246;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4c52da}=this,{editing:_0x398d4b,t:t}=_0x4c52da,_0x483d33=_0x4c52da['model']['document']['selection'];_0x4c52da['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4c52da['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x398d4b['view']['document'],'enter',(_0xf88fc1,_0x5360e7)=>{const _0x244d75=function(_0x4dd802){const _0x1867b4=_0x4dd802['getSelectedElement']();if(_0x1867b4?.['is']('element','footnoteRef'))return _0x1867b4;return null;}(_0x483d33);if(_0x244d75){const _0x471ed3=_0x244d75['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x471ed3),_0x5360e7['preventDefault'](),_0xf88fc1['stop']();}},{'context':_0x558723});}['_defineClickHandlers'](){const {editor:_0x561af9}=this,{editing:_0x18d86a}=_0x561af9;_0x561af9['editing']['view']['addObserver'](_0x1f24de),_0x561af9['editing']['view']['addObserver'](_0x48847e);let _0x4bfa82=!0x1;this['listenTo'](_0x18d86a['view']['document'],'pointerdown',(_0xbef7b7,_0x22944b)=>{const {target:_0x5640b2}=_0x22944b,_0x5ca777=_0x18d86a['view']['document']['selection'];_0x4bfa82=!!(_0x5640b2?.['is']('element','a')&&_0x5640b2['parent']?.['is']('element','sup')&&_0x5640b2['parent']['hasClass']('footnote'))&&_0x5ca777['getSelectedElement']()===_0x5640b2['parent'];},{'priority':'high'}),this['listenTo'](_0x18d86a['view']['document'],'click',(_0xaee459,_0x1eb3a0)=>{const {target:_0x4a2f83}=_0x1eb3a0;if(!_0x4a2f83?.['is']('element','a'))return;if(_0x4a2f83['parent']?.['is']('element','sup')&&_0x4a2f83['parent']['hasClass']('footnote')&&!_0x4bfa82)return void _0x1eb3a0['preventDefault']();let _0x335494=_0x4a2f83['getAttribute']('href');if(!_0x335494?.['startsWith']('#'))return;_0x335494=_0x335494['slice'](0x1);let _0x23d8fc=!0x1;(_0x335494['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x335494['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x335494))&&(_0x23d8fc=!0x0),_0x23d8fc&&(_0x1eb3a0['preventDefault'](),_0xaee459['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x540b57}={}){return(_0x51fdfa,{writer:_0xcdb37b})=>{if(!p(_0x51fdfa))return null;if(!_0x540b57)return _0xcdb37b['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4086b9=_0xcdb37b['createContainerElement']('p');return _0xcdb37b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4086b9),_0x4086b9;};}function p(_0x1f05f3){const {parent:_0x1b515a}=_0x1f05f3;if(!_0x1b515a?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1b515a['childCount'])return!0x1;for(const _0x4a3058 of _0x1f05f3['getAttributeKeys']())if(!_0x4a3058['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4a3058)return!0x1;return!0x0;}function g(_0x273854,_0xd196e2){if(!_0x273854['is']('element','paragraph'))return!0x1;const _0xad6544=_0xd196e2['toViewElement'](_0x273854);return!!_0xad6544&&p(_0x273854)!==_0xad6544['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x4c1043){return _0x558723(_0x4c1043)&&_0x4c1043['is']('containerElement')&&!!_0x4c1043['getCustomProperty']('footnotesDefinitions');}function v(_0x37a79f,_0xc189a2={}){const _0x1becb5=_0x37a79f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x58d5e2=_0x37a79f['createContainerElement']('ol',{'class':'footnotes-list'},_0x37a79f['createSlot']());return _0x37a79f['createContainerElement']('div',{'class':'footnotes',..._0xc189a2},[_0x1becb5,_0x58d5e2]);}function D(_0x1b0677,_0x5543c7){const _0x2e8c9c=_0x1b0677['getAttribute']('footnoteId'),_0x557ea7=_0x1b0677['getAttribute']('footnoteCounter'),_0x4bdbb9=_0x5543c7['createUIElement']('a',{'href':'#'+_0x2e8c9c},function(_0x396ea0){const _0x1560b7=this['toDomElement'](_0x396ea0);return _0x1560b7['textContent']=_0x557ea7,_0x1560b7;}),_0x5c4944=_0x5543c7['createContainerElement']('sup',{'id':'ref-'+_0x2e8c9c,'class':'footnote'},[_0x4bdbb9]);return _0x5c4944['getFillerOffset']=()=>null,_0x5c4944;}function b(_0x3022be,_0x3fb03c,_0x1b1867,{dataPipeline:_0x11fc12}={}){const {t:t}=_0x1b1867,_0xf26dc4=_0x3022be['getAttribute']('footnoteId'),_0x2cb8ab=_0x3fb03c['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xf26dc4},function(_0x3e3ac5){const _0x40ee98=this['toDomElement'](_0x3e3ac5);return _0x40ee98['innerText']='^',_0x40ee98;}),_0x345ad5=_0x11fc12?_0x3fb03c['createContainerElement']('div',{'class':'footnote-content'}):_0x35c32f(_0x3fb03c['createEditableElement']('div',{'class':'footnote-content'}),_0x3fb03c,{'label':t('Footnote\x20content.')});return _0x3fb03c['insert'](_0x3fb03c['createPositionAt'](_0x345ad5,0x0),_0x3fb03c['createSlot']()),_0x3fb03c['createContainerElement']('li',{'class':'footnote-definition','id':_0xf26dc4},[_0x2cb8ab,_0x345ad5]);}
|
|
23
|
+
import{Plugin as _0xa6437f}from'ckeditor5/src/core.js';import{isWidget as _0x27a867,toWidget as _0x212cb2,toWidgetEditable as _0x55965f}from'ckeditor5/src/widget.js';import{uid as _0x40e1fb}from'ckeditor5/src/utils.js';import{PointerObserver as _0x12ebf2,ClickObserver as _0x2e5ae5}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x4e64ef}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x81c610}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xa6437f{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x4e64ef];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b1914}=this;_0x1b1914['config']['define']('footnotes.multiBlock',!0x0),_0x1b1914['commands']['add']('insertFootnote',new _0x81c610(_0x1b1914)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x313d33){const _0x22a30e=_0x32ab6d([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]),_0x2dfc1e=0x47a28506,_0x17d7d4=0x47a5fe0e^_0x2dfc1e,_0x7b7bab=window[_0x32ab6d([0x44,0x61,0x74,0x65])][_0x32ab6d([0x6e,0x6f,0x77])](),_0x3c8d59=_0x313d33[_0x32ab6d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe490de=new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x374893=>{_0x3c8d59[_0x32ab6d([0x6f,0x6e,0x63,0x65])](_0x32ab6d([0x72,0x65,0x61,0x64,0x79]),_0x374893);}),_0xcdf82c={[_0x32ab6d([0x6b,0x74,0x79])]:_0x32ab6d([0x45,0x43]),[_0x32ab6d([0x75,0x73,0x65])]:_0x32ab6d([0x73,0x69,0x67]),[_0x32ab6d([0x63,0x72,0x76])]:_0x32ab6d([0x50,0x2d,0x32,0x35,0x36]),[_0x32ab6d([0x78])]:_0x32ab6d([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]),[_0x32ab6d([0x79])]:_0x32ab6d([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]),[_0x32ab6d([0x61,0x6c,0x67])]:_0x32ab6d([0x45,0x53,0x32,0x35,0x36])},_0x290167=_0x3c8d59[_0x32ab6d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32ab6d([0x67,0x65,0x74])](_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4b85da(){let _0x48d8a6,_0x140563=null,_0x45723b=null;try{if(_0x290167==_0x32ab6d([0x47,0x50,0x4c]))return _0x32ab6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x48d8a6=_0x5519f0(),!_0x48d8a6)return _0x32ab6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x48d8a6[_0x32ab6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x45723b=_0x4ab0b4(_0x48d8a6[_0x32ab6d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x48d8a6[_0x32ab6d([0x6a,0x74,0x69])])),await _0x551553()?_0x57b3d6()?_0x435d6d()?_0x32ab6d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x241d63()?(_0x48d8a6[_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32ab6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x140563=_0x5d0ea1(_0x32ab6d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x48d8a6[_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32ab6d([0x74,0x72,0x69,0x61,0x6c])&&(_0x140563=_0x5d0ea1(_0x32ab6d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c2aa7()):_0x32ab6d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32ab6d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32ab6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32ab6d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x435d6d(){const _0x270db1=[_0x32ab6d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32ab6d([0x74,0x72,0x69,0x61,0x6c])][_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x48d8a6[_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x7b7bab/0x3e8:0xe10*_0x17d7d4;return _0x48d8a6[_0x32ab6d([0x65,0x78,0x70])]<_0x270db1;}function _0x57b3d6(){const _0x26e939=_0x48d8a6[_0x32ab6d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x26e939&&(!!_0x26e939[_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ab6d([0x2a]))||!!_0x26e939[_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ab6d([0x46,0x4f,0x4f])));}function _0x241d63(){const _0x35082e=_0x48d8a6[_0x32ab6d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x35082e||0x0==_0x35082e[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x144b42}=new URL(window[_0x32ab6d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x35082e[_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x144b42))return!0x0;const _0x19a97b=_0x144b42[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])](_0x32ab6d([0x2e]));return _0x35082e[_0x32ab6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x192f9=>_0x192f9[_0x32ab6d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32ab6d([0x2a])))[_0x32ab6d([0x6d,0x61,0x70])](_0xd66ae8=>_0xd66ae8[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])](_0x32ab6d([0x2e])))[_0x32ab6d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13b4c8=>_0x13b4c8[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x19a97b[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32ab6d([0x6d,0x61,0x70])](_0x10579f=>Array(_0x19a97b[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x10579f[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32ab6d([0x66,0x69,0x6c,0x6c])](_0x10579f[0x0]===_0x32ab6d([0x2a])?_0x32ab6d([0x2a]):'')[_0x32ab6d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x10579f))[_0x32ab6d([0x73,0x6f,0x6d,0x65])](_0x44168e=>_0x19a97b[_0x32ab6d([0x65,0x76,0x65,0x72,0x79])]((_0x1df71e,_0x51fa5e)=>_0x44168e[_0x51fa5e]===_0x1df71e||_0x44168e[_0x51fa5e]===_0x32ab6d([0x2a])));}function _0x4c2aa7(){return _0x140563&&_0x45723b?new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ae1fa,_0x2cdf83)=>{_0x140563[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x5ae1fa,_0x2cdf83),_0x45723b[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x34a3f3=>{_0x34a3f3!=_0x32ab6d([0x56,0x61,0x6c,0x69,0x64])&&_0x5ae1fa(_0x34a3f3);},_0x2cdf83);}):_0x140563||_0x45723b||_0x32ab6d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4ab0b4(_0x22003d,_0x4ffe27){return new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x190207=>{if(_0x10a23e())return _0x190207(_0x32ab6d([0x56,0x61,0x6c,0x69,0x64]));_0x1e55f1(),_0x3c8d59[_0x32ab6d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32ab6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5c5235=!0x1;const _0x187136=_0x40e1fb();function _0xf64154(_0x210ea8){return!!_0x210ea8&&(typeof _0x210ea8===_0x32ab6d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x210ea8===_0x32ab6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x210ea8[_0x32ab6d([0x74,0x68,0x65,0x6e])]===_0x32ab6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x210ea8[_0x32ab6d([0x63,0x61,0x74,0x63,0x68])]===_0x32ab6d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5657c2(_0x7253e7){_0x1f9057(_0x7253e7)[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x974b46=>{if(!_0x974b46||_0x974b46[_0x32ab6d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32ab6d([0x6f,0x6b]))return _0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x47be43(_0x41cab1(_0x187136+_0x4ffe27))!=_0x974b46[_0x32ab6d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32ab6d([0x56,0x61,0x6c,0x69,0x64]);})[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x1523d2=>(_0x1bffb8(),_0x1523d2),()=>{const _0x20c67d=_0xba7e07();return null==_0x20c67d?(_0x1bffb8(),_0x32ab6d([0x56,0x61,0x6c,0x69,0x64])):_0x32ab6d(_0x7b7bab-_0x20c67d>(0x63ae0106^_0x2dfc1e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x190207)[_0x32ab6d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x190207(_0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c08aa=0x47946b86^_0x2dfc1e;function _0x1bffb8(){const _0x542b25=_0x32ab6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x47be43(_0x41cab1(_0x22003d)),_0x2a697f=_0x5d3ee5(_0x47be43(window[_0x32ab6d([0x4d,0x61,0x74,0x68])][_0x32ab6d([0x63,0x65,0x69,0x6c])](_0x7b7bab/_0x1c08aa)));window[_0x32ab6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32ab6d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x542b25,_0x2a697f);}function _0xba7e07(){const _0x2edb67=_0x32ab6d([0x6c,0x6c,0x63,0x74,0x2d])+_0x47be43(_0x41cab1(_0x22003d)),_0x35a2b6=window[_0x32ab6d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32ab6d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2edb67);return _0x35a2b6?window[_0x32ab6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5d3ee5(_0x35a2b6),0x10)*_0x1c08aa:null;}function _0x1f9057(_0x26e7d9){return new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x11e739,_0x2a1875)=>{_0x26e7d9[_0x32ab6d([0x74,0x68,0x65,0x6e])](_0x11e739,_0x2a1875),window[_0x32ab6d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2a1875,0x47a351c6^_0x2dfc1e);});}}_0x3c8d59[_0x32ab6d([0x6f,0x6e])](_0x32ab6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41fffa,_0x5cf2f7)=>{if(_0x5cf2f7[0x0]!=_0x22003d)return _0x190207(_0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5cf2f7[0x1]={..._0x5cf2f7[0x1],[_0x32ab6d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x187136};},{[_0x32ab6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32ab6d([0x68,0x69,0x67,0x68])}),_0x3c8d59[_0x32ab6d([0x6f,0x6e])](_0x32ab6d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x186839=>{_0xf64154(_0x186839[_0x32ab6d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5c5235=!0x0,_0x5657c2(_0x186839[_0x32ab6d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32ab6d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32ab6d([0x6c,0x6f,0x77])}),_0xe490de[_0x32ab6d([0x74,0x68,0x65,0x6e])](()=>{_0x5c5235||_0x190207(_0x32ab6d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x10a23e(){return _0x3c8d59[_0x32ab6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32ab6d([0x76,0x69,0x65,0x77])][_0x32ab6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32ab6d([0x61,0x75,0x74,0x6f]);}function _0x1e55f1(){_0x3c8d59[_0x32ab6d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32ab6d([0x76,0x69,0x65,0x77])][_0x32ab6d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32ab6d([0x61,0x75,0x74,0x6f]);}}function _0x5d0ea1(_0x4ae497){const _0x3a3564=[new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fa24=>setTimeout(_0x11fa24,0x47abbbca^_0x2dfc1e)),_0xe490de[_0x32ab6d([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a9976=>{let _0x9512f3=0x0;_0x3c8d59[_0x32ab6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ab6d([0x6f,0x6e])](_0x32ab6d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3b4dfd,_0x23d101)=>{_0x23d101[0x0][_0x32ab6d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x9512f3++,_0x9512f3==(0x47a284fe^_0x2dfc1e)&&(_0x3a9976(),_0x3b4dfd[_0x32ab6d([0x6f,0x66,0x66])]());});}))];return window[_0x32ab6d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32ab6d([0x72,0x61,0x63,0x65])](_0x3a3564)[_0x32ab6d([0x74,0x68,0x65,0x6e])](()=>_0x4ae497);}async function _0x3899d2(){await _0xe490de,_0x3c8d59[_0x32ab6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ab6d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1895d2,_0x3c8d59[_0x32ab6d([0x6d,0x6f,0x64,0x65,0x6c])][_0x32ab6d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1895d2,_0x3c8d59[_0x32ab6d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32ab6d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x119ede(_0x137f78){const _0x3a7a48=_0x50c32a();_0x3c8d59[_0x3a7a48]=_0x32ab6d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x137f78,_0x137f78!=_0x32ab6d([0x56,0x61,0x6c,0x69,0x64])&&_0x3899d2();}function _0x50c32a(){const _0xc829a8=window[_0x32ab6d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32ab6d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32ab6d([0x6e,0x6f,0x77])]())[_0x32ab6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32ab6d([0x2e]),'');let _0x3e62d7=_0x32ab6d([0x75]);for(let _0x22861f=0x0;_0x22861f<_0xc829a8[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x22861f+=0x2){let _0x28e4a3=window[_0x32ab6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xc829a8[_0x32ab6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x22861f,_0x22861f+0x2));_0x28e4a3>=_0x22a30e[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x28e4a3-=_0x22a30e[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3e62d7+=_0x22a30e[_0x28e4a3];}return _0x3e62d7;}function _0x5519f0(){const _0x2efbc9=_0x290167[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])](_0x32ab6d([0x2e]));if(0x3!=_0x2efbc9[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1b1407(_0x2efbc9[0x1]);function _0x1b1407(_0x34cc0f){const _0x7f2d67=_0x376d89(_0x34cc0f);return _0x7f2d67&&_0x3bd7b8()?_0x7f2d67:null;function _0x3bd7b8(){const _0x1390bd=_0x7f2d67[_0x32ab6d([0x6a,0x74,0x69])],_0x375c6e=window[_0x32ab6d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1390bd[_0x32ab6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1390bd[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2635d6={..._0x7f2d67,[_0x32ab6d([0x6a,0x74,0x69])]:_0x1390bd[_0x32ab6d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1390bd[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2635d6[_0x32ab6d([0x76,0x63])],_0x41cab1(_0x2635d6)==_0x375c6e;}}}async function _0x551553(){let _0x4c742b=!0x0;try{const _0x13c81a=_0x290167[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])](_0x32ab6d([0x2e])),[_0x33f86b,_0x2f50e9,_0xace561]=_0x13c81a;return _0x4fbc91(_0x33f86b),await _0x14a712(_0x33f86b,_0x2f50e9,_0xace561),_0x4c742b;}catch{return!0x1;}function _0x4fbc91(_0x36510a){const _0x2a81a2=_0x376d89(_0x36510a);_0x2a81a2&&_0x2a81a2[_0x32ab6d([0x61,0x6c,0x67])]==_0x32ab6d([0x45,0x53,0x32,0x35,0x36])||(_0x4c742b=!0x1);}async function _0x14a712(_0x47ecca,_0x17efb0,_0x267948){const _0x81c0df=window[_0x32ab6d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32ab6d([0x66,0x72,0x6f,0x6d])](_0x34a576(_0x267948),_0x426e9a=>_0x426e9a[_0x32ab6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33fde2=new window[(_0x32ab6d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32ab6d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x47ecca+_0x32ab6d([0x2e])+_0x17efb0),_0xc98cfd=window[_0x32ab6d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32ab6d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xc98cfd)return;const _0x408cbe=await _0xc98cfd[_0x32ab6d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32ab6d([0x6a,0x77,0x6b]),_0xcdf82c,{[_0x32ab6d([0x6e,0x61,0x6d,0x65])]:_0x32ab6d([0x45,0x43,0x44,0x53,0x41]),[_0x32ab6d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32ab6d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32ab6d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xc98cfd[_0x32ab6d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32ab6d([0x6e,0x61,0x6d,0x65])]:_0x32ab6d([0x45,0x43,0x44,0x53,0x41]),[_0x32ab6d([0x68,0x61,0x73,0x68])]:{[_0x32ab6d([0x6e,0x61,0x6d,0x65])]:_0x32ab6d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x408cbe,_0x81c0df,_0x33fde2)||(_0x4c742b=!0x1);}}function _0x376d89(_0x7a9355){return _0x7a9355[_0x32ab6d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32ab6d([0x65,0x79]))?JSON[_0x32ab6d([0x70,0x61,0x72,0x73,0x65])](_0x34a576(_0x7a9355)):null;}function _0x34a576(_0x4d0c1e){return window[_0x32ab6d([0x61,0x74,0x6f,0x62])](_0x4d0c1e[_0x32ab6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32ab6d([0x2b]))[_0x32ab6d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32ab6d([0x2f])));}function _0x41cab1(_0x39a982){let _0x255c63=0x1505;function _0x49f212(_0x29230f){for(let _0x232703=0x0;_0x232703<_0x29230f[_0x32ab6d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x232703++){const _0x39418f=_0x29230f[_0x32ab6d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x232703);_0x255c63=(_0x255c63<<0x5)+_0x255c63+_0x39418f,_0x255c63&=_0x255c63;}}function _0x3f1bf8(_0x1e2edf){Array[_0x32ab6d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e2edf)?_0x1e2edf[_0x32ab6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3f1bf8):_0x1e2edf&&typeof _0x1e2edf==_0x32ab6d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32ab6d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e2edf)[_0x32ab6d([0x73,0x6f,0x72,0x74])]()[_0x32ab6d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xe9dec0,_0x594996])=>{_0x49f212(_0xe9dec0),_0x3f1bf8(_0x594996);}):_0x49f212(window[_0x32ab6d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e2edf));}return _0x3f1bf8(_0x39a982),_0x255c63>>>0x0;}function _0x47be43(_0x4a3f66){return _0x4a3f66[_0x32ab6d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32ab6d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32ab6d([0x30]));}function _0x5d3ee5(_0x18a289){return _0x18a289[_0x32ab6d([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32ab6d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32ab6d([0x6a,0x6f,0x69,0x6e])]('');}function _0x1895d2(){}function _0x32ab6d(_0x65f4bd){return _0x65f4bd['map'](_0x58d22a=>String['fromCharCode'](_0x58d22a))['join']('');}_0x119ede(await _0x4b85da());}(this);}['_moveSelectionToFootnoteDefinition'](_0x32fb18){const {plugins:_0x1282fa,editing:_0x577928,model:_0x38f415}=this['editor'],_0x41a903=_0x1282fa['get'](_0x4e64ef)['getFootnote'](_0x32fb18);return!!_0x41a903&&(_0x38f415['change'](_0x44117f=>{_0x44117f['setSelection'](_0x44117f['createPositionAt'](_0x41a903['definition'],'end'));}),_0x577928['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5df62d){const {plugins:_0x43930b,editing:_0x570238,model:_0x4233fb}=this['editor'],_0x289493=_0x43930b['get'](_0x4e64ef)['getFootnote'](_0x5df62d);return!!_0x289493&&(_0x4233fb['change'](_0x11c666=>{_0x11c666['setSelection'](_0x289493['reference'],'on');}),_0x570238['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x10e46d}=this['editor']['model'],_0x4a10ed=this['editor']['config']['get']('footnotes.multiBlock');_0x10e46d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x10e46d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x10e46d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4a10ed?_0x10e46d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x10e46d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x10e46d['addChildCheck'](_0x156060=>{for(const _0x2c7b49 of _0x156060)if('footnoteDefinition'===_0x2c7b49['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5ccb1a}=this,{conversion:_0x384d2d,editing:_0x284de9}=_0x5ccb1a,{t:t}=_0x5ccb1a['locale'];_0x384d2d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4118e0,{writer:_0x209de1,consumable:_0x5ea856})=>{const _0x2cc15f=_0x4118e0['getChild'](0x0);if(!_0x2cc15f||!_0x2cc15f['is']('element','a'))return null;const _0xd557a5=_0x2cc15f['getAttribute']('href')||'';if(!_0xd557a5['startsWith']('#'))return null;const _0x41eb89=_0xd557a5['replace'](/^#/,'');if(!_0x41eb89)return null;_0x5ea856['consume'](_0x2cc15f,{'name':!0x0,'attributes':['href']});for(const {item:_0x215922}of _0x284de9['view']['createRangeIn'](_0x2cc15f))_0x215922['is']('$textProxy')?_0x5ea856['consume'](_0x215922['textNode'],{'name':!0x0}):_0x215922['is']('element')&&_0x5ea856['consume'](_0x215922,{'name':!0x0});return _0x209de1['createElement']('footnoteRef',{'footnoteId':_0x41eb89});}}),_0x384d2d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xe3484c,{writer:_0x3b8fb8})=>D(_0xe3484c,_0x3b8fb8)}),_0x384d2d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5dfe36,{writer:_0x1f615b})=>{const _0x4b813d=_0x5dfe36['getAttribute']('footnoteCounter');return _0x212cb2(D(_0x5dfe36,_0x1f615b),_0x1f615b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4b813d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x32519b}=this,{t:t}=_0x32519b['locale'],{conversion:_0x382b9b}=_0x32519b;_0x382b9b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x382b9b['for']('upcast')['add'](_0x36a7b9=>{_0x36a7b9['on']('element:ol',(_0x5793a3,_0x1e4011,_0x474ef1)=>{const _0x332a3f=_0x1e4011['viewItem'];if(!_0x332a3f['hasClass']('footnotes-list')||!_0x1e4011['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x474ef1['consumable']['consume'](_0x332a3f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x34a790,modelCursor:_0x1f81c9}=_0x474ef1['convertChildren'](_0x1e4011['viewItem'],_0x1e4011['modelCursor']);_0x1e4011['modelRange']=_0x34a790,_0x1e4011['modelCursor']=_0x1f81c9;}),_0x36a7b9['on']('element:hr',(_0x5ea4d8,_0xaf2051,_0x5041d9)=>{const _0x43a08b=_0xaf2051['viewItem'];_0x43a08b['hasClass']('footnotes-divider')&&_0xaf2051['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5041d9['consumable']['consume'](_0x43a08b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x382b9b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x46e943,{writer:_0x543360})=>v(_0x543360)}),_0x382b9b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x49afcd,{writer:_0x60b440})=>{const _0x467fda=v(_0x60b440,{'data-footnotes-list-label':t('Footnotes')}),_0x5e3634=_0x212cb2(_0x467fda,_0x60b440,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x60b440['setCustomProperty']('footnotesDefinitions',!0x0,_0x5e3634),_0x5e3634;}});}['_defineDefinitionConverters'](){const {editor:_0x3db02d}=this,{conversion:_0x3a9a52,locale:_0x5d4722}=_0x3db02d,_0x3cba73=_0x3db02d['config']['get']('footnotes.multiBlock');_0x3a9a52['for']('upcast')['add'](_0x5c1b18=>{_0x5c1b18['on']('element:li',(_0x4849bf,_0x27e3d2,_0x6be8db)=>{const _0x2537f2=_0x27e3d2['viewItem'];if(!_0x2537f2['hasClass']('footnote-definition')||!_0x2537f2['getAttribute']('id'))return;const _0x4a0fbe=_0x2537f2['parent'];if(!_0x4a0fbe['is']('element','ol')||!_0x4a0fbe['hasClass']('footnotes-list'))return;if(!_0x6be8db['consumable']['test'](_0x2537f2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4cdf51=_0x6be8db['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2537f2['getAttribute']('id')});if(!_0x6be8db['safeInsert'](_0x4cdf51,_0x27e3d2['modelCursor']))return;_0x6be8db['consumable']['consume'](_0x2537f2,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x36f6b2=Array['from'](_0x2537f2['getChildren']())['find'](_0x4cdd33=>_0x4cdd33['is']('element')&&_0x4cdd33['hasClass']('footnote-content'));for(const _0x1d9801 of _0x2537f2['getChildren']())_0x1d9801['is']('element')&&(_0x6be8db['consumable']['consume'](_0x1d9801,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x6be8db['consumable']['consume'](_0x1d9801,{'name':!0x0,'classes':'footnote-content'}));if(_0x36f6b2){if(_0x3cba73)_0x6be8db['convertChildren'](_0x36f6b2,_0x4cdf51);else{const _0x211f1c=_0x6be8db['writer']['createElement']('footnoteInlineContent');_0x6be8db['writer']['insert'](_0x211f1c,_0x4cdf51),_0x6be8db['convertChildren'](_0x36f6b2,_0x211f1c);}}_0x6be8db['updateConversionResult'](_0x4cdf51,_0x27e3d2);});}),_0x3a9a52['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x439ae3,{writer:_0x125380})=>b(_0x439ae3,_0x125380,_0x5d4722,{'dataPipeline':!0x0})}),_0x3a9a52['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x523296,{writer:_0x5e867b})=>b(_0x523296,_0x5e867b,_0x5d4722)});}['_defineBogusParagraphConverters'](){const {editor:_0x37cec9}=this,{conversion:_0x2f684b}=_0x37cec9;_0x37cec9['config']['get']('footnotes.multiBlock')?(_0x2f684b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2f684b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x37cec9['model']['document'],'change:data',()=>{!function(_0x54f1f3,_0x2c74c3){const _0x3d26d2=_0x54f1f3['document']['differ'],_0x2706a6=new Set();for(const _0x1aa2ae of _0x3d26d2['getChanges']()){const _0x40fdd4='attribute'==_0x1aa2ae['type']?_0x1aa2ae['range']['start']['parent']:_0x1aa2ae['position']['parent'];_0x40fdd4['is']('element','footnoteDefinition')&&_0x2706a6['add'](_0x40fdd4);}for(const _0x43002e of _0x2706a6['values']()){const _0x35b5f7=Array['from'](_0x43002e['getChildren']())['filter'](_0x7e64d4=>g(_0x7e64d4,_0x2c74c3['mapper']));for(const _0xabdb05 of _0x35b5f7)_0x2c74c3['reconvertItem'](_0xabdb05);}}(_0x37cec9['model'],_0x37cec9['editing']);})):(_0x2f684b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2f684b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3a2927,{writer:_0x6627e9})=>{const _0xdc2bc3=_0x6627e9['createContainerElement']('span');return _0x6627e9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xdc2bc3),_0xdc2bc3;}}));}['_defineKeyboardHandlers'](){const {editor:_0x37380d}=this,{editing:_0x91b271,t:t}=_0x37380d,_0xa303a3=_0x37380d['model']['document']['selection'];_0x37380d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x37380d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x91b271['view']['document'],'enter',(_0x2cd3f9,_0x667331)=>{const _0x1af0df=function(_0x3dbb37){const _0x545bfc=_0x3dbb37['getSelectedElement']();if(_0x545bfc?.['is']('element','footnoteRef'))return _0x545bfc;return null;}(_0xa303a3);if(_0x1af0df){const _0x583bd2=_0x1af0df['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x583bd2),_0x667331['preventDefault'](),_0x2cd3f9['stop']();}},{'context':_0x27a867});}['_defineClickHandlers'](){const {editor:_0x167ddb}=this,{editing:_0x28e10b}=_0x167ddb;_0x167ddb['editing']['view']['addObserver'](_0x12ebf2),_0x167ddb['editing']['view']['addObserver'](_0x2e5ae5);let _0x5a0fc1=!0x1;this['listenTo'](_0x28e10b['view']['document'],'pointerdown',(_0x9c8b74,_0x86a8f0)=>{const {target:_0x479de7}=_0x86a8f0,_0x2fa9d2=_0x28e10b['view']['document']['selection'];_0x5a0fc1=!!(_0x479de7?.['is']('element','a')&&_0x479de7['parent']?.['is']('element','sup')&&_0x479de7['parent']['hasClass']('footnote'))&&_0x2fa9d2['getSelectedElement']()===_0x479de7['parent'];},{'priority':'high'}),this['listenTo'](_0x28e10b['view']['document'],'click',(_0x57263a,_0x529454)=>{const {target:_0x55dbde}=_0x529454;if(!_0x55dbde?.['is']('element','a'))return;if(_0x55dbde['parent']?.['is']('element','sup')&&_0x55dbde['parent']['hasClass']('footnote')&&!_0x5a0fc1)return void _0x529454['preventDefault']();let _0x11b498=_0x55dbde['getAttribute']('href');if(!_0x11b498?.['startsWith']('#'))return;_0x11b498=_0x11b498['slice'](0x1);let _0x5d94d4=!0x1;(_0x11b498['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x11b498['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x11b498))&&(_0x5d94d4=!0x0),_0x5d94d4&&(_0x529454['preventDefault'](),_0x57263a['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x44e5f3}={}){return(_0x29c335,{writer:_0x68f409})=>{if(!p(_0x29c335))return null;if(!_0x44e5f3)return _0x68f409['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x37ad14=_0x68f409['createContainerElement']('p');return _0x68f409['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x37ad14),_0x37ad14;};}function p(_0x3453da){const {parent:_0x18e296}=_0x3453da;if(!_0x18e296?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x18e296['childCount'])return!0x1;for(const _0xda6851 of _0x3453da['getAttributeKeys']())if(!_0xda6851['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xda6851)return!0x1;return!0x0;}function g(_0x426d1c,_0x179c06){if(!_0x426d1c['is']('element','paragraph'))return!0x1;const _0x4c76be=_0x179c06['toViewElement'](_0x426d1c);return!!_0x4c76be&&p(_0x426d1c)!==_0x4c76be['is']('element','span');}export function isFootnotesDefinitionsWidget(_0xc0dcc9){return _0x27a867(_0xc0dcc9)&&_0xc0dcc9['is']('containerElement')&&!!_0xc0dcc9['getCustomProperty']('footnotesDefinitions');}function v(_0x20c010,_0x59ea81={}){const _0x1ccff0=_0x20c010['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x364e85=_0x20c010['createContainerElement']('ol',{'class':'footnotes-list'},_0x20c010['createSlot']());return _0x20c010['createContainerElement']('div',{'class':'footnotes',..._0x59ea81},[_0x1ccff0,_0x364e85]);}function D(_0x4a728f,_0x440eb3){const _0x29bbd0=_0x4a728f['getAttribute']('footnoteId'),_0x373cfb=_0x4a728f['getAttribute']('footnoteCounter'),_0x2efe1c=_0x440eb3['createUIElement']('a',{'href':'#'+_0x29bbd0},function(_0x5ac340){const _0x8d06f8=this['toDomElement'](_0x5ac340);return _0x8d06f8['textContent']=_0x373cfb,_0x8d06f8;}),_0x4fd1e0=_0x440eb3['createContainerElement']('sup',{'id':'ref-'+_0x29bbd0,'class':'footnote'},[_0x2efe1c]);return _0x4fd1e0['getFillerOffset']=()=>null,_0x4fd1e0;}function b(_0x3ee93b,_0x3f4953,_0x7a25ff,{dataPipeline:_0x57d219}={}){const {t:t}=_0x7a25ff,_0x2c2e02=_0x3ee93b['getAttribute']('footnoteId'),_0x10ef1e=_0x3f4953['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2c2e02},function(_0x1be792){const _0x1c6814=this['toDomElement'](_0x1be792);return _0x1c6814['innerText']='^',_0x1c6814;}),_0x589d28=_0x57d219?_0x3f4953['createContainerElement']('div',{'class':'footnote-content'}):_0x55965f(_0x3f4953['createEditableElement']('div',{'class':'footnote-content'}),_0x3f4953,{'label':t('Footnote\x20content.')});return _0x3f4953['insert'](_0x3f4953['createPositionAt'](_0x589d28,0x0),_0x3f4953['createSlot']()),_0x3f4953['createContainerElement']('li',{'class':'footnote-definition','id':_0x2c2e02},[_0x10ef1e,_0x589d28]);}
|