@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251111.0 → 0.0.0-nightly-20251112.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
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={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265: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)}},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")},374: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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774: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)}}}},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")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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}},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:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=181]})(t,e)}function c(){const t=["_getElementKey","20lKEDzt","insert","values","$text","delete","createRangeOn","getChanges","elementName","add","name","328614wbrMkL","6UUylUh","_trackedElements","root","element","461630fPwkit","clear","position","$graveyard","get","27JPvwTY","724155jCwdkn","type","_model","1034848aiVdMp","remove","nodeAfter","attributes","reset","_elementName","set","from","996666OvGXVd","rootName","42986vrbuCV","189DRSmJx","getElementKey","length","getItems","slice","230211yrIFYb","has","push","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(783860===-parseInt(e(197))/1*(parseInt(e(219))/2)+parseInt(e(203))/3+-parseInt(e(208))/4*(parseInt(e(184))/5)+parseInt(e(218))/6*(parseInt(e(198))/7)+parseInt(e(187))/8+-parseInt(e(183))/9*(parseInt(e(223))/10)+parseInt(e(195))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(186)];[r(192)];[r(207)];[r(220)]=new Map;constructor(t,e){const o=r;this[o(186)]=t,this[o(192)]=e[o(215)],this[o(207)]=e[o(199)]}[r(191)](){const t=r;this[t(220)][t(224)]()}[r(214)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(209)===i[e(185)]&&e(211)!==i[e(217)]&&i[e(225)][e(189)]){const t=this[e(186)][e(213)](i[e(225)][e(189)]);for(const o of t[e(201)]()){if(!o.is(e(222),this[e(192)]))continue;const t=this[e(207)](o);n[e(204)](t)||n[e(193)](t,[]),n[e(182)](t)[e(205)](o)}}if(e(188)===i[e(185)]&&i[e(217)]===this[e(192)]){const t=this[e(207)]({getAttribute:t=>i[e(190)][e(182)](t)});o[e(216)](t)}}for(const[t,n]of this[e(220)])e(181)===n[e(221)][e(196)]&&o[e(216)](t);for(const t of o)this[e(220)][e(212)](t);for(const[t,o]of n)this[e(220)][e(193)](t,o[o[e(200)]-1]);const i=new Set;for(const[t,s]of n)o[e(204)](t)&&(i[e(216)](s[0]),s[e(200)]>1?n[e(193)](t,s[e(202)](1)):n[e(212)](t),o[e(212)](t));return{removed:Array[e(194)](o),inserted:Array[e(194)](n[e(210)]())[e(206)](),moved:Array[e(194)](i)}}}const f=d;function u(){const t=["move","1013285VLVBJa","findIndex","map","footnoteRef","_handleMovedFootnoteReference","_handleInsertedFootnoteReference","footnoteDefinition","listenTo","createRangeIn","before","getFootnotesFormatter","registerPostFixer","find","_handleFootnotesDefinitionsObjectChanges","pluginName","201479wJhegJ","footnoteId","length","934004CDKyeG","init","_handleRemoveFootnoteReferenceById","70mzxCto","rootName","3GDTdRw","compareWith","_sortFootnoteDefinitions","createElement","setFootnoteFormatter","add","footnotes.multiBlock","_footnotes","getAttribute","has","getFootnotesDefinitionsObjectElement","_ensureFootnotesReferencesHaveProperOrder","getFootnotes","getFootnote","getChildren","from","enqueueChange","256942upcxCt","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsTracker","getChanges","_handleFootnoteReferencesChanges","isOfficialPlugin","6ZTmRFp","FootnotesTracker","_footnotesDefinitions","footnoteInlineContent","differ","37143sdrvkO","653952DXZGrm","set","4753463BAYeEp","footnoteCounter","min","$graveyard","childCount","insert","setAttribute","push","document","model","config","reference","_insertEmptyFootnotesDefinitionsContainer","editor","high","_updateFootnoteRefCounter","low","footnotesDefinitions","_handleFootnoteDefinitionsChanges","_updateFootnotesCounters","indexOf","splice","createPositionAt","remove","some","reset","singleton","createRangeOn","_handleFootnotesDefinitionsObjectSync","getRootNames","change:data","after","_footnoteRefsTracker","definition","paragraph","append","isEqual","createPositionBefore","unshift","parent","get","_footnoteFormatter","2xxCtMU","end","root","isPremiumPlugin"];return(u=function(){return t})()}function d(t,e){const o=u();return(d=function(t,e){return o[t-=426]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(123527===-parseInt(e(450))/1*(-parseInt(e(430))/2)+-parseInt(e(458))/3*(parseInt(e(453))/4)+parseInt(e(435))/5*(-parseInt(e(482))/6)+parseInt(e(475))/7+-parseInt(e(488))/8+parseInt(e(487))/9*(-parseInt(e(456))/10)+parseInt(e(490))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class p extends t.Plugin{[f(465)]=[];[f(484)]=null;[f(429)]=null;[f(476)];[f(522)];[f(478)];static get[f(449)](){return f(483)}static get[f(481)](){return!0}static get[f(433)](){return!0}constructor(t){const e=f;super(t),this[e(476)]=new l(this[e(503)][e(499)],{elementName:e(507),getElementKey:()=>e(516)}),this[e(522)]=new l(this[e(503)][e(499)],{elementName:e(438),getElementKey:t=>t[e(466)](e(451))}),this[e(478)]=new l(this[e(503)][e(499)],{elementName:e(441),getElementKey:t=>t[e(466)](e(451))})}[f(454)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(498)][t(446)](e=>{const n=t,i=o[n(498)][n(486)][n(479)]();let s=!1;return this[n(448)](e,i)&&(s=!0),this[n(508)](e,i)&&(s=!0),this[n(480)](e,i)&&(s=!0),this[n(469)](e)&&(s=!0),this[n(518)](e)&&(s=!0),this[n(460)](e)&&(s=!0),s}),this[t(442)](o[t(498)],t(520),()=>{const e=t;o[e(474)]({isUndoable:!1},t=>{this[e(477)](t)})},{priority:t(506)}),this[t(442)](n,t(489),()=>{const e=t;this[e(465)]=[],this[e(476)][e(515)](),this[e(522)][e(515)](),this[e(478)][e(515)]()},{priority:t(504)})}[f(468)](){return this[f(484)]}[f(471)](t){const e=f;return this[e(465)][e(447)](e=>e.id===t)||null}[f(470)](){const t=f;return Array[t(473)](this[t(465)])}[f(445)](){return this[f(429)]}[f(462)](t){this[f(429)]=t}[f(509)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(465)][o(452)];i++)this[o(505)](t,i)&&(n=!0);return n}[f(502)](t,e){const o=f,n=t[o(461)](o(507),{});return t[o(525)](n,e),this[o(484)]=n,n}[f(477)](t){const e=f;if(!this[e(465)][e(452)]||this[e(484)])return;const o=this[e(465)][0][e(501)][e(432)],n=this[e(502)](t,o);for(const o of this[e(465)])o[e(523)][e(427)]||t[e(495)](o[e(523)],n,e(431));this[e(509)](t)}[f(448)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(476)][o(479)](e);if(r[o(452)]&&(this[o(484)]=r[0]),i[o(452)])if(i[o(452)]>1||this[o(484)]&&i[o(514)](t=>t!==this[o(484)])){const e=t[o(461)](o(507),{}),s=[];this[o(484)]&&s[o(497)](this[o(484)]),s[o(497)](...i),t[o(495)](e,s[0],o(444));for(const n of s)t[o(434)](t[o(443)](n),t[o(512)](e,o(431))),t[o(513)](n);this[o(484)]=e,this[o(509)](t),n=!0}else this[o(484)]=i[0];if(s[o(452)]&&o(493)===this[o(484)]?.[o(432)][o(457)]){for(const e of this[o(465)])t[o(513)](e[o(501)]),n=!0;this[o(465)]=[],this[o(484)]=null}return n}[f(508)](t,e){const o=f;let n=!1;const i=this[o(503)][o(500)][o(428)](o(464)),{inserted:s,moved:r}=this[o(478)][o(479)](e);for(const e of[...r,...s]){const s=e[o(466)](o(451)),r=this[o(471)](s);r&&(r[o(523)]=e),h(t,i,e)&&(n=!0)}return n}[f(480)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(522)][o(479)](e);for(const e of i)this[o(455)](t,e)&&(n=!0);for(const e of s)this[o(440)](t,e)&&(n=!0);for(const e of r)this[o(439)](t,e)&&(n=!0);return n}[f(518)](t){const e=f;if(!this[e(484)])return!1;let o=!1;if(this[e(484)][e(494)]!==this[e(465)][e(452)]){const n=[];for(const t of this[e(484)][e(472)]()){const i=t[e(466)](e(451));this[e(471)](i)||(n[e(426)](t),o=!0)}for(const o of n)t[e(513)](o)}const n=new Set,i=[];for(const t of this[e(484)][e(472)]()){const s=t[e(466)](e(451));n[e(467)](s)?(i[e(426)](t),o=!0):n[e(463)](s)}for(const o of i)t[e(513)](o);return this[e(484)][e(494)]||(t[e(513)](this[e(484)]),this[e(484)]=null,o=!0),o}[f(440)](t,e){const o=f;if(this[o(465)][o(447)](t=>t[o(501)]===e))return!1;let n=!1;const i=e[o(466)](o(451)),s=this[o(465)][o(436)](t=>t.id===i);-1!==s&&(t[o(513)](this[o(465)][s][o(501)]),this[o(465)][o(511)](s,1),n=!0);let r=this[o(484)]?function(t,e){const n=o;for(const o of t[n(472)]())if(o[n(466)](n(451))===e)return o;return null}(this[o(484)],i):null;r||(r=t[o(461)](o(441),{footnoteId:i}),this[o(484)]&&(t[o(495)](r,this[o(484)],o(431)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(499)],this[o(465)],e);this[o(465)][o(511)](c,0,a);let l=c;return-1!==s&&(l=Math[o(492)](c,s)),this[o(509)](t,l)&&(n=!0),n}[f(455)](t,e){const o=f,n=this[o(465)][o(436)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(465)][n];return o(493)!==s[o(523)][o(432)][o(457)]&&(t[o(513)](s[o(523)]),i=!0),this[o(465)][o(511)](n,1),this[o(509)](t,n)&&(i=!0),i}[f(439)](t,e){const o=f,n=e[o(466)](o(451)),i=this[o(465)][o(436)](t=>t.id===n),s=this[o(465)][i];let r=!1;s[o(501)]=e,this[o(465)][o(511)](i,1);const a=m(this[o(503)][o(499)],this[o(465)],e);return this[o(465)][o(511)](a,0,s),this[o(509)](t,Math[o(492)](i,a))&&(r=!0),r}[f(505)](t,e){const o=f;if(!this[o(484)])return!1;const n=this[o(465)][e];let i;return i=this[o(429)]?this[o(429)]({footnote:n,container:this[o(484)],digits:String(this[o(465)][o(452)])[o(452)],value:e+1}):String(e+1),n[o(501)][o(466)](o(491))!=i&&(t[o(496)](o(491),i,n[o(501)]),!0)}[f(460)](t){const e=f;if(!this[e(484)]||this[e(465)][e(452)]<2)return!1;if(function(t,o){const n=e;if(t[n(452)]!==o[n(452)])return!1;for(let e=0;e<t[n(452)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(465)][e(437)](t=>t.id),Array[e(473)](this[e(484)][e(472)]())[e(437)](t=>t[e(466)](e(451)))))return!1;let o=!1;for(let n=0;n<this[e(465)][e(452)];n++){const i=this[e(465)][n],s=t[e(527)](i[e(523)]),r=t[e(512)](this[e(484)],n);s[e(526)](r)||(t[e(434)](t[e(517)](i[e(523)]),r),o=!0)}return o}[f(469)](t){const e=f;if(!this[e(465)][e(452)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(465)][e(452)]-1;i++){const s=this[e(465)][i],r=this[e(465)][i+1],a=o[e(527)](s[e(501)]),c=o[e(527)](r[e(501)]);e(521)===a[e(459)](c)&&(this[e(439)](t,s[e(501)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(494)])return!1;const i=n(e?524:485);return t[n(495)](t[n(461)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(452)])return 0;const i=t[n(527)](o);for(let o=0;o<e[n(452)];o++){const s=e[o],r=t[n(527)](s[n(501)]);if(n(444)===i[n(459)](r))return o}const s=o[n(432)];let r=-1;for(let t=e[n(452)]-1;t>=0;t--)if(e[t][n(501)][n(432)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(498)][n(519)](),c=a[n(510)](s[n(457)]),l=a[c+1];if(l)for(let t=0;t<e[n(452)];t++)if(e[t][n(501)][n(432)][n(457)]===l)return t;return e[n(452)]}function g(){const t=["isBlock","getItems","isEnabled","test","insertObject","33368oKMreG","editor","isObject","1202124XnBvBs","change","string","length","1340624AJASkJ","_getPositionToInsertFootnote","document","getFirstRange","364hNXhwF","createElement","model","footnoteRef","FootnotesEditing","selection","3163968wzOlRf","footnoteId","execute","refresh","_moveSelectionToFootnoteDefinition","checkChild","plugins","insert-footnote-command-executed-with-invalid-id","207274bGrEVU","6476410gpCufT","796794KSBoHV","get","end"];return(g=function(){return t})()}const w=y;function y(t,e){const o=g();return(y=function(t,e){return o[t-=227]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(690911===parseInt(e(253))/1+parseInt(e(236))/2+-parseInt(e(238))/3+parseInt(e(228))/4+-parseInt(e(237))/5+-parseInt(e(249))/6+-parseInt(e(257))/7*(-parseInt(e(246))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[w(231)](){const t=w,e=this[t(247)][t(259)][t(255)][t(227)],o=this[t(254)](e);this[t(243)]=!!o}[w(230)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(255)],r=this[e(254)](s);if(!r)return;const a=o[e(234)][e(239)](e(261)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(251)==typeof t&&t[o(252)]>0&&!/\s/[o(244)](t)&&!/^\d/[o(244)](t)}(c)?(0,i.logWarning)(e(235)):(n[e(250)](t=>{const o=e,i=t[o(258)](o(260),{footnoteId:c});n[o(245)](i,r,null)}),a[e(232)](c))}[w(254)](t){const e=w,{model:o}=this[e(247)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(242)]())if(n[e(241)](t)||n[e(248)](t))return null;const s=i[e(240)];return n[e(233)](s,e(260))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}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 p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}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])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,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,h=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])]&&(h=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 h(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=p(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])](p(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=>{h(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:1762819200;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&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||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(p).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(p).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})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(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 T(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 S=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=271]})(t,e)}function _(){const t=["listenTo","isOfficialPlugin","application/ckeditor5-footnotes","isPremiumPlugin","requires","getFirstRange","footnoteId","get","2712YXTOge","clipboardInput","flatMap","footnoteRef","stringify","remove","190crMffc","selection","footnoteDefinition","parse","insert","includes","_handleCopyFootnotesDefinitions","toView","258147Qdjyzs","dataTransfer","data","document","7QkuiUL","_defineClipboardIntegration","toModel","getData","method","element","getSelectedBlocks","FootnotesClipboard","append","reduce","49260gKMKbt","add","getFootnote","length","getFootnotesDefinitionsObjectElement","toData","getFootnotes","getAttribute","root","228xCGQgM","content","footnotesDefinitions","462KXjhJH","drop","contentInsertion","entries","sourceEditorId","find","5937YQkRKI","setAttribute","getRanges","editor","createElement","definition","3406568vGrmOd","create","change","htmlProcessor","15244838TPybAO","editing","outputTransformation","11597WjGput","187451ujuPyK","_handlePasteFootnotesDefinitions","end","push","26FqFIJx","8XOhsQb","_insertEmptyFootnotesDefinitionsContainer","init","setData","from","createRangeIn","pluginName"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(678099===parseInt(e(330))/1*(-parseInt(e(336))/2)+-parseInt(e(317))/3*(parseInt(e(271))/4)+parseInt(e(299))/5*(-parseInt(e(311))/6)+-parseInt(e(289))/7*(-parseInt(e(323))/8)+parseInt(e(285))/9*(parseInt(e(277))/10)+parseInt(e(331))/11*(-parseInt(e(308))/12)+parseInt(e(335))/13*(parseInt(e(327))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[S(342)](){return S(296)}static get[S(347)](){return[v,P.ClipboardPipeline]}static get[S(344)](){return!0}static get[S(346)](){return!0}[S(338)](){this[S(290)]()}[S(290)](){const t=S;this[t(283)](),this[t(332)]()}[S(283)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(350)](P.ClipboardPipeline),s=o[t(350)](p);this[t(343)](i,t(329),(o,i)=>{const r=t,a=L(n[r(341)](i[r(309)]));if(!a[r(302)])return;const c=s[r(305)](),l=a[r(298)]((t,o)=>{const n=r,i=c[n(316)](t=>t.id===o);if(i){const o=e[n(287)][n(284)](i[n(322)],{isClipboardPipeline:!0}),s=e[n(287)][n(326)][n(304)](o);t[i.id]=s}return t},Object[r(324)](null));i[r(286)][r(339)](r(345),JSON[r(275)](l))})}[S(332)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(328)],r=n[t(350)](P.ClipboardPipeline),a=n[t(350)](p);let c=null;this[t(343)](s[t(288)],t(272),(e,o)=>{const n=t,i=o[n(286)][n(292)](n(345));c=i?JSON[n(280)](i):null}),this[t(343)](r,t(313),(n,s)=>{const r=t,l=s[r(315)]===this[r(320)].id;l&&r(312)===s[r(293)]||o[r(325)](t=>{const n=r;let f=a[n(303)]();const u=!!f&&Array[n(340)](o[n(288)][n(278)][n(295)]())[n(282)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(341)](e))n.is(o(294),o(310))&&i[o(334)](n);for(const e of i)t[o(276)](e)}(t,s[n(309)]),!c)return;const{selection:d}=o[n(288)],p=d[n(348)]()[n(307)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(341)](e))if(n.is(o(294),o(310)))return n;return null}(t,s[n(309)]),f||=a[n(337)](t,p));const h=Array[n(340)](d[n(319)]())[n(273)](L),m=function(t,e,o){const s=n,r=Object[s(324)](null);for(const{item:n}of t[s(341)](e))if(n.is(s(294),s(274))){const e=n[s(306)](s(349));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(318)](s(349),r[e],n)}return r}(t,s[n(309)],t=>{const e=n;return!l||!!a[e(301)](t)&&!h[e(282)](t)});for(const[o,i]of Object[n(314)](c)){const s=m[o]||o,r=t[n(321)](n(279),{footnoteId:s}),a=e[n(287)][n(326)][n(284)](i),c=e[n(287)][n(291)](a,r);t[n(297)](c,r),t[n(281)](r,f,n(333))}c=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(294),e(274))&&o[e(300)](n[e(306)](e(349)));return Array[e(340)](o)}var O=o(311),V=o(355),N=o(450),R=o.n(N),K=o(774),j=o.n(K),M=o(265),B=o.n(M),z=o(410),U=o.n(z),H=o(238),W=o.n(H),G=o(14),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=B().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=W();R()(G.A,J);G.A&&G.A.locals&&G.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",q(t,O.ButtonView)),e.add("menuBar:insertFootnote",q(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Q;function Q(t,e){var o=Z();return(Q=function(t,e){return o[t-=292]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(832948===-parseInt(e(298))/1*(-parseInt(e(303))/2)+-parseInt(e(302))/3+parseInt(e(305))/4+parseInt(e(301))/5*(-parseInt(e(304))/6)+parseInt(e(292))/7*(-parseInt(e(299))/8)+-parseInt(e(300))/9+parseInt(e(294))/10*(parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[Y(293)](){return Y(307)}static get[Y(295)](){return[v,D,X]}static get[Y(297)](){return!0}static get[Y(296)](){return!0}}function Z(){var t=["isOfficialPlugin","103KDqxla","5327816QSjrLa","13272606CYWiQq","8250645NPeXEf","220632rNFqaH","16342BeprMF","6fSTjtq","3827540SiXbgb","66HxEBZN","Footnotes","7jxiMJR","pluginName","4831390nExyEB","requires","isPremiumPlugin"];return(Z=function(){return t})()}function tt(t,e){const o=ot();return(tt=function(t,e){return o[t-=113]})(t,e)}const et=tt;function ot(){const t=["426000eMTthA","lower-alpha","decimal","upper-latin","1830zjgYHs","2EhXqlY","2331666erUFhY","4912IbFfPd","upper-roman","2494917utpPDR","lower-roman","515842mzuYTd","32752DwWcyz","10RxFAgp","upper-alpha","decimal-leading-zero","lower-latin","5908155ANigfQ","77XYAwvw"];return(ot=function(){return t})()}!function(t){const e=tt,o=t();for(;;)try{if(262347===parseInt(e(119))/1*(-parseInt(e(125))/2)+-parseInt(e(114))/3+-parseInt(e(121))/4*(-parseInt(e(118))/5)+-parseInt(e(120))/6+parseInt(e(113))/7*(parseInt(e(126))/8)+parseInt(e(123))/9*(parseInt(e(127))/10)+parseInt(e(131))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[et(116),et(129),et(130),et(117),et(115),et(128),et(124),et(122)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=487]})(t,e)}function rt(){const t=["3aMwUxz","isEnabled","13GPdbLO","45978756IUGwXs","footnotesListStyle","9YkDgIV","getAttribute","5978929CnnHJb","716173oxagHn","includes","plugins","198751GACPVZ","execute","174nGHtXt","get","1517806yHgNay","model","4935whiqFx","getFootnotesDefinitionsObjectElement","629984LKpFWx","refresh","setAttribute","value","548oxEivB","_updateFootnotesCounters","change","10PvNEcl"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(775584===-parseInt(e(490))/1+parseInt(e(497))/2*(-parseInt(e(509))/3)+-parseInt(e(505))/4*(parseInt(e(499))/5)+-parseInt(e(495))/6*(parseInt(e(493))/7)+-parseInt(e(501))/8*(parseInt(e(487))/9)+parseInt(e(508))/10*(-parseInt(e(489))/11)+parseInt(e(512))/12*(parseInt(e(511))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(502)](){const t=it,{editor:e}=this,o=e[t(492)][t(496)](p)[t(500)]();this[t(510)]=!!o,this[t(504)]=o?.[t(488)](t(513))??null}[it(494)]({value:t}){const e=it,{editor:o}=this,n=o[e(492)][e(496)](p),i=n[e(500)]();i&&nt[e(491)](t)&&o[e(498)][e(507)](o=>{const s=e;o[s(503)](s(513),t,i),n[s(506)](o)})}}const ct=ft;function lt(){const t=["162995YGKTGT","3384Nvckrj","value","plugins","footnotesListStart","get","20SijPWn","12KqitTq","isInteger","1413313nttdca","260252Rdabky","1542249mTIKRr","isEnabled","_updateFootnotesCounters","10oPzEHt","707bMdnVE","240486xUiifP","execute","change","model","338064jrjGyc","3YQmMEr","getFootnotesDefinitionsObjectElement","refresh","getAttribute","setAttribute"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(170625===parseInt(e(146))/1+parseInt(e(136))/2*(-parseInt(e(121))/3)+-parseInt(e(132))/4*(parseInt(e(126))/5)+parseInt(e(142))/6+-parseInt(e(141))/7*(-parseInt(e(127))/8)+parseInt(e(137))/9*(parseInt(e(140))/10)+-parseInt(e(135))/11*(parseInt(e(133))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(123)](){const t=ct,{editor:e}=this,o=e[t(129)][t(131)](p)[t(122)]();this[t(138)]=!!o,this[t(128)]=o?.[t(124)](t(130))??null}[ct(143)]({value:t}){const e=ct,{editor:o}=this,n=o[e(129)][e(131)](p),i=n[e(122)]();i&&Number[e(134)](t)&&o[e(145)][e(144)](o=>{const s=e;o[s(125)](s(130),t,i),n[s(139)](o)})}}const dt=gt;!function(t){const e=gt,o=t();for(;;)try{if(364058===-parseInt(e(282))/1*(parseInt(e(271))/2)+-parseInt(e(330))/3+parseInt(e(341))/4+-parseInt(e(295))/5*(-parseInt(e(296))/6)+-parseInt(e(319))/7+-parseInt(e(346))/8+-parseInt(e(351))/9*(-parseInt(e(266))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class pt extends t.Plugin{static get[dt(290)](){return dt(263)}static get[dt(316)](){return[v,p]}static get[dt(257)](){return!0}static get[dt(339)](){return!0}[dt(278)](){const t=dt,{editor:e}=this;e[t(350)][t(332)](t(307),t(293)),e[t(350)][t(332)](t(343),1),e[t(262)][t(297)](t(258),new at(e)),e[t(262)][t(297)](t(261),new ut(e)),this[t(287)](),this[t(273)](),this[t(294)](),this[t(349)]()}[dt(287)](){const t=dt,{editor:e}=this,{schema:o}=e[t(331)];o[t(309)](t(313),{allowAttributes:[t(280),t(353)]})}[dt(273)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(289)](t(334))[t(297)](e=>{const o=t;e.on(o(267),(t,e,n)=>{const s=o,r=e[s(260)],a=e[s(311)]?.[s(264)];r[s(272)](s(259))&&a?.is(s(274),s(313))&&(function(t,e,o,n){const i=s;if(!n[i(279)](e,i(353)))return;let r=1;const a=o[i(276)][i(356)](t,{attributes:i(318)});if(a){const e=Number[i(321)](t[i(320)](i(318)),10);Number[i(265)](e)||(r=e)}!a&&e[i(277)](i(353))||o[i(285)][i(270)](i(353),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(279)](e,i(280)))return;let r=i(293),a=!1;if(o[i(276)][i(356)](t,{attributes:i(301)})){const e={1:i(293),a:i(344),A:i(336),i:i(310),I:i(354)}[t[i(320)](i(301))];e&&(r=e),a=!0}o[i(276)][i(356)](t,{styles:i(333)})&&(r=t[i(286)](i(333)),a=!0),!a&&e[i(277)](i(280))||o[i(285)][i(270)](i(280),r,e)}(r,a,n,i))})}),o[t(289)](t(306))[t(297)](e=>{const o=t;e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;null==r||1===r?n[i(285)][i(327)](i(318),s):n[i(285)][i(270)](i(318),String(r),s)}),e.on(o(268),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;r&&i(293)!==r?n[i(285)][i(324)](i(333),r,s):n[i(285)][i(288)](i(333),s)})})}[dt(349)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(302)][t(328)](p),i=this[t(317)](),s=this[t(345)]();o[t(283)][t(299)](e=>{const r=t,a=o[r(283)][r(304)][r(340)]();let c=!1;for(const t of a){if(r(325)!==t[r(301)]||r(326)===t[r(269)])continue;const n=o[r(292)](t[r(300)][r(308)]);for(const t of n[r(322)]())t.is(r(274),r(313))&&(!t[r(277)](r(353))&&o[r(312)][r(279)](t,r(353))&&(e[r(270)](r(353),s,t),c=!0),!t[r(277)](r(280))&&o[r(312)][r(279)](t,r(280))&&(e[r(270)](r(280),i,t),c=!0))}return c&&n[r(323)](e),c})}[dt(294)](){const t=dt,{editor:e}=this;e[t(302)][t(328)](p)[t(298)](e=>this[t(357)](e))}[dt(317)](){const t=dt;return this[t(329)][t(350)][t(328)](t(307))}[dt(345)](){const t=dt;return this[t(329)][t(350)][t(328)](t(343))}[dt(357)]({container:t,value:e,digits:o}){const n=dt,i=t[n(320)](n(280)),s=t[n(320)](n(353)),r=Math[n(338)](e)+(s??1)-1;switch(i){case n(348):return function(t,e){const o=n;return String(t)[o(284)](e,"0")}(r,Math[n(314)](2,o));case n(344):case n(291):return mt(r,!1);case n(336):case n(342):return mt(r,!0);case n(310):return yt(r,!1);case n(354):return yt(r,!0);default:return String(r)}}}function ht(t,e){const o=dt,n=e[o(352)](t);return Array[o(275)](n[o(315)]())[o(335)](t=>t.is(o(274),"ol")&&t[o(272)](o(259)))}function mt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(347)](97+t)+n,i=Math[o(338)]((i-1)/26)}return e?n[o(355)]():n}function gt(t,e){const o=bt();return(gt=function(t,e){return o[t-=257]})(t,e)}const wt=[{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 yt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(305)]()}function bt(){const t=["FootnotesPropertiesEditing","parent","isNaN","90SOYHgW","element:ol","attribute:footnotesListStyle:footnotesDefinitions","name","setAttribute","136iTEsxz","hasClass","_defineConverters","element","from","consumable","hasAttribute","init","checkAttribute","footnotesListStyle","item","7283QFegtJ","document","padStart","writer","getStyle","_defineSchema","removeStyle","for","pluginName","lower-latin","createRangeOn","decimal","_defineFormatter","5fHcnGz","38322OtHpOm","add","setFootnoteFormatter","registerPostFixer","position","type","plugins","attribute:footnotesListStart:footnotesDefinitions","differ","toLowerCase","downcast","footnotes.footnotesProperties.defaultListStyle","nodeAfter","extend","lower-roman","modelCursor","schema","footnotesDefinitions","max","getChildren","requires","_getDefaultListStyle","start","4442781BBYPEQ","getAttribute","parseInt","getItems","_updateFootnotesCounters","setStyle","insert","$text","removeAttribute","get","editor","1640832ATEfnN","model","define","list-style-type","upcast","find","upper-alpha","mapper","floor","isPremiumPlugin","getChanges","710156LWlBZG","upper-latin","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","_getDefaultStartIndex","5805888ACBMGH","fromCharCode","decimal-leading-zero","_definePostfixer","config","2582739KiZJSO","toViewElement","footnotesListStart","upper-roman","toUpperCase","consume","_formatFootnoteListValue","isOfficialPlugin","footnotesStyle","footnotes-list","viewItem","footnotesStart","commands"];return(bt=function(){return t})()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();R()(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[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["28TJjeoT","isPremiumPlugin","293296eOZktr","810357TANwKS","8270vvwWaV","130848tQenzp","5380596oIlrDx","15FtdNPG","isOfficialPlugin","11hrnhOW","585236zzaXsd","pluginName","2OpTCZr","requires","1791pidsHw","94902zrCyVh","FootnotesProperties"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=246]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(230476===-parseInt(e(252))/1+parseInt(e(262))/2*(parseInt(e(253))/3)+parseInt(e(260))/4*(-parseInt(e(257))/5)+-parseInt(e(248))/6*(-parseInt(e(250))/7)+parseInt(e(255))/8+parseInt(e(247))/9*(parseInt(e(254))/10)+-parseInt(e(259))/11*(-parseInt(e(256))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Tt extends t.Plugin{static get[Ft(261)](){return Ft(249)}static get[Ft(246)](){return[pt,Ct]}static get[Ft(258)](){return!0}static get[Ft(251)](){return!0}}function Pt(){var t=["56cPBMdo","4809238VmxtOU","371724auHQDA","16UNemJc","6kXwjLL","6096700hfJQAW","123507nACPQu","32762fUYKpS","542130MxEWio","584919wisRRR"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=339]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(472806===-parseInt(e(345))/1+parseInt(e(341))/2*(parseInt(e(344))/3)+-parseInt(e(340))/4+-parseInt(e(346))/5+parseInt(e(342))/6*(-parseInt(e(339))/7)+-parseInt(e(348))/8*(-parseInt(e(347))/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={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265: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)}},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")},374: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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774: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)}}}},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")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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}},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:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=181]})(t,e)}function c(){const t=["_getElementKey","20lKEDzt","insert","values","$text","delete","createRangeOn","getChanges","elementName","add","name","328614wbrMkL","6UUylUh","_trackedElements","root","element","461630fPwkit","clear","position","$graveyard","get","27JPvwTY","724155jCwdkn","type","_model","1034848aiVdMp","remove","nodeAfter","attributes","reset","_elementName","set","from","996666OvGXVd","rootName","42986vrbuCV","189DRSmJx","getElementKey","length","getItems","slice","230211yrIFYb","has","push","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(783860===-parseInt(e(197))/1*(parseInt(e(219))/2)+parseInt(e(203))/3+-parseInt(e(208))/4*(parseInt(e(184))/5)+parseInt(e(218))/6*(parseInt(e(198))/7)+parseInt(e(187))/8+-parseInt(e(183))/9*(parseInt(e(223))/10)+parseInt(e(195))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(186)];[r(192)];[r(207)];[r(220)]=new Map;constructor(t,e){const o=r;this[o(186)]=t,this[o(192)]=e[o(215)],this[o(207)]=e[o(199)]}[r(191)](){const t=r;this[t(220)][t(224)]()}[r(214)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(209)===i[e(185)]&&e(211)!==i[e(217)]&&i[e(225)][e(189)]){const t=this[e(186)][e(213)](i[e(225)][e(189)]);for(const o of t[e(201)]()){if(!o.is(e(222),this[e(192)]))continue;const t=this[e(207)](o);n[e(204)](t)||n[e(193)](t,[]),n[e(182)](t)[e(205)](o)}}if(e(188)===i[e(185)]&&i[e(217)]===this[e(192)]){const t=this[e(207)]({getAttribute:t=>i[e(190)][e(182)](t)});o[e(216)](t)}}for(const[t,n]of this[e(220)])e(181)===n[e(221)][e(196)]&&o[e(216)](t);for(const t of o)this[e(220)][e(212)](t);for(const[t,o]of n)this[e(220)][e(193)](t,o[o[e(200)]-1]);const i=new Set;for(const[t,s]of n)o[e(204)](t)&&(i[e(216)](s[0]),s[e(200)]>1?n[e(193)](t,s[e(202)](1)):n[e(212)](t),o[e(212)](t));return{removed:Array[e(194)](o),inserted:Array[e(194)](n[e(210)]())[e(206)](),moved:Array[e(194)](i)}}}const f=d;function u(){const t=["move","1013285VLVBJa","findIndex","map","footnoteRef","_handleMovedFootnoteReference","_handleInsertedFootnoteReference","footnoteDefinition","listenTo","createRangeIn","before","getFootnotesFormatter","registerPostFixer","find","_handleFootnotesDefinitionsObjectChanges","pluginName","201479wJhegJ","footnoteId","length","934004CDKyeG","init","_handleRemoveFootnoteReferenceById","70mzxCto","rootName","3GDTdRw","compareWith","_sortFootnoteDefinitions","createElement","setFootnoteFormatter","add","footnotes.multiBlock","_footnotes","getAttribute","has","getFootnotesDefinitionsObjectElement","_ensureFootnotesReferencesHaveProperOrder","getFootnotes","getFootnote","getChildren","from","enqueueChange","256942upcxCt","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsTracker","getChanges","_handleFootnoteReferencesChanges","isOfficialPlugin","6ZTmRFp","FootnotesTracker","_footnotesDefinitions","footnoteInlineContent","differ","37143sdrvkO","653952DXZGrm","set","4753463BAYeEp","footnoteCounter","min","$graveyard","childCount","insert","setAttribute","push","document","model","config","reference","_insertEmptyFootnotesDefinitionsContainer","editor","high","_updateFootnoteRefCounter","low","footnotesDefinitions","_handleFootnoteDefinitionsChanges","_updateFootnotesCounters","indexOf","splice","createPositionAt","remove","some","reset","singleton","createRangeOn","_handleFootnotesDefinitionsObjectSync","getRootNames","change:data","after","_footnoteRefsTracker","definition","paragraph","append","isEqual","createPositionBefore","unshift","parent","get","_footnoteFormatter","2xxCtMU","end","root","isPremiumPlugin"];return(u=function(){return t})()}function d(t,e){const o=u();return(d=function(t,e){return o[t-=426]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(123527===-parseInt(e(450))/1*(-parseInt(e(430))/2)+-parseInt(e(458))/3*(parseInt(e(453))/4)+parseInt(e(435))/5*(-parseInt(e(482))/6)+parseInt(e(475))/7+-parseInt(e(488))/8+parseInt(e(487))/9*(-parseInt(e(456))/10)+parseInt(e(490))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class p extends t.Plugin{[f(465)]=[];[f(484)]=null;[f(429)]=null;[f(476)];[f(522)];[f(478)];static get[f(449)](){return f(483)}static get[f(481)](){return!0}static get[f(433)](){return!0}constructor(t){const e=f;super(t),this[e(476)]=new l(this[e(503)][e(499)],{elementName:e(507),getElementKey:()=>e(516)}),this[e(522)]=new l(this[e(503)][e(499)],{elementName:e(438),getElementKey:t=>t[e(466)](e(451))}),this[e(478)]=new l(this[e(503)][e(499)],{elementName:e(441),getElementKey:t=>t[e(466)](e(451))})}[f(454)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(498)][t(446)](e=>{const n=t,i=o[n(498)][n(486)][n(479)]();let s=!1;return this[n(448)](e,i)&&(s=!0),this[n(508)](e,i)&&(s=!0),this[n(480)](e,i)&&(s=!0),this[n(469)](e)&&(s=!0),this[n(518)](e)&&(s=!0),this[n(460)](e)&&(s=!0),s}),this[t(442)](o[t(498)],t(520),()=>{const e=t;o[e(474)]({isUndoable:!1},t=>{this[e(477)](t)})},{priority:t(506)}),this[t(442)](n,t(489),()=>{const e=t;this[e(465)]=[],this[e(476)][e(515)](),this[e(522)][e(515)](),this[e(478)][e(515)]()},{priority:t(504)})}[f(468)](){return this[f(484)]}[f(471)](t){const e=f;return this[e(465)][e(447)](e=>e.id===t)||null}[f(470)](){const t=f;return Array[t(473)](this[t(465)])}[f(445)](){return this[f(429)]}[f(462)](t){this[f(429)]=t}[f(509)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(465)][o(452)];i++)this[o(505)](t,i)&&(n=!0);return n}[f(502)](t,e){const o=f,n=t[o(461)](o(507),{});return t[o(525)](n,e),this[o(484)]=n,n}[f(477)](t){const e=f;if(!this[e(465)][e(452)]||this[e(484)])return;const o=this[e(465)][0][e(501)][e(432)],n=this[e(502)](t,o);for(const o of this[e(465)])o[e(523)][e(427)]||t[e(495)](o[e(523)],n,e(431));this[e(509)](t)}[f(448)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(476)][o(479)](e);if(r[o(452)]&&(this[o(484)]=r[0]),i[o(452)])if(i[o(452)]>1||this[o(484)]&&i[o(514)](t=>t!==this[o(484)])){const e=t[o(461)](o(507),{}),s=[];this[o(484)]&&s[o(497)](this[o(484)]),s[o(497)](...i),t[o(495)](e,s[0],o(444));for(const n of s)t[o(434)](t[o(443)](n),t[o(512)](e,o(431))),t[o(513)](n);this[o(484)]=e,this[o(509)](t),n=!0}else this[o(484)]=i[0];if(s[o(452)]&&o(493)===this[o(484)]?.[o(432)][o(457)]){for(const e of this[o(465)])t[o(513)](e[o(501)]),n=!0;this[o(465)]=[],this[o(484)]=null}return n}[f(508)](t,e){const o=f;let n=!1;const i=this[o(503)][o(500)][o(428)](o(464)),{inserted:s,moved:r}=this[o(478)][o(479)](e);for(const e of[...r,...s]){const s=e[o(466)](o(451)),r=this[o(471)](s);r&&(r[o(523)]=e),h(t,i,e)&&(n=!0)}return n}[f(480)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(522)][o(479)](e);for(const e of i)this[o(455)](t,e)&&(n=!0);for(const e of s)this[o(440)](t,e)&&(n=!0);for(const e of r)this[o(439)](t,e)&&(n=!0);return n}[f(518)](t){const e=f;if(!this[e(484)])return!1;let o=!1;if(this[e(484)][e(494)]!==this[e(465)][e(452)]){const n=[];for(const t of this[e(484)][e(472)]()){const i=t[e(466)](e(451));this[e(471)](i)||(n[e(426)](t),o=!0)}for(const o of n)t[e(513)](o)}const n=new Set,i=[];for(const t of this[e(484)][e(472)]()){const s=t[e(466)](e(451));n[e(467)](s)?(i[e(426)](t),o=!0):n[e(463)](s)}for(const o of i)t[e(513)](o);return this[e(484)][e(494)]||(t[e(513)](this[e(484)]),this[e(484)]=null,o=!0),o}[f(440)](t,e){const o=f;if(this[o(465)][o(447)](t=>t[o(501)]===e))return!1;let n=!1;const i=e[o(466)](o(451)),s=this[o(465)][o(436)](t=>t.id===i);-1!==s&&(t[o(513)](this[o(465)][s][o(501)]),this[o(465)][o(511)](s,1),n=!0);let r=this[o(484)]?function(t,e){const n=o;for(const o of t[n(472)]())if(o[n(466)](n(451))===e)return o;return null}(this[o(484)],i):null;r||(r=t[o(461)](o(441),{footnoteId:i}),this[o(484)]&&(t[o(495)](r,this[o(484)],o(431)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(499)],this[o(465)],e);this[o(465)][o(511)](c,0,a);let l=c;return-1!==s&&(l=Math[o(492)](c,s)),this[o(509)](t,l)&&(n=!0),n}[f(455)](t,e){const o=f,n=this[o(465)][o(436)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(465)][n];return o(493)!==s[o(523)][o(432)][o(457)]&&(t[o(513)](s[o(523)]),i=!0),this[o(465)][o(511)](n,1),this[o(509)](t,n)&&(i=!0),i}[f(439)](t,e){const o=f,n=e[o(466)](o(451)),i=this[o(465)][o(436)](t=>t.id===n),s=this[o(465)][i];let r=!1;s[o(501)]=e,this[o(465)][o(511)](i,1);const a=m(this[o(503)][o(499)],this[o(465)],e);return this[o(465)][o(511)](a,0,s),this[o(509)](t,Math[o(492)](i,a))&&(r=!0),r}[f(505)](t,e){const o=f;if(!this[o(484)])return!1;const n=this[o(465)][e];let i;return i=this[o(429)]?this[o(429)]({footnote:n,container:this[o(484)],digits:String(this[o(465)][o(452)])[o(452)],value:e+1}):String(e+1),n[o(501)][o(466)](o(491))!=i&&(t[o(496)](o(491),i,n[o(501)]),!0)}[f(460)](t){const e=f;if(!this[e(484)]||this[e(465)][e(452)]<2)return!1;if(function(t,o){const n=e;if(t[n(452)]!==o[n(452)])return!1;for(let e=0;e<t[n(452)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(465)][e(437)](t=>t.id),Array[e(473)](this[e(484)][e(472)]())[e(437)](t=>t[e(466)](e(451)))))return!1;let o=!1;for(let n=0;n<this[e(465)][e(452)];n++){const i=this[e(465)][n],s=t[e(527)](i[e(523)]),r=t[e(512)](this[e(484)],n);s[e(526)](r)||(t[e(434)](t[e(517)](i[e(523)]),r),o=!0)}return o}[f(469)](t){const e=f;if(!this[e(465)][e(452)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(465)][e(452)]-1;i++){const s=this[e(465)][i],r=this[e(465)][i+1],a=o[e(527)](s[e(501)]),c=o[e(527)](r[e(501)]);e(521)===a[e(459)](c)&&(this[e(439)](t,s[e(501)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(494)])return!1;const i=n(e?524:485);return t[n(495)](t[n(461)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(452)])return 0;const i=t[n(527)](o);for(let o=0;o<e[n(452)];o++){const s=e[o],r=t[n(527)](s[n(501)]);if(n(444)===i[n(459)](r))return o}const s=o[n(432)];let r=-1;for(let t=e[n(452)]-1;t>=0;t--)if(e[t][n(501)][n(432)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(498)][n(519)](),c=a[n(510)](s[n(457)]),l=a[c+1];if(l)for(let t=0;t<e[n(452)];t++)if(e[t][n(501)][n(432)][n(457)]===l)return t;return e[n(452)]}function g(){const t=["isBlock","getItems","isEnabled","test","insertObject","33368oKMreG","editor","isObject","1202124XnBvBs","change","string","length","1340624AJASkJ","_getPositionToInsertFootnote","document","getFirstRange","364hNXhwF","createElement","model","footnoteRef","FootnotesEditing","selection","3163968wzOlRf","footnoteId","execute","refresh","_moveSelectionToFootnoteDefinition","checkChild","plugins","insert-footnote-command-executed-with-invalid-id","207274bGrEVU","6476410gpCufT","796794KSBoHV","get","end"];return(g=function(){return t})()}const w=y;function y(t,e){const o=g();return(y=function(t,e){return o[t-=227]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(690911===parseInt(e(253))/1+parseInt(e(236))/2+-parseInt(e(238))/3+parseInt(e(228))/4+-parseInt(e(237))/5+-parseInt(e(249))/6+-parseInt(e(257))/7*(-parseInt(e(246))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[w(231)](){const t=w,e=this[t(247)][t(259)][t(255)][t(227)],o=this[t(254)](e);this[t(243)]=!!o}[w(230)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(255)],r=this[e(254)](s);if(!r)return;const a=o[e(234)][e(239)](e(261)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(251)==typeof t&&t[o(252)]>0&&!/\s/[o(244)](t)&&!/^\d/[o(244)](t)}(c)?(0,i.logWarning)(e(235)):(n[e(250)](t=>{const o=e,i=t[o(258)](o(260),{footnoteId:c});n[o(245)](i,r,null)}),a[e(232)](c))}[w(254)](t){const e=w,{model:o}=this[e(247)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(242)]())if(n[e(241)](t)||n[e(248)](t))return null;const s=i[e(240)];return n[e(233)](s,e(260))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}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 p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}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])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,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,h=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])]&&(h=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 h(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=p(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])](p(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=>{h(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:1762905600;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&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||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(p).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(p).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=271]})(t,e)}function _(){const t=["listenTo","isOfficialPlugin","application/ckeditor5-footnotes","isPremiumPlugin","requires","getFirstRange","footnoteId","get","2712YXTOge","clipboardInput","flatMap","footnoteRef","stringify","remove","190crMffc","selection","footnoteDefinition","parse","insert","includes","_handleCopyFootnotesDefinitions","toView","258147Qdjyzs","dataTransfer","data","document","7QkuiUL","_defineClipboardIntegration","toModel","getData","method","element","getSelectedBlocks","FootnotesClipboard","append","reduce","49260gKMKbt","add","getFootnote","length","getFootnotesDefinitionsObjectElement","toData","getFootnotes","getAttribute","root","228xCGQgM","content","footnotesDefinitions","462KXjhJH","drop","contentInsertion","entries","sourceEditorId","find","5937YQkRKI","setAttribute","getRanges","editor","createElement","definition","3406568vGrmOd","create","change","htmlProcessor","15244838TPybAO","editing","outputTransformation","11597WjGput","187451ujuPyK","_handlePasteFootnotesDefinitions","end","push","26FqFIJx","8XOhsQb","_insertEmptyFootnotesDefinitionsContainer","init","setData","from","createRangeIn","pluginName"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(678099===parseInt(e(330))/1*(-parseInt(e(336))/2)+-parseInt(e(317))/3*(parseInt(e(271))/4)+parseInt(e(299))/5*(-parseInt(e(311))/6)+-parseInt(e(289))/7*(-parseInt(e(323))/8)+parseInt(e(285))/9*(parseInt(e(277))/10)+parseInt(e(331))/11*(-parseInt(e(308))/12)+parseInt(e(335))/13*(parseInt(e(327))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[P(342)](){return P(296)}static get[P(347)](){return[v,T.ClipboardPipeline]}static get[P(344)](){return!0}static get[P(346)](){return!0}[P(338)](){this[P(290)]()}[P(290)](){const t=P;this[t(283)](),this[t(332)]()}[P(283)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(350)](T.ClipboardPipeline),s=o[t(350)](p);this[t(343)](i,t(329),(o,i)=>{const r=t,a=L(n[r(341)](i[r(309)]));if(!a[r(302)])return;const c=s[r(305)](),l=a[r(298)]((t,o)=>{const n=r,i=c[n(316)](t=>t.id===o);if(i){const o=e[n(287)][n(284)](i[n(322)],{isClipboardPipeline:!0}),s=e[n(287)][n(326)][n(304)](o);t[i.id]=s}return t},Object[r(324)](null));i[r(286)][r(339)](r(345),JSON[r(275)](l))})}[P(332)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(328)],r=n[t(350)](T.ClipboardPipeline),a=n[t(350)](p);let c=null;this[t(343)](s[t(288)],t(272),(e,o)=>{const n=t,i=o[n(286)][n(292)](n(345));c=i?JSON[n(280)](i):null}),this[t(343)](r,t(313),(n,s)=>{const r=t,l=s[r(315)]===this[r(320)].id;l&&r(312)===s[r(293)]||o[r(325)](t=>{const n=r;let f=a[n(303)]();const u=!!f&&Array[n(340)](o[n(288)][n(278)][n(295)]())[n(282)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(341)](e))n.is(o(294),o(310))&&i[o(334)](n);for(const e of i)t[o(276)](e)}(t,s[n(309)]),!c)return;const{selection:d}=o[n(288)],p=d[n(348)]()[n(307)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(341)](e))if(n.is(o(294),o(310)))return n;return null}(t,s[n(309)]),f||=a[n(337)](t,p));const h=Array[n(340)](d[n(319)]())[n(273)](L),m=function(t,e,o){const s=n,r=Object[s(324)](null);for(const{item:n}of t[s(341)](e))if(n.is(s(294),s(274))){const e=n[s(306)](s(349));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(318)](s(349),r[e],n)}return r}(t,s[n(309)],t=>{const e=n;return!l||!!a[e(301)](t)&&!h[e(282)](t)});for(const[o,i]of Object[n(314)](c)){const s=m[o]||o,r=t[n(321)](n(279),{footnoteId:s}),a=e[n(287)][n(326)][n(284)](i),c=e[n(287)][n(291)](a,r);t[n(297)](c,r),t[n(281)](r,f,n(333))}c=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(294),e(274))&&o[e(300)](n[e(306)](e(349)));return Array[e(340)](o)}var O=o(311),R=o(355),V=o(450),N=o.n(V),K=o(774),M=o.n(K),j=o(265),B=o.n(j),z=o(410),U=o.n(z),H=o(238),W=o.n(H),G=o(14),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=B().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=W();N()(G.A,J);G.A&&G.A.locals&&G.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,O.ButtonView)),e.add("menuBar:insertFootnote",Q(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var X=Y;function Y(t,e){var o=Z();return(Y=function(t,e){return o[t-=292]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(832948===-parseInt(e(298))/1*(-parseInt(e(303))/2)+-parseInt(e(302))/3+parseInt(e(305))/4+parseInt(e(301))/5*(-parseInt(e(304))/6)+parseInt(e(292))/7*(-parseInt(e(299))/8)+-parseInt(e(300))/9+parseInt(e(294))/10*(parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[X(293)](){return X(307)}static get[X(295)](){return[v,D,q]}static get[X(297)](){return!0}static get[X(296)](){return!0}}function Z(){var t=["isOfficialPlugin","103KDqxla","5327816QSjrLa","13272606CYWiQq","8250645NPeXEf","220632rNFqaH","16342BeprMF","6fSTjtq","3827540SiXbgb","66HxEBZN","Footnotes","7jxiMJR","pluginName","4831390nExyEB","requires","isPremiumPlugin"];return(Z=function(){return t})()}function tt(t,e){const o=ot();return(tt=function(t,e){return o[t-=113]})(t,e)}const et=tt;function ot(){const t=["426000eMTthA","lower-alpha","decimal","upper-latin","1830zjgYHs","2EhXqlY","2331666erUFhY","4912IbFfPd","upper-roman","2494917utpPDR","lower-roman","515842mzuYTd","32752DwWcyz","10RxFAgp","upper-alpha","decimal-leading-zero","lower-latin","5908155ANigfQ","77XYAwvw"];return(ot=function(){return t})()}!function(t){const e=tt,o=t();for(;;)try{if(262347===parseInt(e(119))/1*(-parseInt(e(125))/2)+-parseInt(e(114))/3+-parseInt(e(121))/4*(-parseInt(e(118))/5)+-parseInt(e(120))/6+parseInt(e(113))/7*(parseInt(e(126))/8)+parseInt(e(123))/9*(parseInt(e(127))/10)+parseInt(e(131))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[et(116),et(129),et(130),et(117),et(115),et(128),et(124),et(122)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=362]})(t,e)}function rt(){const t=["911410dfPIiC","includes","539aszURr","117QgvNTH","refresh","isEnabled","change","10002632DXKQyA","19714JFSnCq","68212AaDBCh","get","model","_updateFootnotesCounters","plugins","footnotesListStyle","setAttribute","getAttribute","665766JZfPcG","894528NdXMNR","1968965KRYobz","execute","value","267SSmHSU","getFootnotesDefinitionsObjectElement","21PSQgMB","76BnQRnq"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(988445===-parseInt(e(380))/1*(-parseInt(e(363))/2)+-parseInt(e(377))/3*(-parseInt(e(364))/4)+-parseInt(e(374))/5+-parseInt(e(372))/6*(-parseInt(e(379))/7)+parseInt(e(362))/8+-parseInt(e(384))/9*(-parseInt(e(381))/10)+parseInt(e(383))/11*(-parseInt(e(373))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(385)](){const t=it,{editor:e}=this,o=e[t(368)][t(365)](p)[t(378)]();this[t(386)]=!!o,this[t(376)]=o?.[t(371)](t(369))??null}[it(375)]({value:t}){const e=it,{editor:o}=this,n=o[e(368)][e(365)](p),i=n[e(378)]();i&&nt[e(382)](t)&&o[e(366)][e(387)](o=>{const s=e;o[s(370)](s(369),t,i),n[s(367)](o)})}}const ct=ft;function lt(){const t=["162995YGKTGT","3384Nvckrj","value","plugins","footnotesListStart","get","20SijPWn","12KqitTq","isInteger","1413313nttdca","260252Rdabky","1542249mTIKRr","isEnabled","_updateFootnotesCounters","10oPzEHt","707bMdnVE","240486xUiifP","execute","change","model","338064jrjGyc","3YQmMEr","getFootnotesDefinitionsObjectElement","refresh","getAttribute","setAttribute"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(170625===parseInt(e(146))/1+parseInt(e(136))/2*(-parseInt(e(121))/3)+-parseInt(e(132))/4*(parseInt(e(126))/5)+parseInt(e(142))/6+-parseInt(e(141))/7*(-parseInt(e(127))/8)+parseInt(e(137))/9*(parseInt(e(140))/10)+-parseInt(e(135))/11*(parseInt(e(133))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(123)](){const t=ct,{editor:e}=this,o=e[t(129)][t(131)](p)[t(122)]();this[t(138)]=!!o,this[t(128)]=o?.[t(124)](t(130))??null}[ct(143)]({value:t}){const e=ct,{editor:o}=this,n=o[e(129)][e(131)](p),i=n[e(122)]();i&&Number[e(134)](t)&&o[e(145)][e(144)](o=>{const s=e;o[s(125)](s(130),t,i),n[s(139)](o)})}}const dt=gt;!function(t){const e=gt,o=t();for(;;)try{if(364058===-parseInt(e(282))/1*(parseInt(e(271))/2)+-parseInt(e(330))/3+parseInt(e(341))/4+-parseInt(e(295))/5*(-parseInt(e(296))/6)+-parseInt(e(319))/7+-parseInt(e(346))/8+-parseInt(e(351))/9*(-parseInt(e(266))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class pt extends t.Plugin{static get[dt(290)](){return dt(263)}static get[dt(316)](){return[v,p]}static get[dt(257)](){return!0}static get[dt(339)](){return!0}[dt(278)](){const t=dt,{editor:e}=this;e[t(350)][t(332)](t(307),t(293)),e[t(350)][t(332)](t(343),1),e[t(262)][t(297)](t(258),new at(e)),e[t(262)][t(297)](t(261),new ut(e)),this[t(287)](),this[t(273)](),this[t(294)](),this[t(349)]()}[dt(287)](){const t=dt,{editor:e}=this,{schema:o}=e[t(331)];o[t(309)](t(313),{allowAttributes:[t(280),t(353)]})}[dt(273)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(289)](t(334))[t(297)](e=>{const o=t;e.on(o(267),(t,e,n)=>{const s=o,r=e[s(260)],a=e[s(311)]?.[s(264)];r[s(272)](s(259))&&a?.is(s(274),s(313))&&(function(t,e,o,n){const i=s;if(!n[i(279)](e,i(353)))return;let r=1;const a=o[i(276)][i(356)](t,{attributes:i(318)});if(a){const e=Number[i(321)](t[i(320)](i(318)),10);Number[i(265)](e)||(r=e)}!a&&e[i(277)](i(353))||o[i(285)][i(270)](i(353),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(279)](e,i(280)))return;let r=i(293),a=!1;if(o[i(276)][i(356)](t,{attributes:i(301)})){const e={1:i(293),a:i(344),A:i(336),i:i(310),I:i(354)}[t[i(320)](i(301))];e&&(r=e),a=!0}o[i(276)][i(356)](t,{styles:i(333)})&&(r=t[i(286)](i(333)),a=!0),!a&&e[i(277)](i(280))||o[i(285)][i(270)](i(280),r,e)}(r,a,n,i))})}),o[t(289)](t(306))[t(297)](e=>{const o=t;e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;null==r||1===r?n[i(285)][i(327)](i(318),s):n[i(285)][i(270)](i(318),String(r),s)}),e.on(o(268),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;r&&i(293)!==r?n[i(285)][i(324)](i(333),r,s):n[i(285)][i(288)](i(333),s)})})}[dt(349)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(302)][t(328)](p),i=this[t(317)](),s=this[t(345)]();o[t(283)][t(299)](e=>{const r=t,a=o[r(283)][r(304)][r(340)]();let c=!1;for(const t of a){if(r(325)!==t[r(301)]||r(326)===t[r(269)])continue;const n=o[r(292)](t[r(300)][r(308)]);for(const t of n[r(322)]())t.is(r(274),r(313))&&(!t[r(277)](r(353))&&o[r(312)][r(279)](t,r(353))&&(e[r(270)](r(353),s,t),c=!0),!t[r(277)](r(280))&&o[r(312)][r(279)](t,r(280))&&(e[r(270)](r(280),i,t),c=!0))}return c&&n[r(323)](e),c})}[dt(294)](){const t=dt,{editor:e}=this;e[t(302)][t(328)](p)[t(298)](e=>this[t(357)](e))}[dt(317)](){const t=dt;return this[t(329)][t(350)][t(328)](t(307))}[dt(345)](){const t=dt;return this[t(329)][t(350)][t(328)](t(343))}[dt(357)]({container:t,value:e,digits:o}){const n=dt,i=t[n(320)](n(280)),s=t[n(320)](n(353)),r=Math[n(338)](e)+(s??1)-1;switch(i){case n(348):return function(t,e){const o=n;return String(t)[o(284)](e,"0")}(r,Math[n(314)](2,o));case n(344):case n(291):return mt(r,!1);case n(336):case n(342):return mt(r,!0);case n(310):return yt(r,!1);case n(354):return yt(r,!0);default:return String(r)}}}function ht(t,e){const o=dt,n=e[o(352)](t);return Array[o(275)](n[o(315)]())[o(335)](t=>t.is(o(274),"ol")&&t[o(272)](o(259)))}function mt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(347)](97+t)+n,i=Math[o(338)]((i-1)/26)}return e?n[o(355)]():n}function gt(t,e){const o=bt();return(gt=function(t,e){return o[t-=257]})(t,e)}const wt=[{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 yt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(305)]()}function bt(){const t=["FootnotesPropertiesEditing","parent","isNaN","90SOYHgW","element:ol","attribute:footnotesListStyle:footnotesDefinitions","name","setAttribute","136iTEsxz","hasClass","_defineConverters","element","from","consumable","hasAttribute","init","checkAttribute","footnotesListStyle","item","7283QFegtJ","document","padStart","writer","getStyle","_defineSchema","removeStyle","for","pluginName","lower-latin","createRangeOn","decimal","_defineFormatter","5fHcnGz","38322OtHpOm","add","setFootnoteFormatter","registerPostFixer","position","type","plugins","attribute:footnotesListStart:footnotesDefinitions","differ","toLowerCase","downcast","footnotes.footnotesProperties.defaultListStyle","nodeAfter","extend","lower-roman","modelCursor","schema","footnotesDefinitions","max","getChildren","requires","_getDefaultListStyle","start","4442781BBYPEQ","getAttribute","parseInt","getItems","_updateFootnotesCounters","setStyle","insert","$text","removeAttribute","get","editor","1640832ATEfnN","model","define","list-style-type","upcast","find","upper-alpha","mapper","floor","isPremiumPlugin","getChanges","710156LWlBZG","upper-latin","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","_getDefaultStartIndex","5805888ACBMGH","fromCharCode","decimal-leading-zero","_definePostfixer","config","2582739KiZJSO","toViewElement","footnotesListStart","upper-roman","toUpperCase","consume","_formatFootnoteListValue","isOfficialPlugin","footnotesStyle","footnotes-list","viewItem","footnotesStart","commands"];return(bt=function(){return t})()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=W();N()(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[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["28TJjeoT","isPremiumPlugin","293296eOZktr","810357TANwKS","8270vvwWaV","130848tQenzp","5380596oIlrDx","15FtdNPG","isOfficialPlugin","11hrnhOW","585236zzaXsd","pluginName","2OpTCZr","requires","1791pidsHw","94902zrCyVh","FootnotesProperties"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=246]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(230476===-parseInt(e(252))/1+parseInt(e(262))/2*(parseInt(e(253))/3)+parseInt(e(260))/4*(-parseInt(e(257))/5)+-parseInt(e(248))/6*(-parseInt(e(250))/7)+parseInt(e(255))/8+parseInt(e(247))/9*(parseInt(e(254))/10)+-parseInt(e(259))/11*(-parseInt(e(256))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class St extends t.Plugin{static get[Ft(261)](){return Ft(249)}static get[Ft(246)](){return[pt,Ct]}static get[Ft(258)](){return!0}static get[Ft(251)](){return!0}}function Tt(){var t=["56cPBMdo","4809238VmxtOU","371724auHQDA","16UNemJc","6kXwjLL","6096700hfJQAW","123507nACPQu","32762fUYKpS","542130MxEWio","584919wisRRR"];return(Tt=function(){return t})()}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=339]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(472806===-parseInt(e(345))/1+parseInt(e(341))/2*(parseInt(e(344))/3)+-parseInt(e(340))/4+-parseInt(e(346))/5+parseInt(e(342))/6*(-parseInt(e(339))/7)+-parseInt(e(348))/8*(-parseInt(e(347))/9)+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x20f0a6,Command as _0x4f9055}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2b13a3,isWidget as _0x389fa7,toWidgetEditable as _0x453c87,WidgetToolbarRepository as _0x58e462}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x32279b,logWarning as _0x40108b,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x4f33be,ClickObserver as _0x40039d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x5272ee}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4f0da7,ButtonView as _0x201b7c,View as _0x7298ae,ViewCollection as _0x102e68,FocusCycler as _0x31654c,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x33257c,BalloonPanelView as _0x1ac470,createDropdown as _0x1bac19}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x3fecdf,IconListStyleDecimal as _0x477b15,IconListStyleDecimalLeadingZero as _0x2e36a0,IconListStyleLowerRoman as _0x30c2f7,IconListStyleUpperRoman as _0x235fc1,IconListStyleLowerLatin as _0x2ff3a7,IconListStyleUpperLatin as _0x25c909}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x39569f,_0x303771){this['_model']=_0x39569f,this['_elementName']=_0x303771['elementName'],this['_getElementKey']=_0x303771['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1b03f9){const _0x53b8a6=new Set(),_0x498dc8=new Map();for(const _0x19637a of _0x1b03f9){if('insert'===_0x19637a['type']&&'$text'!==_0x19637a['name']&&_0x19637a['position']['nodeAfter']){const _0x322ebf=this['_model']['createRangeOn'](_0x19637a['position']['nodeAfter']);for(const _0x3db74c of _0x322ebf['getItems']()){if(!_0x3db74c['is']('element',this['_elementName']))continue;const _0xa669f1=this['_getElementKey'](_0x3db74c);_0x498dc8['has'](_0xa669f1)||_0x498dc8['set'](_0xa669f1,[]),_0x498dc8['get'](_0xa669f1)['push'](_0x3db74c);}}if('remove'===_0x19637a['type']&&_0x19637a['name']===this['_elementName']){const _0x1ce39a=this['_getElementKey']({'getAttribute':_0x1ecac6=>_0x19637a['attributes']['get'](_0x1ecac6)});_0x53b8a6['add'](_0x1ce39a);}}for(const [_0x2c260a,_0x29d39e]of this['_trackedElements'])'$graveyard'===_0x29d39e['root']['rootName']&&_0x53b8a6['add'](_0x2c260a);for(const _0x1e22b6 of _0x53b8a6)this['_trackedElements']['delete'](_0x1e22b6);for(const [_0x27eeb4,_0x59f9b5]of _0x498dc8)this['_trackedElements']['set'](_0x27eeb4,_0x59f9b5[_0x59f9b5['length']-0x1]);const _0x573f52=new Set();for(const [_0xf22e6e,_0x5d521c]of _0x498dc8)_0x53b8a6['has'](_0xf22e6e)&&(_0x573f52['add'](_0x5d521c[0x0]),_0x5d521c['length']>0x1?_0x498dc8['set'](_0xf22e6e,_0x5d521c['slice'](0x1)):_0x498dc8['delete'](_0xf22e6e),_0x53b8a6['delete'](_0xf22e6e));return{'removed':Array['from'](_0x53b8a6),'inserted':Array['from'](_0x498dc8['values']())['flat'](),'moved':Array['from'](_0x573f52)};}}class c extends _0x20f0a6{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5ac3da){super(_0x5ac3da),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2cdb32=>_0x2cdb32['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x124f87=>_0x124f87['getAttribute']('footnoteId')});}['init'](){const {editor:_0x262047}=this,{model:_0x26e7c1,data:_0x3a6411}=_0x262047;_0x26e7c1['document']['registerPostFixer'](_0x7c2b39=>{const _0xba3146=_0x26e7c1['document']['differ']['getChanges']();let _0x4ad4b6=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x7c2b39,_0xba3146)&&(_0x4ad4b6=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x7c2b39,_0xba3146)&&(_0x4ad4b6=!0x0),this['_handleFootnoteReferencesChanges'](_0x7c2b39,_0xba3146)&&(_0x4ad4b6=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x7c2b39)&&(_0x4ad4b6=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x7c2b39)&&(_0x4ad4b6=!0x0),this['_sortFootnoteDefinitions'](_0x7c2b39)&&(_0x4ad4b6=!0x0),_0x4ad4b6;}),this['listenTo'](_0x26e7c1['document'],'change:data',()=>{_0x26e7c1['enqueueChange']({'isUndoable':!0x1},_0x16ba2e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x16ba2e);});},{'priority':'low'}),this['listenTo'](_0x3a6411,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0xfb7882){return this['_footnotes']['find'](_0x695daf=>_0x695daf['id']===_0xfb7882)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4b3041){this['_footnoteFormatter']=_0x4b3041;}['_updateFootnotesCounters'](_0x1d0854,_0x34ee80=0x0){let _0x1929e8=!0x1;for(let _0x27b741=_0x34ee80;_0x27b741<this['_footnotes']['length'];_0x27b741++)this['_updateFootnoteRefCounter'](_0x1d0854,_0x27b741)&&(_0x1929e8=!0x0);return _0x1929e8;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3d47f2,_0x4b69eb){const _0x1e6196=_0x3d47f2['createElement']('footnotesDefinitions',{});return _0x3d47f2['append'](_0x1e6196,_0x4b69eb),this['_footnotesDefinitions']=_0x1e6196,_0x1e6196;}['_ensureFootnotesDefinitionsContainerExists'](_0x176d6f){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x50fa5b=this['_footnotes'][0x0]['reference']['root'],_0x56340d=this['_insertEmptyFootnotesDefinitionsContainer'](_0x176d6f,_0x50fa5b);for(const _0xe1f8a3 of this['_footnotes'])_0xe1f8a3['definition']['parent']||_0x176d6f['insert'](_0xe1f8a3['definition'],_0x56340d,'end');this['_updateFootnotesCounters'](_0x176d6f);}['_handleFootnotesDefinitionsObjectChanges'](_0x3133a4,_0x3527e9){let _0x40858b=!0x1;const {inserted:_0x2be8f9,removed:_0x248d15,moved:_0x134017}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3527e9);if(_0x134017['length']&&(this['_footnotesDefinitions']=_0x134017[0x0]),_0x2be8f9['length']){if(_0x2be8f9['length']>0x1||this['_footnotesDefinitions']&&_0x2be8f9['some'](_0xeb1335=>_0xeb1335!==this['_footnotesDefinitions'])){const _0x282f21=_0x3133a4['createElement']('footnotesDefinitions',{}),_0x34554b=[];this['_footnotesDefinitions']&&_0x34554b['push'](this['_footnotesDefinitions']),_0x34554b['push'](..._0x2be8f9),_0x3133a4['insert'](_0x282f21,_0x34554b[0x0],'before');for(const _0x173815 of _0x34554b)_0x3133a4['move'](_0x3133a4['createRangeIn'](_0x173815),_0x3133a4['createPositionAt'](_0x282f21,'end')),_0x3133a4['remove'](_0x173815);this['_footnotesDefinitions']=_0x282f21,this['_updateFootnotesCounters'](_0x3133a4),_0x40858b=!0x0;}else this['_footnotesDefinitions']=_0x2be8f9[0x0];}if(_0x248d15['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2954be of this['_footnotes'])_0x3133a4['remove'](_0x2954be['reference']),_0x40858b=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x40858b;}['_handleFootnoteDefinitionsChanges'](_0xc5fbf1,_0x4b18e5){let _0x25296b=!0x1;const _0x3d8e03=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x47fe80,moved:_0x418ad0}=this['_footnoteDefsTracker']['getChanges'](_0x4b18e5);for(const _0x412b2d of[..._0x418ad0,..._0x47fe80]){const _0xd62b7e=_0x412b2d['getAttribute']('footnoteId'),_0x1fa65c=this['getFootnote'](_0xd62b7e);_0x1fa65c&&(_0x1fa65c['definition']=_0x412b2d),_(_0xc5fbf1,_0x3d8e03,_0x412b2d)&&(_0x25296b=!0x0);}return _0x25296b;}['_handleFootnoteReferencesChanges'](_0x50333a,_0x563299){let _0x403f00=!0x1;const {removed:_0x182ac5,inserted:_0x42f7b9,moved:_0x56424e}=this['_footnoteRefsTracker']['getChanges'](_0x563299);for(const _0x4a91ad of _0x182ac5)this['_handleRemoveFootnoteReferenceById'](_0x50333a,_0x4a91ad)&&(_0x403f00=!0x0);for(const _0xa03c0f of _0x42f7b9)this['_handleInsertedFootnoteReference'](_0x50333a,_0xa03c0f)&&(_0x403f00=!0x0);for(const _0x1eafc3 of _0x56424e)this['_handleMovedFootnoteReference'](_0x50333a,_0x1eafc3)&&(_0x403f00=!0x0);return _0x403f00;}['_handleFootnotesDefinitionsObjectSync'](_0x70c9bb){if(!this['_footnotesDefinitions'])return!0x1;let _0x413af3=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x397f71=[];for(const _0x5b3a16 of this['_footnotesDefinitions']['getChildren']()){const _0x4fc2c9=_0x5b3a16['getAttribute']('footnoteId');this['getFootnote'](_0x4fc2c9)||(_0x397f71['unshift'](_0x5b3a16),_0x413af3=!0x0);}for(const _0x2d71a6 of _0x397f71)_0x70c9bb['remove'](_0x2d71a6);}const _0x2d3640=new Set(),_0x530097=[];for(const _0x5643da of this['_footnotesDefinitions']['getChildren']()){const _0x42aa7e=_0x5643da['getAttribute']('footnoteId');_0x2d3640['has'](_0x42aa7e)?(_0x530097['unshift'](_0x5643da),_0x413af3=!0x0):_0x2d3640['add'](_0x42aa7e);}for(const _0x574d4a of _0x530097)_0x70c9bb['remove'](_0x574d4a);return this['_footnotesDefinitions']['childCount']||(_0x70c9bb['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x413af3=!0x0),_0x413af3;}['_handleInsertedFootnoteReference'](_0x516077,_0x35cb30){if(this['_footnotes']['find'](_0x45c9ee=>_0x45c9ee['reference']===_0x35cb30))return!0x1;let _0x5a4f98=!0x1;const _0x3ddaac=_0x35cb30['getAttribute']('footnoteId'),_0x23d5ac=this['_footnotes']['findIndex'](_0x1a43d9=>_0x1a43d9['id']===_0x3ddaac);-0x1!==_0x23d5ac&&(_0x516077['remove'](this['_footnotes'][_0x23d5ac]['reference']),this['_footnotes']['splice'](_0x23d5ac,0x1),_0x5a4f98=!0x0);let _0x381709=this['_footnotesDefinitions']?function(_0xf15bb6,_0x421234){for(const _0x4f3dd8 of _0xf15bb6['getChildren']())if(_0x4f3dd8['getAttribute']('footnoteId')===_0x421234)return _0x4f3dd8;return null;}(this['_footnotesDefinitions'],_0x3ddaac):null;_0x381709||(_0x381709=_0x516077['createElement']('footnoteDefinition',{'footnoteId':_0x3ddaac}),this['_footnotesDefinitions']&&(_0x516077['insert'](_0x381709,this['_footnotesDefinitions'],'end'),_0x5a4f98=!0x0));const _0x5c938d={'id':_0x3ddaac,'reference':_0x35cb30,'definition':_0x381709},_0x49132f=I(this['editor']['model'],this['_footnotes'],_0x35cb30);this['_footnotes']['splice'](_0x49132f,0x0,_0x5c938d);let _0x382e3e=_0x49132f;return-0x1!==_0x23d5ac&&(_0x382e3e=Math['min'](_0x49132f,_0x23d5ac)),this['_updateFootnotesCounters'](_0x516077,_0x382e3e)&&(_0x5a4f98=!0x0),_0x5a4f98;}['_handleRemoveFootnoteReferenceById'](_0xcbcad0,_0xeb66bc){const _0x7703e0=this['_footnotes']['findIndex'](_0x1f0f2d=>_0x1f0f2d['id']===_0xeb66bc);if(-0x1===_0x7703e0)return!0x1;let _0x4850f3=!0x1;const _0x15fb47=this['_footnotes'][_0x7703e0];return'$graveyard'!==_0x15fb47['definition']['root']['rootName']&&(_0xcbcad0['remove'](_0x15fb47['definition']),_0x4850f3=!0x0),this['_footnotes']['splice'](_0x7703e0,0x1),this['_updateFootnotesCounters'](_0xcbcad0,_0x7703e0)&&(_0x4850f3=!0x0),_0x4850f3;}['_handleMovedFootnoteReference'](_0x254b2c,_0x4e31e3){const _0x63355b=_0x4e31e3['getAttribute']('footnoteId'),_0x1beb61=this['_footnotes']['findIndex'](_0x3dad79=>_0x3dad79['id']===_0x63355b),_0x566f23=this['_footnotes'][_0x1beb61];let _0x53a292=!0x1;_0x566f23['reference']=_0x4e31e3,this['_footnotes']['splice'](_0x1beb61,0x1);const _0x1e5108=I(this['editor']['model'],this['_footnotes'],_0x4e31e3);return this['_footnotes']['splice'](_0x1e5108,0x0,_0x566f23),this['_updateFootnotesCounters'](_0x254b2c,Math['min'](_0x1beb61,_0x1e5108))&&(_0x53a292=!0x0),_0x53a292;}['_updateFootnoteRefCounter'](_0x256814,_0xed95af){if(!this['_footnotesDefinitions'])return!0x1;const _0x177311=this['_footnotes'][_0xed95af];let _0x1b4773;return _0x1b4773=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x177311,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xed95af+0x1}):String(_0xed95af+0x1),_0x177311['reference']['getAttribute']('footnoteCounter')!=_0x1b4773&&(_0x256814['setAttribute']('footnoteCounter',_0x1b4773,_0x177311['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5c020d){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1d7548,_0x30477b){if(_0x1d7548['length']!==_0x30477b['length'])return!0x1;for(let _0x1ad613=0x0;_0x1ad613<_0x1d7548['length'];_0x1ad613++)if(_0x1d7548[_0x1ad613]!==_0x30477b[_0x1ad613])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3f44bf=>_0x3f44bf['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x18a231=>_0x18a231['getAttribute']('footnoteId'))))return!0x1;let _0x23944e=!0x1;for(let _0x5e47a7=0x0;_0x5e47a7<this['_footnotes']['length'];_0x5e47a7++){const _0x492a6e=this['_footnotes'][_0x5e47a7],_0x4e83ca=_0x5c020d['createPositionBefore'](_0x492a6e['definition']),_0x526ad4=_0x5c020d['createPositionAt'](this['_footnotesDefinitions'],_0x5e47a7);_0x4e83ca['isEqual'](_0x526ad4)||(_0x5c020d['move'](_0x5c020d['createRangeOn'](_0x492a6e['definition']),_0x526ad4),_0x23944e=!0x0);}return _0x23944e;}['_ensureFootnotesReferencesHaveProperOrder'](_0x44473f){if(!this['_footnotes']['length'])return!0x1;const {model:_0x56ef9e}=this['editor'];let _0x1bcf91=!0x1;for(let _0xf5bb1b=0x0;_0xf5bb1b<this['_footnotes']['length']-0x1;_0xf5bb1b++){const _0xb35f06=this['_footnotes'][_0xf5bb1b],_0x341989=this['_footnotes'][_0xf5bb1b+0x1],_0x201470=_0x56ef9e['createPositionBefore'](_0xb35f06['reference']),_0x1977c2=_0x56ef9e['createPositionBefore'](_0x341989['reference']);'after'===_0x201470['compareWith'](_0x1977c2)&&(this['_handleMovedFootnoteReference'](_0x44473f,_0xb35f06['reference']),_0xf5bb1b=-0x1,_0x1bcf91=!0x0);}return _0x1bcf91;}}function _(_0x5635e1,_0x5bb163,_0x433790){if(_0x433790['childCount'])return!0x1;const _0x3f0969=_0x5bb163?'paragraph':'footnoteInlineContent';return _0x5635e1['insert'](_0x5635e1['createElement'](_0x3f0969),_0x433790),!0x0;}function I(_0x21a64e,_0x14efeb,_0xf77354){if(0x0===_0x14efeb['length'])return 0x0;const _0x267923=_0x21a64e['createPositionBefore'](_0xf77354);for(let _0x5ca8a6=0x0;_0x5ca8a6<_0x14efeb['length'];_0x5ca8a6++){const _0x1db676=_0x14efeb[_0x5ca8a6],_0xc7c6c7=_0x21a64e['createPositionBefore'](_0x1db676['reference']);if('before'===_0x267923['compareWith'](_0xc7c6c7))return _0x5ca8a6;}const _0x1f2924=_0xf77354['root'];let _0x52a2fe=-0x1;for(let _0x43a244=_0x14efeb['length']-0x1;_0x43a244>=0x0;_0x43a244--)if(_0x14efeb[_0x43a244]['reference']['root']===_0x1f2924){_0x52a2fe=_0x43a244;break;}if(-0x1!==_0x52a2fe)return _0x52a2fe+0x1;const _0x3fad5e=_0x21a64e['document']['getRootNames'](),_0x2af5c0=_0x3fad5e['indexOf'](_0x1f2924['rootName']),_0x330f76=_0x3fad5e[_0x2af5c0+0x1];if(_0x330f76){for(let _0x4e52b0=0x0;_0x4e52b0<_0x14efeb['length'];_0x4e52b0++)if(_0x14efeb[_0x4e52b0]['reference']['root']['rootName']===_0x330f76)return _0x4e52b0;}return _0x14efeb['length'];}class m extends _0x4f9055{['refresh'](){const _0x4274f8=this['editor']['model']['document']['selection'],_0x14945d=this['_getPositionToInsertFootnote'](_0x4274f8);this['isEnabled']=!!_0x14945d;}['execute'](_0xd76a56){const {editor:_0x7987ab}=this,{model:_0x46cec9}=_0x7987ab,{selection:_0x46764a}=_0x46cec9['document'],_0x21d741=this['_getPositionToInsertFootnote'](_0x46764a);if(!_0x21d741)return;const _0x5dfc7e=_0x7987ab['plugins']['get']('FootnotesEditing'),_0x4df7fe=_0xd76a56?.['footnoteId']??_0x32279b();!function(_0x40dfb5){return'string'==typeof _0x40dfb5&&_0x40dfb5['length']>0x0&&!/\s/['test'](_0x40dfb5)&&!/^\d/['test'](_0x40dfb5);}(_0x4df7fe)?_0x40108b('insert-footnote-command-executed-with-invalid-id'):(_0x46cec9['change'](_0x228d36=>{const _0x256003=_0x228d36['createElement']('footnoteRef',{'footnoteId':_0x4df7fe});_0x46cec9['insertObject'](_0x256003,_0x21d741,null);}),_0x5dfc7e['_moveSelectionToFootnoteDefinition'](_0x4df7fe));}['_getPositionToInsertFootnote'](_0x4f066a){const {model:_0x957b46}=this['editor'],{schema:_0x142a74}=_0x957b46,_0xab419f=_0x4f066a['getFirstRange']();for(const _0x3516f7 of _0xab419f['getItems']())if(_0x142a74['isBlock'](_0x3516f7)||_0x142a74['isObject'](_0x3516f7))return null;const _0x153ff3=_0xab419f['end'];return _0x142a74['checkChild'](_0x153ff3,'footnoteRef')?_0x153ff3:null;}}class r extends _0x20f0a6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x496716}=this;_0x496716['config']['define']('footnotes.multiBlock',!0x0),_0x496716['commands']['add']('insertFootnote',new m(_0x496716)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x252131){const _0x52ea65=_0x3cea51([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]),_0x3ce2ce=0x47a28506,_0x5b282a=0x47a5fdce^_0x3ce2ce,_0x3dd3c1=window[_0x3cea51([0x44,0x61,0x74,0x65])][_0x3cea51([0x6e,0x6f,0x77])](),_0x11ed43=_0x252131[_0x3cea51([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4c9404=new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2ccdeb=>{_0x11ed43[_0x3cea51([0x6f,0x6e,0x63,0x65])](_0x3cea51([0x72,0x65,0x61,0x64,0x79]),_0x2ccdeb);}),_0xc9a113={[_0x3cea51([0x6b,0x74,0x79])]:_0x3cea51([0x45,0x43]),[_0x3cea51([0x75,0x73,0x65])]:_0x3cea51([0x73,0x69,0x67]),[_0x3cea51([0x63,0x72,0x76])]:_0x3cea51([0x50,0x2d,0x32,0x35,0x36]),[_0x3cea51([0x78])]:_0x3cea51([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]),[_0x3cea51([0x79])]:_0x3cea51([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]),[_0x3cea51([0x61,0x6c,0x67])]:_0x3cea51([0x45,0x53,0x32,0x35,0x36])},_0x430953=_0x11ed43[_0x3cea51([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3cea51([0x67,0x65,0x74])](_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f8e2e(){let _0x3dba9b,_0x204466=null,_0x408adb=null;try{if(_0x430953==_0x3cea51([0x47,0x50,0x4c]))return _0x3cea51([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3dba9b=_0x50eaae(),!_0x3dba9b)return _0x3cea51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3dba9b[_0x3cea51([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x408adb=_0x31c658(_0x3dba9b[_0x3cea51([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3dba9b[_0x3cea51([0x6a,0x74,0x69])])),await _0x39dcd5()?_0x3a7f3a()?_0x180007()?_0x3cea51([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4494c9()?(_0x3dba9b[_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cea51([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x204466=_0x31a0c3(_0x3cea51([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3dba9b[_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3cea51([0x74,0x72,0x69,0x61,0x6c])&&(_0x204466=_0x31a0c3(_0x3cea51([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4761df()):_0x3cea51([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3cea51([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3cea51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3cea51([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x180007(){const _0x3a3923=[_0x3cea51([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3cea51([0x74,0x72,0x69,0x61,0x6c])][_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3dba9b[_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3dd3c1/0x3e8:0xe10*_0x5b282a;return _0x3dba9b[_0x3cea51([0x65,0x78,0x70])]<_0x3a3923;}function _0x3a7f3a(){const _0x393274=_0x3dba9b[_0x3cea51([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x393274&&(!!_0x393274[_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cea51([0x2a]))||!!_0x393274[_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cea51([0x46,0x4f,0x4f])));}function _0x4494c9(){const _0x2ef3ae=_0x3dba9b[_0x3cea51([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2ef3ae||0x0==_0x2ef3ae[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x1547d4}=new URL(window[_0x3cea51([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2ef3ae[_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1547d4))return!0x0;const _0x361797=_0x1547d4[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])](_0x3cea51([0x2e]));return _0x2ef3ae[_0x3cea51([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57c78a=>_0x57c78a[_0x3cea51([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3cea51([0x2a])))[_0x3cea51([0x6d,0x61,0x70])](_0xadeaa3=>_0xadeaa3[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])](_0x3cea51([0x2e])))[_0x3cea51([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39797b=>_0x39797b[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x361797[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3cea51([0x6d,0x61,0x70])](_0x2caa2f=>Array(_0x361797[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2caa2f[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3cea51([0x66,0x69,0x6c,0x6c])](_0x2caa2f[0x0]===_0x3cea51([0x2a])?_0x3cea51([0x2a]):'')[_0x3cea51([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2caa2f))[_0x3cea51([0x73,0x6f,0x6d,0x65])](_0x1210a0=>_0x361797[_0x3cea51([0x65,0x76,0x65,0x72,0x79])]((_0x3c4d10,_0x27d030)=>_0x1210a0[_0x27d030]===_0x3c4d10||_0x1210a0[_0x27d030]===_0x3cea51([0x2a])));}function _0x4761df(){return _0x204466&&_0x408adb?new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30d65a,_0xc9763e)=>{_0x204466[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x30d65a,_0xc9763e),_0x408adb[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x589e67=>{_0x589e67!=_0x3cea51([0x56,0x61,0x6c,0x69,0x64])&&_0x30d65a(_0x589e67);},_0xc9763e);}):_0x204466||_0x408adb||_0x3cea51([0x56,0x61,0x6c,0x69,0x64]);}}function _0x31c658(_0x45dfa9,_0x3035f7){return new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4ad46e=>{if(_0x36447e())return _0x4ad46e(_0x3cea51([0x56,0x61,0x6c,0x69,0x64]));_0x10b011(),_0x11ed43[_0x3cea51([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3cea51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x42932f=!0x1;const _0x539b76=_0x32279b();function _0x2294b6(_0x3443e1){return!!_0x3443e1&&(typeof _0x3443e1===_0x3cea51([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3443e1===_0x3cea51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3443e1[_0x3cea51([0x74,0x68,0x65,0x6e])]===_0x3cea51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3443e1[_0x3cea51([0x63,0x61,0x74,0x63,0x68])]===_0x3cea51([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1cae75(_0x27f43c){_0x5e364f(_0x27f43c)[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x2c1616=>{if(!_0x2c1616||_0x2c1616[_0x3cea51([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3cea51([0x6f,0x6b]))return _0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x6f2203(_0x259e07(_0x539b76+_0x3035f7))!=_0x2c1616[_0x3cea51([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3cea51([0x56,0x61,0x6c,0x69,0x64]);})[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x59f7fc=>(_0x4f1ced(),_0x59f7fc),()=>{const _0x119c64=_0x4527ec();return null==_0x119c64?(_0x4f1ced(),_0x3cea51([0x56,0x61,0x6c,0x69,0x64])):_0x3cea51(_0x3dd3c1-_0x119c64>(0x63ae0106^_0x3ce2ce)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x4ad46e)[_0x3cea51([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4ad46e(_0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x32e2ac=0x47946b86^_0x3ce2ce;function _0x4f1ced(){const _0x310636=_0x3cea51([0x6c,0x6c,0x63,0x74,0x2d])+_0x6f2203(_0x259e07(_0x45dfa9)),_0xb30fe1=_0x1e3c43(_0x6f2203(window[_0x3cea51([0x4d,0x61,0x74,0x68])][_0x3cea51([0x63,0x65,0x69,0x6c])](_0x3dd3c1/_0x32e2ac)));window[_0x3cea51([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cea51([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x310636,_0xb30fe1);}function _0x4527ec(){const _0x7a075a=_0x3cea51([0x6c,0x6c,0x63,0x74,0x2d])+_0x6f2203(_0x259e07(_0x45dfa9)),_0x287835=window[_0x3cea51([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3cea51([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7a075a);return _0x287835?window[_0x3cea51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e3c43(_0x287835),0x10)*_0x32e2ac:null;}function _0x5e364f(_0x3f8f29){return new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3fbe5f,_0x2771c0)=>{_0x3f8f29[_0x3cea51([0x74,0x68,0x65,0x6e])](_0x3fbe5f,_0x2771c0),window[_0x3cea51([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2771c0,0x47a351c6^_0x3ce2ce);});}}_0x11ed43[_0x3cea51([0x6f,0x6e])](_0x3cea51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5bfb95,_0x4afeca)=>{if(_0x4afeca[0x0]!=_0x45dfa9)return _0x4ad46e(_0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4afeca[0x1]={..._0x4afeca[0x1],[_0x3cea51([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x539b76};},{[_0x3cea51([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cea51([0x68,0x69,0x67,0x68])}),_0x11ed43[_0x3cea51([0x6f,0x6e])](_0x3cea51([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x26011f=>{_0x2294b6(_0x26011f[_0x3cea51([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x42932f=!0x0,_0x1cae75(_0x26011f[_0x3cea51([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3cea51([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3cea51([0x6c,0x6f,0x77])}),_0x4c9404[_0x3cea51([0x74,0x68,0x65,0x6e])](()=>{_0x42932f||_0x4ad46e(_0x3cea51([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x36447e(){return _0x11ed43[_0x3cea51([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cea51([0x76,0x69,0x65,0x77])][_0x3cea51([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3cea51([0x61,0x75,0x74,0x6f]);}function _0x10b011(){_0x11ed43[_0x3cea51([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3cea51([0x76,0x69,0x65,0x77])][_0x3cea51([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3cea51([0x61,0x75,0x74,0x6f]);}}function _0x31a0c3(_0x3f35f3){const _0x28bba6=[new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x355541=>setTimeout(_0x355541,0x47abbbca^_0x3ce2ce)),_0x4c9404[_0x3cea51([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e03c2=>{let _0x18f179=0x0;_0x11ed43[_0x3cea51([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cea51([0x6f,0x6e])](_0x3cea51([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x575ee9,_0x535a53)=>{_0x535a53[0x0][_0x3cea51([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x18f179++,_0x18f179==(0x47a284fe^_0x3ce2ce)&&(_0x1e03c2(),_0x575ee9[_0x3cea51([0x6f,0x66,0x66])]());});}))];return window[_0x3cea51([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3cea51([0x72,0x61,0x63,0x65])](_0x28bba6)[_0x3cea51([0x74,0x68,0x65,0x6e])](()=>_0x3f35f3);}async function _0x1926c6(){await _0x4c9404,_0x11ed43[_0x3cea51([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cea51([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d629a,_0x11ed43[_0x3cea51([0x6d,0x6f,0x64,0x65,0x6c])][_0x3cea51([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d629a,_0x11ed43[_0x3cea51([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3cea51([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x18d0b8(_0x2f3cad){const _0x4a8a0b=_0x533e80();_0x11ed43[_0x4a8a0b]=_0x3cea51([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2f3cad,_0x2f3cad!=_0x3cea51([0x56,0x61,0x6c,0x69,0x64])&&_0x1926c6();}function _0x533e80(){const _0xb60fd6=window[_0x3cea51([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3cea51([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3cea51([0x6e,0x6f,0x77])]())[_0x3cea51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3cea51([0x2e]),'');let _0x43bedf=_0x3cea51([0x75]);for(let _0x35435b=0x0;_0x35435b<_0xb60fd6[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35435b+=0x2){let _0x1b9625=window[_0x3cea51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb60fd6[_0x3cea51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x35435b,_0x35435b+0x2));_0x1b9625>=_0x52ea65[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1b9625-=_0x52ea65[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43bedf+=_0x52ea65[_0x1b9625];}return _0x43bedf;}function _0x50eaae(){const _0x15af23=_0x430953[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])](_0x3cea51([0x2e]));if(0x3!=_0x15af23[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x41b384(_0x15af23[0x1]);function _0x41b384(_0x22213a){const _0xad6e2e=_0x4dc61b(_0x22213a);return _0xad6e2e&&_0x3ac01d()?_0xad6e2e:null;function _0x3ac01d(){const _0x1bfa9b=_0xad6e2e[_0x3cea51([0x6a,0x74,0x69])],_0x200f9d=window[_0x3cea51([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bfa9b[_0x3cea51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bfa9b[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb8beb2={..._0xad6e2e,[_0x3cea51([0x6a,0x74,0x69])]:_0x1bfa9b[_0x3cea51([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bfa9b[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb8beb2[_0x3cea51([0x76,0x63])],_0x259e07(_0xb8beb2)==_0x200f9d;}}}async function _0x39dcd5(){let _0x1d9530=!0x0;try{const _0x342cf0=_0x430953[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])](_0x3cea51([0x2e])),[_0x20e2ae,_0x4e6682,_0x2ffb98]=_0x342cf0;return _0x144635(_0x20e2ae),await _0x17b614(_0x20e2ae,_0x4e6682,_0x2ffb98),_0x1d9530;}catch{return!0x1;}function _0x144635(_0x4ed1a0){const _0x5246ff=_0x4dc61b(_0x4ed1a0);_0x5246ff&&_0x5246ff[_0x3cea51([0x61,0x6c,0x67])]==_0x3cea51([0x45,0x53,0x32,0x35,0x36])||(_0x1d9530=!0x1);}async function _0x17b614(_0x4494b0,_0x56ea0e,_0x5c4170){const _0x2421d0=window[_0x3cea51([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3cea51([0x66,0x72,0x6f,0x6d])](_0x3a1e76(_0x5c4170),_0x4ea7e3=>_0x4ea7e3[_0x3cea51([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x429496=new window[(_0x3cea51([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3cea51([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4494b0+_0x3cea51([0x2e])+_0x56ea0e),_0x112c0f=window[_0x3cea51([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3cea51([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x112c0f)return;const _0xfb23ea=await _0x112c0f[_0x3cea51([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3cea51([0x6a,0x77,0x6b]),_0xc9a113,{[_0x3cea51([0x6e,0x61,0x6d,0x65])]:_0x3cea51([0x45,0x43,0x44,0x53,0x41]),[_0x3cea51([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3cea51([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3cea51([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x112c0f[_0x3cea51([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3cea51([0x6e,0x61,0x6d,0x65])]:_0x3cea51([0x45,0x43,0x44,0x53,0x41]),[_0x3cea51([0x68,0x61,0x73,0x68])]:{[_0x3cea51([0x6e,0x61,0x6d,0x65])]:_0x3cea51([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xfb23ea,_0x2421d0,_0x429496)||(_0x1d9530=!0x1);}}function _0x4dc61b(_0x435b4b){return _0x435b4b[_0x3cea51([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3cea51([0x65,0x79]))?JSON[_0x3cea51([0x70,0x61,0x72,0x73,0x65])](_0x3a1e76(_0x435b4b)):null;}function _0x3a1e76(_0x50e204){return window[_0x3cea51([0x61,0x74,0x6f,0x62])](_0x50e204[_0x3cea51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3cea51([0x2b]))[_0x3cea51([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3cea51([0x2f])));}function _0x259e07(_0x4bb3ff){let _0x437d48=0x1505;function _0x52d097(_0x273ce4){for(let _0x1eed7a=0x0;_0x1eed7a<_0x273ce4[_0x3cea51([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1eed7a++){const _0x4f55a0=_0x273ce4[_0x3cea51([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1eed7a);_0x437d48=(_0x437d48<<0x5)+_0x437d48+_0x4f55a0,_0x437d48&=_0x437d48;}}function _0x18ec6b(_0xad4189){Array[_0x3cea51([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xad4189)?_0xad4189[_0x3cea51([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x18ec6b):_0xad4189&&typeof _0xad4189==_0x3cea51([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3cea51([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xad4189)[_0x3cea51([0x73,0x6f,0x72,0x74])]()[_0x3cea51([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x598392,_0x2b14ad])=>{_0x52d097(_0x598392),_0x18ec6b(_0x2b14ad);}):_0x52d097(window[_0x3cea51([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xad4189));}return _0x18ec6b(_0x4bb3ff),_0x437d48>>>0x0;}function _0x6f2203(_0x22ab65){return _0x22ab65[_0x3cea51([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3cea51([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3cea51([0x30]));}function _0x1e3c43(_0x3aab00){return _0x3aab00[_0x3cea51([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3cea51([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3cea51([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d629a(){}function _0x3cea51(_0x19c7a5){return _0x19c7a5['map'](_0x52394b=>String['fromCharCode'](_0x52394b))['join']('');}_0x18d0b8(await _0x3f8e2e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x59521a){const {plugins:_0xcfb0b1,editing:_0x3ac83e,model:_0x5bd888}=this['editor'],_0xb5664b=_0xcfb0b1['get'](c)['getFootnote'](_0x59521a);return!!_0xb5664b&&(_0x5bd888['change'](_0x1eb647=>{_0x1eb647['setSelection'](_0x1eb647['createPositionAt'](_0xb5664b['definition'],'end'));}),_0x3ac83e['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3c274d){const {plugins:_0x4d4726,editing:_0x5117d8,model:_0x5da0a2}=this['editor'],_0x1dbab5=_0x4d4726['get'](c)['getFootnote'](_0x3c274d);return!!_0x1dbab5&&(_0x5da0a2['change'](_0x3b870c=>{_0x3b870c['setSelection'](_0x1dbab5['reference'],'on');}),_0x5117d8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x14b5c1}=this['editor']['model'],_0x1a9a5a=this['editor']['config']['get']('footnotes.multiBlock');_0x14b5c1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x14b5c1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x14b5c1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1a9a5a?_0x14b5c1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x14b5c1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x14b5c1['addChildCheck'](_0x25ce94=>{for(const _0x52eece of _0x25ce94)if('footnoteDefinition'===_0x52eece['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2819f9}=this,{conversion:_0x35a1c5,editing:_0x4fd5a6}=_0x2819f9,{t:t}=_0x2819f9['locale'];_0x35a1c5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x53a59a,{writer:_0x2ffafb,consumable:_0x1a258b})=>{const _0x4adfa3=_0x53a59a['getChild'](0x0);if(!_0x4adfa3||!_0x4adfa3['is']('element','a'))return null;const _0x3670fb=_0x4adfa3['getAttribute']('href')||'';if(!_0x3670fb['startsWith']('#'))return null;const _0x3bba91=_0x3670fb['replace'](/^#/,'');if(!_0x3bba91)return null;_0x1a258b['consume'](_0x4adfa3,{'name':!0x0,'attributes':['href']});for(const {item:_0x10c407}of _0x4fd5a6['view']['createRangeIn'](_0x4adfa3))_0x10c407['is']('$textProxy')?_0x1a258b['consume'](_0x10c407['textNode'],{'name':!0x0}):_0x10c407['is']('element')&&_0x1a258b['consume'](_0x10c407,{'name':!0x0});return _0x2ffafb['createElement']('footnoteRef',{'footnoteId':_0x3bba91});}}),_0x35a1c5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x13493c,{writer:_0x37f303})=>D(_0x13493c,_0x37f303)}),_0x35a1c5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x22140a,{writer:_0x200395})=>{const _0x598eab=_0x22140a['getAttribute']('footnoteCounter');return _0x2b13a3(D(_0x22140a,_0x200395),_0x200395,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x598eab)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2a28ad}=this,{t:t}=_0x2a28ad['locale'],{conversion:_0x2f72d6}=_0x2a28ad;_0x2f72d6['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2f72d6['for']('upcast')['add'](_0x29cb15=>{_0x29cb15['on']('element:ol',(_0x5df306,_0x2e6287,_0x2a685f)=>{const _0x557de6=_0x2e6287['viewItem'];if(!_0x557de6['hasClass']('footnotes-list')||!_0x2e6287['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2a685f['consumable']['consume'](_0x557de6,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5b08c6,modelCursor:_0xf236c9}=_0x2a685f['convertChildren'](_0x2e6287['viewItem'],_0x2e6287['modelCursor']);_0x2e6287['modelRange']=_0x5b08c6,_0x2e6287['modelCursor']=_0xf236c9;}),_0x29cb15['on']('element:hr',(_0x5030c1,_0x1924a0,_0x3957cb)=>{const _0x4e0c04=_0x1924a0['viewItem'];_0x4e0c04['hasClass']('footnotes-divider')&&_0x1924a0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3957cb['consumable']['consume'](_0x4e0c04,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2f72d6['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x152a72,{writer:_0xa773e2})=>v(_0xa773e2)}),_0x2f72d6['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xcb603,{writer:_0x3be9e1})=>{const _0x4f1dec=v(_0x3be9e1,{'data-footnotes-list-label':t('Footnotes')}),_0x6d939a=_0x2b13a3(_0x4f1dec,_0x3be9e1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3be9e1['setCustomProperty']('footnotesDefinitions',!0x0,_0x6d939a),_0x6d939a;}});}['_defineDefinitionConverters'](){const {editor:_0x1758e9}=this,{conversion:_0x52fc58,locale:_0x143767}=_0x1758e9,_0xbacd64=_0x1758e9['config']['get']('footnotes.multiBlock');_0x52fc58['for']('upcast')['add'](_0x291976=>{_0x291976['on']('element:li',(_0x40f008,_0xaad15c,_0x1a1c90)=>{const _0x12ed83=_0xaad15c['viewItem'];if(!_0x12ed83['hasClass']('footnote-definition')||!_0x12ed83['getAttribute']('id'))return;const _0x43c856=_0x12ed83['parent'];if(!_0x43c856['is']('element','ol')||!_0x43c856['hasClass']('footnotes-list'))return;if(!_0x1a1c90['consumable']['test'](_0x12ed83,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x154449=_0x1a1c90['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x12ed83['getAttribute']('id')});if(!_0x1a1c90['safeInsert'](_0x154449,_0xaad15c['modelCursor']))return;_0x1a1c90['consumable']['consume'](_0x12ed83,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5dd0c2=Array['from'](_0x12ed83['getChildren']())['find'](_0x1aa0e3=>_0x1aa0e3['is']('element')&&_0x1aa0e3['hasClass']('footnote-content'));for(const _0x18647c of _0x12ed83['getChildren']())_0x18647c['is']('element')&&(_0x1a1c90['consumable']['consume'](_0x18647c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1a1c90['consumable']['consume'](_0x18647c,{'name':!0x0,'classes':'footnote-content'}));if(_0x5dd0c2){if(_0xbacd64)_0x1a1c90['convertChildren'](_0x5dd0c2,_0x154449);else{const _0x3eb453=_0x1a1c90['writer']['createElement']('footnoteInlineContent');_0x1a1c90['writer']['insert'](_0x3eb453,_0x154449),_0x1a1c90['convertChildren'](_0x5dd0c2,_0x3eb453);}}_0x1a1c90['updateConversionResult'](_0x154449,_0xaad15c);});}),_0x52fc58['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x46412b,{writer:_0x34aa7f})=>b(_0x46412b,_0x34aa7f,_0x143767,{'dataPipeline':!0x0})}),_0x52fc58['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4cf61b,{writer:_0x222bdb})=>b(_0x4cf61b,_0x222bdb,_0x143767)});}['_defineBogusParagraphConverters'](){const {editor:_0x6d823b}=this,{conversion:_0x4074f3}=_0x6d823b;_0x6d823b['config']['get']('footnotes.multiBlock')?(_0x4074f3['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x4074f3['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x6d823b['model']['document'],'change:data',()=>{!function(_0x42185d,_0x4cc8a6){const _0x3c087a=_0x42185d['document']['differ'],_0x1dfa90=new Set();for(const _0x10e0ef of _0x3c087a['getChanges']()){const _0x1ee15e='attribute'==_0x10e0ef['type']?_0x10e0ef['range']['start']['parent']:_0x10e0ef['position']['parent'];_0x1ee15e['is']('element','footnoteDefinition')&&_0x1dfa90['add'](_0x1ee15e);}for(const _0x390e43 of _0x1dfa90['values']()){const _0x4cc8c8=Array['from'](_0x390e43['getChildren']())['filter'](_0x599b70=>g(_0x599b70,_0x4cc8a6['mapper']));for(const _0x497a51 of _0x4cc8c8)_0x4cc8a6['reconvertItem'](_0x497a51);}}(_0x6d823b['model'],_0x6d823b['editing']);})):(_0x4074f3['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x4074f3['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2c92a0,{writer:_0xc0eed0})=>{const _0x27ec09=_0xc0eed0['createContainerElement']('span');return _0xc0eed0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x27ec09),_0x27ec09;}}));}['_defineKeyboardHandlers'](){const {editor:_0x54017e}=this,{editing:_0x4b23db,t:t}=_0x54017e,_0x3ad9b0=_0x54017e['model']['document']['selection'];_0x54017e['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x54017e['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x4b23db['view']['document'],'enter',(_0x3c5845,_0x1e96f0)=>{const _0x455802=function(_0xe353e0){const _0x17674f=_0xe353e0['getSelectedElement']();if(_0x17674f?.['is']('element','footnoteRef'))return _0x17674f;return null;}(_0x3ad9b0);if(_0x455802){const _0x4f95c8=_0x455802['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4f95c8),_0x1e96f0['preventDefault'](),_0x3c5845['stop']();}},{'context':_0x389fa7});}['_defineClickHandlers'](){const {editor:_0x2337b6}=this,{editing:_0xed522f}=_0x2337b6;_0x2337b6['editing']['view']['addObserver'](_0x4f33be),_0x2337b6['editing']['view']['addObserver'](_0x40039d);let _0x54bea7=!0x1;this['listenTo'](_0xed522f['view']['document'],'pointerdown',(_0x324421,_0x30662)=>{const {target:_0x23d42f}=_0x30662,_0xf5e2c7=_0xed522f['view']['document']['selection'];_0x54bea7=!!(_0x23d42f?.['is']('element','a')&&_0x23d42f['parent']?.['is']('element','sup')&&_0x23d42f['parent']['hasClass']('footnote'))&&_0xf5e2c7['getSelectedElement']()===_0x23d42f['parent'];},{'priority':'high'}),this['listenTo'](_0xed522f['view']['document'],'click',(_0x4f50ef,_0x1fd6ad)=>{const {target:_0x5c221e}=_0x1fd6ad;if(!_0x5c221e?.['is']('element','a'))return;if(_0x5c221e['parent']?.['is']('element','sup')&&_0x5c221e['parent']['hasClass']('footnote')&&!_0x54bea7)return void _0x1fd6ad['preventDefault']();let _0x2cb546=_0x5c221e['getAttribute']('href');if(!_0x2cb546?.['startsWith']('#'))return;_0x2cb546=_0x2cb546['slice'](0x1);let _0x365548=!0x1;(_0x2cb546['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2cb546['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2cb546))&&(_0x365548=!0x0),_0x365548&&(_0x1fd6ad['preventDefault'](),_0x4f50ef['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x4a8bf0}={}){return(_0x264e1c,{writer:_0x492750})=>{if(!p(_0x264e1c))return null;if(!_0x4a8bf0)return _0x492750['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x48e75e=_0x492750['createContainerElement']('p');return _0x492750['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x48e75e),_0x48e75e;};}function p(_0x502a34){const {parent:_0x30f2bd}=_0x502a34;if(!_0x30f2bd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x30f2bd['childCount'])return!0x1;for(const _0x3ac5be of _0x502a34['getAttributeKeys']())if(!_0x3ac5be['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3ac5be)return!0x1;return!0x0;}function g(_0x55142e,_0x902cf1){if(!_0x55142e['is']('element','paragraph'))return!0x1;const _0x54fa9c=_0x902cf1['toViewElement'](_0x55142e);return!!_0x54fa9c&&p(_0x55142e)!==_0x54fa9c['is']('element','span');}function J(_0x5ac0f8){return _0x389fa7(_0x5ac0f8)&&_0x5ac0f8['is']('containerElement')&&!!_0x5ac0f8['getCustomProperty']('footnotesDefinitions');}function v(_0x476366,_0x2a959a={}){const _0x3da909=_0x476366['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x53dc4a=_0x476366['createContainerElement']('ol',{'class':'footnotes-list'},_0x476366['createSlot']());return _0x476366['createContainerElement']('div',{'class':'footnotes',..._0x2a959a},[_0x3da909,_0x53dc4a]);}function D(_0x3a539b,_0xa7545){const _0x20f61f=_0x3a539b['getAttribute']('footnoteId'),_0x4be7d6=_0x3a539b['getAttribute']('footnoteCounter'),_0x5e19de=_0xa7545['createUIElement']('a',{'href':'#'+_0x20f61f},function(_0x5927fb){const _0x31a627=this['toDomElement'](_0x5927fb);return _0x31a627['textContent']=_0x4be7d6,_0x31a627;}),_0x11a979=_0xa7545['createContainerElement']('sup',{'id':'ref-'+_0x20f61f,'class':'footnote'},[_0x5e19de]);return _0x11a979['getFillerOffset']=()=>null,_0x11a979;}function b(_0x47b63d,_0x1f99fe,_0x4cc640,{dataPipeline:_0x2a1018}={}){const {t:t}=_0x4cc640,_0x4c87dd=_0x47b63d['getAttribute']('footnoteId'),_0x485f3c=_0x1f99fe['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4c87dd},function(_0x3941ff){const _0x125af4=this['toDomElement'](_0x3941ff);return _0x125af4['innerText']='^',_0x125af4;}),_0x49d839=_0x2a1018?_0x1f99fe['createContainerElement']('div',{'class':'footnote-content'}):_0x453c87(_0x1f99fe['createEditableElement']('div',{'class':'footnote-content'}),_0x1f99fe,{'label':t('Footnote\x20content.')});return _0x1f99fe['insert'](_0x1f99fe['createPositionAt'](_0x49d839,0x0),_0x1f99fe['createSlot']()),_0x1f99fe['createContainerElement']('li',{'class':'footnote-definition','id':_0x4c87dd},[_0x485f3c,_0x49d839]);}class e extends _0x20f0a6{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x5272ee];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3dc994}=this,{plugins:_0x786e8e,model:_0x6fced9}=_0x3dc994,_0x336dd2=_0x786e8e['get'](_0x5272ee),_0x5c38a6=_0x786e8e['get'](c);this['listenTo'](_0x336dd2,'outputTransformation',(_0x335a69,_0x3acc73)=>{const _0x1cce04=f(_0x6fced9['createRangeIn'](_0x3acc73['content']));if(!_0x1cce04['length'])return;const _0xee384b=_0x5c38a6['getFootnotes'](),_0x666736=_0x1cce04['reduce']((_0x3e2c70,_0x4a6723)=>{const _0x2c6922=_0xee384b['find'](_0x55d8d6=>_0x55d8d6['id']===_0x4a6723);if(_0x2c6922){const _0x31b890=_0x3dc994['data']['toView'](_0x2c6922['definition'],{'isClipboardPipeline':!0x0}),_0x740891=_0x3dc994['data']['htmlProcessor']['toData'](_0x31b890);_0x3e2c70[_0x2c6922['id']]=_0x740891;}return _0x3e2c70;},Object['create'](null));_0x3acc73['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x666736));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x1f68d1}=this,{model:_0x56e6ae,plugins:_0x564724}=_0x1f68d1,{view:_0xd0ca59}=_0x1f68d1['editing'],_0x4d4fa7=_0x564724['get'](_0x5272ee),_0x494886=_0x564724['get'](c);let _0x476033=null;this['listenTo'](_0xd0ca59['document'],'clipboardInput',(_0x13c696,_0x9caeb2)=>{const _0x470f59=_0x9caeb2['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x476033=_0x470f59?JSON['parse'](_0x470f59):null;}),this['listenTo'](_0x4d4fa7,'contentInsertion',(_0x1ffee9,_0x54f898)=>{const _0x5323c2=_0x54f898['sourceEditorId']===this['editor']['id'];_0x5323c2&&'drop'===_0x54f898['method']||_0x56e6ae['change'](_0x300fcf=>{let _0x5f37b6=_0x494886['getFootnotesDefinitionsObjectElement']();const _0x4fc8d0=!!_0x5f37b6&&Array['from'](_0x56e6ae['document']['selection']['getSelectedBlocks']())['includes'](_0x5f37b6);if((_0x5f37b6&&!_0x4fc8d0||!_0x5f37b6&&!_0x476033)&&function(_0x4c7f40,_0x418ebe){const _0x1f0971=[];for(const {item:_0x39e157}of _0x4c7f40['createRangeIn'](_0x418ebe))_0x39e157['is']('element','footnotesDefinitions')&&_0x1f0971['push'](_0x39e157);for(const _0xd1293b of _0x1f0971)_0x4c7f40['remove'](_0xd1293b);}(_0x300fcf,_0x54f898['content']),!_0x476033)return;const {selection:_0x597122}=_0x56e6ae['document'],_0x108c7b=_0x597122['getFirstRange']()['root'];_0x5f37b6&&!_0x4fc8d0||(_0x5f37b6=function(_0x22f69d,_0x17a2d7){for(const {item:_0x55a15c}of _0x22f69d['createRangeIn'](_0x17a2d7))if(_0x55a15c['is']('element','footnotesDefinitions'))return _0x55a15c;return null;}(_0x300fcf,_0x54f898['content']),_0x5f37b6||=_0x494886['_insertEmptyFootnotesDefinitionsContainer'](_0x300fcf,_0x108c7b));const _0x2d9827=Array['from'](_0x597122['getRanges']())['flatMap'](f),_0x1bd864=function(_0x2d3a44,_0x4ef68b,_0x30f618){const _0x50567c=Object['create'](null);for(const {item:_0x1aafe2}of _0x2d3a44['createRangeIn'](_0x4ef68b))if(_0x1aafe2['is']('element','footnoteRef')){const _0x48b3dc=_0x1aafe2['getAttribute']('footnoteId');if(!_0x30f618(_0x48b3dc))continue;_0x50567c[_0x48b3dc]||(_0x50567c[_0x48b3dc]=_0x32279b()),_0x2d3a44['setAttribute']('footnoteId',_0x50567c[_0x48b3dc],_0x1aafe2);}return _0x50567c;}(_0x300fcf,_0x54f898['content'],_0x3c585c=>{if(!_0x5323c2)return!0x0;return!!_0x494886['getFootnote'](_0x3c585c)&&!_0x2d9827['includes'](_0x3c585c);});for(const [_0x221c3f,_0x482936]of Object['entries'](_0x476033)){const _0x3138b2=_0x1bd864[_0x221c3f]||_0x221c3f,_0x16713a=_0x300fcf['createElement']('footnoteDefinition',{'footnoteId':_0x3138b2}),_0x495159=_0x1f68d1['data']['htmlProcessor']['toView'](_0x482936),_0x1dddfb=_0x1f68d1['data']['toModel'](_0x495159,_0x16713a);_0x300fcf['append'](_0x1dddfb,_0x16713a),_0x300fcf['insert'](_0x16713a,_0x5f37b6,'end');}_0x476033=null;});});}}function f(_0xaac28f){const _0x573192=new Set();for(const {item:_0x5f0e67}of _0xaac28f)_0x5f0e67['is']('element','footnoteRef')&&_0x573192['add'](_0x5f0e67['getAttribute']('footnoteId'));return Array['from'](_0x573192);}class i extends _0x20f0a6{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x538b81}=this,{componentFactory:_0xcd3c2d}=_0x538b81['ui'];_0xcd3c2d['add']('insertFootnote',x(_0x538b81,_0x201b7c)),_0xcd3c2d['add']('menuBar:insertFootnote',x(_0x538b81,_0x4f0da7)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xacb48b=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x574e3f;for(const _0x1aca10 in _0xacb48b){const _0x3a4323=_0x1aca10,_0x418fa4=_0xacb48b[_0x3a4323];if('footnotesLicenseKeyValid'==_0x418fa4||'footnotesLicenseKeyInvalid'==_0x418fa4||'footnotesLicenseKeyExpired'==_0x418fa4||'footnotesLicenseKeyDomainLimit'==_0x418fa4||'footnotesLicenseKeyNotAllowed'==_0x418fa4||'footnotesLicenseKeyEvaluationLimit'==_0x418fa4||'footnotesLicenseKeyTrialLimit'==_0x418fa4||'footnotesLicenseKeyUsageLimit'==_0x418fa4){delete _0xacb48b[_0x3a4323],_0x574e3f=_0x418fa4,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x574e3f&&_0xacb48b['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x574e3f&&_0xacb48b['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x574e3f&&_0xacb48b['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x574e3f&&_0xacb48b['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x574e3f&&_0xacb48b['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x574e3f&&_0xacb48b['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x574e3f&&_0xacb48b['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x1013c2,_0x2d45ab){const _0x1d4202=_0x1013c2['commands']['get']('insertFootnote');return _0x54f865=>{const {t:t}=_0x54f865,_0x4c5274=new _0x2d45ab(_0x54f865),_0x464fb0=_0x4c5274 instanceof _0x4f0da7;return _0x4c5274['bind']('isEnabled')['to'](_0x1d4202,'isEnabled'),_0x4c5274['set']({'label':t(_0x464fb0?'Footnote':'Insert\x20footnote'),'icon':_0x3fecdf,'tooltip':!0x0}),_0x4c5274['on']('execute',()=>{_0x1d4202['execute'](),_0x1013c2['editing']['view']['focus']();}),_0x4c5274;};}class lt extends _0x20f0a6{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 _0x4f9055{['refresh'](){const {editor:_0x574ca8}=this,_0x3bdde6=_0x574ca8['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3bdde6,this['value']=_0x3bdde6?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1b680e}){const {editor:_0x4dc819}=this,_0x5ec9c8=_0x4dc819['plugins']['get'](c),_0x1252d5=_0x5ec9c8['getFootnotesDefinitionsObjectElement']();_0x1252d5&&Q['includes'](_0x1b680e)&&_0x4dc819['model']['change'](_0x28fab7=>{_0x28fab7['setAttribute']('footnotesListStyle',_0x1b680e,_0x1252d5),_0x5ec9c8['_updateFootnotesCounters'](_0x28fab7);});}}class C extends _0x4f9055{['refresh'](){const {editor:_0x56531f}=this,_0x2fd3ec=_0x56531f['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2fd3ec,this['value']=_0x2fd3ec?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x13037a}){const {editor:_0x86e8f1}=this,_0x39a2c0=_0x86e8f1['plugins']['get'](c),_0x241443=_0x39a2c0['getFootnotesDefinitionsObjectElement']();_0x241443&&Number['isInteger'](_0x13037a)&&_0x86e8f1['model']['change'](_0x20851e=>{_0x20851e['setAttribute']('footnotesListStart',_0x13037a,_0x241443),_0x39a2c0['_updateFootnotesCounters'](_0x20851e);});}}class P extends _0x20f0a6{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x48a913}=this;_0x48a913['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x48a913['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x48a913['commands']['add']('footnotesStyle',new S(_0x48a913)),_0x48a913['commands']['add']('footnotesStart',new C(_0x48a913)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x18a588}=this,{schema:_0x93b19a}=_0x18a588['model'];_0x93b19a['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x3a5ebe}=this,{conversion:_0x30be9e,model:_0x34f409}=_0x3a5ebe,{schema:_0x4f256f}=_0x34f409;_0x30be9e['for']('upcast')['add'](_0x33b318=>{_0x33b318['on']('element:ol',(_0x2e84bf,_0xc73048,_0x1db369)=>{const _0xa1a63f=_0xc73048['viewItem'],_0x5198fa=_0xc73048['modelCursor']?.['parent'];_0xa1a63f['hasClass']('footnotes-list')&&_0x5198fa?.['is']('element','footnotesDefinitions')&&(function(_0x465c88,_0x3a2691,_0x489c18,_0xdab3eb){if(!_0xdab3eb['checkAttribute'](_0x3a2691,'footnotesListStart'))return;let _0x3648a3=0x1;const _0x3793b4=_0x489c18['consumable']['consume'](_0x465c88,{'attributes':'start'});if(_0x3793b4){const _0x394013=Number['parseInt'](_0x465c88['getAttribute']('start'),0xa);Number['isNaN'](_0x394013)||(_0x3648a3=_0x394013);}!_0x3793b4&&_0x3a2691['hasAttribute']('footnotesListStart')||_0x489c18['writer']['setAttribute']('footnotesListStart',_0x3648a3,_0x3a2691);}(_0xa1a63f,_0x5198fa,_0x1db369,_0x4f256f),function(_0xb9f3d6,_0xace756,_0x3cf944,_0x3effed){if(!_0x3effed['checkAttribute'](_0xace756,'footnotesListStyle'))return;let _0x415a02='decimal',_0x25fcca=!0x1;if(_0x3cf944['consumable']['consume'](_0xb9f3d6,{'attributes':'type'})){const _0x229abf={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xb9f3d6['getAttribute']('type')];_0x229abf&&(_0x415a02=_0x229abf),_0x25fcca=!0x0;}_0x3cf944['consumable']['consume'](_0xb9f3d6,{'styles':'list-style-type'})&&(_0x415a02=_0xb9f3d6['getStyle']('list-style-type'),_0x25fcca=!0x0),!_0x25fcca&&_0xace756['hasAttribute']('footnotesListStyle')||_0x3cf944['writer']['setAttribute']('footnotesListStyle',_0x415a02,_0xace756);}(_0xa1a63f,_0x5198fa,_0x1db369,_0x4f256f));});}),_0x30be9e['for']('downcast')['add'](_0x53c16a=>{_0x53c16a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1f1a48,_0x3aa19b,_0xffebc5)=>{if(!_0xffebc5['consumable']['consume'](_0x3aa19b['item'],_0x1f1a48['name']))return;const _0x53b0e0=M(_0x3aa19b['item'],_0xffebc5['mapper']),{attributeNewValue:_0x5ce468}=_0x3aa19b;null==_0x5ce468||0x1===_0x5ce468?_0xffebc5['writer']['removeAttribute']('start',_0x53b0e0):_0xffebc5['writer']['setAttribute']('start',String(_0x5ce468),_0x53b0e0);}),_0x53c16a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x4c7726,_0x52e768,_0x3eb514)=>{if(!_0x3eb514['consumable']['consume'](_0x52e768['item'],_0x4c7726['name']))return;const _0x528f1c=M(_0x52e768['item'],_0x3eb514['mapper']),{attributeNewValue:_0x425a42}=_0x52e768;_0x425a42&&'decimal'!==_0x425a42?_0x3eb514['writer']['setStyle']('list-style-type',_0x425a42,_0x528f1c):_0x3eb514['writer']['removeStyle']('list-style-type',_0x528f1c);});});}['_definePostfixer'](){const {editor:_0x16c309}=this,{model:_0xed661c}=_0x16c309,_0x37d9c6=_0x16c309['plugins']['get'](c),_0x19a277=this['_getDefaultListStyle'](),_0x159f9d=this['_getDefaultStartIndex']();_0xed661c['document']['registerPostFixer'](_0x110b6c=>{const _0x3a0d6d=_0xed661c['document']['differ']['getChanges']();let _0x5c8d88=!0x1;for(const _0x1448ba of _0x3a0d6d){if('insert'!==_0x1448ba['type']||'$text'===_0x1448ba['name'])continue;const _0x6a67af=_0xed661c['createRangeOn'](_0x1448ba['position']['nodeAfter']);for(const _0x24f1e0 of _0x6a67af['getItems']())_0x24f1e0['is']('element','footnotesDefinitions')&&(!_0x24f1e0['hasAttribute']('footnotesListStart')&&_0xed661c['schema']['checkAttribute'](_0x24f1e0,'footnotesListStart')&&(_0x110b6c['setAttribute']('footnotesListStart',_0x159f9d,_0x24f1e0),_0x5c8d88=!0x0),!_0x24f1e0['hasAttribute']('footnotesListStyle')&&_0xed661c['schema']['checkAttribute'](_0x24f1e0,'footnotesListStyle')&&(_0x110b6c['setAttribute']('footnotesListStyle',_0x19a277,_0x24f1e0),_0x5c8d88=!0x0));}return _0x5c8d88&&_0x37d9c6['_updateFootnotesCounters'](_0x110b6c),_0x5c8d88;});}['_defineFormatter'](){const {editor:_0x5269df}=this;_0x5269df['plugins']['get'](c)['setFootnoteFormatter'](_0x3e9cd7=>this['_formatFootnoteListValue'](_0x3e9cd7));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x188176,value:_0x29293a,digits:_0x3ef975}){const _0x402026=_0x188176['getAttribute']('footnotesListStyle'),_0x22deb0=_0x188176['getAttribute']('footnotesListStart'),_0x1ad9a9=Math['floor'](_0x29293a)+(_0x22deb0??0x1)-0x1;switch(_0x402026){case'decimal-leading-zero':return function(_0x4a11da,_0x53a255){return String(_0x4a11da)['padStart'](_0x53a255,'0');}(_0x1ad9a9,Math['max'](0x2,_0x3ef975));case'lower-alpha':case'lower-latin':return N(_0x1ad9a9,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1ad9a9,!0x0);case'lower-roman':return X(_0x1ad9a9,!0x1);case'upper-roman':return X(_0x1ad9a9,!0x0);default:return String(_0x1ad9a9);}}}function M(_0xdd6ce9,_0x3130e3){const _0x493a6f=_0x3130e3['toViewElement'](_0xdd6ce9);return Array['from'](_0x493a6f['getChildren']())['find'](_0x577902=>_0x577902['is']('element','ol')&&_0x577902['hasClass']('footnotes-list'));}function N(_0xeac7d8,_0x2aebd0){let _0x1eb0d9='',_0x4f71df=_0xeac7d8;for(;_0x4f71df>0x0;){const _0xb22219=(_0x4f71df-0x1)%0x1a;_0x1eb0d9=String['fromCharCode'](0x61+_0xb22219)+_0x1eb0d9,_0x4f71df=Math['floor']((_0x4f71df-0x1)/0x1a);}return _0x2aebd0?_0x1eb0d9['toUpperCase']():_0x1eb0d9;}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(_0x234ec1,_0x3b275b){let _0x1e05f4='',_0xf24473=_0x234ec1;for(const {value:_0x37a39a,numeral:_0x595d47}of V)for(;_0xf24473>=_0x37a39a;)_0x1e05f4+=_0x595d47,_0xf24473-=_0x37a39a;return _0x3b275b?_0x1e05f4:_0x1e05f4['toLowerCase']();}class H extends _0x7298ae{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x102e68();['focusCycler'];constructor(_0x2759d0,{styleButtonViews:_0x57c7c7,styleGridAriaLabel:_0x509fd5}){super(_0x2759d0),(this['focusCycler']=new _0x31654c({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x57c7c7,_0x509fd5),[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 _0x22f9e2 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x22f9e2['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 _0x3ebc3d=_0x8278c0=>_0x8278c0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3ebc3d),this['keystrokes']['set']('arrowleft',_0x3ebc3d),this['keystrokes']['set']('arrowup',_0x3ebc3d),this['keystrokes']['set']('arrowdown',_0x3ebc3d);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x59e9ad,_0x839579){const _0x27d7a5=new _0x7298ae(this['locale']);return _0x27d7a5['children']=_0x27d7a5['createCollection'](),_0x27d7a5['children']['addMany'](_0x59e9ad),_0x27d7a5['setTemplate']({'tag':'div','attributes':{'aria-label':_0x839579,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x27d7a5['children']}),_0x27d7a5['children']['delegate']('execute')['to'](this),_0x27d7a5['focus']=function(){for(const _0x2b7a9c of this['children'])if(_0x2b7a9c instanceof _0x201b7c&&_0x2b7a9c['isOn'])return void _0x2b7a9c['focus']();this['children']['first']['focus']();},_0x27d7a5['focusTracker']=new ot(),_0x27d7a5['keystrokes']=new rt(),_0x27d7a5['render'](),_0x27d7a5['keystrokes']['listenTo'](_0x27d7a5['element']),this['children']['add'](_0x27d7a5),_0x27d7a5;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x31931a=this['_createStartIndexPropertyView'](),_0x300af3=[_0x31931a],_0x5b614d=new st(this['locale'],_0x300af3);return _0x5b614d['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5b614d['buttonView']['bind']('isEnabled')['toMany'](_0x300af3,'isEnabled',(..._0x1e7c12)=>_0x1e7c12['some'](_0x4c4e69=>_0x4c4e69)),_0x5b614d['buttonView']['on']('change:isEnabled',(_0x411bb1,_0x3eb738,_0x3136a0)=>{_0x3136a0||(_0x5b614d['isCollapsed']=!0x0);}),this['children']['add'](_0x5b614d),[_0x31931a,_0x5b614d];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x592dbe=new it(this['locale'],et);return _0x592dbe['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x592dbe['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x592dbe['fieldView']['on']('input',()=>{const _0x5675ff=_0x592dbe['fieldView']['element'],_0x2916dc=_0x5675ff['valueAsNumber'];Number['isNaN'](_0x2916dc)?_0x592dbe['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x5675ff['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x2916dc}):_0x592dbe['errorText']=t(_0x2916dc<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x592dbe;}}class j extends _0x20f0a6{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x33257c,_0x58e462];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x39a8c2}=this,{componentFactory:_0x4f0384}=_0x39a8c2['ui'];_0x39a8c2['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4f0384['add']('footnotesStyle',function(_0x29d824){return _0x14a2a4=>{const {t:t}=_0x14a2a4,_0x5d76f7=_0x29d824['commands']['get']('footnotesStyle'),_0x8b1278=_0x1bac19(_0x14a2a4),{buttonView:_0x184d59}=_0x8b1278;return _0x8b1278['class']='ck-footnotes-styles-dropdown',_0x8b1278['bind']('isEnabled')['to'](_0x5d76f7,'isEnabled'),_0x184d59['set']({'label':t('Footnotes\x20style'),'icon':_0x3fecdf,'tooltip':!0x0}),_0x8b1278['once']('change:isOpen',()=>{const _0x426645=function({editor:_0x286776,dropdownView:_0x2eef68}){const {t:t}=_0x286776['locale'],_0x4dcd1f=t('Footnotes\x20definitions\x20styles'),_0x2b6540=function(_0x52a28a){const t=_0x52a28a['locale']['t'],_0x19c2ec=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x477b15},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2e36a0},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x30c2f7},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x235fc1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2ff3a7},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x25c909}];return _0x19c2ec['map'](function(_0x989034){const _0x4d1cb5=_0x989034['locale'];return({label:_0x4b748e,icon:_0x549a92,tooltip:_0x5d2916,style:_0x5e5c5b})=>{const _0x8b016c=_0x989034['commands']['get']('footnotesStyle'),_0x556e37=new _0x201b7c(_0x4d1cb5);return _0x556e37['set']({'label':_0x4b748e,'icon':_0x549a92,'tooltip':_0x5d2916}),_0x556e37['bind']('isOn')['to'](_0x8b016c,'value',_0x3dcfdf=>_0x3dcfdf===_0x5e5c5b),_0x556e37['bind']('isEnabled')['to'](_0x8b016c,'isEnabled'),_0x556e37['on']('execute',()=>{_0x989034['execute']('footnotesStyle',{'value':_0x5e5c5b}),_0x989034['editing']['view']['focus']();}),_0x556e37;};}(_0x52a28a));}(_0x286776),_0x1fffd6=new H(_0x286776['locale'],{'styleGridAriaLabel':_0x4dcd1f,'styleButtonViews':_0x2b6540});return _0x1fffd6['delegate']('execute')['to'](_0x2eef68),_0x1fffd6['on']('footnotesListStart',(_0x27b872,_0x51a340)=>{_0x286776['execute']('footnotesStart',{'value':_0x51a340['startIndex']});}),_0x1fffd6;}({'editor':_0x29d824,'dropdownView':_0x8b1278});_0x8b1278['panelView']['children']['add'](_0x426645);}),_0x8b1278;};}(_0x39a8c2));}['afterInit'](){const {editor:_0xcee90d}=this,{t:t}=_0xcee90d['locale'],_0x3f1e00=_0xcee90d['plugins']['get'](_0x58e462),{defaultPositions:_0x4b6220}=_0x1ac470;_0x3f1e00['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0xcee90d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3510f1=>{let _0x32885f=_0x3510f1['getFirstPosition']()?.['parent'];return _0x32885f?.['is']('$text')&&(_0x32885f=_0x32885f['parent']),_0x32885f?.['is']('element')?_0x32885f['findAncestor'](J):null;},'positions':[_0x4b6220['southArrowNorth'],_0x4b6220['southArrowNorthMiddleWest'],_0x4b6220['southArrowNorthMiddleEast'],_0x4b6220['southArrowNorthWest'],_0x4b6220['southArrowNorthEast'],_0x4b6220['northArrowSouth'],_0x4b6220['northArrowSouthMiddleWest'],_0x4b6220['northArrowSouthMiddleEast'],_0x4b6220['northArrowSouthWest'],_0x4b6220['northArrowSouthEast'],_0x4b6220['viewportStickyNorth']]});}}class ft extends _0x20f0a6{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,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x2a51d8,Command as _0x411d4d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x245c1f,isWidget as _0x3af48b,toWidgetEditable as _0x5c8e2a,WidgetToolbarRepository as _0x27b646}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0xe0a509,logWarning as _0x506cb7,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x8b1fec,ClickObserver as _0x469245}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2c4716}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3a0a17,ButtonView as _0xa6576c,View as _0x39320c,ViewCollection as _0x2fea4c,FocusCycler as _0x1bb71a,addKeyboardHandlingForGrid as _0x391a9c,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x5f4adf,BalloonPanelView as _0x204d6f,createDropdown as _0x3c9576}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2307de,IconListStyleDecimal as _0x3399b5,IconListStyleDecimalLeadingZero as _0x7ab591,IconListStyleLowerRoman as _0x112b16,IconListStyleUpperRoman as _0x2119d1,IconListStyleLowerLatin as _0x5c1242,IconListStyleUpperLatin as _0x2c5a45}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x23ec8d,_0x32a9ab){this['_model']=_0x23ec8d,this['_elementName']=_0x32a9ab['elementName'],this['_getElementKey']=_0x32a9ab['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xe58bec){const _0x1bd01d=new Set(),_0x7eb27a=new Map();for(const _0x3f9776 of _0xe58bec){if('insert'===_0x3f9776['type']&&'$text'!==_0x3f9776['name']&&_0x3f9776['position']['nodeAfter']){const _0x290d44=this['_model']['createRangeOn'](_0x3f9776['position']['nodeAfter']);for(const _0x1eabdb of _0x290d44['getItems']()){if(!_0x1eabdb['is']('element',this['_elementName']))continue;const _0x100165=this['_getElementKey'](_0x1eabdb);_0x7eb27a['has'](_0x100165)||_0x7eb27a['set'](_0x100165,[]),_0x7eb27a['get'](_0x100165)['push'](_0x1eabdb);}}if('remove'===_0x3f9776['type']&&_0x3f9776['name']===this['_elementName']){const _0x52b351=this['_getElementKey']({'getAttribute':_0x403352=>_0x3f9776['attributes']['get'](_0x403352)});_0x1bd01d['add'](_0x52b351);}}for(const [_0x493ded,_0x4ee1cb]of this['_trackedElements'])'$graveyard'===_0x4ee1cb['root']['rootName']&&_0x1bd01d['add'](_0x493ded);for(const _0x420357 of _0x1bd01d)this['_trackedElements']['delete'](_0x420357);for(const [_0x7c1d7f,_0x11bc17]of _0x7eb27a)this['_trackedElements']['set'](_0x7c1d7f,_0x11bc17[_0x11bc17['length']-0x1]);const _0x537256=new Set();for(const [_0x32da18,_0x2ef00c]of _0x7eb27a)_0x1bd01d['has'](_0x32da18)&&(_0x537256['add'](_0x2ef00c[0x0]),_0x2ef00c['length']>0x1?_0x7eb27a['set'](_0x32da18,_0x2ef00c['slice'](0x1)):_0x7eb27a['delete'](_0x32da18),_0x1bd01d['delete'](_0x32da18));return{'removed':Array['from'](_0x1bd01d),'inserted':Array['from'](_0x7eb27a['values']())['flat'](),'moved':Array['from'](_0x537256)};}}class c extends _0x2a51d8{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x42b05a){super(_0x42b05a),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x581a1e=>_0x581a1e['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x258a1b=>_0x258a1b['getAttribute']('footnoteId')});}['init'](){const {editor:_0x47d17a}=this,{model:_0x1040fe,data:_0xdb443d}=_0x47d17a;_0x1040fe['document']['registerPostFixer'](_0x12f591=>{const _0x104682=_0x1040fe['document']['differ']['getChanges']();let _0x559b53=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x12f591,_0x104682)&&(_0x559b53=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x12f591,_0x104682)&&(_0x559b53=!0x0),this['_handleFootnoteReferencesChanges'](_0x12f591,_0x104682)&&(_0x559b53=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x12f591)&&(_0x559b53=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x12f591)&&(_0x559b53=!0x0),this['_sortFootnoteDefinitions'](_0x12f591)&&(_0x559b53=!0x0),_0x559b53;}),this['listenTo'](_0x1040fe['document'],'change:data',()=>{_0x1040fe['enqueueChange']({'isUndoable':!0x1},_0x586955=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x586955);});},{'priority':'low'}),this['listenTo'](_0xdb443d,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2cd394){return this['_footnotes']['find'](_0x32efb0=>_0x32efb0['id']===_0x2cd394)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x332eeb){this['_footnoteFormatter']=_0x332eeb;}['_updateFootnotesCounters'](_0x3856a4,_0x544ef5=0x0){let _0x42b337=!0x1;for(let _0x5be584=_0x544ef5;_0x5be584<this['_footnotes']['length'];_0x5be584++)this['_updateFootnoteRefCounter'](_0x3856a4,_0x5be584)&&(_0x42b337=!0x0);return _0x42b337;}['_insertEmptyFootnotesDefinitionsContainer'](_0x569d24,_0x3eea5d){const _0xf757f2=_0x569d24['createElement']('footnotesDefinitions',{});return _0x569d24['append'](_0xf757f2,_0x3eea5d),this['_footnotesDefinitions']=_0xf757f2,_0xf757f2;}['_ensureFootnotesDefinitionsContainerExists'](_0x33929e){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x106400=this['_footnotes'][0x0]['reference']['root'],_0x42589b=this['_insertEmptyFootnotesDefinitionsContainer'](_0x33929e,_0x106400);for(const _0x29e59a of this['_footnotes'])_0x29e59a['definition']['parent']||_0x33929e['insert'](_0x29e59a['definition'],_0x42589b,'end');this['_updateFootnotesCounters'](_0x33929e);}['_handleFootnotesDefinitionsObjectChanges'](_0x6851a9,_0x34bb6c){let _0x41ef1c=!0x1;const {inserted:_0x44a133,removed:_0x5aba2a,moved:_0x140fc3}=this['_footnoteDefsContainerTracker']['getChanges'](_0x34bb6c);if(_0x140fc3['length']&&(this['_footnotesDefinitions']=_0x140fc3[0x0]),_0x44a133['length']){if(_0x44a133['length']>0x1||this['_footnotesDefinitions']&&_0x44a133['some'](_0x5a18f1=>_0x5a18f1!==this['_footnotesDefinitions'])){const _0x2492f2=_0x6851a9['createElement']('footnotesDefinitions',{}),_0x520ea6=[];this['_footnotesDefinitions']&&_0x520ea6['push'](this['_footnotesDefinitions']),_0x520ea6['push'](..._0x44a133),_0x6851a9['insert'](_0x2492f2,_0x520ea6[0x0],'before');for(const _0x5d035f of _0x520ea6)_0x6851a9['move'](_0x6851a9['createRangeIn'](_0x5d035f),_0x6851a9['createPositionAt'](_0x2492f2,'end')),_0x6851a9['remove'](_0x5d035f);this['_footnotesDefinitions']=_0x2492f2,this['_updateFootnotesCounters'](_0x6851a9),_0x41ef1c=!0x0;}else this['_footnotesDefinitions']=_0x44a133[0x0];}if(_0x5aba2a['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x2d88a0 of this['_footnotes'])_0x6851a9['remove'](_0x2d88a0['reference']),_0x41ef1c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x41ef1c;}['_handleFootnoteDefinitionsChanges'](_0x55966c,_0x54236f){let _0x1acb33=!0x1;const _0x52c000=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xd17f28,moved:_0x4f64b2}=this['_footnoteDefsTracker']['getChanges'](_0x54236f);for(const _0x1179b7 of[..._0x4f64b2,..._0xd17f28]){const _0x2461f9=_0x1179b7['getAttribute']('footnoteId'),_0x330a53=this['getFootnote'](_0x2461f9);_0x330a53&&(_0x330a53['definition']=_0x1179b7),_(_0x55966c,_0x52c000,_0x1179b7)&&(_0x1acb33=!0x0);}return _0x1acb33;}['_handleFootnoteReferencesChanges'](_0x1d2c02,_0x37bc70){let _0xe91461=!0x1;const {removed:_0x64b273,inserted:_0x33ee2a,moved:_0x2615d3}=this['_footnoteRefsTracker']['getChanges'](_0x37bc70);for(const _0xc8ddb0 of _0x64b273)this['_handleRemoveFootnoteReferenceById'](_0x1d2c02,_0xc8ddb0)&&(_0xe91461=!0x0);for(const _0x36142e of _0x33ee2a)this['_handleInsertedFootnoteReference'](_0x1d2c02,_0x36142e)&&(_0xe91461=!0x0);for(const _0x51f4a5 of _0x2615d3)this['_handleMovedFootnoteReference'](_0x1d2c02,_0x51f4a5)&&(_0xe91461=!0x0);return _0xe91461;}['_handleFootnotesDefinitionsObjectSync'](_0x508279){if(!this['_footnotesDefinitions'])return!0x1;let _0x4fbfa2=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x42a5a8=[];for(const _0x50d4ae of this['_footnotesDefinitions']['getChildren']()){const _0x8dfee7=_0x50d4ae['getAttribute']('footnoteId');this['getFootnote'](_0x8dfee7)||(_0x42a5a8['unshift'](_0x50d4ae),_0x4fbfa2=!0x0);}for(const _0x5ef582 of _0x42a5a8)_0x508279['remove'](_0x5ef582);}const _0x5d9f92=new Set(),_0x25bfe7=[];for(const _0x4e7ad1 of this['_footnotesDefinitions']['getChildren']()){const _0xa55c8b=_0x4e7ad1['getAttribute']('footnoteId');_0x5d9f92['has'](_0xa55c8b)?(_0x25bfe7['unshift'](_0x4e7ad1),_0x4fbfa2=!0x0):_0x5d9f92['add'](_0xa55c8b);}for(const _0x4a519d of _0x25bfe7)_0x508279['remove'](_0x4a519d);return this['_footnotesDefinitions']['childCount']||(_0x508279['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4fbfa2=!0x0),_0x4fbfa2;}['_handleInsertedFootnoteReference'](_0x259232,_0x49fb9b){if(this['_footnotes']['find'](_0x5df74c=>_0x5df74c['reference']===_0x49fb9b))return!0x1;let _0xd90641=!0x1;const _0x14d2fa=_0x49fb9b['getAttribute']('footnoteId'),_0x1d4a4c=this['_footnotes']['findIndex'](_0x42b4ba=>_0x42b4ba['id']===_0x14d2fa);-0x1!==_0x1d4a4c&&(_0x259232['remove'](this['_footnotes'][_0x1d4a4c]['reference']),this['_footnotes']['splice'](_0x1d4a4c,0x1),_0xd90641=!0x0);let _0x4a759d=this['_footnotesDefinitions']?function(_0xf33790,_0x3766f5){for(const _0x3ba649 of _0xf33790['getChildren']())if(_0x3ba649['getAttribute']('footnoteId')===_0x3766f5)return _0x3ba649;return null;}(this['_footnotesDefinitions'],_0x14d2fa):null;_0x4a759d||(_0x4a759d=_0x259232['createElement']('footnoteDefinition',{'footnoteId':_0x14d2fa}),this['_footnotesDefinitions']&&(_0x259232['insert'](_0x4a759d,this['_footnotesDefinitions'],'end'),_0xd90641=!0x0));const _0x8708a0={'id':_0x14d2fa,'reference':_0x49fb9b,'definition':_0x4a759d},_0x28f259=I(this['editor']['model'],this['_footnotes'],_0x49fb9b);this['_footnotes']['splice'](_0x28f259,0x0,_0x8708a0);let _0x123f6d=_0x28f259;return-0x1!==_0x1d4a4c&&(_0x123f6d=Math['min'](_0x28f259,_0x1d4a4c)),this['_updateFootnotesCounters'](_0x259232,_0x123f6d)&&(_0xd90641=!0x0),_0xd90641;}['_handleRemoveFootnoteReferenceById'](_0x2ae4d7,_0x707703){const _0x1231d8=this['_footnotes']['findIndex'](_0x52e4a3=>_0x52e4a3['id']===_0x707703);if(-0x1===_0x1231d8)return!0x1;let _0x6402b2=!0x1;const _0x15dae6=this['_footnotes'][_0x1231d8];return'$graveyard'!==_0x15dae6['definition']['root']['rootName']&&(_0x2ae4d7['remove'](_0x15dae6['definition']),_0x6402b2=!0x0),this['_footnotes']['splice'](_0x1231d8,0x1),this['_updateFootnotesCounters'](_0x2ae4d7,_0x1231d8)&&(_0x6402b2=!0x0),_0x6402b2;}['_handleMovedFootnoteReference'](_0x3dc185,_0x46b02f){const _0x3da29a=_0x46b02f['getAttribute']('footnoteId'),_0x5ade23=this['_footnotes']['findIndex'](_0xa84065=>_0xa84065['id']===_0x3da29a),_0x24997e=this['_footnotes'][_0x5ade23];let _0x31b398=!0x1;_0x24997e['reference']=_0x46b02f,this['_footnotes']['splice'](_0x5ade23,0x1);const _0x3bcef5=I(this['editor']['model'],this['_footnotes'],_0x46b02f);return this['_footnotes']['splice'](_0x3bcef5,0x0,_0x24997e),this['_updateFootnotesCounters'](_0x3dc185,Math['min'](_0x5ade23,_0x3bcef5))&&(_0x31b398=!0x0),_0x31b398;}['_updateFootnoteRefCounter'](_0x374f4a,_0x4e8f64){if(!this['_footnotesDefinitions'])return!0x1;const _0x30262b=this['_footnotes'][_0x4e8f64];let _0x5f4285;return _0x5f4285=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x30262b,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4e8f64+0x1}):String(_0x4e8f64+0x1),_0x30262b['reference']['getAttribute']('footnoteCounter')!=_0x5f4285&&(_0x374f4a['setAttribute']('footnoteCounter',_0x5f4285,_0x30262b['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x2ff03d){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2c0e63,_0x31f9d9){if(_0x2c0e63['length']!==_0x31f9d9['length'])return!0x1;for(let _0x20873f=0x0;_0x20873f<_0x2c0e63['length'];_0x20873f++)if(_0x2c0e63[_0x20873f]!==_0x31f9d9[_0x20873f])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x392e5a=>_0x392e5a['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x754d4c=>_0x754d4c['getAttribute']('footnoteId'))))return!0x1;let _0x3ee8f7=!0x1;for(let _0x34d196=0x0;_0x34d196<this['_footnotes']['length'];_0x34d196++){const _0x1ee689=this['_footnotes'][_0x34d196],_0x24c289=_0x2ff03d['createPositionBefore'](_0x1ee689['definition']),_0x4a4f56=_0x2ff03d['createPositionAt'](this['_footnotesDefinitions'],_0x34d196);_0x24c289['isEqual'](_0x4a4f56)||(_0x2ff03d['move'](_0x2ff03d['createRangeOn'](_0x1ee689['definition']),_0x4a4f56),_0x3ee8f7=!0x0);}return _0x3ee8f7;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2a17b5){if(!this['_footnotes']['length'])return!0x1;const {model:_0xdeea55}=this['editor'];let _0x43d723=!0x1;for(let _0x4aed04=0x0;_0x4aed04<this['_footnotes']['length']-0x1;_0x4aed04++){const _0x4b4d3b=this['_footnotes'][_0x4aed04],_0x3bb197=this['_footnotes'][_0x4aed04+0x1],_0xdf4275=_0xdeea55['createPositionBefore'](_0x4b4d3b['reference']),_0x134e43=_0xdeea55['createPositionBefore'](_0x3bb197['reference']);'after'===_0xdf4275['compareWith'](_0x134e43)&&(this['_handleMovedFootnoteReference'](_0x2a17b5,_0x4b4d3b['reference']),_0x4aed04=-0x1,_0x43d723=!0x0);}return _0x43d723;}}function _(_0xd317d7,_0x2c8816,_0x3d190a){if(_0x3d190a['childCount'])return!0x1;const _0x437e2a=_0x2c8816?'paragraph':'footnoteInlineContent';return _0xd317d7['insert'](_0xd317d7['createElement'](_0x437e2a),_0x3d190a),!0x0;}function I(_0x5dbb18,_0x35f8e7,_0x28a043){if(0x0===_0x35f8e7['length'])return 0x0;const _0x14cf03=_0x5dbb18['createPositionBefore'](_0x28a043);for(let _0x231f54=0x0;_0x231f54<_0x35f8e7['length'];_0x231f54++){const _0x1e7bcb=_0x35f8e7[_0x231f54],_0x256926=_0x5dbb18['createPositionBefore'](_0x1e7bcb['reference']);if('before'===_0x14cf03['compareWith'](_0x256926))return _0x231f54;}const _0x4f04d3=_0x28a043['root'];let _0x88ec31=-0x1;for(let _0x4f1de4=_0x35f8e7['length']-0x1;_0x4f1de4>=0x0;_0x4f1de4--)if(_0x35f8e7[_0x4f1de4]['reference']['root']===_0x4f04d3){_0x88ec31=_0x4f1de4;break;}if(-0x1!==_0x88ec31)return _0x88ec31+0x1;const _0x56a149=_0x5dbb18['document']['getRootNames'](),_0x4c9cab=_0x56a149['indexOf'](_0x4f04d3['rootName']),_0x5d5339=_0x56a149[_0x4c9cab+0x1];if(_0x5d5339){for(let _0x515fd9=0x0;_0x515fd9<_0x35f8e7['length'];_0x515fd9++)if(_0x35f8e7[_0x515fd9]['reference']['root']['rootName']===_0x5d5339)return _0x515fd9;}return _0x35f8e7['length'];}class m extends _0x411d4d{['refresh'](){const _0x3af7c6=this['editor']['model']['document']['selection'],_0x2e6456=this['_getPositionToInsertFootnote'](_0x3af7c6);this['isEnabled']=!!_0x2e6456;}['execute'](_0x268dcc){const {editor:_0x554e34}=this,{model:_0x46c436}=_0x554e34,{selection:_0x4f9230}=_0x46c436['document'],_0x32b096=this['_getPositionToInsertFootnote'](_0x4f9230);if(!_0x32b096)return;const _0x12944f=_0x554e34['plugins']['get']('FootnotesEditing'),_0x33be0a=_0x268dcc?.['footnoteId']??_0xe0a509();!function(_0x541507){return'string'==typeof _0x541507&&_0x541507['length']>0x0&&!/\s/['test'](_0x541507)&&!/^\d/['test'](_0x541507);}(_0x33be0a)?_0x506cb7('insert-footnote-command-executed-with-invalid-id'):(_0x46c436['change'](_0x3a9946=>{const _0x269577=_0x3a9946['createElement']('footnoteRef',{'footnoteId':_0x33be0a});_0x46c436['insertObject'](_0x269577,_0x32b096,null);}),_0x12944f['_moveSelectionToFootnoteDefinition'](_0x33be0a));}['_getPositionToInsertFootnote'](_0x1e7b89){const {model:_0x167821}=this['editor'],{schema:_0x54777f}=_0x167821,_0x5b540d=_0x1e7b89['getFirstRange']();for(const _0x465ffe of _0x5b540d['getItems']())if(_0x54777f['isBlock'](_0x465ffe)||_0x54777f['isObject'](_0x465ffe))return null;const _0x147d7e=_0x5b540d['end'];return _0x54777f['checkChild'](_0x147d7e,'footnoteRef')?_0x147d7e:null;}}class r extends _0x2a51d8{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x405086}=this;_0x405086['config']['define']('footnotes.multiBlock',!0x0),_0x405086['commands']['add']('insertFootnote',new m(_0x405086)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3beb61){const _0x3cd2c4=_0xe7607c([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]),_0x210f3e=0x47a28506,_0x5a281e=0x47a5fde6^_0x210f3e,_0x3a161f=window[_0xe7607c([0x44,0x61,0x74,0x65])][_0xe7607c([0x6e,0x6f,0x77])](),_0x3c72e2=_0x3beb61[_0xe7607c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x31e3f1=new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a3491=>{_0x3c72e2[_0xe7607c([0x6f,0x6e,0x63,0x65])](_0xe7607c([0x72,0x65,0x61,0x64,0x79]),_0x4a3491);}),_0x351600={[_0xe7607c([0x6b,0x74,0x79])]:_0xe7607c([0x45,0x43]),[_0xe7607c([0x75,0x73,0x65])]:_0xe7607c([0x73,0x69,0x67]),[_0xe7607c([0x63,0x72,0x76])]:_0xe7607c([0x50,0x2d,0x32,0x35,0x36]),[_0xe7607c([0x78])]:_0xe7607c([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]),[_0xe7607c([0x79])]:_0xe7607c([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]),[_0xe7607c([0x61,0x6c,0x67])]:_0xe7607c([0x45,0x53,0x32,0x35,0x36])},_0x4402a0=_0x3c72e2[_0xe7607c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xe7607c([0x67,0x65,0x74])](_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xba72bc(){let _0x2709dd,_0x2ddb6d=null,_0x230035=null;try{if(_0x4402a0==_0xe7607c([0x47,0x50,0x4c]))return _0xe7607c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2709dd=_0x832f9b(),!_0x2709dd)return _0xe7607c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2709dd[_0xe7607c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x230035=_0x32d182(_0x2709dd[_0xe7607c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2709dd[_0xe7607c([0x6a,0x74,0x69])])),await _0x4c33fd()?_0x2dd8ef()?_0x87b7e7()?_0xe7607c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x36db36()?(_0x2709dd[_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe7607c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2ddb6d=_0xa89568(_0xe7607c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2709dd[_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xe7607c([0x74,0x72,0x69,0x61,0x6c])&&(_0x2ddb6d=_0xa89568(_0xe7607c([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a2320()):_0xe7607c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xe7607c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xe7607c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xe7607c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x87b7e7(){const _0x1a0330=[_0xe7607c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xe7607c([0x74,0x72,0x69,0x61,0x6c])][_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2709dd[_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3a161f/0x3e8:0xe10*_0x5a281e;return _0x2709dd[_0xe7607c([0x65,0x78,0x70])]<_0x1a0330;}function _0x2dd8ef(){const _0x377887=_0x2709dd[_0xe7607c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x377887&&(!!_0x377887[_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe7607c([0x2a]))||!!_0x377887[_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe7607c([0x46,0x4f,0x4f])));}function _0x36db36(){const _0x54fc1c=_0x2709dd[_0xe7607c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54fc1c||0x0==_0x54fc1c[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4db336}=new URL(window[_0xe7607c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54fc1c[_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4db336))return!0x0;const _0x17e877=_0x4db336[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])](_0xe7607c([0x2e]));return _0x54fc1c[_0xe7607c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x433119=>_0x433119[_0xe7607c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe7607c([0x2a])))[_0xe7607c([0x6d,0x61,0x70])](_0x2341bc=>_0x2341bc[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])](_0xe7607c([0x2e])))[_0xe7607c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x18686f=>_0x18686f[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x17e877[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe7607c([0x6d,0x61,0x70])](_0x22ad99=>Array(_0x17e877[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x22ad99[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xe7607c([0x66,0x69,0x6c,0x6c])](_0x22ad99[0x0]===_0xe7607c([0x2a])?_0xe7607c([0x2a]):'')[_0xe7607c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x22ad99))[_0xe7607c([0x73,0x6f,0x6d,0x65])](_0x13eb0f=>_0x17e877[_0xe7607c([0x65,0x76,0x65,0x72,0x79])]((_0xcda5e1,_0xccf4f0)=>_0x13eb0f[_0xccf4f0]===_0xcda5e1||_0x13eb0f[_0xccf4f0]===_0xe7607c([0x2a])));}function _0x2a2320(){return _0x2ddb6d&&_0x230035?new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43ef9a,_0x1ba86b)=>{_0x2ddb6d[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x43ef9a,_0x1ba86b),_0x230035[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x113a76=>{_0x113a76!=_0xe7607c([0x56,0x61,0x6c,0x69,0x64])&&_0x43ef9a(_0x113a76);},_0x1ba86b);}):_0x2ddb6d||_0x230035||_0xe7607c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x32d182(_0x5ec3da,_0x35f970){return new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4916b1=>{if(_0x5b6189())return _0x4916b1(_0xe7607c([0x56,0x61,0x6c,0x69,0x64]));_0x547438(),_0x3c72e2[_0xe7607c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xe7607c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b0e24=!0x1;const _0xea03e4=_0xe0a509();function _0x3f462f(_0x30d9d0){return!!_0x30d9d0&&(typeof _0x30d9d0===_0xe7607c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x30d9d0===_0xe7607c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x30d9d0[_0xe7607c([0x74,0x68,0x65,0x6e])]===_0xe7607c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x30d9d0[_0xe7607c([0x63,0x61,0x74,0x63,0x68])]===_0xe7607c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x258014(_0x3c3b89){_0x33483c(_0x3c3b89)[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x436e1b=>{if(!_0x436e1b||_0x436e1b[_0xe7607c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xe7607c([0x6f,0x6b]))return _0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3f3c5c(_0xccf0f1(_0xea03e4+_0x35f970))!=_0x436e1b[_0xe7607c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xe7607c([0x56,0x61,0x6c,0x69,0x64]);})[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x4322ae=>(_0x127a92(),_0x4322ae),()=>{const _0xfa152a=_0x584941();return null==_0xfa152a?(_0x127a92(),_0xe7607c([0x56,0x61,0x6c,0x69,0x64])):_0xe7607c(_0x3a161f-_0xfa152a>(0x63ae0106^_0x210f3e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x4916b1)[_0xe7607c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4916b1(_0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1c9897=0x47946b86^_0x210f3e;function _0x127a92(){const _0x54b52f=_0xe7607c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f3c5c(_0xccf0f1(_0x5ec3da)),_0xaaaed1=_0x4e5d28(_0x3f3c5c(window[_0xe7607c([0x4d,0x61,0x74,0x68])][_0xe7607c([0x63,0x65,0x69,0x6c])](_0x3a161f/_0x1c9897)));window[_0xe7607c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe7607c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54b52f,_0xaaaed1);}function _0x584941(){const _0x3fca32=_0xe7607c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3f3c5c(_0xccf0f1(_0x5ec3da)),_0x48907c=window[_0xe7607c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xe7607c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3fca32);return _0x48907c?window[_0xe7607c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e5d28(_0x48907c),0x10)*_0x1c9897:null;}function _0x33483c(_0x3fbfd3){return new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9a6bb3,_0x43afa4)=>{_0x3fbfd3[_0xe7607c([0x74,0x68,0x65,0x6e])](_0x9a6bb3,_0x43afa4),window[_0xe7607c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x43afa4,0x47a351c6^_0x210f3e);});}}_0x3c72e2[_0xe7607c([0x6f,0x6e])](_0xe7607c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4abfec,_0x6b43dd)=>{if(_0x6b43dd[0x0]!=_0x5ec3da)return _0x4916b1(_0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x6b43dd[0x1]={..._0x6b43dd[0x1],[_0xe7607c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xea03e4};},{[_0xe7607c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe7607c([0x68,0x69,0x67,0x68])}),_0x3c72e2[_0xe7607c([0x6f,0x6e])](_0xe7607c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1d950a=>{_0x3f462f(_0x1d950a[_0xe7607c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b0e24=!0x0,_0x258014(_0x1d950a[_0xe7607c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xe7607c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xe7607c([0x6c,0x6f,0x77])}),_0x31e3f1[_0xe7607c([0x74,0x68,0x65,0x6e])](()=>{_0x4b0e24||_0x4916b1(_0xe7607c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5b6189(){return _0x3c72e2[_0xe7607c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe7607c([0x76,0x69,0x65,0x77])][_0xe7607c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xe7607c([0x61,0x75,0x74,0x6f]);}function _0x547438(){_0x3c72e2[_0xe7607c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xe7607c([0x76,0x69,0x65,0x77])][_0xe7607c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xe7607c([0x61,0x75,0x74,0x6f]);}}function _0xa89568(_0x5502d2){const _0x591efa=[new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x267b61=>setTimeout(_0x267b61,0x47abbbca^_0x210f3e)),_0x31e3f1[_0xe7607c([0x74,0x68,0x65,0x6e])](()=>new window[(_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cc208=>{let _0xb7e99a=0x0;_0x3c72e2[_0xe7607c([0x6d,0x6f,0x64,0x65,0x6c])][_0xe7607c([0x6f,0x6e])](_0xe7607c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x58de1e,_0x146c2d)=>{_0x146c2d[0x0][_0xe7607c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xb7e99a++,_0xb7e99a==(0x47a284fe^_0x210f3e)&&(_0x1cc208(),_0x58de1e[_0xe7607c([0x6f,0x66,0x66])]());});}))];return window[_0xe7607c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xe7607c([0x72,0x61,0x63,0x65])](_0x591efa)[_0xe7607c([0x74,0x68,0x65,0x6e])](()=>_0x5502d2);}async function _0x2a6010(){await _0x31e3f1,_0x3c72e2[_0xe7607c([0x6d,0x6f,0x64,0x65,0x6c])][_0xe7607c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x221a90,_0x3c72e2[_0xe7607c([0x6d,0x6f,0x64,0x65,0x6c])][_0xe7607c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x221a90,_0x3c72e2[_0xe7607c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xe7607c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x54d52b(_0x1cf7de){const _0xa1f6d7=_0x5e3ac6();_0x3c72e2[_0xa1f6d7]=_0xe7607c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1cf7de,_0x1cf7de!=_0xe7607c([0x56,0x61,0x6c,0x69,0x64])&&_0x2a6010();}function _0x5e3ac6(){const _0x29de58=window[_0xe7607c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xe7607c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xe7607c([0x6e,0x6f,0x77])]())[_0xe7607c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xe7607c([0x2e]),'');let _0x1b0133=_0xe7607c([0x75]);for(let _0x1a7b11=0x0;_0x1a7b11<_0x29de58[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a7b11+=0x2){let _0x52bee3=window[_0xe7607c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x29de58[_0xe7607c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a7b11,_0x1a7b11+0x2));_0x52bee3>=_0x3cd2c4[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x52bee3-=_0x3cd2c4[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1b0133+=_0x3cd2c4[_0x52bee3];}return _0x1b0133;}function _0x832f9b(){const _0x572bc5=_0x4402a0[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])](_0xe7607c([0x2e]));if(0x3!=_0x572bc5[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x248ee2(_0x572bc5[0x1]);function _0x248ee2(_0x345598){const _0x2f93a7=_0x151af2(_0x345598);return _0x2f93a7&&_0x48d2dd()?_0x2f93a7:null;function _0x48d2dd(){const _0x561ca2=_0x2f93a7[_0xe7607c([0x6a,0x74,0x69])],_0x150709=window[_0xe7607c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x561ca2[_0xe7607c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x561ca2[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37273b={..._0x2f93a7,[_0xe7607c([0x6a,0x74,0x69])]:_0x561ca2[_0xe7607c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x561ca2[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37273b[_0xe7607c([0x76,0x63])],_0xccf0f1(_0x37273b)==_0x150709;}}}async function _0x4c33fd(){let _0x3c57fe=!0x0;try{const _0x2e67f2=_0x4402a0[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])](_0xe7607c([0x2e])),[_0x5e79ed,_0x45db1c,_0x2966c7]=_0x2e67f2;return _0x21e735(_0x5e79ed),await _0x4961aa(_0x5e79ed,_0x45db1c,_0x2966c7),_0x3c57fe;}catch{return!0x1;}function _0x21e735(_0x14c99f){const _0x22dffd=_0x151af2(_0x14c99f);_0x22dffd&&_0x22dffd[_0xe7607c([0x61,0x6c,0x67])]==_0xe7607c([0x45,0x53,0x32,0x35,0x36])||(_0x3c57fe=!0x1);}async function _0x4961aa(_0x1ec6a0,_0x408633,_0x13b210){const _0x368ae1=window[_0xe7607c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xe7607c([0x66,0x72,0x6f,0x6d])](_0x32ecba(_0x13b210),_0x59a0e4=>_0x59a0e4[_0xe7607c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f787c=new window[(_0xe7607c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xe7607c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1ec6a0+_0xe7607c([0x2e])+_0x408633),_0x48b1d3=window[_0xe7607c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xe7607c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x48b1d3)return;const _0x37795a=await _0x48b1d3[_0xe7607c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xe7607c([0x6a,0x77,0x6b]),_0x351600,{[_0xe7607c([0x6e,0x61,0x6d,0x65])]:_0xe7607c([0x45,0x43,0x44,0x53,0x41]),[_0xe7607c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xe7607c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xe7607c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x48b1d3[_0xe7607c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xe7607c([0x6e,0x61,0x6d,0x65])]:_0xe7607c([0x45,0x43,0x44,0x53,0x41]),[_0xe7607c([0x68,0x61,0x73,0x68])]:{[_0xe7607c([0x6e,0x61,0x6d,0x65])]:_0xe7607c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x37795a,_0x368ae1,_0x2f787c)||(_0x3c57fe=!0x1);}}function _0x151af2(_0x25e82b){return _0x25e82b[_0xe7607c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xe7607c([0x65,0x79]))?JSON[_0xe7607c([0x70,0x61,0x72,0x73,0x65])](_0x32ecba(_0x25e82b)):null;}function _0x32ecba(_0x4628da){return window[_0xe7607c([0x61,0x74,0x6f,0x62])](_0x4628da[_0xe7607c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xe7607c([0x2b]))[_0xe7607c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xe7607c([0x2f])));}function _0xccf0f1(_0x2b4285){let _0x3ab516=0x1505;function _0x442a67(_0x2cb961){for(let _0x3a7a38=0x0;_0x3a7a38<_0x2cb961[_0xe7607c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3a7a38++){const _0x804487=_0x2cb961[_0xe7607c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3a7a38);_0x3ab516=(_0x3ab516<<0x5)+_0x3ab516+_0x804487,_0x3ab516&=_0x3ab516;}}function _0x3857ba(_0x949d6a){Array[_0xe7607c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x949d6a)?_0x949d6a[_0xe7607c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3857ba):_0x949d6a&&typeof _0x949d6a==_0xe7607c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xe7607c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x949d6a)[_0xe7607c([0x73,0x6f,0x72,0x74])]()[_0xe7607c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1bf649,_0x964b12])=>{_0x442a67(_0x1bf649),_0x3857ba(_0x964b12);}):_0x442a67(window[_0xe7607c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x949d6a));}return _0x3857ba(_0x2b4285),_0x3ab516>>>0x0;}function _0x3f3c5c(_0x26d619){return _0x26d619[_0xe7607c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xe7607c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xe7607c([0x30]));}function _0x4e5d28(_0x496a68){return _0x496a68[_0xe7607c([0x73,0x70,0x6c,0x69,0x74])]('')[_0xe7607c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xe7607c([0x6a,0x6f,0x69,0x6e])]('');}function _0x221a90(){}function _0xe7607c(_0x679d61){return _0x679d61['map'](_0x36e71d=>String['fromCharCode'](_0x36e71d))['join']('');}_0x54d52b(await _0xba72bc());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4b5386){const {plugins:_0xf2122e,editing:_0x41ce4,model:_0x1ffcef}=this['editor'],_0x2c75d5=_0xf2122e['get'](c)['getFootnote'](_0x4b5386);return!!_0x2c75d5&&(_0x1ffcef['change'](_0x5c5bec=>{_0x5c5bec['setSelection'](_0x5c5bec['createPositionAt'](_0x2c75d5['definition'],'end'));}),_0x41ce4['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x32e66f){const {plugins:_0x5b8e93,editing:_0x1ba40d,model:_0x315e32}=this['editor'],_0x3cb5b4=_0x5b8e93['get'](c)['getFootnote'](_0x32e66f);return!!_0x3cb5b4&&(_0x315e32['change'](_0x5b991c=>{_0x5b991c['setSelection'](_0x3cb5b4['reference'],'on');}),_0x1ba40d['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xf9f433}=this['editor']['model'],_0x549cca=this['editor']['config']['get']('footnotes.multiBlock');_0xf9f433['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xf9f433['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xf9f433['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x549cca?_0xf9f433['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xf9f433['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xf9f433['addChildCheck'](_0x43f355=>{for(const _0x367f8e of _0x43f355)if('footnoteDefinition'===_0x367f8e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2231d5}=this,{conversion:_0x4c0a7c,editing:_0x4c0a44}=_0x2231d5,{t:t}=_0x2231d5['locale'];_0x4c0a7c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2f40a2,{writer:_0x2f2e6a,consumable:_0x1d7b14})=>{const _0x2d30ce=_0x2f40a2['getChild'](0x0);if(!_0x2d30ce||!_0x2d30ce['is']('element','a'))return null;const _0xb1876a=_0x2d30ce['getAttribute']('href')||'';if(!_0xb1876a['startsWith']('#'))return null;const _0x30152c=_0xb1876a['replace'](/^#/,'');if(!_0x30152c)return null;_0x1d7b14['consume'](_0x2d30ce,{'name':!0x0,'attributes':['href']});for(const {item:_0x476336}of _0x4c0a44['view']['createRangeIn'](_0x2d30ce))_0x476336['is']('$textProxy')?_0x1d7b14['consume'](_0x476336['textNode'],{'name':!0x0}):_0x476336['is']('element')&&_0x1d7b14['consume'](_0x476336,{'name':!0x0});return _0x2f2e6a['createElement']('footnoteRef',{'footnoteId':_0x30152c});}}),_0x4c0a7c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x57de02,{writer:_0x5b174d})=>D(_0x57de02,_0x5b174d)}),_0x4c0a7c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2c3d85,{writer:_0x6040e7})=>{const _0xc1ea50=_0x2c3d85['getAttribute']('footnoteCounter');return _0x245c1f(D(_0x2c3d85,_0x6040e7),_0x6040e7,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xc1ea50)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2be388}=this,{t:t}=_0x2be388['locale'],{conversion:_0xd07d28}=_0x2be388;_0xd07d28['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xd07d28['for']('upcast')['add'](_0x40ceea=>{_0x40ceea['on']('element:ol',(_0x49d40a,_0xc644ba,_0x1c8425)=>{const _0x341ac8=_0xc644ba['viewItem'];if(!_0x341ac8['hasClass']('footnotes-list')||!_0xc644ba['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1c8425['consumable']['consume'](_0x341ac8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xde7c86,modelCursor:_0x1ad1a5}=_0x1c8425['convertChildren'](_0xc644ba['viewItem'],_0xc644ba['modelCursor']);_0xc644ba['modelRange']=_0xde7c86,_0xc644ba['modelCursor']=_0x1ad1a5;}),_0x40ceea['on']('element:hr',(_0x421481,_0x46702d,_0xf001a2)=>{const _0x5a9707=_0x46702d['viewItem'];_0x5a9707['hasClass']('footnotes-divider')&&_0x46702d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xf001a2['consumable']['consume'](_0x5a9707,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xd07d28['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x549101,{writer:_0x37f309})=>v(_0x37f309)}),_0xd07d28['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x15c580,{writer:_0x531622})=>{const _0x344099=v(_0x531622,{'data-footnotes-list-label':t('Footnotes')}),_0x13ae90=_0x245c1f(_0x344099,_0x531622,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x531622['setCustomProperty']('footnotesDefinitions',!0x0,_0x13ae90),_0x13ae90;}});}['_defineDefinitionConverters'](){const {editor:_0xdf2c11}=this,{conversion:_0x3e000c,locale:_0x149a68}=_0xdf2c11,_0x3b7c55=_0xdf2c11['config']['get']('footnotes.multiBlock');_0x3e000c['for']('upcast')['add'](_0x543a3e=>{_0x543a3e['on']('element:li',(_0x52659,_0x464892,_0x345e7e)=>{const _0x3822e8=_0x464892['viewItem'];if(!_0x3822e8['hasClass']('footnote-definition')||!_0x3822e8['getAttribute']('id'))return;const _0x4f6c1f=_0x3822e8['parent'];if(!_0x4f6c1f['is']('element','ol')||!_0x4f6c1f['hasClass']('footnotes-list'))return;if(!_0x345e7e['consumable']['test'](_0x3822e8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x52e51c=_0x345e7e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3822e8['getAttribute']('id')});if(!_0x345e7e['safeInsert'](_0x52e51c,_0x464892['modelCursor']))return;_0x345e7e['consumable']['consume'](_0x3822e8,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x797a75=Array['from'](_0x3822e8['getChildren']())['find'](_0x11b712=>_0x11b712['is']('element')&&_0x11b712['hasClass']('footnote-content'));for(const _0x126c0a of _0x3822e8['getChildren']())_0x126c0a['is']('element')&&(_0x345e7e['consumable']['consume'](_0x126c0a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x345e7e['consumable']['consume'](_0x126c0a,{'name':!0x0,'classes':'footnote-content'}));if(_0x797a75){if(_0x3b7c55)_0x345e7e['convertChildren'](_0x797a75,_0x52e51c);else{const _0x4a78c9=_0x345e7e['writer']['createElement']('footnoteInlineContent');_0x345e7e['writer']['insert'](_0x4a78c9,_0x52e51c),_0x345e7e['convertChildren'](_0x797a75,_0x4a78c9);}}_0x345e7e['updateConversionResult'](_0x52e51c,_0x464892);});}),_0x3e000c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3ea47c,{writer:_0x2e1614})=>b(_0x3ea47c,_0x2e1614,_0x149a68,{'dataPipeline':!0x0})}),_0x3e000c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x30e69d,{writer:_0x255578})=>b(_0x30e69d,_0x255578,_0x149a68)});}['_defineBogusParagraphConverters'](){const {editor:_0x487a31}=this,{conversion:_0x284f41}=_0x487a31;_0x487a31['config']['get']('footnotes.multiBlock')?(_0x284f41['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x284f41['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x487a31['model']['document'],'change:data',()=>{!function(_0x5bb25b,_0x3b9688){const _0x5bc3d9=_0x5bb25b['document']['differ'],_0x1d981d=new Set();for(const _0x40b609 of _0x5bc3d9['getChanges']()){const _0x56a4b6='attribute'==_0x40b609['type']?_0x40b609['range']['start']['parent']:_0x40b609['position']['parent'];_0x56a4b6['is']('element','footnoteDefinition')&&_0x1d981d['add'](_0x56a4b6);}for(const _0x27d77e of _0x1d981d['values']()){const _0x344cd8=Array['from'](_0x27d77e['getChildren']())['filter'](_0x44cb9f=>g(_0x44cb9f,_0x3b9688['mapper']));for(const _0x4e3570 of _0x344cd8)_0x3b9688['reconvertItem'](_0x4e3570);}}(_0x487a31['model'],_0x487a31['editing']);})):(_0x284f41['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x284f41['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3c55dd,{writer:_0x582b5d})=>{const _0x436467=_0x582b5d['createContainerElement']('span');return _0x582b5d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x436467),_0x436467;}}));}['_defineKeyboardHandlers'](){const {editor:_0x558d52}=this,{editing:_0x5321df,t:t}=_0x558d52,_0x1e28e5=_0x558d52['model']['document']['selection'];_0x558d52['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x558d52['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5321df['view']['document'],'enter',(_0x37923e,_0x2359f2)=>{const _0x252e43=function(_0x518e57){const _0x72f8c3=_0x518e57['getSelectedElement']();if(_0x72f8c3?.['is']('element','footnoteRef'))return _0x72f8c3;return null;}(_0x1e28e5);if(_0x252e43){const _0x459358=_0x252e43['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x459358),_0x2359f2['preventDefault'](),_0x37923e['stop']();}},{'context':_0x3af48b});}['_defineClickHandlers'](){const {editor:_0x31f81f}=this,{editing:_0x1d7457}=_0x31f81f;_0x31f81f['editing']['view']['addObserver'](_0x8b1fec),_0x31f81f['editing']['view']['addObserver'](_0x469245);let _0x8796a6=!0x1;this['listenTo'](_0x1d7457['view']['document'],'pointerdown',(_0x13a8b2,_0x3362b1)=>{const {target:_0x30ae85}=_0x3362b1,_0x435c1e=_0x1d7457['view']['document']['selection'];_0x8796a6=!!(_0x30ae85?.['is']('element','a')&&_0x30ae85['parent']?.['is']('element','sup')&&_0x30ae85['parent']['hasClass']('footnote'))&&_0x435c1e['getSelectedElement']()===_0x30ae85['parent'];},{'priority':'high'}),this['listenTo'](_0x1d7457['view']['document'],'click',(_0xf769e,_0x2688ec)=>{const {target:_0x292732}=_0x2688ec;if(!_0x292732?.['is']('element','a'))return;if(_0x292732['parent']?.['is']('element','sup')&&_0x292732['parent']['hasClass']('footnote')&&!_0x8796a6)return void _0x2688ec['preventDefault']();let _0x560a4f=_0x292732['getAttribute']('href');if(!_0x560a4f?.['startsWith']('#'))return;_0x560a4f=_0x560a4f['slice'](0x1);let _0xc915ad=!0x1;(_0x560a4f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x560a4f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x560a4f))&&(_0xc915ad=!0x0),_0xc915ad&&(_0x2688ec['preventDefault'](),_0xf769e['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1224c3}={}){return(_0x1cb44c,{writer:_0x1c6aeb})=>{if(!p(_0x1cb44c))return null;if(!_0x1224c3)return _0x1c6aeb['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x20553c=_0x1c6aeb['createContainerElement']('p');return _0x1c6aeb['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x20553c),_0x20553c;};}function p(_0x399221){const {parent:_0x470015}=_0x399221;if(!_0x470015?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x470015['childCount'])return!0x1;for(const _0x58b337 of _0x399221['getAttributeKeys']())if(!_0x58b337['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x58b337)return!0x1;return!0x0;}function g(_0x27f094,_0x2f93c2){if(!_0x27f094['is']('element','paragraph'))return!0x1;const _0x18af91=_0x2f93c2['toViewElement'](_0x27f094);return!!_0x18af91&&p(_0x27f094)!==_0x18af91['is']('element','span');}function J(_0x3d8fe7){return _0x3af48b(_0x3d8fe7)&&_0x3d8fe7['is']('containerElement')&&!!_0x3d8fe7['getCustomProperty']('footnotesDefinitions');}function v(_0x34d66f,_0x482199={}){const _0x32168d=_0x34d66f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2c7728=_0x34d66f['createContainerElement']('ol',{'class':'footnotes-list'},_0x34d66f['createSlot']());return _0x34d66f['createContainerElement']('div',{'class':'footnotes',..._0x482199},[_0x32168d,_0x2c7728]);}function D(_0xf8ae97,_0x412d12){const _0x239312=_0xf8ae97['getAttribute']('footnoteId'),_0x415aac=_0xf8ae97['getAttribute']('footnoteCounter'),_0x3de501=_0x412d12['createUIElement']('a',{'href':'#'+_0x239312},function(_0x6e1ac){const _0x4595e4=this['toDomElement'](_0x6e1ac);return _0x4595e4['textContent']=_0x415aac,_0x4595e4;}),_0x3034f7=_0x412d12['createContainerElement']('sup',{'id':'ref-'+_0x239312,'class':'footnote'},[_0x3de501]);return _0x3034f7['getFillerOffset']=()=>null,_0x3034f7;}function b(_0x4fe958,_0x166dcb,_0x4bb159,{dataPipeline:_0x13600e}={}){const {t:t}=_0x4bb159,_0x23821a=_0x4fe958['getAttribute']('footnoteId'),_0x342933=_0x166dcb['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x23821a},function(_0x4d5347){const _0x42026b=this['toDomElement'](_0x4d5347);return _0x42026b['innerText']='^',_0x42026b;}),_0x442286=_0x13600e?_0x166dcb['createContainerElement']('div',{'class':'footnote-content'}):_0x5c8e2a(_0x166dcb['createEditableElement']('div',{'class':'footnote-content'}),_0x166dcb,{'label':t('Footnote\x20content.')});return _0x166dcb['insert'](_0x166dcb['createPositionAt'](_0x442286,0x0),_0x166dcb['createSlot']()),_0x166dcb['createContainerElement']('li',{'class':'footnote-definition','id':_0x23821a},[_0x342933,_0x442286]);}class e extends _0x2a51d8{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2c4716];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3201d2}=this,{plugins:_0xe225a1,model:_0x2640d2}=_0x3201d2,_0x578d20=_0xe225a1['get'](_0x2c4716),_0x4052dd=_0xe225a1['get'](c);this['listenTo'](_0x578d20,'outputTransformation',(_0x452154,_0x462f5f)=>{const _0x508801=f(_0x2640d2['createRangeIn'](_0x462f5f['content']));if(!_0x508801['length'])return;const _0x332d5d=_0x4052dd['getFootnotes'](),_0x39058d=_0x508801['reduce']((_0xb5592c,_0x60f1a3)=>{const _0x578276=_0x332d5d['find'](_0xb88d6c=>_0xb88d6c['id']===_0x60f1a3);if(_0x578276){const _0x1ea8ec=_0x3201d2['data']['toView'](_0x578276['definition'],{'isClipboardPipeline':!0x0}),_0x2ae822=_0x3201d2['data']['htmlProcessor']['toData'](_0x1ea8ec);_0xb5592c[_0x578276['id']]=_0x2ae822;}return _0xb5592c;},Object['create'](null));_0x462f5f['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x39058d));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x253610}=this,{model:_0x5e727e,plugins:_0x59a0a8}=_0x253610,{view:_0x32fac9}=_0x253610['editing'],_0x3b7c15=_0x59a0a8['get'](_0x2c4716),_0x513c80=_0x59a0a8['get'](c);let _0x4e915a=null;this['listenTo'](_0x32fac9['document'],'clipboardInput',(_0xa274a4,_0x20dd1f)=>{const _0x3422ef=_0x20dd1f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4e915a=_0x3422ef?JSON['parse'](_0x3422ef):null;}),this['listenTo'](_0x3b7c15,'contentInsertion',(_0x126d8f,_0x338003)=>{const _0x3cdfde=_0x338003['sourceEditorId']===this['editor']['id'];_0x3cdfde&&'drop'===_0x338003['method']||_0x5e727e['change'](_0x103759=>{let _0x4fa70e=_0x513c80['getFootnotesDefinitionsObjectElement']();const _0x25986c=!!_0x4fa70e&&Array['from'](_0x5e727e['document']['selection']['getSelectedBlocks']())['includes'](_0x4fa70e);if((_0x4fa70e&&!_0x25986c||!_0x4fa70e&&!_0x4e915a)&&function(_0x2bcdcc,_0x234a00){const _0x299077=[];for(const {item:_0x3313bf}of _0x2bcdcc['createRangeIn'](_0x234a00))_0x3313bf['is']('element','footnotesDefinitions')&&_0x299077['push'](_0x3313bf);for(const _0x406f1b of _0x299077)_0x2bcdcc['remove'](_0x406f1b);}(_0x103759,_0x338003['content']),!_0x4e915a)return;const {selection:_0x4dad51}=_0x5e727e['document'],_0x5c9fcc=_0x4dad51['getFirstRange']()['root'];_0x4fa70e&&!_0x25986c||(_0x4fa70e=function(_0x1e4918,_0x70f9a1){for(const {item:_0x1eff21}of _0x1e4918['createRangeIn'](_0x70f9a1))if(_0x1eff21['is']('element','footnotesDefinitions'))return _0x1eff21;return null;}(_0x103759,_0x338003['content']),_0x4fa70e||=_0x513c80['_insertEmptyFootnotesDefinitionsContainer'](_0x103759,_0x5c9fcc));const _0x266d55=Array['from'](_0x4dad51['getRanges']())['flatMap'](f),_0x1c9e2a=function(_0x19b8c,_0x27c7d2,_0xe0a544){const _0x2356b8=Object['create'](null);for(const {item:_0x58828d}of _0x19b8c['createRangeIn'](_0x27c7d2))if(_0x58828d['is']('element','footnoteRef')){const _0x2aca03=_0x58828d['getAttribute']('footnoteId');if(!_0xe0a544(_0x2aca03))continue;_0x2356b8[_0x2aca03]||(_0x2356b8[_0x2aca03]=_0xe0a509()),_0x19b8c['setAttribute']('footnoteId',_0x2356b8[_0x2aca03],_0x58828d);}return _0x2356b8;}(_0x103759,_0x338003['content'],_0x1fac10=>{if(!_0x3cdfde)return!0x0;return!!_0x513c80['getFootnote'](_0x1fac10)&&!_0x266d55['includes'](_0x1fac10);});for(const [_0x291c1c,_0x50b085]of Object['entries'](_0x4e915a)){const _0x534927=_0x1c9e2a[_0x291c1c]||_0x291c1c,_0x485d57=_0x103759['createElement']('footnoteDefinition',{'footnoteId':_0x534927}),_0x28585e=_0x253610['data']['htmlProcessor']['toView'](_0x50b085),_0x7aa7f4=_0x253610['data']['toModel'](_0x28585e,_0x485d57);_0x103759['append'](_0x7aa7f4,_0x485d57),_0x103759['insert'](_0x485d57,_0x4fa70e,'end');}_0x4e915a=null;});});}}function f(_0x497d22){const _0xd95ea2=new Set();for(const {item:_0x6905c0}of _0x497d22)_0x6905c0['is']('element','footnoteRef')&&_0xd95ea2['add'](_0x6905c0['getAttribute']('footnoteId'));return Array['from'](_0xd95ea2);}class i extends _0x2a51d8{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd51cd6}=this,{componentFactory:_0x11b836}=_0xd51cd6['ui'];_0x11b836['add']('insertFootnote',x(_0xd51cd6,_0xa6576c)),_0x11b836['add']('menuBar:insertFootnote',x(_0xd51cd6,_0x3a0a17)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x18fedd=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x40fd5c;for(const _0x400458 in _0x18fedd){const _0x582b16=_0x400458,_0x3d4258=_0x18fedd[_0x582b16];if('footnotesLicenseKeyValid'==_0x3d4258||'footnotesLicenseKeyInvalid'==_0x3d4258||'footnotesLicenseKeyExpired'==_0x3d4258||'footnotesLicenseKeyDomainLimit'==_0x3d4258||'footnotesLicenseKeyNotAllowed'==_0x3d4258||'footnotesLicenseKeyEvaluationLimit'==_0x3d4258||'footnotesLicenseKeyTrialLimit'==_0x3d4258||'footnotesLicenseKeyUsageLimit'==_0x3d4258){delete _0x18fedd[_0x582b16],_0x40fd5c=_0x3d4258,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x40fd5c&&_0x18fedd['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x40fd5c&&_0x18fedd['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x40fd5c&&_0x18fedd['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x40fd5c&&_0x18fedd['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x40fd5c&&_0x18fedd['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x40fd5c&&_0x18fedd['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x40fd5c&&_0x18fedd['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x433fe3,_0x319cfc){const _0x3ec620=_0x433fe3['commands']['get']('insertFootnote');return _0x348b82=>{const {t:t}=_0x348b82,_0x2f1a21=new _0x319cfc(_0x348b82),_0xe4edf5=_0x2f1a21 instanceof _0x3a0a17;return _0x2f1a21['bind']('isEnabled')['to'](_0x3ec620,'isEnabled'),_0x2f1a21['set']({'label':t(_0xe4edf5?'Footnote':'Insert\x20footnote'),'icon':_0x2307de,'tooltip':!0x0}),_0x2f1a21['on']('execute',()=>{_0x3ec620['execute'](),_0x433fe3['editing']['view']['focus']();}),_0x2f1a21;};}class lt extends _0x2a51d8{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const nt=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x411d4d{['refresh'](){const {editor:_0x37b170}=this,_0x3e51ee=_0x37b170['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3e51ee,this['value']=_0x3e51ee?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2b560c}){const {editor:_0x330dcd}=this,_0x3997b7=_0x330dcd['plugins']['get'](c),_0x3f0261=_0x3997b7['getFootnotesDefinitionsObjectElement']();_0x3f0261&&nt['includes'](_0x2b560c)&&_0x330dcd['model']['change'](_0x114384=>{_0x114384['setAttribute']('footnotesListStyle',_0x2b560c,_0x3f0261),_0x3997b7['_updateFootnotesCounters'](_0x114384);});}}class C extends _0x411d4d{['refresh'](){const {editor:_0x31ea13}=this,_0x5eceb5=_0x31ea13['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5eceb5,this['value']=_0x5eceb5?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x5c1993}){const {editor:_0x35779a}=this,_0x207712=_0x35779a['plugins']['get'](c),_0x28fb23=_0x207712['getFootnotesDefinitionsObjectElement']();_0x28fb23&&Number['isInteger'](_0x5c1993)&&_0x35779a['model']['change'](_0x204b0e=>{_0x204b0e['setAttribute']('footnotesListStart',_0x5c1993,_0x28fb23),_0x207712['_updateFootnotesCounters'](_0x204b0e);});}}class P extends _0x2a51d8{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x382f1d}=this;_0x382f1d['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x382f1d['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x382f1d['commands']['add']('footnotesStyle',new S(_0x382f1d)),_0x382f1d['commands']['add']('footnotesStart',new C(_0x382f1d)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x469654}=this,{schema:_0x59e281}=_0x469654['model'];_0x59e281['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0xfa2414}=this,{conversion:_0x1c13fa,model:_0x183dba}=_0xfa2414,{schema:_0x376894}=_0x183dba;_0x1c13fa['for']('upcast')['add'](_0x3e0e14=>{_0x3e0e14['on']('element:ol',(_0x174b80,_0x837187,_0x1774eb)=>{const _0x51c724=_0x837187['viewItem'],_0x20cf4a=_0x837187['modelCursor']?.['parent'];_0x51c724['hasClass']('footnotes-list')&&_0x20cf4a?.['is']('element','footnotesDefinitions')&&(function(_0x193c4a,_0xab534d,_0x570eef,_0x349ef6){if(!_0x349ef6['checkAttribute'](_0xab534d,'footnotesListStart'))return;let _0x31738e=0x1;const _0x2de31e=_0x570eef['consumable']['consume'](_0x193c4a,{'attributes':'start'});if(_0x2de31e){const _0x4dfd60=Number['parseInt'](_0x193c4a['getAttribute']('start'),0xa);Number['isNaN'](_0x4dfd60)||(_0x31738e=_0x4dfd60);}!_0x2de31e&&_0xab534d['hasAttribute']('footnotesListStart')||_0x570eef['writer']['setAttribute']('footnotesListStart',_0x31738e,_0xab534d);}(_0x51c724,_0x20cf4a,_0x1774eb,_0x376894),function(_0x295918,_0x58a669,_0x539c57,_0x121e4b){if(!_0x121e4b['checkAttribute'](_0x58a669,'footnotesListStyle'))return;let _0x216fe9='decimal',_0x24c434=!0x1;if(_0x539c57['consumable']['consume'](_0x295918,{'attributes':'type'})){const _0x4474b3={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x295918['getAttribute']('type')];_0x4474b3&&(_0x216fe9=_0x4474b3),_0x24c434=!0x0;}_0x539c57['consumable']['consume'](_0x295918,{'styles':'list-style-type'})&&(_0x216fe9=_0x295918['getStyle']('list-style-type'),_0x24c434=!0x0),!_0x24c434&&_0x58a669['hasAttribute']('footnotesListStyle')||_0x539c57['writer']['setAttribute']('footnotesListStyle',_0x216fe9,_0x58a669);}(_0x51c724,_0x20cf4a,_0x1774eb,_0x376894));});}),_0x1c13fa['for']('downcast')['add'](_0x4bc1bb=>{_0x4bc1bb['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x12e8a1,_0x184c07,_0x4a5e7f)=>{if(!_0x4a5e7f['consumable']['consume'](_0x184c07['item'],_0x12e8a1['name']))return;const _0x3e98eb=M(_0x184c07['item'],_0x4a5e7f['mapper']),{attributeNewValue:_0x2a95eb}=_0x184c07;null==_0x2a95eb||0x1===_0x2a95eb?_0x4a5e7f['writer']['removeAttribute']('start',_0x3e98eb):_0x4a5e7f['writer']['setAttribute']('start',String(_0x2a95eb),_0x3e98eb);}),_0x4bc1bb['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x5663a0,_0x592626,_0x128339)=>{if(!_0x128339['consumable']['consume'](_0x592626['item'],_0x5663a0['name']))return;const _0x234045=M(_0x592626['item'],_0x128339['mapper']),{attributeNewValue:_0x1b1e92}=_0x592626;_0x1b1e92&&'decimal'!==_0x1b1e92?_0x128339['writer']['setStyle']('list-style-type',_0x1b1e92,_0x234045):_0x128339['writer']['removeStyle']('list-style-type',_0x234045);});});}['_definePostfixer'](){const {editor:_0x195a23}=this,{model:_0xdb5929}=_0x195a23,_0x2b4c56=_0x195a23['plugins']['get'](c),_0xca9602=this['_getDefaultListStyle'](),_0x539444=this['_getDefaultStartIndex']();_0xdb5929['document']['registerPostFixer'](_0x299d9d=>{const _0x1d632c=_0xdb5929['document']['differ']['getChanges']();let _0x29992d=!0x1;for(const _0x4ab56b of _0x1d632c){if('insert'!==_0x4ab56b['type']||'$text'===_0x4ab56b['name'])continue;const _0x297a6b=_0xdb5929['createRangeOn'](_0x4ab56b['position']['nodeAfter']);for(const _0x4ad53c of _0x297a6b['getItems']())_0x4ad53c['is']('element','footnotesDefinitions')&&(!_0x4ad53c['hasAttribute']('footnotesListStart')&&_0xdb5929['schema']['checkAttribute'](_0x4ad53c,'footnotesListStart')&&(_0x299d9d['setAttribute']('footnotesListStart',_0x539444,_0x4ad53c),_0x29992d=!0x0),!_0x4ad53c['hasAttribute']('footnotesListStyle')&&_0xdb5929['schema']['checkAttribute'](_0x4ad53c,'footnotesListStyle')&&(_0x299d9d['setAttribute']('footnotesListStyle',_0xca9602,_0x4ad53c),_0x29992d=!0x0));}return _0x29992d&&_0x2b4c56['_updateFootnotesCounters'](_0x299d9d),_0x29992d;});}['_defineFormatter'](){const {editor:_0xad41e6}=this;_0xad41e6['plugins']['get'](c)['setFootnoteFormatter'](_0x3b9908=>this['_formatFootnoteListValue'](_0x3b9908));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x79033f,value:_0x2da166,digits:_0x5cd42d}){const _0x5b205f=_0x79033f['getAttribute']('footnotesListStyle'),_0x41b125=_0x79033f['getAttribute']('footnotesListStart'),_0xa95363=Math['floor'](_0x2da166)+(_0x41b125??0x1)-0x1;switch(_0x5b205f){case'decimal-leading-zero':return function(_0x562384,_0x185d74){return String(_0x562384)['padStart'](_0x185d74,'0');}(_0xa95363,Math['max'](0x2,_0x5cd42d));case'lower-alpha':case'lower-latin':return N(_0xa95363,!0x1);case'upper-alpha':case'upper-latin':return N(_0xa95363,!0x0);case'lower-roman':return X(_0xa95363,!0x1);case'upper-roman':return X(_0xa95363,!0x0);default:return String(_0xa95363);}}}function M(_0x1a648f,_0x1b0f8e){const _0x417916=_0x1b0f8e['toViewElement'](_0x1a648f);return Array['from'](_0x417916['getChildren']())['find'](_0x4c220b=>_0x4c220b['is']('element','ol')&&_0x4c220b['hasClass']('footnotes-list'));}function N(_0x2f9dec,_0x365442){let _0x4c1e35='',_0x1b71bf=_0x2f9dec;for(;_0x1b71bf>0x0;){const _0x4c7a90=(_0x1b71bf-0x1)%0x1a;_0x4c1e35=String['fromCharCode'](0x61+_0x4c7a90)+_0x4c1e35,_0x1b71bf=Math['floor']((_0x1b71bf-0x1)/0x1a);}return _0x365442?_0x4c1e35['toUpperCase']():_0x4c1e35;}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(_0x5f2ad6,_0x1f2d25){let _0x32c2dd='',_0x506eae=_0x5f2ad6;for(const {value:_0x52fdb8,numeral:_0x269fc0}of V)for(;_0x506eae>=_0x52fdb8;)_0x32c2dd+=_0x269fc0,_0x506eae-=_0x52fdb8;return _0x1f2d25?_0x32c2dd:_0x32c2dd['toLowerCase']();}class H extends _0x39320c{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x2fea4c();['focusCycler'];constructor(_0x184744,{styleButtonViews:_0xd6a019,styleGridAriaLabel:_0x8dfe29}){super(_0x184744),(this['focusCycler']=new _0x1bb71a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xd6a019,_0x8dfe29),[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 _0x1d9c4c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1d9c4c['element']);_0x391a9c({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x367f65=_0x39a731=>_0x39a731['stopPropagation']();this['keystrokes']['set']('arrowright',_0x367f65),this['keystrokes']['set']('arrowleft',_0x367f65),this['keystrokes']['set']('arrowup',_0x367f65),this['keystrokes']['set']('arrowdown',_0x367f65);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5cd443,_0x87b5c1){const _0x270d92=new _0x39320c(this['locale']);return _0x270d92['children']=_0x270d92['createCollection'](),_0x270d92['children']['addMany'](_0x5cd443),_0x270d92['setTemplate']({'tag':'div','attributes':{'aria-label':_0x87b5c1,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x270d92['children']}),_0x270d92['children']['delegate']('execute')['to'](this),_0x270d92['focus']=function(){for(const _0x38699a of this['children'])if(_0x38699a instanceof _0xa6576c&&_0x38699a['isOn'])return void _0x38699a['focus']();this['children']['first']['focus']();},_0x270d92['focusTracker']=new et(),_0x270d92['keystrokes']=new ot(),_0x270d92['render'](),_0x270d92['keystrokes']['listenTo'](_0x270d92['element']),this['children']['add'](_0x270d92),_0x270d92;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0xd20416=this['_createStartIndexPropertyView'](),_0x360c50=[_0xd20416],_0x5e6e45=new tt(this['locale'],_0x360c50);return _0x5e6e45['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5e6e45['buttonView']['bind']('isEnabled')['toMany'](_0x360c50,'isEnabled',(..._0x468ee2)=>_0x468ee2['some'](_0x5b6ad8=>_0x5b6ad8)),_0x5e6e45['buttonView']['on']('change:isEnabled',(_0xa04639,_0x35cd2b,_0x157777)=>{_0x157777||(_0x5e6e45['isCollapsed']=!0x0);}),this['children']['add'](_0x5e6e45),[_0xd20416,_0x5e6e45];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x168d54=new st(this['locale'],it);return _0x168d54['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x168d54['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x168d54['fieldView']['on']('input',()=>{const _0x4c832c=_0x168d54['fieldView']['element'],_0x265528=_0x4c832c['valueAsNumber'];Number['isNaN'](_0x265528)?_0x168d54['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4c832c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x265528}):_0x168d54['errorText']=t(_0x265528<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x168d54;}}class j extends _0x2a51d8{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5f4adf,_0x27b646];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4b99d2}=this,{componentFactory:_0x15b546}=_0x4b99d2['ui'];_0x4b99d2['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x15b546['add']('footnotesStyle',function(_0xd63c28){return _0x2fafec=>{const {t:t}=_0x2fafec,_0x509475=_0xd63c28['commands']['get']('footnotesStyle'),_0x27f1bb=_0x3c9576(_0x2fafec),{buttonView:_0x4ee822}=_0x27f1bb;return _0x27f1bb['class']='ck-footnotes-styles-dropdown',_0x27f1bb['bind']('isEnabled')['to'](_0x509475,'isEnabled'),_0x4ee822['set']({'label':t('Footnotes\x20style'),'icon':_0x2307de,'tooltip':!0x0}),_0x27f1bb['once']('change:isOpen',()=>{const _0x50e698=function({editor:_0x40ed06,dropdownView:_0x2f05f1}){const {t:t}=_0x40ed06['locale'],_0x5054e2=t('Footnotes\x20definitions\x20styles'),_0x5c9dcf=function(_0x4dc232){const t=_0x4dc232['locale']['t'],_0x207008=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3399b5},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x7ab591},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x112b16},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2119d1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x5c1242},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2c5a45}];return _0x207008['map'](function(_0x8f889a){const _0x43fd5d=_0x8f889a['locale'];return({label:_0x536099,icon:_0x136fc9,tooltip:_0x2243c6,style:_0x259568})=>{const _0x122e2e=_0x8f889a['commands']['get']('footnotesStyle'),_0x3839d6=new _0xa6576c(_0x43fd5d);return _0x3839d6['set']({'label':_0x536099,'icon':_0x136fc9,'tooltip':_0x2243c6}),_0x3839d6['bind']('isOn')['to'](_0x122e2e,'value',_0xea0159=>_0xea0159===_0x259568),_0x3839d6['bind']('isEnabled')['to'](_0x122e2e,'isEnabled'),_0x3839d6['on']('execute',()=>{_0x8f889a['execute']('footnotesStyle',{'value':_0x259568}),_0x8f889a['editing']['view']['focus']();}),_0x3839d6;};}(_0x4dc232));}(_0x40ed06),_0x1565c6=new H(_0x40ed06['locale'],{'styleGridAriaLabel':_0x5054e2,'styleButtonViews':_0x5c9dcf});return _0x1565c6['delegate']('execute')['to'](_0x2f05f1),_0x1565c6['on']('footnotesListStart',(_0x5e6d2f,_0x2ae9e7)=>{_0x40ed06['execute']('footnotesStart',{'value':_0x2ae9e7['startIndex']});}),_0x1565c6;}({'editor':_0xd63c28,'dropdownView':_0x27f1bb});_0x27f1bb['panelView']['children']['add'](_0x50e698);}),_0x27f1bb;};}(_0x4b99d2));}['afterInit'](){const {editor:_0x2227f5}=this,{t:t}=_0x2227f5['locale'],_0x31db6d=_0x2227f5['plugins']['get'](_0x27b646),{defaultPositions:_0x2b8517}=_0x204d6f;_0x31db6d['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x2227f5['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x55bcfb=>{let _0x4f747f=_0x55bcfb['getFirstPosition']()?.['parent'];return _0x4f747f?.['is']('$text')&&(_0x4f747f=_0x4f747f['parent']),_0x4f747f?.['is']('element')?_0x4f747f['findAncestor'](J):null;},'positions':[_0x2b8517['southArrowNorth'],_0x2b8517['southArrowNorthMiddleWest'],_0x2b8517['southArrowNorthMiddleEast'],_0x2b8517['southArrowNorthWest'],_0x2b8517['southArrowNorthEast'],_0x2b8517['northArrowSouth'],_0x2b8517['northArrowSouthMiddleWest'],_0x2b8517['northArrowSouthMiddleEast'],_0x2b8517['northArrowSouthWest'],_0x2b8517['northArrowSouthEast'],_0x2b8517['viewportStickyNorth']]});}}class ft extends _0x2a51d8{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,c 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-20251112.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-20251112.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251112.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251112.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251112.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251112.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251112.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251112.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251112.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 _0x353f22}from'ckeditor5/src/core.js';import{isWidget as _0x1a2a25,toWidget as _0x1c5f0d,toWidgetEditable as _0x3ea1dd}from'ckeditor5/src/widget.js';import{uid as _0x5805f3}from'ckeditor5/src/utils.js';import{PointerObserver as _0x153485,ClickObserver as _0x39cdd1}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xbd0b4}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x47d6d7}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x353f22{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xbd0b4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x27741d}=this;_0x27741d['config']['define']('footnotes.multiBlock',!0x0),_0x27741d['commands']['add']('insertFootnote',new _0x47d6d7(_0x27741d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3c1b83){const _0x27ad74=_0x1dd1e6([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]),_0x4d2842=0x47a28506,_0x533764=0x47a5fdce^_0x4d2842,_0x3e80be=window[_0x1dd1e6([0x44,0x61,0x74,0x65])][_0x1dd1e6([0x6e,0x6f,0x77])](),_0x18df21=_0x3c1b83[_0x1dd1e6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f16ec=new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cef8c=>{_0x18df21[_0x1dd1e6([0x6f,0x6e,0x63,0x65])](_0x1dd1e6([0x72,0x65,0x61,0x64,0x79]),_0x1cef8c);}),_0x32dc59={[_0x1dd1e6([0x6b,0x74,0x79])]:_0x1dd1e6([0x45,0x43]),[_0x1dd1e6([0x75,0x73,0x65])]:_0x1dd1e6([0x73,0x69,0x67]),[_0x1dd1e6([0x63,0x72,0x76])]:_0x1dd1e6([0x50,0x2d,0x32,0x35,0x36]),[_0x1dd1e6([0x78])]:_0x1dd1e6([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]),[_0x1dd1e6([0x79])]:_0x1dd1e6([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]),[_0x1dd1e6([0x61,0x6c,0x67])]:_0x1dd1e6([0x45,0x53,0x32,0x35,0x36])},_0x577092=_0x18df21[_0x1dd1e6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1dd1e6([0x67,0x65,0x74])](_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x36ce95(){let _0x4f0e11,_0x5e920c=null,_0x2d56be=null;try{if(_0x577092==_0x1dd1e6([0x47,0x50,0x4c]))return _0x1dd1e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4f0e11=_0x22cb0a(),!_0x4f0e11)return _0x1dd1e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4f0e11[_0x1dd1e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d56be=_0x2dc154(_0x4f0e11[_0x1dd1e6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4f0e11[_0x1dd1e6([0x6a,0x74,0x69])])),await _0x1b18b9()?_0x184893()?_0x65b34()?_0x1dd1e6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x3151b5()?(_0x4f0e11[_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1dd1e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5e920c=_0x3553da(_0x1dd1e6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4f0e11[_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1dd1e6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5e920c=_0x3553da(_0x1dd1e6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5d5f2e()):_0x1dd1e6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1dd1e6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1dd1e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1dd1e6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x65b34(){const _0x1031bd=[_0x1dd1e6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1dd1e6([0x74,0x72,0x69,0x61,0x6c])][_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4f0e11[_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3e80be/0x3e8:0xe10*_0x533764;return _0x4f0e11[_0x1dd1e6([0x65,0x78,0x70])]<_0x1031bd;}function _0x184893(){const _0x411d8f=_0x4f0e11[_0x1dd1e6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x411d8f&&(!!_0x411d8f[_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd1e6([0x2a]))||!!_0x411d8f[_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd1e6([0x46,0x4f,0x4f])));}function _0x3151b5(){const _0x4f60b1=_0x4f0e11[_0x1dd1e6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4f60b1||0x0==_0x4f60b1[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x13420e}=new URL(window[_0x1dd1e6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4f60b1[_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x13420e))return!0x0;const _0xb4daaf=_0x13420e[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])](_0x1dd1e6([0x2e]));return _0x4f60b1[_0x1dd1e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5897c3=>_0x5897c3[_0x1dd1e6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1dd1e6([0x2a])))[_0x1dd1e6([0x6d,0x61,0x70])](_0x35dc11=>_0x35dc11[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])](_0x1dd1e6([0x2e])))[_0x1dd1e6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x493c6f=>_0x493c6f[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xb4daaf[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1dd1e6([0x6d,0x61,0x70])](_0x57e924=>Array(_0xb4daaf[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x57e924[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1dd1e6([0x66,0x69,0x6c,0x6c])](_0x57e924[0x0]===_0x1dd1e6([0x2a])?_0x1dd1e6([0x2a]):'')[_0x1dd1e6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x57e924))[_0x1dd1e6([0x73,0x6f,0x6d,0x65])](_0x33a9f8=>_0xb4daaf[_0x1dd1e6([0x65,0x76,0x65,0x72,0x79])]((_0x53e2b0,_0x29eb16)=>_0x33a9f8[_0x29eb16]===_0x53e2b0||_0x33a9f8[_0x29eb16]===_0x1dd1e6([0x2a])));}function _0x5d5f2e(){return _0x5e920c&&_0x2d56be?new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1acc11,_0x462d47)=>{_0x5e920c[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x1acc11,_0x462d47),_0x2d56be[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x17ac1f=>{_0x17ac1f!=_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64])&&_0x1acc11(_0x17ac1f);},_0x462d47);}):_0x5e920c||_0x2d56be||_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2dc154(_0x5364ac,_0x27a6ca){return new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x82d62f=>{if(_0x44f82c())return _0x82d62f(_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64]));_0x431e0a(),_0x18df21[_0x1dd1e6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1dd1e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2a174e=!0x1;const _0x60c260=_0x5805f3();function _0x347ed9(_0x438dab){return!!_0x438dab&&(typeof _0x438dab===_0x1dd1e6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x438dab===_0x1dd1e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x438dab[_0x1dd1e6([0x74,0x68,0x65,0x6e])]===_0x1dd1e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x438dab[_0x1dd1e6([0x63,0x61,0x74,0x63,0x68])]===_0x1dd1e6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x13e6aa(_0x190c83){_0x5be55c(_0x190c83)[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x40fe58=>{if(!_0x40fe58||_0x40fe58[_0x1dd1e6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1dd1e6([0x6f,0x6b]))return _0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4e93df(_0x35473(_0x60c260+_0x27a6ca))!=_0x40fe58[_0x1dd1e6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64]);})[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x1070b0=>(_0x2327e2(),_0x1070b0),()=>{const _0x3562a1=_0x31ceed();return null==_0x3562a1?(_0x2327e2(),_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64])):_0x1dd1e6(_0x3e80be-_0x3562a1>(0x63ae0106^_0x4d2842)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x82d62f)[_0x1dd1e6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x82d62f(_0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x1cf5ee=0x47946b86^_0x4d2842;function _0x2327e2(){const _0x34c685=_0x1dd1e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e93df(_0x35473(_0x5364ac)),_0x1f62cb=_0x2a73a2(_0x4e93df(window[_0x1dd1e6([0x4d,0x61,0x74,0x68])][_0x1dd1e6([0x63,0x65,0x69,0x6c])](_0x3e80be/_0x1cf5ee)));window[_0x1dd1e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1dd1e6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x34c685,_0x1f62cb);}function _0x31ceed(){const _0x4ad2c1=_0x1dd1e6([0x6c,0x6c,0x63,0x74,0x2d])+_0x4e93df(_0x35473(_0x5364ac)),_0x18d77d=window[_0x1dd1e6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1dd1e6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4ad2c1);return _0x18d77d?window[_0x1dd1e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2a73a2(_0x18d77d),0x10)*_0x1cf5ee:null;}function _0x5be55c(_0x36ae4f){return new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x45d8b2,_0x363b93)=>{_0x36ae4f[_0x1dd1e6([0x74,0x68,0x65,0x6e])](_0x45d8b2,_0x363b93),window[_0x1dd1e6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x363b93,0x47a351c6^_0x4d2842);});}}_0x18df21[_0x1dd1e6([0x6f,0x6e])](_0x1dd1e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x501904,_0x2af29a)=>{if(_0x2af29a[0x0]!=_0x5364ac)return _0x82d62f(_0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2af29a[0x1]={..._0x2af29a[0x1],[_0x1dd1e6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x60c260};},{[_0x1dd1e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1dd1e6([0x68,0x69,0x67,0x68])}),_0x18df21[_0x1dd1e6([0x6f,0x6e])](_0x1dd1e6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xeb7808=>{_0x347ed9(_0xeb7808[_0x1dd1e6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2a174e=!0x0,_0x13e6aa(_0xeb7808[_0x1dd1e6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1dd1e6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1dd1e6([0x6c,0x6f,0x77])}),_0x4f16ec[_0x1dd1e6([0x74,0x68,0x65,0x6e])](()=>{_0x2a174e||_0x82d62f(_0x1dd1e6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x44f82c(){return _0x18df21[_0x1dd1e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dd1e6([0x76,0x69,0x65,0x77])][_0x1dd1e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1dd1e6([0x61,0x75,0x74,0x6f]);}function _0x431e0a(){_0x18df21[_0x1dd1e6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1dd1e6([0x76,0x69,0x65,0x77])][_0x1dd1e6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1dd1e6([0x61,0x75,0x74,0x6f]);}}function _0x3553da(_0x4ed309){const _0xe00c6e=[new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1edc7b=>setTimeout(_0x1edc7b,0x47abbbca^_0x4d2842)),_0x4f16ec[_0x1dd1e6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x15ec33=>{let _0x42f654=0x0;_0x18df21[_0x1dd1e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dd1e6([0x6f,0x6e])](_0x1dd1e6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x717306,_0x4b18e2)=>{_0x4b18e2[0x0][_0x1dd1e6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x42f654++,_0x42f654==(0x47a284fe^_0x4d2842)&&(_0x15ec33(),_0x717306[_0x1dd1e6([0x6f,0x66,0x66])]());});}))];return window[_0x1dd1e6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1dd1e6([0x72,0x61,0x63,0x65])](_0xe00c6e)[_0x1dd1e6([0x74,0x68,0x65,0x6e])](()=>_0x4ed309);}async function _0x3dbb39(){await _0x4f16ec,_0x18df21[_0x1dd1e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dd1e6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc5f2,_0x18df21[_0x1dd1e6([0x6d,0x6f,0x64,0x65,0x6c])][_0x1dd1e6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3cc5f2,_0x18df21[_0x1dd1e6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1dd1e6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a67d8(_0x1c4413){const _0x2fba15=_0x2f4ade();_0x18df21[_0x2fba15]=_0x1dd1e6([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1c4413,_0x1c4413!=_0x1dd1e6([0x56,0x61,0x6c,0x69,0x64])&&_0x3dbb39();}function _0x2f4ade(){const _0x40b418=window[_0x1dd1e6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1dd1e6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1dd1e6([0x6e,0x6f,0x77])]())[_0x1dd1e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1dd1e6([0x2e]),'');let _0x30a2f6=_0x1dd1e6([0x75]);for(let _0x3807df=0x0;_0x3807df<_0x40b418[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3807df+=0x2){let _0x4c2b47=window[_0x1dd1e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x40b418[_0x1dd1e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3807df,_0x3807df+0x2));_0x4c2b47>=_0x27ad74[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4c2b47-=_0x27ad74[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x30a2f6+=_0x27ad74[_0x4c2b47];}return _0x30a2f6;}function _0x22cb0a(){const _0x4aad88=_0x577092[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])](_0x1dd1e6([0x2e]));if(0x3!=_0x4aad88[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x26482b(_0x4aad88[0x1]);function _0x26482b(_0x391063){const _0x3c41a2=_0x4b0773(_0x391063);return _0x3c41a2&&_0x2c4992()?_0x3c41a2:null;function _0x2c4992(){const _0x1ea7f9=_0x3c41a2[_0x1dd1e6([0x6a,0x74,0x69])],_0x30c76f=window[_0x1dd1e6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ea7f9[_0x1dd1e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1ea7f9[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3b7863={..._0x3c41a2,[_0x1dd1e6([0x6a,0x74,0x69])]:_0x1ea7f9[_0x1dd1e6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1ea7f9[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3b7863[_0x1dd1e6([0x76,0x63])],_0x35473(_0x3b7863)==_0x30c76f;}}}async function _0x1b18b9(){let _0x291cca=!0x0;try{const _0x3a4664=_0x577092[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])](_0x1dd1e6([0x2e])),[_0x3f49a5,_0x21328a,_0x4ff958]=_0x3a4664;return _0x3bc46d(_0x3f49a5),await _0x5d75ee(_0x3f49a5,_0x21328a,_0x4ff958),_0x291cca;}catch{return!0x1;}function _0x3bc46d(_0x48d0dd){const _0x3eb1cb=_0x4b0773(_0x48d0dd);_0x3eb1cb&&_0x3eb1cb[_0x1dd1e6([0x61,0x6c,0x67])]==_0x1dd1e6([0x45,0x53,0x32,0x35,0x36])||(_0x291cca=!0x1);}async function _0x5d75ee(_0x5175d3,_0xed15a,_0x8ee09c){const _0x4f8432=window[_0x1dd1e6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1dd1e6([0x66,0x72,0x6f,0x6d])](_0x746e6c(_0x8ee09c),_0x59be13=>_0x59be13[_0x1dd1e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x13abf3=new window[(_0x1dd1e6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1dd1e6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5175d3+_0x1dd1e6([0x2e])+_0xed15a),_0x12a599=window[_0x1dd1e6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1dd1e6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x12a599)return;const _0x25a0bd=await _0x12a599[_0x1dd1e6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1dd1e6([0x6a,0x77,0x6b]),_0x32dc59,{[_0x1dd1e6([0x6e,0x61,0x6d,0x65])]:_0x1dd1e6([0x45,0x43,0x44,0x53,0x41]),[_0x1dd1e6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1dd1e6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1dd1e6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x12a599[_0x1dd1e6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1dd1e6([0x6e,0x61,0x6d,0x65])]:_0x1dd1e6([0x45,0x43,0x44,0x53,0x41]),[_0x1dd1e6([0x68,0x61,0x73,0x68])]:{[_0x1dd1e6([0x6e,0x61,0x6d,0x65])]:_0x1dd1e6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x25a0bd,_0x4f8432,_0x13abf3)||(_0x291cca=!0x1);}}function _0x4b0773(_0x4ea736){return _0x4ea736[_0x1dd1e6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1dd1e6([0x65,0x79]))?JSON[_0x1dd1e6([0x70,0x61,0x72,0x73,0x65])](_0x746e6c(_0x4ea736)):null;}function _0x746e6c(_0x5c9a2e){return window[_0x1dd1e6([0x61,0x74,0x6f,0x62])](_0x5c9a2e[_0x1dd1e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1dd1e6([0x2b]))[_0x1dd1e6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1dd1e6([0x2f])));}function _0x35473(_0x2eeb72){let _0x1d1759=0x1505;function _0x2efe75(_0x58133e){for(let _0x2e0d34=0x0;_0x2e0d34<_0x58133e[_0x1dd1e6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2e0d34++){const _0x5e4e14=_0x58133e[_0x1dd1e6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2e0d34);_0x1d1759=(_0x1d1759<<0x5)+_0x1d1759+_0x5e4e14,_0x1d1759&=_0x1d1759;}}function _0x259f01(_0x5beb33){Array[_0x1dd1e6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5beb33)?_0x5beb33[_0x1dd1e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x259f01):_0x5beb33&&typeof _0x5beb33==_0x1dd1e6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1dd1e6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5beb33)[_0x1dd1e6([0x73,0x6f,0x72,0x74])]()[_0x1dd1e6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xed6e0c,_0x4f5368])=>{_0x2efe75(_0xed6e0c),_0x259f01(_0x4f5368);}):_0x2efe75(window[_0x1dd1e6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5beb33));}return _0x259f01(_0x2eeb72),_0x1d1759>>>0x0;}function _0x4e93df(_0x54a4da){return _0x54a4da[_0x1dd1e6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1dd1e6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1dd1e6([0x30]));}function _0x2a73a2(_0x1900b4){return _0x1900b4[_0x1dd1e6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1dd1e6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1dd1e6([0x6a,0x6f,0x69,0x6e])]('');}function _0x3cc5f2(){}function _0x1dd1e6(_0x56d563){return _0x56d563['map'](_0x53dbba=>String['fromCharCode'](_0x53dbba))['join']('');}_0x5a67d8(await _0x36ce95());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2db98b){const {plugins:_0x463576,editing:_0x19be06,model:_0x33107f}=this['editor'],_0x10e1f8=_0x463576['get'](_0xbd0b4)['getFootnote'](_0x2db98b);return!!_0x10e1f8&&(_0x33107f['change'](_0x3d4bce=>{_0x3d4bce['setSelection'](_0x3d4bce['createPositionAt'](_0x10e1f8['definition'],'end'));}),_0x19be06['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2843f9){const {plugins:_0x2f96f4,editing:_0x5b4bf6,model:_0x4e4106}=this['editor'],_0xabbe79=_0x2f96f4['get'](_0xbd0b4)['getFootnote'](_0x2843f9);return!!_0xabbe79&&(_0x4e4106['change'](_0x3278d5=>{_0x3278d5['setSelection'](_0xabbe79['reference'],'on');}),_0x5b4bf6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x23d1b4}=this['editor']['model'],_0x2a1196=this['editor']['config']['get']('footnotes.multiBlock');_0x23d1b4['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x23d1b4['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x23d1b4['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2a1196?_0x23d1b4['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x23d1b4['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x23d1b4['addChildCheck'](_0x11e552=>{for(const _0x169c3a of _0x11e552)if('footnoteDefinition'===_0x169c3a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xe0f82a}=this,{conversion:_0x21491c,editing:_0x38d88b}=_0xe0f82a,{t:t}=_0xe0f82a['locale'];_0x21491c['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5d2ab4,{writer:_0x108218,consumable:_0x429d45})=>{const _0x24ecc4=_0x5d2ab4['getChild'](0x0);if(!_0x24ecc4||!_0x24ecc4['is']('element','a'))return null;const _0x12368a=_0x24ecc4['getAttribute']('href')||'';if(!_0x12368a['startsWith']('#'))return null;const _0x2086c6=_0x12368a['replace'](/^#/,'');if(!_0x2086c6)return null;_0x429d45['consume'](_0x24ecc4,{'name':!0x0,'attributes':['href']});for(const {item:_0x5e4724}of _0x38d88b['view']['createRangeIn'](_0x24ecc4))_0x5e4724['is']('$textProxy')?_0x429d45['consume'](_0x5e4724['textNode'],{'name':!0x0}):_0x5e4724['is']('element')&&_0x429d45['consume'](_0x5e4724,{'name':!0x0});return _0x108218['createElement']('footnoteRef',{'footnoteId':_0x2086c6});}}),_0x21491c['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xa2cab5,{writer:_0x2cf765})=>D(_0xa2cab5,_0x2cf765)}),_0x21491c['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x18d399,{writer:_0x2c4bbf})=>{const _0x26884d=_0x18d399['getAttribute']('footnoteCounter');return _0x1c5f0d(D(_0x18d399,_0x2c4bbf),_0x2c4bbf,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x26884d)});}});}['_defineDefinitionsConverters'](){const {editor:_0x53ea8d}=this,{t:t}=_0x53ea8d['locale'],{conversion:_0x3cdaa9}=_0x53ea8d;_0x3cdaa9['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3cdaa9['for']('upcast')['add'](_0xd9c4e7=>{_0xd9c4e7['on']('element:ol',(_0x1e251c,_0x31deb6,_0x4cff55)=>{const _0x55929a=_0x31deb6['viewItem'];if(!_0x55929a['hasClass']('footnotes-list')||!_0x31deb6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4cff55['consumable']['consume'](_0x55929a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2c1377,modelCursor:_0xd38bd9}=_0x4cff55['convertChildren'](_0x31deb6['viewItem'],_0x31deb6['modelCursor']);_0x31deb6['modelRange']=_0x2c1377,_0x31deb6['modelCursor']=_0xd38bd9;}),_0xd9c4e7['on']('element:hr',(_0xb42a71,_0x26a418,_0x55bbf7)=>{const _0x42b968=_0x26a418['viewItem'];_0x42b968['hasClass']('footnotes-divider')&&_0x26a418['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x55bbf7['consumable']['consume'](_0x42b968,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3cdaa9['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2d48f9,{writer:_0x35a697})=>v(_0x35a697)}),_0x3cdaa9['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x57307c,{writer:_0x1f81bb})=>{const _0x390e0d=v(_0x1f81bb,{'data-footnotes-list-label':t('Footnotes')}),_0x56113b=_0x1c5f0d(_0x390e0d,_0x1f81bb,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1f81bb['setCustomProperty']('footnotesDefinitions',!0x0,_0x56113b),_0x56113b;}});}['_defineDefinitionConverters'](){const {editor:_0x26a7b2}=this,{conversion:_0x150317,locale:_0x2a61d6}=_0x26a7b2,_0x33f9a8=_0x26a7b2['config']['get']('footnotes.multiBlock');_0x150317['for']('upcast')['add'](_0x20fb60=>{_0x20fb60['on']('element:li',(_0x5a7ff0,_0x55ea2a,_0x58c7a0)=>{const _0x5a61ff=_0x55ea2a['viewItem'];if(!_0x5a61ff['hasClass']('footnote-definition')||!_0x5a61ff['getAttribute']('id'))return;const _0x36758b=_0x5a61ff['parent'];if(!_0x36758b['is']('element','ol')||!_0x36758b['hasClass']('footnotes-list'))return;if(!_0x58c7a0['consumable']['test'](_0x5a61ff,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1442ab=_0x58c7a0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5a61ff['getAttribute']('id')});if(!_0x58c7a0['safeInsert'](_0x1442ab,_0x55ea2a['modelCursor']))return;_0x58c7a0['consumable']['consume'](_0x5a61ff,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x326723=Array['from'](_0x5a61ff['getChildren']())['find'](_0x1a3faf=>_0x1a3faf['is']('element')&&_0x1a3faf['hasClass']('footnote-content'));for(const _0x2fff79 of _0x5a61ff['getChildren']())_0x2fff79['is']('element')&&(_0x58c7a0['consumable']['consume'](_0x2fff79,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x58c7a0['consumable']['consume'](_0x2fff79,{'name':!0x0,'classes':'footnote-content'}));if(_0x326723){if(_0x33f9a8)_0x58c7a0['convertChildren'](_0x326723,_0x1442ab);else{const _0x1fd1a6=_0x58c7a0['writer']['createElement']('footnoteInlineContent');_0x58c7a0['writer']['insert'](_0x1fd1a6,_0x1442ab),_0x58c7a0['convertChildren'](_0x326723,_0x1fd1a6);}}_0x58c7a0['updateConversionResult'](_0x1442ab,_0x55ea2a);});}),_0x150317['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5d974b,{writer:_0x582819})=>b(_0x5d974b,_0x582819,_0x2a61d6,{'dataPipeline':!0x0})}),_0x150317['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x50f505,{writer:_0x43320f})=>b(_0x50f505,_0x43320f,_0x2a61d6)});}['_defineBogusParagraphConverters'](){const {editor:_0x59be45}=this,{conversion:_0x2a1210}=_0x59be45;_0x59be45['config']['get']('footnotes.multiBlock')?(_0x2a1210['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x2a1210['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x59be45['model']['document'],'change:data',()=>{!function(_0x38c58b,_0x2a1a06){const _0x292792=_0x38c58b['document']['differ'],_0x570bc7=new Set();for(const _0x128da7 of _0x292792['getChanges']()){const _0x2b950d='attribute'==_0x128da7['type']?_0x128da7['range']['start']['parent']:_0x128da7['position']['parent'];_0x2b950d['is']('element','footnoteDefinition')&&_0x570bc7['add'](_0x2b950d);}for(const _0x312f8d of _0x570bc7['values']()){const _0x34134a=Array['from'](_0x312f8d['getChildren']())['filter'](_0x4420c9=>g(_0x4420c9,_0x2a1a06['mapper']));for(const _0x4ae3bd of _0x34134a)_0x2a1a06['reconvertItem'](_0x4ae3bd);}}(_0x59be45['model'],_0x59be45['editing']);})):(_0x2a1210['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x2a1210['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x46a1c4,{writer:_0x39e417})=>{const _0x54ce41=_0x39e417['createContainerElement']('span');return _0x39e417['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x54ce41),_0x54ce41;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1999fe}=this,{editing:_0xee4c71,t:t}=_0x1999fe,_0x55f81f=_0x1999fe['model']['document']['selection'];_0x1999fe['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1999fe['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xee4c71['view']['document'],'enter',(_0x25419c,_0x487873)=>{const _0x50ed2c=function(_0x2f5e20){const _0x57ea1e=_0x2f5e20['getSelectedElement']();if(_0x57ea1e?.['is']('element','footnoteRef'))return _0x57ea1e;return null;}(_0x55f81f);if(_0x50ed2c){const _0x107cf7=_0x50ed2c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x107cf7),_0x487873['preventDefault'](),_0x25419c['stop']();}},{'context':_0x1a2a25});}['_defineClickHandlers'](){const {editor:_0x5ae002}=this,{editing:_0x58ab25}=_0x5ae002;_0x5ae002['editing']['view']['addObserver'](_0x153485),_0x5ae002['editing']['view']['addObserver'](_0x39cdd1);let _0x58fd64=!0x1;this['listenTo'](_0x58ab25['view']['document'],'pointerdown',(_0xd958c1,_0x10afd8)=>{const {target:_0x123592}=_0x10afd8,_0x4024b9=_0x58ab25['view']['document']['selection'];_0x58fd64=!!(_0x123592?.['is']('element','a')&&_0x123592['parent']?.['is']('element','sup')&&_0x123592['parent']['hasClass']('footnote'))&&_0x4024b9['getSelectedElement']()===_0x123592['parent'];},{'priority':'high'}),this['listenTo'](_0x58ab25['view']['document'],'click',(_0x51269e,_0x16ecc0)=>{const {target:_0x59d21e}=_0x16ecc0;if(!_0x59d21e?.['is']('element','a'))return;if(_0x59d21e['parent']?.['is']('element','sup')&&_0x59d21e['parent']['hasClass']('footnote')&&!_0x58fd64)return void _0x16ecc0['preventDefault']();let _0x2acae2=_0x59d21e['getAttribute']('href');if(!_0x2acae2?.['startsWith']('#'))return;_0x2acae2=_0x2acae2['slice'](0x1);let _0x190471=!0x1;(_0x2acae2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2acae2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2acae2))&&(_0x190471=!0x0),_0x190471&&(_0x16ecc0['preventDefault'](),_0x51269e['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x515b21}={}){return(_0xa7e0f5,{writer:_0x7ac624})=>{if(!p(_0xa7e0f5))return null;if(!_0x515b21)return _0x7ac624['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x19103b=_0x7ac624['createContainerElement']('p');return _0x7ac624['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x19103b),_0x19103b;};}function p(_0x4a5853){const {parent:_0x17fce6}=_0x4a5853;if(!_0x17fce6?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x17fce6['childCount'])return!0x1;for(const _0x41c927 of _0x4a5853['getAttributeKeys']())if(!_0x41c927['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x41c927)return!0x1;return!0x0;}function g(_0x554f14,_0x1e623d){if(!_0x554f14['is']('element','paragraph'))return!0x1;const _0xe7a429=_0x1e623d['toViewElement'](_0x554f14);return!!_0xe7a429&&p(_0x554f14)!==_0xe7a429['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2c1bd8){return _0x1a2a25(_0x2c1bd8)&&_0x2c1bd8['is']('containerElement')&&!!_0x2c1bd8['getCustomProperty']('footnotesDefinitions');}function v(_0x2e0266,_0x4efa06={}){const _0x5420ea=_0x2e0266['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x5b4bd8=_0x2e0266['createContainerElement']('ol',{'class':'footnotes-list'},_0x2e0266['createSlot']());return _0x2e0266['createContainerElement']('div',{'class':'footnotes',..._0x4efa06},[_0x5420ea,_0x5b4bd8]);}function D(_0x1bad06,_0x496ad9){const _0x206478=_0x1bad06['getAttribute']('footnoteId'),_0xe32b4e=_0x1bad06['getAttribute']('footnoteCounter'),_0x2e0ce8=_0x496ad9['createUIElement']('a',{'href':'#'+_0x206478},function(_0x4ce1e4){const _0x394566=this['toDomElement'](_0x4ce1e4);return _0x394566['textContent']=_0xe32b4e,_0x394566;}),_0x51722f=_0x496ad9['createContainerElement']('sup',{'id':'ref-'+_0x206478,'class':'footnote'},[_0x2e0ce8]);return _0x51722f['getFillerOffset']=()=>null,_0x51722f;}function b(_0x4b270b,_0xee63b0,_0xe41da1,{dataPipeline:_0x2ef7c0}={}){const {t:t}=_0xe41da1,_0x262219=_0x4b270b['getAttribute']('footnoteId'),_0x2047ec=_0xee63b0['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x262219},function(_0x28b448){const _0x5b4482=this['toDomElement'](_0x28b448);return _0x5b4482['innerText']='^',_0x5b4482;}),_0x176af5=_0x2ef7c0?_0xee63b0['createContainerElement']('div',{'class':'footnote-content'}):_0x3ea1dd(_0xee63b0['createEditableElement']('div',{'class':'footnote-content'}),_0xee63b0,{'label':t('Footnote\x20content.')});return _0xee63b0['insert'](_0xee63b0['createPositionAt'](_0x176af5,0x0),_0xee63b0['createSlot']()),_0xee63b0['createContainerElement']('li',{'class':'footnote-definition','id':_0x262219},[_0x2047ec,_0x176af5]);}
|
|
23
|
+
import{Plugin as _0x4e1c2c}from'ckeditor5/src/core.js';import{isWidget as _0x4dc540,toWidget as _0x4c0ea2,toWidgetEditable as _0x2933e}from'ckeditor5/src/widget.js';import{uid as _0x43869c}from'ckeditor5/src/utils.js';import{PointerObserver as _0x10af40,ClickObserver as _0x3432d7}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x50bbaf}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x45277a}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4e1c2c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x50bbaf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x164244}=this;_0x164244['config']['define']('footnotes.multiBlock',!0x0),_0x164244['commands']['add']('insertFootnote',new _0x45277a(_0x164244)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x46d676){const _0x19c76b=_0x1c298f([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]),_0x2eaf5f=0x47a28506,_0x405dc1=0x47a5fde6^_0x2eaf5f,_0x1d0643=window[_0x1c298f([0x44,0x61,0x74,0x65])][_0x1c298f([0x6e,0x6f,0x77])](),_0x104e29=_0x46d676[_0x1c298f([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1848d6=new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50044d=>{_0x104e29[_0x1c298f([0x6f,0x6e,0x63,0x65])](_0x1c298f([0x72,0x65,0x61,0x64,0x79]),_0x50044d);}),_0x50ffb2={[_0x1c298f([0x6b,0x74,0x79])]:_0x1c298f([0x45,0x43]),[_0x1c298f([0x75,0x73,0x65])]:_0x1c298f([0x73,0x69,0x67]),[_0x1c298f([0x63,0x72,0x76])]:_0x1c298f([0x50,0x2d,0x32,0x35,0x36]),[_0x1c298f([0x78])]:_0x1c298f([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]),[_0x1c298f([0x79])]:_0x1c298f([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]),[_0x1c298f([0x61,0x6c,0x67])]:_0x1c298f([0x45,0x53,0x32,0x35,0x36])},_0x55eb44=_0x104e29[_0x1c298f([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1c298f([0x67,0x65,0x74])](_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3bf60e(){let _0x2aa3f2,_0x408984=null,_0x5e7676=null;try{if(_0x55eb44==_0x1c298f([0x47,0x50,0x4c]))return _0x1c298f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2aa3f2=_0x384d6a(),!_0x2aa3f2)return _0x1c298f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2aa3f2[_0x1c298f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5e7676=_0x5431bb(_0x2aa3f2[_0x1c298f([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2aa3f2[_0x1c298f([0x6a,0x74,0x69])])),await _0x92fbe7()?_0x3dca75()?_0x85ce1d()?_0x1c298f([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5a4e0a()?(_0x2aa3f2[_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c298f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x408984=_0x52a699(_0x1c298f([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2aa3f2[_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1c298f([0x74,0x72,0x69,0x61,0x6c])&&(_0x408984=_0x52a699(_0x1c298f([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xdbe6e8()):_0x1c298f([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1c298f([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1c298f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1c298f([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x85ce1d(){const _0x3ff958=[_0x1c298f([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1c298f([0x74,0x72,0x69,0x61,0x6c])][_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2aa3f2[_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1d0643/0x3e8:0xe10*_0x405dc1;return _0x2aa3f2[_0x1c298f([0x65,0x78,0x70])]<_0x3ff958;}function _0x3dca75(){const _0x532313=_0x2aa3f2[_0x1c298f([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x532313&&(!!_0x532313[_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c298f([0x2a]))||!!_0x532313[_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c298f([0x46,0x4f,0x4f])));}function _0x5a4e0a(){const _0x4d8a31=_0x2aa3f2[_0x1c298f([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d8a31||0x0==_0x4d8a31[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x18a748}=new URL(window[_0x1c298f([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4d8a31[_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x18a748))return!0x0;const _0xbca458=_0x18a748[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])](_0x1c298f([0x2e]));return _0x4d8a31[_0x1c298f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b5aa1=>_0x5b5aa1[_0x1c298f([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1c298f([0x2a])))[_0x1c298f([0x6d,0x61,0x70])](_0x11f541=>_0x11f541[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])](_0x1c298f([0x2e])))[_0x1c298f([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x37f883=>_0x37f883[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0xbca458[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c298f([0x6d,0x61,0x70])](_0x23cc28=>Array(_0xbca458[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x23cc28[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1c298f([0x66,0x69,0x6c,0x6c])](_0x23cc28[0x0]===_0x1c298f([0x2a])?_0x1c298f([0x2a]):'')[_0x1c298f([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x23cc28))[_0x1c298f([0x73,0x6f,0x6d,0x65])](_0x81972=>_0xbca458[_0x1c298f([0x65,0x76,0x65,0x72,0x79])]((_0x298606,_0x1b0a91)=>_0x81972[_0x1b0a91]===_0x298606||_0x81972[_0x1b0a91]===_0x1c298f([0x2a])));}function _0xdbe6e8(){return _0x408984&&_0x5e7676?new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30a3b6,_0xae676f)=>{_0x408984[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x30a3b6,_0xae676f),_0x5e7676[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x4fc1fa=>{_0x4fc1fa!=_0x1c298f([0x56,0x61,0x6c,0x69,0x64])&&_0x30a3b6(_0x4fc1fa);},_0xae676f);}):_0x408984||_0x5e7676||_0x1c298f([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5431bb(_0x5bb637,_0x3e7641){return new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbe0182=>{if(_0x4355e0())return _0xbe0182(_0x1c298f([0x56,0x61,0x6c,0x69,0x64]));_0x3daf02(),_0x104e29[_0x1c298f([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1c298f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x2e31a5=!0x1;const _0x5d3b63=_0x43869c();function _0x533cfe(_0x506415){return!!_0x506415&&(typeof _0x506415===_0x1c298f([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x506415===_0x1c298f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x506415[_0x1c298f([0x74,0x68,0x65,0x6e])]===_0x1c298f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x506415[_0x1c298f([0x63,0x61,0x74,0x63,0x68])]===_0x1c298f([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x18e78e(_0x7199c3){_0x5e9787(_0x7199c3)[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x3a10f3=>{if(!_0x3a10f3||_0x3a10f3[_0x1c298f([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1c298f([0x6f,0x6b]))return _0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x46ea5d(_0x3eb41e(_0x5d3b63+_0x3e7641))!=_0x3a10f3[_0x1c298f([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1c298f([0x56,0x61,0x6c,0x69,0x64]);})[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x3013e8=>(_0x219ffb(),_0x3013e8),()=>{const _0x5ab713=_0x3de8ad();return null==_0x5ab713?(_0x219ffb(),_0x1c298f([0x56,0x61,0x6c,0x69,0x64])):_0x1c298f(_0x1d0643-_0x5ab713>(0x63ae0106^_0x2eaf5f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1c298f([0x74,0x68,0x65,0x6e])](_0xbe0182)[_0x1c298f([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbe0182(_0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x48832a=0x47946b86^_0x2eaf5f;function _0x219ffb(){const _0x42d227=_0x1c298f([0x6c,0x6c,0x63,0x74,0x2d])+_0x46ea5d(_0x3eb41e(_0x5bb637)),_0x35b755=_0x4ee0dc(_0x46ea5d(window[_0x1c298f([0x4d,0x61,0x74,0x68])][_0x1c298f([0x63,0x65,0x69,0x6c])](_0x1d0643/_0x48832a)));window[_0x1c298f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c298f([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42d227,_0x35b755);}function _0x3de8ad(){const _0x219d6b=_0x1c298f([0x6c,0x6c,0x63,0x74,0x2d])+_0x46ea5d(_0x3eb41e(_0x5bb637)),_0x5b5241=window[_0x1c298f([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1c298f([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x219d6b);return _0x5b5241?window[_0x1c298f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4ee0dc(_0x5b5241),0x10)*_0x48832a:null;}function _0x5e9787(_0x5bb746){return new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x433ed1,_0x1fb470)=>{_0x5bb746[_0x1c298f([0x74,0x68,0x65,0x6e])](_0x433ed1,_0x1fb470),window[_0x1c298f([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1fb470,0x47a351c6^_0x2eaf5f);});}}_0x104e29[_0x1c298f([0x6f,0x6e])](_0x1c298f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1ec715,_0x553ead)=>{if(_0x553ead[0x0]!=_0x5bb637)return _0xbe0182(_0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x553ead[0x1]={..._0x553ead[0x1],[_0x1c298f([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5d3b63};},{[_0x1c298f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c298f([0x68,0x69,0x67,0x68])}),_0x104e29[_0x1c298f([0x6f,0x6e])](_0x1c298f([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xa63ef2=>{_0x533cfe(_0xa63ef2[_0x1c298f([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x2e31a5=!0x0,_0x18e78e(_0xa63ef2[_0x1c298f([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1c298f([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1c298f([0x6c,0x6f,0x77])}),_0x1848d6[_0x1c298f([0x74,0x68,0x65,0x6e])](()=>{_0x2e31a5||_0xbe0182(_0x1c298f([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4355e0(){return _0x104e29[_0x1c298f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c298f([0x76,0x69,0x65,0x77])][_0x1c298f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1c298f([0x61,0x75,0x74,0x6f]);}function _0x3daf02(){_0x104e29[_0x1c298f([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1c298f([0x76,0x69,0x65,0x77])][_0x1c298f([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1c298f([0x61,0x75,0x74,0x6f]);}}function _0x52a699(_0x4c261a){const _0x32ceeb=[new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1481bf=>setTimeout(_0x1481bf,0x47abbbca^_0x2eaf5f)),_0x1848d6[_0x1c298f([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x49f367=>{let _0x2e2274=0x0;_0x104e29[_0x1c298f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c298f([0x6f,0x6e])](_0x1c298f([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x23ffa9,_0xc1de3d)=>{_0xc1de3d[0x0][_0x1c298f([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e2274++,_0x2e2274==(0x47a284fe^_0x2eaf5f)&&(_0x49f367(),_0x23ffa9[_0x1c298f([0x6f,0x66,0x66])]());});}))];return window[_0x1c298f([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1c298f([0x72,0x61,0x63,0x65])](_0x32ceeb)[_0x1c298f([0x74,0x68,0x65,0x6e])](()=>_0x4c261a);}async function _0x268e4c(){await _0x1848d6,_0x104e29[_0x1c298f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c298f([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5e3b9a,_0x104e29[_0x1c298f([0x6d,0x6f,0x64,0x65,0x6c])][_0x1c298f([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5e3b9a,_0x104e29[_0x1c298f([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1c298f([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x41eda9(_0x45de74){const _0x10ae63=_0x787e30();_0x104e29[_0x10ae63]=_0x1c298f([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x45de74,_0x45de74!=_0x1c298f([0x56,0x61,0x6c,0x69,0x64])&&_0x268e4c();}function _0x787e30(){const _0x538f0a=window[_0x1c298f([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1c298f([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1c298f([0x6e,0x6f,0x77])]())[_0x1c298f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1c298f([0x2e]),'');let _0x3c779f=_0x1c298f([0x75]);for(let _0x212ab6=0x0;_0x212ab6<_0x538f0a[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x212ab6+=0x2){let _0x36cc55=window[_0x1c298f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x538f0a[_0x1c298f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x212ab6,_0x212ab6+0x2));_0x36cc55>=_0x19c76b[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x36cc55-=_0x19c76b[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3c779f+=_0x19c76b[_0x36cc55];}return _0x3c779f;}function _0x384d6a(){const _0x447721=_0x55eb44[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])](_0x1c298f([0x2e]));if(0x3!=_0x447721[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x202f05(_0x447721[0x1]);function _0x202f05(_0x111df9){const _0x5d685a=_0x1a13d8(_0x111df9);return _0x5d685a&&_0x33a6cf()?_0x5d685a:null;function _0x33a6cf(){const _0x151459=_0x5d685a[_0x1c298f([0x6a,0x74,0x69])],_0xf8381d=window[_0x1c298f([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x151459[_0x1c298f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x151459[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4d8dfa={..._0x5d685a,[_0x1c298f([0x6a,0x74,0x69])]:_0x151459[_0x1c298f([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x151459[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4d8dfa[_0x1c298f([0x76,0x63])],_0x3eb41e(_0x4d8dfa)==_0xf8381d;}}}async function _0x92fbe7(){let _0x49bc6f=!0x0;try{const _0xb5546f=_0x55eb44[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])](_0x1c298f([0x2e])),[_0x29d037,_0x563a5e,_0x1ec4cb]=_0xb5546f;return _0x20661b(_0x29d037),await _0x4e740b(_0x29d037,_0x563a5e,_0x1ec4cb),_0x49bc6f;}catch{return!0x1;}function _0x20661b(_0x1ad6a8){const _0x1388db=_0x1a13d8(_0x1ad6a8);_0x1388db&&_0x1388db[_0x1c298f([0x61,0x6c,0x67])]==_0x1c298f([0x45,0x53,0x32,0x35,0x36])||(_0x49bc6f=!0x1);}async function _0x4e740b(_0x4a307e,_0x25812c,_0x359f70){const _0x2fbf5d=window[_0x1c298f([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1c298f([0x66,0x72,0x6f,0x6d])](_0x477e04(_0x359f70),_0x2e6cf4=>_0x2e6cf4[_0x1c298f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2f56de=new window[(_0x1c298f([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1c298f([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4a307e+_0x1c298f([0x2e])+_0x25812c),_0x1efb0e=window[_0x1c298f([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1c298f([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1efb0e)return;const _0x2fa62a=await _0x1efb0e[_0x1c298f([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1c298f([0x6a,0x77,0x6b]),_0x50ffb2,{[_0x1c298f([0x6e,0x61,0x6d,0x65])]:_0x1c298f([0x45,0x43,0x44,0x53,0x41]),[_0x1c298f([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1c298f([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1c298f([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1efb0e[_0x1c298f([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1c298f([0x6e,0x61,0x6d,0x65])]:_0x1c298f([0x45,0x43,0x44,0x53,0x41]),[_0x1c298f([0x68,0x61,0x73,0x68])]:{[_0x1c298f([0x6e,0x61,0x6d,0x65])]:_0x1c298f([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x2fa62a,_0x2fbf5d,_0x2f56de)||(_0x49bc6f=!0x1);}}function _0x1a13d8(_0x1afee1){return _0x1afee1[_0x1c298f([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1c298f([0x65,0x79]))?JSON[_0x1c298f([0x70,0x61,0x72,0x73,0x65])](_0x477e04(_0x1afee1)):null;}function _0x477e04(_0x4b8ea5){return window[_0x1c298f([0x61,0x74,0x6f,0x62])](_0x4b8ea5[_0x1c298f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1c298f([0x2b]))[_0x1c298f([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1c298f([0x2f])));}function _0x3eb41e(_0x43aa45){let _0x27b828=0x1505;function _0x3375c9(_0x4d5fa1){for(let _0x1ebf9e=0x0;_0x1ebf9e<_0x4d5fa1[_0x1c298f([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1ebf9e++){const _0x76735b=_0x4d5fa1[_0x1c298f([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1ebf9e);_0x27b828=(_0x27b828<<0x5)+_0x27b828+_0x76735b,_0x27b828&=_0x27b828;}}function _0x1a9dce(_0x17af24){Array[_0x1c298f([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x17af24)?_0x17af24[_0x1c298f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a9dce):_0x17af24&&typeof _0x17af24==_0x1c298f([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1c298f([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x17af24)[_0x1c298f([0x73,0x6f,0x72,0x74])]()[_0x1c298f([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2be1be,_0x1b079e])=>{_0x3375c9(_0x2be1be),_0x1a9dce(_0x1b079e);}):_0x3375c9(window[_0x1c298f([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x17af24));}return _0x1a9dce(_0x43aa45),_0x27b828>>>0x0;}function _0x46ea5d(_0xfd4f4){return _0xfd4f4[_0x1c298f([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1c298f([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1c298f([0x30]));}function _0x4ee0dc(_0x13738a){return _0x13738a[_0x1c298f([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1c298f([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1c298f([0x6a,0x6f,0x69,0x6e])]('');}function _0x5e3b9a(){}function _0x1c298f(_0x23ce31){return _0x23ce31['map'](_0x31526e=>String['fromCharCode'](_0x31526e))['join']('');}_0x41eda9(await _0x3bf60e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x30bf89){const {plugins:_0x5b4e90,editing:_0x5483b2,model:_0x617089}=this['editor'],_0xa22771=_0x5b4e90['get'](_0x50bbaf)['getFootnote'](_0x30bf89);return!!_0xa22771&&(_0x617089['change'](_0x34ac27=>{_0x34ac27['setSelection'](_0x34ac27['createPositionAt'](_0xa22771['definition'],'end'));}),_0x5483b2['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5f3393){const {plugins:_0x59a86f,editing:_0x5334a1,model:_0x4d3755}=this['editor'],_0x2988b7=_0x59a86f['get'](_0x50bbaf)['getFootnote'](_0x5f3393);return!!_0x2988b7&&(_0x4d3755['change'](_0x117c3b=>{_0x117c3b['setSelection'](_0x2988b7['reference'],'on');}),_0x5334a1['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x61ebe1}=this['editor']['model'],_0x5b41a3=this['editor']['config']['get']('footnotes.multiBlock');_0x61ebe1['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x61ebe1['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x61ebe1['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5b41a3?_0x61ebe1['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x61ebe1['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x61ebe1['addChildCheck'](_0x34817c=>{for(const _0xe7c1b2 of _0x34817c)if('footnoteDefinition'===_0xe7c1b2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x59a883}=this,{conversion:_0xb54ad2,editing:_0x25b7f6}=_0x59a883,{t:t}=_0x59a883['locale'];_0xb54ad2['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2d52ca,{writer:_0x4aabcc,consumable:_0x4045e0})=>{const _0x352d47=_0x2d52ca['getChild'](0x0);if(!_0x352d47||!_0x352d47['is']('element','a'))return null;const _0x156139=_0x352d47['getAttribute']('href')||'';if(!_0x156139['startsWith']('#'))return null;const _0x39af22=_0x156139['replace'](/^#/,'');if(!_0x39af22)return null;_0x4045e0['consume'](_0x352d47,{'name':!0x0,'attributes':['href']});for(const {item:_0x59ab92}of _0x25b7f6['view']['createRangeIn'](_0x352d47))_0x59ab92['is']('$textProxy')?_0x4045e0['consume'](_0x59ab92['textNode'],{'name':!0x0}):_0x59ab92['is']('element')&&_0x4045e0['consume'](_0x59ab92,{'name':!0x0});return _0x4aabcc['createElement']('footnoteRef',{'footnoteId':_0x39af22});}}),_0xb54ad2['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x26542b,{writer:_0x2d9d95})=>D(_0x26542b,_0x2d9d95)}),_0xb54ad2['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x29b918,{writer:_0x5dac13})=>{const _0x50c238=_0x29b918['getAttribute']('footnoteCounter');return _0x4c0ea2(D(_0x29b918,_0x5dac13),_0x5dac13,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x50c238)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5c7154}=this,{t:t}=_0x5c7154['locale'],{conversion:_0x59f67a}=_0x5c7154;_0x59f67a['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x59f67a['for']('upcast')['add'](_0x1a397a=>{_0x1a397a['on']('element:ol',(_0x15a2eb,_0xd48d4b,_0x1ec50a)=>{const _0x3bc9e9=_0xd48d4b['viewItem'];if(!_0x3bc9e9['hasClass']('footnotes-list')||!_0xd48d4b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x1ec50a['consumable']['consume'](_0x3bc9e9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4e1b56,modelCursor:_0x1e7b5b}=_0x1ec50a['convertChildren'](_0xd48d4b['viewItem'],_0xd48d4b['modelCursor']);_0xd48d4b['modelRange']=_0x4e1b56,_0xd48d4b['modelCursor']=_0x1e7b5b;}),_0x1a397a['on']('element:hr',(_0x2be827,_0x1f5ba5,_0x358112)=>{const _0x511685=_0x1f5ba5['viewItem'];_0x511685['hasClass']('footnotes-divider')&&_0x1f5ba5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x358112['consumable']['consume'](_0x511685,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x59f67a['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4b8872,{writer:_0x575ca9})=>v(_0x575ca9)}),_0x59f67a['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2e9b39,{writer:_0x57a3b7})=>{const _0xa92be7=v(_0x57a3b7,{'data-footnotes-list-label':t('Footnotes')}),_0x29aff4=_0x4c0ea2(_0xa92be7,_0x57a3b7,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x57a3b7['setCustomProperty']('footnotesDefinitions',!0x0,_0x29aff4),_0x29aff4;}});}['_defineDefinitionConverters'](){const {editor:_0x3b5f2c}=this,{conversion:_0x5a60ee,locale:_0x288d50}=_0x3b5f2c,_0x32dae4=_0x3b5f2c['config']['get']('footnotes.multiBlock');_0x5a60ee['for']('upcast')['add'](_0x221936=>{_0x221936['on']('element:li',(_0x17ac65,_0x22ef98,_0x19addd)=>{const _0x1b4a36=_0x22ef98['viewItem'];if(!_0x1b4a36['hasClass']('footnote-definition')||!_0x1b4a36['getAttribute']('id'))return;const _0x14c03e=_0x1b4a36['parent'];if(!_0x14c03e['is']('element','ol')||!_0x14c03e['hasClass']('footnotes-list'))return;if(!_0x19addd['consumable']['test'](_0x1b4a36,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x10b0c0=_0x19addd['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1b4a36['getAttribute']('id')});if(!_0x19addd['safeInsert'](_0x10b0c0,_0x22ef98['modelCursor']))return;_0x19addd['consumable']['consume'](_0x1b4a36,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x20b51b=Array['from'](_0x1b4a36['getChildren']())['find'](_0x391f89=>_0x391f89['is']('element')&&_0x391f89['hasClass']('footnote-content'));for(const _0x54ce53 of _0x1b4a36['getChildren']())_0x54ce53['is']('element')&&(_0x19addd['consumable']['consume'](_0x54ce53,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x19addd['consumable']['consume'](_0x54ce53,{'name':!0x0,'classes':'footnote-content'}));if(_0x20b51b){if(_0x32dae4)_0x19addd['convertChildren'](_0x20b51b,_0x10b0c0);else{const _0x5c85bc=_0x19addd['writer']['createElement']('footnoteInlineContent');_0x19addd['writer']['insert'](_0x5c85bc,_0x10b0c0),_0x19addd['convertChildren'](_0x20b51b,_0x5c85bc);}}_0x19addd['updateConversionResult'](_0x10b0c0,_0x22ef98);});}),_0x5a60ee['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x28f0fa,{writer:_0x5063ec})=>b(_0x28f0fa,_0x5063ec,_0x288d50,{'dataPipeline':!0x0})}),_0x5a60ee['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xf02299,{writer:_0x38fd5a})=>b(_0xf02299,_0x38fd5a,_0x288d50)});}['_defineBogusParagraphConverters'](){const {editor:_0x32944f}=this,{conversion:_0x318552}=_0x32944f;_0x32944f['config']['get']('footnotes.multiBlock')?(_0x318552['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x318552['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x32944f['model']['document'],'change:data',()=>{!function(_0x45860a,_0x2d2437){const _0x50a15a=_0x45860a['document']['differ'],_0x310ce4=new Set();for(const _0x351c10 of _0x50a15a['getChanges']()){const _0x255f69='attribute'==_0x351c10['type']?_0x351c10['range']['start']['parent']:_0x351c10['position']['parent'];_0x255f69['is']('element','footnoteDefinition')&&_0x310ce4['add'](_0x255f69);}for(const _0x41b465 of _0x310ce4['values']()){const _0x388616=Array['from'](_0x41b465['getChildren']())['filter'](_0x5c8a5b=>g(_0x5c8a5b,_0x2d2437['mapper']));for(const _0x4e1f47 of _0x388616)_0x2d2437['reconvertItem'](_0x4e1f47);}}(_0x32944f['model'],_0x32944f['editing']);})):(_0x318552['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x318552['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xdb2794,{writer:_0x530f08})=>{const _0x28863a=_0x530f08['createContainerElement']('span');return _0x530f08['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x28863a),_0x28863a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x4bc369}=this,{editing:_0x545ab5,t:t}=_0x4bc369,_0x13c941=_0x4bc369['model']['document']['selection'];_0x4bc369['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x4bc369['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x545ab5['view']['document'],'enter',(_0x489405,_0x2e9ba8)=>{const _0x318758=function(_0x3856e0){const _0x102b64=_0x3856e0['getSelectedElement']();if(_0x102b64?.['is']('element','footnoteRef'))return _0x102b64;return null;}(_0x13c941);if(_0x318758){const _0xfaea29=_0x318758['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xfaea29),_0x2e9ba8['preventDefault'](),_0x489405['stop']();}},{'context':_0x4dc540});}['_defineClickHandlers'](){const {editor:_0x425c9c}=this,{editing:_0x1d882c}=_0x425c9c;_0x425c9c['editing']['view']['addObserver'](_0x10af40),_0x425c9c['editing']['view']['addObserver'](_0x3432d7);let _0x4db546=!0x1;this['listenTo'](_0x1d882c['view']['document'],'pointerdown',(_0x2fab29,_0x4dc278)=>{const {target:_0x4fe7e9}=_0x4dc278,_0x140539=_0x1d882c['view']['document']['selection'];_0x4db546=!!(_0x4fe7e9?.['is']('element','a')&&_0x4fe7e9['parent']?.['is']('element','sup')&&_0x4fe7e9['parent']['hasClass']('footnote'))&&_0x140539['getSelectedElement']()===_0x4fe7e9['parent'];},{'priority':'high'}),this['listenTo'](_0x1d882c['view']['document'],'click',(_0x2e4ce4,_0xb1c4f7)=>{const {target:_0x27ad84}=_0xb1c4f7;if(!_0x27ad84?.['is']('element','a'))return;if(_0x27ad84['parent']?.['is']('element','sup')&&_0x27ad84['parent']['hasClass']('footnote')&&!_0x4db546)return void _0xb1c4f7['preventDefault']();let _0x1aa9a8=_0x27ad84['getAttribute']('href');if(!_0x1aa9a8?.['startsWith']('#'))return;_0x1aa9a8=_0x1aa9a8['slice'](0x1);let _0x4bb48f=!0x1;(_0x1aa9a8['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1aa9a8['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1aa9a8))&&(_0x4bb48f=!0x0),_0x4bb48f&&(_0xb1c4f7['preventDefault'](),_0x2e4ce4['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x1cdd62}={}){return(_0x3e91a6,{writer:_0x549cd2})=>{if(!p(_0x3e91a6))return null;if(!_0x1cdd62)return _0x549cd2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3ca8cb=_0x549cd2['createContainerElement']('p');return _0x549cd2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3ca8cb),_0x3ca8cb;};}function p(_0xf84457){const {parent:_0x1b714d}=_0xf84457;if(!_0x1b714d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1b714d['childCount'])return!0x1;for(const _0x190e2e of _0xf84457['getAttributeKeys']())if(!_0x190e2e['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x190e2e)return!0x1;return!0x0;}function g(_0x13bc05,_0x3825b1){if(!_0x13bc05['is']('element','paragraph'))return!0x1;const _0x47506b=_0x3825b1['toViewElement'](_0x13bc05);return!!_0x47506b&&p(_0x13bc05)!==_0x47506b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x38624c){return _0x4dc540(_0x38624c)&&_0x38624c['is']('containerElement')&&!!_0x38624c['getCustomProperty']('footnotesDefinitions');}function v(_0x4ba5a4,_0x47b2ae={}){const _0x357c1e=_0x4ba5a4['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x463491=_0x4ba5a4['createContainerElement']('ol',{'class':'footnotes-list'},_0x4ba5a4['createSlot']());return _0x4ba5a4['createContainerElement']('div',{'class':'footnotes',..._0x47b2ae},[_0x357c1e,_0x463491]);}function D(_0x592ce2,_0x8f2d00){const _0x1aca3e=_0x592ce2['getAttribute']('footnoteId'),_0x11689e=_0x592ce2['getAttribute']('footnoteCounter'),_0x4a6a75=_0x8f2d00['createUIElement']('a',{'href':'#'+_0x1aca3e},function(_0x1a4b37){const _0x78fd25=this['toDomElement'](_0x1a4b37);return _0x78fd25['textContent']=_0x11689e,_0x78fd25;}),_0x1f7936=_0x8f2d00['createContainerElement']('sup',{'id':'ref-'+_0x1aca3e,'class':'footnote'},[_0x4a6a75]);return _0x1f7936['getFillerOffset']=()=>null,_0x1f7936;}function b(_0x4b65cf,_0x40a023,_0x3fe521,{dataPipeline:_0x551204}={}){const {t:t}=_0x3fe521,_0x515721=_0x4b65cf['getAttribute']('footnoteId'),_0xadd6a0=_0x40a023['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x515721},function(_0x23ad4a){const _0x5ee119=this['toDomElement'](_0x23ad4a);return _0x5ee119['innerText']='^',_0x5ee119;}),_0x37a90c=_0x551204?_0x40a023['createContainerElement']('div',{'class':'footnote-content'}):_0x2933e(_0x40a023['createEditableElement']('div',{'class':'footnote-content'}),_0x40a023,{'label':t('Footnote\x20content.')});return _0x40a023['insert'](_0x40a023['createPositionAt'](_0x37a90c,0x0),_0x40a023['createSlot']()),_0x40a023['createContainerElement']('li',{'class':'footnote-definition','id':_0x515721},[_0xadd6a0,_0x37a90c]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2c5680=_0x13cf;(function(_0x3f19f9,_0x278ba){const _0x3f6c0e=_0x13cf,_0x5bfefe=_0x3f19f9();while(!![]){try{const _0x471431=-parseInt(_0x3f6c0e(0x17c))/0x1*(-parseInt(_0x3f6c0e(0x16b))/0x2)+-parseInt(_0x3f6c0e(0x179))/0x3*(-parseInt(_0x3f6c0e(0x16c))/0x4)+-parseInt(_0x3f6c0e(0x176))/0x5+-parseInt(_0x3f6c0e(0x174))/0x6*(-parseInt(_0x3f6c0e(0x17b))/0x7)+parseInt(_0x3f6c0e(0x16a))/0x8+-parseInt(_0x3f6c0e(0x180))/0x9*(-parseInt(_0x3f6c0e(0x17d))/0xa)+parseInt(_0x3f6c0e(0x17f))/0xb*(-parseInt(_0x3f6c0e(0x175))/0xc);if(_0x471431===_0x278ba)break;else _0x5bfefe['push'](_0x5bfefe['shift']());}catch(_0x29cbc8){_0x5bfefe['push'](_0x5bfefe['shift']());}}}(_0x4595,0xf151d));function _0x13cf(_0xca1f8,_0x56ac79){const _0x459502=_0x4595();return _0x13cf=function(_0x13cf81,_0x441c10){_0x13cf81=_0x13cf81-0x16a;let _0x4e19ae=_0x459502[_0x13cf81];return _0x4e19ae;},_0x13cf(_0xca1f8,_0x56ac79);}function _0x4595(){const _0x2d2518=['911410dfPIiC','includes','539aszURr','117QgvNTH','refresh','isEnabled','change','10002632DXKQyA','19714JFSnCq','68212AaDBCh','get','model','_updateFootnotesCounters','plugins','footnotesListStyle','setAttribute','getAttribute','665766JZfPcG','894528NdXMNR','1968965KRYobz','execute','value','267SSmHSU','getFootnotesDefinitionsObjectElement','21PSQgMB','76BnQRnq'];_0x4595=function(){return _0x2d2518;};return _0x4595();}import{Command as _0x582a16}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x73d664}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x3b7526}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x582a16{[_0x2c5680(0x181)](){const _0x22849c=_0x2c5680,{editor:_0x3dbe8f}=this,_0x2dbba4=_0x3dbe8f[_0x22849c(0x170)][_0x22849c(0x16d)](_0x3b7526)[_0x22849c(0x17a)]();this[_0x22849c(0x182)]=!!_0x2dbba4,this[_0x22849c(0x178)]=_0x2dbba4?.[_0x22849c(0x173)](_0x22849c(0x171))??null;}[_0x2c5680(0x177)]({value:_0x590b9a}){const _0x4f6b34=_0x2c5680,{editor:_0x1fb5eb}=this,_0x800146=_0x1fb5eb[_0x4f6b34(0x170)][_0x4f6b34(0x16d)](_0x3b7526),_0x30eb8a=_0x800146[_0x4f6b34(0x17a)]();_0x30eb8a&&_0x73d664[_0x4f6b34(0x17e)](_0x590b9a)&&_0x1fb5eb[_0x4f6b34(0x16e)][_0x4f6b34(0x183)](_0x4a6db3=>{const _0xa3e8c3=_0x4f6b34;_0x4a6db3[_0xa3e8c3(0x172)](_0xa3e8c3(0x171),_0x590b9a,_0x30eb8a),_0x800146[_0xa3e8c3(0x16f)](_0x4a6db3);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3ac3c2,View as _0x176e98,ViewCollection as _0x672447,FocusCycler as _0x51317e,addKeyboardHandlingForGrid as _0x2149a8,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it}from'ckeditor5/src/ui.js';import{FocusTracker as et,KeystrokeHandler as ot,global as rt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x176e98{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x672447();['focusCycler'];constructor(_0x204b6d,{styleButtonViews:_0x2887b4,styleGridAriaLabel:_0x106adb}){super(_0x204b6d),(this['focusCycler']=new _0x51317e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x2887b4,_0x106adb),[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 _0x306151 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x306151['element']);_0x2149a8({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['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 _0x261784=_0x28f4c0=>_0x28f4c0['stopPropagation']();this['keystrokes']['set']('arrowright',_0x261784),this['keystrokes']['set']('arrowleft',_0x261784),this['keystrokes']['set']('arrowup',_0x261784),this['keystrokes']['set']('arrowdown',_0x261784);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5245ce,_0xaff354){const _0x1aa5a6=new _0x176e98(this['locale']);return _0x1aa5a6['children']=_0x1aa5a6['createCollection'](),_0x1aa5a6['children']['addMany'](_0x5245ce),_0x1aa5a6['setTemplate']({'tag':'div','attributes':{'aria-label':_0xaff354,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x1aa5a6['children']}),_0x1aa5a6['children']['delegate']('execute')['to'](this),_0x1aa5a6['focus']=function(){for(const _0x4ef11f of this['children'])if(_0x4ef11f instanceof _0x3ac3c2&&_0x4ef11f['isOn'])return void _0x4ef11f['focus']();this['children']['first']['focus']();},_0x1aa5a6['focusTracker']=new et(),_0x1aa5a6['keystrokes']=new ot(),_0x1aa5a6['render'](),_0x1aa5a6['keystrokes']['listenTo'](_0x1aa5a6['element']),this['children']['add'](_0x1aa5a6),_0x1aa5a6;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x491e4a=this['_createStartIndexPropertyView'](),_0x1b4886=[_0x491e4a],_0x12571c=new tt(this['locale'],_0x1b4886);return _0x12571c['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x12571c['buttonView']['bind']('isEnabled')['toMany'](_0x1b4886,'isEnabled',(..._0x1687c9)=>_0x1687c9['some'](_0x380164=>_0x380164)),_0x12571c['buttonView']['on']('change:isEnabled',(_0x2c3a0f,_0x14b584,_0x25eb04)=>{_0x25eb04||(_0x12571c['isCollapsed']=!0x0);}),this['children']['add'](_0x12571c),[_0x491e4a,_0x12571c];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x54bb28=new st(this['locale'],it);return _0x54bb28['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x54bb28['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x54bb28['fieldView']['on']('input',()=>{const _0x38a11c=_0x54bb28['fieldView']['element'],_0x3f77af=_0x38a11c['valueAsNumber'];Number['isNaN'](_0x3f77af)?_0x54bb28['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x38a11c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3f77af}):_0x54bb28['errorText']=t(_0x3f77af<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x54bb28;}}
|