@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251121.0 → 0.0.0-nightly-20251122.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),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:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["$text","558573ZVQJVJ","has","4639590Ddmnzb","from","reset","_model","flat","remove","7386yHavnz","10uKkJqK","type","_trackedElements","push","767522uMIPrW","$graveyard","1465ozprox","createRangeOn","add","_elementName","getElementKey","slice","set","39XwjnvB","rootName","insert","getItems","_getElementKey","8rAOsFW","elementName","length","delete","root","9XVldGd","1419sRuvhZ","values","name","50057HMrrrO","nodeAfter","element","14424wZkXpX","8QOstxy","attributes","clear","get","2407748NZlpiX","position","getChanges"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(335985===parseInt(e(327))/1*(parseInt(e(300))/2)+-parseInt(e(291))/3*(parseInt(e(318))/4)+-parseInt(e(306))/5*(-parseInt(e(299))/6)+-parseInt(e(304))/7*(parseInt(e(331))/8)+-parseInt(e(323))/9*(parseInt(e(293))/10)+-parseInt(e(324))/11*(-parseInt(e(330))/12)+-parseInt(e(313))/13*(-parseInt(e(287))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(296)];[r(309)];[r(317)];[r(302)]=new Map;constructor(t,e){const o=r;this[o(296)]=t,this[o(309)]=e[o(319)],this[o(317)]=e[o(310)]}[r(295)](){const t=r;this[t(302)][t(333)]()}[r(289)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(315)===i[e(301)]&&e(290)!==i[e(326)]&&i[e(288)][e(328)]){const t=this[e(296)][e(307)](i[e(288)][e(328)]);for(const o of t[e(316)]()){if(!o.is(e(329),this[e(309)]))continue;const t=this[e(317)](o);n[e(292)](t)||n[e(312)](t,[]),n[e(334)](t)[e(303)](o)}}if(e(298)===i[e(301)]&&i[e(326)]===this[e(309)]){const t=this[e(317)]({getAttribute:t=>i[e(332)][e(334)](t)});o[e(308)](t)}}for(const[t,n]of this[e(302)])e(305)===n[e(322)][e(314)]&&o[e(308)](t);for(const t of o)this[e(302)][e(321)](t);for(const[t,o]of n)this[e(302)][e(312)](t,o[o[e(320)]-1]);const i=new Set;for(const[t,s]of n)o[e(292)](t)&&(i[e(308)](s[0]),s[e(320)]>1?n[e(312)](t,s[e(311)](1)):n[e(321)](t),o[e(321)](t));return{removed:Array[e(294)](o),inserted:Array[e(294)](n[e(325)]())[e(297)](),moved:Array[e(294)](i)}}}const u=h;function f(){const t=["footnoteRef","setFootnoteFormatter","footnotesDefinitions","4pPhrCx","push","after","remove","footnotes.multiBlock","$graveyard","_handleFootnotesDefinitionsObjectChanges","isEqual","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","getChanges","138005WqBTGg","get","_footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","editor","3722787PUPlCC","find","compareWith","childCount","high","model","document","getFootnotesDefinitionsObjectElement","31224zPvWTx","move","config","reference","set","min","getFootnote","differ","from","footnoteId","add","indexOf","init","change:data","map","pluginName","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","end","createRangeOn","some","_updateFootnotesCounters","singleton","paragraph","getFootnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","enqueueChange","createPositionBefore","976620OMcTAX","_footnoteDefsTracker","parent","setAttribute","createRangeIn","registerPostFixer","footnoteCounter","insert","isPremiumPlugin","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","isOfficialPlugin","definition","listenTo","rootName","root","has","FootnotesTracker","findIndex","3KYvsRb","unshift","_footnotes","low","_ensureFootnotesReferencesHaveProperOrder","getRootNames","getChildren","_footnoteDefsContainerTracker","append","getAttribute","createPositionAt","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","reset","81766hBaMZh","splice","1016035YMsNrD","length","getFootnotesFormatter","createElement","before","_footnoteFormatter","56315OctbiW","_updateFootnoteRefCounter"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(127080===parseInt(e(437))/1+parseInt(e(413))/2*(parseInt(e(399))/3)+parseInt(e(426))/4*(parseInt(e(415))/5)+parseInt(e(380))/6+-parseInt(e(421))/7+parseInt(e(451))/8+-parseInt(e(443))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(401)]=[];[u(439)]=null;[u(420)]=null;[u(406)];[u(467)];[u(381)];static get[u(466)](){return u(397)}static get[u(391)](){return!0}static get[u(388)](){return!0}constructor(t){const e=u;super(t),this[e(406)]=new l(this[e(442)][e(448)],{elementName:e(425),getElementKey:()=>e(473)}),this[e(467)]=new l(this[e(442)][e(448)],{elementName:e(423),getElementKey:t=>t[e(408)](e(460))}),this[e(381)]=new l(this[e(442)][e(448)],{elementName:e(435),getElementKey:t=>t[e(408)](e(460))})}[u(463)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(449)][t(385)](e=>{const n=t,i=o[n(449)][n(458)][n(436)]();let s=!1;return this[n(432)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(476)](e,i)&&(s=!0),this[n(403)](e)&&(s=!0),this[n(411)](e)&&(s=!0),this[n(477)](e)&&(s=!0),s}),this[t(393)](o[t(449)],t(464),()=>{const e=t;o[e(378)]({isUndoable:!1},t=>{this[e(434)](t)})},{priority:t(402)}),this[t(393)](n,t(455),()=>{const e=t;this[e(401)]=[],this[e(406)][e(412)](),this[e(467)][e(412)](),this[e(381)][e(412)]()},{priority:t(447)})}[u(450)](){return this[u(439)]}[u(457)](t){const e=u;return this[e(401)][e(444)](e=>e.id===t)||null}[u(475)](){const t=u;return Array[t(459)](this[t(401)])}[u(417)](){return this[u(420)]}[u(424)](t){this[u(420)]=t}[u(472)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(401)][o(416)];i++)this[o(422)](t,i)&&(n=!0);return n}[u(440)](t,e){const o=u,n=t[o(418)](o(425),{});return t[o(407)](n,e),this[o(439)]=n,n}[u(434)](t){const e=u;if(!this[e(401)][e(416)]||this[e(439)])return;const o=this[e(401)][0][e(454)][e(395)],n=this[e(440)](t,o);for(const o of this[e(401)])o[e(392)][e(382)]||t[e(387)](o[e(392)],n,e(469));this[e(472)](t)}[u(432)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(406)][o(436)](e);if(r[o(416)]&&(this[o(439)]=r[0]),i[o(416)])if(i[o(416)]>1||this[o(439)]&&i[o(471)](t=>t!==this[o(439)])){const e=t[o(418)](o(425),{}),s=[];this[o(439)]&&s[o(427)](this[o(439)]),s[o(427)](...i),t[o(387)](e,s[0],o(419));for(const n of s)t[o(452)](t[o(384)](n),t[o(409)](e,o(469))),t[o(429)](n);this[o(439)]=e,this[o(472)](t),n=!0}else this[o(439)]=i[0];if(s[o(416)]&&o(431)===this[o(439)]?.[o(395)][o(394)]){for(const e of this[o(401)])t[o(429)](e[o(454)]),n=!0;this[o(401)]=[],this[o(439)]=null}return n}[u(390)](t,e){const o=u;let n=!1;const i=this[o(442)][o(453)][o(438)](o(430)),{inserted:s,moved:r}=this[o(381)][o(436)](e);for(const e of[...r,...s]){const s=e[o(408)](o(460)),r=this[o(457)](s);r&&(r[o(392)]=e),p(t,i,e)&&(n=!0)}return n}[u(476)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(436)](e);for(const e of i)this[o(468)](t,e)&&(n=!0);for(const e of s)this[o(389)](t,e)&&(n=!0);for(const e of r)this[o(410)](t,e)&&(n=!0);return n}[u(411)](t){const e=u;if(!this[e(439)])return!1;let o=!1;if(this[e(439)][e(446)]!==this[e(401)][e(416)]){const n=[];for(const t of this[e(439)][e(405)]()){const i=t[e(408)](e(460));this[e(457)](i)||(n[e(400)](t),o=!0)}for(const o of n)t[e(429)](o)}const n=new Set,i=[];for(const t of this[e(439)][e(405)]()){const s=t[e(408)](e(460));n[e(396)](s)?(i[e(400)](t),o=!0):n[e(461)](s)}for(const o of i)t[e(429)](o);return this[e(439)][e(446)]||(t[e(429)](this[e(439)]),this[e(439)]=null,o=!0),o}[u(389)](t,e){const o=u;if(this[o(401)][o(444)](t=>t[o(454)]===e))return!1;let n=!1;const i=e[o(408)](o(460)),s=this[o(401)][o(398)](t=>t.id===i);-1!==s&&(t[o(429)](this[o(401)][s][o(454)]),this[o(401)][o(414)](s,1),n=!0);let r=this[o(439)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(408)](n(460))===e)return o;return null}(this[o(439)],i):null;r||(r=t[o(418)](o(435),{footnoteId:i}),this[o(439)]&&(t[o(387)](r,this[o(439)],o(469)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(442)][o(448)],this[o(401)],e);this[o(401)][o(414)](c,0,a);let l=c;return-1!==s&&(l=Math[o(456)](c,s)),this[o(472)](t,l)&&(n=!0),n}[u(468)](t,e){const o=u,n=this[o(401)][o(398)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(401)][n];return o(431)!==s[o(392)][o(395)][o(394)]&&(t[o(429)](s[o(392)]),i=!0),this[o(401)][o(414)](n,1),this[o(472)](t,n)&&(i=!0),i}[u(410)](t,e){const o=u,n=e[o(408)](o(460)),i=this[o(401)][o(398)](t=>t.id===n),s=this[o(401)][i];let r=!1;s[o(454)]=e,this[o(401)][o(414)](i,1);const a=m(this[o(442)][o(448)],this[o(401)],e);return this[o(401)][o(414)](a,0,s),this[o(472)](t,Math[o(456)](i,a))&&(r=!0),r}[u(422)](t,e){const o=u;if(!this[o(439)])return!1;const n=this[o(401)][e];let i;return i=this[o(420)]?this[o(420)]({footnote:n,container:this[o(439)],digits:String(this[o(401)][o(416)])[o(416)],value:e+1}):String(e+1),n[o(454)][o(408)](o(386))!=i&&(t[o(383)](o(386),i,n[o(454)]),!0)}[u(477)](t){const e=u;if(!this[e(439)]||this[e(401)][e(416)]<2)return!1;if(function(t,o){const n=e;if(t[n(416)]!==o[n(416)])return!1;for(let e=0;e<t[n(416)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(401)][e(465)](t=>t.id),Array[e(459)](this[e(439)][e(405)]())[e(465)](t=>t[e(408)](e(460)))))return!1;let o=!1;for(let n=0;n<this[e(401)][e(416)];n++){const i=this[e(401)][n],s=t[e(379)](i[e(392)]),r=t[e(409)](this[e(439)],n);s[e(433)](r)||(t[e(452)](t[e(470)](i[e(392)]),r),o=!0)}return o}[u(403)](t){const e=u;if(!this[e(401)][e(416)])return!1;const{model:o}=this[e(442)];let n=!1;for(let i=0;i<this[e(401)][e(416)]-1;i++){const s=this[e(401)][i],r=this[e(401)][i+1],a=o[e(379)](s[e(454)]),c=o[e(379)](r[e(454)]);e(428)===a[e(445)](c)&&(this[e(410)](t,s[e(454)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(446)])return!1;const i=n(e?474:441);return t[n(387)](t[n(418)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=378]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(416)])return 0;const i=t[n(379)](o);for(let o=0;o<e[n(416)];o++){const s=e[o],r=t[n(379)](s[n(454)]);if(n(419)===i[n(445)](r))return o}const s=o[n(395)];let r=-1;for(let t=e[n(416)]-1;t>=0;t--)if(e[t][n(454)][n(395)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(449)][n(404)](),c=a[n(462)](s[n(394)]),l=a[c+1];if(l)for(let t=0;t<e[n(416)];t++)if(e[t][n(454)][n(395)][n(394)]===l)return t;return e[n(416)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=323]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","selection","getFirstRange","isBlock","insert-footnote-command-executed-with-invalid-id","5cAuSzW","createElement","1658448bNgimd","FootnotesEditing","366777xsiNhf","string","footnoteId","getItems","length","test","editor","change","plugins","3108252MDpblI","368DAQpUP","7216530wFFjSa","document","655304WflGWV","footnoteRef","3124962dPLitI","execute","3219416foHJqU","refresh","end","isEnabled","model","insertObject","get","isObject","checkChild","_moveSelectionToFootnoteDefinition"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(605409===parseInt(e(341))/1+parseInt(e(326))/2+parseInt(e(343))/3+-parseInt(e(345))/4*(parseInt(e(324))/5)+parseInt(e(339))/6+-parseInt(e(337))/7+-parseInt(e(338))/8*(parseInt(e(328))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(346)](){const t=g,e=this[t(334)][t(349)][t(340)][t(356)],o=this[t(355)](e);this[t(348)]=!!o}[g(344)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(340)],r=this[e(355)](s);if(!r)return;const a=o[e(336)][e(351)](e(327)),c=t?.[e(330)]??(0,i.uid)();!function(t){const o=e;return o(329)==typeof t&&t[o(332)]>0&&!/\s/[o(333)](t)&&!/^\d/[o(333)](t)}(c)?(0,i.logWarning)(e(323)):(n[e(335)](t=>{const o=e,i=t[o(325)](o(342),{footnoteId:c});n[o(350)](i,r,null)}),a[e(354)](c))}[g(355)](t){const e=g,{model:o}=this[e(334)],{schema:n}=o,i=t[e(357)]();for(const t of i[e(331)]())if(n[e(358)](t)||n[e(352)](t))return null;const s=i[e(347)];return n[e(353)](s,e(342))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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])](u(t)):null}function u(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 f(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])],f(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 u=(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(f(u+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(f(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(f(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])]:u}},{[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])](u(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:1763683200;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>P(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)(P(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})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({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:v()}),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 v({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 P(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 E(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 S=o(331);const T=_;function D(){const t=["from","editing","6685146wQvVNR","getFootnote","change","content","definition","clipboardInput","root","getRanges","stringify","listenTo","element","add","setAttribute","toData","2613804CeRupZ","contentInsertion","init","reduce","7024easVPR","includes","parse","pluginName","editor","insert","footnoteRef","toModel","isOfficialPlugin","getAttribute","getFootnotes","toView","sourceEditorId","5005770OLVkVG","getFirstRange","createRangeIn","flatMap","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","setData","end","_handlePasteFootnotesDefinitions","getData","footnoteId","getFootnotesDefinitionsObjectElement","getSelectedBlocks","drop","dataTransfer","outputTransformation","append","htmlProcessor","142cDbCpn","find","10740249vtpZVI","footnoteDefinition","application/ckeditor5-footnotes","footnotesDefinitions","push","remove","length","method","selection","createElement","entries","12460pHRZXn","11559FFNcPP","document","create","get","FootnotesClipboard","_handleCopyFootnotesDefinitions","5462646CprBzA","requires","_defineClipboardIntegration","data"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=321]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(987598===-parseInt(e(329))/1*(parseInt(e(390))/2)+parseInt(e(335))/3+-parseInt(e(355))/4+-parseInt(e(372))/5+-parseInt(e(341))/6+parseInt(e(328))/7*(parseInt(e(359))/8)+parseInt(e(392))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class A extends t.Plugin{static get[T(362)](){return T(333)}static get[T(336)](){return[I,S.ClipboardPipeline]}static get[T(367)](){return!0}static get[T(376)](){return!0}[T(357)](){this[T(337)]()}[T(337)](){const t=T;this[t(334)](),this[t(380)]()}[T(334)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](S.ClipboardPipeline),s=o[t(332)](d);this[t(350)](i,t(387),(o,i)=>{const r=t,a=L(n[r(374)](i[r(344)]));if(!a[r(323)])return;const c=s[r(369)](),l=a[r(358)]((t,o)=>{const n=r,i=c[n(391)](t=>t.id===o);if(i){const o=e[n(338)][n(370)](i[n(345)],{isClipboardPipeline:!0}),s=e[n(338)][n(389)][n(354)](o);t[i.id]=s}return t},Object[r(331)](null));i[r(386)][r(378)](r(394),JSON[r(349)](l))})}[T(380)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(340)],r=n[t(332)](S.ClipboardPipeline),a=n[t(332)](d);let c=null;this[t(350)](s[t(330)],t(346),(e,o)=>{const n=t,i=o[n(386)][n(381)](n(394));c=i?JSON[n(361)](i):null}),this[t(350)](r,t(356),(n,s)=>{const r=t,l=s[r(371)]===this[r(363)].id;l&&r(385)===s[r(324)]||o[r(343)](t=>{const n=r;let u=a[n(383)]();const f=!!u&&Array[n(339)](o[n(330)][n(325)][n(384)]())[n(360)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(351),o(395))&&i[o(321)](n);for(const e of i)t[o(322)](e)}(t,s[n(344)]),!c)return;const{selection:d}=o[n(330)],p=d[n(373)]()[n(347)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(351),o(395)))return n;return null}(t,s[n(344)]),u||=a[n(377)](t,p));const h=Array[n(339)](d[n(348)]())[n(375)](L),m=function(t,e,o){const s=n,r=Object[s(331)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(351),s(365))){const e=n[s(368)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(353)](s(382),r[e],n)}return r}(t,s[n(344)],t=>{const e=n;return!l||!!a[e(342)](t)&&!h[e(360)](t)});for(const[o,i]of Object[n(327)](c)){const s=m[o]||o,r=t[n(326)](n(393),{footnoteId:s}),a=e[n(338)][n(389)][n(370)](i),c=e[n(338)][n(366)](a,r);t[n(388)](c,r),t[n(364)](r,u,n(379))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(351),e(365))&&o[e(352)](n[e(368)](e(382)));return Array[e(339)](o)}var N=o(311),R=o(355),V=o(929),O=o.n(V),K=o(297),M=o.n(K),j=o(102),B=o.n(j),W=o(123),U=o.n(W),z=o(741),H=o.n(z),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();O()(X.A,G);X.A&&X.A.locals&&X.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",J(t,N.ButtonView)),e.add("menuBar:insertFootnote",J(t,N.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 J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.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 Z=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=151]})(t,e)}function Q(){var t=["pluginName","258256KhWDBb","requires","6500480mCtFLU","45966OXUaFy","isOfficialPlugin","2989650NKYcCW","33JEJxLC","1667619qldrsF","isPremiumPlugin","4elpxpm","780726IfJdsU","994NIUnfm","Footnotes","10gdMFuE","289113GRwGHJ","432EyiGHK"];return(Q=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(727191===parseInt(e(159))/1+parseInt(e(166))/2*(-parseInt(e(155))/3)+parseInt(e(158))/4*(parseInt(e(154))/5)+-parseInt(e(152))/6*(-parseInt(e(160))/7)+parseInt(e(151))/8+-parseInt(e(156))/9*(parseInt(e(162))/10)+parseInt(e(163))/11*(-parseInt(e(164))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[Z(165)](){return Z(161)}static get[Z(167)](){return[I,A,q]}static get[Z(153)](){return!0}static get[Z(157)](){return!0}}function tt(){const t=["upper-latin","1337016YUCNLh","lower-alpha","5xOyMnK","upper-roman","60003EBwblL","8iCQDHa","883172GYIaUw","1017604vyRgKi","126rSYgbx","lower-latin","decimal","3144057RcSyYE","1139352UvVCWS","lower-roman","1563930NkjmKP","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=461]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(348133===-parseInt(e(472))/1+-parseInt(e(475))/2+-parseInt(e(462))/3+-parseInt(e(474))/4*(parseInt(e(470))/5)+-parseInt(e(468))/6+-parseInt(e(461))/7*(parseInt(e(473))/8)+parseInt(e(476))/9*(parseInt(e(464))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(478),ot(465),ot(477),ot(467),ot(469),ot(466),ot(463),ot(471)];function it(t,e){const o=st();return(it=function(t,e){return o[t-=106]})(t,e)}function st(){const t=["isEnabled","refresh","104sYTRrG","7126IZPxMm","plugins","getFootnotesDefinitionsObjectElement","value","34MZtWrA","model","17970glyhcN","1027638cBhQnQ","913CXwmLX","getAttribute","_updateFootnotesCounters","12474DugpQl","206616zNdINu","20LluYrG","execute","774486dhShGB","footnotesListStyle","98128cZQqmN","includes","change","get","setAttribute"];return(st=function(){return t})()}const rt=it;!function(t){const e=it,o=t();for(;;)try{if(157999===-parseInt(e(114))/1*(parseInt(e(121))/2)+parseInt(e(125))/3+-parseInt(e(127))/4*(-parseInt(e(123))/5)+-parseInt(e(122))/6+parseInt(e(110))/7*(parseInt(e(109))/8)+-parseInt(e(117))/9+parseInt(e(116))/10*(parseInt(e(118))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[rt(108)](){const t=rt,{editor:e}=this,o=e[t(111)][t(130)](d)[t(112)]();this[t(107)]=!!o,this[t(113)]=o?.[t(119)](t(126))??null}[rt(124)]({value:t}){const e=rt,{editor:o}=this,n=o[e(111)][e(130)](d),i=n[e(112)]();i&&nt[e(128)](t)&&o[e(115)][e(129)](o=>{const s=e;o[s(106)](s(126),t,i),n[s(120)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(803346===parseInt(e(267))/1*(-parseInt(e(277))/2)+-parseInt(e(280))/3+parseInt(e(273))/4+parseInt(e(274))/5*(parseInt(e(278))/6)+parseInt(e(265))/7*(parseInt(e(268))/8)+-parseInt(e(282))/9*(parseInt(e(262))/10)+parseInt(e(276))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(266)](){const t=ct,{editor:e}=this,o=e[t(275)][t(279)](d)[t(271)]();this[t(272)]=!!o,this[t(286)]=o?.[t(263)](t(285))??null}[ct(283)]({value:t}){const e=ct,{editor:o}=this,n=o[e(275)][e(279)](d),i=n[e(271)]();i&&Number[e(269)](t)&&o[e(281)][e(270)](o=>{const s=e;o[s(284)](s(285),t,i),n[s(264)](o)})}}function ft(){const t=["1405dIhzFL","plugins","8356128WLTKIT","194kXFLNk","32196SaTFfw","get","1556442Rjigcm","model","1179WdtugJ","execute","setAttribute","footnotesListStart","value","73760AQUnXD","getAttribute","_updateFootnotesCounters","3389603FMVuJG","refresh","7127DufNnN","8xhIIcW","isInteger","change","getFootnotesDefinitionsObjectElement","isEnabled","912048PMHnrM"];return(ft=function(){return t})()}function dt(t,e){const o=yt();return(dt=function(t,e){return o[t-=253]})(t,e)}const pt=dt;!function(t){const e=dt,o=t();for(;;)try{if(346239===-parseInt(e(331))/1+-parseInt(e(275))/2+parseInt(e(266))/3*(-parseInt(e(336))/4)+-parseInt(e(326))/5*(parseInt(e(262))/6)+parseInt(e(296))/7+-parseInt(e(328))/8*(-parseInt(e(338))/9)+-parseInt(e(280))/10*(-parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[pt(279)](){return pt(299)}static get[pt(320)](){return[I,d]}static get[pt(351)](){return!0}static get[pt(259)](){return!0}[pt(312)](){const t=pt,{editor:e}=this;e[t(309)][t(288)](t(302),t(349)),e[t(309)][t(288)](t(260),1),e[t(330)][t(340)](t(272),new at(e)),e[t(330)][t(340)](t(339),new ut(e)),this[t(264)](),this[t(273)](),this[t(292)](),this[t(318)]()}[pt(264)](){const t=pt,{editor:e}=this,{schema:o}=e[t(281)];o[t(267)](t(278),{allowAttributes:[t(308),t(257)]})}[pt(273)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(343)](t(346))[t(340)](e=>{const o=t;e.on(o(291),(t,e,n)=>{const s=o,r=e[s(274)],a=e[s(261)]?.[s(325)];r[s(344)](s(341))&&a?.is(s(255),s(278))&&(function(t,e,o,n){const i=s;if(!n[i(337)](e,i(257)))return;let r=1;const a=o[i(334)][i(276)](t,{attributes:i(283)});if(a){const e=Number[i(268)](t[i(263)](i(283)),10);Number[i(335)](e)||(r=e)}!a&&e[i(353)](i(257))||o[i(317)][i(287)](i(257),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(337)](e,i(308)))return;let r=i(349),a=!1;if(o[i(334)][i(276)](t,{attributes:i(294)})){const e={1:i(349),a:i(277),A:i(324),i:i(289),I:i(315)}[t[i(263)](i(294))];e&&(r=e),a=!0}o[i(334)][i(276)](t,{styles:i(354)})&&(r=t[i(352)](i(354)),a=!0),!a&&e[i(353)](i(308))||o[i(317)][i(287)](i(308),r,e)}(r,a,n,i))})}),o[t(343)](t(305))[t(340)](e=>{const o=t;e.on(o(285),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;null==r||1===r?n[i(317)][i(284)](i(283),s):n[i(317)][i(287)](i(283),String(r),s)}),e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;r&&i(349)!==r?n[i(317)][i(307)](i(354),r,s):n[i(317)][i(298)](i(354),s)})})}[pt(318)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(295)][t(347)](d),i=this[t(313)](),s=this[t(314)]();o[t(271)][t(256)](e=>{const r=t,a=o[r(271)][r(311)][r(265)]();let c=!1;for(const t of a){if(r(297)!==t[r(294)]||r(327)===t[r(304)])continue;const n=o[r(300)](t[r(286)][r(350)]);for(const t of n[r(301)]())t.is(r(255),r(278))&&(!t[r(353)](r(257))&&o[r(345)][r(337)](t,r(257))&&(e[r(287)](r(257),s,t),c=!0),!t[r(353)](r(308))&&o[r(345)][r(337)](t,r(308))&&(e[r(287)](r(308),i,t),c=!0))}return c&&n[r(316)](e),c})}[pt(292)](){const t=pt,{editor:e}=this;e[t(295)][t(347)](d)[t(253)](e=>this[t(282)](e))}[pt(313)](){const t=pt;return this[t(258)][t(309)][t(347)](t(302))}[pt(314)](){const t=pt;return this[t(258)][t(309)][t(347)](t(260))}[pt(282)]({container:t,value:e,digits:o}){const n=pt,i=t[n(263)](n(308)),s=t[n(263)](n(257)),r=Math[n(333)](e)+(s??1)-1;switch(i){case n(269):return function(t,e){const o=n;return String(t)[o(323)](e,"0")}(r,Math[n(319)](2,o));case n(277):case n(342):return gt(r,!1);case n(324):case n(254):return gt(r,!0);case n(289):return bt(r,!1);case n(315):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(322)](t);return Array[o(270)](n[o(329)]())[o(321)](t=>t.is(o(255),"ol")&&t[o(344)](o(341)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(290)](97+t)+n,i=Math[o(333)]((i-1)/26)}return e?n[o(348)]():n}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(){const t=["getAttribute","_defineSchema","getChanges","3aCeIeX","extend","parseInt","decimal-leading-zero","from","document","footnotesStyle","_defineConverters","viewItem","1038540TqNJcQ","consume","lower-alpha","footnotesDefinitions","pluginName","12105440aFEhCh","model","_formatFootnoteListValue","start","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","position","setAttribute","define","lower-roman","fromCharCode","element:ol","_defineFormatter","item","type","plugins","393358tNaHsR","insert","removeStyle","FootnotesPropertiesEditing","createRangeOn","getItems","footnotes.footnotesProperties.defaultListStyle","attribute:footnotesListStyle:footnotesDefinitions","name","downcast","11vtJWmh","setStyle","footnotesListStyle","config","toLowerCase","differ","init","_getDefaultListStyle","_getDefaultStartIndex","upper-roman","_updateFootnotesCounters","writer","_definePostfixer","max","requires","find","toViewElement","padStart","upper-alpha","parent","10XhoRNq","$text","4936016SBGFkO","getChildren","commands","463990fkRtbg","mapper","floor","consumable","isNaN","566156RharKo","checkAttribute","9XMUFgJ","footnotesStart","add","footnotes-list","lower-latin","for","hasClass","schema","upcast","get","toUpperCase","decimal","nodeAfter","isOfficialPlugin","getStyle","hasAttribute","list-style-type","setFootnoteFormatter","upper-latin","element","registerPostFixer","footnotesListStart","editor","isPremiumPlugin","footnotes.footnotesProperties.defaultStartIndex","modelCursor","1238106yXgBWS"];return(yt=function(){return t})()}function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(310)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.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,N.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 N.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 N.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 N.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 N.LabeledFieldView(this.locale,N.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 vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.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,N.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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});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}=N.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=Pt;function xt(){var t=["10ZPYPJG","205326PIdfKc","2173941ZGkDCw","isOfficialPlugin","425YxRdnc","4338531ioPnfx","pluginName","4664IqntGO","70RRlYao","FootnotesProperties","153xXflwc","767152SNLOuI","isPremiumPlugin","84DOTwEC","396504SmuNGZ","requires","10536dZJbbD"];return(xt=function(){return t})()}function Pt(t,e){var o=xt();return(Pt=function(t,e){return o[t-=264]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(434820===-parseInt(e(279))/1*(parseInt(e(276))/2)+-parseInt(e(266))/3+parseInt(e(268))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(277))/7)+-parseInt(e(280))/8+parseInt(e(274))/9*(-parseInt(e(269))/10)+-parseInt(e(271))/11*(-parseInt(e(265))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ft(275)](){return Ft(278)}static get[Ft(267)](){return[ht,Ct]}static get[Ft(272)](){return!0}static get[Ft(264)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=122]})(t,e)}function Tt(){var t=["40ysuEGc","6ZPcMLK","599384EYNdtL","6hxVpkP","11100kJzrpm","9SYbaRI","280510VgKRwE","3866048pPqYKR","30206iPIeup","991341VLptqz","363650yVjgdX","3552135CgyCMt"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(495915===parseInt(e(128))/1+-parseInt(e(133))/2*(-parseInt(e(122))/3)+parseInt(e(126))/4+parseInt(e(130))/5*(parseInt(e(132))/6)+parseInt(e(129))/7*(-parseInt(e(131))/8)+parseInt(e(124))/9*(parseInt(e(125))/10)+parseInt(e(127))/11*(-parseInt(e(123))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),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:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>A,FootnotesEditing:()=>I,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["$text","558573ZVQJVJ","has","4639590Ddmnzb","from","reset","_model","flat","remove","7386yHavnz","10uKkJqK","type","_trackedElements","push","767522uMIPrW","$graveyard","1465ozprox","createRangeOn","add","_elementName","getElementKey","slice","set","39XwjnvB","rootName","insert","getItems","_getElementKey","8rAOsFW","elementName","length","delete","root","9XVldGd","1419sRuvhZ","values","name","50057HMrrrO","nodeAfter","element","14424wZkXpX","8QOstxy","attributes","clear","get","2407748NZlpiX","position","getChanges"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=287]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(335985===parseInt(e(327))/1*(parseInt(e(300))/2)+-parseInt(e(291))/3*(parseInt(e(318))/4)+-parseInt(e(306))/5*(-parseInt(e(299))/6)+-parseInt(e(304))/7*(parseInt(e(331))/8)+-parseInt(e(323))/9*(parseInt(e(293))/10)+-parseInt(e(324))/11*(-parseInt(e(330))/12)+-parseInt(e(313))/13*(-parseInt(e(287))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(296)];[r(309)];[r(317)];[r(302)]=new Map;constructor(t,e){const o=r;this[o(296)]=t,this[o(309)]=e[o(319)],this[o(317)]=e[o(310)]}[r(295)](){const t=r;this[t(302)][t(333)]()}[r(289)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(315)===i[e(301)]&&e(290)!==i[e(326)]&&i[e(288)][e(328)]){const t=this[e(296)][e(307)](i[e(288)][e(328)]);for(const o of t[e(316)]()){if(!o.is(e(329),this[e(309)]))continue;const t=this[e(317)](o);n[e(292)](t)||n[e(312)](t,[]),n[e(334)](t)[e(303)](o)}}if(e(298)===i[e(301)]&&i[e(326)]===this[e(309)]){const t=this[e(317)]({getAttribute:t=>i[e(332)][e(334)](t)});o[e(308)](t)}}for(const[t,n]of this[e(302)])e(305)===n[e(322)][e(314)]&&o[e(308)](t);for(const t of o)this[e(302)][e(321)](t);for(const[t,o]of n)this[e(302)][e(312)](t,o[o[e(320)]-1]);const i=new Set;for(const[t,s]of n)o[e(292)](t)&&(i[e(308)](s[0]),s[e(320)]>1?n[e(312)](t,s[e(311)](1)):n[e(321)](t),o[e(321)](t));return{removed:Array[e(294)](o),inserted:Array[e(294)](n[e(325)]())[e(297)](),moved:Array[e(294)](i)}}}const u=h;function f(){const t=["footnoteRef","setFootnoteFormatter","footnotesDefinitions","4pPhrCx","push","after","remove","footnotes.multiBlock","$graveyard","_handleFootnotesDefinitionsObjectChanges","isEqual","_ensureFootnotesDefinitionsContainerExists","footnoteDefinition","getChanges","138005WqBTGg","get","_footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","editor","3722787PUPlCC","find","compareWith","childCount","high","model","document","getFootnotesDefinitionsObjectElement","31224zPvWTx","move","config","reference","set","min","getFootnote","differ","from","footnoteId","add","indexOf","init","change:data","map","pluginName","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","end","createRangeOn","some","_updateFootnotesCounters","singleton","paragraph","getFootnotes","_handleFootnoteReferencesChanges","_sortFootnoteDefinitions","enqueueChange","createPositionBefore","976620OMcTAX","_footnoteDefsTracker","parent","setAttribute","createRangeIn","registerPostFixer","footnoteCounter","insert","isPremiumPlugin","_handleInsertedFootnoteReference","_handleFootnoteDefinitionsChanges","isOfficialPlugin","definition","listenTo","rootName","root","has","FootnotesTracker","findIndex","3KYvsRb","unshift","_footnotes","low","_ensureFootnotesReferencesHaveProperOrder","getRootNames","getChildren","_footnoteDefsContainerTracker","append","getAttribute","createPositionAt","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","reset","81766hBaMZh","splice","1016035YMsNrD","length","getFootnotesFormatter","createElement","before","_footnoteFormatter","56315OctbiW","_updateFootnoteRefCounter"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(127080===parseInt(e(437))/1+parseInt(e(413))/2*(parseInt(e(399))/3)+parseInt(e(426))/4*(parseInt(e(415))/5)+parseInt(e(380))/6+-parseInt(e(421))/7+parseInt(e(451))/8+-parseInt(e(443))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(401)]=[];[u(439)]=null;[u(420)]=null;[u(406)];[u(467)];[u(381)];static get[u(466)](){return u(397)}static get[u(391)](){return!0}static get[u(388)](){return!0}constructor(t){const e=u;super(t),this[e(406)]=new l(this[e(442)][e(448)],{elementName:e(425),getElementKey:()=>e(473)}),this[e(467)]=new l(this[e(442)][e(448)],{elementName:e(423),getElementKey:t=>t[e(408)](e(460))}),this[e(381)]=new l(this[e(442)][e(448)],{elementName:e(435),getElementKey:t=>t[e(408)](e(460))})}[u(463)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(449)][t(385)](e=>{const n=t,i=o[n(449)][n(458)][n(436)]();let s=!1;return this[n(432)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(476)](e,i)&&(s=!0),this[n(403)](e)&&(s=!0),this[n(411)](e)&&(s=!0),this[n(477)](e)&&(s=!0),s}),this[t(393)](o[t(449)],t(464),()=>{const e=t;o[e(378)]({isUndoable:!1},t=>{this[e(434)](t)})},{priority:t(402)}),this[t(393)](n,t(455),()=>{const e=t;this[e(401)]=[],this[e(406)][e(412)](),this[e(467)][e(412)](),this[e(381)][e(412)]()},{priority:t(447)})}[u(450)](){return this[u(439)]}[u(457)](t){const e=u;return this[e(401)][e(444)](e=>e.id===t)||null}[u(475)](){const t=u;return Array[t(459)](this[t(401)])}[u(417)](){return this[u(420)]}[u(424)](t){this[u(420)]=t}[u(472)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(401)][o(416)];i++)this[o(422)](t,i)&&(n=!0);return n}[u(440)](t,e){const o=u,n=t[o(418)](o(425),{});return t[o(407)](n,e),this[o(439)]=n,n}[u(434)](t){const e=u;if(!this[e(401)][e(416)]||this[e(439)])return;const o=this[e(401)][0][e(454)][e(395)],n=this[e(440)](t,o);for(const o of this[e(401)])o[e(392)][e(382)]||t[e(387)](o[e(392)],n,e(469));this[e(472)](t)}[u(432)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(406)][o(436)](e);if(r[o(416)]&&(this[o(439)]=r[0]),i[o(416)])if(i[o(416)]>1||this[o(439)]&&i[o(471)](t=>t!==this[o(439)])){const e=t[o(418)](o(425),{}),s=[];this[o(439)]&&s[o(427)](this[o(439)]),s[o(427)](...i),t[o(387)](e,s[0],o(419));for(const n of s)t[o(452)](t[o(384)](n),t[o(409)](e,o(469))),t[o(429)](n);this[o(439)]=e,this[o(472)](t),n=!0}else this[o(439)]=i[0];if(s[o(416)]&&o(431)===this[o(439)]?.[o(395)][o(394)]){for(const e of this[o(401)])t[o(429)](e[o(454)]),n=!0;this[o(401)]=[],this[o(439)]=null}return n}[u(390)](t,e){const o=u;let n=!1;const i=this[o(442)][o(453)][o(438)](o(430)),{inserted:s,moved:r}=this[o(381)][o(436)](e);for(const e of[...r,...s]){const s=e[o(408)](o(460)),r=this[o(457)](s);r&&(r[o(392)]=e),p(t,i,e)&&(n=!0)}return n}[u(476)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(467)][o(436)](e);for(const e of i)this[o(468)](t,e)&&(n=!0);for(const e of s)this[o(389)](t,e)&&(n=!0);for(const e of r)this[o(410)](t,e)&&(n=!0);return n}[u(411)](t){const e=u;if(!this[e(439)])return!1;let o=!1;if(this[e(439)][e(446)]!==this[e(401)][e(416)]){const n=[];for(const t of this[e(439)][e(405)]()){const i=t[e(408)](e(460));this[e(457)](i)||(n[e(400)](t),o=!0)}for(const o of n)t[e(429)](o)}const n=new Set,i=[];for(const t of this[e(439)][e(405)]()){const s=t[e(408)](e(460));n[e(396)](s)?(i[e(400)](t),o=!0):n[e(461)](s)}for(const o of i)t[e(429)](o);return this[e(439)][e(446)]||(t[e(429)](this[e(439)]),this[e(439)]=null,o=!0),o}[u(389)](t,e){const o=u;if(this[o(401)][o(444)](t=>t[o(454)]===e))return!1;let n=!1;const i=e[o(408)](o(460)),s=this[o(401)][o(398)](t=>t.id===i);-1!==s&&(t[o(429)](this[o(401)][s][o(454)]),this[o(401)][o(414)](s,1),n=!0);let r=this[o(439)]?function(t,e){const n=o;for(const o of t[n(405)]())if(o[n(408)](n(460))===e)return o;return null}(this[o(439)],i):null;r||(r=t[o(418)](o(435),{footnoteId:i}),this[o(439)]&&(t[o(387)](r,this[o(439)],o(469)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(442)][o(448)],this[o(401)],e);this[o(401)][o(414)](c,0,a);let l=c;return-1!==s&&(l=Math[o(456)](c,s)),this[o(472)](t,l)&&(n=!0),n}[u(468)](t,e){const o=u,n=this[o(401)][o(398)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(401)][n];return o(431)!==s[o(392)][o(395)][o(394)]&&(t[o(429)](s[o(392)]),i=!0),this[o(401)][o(414)](n,1),this[o(472)](t,n)&&(i=!0),i}[u(410)](t,e){const o=u,n=e[o(408)](o(460)),i=this[o(401)][o(398)](t=>t.id===n),s=this[o(401)][i];let r=!1;s[o(454)]=e,this[o(401)][o(414)](i,1);const a=m(this[o(442)][o(448)],this[o(401)],e);return this[o(401)][o(414)](a,0,s),this[o(472)](t,Math[o(456)](i,a))&&(r=!0),r}[u(422)](t,e){const o=u;if(!this[o(439)])return!1;const n=this[o(401)][e];let i;return i=this[o(420)]?this[o(420)]({footnote:n,container:this[o(439)],digits:String(this[o(401)][o(416)])[o(416)],value:e+1}):String(e+1),n[o(454)][o(408)](o(386))!=i&&(t[o(383)](o(386),i,n[o(454)]),!0)}[u(477)](t){const e=u;if(!this[e(439)]||this[e(401)][e(416)]<2)return!1;if(function(t,o){const n=e;if(t[n(416)]!==o[n(416)])return!1;for(let e=0;e<t[n(416)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(401)][e(465)](t=>t.id),Array[e(459)](this[e(439)][e(405)]())[e(465)](t=>t[e(408)](e(460)))))return!1;let o=!1;for(let n=0;n<this[e(401)][e(416)];n++){const i=this[e(401)][n],s=t[e(379)](i[e(392)]),r=t[e(409)](this[e(439)],n);s[e(433)](r)||(t[e(452)](t[e(470)](i[e(392)]),r),o=!0)}return o}[u(403)](t){const e=u;if(!this[e(401)][e(416)])return!1;const{model:o}=this[e(442)];let n=!1;for(let i=0;i<this[e(401)][e(416)]-1;i++){const s=this[e(401)][i],r=this[e(401)][i+1],a=o[e(379)](s[e(454)]),c=o[e(379)](r[e(454)]);e(428)===a[e(445)](c)&&(this[e(410)](t,s[e(454)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(446)])return!1;const i=n(e?474:441);return t[n(387)](t[n(418)](i),o),!0}function h(t,e){const o=f();return(h=function(t,e){return o[t-=378]})(t,e)}function m(t,e,o){const n=u;if(0===e[n(416)])return 0;const i=t[n(379)](o);for(let o=0;o<e[n(416)];o++){const s=e[o],r=t[n(379)](s[n(454)]);if(n(419)===i[n(445)](r))return o}const s=o[n(395)];let r=-1;for(let t=e[n(416)]-1;t>=0;t--)if(e[t][n(454)][n(395)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(449)][n(404)](),c=a[n(462)](s[n(394)]),l=a[c+1];if(l)for(let t=0;t<e[n(416)];t++)if(e[t][n(454)][n(395)][n(394)]===l)return t;return e[n(416)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=323]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","selection","getFirstRange","isBlock","insert-footnote-command-executed-with-invalid-id","5cAuSzW","createElement","1658448bNgimd","FootnotesEditing","366777xsiNhf","string","footnoteId","getItems","length","test","editor","change","plugins","3108252MDpblI","368DAQpUP","7216530wFFjSa","document","655304WflGWV","footnoteRef","3124962dPLitI","execute","3219416foHJqU","refresh","end","isEnabled","model","insertObject","get","isObject","checkChild","_moveSelectionToFootnoteDefinition"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(605409===parseInt(e(341))/1+parseInt(e(326))/2+parseInt(e(343))/3+-parseInt(e(345))/4*(parseInt(e(324))/5)+parseInt(e(339))/6+-parseInt(e(337))/7+-parseInt(e(338))/8*(parseInt(e(328))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(346)](){const t=g,e=this[t(334)][t(349)][t(340)][t(356)],o=this[t(355)](e);this[t(348)]=!!o}[g(344)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(340)],r=this[e(355)](s);if(!r)return;const a=o[e(336)][e(351)](e(327)),c=t?.[e(330)]??(0,i.uid)();!function(t){const o=e;return o(329)==typeof t&&t[o(332)]>0&&!/\s/[o(333)](t)&&!/^\d/[o(333)](t)}(c)?(0,i.logWarning)(e(323)):(n[e(335)](t=>{const o=e,i=t[o(325)](o(342),{footnoteId:c});n[o(350)](i,r,null)}),a[e(354)](c))}[g(355)](t){const e=g,{model:o}=this[e(334)],{schema:n}=o,i=t[e(357)]();for(const t of i[e(331)]())if(n[e(358)](t)||n[e(352)](t))return null;const s=i[e(347)];return n[e(353)](s,e(342))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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])](u(t)):null}function u(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 f(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])],f(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 u=(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(f(u+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(f(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(f(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])]:u}},{[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])](u(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:1763769600;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>P(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)(P(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})=>E(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>E(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({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:v()}),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 v({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 P(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 E(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 S=o(331);const T=_;function D(){const t=["from","editing","6685146wQvVNR","getFootnote","change","content","definition","clipboardInput","root","getRanges","stringify","listenTo","element","add","setAttribute","toData","2613804CeRupZ","contentInsertion","init","reduce","7024easVPR","includes","parse","pluginName","editor","insert","footnoteRef","toModel","isOfficialPlugin","getAttribute","getFootnotes","toView","sourceEditorId","5005770OLVkVG","getFirstRange","createRangeIn","flatMap","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","setData","end","_handlePasteFootnotesDefinitions","getData","footnoteId","getFootnotesDefinitionsObjectElement","getSelectedBlocks","drop","dataTransfer","outputTransformation","append","htmlProcessor","142cDbCpn","find","10740249vtpZVI","footnoteDefinition","application/ckeditor5-footnotes","footnotesDefinitions","push","remove","length","method","selection","createElement","entries","12460pHRZXn","11559FFNcPP","document","create","get","FootnotesClipboard","_handleCopyFootnotesDefinitions","5462646CprBzA","requires","_defineClipboardIntegration","data"];return(D=function(){return t})()}function _(t,e){const o=D();return(_=function(t,e){return o[t-=321]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(987598===-parseInt(e(329))/1*(parseInt(e(390))/2)+parseInt(e(335))/3+-parseInt(e(355))/4+-parseInt(e(372))/5+-parseInt(e(341))/6+parseInt(e(328))/7*(parseInt(e(359))/8)+parseInt(e(392))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class A extends t.Plugin{static get[T(362)](){return T(333)}static get[T(336)](){return[I,S.ClipboardPipeline]}static get[T(367)](){return!0}static get[T(376)](){return!0}[T(357)](){this[T(337)]()}[T(337)](){const t=T;this[t(334)](),this[t(380)]()}[T(334)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(332)](S.ClipboardPipeline),s=o[t(332)](d);this[t(350)](i,t(387),(o,i)=>{const r=t,a=L(n[r(374)](i[r(344)]));if(!a[r(323)])return;const c=s[r(369)](),l=a[r(358)]((t,o)=>{const n=r,i=c[n(391)](t=>t.id===o);if(i){const o=e[n(338)][n(370)](i[n(345)],{isClipboardPipeline:!0}),s=e[n(338)][n(389)][n(354)](o);t[i.id]=s}return t},Object[r(331)](null));i[r(386)][r(378)](r(394),JSON[r(349)](l))})}[T(380)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(340)],r=n[t(332)](S.ClipboardPipeline),a=n[t(332)](d);let c=null;this[t(350)](s[t(330)],t(346),(e,o)=>{const n=t,i=o[n(386)][n(381)](n(394));c=i?JSON[n(361)](i):null}),this[t(350)](r,t(356),(n,s)=>{const r=t,l=s[r(371)]===this[r(363)].id;l&&r(385)===s[r(324)]||o[r(343)](t=>{const n=r;let u=a[n(383)]();const f=!!u&&Array[n(339)](o[n(330)][n(325)][n(384)]())[n(360)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(374)](e))n.is(o(351),o(395))&&i[o(321)](n);for(const e of i)t[o(322)](e)}(t,s[n(344)]),!c)return;const{selection:d}=o[n(330)],p=d[n(373)]()[n(347)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(374)](e))if(n.is(o(351),o(395)))return n;return null}(t,s[n(344)]),u||=a[n(377)](t,p));const h=Array[n(339)](d[n(348)]())[n(375)](L),m=function(t,e,o){const s=n,r=Object[s(331)](null);for(const{item:n}of t[s(374)](e))if(n.is(s(351),s(365))){const e=n[s(368)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(353)](s(382),r[e],n)}return r}(t,s[n(344)],t=>{const e=n;return!l||!!a[e(342)](t)&&!h[e(360)](t)});for(const[o,i]of Object[n(327)](c)){const s=m[o]||o,r=t[n(326)](n(393),{footnoteId:s}),a=e[n(338)][n(389)][n(370)](i),c=e[n(338)][n(366)](a,r);t[n(388)](c,r),t[n(364)](r,u,n(379))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(351),e(365))&&o[e(352)](n[e(368)](e(382)));return Array[e(339)](o)}var N=o(311),R=o(355),V=o(929),O=o.n(V),K=o(297),M=o.n(K),j=o(102),B=o.n(j),W=o(123),U=o.n(W),z=o(741),H=o.n(z),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();O()(X.A,G);X.A&&X.A.locals&&X.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",J(t,N.ButtonView)),e.add("menuBar:insertFootnote",J(t,N.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 J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.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 Z=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=151]})(t,e)}function Q(){var t=["pluginName","258256KhWDBb","requires","6500480mCtFLU","45966OXUaFy","isOfficialPlugin","2989650NKYcCW","33JEJxLC","1667619qldrsF","isPremiumPlugin","4elpxpm","780726IfJdsU","994NIUnfm","Footnotes","10gdMFuE","289113GRwGHJ","432EyiGHK"];return(Q=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(727191===parseInt(e(159))/1+parseInt(e(166))/2*(-parseInt(e(155))/3)+parseInt(e(158))/4*(parseInt(e(154))/5)+-parseInt(e(152))/6*(-parseInt(e(160))/7)+parseInt(e(151))/8+-parseInt(e(156))/9*(parseInt(e(162))/10)+parseInt(e(163))/11*(-parseInt(e(164))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[Z(165)](){return Z(161)}static get[Z(167)](){return[I,A,q]}static get[Z(153)](){return!0}static get[Z(157)](){return!0}}function tt(){const t=["upper-latin","1337016YUCNLh","lower-alpha","5xOyMnK","upper-roman","60003EBwblL","8iCQDHa","883172GYIaUw","1017604vyRgKi","126rSYgbx","lower-latin","decimal","3144057RcSyYE","1139352UvVCWS","lower-roman","1563930NkjmKP","decimal-leading-zero","upper-alpha"];return(tt=function(){return t})()}function et(t,e){const o=tt();return(et=function(t,e){return o[t-=461]})(t,e)}const ot=et;!function(t){const e=et,o=t();for(;;)try{if(348133===-parseInt(e(472))/1+-parseInt(e(475))/2+-parseInt(e(462))/3+-parseInt(e(474))/4*(parseInt(e(470))/5)+-parseInt(e(468))/6+-parseInt(e(461))/7*(parseInt(e(473))/8)+parseInt(e(476))/9*(parseInt(e(464))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);const nt=[ot(478),ot(465),ot(477),ot(467),ot(469),ot(466),ot(463),ot(471)];function it(t,e){const o=st();return(it=function(t,e){return o[t-=106]})(t,e)}function st(){const t=["isEnabled","refresh","104sYTRrG","7126IZPxMm","plugins","getFootnotesDefinitionsObjectElement","value","34MZtWrA","model","17970glyhcN","1027638cBhQnQ","913CXwmLX","getAttribute","_updateFootnotesCounters","12474DugpQl","206616zNdINu","20LluYrG","execute","774486dhShGB","footnotesListStyle","98128cZQqmN","includes","change","get","setAttribute"];return(st=function(){return t})()}const rt=it;!function(t){const e=it,o=t();for(;;)try{if(157999===-parseInt(e(114))/1*(parseInt(e(121))/2)+parseInt(e(125))/3+-parseInt(e(127))/4*(-parseInt(e(123))/5)+-parseInt(e(122))/6+parseInt(e(110))/7*(parseInt(e(109))/8)+-parseInt(e(117))/9+parseInt(e(116))/10*(parseInt(e(118))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[rt(108)](){const t=rt,{editor:e}=this,o=e[t(111)][t(130)](d)[t(112)]();this[t(107)]=!!o,this[t(113)]=o?.[t(119)](t(126))??null}[rt(124)]({value:t}){const e=rt,{editor:o}=this,n=o[e(111)][e(130)](d),i=n[e(112)]();i&&nt[e(128)](t)&&o[e(115)][e(129)](o=>{const s=e;o[s(106)](s(126),t,i),n[s(120)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=262]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(803346===parseInt(e(267))/1*(-parseInt(e(277))/2)+-parseInt(e(280))/3+parseInt(e(273))/4+parseInt(e(274))/5*(parseInt(e(278))/6)+parseInt(e(265))/7*(parseInt(e(268))/8)+-parseInt(e(282))/9*(parseInt(e(262))/10)+parseInt(e(276))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(266)](){const t=ct,{editor:e}=this,o=e[t(275)][t(279)](d)[t(271)]();this[t(272)]=!!o,this[t(286)]=o?.[t(263)](t(285))??null}[ct(283)]({value:t}){const e=ct,{editor:o}=this,n=o[e(275)][e(279)](d),i=n[e(271)]();i&&Number[e(269)](t)&&o[e(281)][e(270)](o=>{const s=e;o[s(284)](s(285),t,i),n[s(264)](o)})}}function ft(){const t=["1405dIhzFL","plugins","8356128WLTKIT","194kXFLNk","32196SaTFfw","get","1556442Rjigcm","model","1179WdtugJ","execute","setAttribute","footnotesListStart","value","73760AQUnXD","getAttribute","_updateFootnotesCounters","3389603FMVuJG","refresh","7127DufNnN","8xhIIcW","isInteger","change","getFootnotesDefinitionsObjectElement","isEnabled","912048PMHnrM"];return(ft=function(){return t})()}function dt(t,e){const o=yt();return(dt=function(t,e){return o[t-=253]})(t,e)}const pt=dt;!function(t){const e=dt,o=t();for(;;)try{if(346239===-parseInt(e(331))/1+-parseInt(e(275))/2+parseInt(e(266))/3*(-parseInt(e(336))/4)+-parseInt(e(326))/5*(parseInt(e(262))/6)+parseInt(e(296))/7+-parseInt(e(328))/8*(-parseInt(e(338))/9)+-parseInt(e(280))/10*(-parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[pt(279)](){return pt(299)}static get[pt(320)](){return[I,d]}static get[pt(351)](){return!0}static get[pt(259)](){return!0}[pt(312)](){const t=pt,{editor:e}=this;e[t(309)][t(288)](t(302),t(349)),e[t(309)][t(288)](t(260),1),e[t(330)][t(340)](t(272),new at(e)),e[t(330)][t(340)](t(339),new ut(e)),this[t(264)](),this[t(273)](),this[t(292)](),this[t(318)]()}[pt(264)](){const t=pt,{editor:e}=this,{schema:o}=e[t(281)];o[t(267)](t(278),{allowAttributes:[t(308),t(257)]})}[pt(273)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(343)](t(346))[t(340)](e=>{const o=t;e.on(o(291),(t,e,n)=>{const s=o,r=e[s(274)],a=e[s(261)]?.[s(325)];r[s(344)](s(341))&&a?.is(s(255),s(278))&&(function(t,e,o,n){const i=s;if(!n[i(337)](e,i(257)))return;let r=1;const a=o[i(334)][i(276)](t,{attributes:i(283)});if(a){const e=Number[i(268)](t[i(263)](i(283)),10);Number[i(335)](e)||(r=e)}!a&&e[i(353)](i(257))||o[i(317)][i(287)](i(257),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(337)](e,i(308)))return;let r=i(349),a=!1;if(o[i(334)][i(276)](t,{attributes:i(294)})){const e={1:i(349),a:i(277),A:i(324),i:i(289),I:i(315)}[t[i(263)](i(294))];e&&(r=e),a=!0}o[i(334)][i(276)](t,{styles:i(354)})&&(r=t[i(352)](i(354)),a=!0),!a&&e[i(353)](i(308))||o[i(317)][i(287)](i(308),r,e)}(r,a,n,i))})}),o[t(343)](t(305))[t(340)](e=>{const o=t;e.on(o(285),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;null==r||1===r?n[i(317)][i(284)](i(283),s):n[i(317)][i(287)](i(283),String(r),s)}),e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(334)][i(276)](e[i(293)],t[i(304)]))return;const s=mt(e[i(293)],n[i(332)]),{attributeNewValue:r}=e;r&&i(349)!==r?n[i(317)][i(307)](i(354),r,s):n[i(317)][i(298)](i(354),s)})})}[pt(318)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(295)][t(347)](d),i=this[t(313)](),s=this[t(314)]();o[t(271)][t(256)](e=>{const r=t,a=o[r(271)][r(311)][r(265)]();let c=!1;for(const t of a){if(r(297)!==t[r(294)]||r(327)===t[r(304)])continue;const n=o[r(300)](t[r(286)][r(350)]);for(const t of n[r(301)]())t.is(r(255),r(278))&&(!t[r(353)](r(257))&&o[r(345)][r(337)](t,r(257))&&(e[r(287)](r(257),s,t),c=!0),!t[r(353)](r(308))&&o[r(345)][r(337)](t,r(308))&&(e[r(287)](r(308),i,t),c=!0))}return c&&n[r(316)](e),c})}[pt(292)](){const t=pt,{editor:e}=this;e[t(295)][t(347)](d)[t(253)](e=>this[t(282)](e))}[pt(313)](){const t=pt;return this[t(258)][t(309)][t(347)](t(302))}[pt(314)](){const t=pt;return this[t(258)][t(309)][t(347)](t(260))}[pt(282)]({container:t,value:e,digits:o}){const n=pt,i=t[n(263)](n(308)),s=t[n(263)](n(257)),r=Math[n(333)](e)+(s??1)-1;switch(i){case n(269):return function(t,e){const o=n;return String(t)[o(323)](e,"0")}(r,Math[n(319)](2,o));case n(277):case n(342):return gt(r,!1);case n(324):case n(254):return gt(r,!0);case n(289):return bt(r,!1);case n(315):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt,n=e[o(322)](t);return Array[o(270)](n[o(329)]())[o(321)](t=>t.is(o(255),"ol")&&t[o(344)](o(341)))}function gt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(290)](97+t)+n,i=Math[o(333)]((i-1)/26)}return e?n[o(348)]():n}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(){const t=["getAttribute","_defineSchema","getChanges","3aCeIeX","extend","parseInt","decimal-leading-zero","from","document","footnotesStyle","_defineConverters","viewItem","1038540TqNJcQ","consume","lower-alpha","footnotesDefinitions","pluginName","12105440aFEhCh","model","_formatFootnoteListValue","start","removeAttribute","attribute:footnotesListStart:footnotesDefinitions","position","setAttribute","define","lower-roman","fromCharCode","element:ol","_defineFormatter","item","type","plugins","393358tNaHsR","insert","removeStyle","FootnotesPropertiesEditing","createRangeOn","getItems","footnotes.footnotesProperties.defaultListStyle","attribute:footnotesListStyle:footnotesDefinitions","name","downcast","11vtJWmh","setStyle","footnotesListStyle","config","toLowerCase","differ","init","_getDefaultListStyle","_getDefaultStartIndex","upper-roman","_updateFootnotesCounters","writer","_definePostfixer","max","requires","find","toViewElement","padStart","upper-alpha","parent","10XhoRNq","$text","4936016SBGFkO","getChildren","commands","463990fkRtbg","mapper","floor","consumable","isNaN","566156RharKo","checkAttribute","9XMUFgJ","footnotesStart","add","footnotes-list","lower-latin","for","hasClass","schema","upcast","get","toUpperCase","decimal","nodeAfter","isOfficialPlugin","getStyle","hasAttribute","list-style-type","setFootnoteFormatter","upper-latin","element","registerPostFixer","footnotesListStart","editor","isPremiumPlugin","footnotes.footnotesProperties.defaultStartIndex","modelCursor","1238106yXgBWS"];return(yt=function(){return t})()}function bt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(310)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.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,N.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 N.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 N.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 N.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 N.LabeledFieldView(this.locale,N.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 vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();O()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.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,N.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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});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}=N.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=Pt;function xt(){var t=["10ZPYPJG","205326PIdfKc","2173941ZGkDCw","isOfficialPlugin","425YxRdnc","4338531ioPnfx","pluginName","4664IqntGO","70RRlYao","FootnotesProperties","153xXflwc","767152SNLOuI","isPremiumPlugin","84DOTwEC","396504SmuNGZ","requires","10536dZJbbD"];return(xt=function(){return t})()}function Pt(t,e){var o=xt();return(Pt=function(t,e){return o[t-=264]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(434820===-parseInt(e(279))/1*(parseInt(e(276))/2)+-parseInt(e(266))/3+parseInt(e(268))/4*(-parseInt(e(273))/5)+-parseInt(e(270))/6*(-parseInt(e(277))/7)+-parseInt(e(280))/8+parseInt(e(274))/9*(-parseInt(e(269))/10)+-parseInt(e(271))/11*(-parseInt(e(265))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Et extends t.Plugin{static get[Ft(275)](){return Ft(278)}static get[Ft(267)](){return[ht,Ct]}static get[Ft(272)](){return!0}static get[Ft(264)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=122]})(t,e)}function Tt(){var t=["40ysuEGc","6ZPcMLK","599384EYNdtL","6hxVpkP","11100kJzrpm","9SYbaRI","280510VgKRwE","3866048pPqYKR","30206iPIeup","991341VLptqz","363650yVjgdX","3552135CgyCMt"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(495915===parseInt(e(128))/1+-parseInt(e(133))/2*(-parseInt(e(122))/3)+parseInt(e(126))/4+parseInt(e(130))/5*(parseInt(e(132))/6)+parseInt(e(129))/7*(-parseInt(e(131))/8)+parseInt(e(124))/9*(parseInt(e(125))/10)+parseInt(e(127))/11*(-parseInt(e(123))/12))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 _0x2de1fc,Command as _0x16d21d}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x3d3a52,isWidget as _0x70a053,toWidgetEditable as _0x3cff8e,WidgetToolbarRepository as _0x184412}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1137ee,logWarning as _0x2db519,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xb1f581,ClickObserver as _0x2cac24}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x313a74}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x153377,ButtonView as _0x4d49cb,View as _0x1997c0,ViewCollection as _0x47f0a5,FocusCycler as _0x5659cf,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x4cdb44,BalloonPanelView as _0x423a59,createDropdown as _0x2db7d9}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x81cbe2,IconListStyleDecimal as _0x121ceb,IconListStyleDecimalLeadingZero as _0x5c85d6,IconListStyleLowerRoman as _0xb5df0d,IconListStyleUpperRoman as _0x160762,IconListStyleLowerLatin as _0x996717,IconListStyleUpperLatin as _0x1e2f21}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x16a03c,_0x4cd69f){this['_model']=_0x16a03c,this['_elementName']=_0x4cd69f['elementName'],this['_getElementKey']=_0x4cd69f['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3467a3){const _0x56b161=new Set(),_0x4be195=new Map();for(const _0x4e6a70 of _0x3467a3){if('insert'===_0x4e6a70['type']&&'$text'!==_0x4e6a70['name']&&_0x4e6a70['position']['nodeAfter']){const _0x377958=this['_model']['createRangeOn'](_0x4e6a70['position']['nodeAfter']);for(const _0x16b717 of _0x377958['getItems']()){if(!_0x16b717['is']('element',this['_elementName']))continue;const _0x1f6ea4=this['_getElementKey'](_0x16b717);_0x4be195['has'](_0x1f6ea4)||_0x4be195['set'](_0x1f6ea4,[]),_0x4be195['get'](_0x1f6ea4)['push'](_0x16b717);}}if('remove'===_0x4e6a70['type']&&_0x4e6a70['name']===this['_elementName']){const _0x2003c0=this['_getElementKey']({'getAttribute':_0x910808=>_0x4e6a70['attributes']['get'](_0x910808)});_0x56b161['add'](_0x2003c0);}}for(const [_0x2ac8e1,_0x543c35]of this['_trackedElements'])'$graveyard'===_0x543c35['root']['rootName']&&_0x56b161['add'](_0x2ac8e1);for(const _0x2300a8 of _0x56b161)this['_trackedElements']['delete'](_0x2300a8);for(const [_0x1e432b,_0x21f050]of _0x4be195)this['_trackedElements']['set'](_0x1e432b,_0x21f050[_0x21f050['length']-0x1]);const _0x4715e7=new Set();for(const [_0x331280,_0x4640d0]of _0x4be195)_0x56b161['has'](_0x331280)&&(_0x4715e7['add'](_0x4640d0[0x0]),_0x4640d0['length']>0x1?_0x4be195['set'](_0x331280,_0x4640d0['slice'](0x1)):_0x4be195['delete'](_0x331280),_0x56b161['delete'](_0x331280));return{'removed':Array['from'](_0x56b161),'inserted':Array['from'](_0x4be195['values']())['flat'](),'moved':Array['from'](_0x4715e7)};}}class c extends _0x2de1fc{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x20d040){super(_0x20d040),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x5ef615=>_0x5ef615['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x46b807=>_0x46b807['getAttribute']('footnoteId')});}['init'](){const {editor:_0x349b80}=this,{model:_0x52b456,data:_0x2561b4}=_0x349b80;_0x52b456['document']['registerPostFixer'](_0x4e4427=>{const _0x5c2519=_0x52b456['document']['differ']['getChanges']();let _0x52b47d=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4e4427,_0x5c2519)&&(_0x52b47d=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4e4427,_0x5c2519)&&(_0x52b47d=!0x0),this['_handleFootnoteReferencesChanges'](_0x4e4427,_0x5c2519)&&(_0x52b47d=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4e4427)&&(_0x52b47d=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4e4427)&&(_0x52b47d=!0x0),this['_sortFootnoteDefinitions'](_0x4e4427)&&(_0x52b47d=!0x0),_0x52b47d;}),this['listenTo'](_0x52b456['document'],'change:data',()=>{_0x52b456['enqueueChange']({'isUndoable':!0x1},_0x16e08e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x16e08e);});},{'priority':'low'}),this['listenTo'](_0x2561b4,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4f4186){return this['_footnotes']['find'](_0x1b30ce=>_0x1b30ce['id']===_0x4f4186)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2e8405){this['_footnoteFormatter']=_0x2e8405;}['_updateFootnotesCounters'](_0x1c32f8,_0x5cb57d=0x0){let _0x1a248d=!0x1;for(let _0x45495f=_0x5cb57d;_0x45495f<this['_footnotes']['length'];_0x45495f++)this['_updateFootnoteRefCounter'](_0x1c32f8,_0x45495f)&&(_0x1a248d=!0x0);return _0x1a248d;}['_insertEmptyFootnotesDefinitionsContainer'](_0x244c60,_0x2f0b69){const _0x4b8832=_0x244c60['createElement']('footnotesDefinitions',{});return _0x244c60['append'](_0x4b8832,_0x2f0b69),this['_footnotesDefinitions']=_0x4b8832,_0x4b8832;}['_ensureFootnotesDefinitionsContainerExists'](_0x41c770){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x18a293=this['_footnotes'][0x0]['reference']['root'],_0x5c1d81=this['_insertEmptyFootnotesDefinitionsContainer'](_0x41c770,_0x18a293);for(const _0x1f1d6c of this['_footnotes'])_0x1f1d6c['definition']['parent']||_0x41c770['insert'](_0x1f1d6c['definition'],_0x5c1d81,'end');this['_updateFootnotesCounters'](_0x41c770);}['_handleFootnotesDefinitionsObjectChanges'](_0x563005,_0x3bc31f){let _0x584854=!0x1;const {inserted:_0x3729c9,removed:_0x151f99,moved:_0x27689c}=this['_footnoteDefsContainerTracker']['getChanges'](_0x3bc31f);if(_0x27689c['length']&&(this['_footnotesDefinitions']=_0x27689c[0x0]),_0x3729c9['length']){if(_0x3729c9['length']>0x1||this['_footnotesDefinitions']&&_0x3729c9['some'](_0xc22e12=>_0xc22e12!==this['_footnotesDefinitions'])){const _0x2a8c9b=_0x563005['createElement']('footnotesDefinitions',{}),_0x22c22c=[];this['_footnotesDefinitions']&&_0x22c22c['push'](this['_footnotesDefinitions']),_0x22c22c['push'](..._0x3729c9),_0x563005['insert'](_0x2a8c9b,_0x22c22c[0x0],'before');for(const _0x221e3a of _0x22c22c)_0x563005['move'](_0x563005['createRangeIn'](_0x221e3a),_0x563005['createPositionAt'](_0x2a8c9b,'end')),_0x563005['remove'](_0x221e3a);this['_footnotesDefinitions']=_0x2a8c9b,this['_updateFootnotesCounters'](_0x563005),_0x584854=!0x0;}else this['_footnotesDefinitions']=_0x3729c9[0x0];}if(_0x151f99['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x375d53 of this['_footnotes'])_0x563005['remove'](_0x375d53['reference']),_0x584854=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x584854;}['_handleFootnoteDefinitionsChanges'](_0x10fbcb,_0x323d53){let _0x4395ac=!0x1;const _0x548319=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x228d45,moved:_0x50c438}=this['_footnoteDefsTracker']['getChanges'](_0x323d53);for(const _0x1c9cbd of[..._0x50c438,..._0x228d45]){const _0x433999=_0x1c9cbd['getAttribute']('footnoteId'),_0x1eb3f5=this['getFootnote'](_0x433999);_0x1eb3f5&&(_0x1eb3f5['definition']=_0x1c9cbd),_(_0x10fbcb,_0x548319,_0x1c9cbd)&&(_0x4395ac=!0x0);}return _0x4395ac;}['_handleFootnoteReferencesChanges'](_0x227ec6,_0x1611fd){let _0x10d34=!0x1;const {removed:_0x5c8c64,inserted:_0x272b1b,moved:_0x3f2c84}=this['_footnoteRefsTracker']['getChanges'](_0x1611fd);for(const _0x41cc3a of _0x5c8c64)this['_handleRemoveFootnoteReferenceById'](_0x227ec6,_0x41cc3a)&&(_0x10d34=!0x0);for(const _0x306550 of _0x272b1b)this['_handleInsertedFootnoteReference'](_0x227ec6,_0x306550)&&(_0x10d34=!0x0);for(const _0x4572c5 of _0x3f2c84)this['_handleMovedFootnoteReference'](_0x227ec6,_0x4572c5)&&(_0x10d34=!0x0);return _0x10d34;}['_handleFootnotesDefinitionsObjectSync'](_0x552bde){if(!this['_footnotesDefinitions'])return!0x1;let _0x354171=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x25c138=[];for(const _0xa7af2a of this['_footnotesDefinitions']['getChildren']()){const _0x572d43=_0xa7af2a['getAttribute']('footnoteId');this['getFootnote'](_0x572d43)||(_0x25c138['unshift'](_0xa7af2a),_0x354171=!0x0);}for(const _0x46c13f of _0x25c138)_0x552bde['remove'](_0x46c13f);}const _0x497845=new Set(),_0x30c773=[];for(const _0x555551 of this['_footnotesDefinitions']['getChildren']()){const _0x5df2d3=_0x555551['getAttribute']('footnoteId');_0x497845['has'](_0x5df2d3)?(_0x30c773['unshift'](_0x555551),_0x354171=!0x0):_0x497845['add'](_0x5df2d3);}for(const _0x2e9246 of _0x30c773)_0x552bde['remove'](_0x2e9246);return this['_footnotesDefinitions']['childCount']||(_0x552bde['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x354171=!0x0),_0x354171;}['_handleInsertedFootnoteReference'](_0x3ad52f,_0x43e373){if(this['_footnotes']['find'](_0x1627d7=>_0x1627d7['reference']===_0x43e373))return!0x1;let _0x310178=!0x1;const _0x1c558a=_0x43e373['getAttribute']('footnoteId'),_0x28777c=this['_footnotes']['findIndex'](_0x464ac3=>_0x464ac3['id']===_0x1c558a);-0x1!==_0x28777c&&(_0x3ad52f['remove'](this['_footnotes'][_0x28777c]['reference']),this['_footnotes']['splice'](_0x28777c,0x1),_0x310178=!0x0);let _0x3628dc=this['_footnotesDefinitions']?function(_0xb6814f,_0x88a303){for(const _0x39e79d of _0xb6814f['getChildren']())if(_0x39e79d['getAttribute']('footnoteId')===_0x88a303)return _0x39e79d;return null;}(this['_footnotesDefinitions'],_0x1c558a):null;_0x3628dc||(_0x3628dc=_0x3ad52f['createElement']('footnoteDefinition',{'footnoteId':_0x1c558a}),this['_footnotesDefinitions']&&(_0x3ad52f['insert'](_0x3628dc,this['_footnotesDefinitions'],'end'),_0x310178=!0x0));const _0x71baca={'id':_0x1c558a,'reference':_0x43e373,'definition':_0x3628dc},_0x114cdd=I(this['editor']['model'],this['_footnotes'],_0x43e373);this['_footnotes']['splice'](_0x114cdd,0x0,_0x71baca);let _0x203383=_0x114cdd;return-0x1!==_0x28777c&&(_0x203383=Math['min'](_0x114cdd,_0x28777c)),this['_updateFootnotesCounters'](_0x3ad52f,_0x203383)&&(_0x310178=!0x0),_0x310178;}['_handleRemoveFootnoteReferenceById'](_0x3b8b3e,_0x45728c){const _0x14a841=this['_footnotes']['findIndex'](_0x3bb6ba=>_0x3bb6ba['id']===_0x45728c);if(-0x1===_0x14a841)return!0x1;let _0x5e37f5=!0x1;const _0x4c9f37=this['_footnotes'][_0x14a841];return'$graveyard'!==_0x4c9f37['definition']['root']['rootName']&&(_0x3b8b3e['remove'](_0x4c9f37['definition']),_0x5e37f5=!0x0),this['_footnotes']['splice'](_0x14a841,0x1),this['_updateFootnotesCounters'](_0x3b8b3e,_0x14a841)&&(_0x5e37f5=!0x0),_0x5e37f5;}['_handleMovedFootnoteReference'](_0x15db93,_0x7b103f){const _0x5238cd=_0x7b103f['getAttribute']('footnoteId'),_0x18f7d4=this['_footnotes']['findIndex'](_0x8a4716=>_0x8a4716['id']===_0x5238cd),_0x19c0c8=this['_footnotes'][_0x18f7d4];let _0x3b1702=!0x1;_0x19c0c8['reference']=_0x7b103f,this['_footnotes']['splice'](_0x18f7d4,0x1);const _0x2c5110=I(this['editor']['model'],this['_footnotes'],_0x7b103f);return this['_footnotes']['splice'](_0x2c5110,0x0,_0x19c0c8),this['_updateFootnotesCounters'](_0x15db93,Math['min'](_0x18f7d4,_0x2c5110))&&(_0x3b1702=!0x0),_0x3b1702;}['_updateFootnoteRefCounter'](_0x309c96,_0x4f7c2d){if(!this['_footnotesDefinitions'])return!0x1;const _0x1c2fd3=this['_footnotes'][_0x4f7c2d];let _0x109d76;return _0x109d76=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1c2fd3,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4f7c2d+0x1}):String(_0x4f7c2d+0x1),_0x1c2fd3['reference']['getAttribute']('footnoteCounter')!=_0x109d76&&(_0x309c96['setAttribute']('footnoteCounter',_0x109d76,_0x1c2fd3['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5639d8){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xeca10,_0x41e63f){if(_0xeca10['length']!==_0x41e63f['length'])return!0x1;for(let _0x7451e5=0x0;_0x7451e5<_0xeca10['length'];_0x7451e5++)if(_0xeca10[_0x7451e5]!==_0x41e63f[_0x7451e5])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5d26bf=>_0x5d26bf['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x5e4e52=>_0x5e4e52['getAttribute']('footnoteId'))))return!0x1;let _0x4c3cdb=!0x1;for(let _0x3ad133=0x0;_0x3ad133<this['_footnotes']['length'];_0x3ad133++){const _0x494c91=this['_footnotes'][_0x3ad133],_0x27b022=_0x5639d8['createPositionBefore'](_0x494c91['definition']),_0x222430=_0x5639d8['createPositionAt'](this['_footnotesDefinitions'],_0x3ad133);_0x27b022['isEqual'](_0x222430)||(_0x5639d8['move'](_0x5639d8['createRangeOn'](_0x494c91['definition']),_0x222430),_0x4c3cdb=!0x0);}return _0x4c3cdb;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5ab4af){if(!this['_footnotes']['length'])return!0x1;const {model:_0x34778e}=this['editor'];let _0x145696=!0x1;for(let _0x51a579=0x0;_0x51a579<this['_footnotes']['length']-0x1;_0x51a579++){const _0x3e57c5=this['_footnotes'][_0x51a579],_0x500213=this['_footnotes'][_0x51a579+0x1],_0x48deb8=_0x34778e['createPositionBefore'](_0x3e57c5['reference']),_0x27ed7f=_0x34778e['createPositionBefore'](_0x500213['reference']);'after'===_0x48deb8['compareWith'](_0x27ed7f)&&(this['_handleMovedFootnoteReference'](_0x5ab4af,_0x3e57c5['reference']),_0x51a579=-0x1,_0x145696=!0x0);}return _0x145696;}}function _(_0x5e394a,_0x1ff70e,_0x39b716){if(_0x39b716['childCount'])return!0x1;const _0x4a1151=_0x1ff70e?'paragraph':'footnoteInlineContent';return _0x5e394a['insert'](_0x5e394a['createElement'](_0x4a1151),_0x39b716),!0x0;}function I(_0x5435b2,_0x4c76da,_0x51a180){if(0x0===_0x4c76da['length'])return 0x0;const _0x58a417=_0x5435b2['createPositionBefore'](_0x51a180);for(let _0x1463c0=0x0;_0x1463c0<_0x4c76da['length'];_0x1463c0++){const _0x5ab25f=_0x4c76da[_0x1463c0],_0x2f7fc7=_0x5435b2['createPositionBefore'](_0x5ab25f['reference']);if('before'===_0x58a417['compareWith'](_0x2f7fc7))return _0x1463c0;}const _0x2d896d=_0x51a180['root'];let _0x20733d=-0x1;for(let _0x30e554=_0x4c76da['length']-0x1;_0x30e554>=0x0;_0x30e554--)if(_0x4c76da[_0x30e554]['reference']['root']===_0x2d896d){_0x20733d=_0x30e554;break;}if(-0x1!==_0x20733d)return _0x20733d+0x1;const _0x559003=_0x5435b2['document']['getRootNames'](),_0x35ba04=_0x559003['indexOf'](_0x2d896d['rootName']),_0x28821e=_0x559003[_0x35ba04+0x1];if(_0x28821e){for(let _0x56e4e7=0x0;_0x56e4e7<_0x4c76da['length'];_0x56e4e7++)if(_0x4c76da[_0x56e4e7]['reference']['root']['rootName']===_0x28821e)return _0x56e4e7;}return _0x4c76da['length'];}class m extends _0x16d21d{['refresh'](){const _0x2949e7=this['editor']['model']['document']['selection'],_0x17f77e=this['_getPositionToInsertFootnote'](_0x2949e7);this['isEnabled']=!!_0x17f77e;}['execute'](_0xe3daae){const {editor:_0x21a53c}=this,{model:_0x495562}=_0x21a53c,{selection:_0x375cba}=_0x495562['document'],_0x4dc025=this['_getPositionToInsertFootnote'](_0x375cba);if(!_0x4dc025)return;const _0x3a530a=_0x21a53c['plugins']['get']('FootnotesEditing'),_0x3e8797=_0xe3daae?.['footnoteId']??_0x1137ee();!function(_0xac1676){return'string'==typeof _0xac1676&&_0xac1676['length']>0x0&&!/\s/['test'](_0xac1676)&&!/^\d/['test'](_0xac1676);}(_0x3e8797)?_0x2db519('insert-footnote-command-executed-with-invalid-id'):(_0x495562['change'](_0x5c3e2f=>{const _0x5dc776=_0x5c3e2f['createElement']('footnoteRef',{'footnoteId':_0x3e8797});_0x495562['insertObject'](_0x5dc776,_0x4dc025,null);}),_0x3a530a['_moveSelectionToFootnoteDefinition'](_0x3e8797));}['_getPositionToInsertFootnote'](_0xae8713){const {model:_0x74bd62}=this['editor'],{schema:_0x36c491}=_0x74bd62,_0x42452a=_0xae8713['getFirstRange']();for(const _0x2230f7 of _0x42452a['getItems']())if(_0x36c491['isBlock'](_0x2230f7)||_0x36c491['isObject'](_0x2230f7))return null;const _0x16c4fe=_0x42452a['end'];return _0x36c491['checkChild'](_0x16c4fe,'footnoteRef')?_0x16c4fe:null;}}class r extends _0x2de1fc{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x204a22}=this;_0x204a22['config']['define']('footnotes.multiBlock',!0x0),_0x204a22['commands']['add']('insertFootnote',new m(_0x204a22)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x43b382){const _0x15c18b=_0x3363c6([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]),_0x4fd094=0x47a28506,_0x561283=0x47a5fcbe^_0x4fd094,_0xec96d=window[_0x3363c6([0x44,0x61,0x74,0x65])][_0x3363c6([0x6e,0x6f,0x77])](),_0x5378ee=_0x43b382[_0x3363c6([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe9c57=new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bf052=>{_0x5378ee[_0x3363c6([0x6f,0x6e,0x63,0x65])](_0x3363c6([0x72,0x65,0x61,0x64,0x79]),_0x1bf052);}),_0x52890e={[_0x3363c6([0x6b,0x74,0x79])]:_0x3363c6([0x45,0x43]),[_0x3363c6([0x75,0x73,0x65])]:_0x3363c6([0x73,0x69,0x67]),[_0x3363c6([0x63,0x72,0x76])]:_0x3363c6([0x50,0x2d,0x32,0x35,0x36]),[_0x3363c6([0x78])]:_0x3363c6([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]),[_0x3363c6([0x79])]:_0x3363c6([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]),[_0x3363c6([0x61,0x6c,0x67])]:_0x3363c6([0x45,0x53,0x32,0x35,0x36])},_0x670193=_0x5378ee[_0x3363c6([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3363c6([0x67,0x65,0x74])](_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x351afc(){let _0x572fc2,_0x5a91a5=null,_0x597fd2=null;try{if(_0x670193==_0x3363c6([0x47,0x50,0x4c]))return _0x3363c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x572fc2=_0x3d36e2(),!_0x572fc2)return _0x3363c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x572fc2[_0x3363c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x597fd2=_0x17cfa3(_0x572fc2[_0x3363c6([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x572fc2[_0x3363c6([0x6a,0x74,0x69])])),await _0x3687d4()?_0x14b07a()?_0x40a6e3()?_0x3363c6([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a0b59()?(_0x572fc2[_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3363c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5a91a5=_0x6d5c8d(_0x3363c6([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x572fc2[_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3363c6([0x74,0x72,0x69,0x61,0x6c])&&(_0x5a91a5=_0x6d5c8d(_0x3363c6([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1aaa39()):_0x3363c6([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3363c6([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3363c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3363c6([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40a6e3(){const _0x5f3a56=[_0x3363c6([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3363c6([0x74,0x72,0x69,0x61,0x6c])][_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x572fc2[_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xec96d/0x3e8:0xe10*_0x561283;return _0x572fc2[_0x3363c6([0x65,0x78,0x70])]<_0x5f3a56;}function _0x14b07a(){const _0x49f282=_0x572fc2[_0x3363c6([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x49f282&&(!!_0x49f282[_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3363c6([0x2a]))||!!_0x49f282[_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3363c6([0x46,0x4f,0x4f])));}function _0x4a0b59(){const _0x45e68a=_0x572fc2[_0x3363c6([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x45e68a||0x0==_0x45e68a[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x476108}=new URL(window[_0x3363c6([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x45e68a[_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x476108))return!0x0;const _0x5ec34f=_0x476108[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])](_0x3363c6([0x2e]));return _0x45e68a[_0x3363c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x10d934=>_0x10d934[_0x3363c6([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3363c6([0x2a])))[_0x3363c6([0x6d,0x61,0x70])](_0x3dc420=>_0x3dc420[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])](_0x3363c6([0x2e])))[_0x3363c6([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x522107=>_0x522107[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5ec34f[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3363c6([0x6d,0x61,0x70])](_0x3a4e04=>Array(_0x5ec34f[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a4e04[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3363c6([0x66,0x69,0x6c,0x6c])](_0x3a4e04[0x0]===_0x3363c6([0x2a])?_0x3363c6([0x2a]):'')[_0x3363c6([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a4e04))[_0x3363c6([0x73,0x6f,0x6d,0x65])](_0x45f920=>_0x5ec34f[_0x3363c6([0x65,0x76,0x65,0x72,0x79])]((_0x441fc1,_0x599878)=>_0x45f920[_0x599878]===_0x441fc1||_0x45f920[_0x599878]===_0x3363c6([0x2a])));}function _0x1aaa39(){return _0x5a91a5&&_0x597fd2?new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x28fbd1,_0x2660f8)=>{_0x5a91a5[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x28fbd1,_0x2660f8),_0x597fd2[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x108346=>{_0x108346!=_0x3363c6([0x56,0x61,0x6c,0x69,0x64])&&_0x28fbd1(_0x108346);},_0x2660f8);}):_0x5a91a5||_0x597fd2||_0x3363c6([0x56,0x61,0x6c,0x69,0x64]);}}function _0x17cfa3(_0x2396f9,_0x466624){return new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5cd1a2=>{if(_0x1b2498())return _0x5cd1a2(_0x3363c6([0x56,0x61,0x6c,0x69,0x64]));_0x560ce7(),_0x5378ee[_0x3363c6([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3363c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4b8906=!0x1;const _0x3aea05=_0x1137ee();function _0x4ed8c0(_0xb1d6cb){return!!_0xb1d6cb&&(typeof _0xb1d6cb===_0x3363c6([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb1d6cb===_0x3363c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb1d6cb[_0x3363c6([0x74,0x68,0x65,0x6e])]===_0x3363c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb1d6cb[_0x3363c6([0x63,0x61,0x74,0x63,0x68])]===_0x3363c6([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x115d20(_0x2d6112){_0xb9969d(_0x2d6112)[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x471c5c=>{if(!_0x471c5c||_0x471c5c[_0x3363c6([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3363c6([0x6f,0x6b]))return _0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x149832(_0x2e4c9d(_0x3aea05+_0x466624))!=_0x471c5c[_0x3363c6([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3363c6([0x56,0x61,0x6c,0x69,0x64]);})[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x30dbaa=>(_0x484333(),_0x30dbaa),()=>{const _0x518cfc=_0x2b36db();return null==_0x518cfc?(_0x484333(),_0x3363c6([0x56,0x61,0x6c,0x69,0x64])):_0x3363c6(_0xec96d-_0x518cfc>(0x63ae0106^_0x4fd094)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x5cd1a2)[_0x3363c6([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5cd1a2(_0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5b6a4d=0x47946b86^_0x4fd094;function _0x484333(){const _0x53a50d=_0x3363c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x149832(_0x2e4c9d(_0x2396f9)),_0x3eb4c2=_0x17be5c(_0x149832(window[_0x3363c6([0x4d,0x61,0x74,0x68])][_0x3363c6([0x63,0x65,0x69,0x6c])](_0xec96d/_0x5b6a4d)));window[_0x3363c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3363c6([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53a50d,_0x3eb4c2);}function _0x2b36db(){const _0x94b06d=_0x3363c6([0x6c,0x6c,0x63,0x74,0x2d])+_0x149832(_0x2e4c9d(_0x2396f9)),_0x38f0ad=window[_0x3363c6([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3363c6([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x94b06d);return _0x38f0ad?window[_0x3363c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17be5c(_0x38f0ad),0x10)*_0x5b6a4d:null;}function _0xb9969d(_0x1f7f21){return new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2f160e,_0x1ad9dd)=>{_0x1f7f21[_0x3363c6([0x74,0x68,0x65,0x6e])](_0x2f160e,_0x1ad9dd),window[_0x3363c6([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x1ad9dd,0x47a351c6^_0x4fd094);});}}_0x5378ee[_0x3363c6([0x6f,0x6e])](_0x3363c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1357a4,_0x12ad02)=>{if(_0x12ad02[0x0]!=_0x2396f9)return _0x5cd1a2(_0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x12ad02[0x1]={..._0x12ad02[0x1],[_0x3363c6([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3aea05};},{[_0x3363c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3363c6([0x68,0x69,0x67,0x68])}),_0x5378ee[_0x3363c6([0x6f,0x6e])](_0x3363c6([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x594961=>{_0x4ed8c0(_0x594961[_0x3363c6([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4b8906=!0x0,_0x115d20(_0x594961[_0x3363c6([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3363c6([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3363c6([0x6c,0x6f,0x77])}),_0xe9c57[_0x3363c6([0x74,0x68,0x65,0x6e])](()=>{_0x4b8906||_0x5cd1a2(_0x3363c6([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1b2498(){return _0x5378ee[_0x3363c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3363c6([0x76,0x69,0x65,0x77])][_0x3363c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3363c6([0x61,0x75,0x74,0x6f]);}function _0x560ce7(){_0x5378ee[_0x3363c6([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3363c6([0x76,0x69,0x65,0x77])][_0x3363c6([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3363c6([0x61,0x75,0x74,0x6f]);}}function _0x6d5c8d(_0x2afc53){const _0x57ac07=[new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x20131d=>setTimeout(_0x20131d,0x47abbbca^_0x4fd094)),_0xe9c57[_0x3363c6([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x177ea0=>{let _0x4fa366=0x0;_0x5378ee[_0x3363c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3363c6([0x6f,0x6e])](_0x3363c6([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x4d2f5b,_0x2b26b8)=>{_0x2b26b8[0x0][_0x3363c6([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4fa366++,_0x4fa366==(0x47a284fe^_0x4fd094)&&(_0x177ea0(),_0x4d2f5b[_0x3363c6([0x6f,0x66,0x66])]());});}))];return window[_0x3363c6([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3363c6([0x72,0x61,0x63,0x65])](_0x57ac07)[_0x3363c6([0x74,0x68,0x65,0x6e])](()=>_0x2afc53);}async function _0x417c6f(){await _0xe9c57,_0x5378ee[_0x3363c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3363c6([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x426af4,_0x5378ee[_0x3363c6([0x6d,0x6f,0x64,0x65,0x6c])][_0x3363c6([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x426af4,_0x5378ee[_0x3363c6([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3363c6([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x16222a(_0x1220cb){const _0x5b7e56=_0x21cae1();_0x5378ee[_0x5b7e56]=_0x3363c6([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1220cb,_0x1220cb!=_0x3363c6([0x56,0x61,0x6c,0x69,0x64])&&_0x417c6f();}function _0x21cae1(){const _0xe65367=window[_0x3363c6([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3363c6([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3363c6([0x6e,0x6f,0x77])]())[_0x3363c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3363c6([0x2e]),'');let _0x2344c1=_0x3363c6([0x75]);for(let _0x172e18=0x0;_0x172e18<_0xe65367[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x172e18+=0x2){let _0x43af96=window[_0x3363c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xe65367[_0x3363c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x172e18,_0x172e18+0x2));_0x43af96>=_0x15c18b[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x43af96-=_0x15c18b[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2344c1+=_0x15c18b[_0x43af96];}return _0x2344c1;}function _0x3d36e2(){const _0x3380b0=_0x670193[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])](_0x3363c6([0x2e]));if(0x3!=_0x3380b0[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x588694(_0x3380b0[0x1]);function _0x588694(_0x4f02f7){const _0xeaaedb=_0x56bc7f(_0x4f02f7);return _0xeaaedb&&_0x190339()?_0xeaaedb:null;function _0x190339(){const _0x50b1c6=_0xeaaedb[_0x3363c6([0x6a,0x74,0x69])],_0x541933=window[_0x3363c6([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50b1c6[_0x3363c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x50b1c6[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x37dcd2={..._0xeaaedb,[_0x3363c6([0x6a,0x74,0x69])]:_0x50b1c6[_0x3363c6([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x50b1c6[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x37dcd2[_0x3363c6([0x76,0x63])],_0x2e4c9d(_0x37dcd2)==_0x541933;}}}async function _0x3687d4(){let _0x2fc2c4=!0x0;try{const _0x36c0c3=_0x670193[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])](_0x3363c6([0x2e])),[_0x4f73b3,_0x13c5e2,_0x123056]=_0x36c0c3;return _0x14a7c9(_0x4f73b3),await _0x48f58b(_0x4f73b3,_0x13c5e2,_0x123056),_0x2fc2c4;}catch{return!0x1;}function _0x14a7c9(_0x44bfd2){const _0x544db1=_0x56bc7f(_0x44bfd2);_0x544db1&&_0x544db1[_0x3363c6([0x61,0x6c,0x67])]==_0x3363c6([0x45,0x53,0x32,0x35,0x36])||(_0x2fc2c4=!0x1);}async function _0x48f58b(_0x4c8ee3,_0x4a54e7,_0x3d7d62){const _0x779128=window[_0x3363c6([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3363c6([0x66,0x72,0x6f,0x6d])](_0x258576(_0x3d7d62),_0x465400=>_0x465400[_0x3363c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x118662=new window[(_0x3363c6([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3363c6([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4c8ee3+_0x3363c6([0x2e])+_0x4a54e7),_0x43418b=window[_0x3363c6([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3363c6([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x43418b)return;const _0x4ea174=await _0x43418b[_0x3363c6([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3363c6([0x6a,0x77,0x6b]),_0x52890e,{[_0x3363c6([0x6e,0x61,0x6d,0x65])]:_0x3363c6([0x45,0x43,0x44,0x53,0x41]),[_0x3363c6([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3363c6([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3363c6([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x43418b[_0x3363c6([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3363c6([0x6e,0x61,0x6d,0x65])]:_0x3363c6([0x45,0x43,0x44,0x53,0x41]),[_0x3363c6([0x68,0x61,0x73,0x68])]:{[_0x3363c6([0x6e,0x61,0x6d,0x65])]:_0x3363c6([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4ea174,_0x779128,_0x118662)||(_0x2fc2c4=!0x1);}}function _0x56bc7f(_0x2be324){return _0x2be324[_0x3363c6([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3363c6([0x65,0x79]))?JSON[_0x3363c6([0x70,0x61,0x72,0x73,0x65])](_0x258576(_0x2be324)):null;}function _0x258576(_0x4a73ff){return window[_0x3363c6([0x61,0x74,0x6f,0x62])](_0x4a73ff[_0x3363c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3363c6([0x2b]))[_0x3363c6([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3363c6([0x2f])));}function _0x2e4c9d(_0x52d241){let _0x33900e=0x1505;function _0x3ff8f6(_0x5c2f51){for(let _0x3db57f=0x0;_0x3db57f<_0x5c2f51[_0x3363c6([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3db57f++){const _0x34db7e=_0x5c2f51[_0x3363c6([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3db57f);_0x33900e=(_0x33900e<<0x5)+_0x33900e+_0x34db7e,_0x33900e&=_0x33900e;}}function _0x5bb383(_0xd93ab6){Array[_0x3363c6([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xd93ab6)?_0xd93ab6[_0x3363c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5bb383):_0xd93ab6&&typeof _0xd93ab6==_0x3363c6([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3363c6([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xd93ab6)[_0x3363c6([0x73,0x6f,0x72,0x74])]()[_0x3363c6([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e3ff9,_0x1e2414])=>{_0x3ff8f6(_0x3e3ff9),_0x5bb383(_0x1e2414);}):_0x3ff8f6(window[_0x3363c6([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xd93ab6));}return _0x5bb383(_0x52d241),_0x33900e>>>0x0;}function _0x149832(_0x261a12){return _0x261a12[_0x3363c6([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3363c6([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3363c6([0x30]));}function _0x17be5c(_0xd86dde){return _0xd86dde[_0x3363c6([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3363c6([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3363c6([0x6a,0x6f,0x69,0x6e])]('');}function _0x426af4(){}function _0x3363c6(_0x47f023){return _0x47f023['map'](_0x21e4ca=>String['fromCharCode'](_0x21e4ca))['join']('');}_0x16222a(await _0x351afc());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2378d7){const {plugins:_0x3ae4c0,editing:_0xb2eeec,model:_0x43a565}=this['editor'],_0x40d2fd=_0x3ae4c0['get'](c)['getFootnote'](_0x2378d7);return!!_0x40d2fd&&(_0x43a565['change'](_0x3d675c=>{_0x3d675c['setSelection'](_0x3d675c['createPositionAt'](_0x40d2fd['definition'],'end'));}),_0xb2eeec['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3fdbf8){const {plugins:_0x4c0ba7,editing:_0x1817f9,model:_0x1d6d39}=this['editor'],_0xf0af90=_0x4c0ba7['get'](c)['getFootnote'](_0x3fdbf8);return!!_0xf0af90&&(_0x1d6d39['change'](_0x4b0c2a=>{_0x4b0c2a['setSelection'](_0xf0af90['reference'],'on');}),_0x1817f9['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x225332}=this['editor']['model'],_0x1fc0a3=this['editor']['config']['get']('footnotes.multiBlock');_0x225332['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x225332['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x225332['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1fc0a3?_0x225332['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x225332['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x225332['addChildCheck'](_0x5344a6=>{for(const _0x3159bd of _0x5344a6)if('footnoteDefinition'===_0x3159bd['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5c9e8b}=this,{conversion:_0x33e27d,editing:_0x745652}=_0x5c9e8b,{t:t}=_0x5c9e8b['locale'];_0x33e27d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4af789,{writer:_0x1f9b22,consumable:_0x538c18})=>{const _0x31a11b=_0x4af789['getChild'](0x0);if(!_0x31a11b||!_0x31a11b['is']('element','a'))return null;const _0xa39e0d=_0x31a11b['getAttribute']('href')||'';if(!_0xa39e0d['startsWith']('#'))return null;const _0x30c7ab=_0xa39e0d['replace'](/^#/,'');if(!_0x30c7ab)return null;_0x538c18['consume'](_0x31a11b,{'name':!0x0,'attributes':['href']});for(const {item:_0x135044}of _0x745652['view']['createRangeIn'](_0x31a11b))_0x135044['is']('$textProxy')?_0x538c18['consume'](_0x135044['textNode'],{'name':!0x0}):_0x135044['is']('element')&&_0x538c18['consume'](_0x135044,{'name':!0x0});return _0x1f9b22['createElement']('footnoteRef',{'footnoteId':_0x30c7ab});}}),_0x33e27d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x463cdf,{writer:_0x427ddb})=>D(_0x463cdf,_0x427ddb)}),_0x33e27d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5bd6bd,{writer:_0x30c9e1})=>{const _0x1a3778=_0x5bd6bd['getAttribute']('footnoteCounter');return _0x3d3a52(D(_0x5bd6bd,_0x30c9e1),_0x30c9e1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1a3778)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2c73da}=this,{t:t}=_0x2c73da['locale'],{conversion:_0x4bf0ac}=_0x2c73da;_0x4bf0ac['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4bf0ac['for']('upcast')['add'](_0x5d9e6d=>{_0x5d9e6d['on']('element:ol',(_0x2eda66,_0x50f7f4,_0xa4562f)=>{const _0x5a46e3=_0x50f7f4['viewItem'];if(!_0x5a46e3['hasClass']('footnotes-list')||!_0x50f7f4['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xa4562f['consumable']['consume'](_0x5a46e3,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x35ad59,modelCursor:_0x14b4b8}=_0xa4562f['convertChildren'](_0x50f7f4['viewItem'],_0x50f7f4['modelCursor']);_0x50f7f4['modelRange']=_0x35ad59,_0x50f7f4['modelCursor']=_0x14b4b8;}),_0x5d9e6d['on']('element:hr',(_0x24f383,_0x9454c4,_0x1a5796)=>{const _0x1ce0de=_0x9454c4['viewItem'];_0x1ce0de['hasClass']('footnotes-divider')&&_0x9454c4['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1a5796['consumable']['consume'](_0x1ce0de,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4bf0ac['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x512ff9,{writer:_0x3110a2})=>v(_0x3110a2)}),_0x4bf0ac['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x14edb9,{writer:_0x1d71a5})=>{const _0x4d7a30=v(_0x1d71a5,{'data-footnotes-list-label':t('Footnotes')}),_0x5be21e=_0x3d3a52(_0x4d7a30,_0x1d71a5,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1d71a5['setCustomProperty']('footnotesDefinitions',!0x0,_0x5be21e),_0x5be21e;}});}['_defineDefinitionConverters'](){const {editor:_0x361ce7}=this,{conversion:_0x15a4fe,locale:_0x153406}=_0x361ce7,_0x2891f9=_0x361ce7['config']['get']('footnotes.multiBlock');_0x15a4fe['for']('upcast')['add'](_0x581653=>{_0x581653['on']('element:li',(_0x1e7751,_0x3dce04,_0x212ced)=>{const _0x506a63=_0x3dce04['viewItem'];if(!_0x506a63['hasClass']('footnote-definition')||!_0x506a63['getAttribute']('id'))return;const _0x52b34b=_0x506a63['parent'];if(!_0x52b34b['is']('element','ol')||!_0x52b34b['hasClass']('footnotes-list'))return;if(!_0x212ced['consumable']['test'](_0x506a63,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x18c581=_0x212ced['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x506a63['getAttribute']('id')});if(!_0x212ced['safeInsert'](_0x18c581,_0x3dce04['modelCursor']))return;_0x212ced['consumable']['consume'](_0x506a63,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2d6919=Array['from'](_0x506a63['getChildren']())['find'](_0x130475=>_0x130475['is']('element')&&_0x130475['hasClass']('footnote-content'));for(const _0x3aa31e of _0x506a63['getChildren']())_0x3aa31e['is']('element')&&(_0x212ced['consumable']['consume'](_0x3aa31e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x212ced['consumable']['consume'](_0x3aa31e,{'name':!0x0,'classes':'footnote-content'}));if(_0x2d6919){if(_0x2891f9)_0x212ced['convertChildren'](_0x2d6919,_0x18c581);else{const _0x1d651e=_0x212ced['writer']['createElement']('footnoteInlineContent');_0x212ced['writer']['insert'](_0x1d651e,_0x18c581),_0x212ced['convertChildren'](_0x2d6919,_0x1d651e);}}_0x212ced['updateConversionResult'](_0x18c581,_0x3dce04);});}),_0x15a4fe['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4ffc29,{writer:_0x87a4b0})=>b(_0x4ffc29,_0x87a4b0,_0x153406,{'dataPipeline':!0x0})}),_0x15a4fe['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1170e9,{writer:_0x2e81d2})=>b(_0x1170e9,_0x2e81d2,_0x153406)});}['_defineBogusParagraphConverters'](){const {editor:_0x28a0ee}=this,{conversion:_0x52b2b0}=_0x28a0ee;_0x28a0ee['config']['get']('footnotes.multiBlock')?(_0x52b2b0['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x52b2b0['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x28a0ee['model']['document'],'change:data',()=>{!function(_0x3cec23,_0x54162c){const _0x94919=_0x3cec23['document']['differ'],_0x3d38a3=new Set();for(const _0x1cd7c8 of _0x94919['getChanges']()){const _0x277294='attribute'==_0x1cd7c8['type']?_0x1cd7c8['range']['start']['parent']:_0x1cd7c8['position']['parent'];_0x277294['is']('element','footnoteDefinition')&&_0x3d38a3['add'](_0x277294);}for(const _0x46e776 of _0x3d38a3['values']()){const _0x285887=Array['from'](_0x46e776['getChildren']())['filter'](_0xeb476b=>g(_0xeb476b,_0x54162c['mapper']));for(const _0x42b2d9 of _0x285887)_0x54162c['reconvertItem'](_0x42b2d9);}}(_0x28a0ee['model'],_0x28a0ee['editing']);})):(_0x52b2b0['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x52b2b0['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2f6b31,{writer:_0x473f57})=>{const _0x57abfe=_0x473f57['createContainerElement']('span');return _0x473f57['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x57abfe),_0x57abfe;}}));}['_defineKeyboardHandlers'](){const {editor:_0x33e071}=this,{editing:_0x3afddf,t:t}=_0x33e071,_0x33d4a0=_0x33e071['model']['document']['selection'];_0x33e071['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x33e071['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3afddf['view']['document'],'enter',(_0x29155d,_0x55be3c)=>{const _0xa87a09=function(_0x4651d8){const _0x182349=_0x4651d8['getSelectedElement']();if(_0x182349?.['is']('element','footnoteRef'))return _0x182349;return null;}(_0x33d4a0);if(_0xa87a09){const _0x2fefe0=_0xa87a09['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2fefe0),_0x55be3c['preventDefault'](),_0x29155d['stop']();}},{'context':_0x70a053});}['_defineClickHandlers'](){const {editor:_0x3d0b11}=this,{editing:_0x120404}=_0x3d0b11;_0x3d0b11['editing']['view']['addObserver'](_0xb1f581),_0x3d0b11['editing']['view']['addObserver'](_0x2cac24);let _0x2db985=!0x1;this['listenTo'](_0x120404['view']['document'],'pointerdown',(_0x2cc9ef,_0xc3f6ce)=>{const {target:_0x3bcf48}=_0xc3f6ce,_0x3c8223=_0x120404['view']['document']['selection'];_0x2db985=!!(_0x3bcf48?.['is']('element','a')&&_0x3bcf48['parent']?.['is']('element','sup')&&_0x3bcf48['parent']['hasClass']('footnote'))&&_0x3c8223['getSelectedElement']()===_0x3bcf48['parent'];},{'priority':'high'}),this['listenTo'](_0x120404['view']['document'],'click',(_0x547d21,_0x124b3e)=>{const {target:_0x4620a8}=_0x124b3e;if(!_0x4620a8?.['is']('element','a'))return;if(_0x4620a8['parent']?.['is']('element','sup')&&_0x4620a8['parent']['hasClass']('footnote')&&!_0x2db985)return void _0x124b3e['preventDefault']();let _0x1c8845=_0x4620a8['getAttribute']('href');if(!_0x1c8845?.['startsWith']('#'))return;_0x1c8845=_0x1c8845['slice'](0x1);let _0x1dbac0=!0x1;(_0x1c8845['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x1c8845['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x1c8845))&&(_0x1dbac0=!0x0),_0x1dbac0&&(_0x124b3e['preventDefault'](),_0x547d21['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x33acf7}={}){return(_0x423201,{writer:_0x5c926d})=>{if(!p(_0x423201))return null;if(!_0x33acf7)return _0x5c926d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x519dd3=_0x5c926d['createContainerElement']('p');return _0x5c926d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x519dd3),_0x519dd3;};}function p(_0x188225){const {parent:_0x40526e}=_0x188225;if(!_0x40526e?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x40526e['childCount'])return!0x1;for(const _0x49605f of _0x188225['getAttributeKeys']())if(!_0x49605f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x49605f)return!0x1;return!0x0;}function g(_0x25fc19,_0x1b1428){if(!_0x25fc19['is']('element','paragraph'))return!0x1;const _0x27b6fc=_0x1b1428['toViewElement'](_0x25fc19);return!!_0x27b6fc&&p(_0x25fc19)!==_0x27b6fc['is']('element','span');}function J(_0x50eb2b){return _0x70a053(_0x50eb2b)&&_0x50eb2b['is']('containerElement')&&!!_0x50eb2b['getCustomProperty']('footnotesDefinitions');}function v(_0x9033a6,_0x454417={}){const _0x3be9ab=_0x9033a6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4c7bfe=_0x9033a6['createContainerElement']('ol',{'class':'footnotes-list'},_0x9033a6['createSlot']());return _0x9033a6['createContainerElement']('div',{'class':'footnotes',..._0x454417},[_0x3be9ab,_0x4c7bfe]);}function D(_0x4448b1,_0x43d80c){const _0x23a8b5=_0x4448b1['getAttribute']('footnoteId'),_0x10081b=_0x4448b1['getAttribute']('footnoteCounter'),_0x206163=_0x43d80c['createUIElement']('a',{'href':'#'+_0x23a8b5},function(_0x29bc3f){const _0x1ffb8=this['toDomElement'](_0x29bc3f);return _0x1ffb8['textContent']=_0x10081b,_0x1ffb8;}),_0x13b979=_0x43d80c['createContainerElement']('sup',{'id':'ref-'+_0x23a8b5,'class':'footnote'},[_0x206163]);return _0x13b979['getFillerOffset']=()=>null,_0x13b979;}function b(_0x100afe,_0x1fa742,_0xef0dcb,{dataPipeline:_0x166f5f}={}){const {t:t}=_0xef0dcb,_0x276127=_0x100afe['getAttribute']('footnoteId'),_0x15cfb7=_0x1fa742['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x276127},function(_0x720116){const _0x834977=this['toDomElement'](_0x720116);return _0x834977['innerText']='^',_0x834977;}),_0xc77500=_0x166f5f?_0x1fa742['createContainerElement']('div',{'class':'footnote-content'}):_0x3cff8e(_0x1fa742['createEditableElement']('div',{'class':'footnote-content'}),_0x1fa742,{'label':t('Footnote\x20content.')});return _0x1fa742['insert'](_0x1fa742['createPositionAt'](_0xc77500,0x0),_0x1fa742['createSlot']()),_0x1fa742['createContainerElement']('li',{'class':'footnote-definition','id':_0x276127},[_0x15cfb7,_0xc77500]);}class e extends _0x2de1fc{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x313a74];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x402d5f}=this,{plugins:_0x54cdc9,model:_0x58339b}=_0x402d5f,_0x363b49=_0x54cdc9['get'](_0x313a74),_0x6b95eb=_0x54cdc9['get'](c);this['listenTo'](_0x363b49,'outputTransformation',(_0x2340a1,_0x291cee)=>{const _0x1a836c=f(_0x58339b['createRangeIn'](_0x291cee['content']));if(!_0x1a836c['length'])return;const _0x44ee00=_0x6b95eb['getFootnotes'](),_0xa537e0=_0x1a836c['reduce']((_0x567ae9,_0x5e0c80)=>{const _0x16109d=_0x44ee00['find'](_0x5b423b=>_0x5b423b['id']===_0x5e0c80);if(_0x16109d){const _0x2263ab=_0x402d5f['data']['toView'](_0x16109d['definition'],{'isClipboardPipeline':!0x0}),_0x55c9fa=_0x402d5f['data']['htmlProcessor']['toData'](_0x2263ab);_0x567ae9[_0x16109d['id']]=_0x55c9fa;}return _0x567ae9;},Object['create'](null));_0x291cee['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xa537e0));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x3e15a5}=this,{model:_0xe6bca4,plugins:_0xf5fed7}=_0x3e15a5,{view:_0x15ab54}=_0x3e15a5['editing'],_0x1dd20e=_0xf5fed7['get'](_0x313a74),_0x3db687=_0xf5fed7['get'](c);let _0x307b3f=null;this['listenTo'](_0x15ab54['document'],'clipboardInput',(_0x4f4774,_0xa19d1)=>{const _0x46813c=_0xa19d1['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x307b3f=_0x46813c?JSON['parse'](_0x46813c):null;}),this['listenTo'](_0x1dd20e,'contentInsertion',(_0x5d3cae,_0xa97ddf)=>{const _0x1086b7=_0xa97ddf['sourceEditorId']===this['editor']['id'];_0x1086b7&&'drop'===_0xa97ddf['method']||_0xe6bca4['change'](_0x57bda5=>{let _0x20175b=_0x3db687['getFootnotesDefinitionsObjectElement']();const _0xcabed4=!!_0x20175b&&Array['from'](_0xe6bca4['document']['selection']['getSelectedBlocks']())['includes'](_0x20175b);if((_0x20175b&&!_0xcabed4||!_0x20175b&&!_0x307b3f)&&function(_0x48133c,_0x41e7f6){const _0x31cb24=[];for(const {item:_0x11d38d}of _0x48133c['createRangeIn'](_0x41e7f6))_0x11d38d['is']('element','footnotesDefinitions')&&_0x31cb24['push'](_0x11d38d);for(const _0x1a3321 of _0x31cb24)_0x48133c['remove'](_0x1a3321);}(_0x57bda5,_0xa97ddf['content']),!_0x307b3f)return;const {selection:_0x590920}=_0xe6bca4['document'],_0x1ae831=_0x590920['getFirstRange']()['root'];_0x20175b&&!_0xcabed4||(_0x20175b=function(_0x2aaa08,_0x487197){for(const {item:_0x56c32a}of _0x2aaa08['createRangeIn'](_0x487197))if(_0x56c32a['is']('element','footnotesDefinitions'))return _0x56c32a;return null;}(_0x57bda5,_0xa97ddf['content']),_0x20175b||=_0x3db687['_insertEmptyFootnotesDefinitionsContainer'](_0x57bda5,_0x1ae831));const _0x4633d4=Array['from'](_0x590920['getRanges']())['flatMap'](f),_0x151f75=function(_0x533fbf,_0x551354,_0x215f66){const _0x3987f5=Object['create'](null);for(const {item:_0x1d6c51}of _0x533fbf['createRangeIn'](_0x551354))if(_0x1d6c51['is']('element','footnoteRef')){const _0x210142=_0x1d6c51['getAttribute']('footnoteId');if(!_0x215f66(_0x210142))continue;_0x3987f5[_0x210142]||(_0x3987f5[_0x210142]=_0x1137ee()),_0x533fbf['setAttribute']('footnoteId',_0x3987f5[_0x210142],_0x1d6c51);}return _0x3987f5;}(_0x57bda5,_0xa97ddf['content'],_0x17b278=>{if(!_0x1086b7)return!0x0;return!!_0x3db687['getFootnote'](_0x17b278)&&!_0x4633d4['includes'](_0x17b278);});for(const [_0x40f228,_0x6ed6da]of Object['entries'](_0x307b3f)){const _0x13b2f7=_0x151f75[_0x40f228]||_0x40f228,_0xb46ecc=_0x57bda5['createElement']('footnoteDefinition',{'footnoteId':_0x13b2f7}),_0x1b3872=_0x3e15a5['data']['htmlProcessor']['toView'](_0x6ed6da),_0x5304d9=_0x3e15a5['data']['toModel'](_0x1b3872,_0xb46ecc);_0x57bda5['append'](_0x5304d9,_0xb46ecc),_0x57bda5['insert'](_0xb46ecc,_0x20175b,'end');}_0x307b3f=null;});});}}function f(_0x2f52f3){const _0x54f678=new Set();for(const {item:_0xc582fa}of _0x2f52f3)_0xc582fa['is']('element','footnoteRef')&&_0x54f678['add'](_0xc582fa['getAttribute']('footnoteId'));return Array['from'](_0x54f678);}class i extends _0x2de1fc{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3ad335}=this,{componentFactory:_0x5c22dd}=_0x3ad335['ui'];_0x5c22dd['add']('insertFootnote',x(_0x3ad335,_0x4d49cb)),_0x5c22dd['add']('menuBar:insertFootnote',x(_0x3ad335,_0x153377)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x196edf=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x35b443;for(const _0x3664c3 in _0x196edf){const _0x139fe2=_0x3664c3,_0x5e9101=_0x196edf[_0x139fe2];if('footnotesLicenseKeyValid'==_0x5e9101||'footnotesLicenseKeyInvalid'==_0x5e9101||'footnotesLicenseKeyExpired'==_0x5e9101||'footnotesLicenseKeyDomainLimit'==_0x5e9101||'footnotesLicenseKeyNotAllowed'==_0x5e9101||'footnotesLicenseKeyEvaluationLimit'==_0x5e9101||'footnotesLicenseKeyTrialLimit'==_0x5e9101||'footnotesLicenseKeyUsageLimit'==_0x5e9101){delete _0x196edf[_0x139fe2],_0x35b443=_0x5e9101,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x35b443&&_0x196edf['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x35b443&&_0x196edf['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x35b443&&_0x196edf['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x35b443&&_0x196edf['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x35b443&&_0x196edf['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x35b443&&_0x196edf['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x35b443&&_0x196edf['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x296a4a,_0x10edfd){const _0x4b6850=_0x296a4a['commands']['get']('insertFootnote');return _0x1c6d2d=>{const {t:t}=_0x1c6d2d,_0x221f9d=new _0x10edfd(_0x1c6d2d),_0x1b23a6=_0x221f9d instanceof _0x153377;return _0x221f9d['bind']('isEnabled')['to'](_0x4b6850,'isEnabled'),_0x221f9d['set']({'label':t(_0x1b23a6?'Footnote':'Insert\x20footnote'),'icon':_0x81cbe2,'tooltip':!0x0}),_0x221f9d['on']('execute',()=>{_0x4b6850['execute'](),_0x296a4a['editing']['view']['focus']();}),_0x221f9d;};}class lt extends _0x2de1fc{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 _0x16d21d{['refresh'](){const {editor:_0x4a94ed}=this,_0x5a91c1=_0x4a94ed['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5a91c1,this['value']=_0x5a91c1?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4dafd5}){const {editor:_0xe2e95e}=this,_0x515d19=_0xe2e95e['plugins']['get'](c),_0x2d18d7=_0x515d19['getFootnotesDefinitionsObjectElement']();_0x2d18d7&&Q['includes'](_0x4dafd5)&&_0xe2e95e['model']['change'](_0x5ee2bd=>{_0x5ee2bd['setAttribute']('footnotesListStyle',_0x4dafd5,_0x2d18d7),_0x515d19['_updateFootnotesCounters'](_0x5ee2bd);});}}class C extends _0x16d21d{['refresh'](){const {editor:_0xc69514}=this,_0x42d09e=_0xc69514['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x42d09e,this['value']=_0x42d09e?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1f4fef}){const {editor:_0x1a4283}=this,_0x5463a4=_0x1a4283['plugins']['get'](c),_0x3df3f6=_0x5463a4['getFootnotesDefinitionsObjectElement']();_0x3df3f6&&Number['isInteger'](_0x1f4fef)&&_0x1a4283['model']['change'](_0x85aa56=>{_0x85aa56['setAttribute']('footnotesListStart',_0x1f4fef,_0x3df3f6),_0x5463a4['_updateFootnotesCounters'](_0x85aa56);});}}class P extends _0x2de1fc{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1496ed}=this;_0x1496ed['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x1496ed['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x1496ed['commands']['add']('footnotesStyle',new S(_0x1496ed)),_0x1496ed['commands']['add']('footnotesStart',new C(_0x1496ed)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4332d0}=this,{schema:_0x560954}=_0x4332d0['model'];_0x560954['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1a91ba}=this,{conversion:_0x115232,model:_0x339a89}=_0x1a91ba,{schema:_0xd66d18}=_0x339a89;_0x115232['for']('upcast')['add'](_0x2d1b59=>{_0x2d1b59['on']('element:ol',(_0x13dec8,_0x1a2235,_0x36dfac)=>{const _0x1568f8=_0x1a2235['viewItem'],_0x24b8d2=_0x1a2235['modelCursor']?.['parent'];_0x1568f8['hasClass']('footnotes-list')&&_0x24b8d2?.['is']('element','footnotesDefinitions')&&(function(_0x1e4c91,_0x36414c,_0x54242c,_0x502a69){if(!_0x502a69['checkAttribute'](_0x36414c,'footnotesListStart'))return;let _0xde3bbe=0x1;const _0x5b63fa=_0x54242c['consumable']['consume'](_0x1e4c91,{'attributes':'start'});if(_0x5b63fa){const _0x35d1d7=Number['parseInt'](_0x1e4c91['getAttribute']('start'),0xa);Number['isNaN'](_0x35d1d7)||(_0xde3bbe=_0x35d1d7);}!_0x5b63fa&&_0x36414c['hasAttribute']('footnotesListStart')||_0x54242c['writer']['setAttribute']('footnotesListStart',_0xde3bbe,_0x36414c);}(_0x1568f8,_0x24b8d2,_0x36dfac,_0xd66d18),function(_0x45af6f,_0x2ef50a,_0x3179a4,_0x383582){if(!_0x383582['checkAttribute'](_0x2ef50a,'footnotesListStyle'))return;let _0x5370c4='decimal',_0x4e5ab1=!0x1;if(_0x3179a4['consumable']['consume'](_0x45af6f,{'attributes':'type'})){const _0x2caf52={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x45af6f['getAttribute']('type')];_0x2caf52&&(_0x5370c4=_0x2caf52),_0x4e5ab1=!0x0;}_0x3179a4['consumable']['consume'](_0x45af6f,{'styles':'list-style-type'})&&(_0x5370c4=_0x45af6f['getStyle']('list-style-type'),_0x4e5ab1=!0x0),!_0x4e5ab1&&_0x2ef50a['hasAttribute']('footnotesListStyle')||_0x3179a4['writer']['setAttribute']('footnotesListStyle',_0x5370c4,_0x2ef50a);}(_0x1568f8,_0x24b8d2,_0x36dfac,_0xd66d18));});}),_0x115232['for']('downcast')['add'](_0x14a1e5=>{_0x14a1e5['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x225810,_0x1c9ca8,_0x203382)=>{if(!_0x203382['consumable']['consume'](_0x1c9ca8['item'],_0x225810['name']))return;const _0x85930d=M(_0x1c9ca8['item'],_0x203382['mapper']),{attributeNewValue:_0x51dd01}=_0x1c9ca8;null==_0x51dd01||0x1===_0x51dd01?_0x203382['writer']['removeAttribute']('start',_0x85930d):_0x203382['writer']['setAttribute']('start',String(_0x51dd01),_0x85930d);}),_0x14a1e5['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x55647f,_0x5e1430,_0x39b9f1)=>{if(!_0x39b9f1['consumable']['consume'](_0x5e1430['item'],_0x55647f['name']))return;const _0x449df3=M(_0x5e1430['item'],_0x39b9f1['mapper']),{attributeNewValue:_0x3847c1}=_0x5e1430;_0x3847c1&&'decimal'!==_0x3847c1?_0x39b9f1['writer']['setStyle']('list-style-type',_0x3847c1,_0x449df3):_0x39b9f1['writer']['removeStyle']('list-style-type',_0x449df3);});});}['_definePostfixer'](){const {editor:_0x15cbee}=this,{model:_0x2d4233}=_0x15cbee,_0x149538=_0x15cbee['plugins']['get'](c),_0x119fac=this['_getDefaultListStyle'](),_0x301c04=this['_getDefaultStartIndex']();_0x2d4233['document']['registerPostFixer'](_0x18f623=>{const _0x21416a=_0x2d4233['document']['differ']['getChanges']();let _0x31c624=!0x1;for(const _0x493e05 of _0x21416a){if('insert'!==_0x493e05['type']||'$text'===_0x493e05['name'])continue;const _0x57e014=_0x2d4233['createRangeOn'](_0x493e05['position']['nodeAfter']);for(const _0x5f34a0 of _0x57e014['getItems']())_0x5f34a0['is']('element','footnotesDefinitions')&&(!_0x5f34a0['hasAttribute']('footnotesListStart')&&_0x2d4233['schema']['checkAttribute'](_0x5f34a0,'footnotesListStart')&&(_0x18f623['setAttribute']('footnotesListStart',_0x301c04,_0x5f34a0),_0x31c624=!0x0),!_0x5f34a0['hasAttribute']('footnotesListStyle')&&_0x2d4233['schema']['checkAttribute'](_0x5f34a0,'footnotesListStyle')&&(_0x18f623['setAttribute']('footnotesListStyle',_0x119fac,_0x5f34a0),_0x31c624=!0x0));}return _0x31c624&&_0x149538['_updateFootnotesCounters'](_0x18f623),_0x31c624;});}['_defineFormatter'](){const {editor:_0x3a876a}=this;_0x3a876a['plugins']['get'](c)['setFootnoteFormatter'](_0x59abe5=>this['_formatFootnoteListValue'](_0x59abe5));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3172bd,value:_0xf7296a,digits:_0x5a6ddb}){const _0x2a55e4=_0x3172bd['getAttribute']('footnotesListStyle'),_0x2a34a0=_0x3172bd['getAttribute']('footnotesListStart'),_0x416452=Math['floor'](_0xf7296a)+(_0x2a34a0??0x1)-0x1;switch(_0x2a55e4){case'decimal-leading-zero':return function(_0x5bc84a,_0x345967){return String(_0x5bc84a)['padStart'](_0x345967,'0');}(_0x416452,Math['max'](0x2,_0x5a6ddb));case'lower-alpha':case'lower-latin':return N(_0x416452,!0x1);case'upper-alpha':case'upper-latin':return N(_0x416452,!0x0);case'lower-roman':return X(_0x416452,!0x1);case'upper-roman':return X(_0x416452,!0x0);default:return String(_0x416452);}}}function M(_0x5906e8,_0x4eec14){const _0x73e22=_0x4eec14['toViewElement'](_0x5906e8);return Array['from'](_0x73e22['getChildren']())['find'](_0x23d97a=>_0x23d97a['is']('element','ol')&&_0x23d97a['hasClass']('footnotes-list'));}function N(_0x22913c,_0x29ea06){let _0x507e2d='',_0x1fd41f=_0x22913c;for(;_0x1fd41f>0x0;){const _0x11292b=(_0x1fd41f-0x1)%0x1a;_0x507e2d=String['fromCharCode'](0x61+_0x11292b)+_0x507e2d,_0x1fd41f=Math['floor']((_0x1fd41f-0x1)/0x1a);}return _0x29ea06?_0x507e2d['toUpperCase']():_0x507e2d;}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(_0xc1c2a3,_0x18232a){let _0x5db68c='',_0x3c225b=_0xc1c2a3;for(const {value:_0x552cba,numeral:_0x55924f}of V)for(;_0x3c225b>=_0x552cba;)_0x5db68c+=_0x55924f,_0x3c225b-=_0x552cba;return _0x18232a?_0x5db68c:_0x5db68c['toLowerCase']();}class H extends _0x1997c0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x47f0a5();['focusCycler'];constructor(_0x2c8114,{styleButtonViews:_0xfce4b1,styleGridAriaLabel:_0x231910}){super(_0x2c8114),(this['focusCycler']=new _0x5659cf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0xfce4b1,_0x231910),[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 _0x5841f8 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5841f8['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 _0x592634=_0x2efe8f=>_0x2efe8f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x592634),this['keystrokes']['set']('arrowleft',_0x592634),this['keystrokes']['set']('arrowup',_0x592634),this['keystrokes']['set']('arrowdown',_0x592634);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5eb3ab,_0x2a5625){const _0x525b67=new _0x1997c0(this['locale']);return _0x525b67['children']=_0x525b67['createCollection'](),_0x525b67['children']['addMany'](_0x5eb3ab),_0x525b67['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2a5625,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x525b67['children']}),_0x525b67['children']['delegate']('execute')['to'](this),_0x525b67['focus']=function(){for(const _0x51f1b5 of this['children'])if(_0x51f1b5 instanceof _0x4d49cb&&_0x51f1b5['isOn'])return void _0x51f1b5['focus']();this['children']['first']['focus']();},_0x525b67['focusTracker']=new ot(),_0x525b67['keystrokes']=new rt(),_0x525b67['render'](),_0x525b67['keystrokes']['listenTo'](_0x525b67['element']),this['children']['add'](_0x525b67),_0x525b67;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1ad2e2=this['_createStartIndexPropertyView'](),_0x52c6a0=[_0x1ad2e2],_0x5b5b2e=new st(this['locale'],_0x52c6a0);return _0x5b5b2e['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5b5b2e['buttonView']['bind']('isEnabled')['toMany'](_0x52c6a0,'isEnabled',(..._0x23890f)=>_0x23890f['some'](_0x4ebcd2=>_0x4ebcd2)),_0x5b5b2e['buttonView']['on']('change:isEnabled',(_0x512a77,_0x428e09,_0xa57a80)=>{_0xa57a80||(_0x5b5b2e['isCollapsed']=!0x0);}),this['children']['add'](_0x5b5b2e),[_0x1ad2e2,_0x5b5b2e];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x3f1151=new it(this['locale'],et);return _0x3f1151['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x3f1151['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x3f1151['fieldView']['on']('input',()=>{const _0x4e31ed=_0x3f1151['fieldView']['element'],_0x382d3c=_0x4e31ed['valueAsNumber'];Number['isNaN'](_0x382d3c)?_0x3f1151['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4e31ed['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x382d3c}):_0x3f1151['errorText']=t(_0x382d3c<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x3f1151;}}class j extends _0x2de1fc{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4cdb44,_0x184412];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1ef3ad}=this,{componentFactory:_0x505428}=_0x1ef3ad['ui'];_0x1ef3ad['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x505428['add']('footnotesStyle',function(_0xf3d565){return _0x2fab57=>{const {t:t}=_0x2fab57,_0x3f8b88=_0xf3d565['commands']['get']('footnotesStyle'),_0x270635=_0x2db7d9(_0x2fab57),{buttonView:_0x5225d3}=_0x270635;return _0x270635['class']='ck-footnotes-styles-dropdown',_0x270635['bind']('isEnabled')['to'](_0x3f8b88,'isEnabled'),_0x5225d3['set']({'label':t('Footnotes\x20style'),'icon':_0x81cbe2,'tooltip':!0x0}),_0x270635['once']('change:isOpen',()=>{const _0x5412b8=function({editor:_0x482e2e,dropdownView:_0x56f3b4}){const {t:t}=_0x482e2e['locale'],_0x5631e0=t('Footnotes\x20definitions\x20styles'),_0x147a5c=function(_0x502483){const t=_0x502483['locale']['t'],_0x2d1440=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x121ceb},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5c85d6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xb5df0d},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x160762},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x996717},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x1e2f21}];return _0x2d1440['map'](function(_0x35adaf){const _0x2887f5=_0x35adaf['locale'];return({label:_0xd727e7,icon:_0xa5f273,tooltip:_0x1bb6e1,style:_0x198097})=>{const _0xc6bcc3=_0x35adaf['commands']['get']('footnotesStyle'),_0x39002e=new _0x4d49cb(_0x2887f5);return _0x39002e['set']({'label':_0xd727e7,'icon':_0xa5f273,'tooltip':_0x1bb6e1}),_0x39002e['bind']('isOn')['to'](_0xc6bcc3,'value',_0x2cff33=>_0x2cff33===_0x198097),_0x39002e['bind']('isEnabled')['to'](_0xc6bcc3,'isEnabled'),_0x39002e['on']('execute',()=>{_0x35adaf['execute']('footnotesStyle',{'value':_0x198097}),_0x35adaf['editing']['view']['focus']();}),_0x39002e;};}(_0x502483));}(_0x482e2e),_0x21d209=new H(_0x482e2e['locale'],{'styleGridAriaLabel':_0x5631e0,'styleButtonViews':_0x147a5c});return _0x21d209['delegate']('execute')['to'](_0x56f3b4),_0x21d209['on']('footnotesListStart',(_0x4ced9a,_0x144cd8)=>{_0x482e2e['execute']('footnotesStart',{'value':_0x144cd8['startIndex']});}),_0x21d209;}({'editor':_0xf3d565,'dropdownView':_0x270635});_0x270635['panelView']['children']['add'](_0x5412b8);}),_0x270635;};}(_0x1ef3ad));}['afterInit'](){const {editor:_0x3f8d5f}=this,{t:t}=_0x3f8d5f['locale'],_0x55bfd5=_0x3f8d5f['plugins']['get'](_0x184412),{defaultPositions:_0x537f35}=_0x423a59;_0x55bfd5['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3f8d5f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x59d435=>{let _0x31342b=_0x59d435['getFirstPosition']()?.['parent'];return _0x31342b?.['is']('$text')&&(_0x31342b=_0x31342b['parent']),_0x31342b?.['is']('element')?_0x31342b['findAncestor'](J):null;},'positions':[_0x537f35['southArrowNorth'],_0x537f35['southArrowNorthMiddleWest'],_0x537f35['southArrowNorthMiddleEast'],_0x537f35['southArrowNorthWest'],_0x537f35['southArrowNorthEast'],_0x537f35['northArrowSouth'],_0x537f35['northArrowSouthMiddleWest'],_0x537f35['northArrowSouthMiddleEast'],_0x537f35['northArrowSouthWest'],_0x537f35['northArrowSouthEast'],_0x537f35['viewportStickyNorth']]});}}class ft extends _0x2de1fc{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 _0x34c87d,Command as _0x5aa7b1}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x14a494,isWidget as _0x3e8f12,toWidgetEditable as _0x1ffbe6,WidgetToolbarRepository as _0x4c6e28}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x399f6d,logWarning as _0x55ef9f,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3cf8e0,ClickObserver as _0x5a2b0c}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xc97c9e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x5957c7,ButtonView as _0x5c9843,View as _0x5d4fa9,ViewCollection as _0x5e2780,FocusCycler as _0x54fd1e,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x740f82,BalloonPanelView as _0x1c6716,createDropdown as _0x20001d}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4763d7,IconListStyleDecimal as _0x2bc22a,IconListStyleDecimalLeadingZero as _0x13c776,IconListStyleLowerRoman as _0x485327,IconListStyleUpperRoman as _0x5894df,IconListStyleLowerLatin as _0x9e5765,IconListStyleUpperLatin as _0x40cddf}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x43d808,_0xfb0380){this['_model']=_0x43d808,this['_elementName']=_0xfb0380['elementName'],this['_getElementKey']=_0xfb0380['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x243386){const _0x4be097=new Set(),_0x1ae101=new Map();for(const _0x5baa79 of _0x243386){if('insert'===_0x5baa79['type']&&'$text'!==_0x5baa79['name']&&_0x5baa79['position']['nodeAfter']){const _0x4be4fc=this['_model']['createRangeOn'](_0x5baa79['position']['nodeAfter']);for(const _0xc91d2a of _0x4be4fc['getItems']()){if(!_0xc91d2a['is']('element',this['_elementName']))continue;const _0x29db9d=this['_getElementKey'](_0xc91d2a);_0x1ae101['has'](_0x29db9d)||_0x1ae101['set'](_0x29db9d,[]),_0x1ae101['get'](_0x29db9d)['push'](_0xc91d2a);}}if('remove'===_0x5baa79['type']&&_0x5baa79['name']===this['_elementName']){const _0x2f8751=this['_getElementKey']({'getAttribute':_0x5514e2=>_0x5baa79['attributes']['get'](_0x5514e2)});_0x4be097['add'](_0x2f8751);}}for(const [_0x28c492,_0x4261ce]of this['_trackedElements'])'$graveyard'===_0x4261ce['root']['rootName']&&_0x4be097['add'](_0x28c492);for(const _0xa341ef of _0x4be097)this['_trackedElements']['delete'](_0xa341ef);for(const [_0x81628,_0x508ae6]of _0x1ae101)this['_trackedElements']['set'](_0x81628,_0x508ae6[_0x508ae6['length']-0x1]);const _0x282c81=new Set();for(const [_0xa9c83c,_0x2874ab]of _0x1ae101)_0x4be097['has'](_0xa9c83c)&&(_0x282c81['add'](_0x2874ab[0x0]),_0x2874ab['length']>0x1?_0x1ae101['set'](_0xa9c83c,_0x2874ab['slice'](0x1)):_0x1ae101['delete'](_0xa9c83c),_0x4be097['delete'](_0xa9c83c));return{'removed':Array['from'](_0x4be097),'inserted':Array['from'](_0x1ae101['values']())['flat'](),'moved':Array['from'](_0x282c81)};}}class c extends _0x34c87d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2c39c8){super(_0x2c39c8),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x500bf4=>_0x500bf4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4c5497=>_0x4c5497['getAttribute']('footnoteId')});}['init'](){const {editor:_0x5c5c4d}=this,{model:_0x5ad9ba,data:_0x47607c}=_0x5c5c4d;_0x5ad9ba['document']['registerPostFixer'](_0x34b312=>{const _0x4d0fc6=_0x5ad9ba['document']['differ']['getChanges']();let _0x4bf339=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x34b312,_0x4d0fc6)&&(_0x4bf339=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x34b312,_0x4d0fc6)&&(_0x4bf339=!0x0),this['_handleFootnoteReferencesChanges'](_0x34b312,_0x4d0fc6)&&(_0x4bf339=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x34b312)&&(_0x4bf339=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x34b312)&&(_0x4bf339=!0x0),this['_sortFootnoteDefinitions'](_0x34b312)&&(_0x4bf339=!0x0),_0x4bf339;}),this['listenTo'](_0x5ad9ba['document'],'change:data',()=>{_0x5ad9ba['enqueueChange']({'isUndoable':!0x1},_0x14cde2=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x14cde2);});},{'priority':'low'}),this['listenTo'](_0x47607c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x132993){return this['_footnotes']['find'](_0x296390=>_0x296390['id']===_0x132993)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x305ea4){this['_footnoteFormatter']=_0x305ea4;}['_updateFootnotesCounters'](_0xce8e81,_0x590f37=0x0){let _0x3c46de=!0x1;for(let _0x33f008=_0x590f37;_0x33f008<this['_footnotes']['length'];_0x33f008++)this['_updateFootnoteRefCounter'](_0xce8e81,_0x33f008)&&(_0x3c46de=!0x0);return _0x3c46de;}['_insertEmptyFootnotesDefinitionsContainer'](_0x4bd87c,_0x44edbd){const _0x2f32e6=_0x4bd87c['createElement']('footnotesDefinitions',{});return _0x4bd87c['append'](_0x2f32e6,_0x44edbd),this['_footnotesDefinitions']=_0x2f32e6,_0x2f32e6;}['_ensureFootnotesDefinitionsContainerExists'](_0x121975){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4a3929=this['_footnotes'][0x0]['reference']['root'],_0x15ca51=this['_insertEmptyFootnotesDefinitionsContainer'](_0x121975,_0x4a3929);for(const _0x231c68 of this['_footnotes'])_0x231c68['definition']['parent']||_0x121975['insert'](_0x231c68['definition'],_0x15ca51,'end');this['_updateFootnotesCounters'](_0x121975);}['_handleFootnotesDefinitionsObjectChanges'](_0x5ac9db,_0x4cc514){let _0x5d9a0c=!0x1;const {inserted:_0x52d03d,removed:_0x1185b5,moved:_0x22a9df}=this['_footnoteDefsContainerTracker']['getChanges'](_0x4cc514);if(_0x22a9df['length']&&(this['_footnotesDefinitions']=_0x22a9df[0x0]),_0x52d03d['length']){if(_0x52d03d['length']>0x1||this['_footnotesDefinitions']&&_0x52d03d['some'](_0x594689=>_0x594689!==this['_footnotesDefinitions'])){const _0x5e3f0d=_0x5ac9db['createElement']('footnotesDefinitions',{}),_0x48651a=[];this['_footnotesDefinitions']&&_0x48651a['push'](this['_footnotesDefinitions']),_0x48651a['push'](..._0x52d03d),_0x5ac9db['insert'](_0x5e3f0d,_0x48651a[0x0],'before');for(const _0x3ae433 of _0x48651a)_0x5ac9db['move'](_0x5ac9db['createRangeIn'](_0x3ae433),_0x5ac9db['createPositionAt'](_0x5e3f0d,'end')),_0x5ac9db['remove'](_0x3ae433);this['_footnotesDefinitions']=_0x5e3f0d,this['_updateFootnotesCounters'](_0x5ac9db),_0x5d9a0c=!0x0;}else this['_footnotesDefinitions']=_0x52d03d[0x0];}if(_0x1185b5['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x47bc7c of this['_footnotes'])_0x5ac9db['remove'](_0x47bc7c['reference']),_0x5d9a0c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5d9a0c;}['_handleFootnoteDefinitionsChanges'](_0x501667,_0x1ddee8){let _0x3ae049=!0x1;const _0x10e4ad=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x196de1,moved:_0x5ea3f5}=this['_footnoteDefsTracker']['getChanges'](_0x1ddee8);for(const _0x214e82 of[..._0x5ea3f5,..._0x196de1]){const _0x56c25a=_0x214e82['getAttribute']('footnoteId'),_0x5d2655=this['getFootnote'](_0x56c25a);_0x5d2655&&(_0x5d2655['definition']=_0x214e82),_(_0x501667,_0x10e4ad,_0x214e82)&&(_0x3ae049=!0x0);}return _0x3ae049;}['_handleFootnoteReferencesChanges'](_0x2daf93,_0x37f68e){let _0x141453=!0x1;const {removed:_0x1125b7,inserted:_0x5b9f2b,moved:_0x27e761}=this['_footnoteRefsTracker']['getChanges'](_0x37f68e);for(const _0x3139ff of _0x1125b7)this['_handleRemoveFootnoteReferenceById'](_0x2daf93,_0x3139ff)&&(_0x141453=!0x0);for(const _0x11bff8 of _0x5b9f2b)this['_handleInsertedFootnoteReference'](_0x2daf93,_0x11bff8)&&(_0x141453=!0x0);for(const _0x5034ad of _0x27e761)this['_handleMovedFootnoteReference'](_0x2daf93,_0x5034ad)&&(_0x141453=!0x0);return _0x141453;}['_handleFootnotesDefinitionsObjectSync'](_0x3bff24){if(!this['_footnotesDefinitions'])return!0x1;let _0xe18ead=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x23f082=[];for(const _0x10ef51 of this['_footnotesDefinitions']['getChildren']()){const _0x16cbd9=_0x10ef51['getAttribute']('footnoteId');this['getFootnote'](_0x16cbd9)||(_0x23f082['unshift'](_0x10ef51),_0xe18ead=!0x0);}for(const _0x182611 of _0x23f082)_0x3bff24['remove'](_0x182611);}const _0x3550bd=new Set(),_0x7cc65f=[];for(const _0x3a9648 of this['_footnotesDefinitions']['getChildren']()){const _0x35f015=_0x3a9648['getAttribute']('footnoteId');_0x3550bd['has'](_0x35f015)?(_0x7cc65f['unshift'](_0x3a9648),_0xe18ead=!0x0):_0x3550bd['add'](_0x35f015);}for(const _0x2493dc of _0x7cc65f)_0x3bff24['remove'](_0x2493dc);return this['_footnotesDefinitions']['childCount']||(_0x3bff24['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xe18ead=!0x0),_0xe18ead;}['_handleInsertedFootnoteReference'](_0x565848,_0x5c8353){if(this['_footnotes']['find'](_0x43fda5=>_0x43fda5['reference']===_0x5c8353))return!0x1;let _0xb8e166=!0x1;const _0x657219=_0x5c8353['getAttribute']('footnoteId'),_0x557c71=this['_footnotes']['findIndex'](_0x212f89=>_0x212f89['id']===_0x657219);-0x1!==_0x557c71&&(_0x565848['remove'](this['_footnotes'][_0x557c71]['reference']),this['_footnotes']['splice'](_0x557c71,0x1),_0xb8e166=!0x0);let _0x4bc512=this['_footnotesDefinitions']?function(_0x3affa3,_0x1f50d2){for(const _0x341c5d of _0x3affa3['getChildren']())if(_0x341c5d['getAttribute']('footnoteId')===_0x1f50d2)return _0x341c5d;return null;}(this['_footnotesDefinitions'],_0x657219):null;_0x4bc512||(_0x4bc512=_0x565848['createElement']('footnoteDefinition',{'footnoteId':_0x657219}),this['_footnotesDefinitions']&&(_0x565848['insert'](_0x4bc512,this['_footnotesDefinitions'],'end'),_0xb8e166=!0x0));const _0x5723be={'id':_0x657219,'reference':_0x5c8353,'definition':_0x4bc512},_0x594c1a=I(this['editor']['model'],this['_footnotes'],_0x5c8353);this['_footnotes']['splice'](_0x594c1a,0x0,_0x5723be);let _0x4e0c00=_0x594c1a;return-0x1!==_0x557c71&&(_0x4e0c00=Math['min'](_0x594c1a,_0x557c71)),this['_updateFootnotesCounters'](_0x565848,_0x4e0c00)&&(_0xb8e166=!0x0),_0xb8e166;}['_handleRemoveFootnoteReferenceById'](_0x401d6d,_0x547073){const _0x209510=this['_footnotes']['findIndex'](_0x3a4b54=>_0x3a4b54['id']===_0x547073);if(-0x1===_0x209510)return!0x1;let _0x575ddc=!0x1;const _0x436b0c=this['_footnotes'][_0x209510];return'$graveyard'!==_0x436b0c['definition']['root']['rootName']&&(_0x401d6d['remove'](_0x436b0c['definition']),_0x575ddc=!0x0),this['_footnotes']['splice'](_0x209510,0x1),this['_updateFootnotesCounters'](_0x401d6d,_0x209510)&&(_0x575ddc=!0x0),_0x575ddc;}['_handleMovedFootnoteReference'](_0x397472,_0xb4c110){const _0x1eb762=_0xb4c110['getAttribute']('footnoteId'),_0x20ba03=this['_footnotes']['findIndex'](_0x16cfbd=>_0x16cfbd['id']===_0x1eb762),_0x1959e2=this['_footnotes'][_0x20ba03];let _0x2ac359=!0x1;_0x1959e2['reference']=_0xb4c110,this['_footnotes']['splice'](_0x20ba03,0x1);const _0x571614=I(this['editor']['model'],this['_footnotes'],_0xb4c110);return this['_footnotes']['splice'](_0x571614,0x0,_0x1959e2),this['_updateFootnotesCounters'](_0x397472,Math['min'](_0x20ba03,_0x571614))&&(_0x2ac359=!0x0),_0x2ac359;}['_updateFootnoteRefCounter'](_0x51bd1a,_0x4c437d){if(!this['_footnotesDefinitions'])return!0x1;const _0x5c1d69=this['_footnotes'][_0x4c437d];let _0x4c1299;return _0x4c1299=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5c1d69,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x4c437d+0x1}):String(_0x4c437d+0x1),_0x5c1d69['reference']['getAttribute']('footnoteCounter')!=_0x4c1299&&(_0x51bd1a['setAttribute']('footnoteCounter',_0x4c1299,_0x5c1d69['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x1355c2){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x178981,_0x219f82){if(_0x178981['length']!==_0x219f82['length'])return!0x1;for(let _0x48d1aa=0x0;_0x48d1aa<_0x178981['length'];_0x48d1aa++)if(_0x178981[_0x48d1aa]!==_0x219f82[_0x48d1aa])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x405226=>_0x405226['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x42421e=>_0x42421e['getAttribute']('footnoteId'))))return!0x1;let _0x42e263=!0x1;for(let _0x29712d=0x0;_0x29712d<this['_footnotes']['length'];_0x29712d++){const _0x440599=this['_footnotes'][_0x29712d],_0x246754=_0x1355c2['createPositionBefore'](_0x440599['definition']),_0x27f7de=_0x1355c2['createPositionAt'](this['_footnotesDefinitions'],_0x29712d);_0x246754['isEqual'](_0x27f7de)||(_0x1355c2['move'](_0x1355c2['createRangeOn'](_0x440599['definition']),_0x27f7de),_0x42e263=!0x0);}return _0x42e263;}['_ensureFootnotesReferencesHaveProperOrder'](_0x44226d){if(!this['_footnotes']['length'])return!0x1;const {model:_0x48cd0f}=this['editor'];let _0x365b2c=!0x1;for(let _0xe86d78=0x0;_0xe86d78<this['_footnotes']['length']-0x1;_0xe86d78++){const _0x5cd53b=this['_footnotes'][_0xe86d78],_0xafa18=this['_footnotes'][_0xe86d78+0x1],_0x15502d=_0x48cd0f['createPositionBefore'](_0x5cd53b['reference']),_0x5eaf81=_0x48cd0f['createPositionBefore'](_0xafa18['reference']);'after'===_0x15502d['compareWith'](_0x5eaf81)&&(this['_handleMovedFootnoteReference'](_0x44226d,_0x5cd53b['reference']),_0xe86d78=-0x1,_0x365b2c=!0x0);}return _0x365b2c;}}function _(_0x3df062,_0x4099a9,_0x34edd9){if(_0x34edd9['childCount'])return!0x1;const _0x35c89b=_0x4099a9?'paragraph':'footnoteInlineContent';return _0x3df062['insert'](_0x3df062['createElement'](_0x35c89b),_0x34edd9),!0x0;}function I(_0x5c1a93,_0xd3127f,_0x4b72bd){if(0x0===_0xd3127f['length'])return 0x0;const _0x5b4449=_0x5c1a93['createPositionBefore'](_0x4b72bd);for(let _0x415539=0x0;_0x415539<_0xd3127f['length'];_0x415539++){const _0x152095=_0xd3127f[_0x415539],_0x2a49cb=_0x5c1a93['createPositionBefore'](_0x152095['reference']);if('before'===_0x5b4449['compareWith'](_0x2a49cb))return _0x415539;}const _0x5d157e=_0x4b72bd['root'];let _0x19a708=-0x1;for(let _0x257664=_0xd3127f['length']-0x1;_0x257664>=0x0;_0x257664--)if(_0xd3127f[_0x257664]['reference']['root']===_0x5d157e){_0x19a708=_0x257664;break;}if(-0x1!==_0x19a708)return _0x19a708+0x1;const _0x1a868e=_0x5c1a93['document']['getRootNames'](),_0x57a763=_0x1a868e['indexOf'](_0x5d157e['rootName']),_0x3eb8f1=_0x1a868e[_0x57a763+0x1];if(_0x3eb8f1){for(let _0x4a4f9d=0x0;_0x4a4f9d<_0xd3127f['length'];_0x4a4f9d++)if(_0xd3127f[_0x4a4f9d]['reference']['root']['rootName']===_0x3eb8f1)return _0x4a4f9d;}return _0xd3127f['length'];}class m extends _0x5aa7b1{['refresh'](){const _0x363fe0=this['editor']['model']['document']['selection'],_0x369a35=this['_getPositionToInsertFootnote'](_0x363fe0);this['isEnabled']=!!_0x369a35;}['execute'](_0x72876f){const {editor:_0x5bdad7}=this,{model:_0x46eb95}=_0x5bdad7,{selection:_0x3320f1}=_0x46eb95['document'],_0x4bfa67=this['_getPositionToInsertFootnote'](_0x3320f1);if(!_0x4bfa67)return;const _0x402645=_0x5bdad7['plugins']['get']('FootnotesEditing'),_0x24c20e=_0x72876f?.['footnoteId']??_0x399f6d();!function(_0x40f3ee){return'string'==typeof _0x40f3ee&&_0x40f3ee['length']>0x0&&!/\s/['test'](_0x40f3ee)&&!/^\d/['test'](_0x40f3ee);}(_0x24c20e)?_0x55ef9f('insert-footnote-command-executed-with-invalid-id'):(_0x46eb95['change'](_0x4c50a5=>{const _0x32c370=_0x4c50a5['createElement']('footnoteRef',{'footnoteId':_0x24c20e});_0x46eb95['insertObject'](_0x32c370,_0x4bfa67,null);}),_0x402645['_moveSelectionToFootnoteDefinition'](_0x24c20e));}['_getPositionToInsertFootnote'](_0x32b842){const {model:_0x3cf263}=this['editor'],{schema:_0x429744}=_0x3cf263,_0x568ad3=_0x32b842['getFirstRange']();for(const _0x3754dc of _0x568ad3['getItems']())if(_0x429744['isBlock'](_0x3754dc)||_0x429744['isObject'](_0x3754dc))return null;const _0x113a96=_0x568ad3['end'];return _0x429744['checkChild'](_0x113a96,'footnoteRef')?_0x113a96:null;}}class r extends _0x34c87d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3e8d4f}=this;_0x3e8d4f['config']['define']('footnotes.multiBlock',!0x0),_0x3e8d4f['commands']['add']('insertFootnote',new m(_0x3e8d4f)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x37d2a5){const _0x5b5584=_0x5228b3([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]),_0x2ad761=0x47a28506,_0x54bff5=0x47a5fcd6^_0x2ad761,_0x4eb35e=window[_0x5228b3([0x44,0x61,0x74,0x65])][_0x5228b3([0x6e,0x6f,0x77])](),_0x214a7b=_0x37d2a5[_0x5228b3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5cefb1=new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x35d34b=>{_0x214a7b[_0x5228b3([0x6f,0x6e,0x63,0x65])](_0x5228b3([0x72,0x65,0x61,0x64,0x79]),_0x35d34b);}),_0x4075aa={[_0x5228b3([0x6b,0x74,0x79])]:_0x5228b3([0x45,0x43]),[_0x5228b3([0x75,0x73,0x65])]:_0x5228b3([0x73,0x69,0x67]),[_0x5228b3([0x63,0x72,0x76])]:_0x5228b3([0x50,0x2d,0x32,0x35,0x36]),[_0x5228b3([0x78])]:_0x5228b3([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]),[_0x5228b3([0x79])]:_0x5228b3([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]),[_0x5228b3([0x61,0x6c,0x67])]:_0x5228b3([0x45,0x53,0x32,0x35,0x36])},_0x4bf20=_0x214a7b[_0x5228b3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5228b3([0x67,0x65,0x74])](_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa7549f(){let _0x2c31ca,_0x31d829=null,_0x36ee3d=null;try{if(_0x4bf20==_0x5228b3([0x47,0x50,0x4c]))return _0x5228b3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2c31ca=_0x4eefc2(),!_0x2c31ca)return _0x5228b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2c31ca[_0x5228b3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x36ee3d=_0x19c2a8(_0x2c31ca[_0x5228b3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2c31ca[_0x5228b3([0x6a,0x74,0x69])])),await _0x393cf0()?_0x4d605d()?_0x1f67da()?_0x5228b3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1e7451()?(_0x2c31ca[_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5228b3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x31d829=_0x2c4572(_0x5228b3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2c31ca[_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5228b3([0x74,0x72,0x69,0x61,0x6c])&&(_0x31d829=_0x2c4572(_0x5228b3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5efa18()):_0x5228b3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5228b3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5228b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5228b3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1f67da(){const _0x3551b5=[_0x5228b3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5228b3([0x74,0x72,0x69,0x61,0x6c])][_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c31ca[_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4eb35e/0x3e8:0xe10*_0x54bff5;return _0x2c31ca[_0x5228b3([0x65,0x78,0x70])]<_0x3551b5;}function _0x4d605d(){const _0x2bcd99=_0x2c31ca[_0x5228b3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2bcd99&&(!!_0x2bcd99[_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5228b3([0x2a]))||!!_0x2bcd99[_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5228b3([0x46,0x4f,0x4f])));}function _0x1e7451(){const _0x276108=_0x2c31ca[_0x5228b3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x276108||0x0==_0x276108[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x47a6ef}=new URL(window[_0x5228b3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x276108[_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x47a6ef))return!0x0;const _0x3ccf1a=_0x47a6ef[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])](_0x5228b3([0x2e]));return _0x276108[_0x5228b3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ec6d1=>_0x3ec6d1[_0x5228b3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5228b3([0x2a])))[_0x5228b3([0x6d,0x61,0x70])](_0x317ebe=>_0x317ebe[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])](_0x5228b3([0x2e])))[_0x5228b3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x12828b=>_0x12828b[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ccf1a[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5228b3([0x6d,0x61,0x70])](_0x579f3c=>Array(_0x3ccf1a[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x579f3c[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5228b3([0x66,0x69,0x6c,0x6c])](_0x579f3c[0x0]===_0x5228b3([0x2a])?_0x5228b3([0x2a]):'')[_0x5228b3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x579f3c))[_0x5228b3([0x73,0x6f,0x6d,0x65])](_0x56c9e6=>_0x3ccf1a[_0x5228b3([0x65,0x76,0x65,0x72,0x79])]((_0x1fcc8d,_0x48bc75)=>_0x56c9e6[_0x48bc75]===_0x1fcc8d||_0x56c9e6[_0x48bc75]===_0x5228b3([0x2a])));}function _0x5efa18(){return _0x31d829&&_0x36ee3d?new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x8920f3,_0x2a1ab6)=>{_0x31d829[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x8920f3,_0x2a1ab6),_0x36ee3d[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x3e8b58=>{_0x3e8b58!=_0x5228b3([0x56,0x61,0x6c,0x69,0x64])&&_0x8920f3(_0x3e8b58);},_0x2a1ab6);}):_0x31d829||_0x36ee3d||_0x5228b3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x19c2a8(_0x2d5771,_0x1c8614){return new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1baac3=>{if(_0x4a3687())return _0x1baac3(_0x5228b3([0x56,0x61,0x6c,0x69,0x64]));_0x384a85(),_0x214a7b[_0x5228b3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5228b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x202d70=!0x1;const _0x3e2c14=_0x399f6d();function _0x59f621(_0x1a9fa3){return!!_0x1a9fa3&&(typeof _0x1a9fa3===_0x5228b3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1a9fa3===_0x5228b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1a9fa3[_0x5228b3([0x74,0x68,0x65,0x6e])]===_0x5228b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1a9fa3[_0x5228b3([0x63,0x61,0x74,0x63,0x68])]===_0x5228b3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3867d(_0x218b92){_0x263d63(_0x218b92)[_0x5228b3([0x74,0x68,0x65,0x6e])](_0xc32b71=>{if(!_0xc32b71||_0xc32b71[_0x5228b3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5228b3([0x6f,0x6b]))return _0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x173f37(_0x488d5b(_0x3e2c14+_0x1c8614))!=_0xc32b71[_0x5228b3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5228b3([0x56,0x61,0x6c,0x69,0x64]);})[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x58a3e9=>(_0x3d44a5(),_0x58a3e9),()=>{const _0x12007f=_0x40fe64();return null==_0x12007f?(_0x3d44a5(),_0x5228b3([0x56,0x61,0x6c,0x69,0x64])):_0x5228b3(_0x4eb35e-_0x12007f>(0x63ae0106^_0x2ad761)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x1baac3)[_0x5228b3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1baac3(_0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54348c=0x47946b86^_0x2ad761;function _0x3d44a5(){const _0x1409a4=_0x5228b3([0x6c,0x6c,0x63,0x74,0x2d])+_0x173f37(_0x488d5b(_0x2d5771)),_0x4c4b7a=_0x431488(_0x173f37(window[_0x5228b3([0x4d,0x61,0x74,0x68])][_0x5228b3([0x63,0x65,0x69,0x6c])](_0x4eb35e/_0x54348c)));window[_0x5228b3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5228b3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1409a4,_0x4c4b7a);}function _0x40fe64(){const _0x33c2f8=_0x5228b3([0x6c,0x6c,0x63,0x74,0x2d])+_0x173f37(_0x488d5b(_0x2d5771)),_0x1cfe5e=window[_0x5228b3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5228b3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x33c2f8);return _0x1cfe5e?window[_0x5228b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x431488(_0x1cfe5e),0x10)*_0x54348c:null;}function _0x263d63(_0x39e8de){return new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x114aca,_0x3f81e4)=>{_0x39e8de[_0x5228b3([0x74,0x68,0x65,0x6e])](_0x114aca,_0x3f81e4),window[_0x5228b3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3f81e4,0x47a351c6^_0x2ad761);});}}_0x214a7b[_0x5228b3([0x6f,0x6e])](_0x5228b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x6b1218,_0x5f5396)=>{if(_0x5f5396[0x0]!=_0x2d5771)return _0x1baac3(_0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5f5396[0x1]={..._0x5f5396[0x1],[_0x5228b3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3e2c14};},{[_0x5228b3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5228b3([0x68,0x69,0x67,0x68])}),_0x214a7b[_0x5228b3([0x6f,0x6e])](_0x5228b3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4ad507=>{_0x59f621(_0x4ad507[_0x5228b3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x202d70=!0x0,_0x3867d(_0x4ad507[_0x5228b3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5228b3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5228b3([0x6c,0x6f,0x77])}),_0x5cefb1[_0x5228b3([0x74,0x68,0x65,0x6e])](()=>{_0x202d70||_0x1baac3(_0x5228b3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4a3687(){return _0x214a7b[_0x5228b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5228b3([0x76,0x69,0x65,0x77])][_0x5228b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5228b3([0x61,0x75,0x74,0x6f]);}function _0x384a85(){_0x214a7b[_0x5228b3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5228b3([0x76,0x69,0x65,0x77])][_0x5228b3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5228b3([0x61,0x75,0x74,0x6f]);}}function _0x2c4572(_0x10653d){const _0x4c231d=[new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x149819=>setTimeout(_0x149819,0x47abbbca^_0x2ad761)),_0x5cefb1[_0x5228b3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18e3f4=>{let _0x52267c=0x0;_0x214a7b[_0x5228b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5228b3([0x6f,0x6e])](_0x5228b3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x42f2b0,_0x2a0cf0)=>{_0x2a0cf0[0x0][_0x5228b3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x52267c++,_0x52267c==(0x47a284fe^_0x2ad761)&&(_0x18e3f4(),_0x42f2b0[_0x5228b3([0x6f,0x66,0x66])]());});}))];return window[_0x5228b3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5228b3([0x72,0x61,0x63,0x65])](_0x4c231d)[_0x5228b3([0x74,0x68,0x65,0x6e])](()=>_0x10653d);}async function _0x102874(){await _0x5cefb1,_0x214a7b[_0x5228b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5228b3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa30c,_0x214a7b[_0x5228b3([0x6d,0x6f,0x64,0x65,0x6c])][_0x5228b3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4fa30c,_0x214a7b[_0x5228b3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5228b3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x220fa8(_0x80fe2b){const _0x5b6529=_0x7a8c43();_0x214a7b[_0x5b6529]=_0x5228b3([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x80fe2b,_0x80fe2b!=_0x5228b3([0x56,0x61,0x6c,0x69,0x64])&&_0x102874();}function _0x7a8c43(){const _0x31d92e=window[_0x5228b3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5228b3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5228b3([0x6e,0x6f,0x77])]())[_0x5228b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5228b3([0x2e]),'');let _0x9d377d=_0x5228b3([0x75]);for(let _0x287b44=0x0;_0x287b44<_0x31d92e[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x287b44+=0x2){let _0xcb1812=window[_0x5228b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x31d92e[_0x5228b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x287b44,_0x287b44+0x2));_0xcb1812>=_0x5b5584[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xcb1812-=_0x5b5584[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x9d377d+=_0x5b5584[_0xcb1812];}return _0x9d377d;}function _0x4eefc2(){const _0x19eae2=_0x4bf20[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])](_0x5228b3([0x2e]));if(0x3!=_0x19eae2[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x2bfaa9(_0x19eae2[0x1]);function _0x2bfaa9(_0x2c9ce3){const _0x1c08a1=_0x3f2de5(_0x2c9ce3);return _0x1c08a1&&_0x510c34()?_0x1c08a1:null;function _0x510c34(){const _0xb9aa17=_0x1c08a1[_0x5228b3([0x6a,0x74,0x69])],_0x4ab5a8=window[_0x5228b3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xb9aa17[_0x5228b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xb9aa17[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xd3eb40={..._0x1c08a1,[_0x5228b3([0x6a,0x74,0x69])]:_0xb9aa17[_0x5228b3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0xb9aa17[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xd3eb40[_0x5228b3([0x76,0x63])],_0x488d5b(_0xd3eb40)==_0x4ab5a8;}}}async function _0x393cf0(){let _0xd2bb02=!0x0;try{const _0x33b39d=_0x4bf20[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])](_0x5228b3([0x2e])),[_0x1e12c9,_0x2b24a2,_0x1c23ba]=_0x33b39d;return _0x29266b(_0x1e12c9),await _0xd34b45(_0x1e12c9,_0x2b24a2,_0x1c23ba),_0xd2bb02;}catch{return!0x1;}function _0x29266b(_0xa708d5){const _0x3ac18d=_0x3f2de5(_0xa708d5);_0x3ac18d&&_0x3ac18d[_0x5228b3([0x61,0x6c,0x67])]==_0x5228b3([0x45,0x53,0x32,0x35,0x36])||(_0xd2bb02=!0x1);}async function _0xd34b45(_0x217386,_0x502505,_0x3cc406){const _0x21d68f=window[_0x5228b3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5228b3([0x66,0x72,0x6f,0x6d])](_0x44ff5d(_0x3cc406),_0x39fd48=>_0x39fd48[_0x5228b3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x19ac69=new window[(_0x5228b3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5228b3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x217386+_0x5228b3([0x2e])+_0x502505),_0xb7959a=window[_0x5228b3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5228b3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xb7959a)return;const _0x489941=await _0xb7959a[_0x5228b3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5228b3([0x6a,0x77,0x6b]),_0x4075aa,{[_0x5228b3([0x6e,0x61,0x6d,0x65])]:_0x5228b3([0x45,0x43,0x44,0x53,0x41]),[_0x5228b3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5228b3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5228b3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xb7959a[_0x5228b3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5228b3([0x6e,0x61,0x6d,0x65])]:_0x5228b3([0x45,0x43,0x44,0x53,0x41]),[_0x5228b3([0x68,0x61,0x73,0x68])]:{[_0x5228b3([0x6e,0x61,0x6d,0x65])]:_0x5228b3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x489941,_0x21d68f,_0x19ac69)||(_0xd2bb02=!0x1);}}function _0x3f2de5(_0x3806d6){return _0x3806d6[_0x5228b3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5228b3([0x65,0x79]))?JSON[_0x5228b3([0x70,0x61,0x72,0x73,0x65])](_0x44ff5d(_0x3806d6)):null;}function _0x44ff5d(_0x486b37){return window[_0x5228b3([0x61,0x74,0x6f,0x62])](_0x486b37[_0x5228b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5228b3([0x2b]))[_0x5228b3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5228b3([0x2f])));}function _0x488d5b(_0x2fac64){let _0x223c9=0x1505;function _0x267178(_0x5e1287){for(let _0xaa8c5b=0x0;_0xaa8c5b<_0x5e1287[_0x5228b3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xaa8c5b++){const _0x30ee05=_0x5e1287[_0x5228b3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xaa8c5b);_0x223c9=(_0x223c9<<0x5)+_0x223c9+_0x30ee05,_0x223c9&=_0x223c9;}}function _0x2a1c8e(_0x1c3c1a){Array[_0x5228b3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c3c1a)?_0x1c3c1a[_0x5228b3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a1c8e):_0x1c3c1a&&typeof _0x1c3c1a==_0x5228b3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5228b3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c3c1a)[_0x5228b3([0x73,0x6f,0x72,0x74])]()[_0x5228b3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x38ef68,_0x15eed3])=>{_0x267178(_0x38ef68),_0x2a1c8e(_0x15eed3);}):_0x267178(window[_0x5228b3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c3c1a));}return _0x2a1c8e(_0x2fac64),_0x223c9>>>0x0;}function _0x173f37(_0x4d9ee8){return _0x4d9ee8[_0x5228b3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5228b3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5228b3([0x30]));}function _0x431488(_0x530367){return _0x530367[_0x5228b3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5228b3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5228b3([0x6a,0x6f,0x69,0x6e])]('');}function _0x4fa30c(){}function _0x5228b3(_0x1fd139){return _0x1fd139['map'](_0x5a277d=>String['fromCharCode'](_0x5a277d))['join']('');}_0x220fa8(await _0xa7549f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x28fb8d){const {plugins:_0x11e31,editing:_0x5f3a52,model:_0x472622}=this['editor'],_0x241a98=_0x11e31['get'](c)['getFootnote'](_0x28fb8d);return!!_0x241a98&&(_0x472622['change'](_0x2b0dc4=>{_0x2b0dc4['setSelection'](_0x2b0dc4['createPositionAt'](_0x241a98['definition'],'end'));}),_0x5f3a52['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x41fa85){const {plugins:_0xd9cd44,editing:_0x4f39d3,model:_0x18a9d4}=this['editor'],_0x9fda4f=_0xd9cd44['get'](c)['getFootnote'](_0x41fa85);return!!_0x9fda4f&&(_0x18a9d4['change'](_0x1e089c=>{_0x1e089c['setSelection'](_0x9fda4f['reference'],'on');}),_0x4f39d3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x28729a}=this['editor']['model'],_0x119867=this['editor']['config']['get']('footnotes.multiBlock');_0x28729a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x28729a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x28729a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x119867?_0x28729a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x28729a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x28729a['addChildCheck'](_0x45b03a=>{for(const _0x1888ad of _0x45b03a)if('footnoteDefinition'===_0x1888ad['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x528820}=this,{conversion:_0xfee792,editing:_0x4e546a}=_0x528820,{t:t}=_0x528820['locale'];_0xfee792['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2bdc26,{writer:_0x3a1534,consumable:_0x14ea27})=>{const _0x19b1f5=_0x2bdc26['getChild'](0x0);if(!_0x19b1f5||!_0x19b1f5['is']('element','a'))return null;const _0x186539=_0x19b1f5['getAttribute']('href')||'';if(!_0x186539['startsWith']('#'))return null;const _0x47b50f=_0x186539['replace'](/^#/,'');if(!_0x47b50f)return null;_0x14ea27['consume'](_0x19b1f5,{'name':!0x0,'attributes':['href']});for(const {item:_0x3c3a3d}of _0x4e546a['view']['createRangeIn'](_0x19b1f5))_0x3c3a3d['is']('$textProxy')?_0x14ea27['consume'](_0x3c3a3d['textNode'],{'name':!0x0}):_0x3c3a3d['is']('element')&&_0x14ea27['consume'](_0x3c3a3d,{'name':!0x0});return _0x3a1534['createElement']('footnoteRef',{'footnoteId':_0x47b50f});}}),_0xfee792['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2eabaa,{writer:_0x3a1b55})=>D(_0x2eabaa,_0x3a1b55)}),_0xfee792['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x746ce,{writer:_0x4b452e})=>{const _0x3fcc87=_0x746ce['getAttribute']('footnoteCounter');return _0x14a494(D(_0x746ce,_0x4b452e),_0x4b452e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x3fcc87)});}});}['_defineDefinitionsConverters'](){const {editor:_0x58036f}=this,{t:t}=_0x58036f['locale'],{conversion:_0x5ad8e7}=_0x58036f;_0x5ad8e7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5ad8e7['for']('upcast')['add'](_0x59f7e0=>{_0x59f7e0['on']('element:ol',(_0x22d991,_0x557a05,_0xb52206)=>{const _0x450330=_0x557a05['viewItem'];if(!_0x450330['hasClass']('footnotes-list')||!_0x557a05['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xb52206['consumable']['consume'](_0x450330,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x811059,modelCursor:_0xd48403}=_0xb52206['convertChildren'](_0x557a05['viewItem'],_0x557a05['modelCursor']);_0x557a05['modelRange']=_0x811059,_0x557a05['modelCursor']=_0xd48403;}),_0x59f7e0['on']('element:hr',(_0x2ca281,_0x2181d9,_0x156d0e)=>{const _0x46da1b=_0x2181d9['viewItem'];_0x46da1b['hasClass']('footnotes-divider')&&_0x2181d9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x156d0e['consumable']['consume'](_0x46da1b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5ad8e7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x52382c,{writer:_0x2de3c3})=>v(_0x2de3c3)}),_0x5ad8e7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x473945,{writer:_0x7c43af})=>{const _0x2f6df1=v(_0x7c43af,{'data-footnotes-list-label':t('Footnotes')}),_0xce611e=_0x14a494(_0x2f6df1,_0x7c43af,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x7c43af['setCustomProperty']('footnotesDefinitions',!0x0,_0xce611e),_0xce611e;}});}['_defineDefinitionConverters'](){const {editor:_0x307bed}=this,{conversion:_0x126bc2,locale:_0x1c7bdc}=_0x307bed,_0x50a38a=_0x307bed['config']['get']('footnotes.multiBlock');_0x126bc2['for']('upcast')['add'](_0x1f48ac=>{_0x1f48ac['on']('element:li',(_0x5b6038,_0x21d539,_0x37771a)=>{const _0x5126e4=_0x21d539['viewItem'];if(!_0x5126e4['hasClass']('footnote-definition')||!_0x5126e4['getAttribute']('id'))return;const _0x21a92f=_0x5126e4['parent'];if(!_0x21a92f['is']('element','ol')||!_0x21a92f['hasClass']('footnotes-list'))return;if(!_0x37771a['consumable']['test'](_0x5126e4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2bb095=_0x37771a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5126e4['getAttribute']('id')});if(!_0x37771a['safeInsert'](_0x2bb095,_0x21d539['modelCursor']))return;_0x37771a['consumable']['consume'](_0x5126e4,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x98c2c8=Array['from'](_0x5126e4['getChildren']())['find'](_0x1d3cb2=>_0x1d3cb2['is']('element')&&_0x1d3cb2['hasClass']('footnote-content'));for(const _0x37e47e of _0x5126e4['getChildren']())_0x37e47e['is']('element')&&(_0x37771a['consumable']['consume'](_0x37e47e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x37771a['consumable']['consume'](_0x37e47e,{'name':!0x0,'classes':'footnote-content'}));if(_0x98c2c8){if(_0x50a38a)_0x37771a['convertChildren'](_0x98c2c8,_0x2bb095);else{const _0x16ae61=_0x37771a['writer']['createElement']('footnoteInlineContent');_0x37771a['writer']['insert'](_0x16ae61,_0x2bb095),_0x37771a['convertChildren'](_0x98c2c8,_0x16ae61);}}_0x37771a['updateConversionResult'](_0x2bb095,_0x21d539);});}),_0x126bc2['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x541bff,{writer:_0x3a3149})=>b(_0x541bff,_0x3a3149,_0x1c7bdc,{'dataPipeline':!0x0})}),_0x126bc2['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x585ba3,{writer:_0x42ff4f})=>b(_0x585ba3,_0x42ff4f,_0x1c7bdc)});}['_defineBogusParagraphConverters'](){const {editor:_0x3a6672}=this,{conversion:_0x3d9a35}=_0x3a6672;_0x3a6672['config']['get']('footnotes.multiBlock')?(_0x3d9a35['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x3d9a35['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3a6672['model']['document'],'change:data',()=>{!function(_0x5d498a,_0x3bd4e2){const _0x3ed33d=_0x5d498a['document']['differ'],_0x933660=new Set();for(const _0x355941 of _0x3ed33d['getChanges']()){const _0x25322f='attribute'==_0x355941['type']?_0x355941['range']['start']['parent']:_0x355941['position']['parent'];_0x25322f['is']('element','footnoteDefinition')&&_0x933660['add'](_0x25322f);}for(const _0x52a4f4 of _0x933660['values']()){const _0x264570=Array['from'](_0x52a4f4['getChildren']())['filter'](_0x4442a2=>g(_0x4442a2,_0x3bd4e2['mapper']));for(const _0x5d9bae of _0x264570)_0x3bd4e2['reconvertItem'](_0x5d9bae);}}(_0x3a6672['model'],_0x3a6672['editing']);})):(_0x3d9a35['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x3d9a35['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4971ae,{writer:_0x2ea794})=>{const _0x94b6c9=_0x2ea794['createContainerElement']('span');return _0x2ea794['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x94b6c9),_0x94b6c9;}}));}['_defineKeyboardHandlers'](){const {editor:_0x267712}=this,{editing:_0x5a0ab8,t:t}=_0x267712,_0x21e7c0=_0x267712['model']['document']['selection'];_0x267712['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x267712['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5a0ab8['view']['document'],'enter',(_0x420bb0,_0x5b2e8b)=>{const _0x2ef06d=function(_0x201fc3){const _0x506e6a=_0x201fc3['getSelectedElement']();if(_0x506e6a?.['is']('element','footnoteRef'))return _0x506e6a;return null;}(_0x21e7c0);if(_0x2ef06d){const _0x595381=_0x2ef06d['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x595381),_0x5b2e8b['preventDefault'](),_0x420bb0['stop']();}},{'context':_0x3e8f12});}['_defineClickHandlers'](){const {editor:_0x474f69}=this,{editing:_0x2261e1}=_0x474f69;_0x474f69['editing']['view']['addObserver'](_0x3cf8e0),_0x474f69['editing']['view']['addObserver'](_0x5a2b0c);let _0x40ce5b=!0x1;this['listenTo'](_0x2261e1['view']['document'],'pointerdown',(_0x226038,_0x38431a)=>{const {target:_0x520bcc}=_0x38431a,_0x159699=_0x2261e1['view']['document']['selection'];_0x40ce5b=!!(_0x520bcc?.['is']('element','a')&&_0x520bcc['parent']?.['is']('element','sup')&&_0x520bcc['parent']['hasClass']('footnote'))&&_0x159699['getSelectedElement']()===_0x520bcc['parent'];},{'priority':'high'}),this['listenTo'](_0x2261e1['view']['document'],'click',(_0x1826ef,_0x5a4325)=>{const {target:_0x2c28b3}=_0x5a4325;if(!_0x2c28b3?.['is']('element','a'))return;if(_0x2c28b3['parent']?.['is']('element','sup')&&_0x2c28b3['parent']['hasClass']('footnote')&&!_0x40ce5b)return void _0x5a4325['preventDefault']();let _0x539ed2=_0x2c28b3['getAttribute']('href');if(!_0x539ed2?.['startsWith']('#'))return;_0x539ed2=_0x539ed2['slice'](0x1);let _0x2e6e53=!0x1;(_0x539ed2['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x539ed2['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x539ed2))&&(_0x2e6e53=!0x0),_0x2e6e53&&(_0x5a4325['preventDefault'](),_0x1826ef['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0xc1345d}={}){return(_0xc515a8,{writer:_0xbf956c})=>{if(!p(_0xc515a8))return null;if(!_0xc1345d)return _0xbf956c['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1a3546=_0xbf956c['createContainerElement']('p');return _0xbf956c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1a3546),_0x1a3546;};}function p(_0x537b97){const {parent:_0x768cc2}=_0x537b97;if(!_0x768cc2?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x768cc2['childCount'])return!0x1;for(const _0x4b003f of _0x537b97['getAttributeKeys']())if(!_0x4b003f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4b003f)return!0x1;return!0x0;}function g(_0x233e8d,_0x475294){if(!_0x233e8d['is']('element','paragraph'))return!0x1;const _0x1b3136=_0x475294['toViewElement'](_0x233e8d);return!!_0x1b3136&&p(_0x233e8d)!==_0x1b3136['is']('element','span');}function J(_0x50bdd8){return _0x3e8f12(_0x50bdd8)&&_0x50bdd8['is']('containerElement')&&!!_0x50bdd8['getCustomProperty']('footnotesDefinitions');}function v(_0x1dc52e,_0x59238b={}){const _0x577ca0=_0x1dc52e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2b64a0=_0x1dc52e['createContainerElement']('ol',{'class':'footnotes-list'},_0x1dc52e['createSlot']());return _0x1dc52e['createContainerElement']('div',{'class':'footnotes',..._0x59238b},[_0x577ca0,_0x2b64a0]);}function D(_0x5ef0e2,_0x404a5a){const _0x18fc41=_0x5ef0e2['getAttribute']('footnoteId'),_0x5d18e4=_0x5ef0e2['getAttribute']('footnoteCounter'),_0x5158db=_0x404a5a['createUIElement']('a',{'href':'#'+_0x18fc41},function(_0x53786e){const _0x5383c0=this['toDomElement'](_0x53786e);return _0x5383c0['textContent']=_0x5d18e4,_0x5383c0;}),_0x458ed9=_0x404a5a['createContainerElement']('sup',{'id':'ref-'+_0x18fc41,'class':'footnote'},[_0x5158db]);return _0x458ed9['getFillerOffset']=()=>null,_0x458ed9;}function b(_0x571715,_0x5d970f,_0x17154b,{dataPipeline:_0x2fe10d}={}){const {t:t}=_0x17154b,_0xde7914=_0x571715['getAttribute']('footnoteId'),_0xb2b7a1=_0x5d970f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xde7914},function(_0x39a2de){const _0xf18e38=this['toDomElement'](_0x39a2de);return _0xf18e38['innerText']='^',_0xf18e38;}),_0xc928c2=_0x2fe10d?_0x5d970f['createContainerElement']('div',{'class':'footnote-content'}):_0x1ffbe6(_0x5d970f['createEditableElement']('div',{'class':'footnote-content'}),_0x5d970f,{'label':t('Footnote\x20content.')});return _0x5d970f['insert'](_0x5d970f['createPositionAt'](_0xc928c2,0x0),_0x5d970f['createSlot']()),_0x5d970f['createContainerElement']('li',{'class':'footnote-definition','id':_0xde7914},[_0xb2b7a1,_0xc928c2]);}class e extends _0x34c87d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xc97c9e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x170f9c}=this,{plugins:_0x4c3b09,model:_0xc209e3}=_0x170f9c,_0x978cd9=_0x4c3b09['get'](_0xc97c9e),_0x556f0d=_0x4c3b09['get'](c);this['listenTo'](_0x978cd9,'outputTransformation',(_0x20ebe7,_0x162a68)=>{const _0x5d12aa=f(_0xc209e3['createRangeIn'](_0x162a68['content']));if(!_0x5d12aa['length'])return;const _0x4e8e8e=_0x556f0d['getFootnotes'](),_0x4b1d1d=_0x5d12aa['reduce']((_0x1be79f,_0x7f2fd)=>{const _0x28a9a0=_0x4e8e8e['find'](_0x3ee1fb=>_0x3ee1fb['id']===_0x7f2fd);if(_0x28a9a0){const _0x1fab7d=_0x170f9c['data']['toView'](_0x28a9a0['definition'],{'isClipboardPipeline':!0x0}),_0x3c5757=_0x170f9c['data']['htmlProcessor']['toData'](_0x1fab7d);_0x1be79f[_0x28a9a0['id']]=_0x3c5757;}return _0x1be79f;},Object['create'](null));_0x162a68['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4b1d1d));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x51e6c2}=this,{model:_0x2968db,plugins:_0x173e37}=_0x51e6c2,{view:_0x59a2fb}=_0x51e6c2['editing'],_0x4f3135=_0x173e37['get'](_0xc97c9e),_0x578063=_0x173e37['get'](c);let _0x4edbc6=null;this['listenTo'](_0x59a2fb['document'],'clipboardInput',(_0x34bd0f,_0x107af9)=>{const _0x2055c8=_0x107af9['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4edbc6=_0x2055c8?JSON['parse'](_0x2055c8):null;}),this['listenTo'](_0x4f3135,'contentInsertion',(_0x51cad3,_0x1c86e4)=>{const _0xdaf6ff=_0x1c86e4['sourceEditorId']===this['editor']['id'];_0xdaf6ff&&'drop'===_0x1c86e4['method']||_0x2968db['change'](_0x2aa01d=>{let _0x2b49a2=_0x578063['getFootnotesDefinitionsObjectElement']();const _0x5e7e44=!!_0x2b49a2&&Array['from'](_0x2968db['document']['selection']['getSelectedBlocks']())['includes'](_0x2b49a2);if((_0x2b49a2&&!_0x5e7e44||!_0x2b49a2&&!_0x4edbc6)&&function(_0xf69fb2,_0x5666a3){const _0x17696b=[];for(const {item:_0x3532f2}of _0xf69fb2['createRangeIn'](_0x5666a3))_0x3532f2['is']('element','footnotesDefinitions')&&_0x17696b['push'](_0x3532f2);for(const _0x2dc3e6 of _0x17696b)_0xf69fb2['remove'](_0x2dc3e6);}(_0x2aa01d,_0x1c86e4['content']),!_0x4edbc6)return;const {selection:_0x584825}=_0x2968db['document'],_0x28d33e=_0x584825['getFirstRange']()['root'];_0x2b49a2&&!_0x5e7e44||(_0x2b49a2=function(_0x10ef91,_0x50a5a7){for(const {item:_0x14cc47}of _0x10ef91['createRangeIn'](_0x50a5a7))if(_0x14cc47['is']('element','footnotesDefinitions'))return _0x14cc47;return null;}(_0x2aa01d,_0x1c86e4['content']),_0x2b49a2||=_0x578063['_insertEmptyFootnotesDefinitionsContainer'](_0x2aa01d,_0x28d33e));const _0x215012=Array['from'](_0x584825['getRanges']())['flatMap'](f),_0x19ba5f=function(_0x2372c3,_0x58a5c6,_0xb4e659){const _0x43f03c=Object['create'](null);for(const {item:_0x1de0d3}of _0x2372c3['createRangeIn'](_0x58a5c6))if(_0x1de0d3['is']('element','footnoteRef')){const _0x3af9f8=_0x1de0d3['getAttribute']('footnoteId');if(!_0xb4e659(_0x3af9f8))continue;_0x43f03c[_0x3af9f8]||(_0x43f03c[_0x3af9f8]=_0x399f6d()),_0x2372c3['setAttribute']('footnoteId',_0x43f03c[_0x3af9f8],_0x1de0d3);}return _0x43f03c;}(_0x2aa01d,_0x1c86e4['content'],_0x1a09d0=>{if(!_0xdaf6ff)return!0x0;return!!_0x578063['getFootnote'](_0x1a09d0)&&!_0x215012['includes'](_0x1a09d0);});for(const [_0x49d5e0,_0x3c47e9]of Object['entries'](_0x4edbc6)){const _0x4b8096=_0x19ba5f[_0x49d5e0]||_0x49d5e0,_0x4bb12b=_0x2aa01d['createElement']('footnoteDefinition',{'footnoteId':_0x4b8096}),_0x11d5a6=_0x51e6c2['data']['htmlProcessor']['toView'](_0x3c47e9),_0x22aa3b=_0x51e6c2['data']['toModel'](_0x11d5a6,_0x4bb12b);_0x2aa01d['append'](_0x22aa3b,_0x4bb12b),_0x2aa01d['insert'](_0x4bb12b,_0x2b49a2,'end');}_0x4edbc6=null;});});}}function f(_0x52c682){const _0x191062=new Set();for(const {item:_0x57a627}of _0x52c682)_0x57a627['is']('element','footnoteRef')&&_0x191062['add'](_0x57a627['getAttribute']('footnoteId'));return Array['from'](_0x191062);}class i extends _0x34c87d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4074ae}=this,{componentFactory:_0x52c24f}=_0x4074ae['ui'];_0x52c24f['add']('insertFootnote',x(_0x4074ae,_0x5c9843)),_0x52c24f['add']('menuBar:insertFootnote',x(_0x4074ae,_0x5957c7)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x38d236=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x332207;for(const _0x47ce50 in _0x38d236){const _0x275dbd=_0x47ce50,_0x42e728=_0x38d236[_0x275dbd];if('footnotesLicenseKeyValid'==_0x42e728||'footnotesLicenseKeyInvalid'==_0x42e728||'footnotesLicenseKeyExpired'==_0x42e728||'footnotesLicenseKeyDomainLimit'==_0x42e728||'footnotesLicenseKeyNotAllowed'==_0x42e728||'footnotesLicenseKeyEvaluationLimit'==_0x42e728||'footnotesLicenseKeyTrialLimit'==_0x42e728||'footnotesLicenseKeyUsageLimit'==_0x42e728){delete _0x38d236[_0x275dbd],_0x332207=_0x42e728,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x332207&&_0x38d236['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x332207&&_0x38d236['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x332207&&_0x38d236['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x332207&&_0x38d236['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x332207&&_0x38d236['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x332207&&_0x38d236['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x332207&&_0x38d236['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x46f4fb,_0x35cb40){const _0x32895a=_0x46f4fb['commands']['get']('insertFootnote');return _0x44ea56=>{const {t:t}=_0x44ea56,_0x20e4b2=new _0x35cb40(_0x44ea56),_0x951ae5=_0x20e4b2 instanceof _0x5957c7;return _0x20e4b2['bind']('isEnabled')['to'](_0x32895a,'isEnabled'),_0x20e4b2['set']({'label':t(_0x951ae5?'Footnote':'Insert\x20footnote'),'icon':_0x4763d7,'tooltip':!0x0}),_0x20e4b2['on']('execute',()=>{_0x32895a['execute'](),_0x46f4fb['editing']['view']['focus']();}),_0x20e4b2;};}class lt extends _0x34c87d{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 _0x5aa7b1{['refresh'](){const {editor:_0x5cae93}=this,_0x589e86=_0x5cae93['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x589e86,this['value']=_0x589e86?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4dd961}){const {editor:_0x4d3241}=this,_0x4b59ba=_0x4d3241['plugins']['get'](c),_0x86979f=_0x4b59ba['getFootnotesDefinitionsObjectElement']();_0x86979f&&Q['includes'](_0x4dd961)&&_0x4d3241['model']['change'](_0x5169c8=>{_0x5169c8['setAttribute']('footnotesListStyle',_0x4dd961,_0x86979f),_0x4b59ba['_updateFootnotesCounters'](_0x5169c8);});}}class C extends _0x5aa7b1{['refresh'](){const {editor:_0x55f141}=this,_0x3ae288=_0x55f141['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3ae288,this['value']=_0x3ae288?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x6e432e}){const {editor:_0x1140f3}=this,_0x4254c7=_0x1140f3['plugins']['get'](c),_0x377cb2=_0x4254c7['getFootnotesDefinitionsObjectElement']();_0x377cb2&&Number['isInteger'](_0x6e432e)&&_0x1140f3['model']['change'](_0x334f62=>{_0x334f62['setAttribute']('footnotesListStart',_0x6e432e,_0x377cb2),_0x4254c7['_updateFootnotesCounters'](_0x334f62);});}}class P extends _0x34c87d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5caad9}=this;_0x5caad9['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x5caad9['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x5caad9['commands']['add']('footnotesStyle',new S(_0x5caad9)),_0x5caad9['commands']['add']('footnotesStart',new C(_0x5caad9)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x5f070b}=this,{schema:_0x1c8dc8}=_0x5f070b['model'];_0x1c8dc8['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2232ca}=this,{conversion:_0x39e095,model:_0x4c6c6c}=_0x2232ca,{schema:_0x34b5d6}=_0x4c6c6c;_0x39e095['for']('upcast')['add'](_0x51597b=>{_0x51597b['on']('element:ol',(_0x50cda2,_0x3d37ba,_0x563b99)=>{const _0x6512b0=_0x3d37ba['viewItem'],_0x22460d=_0x3d37ba['modelCursor']?.['parent'];_0x6512b0['hasClass']('footnotes-list')&&_0x22460d?.['is']('element','footnotesDefinitions')&&(function(_0xbbd631,_0x299f4f,_0x2c1a04,_0x21c2d8){if(!_0x21c2d8['checkAttribute'](_0x299f4f,'footnotesListStart'))return;let _0x32e7c5=0x1;const _0x50239d=_0x2c1a04['consumable']['consume'](_0xbbd631,{'attributes':'start'});if(_0x50239d){const _0x37b4fc=Number['parseInt'](_0xbbd631['getAttribute']('start'),0xa);Number['isNaN'](_0x37b4fc)||(_0x32e7c5=_0x37b4fc);}!_0x50239d&&_0x299f4f['hasAttribute']('footnotesListStart')||_0x2c1a04['writer']['setAttribute']('footnotesListStart',_0x32e7c5,_0x299f4f);}(_0x6512b0,_0x22460d,_0x563b99,_0x34b5d6),function(_0x5440ca,_0x267bb5,_0x1edf7b,_0x39a74d){if(!_0x39a74d['checkAttribute'](_0x267bb5,'footnotesListStyle'))return;let _0x6cf220='decimal',_0x29e5b3=!0x1;if(_0x1edf7b['consumable']['consume'](_0x5440ca,{'attributes':'type'})){const _0x1a1a04={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5440ca['getAttribute']('type')];_0x1a1a04&&(_0x6cf220=_0x1a1a04),_0x29e5b3=!0x0;}_0x1edf7b['consumable']['consume'](_0x5440ca,{'styles':'list-style-type'})&&(_0x6cf220=_0x5440ca['getStyle']('list-style-type'),_0x29e5b3=!0x0),!_0x29e5b3&&_0x267bb5['hasAttribute']('footnotesListStyle')||_0x1edf7b['writer']['setAttribute']('footnotesListStyle',_0x6cf220,_0x267bb5);}(_0x6512b0,_0x22460d,_0x563b99,_0x34b5d6));});}),_0x39e095['for']('downcast')['add'](_0x5d31da=>{_0x5d31da['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1763d2,_0x496c2a,_0xd6ccb0)=>{if(!_0xd6ccb0['consumable']['consume'](_0x496c2a['item'],_0x1763d2['name']))return;const _0x453be5=M(_0x496c2a['item'],_0xd6ccb0['mapper']),{attributeNewValue:_0x54dbcd}=_0x496c2a;null==_0x54dbcd||0x1===_0x54dbcd?_0xd6ccb0['writer']['removeAttribute']('start',_0x453be5):_0xd6ccb0['writer']['setAttribute']('start',String(_0x54dbcd),_0x453be5);}),_0x5d31da['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x58acd6,_0x35e6d4,_0xc10592)=>{if(!_0xc10592['consumable']['consume'](_0x35e6d4['item'],_0x58acd6['name']))return;const _0x529676=M(_0x35e6d4['item'],_0xc10592['mapper']),{attributeNewValue:_0x11ae79}=_0x35e6d4;_0x11ae79&&'decimal'!==_0x11ae79?_0xc10592['writer']['setStyle']('list-style-type',_0x11ae79,_0x529676):_0xc10592['writer']['removeStyle']('list-style-type',_0x529676);});});}['_definePostfixer'](){const {editor:_0x29ccbd}=this,{model:_0x4378cc}=_0x29ccbd,_0x2cb409=_0x29ccbd['plugins']['get'](c),_0x38eafd=this['_getDefaultListStyle'](),_0x41ff9c=this['_getDefaultStartIndex']();_0x4378cc['document']['registerPostFixer'](_0x573b03=>{const _0xcf92c7=_0x4378cc['document']['differ']['getChanges']();let _0x5b068f=!0x1;for(const _0xa65145 of _0xcf92c7){if('insert'!==_0xa65145['type']||'$text'===_0xa65145['name'])continue;const _0x1d9300=_0x4378cc['createRangeOn'](_0xa65145['position']['nodeAfter']);for(const _0x4c3a9c of _0x1d9300['getItems']())_0x4c3a9c['is']('element','footnotesDefinitions')&&(!_0x4c3a9c['hasAttribute']('footnotesListStart')&&_0x4378cc['schema']['checkAttribute'](_0x4c3a9c,'footnotesListStart')&&(_0x573b03['setAttribute']('footnotesListStart',_0x41ff9c,_0x4c3a9c),_0x5b068f=!0x0),!_0x4c3a9c['hasAttribute']('footnotesListStyle')&&_0x4378cc['schema']['checkAttribute'](_0x4c3a9c,'footnotesListStyle')&&(_0x573b03['setAttribute']('footnotesListStyle',_0x38eafd,_0x4c3a9c),_0x5b068f=!0x0));}return _0x5b068f&&_0x2cb409['_updateFootnotesCounters'](_0x573b03),_0x5b068f;});}['_defineFormatter'](){const {editor:_0x3694a1}=this;_0x3694a1['plugins']['get'](c)['setFootnoteFormatter'](_0x36779f=>this['_formatFootnoteListValue'](_0x36779f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5022b3,value:_0x57b123,digits:_0x41b62a}){const _0x3c5e2a=_0x5022b3['getAttribute']('footnotesListStyle'),_0x2526d7=_0x5022b3['getAttribute']('footnotesListStart'),_0x2dbeb2=Math['floor'](_0x57b123)+(_0x2526d7??0x1)-0x1;switch(_0x3c5e2a){case'decimal-leading-zero':return function(_0x3bcdd0,_0x4dd4b5){return String(_0x3bcdd0)['padStart'](_0x4dd4b5,'0');}(_0x2dbeb2,Math['max'](0x2,_0x41b62a));case'lower-alpha':case'lower-latin':return N(_0x2dbeb2,!0x1);case'upper-alpha':case'upper-latin':return N(_0x2dbeb2,!0x0);case'lower-roman':return X(_0x2dbeb2,!0x1);case'upper-roman':return X(_0x2dbeb2,!0x0);default:return String(_0x2dbeb2);}}}function M(_0x54f63a,_0x2b4f0a){const _0x35fb93=_0x2b4f0a['toViewElement'](_0x54f63a);return Array['from'](_0x35fb93['getChildren']())['find'](_0x3331d5=>_0x3331d5['is']('element','ol')&&_0x3331d5['hasClass']('footnotes-list'));}function N(_0x40b304,_0x25e6b6){let _0x4986f5='',_0x57b7f1=_0x40b304;for(;_0x57b7f1>0x0;){const _0x4f7f56=(_0x57b7f1-0x1)%0x1a;_0x4986f5=String['fromCharCode'](0x61+_0x4f7f56)+_0x4986f5,_0x57b7f1=Math['floor']((_0x57b7f1-0x1)/0x1a);}return _0x25e6b6?_0x4986f5['toUpperCase']():_0x4986f5;}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(_0x1fcf52,_0x2dcd5d){let _0x15bf22='',_0x426715=_0x1fcf52;for(const {value:_0x3237a8,numeral:_0xfc6a71}of V)for(;_0x426715>=_0x3237a8;)_0x15bf22+=_0xfc6a71,_0x426715-=_0x3237a8;return _0x2dcd5d?_0x15bf22:_0x15bf22['toLowerCase']();}class H extends _0x5d4fa9{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x5e2780();['focusCycler'];constructor(_0xdeee5a,{styleButtonViews:_0x40363b,styleGridAriaLabel:_0x558a4d}){super(_0xdeee5a),(this['focusCycler']=new _0x54fd1e({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x40363b,_0x558a4d),[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 _0x3abbd3 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3abbd3['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 _0x5f1cbc=_0x2b73e1=>_0x2b73e1['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5f1cbc),this['keystrokes']['set']('arrowleft',_0x5f1cbc),this['keystrokes']['set']('arrowup',_0x5f1cbc),this['keystrokes']['set']('arrowdown',_0x5f1cbc);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x19d670,_0x8f6716){const _0x29343d=new _0x5d4fa9(this['locale']);return _0x29343d['children']=_0x29343d['createCollection'](),_0x29343d['children']['addMany'](_0x19d670),_0x29343d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x8f6716,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x29343d['children']}),_0x29343d['children']['delegate']('execute')['to'](this),_0x29343d['focus']=function(){for(const _0x303dda of this['children'])if(_0x303dda instanceof _0x5c9843&&_0x303dda['isOn'])return void _0x303dda['focus']();this['children']['first']['focus']();},_0x29343d['focusTracker']=new ot(),_0x29343d['keystrokes']=new rt(),_0x29343d['render'](),_0x29343d['keystrokes']['listenTo'](_0x29343d['element']),this['children']['add'](_0x29343d),_0x29343d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x531adb=this['_createStartIndexPropertyView'](),_0x276408=[_0x531adb],_0x108f9b=new st(this['locale'],_0x276408);return _0x108f9b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x108f9b['buttonView']['bind']('isEnabled')['toMany'](_0x276408,'isEnabled',(..._0x1cf119)=>_0x1cf119['some'](_0x4c9340=>_0x4c9340)),_0x108f9b['buttonView']['on']('change:isEnabled',(_0x30f13c,_0x1e58ce,_0x407aa8)=>{_0x407aa8||(_0x108f9b['isCollapsed']=!0x0);}),this['children']['add'](_0x108f9b),[_0x531adb,_0x108f9b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2071fd=new it(this['locale'],et);return _0x2071fd['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2071fd['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2071fd['fieldView']['on']('input',()=>{const _0x3571d1=_0x2071fd['fieldView']['element'],_0x15ed9e=_0x3571d1['valueAsNumber'];Number['isNaN'](_0x15ed9e)?_0x2071fd['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3571d1['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x15ed9e}):_0x2071fd['errorText']=t(_0x15ed9e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2071fd;}}class j extends _0x34c87d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x740f82,_0x4c6e28];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x522bb7}=this,{componentFactory:_0x72fdef}=_0x522bb7['ui'];_0x522bb7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x72fdef['add']('footnotesStyle',function(_0x62ead1){return _0x597db8=>{const {t:t}=_0x597db8,_0x3ea0fe=_0x62ead1['commands']['get']('footnotesStyle'),_0xd2b55b=_0x20001d(_0x597db8),{buttonView:_0x4eb78c}=_0xd2b55b;return _0xd2b55b['class']='ck-footnotes-styles-dropdown',_0xd2b55b['bind']('isEnabled')['to'](_0x3ea0fe,'isEnabled'),_0x4eb78c['set']({'label':t('Footnotes\x20style'),'icon':_0x4763d7,'tooltip':!0x0}),_0xd2b55b['once']('change:isOpen',()=>{const _0x2262b8=function({editor:_0x424964,dropdownView:_0x77202e}){const {t:t}=_0x424964['locale'],_0x3894ce=t('Footnotes\x20definitions\x20styles'),_0x3673aa=function(_0x377891){const t=_0x377891['locale']['t'],_0x19dc85=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2bc22a},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x13c776},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x485327},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x5894df},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x9e5765},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x40cddf}];return _0x19dc85['map'](function(_0x5d55e7){const _0x2d9aaa=_0x5d55e7['locale'];return({label:_0x1fb550,icon:_0x509b87,tooltip:_0x33ee82,style:_0x2ea114})=>{const _0x7b16=_0x5d55e7['commands']['get']('footnotesStyle'),_0x4011ee=new _0x5c9843(_0x2d9aaa);return _0x4011ee['set']({'label':_0x1fb550,'icon':_0x509b87,'tooltip':_0x33ee82}),_0x4011ee['bind']('isOn')['to'](_0x7b16,'value',_0x3f408=>_0x3f408===_0x2ea114),_0x4011ee['bind']('isEnabled')['to'](_0x7b16,'isEnabled'),_0x4011ee['on']('execute',()=>{_0x5d55e7['execute']('footnotesStyle',{'value':_0x2ea114}),_0x5d55e7['editing']['view']['focus']();}),_0x4011ee;};}(_0x377891));}(_0x424964),_0x369e7f=new H(_0x424964['locale'],{'styleGridAriaLabel':_0x3894ce,'styleButtonViews':_0x3673aa});return _0x369e7f['delegate']('execute')['to'](_0x77202e),_0x369e7f['on']('footnotesListStart',(_0x399531,_0x3ba82d)=>{_0x424964['execute']('footnotesStart',{'value':_0x3ba82d['startIndex']});}),_0x369e7f;}({'editor':_0x62ead1,'dropdownView':_0xd2b55b});_0xd2b55b['panelView']['children']['add'](_0x2262b8);}),_0xd2b55b;};}(_0x522bb7));}['afterInit'](){const {editor:_0x5aba67}=this,{t:t}=_0x5aba67['locale'],_0x4b42a8=_0x5aba67['plugins']['get'](_0x4c6e28),{defaultPositions:_0x2504b2}=_0x1c6716;_0x4b42a8['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5aba67['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xcddcee=>{let _0x4002a8=_0xcddcee['getFirstPosition']()?.['parent'];return _0x4002a8?.['is']('$text')&&(_0x4002a8=_0x4002a8['parent']),_0x4002a8?.['is']('element')?_0x4002a8['findAncestor'](J):null;},'positions':[_0x2504b2['southArrowNorth'],_0x2504b2['southArrowNorthMiddleWest'],_0x2504b2['southArrowNorthMiddleEast'],_0x2504b2['southArrowNorthWest'],_0x2504b2['southArrowNorthEast'],_0x2504b2['northArrowSouth'],_0x2504b2['northArrowSouthMiddleWest'],_0x2504b2['northArrowSouthMiddleEast'],_0x2504b2['northArrowSouthWest'],_0x2504b2['northArrowSouthEast'],_0x2504b2['viewportStickyNorth']]});}}class ft extends _0x34c87d{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-20251122.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-20251122.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251122.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251122.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251122.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251122.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251122.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251122.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251122.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 _0x10bf23}from'ckeditor5/src/core.js';import{isWidget as _0x183c3a,toWidget as _0x56657e,toWidgetEditable as _0x183b92}from'ckeditor5/src/widget.js';import{uid as _0x584f9f}from'ckeditor5/src/utils.js';import{PointerObserver as _0x50e6da,ClickObserver as _0x574753}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x170bc3}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2ef1e7}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x10bf23{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x170bc3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xaa31c9}=this;_0xaa31c9['config']['define']('footnotes.multiBlock',!0x0),_0xaa31c9['commands']['add']('insertFootnote',new _0x2ef1e7(_0xaa31c9)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x53135b){const _0x5ec110=_0x205d71([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]),_0x395107=0x47a28506,_0x31ecf5=0x47a5fcbe^_0x395107,_0x593025=window[_0x205d71([0x44,0x61,0x74,0x65])][_0x205d71([0x6e,0x6f,0x77])](),_0x1d4196=_0x53135b[_0x205d71([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4b0761=new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xc4ee66=>{_0x1d4196[_0x205d71([0x6f,0x6e,0x63,0x65])](_0x205d71([0x72,0x65,0x61,0x64,0x79]),_0xc4ee66);}),_0x44f35f={[_0x205d71([0x6b,0x74,0x79])]:_0x205d71([0x45,0x43]),[_0x205d71([0x75,0x73,0x65])]:_0x205d71([0x73,0x69,0x67]),[_0x205d71([0x63,0x72,0x76])]:_0x205d71([0x50,0x2d,0x32,0x35,0x36]),[_0x205d71([0x78])]:_0x205d71([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]),[_0x205d71([0x79])]:_0x205d71([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]),[_0x205d71([0x61,0x6c,0x67])]:_0x205d71([0x45,0x53,0x32,0x35,0x36])},_0xcafdae=_0x1d4196[_0x205d71([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x205d71([0x67,0x65,0x74])](_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x465fac(){let _0x2e238f,_0x44eb2d=null,_0x556e8b=null;try{if(_0xcafdae==_0x205d71([0x47,0x50,0x4c]))return _0x205d71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2e238f=_0x39854b(),!_0x2e238f)return _0x205d71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2e238f[_0x205d71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x556e8b=_0x3e71ed(_0x2e238f[_0x205d71([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2e238f[_0x205d71([0x6a,0x74,0x69])])),await _0x10efdc()?_0x5834af()?_0x1e5efc()?_0x205d71([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2cebda()?(_0x2e238f[_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x205d71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x44eb2d=_0x3853bf(_0x205d71([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x2e238f[_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x205d71([0x74,0x72,0x69,0x61,0x6c])&&(_0x44eb2d=_0x3853bf(_0x205d71([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5147c4()):_0x205d71([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x205d71([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x205d71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x205d71([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x1e5efc(){const _0x5a85ee=[_0x205d71([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x205d71([0x74,0x72,0x69,0x61,0x6c])][_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2e238f[_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x593025/0x3e8:0xe10*_0x31ecf5;return _0x2e238f[_0x205d71([0x65,0x78,0x70])]<_0x5a85ee;}function _0x5834af(){const _0xf90eb7=_0x2e238f[_0x205d71([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xf90eb7&&(!!_0xf90eb7[_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205d71([0x2a]))||!!_0xf90eb7[_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205d71([0x46,0x4f,0x4f])));}function _0x2cebda(){const _0x459902=_0x2e238f[_0x205d71([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x459902||0x0==_0x459902[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52cec9}=new URL(window[_0x205d71([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x459902[_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52cec9))return!0x0;const _0x3d4064=_0x52cec9[_0x205d71([0x73,0x70,0x6c,0x69,0x74])](_0x205d71([0x2e]));return _0x459902[_0x205d71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1218e8=>_0x1218e8[_0x205d71([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x205d71([0x2a])))[_0x205d71([0x6d,0x61,0x70])](_0x10b2d0=>_0x10b2d0[_0x205d71([0x73,0x70,0x6c,0x69,0x74])](_0x205d71([0x2e])))[_0x205d71([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3d42a2=>_0x3d42a2[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3d4064[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x205d71([0x6d,0x61,0x70])](_0x4b1f3d=>Array(_0x3d4064[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4b1f3d[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x205d71([0x66,0x69,0x6c,0x6c])](_0x4b1f3d[0x0]===_0x205d71([0x2a])?_0x205d71([0x2a]):'')[_0x205d71([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4b1f3d))[_0x205d71([0x73,0x6f,0x6d,0x65])](_0x4d9659=>_0x3d4064[_0x205d71([0x65,0x76,0x65,0x72,0x79])]((_0x4ba43c,_0x3631e4)=>_0x4d9659[_0x3631e4]===_0x4ba43c||_0x4d9659[_0x3631e4]===_0x205d71([0x2a])));}function _0x5147c4(){return _0x44eb2d&&_0x556e8b?new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3e1838,_0x275f29)=>{_0x44eb2d[_0x205d71([0x74,0x68,0x65,0x6e])](_0x3e1838,_0x275f29),_0x556e8b[_0x205d71([0x74,0x68,0x65,0x6e])](_0x227f96=>{_0x227f96!=_0x205d71([0x56,0x61,0x6c,0x69,0x64])&&_0x3e1838(_0x227f96);},_0x275f29);}):_0x44eb2d||_0x556e8b||_0x205d71([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3e71ed(_0x586535,_0x42ffa0){return new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41ad19=>{if(_0x59fed1())return _0x41ad19(_0x205d71([0x56,0x61,0x6c,0x69,0x64]));_0x314dc4(),_0x1d4196[_0x205d71([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x205d71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4741d8=!0x1;const _0x2763ca=_0x584f9f();function _0x306fb9(_0x5d6ebb){return!!_0x5d6ebb&&(typeof _0x5d6ebb===_0x205d71([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5d6ebb===_0x205d71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5d6ebb[_0x205d71([0x74,0x68,0x65,0x6e])]===_0x205d71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5d6ebb[_0x205d71([0x63,0x61,0x74,0x63,0x68])]===_0x205d71([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x55399b(_0x48fb6a){_0x581c24(_0x48fb6a)[_0x205d71([0x74,0x68,0x65,0x6e])](_0x276cae=>{if(!_0x276cae||_0x276cae[_0x205d71([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x205d71([0x6f,0x6b]))return _0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x470b15(_0x22050a(_0x2763ca+_0x42ffa0))!=_0x276cae[_0x205d71([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x205d71([0x56,0x61,0x6c,0x69,0x64]);})[_0x205d71([0x74,0x68,0x65,0x6e])](_0x506bcc=>(_0x2a895a(),_0x506bcc),()=>{const _0x151d81=_0x2d33a8();return null==_0x151d81?(_0x2a895a(),_0x205d71([0x56,0x61,0x6c,0x69,0x64])):_0x205d71(_0x593025-_0x151d81>(0x63ae0106^_0x395107)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x205d71([0x74,0x68,0x65,0x6e])](_0x41ad19)[_0x205d71([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41ad19(_0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3f7a38=0x47946b86^_0x395107;function _0x2a895a(){const _0x4e2fe9=_0x205d71([0x6c,0x6c,0x63,0x74,0x2d])+_0x470b15(_0x22050a(_0x586535)),_0x15da39=_0x2c1a01(_0x470b15(window[_0x205d71([0x4d,0x61,0x74,0x68])][_0x205d71([0x63,0x65,0x69,0x6c])](_0x593025/_0x3f7a38)));window[_0x205d71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x205d71([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4e2fe9,_0x15da39);}function _0x2d33a8(){const _0x54345f=_0x205d71([0x6c,0x6c,0x63,0x74,0x2d])+_0x470b15(_0x22050a(_0x586535)),_0x390024=window[_0x205d71([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x205d71([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x54345f);return _0x390024?window[_0x205d71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2c1a01(_0x390024),0x10)*_0x3f7a38:null;}function _0x581c24(_0x12a3cc){return new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3443f6,_0x2c96a5)=>{_0x12a3cc[_0x205d71([0x74,0x68,0x65,0x6e])](_0x3443f6,_0x2c96a5),window[_0x205d71([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c96a5,0x47a351c6^_0x395107);});}}_0x1d4196[_0x205d71([0x6f,0x6e])](_0x205d71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x88c3be,_0x2e73d0)=>{if(_0x2e73d0[0x0]!=_0x586535)return _0x41ad19(_0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2e73d0[0x1]={..._0x2e73d0[0x1],[_0x205d71([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2763ca};},{[_0x205d71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x205d71([0x68,0x69,0x67,0x68])}),_0x1d4196[_0x205d71([0x6f,0x6e])](_0x205d71([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x566ff5=>{_0x306fb9(_0x566ff5[_0x205d71([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4741d8=!0x0,_0x55399b(_0x566ff5[_0x205d71([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x205d71([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x205d71([0x6c,0x6f,0x77])}),_0x4b0761[_0x205d71([0x74,0x68,0x65,0x6e])](()=>{_0x4741d8||_0x41ad19(_0x205d71([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x59fed1(){return _0x1d4196[_0x205d71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x205d71([0x76,0x69,0x65,0x77])][_0x205d71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x205d71([0x61,0x75,0x74,0x6f]);}function _0x314dc4(){_0x1d4196[_0x205d71([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x205d71([0x76,0x69,0x65,0x77])][_0x205d71([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x205d71([0x61,0x75,0x74,0x6f]);}}function _0x3853bf(_0x1c3e17){const _0x3d942d=[new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x6f659b=>setTimeout(_0x6f659b,0x47abbbca^_0x395107)),_0x4b0761[_0x205d71([0x74,0x68,0x65,0x6e])](()=>new window[(_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x246f14=>{let _0xdd2dfd=0x0;_0x1d4196[_0x205d71([0x6d,0x6f,0x64,0x65,0x6c])][_0x205d71([0x6f,0x6e])](_0x205d71([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x120aca,_0x5688c9)=>{_0x5688c9[0x0][_0x205d71([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xdd2dfd++,_0xdd2dfd==(0x47a284fe^_0x395107)&&(_0x246f14(),_0x120aca[_0x205d71([0x6f,0x66,0x66])]());});}))];return window[_0x205d71([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x205d71([0x72,0x61,0x63,0x65])](_0x3d942d)[_0x205d71([0x74,0x68,0x65,0x6e])](()=>_0x1c3e17);}async function _0x248e1e(){await _0x4b0761,_0x1d4196[_0x205d71([0x6d,0x6f,0x64,0x65,0x6c])][_0x205d71([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x326269,_0x1d4196[_0x205d71([0x6d,0x6f,0x64,0x65,0x6c])][_0x205d71([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x326269,_0x1d4196[_0x205d71([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x205d71([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45748f(_0x1f856d){const _0x1f51a7=_0x4bda1f();_0x1d4196[_0x1f51a7]=_0x205d71([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1f856d,_0x1f856d!=_0x205d71([0x56,0x61,0x6c,0x69,0x64])&&_0x248e1e();}function _0x4bda1f(){const _0x2e3487=window[_0x205d71([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x205d71([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x205d71([0x6e,0x6f,0x77])]())[_0x205d71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x205d71([0x2e]),'');let _0x1c12b0=_0x205d71([0x75]);for(let _0x38d3f8=0x0;_0x38d3f8<_0x2e3487[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x38d3f8+=0x2){let _0x45ab6f=window[_0x205d71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e3487[_0x205d71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x38d3f8,_0x38d3f8+0x2));_0x45ab6f>=_0x5ec110[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45ab6f-=_0x5ec110[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1c12b0+=_0x5ec110[_0x45ab6f];}return _0x1c12b0;}function _0x39854b(){const _0x404455=_0xcafdae[_0x205d71([0x73,0x70,0x6c,0x69,0x74])](_0x205d71([0x2e]));if(0x3!=_0x404455[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x11dbd6(_0x404455[0x1]);function _0x11dbd6(_0x4c8aa0){const _0x44287b=_0x1804d3(_0x4c8aa0);return _0x44287b&&_0x3a1ad1()?_0x44287b:null;function _0x3a1ad1(){const _0x1025e8=_0x44287b[_0x205d71([0x6a,0x74,0x69])],_0x5d1b38=window[_0x205d71([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1025e8[_0x205d71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1025e8[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x55b71c={..._0x44287b,[_0x205d71([0x6a,0x74,0x69])]:_0x1025e8[_0x205d71([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1025e8[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x55b71c[_0x205d71([0x76,0x63])],_0x22050a(_0x55b71c)==_0x5d1b38;}}}async function _0x10efdc(){let _0x2e25c0=!0x0;try{const _0x326396=_0xcafdae[_0x205d71([0x73,0x70,0x6c,0x69,0x74])](_0x205d71([0x2e])),[_0x54cb01,_0x344314,_0x5d9647]=_0x326396;return _0x318f02(_0x54cb01),await _0x118024(_0x54cb01,_0x344314,_0x5d9647),_0x2e25c0;}catch{return!0x1;}function _0x318f02(_0x2cbe39){const _0x5db3ac=_0x1804d3(_0x2cbe39);_0x5db3ac&&_0x5db3ac[_0x205d71([0x61,0x6c,0x67])]==_0x205d71([0x45,0x53,0x32,0x35,0x36])||(_0x2e25c0=!0x1);}async function _0x118024(_0x40c490,_0x184ba3,_0x16b0c9){const _0x364f46=window[_0x205d71([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x205d71([0x66,0x72,0x6f,0x6d])](_0x72df73(_0x16b0c9),_0x460c9f=>_0x460c9f[_0x205d71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x529310=new window[(_0x205d71([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x205d71([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x40c490+_0x205d71([0x2e])+_0x184ba3),_0x5616e7=window[_0x205d71([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x205d71([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5616e7)return;const _0x24c4be=await _0x5616e7[_0x205d71([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x205d71([0x6a,0x77,0x6b]),_0x44f35f,{[_0x205d71([0x6e,0x61,0x6d,0x65])]:_0x205d71([0x45,0x43,0x44,0x53,0x41]),[_0x205d71([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x205d71([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x205d71([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5616e7[_0x205d71([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x205d71([0x6e,0x61,0x6d,0x65])]:_0x205d71([0x45,0x43,0x44,0x53,0x41]),[_0x205d71([0x68,0x61,0x73,0x68])]:{[_0x205d71([0x6e,0x61,0x6d,0x65])]:_0x205d71([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x24c4be,_0x364f46,_0x529310)||(_0x2e25c0=!0x1);}}function _0x1804d3(_0x48b797){return _0x48b797[_0x205d71([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x205d71([0x65,0x79]))?JSON[_0x205d71([0x70,0x61,0x72,0x73,0x65])](_0x72df73(_0x48b797)):null;}function _0x72df73(_0x23313b){return window[_0x205d71([0x61,0x74,0x6f,0x62])](_0x23313b[_0x205d71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x205d71([0x2b]))[_0x205d71([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x205d71([0x2f])));}function _0x22050a(_0x3c9295){let _0x5d9c3c=0x1505;function _0x145a27(_0x12037b){for(let _0x4cc682=0x0;_0x4cc682<_0x12037b[_0x205d71([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4cc682++){const _0x4b8f76=_0x12037b[_0x205d71([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4cc682);_0x5d9c3c=(_0x5d9c3c<<0x5)+_0x5d9c3c+_0x4b8f76,_0x5d9c3c&=_0x5d9c3c;}}function _0x464fa1(_0x3c906f){Array[_0x205d71([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3c906f)?_0x3c906f[_0x205d71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x464fa1):_0x3c906f&&typeof _0x3c906f==_0x205d71([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x205d71([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3c906f)[_0x205d71([0x73,0x6f,0x72,0x74])]()[_0x205d71([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x428d85,_0x1de60f])=>{_0x145a27(_0x428d85),_0x464fa1(_0x1de60f);}):_0x145a27(window[_0x205d71([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3c906f));}return _0x464fa1(_0x3c9295),_0x5d9c3c>>>0x0;}function _0x470b15(_0x103022){return _0x103022[_0x205d71([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x205d71([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x205d71([0x30]));}function _0x2c1a01(_0xeb7c4c){return _0xeb7c4c[_0x205d71([0x73,0x70,0x6c,0x69,0x74])]('')[_0x205d71([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x205d71([0x6a,0x6f,0x69,0x6e])]('');}function _0x326269(){}function _0x205d71(_0x1d79b8){return _0x1d79b8['map'](_0x23fef9=>String['fromCharCode'](_0x23fef9))['join']('');}_0x45748f(await _0x465fac());}(this);}['_moveSelectionToFootnoteDefinition'](_0x237429){const {plugins:_0x1e73b3,editing:_0x388876,model:_0x57fd1c}=this['editor'],_0x2df957=_0x1e73b3['get'](_0x170bc3)['getFootnote'](_0x237429);return!!_0x2df957&&(_0x57fd1c['change'](_0x24467a=>{_0x24467a['setSelection'](_0x24467a['createPositionAt'](_0x2df957['definition'],'end'));}),_0x388876['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0xd0f9d6){const {plugins:_0x29cdd0,editing:_0x47dcca,model:_0x38f3a7}=this['editor'],_0x351265=_0x29cdd0['get'](_0x170bc3)['getFootnote'](_0xd0f9d6);return!!_0x351265&&(_0x38f3a7['change'](_0xae2197=>{_0xae2197['setSelection'](_0x351265['reference'],'on');}),_0x47dcca['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x28b40a}=this['editor']['model'],_0x3a8ba0=this['editor']['config']['get']('footnotes.multiBlock');_0x28b40a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x28b40a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x28b40a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3a8ba0?_0x28b40a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x28b40a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x28b40a['addChildCheck'](_0x18c9d0=>{for(const _0x1beaa5 of _0x18c9d0)if('footnoteDefinition'===_0x1beaa5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4ea6fd}=this,{conversion:_0x155b40,editing:_0x2f1787}=_0x4ea6fd,{t:t}=_0x4ea6fd['locale'];_0x155b40['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x57eede,{writer:_0x565792,consumable:_0x4936f1})=>{const _0x205c02=_0x57eede['getChild'](0x0);if(!_0x205c02||!_0x205c02['is']('element','a'))return null;const _0x16bccf=_0x205c02['getAttribute']('href')||'';if(!_0x16bccf['startsWith']('#'))return null;const _0x287f3b=_0x16bccf['replace'](/^#/,'');if(!_0x287f3b)return null;_0x4936f1['consume'](_0x205c02,{'name':!0x0,'attributes':['href']});for(const {item:_0x51e312}of _0x2f1787['view']['createRangeIn'](_0x205c02))_0x51e312['is']('$textProxy')?_0x4936f1['consume'](_0x51e312['textNode'],{'name':!0x0}):_0x51e312['is']('element')&&_0x4936f1['consume'](_0x51e312,{'name':!0x0});return _0x565792['createElement']('footnoteRef',{'footnoteId':_0x287f3b});}}),_0x155b40['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2d1169,{writer:_0x305bd1})=>D(_0x2d1169,_0x305bd1)}),_0x155b40['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x463e27,{writer:_0x2d00d2})=>{const _0x1d32cf=_0x463e27['getAttribute']('footnoteCounter');return _0x56657e(D(_0x463e27,_0x2d00d2),_0x2d00d2,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1d32cf)});}});}['_defineDefinitionsConverters'](){const {editor:_0x266aee}=this,{t:t}=_0x266aee['locale'],{conversion:_0x3f548e}=_0x266aee;_0x3f548e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3f548e['for']('upcast')['add'](_0x3a4f6e=>{_0x3a4f6e['on']('element:ol',(_0x1f3762,_0xb81ef8,_0x131b0c)=>{const _0x461516=_0xb81ef8['viewItem'];if(!_0x461516['hasClass']('footnotes-list')||!_0xb81ef8['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x131b0c['consumable']['consume'](_0x461516,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x373799,modelCursor:_0x1f242a}=_0x131b0c['convertChildren'](_0xb81ef8['viewItem'],_0xb81ef8['modelCursor']);_0xb81ef8['modelRange']=_0x373799,_0xb81ef8['modelCursor']=_0x1f242a;}),_0x3a4f6e['on']('element:hr',(_0x4c031d,_0x3f1521,_0x532d9f)=>{const _0x5cb63b=_0x3f1521['viewItem'];_0x5cb63b['hasClass']('footnotes-divider')&&_0x3f1521['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x532d9f['consumable']['consume'](_0x5cb63b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3f548e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xf2bfd3,{writer:_0x14ee0d})=>v(_0x14ee0d)}),_0x3f548e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2067bc,{writer:_0x198313})=>{const _0x451188=v(_0x198313,{'data-footnotes-list-label':t('Footnotes')}),_0x56da2f=_0x56657e(_0x451188,_0x198313,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x198313['setCustomProperty']('footnotesDefinitions',!0x0,_0x56da2f),_0x56da2f;}});}['_defineDefinitionConverters'](){const {editor:_0x146876}=this,{conversion:_0x50961f,locale:_0x4e1d90}=_0x146876,_0x208081=_0x146876['config']['get']('footnotes.multiBlock');_0x50961f['for']('upcast')['add'](_0x293c82=>{_0x293c82['on']('element:li',(_0x3f0334,_0x3135bb,_0x107485)=>{const _0x404374=_0x3135bb['viewItem'];if(!_0x404374['hasClass']('footnote-definition')||!_0x404374['getAttribute']('id'))return;const _0x26608a=_0x404374['parent'];if(!_0x26608a['is']('element','ol')||!_0x26608a['hasClass']('footnotes-list'))return;if(!_0x107485['consumable']['test'](_0x404374,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x53b348=_0x107485['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x404374['getAttribute']('id')});if(!_0x107485['safeInsert'](_0x53b348,_0x3135bb['modelCursor']))return;_0x107485['consumable']['consume'](_0x404374,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x39d18c=Array['from'](_0x404374['getChildren']())['find'](_0x27c1c8=>_0x27c1c8['is']('element')&&_0x27c1c8['hasClass']('footnote-content'));for(const _0x447bce of _0x404374['getChildren']())_0x447bce['is']('element')&&(_0x107485['consumable']['consume'](_0x447bce,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x107485['consumable']['consume'](_0x447bce,{'name':!0x0,'classes':'footnote-content'}));if(_0x39d18c){if(_0x208081)_0x107485['convertChildren'](_0x39d18c,_0x53b348);else{const _0x55526a=_0x107485['writer']['createElement']('footnoteInlineContent');_0x107485['writer']['insert'](_0x55526a,_0x53b348),_0x107485['convertChildren'](_0x39d18c,_0x55526a);}}_0x107485['updateConversionResult'](_0x53b348,_0x3135bb);});}),_0x50961f['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xd3a3fc,{writer:_0x3b576d})=>b(_0xd3a3fc,_0x3b576d,_0x4e1d90,{'dataPipeline':!0x0})}),_0x50961f['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x495199,{writer:_0x4d6caf})=>b(_0x495199,_0x4d6caf,_0x4e1d90)});}['_defineBogusParagraphConverters'](){const {editor:_0x24e824}=this,{conversion:_0x45e64e}=_0x24e824;_0x24e824['config']['get']('footnotes.multiBlock')?(_0x45e64e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x45e64e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x24e824['model']['document'],'change:data',()=>{!function(_0x2e436a,_0x3e278f){const _0x578148=_0x2e436a['document']['differ'],_0x4238ba=new Set();for(const _0xdc4155 of _0x578148['getChanges']()){const _0x27d22c='attribute'==_0xdc4155['type']?_0xdc4155['range']['start']['parent']:_0xdc4155['position']['parent'];_0x27d22c['is']('element','footnoteDefinition')&&_0x4238ba['add'](_0x27d22c);}for(const _0x3adaaf of _0x4238ba['values']()){const _0x5dfda7=Array['from'](_0x3adaaf['getChildren']())['filter'](_0x2499e4=>g(_0x2499e4,_0x3e278f['mapper']));for(const _0x2b2bc8 of _0x5dfda7)_0x3e278f['reconvertItem'](_0x2b2bc8);}}(_0x24e824['model'],_0x24e824['editing']);})):(_0x45e64e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x45e64e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4933c0,{writer:_0x237a93})=>{const _0x387264=_0x237a93['createContainerElement']('span');return _0x237a93['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x387264),_0x387264;}}));}['_defineKeyboardHandlers'](){const {editor:_0x53deb9}=this,{editing:_0xbbf98b,t:t}=_0x53deb9,_0x216995=_0x53deb9['model']['document']['selection'];_0x53deb9['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x53deb9['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xbbf98b['view']['document'],'enter',(_0xcbb7dc,_0x269962)=>{const _0x578261=function(_0x33677b){const _0x1f05c0=_0x33677b['getSelectedElement']();if(_0x1f05c0?.['is']('element','footnoteRef'))return _0x1f05c0;return null;}(_0x216995);if(_0x578261){const _0x5bcca9=_0x578261['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5bcca9),_0x269962['preventDefault'](),_0xcbb7dc['stop']();}},{'context':_0x183c3a});}['_defineClickHandlers'](){const {editor:_0x3447ab}=this,{editing:_0x2fab0a}=_0x3447ab;_0x3447ab['editing']['view']['addObserver'](_0x50e6da),_0x3447ab['editing']['view']['addObserver'](_0x574753);let _0x340f5a=!0x1;this['listenTo'](_0x2fab0a['view']['document'],'pointerdown',(_0x356ac9,_0x46fe5f)=>{const {target:_0x243571}=_0x46fe5f,_0x43e877=_0x2fab0a['view']['document']['selection'];_0x340f5a=!!(_0x243571?.['is']('element','a')&&_0x243571['parent']?.['is']('element','sup')&&_0x243571['parent']['hasClass']('footnote'))&&_0x43e877['getSelectedElement']()===_0x243571['parent'];},{'priority':'high'}),this['listenTo'](_0x2fab0a['view']['document'],'click',(_0x46e14d,_0x16fe9f)=>{const {target:_0x4e7ba2}=_0x16fe9f;if(!_0x4e7ba2?.['is']('element','a'))return;if(_0x4e7ba2['parent']?.['is']('element','sup')&&_0x4e7ba2['parent']['hasClass']('footnote')&&!_0x340f5a)return void _0x16fe9f['preventDefault']();let _0xa0fdcf=_0x4e7ba2['getAttribute']('href');if(!_0xa0fdcf?.['startsWith']('#'))return;_0xa0fdcf=_0xa0fdcf['slice'](0x1);let _0x2ff5a0=!0x1;(_0xa0fdcf['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0xa0fdcf['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0xa0fdcf))&&(_0x2ff5a0=!0x0),_0x2ff5a0&&(_0x16fe9f['preventDefault'](),_0x46e14d['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x2c8cd1}={}){return(_0x17bb64,{writer:_0x203c9d})=>{if(!p(_0x17bb64))return null;if(!_0x2c8cd1)return _0x203c9d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xefb1ec=_0x203c9d['createContainerElement']('p');return _0x203c9d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xefb1ec),_0xefb1ec;};}function p(_0x2baf5d){const {parent:_0x77c9eb}=_0x2baf5d;if(!_0x77c9eb?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x77c9eb['childCount'])return!0x1;for(const _0x253ae6 of _0x2baf5d['getAttributeKeys']())if(!_0x253ae6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x253ae6)return!0x1;return!0x0;}function g(_0x16203a,_0x1f6465){if(!_0x16203a['is']('element','paragraph'))return!0x1;const _0x134e05=_0x1f6465['toViewElement'](_0x16203a);return!!_0x134e05&&p(_0x16203a)!==_0x134e05['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x84063){return _0x183c3a(_0x84063)&&_0x84063['is']('containerElement')&&!!_0x84063['getCustomProperty']('footnotesDefinitions');}function v(_0x488fd6,_0x583754={}){const _0x213934=_0x488fd6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xbd35aa=_0x488fd6['createContainerElement']('ol',{'class':'footnotes-list'},_0x488fd6['createSlot']());return _0x488fd6['createContainerElement']('div',{'class':'footnotes',..._0x583754},[_0x213934,_0xbd35aa]);}function D(_0x118ed5,_0x415685){const _0x481922=_0x118ed5['getAttribute']('footnoteId'),_0x497201=_0x118ed5['getAttribute']('footnoteCounter'),_0x1359f7=_0x415685['createUIElement']('a',{'href':'#'+_0x481922},function(_0x248950){const _0x1970ed=this['toDomElement'](_0x248950);return _0x1970ed['textContent']=_0x497201,_0x1970ed;}),_0x40435f=_0x415685['createContainerElement']('sup',{'id':'ref-'+_0x481922,'class':'footnote'},[_0x1359f7]);return _0x40435f['getFillerOffset']=()=>null,_0x40435f;}function b(_0x5c21f5,_0x44fe1f,_0x23d5db,{dataPipeline:_0x572076}={}){const {t:t}=_0x23d5db,_0x35fa73=_0x5c21f5['getAttribute']('footnoteId'),_0x3fb7cf=_0x44fe1f['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x35fa73},function(_0x86f7f5){const _0x47c677=this['toDomElement'](_0x86f7f5);return _0x47c677['innerText']='^',_0x47c677;}),_0x3d8a17=_0x572076?_0x44fe1f['createContainerElement']('div',{'class':'footnote-content'}):_0x183b92(_0x44fe1f['createEditableElement']('div',{'class':'footnote-content'}),_0x44fe1f,{'label':t('Footnote\x20content.')});return _0x44fe1f['insert'](_0x44fe1f['createPositionAt'](_0x3d8a17,0x0),_0x44fe1f['createSlot']()),_0x44fe1f['createContainerElement']('li',{'class':'footnote-definition','id':_0x35fa73},[_0x3fb7cf,_0x3d8a17]);}
|
|
23
|
+
import{Plugin as _0x1bb634}from'ckeditor5/src/core.js';import{isWidget as _0x60ae05,toWidget as _0x4efa8f,toWidgetEditable as _0x52e7d2}from'ckeditor5/src/widget.js';import{uid as _0x1c77cf}from'ckeditor5/src/utils.js';import{PointerObserver as _0x106726,ClickObserver as _0x2e0f6e}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x20a908}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x380176}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1bb634{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x20a908];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5bb4c5}=this;_0x5bb4c5['config']['define']('footnotes.multiBlock',!0x0),_0x5bb4c5['commands']['add']('insertFootnote',new _0x380176(_0x5bb4c5)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xb6fe1d){const _0x2e8f40=_0x34ca58([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]),_0x4ef8e2=0x47a28506,_0x11950d=0x47a5fcd6^_0x4ef8e2,_0x4b6529=window[_0x34ca58([0x44,0x61,0x74,0x65])][_0x34ca58([0x6e,0x6f,0x77])](),_0x41dc54=_0xb6fe1d[_0x34ca58([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xe2d545=new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32b62c=>{_0x41dc54[_0x34ca58([0x6f,0x6e,0x63,0x65])](_0x34ca58([0x72,0x65,0x61,0x64,0x79]),_0x32b62c);}),_0x239196={[_0x34ca58([0x6b,0x74,0x79])]:_0x34ca58([0x45,0x43]),[_0x34ca58([0x75,0x73,0x65])]:_0x34ca58([0x73,0x69,0x67]),[_0x34ca58([0x63,0x72,0x76])]:_0x34ca58([0x50,0x2d,0x32,0x35,0x36]),[_0x34ca58([0x78])]:_0x34ca58([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]),[_0x34ca58([0x79])]:_0x34ca58([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]),[_0x34ca58([0x61,0x6c,0x67])]:_0x34ca58([0x45,0x53,0x32,0x35,0x36])},_0x18cf02=_0x41dc54[_0x34ca58([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x34ca58([0x67,0x65,0x74])](_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x387a0e(){let _0x4116b4,_0x5920b5=null,_0x4ce564=null;try{if(_0x18cf02==_0x34ca58([0x47,0x50,0x4c]))return _0x34ca58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4116b4=_0x17914d(),!_0x4116b4)return _0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4116b4[_0x34ca58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4ce564=_0x451150(_0x4116b4[_0x34ca58([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4116b4[_0x34ca58([0x6a,0x74,0x69])])),await _0x1dc21e()?_0xdbc1a5()?_0x5a7fa3()?_0x34ca58([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x9198d()?(_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34ca58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5920b5=_0x440542(_0x34ca58([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x34ca58([0x74,0x72,0x69,0x61,0x6c])&&(_0x5920b5=_0x440542(_0x34ca58([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2d804e()):_0x34ca58([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x34ca58([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x34ca58([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5a7fa3(){const _0x51f321=[_0x34ca58([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x34ca58([0x74,0x72,0x69,0x61,0x6c])][_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4b6529/0x3e8:0xe10*_0x11950d;return _0x4116b4[_0x34ca58([0x65,0x78,0x70])]<_0x51f321;}function _0xdbc1a5(){const _0x125e43=_0x4116b4[_0x34ca58([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x125e43&&(!!_0x125e43[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x2a]))||!!_0x125e43[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x46,0x4f,0x4f])));}function _0x9198d(){const _0x47619e=_0x4116b4[_0x34ca58([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x47619e||0x0==_0x47619e[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x304ed4}=new URL(window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x47619e[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x304ed4))return!0x0;const _0x1f0780=_0x304ed4[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e]));return _0x47619e[_0x34ca58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x625569=>_0x625569[_0x34ca58([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x34ca58([0x2a])))[_0x34ca58([0x6d,0x61,0x70])](_0x4ae088=>_0x4ae088[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e])))[_0x34ca58([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3073da=>_0x3073da[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1f0780[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34ca58([0x6d,0x61,0x70])](_0x5c3127=>Array(_0x1f0780[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5c3127[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x34ca58([0x66,0x69,0x6c,0x6c])](_0x5c3127[0x0]===_0x34ca58([0x2a])?_0x34ca58([0x2a]):'')[_0x34ca58([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5c3127))[_0x34ca58([0x73,0x6f,0x6d,0x65])](_0x22c883=>_0x1f0780[_0x34ca58([0x65,0x76,0x65,0x72,0x79])]((_0x27a6d4,_0x247667)=>_0x22c883[_0x247667]===_0x27a6d4||_0x22c883[_0x247667]===_0x34ca58([0x2a])));}function _0x2d804e(){return _0x5920b5&&_0x4ce564?new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17ad06,_0x48c342)=>{_0x5920b5[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x17ad06,_0x48c342),_0x4ce564[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x33b3e0=>{_0x33b3e0!=_0x34ca58([0x56,0x61,0x6c,0x69,0x64])&&_0x17ad06(_0x33b3e0);},_0x48c342);}):_0x5920b5||_0x4ce564||_0x34ca58([0x56,0x61,0x6c,0x69,0x64]);}}function _0x451150(_0x139ea1,_0x426ec1){return new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xcd9ba9=>{if(_0x166ae3())return _0xcd9ba9(_0x34ca58([0x56,0x61,0x6c,0x69,0x64]));_0x2e2c38(),_0x41dc54[_0x34ca58([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4d81ff=!0x1;const _0x3a4552=_0x1c77cf();function _0x2319e2(_0x48fdee){return!!_0x48fdee&&(typeof _0x48fdee===_0x34ca58([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x48fdee===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x48fdee[_0x34ca58([0x74,0x68,0x65,0x6e])]===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x48fdee[_0x34ca58([0x63,0x61,0x74,0x63,0x68])]===_0x34ca58([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1387c4(_0x214146){_0x821e02(_0x214146)[_0x34ca58([0x74,0x68,0x65,0x6e])](_0xc6cec3=>{if(!_0xc6cec3||_0xc6cec3[_0x34ca58([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x34ca58([0x6f,0x6b]))return _0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d7565(_0x5930b7(_0x3a4552+_0x426ec1))!=_0xc6cec3[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x34ca58([0x56,0x61,0x6c,0x69,0x64]);})[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x14fb8d=>(_0x468904(),_0x14fb8d),()=>{const _0xc4acd0=_0x28df88();return null==_0xc4acd0?(_0x468904(),_0x34ca58([0x56,0x61,0x6c,0x69,0x64])):_0x34ca58(_0x4b6529-_0xc4acd0>(0x63ae0106^_0x4ef8e2)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x34ca58([0x74,0x68,0x65,0x6e])](_0xcd9ba9)[_0x34ca58([0x63,0x61,0x74,0x63,0x68])](()=>{_0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x284f4a=0x47946b86^_0x4ef8e2;function _0x468904(){const _0x194ca6=_0x34ca58([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d7565(_0x5930b7(_0x139ea1)),_0x5a89ba=_0x4cd257(_0x2d7565(window[_0x34ca58([0x4d,0x61,0x74,0x68])][_0x34ca58([0x63,0x65,0x69,0x6c])](_0x4b6529/_0x284f4a)));window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34ca58([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x194ca6,_0x5a89ba);}function _0x28df88(){const _0x44c05d=_0x34ca58([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d7565(_0x5930b7(_0x139ea1)),_0x4e0964=window[_0x34ca58([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x34ca58([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x44c05d);return _0x4e0964?window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4cd257(_0x4e0964),0x10)*_0x284f4a:null;}function _0x821e02(_0x5d04ce){return new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e9445,_0x597057)=>{_0x5d04ce[_0x34ca58([0x74,0x68,0x65,0x6e])](_0x5e9445,_0x597057),window[_0x34ca58([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x597057,0x47a351c6^_0x4ef8e2);});}}_0x41dc54[_0x34ca58([0x6f,0x6e])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3fe42d,_0xa7698)=>{if(_0xa7698[0x0]!=_0x139ea1)return _0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa7698[0x1]={..._0xa7698[0x1],[_0x34ca58([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3a4552};},{[_0x34ca58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34ca58([0x68,0x69,0x67,0x68])}),_0x41dc54[_0x34ca58([0x6f,0x6e])](_0x34ca58([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3ba797=>{_0x2319e2(_0x3ba797[_0x34ca58([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4d81ff=!0x0,_0x1387c4(_0x3ba797[_0x34ca58([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x34ca58([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x34ca58([0x6c,0x6f,0x77])}),_0xe2d545[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>{_0x4d81ff||_0xcd9ba9(_0x34ca58([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x166ae3(){return _0x41dc54[_0x34ca58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34ca58([0x76,0x69,0x65,0x77])][_0x34ca58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x34ca58([0x61,0x75,0x74,0x6f]);}function _0x2e2c38(){_0x41dc54[_0x34ca58([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x34ca58([0x76,0x69,0x65,0x77])][_0x34ca58([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x34ca58([0x61,0x75,0x74,0x6f]);}}function _0x440542(_0x19bff6){const _0x192da4=[new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50ff07=>setTimeout(_0x50ff07,0x47abbbca^_0x4ef8e2)),_0xe2d545[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>new window[(_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x115945=>{let _0x4276f5=0x0;_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x6f,0x6e])](_0x34ca58([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x48afef,_0xe4b331)=>{_0xe4b331[0x0][_0x34ca58([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x4276f5++,_0x4276f5==(0x47a284fe^_0x4ef8e2)&&(_0x115945(),_0x48afef[_0x34ca58([0x6f,0x66,0x66])]());});}))];return window[_0x34ca58([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x34ca58([0x72,0x61,0x63,0x65])](_0x192da4)[_0x34ca58([0x74,0x68,0x65,0x6e])](()=>_0x19bff6);}async function _0x2375f9(){await _0xe2d545,_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1a24a1,_0x41dc54[_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c])][_0x34ca58([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1a24a1,_0x41dc54[_0x34ca58([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x34ca58([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x526a64(_0x185abc){const _0x93fc4c=_0x59ef00();_0x41dc54[_0x93fc4c]=_0x34ca58([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x185abc,_0x185abc!=_0x34ca58([0x56,0x61,0x6c,0x69,0x64])&&_0x2375f9();}function _0x59ef00(){const _0x6bf24b=window[_0x34ca58([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x34ca58([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x34ca58([0x6e,0x6f,0x77])]())[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x34ca58([0x2e]),'');let _0xcecd29=_0x34ca58([0x75]);for(let _0x8faae2=0x0;_0x8faae2<_0x6bf24b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x8faae2+=0x2){let _0x135cab=window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x6bf24b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x8faae2,_0x8faae2+0x2));_0x135cab>=_0x2e8f40[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x135cab-=_0x2e8f40[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xcecd29+=_0x2e8f40[_0x135cab];}return _0xcecd29;}function _0x17914d(){const _0x49bd89=_0x18cf02[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e]));if(0x3!=_0x49bd89[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x98e71(_0x49bd89[0x1]);function _0x98e71(_0x4ec118){const _0x1782d0=_0x137ffa(_0x4ec118);return _0x1782d0&&_0x1469ea()?_0x1782d0:null;function _0x1469ea(){const _0x553d7b=_0x1782d0[_0x34ca58([0x6a,0x74,0x69])],_0x3abbdd=window[_0x34ca58([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x553d7b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x553d7b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2410b6={..._0x1782d0,[_0x34ca58([0x6a,0x74,0x69])]:_0x553d7b[_0x34ca58([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x553d7b[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2410b6[_0x34ca58([0x76,0x63])],_0x5930b7(_0x2410b6)==_0x3abbdd;}}}async function _0x1dc21e(){let _0x3f5c17=!0x0;try{const _0x51fccd=_0x18cf02[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])](_0x34ca58([0x2e])),[_0x4e6d08,_0x15f87d,_0x413a0e]=_0x51fccd;return _0x2903da(_0x4e6d08),await _0x17da41(_0x4e6d08,_0x15f87d,_0x413a0e),_0x3f5c17;}catch{return!0x1;}function _0x2903da(_0x41455c){const _0x544381=_0x137ffa(_0x41455c);_0x544381&&_0x544381[_0x34ca58([0x61,0x6c,0x67])]==_0x34ca58([0x45,0x53,0x32,0x35,0x36])||(_0x3f5c17=!0x1);}async function _0x17da41(_0x48c1b1,_0x71e495,_0x25c5dd){const _0x577fe1=window[_0x34ca58([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x34ca58([0x66,0x72,0x6f,0x6d])](_0x5c4793(_0x25c5dd),_0x19c893=>_0x19c893[_0x34ca58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x126a06=new window[(_0x34ca58([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x34ca58([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x48c1b1+_0x34ca58([0x2e])+_0x71e495),_0x4f9a4c=window[_0x34ca58([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x34ca58([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4f9a4c)return;const _0x122180=await _0x4f9a4c[_0x34ca58([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x34ca58([0x6a,0x77,0x6b]),_0x239196,{[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x45,0x43,0x44,0x53,0x41]),[_0x34ca58([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x34ca58([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4f9a4c[_0x34ca58([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x45,0x43,0x44,0x53,0x41]),[_0x34ca58([0x68,0x61,0x73,0x68])]:{[_0x34ca58([0x6e,0x61,0x6d,0x65])]:_0x34ca58([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x122180,_0x577fe1,_0x126a06)||(_0x3f5c17=!0x1);}}function _0x137ffa(_0x23d372){return _0x23d372[_0x34ca58([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x34ca58([0x65,0x79]))?JSON[_0x34ca58([0x70,0x61,0x72,0x73,0x65])](_0x5c4793(_0x23d372)):null;}function _0x5c4793(_0x24bc67){return window[_0x34ca58([0x61,0x74,0x6f,0x62])](_0x24bc67[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x34ca58([0x2b]))[_0x34ca58([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x34ca58([0x2f])));}function _0x5930b7(_0x1a5bca){let _0x3352f5=0x1505;function _0xcc55a8(_0x45f519){for(let _0x254cf3=0x0;_0x254cf3<_0x45f519[_0x34ca58([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x254cf3++){const _0x13a92e=_0x45f519[_0x34ca58([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x254cf3);_0x3352f5=(_0x3352f5<<0x5)+_0x3352f5+_0x13a92e,_0x3352f5&=_0x3352f5;}}function _0x508539(_0x7f3d0e){Array[_0x34ca58([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7f3d0e)?_0x7f3d0e[_0x34ca58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x508539):_0x7f3d0e&&typeof _0x7f3d0e==_0x34ca58([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x34ca58([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7f3d0e)[_0x34ca58([0x73,0x6f,0x72,0x74])]()[_0x34ca58([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x169578,_0x167c63])=>{_0xcc55a8(_0x169578),_0x508539(_0x167c63);}):_0xcc55a8(window[_0x34ca58([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7f3d0e));}return _0x508539(_0x1a5bca),_0x3352f5>>>0x0;}function _0x2d7565(_0x35727a){return _0x35727a[_0x34ca58([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x34ca58([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x34ca58([0x30]));}function _0x4cd257(_0x10ef12){return _0x10ef12[_0x34ca58([0x73,0x70,0x6c,0x69,0x74])]('')[_0x34ca58([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x34ca58([0x6a,0x6f,0x69,0x6e])]('');}function _0x1a24a1(){}function _0x34ca58(_0x12c85f){return _0x12c85f['map'](_0xca8b3a=>String['fromCharCode'](_0xca8b3a))['join']('');}_0x526a64(await _0x387a0e());}(this);}['_moveSelectionToFootnoteDefinition'](_0xb4d621){const {plugins:_0x19418d,editing:_0x38fadc,model:_0x26bde8}=this['editor'],_0x1628a8=_0x19418d['get'](_0x20a908)['getFootnote'](_0xb4d621);return!!_0x1628a8&&(_0x26bde8['change'](_0x8e606c=>{_0x8e606c['setSelection'](_0x8e606c['createPositionAt'](_0x1628a8['definition'],'end'));}),_0x38fadc['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5e48cc){const {plugins:_0x5c3bd3,editing:_0x50fe0c,model:_0x35daad}=this['editor'],_0x71b3ed=_0x5c3bd3['get'](_0x20a908)['getFootnote'](_0x5e48cc);return!!_0x71b3ed&&(_0x35daad['change'](_0x362651=>{_0x362651['setSelection'](_0x71b3ed['reference'],'on');}),_0x50fe0c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x314d4e}=this['editor']['model'],_0x1662eb=this['editor']['config']['get']('footnotes.multiBlock');_0x314d4e['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x314d4e['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x314d4e['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1662eb?_0x314d4e['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x314d4e['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x314d4e['addChildCheck'](_0x3151bc=>{for(const _0xc8c66b of _0x3151bc)if('footnoteDefinition'===_0xc8c66b['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x49d39a}=this,{conversion:_0x4e6e42,editing:_0x39fe41}=_0x49d39a,{t:t}=_0x49d39a['locale'];_0x4e6e42['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5f2e5a,{writer:_0x2716fd,consumable:_0x2f8a24})=>{const _0x1506cb=_0x5f2e5a['getChild'](0x0);if(!_0x1506cb||!_0x1506cb['is']('element','a'))return null;const _0x19bc76=_0x1506cb['getAttribute']('href')||'';if(!_0x19bc76['startsWith']('#'))return null;const _0x251fed=_0x19bc76['replace'](/^#/,'');if(!_0x251fed)return null;_0x2f8a24['consume'](_0x1506cb,{'name':!0x0,'attributes':['href']});for(const {item:_0x123d28}of _0x39fe41['view']['createRangeIn'](_0x1506cb))_0x123d28['is']('$textProxy')?_0x2f8a24['consume'](_0x123d28['textNode'],{'name':!0x0}):_0x123d28['is']('element')&&_0x2f8a24['consume'](_0x123d28,{'name':!0x0});return _0x2716fd['createElement']('footnoteRef',{'footnoteId':_0x251fed});}}),_0x4e6e42['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5c9ea4,{writer:_0x4ce21d})=>D(_0x5c9ea4,_0x4ce21d)}),_0x4e6e42['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1966c5,{writer:_0x4e35d9})=>{const _0xe3bb91=_0x1966c5['getAttribute']('footnoteCounter');return _0x4efa8f(D(_0x1966c5,_0x4e35d9),_0x4e35d9,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xe3bb91)});}});}['_defineDefinitionsConverters'](){const {editor:_0x570fc0}=this,{t:t}=_0x570fc0['locale'],{conversion:_0x337b38}=_0x570fc0;_0x337b38['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x337b38['for']('upcast')['add'](_0x503eee=>{_0x503eee['on']('element:ol',(_0x3c5f30,_0x18f6c3,_0x28d672)=>{const _0x5b3678=_0x18f6c3['viewItem'];if(!_0x5b3678['hasClass']('footnotes-list')||!_0x18f6c3['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x28d672['consumable']['consume'](_0x5b3678,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4d2099,modelCursor:_0x5a1da5}=_0x28d672['convertChildren'](_0x18f6c3['viewItem'],_0x18f6c3['modelCursor']);_0x18f6c3['modelRange']=_0x4d2099,_0x18f6c3['modelCursor']=_0x5a1da5;}),_0x503eee['on']('element:hr',(_0x337af7,_0xde97e0,_0x5f2b21)=>{const _0x39ae1d=_0xde97e0['viewItem'];_0x39ae1d['hasClass']('footnotes-divider')&&_0xde97e0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5f2b21['consumable']['consume'](_0x39ae1d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x337b38['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4467bd,{writer:_0x1d647d})=>v(_0x1d647d)}),_0x337b38['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x51a716,{writer:_0x40da3f})=>{const _0x278032=v(_0x40da3f,{'data-footnotes-list-label':t('Footnotes')}),_0x440967=_0x4efa8f(_0x278032,_0x40da3f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x40da3f['setCustomProperty']('footnotesDefinitions',!0x0,_0x440967),_0x440967;}});}['_defineDefinitionConverters'](){const {editor:_0x1a5e8e}=this,{conversion:_0x228eba,locale:_0x348d3d}=_0x1a5e8e,_0x51f423=_0x1a5e8e['config']['get']('footnotes.multiBlock');_0x228eba['for']('upcast')['add'](_0x23dc6e=>{_0x23dc6e['on']('element:li',(_0x5733e5,_0x3a0dc1,_0x264900)=>{const _0x5eea14=_0x3a0dc1['viewItem'];if(!_0x5eea14['hasClass']('footnote-definition')||!_0x5eea14['getAttribute']('id'))return;const _0x152ca2=_0x5eea14['parent'];if(!_0x152ca2['is']('element','ol')||!_0x152ca2['hasClass']('footnotes-list'))return;if(!_0x264900['consumable']['test'](_0x5eea14,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xa9eb90=_0x264900['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5eea14['getAttribute']('id')});if(!_0x264900['safeInsert'](_0xa9eb90,_0x3a0dc1['modelCursor']))return;_0x264900['consumable']['consume'](_0x5eea14,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x460f30=Array['from'](_0x5eea14['getChildren']())['find'](_0x9b63b4=>_0x9b63b4['is']('element')&&_0x9b63b4['hasClass']('footnote-content'));for(const _0x1bd7e8 of _0x5eea14['getChildren']())_0x1bd7e8['is']('element')&&(_0x264900['consumable']['consume'](_0x1bd7e8,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x264900['consumable']['consume'](_0x1bd7e8,{'name':!0x0,'classes':'footnote-content'}));if(_0x460f30){if(_0x51f423)_0x264900['convertChildren'](_0x460f30,_0xa9eb90);else{const _0x74e3ee=_0x264900['writer']['createElement']('footnoteInlineContent');_0x264900['writer']['insert'](_0x74e3ee,_0xa9eb90),_0x264900['convertChildren'](_0x460f30,_0x74e3ee);}}_0x264900['updateConversionResult'](_0xa9eb90,_0x3a0dc1);});}),_0x228eba['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1caa0a,{writer:_0x590a1e})=>b(_0x1caa0a,_0x590a1e,_0x348d3d,{'dataPipeline':!0x0})}),_0x228eba['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xa093b2,{writer:_0x50098c})=>b(_0xa093b2,_0x50098c,_0x348d3d)});}['_defineBogusParagraphConverters'](){const {editor:_0x312bc3}=this,{conversion:_0x556939}=_0x312bc3;_0x312bc3['config']['get']('footnotes.multiBlock')?(_0x556939['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x556939['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x312bc3['model']['document'],'change:data',()=>{!function(_0x46f0fd,_0x39eefd){const _0x542aec=_0x46f0fd['document']['differ'],_0x214973=new Set();for(const _0x59171e of _0x542aec['getChanges']()){const _0x2fc2ac='attribute'==_0x59171e['type']?_0x59171e['range']['start']['parent']:_0x59171e['position']['parent'];_0x2fc2ac['is']('element','footnoteDefinition')&&_0x214973['add'](_0x2fc2ac);}for(const _0x934183 of _0x214973['values']()){const _0x395c1f=Array['from'](_0x934183['getChildren']())['filter'](_0x487843=>g(_0x487843,_0x39eefd['mapper']));for(const _0x4ca47b of _0x395c1f)_0x39eefd['reconvertItem'](_0x4ca47b);}}(_0x312bc3['model'],_0x312bc3['editing']);})):(_0x556939['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x556939['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x8af466,{writer:_0x1f973f})=>{const _0xb7e41=_0x1f973f['createContainerElement']('span');return _0x1f973f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xb7e41),_0xb7e41;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1c689a}=this,{editing:_0x202f3a,t:t}=_0x1c689a,_0x1c1e62=_0x1c689a['model']['document']['selection'];_0x1c689a['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1c689a['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x202f3a['view']['document'],'enter',(_0x5b8084,_0x1e958d)=>{const _0x15f68a=function(_0x35020e){const _0x444b14=_0x35020e['getSelectedElement']();if(_0x444b14?.['is']('element','footnoteRef'))return _0x444b14;return null;}(_0x1c1e62);if(_0x15f68a){const _0xd62b07=_0x15f68a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xd62b07),_0x1e958d['preventDefault'](),_0x5b8084['stop']();}},{'context':_0x60ae05});}['_defineClickHandlers'](){const {editor:_0x3e1354}=this,{editing:_0x3c2731}=_0x3e1354;_0x3e1354['editing']['view']['addObserver'](_0x106726),_0x3e1354['editing']['view']['addObserver'](_0x2e0f6e);let _0x40760b=!0x1;this['listenTo'](_0x3c2731['view']['document'],'pointerdown',(_0x22dde0,_0x51eb13)=>{const {target:_0x207abc}=_0x51eb13,_0x7e659e=_0x3c2731['view']['document']['selection'];_0x40760b=!!(_0x207abc?.['is']('element','a')&&_0x207abc['parent']?.['is']('element','sup')&&_0x207abc['parent']['hasClass']('footnote'))&&_0x7e659e['getSelectedElement']()===_0x207abc['parent'];},{'priority':'high'}),this['listenTo'](_0x3c2731['view']['document'],'click',(_0x7d05b8,_0x6d333e)=>{const {target:_0x2d221e}=_0x6d333e;if(!_0x2d221e?.['is']('element','a'))return;if(_0x2d221e['parent']?.['is']('element','sup')&&_0x2d221e['parent']['hasClass']('footnote')&&!_0x40760b)return void _0x6d333e['preventDefault']();let _0x3b573d=_0x2d221e['getAttribute']('href');if(!_0x3b573d?.['startsWith']('#'))return;_0x3b573d=_0x3b573d['slice'](0x1);let _0xf98d95=!0x1;(_0x3b573d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3b573d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3b573d))&&(_0xf98d95=!0x0),_0xf98d95&&(_0x6d333e['preventDefault'](),_0x7d05b8['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x521f6a}={}){return(_0x430a9c,{writer:_0x37a1e7})=>{if(!p(_0x430a9c))return null;if(!_0x521f6a)return _0x37a1e7['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xeee3c7=_0x37a1e7['createContainerElement']('p');return _0x37a1e7['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xeee3c7),_0xeee3c7;};}function p(_0x17e2d5){const {parent:_0x2bce7d}=_0x17e2d5;if(!_0x2bce7d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2bce7d['childCount'])return!0x1;for(const _0x23ac4a of _0x17e2d5['getAttributeKeys']())if(!_0x23ac4a['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x23ac4a)return!0x1;return!0x0;}function g(_0x169c35,_0x20ab23){if(!_0x169c35['is']('element','paragraph'))return!0x1;const _0x2d3b5c=_0x20ab23['toViewElement'](_0x169c35);return!!_0x2d3b5c&&p(_0x169c35)!==_0x2d3b5c['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x568d26){return _0x60ae05(_0x568d26)&&_0x568d26['is']('containerElement')&&!!_0x568d26['getCustomProperty']('footnotesDefinitions');}function v(_0x22af38,_0x562b39={}){const _0x34eb85=_0x22af38['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x496d1f=_0x22af38['createContainerElement']('ol',{'class':'footnotes-list'},_0x22af38['createSlot']());return _0x22af38['createContainerElement']('div',{'class':'footnotes',..._0x562b39},[_0x34eb85,_0x496d1f]);}function D(_0x5d0138,_0x3f7af2){const _0x457087=_0x5d0138['getAttribute']('footnoteId'),_0x48d24b=_0x5d0138['getAttribute']('footnoteCounter'),_0x4f6f6a=_0x3f7af2['createUIElement']('a',{'href':'#'+_0x457087},function(_0x10c588){const _0x32df0f=this['toDomElement'](_0x10c588);return _0x32df0f['textContent']=_0x48d24b,_0x32df0f;}),_0x18ce9a=_0x3f7af2['createContainerElement']('sup',{'id':'ref-'+_0x457087,'class':'footnote'},[_0x4f6f6a]);return _0x18ce9a['getFillerOffset']=()=>null,_0x18ce9a;}function b(_0x46f1dd,_0x176a45,_0x1a71f0,{dataPipeline:_0x4c9597}={}){const {t:t}=_0x1a71f0,_0x40ae15=_0x46f1dd['getAttribute']('footnoteId'),_0x1f5bc0=_0x176a45['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x40ae15},function(_0x69f845){const _0x47029a=this['toDomElement'](_0x69f845);return _0x47029a['innerText']='^',_0x47029a;}),_0x4345fb=_0x4c9597?_0x176a45['createContainerElement']('div',{'class':'footnote-content'}):_0x52e7d2(_0x176a45['createEditableElement']('div',{'class':'footnote-content'}),_0x176a45,{'label':t('Footnote\x20content.')});return _0x176a45['insert'](_0x176a45['createPositionAt'](_0x4345fb,0x0),_0x176a45['createSlot']()),_0x176a45['createContainerElement']('li',{'class':'footnote-definition','id':_0x40ae15},[_0x1f5bc0,_0x4345fb]);}
|