@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251031.0 → 0.0.0-nightly-20251101.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
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md.
|
|
4
|
-
*/(()=>{var t={14:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(453),i=n.n(o),s=n(374),r=n.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-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},331:(t,e,n)=>{t.exports=n(237)("./src/clipboard.js")},355:(t,e,n)=>{t.exports=n(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,o,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(o)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]);o&&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),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}},450:t=>{"use strict";var e=[];function n(t){for(var n=-1,o=0;o<e.length;o++)if(e[o].identifier===t){n=o;break}return n}function o(t,o){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=o.base?c[0]+o.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=n(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,o);o.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var n=e.domAPI(e);n.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;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=o(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=n(s[r]);e[a].references--}for(var c=o(t,i),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,n)=>{t.exports=n(237)("./src/utils.js")},774:t=>{"use strict";var e,n=(e=[],function(t,n){return e[t]=n,e.filter(Boolean).join("\n")});function o(t,e,o,i){var s;if(o)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=n(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++,n=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){o(n,e,!1,t)},remove:function(t){o(n,e,!0,t)}}}},782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},783:(t,e,n)=>{t.exports=n(237)("./src/engine.js")},901:(t,e,n)=>{t.exports=n(237)("./src/widget.js")},945:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(453),i=n.n(o),s=n(374),r=n.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var s=e[o]={id:o,exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{Footnotes:()=>Z,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>st,FootnotesTracker:()=>f,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=n(782),e=n(901),i=n(584),s=n(783);function r(){const t=["getElementKey","getChanges","692643WJCgnE","$graveyard","from","getItems","7154376HJnAZV","_model","3591087YPkyTt","add","elementName","rootName","2309255JGTnhb","attributes","1388212AGsqWL","18TTTbIG","insert","$text","2CXpNqy","reset","values","clear","has","push","slice","type","_getElementKey","remove","_trackedElements","4129854DcpLll","3434120mKukkW","8RabSPP","root","delete","length","position","get","createRangeOn","set","element","nodeAfter","_elementName","flat","name"];return(r=function(){return t})()}function a(t,e){const n=r();return(a=function(t,e){return n[t-=357]})(t,e)}const c=a;!function(t){const e=a,n=t();for(;;)try{if(730622===-parseInt(e(363))/1+parseInt(e(379))/2*(parseInt(e(369))/3)+-parseInt(e(392))/4*(-parseInt(e(373))/5)+-parseInt(e(390))/6+parseInt(e(375))/7+-parseInt(e(367))/8+-parseInt(e(376))/9*(-parseInt(e(391))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(r);class l{[c(368)];[c(358)];[c(387)];[c(389)]=new Map;constructor(t,e){const n=c;this[n(368)]=t,this[n(358)]=e[n(371)],this[n(387)]=e[n(361)]}[c(380)](){const t=c;this[t(389)][t(382)]()}[c(362)](t){const e=c,n=new Set,o=new Map;for(const i of t){if(e(377)===i[e(386)]&&e(378)!==i[e(360)]&&i[e(396)][e(357)]){const t=this[e(368)][e(398)](i[e(396)][e(357)]);for(const n of t[e(366)]()){if(!n.is(e(400),this[e(358)]))continue;const t=this[e(387)](n);o[e(383)](t)||o[e(399)](t,[]),o[e(397)](t)[e(384)](n)}}if(e(388)===i[e(386)]&&i[e(360)]===this[e(358)]){const t=this[e(387)]({getAttribute:t=>i[e(374)][e(397)](t)});n[e(370)](t)}}for(const[t,o]of this[e(389)])e(364)===o[e(393)][e(372)]&&n[e(370)](t);for(const t of n)this[e(389)][e(394)](t);for(const[t,n]of o)this[e(389)][e(399)](t,n[n[e(395)]-1]);const i=new Set;for(const[t,s]of o)n[e(383)](t)&&(i[e(370)](s[0]),s[e(395)]>1?o[e(399)](t,s[e(385)](1)):o[e(394)](t),n[e(394)](t));return{removed:Array[e(365)](n),inserted:Array[e(365)](o[e(381)]())[e(359)](),moved:Array[e(365)](i)}}}const u=d;!function(t){const e=d,n=t();for(;;)try{if(194312===parseInt(e(192))/1+-parseInt(e(155))/2*(parseInt(e(182))/3)+-parseInt(e(173))/4*(parseInt(e(244))/5)+parseInt(e(236))/6*(parseInt(e(200))/7)+parseInt(e(193))/8*(parseInt(e(186))/9)+parseInt(e(156))/10*(-parseInt(e(157))/11)+-parseInt(e(163))/12*(-parseInt(e(215))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(p);class f extends t.Plugin{[u(202)]=[];[u(188)]=null;[u(203)]=null;[u(196)];[u(237)];[u(241)];static get[u(201)](){return u(213)}static get[u(161)](){return!0}static get[u(191)](){return!0}constructor(t){const e=u;super(t),this[e(196)]=new l(this[e(209)][e(190)],{elementName:e(175),getElementKey:()=>e(167)}),this[e(237)]=new l(this[e(209)][e(190)],{elementName:e(229),getElementKey:t=>t[e(214)](e(242))}),this[e(241)]=new l(this[e(209)][e(190)],{elementName:e(176),getElementKey:t=>t[e(214)](e(242))})}[u(224)](){const t=u,{editor:e}=this,{model:n,data:o}=e;n[t(185)][t(181)](e=>{const o=t,i=n[o(185)][o(243)][o(183)]();let s=!1;return this[o(147)](e,i)&&(s=!0),this[o(234)](e,i)&&(s=!0),this[o(223)](e,i)&&(s=!0),this[o(178)](e)&&(s=!0),this[o(144)](e)&&(s=!0),this[o(205)](e)&&(s=!0),s}),this[t(174)](n[t(185)],t(158),()=>{const e=t;n[e(227)]({isUndoable:!1},t=>{this[e(246)](t)})},{priority:t(159)}),this[t(174)](o,t(228),()=>{const e=t;this[e(202)]=[],this[e(196)][e(206)](),this[e(237)][e(206)](),this[e(241)][e(206)]()},{priority:t(189)})}[u(225)](){return this[u(188)]}[u(169)](t){const e=u;return this[e(202)][e(166)](e=>e.id===t)||null}[u(204)](){const t=u;return Array[t(195)](this[t(202)])}[u(247)](){return this[u(203)]}[u(146)](t){this[u(203)]=t}[u(207)](t,e=0){const n=u;let o=!1;for(let i=e;i<this[n(202)][n(154)];i++)this[n(198)](t,i)&&(o=!0);return o}[u(197)](t,e){const n=u,o=t[n(240)](n(175),{});return t[n(211)](o,e),this[n(188)]=o,o}[u(246)](t){const e=u;if(!this[e(202)][e(154)]||this[e(188)])return;const n=this[e(202)][0][e(152)][e(231)],o=this[e(197)](t,n);for(const n of this[e(202)])n[e(180)][e(150)]||t[e(216)](n[e(180)],o,e(184));this[e(207)](t)}[u(147)](t,e){const n=u;let o=!1;const{inserted:i,removed:s,moved:r}=this[n(196)][n(183)](e);if(r[n(154)]&&(this[n(188)]=r[0]),i[n(154)])if(i[n(154)]>1||this[n(188)]&&i[n(210)](t=>t!==this[n(188)])){const e=t[n(240)](n(175),{}),s=[];this[n(188)]&&s[n(221)](this[n(188)]),s[n(221)](...i),t[n(216)](e,s[0],n(149));for(const o of s)t[n(177)](t[n(222)](o),t[n(245)](e,n(184))),t[n(217)](o);this[n(188)]=e,this[n(207)](t),o=!0}else this[n(188)]=i[0];if(s[n(154)]&&n(220)===this[n(188)]?.[n(231)][n(212)]){for(const e of this[n(202)])t[n(217)](e[n(152)]),o=!0;this[n(202)]=[],this[n(188)]=null}return o}[u(234)](t,e){const n=u;let o=!1;const i=this[n(209)][n(187)][n(153)](n(162)),{inserted:s,moved:r}=this[n(241)][n(183)](e);for(const e of[...r,...s]){const s=e[n(214)](n(242)),r=this[n(169)](s);r&&(r[n(180)]=e),h(t,i,e)&&(o=!0)}return o}[u(223)](t,e){const n=u;let o=!1;const{removed:i,inserted:s,moved:r}=this[n(237)][n(183)](e);for(const e of i)this[n(239)](t,e)&&(o=!0);for(const e of s)this[n(168)](t,e)&&(o=!0);for(const e of r)this[n(238)](t,e)&&(o=!0);return o}[u(144)](t){const e=u;if(!this[e(188)])return!1;let n=!1;if(this[e(188)][e(148)]!==this[e(202)][e(154)]){const o=[];for(const t of this[e(188)][e(171)]()){const i=t[e(214)](e(242));this[e(169)](i)||(o[e(218)](t),n=!0)}for(const n of o)t[e(217)](n)}const o=new Set,i=[];for(const t of this[e(188)][e(171)]()){const s=t[e(214)](e(242));o[e(164)](s)?(i[e(218)](t),n=!0):o[e(219)](s)}for(const n of i)t[e(217)](n);return this[e(188)][e(148)]||(t[e(217)](this[e(188)]),this[e(188)]=null,n=!0),n}[u(168)](t,e){const n=u;if(this[n(202)][n(166)](t=>t[n(152)]===e))return!1;let o=!1;const i=e[n(214)](n(242)),s=this[n(202)][n(151)](t=>t.id===i);-1!==s&&(t[n(217)](this[n(202)][s][n(152)]),this[n(202)][n(145)](s,1),o=!0);let r=this[n(188)]?function(t,e){const o=n;for(const n of t[o(171)]())if(n[o(214)](o(242))===e)return n;return null}(this[n(188)],i):null;r||(r=t[n(240)](n(176),{footnoteId:i}),this[n(188)]&&(t[n(216)](r,this[n(188)],n(184)),o=!0));const a={id:i,reference:e,definition:r},c=m(this[n(209)][n(190)],this[n(202)],e);this[n(202)][n(145)](c,0,a);let l=c;return-1!==s&&(l=Math[n(194)](c,s)),this[n(207)](t,l)&&(o=!0),o}[u(239)](t,e){const n=u,o=this[n(202)][n(151)](t=>t.id===e);if(-1===o)return!1;let i=!1;const s=this[n(202)][o];return n(220)!==s[n(180)][n(231)][n(212)]&&(t[n(217)](s[n(180)]),i=!0),this[n(202)][n(145)](o,1),this[n(207)](t,o)&&(i=!0),i}[u(238)](t,e){const n=u,o=e[n(214)](n(242)),i=this[n(202)][n(151)](t=>t.id===o),s=this[n(202)][i];let r=!1;s[n(152)]=e,this[n(202)][n(145)](i,1);const a=m(this[n(209)][n(190)],this[n(202)],e);return this[n(202)][n(145)](a,0,s),this[n(207)](t,Math[n(194)](i,a))&&(r=!0),r}[u(198)](t,e){const n=u;if(!this[n(188)])return!1;const o=this[n(202)][e];let i;return i=this[n(203)]?this[n(203)]({footnote:o,container:this[n(188)],digits:String(this[n(202)][n(154)])[n(154)],value:e+1}):String(e+1),o[n(152)][n(214)](n(232))!=i&&(t[n(170)](n(232),i,o[n(152)]),!0)}[u(205)](t){const e=u;if(!this[e(188)]||this[e(202)][e(154)]<2)return!1;if(function(t,n){const o=e;if(t[o(154)]!==n[o(154)])return!1;for(let e=0;e<t[o(154)];e++)if(t[e]!==n[e])return!1;return!0}(this[e(202)][e(160)](t=>t.id),Array[e(195)](this[e(188)][e(171)]())[e(160)](t=>t[e(214)](e(242)))))return!1;let n=!1;for(let o=0;o<this[e(202)][e(154)];o++){const i=this[e(202)][o],s=t[e(235)](i[e(180)]),r=t[e(245)](this[e(188)],o);s[e(165)](r)||(t[e(177)](t[e(233)](i[e(180)]),r),n=!0)}return n}[u(178)](t){const e=u;if(!this[e(202)][e(154)])return!1;const{model:n}=this[e(209)];let o=!1;for(let i=0;i<this[e(202)][e(154)]-1;i++){const s=this[e(202)][i],r=this[e(202)][i+1],a=n[e(235)](s[e(152)]),c=n[e(235)](r[e(152)]);e(226)===a[e(179)](c)&&(this[e(238)](t,s[e(152)]),i=-1,o=!0)}return o}}function d(t,e){const n=p();return(d=function(t,e){return n[t-=144]})(t,e)}function p(){const t=["createPositionBefore","33240tSMOMG","_footnoteRefsTracker","_handleMovedFootnoteReference","_handleRemoveFootnoteReferenceById","createElement","_footnoteDefsTracker","footnoteId","differ","353315jHoZAg","createPositionAt","_ensureFootnotesDefinitionsContainerExists","getFootnotesFormatter","_handleFootnotesDefinitionsObjectSync","splice","setFootnoteFormatter","_handleFootnotesDefinitionsObjectChanges","childCount","before","parent","findIndex","reference","get","length","214NiugWL","10BOeymQ","1722655OliCjf","change:data","low","map","isOfficialPlugin","footnotes.multiBlock","59808thasXU","has","isEqual","find","singleton","_handleInsertedFootnoteReference","getFootnote","setAttribute","getChildren","paragraph","8rbBgCB","listenTo","footnotesDefinitions","footnoteDefinition","move","_ensureFootnotesReferencesHaveProperOrder","compareWith","definition","registerPostFixer","10239rWWfYd","getChanges","end","document","27wlWhUE","config","_footnotesDefinitions","high","model","isPremiumPlugin","198461kkPUGk","126904aJwWne","min","from","_footnoteDefsContainerTracker","_insertEmptyFootnotesDefinitionsContainer","_updateFootnoteRefCounter","footnoteInlineContent","42lYYmRF","pluginName","_footnotes","_footnoteFormatter","getFootnotes","_sortFootnoteDefinitions","reset","_updateFootnotesCounters","getRootNames","editor","some","append","rootName","FootnotesTracker","getAttribute","1508xuCHey","insert","remove","unshift","add","$graveyard","push","createRangeIn","_handleFootnoteReferencesChanges","init","getFootnotesDefinitionsObjectElement","after","enqueueChange","set","footnoteRef","indexOf","root","footnoteCounter","createRangeOn","_handleFootnoteDefinitionsChanges"];return(p=function(){return t})()}function h(t,e,n){const o=u;if(n[o(148)])return!1;const i=o(e?172:199);return t[o(216)](t[o(240)](i),n),!0}function m(t,e,n){const o=u;if(0===e[o(154)])return 0;const i=t[o(235)](n);for(let n=0;n<e[o(154)];n++){const s=e[n],r=t[o(235)](s[o(152)]);if(o(149)===i[o(179)](r))return n}const s=n[o(231)];let r=-1;for(let t=e[o(154)]-1;t>=0;t--)if(e[t][o(152)][o(231)]===s){r=t;break}if(-1!==r)return r+1;const a=t[o(185)][o(208)](),c=a[o(230)](s[o(212)]),l=a[c+1];if(l)for(let t=0;t<e[o(154)];t++)if(e[t][o(152)][o(231)][o(212)]===l)return t;return e[o(154)]}const g=y;function w(){const t=["model","length","293652Nmeenp","get","insert-footnote-command-executed-with-invalid-id","string","editor","document","7lfhyzL","_getPositionToInsertFootnote","isObject","execute","getFirstRange","getItems","selection","checkChild","end","19920wPfupR","isEnabled","_moveSelectionToFootnoteDefinition","1134ymvITt","1106700YGUslL","75376lKtZrR","plugins","test","refresh","12KhhpbN","change","59397sUDaiC","FootnotesEditing","1882952wauUit","footnoteId","footnoteRef","isBlock","insertObject","76438JgQjLA","createElement"];return(w=function(){return t})()}function y(t,e){const n=w();return(y=function(t,e){return n[t-=356]})(t,e)}!function(t){const e=y,n=t();for(;;)try{if(126821===parseInt(e(364))/1+-parseInt(e(392))/2*(parseInt(e(357))/3)+-parseInt(e(388))/4+parseInt(e(387))/5+-parseInt(e(368))/6+-parseInt(e(374))/7*(parseInt(e(359))/8)+parseInt(e(386))/9*(parseInt(e(383))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(w);class b extends t.Command{[g(391)](){const t=g,e=this[t(372)][t(366)][t(373)][t(380)],n=this[t(375)](e);this[t(384)]=!!n}[g(377)](t){const e=g,{editor:n}=this,{model:o}=n,{selection:s}=o[e(373)],r=this[e(375)](s);if(!r)return;const a=n[e(389)][e(369)](e(358)),c=t?.[e(360)]??(0,i.uid)();!function(t){const n=e;return n(371)==typeof t&&t[n(367)]>0&&!/\s/[n(390)](t)&&!/^\d/[n(390)](t)}(c)?(0,i.logWarning)(e(370)):(o[e(356)](t=>{const n=e,i=t[n(365)](n(361),{footnoteId:c});o[n(363)](i,r,null)}),a[e(385)](c))}[g(375)](t){const e=g,{model:n}=this[e(372)],{schema:o}=n,i=t[e(378)]();for(const t of i[e(379)]())if(o[e(362)](t)||o[e(376)](t))return null;const s=i[e(382)];return o[e(381)](s,e(361))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}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]),n=window[m([68,97,116,101])][m([110,111,119])](),o=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{o[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=o[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;o[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(n,o)=>{o[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(),n[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 n(t){for(let n=0;n<t[m([108,101,110,103,116,104])];n++){const o=t[m([99,104,97,114,67,111,100,101,65,116])](n);e=(e<<5)+e+o,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,o])=>{n(e),t(o)}):n(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 n=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 n=m([117]);for(let o=0;o<t[m([108,101,110,103,116,104])];o+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](o,o+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),n+=e[i]}return n}();o[n]=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,o[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,o[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,o[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&&n()?e:null;function n(){const t=e[m([106,116,105])],n=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),o={...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 o[m([118,99])],f(o)==n}}}(),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(),o[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(o){a(o)[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(n-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)),o=p(d(window[m([77,97,116,104])][m([99,101,105,108])](n/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,o)}function r(){const e=m([108,108,99,116,45])+d(f(t)),n=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return n?window[m([112,97,114,115,101,73,110,116])](p(n),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,n)=>{t[m([116,104,101,110])](e,n),window[m([115,101,116,84,105,109,101,111,117,116])](n,12e4)})}}o[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,n)=>{if(n[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));n[1]={...n[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])}),o[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 o[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(){o[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 o=a[m([115,112,108,105,116])](m([46])),[i,s,r]=o;return e(i),await n(i,s,r),t}catch{return!1}function e(e){const n=l(e);n&&n[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function n(e,n,o){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(o),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])+n),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])])?n/1e3:1761868800;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:n}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](n))return!0;const o=n[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])]<=o[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(o[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=>o[m([101,118,101,114,121])]((e,n)=>t[n]===e||t[n]===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,n)=>{e[m([116,104,101,110])](t,n),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},n)}):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:n,model:o}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),n.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:n,model:o}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(i.reference,"on")}),n.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:n,editing:o}=t,{t:i}=t.locale;n.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:n})=>{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;n.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of o.view.createRangeIn(i))t.is("$textProxy")?n.consume(t.textNode,{name:!0}):t.is("element")&&n.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),n.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),n.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:n})=>{const o=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,n),n,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",o)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:n}=t.locale,{conversion:o}=t;o.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),o.for("upcast").add(t=>{t.on("element:ol",(t,e,n)=>{const o=e.viewItem;if(!o.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!n.consumable.consume(o,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,n)=>{const o=e.viewItem;o.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&n.consumable.consume(o,{name:!0,classes:"footnotes-divider"})})}),o.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),o.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:o})=>{const i=x(o,{"data-footnotes-list-label":n("Footnotes")}),s=(0,e.toWidget)(i,o,{hasSelectionHandle:!0,label:n("Footnotes")});return o.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:n}=t,o=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,n)=>{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(!n.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=n.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!n.safeInsert(r,e.modelCursor))return;n.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")&&(n.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),n.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(o)n.convertChildren(a,r);else{const t=n.writer.createElement("footnoteInlineContent");n.writer.insert(t,r),n.convertChildren(a,t)}n.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const n=t.document.differ,o=new Set;for(const t of n.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&o.add(e)}for(const t of o.values()){const n=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of n)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const n=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:n,t:o}=t,i=t.model.document.selection;t.keystrokes.set("CTRL+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),this.listenTo(n.view.document,"enter",(t,e)=>{const n=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(n){const o=n.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(o),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 n=!1;this.listenTo(e.view.document,"pointerdown",(t,o)=>{const{target:i}=o,s=e.view.document.selection;n=!!(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:o}=e;if(!o.is("element","a"))return;if(o.parent?.is("element","sup")&&o.parent.hasClass("footnote")&&!n)return void e.preventDefault();let i=o.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:n})=>{if(!k(e))return null;if(!t)return n.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const o=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}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 n=e.toViewElement(t);return!!n&&k(t)!==n.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const n=t.createEmptyElement("hr",{class:"footnotes-divider"}),o=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[n,o])}function E(t,e){const n=t.getAttribute("footnoteId"),o=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+n},function(t){const e=this.toDomElement(t);return e.textContent=o,e}),s=e.createContainerElement("sup",{id:"ref-"+n,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,n,o,{dataPipeline:i}={}){const{t:s}=o,r=t.getAttribute("footnoteId"),a=n.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?n.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(n.createEditableElement("div",{class:"footnote-content"}),n,{label:s("Footnote content.")});return n.insert(n.createPositionAt(c,0),n.createSlot()),n.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=n(331);function L(){const t=["footnoteRef","change","application/ckeditor5-footnotes","init","250YPraqM","add","pluginName","toModel","dataTransfer","definition","getFootnote","create","setAttribute","_insertEmptyFootnotesDefinitionsContainer","method","_defineClipboardIntegration","selection","reduce","push","getFootnotesDefinitionsObjectElement","177133RbLFBy","toView","insert","entries","541509IeKKyu","drop","1788708GElHLs","getData","find","content","setData","append","7QXIGJe","isOfficialPlugin","footnoteDefinition","sourceEditorId","from","createElement","isPremiumPlugin","footnoteId","18ZFpxkE","getAttribute","toData","2lzvIsp","htmlProcessor","footnotesDefinitions","outputTransformation","root","createRangeIn","length","getFootnotes","get","parse","stringify","element","clipboardInput","remove","document","_handleCopyFootnotesDefinitions","editing","data","editor","end","3180528pKhVDC","contentInsertion","getFirstRange","FootnotesClipboard","5sGLTqu","1308780MmnkBY","1135388vvRbay","requires","_handlePasteFootnotesDefinitions","listenTo","17490648GMgCou"];return(L=function(){return t})()}const _=A;function A(t,e){const n=L();return(A=function(t,e){return n[t-=352]})(t,e)}!function(t){const e=A,n=t();for(;;)try{if(707097===parseInt(e(395))/1*(parseInt(e(414))/2)+-parseInt(e(397))/3+-parseInt(e(366))/4*(-parseInt(e(364))/5)+-parseInt(e(365))/6*(-parseInt(e(403))/7)+parseInt(e(360))/8*(-parseInt(e(411))/9)+-parseInt(e(375))/10*(parseInt(e(391))/11)+parseInt(e(370))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(L);class D extends t.Plugin{static get[_(377)](){return _(363)}static get[_(367)](){return[v,S.ClipboardPipeline]}static get[_(404)](){return!0}static get[_(409)](){return!0}[_(374)](){this[_(386)]()}[_(386)](){const t=_;this[t(355)](),this[t(368)]()}[_(355)](){const t=_,{editor:e}=this,{plugins:n,model:o}=e,i=n[t(422)](S.ClipboardPipeline),s=n[t(422)](f);this[t(369)](i,t(417),(n,i)=>{const r=t,a=function(t,e){const n=A,o=new Set;for(const{item:i}of t[n(419)](e))i.is(n(425),n(371))&&o[n(376)](i[n(412)](n(410)));return Array[n(407)](o)}(o,i[r(400)]);if(!a[r(420)])return;const c=s[r(421)](),l=a[r(388)]((t,n)=>{const o=r,i=c[o(399)](t=>t.id===n);if(i){const n=e[o(357)][o(392)](i[o(380)],{isClipboardPipeline:!0}),s=e[o(357)][o(415)][o(413)](n);t[i.id]=s}return t},Object[r(382)](null));i[r(379)][r(401)](r(373),JSON[r(424)](l))})}[_(368)](){const t=_,{editor:e}=this,{model:n,plugins:o}=e,{view:s}=e[t(356)],r=o[t(422)](S.ClipboardPipeline),a=o[t(422)](f);let c=null;this[t(369)](s[t(354)],t(352),(e,n)=>{const o=t,i=n[o(379)][o(398)](o(373));c=i?JSON[o(423)](i):null}),this[t(369)](r,t(361),(o,s)=>{const r=t;if(!c)return;const l=s[r(406)]===this[r(358)].id;l&&r(396)===s[r(385)]||n[r(372)](t=>{const o=r;!function(t,e){const n=A,o=[];for(const{item:i}of t[n(419)](e))i.is(n(425),n(416))&&o[n(389)](i);for(const e of o)t[n(353)](e)}(t,s[o(400)]);let u=a[o(390)]();if(!u){const e=n[o(354)][o(387)][o(362)]()[o(418)];u=a[o(384)](t,e)}const f=function(t,e,n){const s=o,r=Object[s(382)](null);for(const{item:o}of t[s(419)](e))if(o.is(s(425),s(371))){const e=o[s(412)](s(410));if(!n(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(383)](s(410),r[e],o)}return r}(t,s[o(400)],t=>!l||null!==a[o(381)](t));for(const[n,i]of Object[o(394)](c)){const s=f[n]||n,r=t[o(408)](o(405),{footnoteId:s}),a=e[o(357)][o(415)][o(392)](i),c=e[o(357)][o(378)](a,r);t[o(402)](c,r),t[o(393)](r,u,o(359))}c=null})})}}var T=n(311),V=n(355),O=n(450),N=n.n(O),R=n(774),K=n.n(R),M=n(265),j=n.n(M),B=n(410),W=n.n(B),H=n(238),U=n.n(H),z=n(14),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=j().bind(null,"head"),G.domAPI=K(),G.insertStyleElement=U();N()(z.A,G);z.A&&z.A.locals&&z.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,T.ButtonView)),e.add("menuBar:insertFootnote",J(t,T.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const n=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in n){const o=e,i=n[o];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete n[o],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&n._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&n._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&n._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&n._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&n._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&n._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&n._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const n=t.commands.get("insertFootnote");return o=>{const{t:i}=o,s=new e(o),r=s instanceof T.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(n,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{n.execute(),t.editing.view.focus()}),s}}function X(){var t=["66100980Bzjsap","194IWhyjQ","1240670fvjPmo","15178FXocBZ","isOfficialPlugin","pluginName","isPremiumPlugin","8qrgUMO","16596738WZYvGZ","16FTgFDa","2179608ektjCy","1335900EfBXfL","4795098ypJpqB","Footnotes","requires"];return(X=function(){return t})()}var Y=Q;function Q(t,e){var n=X();return(Q=function(t,e){return n[t-=384]})(t,e)}!function(t){for(var e=Q,n=t();;)try{if(923568===parseInt(e(394))/1*(-parseInt(e(396))/2)+-parseInt(e(388))/3+parseInt(e(385))/4*(-parseInt(e(395))/5)+parseInt(e(389))/6+parseInt(e(390))/7*(-parseInt(e(387))/8)+-parseInt(e(386))/9+parseInt(e(393))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(X);class Z extends t.Plugin{static get[Y(398)](){return Y(391)}static get[Y(392)](){return[v,D,q]}static get[Y(397)](){return!0}static get[Y(384)](){return!0}}const $=tt;function tt(t,e){const n=nt();return(tt=function(t,e){return n[t-=312]})(t,e)}!function(t){const e=tt,n=t();for(;;)try{if(905200===parseInt(e(314))/1*(-parseInt(e(316))/2)+-parseInt(e(320))/3*(-parseInt(e(327))/4)+parseInt(e(313))/5+-parseInt(e(326))/6*(-parseInt(e(328))/7)+parseInt(e(323))/8+-parseInt(e(329))/9+-parseInt(e(312))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(nt);const et=[$(324),$(322),$(317),$(315),$(325),$(321),$(319),$(318)];function nt(){const t=["47812900OSYHGh","8963865JGRJoK","1BBfiMu","upper-latin","563924JfNyNl","lower-latin","upper-roman","lower-roman","123NhNyOa","upper-alpha","decimal-leading-zero","12208232ONvRnW","decimal","lower-alpha","3972AXRhae","122756fzBFJK","14777kACtLJ","54729jQRLuX"];return(nt=function(){return t})()}function ot(t,e){const n=rt();return(ot=function(t,e){return n[t-=103]})(t,e)}const it=ot;!function(t){const e=ot,n=t();for(;;)try{if(338038===-parseInt(e(112))/1*(-parseInt(e(120))/2)+parseInt(e(124))/3*(parseInt(e(116))/4)+parseInt(e(117))/5+-parseInt(e(108))/6*(parseInt(e(110))/7)+parseInt(e(107))/8*(parseInt(e(104))/9)+parseInt(e(127))/10*(parseInt(e(114))/11)+parseInt(e(113))/12*(-parseInt(e(111))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(rt);class st extends t.Command{[it(115)](){const t=it,{editor:e}=this,n=e[t(128)][t(103)](f)[t(119)]();this[t(129)]=!!n,this[t(106)]=n?.[t(121)](t(109))??null}[it(125)]({value:t}){const e=it,{editor:n}=this,o=n[e(128)][e(103)](f),i=o[e(119)]();i&&et[e(105)](t)&&n[e(126)][e(123)](n=>{const s=e;n[s(118)](s(109),t,i),o[s(122)](n)})}}function rt(){const t=["setAttribute","getFootnotesDefinitionsObjectElement","1762zrTWxb","getAttribute","_updateFootnotesCounters","change","3LrysiA","execute","model","80AIJCtp","plugins","isEnabled","get","9inFGLB","includes","value","2101352hxKkGk","48666gRhubM","footnotesListStyle","483uwWDhL","5306717mAxXLU","181zCtGpq","24ZyOvLy","547492jwxlDq","refresh","2286784sHXgvZ","1610565kCVGdu"];return(rt=function(){return t})()}const at=lt;function ct(){const t=["997232OPIQwJ","model","refresh","value","execute","isInteger","setAttribute","9123kVUDjB","8370187QDuCGI","plugins","2733564dpFPxh","change","getFootnotesDefinitionsObjectElement","2186822ezPzYG","isEnabled","_updateFootnotesCounters","30FeiMzu","6sCtjil","getAttribute","footnotesListStart","20856LOPMIP","25UgJMMC","190068imFpwz","576dskTHt","get"];return(ct=function(){return t})()}function lt(t,e){const n=ct();return(lt=function(t,e){return n[t-=100]})(t,e)}!function(t){const e=lt,n=t();for(;;)try{if(748855===parseInt(e(111))/1+parseInt(e(104))/2+parseInt(e(114))/3+parseInt(e(101))/4*(-parseInt(e(100))/5)+-parseInt(e(121))/6*(parseInt(e(112))/7)+-parseInt(e(124))/8*(-parseInt(e(102))/9)+-parseInt(e(120))/10*(-parseInt(e(117))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ct);class ut extends t.Command{[at(106)](){const t=at,{editor:e}=this,n=e[t(113)][t(103)](f)[t(116)]();this[t(118)]=!!n,this[t(107)]=n?.[t(122)](t(123))??null}[at(108)]({value:t}){const e=at,{editor:n}=this,o=n[e(113)][e(103)](f),i=o[e(116)]();i&&Number[e(109)](t)&&n[e(105)][e(115)](n=>{const s=e;n[s(110)](s(123),t,i),o[s(119)](n)})}}function ft(t,e){const n=yt();return(ft=function(t,e){return n[t-=107]})(t,e)}const dt=ft;!function(t){const e=ft,n=t();for(;;)try{if(988352===parseInt(e(130))/1*(-parseInt(e(207))/2)+parseInt(e(182))/3+-parseInt(e(189))/4+parseInt(e(194))/5*(-parseInt(e(164))/6)+parseInt(e(204))/7+parseInt(e(153))/8*(parseInt(e(198))/9)+parseInt(e(183))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(yt);class pt extends t.Plugin{static get[dt(126)](){return dt(150)}static get[dt(172)](){return[v,f]}static get[dt(166)](){return!0}static get[dt(114)](){return!0}[dt(157)](){const t=dt,{editor:e}=this;e[t(169)][t(127)](t(196),t(136)),e[t(169)][t(127)](t(132),1),e[t(167)][t(181)](t(191),new st(e)),e[t(167)][t(181)](t(162),new ut(e)),this[t(158)](),this[t(145)](),this[t(177)](),this[t(175)]()}[dt(158)](){const t=dt,{editor:e}=this,{schema:n}=e[t(174)];n[t(193)](t(188),{allowAttributes:[t(197),t(165)]})}[dt(145)](){const t=dt,{editor:e}=this,{conversion:n,model:o}=e,{schema:i}=o;n[t(163)](t(179))[t(181)](e=>{const n=t;e.on(n(141),(t,e,o)=>{const s=n,r=e[s(187)],a=e[s(168)]?.[s(178)];r[s(116)](s(121))&&a?.is(s(195),s(188))&&(function(t,e,n,o){const i=s;if(!o[i(115)](e,i(165)))return;let r=1;const a=n[i(122)][i(152)](t,{attributes:i(201)});if(a){const e=Number[i(111)](t[i(200)](i(201)),10);Number[i(203)](e)||(r=e)}!a&&e[i(147)](i(165))||n[i(112)][i(173)](i(165),r,e)}(r,a,o,i),function(t,e,n,o){const i=s;if(!o[i(115)](e,i(197)))return;let r=i(136),a=!1;if(n[i(122)][i(152)](t,{attributes:i(113)})){const e={1:i(136),a:i(154),A:i(160),i:i(176),I:i(148)}[t[i(200)](i(113))];e&&(r=e),a=!0}n[i(122)][i(152)](t,{styles:i(119)})&&(r=t[i(159)](i(119)),a=!0),!a&&e[i(147)](i(197))||n[i(112)][i(173)](i(197),r,e)}(r,a,o,i))})}),n[t(163)](t(144))[t(181)](e=>{const n=t;e.on(n(133),(t,e,o)=>{const i=n;if(!o[i(122)][i(152)](e[i(124)],t[i(120)]))return;const s=ht(e[i(124)],o[i(170)]),{attributeNewValue:r}=e;null==r||1===r?o[i(112)][i(131)](i(201),s):o[i(112)][i(173)](i(201),String(r),s)}),e.on(n(206),(t,e,o)=>{const i=n;if(!o[i(122)][i(152)](e[i(124)],t[i(120)]))return;const s=ht(e[i(124)],o[i(170)]),{attributeNewValue:r}=e;r&&i(136)!==r?o[i(112)][i(143)](i(119),r,s):o[i(112)][i(125)](i(119),s)})})}[dt(175)](){const t=dt,{editor:e}=this,{model:n}=e,o=e[t(134)][t(156)](f),i=this[t(140)](),s=this[t(139)]();n[t(184)][t(205)](e=>{const r=t,a=n[r(184)][r(107)][r(129)]();let c=!1;for(const t of a){if(r(151)!==t[r(113)]||r(146)===t[r(120)])continue;const o=n[r(180)](t[r(155)][r(142)]);for(const t of o[r(128)]())t.is(r(195),r(188))&&(!t[r(147)](r(165))&&n[r(138)][r(115)](t,r(165))&&(e[r(173)](r(165),s,t),c=!0),!t[r(147)](r(197))&&n[r(138)][r(115)](t,r(197))&&(e[r(173)](r(197),i,t),c=!0))}return c&&o[r(161)](e),c})}[dt(177)](){const t=dt,{editor:e}=this;e[t(134)][t(156)](f)[t(118)](e=>this[t(199)](e))}[dt(140)](){const t=dt;return this[t(108)][t(169)][t(156)](t(196))}[dt(139)](){const t=dt;return this[t(108)][t(169)][t(156)](t(132))}[dt(199)]({container:t,value:e,digits:n}){const o=dt,i=t[o(200)](o(197)),s=t[o(200)](o(165)),r=Math[o(117)](e)+(s??1)-1;switch(i){case o(110):return function(t,e){const n=o;return String(t)[n(137)](e,"0")}(r,Math[o(186)](2,n));case o(154):case o(109):return mt(r,!1);case o(160):case o(192):return mt(r,!0);case o(176):return wt(r,!1);case o(148):return wt(r,!0);default:return String(r)}}}function ht(t,e){const n=dt,o=e[n(135)](t);return Array[n(149)](o[n(190)]())[n(202)](t=>t.is(n(195),"ol")&&t[n(116)](n(121)))}function mt(t,e){const n=dt;let o="",i=t;for(;i>0;){const t=(i-1)%26;o=String[n(185)](97+t)+o,i=Math[n(117)]((i-1)/26)}return e?o[n(171)]():o}const gt=[{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 wt(t,e){const n=dt;let o="",i=t;for(const{value:t,numeral:e}of gt)for(;i>=t;)o+=e,i-=t;return e?o:o[n(123)]()}function yt(){const t=["_updateFootnotesCounters","footnotesStart","for","2966982eGorjt","footnotesListStart","isOfficialPlugin","commands","modelCursor","config","mapper","toUpperCase","requires","setAttribute","model","_definePostfixer","lower-roman","_defineFormatter","parent","upcast","createRangeOn","add","1101243qMLkOc","9845080NXcPgd","document","fromCharCode","max","viewItem","footnotesDefinitions","249632kSJIct","getChildren","footnotesStyle","upper-latin","extend","10quEYBW","element","footnotes.footnotesProperties.defaultListStyle","footnotesListStyle","9UaYfGM","_formatFootnoteListValue","getAttribute","start","find","isNaN","7643706yAeQSo","registerPostFixer","attribute:footnotesListStyle:footnotesDefinitions","3234vmpvoH","differ","editor","lower-latin","decimal-leading-zero","parseInt","writer","type","isPremiumPlugin","checkAttribute","hasClass","floor","setFootnoteFormatter","list-style-type","name","footnotes-list","consumable","toLowerCase","item","removeStyle","pluginName","define","getItems","getChanges","917ErqQcF","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","plugins","toViewElement","decimal","padStart","schema","_getDefaultStartIndex","_getDefaultListStyle","element:ol","nodeAfter","setStyle","downcast","_defineConverters","$text","hasAttribute","upper-roman","from","FootnotesPropertiesEditing","insert","consume","8631968GLikEL","lower-alpha","position","get","init","_defineSchema","getStyle","upper-alpha"];return(yt=function(){return t})()}class bt extends T.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new T.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:n}){super(t),this.focusCycler=new T.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,n),[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,T.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 n=new T.View(this.locale);return n.children=n.createCollection(),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n.focus=function(){for(const t of this.children)if(t instanceof T.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},n.focusTracker=new i.FocusTracker,n.keystrokes=new i.KeystrokeHandler,n.render(),n.keystrokes.listenTo(n.element),this.children.add(n),n}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),n=[e],o=new T.CollapsibleView(this.locale,n);return o.set({label:t("Footnotes properties"),isCollapsed:!0}),o.buttonView.bind("isEnabled").toMany(n,"isEnabled",(...t)=>t.some(t=>t)),o.buttonView.on("change:isEnabled",(t,e,n)=>{n||(o.isCollapsed=!0)}),this.children.add(o),[e,o]}_createStartIndexPropertyView(){const{t}=this.locale,e=new T.LabeledFieldView(this.locale,T.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 n=e.fieldView.element,o=n.valueAsNumber;Number.isNaN(o)?e.errorText=t("Invalid footnotes start index value."):n.checkValidity()?this.fire("footnotesListStart",{startIndex:o}):e.errorText=t(o<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=n(945),It={attributes:{"data-cke":!0}};It.setAttributes=W(),It.insert=j().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=U();N()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[T.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var n;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(n=t,t=>{const{t:e}=t,o=n.commands.get("footnotesStyle"),i=(0,T.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(o,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:n}=t.locale,o=n("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:n,icon:o,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new T.ButtonView(e);return a.set({label:n,icon:o,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 bt(t.locale,{styleGridAriaLabel:o,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,n)=>{t.execute("footnotesStart",{value:n.startIndex})}),s}({editor:n,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:n}=t.locale,o=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=T.BalloonPanelView;o.register("footnotesDefinitions",{ariaLabel:n("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 Ct=xt;function Ft(){var t=["11382160fQJjVk","1576280ATzsgW","85qcJZAZ","5062748efImma","3HaOTsO","9987502QqLyPD","pluginName","FootnotesProperties","isOfficialPlugin","requires","1152FFwlji","98244eokYBy","isPremiumPlugin","80176JVSBXk","23162ROramW"];return(Ft=function(){return t})()}function xt(t,e){var n=Ft();return(xt=function(t,e){return n[t-=150]})(t,e)}!function(t){for(var e=xt,n=t();;)try{if(804385===parseInt(e(163))/1+parseInt(e(150))/2+-parseInt(e(153))/3*(-parseInt(e(152))/4)+parseInt(e(151))/5*(-parseInt(e(160))/6)+parseInt(e(154))/7+-parseInt(e(162))/8*(parseInt(e(159))/9)+-parseInt(e(164))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ft);class Et extends t.Plugin{static get[Ct(155)](){return Ct(156)}static get[Ct(158)](){return[pt,kt]}static get[Ct(157)](){return!0}static get[Ct(161)](){return!0}}function Pt(){var t=["390590uJMbHN","1143498VWcrDb","817267yTspHo","6767109uTILeX","7voykNY","2976135EkSEQk","4763364TwTtlW","10678200wHHoaB","108QXYgXR"];return(Pt=function(){return t})()}function St(t,e){var n=Pt();return(St=function(t,e){return n[t-=365]})(t,e)}!function(t){for(var e=St,n=t();;)try{if(869972===parseInt(e(372))/1+-parseInt(e(371))/2+parseInt(e(366))/3+-parseInt(e(367))/4+-parseInt(e(370))/5*(-parseInt(e(369))/6)+parseInt(e(365))/7*(-parseInt(e(368))/8)+parseInt(e(373))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=o})();
|
|
4
|
+
*/(()=>{var t={14:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(453),i=n.n(o),s=n(374),r=n.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-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265:t=>{"use strict";var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},331:(t,e,n)=>{t.exports=n(237)("./src/clipboard.js")},355:(t,e,n)=>{t.exports=n(237)("./src/icons.js")},374:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,o,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(o)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]);o&&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),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}},450:t=>{"use strict";var e=[];function n(t){for(var n=-1,o=0;o<e.length;o++)if(e[o].identifier===t){n=o;break}return n}function o(t,o){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=o.base?c[0]+o.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=n(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,o);o.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var n=e.domAPI(e);n.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;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=o(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=n(s[r]);e[a].references--}for(var c=o(t,i),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,n)=>{t.exports=n(237)("./src/utils.js")},774:t=>{"use strict";var e,n=(e=[],function(t,n){return e[t]=n,e.filter(Boolean).join("\n")});function o(t,e,o,i){var s;if(o)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=n(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++,n=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){o(n,e,!1,t)},remove:function(t){o(n,e,!0,t)}}}},782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},783:(t,e,n)=>{t.exports=n(237)("./src/engine.js")},901:(t,e,n)=>{t.exports=n(237)("./src/widget.js")},945:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(453),i=n.n(o),s=n(374),r=n.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var s=e[o]={id:o,exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{Footnotes:()=>Z,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>kt,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>st,FootnotesTracker:()=>f,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=n(782),e=n(901),i=n(584),s=n(783);function r(){const t=["getElementKey","getChanges","692643WJCgnE","$graveyard","from","getItems","7154376HJnAZV","_model","3591087YPkyTt","add","elementName","rootName","2309255JGTnhb","attributes","1388212AGsqWL","18TTTbIG","insert","$text","2CXpNqy","reset","values","clear","has","push","slice","type","_getElementKey","remove","_trackedElements","4129854DcpLll","3434120mKukkW","8RabSPP","root","delete","length","position","get","createRangeOn","set","element","nodeAfter","_elementName","flat","name"];return(r=function(){return t})()}function a(t,e){const n=r();return(a=function(t,e){return n[t-=357]})(t,e)}const c=a;!function(t){const e=a,n=t();for(;;)try{if(730622===-parseInt(e(363))/1+parseInt(e(379))/2*(parseInt(e(369))/3)+-parseInt(e(392))/4*(-parseInt(e(373))/5)+-parseInt(e(390))/6+parseInt(e(375))/7+-parseInt(e(367))/8+-parseInt(e(376))/9*(-parseInt(e(391))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(r);class l{[c(368)];[c(358)];[c(387)];[c(389)]=new Map;constructor(t,e){const n=c;this[n(368)]=t,this[n(358)]=e[n(371)],this[n(387)]=e[n(361)]}[c(380)](){const t=c;this[t(389)][t(382)]()}[c(362)](t){const e=c,n=new Set,o=new Map;for(const i of t){if(e(377)===i[e(386)]&&e(378)!==i[e(360)]&&i[e(396)][e(357)]){const t=this[e(368)][e(398)](i[e(396)][e(357)]);for(const n of t[e(366)]()){if(!n.is(e(400),this[e(358)]))continue;const t=this[e(387)](n);o[e(383)](t)||o[e(399)](t,[]),o[e(397)](t)[e(384)](n)}}if(e(388)===i[e(386)]&&i[e(360)]===this[e(358)]){const t=this[e(387)]({getAttribute:t=>i[e(374)][e(397)](t)});n[e(370)](t)}}for(const[t,o]of this[e(389)])e(364)===o[e(393)][e(372)]&&n[e(370)](t);for(const t of n)this[e(389)][e(394)](t);for(const[t,n]of o)this[e(389)][e(399)](t,n[n[e(395)]-1]);const i=new Set;for(const[t,s]of o)n[e(383)](t)&&(i[e(370)](s[0]),s[e(395)]>1?o[e(399)](t,s[e(385)](1)):o[e(394)](t),n[e(394)](t));return{removed:Array[e(365)](n),inserted:Array[e(365)](o[e(381)]())[e(359)](),moved:Array[e(365)](i)}}}const u=d;!function(t){const e=d,n=t();for(;;)try{if(194312===parseInt(e(192))/1+-parseInt(e(155))/2*(parseInt(e(182))/3)+-parseInt(e(173))/4*(parseInt(e(244))/5)+parseInt(e(236))/6*(parseInt(e(200))/7)+parseInt(e(193))/8*(parseInt(e(186))/9)+parseInt(e(156))/10*(-parseInt(e(157))/11)+-parseInt(e(163))/12*(-parseInt(e(215))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(p);class f extends t.Plugin{[u(202)]=[];[u(188)]=null;[u(203)]=null;[u(196)];[u(237)];[u(241)];static get[u(201)](){return u(213)}static get[u(161)](){return!0}static get[u(191)](){return!0}constructor(t){const e=u;super(t),this[e(196)]=new l(this[e(209)][e(190)],{elementName:e(175),getElementKey:()=>e(167)}),this[e(237)]=new l(this[e(209)][e(190)],{elementName:e(229),getElementKey:t=>t[e(214)](e(242))}),this[e(241)]=new l(this[e(209)][e(190)],{elementName:e(176),getElementKey:t=>t[e(214)](e(242))})}[u(224)](){const t=u,{editor:e}=this,{model:n,data:o}=e;n[t(185)][t(181)](e=>{const o=t,i=n[o(185)][o(243)][o(183)]();let s=!1;return this[o(147)](e,i)&&(s=!0),this[o(234)](e,i)&&(s=!0),this[o(223)](e,i)&&(s=!0),this[o(178)](e)&&(s=!0),this[o(144)](e)&&(s=!0),this[o(205)](e)&&(s=!0),s}),this[t(174)](n[t(185)],t(158),()=>{const e=t;n[e(227)]({isUndoable:!1},t=>{this[e(246)](t)})},{priority:t(159)}),this[t(174)](o,t(228),()=>{const e=t;this[e(202)]=[],this[e(196)][e(206)](),this[e(237)][e(206)](),this[e(241)][e(206)]()},{priority:t(189)})}[u(225)](){return this[u(188)]}[u(169)](t){const e=u;return this[e(202)][e(166)](e=>e.id===t)||null}[u(204)](){const t=u;return Array[t(195)](this[t(202)])}[u(247)](){return this[u(203)]}[u(146)](t){this[u(203)]=t}[u(207)](t,e=0){const n=u;let o=!1;for(let i=e;i<this[n(202)][n(154)];i++)this[n(198)](t,i)&&(o=!0);return o}[u(197)](t,e){const n=u,o=t[n(240)](n(175),{});return t[n(211)](o,e),this[n(188)]=o,o}[u(246)](t){const e=u;if(!this[e(202)][e(154)]||this[e(188)])return;const n=this[e(202)][0][e(152)][e(231)],o=this[e(197)](t,n);for(const n of this[e(202)])n[e(180)][e(150)]||t[e(216)](n[e(180)],o,e(184));this[e(207)](t)}[u(147)](t,e){const n=u;let o=!1;const{inserted:i,removed:s,moved:r}=this[n(196)][n(183)](e);if(r[n(154)]&&(this[n(188)]=r[0]),i[n(154)])if(i[n(154)]>1||this[n(188)]&&i[n(210)](t=>t!==this[n(188)])){const e=t[n(240)](n(175),{}),s=[];this[n(188)]&&s[n(221)](this[n(188)]),s[n(221)](...i),t[n(216)](e,s[0],n(149));for(const o of s)t[n(177)](t[n(222)](o),t[n(245)](e,n(184))),t[n(217)](o);this[n(188)]=e,this[n(207)](t),o=!0}else this[n(188)]=i[0];if(s[n(154)]&&n(220)===this[n(188)]?.[n(231)][n(212)]){for(const e of this[n(202)])t[n(217)](e[n(152)]),o=!0;this[n(202)]=[],this[n(188)]=null}return o}[u(234)](t,e){const n=u;let o=!1;const i=this[n(209)][n(187)][n(153)](n(162)),{inserted:s,moved:r}=this[n(241)][n(183)](e);for(const e of[...r,...s]){const s=e[n(214)](n(242)),r=this[n(169)](s);r&&(r[n(180)]=e),h(t,i,e)&&(o=!0)}return o}[u(223)](t,e){const n=u;let o=!1;const{removed:i,inserted:s,moved:r}=this[n(237)][n(183)](e);for(const e of i)this[n(239)](t,e)&&(o=!0);for(const e of s)this[n(168)](t,e)&&(o=!0);for(const e of r)this[n(238)](t,e)&&(o=!0);return o}[u(144)](t){const e=u;if(!this[e(188)])return!1;let n=!1;if(this[e(188)][e(148)]!==this[e(202)][e(154)]){const o=[];for(const t of this[e(188)][e(171)]()){const i=t[e(214)](e(242));this[e(169)](i)||(o[e(218)](t),n=!0)}for(const n of o)t[e(217)](n)}const o=new Set,i=[];for(const t of this[e(188)][e(171)]()){const s=t[e(214)](e(242));o[e(164)](s)?(i[e(218)](t),n=!0):o[e(219)](s)}for(const n of i)t[e(217)](n);return this[e(188)][e(148)]||(t[e(217)](this[e(188)]),this[e(188)]=null,n=!0),n}[u(168)](t,e){const n=u;if(this[n(202)][n(166)](t=>t[n(152)]===e))return!1;let o=!1;const i=e[n(214)](n(242)),s=this[n(202)][n(151)](t=>t.id===i);-1!==s&&(t[n(217)](this[n(202)][s][n(152)]),this[n(202)][n(145)](s,1),o=!0);let r=this[n(188)]?function(t,e){const o=n;for(const n of t[o(171)]())if(n[o(214)](o(242))===e)return n;return null}(this[n(188)],i):null;r||(r=t[n(240)](n(176),{footnoteId:i}),this[n(188)]&&(t[n(216)](r,this[n(188)],n(184)),o=!0));const a={id:i,reference:e,definition:r},c=m(this[n(209)][n(190)],this[n(202)],e);this[n(202)][n(145)](c,0,a);let l=c;return-1!==s&&(l=Math[n(194)](c,s)),this[n(207)](t,l)&&(o=!0),o}[u(239)](t,e){const n=u,o=this[n(202)][n(151)](t=>t.id===e);if(-1===o)return!1;let i=!1;const s=this[n(202)][o];return n(220)!==s[n(180)][n(231)][n(212)]&&(t[n(217)](s[n(180)]),i=!0),this[n(202)][n(145)](o,1),this[n(207)](t,o)&&(i=!0),i}[u(238)](t,e){const n=u,o=e[n(214)](n(242)),i=this[n(202)][n(151)](t=>t.id===o),s=this[n(202)][i];let r=!1;s[n(152)]=e,this[n(202)][n(145)](i,1);const a=m(this[n(209)][n(190)],this[n(202)],e);return this[n(202)][n(145)](a,0,s),this[n(207)](t,Math[n(194)](i,a))&&(r=!0),r}[u(198)](t,e){const n=u;if(!this[n(188)])return!1;const o=this[n(202)][e];let i;return i=this[n(203)]?this[n(203)]({footnote:o,container:this[n(188)],digits:String(this[n(202)][n(154)])[n(154)],value:e+1}):String(e+1),o[n(152)][n(214)](n(232))!=i&&(t[n(170)](n(232),i,o[n(152)]),!0)}[u(205)](t){const e=u;if(!this[e(188)]||this[e(202)][e(154)]<2)return!1;if(function(t,n){const o=e;if(t[o(154)]!==n[o(154)])return!1;for(let e=0;e<t[o(154)];e++)if(t[e]!==n[e])return!1;return!0}(this[e(202)][e(160)](t=>t.id),Array[e(195)](this[e(188)][e(171)]())[e(160)](t=>t[e(214)](e(242)))))return!1;let n=!1;for(let o=0;o<this[e(202)][e(154)];o++){const i=this[e(202)][o],s=t[e(235)](i[e(180)]),r=t[e(245)](this[e(188)],o);s[e(165)](r)||(t[e(177)](t[e(233)](i[e(180)]),r),n=!0)}return n}[u(178)](t){const e=u;if(!this[e(202)][e(154)])return!1;const{model:n}=this[e(209)];let o=!1;for(let i=0;i<this[e(202)][e(154)]-1;i++){const s=this[e(202)][i],r=this[e(202)][i+1],a=n[e(235)](s[e(152)]),c=n[e(235)](r[e(152)]);e(226)===a[e(179)](c)&&(this[e(238)](t,s[e(152)]),i=-1,o=!0)}return o}}function d(t,e){const n=p();return(d=function(t,e){return n[t-=144]})(t,e)}function p(){const t=["createPositionBefore","33240tSMOMG","_footnoteRefsTracker","_handleMovedFootnoteReference","_handleRemoveFootnoteReferenceById","createElement","_footnoteDefsTracker","footnoteId","differ","353315jHoZAg","createPositionAt","_ensureFootnotesDefinitionsContainerExists","getFootnotesFormatter","_handleFootnotesDefinitionsObjectSync","splice","setFootnoteFormatter","_handleFootnotesDefinitionsObjectChanges","childCount","before","parent","findIndex","reference","get","length","214NiugWL","10BOeymQ","1722655OliCjf","change:data","low","map","isOfficialPlugin","footnotes.multiBlock","59808thasXU","has","isEqual","find","singleton","_handleInsertedFootnoteReference","getFootnote","setAttribute","getChildren","paragraph","8rbBgCB","listenTo","footnotesDefinitions","footnoteDefinition","move","_ensureFootnotesReferencesHaveProperOrder","compareWith","definition","registerPostFixer","10239rWWfYd","getChanges","end","document","27wlWhUE","config","_footnotesDefinitions","high","model","isPremiumPlugin","198461kkPUGk","126904aJwWne","min","from","_footnoteDefsContainerTracker","_insertEmptyFootnotesDefinitionsContainer","_updateFootnoteRefCounter","footnoteInlineContent","42lYYmRF","pluginName","_footnotes","_footnoteFormatter","getFootnotes","_sortFootnoteDefinitions","reset","_updateFootnotesCounters","getRootNames","editor","some","append","rootName","FootnotesTracker","getAttribute","1508xuCHey","insert","remove","unshift","add","$graveyard","push","createRangeIn","_handleFootnoteReferencesChanges","init","getFootnotesDefinitionsObjectElement","after","enqueueChange","set","footnoteRef","indexOf","root","footnoteCounter","createRangeOn","_handleFootnoteDefinitionsChanges"];return(p=function(){return t})()}function h(t,e,n){const o=u;if(n[o(148)])return!1;const i=o(e?172:199);return t[o(216)](t[o(240)](i),n),!0}function m(t,e,n){const o=u;if(0===e[o(154)])return 0;const i=t[o(235)](n);for(let n=0;n<e[o(154)];n++){const s=e[n],r=t[o(235)](s[o(152)]);if(o(149)===i[o(179)](r))return n}const s=n[o(231)];let r=-1;for(let t=e[o(154)]-1;t>=0;t--)if(e[t][o(152)][o(231)]===s){r=t;break}if(-1!==r)return r+1;const a=t[o(185)][o(208)](),c=a[o(230)](s[o(212)]),l=a[c+1];if(l)for(let t=0;t<e[o(154)];t++)if(e[t][o(152)][o(231)][o(212)]===l)return t;return e[o(154)]}const g=y;function w(){const t=["model","length","293652Nmeenp","get","insert-footnote-command-executed-with-invalid-id","string","editor","document","7lfhyzL","_getPositionToInsertFootnote","isObject","execute","getFirstRange","getItems","selection","checkChild","end","19920wPfupR","isEnabled","_moveSelectionToFootnoteDefinition","1134ymvITt","1106700YGUslL","75376lKtZrR","plugins","test","refresh","12KhhpbN","change","59397sUDaiC","FootnotesEditing","1882952wauUit","footnoteId","footnoteRef","isBlock","insertObject","76438JgQjLA","createElement"];return(w=function(){return t})()}function y(t,e){const n=w();return(y=function(t,e){return n[t-=356]})(t,e)}!function(t){const e=y,n=t();for(;;)try{if(126821===parseInt(e(364))/1+-parseInt(e(392))/2*(parseInt(e(357))/3)+-parseInt(e(388))/4+parseInt(e(387))/5+-parseInt(e(368))/6+-parseInt(e(374))/7*(parseInt(e(359))/8)+parseInt(e(386))/9*(parseInt(e(383))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(w);class b extends t.Command{[g(391)](){const t=g,e=this[t(372)][t(366)][t(373)][t(380)],n=this[t(375)](e);this[t(384)]=!!n}[g(377)](t){const e=g,{editor:n}=this,{model:o}=n,{selection:s}=o[e(373)],r=this[e(375)](s);if(!r)return;const a=n[e(389)][e(369)](e(358)),c=t?.[e(360)]??(0,i.uid)();!function(t){const n=e;return n(371)==typeof t&&t[n(367)]>0&&!/\s/[n(390)](t)&&!/^\d/[n(390)](t)}(c)?(0,i.logWarning)(e(370)):(o[e(356)](t=>{const n=e,i=t[n(365)](n(361),{footnoteId:c});o[n(363)](i,r,null)}),a[e(385)](c))}[g(375)](t){const e=g,{model:n}=this[e(372)],{schema:o}=n,i=t[e(378)]();for(const t of i[e(379)]())if(o[e(362)](t)||o[e(376)](t))return null;const s=i[e(382)];return o[e(381)](s,e(361))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}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]),n=window[m([68,97,116,101])][m([110,111,119])](),o=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{o[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=o[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;o[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(n,o)=>{o[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(),n[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 n(t){for(let n=0;n<t[m([108,101,110,103,116,104])];n++){const o=t[m([99,104,97,114,67,111,100,101,65,116])](n);e=(e<<5)+e+o,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,o])=>{n(e),t(o)}):n(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 n=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 n=m([117]);for(let o=0;o<t[m([108,101,110,103,116,104])];o+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](o,o+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),n+=e[i]}return n}();o[n]=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,o[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,o[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,o[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&&n()?e:null;function n(){const t=e[m([106,116,105])],n=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),o={...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 o[m([118,99])],f(o)==n}}}(),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(),o[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(o){a(o)[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(n-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)),o=p(d(window[m([77,97,116,104])][m([99,101,105,108])](n/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,o)}function r(){const e=m([108,108,99,116,45])+d(f(t)),n=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return n?window[m([112,97,114,115,101,73,110,116])](p(n),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,n)=>{t[m([116,104,101,110])](e,n),window[m([115,101,116,84,105,109,101,111,117,116])](n,12e4)})}}o[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,n)=>{if(n[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));n[1]={...n[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])}),o[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 o[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(){o[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 o=a[m([115,112,108,105,116])](m([46])),[i,s,r]=o;return e(i),await n(i,s,r),t}catch{return!1}function e(e){const n=l(e);n&&n[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function n(e,n,o){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(o),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])+n),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])])?n/1e3:1761955200;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:n}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](n))return!0;const o=n[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])]<=o[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(o[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=>o[m([101,118,101,114,121])]((e,n)=>t[n]===e||t[n]===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,n)=>{e[m([116,104,101,110])](t,n),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},n)}):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:n,model:o}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),n.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:n,model:o}=this.editor,i=e.get(f).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(i.reference,"on")}),n.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:n,editing:o}=t,{t:i}=t.locale;n.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:n})=>{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;n.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of o.view.createRangeIn(i))t.is("$textProxy")?n.consume(t.textNode,{name:!0}):t.is("element")&&n.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),n.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),n.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:n})=>{const o=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,n),n,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",o)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:n}=t.locale,{conversion:o}=t;o.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),o.for("upcast").add(t=>{t.on("element:ol",(t,e,n)=>{const o=e.viewItem;if(!o.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!n.consumable.consume(o,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=n.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,n)=>{const o=e.viewItem;o.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&n.consumable.consume(o,{name:!0,classes:"footnotes-divider"})})}),o.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),o.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:o})=>{const i=x(o,{"data-footnotes-list-label":n("Footnotes")}),s=(0,e.toWidget)(i,o,{hasSelectionHandle:!0,label:n("Footnotes")});return o.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:n}=t,o=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,n)=>{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(!n.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=n.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!n.safeInsert(r,e.modelCursor))return;n.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")&&(n.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),n.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(o)n.convertChildren(a,r);else{const t=n.writer.createElement("footnoteInlineContent");n.writer.insert(t,r),n.convertChildren(a,t)}n.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const n=t.document.differ,o=new Set;for(const t of n.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&o.add(e)}for(const t of o.values()){const n=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of n)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const n=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:n,t:o}=t,i=t.model.document.selection;t.keystrokes.set("CTRL+Shift+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert footnote"),keystroke:"Ctrl+Shift+D"}]}),this.listenTo(n.view.document,"enter",(t,e)=>{const n=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(n){const o=n.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(o),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 n=!1;this.listenTo(e.view.document,"pointerdown",(t,o)=>{const{target:i}=o,s=e.view.document.selection;n=!!(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:o}=e;if(!o.is("element","a"))return;if(o.parent?.is("element","sup")&&o.parent.hasClass("footnote")&&!n)return void e.preventDefault();let i=o.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:n})=>{if(!k(e))return null;if(!t)return n.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const o=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}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 n=e.toViewElement(t);return!!n&&k(t)!==n.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const n=t.createEmptyElement("hr",{class:"footnotes-divider"}),o=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[n,o])}function E(t,e){const n=t.getAttribute("footnoteId"),o=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+n},function(t){const e=this.toDomElement(t);return e.textContent=o,e}),s=e.createContainerElement("sup",{id:"ref-"+n,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,n,o,{dataPipeline:i}={}){const{t:s}=o,r=t.getAttribute("footnoteId"),a=n.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?n.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(n.createEditableElement("div",{class:"footnote-content"}),n,{label:s("Footnote content.")});return n.insert(n.createPositionAt(c,0),n.createSlot()),n.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=n(331);function L(){const t=["footnoteRef","change","application/ckeditor5-footnotes","init","250YPraqM","add","pluginName","toModel","dataTransfer","definition","getFootnote","create","setAttribute","_insertEmptyFootnotesDefinitionsContainer","method","_defineClipboardIntegration","selection","reduce","push","getFootnotesDefinitionsObjectElement","177133RbLFBy","toView","insert","entries","541509IeKKyu","drop","1788708GElHLs","getData","find","content","setData","append","7QXIGJe","isOfficialPlugin","footnoteDefinition","sourceEditorId","from","createElement","isPremiumPlugin","footnoteId","18ZFpxkE","getAttribute","toData","2lzvIsp","htmlProcessor","footnotesDefinitions","outputTransformation","root","createRangeIn","length","getFootnotes","get","parse","stringify","element","clipboardInput","remove","document","_handleCopyFootnotesDefinitions","editing","data","editor","end","3180528pKhVDC","contentInsertion","getFirstRange","FootnotesClipboard","5sGLTqu","1308780MmnkBY","1135388vvRbay","requires","_handlePasteFootnotesDefinitions","listenTo","17490648GMgCou"];return(L=function(){return t})()}const _=A;function A(t,e){const n=L();return(A=function(t,e){return n[t-=352]})(t,e)}!function(t){const e=A,n=t();for(;;)try{if(707097===parseInt(e(395))/1*(parseInt(e(414))/2)+-parseInt(e(397))/3+-parseInt(e(366))/4*(-parseInt(e(364))/5)+-parseInt(e(365))/6*(-parseInt(e(403))/7)+parseInt(e(360))/8*(-parseInt(e(411))/9)+-parseInt(e(375))/10*(parseInt(e(391))/11)+parseInt(e(370))/12)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(L);class D extends t.Plugin{static get[_(377)](){return _(363)}static get[_(367)](){return[v,S.ClipboardPipeline]}static get[_(404)](){return!0}static get[_(409)](){return!0}[_(374)](){this[_(386)]()}[_(386)](){const t=_;this[t(355)](),this[t(368)]()}[_(355)](){const t=_,{editor:e}=this,{plugins:n,model:o}=e,i=n[t(422)](S.ClipboardPipeline),s=n[t(422)](f);this[t(369)](i,t(417),(n,i)=>{const r=t,a=function(t,e){const n=A,o=new Set;for(const{item:i}of t[n(419)](e))i.is(n(425),n(371))&&o[n(376)](i[n(412)](n(410)));return Array[n(407)](o)}(o,i[r(400)]);if(!a[r(420)])return;const c=s[r(421)](),l=a[r(388)]((t,n)=>{const o=r,i=c[o(399)](t=>t.id===n);if(i){const n=e[o(357)][o(392)](i[o(380)],{isClipboardPipeline:!0}),s=e[o(357)][o(415)][o(413)](n);t[i.id]=s}return t},Object[r(382)](null));i[r(379)][r(401)](r(373),JSON[r(424)](l))})}[_(368)](){const t=_,{editor:e}=this,{model:n,plugins:o}=e,{view:s}=e[t(356)],r=o[t(422)](S.ClipboardPipeline),a=o[t(422)](f);let c=null;this[t(369)](s[t(354)],t(352),(e,n)=>{const o=t,i=n[o(379)][o(398)](o(373));c=i?JSON[o(423)](i):null}),this[t(369)](r,t(361),(o,s)=>{const r=t;if(!c)return;const l=s[r(406)]===this[r(358)].id;l&&r(396)===s[r(385)]||n[r(372)](t=>{const o=r;!function(t,e){const n=A,o=[];for(const{item:i}of t[n(419)](e))i.is(n(425),n(416))&&o[n(389)](i);for(const e of o)t[n(353)](e)}(t,s[o(400)]);let u=a[o(390)]();if(!u){const e=n[o(354)][o(387)][o(362)]()[o(418)];u=a[o(384)](t,e)}const f=function(t,e,n){const s=o,r=Object[s(382)](null);for(const{item:o}of t[s(419)](e))if(o.is(s(425),s(371))){const e=o[s(412)](s(410));if(!n(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(383)](s(410),r[e],o)}return r}(t,s[o(400)],t=>!l||null!==a[o(381)](t));for(const[n,i]of Object[o(394)](c)){const s=f[n]||n,r=t[o(408)](o(405),{footnoteId:s}),a=e[o(357)][o(415)][o(392)](i),c=e[o(357)][o(378)](a,r);t[o(402)](c,r),t[o(393)](r,u,o(359))}c=null})})}}var T=n(311),V=n(355),O=n(450),N=n.n(O),R=n(774),K=n.n(R),M=n(265),j=n.n(M),B=n(410),W=n.n(B),H=n(238),U=n.n(H),z=n(14),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=j().bind(null,"head"),G.domAPI=K(),G.insertStyleElement=U();N()(z.A,G);z.A&&z.A.locals&&z.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,T.ButtonView)),e.add("menuBar:insertFootnote",J(t,T.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const n=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in n){const o=e,i=n[o];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete n[o],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&n._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&n._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&n._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&n._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&n._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&n._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&n._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function J(t,e){const n=t.commands.get("insertFootnote");return o=>{const{t:i}=o,s=new e(o),r=s instanceof T.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(n,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{n.execute(),t.editing.view.focus()}),s}}function X(){var t=["66100980Bzjsap","194IWhyjQ","1240670fvjPmo","15178FXocBZ","isOfficialPlugin","pluginName","isPremiumPlugin","8qrgUMO","16596738WZYvGZ","16FTgFDa","2179608ektjCy","1335900EfBXfL","4795098ypJpqB","Footnotes","requires"];return(X=function(){return t})()}var Y=Q;function Q(t,e){var n=X();return(Q=function(t,e){return n[t-=384]})(t,e)}!function(t){for(var e=Q,n=t();;)try{if(923568===parseInt(e(394))/1*(-parseInt(e(396))/2)+-parseInt(e(388))/3+parseInt(e(385))/4*(-parseInt(e(395))/5)+parseInt(e(389))/6+parseInt(e(390))/7*(-parseInt(e(387))/8)+-parseInt(e(386))/9+parseInt(e(393))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(X);class Z extends t.Plugin{static get[Y(398)](){return Y(391)}static get[Y(392)](){return[v,D,q]}static get[Y(397)](){return!0}static get[Y(384)](){return!0}}const $=tt;function tt(t,e){const n=nt();return(tt=function(t,e){return n[t-=312]})(t,e)}!function(t){const e=tt,n=t();for(;;)try{if(905200===parseInt(e(314))/1*(-parseInt(e(316))/2)+-parseInt(e(320))/3*(-parseInt(e(327))/4)+parseInt(e(313))/5+-parseInt(e(326))/6*(-parseInt(e(328))/7)+parseInt(e(323))/8+-parseInt(e(329))/9+-parseInt(e(312))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(nt);const et=[$(324),$(322),$(317),$(315),$(325),$(321),$(319),$(318)];function nt(){const t=["47812900OSYHGh","8963865JGRJoK","1BBfiMu","upper-latin","563924JfNyNl","lower-latin","upper-roman","lower-roman","123NhNyOa","upper-alpha","decimal-leading-zero","12208232ONvRnW","decimal","lower-alpha","3972AXRhae","122756fzBFJK","14777kACtLJ","54729jQRLuX"];return(nt=function(){return t})()}function ot(t,e){const n=rt();return(ot=function(t,e){return n[t-=103]})(t,e)}const it=ot;!function(t){const e=ot,n=t();for(;;)try{if(338038===-parseInt(e(112))/1*(-parseInt(e(120))/2)+parseInt(e(124))/3*(parseInt(e(116))/4)+parseInt(e(117))/5+-parseInt(e(108))/6*(parseInt(e(110))/7)+parseInt(e(107))/8*(parseInt(e(104))/9)+parseInt(e(127))/10*(parseInt(e(114))/11)+parseInt(e(113))/12*(-parseInt(e(111))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(rt);class st extends t.Command{[it(115)](){const t=it,{editor:e}=this,n=e[t(128)][t(103)](f)[t(119)]();this[t(129)]=!!n,this[t(106)]=n?.[t(121)](t(109))??null}[it(125)]({value:t}){const e=it,{editor:n}=this,o=n[e(128)][e(103)](f),i=o[e(119)]();i&&et[e(105)](t)&&n[e(126)][e(123)](n=>{const s=e;n[s(118)](s(109),t,i),o[s(122)](n)})}}function rt(){const t=["setAttribute","getFootnotesDefinitionsObjectElement","1762zrTWxb","getAttribute","_updateFootnotesCounters","change","3LrysiA","execute","model","80AIJCtp","plugins","isEnabled","get","9inFGLB","includes","value","2101352hxKkGk","48666gRhubM","footnotesListStyle","483uwWDhL","5306717mAxXLU","181zCtGpq","24ZyOvLy","547492jwxlDq","refresh","2286784sHXgvZ","1610565kCVGdu"];return(rt=function(){return t})()}const at=lt;function ct(){const t=["997232OPIQwJ","model","refresh","value","execute","isInteger","setAttribute","9123kVUDjB","8370187QDuCGI","plugins","2733564dpFPxh","change","getFootnotesDefinitionsObjectElement","2186822ezPzYG","isEnabled","_updateFootnotesCounters","30FeiMzu","6sCtjil","getAttribute","footnotesListStart","20856LOPMIP","25UgJMMC","190068imFpwz","576dskTHt","get"];return(ct=function(){return t})()}function lt(t,e){const n=ct();return(lt=function(t,e){return n[t-=100]})(t,e)}!function(t){const e=lt,n=t();for(;;)try{if(748855===parseInt(e(111))/1+parseInt(e(104))/2+parseInt(e(114))/3+parseInt(e(101))/4*(-parseInt(e(100))/5)+-parseInt(e(121))/6*(parseInt(e(112))/7)+-parseInt(e(124))/8*(-parseInt(e(102))/9)+-parseInt(e(120))/10*(-parseInt(e(117))/11))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ct);class ut extends t.Command{[at(106)](){const t=at,{editor:e}=this,n=e[t(113)][t(103)](f)[t(116)]();this[t(118)]=!!n,this[t(107)]=n?.[t(122)](t(123))??null}[at(108)]({value:t}){const e=at,{editor:n}=this,o=n[e(113)][e(103)](f),i=o[e(116)]();i&&Number[e(109)](t)&&n[e(105)][e(115)](n=>{const s=e;n[s(110)](s(123),t,i),o[s(119)](n)})}}function ft(t,e){const n=yt();return(ft=function(t,e){return n[t-=107]})(t,e)}const dt=ft;!function(t){const e=ft,n=t();for(;;)try{if(988352===parseInt(e(130))/1*(-parseInt(e(207))/2)+parseInt(e(182))/3+-parseInt(e(189))/4+parseInt(e(194))/5*(-parseInt(e(164))/6)+parseInt(e(204))/7+parseInt(e(153))/8*(parseInt(e(198))/9)+parseInt(e(183))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(yt);class pt extends t.Plugin{static get[dt(126)](){return dt(150)}static get[dt(172)](){return[v,f]}static get[dt(166)](){return!0}static get[dt(114)](){return!0}[dt(157)](){const t=dt,{editor:e}=this;e[t(169)][t(127)](t(196),t(136)),e[t(169)][t(127)](t(132),1),e[t(167)][t(181)](t(191),new st(e)),e[t(167)][t(181)](t(162),new ut(e)),this[t(158)](),this[t(145)](),this[t(177)](),this[t(175)]()}[dt(158)](){const t=dt,{editor:e}=this,{schema:n}=e[t(174)];n[t(193)](t(188),{allowAttributes:[t(197),t(165)]})}[dt(145)](){const t=dt,{editor:e}=this,{conversion:n,model:o}=e,{schema:i}=o;n[t(163)](t(179))[t(181)](e=>{const n=t;e.on(n(141),(t,e,o)=>{const s=n,r=e[s(187)],a=e[s(168)]?.[s(178)];r[s(116)](s(121))&&a?.is(s(195),s(188))&&(function(t,e,n,o){const i=s;if(!o[i(115)](e,i(165)))return;let r=1;const a=n[i(122)][i(152)](t,{attributes:i(201)});if(a){const e=Number[i(111)](t[i(200)](i(201)),10);Number[i(203)](e)||(r=e)}!a&&e[i(147)](i(165))||n[i(112)][i(173)](i(165),r,e)}(r,a,o,i),function(t,e,n,o){const i=s;if(!o[i(115)](e,i(197)))return;let r=i(136),a=!1;if(n[i(122)][i(152)](t,{attributes:i(113)})){const e={1:i(136),a:i(154),A:i(160),i:i(176),I:i(148)}[t[i(200)](i(113))];e&&(r=e),a=!0}n[i(122)][i(152)](t,{styles:i(119)})&&(r=t[i(159)](i(119)),a=!0),!a&&e[i(147)](i(197))||n[i(112)][i(173)](i(197),r,e)}(r,a,o,i))})}),n[t(163)](t(144))[t(181)](e=>{const n=t;e.on(n(133),(t,e,o)=>{const i=n;if(!o[i(122)][i(152)](e[i(124)],t[i(120)]))return;const s=ht(e[i(124)],o[i(170)]),{attributeNewValue:r}=e;null==r||1===r?o[i(112)][i(131)](i(201),s):o[i(112)][i(173)](i(201),String(r),s)}),e.on(n(206),(t,e,o)=>{const i=n;if(!o[i(122)][i(152)](e[i(124)],t[i(120)]))return;const s=ht(e[i(124)],o[i(170)]),{attributeNewValue:r}=e;r&&i(136)!==r?o[i(112)][i(143)](i(119),r,s):o[i(112)][i(125)](i(119),s)})})}[dt(175)](){const t=dt,{editor:e}=this,{model:n}=e,o=e[t(134)][t(156)](f),i=this[t(140)](),s=this[t(139)]();n[t(184)][t(205)](e=>{const r=t,a=n[r(184)][r(107)][r(129)]();let c=!1;for(const t of a){if(r(151)!==t[r(113)]||r(146)===t[r(120)])continue;const o=n[r(180)](t[r(155)][r(142)]);for(const t of o[r(128)]())t.is(r(195),r(188))&&(!t[r(147)](r(165))&&n[r(138)][r(115)](t,r(165))&&(e[r(173)](r(165),s,t),c=!0),!t[r(147)](r(197))&&n[r(138)][r(115)](t,r(197))&&(e[r(173)](r(197),i,t),c=!0))}return c&&o[r(161)](e),c})}[dt(177)](){const t=dt,{editor:e}=this;e[t(134)][t(156)](f)[t(118)](e=>this[t(199)](e))}[dt(140)](){const t=dt;return this[t(108)][t(169)][t(156)](t(196))}[dt(139)](){const t=dt;return this[t(108)][t(169)][t(156)](t(132))}[dt(199)]({container:t,value:e,digits:n}){const o=dt,i=t[o(200)](o(197)),s=t[o(200)](o(165)),r=Math[o(117)](e)+(s??1)-1;switch(i){case o(110):return function(t,e){const n=o;return String(t)[n(137)](e,"0")}(r,Math[o(186)](2,n));case o(154):case o(109):return mt(r,!1);case o(160):case o(192):return mt(r,!0);case o(176):return wt(r,!1);case o(148):return wt(r,!0);default:return String(r)}}}function ht(t,e){const n=dt,o=e[n(135)](t);return Array[n(149)](o[n(190)]())[n(202)](t=>t.is(n(195),"ol")&&t[n(116)](n(121)))}function mt(t,e){const n=dt;let o="",i=t;for(;i>0;){const t=(i-1)%26;o=String[n(185)](97+t)+o,i=Math[n(117)]((i-1)/26)}return e?o[n(171)]():o}const gt=[{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 wt(t,e){const n=dt;let o="",i=t;for(const{value:t,numeral:e}of gt)for(;i>=t;)o+=e,i-=t;return e?o:o[n(123)]()}function yt(){const t=["_updateFootnotesCounters","footnotesStart","for","2966982eGorjt","footnotesListStart","isOfficialPlugin","commands","modelCursor","config","mapper","toUpperCase","requires","setAttribute","model","_definePostfixer","lower-roman","_defineFormatter","parent","upcast","createRangeOn","add","1101243qMLkOc","9845080NXcPgd","document","fromCharCode","max","viewItem","footnotesDefinitions","249632kSJIct","getChildren","footnotesStyle","upper-latin","extend","10quEYBW","element","footnotes.footnotesProperties.defaultListStyle","footnotesListStyle","9UaYfGM","_formatFootnoteListValue","getAttribute","start","find","isNaN","7643706yAeQSo","registerPostFixer","attribute:footnotesListStyle:footnotesDefinitions","3234vmpvoH","differ","editor","lower-latin","decimal-leading-zero","parseInt","writer","type","isPremiumPlugin","checkAttribute","hasClass","floor","setFootnoteFormatter","list-style-type","name","footnotes-list","consumable","toLowerCase","item","removeStyle","pluginName","define","getItems","getChanges","917ErqQcF","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","plugins","toViewElement","decimal","padStart","schema","_getDefaultStartIndex","_getDefaultListStyle","element:ol","nodeAfter","setStyle","downcast","_defineConverters","$text","hasAttribute","upper-roman","from","FootnotesPropertiesEditing","insert","consume","8631968GLikEL","lower-alpha","position","get","init","_defineSchema","getStyle","upper-alpha"];return(yt=function(){return t})()}class bt extends T.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new T.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:n}){super(t),this.focusCycler=new T.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,n),[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,T.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 n=new T.View(this.locale);return n.children=n.createCollection(),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n.focus=function(){for(const t of this.children)if(t instanceof T.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},n.focusTracker=new i.FocusTracker,n.keystrokes=new i.KeystrokeHandler,n.render(),n.keystrokes.listenTo(n.element),this.children.add(n),n}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),n=[e],o=new T.CollapsibleView(this.locale,n);return o.set({label:t("Footnotes properties"),isCollapsed:!0}),o.buttonView.bind("isEnabled").toMany(n,"isEnabled",(...t)=>t.some(t=>t)),o.buttonView.on("change:isEnabled",(t,e,n)=>{n||(o.isCollapsed=!0)}),this.children.add(o),[e,o]}_createStartIndexPropertyView(){const{t}=this.locale,e=new T.LabeledFieldView(this.locale,T.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 n=e.fieldView.element,o=n.valueAsNumber;Number.isNaN(o)?e.errorText=t("Invalid footnotes start index value."):n.checkValidity()?this.fire("footnotesListStart",{startIndex:o}):e.errorText=t(o<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=n(945),It={attributes:{"data-cke":!0}};It.setAttributes=W(),It.insert=j().bind(null,"head"),It.domAPI=K(),It.insertStyleElement=U();N()(vt.A,It);vt.A&&vt.A.locals&&vt.A.locals;class kt extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[T.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var n;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(n=t,t=>{const{t:e}=t,o=n.commands.get("footnotesStyle"),i=(0,T.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(o,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:n}=t.locale,o=n("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:n,icon:o,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new T.ButtonView(e);return a.set({label:n,icon:o,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 bt(t.locale,{styleGridAriaLabel:o,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,n)=>{t.execute("footnotesStart",{value:n.startIndex})}),s}({editor:n,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:n}=t.locale,o=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=T.BalloonPanelView;o.register("footnotesDefinitions",{ariaLabel:n("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 Ct=xt;function Ft(){var t=["11382160fQJjVk","1576280ATzsgW","85qcJZAZ","5062748efImma","3HaOTsO","9987502QqLyPD","pluginName","FootnotesProperties","isOfficialPlugin","requires","1152FFwlji","98244eokYBy","isPremiumPlugin","80176JVSBXk","23162ROramW"];return(Ft=function(){return t})()}function xt(t,e){var n=Ft();return(xt=function(t,e){return n[t-=150]})(t,e)}!function(t){for(var e=xt,n=t();;)try{if(804385===parseInt(e(163))/1+parseInt(e(150))/2+-parseInt(e(153))/3*(-parseInt(e(152))/4)+parseInt(e(151))/5*(-parseInt(e(160))/6)+parseInt(e(154))/7+-parseInt(e(162))/8*(parseInt(e(159))/9)+-parseInt(e(164))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ft);class Et extends t.Plugin{static get[Ct(155)](){return Ct(156)}static get[Ct(158)](){return[pt,kt]}static get[Ct(157)](){return!0}static get[Ct(161)](){return!0}}function Pt(){var t=["390590uJMbHN","1143498VWcrDb","817267yTspHo","6767109uTILeX","7voykNY","2976135EkSEQk","4763364TwTtlW","10678200wHHoaB","108QXYgXR"];return(Pt=function(){return t})()}function St(t,e){var n=Pt();return(St=function(t,e){return n[t-=365]})(t,e)}!function(t){for(var e=St,n=t();;)try{if(869972===parseInt(e(372))/1+-parseInt(e(371))/2+parseInt(e(366))/3+-parseInt(e(367))/4+-parseInt(e(370))/5*(-parseInt(e(369))/6)+parseInt(e(365))/7*(-parseInt(e(368))/8)+parseInt(e(373))/9)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=o})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xd3a18c,Command as _0x48caf5}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x13c244,isWidget as _0x51e66b,toWidgetEditable as _0x35b21c,WidgetToolbarRepository as _0x517ff2}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x33024d,logWarning as _0x5baafc,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x28117e,ClickObserver as _0x4a3d73}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1a3aaf}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1b0814,ButtonView as _0x597e22,View as _0x1a2eba,ViewCollection as _0x378fc1,FocusCycler as _0x2182f9,addKeyboardHandlingForGrid as _0xeae053,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x6532a0,BalloonPanelView as _0x52e9c6,createDropdown as _0x4c101c}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xdd0539,IconListStyleDecimal as _0x31521a,IconListStyleDecimalLeadingZero as _0xc406c1,IconListStyleLowerRoman as _0x345fa2,IconListStyleUpperRoman as _0x52964e,IconListStyleLowerLatin as _0x22de01,IconListStyleUpperLatin as _0x2f6702}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x37bbe0,_0x3dbbc3){this['_model']=_0x37bbe0,this['_elementName']=_0x3dbbc3['elementName'],this['_getElementKey']=_0x3dbbc3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1a5912){const _0x5b9b5b=new Set(),_0x2ebeb2=new Map();for(const _0x4b26b3 of _0x1a5912){if('insert'===_0x4b26b3['type']&&'$text'!==_0x4b26b3['name']&&_0x4b26b3['position']['nodeAfter']){const _0x23d4ed=this['_model']['createRangeOn'](_0x4b26b3['position']['nodeAfter']);for(const _0x4abd2c of _0x23d4ed['getItems']()){if(!_0x4abd2c['is']('element',this['_elementName']))continue;const _0x29902f=this['_getElementKey'](_0x4abd2c);_0x2ebeb2['has'](_0x29902f)||_0x2ebeb2['set'](_0x29902f,[]),_0x2ebeb2['get'](_0x29902f)['push'](_0x4abd2c);}}if('remove'===_0x4b26b3['type']&&_0x4b26b3['name']===this['_elementName']){const _0x5a57a7=this['_getElementKey']({'getAttribute':_0x3134f2=>_0x4b26b3['attributes']['get'](_0x3134f2)});_0x5b9b5b['add'](_0x5a57a7);}}for(const [_0x4593d0,_0x1cb9b4]of this['_trackedElements'])'$graveyard'===_0x1cb9b4['root']['rootName']&&_0x5b9b5b['add'](_0x4593d0);for(const _0x156036 of _0x5b9b5b)this['_trackedElements']['delete'](_0x156036);for(const [_0x362873,_0x1ba829]of _0x2ebeb2)this['_trackedElements']['set'](_0x362873,_0x1ba829[_0x1ba829['length']-0x1]);const _0x3fcfc9=new Set();for(const [_0x561b52,_0x4c55d7]of _0x2ebeb2)_0x5b9b5b['has'](_0x561b52)&&(_0x3fcfc9['add'](_0x4c55d7[0x0]),_0x4c55d7['length']>0x1?_0x2ebeb2['set'](_0x561b52,_0x4c55d7['slice'](0x1)):_0x2ebeb2['delete'](_0x561b52),_0x5b9b5b['delete'](_0x561b52));return{'removed':Array['from'](_0x5b9b5b),'inserted':Array['from'](_0x2ebeb2['values']())['flat'](),'moved':Array['from'](_0x3fcfc9)};}}class c extends _0xd3a18c{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x25e1c9){super(_0x25e1c9),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3931fc=>_0x3931fc['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x137b6b=>_0x137b6b['getAttribute']('footnoteId')});}['init'](){const {editor:_0x426e9a}=this,{model:_0x352610,data:_0x35a10c}=_0x426e9a;_0x352610['document']['registerPostFixer'](_0x536c06=>{const _0xafa9b1=_0x352610['document']['differ']['getChanges']();let _0x44f106=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x536c06,_0xafa9b1)&&(_0x44f106=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x536c06,_0xafa9b1)&&(_0x44f106=!0x0),this['_handleFootnoteReferencesChanges'](_0x536c06,_0xafa9b1)&&(_0x44f106=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x536c06)&&(_0x44f106=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x536c06)&&(_0x44f106=!0x0),this['_sortFootnoteDefinitions'](_0x536c06)&&(_0x44f106=!0x0),_0x44f106;}),this['listenTo'](_0x352610['document'],'change:data',()=>{_0x352610['enqueueChange']({'isUndoable':!0x1},_0x1e6442=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x1e6442);});},{'priority':'low'}),this['listenTo'](_0x35a10c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5c4a2c){return this['_footnotes']['find'](_0x241f10=>_0x241f10['id']===_0x5c4a2c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1640b6){this['_footnoteFormatter']=_0x1640b6;}['_updateFootnotesCounters'](_0x319e94,_0x26be47=0x0){let _0x4da897=!0x1;for(let _0x26417c=_0x26be47;_0x26417c<this['_footnotes']['length'];_0x26417c++)this['_updateFootnoteRefCounter'](_0x319e94,_0x26417c)&&(_0x4da897=!0x0);return _0x4da897;}['_insertEmptyFootnotesDefinitionsContainer'](_0x53f0a6,_0x1df0fa){const _0x27afcf=_0x53f0a6['createElement']('footnotesDefinitions',{});return _0x53f0a6['append'](_0x27afcf,_0x1df0fa),this['_footnotesDefinitions']=_0x27afcf,_0x27afcf;}['_ensureFootnotesDefinitionsContainerExists'](_0x1b0eac){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5f1e96=this['_footnotes'][0x0]['reference']['root'],_0x4b2bf2=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1b0eac,_0x5f1e96);for(const _0x462389 of this['_footnotes'])_0x462389['definition']['parent']||_0x1b0eac['insert'](_0x462389['definition'],_0x4b2bf2,'end');this['_updateFootnotesCounters'](_0x1b0eac);}['_handleFootnotesDefinitionsObjectChanges'](_0x1b21ea,_0x339406){let _0x5c65e9=!0x1;const {inserted:_0x2ed69b,removed:_0xc853e1,moved:_0x585ab9}=this['_footnoteDefsContainerTracker']['getChanges'](_0x339406);if(_0x585ab9['length']&&(this['_footnotesDefinitions']=_0x585ab9[0x0]),_0x2ed69b['length']){if(_0x2ed69b['length']>0x1||this['_footnotesDefinitions']&&_0x2ed69b['some'](_0xe10d36=>_0xe10d36!==this['_footnotesDefinitions'])){const _0x4f0907=_0x1b21ea['createElement']('footnotesDefinitions',{}),_0x1b2208=[];this['_footnotesDefinitions']&&_0x1b2208['push'](this['_footnotesDefinitions']),_0x1b2208['push'](..._0x2ed69b),_0x1b21ea['insert'](_0x4f0907,_0x1b2208[0x0],'before');for(const _0x152d2d of _0x1b2208)_0x1b21ea['move'](_0x1b21ea['createRangeIn'](_0x152d2d),_0x1b21ea['createPositionAt'](_0x4f0907,'end')),_0x1b21ea['remove'](_0x152d2d);this['_footnotesDefinitions']=_0x4f0907,this['_updateFootnotesCounters'](_0x1b21ea),_0x5c65e9=!0x0;}else this['_footnotesDefinitions']=_0x2ed69b[0x0];}if(_0xc853e1['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x59495c of this['_footnotes'])_0x1b21ea['remove'](_0x59495c['reference']),_0x5c65e9=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5c65e9;}['_handleFootnoteDefinitionsChanges'](_0x45b632,_0x58a003){let _0x42716e=!0x1;const _0x5d9e2f=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x20cdbf,moved:_0x3c672b}=this['_footnoteDefsTracker']['getChanges'](_0x58a003);for(const _0x5837a0 of[..._0x3c672b,..._0x20cdbf]){const _0x433272=_0x5837a0['getAttribute']('footnoteId'),_0x5ddf53=this['getFootnote'](_0x433272);_0x5ddf53&&(_0x5ddf53['definition']=_0x5837a0),_(_0x45b632,_0x5d9e2f,_0x5837a0)&&(_0x42716e=!0x0);}return _0x42716e;}['_handleFootnoteReferencesChanges'](_0x2a17bd,_0x3d03c2){let _0x6df8cb=!0x1;const {removed:_0x2c8965,inserted:_0x18f97f,moved:_0x2dc403}=this['_footnoteRefsTracker']['getChanges'](_0x3d03c2);for(const _0x509d1b of _0x2c8965)this['_handleRemoveFootnoteReferenceById'](_0x2a17bd,_0x509d1b)&&(_0x6df8cb=!0x0);for(const _0xf5ffa4 of _0x18f97f)this['_handleInsertedFootnoteReference'](_0x2a17bd,_0xf5ffa4)&&(_0x6df8cb=!0x0);for(const _0x2368d7 of _0x2dc403)this['_handleMovedFootnoteReference'](_0x2a17bd,_0x2368d7)&&(_0x6df8cb=!0x0);return _0x6df8cb;}['_handleFootnotesDefinitionsObjectSync'](_0x5499ee){if(!this['_footnotesDefinitions'])return!0x1;let _0x5831a5=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5b4a96=[];for(const _0xcafbf1 of this['_footnotesDefinitions']['getChildren']()){const _0x2bd992=_0xcafbf1['getAttribute']('footnoteId');this['getFootnote'](_0x2bd992)||(_0x5b4a96['unshift'](_0xcafbf1),_0x5831a5=!0x0);}for(const _0x4d6800 of _0x5b4a96)_0x5499ee['remove'](_0x4d6800);}const _0x5a1d23=new Set(),_0xeae39e=[];for(const _0x180395 of this['_footnotesDefinitions']['getChildren']()){const _0x7c1b5d=_0x180395['getAttribute']('footnoteId');_0x5a1d23['has'](_0x7c1b5d)?(_0xeae39e['unshift'](_0x180395),_0x5831a5=!0x0):_0x5a1d23['add'](_0x7c1b5d);}for(const _0x2c298c of _0xeae39e)_0x5499ee['remove'](_0x2c298c);return this['_footnotesDefinitions']['childCount']||(_0x5499ee['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5831a5=!0x0),_0x5831a5;}['_handleInsertedFootnoteReference'](_0x27f576,_0xaf1abb){if(this['_footnotes']['find'](_0x4c724e=>_0x4c724e['reference']===_0xaf1abb))return!0x1;let _0x5b490=!0x1;const _0x406ee3=_0xaf1abb['getAttribute']('footnoteId'),_0x4f4187=this['_footnotes']['findIndex'](_0x2de356=>_0x2de356['id']===_0x406ee3);-0x1!==_0x4f4187&&(_0x27f576['remove'](this['_footnotes'][_0x4f4187]['reference']),this['_footnotes']['splice'](_0x4f4187,0x1),_0x5b490=!0x0);let _0x77bfcf=this['_footnotesDefinitions']?function(_0x35d1ab,_0x2ab9a8){for(const _0x26ae25 of _0x35d1ab['getChildren']())if(_0x26ae25['getAttribute']('footnoteId')===_0x2ab9a8)return _0x26ae25;return null;}(this['_footnotesDefinitions'],_0x406ee3):null;_0x77bfcf||(_0x77bfcf=_0x27f576['createElement']('footnoteDefinition',{'footnoteId':_0x406ee3}),this['_footnotesDefinitions']&&(_0x27f576['insert'](_0x77bfcf,this['_footnotesDefinitions'],'end'),_0x5b490=!0x0));const _0x1f5dfc={'id':_0x406ee3,'reference':_0xaf1abb,'definition':_0x77bfcf},_0x341352=I(this['editor']['model'],this['_footnotes'],_0xaf1abb);this['_footnotes']['splice'](_0x341352,0x0,_0x1f5dfc);let _0xb4cf21=_0x341352;return-0x1!==_0x4f4187&&(_0xb4cf21=Math['min'](_0x341352,_0x4f4187)),this['_updateFootnotesCounters'](_0x27f576,_0xb4cf21)&&(_0x5b490=!0x0),_0x5b490;}['_handleRemoveFootnoteReferenceById'](_0xc3bca1,_0x178365){const _0x3e0b3c=this['_footnotes']['findIndex'](_0x58921a=>_0x58921a['id']===_0x178365);if(-0x1===_0x3e0b3c)return!0x1;let _0x295f10=!0x1;const _0x2ccd10=this['_footnotes'][_0x3e0b3c];return'$graveyard'!==_0x2ccd10['definition']['root']['rootName']&&(_0xc3bca1['remove'](_0x2ccd10['definition']),_0x295f10=!0x0),this['_footnotes']['splice'](_0x3e0b3c,0x1),this['_updateFootnotesCounters'](_0xc3bca1,_0x3e0b3c)&&(_0x295f10=!0x0),_0x295f10;}['_handleMovedFootnoteReference'](_0x1dbde1,_0x2a089d){const _0x444a83=_0x2a089d['getAttribute']('footnoteId'),_0xbca2c1=this['_footnotes']['findIndex'](_0x33a33f=>_0x33a33f['id']===_0x444a83),_0x47d4a0=this['_footnotes'][_0xbca2c1];let _0x3e4fa7=!0x1;_0x47d4a0['reference']=_0x2a089d,this['_footnotes']['splice'](_0xbca2c1,0x1);const _0x310682=I(this['editor']['model'],this['_footnotes'],_0x2a089d);return this['_footnotes']['splice'](_0x310682,0x0,_0x47d4a0),this['_updateFootnotesCounters'](_0x1dbde1,Math['min'](_0xbca2c1,_0x310682))&&(_0x3e4fa7=!0x0),_0x3e4fa7;}['_updateFootnoteRefCounter'](_0xf2c962,_0x3aca46){if(!this['_footnotesDefinitions'])return!0x1;const _0x3d8740=this['_footnotes'][_0x3aca46];let _0x3a4fd6;return _0x3a4fd6=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3d8740,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3aca46+0x1}):String(_0x3aca46+0x1),_0x3d8740['reference']['getAttribute']('footnoteCounter')!=_0x3a4fd6&&(_0xf2c962['setAttribute']('footnoteCounter',_0x3a4fd6,_0x3d8740['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x320670){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x522246,_0x30b023){if(_0x522246['length']!==_0x30b023['length'])return!0x1;for(let _0x498c52=0x0;_0x498c52<_0x522246['length'];_0x498c52++)if(_0x522246[_0x498c52]!==_0x30b023[_0x498c52])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x5c93c9=>_0x5c93c9['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3d14cd=>_0x3d14cd['getAttribute']('footnoteId'))))return!0x1;let _0x5d65f4=!0x1;for(let _0x1baa9a=0x0;_0x1baa9a<this['_footnotes']['length'];_0x1baa9a++){const _0x1dfc4a=this['_footnotes'][_0x1baa9a],_0x45617d=_0x320670['createPositionBefore'](_0x1dfc4a['definition']),_0x14cded=_0x320670['createPositionAt'](this['_footnotesDefinitions'],_0x1baa9a);_0x45617d['isEqual'](_0x14cded)||(_0x320670['move'](_0x320670['createRangeOn'](_0x1dfc4a['definition']),_0x14cded),_0x5d65f4=!0x0);}return _0x5d65f4;}['_ensureFootnotesReferencesHaveProperOrder'](_0x1bcef8){if(!this['_footnotes']['length'])return!0x1;const {model:_0x224b7b}=this['editor'];let _0x261022=!0x1;for(let _0xf2caf8=0x0;_0xf2caf8<this['_footnotes']['length']-0x1;_0xf2caf8++){const _0x30f992=this['_footnotes'][_0xf2caf8],_0x2bad08=this['_footnotes'][_0xf2caf8+0x1],_0x115c9e=_0x224b7b['createPositionBefore'](_0x30f992['reference']),_0x1ba747=_0x224b7b['createPositionBefore'](_0x2bad08['reference']);'after'===_0x115c9e['compareWith'](_0x1ba747)&&(this['_handleMovedFootnoteReference'](_0x1bcef8,_0x30f992['reference']),_0xf2caf8=-0x1,_0x261022=!0x0);}return _0x261022;}}function _(_0x38dae6,_0x1d9082,_0x302299){if(_0x302299['childCount'])return!0x1;const _0x7dade3=_0x1d9082?'paragraph':'footnoteInlineContent';return _0x38dae6['insert'](_0x38dae6['createElement'](_0x7dade3),_0x302299),!0x0;}function I(_0x483aae,_0x2d800b,_0x148ea3){if(0x0===_0x2d800b['length'])return 0x0;const _0x19d208=_0x483aae['createPositionBefore'](_0x148ea3);for(let _0x5747b2=0x0;_0x5747b2<_0x2d800b['length'];_0x5747b2++){const _0x30e23d=_0x2d800b[_0x5747b2],_0x448bda=_0x483aae['createPositionBefore'](_0x30e23d['reference']);if('before'===_0x19d208['compareWith'](_0x448bda))return _0x5747b2;}const _0x14d1e8=_0x148ea3['root'];let _0x4870ff=-0x1;for(let _0x1354d9=_0x2d800b['length']-0x1;_0x1354d9>=0x0;_0x1354d9--)if(_0x2d800b[_0x1354d9]['reference']['root']===_0x14d1e8){_0x4870ff=_0x1354d9;break;}if(-0x1!==_0x4870ff)return _0x4870ff+0x1;const _0xc3503e=_0x483aae['document']['getRootNames'](),_0x9975b8=_0xc3503e['indexOf'](_0x14d1e8['rootName']),_0x242c81=_0xc3503e[_0x9975b8+0x1];if(_0x242c81){for(let _0x31bd33=0x0;_0x31bd33<_0x2d800b['length'];_0x31bd33++)if(_0x2d800b[_0x31bd33]['reference']['root']['rootName']===_0x242c81)return _0x31bd33;}return _0x2d800b['length'];}class w extends _0x48caf5{['refresh'](){const _0x351d2f=this['editor']['model']['document']['selection'],_0x5f2fc4=this['_getPositionToInsertFootnote'](_0x351d2f);this['isEnabled']=!!_0x5f2fc4;}['execute'](_0x2e0c45){const {editor:_0x170be3}=this,{model:_0x4499e4}=_0x170be3,{selection:_0x2afe11}=_0x4499e4['document'],_0x2ff587=this['_getPositionToInsertFootnote'](_0x2afe11);if(!_0x2ff587)return;const _0x507fbc=_0x170be3['plugins']['get']('FootnotesEditing'),_0x1abf6b=_0x2e0c45?.['footnoteId']??_0x33024d();!function(_0x29c662){return'string'==typeof _0x29c662&&_0x29c662['length']>0x0&&!/\s/['test'](_0x29c662)&&!/^\d/['test'](_0x29c662);}(_0x1abf6b)?_0x5baafc('insert-footnote-command-executed-with-invalid-id'):(_0x4499e4['change'](_0x9f1b45=>{const _0x1d6875=_0x9f1b45['createElement']('footnoteRef',{'footnoteId':_0x1abf6b});_0x4499e4['insertObject'](_0x1d6875,_0x2ff587,null);}),_0x507fbc['_moveSelectionToFootnoteDefinition'](_0x1abf6b));}['_getPositionToInsertFootnote'](_0x56eecf){const {model:_0xbce467}=this['editor'],{schema:_0x3a70f0}=_0xbce467,_0x23d41f=_0x56eecf['getFirstRange']();for(const _0x3891c0 of _0x23d41f['getItems']())if(_0x3a70f0['isBlock'](_0x3891c0)||_0x3a70f0['isObject'](_0x3891c0))return null;const _0x23f230=_0x23d41f['end'];return _0x3a70f0['checkChild'](_0x23f230,'footnoteRef')?_0x23f230:null;}}class r extends _0xd3a18c{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x197959}=this;_0x197959['config']['define']('footnotes.multiBlock',!0x0),_0x197959['commands']['add']('insertFootnote',new w(_0x197959)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2baab5){const _0x35c465=_0x372b6e([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]),_0x4c734c=0x47a28506,_0x471189=0x47a5f2c6^_0x4c734c,_0x38f8ba=window[_0x372b6e([0x44,0x61,0x74,0x65])][_0x372b6e([0x6e,0x6f,0x77])](),_0x2b5c5e=_0x2baab5[_0x372b6e([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5060ea=new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xaedcc0=>{_0x2b5c5e[_0x372b6e([0x6f,0x6e,0x63,0x65])](_0x372b6e([0x72,0x65,0x61,0x64,0x79]),_0xaedcc0);}),_0x33eba7={[_0x372b6e([0x6b,0x74,0x79])]:_0x372b6e([0x45,0x43]),[_0x372b6e([0x75,0x73,0x65])]:_0x372b6e([0x73,0x69,0x67]),[_0x372b6e([0x63,0x72,0x76])]:_0x372b6e([0x50,0x2d,0x32,0x35,0x36]),[_0x372b6e([0x78])]:_0x372b6e([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]),[_0x372b6e([0x79])]:_0x372b6e([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]),[_0x372b6e([0x61,0x6c,0x67])]:_0x372b6e([0x45,0x53,0x32,0x35,0x36])},_0x1437bf=_0x2b5c5e[_0x372b6e([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x372b6e([0x67,0x65,0x74])](_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3f187c(){let _0x3f4a9e,_0x5ae943=null,_0x2d8630=null;try{if(_0x1437bf==_0x372b6e([0x47,0x50,0x4c]))return _0x372b6e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3f4a9e=_0x46d3e2(),!_0x3f4a9e)return _0x372b6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3f4a9e[_0x372b6e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2d8630=_0x552008(_0x3f4a9e[_0x372b6e([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3f4a9e[_0x372b6e([0x6a,0x74,0x69])])),await _0xdf716b()?_0x2641d4()?_0x47996e()?_0x372b6e([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5dc05f()?(_0x3f4a9e[_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x372b6e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5ae943=_0x4b7175(_0x372b6e([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x3f4a9e[_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x372b6e([0x74,0x72,0x69,0x61,0x6c])&&(_0x5ae943=_0x4b7175(_0x372b6e([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4db088()):_0x372b6e([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x372b6e([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x372b6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x372b6e([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x47996e(){const _0x3f1aee=[_0x372b6e([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x372b6e([0x74,0x72,0x69,0x61,0x6c])][_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f4a9e[_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x38f8ba/0x3e8:0xe10*_0x471189;return _0x3f4a9e[_0x372b6e([0x65,0x78,0x70])]<_0x3f1aee;}function _0x2641d4(){const _0x42d4a5=_0x3f4a9e[_0x372b6e([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42d4a5&&(!!_0x42d4a5[_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x372b6e([0x2a]))||!!_0x42d4a5[_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x372b6e([0x46,0x4f,0x4f])));}function _0x5dc05f(){const _0x54f6dd=_0x3f4a9e[_0x372b6e([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x54f6dd||0x0==_0x54f6dd[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x25059e}=new URL(window[_0x372b6e([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x54f6dd[_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x25059e))return!0x0;const _0x533ed8=_0x25059e[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])](_0x372b6e([0x2e]));return _0x54f6dd[_0x372b6e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5310ca=>_0x5310ca[_0x372b6e([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x372b6e([0x2a])))[_0x372b6e([0x6d,0x61,0x70])](_0x11c549=>_0x11c549[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])](_0x372b6e([0x2e])))[_0x372b6e([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x13a921=>_0x13a921[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x533ed8[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x372b6e([0x6d,0x61,0x70])](_0x2c863f=>Array(_0x533ed8[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2c863f[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x372b6e([0x66,0x69,0x6c,0x6c])](_0x2c863f[0x0]===_0x372b6e([0x2a])?_0x372b6e([0x2a]):'')[_0x372b6e([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2c863f))[_0x372b6e([0x73,0x6f,0x6d,0x65])](_0x245fd1=>_0x533ed8[_0x372b6e([0x65,0x76,0x65,0x72,0x79])]((_0x2843fc,_0x17c12b)=>_0x245fd1[_0x17c12b]===_0x2843fc||_0x245fd1[_0x17c12b]===_0x372b6e([0x2a])));}function _0x4db088(){return _0x5ae943&&_0x2d8630?new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3ae57d,_0xcc6690)=>{_0x5ae943[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x3ae57d,_0xcc6690),_0x2d8630[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x59a65a=>{_0x59a65a!=_0x372b6e([0x56,0x61,0x6c,0x69,0x64])&&_0x3ae57d(_0x59a65a);},_0xcc6690);}):_0x5ae943||_0x2d8630||_0x372b6e([0x56,0x61,0x6c,0x69,0x64]);}}function _0x552008(_0x1fde9a,_0x13b2d3){return new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3327bc=>{if(_0x31f9cf())return _0x3327bc(_0x372b6e([0x56,0x61,0x6c,0x69,0x64]));_0x3dfa75(),_0x2b5c5e[_0x372b6e([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x372b6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4dd6db=!0x1;const _0x166bdf=_0x33024d();function _0x357d52(_0x336cb5){return!!_0x336cb5&&(typeof _0x336cb5===_0x372b6e([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x336cb5===_0x372b6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x336cb5[_0x372b6e([0x74,0x68,0x65,0x6e])]===_0x372b6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x336cb5[_0x372b6e([0x63,0x61,0x74,0x63,0x68])]===_0x372b6e([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x313c98(_0x321b24){_0x51511e(_0x321b24)[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x29a8ae=>{if(!_0x29a8ae||_0x29a8ae[_0x372b6e([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x372b6e([0x6f,0x6b]))return _0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x28a98b(_0x1e06bb(_0x166bdf+_0x13b2d3))!=_0x29a8ae[_0x372b6e([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x372b6e([0x56,0x61,0x6c,0x69,0x64]);})[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x4efcf7=>(_0x284a1(),_0x4efcf7),()=>{const _0x494185=_0x202285();return null==_0x494185?(_0x284a1(),_0x372b6e([0x56,0x61,0x6c,0x69,0x64])):_0x372b6e(_0x38f8ba-_0x494185>(0x63ae0106^_0x4c734c)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x3327bc)[_0x372b6e([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3327bc(_0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x21925a=0x47946b86^_0x4c734c;function _0x284a1(){const _0x1cbbfc=_0x372b6e([0x6c,0x6c,0x63,0x74,0x2d])+_0x28a98b(_0x1e06bb(_0x1fde9a)),_0x5b0fb3=_0x3c41c9(_0x28a98b(window[_0x372b6e([0x4d,0x61,0x74,0x68])][_0x372b6e([0x63,0x65,0x69,0x6c])](_0x38f8ba/_0x21925a)));window[_0x372b6e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x372b6e([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1cbbfc,_0x5b0fb3);}function _0x202285(){const _0x35d33c=_0x372b6e([0x6c,0x6c,0x63,0x74,0x2d])+_0x28a98b(_0x1e06bb(_0x1fde9a)),_0x5246d7=window[_0x372b6e([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x372b6e([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x35d33c);return _0x5246d7?window[_0x372b6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3c41c9(_0x5246d7),0x10)*_0x21925a:null;}function _0x51511e(_0x2d6151){return new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48f3ea,_0x567162)=>{_0x2d6151[_0x372b6e([0x74,0x68,0x65,0x6e])](_0x48f3ea,_0x567162),window[_0x372b6e([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x567162,0x47a351c6^_0x4c734c);});}}_0x2b5c5e[_0x372b6e([0x6f,0x6e])](_0x372b6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4acfc4,_0x10e962)=>{if(_0x10e962[0x0]!=_0x1fde9a)return _0x3327bc(_0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x10e962[0x1]={..._0x10e962[0x1],[_0x372b6e([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x166bdf};},{[_0x372b6e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x372b6e([0x68,0x69,0x67,0x68])}),_0x2b5c5e[_0x372b6e([0x6f,0x6e])](_0x372b6e([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x45a46d=>{_0x357d52(_0x45a46d[_0x372b6e([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4dd6db=!0x0,_0x313c98(_0x45a46d[_0x372b6e([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x372b6e([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x372b6e([0x6c,0x6f,0x77])}),_0x5060ea[_0x372b6e([0x74,0x68,0x65,0x6e])](()=>{_0x4dd6db||_0x3327bc(_0x372b6e([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x31f9cf(){return _0x2b5c5e[_0x372b6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x372b6e([0x76,0x69,0x65,0x77])][_0x372b6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x372b6e([0x61,0x75,0x74,0x6f]);}function _0x3dfa75(){_0x2b5c5e[_0x372b6e([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x372b6e([0x76,0x69,0x65,0x77])][_0x372b6e([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x372b6e([0x61,0x75,0x74,0x6f]);}}function _0x4b7175(_0x2f03b2){const _0x5bca41=[new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x110b54=>setTimeout(_0x110b54,0x47abbbca^_0x4c734c)),_0x5060ea[_0x372b6e([0x74,0x68,0x65,0x6e])](()=>new window[(_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x592c46=>{let _0x5c4945=0x0;_0x2b5c5e[_0x372b6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x372b6e([0x6f,0x6e])](_0x372b6e([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5f42ad,_0x2203d6)=>{_0x2203d6[0x0][_0x372b6e([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c4945++,_0x5c4945==(0x47a284fe^_0x4c734c)&&(_0x592c46(),_0x5f42ad[_0x372b6e([0x6f,0x66,0x66])]());});}))];return window[_0x372b6e([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x372b6e([0x72,0x61,0x63,0x65])](_0x5bca41)[_0x372b6e([0x74,0x68,0x65,0x6e])](()=>_0x2f03b2);}async function _0x472690(){await _0x5060ea,_0x2b5c5e[_0x372b6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x372b6e([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x44cc27,_0x2b5c5e[_0x372b6e([0x6d,0x6f,0x64,0x65,0x6c])][_0x372b6e([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x44cc27,_0x2b5c5e[_0x372b6e([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x372b6e([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2d7f7f(_0x4e18e7){const _0x3c393a=_0x3a1543();_0x2b5c5e[_0x3c393a]=_0x372b6e([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4e18e7,_0x4e18e7!=_0x372b6e([0x56,0x61,0x6c,0x69,0x64])&&_0x472690();}function _0x3a1543(){const _0x5a0215=window[_0x372b6e([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x372b6e([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x372b6e([0x6e,0x6f,0x77])]())[_0x372b6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x372b6e([0x2e]),'');let _0x546be3=_0x372b6e([0x75]);for(let _0x29c294=0x0;_0x29c294<_0x5a0215[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x29c294+=0x2){let _0x2e595f=window[_0x372b6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a0215[_0x372b6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x29c294,_0x29c294+0x2));_0x2e595f>=_0x35c465[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2e595f-=_0x35c465[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x546be3+=_0x35c465[_0x2e595f];}return _0x546be3;}function _0x46d3e2(){const _0x579b40=_0x1437bf[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])](_0x372b6e([0x2e]));if(0x3!=_0x579b40[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f72d5(_0x579b40[0x1]);function _0x3f72d5(_0x550b2f){const _0x4c86b5=_0x40a8f2(_0x550b2f);return _0x4c86b5&&_0x19a1b3()?_0x4c86b5:null;function _0x19a1b3(){const _0x48465e=_0x4c86b5[_0x372b6e([0x6a,0x74,0x69])],_0x3b2146=window[_0x372b6e([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48465e[_0x372b6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x48465e[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1f76d5={..._0x4c86b5,[_0x372b6e([0x6a,0x74,0x69])]:_0x48465e[_0x372b6e([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x48465e[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1f76d5[_0x372b6e([0x76,0x63])],_0x1e06bb(_0x1f76d5)==_0x3b2146;}}}async function _0xdf716b(){let _0x4bf1ee=!0x0;try{const _0x4820fe=_0x1437bf[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])](_0x372b6e([0x2e])),[_0x1362a8,_0x16b896,_0x5b70ab]=_0x4820fe;return _0x29ae4b(_0x1362a8),await _0x11067a(_0x1362a8,_0x16b896,_0x5b70ab),_0x4bf1ee;}catch{return!0x1;}function _0x29ae4b(_0x5dd0b7){const _0x6b9586=_0x40a8f2(_0x5dd0b7);_0x6b9586&&_0x6b9586[_0x372b6e([0x61,0x6c,0x67])]==_0x372b6e([0x45,0x53,0x32,0x35,0x36])||(_0x4bf1ee=!0x1);}async function _0x11067a(_0x33f522,_0x2834c8,_0x4a6678){const _0x58a27b=window[_0x372b6e([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x372b6e([0x66,0x72,0x6f,0x6d])](_0x29d061(_0x4a6678),_0x4d2233=>_0x4d2233[_0x372b6e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2e14e8=new window[(_0x372b6e([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x372b6e([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x33f522+_0x372b6e([0x2e])+_0x2834c8),_0x3bf34c=window[_0x372b6e([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x372b6e([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bf34c)return;const _0x1a98c1=await _0x3bf34c[_0x372b6e([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x372b6e([0x6a,0x77,0x6b]),_0x33eba7,{[_0x372b6e([0x6e,0x61,0x6d,0x65])]:_0x372b6e([0x45,0x43,0x44,0x53,0x41]),[_0x372b6e([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x372b6e([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x372b6e([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bf34c[_0x372b6e([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x372b6e([0x6e,0x61,0x6d,0x65])]:_0x372b6e([0x45,0x43,0x44,0x53,0x41]),[_0x372b6e([0x68,0x61,0x73,0x68])]:{[_0x372b6e([0x6e,0x61,0x6d,0x65])]:_0x372b6e([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1a98c1,_0x58a27b,_0x2e14e8)||(_0x4bf1ee=!0x1);}}function _0x40a8f2(_0x32bee3){return _0x32bee3[_0x372b6e([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x372b6e([0x65,0x79]))?JSON[_0x372b6e([0x70,0x61,0x72,0x73,0x65])](_0x29d061(_0x32bee3)):null;}function _0x29d061(_0x4e8537){return window[_0x372b6e([0x61,0x74,0x6f,0x62])](_0x4e8537[_0x372b6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x372b6e([0x2b]))[_0x372b6e([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x372b6e([0x2f])));}function _0x1e06bb(_0x42c228){let _0x4735bc=0x1505;function _0x479bf7(_0x21c483){for(let _0x4e6b61=0x0;_0x4e6b61<_0x21c483[_0x372b6e([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e6b61++){const _0xeacc32=_0x21c483[_0x372b6e([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e6b61);_0x4735bc=(_0x4735bc<<0x5)+_0x4735bc+_0xeacc32,_0x4735bc&=_0x4735bc;}}function _0x35d5ce(_0x4702a7){Array[_0x372b6e([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4702a7)?_0x4702a7[_0x372b6e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x35d5ce):_0x4702a7&&typeof _0x4702a7==_0x372b6e([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x372b6e([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4702a7)[_0x372b6e([0x73,0x6f,0x72,0x74])]()[_0x372b6e([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5e0733,_0xf07c4f])=>{_0x479bf7(_0x5e0733),_0x35d5ce(_0xf07c4f);}):_0x479bf7(window[_0x372b6e([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4702a7));}return _0x35d5ce(_0x42c228),_0x4735bc>>>0x0;}function _0x28a98b(_0x3bac23){return _0x3bac23[_0x372b6e([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x372b6e([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x372b6e([0x30]));}function _0x3c41c9(_0x119f5e){return _0x119f5e[_0x372b6e([0x73,0x70,0x6c,0x69,0x74])]('')[_0x372b6e([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x372b6e([0x6a,0x6f,0x69,0x6e])]('');}function _0x44cc27(){}function _0x372b6e(_0xd023e){return _0xd023e['map'](_0x240a71=>String['fromCharCode'](_0x240a71))['join']('');}_0x2d7f7f(await _0x3f187c());}(this);}['_moveSelectionToFootnoteDefinition'](_0x36ddb9){const {plugins:_0x1a67ad,editing:_0x933c63,model:_0x20085d}=this['editor'],_0xbc75e8=_0x1a67ad['get'](c)['getFootnote'](_0x36ddb9);return!!_0xbc75e8&&(_0x20085d['change'](_0x5d70e8=>{_0x5d70e8['setSelection'](_0x5d70e8['createPositionAt'](_0xbc75e8['definition'],'end'));}),_0x933c63['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2d0e66){const {plugins:_0x544126,editing:_0x5dc6de,model:_0x4c04d6}=this['editor'],_0x2a8673=_0x544126['get'](c)['getFootnote'](_0x2d0e66);return!!_0x2a8673&&(_0x4c04d6['change'](_0x58efb0=>{_0x58efb0['setSelection'](_0x2a8673['reference'],'on');}),_0x5dc6de['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x13a457}=this['editor']['model'],_0x3fadc7=this['editor']['config']['get']('footnotes.multiBlock');_0x13a457['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x13a457['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x13a457['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3fadc7?_0x13a457['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x13a457['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x13a457['addChildCheck'](_0x572bb8=>{for(const _0x42e0fb of _0x572bb8)if('footnoteDefinition'===_0x42e0fb['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4e45dc}=this,{conversion:_0x352de8,editing:_0x29cdac}=_0x4e45dc,{t:t}=_0x4e45dc['locale'];_0x352de8['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xa7ffd0,{writer:_0x333dd5,consumable:_0x5343a3})=>{const _0x5c88ea=_0xa7ffd0['getChild'](0x0);if(!_0x5c88ea||!_0x5c88ea['is']('element','a'))return null;const _0x88cafa=_0x5c88ea['getAttribute']('href')||'';if(!_0x88cafa['startsWith']('#'))return null;const _0x586cd9=_0x88cafa['replace'](/^#/,'');if(!_0x586cd9)return null;_0x5343a3['consume'](_0x5c88ea,{'name':!0x0,'attributes':['href']});for(const {item:_0x1513c3}of _0x29cdac['view']['createRangeIn'](_0x5c88ea))_0x1513c3['is']('$textProxy')?_0x5343a3['consume'](_0x1513c3['textNode'],{'name':!0x0}):_0x1513c3['is']('element')&&_0x5343a3['consume'](_0x1513c3,{'name':!0x0});return _0x333dd5['createElement']('footnoteRef',{'footnoteId':_0x586cd9});}}),_0x352de8['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19219f,{writer:_0x32d078})=>D(_0x19219f,_0x32d078)}),_0x352de8['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x40eda3,{writer:_0xedc50a})=>{const _0x520190=_0x40eda3['getAttribute']('footnoteCounter');return _0x13c244(D(_0x40eda3,_0xedc50a),_0xedc50a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x520190)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3e55bd}=this,{t:t}=_0x3e55bd['locale'],{conversion:_0x4f0f48}=_0x3e55bd;_0x4f0f48['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4f0f48['for']('upcast')['add'](_0x101b23=>{_0x101b23['on']('element:ol',(_0x5a4da9,_0x2752bf,_0x38e621)=>{const _0xca3f2f=_0x2752bf['viewItem'];if(!_0xca3f2f['hasClass']('footnotes-list')||!_0x2752bf['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x38e621['consumable']['consume'](_0xca3f2f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x132a86,modelCursor:_0x157758}=_0x38e621['convertChildren'](_0x2752bf['viewItem'],_0x2752bf['modelCursor']);_0x2752bf['modelRange']=_0x132a86,_0x2752bf['modelCursor']=_0x157758;}),_0x101b23['on']('element:hr',(_0x11eb00,_0x51b35c,_0x4b8a5b)=>{const _0x36f1cf=_0x51b35c['viewItem'];_0x36f1cf['hasClass']('footnotes-divider')&&_0x51b35c['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4b8a5b['consumable']['consume'](_0x36f1cf,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4f0f48['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x420b50,{writer:_0x434d58})=>g(_0x434d58)}),_0x4f0f48['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x209409,{writer:_0x1e34b0})=>{const _0x37d367=g(_0x1e34b0,{'data-footnotes-list-label':t('Footnotes')}),_0x410507=_0x13c244(_0x37d367,_0x1e34b0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1e34b0['setCustomProperty']('footnotesDefinitions',!0x0,_0x410507),_0x410507;}});}['_defineDefinitionConverters'](){const {editor:_0x199fed}=this,{conversion:_0x33eec2,locale:_0x21af0d}=_0x199fed,_0x3f03b7=_0x199fed['config']['get']('footnotes.multiBlock');_0x33eec2['for']('upcast')['add'](_0x36143e=>{_0x36143e['on']('element:li',(_0x10bddd,_0x52c1a8,_0x3306fa)=>{const _0x52cb21=_0x52c1a8['viewItem'];if(!_0x52cb21['hasClass']('footnote-definition')||!_0x52cb21['getAttribute']('id'))return;const _0x359207=_0x52cb21['parent'];if(!_0x359207['is']('element','ol')||!_0x359207['hasClass']('footnotes-list'))return;if(!_0x3306fa['consumable']['test'](_0x52cb21,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x513fe1=_0x3306fa['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x52cb21['getAttribute']('id')});if(!_0x3306fa['safeInsert'](_0x513fe1,_0x52c1a8['modelCursor']))return;_0x3306fa['consumable']['consume'](_0x52cb21,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x260e9d=Array['from'](_0x52cb21['getChildren']())['find'](_0x3a72ba=>_0x3a72ba['is']('element')&&_0x3a72ba['hasClass']('footnote-content'));for(const _0x3c16ac of _0x52cb21['getChildren']())_0x3c16ac['is']('element')&&(_0x3306fa['consumable']['consume'](_0x3c16ac,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3306fa['consumable']['consume'](_0x3c16ac,{'name':!0x0,'classes':'footnote-content'}));if(_0x260e9d){if(_0x3f03b7)_0x3306fa['convertChildren'](_0x260e9d,_0x513fe1);else{const _0x78d78f=_0x3306fa['writer']['createElement']('footnoteInlineContent');_0x3306fa['writer']['insert'](_0x78d78f,_0x513fe1),_0x3306fa['convertChildren'](_0x260e9d,_0x78d78f);}}_0x3306fa['updateConversionResult'](_0x513fe1,_0x52c1a8);});}),_0x33eec2['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3625c5,{writer:_0x55075f})=>v(_0x3625c5,_0x55075f,_0x21af0d,{'dataPipeline':!0x0})}),_0x33eec2['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x507937,{writer:_0x2a0dbe})=>v(_0x507937,_0x2a0dbe,_0x21af0d)});}['_defineBogusParagraphConverters'](){const {editor:_0x2059f7}=this,{conversion:_0x42ccbb}=_0x2059f7;_0x2059f7['config']['get']('footnotes.multiBlock')?(_0x42ccbb['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x42ccbb['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x2059f7['model']['document'],'change:data',()=>{!function(_0x2993d4,_0x283329){const _0x255479=_0x2993d4['document']['differ'],_0x4bc594=new Set();for(const _0x2528c3 of _0x255479['getChanges']()){const _0x18582b='attribute'==_0x2528c3['type']?_0x2528c3['range']['start']['parent']:_0x2528c3['position']['parent'];_0x18582b['is']('element','footnoteDefinition')&&_0x4bc594['add'](_0x18582b);}for(const _0x21f85e of _0x4bc594['values']()){const _0x507563=Array['from'](_0x21f85e['getChildren']())['filter'](_0x18a217=>p(_0x18a217,_0x283329['mapper']));for(const _0x1bedc2 of _0x507563)_0x283329['reconvertItem'](_0x1bedc2);}}(_0x2059f7['model'],_0x2059f7['editing']);})):(_0x42ccbb['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x42ccbb['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4cf9aa,{writer:_0x2d6f64})=>{const _0x51d3fc=_0x2d6f64['createContainerElement']('span');return _0x2d6f64['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x51d3fc),_0x51d3fc;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5b50f4}=this,{editing:_0x22ad99,t:t}=_0x5b50f4,_0x379639=_0x5b50f4['model']['document']['selection'];_0x5b50f4['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5b50f4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x22ad99['view']['document'],'enter',(_0x29d836,_0x320737)=>{const _0x46e48e=function(_0x340c22){const _0x13625d=_0x340c22['getSelectedElement']();if(_0x13625d?.['is']('element','footnoteRef'))return _0x13625d;return null;}(_0x379639);if(_0x46e48e){const _0x3c57bd=_0x46e48e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3c57bd),_0x320737['preventDefault'](),_0x29d836['stop']();}},{'context':_0x51e66b});}['_defineClickHandlers'](){const {editor:_0x1c5c25}=this,{editing:_0x5e4d65}=_0x1c5c25;_0x1c5c25['editing']['view']['addObserver'](_0x28117e),_0x1c5c25['editing']['view']['addObserver'](_0x4a3d73);let _0x13ce07=!0x1;this['listenTo'](_0x5e4d65['view']['document'],'pointerdown',(_0x1568af,_0x50ca94)=>{const {target:_0x5c43a2}=_0x50ca94,_0x5457cf=_0x5e4d65['view']['document']['selection'];_0x13ce07=!!(_0x5c43a2['is']('element','a')&&_0x5c43a2['parent']?.['is']('element','sup')&&_0x5c43a2['parent']['hasClass']('footnote'))&&_0x5457cf['getSelectedElement']()===_0x5c43a2['parent'];},{'priority':'high'}),this['listenTo'](_0x5e4d65['view']['document'],'click',(_0x7822c5,_0xab6e9a)=>{const {target:_0x32de96}=_0xab6e9a;if(!_0x32de96['is']('element','a'))return;if(_0x32de96['parent']?.['is']('element','sup')&&_0x32de96['parent']['hasClass']('footnote')&&!_0x13ce07)return void _0xab6e9a['preventDefault']();let _0x167fa5=_0x32de96['getAttribute']('href');if(!_0x167fa5?.['startsWith']('#'))return;_0x167fa5=_0x167fa5['slice'](0x1);let _0x34b21b=!0x1;(_0x167fa5['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x167fa5['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x167fa5))&&(_0x34b21b=!0x0),_0x34b21b&&(_0xab6e9a['preventDefault'](),_0x7822c5['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0xcf0f6e}={}){return(_0x2abb2c,{writer:_0x3e8a1e})=>{if(!h(_0x2abb2c))return null;if(!_0xcf0f6e)return _0x3e8a1e['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xe7c5d7=_0x3e8a1e['createContainerElement']('p');return _0x3e8a1e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xe7c5d7),_0xe7c5d7;};}function h(_0x3392ad){const {parent:_0x5a1c38}=_0x3392ad;if(!_0x5a1c38?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5a1c38['childCount'])return!0x1;for(const _0x557b8f of _0x3392ad['getAttributeKeys']())if(!_0x557b8f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x557b8f)return!0x1;return!0x0;}function p(_0x44ab37,_0x3c5458){if(!_0x44ab37['is']('element','paragraph'))return!0x1;const _0x5791f1=_0x3c5458['toViewElement'](_0x44ab37);return!!_0x5791f1&&h(_0x44ab37)!==_0x5791f1['is']('element','span');}function J(_0x55c30f){return _0x51e66b(_0x55c30f)&&_0x55c30f['is']('containerElement')&&!!_0x55c30f['getCustomProperty']('footnotesDefinitions');}function g(_0x22fbd6,_0x41e34a={}){const _0x45aa21=_0x22fbd6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1c33e6=_0x22fbd6['createContainerElement']('ol',{'class':'footnotes-list'},_0x22fbd6['createSlot']());return _0x22fbd6['createContainerElement']('div',{'class':'footnotes',..._0x41e34a},[_0x45aa21,_0x1c33e6]);}function D(_0x2ee930,_0x120785){const _0x270ee=_0x2ee930['getAttribute']('footnoteId'),_0x3fe8c6=_0x2ee930['getAttribute']('footnoteCounter'),_0x6cf847=_0x120785['createUIElement']('a',{'href':'#'+_0x270ee},function(_0x5332af){const _0x416daa=this['toDomElement'](_0x5332af);return _0x416daa['textContent']=_0x3fe8c6,_0x416daa;}),_0x1e75dd=_0x120785['createContainerElement']('sup',{'id':'ref-'+_0x270ee,'class':'footnote'},[_0x6cf847]);return _0x1e75dd['getFillerOffset']=()=>null,_0x1e75dd;}function v(_0x15c1e2,_0x1761ea,_0x237442,{dataPipeline:_0x470bfe}={}){const {t:t}=_0x237442,_0x3a2c9b=_0x15c1e2['getAttribute']('footnoteId'),_0x2a2e1d=_0x1761ea['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x3a2c9b},function(_0xcf1adc){const _0xc8e464=this['toDomElement'](_0xcf1adc);return _0xc8e464['innerText']='^',_0xc8e464;}),_0x276cf2=_0x470bfe?_0x1761ea['createContainerElement']('div',{'class':'footnote-content'}):_0x35b21c(_0x1761ea['createEditableElement']('div',{'class':'footnote-content'}),_0x1761ea,{'label':t('Footnote\x20content.')});return _0x1761ea['insert'](_0x1761ea['createPositionAt'](_0x276cf2,0x0),_0x1761ea['createSlot']()),_0x1761ea['createContainerElement']('li',{'class':'footnote-definition','id':_0x3a2c9b},[_0x2a2e1d,_0x276cf2]);}class e extends _0xd3a18c{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1a3aaf];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x3650f5}=this,{plugins:_0x47ac5f,model:_0xe8b4ec}=_0x3650f5,_0x446471=_0x47ac5f['get'](_0x1a3aaf),_0x340be1=_0x47ac5f['get'](c);this['listenTo'](_0x446471,'outputTransformation',(_0x322420,_0x38b8f0)=>{const _0x32aeb6=function(_0x341af1,_0x466dff){const _0x3f9e58=new Set();for(const {item:_0x135575}of _0x341af1['createRangeIn'](_0x466dff))_0x135575['is']('element','footnoteRef')&&_0x3f9e58['add'](_0x135575['getAttribute']('footnoteId'));return Array['from'](_0x3f9e58);}(_0xe8b4ec,_0x38b8f0['content']);if(!_0x32aeb6['length'])return;const _0xd75168=_0x340be1['getFootnotes'](),_0x8939d4=_0x32aeb6['reduce']((_0x5c4cf8,_0x2fac80)=>{const _0x541aa9=_0xd75168['find'](_0x256e43=>_0x256e43['id']===_0x2fac80);if(_0x541aa9){const _0x51d8e3=_0x3650f5['data']['toView'](_0x541aa9['definition'],{'isClipboardPipeline':!0x0}),_0x766374=_0x3650f5['data']['htmlProcessor']['toData'](_0x51d8e3);_0x5c4cf8[_0x541aa9['id']]=_0x766374;}return _0x5c4cf8;},Object['create'](null));_0x38b8f0['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x8939d4));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5d8e67}=this,{model:_0x277313,plugins:_0x18b54d}=_0x5d8e67,{view:_0x59976c}=_0x5d8e67['editing'],_0x2b6ef0=_0x18b54d['get'](_0x1a3aaf),_0x4d16d7=_0x18b54d['get'](c);let _0x17867c=null;this['listenTo'](_0x59976c['document'],'clipboardInput',(_0xeeea2f,_0x2394b6)=>{const _0x1f274d=_0x2394b6['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x17867c=_0x1f274d?JSON['parse'](_0x1f274d):null;}),this['listenTo'](_0x2b6ef0,'contentInsertion',(_0x5e9bc7,_0x4dffaf)=>{if(!_0x17867c)return;const _0x5bad42=_0x4dffaf['sourceEditorId']===this['editor']['id'];_0x5bad42&&'drop'===_0x4dffaf['method']||_0x277313['change'](_0x3d5fce=>{!function(_0x72d5dd,_0x2ce0e1){const _0x481100=[];for(const {item:_0x465acf}of _0x72d5dd['createRangeIn'](_0x2ce0e1))_0x465acf['is']('element','footnotesDefinitions')&&_0x481100['push'](_0x465acf);for(const _0x5546a0 of _0x481100)_0x72d5dd['remove'](_0x5546a0);}(_0x3d5fce,_0x4dffaf['content']);let _0x535206=_0x4d16d7['getFootnotesDefinitionsObjectElement']();if(!_0x535206){const _0x11d1d1=_0x277313['document']['selection']['getFirstRange']()['root'];_0x535206=_0x4d16d7['_insertEmptyFootnotesDefinitionsContainer'](_0x3d5fce,_0x11d1d1);}const _0x21e862=function(_0x4f18fb,_0x36ad4c,_0x3b896a){const _0x52e693=Object['create'](null);for(const {item:_0x3aa938}of _0x4f18fb['createRangeIn'](_0x36ad4c))if(_0x3aa938['is']('element','footnoteRef')){const _0x42fb9f=_0x3aa938['getAttribute']('footnoteId');if(!_0x3b896a(_0x42fb9f))continue;_0x52e693[_0x42fb9f]||(_0x52e693[_0x42fb9f]=_0x33024d()),_0x4f18fb['setAttribute']('footnoteId',_0x52e693[_0x42fb9f],_0x3aa938);}return _0x52e693;}(_0x3d5fce,_0x4dffaf['content'],_0x5a48e3=>!_0x5bad42||null!==_0x4d16d7['getFootnote'](_0x5a48e3));for(const [_0x4e3996,_0x333bdc]of Object['entries'](_0x17867c)){const _0xcc5ac=_0x21e862[_0x4e3996]||_0x4e3996,_0x2359a6=_0x3d5fce['createElement']('footnoteDefinition',{'footnoteId':_0xcc5ac}),_0x489006=_0x5d8e67['data']['htmlProcessor']['toView'](_0x333bdc),_0x4f8cd3=_0x5d8e67['data']['toModel'](_0x489006,_0x2359a6);_0x3d5fce['append'](_0x4f8cd3,_0x2359a6),_0x3d5fce['insert'](_0x2359a6,_0x535206,'end');}_0x17867c=null;});});}}class i extends _0xd3a18c{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3d7c63}=this,{componentFactory:_0x259eb6}=_0x3d7c63['ui'];_0x259eb6['add']('insertFootnote',x(_0x3d7c63,_0x597e22)),_0x259eb6['add']('menuBar:insertFootnote',x(_0x3d7c63,_0x1b0814)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x14e79d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x76d254;for(const _0x2b1e00 in _0x14e79d){const _0x5953f4=_0x2b1e00,_0xd69602=_0x14e79d[_0x5953f4];if('footnotesLicenseKeyValid'==_0xd69602||'footnotesLicenseKeyInvalid'==_0xd69602||'footnotesLicenseKeyExpired'==_0xd69602||'footnotesLicenseKeyDomainLimit'==_0xd69602||'footnotesLicenseKeyNotAllowed'==_0xd69602||'footnotesLicenseKeyEvaluationLimit'==_0xd69602||'footnotesLicenseKeyTrialLimit'==_0xd69602||'footnotesLicenseKeyUsageLimit'==_0xd69602){delete _0x14e79d[_0x5953f4],_0x76d254=_0xd69602,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x76d254&&_0x14e79d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x76d254&&_0x14e79d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x76d254&&_0x14e79d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x76d254&&_0x14e79d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x76d254&&_0x14e79d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x76d254&&_0x14e79d['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x76d254&&_0x14e79d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x2abda5,_0x445cc3){const _0x3ed830=_0x2abda5['commands']['get']('insertFootnote');return _0x22c3ea=>{const {t:t}=_0x22c3ea,_0x535316=new _0x445cc3(_0x22c3ea),_0x4d2bf7=_0x535316 instanceof _0x1b0814;return _0x535316['bind']('isEnabled')['to'](_0x3ed830,'isEnabled'),_0x535316['set']({'label':t(_0x4d2bf7?'Footnote':'Insert\x20footnote'),'icon':_0xdd0539,'tooltip':!0x0}),_0x535316['on']('execute',()=>{_0x3ed830['execute'](),_0x2abda5['editing']['view']['focus']();}),_0x535316;};}class nt extends _0xd3a18c{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 _0x48caf5{['refresh'](){const {editor:_0x2906dc}=this,_0x3d90db=_0x2906dc['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3d90db,this['value']=_0x3d90db?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x12bc15}){const {editor:_0x2dbc4a}=this,_0xed3036=_0x2dbc4a['plugins']['get'](c),_0x4edfb4=_0xed3036['getFootnotesDefinitionsObjectElement']();_0x4edfb4&&Q['includes'](_0x12bc15)&&_0x2dbc4a['model']['change'](_0x24ee7d=>{_0x24ee7d['setAttribute']('footnotesListStyle',_0x12bc15,_0x4edfb4),_0xed3036['_updateFootnotesCounters'](_0x24ee7d);});}}class b extends _0x48caf5{['refresh'](){const {editor:_0x5180ff}=this,_0x320eb9=_0x5180ff['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x320eb9,this['value']=_0x320eb9?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x30980a}){const {editor:_0x1cfdc2}=this,_0x4ffddb=_0x1cfdc2['plugins']['get'](c),_0x4f4c75=_0x4ffddb['getFootnotesDefinitionsObjectElement']();_0x4f4c75&&Number['isInteger'](_0x30980a)&&_0x1cfdc2['model']['change'](_0x32fa4d=>{_0x32fa4d['setAttribute']('footnotesListStart',_0x30980a,_0x4f4c75),_0x4ffddb['_updateFootnotesCounters'](_0x32fa4d);});}}class P extends _0xd3a18c{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x85ef07}=this;_0x85ef07['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x85ef07['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x85ef07['commands']['add']('footnotesStyle',new S(_0x85ef07)),_0x85ef07['commands']['add']('footnotesStart',new b(_0x85ef07)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x511857}=this,{schema:_0x13987d}=_0x511857['model'];_0x13987d['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x245d03}=this,{conversion:_0x309553,model:_0x1eba00}=_0x245d03,{schema:_0x12bff2}=_0x1eba00;_0x309553['for']('upcast')['add'](_0xcf5058=>{_0xcf5058['on']('element:ol',(_0x4b23f4,_0x39dd0d,_0x46a6dc)=>{const _0x4b3d05=_0x39dd0d['viewItem'],_0x49b3f5=_0x39dd0d['modelCursor']?.['parent'];_0x4b3d05['hasClass']('footnotes-list')&&_0x49b3f5?.['is']('element','footnotesDefinitions')&&(function(_0x4b4fc6,_0x34211f,_0x361ebf,_0x617a34){if(!_0x617a34['checkAttribute'](_0x34211f,'footnotesListStart'))return;let _0x26a889=0x1;const _0x328a50=_0x361ebf['consumable']['consume'](_0x4b4fc6,{'attributes':'start'});if(_0x328a50){const _0x32434e=Number['parseInt'](_0x4b4fc6['getAttribute']('start'),0xa);Number['isNaN'](_0x32434e)||(_0x26a889=_0x32434e);}!_0x328a50&&_0x34211f['hasAttribute']('footnotesListStart')||_0x361ebf['writer']['setAttribute']('footnotesListStart',_0x26a889,_0x34211f);}(_0x4b3d05,_0x49b3f5,_0x46a6dc,_0x12bff2),function(_0x2c7e7f,_0x404de4,_0x37bb41,_0x1d3e2f){if(!_0x1d3e2f['checkAttribute'](_0x404de4,'footnotesListStyle'))return;let _0x5cce03='decimal',_0x59c848=!0x1;if(_0x37bb41['consumable']['consume'](_0x2c7e7f,{'attributes':'type'})){const _0x50051c={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2c7e7f['getAttribute']('type')];_0x50051c&&(_0x5cce03=_0x50051c),_0x59c848=!0x0;}_0x37bb41['consumable']['consume'](_0x2c7e7f,{'styles':'list-style-type'})&&(_0x5cce03=_0x2c7e7f['getStyle']('list-style-type'),_0x59c848=!0x0),!_0x59c848&&_0x404de4['hasAttribute']('footnotesListStyle')||_0x37bb41['writer']['setAttribute']('footnotesListStyle',_0x5cce03,_0x404de4);}(_0x4b3d05,_0x49b3f5,_0x46a6dc,_0x12bff2));});}),_0x309553['for']('downcast')['add'](_0x1732d2=>{_0x1732d2['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5ae397,_0xd835e9,_0x48ec90)=>{if(!_0x48ec90['consumable']['consume'](_0xd835e9['item'],_0x5ae397['name']))return;const _0x2069b4=C(_0xd835e9['item'],_0x48ec90['mapper']),{attributeNewValue:_0x361916}=_0xd835e9;null==_0x361916||0x1===_0x361916?_0x48ec90['writer']['removeAttribute']('start',_0x2069b4):_0x48ec90['writer']['setAttribute']('start',String(_0x361916),_0x2069b4);}),_0x1732d2['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0xc10bd4,_0x133acc,_0x38479e)=>{if(!_0x38479e['consumable']['consume'](_0x133acc['item'],_0xc10bd4['name']))return;const _0x5a3a7d=C(_0x133acc['item'],_0x38479e['mapper']),{attributeNewValue:_0x1eed4c}=_0x133acc;_0x1eed4c&&'decimal'!==_0x1eed4c?_0x38479e['writer']['setStyle']('list-style-type',_0x1eed4c,_0x5a3a7d):_0x38479e['writer']['removeStyle']('list-style-type',_0x5a3a7d);});});}['_definePostfixer'](){const {editor:_0x2aa8f5}=this,{model:_0x128eb2}=_0x2aa8f5,_0x5044ab=_0x2aa8f5['plugins']['get'](c),_0x1075e1=this['_getDefaultListStyle'](),_0x1b8565=this['_getDefaultStartIndex']();_0x128eb2['document']['registerPostFixer'](_0x29aa5f=>{const _0x3cd597=_0x128eb2['document']['differ']['getChanges']();let _0x4419c4=!0x1;for(const _0x326cd5 of _0x3cd597){if('insert'!==_0x326cd5['type']||'$text'===_0x326cd5['name'])continue;const _0x5b5230=_0x128eb2['createRangeOn'](_0x326cd5['position']['nodeAfter']);for(const _0xaadc8d of _0x5b5230['getItems']())_0xaadc8d['is']('element','footnotesDefinitions')&&(!_0xaadc8d['hasAttribute']('footnotesListStart')&&_0x128eb2['schema']['checkAttribute'](_0xaadc8d,'footnotesListStart')&&(_0x29aa5f['setAttribute']('footnotesListStart',_0x1b8565,_0xaadc8d),_0x4419c4=!0x0),!_0xaadc8d['hasAttribute']('footnotesListStyle')&&_0x128eb2['schema']['checkAttribute'](_0xaadc8d,'footnotesListStyle')&&(_0x29aa5f['setAttribute']('footnotesListStyle',_0x1075e1,_0xaadc8d),_0x4419c4=!0x0));}return _0x4419c4&&_0x5044ab['_updateFootnotesCounters'](_0x29aa5f),_0x4419c4;});}['_defineFormatter'](){const {editor:_0x530d34}=this;_0x530d34['plugins']['get'](c)['setFootnoteFormatter'](_0x5b347f=>this['_formatFootnoteListValue'](_0x5b347f));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5e8c3a,value:_0x55b3f9,digits:_0x627cda}){const _0x52d134=_0x5e8c3a['getAttribute']('footnotesListStyle'),_0x434d23=_0x5e8c3a['getAttribute']('footnotesListStart'),_0x430b28=Math['floor'](_0x55b3f9)+(_0x434d23??0x1)-0x1;switch(_0x52d134){case'decimal-leading-zero':return function(_0x49b89d,_0x275076){return String(_0x49b89d)['padStart'](_0x275076,'0');}(_0x430b28,Math['max'](0x2,_0x627cda));case'lower-alpha':case'lower-latin':return M(_0x430b28,!0x1);case'upper-alpha':case'upper-latin':return M(_0x430b28,!0x0);case'lower-roman':return V(_0x430b28,!0x1);case'upper-roman':return V(_0x430b28,!0x0);default:return String(_0x430b28);}}}function C(_0x2851f6,_0x52c1c4){const _0x3ffdf4=_0x52c1c4['toViewElement'](_0x2851f6);return Array['from'](_0x3ffdf4['getChildren']())['find'](_0x932324=>_0x932324['is']('element','ol')&&_0x932324['hasClass']('footnotes-list'));}function M(_0x4684b6,_0x1203bc){let _0x5b2fcd='',_0x2d4b0d=_0x4684b6;for(;_0x2d4b0d>0x0;){const _0x4e6899=(_0x2d4b0d-0x1)%0x1a;_0x5b2fcd=String['fromCharCode'](0x61+_0x4e6899)+_0x5b2fcd,_0x2d4b0d=Math['floor']((_0x2d4b0d-0x1)/0x1a);}return _0x1203bc?_0x5b2fcd['toUpperCase']():_0x5b2fcd;}const N=[{'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 V(_0x5979e2,_0x1ddad5){let _0x24b258='',_0x25e995=_0x5979e2;for(const {value:_0x99e999,numeral:_0xa3f8f3}of N)for(;_0x25e995>=_0x99e999;)_0x24b258+=_0xa3f8f3,_0x25e995-=_0x99e999;return _0x1ddad5?_0x24b258:_0x24b258['toLowerCase']();}class H extends _0x1a2eba{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x378fc1();['focusCycler'];constructor(_0x542d51,{styleButtonViews:_0x45b6be,styleGridAriaLabel:_0xdbe423}){super(_0x542d51),(this['focusCycler']=new _0x2182f9({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x45b6be,_0xdbe423),[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 _0x2ddf31 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2ddf31['element']);_0xeae053({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x3ebc4b=_0x4491a2=>_0x4491a2['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3ebc4b),this['keystrokes']['set']('arrowleft',_0x3ebc4b),this['keystrokes']['set']('arrowup',_0x3ebc4b),this['keystrokes']['set']('arrowdown',_0x3ebc4b);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x520140,_0x489d30){const _0x520081=new _0x1a2eba(this['locale']);return _0x520081['children']=_0x520081['createCollection'](),_0x520081['children']['addMany'](_0x520140),_0x520081['setTemplate']({'tag':'div','attributes':{'aria-label':_0x489d30,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x520081['children']}),_0x520081['children']['delegate']('execute')['to'](this),_0x520081['focus']=function(){for(const _0x11b246 of this['children'])if(_0x11b246 instanceof _0x597e22&&_0x11b246['isOn'])return void _0x11b246['focus']();this['children']['first']['focus']();},_0x520081['focusTracker']=new et(),_0x520081['keystrokes']=new ot(),_0x520081['render'](),_0x520081['keystrokes']['listenTo'](_0x520081['element']),this['children']['add'](_0x520081),_0x520081;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x1896f4=this['_createStartIndexPropertyView'](),_0x596197=[_0x1896f4],_0x29a4b7=new tt(this['locale'],_0x596197);return _0x29a4b7['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x29a4b7['buttonView']['bind']('isEnabled')['toMany'](_0x596197,'isEnabled',(..._0x3dc60b)=>_0x3dc60b['some'](_0x4dea6a=>_0x4dea6a)),_0x29a4b7['buttonView']['on']('change:isEnabled',(_0x1b8dbb,_0x4688b5,_0x4b6cba)=>{_0x4b6cba||(_0x29a4b7['isCollapsed']=!0x0);}),this['children']['add'](_0x29a4b7),[_0x1896f4,_0x29a4b7];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5aba1f=new st(this['locale'],it);return _0x5aba1f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5aba1f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5aba1f['fieldView']['on']('input',()=>{const _0x48dee2=_0x5aba1f['fieldView']['element'],_0x282f3a=_0x48dee2['valueAsNumber'];Number['isNaN'](_0x282f3a)?_0x5aba1f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x48dee2['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x282f3a}):_0x5aba1f['errorText']=t(_0x282f3a<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5aba1f;}}class j extends _0xd3a18c{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x6532a0,_0x517ff2];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x41409e}=this,{componentFactory:_0x479ebd}=_0x41409e['ui'];_0x41409e['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x479ebd['add']('footnotesStyle',function(_0x34ab24){return _0x17868e=>{const {t:t}=_0x17868e,_0x224258=_0x34ab24['commands']['get']('footnotesStyle'),_0x5e5962=_0x4c101c(_0x17868e),{buttonView:_0x12b2a3}=_0x5e5962;return _0x5e5962['class']='ck-footnotes-styles-dropdown',_0x5e5962['bind']('isEnabled')['to'](_0x224258,'isEnabled'),_0x12b2a3['set']({'label':t('Footnotes\x20style'),'icon':_0xdd0539,'tooltip':!0x0}),_0x5e5962['once']('change:isOpen',()=>{const _0xc19eb9=function({editor:_0x16e40e,dropdownView:_0x316daa}){const {t:t}=_0x16e40e['locale'],_0x458d4b=t('Footnotes\x20definitions\x20styles'),_0x24de47=function(_0x58f09c){const t=_0x58f09c['locale']['t'],_0x454126=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x31521a},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xc406c1},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x345fa2},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x52964e},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x22de01},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2f6702}];return _0x454126['map'](function(_0x135712){const _0xb07cb7=_0x135712['locale'];return({label:_0x3ab361,icon:_0x3c5a01,tooltip:_0x474d2f,style:_0x50fd8b})=>{const _0x46bf37=_0x135712['commands']['get']('footnotesStyle'),_0x178ac2=new _0x597e22(_0xb07cb7);return _0x178ac2['set']({'label':_0x3ab361,'icon':_0x3c5a01,'tooltip':_0x474d2f}),_0x178ac2['bind']('isOn')['to'](_0x46bf37,'value',_0x496dd7=>_0x496dd7===_0x50fd8b),_0x178ac2['bind']('isEnabled')['to'](_0x46bf37,'isEnabled'),_0x178ac2['on']('execute',()=>{_0x135712['execute']('footnotesStyle',{'value':_0x50fd8b}),_0x135712['editing']['view']['focus']();}),_0x178ac2;};}(_0x58f09c));}(_0x16e40e),_0x4e3b63=new H(_0x16e40e['locale'],{'styleGridAriaLabel':_0x458d4b,'styleButtonViews':_0x24de47});return _0x4e3b63['delegate']('execute')['to'](_0x316daa),_0x4e3b63['on']('footnotesListStart',(_0x5d4ed0,_0x4c4a09)=>{_0x16e40e['execute']('footnotesStart',{'value':_0x4c4a09['startIndex']});}),_0x4e3b63;}({'editor':_0x34ab24,'dropdownView':_0x5e5962});_0x5e5962['panelView']['children']['add'](_0xc19eb9);}),_0x5e5962;};}(_0x41409e));}['afterInit'](){const {editor:_0x1ebb79}=this,{t:t}=_0x1ebb79['locale'],_0x3bafde=_0x1ebb79['plugins']['get'](_0x517ff2),{defaultPositions:_0x52f7b9}=_0x52e9c6;_0x3bafde['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1ebb79['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x507707=>{let _0x70a127=_0x507707['getFirstPosition']()?.['parent'];return _0x70a127?.['is']('$text')&&(_0x70a127=_0x70a127['parent']),_0x70a127?.['is']('element')?_0x70a127['findAncestor'](J):null;},'positions':[_0x52f7b9['southArrowNorth'],_0x52f7b9['southArrowNorthMiddleWest'],_0x52f7b9['southArrowNorthMiddleEast'],_0x52f7b9['southArrowNorthWest'],_0x52f7b9['southArrowNorthEast'],_0x52f7b9['northArrowSouth'],_0x52f7b9['northArrowSouthMiddleWest'],_0x52f7b9['northArrowSouthMiddleEast'],_0x52f7b9['northArrowSouthWest'],_0x52f7b9['northArrowSouthEast'],_0x52f7b9['viewportStickyNorth']]});}}class lt extends _0xd3a18c{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x1f3d21,Command as _0x278339}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x2c15fa,isWidget as _0x54acc0,toWidgetEditable as _0x3a0a31,WidgetToolbarRepository as _0x148e9e}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x17bb3f,logWarning as _0x5d35ce,FocusTracker as et,KeystrokeHandler as ot,global as rt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5743a6,ClickObserver as _0x4d8c97}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x268d6c}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x4d1176,ButtonView as _0x238c7e,View as _0x13cfa5,ViewCollection as _0x5477af,FocusCycler as _0x5f207d,addKeyboardHandlingForGrid as _0x4bc2e2,CollapsibleView as tt,LabeledFieldView as st,createLabeledInputNumber as it,ContextualBalloon as _0x37b4f6,BalloonPanelView as _0x2e5d73,createDropdown as _0x5d7306}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x205cc2,IconListStyleDecimal as _0x2284b3,IconListStyleDecimalLeadingZero as _0x5b5fd6,IconListStyleLowerRoman as _0x2fb8f2,IconListStyleUpperRoman as _0x3bb33d,IconListStyleLowerLatin as _0x3379b4,IconListStyleUpperLatin as _0x159f95}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x51ff45,_0x4d13ee){this['_model']=_0x51ff45,this['_elementName']=_0x4d13ee['elementName'],this['_getElementKey']=_0x4d13ee['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x1a6e2e){const _0x3160ef=new Set(),_0x5892b8=new Map();for(const _0x3e843a of _0x1a6e2e){if('insert'===_0x3e843a['type']&&'$text'!==_0x3e843a['name']&&_0x3e843a['position']['nodeAfter']){const _0x4dbf10=this['_model']['createRangeOn'](_0x3e843a['position']['nodeAfter']);for(const _0x3e375d of _0x4dbf10['getItems']()){if(!_0x3e375d['is']('element',this['_elementName']))continue;const _0x5598f3=this['_getElementKey'](_0x3e375d);_0x5892b8['has'](_0x5598f3)||_0x5892b8['set'](_0x5598f3,[]),_0x5892b8['get'](_0x5598f3)['push'](_0x3e375d);}}if('remove'===_0x3e843a['type']&&_0x3e843a['name']===this['_elementName']){const _0x54ed32=this['_getElementKey']({'getAttribute':_0x25d888=>_0x3e843a['attributes']['get'](_0x25d888)});_0x3160ef['add'](_0x54ed32);}}for(const [_0x52a0ab,_0x362972]of this['_trackedElements'])'$graveyard'===_0x362972['root']['rootName']&&_0x3160ef['add'](_0x52a0ab);for(const _0x2e5b73 of _0x3160ef)this['_trackedElements']['delete'](_0x2e5b73);for(const [_0x80991b,_0x208820]of _0x5892b8)this['_trackedElements']['set'](_0x80991b,_0x208820[_0x208820['length']-0x1]);const _0x844b71=new Set();for(const [_0x485908,_0x27ba37]of _0x5892b8)_0x3160ef['has'](_0x485908)&&(_0x844b71['add'](_0x27ba37[0x0]),_0x27ba37['length']>0x1?_0x5892b8['set'](_0x485908,_0x27ba37['slice'](0x1)):_0x5892b8['delete'](_0x485908),_0x3160ef['delete'](_0x485908));return{'removed':Array['from'](_0x3160ef),'inserted':Array['from'](_0x5892b8['values']())['flat'](),'moved':Array['from'](_0x844b71)};}}class c extends _0x1f3d21{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x190a49){super(_0x190a49),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x37c7ed=>_0x37c7ed['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1ea96a=>_0x1ea96a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x29845f}=this,{model:_0x2e91fb,data:_0x2342b5}=_0x29845f;_0x2e91fb['document']['registerPostFixer'](_0x57c280=>{const _0x1b71b4=_0x2e91fb['document']['differ']['getChanges']();let _0x1f76cd=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_handleFootnoteReferencesChanges'](_0x57c280,_0x1b71b4)&&(_0x1f76cd=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x57c280)&&(_0x1f76cd=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x57c280)&&(_0x1f76cd=!0x0),this['_sortFootnoteDefinitions'](_0x57c280)&&(_0x1f76cd=!0x0),_0x1f76cd;}),this['listenTo'](_0x2e91fb['document'],'change:data',()=>{_0x2e91fb['enqueueChange']({'isUndoable':!0x1},_0xd02de6=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xd02de6);});},{'priority':'low'}),this['listenTo'](_0x2342b5,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4811c3){return this['_footnotes']['find'](_0x3b26fa=>_0x3b26fa['id']===_0x4811c3)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x2ea01e){this['_footnoteFormatter']=_0x2ea01e;}['_updateFootnotesCounters'](_0x24216d,_0x1f5cff=0x0){let _0x5b42ff=!0x1;for(let _0x3a7246=_0x1f5cff;_0x3a7246<this['_footnotes']['length'];_0x3a7246++)this['_updateFootnoteRefCounter'](_0x24216d,_0x3a7246)&&(_0x5b42ff=!0x0);return _0x5b42ff;}['_insertEmptyFootnotesDefinitionsContainer'](_0x193cce,_0x1c9b08){const _0x53294b=_0x193cce['createElement']('footnotesDefinitions',{});return _0x193cce['append'](_0x53294b,_0x1c9b08),this['_footnotesDefinitions']=_0x53294b,_0x53294b;}['_ensureFootnotesDefinitionsContainerExists'](_0x89f711){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x379baa=this['_footnotes'][0x0]['reference']['root'],_0x368b1a=this['_insertEmptyFootnotesDefinitionsContainer'](_0x89f711,_0x379baa);for(const _0xe441d of this['_footnotes'])_0xe441d['definition']['parent']||_0x89f711['insert'](_0xe441d['definition'],_0x368b1a,'end');this['_updateFootnotesCounters'](_0x89f711);}['_handleFootnotesDefinitionsObjectChanges'](_0x273069,_0x318fcd){let _0x21859d=!0x1;const {inserted:_0x4afd69,removed:_0x336952,moved:_0x15ecf2}=this['_footnoteDefsContainerTracker']['getChanges'](_0x318fcd);if(_0x15ecf2['length']&&(this['_footnotesDefinitions']=_0x15ecf2[0x0]),_0x4afd69['length']){if(_0x4afd69['length']>0x1||this['_footnotesDefinitions']&&_0x4afd69['some'](_0x411d76=>_0x411d76!==this['_footnotesDefinitions'])){const _0x12dab3=_0x273069['createElement']('footnotesDefinitions',{}),_0x1f5a72=[];this['_footnotesDefinitions']&&_0x1f5a72['push'](this['_footnotesDefinitions']),_0x1f5a72['push'](..._0x4afd69),_0x273069['insert'](_0x12dab3,_0x1f5a72[0x0],'before');for(const _0x24ddaf of _0x1f5a72)_0x273069['move'](_0x273069['createRangeIn'](_0x24ddaf),_0x273069['createPositionAt'](_0x12dab3,'end')),_0x273069['remove'](_0x24ddaf);this['_footnotesDefinitions']=_0x12dab3,this['_updateFootnotesCounters'](_0x273069),_0x21859d=!0x0;}else this['_footnotesDefinitions']=_0x4afd69[0x0];}if(_0x336952['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x75b367 of this['_footnotes'])_0x273069['remove'](_0x75b367['reference']),_0x21859d=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x21859d;}['_handleFootnoteDefinitionsChanges'](_0x4b75c5,_0x4218e3){let _0x1c34ed=!0x1;const _0xa58559=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xc04ddb,moved:_0x306632}=this['_footnoteDefsTracker']['getChanges'](_0x4218e3);for(const _0x47dc0b of[..._0x306632,..._0xc04ddb]){const _0x41e836=_0x47dc0b['getAttribute']('footnoteId'),_0x3eb7ee=this['getFootnote'](_0x41e836);_0x3eb7ee&&(_0x3eb7ee['definition']=_0x47dc0b),_(_0x4b75c5,_0xa58559,_0x47dc0b)&&(_0x1c34ed=!0x0);}return _0x1c34ed;}['_handleFootnoteReferencesChanges'](_0xf6ea97,_0x4346de){let _0x25cae0=!0x1;const {removed:_0x46177f,inserted:_0xd65261,moved:_0x5c5ffe}=this['_footnoteRefsTracker']['getChanges'](_0x4346de);for(const _0x434911 of _0x46177f)this['_handleRemoveFootnoteReferenceById'](_0xf6ea97,_0x434911)&&(_0x25cae0=!0x0);for(const _0x283bba of _0xd65261)this['_handleInsertedFootnoteReference'](_0xf6ea97,_0x283bba)&&(_0x25cae0=!0x0);for(const _0x4255f7 of _0x5c5ffe)this['_handleMovedFootnoteReference'](_0xf6ea97,_0x4255f7)&&(_0x25cae0=!0x0);return _0x25cae0;}['_handleFootnotesDefinitionsObjectSync'](_0x340e25){if(!this['_footnotesDefinitions'])return!0x1;let _0x3b1274=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x3bd472=[];for(const _0x2887e5 of this['_footnotesDefinitions']['getChildren']()){const _0x204bb2=_0x2887e5['getAttribute']('footnoteId');this['getFootnote'](_0x204bb2)||(_0x3bd472['unshift'](_0x2887e5),_0x3b1274=!0x0);}for(const _0x4246c7 of _0x3bd472)_0x340e25['remove'](_0x4246c7);}const _0x2b5c95=new Set(),_0x355535=[];for(const _0x4b405b of this['_footnotesDefinitions']['getChildren']()){const _0x287ff8=_0x4b405b['getAttribute']('footnoteId');_0x2b5c95['has'](_0x287ff8)?(_0x355535['unshift'](_0x4b405b),_0x3b1274=!0x0):_0x2b5c95['add'](_0x287ff8);}for(const _0x45c650 of _0x355535)_0x340e25['remove'](_0x45c650);return this['_footnotesDefinitions']['childCount']||(_0x340e25['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x3b1274=!0x0),_0x3b1274;}['_handleInsertedFootnoteReference'](_0x2c76b2,_0x150b35){if(this['_footnotes']['find'](_0x3d8eab=>_0x3d8eab['reference']===_0x150b35))return!0x1;let _0x5e1791=!0x1;const _0x46dddc=_0x150b35['getAttribute']('footnoteId'),_0x4b4bb9=this['_footnotes']['findIndex'](_0x368fe9=>_0x368fe9['id']===_0x46dddc);-0x1!==_0x4b4bb9&&(_0x2c76b2['remove'](this['_footnotes'][_0x4b4bb9]['reference']),this['_footnotes']['splice'](_0x4b4bb9,0x1),_0x5e1791=!0x0);let _0x56f0a0=this['_footnotesDefinitions']?function(_0x589021,_0x2541e9){for(const _0x4d02d7 of _0x589021['getChildren']())if(_0x4d02d7['getAttribute']('footnoteId')===_0x2541e9)return _0x4d02d7;return null;}(this['_footnotesDefinitions'],_0x46dddc):null;_0x56f0a0||(_0x56f0a0=_0x2c76b2['createElement']('footnoteDefinition',{'footnoteId':_0x46dddc}),this['_footnotesDefinitions']&&(_0x2c76b2['insert'](_0x56f0a0,this['_footnotesDefinitions'],'end'),_0x5e1791=!0x0));const _0x3921c3={'id':_0x46dddc,'reference':_0x150b35,'definition':_0x56f0a0},_0x114cde=I(this['editor']['model'],this['_footnotes'],_0x150b35);this['_footnotes']['splice'](_0x114cde,0x0,_0x3921c3);let _0x4753f3=_0x114cde;return-0x1!==_0x4b4bb9&&(_0x4753f3=Math['min'](_0x114cde,_0x4b4bb9)),this['_updateFootnotesCounters'](_0x2c76b2,_0x4753f3)&&(_0x5e1791=!0x0),_0x5e1791;}['_handleRemoveFootnoteReferenceById'](_0x589eae,_0x16a0b4){const _0x4424b4=this['_footnotes']['findIndex'](_0x1d4260=>_0x1d4260['id']===_0x16a0b4);if(-0x1===_0x4424b4)return!0x1;let _0x5a7596=!0x1;const _0x5cf07f=this['_footnotes'][_0x4424b4];return'$graveyard'!==_0x5cf07f['definition']['root']['rootName']&&(_0x589eae['remove'](_0x5cf07f['definition']),_0x5a7596=!0x0),this['_footnotes']['splice'](_0x4424b4,0x1),this['_updateFootnotesCounters'](_0x589eae,_0x4424b4)&&(_0x5a7596=!0x0),_0x5a7596;}['_handleMovedFootnoteReference'](_0x4e5cae,_0x4b5aeb){const _0x179fe8=_0x4b5aeb['getAttribute']('footnoteId'),_0x4a17ed=this['_footnotes']['findIndex'](_0x367fd2=>_0x367fd2['id']===_0x179fe8),_0x24c1f3=this['_footnotes'][_0x4a17ed];let _0x1e5c7d=!0x1;_0x24c1f3['reference']=_0x4b5aeb,this['_footnotes']['splice'](_0x4a17ed,0x1);const _0x41baae=I(this['editor']['model'],this['_footnotes'],_0x4b5aeb);return this['_footnotes']['splice'](_0x41baae,0x0,_0x24c1f3),this['_updateFootnotesCounters'](_0x4e5cae,Math['min'](_0x4a17ed,_0x41baae))&&(_0x1e5c7d=!0x0),_0x1e5c7d;}['_updateFootnoteRefCounter'](_0x2dafa7,_0x25976d){if(!this['_footnotesDefinitions'])return!0x1;const _0x19aa1f=this['_footnotes'][_0x25976d];let _0x193429;return _0x193429=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x19aa1f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x25976d+0x1}):String(_0x25976d+0x1),_0x19aa1f['reference']['getAttribute']('footnoteCounter')!=_0x193429&&(_0x2dafa7['setAttribute']('footnoteCounter',_0x193429,_0x19aa1f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3fbb54){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3ac97a,_0x4b4e1b){if(_0x3ac97a['length']!==_0x4b4e1b['length'])return!0x1;for(let _0x2c1ffb=0x0;_0x2c1ffb<_0x3ac97a['length'];_0x2c1ffb++)if(_0x3ac97a[_0x2c1ffb]!==_0x4b4e1b[_0x2c1ffb])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x151244=>_0x151244['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x21e3b1=>_0x21e3b1['getAttribute']('footnoteId'))))return!0x1;let _0x3bf5c4=!0x1;for(let _0x98b774=0x0;_0x98b774<this['_footnotes']['length'];_0x98b774++){const _0x386eb8=this['_footnotes'][_0x98b774],_0x327ab3=_0x3fbb54['createPositionBefore'](_0x386eb8['definition']),_0x4e9a72=_0x3fbb54['createPositionAt'](this['_footnotesDefinitions'],_0x98b774);_0x327ab3['isEqual'](_0x4e9a72)||(_0x3fbb54['move'](_0x3fbb54['createRangeOn'](_0x386eb8['definition']),_0x4e9a72),_0x3bf5c4=!0x0);}return _0x3bf5c4;}['_ensureFootnotesReferencesHaveProperOrder'](_0x499889){if(!this['_footnotes']['length'])return!0x1;const {model:_0x2d3291}=this['editor'];let _0x158787=!0x1;for(let _0x4732dd=0x0;_0x4732dd<this['_footnotes']['length']-0x1;_0x4732dd++){const _0x4d2ab2=this['_footnotes'][_0x4732dd],_0x396ec5=this['_footnotes'][_0x4732dd+0x1],_0x5e81b5=_0x2d3291['createPositionBefore'](_0x4d2ab2['reference']),_0x256fea=_0x2d3291['createPositionBefore'](_0x396ec5['reference']);'after'===_0x5e81b5['compareWith'](_0x256fea)&&(this['_handleMovedFootnoteReference'](_0x499889,_0x4d2ab2['reference']),_0x4732dd=-0x1,_0x158787=!0x0);}return _0x158787;}}function _(_0x409219,_0x41a556,_0x1d80da){if(_0x1d80da['childCount'])return!0x1;const _0x3b2685=_0x41a556?'paragraph':'footnoteInlineContent';return _0x409219['insert'](_0x409219['createElement'](_0x3b2685),_0x1d80da),!0x0;}function I(_0x3f572c,_0x4019bc,_0x1243a8){if(0x0===_0x4019bc['length'])return 0x0;const _0x4c9d98=_0x3f572c['createPositionBefore'](_0x1243a8);for(let _0x74aff6=0x0;_0x74aff6<_0x4019bc['length'];_0x74aff6++){const _0x4cc16a=_0x4019bc[_0x74aff6],_0x2d2651=_0x3f572c['createPositionBefore'](_0x4cc16a['reference']);if('before'===_0x4c9d98['compareWith'](_0x2d2651))return _0x74aff6;}const _0x599d0c=_0x1243a8['root'];let _0xcb2166=-0x1;for(let _0x126936=_0x4019bc['length']-0x1;_0x126936>=0x0;_0x126936--)if(_0x4019bc[_0x126936]['reference']['root']===_0x599d0c){_0xcb2166=_0x126936;break;}if(-0x1!==_0xcb2166)return _0xcb2166+0x1;const _0x2a0a65=_0x3f572c['document']['getRootNames'](),_0x502efa=_0x2a0a65['indexOf'](_0x599d0c['rootName']),_0x1464cb=_0x2a0a65[_0x502efa+0x1];if(_0x1464cb){for(let _0xe7d606=0x0;_0xe7d606<_0x4019bc['length'];_0xe7d606++)if(_0x4019bc[_0xe7d606]['reference']['root']['rootName']===_0x1464cb)return _0xe7d606;}return _0x4019bc['length'];}class w extends _0x278339{['refresh'](){const _0x194dd6=this['editor']['model']['document']['selection'],_0x1574f3=this['_getPositionToInsertFootnote'](_0x194dd6);this['isEnabled']=!!_0x1574f3;}['execute'](_0x256460){const {editor:_0x2b9226}=this,{model:_0x4e827f}=_0x2b9226,{selection:_0x5bbd15}=_0x4e827f['document'],_0x42c6bc=this['_getPositionToInsertFootnote'](_0x5bbd15);if(!_0x42c6bc)return;const _0x1bf39c=_0x2b9226['plugins']['get']('FootnotesEditing'),_0x39a68a=_0x256460?.['footnoteId']??_0x17bb3f();!function(_0x532f4d){return'string'==typeof _0x532f4d&&_0x532f4d['length']>0x0&&!/\s/['test'](_0x532f4d)&&!/^\d/['test'](_0x532f4d);}(_0x39a68a)?_0x5d35ce('insert-footnote-command-executed-with-invalid-id'):(_0x4e827f['change'](_0x15be06=>{const _0x240b86=_0x15be06['createElement']('footnoteRef',{'footnoteId':_0x39a68a});_0x4e827f['insertObject'](_0x240b86,_0x42c6bc,null);}),_0x1bf39c['_moveSelectionToFootnoteDefinition'](_0x39a68a));}['_getPositionToInsertFootnote'](_0x24376c){const {model:_0xa523a2}=this['editor'],{schema:_0x5ceb32}=_0xa523a2,_0x2166c5=_0x24376c['getFirstRange']();for(const _0x2118d9 of _0x2166c5['getItems']())if(_0x5ceb32['isBlock'](_0x2118d9)||_0x5ceb32['isObject'](_0x2118d9))return null;const _0xcda1d2=_0x2166c5['end'];return _0x5ceb32['checkChild'](_0xcda1d2,'footnoteRef')?_0xcda1d2:null;}}class r extends _0x1f3d21{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1a1dc1}=this;_0x1a1dc1['config']['define']('footnotes.multiBlock',!0x0),_0x1a1dc1['commands']['add']('insertFootnote',new w(_0x1a1dc1)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x15b3eb){const _0x56a332=_0x51eb34([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]),_0x3b3a7d=0x47a28506,_0x4008a0=0x47a5f2de^_0x3b3a7d,_0x45119c=window[_0x51eb34([0x44,0x61,0x74,0x65])][_0x51eb34([0x6e,0x6f,0x77])](),_0x55effc=_0x15b3eb[_0x51eb34([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4f1fc3=new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2f1b38=>{_0x55effc[_0x51eb34([0x6f,0x6e,0x63,0x65])](_0x51eb34([0x72,0x65,0x61,0x64,0x79]),_0x2f1b38);}),_0x8d833d={[_0x51eb34([0x6b,0x74,0x79])]:_0x51eb34([0x45,0x43]),[_0x51eb34([0x75,0x73,0x65])]:_0x51eb34([0x73,0x69,0x67]),[_0x51eb34([0x63,0x72,0x76])]:_0x51eb34([0x50,0x2d,0x32,0x35,0x36]),[_0x51eb34([0x78])]:_0x51eb34([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]),[_0x51eb34([0x79])]:_0x51eb34([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]),[_0x51eb34([0x61,0x6c,0x67])]:_0x51eb34([0x45,0x53,0x32,0x35,0x36])},_0x3b751b=_0x55effc[_0x51eb34([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x51eb34([0x67,0x65,0x74])](_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x266379(){let _0x38f071,_0x39c2d2=null,_0x5b8cac=null;try{if(_0x3b751b==_0x51eb34([0x47,0x50,0x4c]))return _0x51eb34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x38f071=_0x453e17(),!_0x38f071)return _0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x38f071[_0x51eb34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5b8cac=_0x21a651(_0x38f071[_0x51eb34([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x38f071[_0x51eb34([0x6a,0x74,0x69])])),await _0x54fedf()?_0xd4b54()?_0x253538()?_0x51eb34([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2a6f0b()?(_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51eb34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x39c2d2=_0x26167a(_0x51eb34([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x51eb34([0x74,0x72,0x69,0x61,0x6c])&&(_0x39c2d2=_0x26167a(_0x51eb34([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0xb43cf9()):_0x51eb34([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x51eb34([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x51eb34([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x253538(){const _0x1a55e6=[_0x51eb34([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x51eb34([0x74,0x72,0x69,0x61,0x6c])][_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x45119c/0x3e8:0xe10*_0x4008a0;return _0x38f071[_0x51eb34([0x65,0x78,0x70])]<_0x1a55e6;}function _0xd4b54(){const _0x42ab8f=_0x38f071[_0x51eb34([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x42ab8f&&(!!_0x42ab8f[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x2a]))||!!_0x42ab8f[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x46,0x4f,0x4f])));}function _0x2a6f0b(){const _0x1b10b7=_0x38f071[_0x51eb34([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b10b7||0x0==_0x1b10b7[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x52d3df}=new URL(window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b10b7[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x52d3df))return!0x0;const _0x5b91e1=_0x52d3df[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e]));return _0x1b10b7[_0x51eb34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x1491cc=>_0x1491cc[_0x51eb34([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x51eb34([0x2a])))[_0x51eb34([0x6d,0x61,0x70])](_0xdcb4d=>_0xdcb4d[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e])))[_0x51eb34([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x801b36=>_0x801b36[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5b91e1[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51eb34([0x6d,0x61,0x70])](_0x6c9ee2=>Array(_0x5b91e1[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x6c9ee2[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x51eb34([0x66,0x69,0x6c,0x6c])](_0x6c9ee2[0x0]===_0x51eb34([0x2a])?_0x51eb34([0x2a]):'')[_0x51eb34([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x6c9ee2))[_0x51eb34([0x73,0x6f,0x6d,0x65])](_0x19b6c4=>_0x5b91e1[_0x51eb34([0x65,0x76,0x65,0x72,0x79])]((_0x5a7b22,_0x1095b0)=>_0x19b6c4[_0x1095b0]===_0x5a7b22||_0x19b6c4[_0x1095b0]===_0x51eb34([0x2a])));}function _0xb43cf9(){return _0x39c2d2&&_0x5b8cac?new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3b50ad,_0x1839cf)=>{_0x39c2d2[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x3b50ad,_0x1839cf),_0x5b8cac[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x33a1bd=>{_0x33a1bd!=_0x51eb34([0x56,0x61,0x6c,0x69,0x64])&&_0x3b50ad(_0x33a1bd);},_0x1839cf);}):_0x39c2d2||_0x5b8cac||_0x51eb34([0x56,0x61,0x6c,0x69,0x64]);}}function _0x21a651(_0x5a724c,_0x2d6ea8){return new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x323e29=>{if(_0x4871ff())return _0x323e29(_0x51eb34([0x56,0x61,0x6c,0x69,0x64]));_0x242598(),_0x55effc[_0x51eb34([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x584ed1=!0x1;const _0x30ca2e=_0x17bb3f();function _0x1b6dd2(_0xb2d4a8){return!!_0xb2d4a8&&(typeof _0xb2d4a8===_0x51eb34([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb2d4a8===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb2d4a8[_0x51eb34([0x74,0x68,0x65,0x6e])]===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb2d4a8[_0x51eb34([0x63,0x61,0x74,0x63,0x68])]===_0x51eb34([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x44838a(_0x384e4a){_0x9791e8(_0x384e4a)[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x52880b=>{if(!_0x52880b||_0x52880b[_0x51eb34([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x51eb34([0x6f,0x6b]))return _0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1ba8d5(_0x457d54(_0x30ca2e+_0x2d6ea8))!=_0x52880b[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x51eb34([0x56,0x61,0x6c,0x69,0x64]);})[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x45669a=>(_0x1823ce(),_0x45669a),()=>{const _0x5552f9=_0x3f0072();return null==_0x5552f9?(_0x1823ce(),_0x51eb34([0x56,0x61,0x6c,0x69,0x64])):_0x51eb34(_0x45119c-_0x5552f9>(0x63ae0106^_0x3b3a7d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x323e29)[_0x51eb34([0x63,0x61,0x74,0x63,0x68])](()=>{_0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3783e2=0x47946b86^_0x3b3a7d;function _0x1823ce(){const _0x48c661=_0x51eb34([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ba8d5(_0x457d54(_0x5a724c)),_0x348a4b=_0xeb571b(_0x1ba8d5(window[_0x51eb34([0x4d,0x61,0x74,0x68])][_0x51eb34([0x63,0x65,0x69,0x6c])](_0x45119c/_0x3783e2)));window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51eb34([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x48c661,_0x348a4b);}function _0x3f0072(){const _0x198b7f=_0x51eb34([0x6c,0x6c,0x63,0x74,0x2d])+_0x1ba8d5(_0x457d54(_0x5a724c)),_0x43c674=window[_0x51eb34([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x51eb34([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x198b7f);return _0x43c674?window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xeb571b(_0x43c674),0x10)*_0x3783e2:null;}function _0x9791e8(_0x41a997){return new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x586dd8,_0x587770)=>{_0x41a997[_0x51eb34([0x74,0x68,0x65,0x6e])](_0x586dd8,_0x587770),window[_0x51eb34([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x587770,0x47a351c6^_0x3b3a7d);});}}_0x55effc[_0x51eb34([0x6f,0x6e])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x21c70a,_0x5147e4)=>{if(_0x5147e4[0x0]!=_0x5a724c)return _0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5147e4[0x1]={..._0x5147e4[0x1],[_0x51eb34([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x30ca2e};},{[_0x51eb34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51eb34([0x68,0x69,0x67,0x68])}),_0x55effc[_0x51eb34([0x6f,0x6e])](_0x51eb34([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x138f35=>{_0x1b6dd2(_0x138f35[_0x51eb34([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x584ed1=!0x0,_0x44838a(_0x138f35[_0x51eb34([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x51eb34([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x51eb34([0x6c,0x6f,0x77])}),_0x4f1fc3[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>{_0x584ed1||_0x323e29(_0x51eb34([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4871ff(){return _0x55effc[_0x51eb34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51eb34([0x76,0x69,0x65,0x77])][_0x51eb34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x51eb34([0x61,0x75,0x74,0x6f]);}function _0x242598(){_0x55effc[_0x51eb34([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x51eb34([0x76,0x69,0x65,0x77])][_0x51eb34([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x51eb34([0x61,0x75,0x74,0x6f]);}}function _0x26167a(_0xfbba4f){const _0x4e8e3f=[new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x349f8c=>setTimeout(_0x349f8c,0x47abbbca^_0x3b3a7d)),_0x4f1fc3[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>new window[(_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x316190=>{let _0x2e2e8a=0x0;_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x6f,0x6e])](_0x51eb34([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3f22e6,_0x216a87)=>{_0x216a87[0x0][_0x51eb34([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2e2e8a++,_0x2e2e8a==(0x47a284fe^_0x3b3a7d)&&(_0x316190(),_0x3f22e6[_0x51eb34([0x6f,0x66,0x66])]());});}))];return window[_0x51eb34([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x51eb34([0x72,0x61,0x63,0x65])](_0x4e8e3f)[_0x51eb34([0x74,0x68,0x65,0x6e])](()=>_0xfbba4f);}async function _0x273f41(){await _0x4f1fc3,_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x9706e2,_0x55effc[_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c])][_0x51eb34([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x9706e2,_0x55effc[_0x51eb34([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x51eb34([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x44eac1(_0x1184e4){const _0x24157a=_0x145e62();_0x55effc[_0x24157a]=_0x51eb34([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1184e4,_0x1184e4!=_0x51eb34([0x56,0x61,0x6c,0x69,0x64])&&_0x273f41();}function _0x145e62(){const _0x5dd9a3=window[_0x51eb34([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x51eb34([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x51eb34([0x6e,0x6f,0x77])]())[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x51eb34([0x2e]),'');let _0x28d199=_0x51eb34([0x75]);for(let _0x2207ad=0x0;_0x2207ad<_0x5dd9a3[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2207ad+=0x2){let _0x1a7958=window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5dd9a3[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2207ad,_0x2207ad+0x2));_0x1a7958>=_0x56a332[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1a7958-=_0x56a332[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x28d199+=_0x56a332[_0x1a7958];}return _0x28d199;}function _0x453e17(){const _0x2730e7=_0x3b751b[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e]));if(0x3!=_0x2730e7[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5b3dcf(_0x2730e7[0x1]);function _0x5b3dcf(_0x16cd8d){const _0xdc1c2f=_0x1497ea(_0x16cd8d);return _0xdc1c2f&&_0x3fb5aa()?_0xdc1c2f:null;function _0x3fb5aa(){const _0x576fa4=_0xdc1c2f[_0x51eb34([0x6a,0x74,0x69])],_0x56df05=window[_0x51eb34([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x576fa4[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x576fa4[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x9c54a2={..._0xdc1c2f,[_0x51eb34([0x6a,0x74,0x69])]:_0x576fa4[_0x51eb34([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x576fa4[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x9c54a2[_0x51eb34([0x76,0x63])],_0x457d54(_0x9c54a2)==_0x56df05;}}}async function _0x54fedf(){let _0x2cee5d=!0x0;try{const _0x508ed9=_0x3b751b[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])](_0x51eb34([0x2e])),[_0x215322,_0x398908,_0x4c4584]=_0x508ed9;return _0x13d4c4(_0x215322),await _0x14589e(_0x215322,_0x398908,_0x4c4584),_0x2cee5d;}catch{return!0x1;}function _0x13d4c4(_0x5b4ff4){const _0x45b67d=_0x1497ea(_0x5b4ff4);_0x45b67d&&_0x45b67d[_0x51eb34([0x61,0x6c,0x67])]==_0x51eb34([0x45,0x53,0x32,0x35,0x36])||(_0x2cee5d=!0x1);}async function _0x14589e(_0x2bfe42,_0x54bc9b,_0x39483b){const _0x6610cc=window[_0x51eb34([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x51eb34([0x66,0x72,0x6f,0x6d])](_0x1a3783(_0x39483b),_0x368234=>_0x368234[_0x51eb34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x313f8f=new window[(_0x51eb34([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x51eb34([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2bfe42+_0x51eb34([0x2e])+_0x54bc9b),_0x51d97e=window[_0x51eb34([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x51eb34([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x51d97e)return;const _0x4535d3=await _0x51d97e[_0x51eb34([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x51eb34([0x6a,0x77,0x6b]),_0x8d833d,{[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x45,0x43,0x44,0x53,0x41]),[_0x51eb34([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x51eb34([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x51d97e[_0x51eb34([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x45,0x43,0x44,0x53,0x41]),[_0x51eb34([0x68,0x61,0x73,0x68])]:{[_0x51eb34([0x6e,0x61,0x6d,0x65])]:_0x51eb34([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4535d3,_0x6610cc,_0x313f8f)||(_0x2cee5d=!0x1);}}function _0x1497ea(_0x4ec858){return _0x4ec858[_0x51eb34([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x51eb34([0x65,0x79]))?JSON[_0x51eb34([0x70,0x61,0x72,0x73,0x65])](_0x1a3783(_0x4ec858)):null;}function _0x1a3783(_0x45de61){return window[_0x51eb34([0x61,0x74,0x6f,0x62])](_0x45de61[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x51eb34([0x2b]))[_0x51eb34([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x51eb34([0x2f])));}function _0x457d54(_0x44b5b2){let _0x440e18=0x1505;function _0x4106f6(_0x54b528){for(let _0x35968a=0x0;_0x35968a<_0x54b528[_0x51eb34([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35968a++){const _0x419688=_0x54b528[_0x51eb34([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35968a);_0x440e18=(_0x440e18<<0x5)+_0x440e18+_0x419688,_0x440e18&=_0x440e18;}}function _0x981679(_0x123c66){Array[_0x51eb34([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x123c66)?_0x123c66[_0x51eb34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x981679):_0x123c66&&typeof _0x123c66==_0x51eb34([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x51eb34([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x123c66)[_0x51eb34([0x73,0x6f,0x72,0x74])]()[_0x51eb34([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2ced81,_0x520bfa])=>{_0x4106f6(_0x2ced81),_0x981679(_0x520bfa);}):_0x4106f6(window[_0x51eb34([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x123c66));}return _0x981679(_0x44b5b2),_0x440e18>>>0x0;}function _0x1ba8d5(_0x42dbf7){return _0x42dbf7[_0x51eb34([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x51eb34([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x51eb34([0x30]));}function _0xeb571b(_0xf2a5ab){return _0xf2a5ab[_0x51eb34([0x73,0x70,0x6c,0x69,0x74])]('')[_0x51eb34([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x51eb34([0x6a,0x6f,0x69,0x6e])]('');}function _0x9706e2(){}function _0x51eb34(_0x406b61){return _0x406b61['map'](_0x4061e4=>String['fromCharCode'](_0x4061e4))['join']('');}_0x44eac1(await _0x266379());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2b949b){const {plugins:_0x507b34,editing:_0x51d5a9,model:_0x38e12e}=this['editor'],_0x32a6f9=_0x507b34['get'](c)['getFootnote'](_0x2b949b);return!!_0x32a6f9&&(_0x38e12e['change'](_0x362657=>{_0x362657['setSelection'](_0x362657['createPositionAt'](_0x32a6f9['definition'],'end'));}),_0x51d5a9['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3df88b){const {plugins:_0x978888,editing:_0x49c0c6,model:_0x3eb157}=this['editor'],_0xb36b76=_0x978888['get'](c)['getFootnote'](_0x3df88b);return!!_0xb36b76&&(_0x3eb157['change'](_0x44a438=>{_0x44a438['setSelection'](_0xb36b76['reference'],'on');}),_0x49c0c6['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x429266}=this['editor']['model'],_0x49e129=this['editor']['config']['get']('footnotes.multiBlock');_0x429266['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x429266['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x429266['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x49e129?_0x429266['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x429266['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x429266['addChildCheck'](_0x164a1a=>{for(const _0x148d30 of _0x164a1a)if('footnoteDefinition'===_0x148d30['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1d162a}=this,{conversion:_0x20bb67,editing:_0x245c5e}=_0x1d162a,{t:t}=_0x1d162a['locale'];_0x20bb67['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x2a3595,{writer:_0x20e91d,consumable:_0x10ea57})=>{const _0x376cc9=_0x2a3595['getChild'](0x0);if(!_0x376cc9||!_0x376cc9['is']('element','a'))return null;const _0x4b180=_0x376cc9['getAttribute']('href')||'';if(!_0x4b180['startsWith']('#'))return null;const _0x32f9bc=_0x4b180['replace'](/^#/,'');if(!_0x32f9bc)return null;_0x10ea57['consume'](_0x376cc9,{'name':!0x0,'attributes':['href']});for(const {item:_0x599ec7}of _0x245c5e['view']['createRangeIn'](_0x376cc9))_0x599ec7['is']('$textProxy')?_0x10ea57['consume'](_0x599ec7['textNode'],{'name':!0x0}):_0x599ec7['is']('element')&&_0x10ea57['consume'](_0x599ec7,{'name':!0x0});return _0x20e91d['createElement']('footnoteRef',{'footnoteId':_0x32f9bc});}}),_0x20bb67['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x545300,{writer:_0x53bba0})=>D(_0x545300,_0x53bba0)}),_0x20bb67['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xd2890c,{writer:_0x305474})=>{const _0x166233=_0xd2890c['getAttribute']('footnoteCounter');return _0x2c15fa(D(_0xd2890c,_0x305474),_0x305474,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x166233)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5195b6}=this,{t:t}=_0x5195b6['locale'],{conversion:_0x3f082b}=_0x5195b6;_0x3f082b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3f082b['for']('upcast')['add'](_0x495f29=>{_0x495f29['on']('element:ol',(_0x53620d,_0x592076,_0x48ab2e)=>{const _0x4c1c04=_0x592076['viewItem'];if(!_0x4c1c04['hasClass']('footnotes-list')||!_0x592076['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x48ab2e['consumable']['consume'](_0x4c1c04,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5c6c5a,modelCursor:_0x1db45d}=_0x48ab2e['convertChildren'](_0x592076['viewItem'],_0x592076['modelCursor']);_0x592076['modelRange']=_0x5c6c5a,_0x592076['modelCursor']=_0x1db45d;}),_0x495f29['on']('element:hr',(_0x2079ea,_0x15bcac,_0x1d200e)=>{const _0x5c6b6b=_0x15bcac['viewItem'];_0x5c6b6b['hasClass']('footnotes-divider')&&_0x15bcac['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1d200e['consumable']['consume'](_0x5c6b6b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3f082b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1be48,{writer:_0x27f190})=>g(_0x27f190)}),_0x3f082b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x330319,{writer:_0x280dd9})=>{const _0x375e5f=g(_0x280dd9,{'data-footnotes-list-label':t('Footnotes')}),_0x208676=_0x2c15fa(_0x375e5f,_0x280dd9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x280dd9['setCustomProperty']('footnotesDefinitions',!0x0,_0x208676),_0x208676;}});}['_defineDefinitionConverters'](){const {editor:_0x37ce85}=this,{conversion:_0x2ea3d9,locale:_0x5400b5}=_0x37ce85,_0xae38a=_0x37ce85['config']['get']('footnotes.multiBlock');_0x2ea3d9['for']('upcast')['add'](_0x4d769d=>{_0x4d769d['on']('element:li',(_0x319f2d,_0xaf3c21,_0x213b56)=>{const _0x19589a=_0xaf3c21['viewItem'];if(!_0x19589a['hasClass']('footnote-definition')||!_0x19589a['getAttribute']('id'))return;const _0x28913d=_0x19589a['parent'];if(!_0x28913d['is']('element','ol')||!_0x28913d['hasClass']('footnotes-list'))return;if(!_0x213b56['consumable']['test'](_0x19589a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x298ceb=_0x213b56['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x19589a['getAttribute']('id')});if(!_0x213b56['safeInsert'](_0x298ceb,_0xaf3c21['modelCursor']))return;_0x213b56['consumable']['consume'](_0x19589a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x328203=Array['from'](_0x19589a['getChildren']())['find'](_0x15258c=>_0x15258c['is']('element')&&_0x15258c['hasClass']('footnote-content'));for(const _0x5d7633 of _0x19589a['getChildren']())_0x5d7633['is']('element')&&(_0x213b56['consumable']['consume'](_0x5d7633,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x213b56['consumable']['consume'](_0x5d7633,{'name':!0x0,'classes':'footnote-content'}));if(_0x328203){if(_0xae38a)_0x213b56['convertChildren'](_0x328203,_0x298ceb);else{const _0x406fd0=_0x213b56['writer']['createElement']('footnoteInlineContent');_0x213b56['writer']['insert'](_0x406fd0,_0x298ceb),_0x213b56['convertChildren'](_0x328203,_0x406fd0);}}_0x213b56['updateConversionResult'](_0x298ceb,_0xaf3c21);});}),_0x2ea3d9['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x36a40a,{writer:_0x4e92ef})=>v(_0x36a40a,_0x4e92ef,_0x5400b5,{'dataPipeline':!0x0})}),_0x2ea3d9['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x302d0f,{writer:_0x77ea46})=>v(_0x302d0f,_0x77ea46,_0x5400b5)});}['_defineBogusParagraphConverters'](){const {editor:_0x58f39c}=this,{conversion:_0x1fd39e}=_0x58f39c;_0x58f39c['config']['get']('footnotes.multiBlock')?(_0x1fd39e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x1fd39e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x58f39c['model']['document'],'change:data',()=>{!function(_0x593879,_0x177df0){const _0x54eb2b=_0x593879['document']['differ'],_0xcb1bbb=new Set();for(const _0xb4f446 of _0x54eb2b['getChanges']()){const _0x3c9945='attribute'==_0xb4f446['type']?_0xb4f446['range']['start']['parent']:_0xb4f446['position']['parent'];_0x3c9945['is']('element','footnoteDefinition')&&_0xcb1bbb['add'](_0x3c9945);}for(const _0x3d2d52 of _0xcb1bbb['values']()){const _0x4b116f=Array['from'](_0x3d2d52['getChildren']())['filter'](_0x47037b=>p(_0x47037b,_0x177df0['mapper']));for(const _0x3b01e0 of _0x4b116f)_0x177df0['reconvertItem'](_0x3b01e0);}}(_0x58f39c['model'],_0x58f39c['editing']);})):(_0x1fd39e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x1fd39e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5eb7fa,{writer:_0xd2c6fa})=>{const _0x3446d5=_0xd2c6fa['createContainerElement']('span');return _0xd2c6fa['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3446d5),_0x3446d5;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5ca190}=this,{editing:_0x2f3daa,t:t}=_0x5ca190,_0x516de7=_0x5ca190['model']['document']['selection'];_0x5ca190['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x5ca190['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x2f3daa['view']['document'],'enter',(_0xc9f51,_0x2f47a2)=>{const _0x400017=function(_0x56c469){const _0x1ac725=_0x56c469['getSelectedElement']();if(_0x1ac725?.['is']('element','footnoteRef'))return _0x1ac725;return null;}(_0x516de7);if(_0x400017){const _0x580612=_0x400017['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x580612),_0x2f47a2['preventDefault'](),_0xc9f51['stop']();}},{'context':_0x54acc0});}['_defineClickHandlers'](){const {editor:_0x8fccf7}=this,{editing:_0x56f919}=_0x8fccf7;_0x8fccf7['editing']['view']['addObserver'](_0x5743a6),_0x8fccf7['editing']['view']['addObserver'](_0x4d8c97);let _0x326546=!0x1;this['listenTo'](_0x56f919['view']['document'],'pointerdown',(_0x213d67,_0x3472b2)=>{const {target:_0x38cf82}=_0x3472b2,_0xbd6393=_0x56f919['view']['document']['selection'];_0x326546=!!(_0x38cf82['is']('element','a')&&_0x38cf82['parent']?.['is']('element','sup')&&_0x38cf82['parent']['hasClass']('footnote'))&&_0xbd6393['getSelectedElement']()===_0x38cf82['parent'];},{'priority':'high'}),this['listenTo'](_0x56f919['view']['document'],'click',(_0x16f4da,_0x5efc71)=>{const {target:_0x4fbdbd}=_0x5efc71;if(!_0x4fbdbd['is']('element','a'))return;if(_0x4fbdbd['parent']?.['is']('element','sup')&&_0x4fbdbd['parent']['hasClass']('footnote')&&!_0x326546)return void _0x5efc71['preventDefault']();let _0x22b4c3=_0x4fbdbd['getAttribute']('href');if(!_0x22b4c3?.['startsWith']('#'))return;_0x22b4c3=_0x22b4c3['slice'](0x1);let _0x3228ba=!0x1;(_0x22b4c3['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x22b4c3['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x22b4c3))&&(_0x3228ba=!0x0),_0x3228ba&&(_0x5efc71['preventDefault'](),_0x16f4da['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x362259}={}){return(_0x167c18,{writer:_0x38a5ed})=>{if(!h(_0x167c18))return null;if(!_0x362259)return _0x38a5ed['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x55bf5c=_0x38a5ed['createContainerElement']('p');return _0x38a5ed['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x55bf5c),_0x55bf5c;};}function h(_0x441eb1){const {parent:_0x1e40cc}=_0x441eb1;if(!_0x1e40cc?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e40cc['childCount'])return!0x1;for(const _0x1cebc6 of _0x441eb1['getAttributeKeys']())if(!_0x1cebc6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1cebc6)return!0x1;return!0x0;}function p(_0x1bbcc0,_0x2c9422){if(!_0x1bbcc0['is']('element','paragraph'))return!0x1;const _0x57e521=_0x2c9422['toViewElement'](_0x1bbcc0);return!!_0x57e521&&h(_0x1bbcc0)!==_0x57e521['is']('element','span');}function J(_0x2994c2){return _0x54acc0(_0x2994c2)&&_0x2994c2['is']('containerElement')&&!!_0x2994c2['getCustomProperty']('footnotesDefinitions');}function g(_0x577b9e,_0x260ded={}){const _0x5a660c=_0x577b9e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x451ed4=_0x577b9e['createContainerElement']('ol',{'class':'footnotes-list'},_0x577b9e['createSlot']());return _0x577b9e['createContainerElement']('div',{'class':'footnotes',..._0x260ded},[_0x5a660c,_0x451ed4]);}function D(_0xcc4a83,_0x58c0a0){const _0x27716b=_0xcc4a83['getAttribute']('footnoteId'),_0x145b2e=_0xcc4a83['getAttribute']('footnoteCounter'),_0xec2938=_0x58c0a0['createUIElement']('a',{'href':'#'+_0x27716b},function(_0x2db0cf){const _0x1e996a=this['toDomElement'](_0x2db0cf);return _0x1e996a['textContent']=_0x145b2e,_0x1e996a;}),_0xf6f1e6=_0x58c0a0['createContainerElement']('sup',{'id':'ref-'+_0x27716b,'class':'footnote'},[_0xec2938]);return _0xf6f1e6['getFillerOffset']=()=>null,_0xf6f1e6;}function v(_0x270928,_0x179b4a,_0x4bd8f4,{dataPipeline:_0x103853}={}){const {t:t}=_0x4bd8f4,_0x5ea890=_0x270928['getAttribute']('footnoteId'),_0x2f4465=_0x179b4a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5ea890},function(_0x293a5f){const _0x327781=this['toDomElement'](_0x293a5f);return _0x327781['innerText']='^',_0x327781;}),_0x1892ca=_0x103853?_0x179b4a['createContainerElement']('div',{'class':'footnote-content'}):_0x3a0a31(_0x179b4a['createEditableElement']('div',{'class':'footnote-content'}),_0x179b4a,{'label':t('Footnote\x20content.')});return _0x179b4a['insert'](_0x179b4a['createPositionAt'](_0x1892ca,0x0),_0x179b4a['createSlot']()),_0x179b4a['createContainerElement']('li',{'class':'footnote-definition','id':_0x5ea890},[_0x2f4465,_0x1892ca]);}class e extends _0x1f3d21{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x268d6c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5ad368}=this,{plugins:_0x76b9c7,model:_0x2d59b4}=_0x5ad368,_0x5cb5eb=_0x76b9c7['get'](_0x268d6c),_0xb4cca=_0x76b9c7['get'](c);this['listenTo'](_0x5cb5eb,'outputTransformation',(_0x31b3a5,_0x3de4da)=>{const _0xf31427=function(_0x5532b8,_0x3b1d60){const _0x4a4934=new Set();for(const {item:_0x5bc40f}of _0x5532b8['createRangeIn'](_0x3b1d60))_0x5bc40f['is']('element','footnoteRef')&&_0x4a4934['add'](_0x5bc40f['getAttribute']('footnoteId'));return Array['from'](_0x4a4934);}(_0x2d59b4,_0x3de4da['content']);if(!_0xf31427['length'])return;const _0x52ae34=_0xb4cca['getFootnotes'](),_0x81e75a=_0xf31427['reduce']((_0x38326b,_0x5e883e)=>{const _0x4930cc=_0x52ae34['find'](_0x73dd35=>_0x73dd35['id']===_0x5e883e);if(_0x4930cc){const _0xab1153=_0x5ad368['data']['toView'](_0x4930cc['definition'],{'isClipboardPipeline':!0x0}),_0x95f289=_0x5ad368['data']['htmlProcessor']['toData'](_0xab1153);_0x38326b[_0x4930cc['id']]=_0x95f289;}return _0x38326b;},Object['create'](null));_0x3de4da['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x81e75a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x309647}=this,{model:_0x5ae7b6,plugins:_0xcea926}=_0x309647,{view:_0x5966d3}=_0x309647['editing'],_0x2abaeb=_0xcea926['get'](_0x268d6c),_0x3b5fc3=_0xcea926['get'](c);let _0x48c142=null;this['listenTo'](_0x5966d3['document'],'clipboardInput',(_0x59fb5c,_0xe7dca)=>{const _0x440207=_0xe7dca['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x48c142=_0x440207?JSON['parse'](_0x440207):null;}),this['listenTo'](_0x2abaeb,'contentInsertion',(_0x48ce16,_0x1c729c)=>{if(!_0x48c142)return;const _0x54e416=_0x1c729c['sourceEditorId']===this['editor']['id'];_0x54e416&&'drop'===_0x1c729c['method']||_0x5ae7b6['change'](_0x52f3ed=>{!function(_0x490c78,_0x29275e){const _0x38b0f5=[];for(const {item:_0x5c211e}of _0x490c78['createRangeIn'](_0x29275e))_0x5c211e['is']('element','footnotesDefinitions')&&_0x38b0f5['push'](_0x5c211e);for(const _0x248da9 of _0x38b0f5)_0x490c78['remove'](_0x248da9);}(_0x52f3ed,_0x1c729c['content']);let _0x1533c0=_0x3b5fc3['getFootnotesDefinitionsObjectElement']();if(!_0x1533c0){const _0xf826c9=_0x5ae7b6['document']['selection']['getFirstRange']()['root'];_0x1533c0=_0x3b5fc3['_insertEmptyFootnotesDefinitionsContainer'](_0x52f3ed,_0xf826c9);}const _0x1ffce2=function(_0x28ac5e,_0x236cf6,_0x339b37){const _0x25ba36=Object['create'](null);for(const {item:_0x8f040e}of _0x28ac5e['createRangeIn'](_0x236cf6))if(_0x8f040e['is']('element','footnoteRef')){const _0x4206d3=_0x8f040e['getAttribute']('footnoteId');if(!_0x339b37(_0x4206d3))continue;_0x25ba36[_0x4206d3]||(_0x25ba36[_0x4206d3]=_0x17bb3f()),_0x28ac5e['setAttribute']('footnoteId',_0x25ba36[_0x4206d3],_0x8f040e);}return _0x25ba36;}(_0x52f3ed,_0x1c729c['content'],_0x2645ee=>!_0x54e416||null!==_0x3b5fc3['getFootnote'](_0x2645ee));for(const [_0x456b7c,_0x3f403b]of Object['entries'](_0x48c142)){const _0x475200=_0x1ffce2[_0x456b7c]||_0x456b7c,_0x58d057=_0x52f3ed['createElement']('footnoteDefinition',{'footnoteId':_0x475200}),_0x97e2f3=_0x309647['data']['htmlProcessor']['toView'](_0x3f403b),_0x53a1f1=_0x309647['data']['toModel'](_0x97e2f3,_0x58d057);_0x52f3ed['append'](_0x53a1f1,_0x58d057),_0x52f3ed['insert'](_0x58d057,_0x1533c0,'end');}_0x48c142=null;});});}}class i extends _0x1f3d21{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x608bd4}=this,{componentFactory:_0x322615}=_0x608bd4['ui'];_0x322615['add']('insertFootnote',x(_0x608bd4,_0x238c7e)),_0x322615['add']('menuBar:insertFootnote',x(_0x608bd4,_0x4d1176)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0xd5da9c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x26d2c3;for(const _0x110132 in _0xd5da9c){const _0x362e41=_0x110132,_0x136afe=_0xd5da9c[_0x362e41];if('footnotesLicenseKeyValid'==_0x136afe||'footnotesLicenseKeyInvalid'==_0x136afe||'footnotesLicenseKeyExpired'==_0x136afe||'footnotesLicenseKeyDomainLimit'==_0x136afe||'footnotesLicenseKeyNotAllowed'==_0x136afe||'footnotesLicenseKeyEvaluationLimit'==_0x136afe||'footnotesLicenseKeyTrialLimit'==_0x136afe||'footnotesLicenseKeyUsageLimit'==_0x136afe){delete _0xd5da9c[_0x362e41],_0x26d2c3=_0x136afe,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x26d2c3&&_0xd5da9c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x36f086,_0x19fd90){const _0x33dd57=_0x36f086['commands']['get']('insertFootnote');return _0x3d881b=>{const {t:t}=_0x3d881b,_0x1661d6=new _0x19fd90(_0x3d881b),_0xd6b79e=_0x1661d6 instanceof _0x4d1176;return _0x1661d6['bind']('isEnabled')['to'](_0x33dd57,'isEnabled'),_0x1661d6['set']({'label':t(_0xd6b79e?'Footnote':'Insert\x20footnote'),'icon':_0x205cc2,'tooltip':!0x0}),_0x1661d6['on']('execute',()=>{_0x33dd57['execute'](),_0x36f086['editing']['view']['focus']();}),_0x1661d6;};}class nt extends _0x1f3d21{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 _0x278339{['refresh'](){const {editor:_0x33132d}=this,_0x4ba462=_0x33132d['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4ba462,this['value']=_0x4ba462?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x138af7}){const {editor:_0x1dc921}=this,_0x4b9645=_0x1dc921['plugins']['get'](c),_0x2ceb0f=_0x4b9645['getFootnotesDefinitionsObjectElement']();_0x2ceb0f&&Q['includes'](_0x138af7)&&_0x1dc921['model']['change'](_0x89b574=>{_0x89b574['setAttribute']('footnotesListStyle',_0x138af7,_0x2ceb0f),_0x4b9645['_updateFootnotesCounters'](_0x89b574);});}}class b extends _0x278339{['refresh'](){const {editor:_0x1a0e68}=this,_0x4f04eb=_0x1a0e68['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4f04eb,this['value']=_0x4f04eb?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1bffb5}){const {editor:_0x4db566}=this,_0x49935b=_0x4db566['plugins']['get'](c),_0x1da13d=_0x49935b['getFootnotesDefinitionsObjectElement']();_0x1da13d&&Number['isInteger'](_0x1bffb5)&&_0x4db566['model']['change'](_0x1c9509=>{_0x1c9509['setAttribute']('footnotesListStart',_0x1bffb5,_0x1da13d),_0x49935b['_updateFootnotesCounters'](_0x1c9509);});}}class P extends _0x1f3d21{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x561014}=this;_0x561014['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x561014['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x561014['commands']['add']('footnotesStyle',new S(_0x561014)),_0x561014['commands']['add']('footnotesStart',new b(_0x561014)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x37c198}=this,{schema:_0x3dd664}=_0x37c198['model'];_0x3dd664['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2b397e}=this,{conversion:_0x45cc80,model:_0x15d635}=_0x2b397e,{schema:_0x547799}=_0x15d635;_0x45cc80['for']('upcast')['add'](_0x1d76b3=>{_0x1d76b3['on']('element:ol',(_0x560998,_0x37f3c4,_0x1e45e0)=>{const _0xffccac=_0x37f3c4['viewItem'],_0x54cd1b=_0x37f3c4['modelCursor']?.['parent'];_0xffccac['hasClass']('footnotes-list')&&_0x54cd1b?.['is']('element','footnotesDefinitions')&&(function(_0x5068a9,_0x5ea8d2,_0x232ff2,_0x458d84){if(!_0x458d84['checkAttribute'](_0x5ea8d2,'footnotesListStart'))return;let _0x44553f=0x1;const _0x4055df=_0x232ff2['consumable']['consume'](_0x5068a9,{'attributes':'start'});if(_0x4055df){const _0x56ff29=Number['parseInt'](_0x5068a9['getAttribute']('start'),0xa);Number['isNaN'](_0x56ff29)||(_0x44553f=_0x56ff29);}!_0x4055df&&_0x5ea8d2['hasAttribute']('footnotesListStart')||_0x232ff2['writer']['setAttribute']('footnotesListStart',_0x44553f,_0x5ea8d2);}(_0xffccac,_0x54cd1b,_0x1e45e0,_0x547799),function(_0x29b99a,_0xef20f6,_0x35792c,_0x1f3e60){if(!_0x1f3e60['checkAttribute'](_0xef20f6,'footnotesListStyle'))return;let _0x21eb51='decimal',_0x19ad37=!0x1;if(_0x35792c['consumable']['consume'](_0x29b99a,{'attributes':'type'})){const _0xcdfb96={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x29b99a['getAttribute']('type')];_0xcdfb96&&(_0x21eb51=_0xcdfb96),_0x19ad37=!0x0;}_0x35792c['consumable']['consume'](_0x29b99a,{'styles':'list-style-type'})&&(_0x21eb51=_0x29b99a['getStyle']('list-style-type'),_0x19ad37=!0x0),!_0x19ad37&&_0xef20f6['hasAttribute']('footnotesListStyle')||_0x35792c['writer']['setAttribute']('footnotesListStyle',_0x21eb51,_0xef20f6);}(_0xffccac,_0x54cd1b,_0x1e45e0,_0x547799));});}),_0x45cc80['for']('downcast')['add'](_0x2bd269=>{_0x2bd269['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x27b70e,_0x1a417c,_0x1f35c8)=>{if(!_0x1f35c8['consumable']['consume'](_0x1a417c['item'],_0x27b70e['name']))return;const _0x596db0=C(_0x1a417c['item'],_0x1f35c8['mapper']),{attributeNewValue:_0x48d112}=_0x1a417c;null==_0x48d112||0x1===_0x48d112?_0x1f35c8['writer']['removeAttribute']('start',_0x596db0):_0x1f35c8['writer']['setAttribute']('start',String(_0x48d112),_0x596db0);}),_0x2bd269['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3a5b7f,_0x2f584b,_0x548bcc)=>{if(!_0x548bcc['consumable']['consume'](_0x2f584b['item'],_0x3a5b7f['name']))return;const _0x18aa65=C(_0x2f584b['item'],_0x548bcc['mapper']),{attributeNewValue:_0x50e382}=_0x2f584b;_0x50e382&&'decimal'!==_0x50e382?_0x548bcc['writer']['setStyle']('list-style-type',_0x50e382,_0x18aa65):_0x548bcc['writer']['removeStyle']('list-style-type',_0x18aa65);});});}['_definePostfixer'](){const {editor:_0x22e5c0}=this,{model:_0x29e909}=_0x22e5c0,_0x575c9f=_0x22e5c0['plugins']['get'](c),_0x39547a=this['_getDefaultListStyle'](),_0x6ac73=this['_getDefaultStartIndex']();_0x29e909['document']['registerPostFixer'](_0x5a6203=>{const _0x14fcbe=_0x29e909['document']['differ']['getChanges']();let _0xd3fc56=!0x1;for(const _0x4e794d of _0x14fcbe){if('insert'!==_0x4e794d['type']||'$text'===_0x4e794d['name'])continue;const _0x8f210a=_0x29e909['createRangeOn'](_0x4e794d['position']['nodeAfter']);for(const _0x23f66c of _0x8f210a['getItems']())_0x23f66c['is']('element','footnotesDefinitions')&&(!_0x23f66c['hasAttribute']('footnotesListStart')&&_0x29e909['schema']['checkAttribute'](_0x23f66c,'footnotesListStart')&&(_0x5a6203['setAttribute']('footnotesListStart',_0x6ac73,_0x23f66c),_0xd3fc56=!0x0),!_0x23f66c['hasAttribute']('footnotesListStyle')&&_0x29e909['schema']['checkAttribute'](_0x23f66c,'footnotesListStyle')&&(_0x5a6203['setAttribute']('footnotesListStyle',_0x39547a,_0x23f66c),_0xd3fc56=!0x0));}return _0xd3fc56&&_0x575c9f['_updateFootnotesCounters'](_0x5a6203),_0xd3fc56;});}['_defineFormatter'](){const {editor:_0x5c3b8b}=this;_0x5c3b8b['plugins']['get'](c)['setFootnoteFormatter'](_0x1da184=>this['_formatFootnoteListValue'](_0x1da184));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2f2db8,value:_0x1e21bc,digits:_0x564e10}){const _0x4ca9c7=_0x2f2db8['getAttribute']('footnotesListStyle'),_0x341d18=_0x2f2db8['getAttribute']('footnotesListStart'),_0x461047=Math['floor'](_0x1e21bc)+(_0x341d18??0x1)-0x1;switch(_0x4ca9c7){case'decimal-leading-zero':return function(_0x173b07,_0x3fb035){return String(_0x173b07)['padStart'](_0x3fb035,'0');}(_0x461047,Math['max'](0x2,_0x564e10));case'lower-alpha':case'lower-latin':return M(_0x461047,!0x1);case'upper-alpha':case'upper-latin':return M(_0x461047,!0x0);case'lower-roman':return V(_0x461047,!0x1);case'upper-roman':return V(_0x461047,!0x0);default:return String(_0x461047);}}}function C(_0x424d54,_0xe8daa4){const _0x2a4510=_0xe8daa4['toViewElement'](_0x424d54);return Array['from'](_0x2a4510['getChildren']())['find'](_0x42d8ab=>_0x42d8ab['is']('element','ol')&&_0x42d8ab['hasClass']('footnotes-list'));}function M(_0xddbe96,_0x27a58b){let _0xc79b90='',_0x282f5c=_0xddbe96;for(;_0x282f5c>0x0;){const _0x144d12=(_0x282f5c-0x1)%0x1a;_0xc79b90=String['fromCharCode'](0x61+_0x144d12)+_0xc79b90,_0x282f5c=Math['floor']((_0x282f5c-0x1)/0x1a);}return _0x27a58b?_0xc79b90['toUpperCase']():_0xc79b90;}const N=[{'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 V(_0x475c04,_0x39e7ba){let _0xebec45='',_0x2a5f29=_0x475c04;for(const {value:_0x3b6daa,numeral:_0x545e2a}of N)for(;_0x2a5f29>=_0x3b6daa;)_0xebec45+=_0x545e2a,_0x2a5f29-=_0x3b6daa;return _0x39e7ba?_0xebec45:_0xebec45['toLowerCase']();}class H extends _0x13cfa5{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new et();['keystrokes']=new ot();['focusables']=new _0x5477af();['focusCycler'];constructor(_0x5b582f,{styleButtonViews:_0x3c11df,styleGridAriaLabel:_0x40d0e9}){super(_0x5b582f),(this['focusCycler']=new _0x5f207d({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x3c11df,_0x40d0e9),[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 _0x2338af of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2338af['element']);_0x4bc2e2({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>rt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x912140=_0x33246b=>_0x33246b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x912140),this['keystrokes']['set']('arrowleft',_0x912140),this['keystrokes']['set']('arrowup',_0x912140),this['keystrokes']['set']('arrowdown',_0x912140);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x4d66bb,_0x5a92e1){const _0x55d831=new _0x13cfa5(this['locale']);return _0x55d831['children']=_0x55d831['createCollection'](),_0x55d831['children']['addMany'](_0x4d66bb),_0x55d831['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5a92e1,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x55d831['children']}),_0x55d831['children']['delegate']('execute')['to'](this),_0x55d831['focus']=function(){for(const _0x5cfd27 of this['children'])if(_0x5cfd27 instanceof _0x238c7e&&_0x5cfd27['isOn'])return void _0x5cfd27['focus']();this['children']['first']['focus']();},_0x55d831['focusTracker']=new et(),_0x55d831['keystrokes']=new ot(),_0x55d831['render'](),_0x55d831['keystrokes']['listenTo'](_0x55d831['element']),this['children']['add'](_0x55d831),_0x55d831;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x296237=this['_createStartIndexPropertyView'](),_0x188b2f=[_0x296237],_0x433375=new tt(this['locale'],_0x188b2f);return _0x433375['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x433375['buttonView']['bind']('isEnabled')['toMany'](_0x188b2f,'isEnabled',(..._0x5ad8a7)=>_0x5ad8a7['some'](_0x215e75=>_0x215e75)),_0x433375['buttonView']['on']('change:isEnabled',(_0x26cce2,_0x4a0a84,_0x470508)=>{_0x470508||(_0x433375['isCollapsed']=!0x0);}),this['children']['add'](_0x433375),[_0x296237,_0x433375];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x10184e=new st(this['locale'],it);return _0x10184e['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x10184e['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x10184e['fieldView']['on']('input',()=>{const _0x42175c=_0x10184e['fieldView']['element'],_0x12685e=_0x42175c['valueAsNumber'];Number['isNaN'](_0x12685e)?_0x10184e['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x42175c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x12685e}):_0x10184e['errorText']=t(_0x12685e<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x10184e;}}class j extends _0x1f3d21{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x37b4f6,_0x148e9e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1f67ff}=this,{componentFactory:_0x5b7294}=_0x1f67ff['ui'];_0x1f67ff['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x5b7294['add']('footnotesStyle',function(_0x4477dd){return _0x5dfb0e=>{const {t:t}=_0x5dfb0e,_0x56bcd0=_0x4477dd['commands']['get']('footnotesStyle'),_0x4e00f2=_0x5d7306(_0x5dfb0e),{buttonView:_0x5c1f69}=_0x4e00f2;return _0x4e00f2['class']='ck-footnotes-styles-dropdown',_0x4e00f2['bind']('isEnabled')['to'](_0x56bcd0,'isEnabled'),_0x5c1f69['set']({'label':t('Footnotes\x20style'),'icon':_0x205cc2,'tooltip':!0x0}),_0x4e00f2['once']('change:isOpen',()=>{const _0x3a4164=function({editor:_0x5985e8,dropdownView:_0xe0dcab}){const {t:t}=_0x5985e8['locale'],_0x53dd87=t('Footnotes\x20definitions\x20styles'),_0x122905=function(_0x563d8f){const t=_0x563d8f['locale']['t'],_0x39d6c5=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2284b3},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5b5fd6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x2fb8f2},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3bb33d},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3379b4},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x159f95}];return _0x39d6c5['map'](function(_0x363434){const _0xc02cf4=_0x363434['locale'];return({label:_0x44072f,icon:_0x225b11,tooltip:_0x181a51,style:_0x4b6b9a})=>{const _0x1fa567=_0x363434['commands']['get']('footnotesStyle'),_0x13c288=new _0x238c7e(_0xc02cf4);return _0x13c288['set']({'label':_0x44072f,'icon':_0x225b11,'tooltip':_0x181a51}),_0x13c288['bind']('isOn')['to'](_0x1fa567,'value',_0x46aa04=>_0x46aa04===_0x4b6b9a),_0x13c288['bind']('isEnabled')['to'](_0x1fa567,'isEnabled'),_0x13c288['on']('execute',()=>{_0x363434['execute']('footnotesStyle',{'value':_0x4b6b9a}),_0x363434['editing']['view']['focus']();}),_0x13c288;};}(_0x563d8f));}(_0x5985e8),_0x1f45b1=new H(_0x5985e8['locale'],{'styleGridAriaLabel':_0x53dd87,'styleButtonViews':_0x122905});return _0x1f45b1['delegate']('execute')['to'](_0xe0dcab),_0x1f45b1['on']('footnotesListStart',(_0x3eae6a,_0x2e217d)=>{_0x5985e8['execute']('footnotesStart',{'value':_0x2e217d['startIndex']});}),_0x1f45b1;}({'editor':_0x4477dd,'dropdownView':_0x4e00f2});_0x4e00f2['panelView']['children']['add'](_0x3a4164);}),_0x4e00f2;};}(_0x1f67ff));}['afterInit'](){const {editor:_0x59ab5f}=this,{t:t}=_0x59ab5f['locale'],_0x291d46=_0x59ab5f['plugins']['get'](_0x148e9e),{defaultPositions:_0x54c364}=_0x2e5d73;_0x291d46['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x59ab5f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xc26f7d=>{let _0x408c50=_0xc26f7d['getFirstPosition']()?.['parent'];return _0x408c50?.['is']('$text')&&(_0x408c50=_0x408c50['parent']),_0x408c50?.['is']('element')?_0x408c50['findAncestor'](J):null;},'positions':[_0x54c364['southArrowNorth'],_0x54c364['southArrowNorthMiddleWest'],_0x54c364['southArrowNorthMiddleEast'],_0x54c364['southArrowNorthWest'],_0x54c364['southArrowNorthEast'],_0x54c364['northArrowSouth'],_0x54c364['northArrowSouthMiddleWest'],_0x54c364['northArrowSouthMiddleEast'],_0x54c364['northArrowSouthWest'],_0x54c364['northArrowSouthEast'],_0x54c364['viewportStickyNorth']]});}}class lt extends _0x1f3d21{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{nt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,lt as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,b as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,w 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-20251101.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-20251101.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251101.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251101.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251101.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251101.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251101.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251101.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251101.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 _0x2d3a88}from'ckeditor5/src/core.js';import{isWidget as _0x1046a5,toWidget as _0x350666,toWidgetEditable as _0x2ef083}from'ckeditor5/src/widget.js';import{uid as _0x5c143a}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1fc272,ClickObserver as _0x80bd82}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x222515}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xe42b0}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x2d3a88{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x222515];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4cdd53}=this;_0x4cdd53['config']['define']('footnotes.multiBlock',!0x0),_0x4cdd53['commands']['add']('insertFootnote',new _0xe42b0(_0x4cdd53)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x18140a){const _0x1d5d3d=_0x3d5fc3([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]),_0x405899=0x47a28506,_0x50d486=0x47a5f2c6^_0x405899,_0x39b2c3=window[_0x3d5fc3([0x44,0x61,0x74,0x65])][_0x3d5fc3([0x6e,0x6f,0x77])](),_0x10fcc9=_0x18140a[_0x3d5fc3([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x312d59=new window[(_0x3d5fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2bb621=>{_0x10fcc9[_0x3d5fc3([0x6f,0x6e,0x63,0x65])](_0x3d5fc3([0x72,0x65,0x61,0x64,0x79]),_0x2bb621);}),_0x57c22d={[_0x3d5fc3([0x6b,0x74,0x79])]:_0x3d5fc3([0x45,0x43]),[_0x3d5fc3([0x75,0x73,0x65])]:_0x3d5fc3([0x73,0x69,0x67]),[_0x3d5fc3([0x63,0x72,0x76])]:_0x3d5fc3([0x50,0x2d,0x32,0x35,0x36]),[_0x3d5fc3([0x78])]:_0x3d5fc3([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]),[_0x3d5fc3([0x79])]:_0x3d5fc3([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]),[_0x3d5fc3([0x61,0x6c,0x67])]:_0x3d5fc3([0x45,0x53,0x32,0x35,0x36])},_0x29bba0=_0x10fcc9[_0x3d5fc3([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x3d5fc3([0x67,0x65,0x74])](_0x3d5fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x23097f(){let _0x59e22f,_0x325342=null,_0x838f2e=null;try{if(_0x29bba0==_0x3d5fc3([0x47,0x50,0x4c]))return _0x3d5fc3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x59e22f=_0x1a072f(),!_0x59e22f)return _0x3d5fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x59e22f[_0x3d5fc3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x838f2e=_0x5379c0(_0x59e22f[_0x3d5fc3([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x59e22f[_0x3d5fc3([0x6a,0x74,0x69])])),await _0x1877ad()?_0x20a0d7()?_0x30eedc()?_0x3d5fc3([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x32b8a6()?(_0x59e22f[_0x3d5fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d5fc3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x325342=_0x14f0c6(_0x3d5fc3([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x59e22f[_0x3d5fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x3d5fc3([0x74,0x72,0x69,0x61,0x6c])&&(_0x325342=_0x14f0c6(_0x3d5fc3([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3b3c8a()):_0x3d5fc3([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x3d5fc3([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x3d5fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x3d5fc3([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x30eedc(){const _0x40a812=[_0x3d5fc3([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x3d5fc3([0x74,0x72,0x69,0x61,0x6c])][_0x3d5fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x59e22f[_0x3d5fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x39b2c3/0x3e8:0xe10*_0x50d486;return _0x59e22f[_0x3d5fc3([0x65,0x78,0x70])]<_0x40a812;}function _0x20a0d7(){const _0x3d4f9d=_0x59e22f[_0x3d5fc3([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3d4f9d&&(!!_0x3d4f9d[_0x3d5fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5fc3([0x2a]))||!!_0x3d4f9d[_0x3d5fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5fc3([0x46,0x4f,0x4f])));}function _0x32b8a6(){const _0x531664=_0x59e22f[_0x3d5fc3([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x531664||0x0==_0x531664[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2d5d68}=new URL(window[_0x3d5fc3([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x531664[_0x3d5fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2d5d68))return!0x0;const _0x54534b=_0x2d5d68[_0x3d5fc3([0x73,0x70,0x6c,0x69,0x74])](_0x3d5fc3([0x2e]));return _0x531664[_0x3d5fc3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x454621=>_0x454621[_0x3d5fc3([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3d5fc3([0x2a])))[_0x3d5fc3([0x6d,0x61,0x70])](_0x28de6d=>_0x28de6d[_0x3d5fc3([0x73,0x70,0x6c,0x69,0x74])](_0x3d5fc3([0x2e])))[_0x3d5fc3([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x566706=>_0x566706[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54534b[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d5fc3([0x6d,0x61,0x70])](_0x3b8cf4=>Array(_0x54534b[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b8cf4[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x3d5fc3([0x66,0x69,0x6c,0x6c])](_0x3b8cf4[0x0]===_0x3d5fc3([0x2a])?_0x3d5fc3([0x2a]):'')[_0x3d5fc3([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b8cf4))[_0x3d5fc3([0x73,0x6f,0x6d,0x65])](_0x7c42f0=>_0x54534b[_0x3d5fc3([0x65,0x76,0x65,0x72,0x79])]((_0x565fee,_0x5d9cbf)=>_0x7c42f0[_0x5d9cbf]===_0x565fee||_0x7c42f0[_0x5d9cbf]===_0x3d5fc3([0x2a])));}function _0x3b3c8a(){return _0x325342&&_0x838f2e?new window[(_0x3d5fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12ce1c,_0x2f309a)=>{_0x325342[_0x3d5fc3([0x74,0x68,0x65,0x6e])](_0x12ce1c,_0x2f309a),_0x838f2e[_0x3d5fc3([0x74,0x68,0x65,0x6e])](_0x1a0dd9=>{_0x1a0dd9!=_0x3d5fc3([0x56,0x61,0x6c,0x69,0x64])&&_0x12ce1c(_0x1a0dd9);},_0x2f309a);}):_0x325342||_0x838f2e||_0x3d5fc3([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5379c0(_0x16203b,_0x30b1d4){return new window[(_0x3d5fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x10e727=>{if(_0x16eecf())return _0x10e727(_0x3d5fc3([0x56,0x61,0x6c,0x69,0x64]));_0x874e96(),_0x10fcc9[_0x3d5fc3([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x3d5fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x468cc3=!0x1;const _0x475ab6=_0x5c143a();function _0x43dfa2(_0x527cbb){return!!_0x527cbb&&(typeof _0x527cbb===_0x3d5fc3([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x527cbb===_0x3d5fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x527cbb[_0x3d5fc3([0x74,0x68,0x65,0x6e])]===_0x3d5fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x527cbb[_0x3d5fc3([0x63,0x61,0x74,0x63,0x68])]===_0x3d5fc3([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4fb8c0(_0x5b98cc){_0x28cf80(_0x5b98cc)[_0x3d5fc3([0x74,0x68,0x65,0x6e])](_0x2d319e=>{if(!_0x2d319e||_0x2d319e[_0x3d5fc3([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x3d5fc3([0x6f,0x6b]))return _0x3d5fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5a0cf9(_0x41fd52(_0x475ab6+_0x30b1d4))!=_0x2d319e[_0x3d5fc3([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x3d5fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x3d5fc3([0x56,0x61,0x6c,0x69,0x64]);})[_0x3d5fc3([0x74,0x68,0x65,0x6e])](_0x518340=>(_0x32d4ad(),_0x518340),()=>{const _0x5bad6e=_0x6727d4();return null==_0x5bad6e?(_0x32d4ad(),_0x3d5fc3([0x56,0x61,0x6c,0x69,0x64])):_0x3d5fc3(_0x39b2c3-_0x5bad6e>(0x63ae0106^_0x405899)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x3d5fc3([0x74,0x68,0x65,0x6e])](_0x10e727)[_0x3d5fc3([0x63,0x61,0x74,0x63,0x68])](()=>{_0x10e727(_0x3d5fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fa377=0x47946b86^_0x405899;function _0x32d4ad(){const _0x1bfbc3=_0x3d5fc3([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a0cf9(_0x41fd52(_0x16203b)),_0x406073=_0x30ec7d(_0x5a0cf9(window[_0x3d5fc3([0x4d,0x61,0x74,0x68])][_0x3d5fc3([0x63,0x65,0x69,0x6c])](_0x39b2c3/_0x4fa377)));window[_0x3d5fc3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d5fc3([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1bfbc3,_0x406073);}function _0x6727d4(){const _0x2dd8c8=_0x3d5fc3([0x6c,0x6c,0x63,0x74,0x2d])+_0x5a0cf9(_0x41fd52(_0x16203b)),_0x5b13f5=window[_0x3d5fc3([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x3d5fc3([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dd8c8);return _0x5b13f5?window[_0x3d5fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30ec7d(_0x5b13f5),0x10)*_0x4fa377:null;}function _0x28cf80(_0x552322){return new window[(_0x3d5fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e53d,_0x391731)=>{_0x552322[_0x3d5fc3([0x74,0x68,0x65,0x6e])](_0x4e53d,_0x391731),window[_0x3d5fc3([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x391731,0x47a351c6^_0x405899);});}}_0x10fcc9[_0x3d5fc3([0x6f,0x6e])](_0x3d5fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4540a5,_0x975acd)=>{if(_0x975acd[0x0]!=_0x16203b)return _0x10e727(_0x3d5fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x975acd[0x1]={..._0x975acd[0x1],[_0x3d5fc3([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x475ab6};},{[_0x3d5fc3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d5fc3([0x68,0x69,0x67,0x68])}),_0x10fcc9[_0x3d5fc3([0x6f,0x6e])](_0x3d5fc3([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4c5f56=>{_0x43dfa2(_0x4c5f56[_0x3d5fc3([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x468cc3=!0x0,_0x4fb8c0(_0x4c5f56[_0x3d5fc3([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x3d5fc3([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x3d5fc3([0x6c,0x6f,0x77])}),_0x312d59[_0x3d5fc3([0x74,0x68,0x65,0x6e])](()=>{_0x468cc3||_0x10e727(_0x3d5fc3([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x16eecf(){return _0x10fcc9[_0x3d5fc3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d5fc3([0x76,0x69,0x65,0x77])][_0x3d5fc3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x3d5fc3([0x61,0x75,0x74,0x6f]);}function _0x874e96(){_0x10fcc9[_0x3d5fc3([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x3d5fc3([0x76,0x69,0x65,0x77])][_0x3d5fc3([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x3d5fc3([0x61,0x75,0x74,0x6f]);}}function _0x14f0c6(_0x5242c9){const _0x1d8c80=[new window[(_0x3d5fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x101226=>setTimeout(_0x101226,0x47abbbca^_0x405899)),_0x312d59[_0x3d5fc3([0x74,0x68,0x65,0x6e])](()=>new window[(_0x3d5fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e7a2e=>{let _0x3ef953=0x0;_0x10fcc9[_0x3d5fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5fc3([0x6f,0x6e])](_0x3d5fc3([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb309e6,_0x1a0346)=>{_0x1a0346[0x0][_0x3d5fc3([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x3ef953++,_0x3ef953==(0x47a284fe^_0x405899)&&(_0x2e7a2e(),_0xb309e6[_0x3d5fc3([0x6f,0x66,0x66])]());});}))];return window[_0x3d5fc3([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x3d5fc3([0x72,0x61,0x63,0x65])](_0x1d8c80)[_0x3d5fc3([0x74,0x68,0x65,0x6e])](()=>_0x5242c9);}async function _0x53df9b(){await _0x312d59,_0x10fcc9[_0x3d5fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5fc3([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xf10896,_0x10fcc9[_0x3d5fc3([0x6d,0x6f,0x64,0x65,0x6c])][_0x3d5fc3([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xf10896,_0x10fcc9[_0x3d5fc3([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x3d5fc3([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x46176f(_0x413a69){const _0x4092de=_0x40bc69();_0x10fcc9[_0x4092de]=_0x3d5fc3([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x413a69,_0x413a69!=_0x3d5fc3([0x56,0x61,0x6c,0x69,0x64])&&_0x53df9b();}function _0x40bc69(){const _0x5a1b69=window[_0x3d5fc3([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x3d5fc3([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x3d5fc3([0x6e,0x6f,0x77])]())[_0x3d5fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x3d5fc3([0x2e]),'');let _0x382a14=_0x3d5fc3([0x75]);for(let _0x5cceb0=0x0;_0x5cceb0<_0x5a1b69[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5cceb0+=0x2){let _0xc8a161=window[_0x3d5fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a1b69[_0x3d5fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cceb0,_0x5cceb0+0x2));_0xc8a161>=_0x1d5d3d[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xc8a161-=_0x1d5d3d[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x382a14+=_0x1d5d3d[_0xc8a161];}return _0x382a14;}function _0x1a072f(){const _0x37504e=_0x29bba0[_0x3d5fc3([0x73,0x70,0x6c,0x69,0x74])](_0x3d5fc3([0x2e]));if(0x3!=_0x37504e[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5ba45e(_0x37504e[0x1]);function _0x5ba45e(_0x1bd7a1){const _0x195403=_0x487d21(_0x1bd7a1);return _0x195403&&_0x2cfdc9()?_0x195403:null;function _0x2cfdc9(){const _0x41762a=_0x195403[_0x3d5fc3([0x6a,0x74,0x69])],_0x5a21f6=window[_0x3d5fc3([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41762a[_0x3d5fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x41762a[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x536c24={..._0x195403,[_0x3d5fc3([0x6a,0x74,0x69])]:_0x41762a[_0x3d5fc3([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x41762a[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x536c24[_0x3d5fc3([0x76,0x63])],_0x41fd52(_0x536c24)==_0x5a21f6;}}}async function _0x1877ad(){let _0x32c84c=!0x0;try{const _0x8ed3ad=_0x29bba0[_0x3d5fc3([0x73,0x70,0x6c,0x69,0x74])](_0x3d5fc3([0x2e])),[_0x58fe12,_0x50a866,_0x282b7d]=_0x8ed3ad;return _0x322301(_0x58fe12),await _0x5d8645(_0x58fe12,_0x50a866,_0x282b7d),_0x32c84c;}catch{return!0x1;}function _0x322301(_0x224c42){const _0x46585a=_0x487d21(_0x224c42);_0x46585a&&_0x46585a[_0x3d5fc3([0x61,0x6c,0x67])]==_0x3d5fc3([0x45,0x53,0x32,0x35,0x36])||(_0x32c84c=!0x1);}async function _0x5d8645(_0x4693d0,_0x5a5124,_0x151e89){const _0x4a6b4a=window[_0x3d5fc3([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x3d5fc3([0x66,0x72,0x6f,0x6d])](_0x24e80f(_0x151e89),_0x3a350a=>_0x3a350a[_0x3d5fc3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x155810=new window[(_0x3d5fc3([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x3d5fc3([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4693d0+_0x3d5fc3([0x2e])+_0x5a5124),_0x214f7f=window[_0x3d5fc3([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x3d5fc3([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x214f7f)return;const _0xed5a2b=await _0x214f7f[_0x3d5fc3([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x3d5fc3([0x6a,0x77,0x6b]),_0x57c22d,{[_0x3d5fc3([0x6e,0x61,0x6d,0x65])]:_0x3d5fc3([0x45,0x43,0x44,0x53,0x41]),[_0x3d5fc3([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x3d5fc3([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x3d5fc3([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x214f7f[_0x3d5fc3([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x3d5fc3([0x6e,0x61,0x6d,0x65])]:_0x3d5fc3([0x45,0x43,0x44,0x53,0x41]),[_0x3d5fc3([0x68,0x61,0x73,0x68])]:{[_0x3d5fc3([0x6e,0x61,0x6d,0x65])]:_0x3d5fc3([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xed5a2b,_0x4a6b4a,_0x155810)||(_0x32c84c=!0x1);}}function _0x487d21(_0x1dab5c){return _0x1dab5c[_0x3d5fc3([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x3d5fc3([0x65,0x79]))?JSON[_0x3d5fc3([0x70,0x61,0x72,0x73,0x65])](_0x24e80f(_0x1dab5c)):null;}function _0x24e80f(_0x683189){return window[_0x3d5fc3([0x61,0x74,0x6f,0x62])](_0x683189[_0x3d5fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x3d5fc3([0x2b]))[_0x3d5fc3([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x3d5fc3([0x2f])));}function _0x41fd52(_0x58ea6d){let _0x5c1909=0x1505;function _0x431b7b(_0x5ec641){for(let _0x17723f=0x0;_0x17723f<_0x5ec641[_0x3d5fc3([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17723f++){const _0x3a08de=_0x5ec641[_0x3d5fc3([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x17723f);_0x5c1909=(_0x5c1909<<0x5)+_0x5c1909+_0x3a08de,_0x5c1909&=_0x5c1909;}}function _0x191ac8(_0xffe4f8){Array[_0x3d5fc3([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xffe4f8)?_0xffe4f8[_0x3d5fc3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x191ac8):_0xffe4f8&&typeof _0xffe4f8==_0x3d5fc3([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x3d5fc3([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xffe4f8)[_0x3d5fc3([0x73,0x6f,0x72,0x74])]()[_0x3d5fc3([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xd4f07c,_0x2f65bf])=>{_0x431b7b(_0xd4f07c),_0x191ac8(_0x2f65bf);}):_0x431b7b(window[_0x3d5fc3([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xffe4f8));}return _0x191ac8(_0x58ea6d),_0x5c1909>>>0x0;}function _0x5a0cf9(_0xefdb93){return _0xefdb93[_0x3d5fc3([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x3d5fc3([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x3d5fc3([0x30]));}function _0x30ec7d(_0x134c9c){return _0x134c9c[_0x3d5fc3([0x73,0x70,0x6c,0x69,0x74])]('')[_0x3d5fc3([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x3d5fc3([0x6a,0x6f,0x69,0x6e])]('');}function _0xf10896(){}function _0x3d5fc3(_0x45fb99){return _0x45fb99['map'](_0xfdc66c=>String['fromCharCode'](_0xfdc66c))['join']('');}_0x46176f(await _0x23097f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1459ba){const {plugins:_0x2c30c0,editing:_0x2ea068,model:_0x323cde}=this['editor'],_0x45cbcf=_0x2c30c0['get'](_0x222515)['getFootnote'](_0x1459ba);return!!_0x45cbcf&&(_0x323cde['change'](_0x298125=>{_0x298125['setSelection'](_0x298125['createPositionAt'](_0x45cbcf['definition'],'end'));}),_0x2ea068['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1a2376){const {plugins:_0x234290,editing:_0x15be41,model:_0x75f4}=this['editor'],_0x6be424=_0x234290['get'](_0x222515)['getFootnote'](_0x1a2376);return!!_0x6be424&&(_0x75f4['change'](_0x57233c=>{_0x57233c['setSelection'](_0x6be424['reference'],'on');}),_0x15be41['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5b156c}=this['editor']['model'],_0x570299=this['editor']['config']['get']('footnotes.multiBlock');_0x5b156c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5b156c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5b156c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x570299?_0x5b156c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5b156c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5b156c['addChildCheck'](_0x1ed2e0=>{for(const _0x50a8c9 of _0x1ed2e0)if('footnoteDefinition'===_0x50a8c9['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x5b47c7}=this,{conversion:_0x3b0013,editing:_0x624aed}=_0x5b47c7,{t:t}=_0x5b47c7['locale'];_0x3b0013['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x548d7b,{writer:_0x519aea,consumable:_0xcd8b11})=>{const _0x16e3d0=_0x548d7b['getChild'](0x0);if(!_0x16e3d0||!_0x16e3d0['is']('element','a'))return null;const _0x9dc06b=_0x16e3d0['getAttribute']('href')||'';if(!_0x9dc06b['startsWith']('#'))return null;const _0x4562bc=_0x9dc06b['replace'](/^#/,'');if(!_0x4562bc)return null;_0xcd8b11['consume'](_0x16e3d0,{'name':!0x0,'attributes':['href']});for(const {item:_0xe5e60d}of _0x624aed['view']['createRangeIn'](_0x16e3d0))_0xe5e60d['is']('$textProxy')?_0xcd8b11['consume'](_0xe5e60d['textNode'],{'name':!0x0}):_0xe5e60d['is']('element')&&_0xcd8b11['consume'](_0xe5e60d,{'name':!0x0});return _0x519aea['createElement']('footnoteRef',{'footnoteId':_0x4562bc});}}),_0x3b0013['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x448018,{writer:_0x41d381})=>D(_0x448018,_0x41d381)}),_0x3b0013['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x567f23,{writer:_0x384309})=>{const _0x53461b=_0x567f23['getAttribute']('footnoteCounter');return _0x350666(D(_0x567f23,_0x384309),_0x384309,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x53461b)});}});}['_defineDefinitionsConverters'](){const {editor:_0x9701d5}=this,{t:t}=_0x9701d5['locale'],{conversion:_0x44d875}=_0x9701d5;_0x44d875['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x44d875['for']('upcast')['add'](_0x39a6d6=>{_0x39a6d6['on']('element:ol',(_0x91b1de,_0x2c70a6,_0x5dabcd)=>{const _0x144f7e=_0x2c70a6['viewItem'];if(!_0x144f7e['hasClass']('footnotes-list')||!_0x2c70a6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5dabcd['consumable']['consume'](_0x144f7e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5783d9,modelCursor:_0x5765fd}=_0x5dabcd['convertChildren'](_0x2c70a6['viewItem'],_0x2c70a6['modelCursor']);_0x2c70a6['modelRange']=_0x5783d9,_0x2c70a6['modelCursor']=_0x5765fd;}),_0x39a6d6['on']('element:hr',(_0x4c6f2d,_0x5e887d,_0x41d701)=>{const _0x7f565f=_0x5e887d['viewItem'];_0x7f565f['hasClass']('footnotes-divider')&&_0x5e887d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x41d701['consumable']['consume'](_0x7f565f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x44d875['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xe979e,{writer:_0x56a8f5})=>g(_0x56a8f5)}),_0x44d875['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x418c96,{writer:_0x4f1083})=>{const _0x426cb5=g(_0x4f1083,{'data-footnotes-list-label':t('Footnotes')}),_0x103836=_0x350666(_0x426cb5,_0x4f1083,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4f1083['setCustomProperty']('footnotesDefinitions',!0x0,_0x103836),_0x103836;}});}['_defineDefinitionConverters'](){const {editor:_0x1dc9a9}=this,{conversion:_0x4d43cb,locale:_0x46e2c5}=_0x1dc9a9,_0x3ceb6c=_0x1dc9a9['config']['get']('footnotes.multiBlock');_0x4d43cb['for']('upcast')['add'](_0x3bc4ac=>{_0x3bc4ac['on']('element:li',(_0x4f0923,_0x8762a4,_0x14eb75)=>{const _0xaf4826=_0x8762a4['viewItem'];if(!_0xaf4826['hasClass']('footnote-definition')||!_0xaf4826['getAttribute']('id'))return;const _0x14bea0=_0xaf4826['parent'];if(!_0x14bea0['is']('element','ol')||!_0x14bea0['hasClass']('footnotes-list'))return;if(!_0x14eb75['consumable']['test'](_0xaf4826,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x42baa2=_0x14eb75['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xaf4826['getAttribute']('id')});if(!_0x14eb75['safeInsert'](_0x42baa2,_0x8762a4['modelCursor']))return;_0x14eb75['consumable']['consume'](_0xaf4826,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x4e18ac=Array['from'](_0xaf4826['getChildren']())['find'](_0x10a5e5=>_0x10a5e5['is']('element')&&_0x10a5e5['hasClass']('footnote-content'));for(const _0x4a3650 of _0xaf4826['getChildren']())_0x4a3650['is']('element')&&(_0x14eb75['consumable']['consume'](_0x4a3650,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x14eb75['consumable']['consume'](_0x4a3650,{'name':!0x0,'classes':'footnote-content'}));if(_0x4e18ac){if(_0x3ceb6c)_0x14eb75['convertChildren'](_0x4e18ac,_0x42baa2);else{const _0x5e4a38=_0x14eb75['writer']['createElement']('footnoteInlineContent');_0x14eb75['writer']['insert'](_0x5e4a38,_0x42baa2),_0x14eb75['convertChildren'](_0x4e18ac,_0x5e4a38);}}_0x14eb75['updateConversionResult'](_0x42baa2,_0x8762a4);});}),_0x4d43cb['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x389789,{writer:_0x590adf})=>v(_0x389789,_0x590adf,_0x46e2c5,{'dataPipeline':!0x0})}),_0x4d43cb['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4df5e6,{writer:_0x531404})=>v(_0x4df5e6,_0x531404,_0x46e2c5)});}['_defineBogusParagraphConverters'](){const {editor:_0x4130e1}=this,{conversion:_0x10c86f}=_0x4130e1;_0x4130e1['config']['get']('footnotes.multiBlock')?(_0x10c86f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x10c86f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4130e1['model']['document'],'change:data',()=>{!function(_0x48b5da,_0x206301){const _0x1c1011=_0x48b5da['document']['differ'],_0x536a5c=new Set();for(const _0x43ac03 of _0x1c1011['getChanges']()){const _0x1a7711='attribute'==_0x43ac03['type']?_0x43ac03['range']['start']['parent']:_0x43ac03['position']['parent'];_0x1a7711['is']('element','footnoteDefinition')&&_0x536a5c['add'](_0x1a7711);}for(const _0x36dabc of _0x536a5c['values']()){const _0x5917f2=Array['from'](_0x36dabc['getChildren']())['filter'](_0x12b608=>p(_0x12b608,_0x206301['mapper']));for(const _0xfde9d8 of _0x5917f2)_0x206301['reconvertItem'](_0xfde9d8);}}(_0x4130e1['model'],_0x4130e1['editing']);})):(_0x10c86f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x10c86f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x414cbd,{writer:_0x2a2422})=>{const _0x41047c=_0x2a2422['createContainerElement']('span');return _0x2a2422['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x41047c),_0x41047c;}}));}['_defineKeyboardHandlers'](){const {editor:_0xed5fdf}=this,{editing:_0x1a63ba,t:t}=_0xed5fdf,_0x4e1b5e=_0xed5fdf['model']['document']['selection'];_0xed5fdf['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0xed5fdf['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x1a63ba['view']['document'],'enter',(_0x71cea7,_0x77cd75)=>{const _0x2beda3=function(_0x5e9f0c){const _0x2c8162=_0x5e9f0c['getSelectedElement']();if(_0x2c8162?.['is']('element','footnoteRef'))return _0x2c8162;return null;}(_0x4e1b5e);if(_0x2beda3){const _0x1942b0=_0x2beda3['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1942b0),_0x77cd75['preventDefault'](),_0x71cea7['stop']();}},{'context':_0x1046a5});}['_defineClickHandlers'](){const {editor:_0x1754ab}=this,{editing:_0x2ca1bc}=_0x1754ab;_0x1754ab['editing']['view']['addObserver'](_0x1fc272),_0x1754ab['editing']['view']['addObserver'](_0x80bd82);let _0x13362a=!0x1;this['listenTo'](_0x2ca1bc['view']['document'],'pointerdown',(_0x31ad43,_0x3ec681)=>{const {target:_0x2e7864}=_0x3ec681,_0x418ad6=_0x2ca1bc['view']['document']['selection'];_0x13362a=!!(_0x2e7864['is']('element','a')&&_0x2e7864['parent']?.['is']('element','sup')&&_0x2e7864['parent']['hasClass']('footnote'))&&_0x418ad6['getSelectedElement']()===_0x2e7864['parent'];},{'priority':'high'}),this['listenTo'](_0x2ca1bc['view']['document'],'click',(_0x508630,_0x5042da)=>{const {target:_0x3db452}=_0x5042da;if(!_0x3db452['is']('element','a'))return;if(_0x3db452['parent']?.['is']('element','sup')&&_0x3db452['parent']['hasClass']('footnote')&&!_0x13362a)return void _0x5042da['preventDefault']();let _0x33f6c3=_0x3db452['getAttribute']('href');if(!_0x33f6c3?.['startsWith']('#'))return;_0x33f6c3=_0x33f6c3['slice'](0x1);let _0x491ec2=!0x1;(_0x33f6c3['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x33f6c3['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x33f6c3))&&(_0x491ec2=!0x0),_0x491ec2&&(_0x5042da['preventDefault'](),_0x508630['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x447fc7}={}){return(_0x321669,{writer:_0x2884d2})=>{if(!h(_0x321669))return null;if(!_0x447fc7)return _0x2884d2['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x9ad3f5=_0x2884d2['createContainerElement']('p');return _0x2884d2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x9ad3f5),_0x9ad3f5;};}function h(_0x269e57){const {parent:_0x5c3110}=_0x269e57;if(!_0x5c3110?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5c3110['childCount'])return!0x1;for(const _0x419335 of _0x269e57['getAttributeKeys']())if(!_0x419335['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x419335)return!0x1;return!0x0;}function p(_0x5e00b9,_0x1b932e){if(!_0x5e00b9['is']('element','paragraph'))return!0x1;const _0x26ac9c=_0x1b932e['toViewElement'](_0x5e00b9);return!!_0x26ac9c&&h(_0x5e00b9)!==_0x26ac9c['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x416f46){return _0x1046a5(_0x416f46)&&_0x416f46['is']('containerElement')&&!!_0x416f46['getCustomProperty']('footnotesDefinitions');}function g(_0x4fed74,_0x25b504={}){const _0x30998d=_0x4fed74['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1b6554=_0x4fed74['createContainerElement']('ol',{'class':'footnotes-list'},_0x4fed74['createSlot']());return _0x4fed74['createContainerElement']('div',{'class':'footnotes',..._0x25b504},[_0x30998d,_0x1b6554]);}function D(_0xbd1709,_0x4bd99e){const _0x1c1eec=_0xbd1709['getAttribute']('footnoteId'),_0x6a30a=_0xbd1709['getAttribute']('footnoteCounter'),_0x36f8e9=_0x4bd99e['createUIElement']('a',{'href':'#'+_0x1c1eec},function(_0x22dff2){const _0x3b270f=this['toDomElement'](_0x22dff2);return _0x3b270f['textContent']=_0x6a30a,_0x3b270f;}),_0x4a012f=_0x4bd99e['createContainerElement']('sup',{'id':'ref-'+_0x1c1eec,'class':'footnote'},[_0x36f8e9]);return _0x4a012f['getFillerOffset']=()=>null,_0x4a012f;}function v(_0x5be02a,_0x3a98b9,_0x520f45,{dataPipeline:_0x3f683e}={}){const {t:t}=_0x520f45,_0x2987e1=_0x5be02a['getAttribute']('footnoteId'),_0x43c9f0=_0x3a98b9['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2987e1},function(_0x2b21ce){const _0x379346=this['toDomElement'](_0x2b21ce);return _0x379346['innerText']='^',_0x379346;}),_0x16896a=_0x3f683e?_0x3a98b9['createContainerElement']('div',{'class':'footnote-content'}):_0x2ef083(_0x3a98b9['createEditableElement']('div',{'class':'footnote-content'}),_0x3a98b9,{'label':t('Footnote\x20content.')});return _0x3a98b9['insert'](_0x3a98b9['createPositionAt'](_0x16896a,0x0),_0x3a98b9['createSlot']()),_0x3a98b9['createContainerElement']('li',{'class':'footnote-definition','id':_0x2987e1},[_0x43c9f0,_0x16896a]);}
|
|
23
|
+
import{Plugin as _0x44a4de}from'ckeditor5/src/core.js';import{isWidget as _0x562ade,toWidget as _0x2c514d,toWidgetEditable as _0xfcf061}from'ckeditor5/src/widget.js';import{uid as _0x3731d1}from'ckeditor5/src/utils.js';import{PointerObserver as _0x24fee1,ClickObserver as _0x80f299}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2e716e}from'./footnotestracker.js';import{InsertFootnoteCommand as _0xfb83ec}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x44a4de{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2e716e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4c121e}=this;_0x4c121e['config']['define']('footnotes.multiBlock',!0x0),_0x4c121e['commands']['add']('insertFootnote',new _0xfb83ec(_0x4c121e)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x47763a){const _0x25fadf=_0x4b62d7([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]),_0x17af37=0x47a28506,_0x4bc91d=0x47a5f2de^_0x17af37,_0x5a3d1b=window[_0x4b62d7([0x44,0x61,0x74,0x65])][_0x4b62d7([0x6e,0x6f,0x77])](),_0x2a285e=_0x47763a[_0x4b62d7([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2196d2=new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a27ce=>{_0x2a285e[_0x4b62d7([0x6f,0x6e,0x63,0x65])](_0x4b62d7([0x72,0x65,0x61,0x64,0x79]),_0x3a27ce);}),_0x1ffae4={[_0x4b62d7([0x6b,0x74,0x79])]:_0x4b62d7([0x45,0x43]),[_0x4b62d7([0x75,0x73,0x65])]:_0x4b62d7([0x73,0x69,0x67]),[_0x4b62d7([0x63,0x72,0x76])]:_0x4b62d7([0x50,0x2d,0x32,0x35,0x36]),[_0x4b62d7([0x78])]:_0x4b62d7([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]),[_0x4b62d7([0x79])]:_0x4b62d7([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]),[_0x4b62d7([0x61,0x6c,0x67])]:_0x4b62d7([0x45,0x53,0x32,0x35,0x36])},_0x56ff5f=_0x2a285e[_0x4b62d7([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4b62d7([0x67,0x65,0x74])](_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3cf280(){let _0x8f20ae,_0x454b4f=null,_0xbae097=null;try{if(_0x56ff5f==_0x4b62d7([0x47,0x50,0x4c]))return _0x4b62d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x8f20ae=_0x38d2b4(),!_0x8f20ae)return _0x4b62d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x8f20ae[_0x4b62d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xbae097=_0x125d08(_0x8f20ae[_0x4b62d7([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x8f20ae[_0x4b62d7([0x6a,0x74,0x69])])),await _0x2d2636()?_0x5ad543()?_0x40b347()?_0x4b62d7([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5e8a56()?(_0x8f20ae[_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b62d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x454b4f=_0x3945db(_0x4b62d7([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x8f20ae[_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4b62d7([0x74,0x72,0x69,0x61,0x6c])&&(_0x454b4f=_0x3945db(_0x4b62d7([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x5f217f()):_0x4b62d7([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4b62d7([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4b62d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4b62d7([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40b347(){const _0x3a69dd=[_0x4b62d7([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4b62d7([0x74,0x72,0x69,0x61,0x6c])][_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x8f20ae[_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5a3d1b/0x3e8:0xe10*_0x4bc91d;return _0x8f20ae[_0x4b62d7([0x65,0x78,0x70])]<_0x3a69dd;}function _0x5ad543(){const _0x34d283=_0x8f20ae[_0x4b62d7([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x34d283&&(!!_0x34d283[_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b62d7([0x2a]))||!!_0x34d283[_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b62d7([0x46,0x4f,0x4f])));}function _0x5e8a56(){const _0x754d93=_0x8f20ae[_0x4b62d7([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x754d93||0x0==_0x754d93[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x9b8a0e}=new URL(window[_0x4b62d7([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x754d93[_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9b8a0e))return!0x0;const _0x4a7a71=_0x9b8a0e[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])](_0x4b62d7([0x2e]));return _0x754d93[_0x4b62d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2991ac=>_0x2991ac[_0x4b62d7([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4b62d7([0x2a])))[_0x4b62d7([0x6d,0x61,0x70])](_0x45fd62=>_0x45fd62[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])](_0x4b62d7([0x2e])))[_0x4b62d7([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c29d5=>_0x4c29d5[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4a7a71[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b62d7([0x6d,0x61,0x70])](_0x37722f=>Array(_0x4a7a71[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x37722f[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4b62d7([0x66,0x69,0x6c,0x6c])](_0x37722f[0x0]===_0x4b62d7([0x2a])?_0x4b62d7([0x2a]):'')[_0x4b62d7([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x37722f))[_0x4b62d7([0x73,0x6f,0x6d,0x65])](_0x5a5f46=>_0x4a7a71[_0x4b62d7([0x65,0x76,0x65,0x72,0x79])]((_0x1e9f5a,_0x3c70cb)=>_0x5a5f46[_0x3c70cb]===_0x1e9f5a||_0x5a5f46[_0x3c70cb]===_0x4b62d7([0x2a])));}function _0x5f217f(){return _0x454b4f&&_0xbae097?new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35bc80,_0xf6fb08)=>{_0x454b4f[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x35bc80,_0xf6fb08),_0xbae097[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x4a1abb=>{_0x4a1abb!=_0x4b62d7([0x56,0x61,0x6c,0x69,0x64])&&_0x35bc80(_0x4a1abb);},_0xf6fb08);}):_0x454b4f||_0xbae097||_0x4b62d7([0x56,0x61,0x6c,0x69,0x64]);}}function _0x125d08(_0x5222d5,_0x43a0b9){return new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x12b3ac=>{if(_0x52555c())return _0x12b3ac(_0x4b62d7([0x56,0x61,0x6c,0x69,0x64]));_0x2b3979(),_0x2a285e[_0x4b62d7([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4b62d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4cc59b=!0x1;const _0x2d4738=_0x3731d1();function _0x405752(_0x1b9bd5){return!!_0x1b9bd5&&(typeof _0x1b9bd5===_0x4b62d7([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1b9bd5===_0x4b62d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1b9bd5[_0x4b62d7([0x74,0x68,0x65,0x6e])]===_0x4b62d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1b9bd5[_0x4b62d7([0x63,0x61,0x74,0x63,0x68])]===_0x4b62d7([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2f6c88(_0x187116){_0x124e65(_0x187116)[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x195272=>{if(!_0x195272||_0x195272[_0x4b62d7([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4b62d7([0x6f,0x6b]))return _0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2146d1(_0x410497(_0x2d4738+_0x43a0b9))!=_0x195272[_0x4b62d7([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4b62d7([0x56,0x61,0x6c,0x69,0x64]);})[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x2f02a3=>(_0x5e4a3e(),_0x2f02a3),()=>{const _0x137aa1=_0x33ba30();return null==_0x137aa1?(_0x5e4a3e(),_0x4b62d7([0x56,0x61,0x6c,0x69,0x64])):_0x4b62d7(_0x5a3d1b-_0x137aa1>(0x63ae0106^_0x17af37)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x12b3ac)[_0x4b62d7([0x63,0x61,0x74,0x63,0x68])](()=>{_0x12b3ac(_0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c85d0=0x47946b86^_0x17af37;function _0x5e4a3e(){const _0x56731c=_0x4b62d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2146d1(_0x410497(_0x5222d5)),_0x1d4e2d=_0x38a18f(_0x2146d1(window[_0x4b62d7([0x4d,0x61,0x74,0x68])][_0x4b62d7([0x63,0x65,0x69,0x6c])](_0x5a3d1b/_0x3c85d0)));window[_0x4b62d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b62d7([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x56731c,_0x1d4e2d);}function _0x33ba30(){const _0x431f1a=_0x4b62d7([0x6c,0x6c,0x63,0x74,0x2d])+_0x2146d1(_0x410497(_0x5222d5)),_0x583396=window[_0x4b62d7([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4b62d7([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x431f1a);return _0x583396?window[_0x4b62d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38a18f(_0x583396),0x10)*_0x3c85d0:null;}function _0x124e65(_0x457da8){return new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x12fd4d,_0x48ba8d)=>{_0x457da8[_0x4b62d7([0x74,0x68,0x65,0x6e])](_0x12fd4d,_0x48ba8d),window[_0x4b62d7([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x48ba8d,0x47a351c6^_0x17af37);});}}_0x2a285e[_0x4b62d7([0x6f,0x6e])](_0x4b62d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x39a7c1,_0x1ea7d8)=>{if(_0x1ea7d8[0x0]!=_0x5222d5)return _0x12b3ac(_0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ea7d8[0x1]={..._0x1ea7d8[0x1],[_0x4b62d7([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d4738};},{[_0x4b62d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b62d7([0x68,0x69,0x67,0x68])}),_0x2a285e[_0x4b62d7([0x6f,0x6e])](_0x4b62d7([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x58f5b7=>{_0x405752(_0x58f5b7[_0x4b62d7([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4cc59b=!0x0,_0x2f6c88(_0x58f5b7[_0x4b62d7([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4b62d7([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4b62d7([0x6c,0x6f,0x77])}),_0x2196d2[_0x4b62d7([0x74,0x68,0x65,0x6e])](()=>{_0x4cc59b||_0x12b3ac(_0x4b62d7([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x52555c(){return _0x2a285e[_0x4b62d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b62d7([0x76,0x69,0x65,0x77])][_0x4b62d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4b62d7([0x61,0x75,0x74,0x6f]);}function _0x2b3979(){_0x2a285e[_0x4b62d7([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4b62d7([0x76,0x69,0x65,0x77])][_0x4b62d7([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4b62d7([0x61,0x75,0x74,0x6f]);}}function _0x3945db(_0x16cc5c){const _0xb369b6=[new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1daee7=>setTimeout(_0x1daee7,0x47abbbca^_0x17af37)),_0x2196d2[_0x4b62d7([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11cabd=>{let _0x1dd7b8=0x0;_0x2a285e[_0x4b62d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b62d7([0x6f,0x6e])](_0x4b62d7([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x1d2f92,_0x235021)=>{_0x235021[0x0][_0x4b62d7([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1dd7b8++,_0x1dd7b8==(0x47a284fe^_0x17af37)&&(_0x11cabd(),_0x1d2f92[_0x4b62d7([0x6f,0x66,0x66])]());});}))];return window[_0x4b62d7([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4b62d7([0x72,0x61,0x63,0x65])](_0xb369b6)[_0x4b62d7([0x74,0x68,0x65,0x6e])](()=>_0x16cc5c);}async function _0x2fd79e(){await _0x2196d2,_0x2a285e[_0x4b62d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b62d7([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5d5c55,_0x2a285e[_0x4b62d7([0x6d,0x6f,0x64,0x65,0x6c])][_0x4b62d7([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5d5c55,_0x2a285e[_0x4b62d7([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4b62d7([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4a8761(_0x36d9f0){const _0x1df9f6=_0x346e20();_0x2a285e[_0x1df9f6]=_0x4b62d7([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x36d9f0,_0x36d9f0!=_0x4b62d7([0x56,0x61,0x6c,0x69,0x64])&&_0x2fd79e();}function _0x346e20(){const _0x4e3528=window[_0x4b62d7([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4b62d7([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4b62d7([0x6e,0x6f,0x77])]())[_0x4b62d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4b62d7([0x2e]),'');let _0x43e2e6=_0x4b62d7([0x75]);for(let _0x56a96b=0x0;_0x56a96b<_0x4e3528[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x56a96b+=0x2){let _0x31f621=window[_0x4b62d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4e3528[_0x4b62d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x56a96b,_0x56a96b+0x2));_0x31f621>=_0x25fadf[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x31f621-=_0x25fadf[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43e2e6+=_0x25fadf[_0x31f621];}return _0x43e2e6;}function _0x38d2b4(){const _0x3ac977=_0x56ff5f[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])](_0x4b62d7([0x2e]));if(0x3!=_0x3ac977[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x48cf9d(_0x3ac977[0x1]);function _0x48cf9d(_0x37bb55){const _0xdd3feb=_0xe6e829(_0x37bb55);return _0xdd3feb&&_0x4acba1()?_0xdd3feb:null;function _0x4acba1(){const _0x20c45a=_0xdd3feb[_0x4b62d7([0x6a,0x74,0x69])],_0xe31d8b=window[_0x4b62d7([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20c45a[_0x4b62d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x20c45a[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x947cfe={..._0xdd3feb,[_0x4b62d7([0x6a,0x74,0x69])]:_0x20c45a[_0x4b62d7([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x20c45a[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x947cfe[_0x4b62d7([0x76,0x63])],_0x410497(_0x947cfe)==_0xe31d8b;}}}async function _0x2d2636(){let _0x368d67=!0x0;try{const _0x2f2010=_0x56ff5f[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])](_0x4b62d7([0x2e])),[_0x4fc523,_0x6ad0b,_0x48b608]=_0x2f2010;return _0x197f3f(_0x4fc523),await _0x1f8ba4(_0x4fc523,_0x6ad0b,_0x48b608),_0x368d67;}catch{return!0x1;}function _0x197f3f(_0xf8b59b){const _0x4d800f=_0xe6e829(_0xf8b59b);_0x4d800f&&_0x4d800f[_0x4b62d7([0x61,0x6c,0x67])]==_0x4b62d7([0x45,0x53,0x32,0x35,0x36])||(_0x368d67=!0x1);}async function _0x1f8ba4(_0x599299,_0x42f9c8,_0x3e9da0){const _0x7aff0b=window[_0x4b62d7([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4b62d7([0x66,0x72,0x6f,0x6d])](_0x23e918(_0x3e9da0),_0x2bab54=>_0x2bab54[_0x4b62d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5ea21e=new window[(_0x4b62d7([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4b62d7([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x599299+_0x4b62d7([0x2e])+_0x42f9c8),_0x4b92bb=window[_0x4b62d7([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4b62d7([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4b92bb)return;const _0x210f90=await _0x4b92bb[_0x4b62d7([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4b62d7([0x6a,0x77,0x6b]),_0x1ffae4,{[_0x4b62d7([0x6e,0x61,0x6d,0x65])]:_0x4b62d7([0x45,0x43,0x44,0x53,0x41]),[_0x4b62d7([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4b62d7([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4b62d7([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4b92bb[_0x4b62d7([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4b62d7([0x6e,0x61,0x6d,0x65])]:_0x4b62d7([0x45,0x43,0x44,0x53,0x41]),[_0x4b62d7([0x68,0x61,0x73,0x68])]:{[_0x4b62d7([0x6e,0x61,0x6d,0x65])]:_0x4b62d7([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x210f90,_0x7aff0b,_0x5ea21e)||(_0x368d67=!0x1);}}function _0xe6e829(_0x13f265){return _0x13f265[_0x4b62d7([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4b62d7([0x65,0x79]))?JSON[_0x4b62d7([0x70,0x61,0x72,0x73,0x65])](_0x23e918(_0x13f265)):null;}function _0x23e918(_0x16b218){return window[_0x4b62d7([0x61,0x74,0x6f,0x62])](_0x16b218[_0x4b62d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4b62d7([0x2b]))[_0x4b62d7([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4b62d7([0x2f])));}function _0x410497(_0x3e16a3){let _0x151be3=0x1505;function _0x1a80b2(_0x185b6e){for(let _0xd5563f=0x0;_0xd5563f<_0x185b6e[_0x4b62d7([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xd5563f++){const _0x10b4a9=_0x185b6e[_0x4b62d7([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xd5563f);_0x151be3=(_0x151be3<<0x5)+_0x151be3+_0x10b4a9,_0x151be3&=_0x151be3;}}function _0x53f4ff(_0x481b43){Array[_0x4b62d7([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x481b43)?_0x481b43[_0x4b62d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x53f4ff):_0x481b43&&typeof _0x481b43==_0x4b62d7([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4b62d7([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x481b43)[_0x4b62d7([0x73,0x6f,0x72,0x74])]()[_0x4b62d7([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c65ae,_0x19a223])=>{_0x1a80b2(_0x3c65ae),_0x53f4ff(_0x19a223);}):_0x1a80b2(window[_0x4b62d7([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x481b43));}return _0x53f4ff(_0x3e16a3),_0x151be3>>>0x0;}function _0x2146d1(_0x5dd578){return _0x5dd578[_0x4b62d7([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4b62d7([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4b62d7([0x30]));}function _0x38a18f(_0x23722b){return _0x23722b[_0x4b62d7([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4b62d7([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4b62d7([0x6a,0x6f,0x69,0x6e])]('');}function _0x5d5c55(){}function _0x4b62d7(_0x6144fb){return _0x6144fb['map'](_0x574d74=>String['fromCharCode'](_0x574d74))['join']('');}_0x4a8761(await _0x3cf280());}(this);}['_moveSelectionToFootnoteDefinition'](_0xbdff52){const {plugins:_0x53faeb,editing:_0x4f6b60,model:_0x3ec22c}=this['editor'],_0x2c9353=_0x53faeb['get'](_0x2e716e)['getFootnote'](_0xbdff52);return!!_0x2c9353&&(_0x3ec22c['change'](_0x9bb16f=>{_0x9bb16f['setSelection'](_0x9bb16f['createPositionAt'](_0x2c9353['definition'],'end'));}),_0x4f6b60['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1cc8e1){const {plugins:_0x2da8c6,editing:_0x94c1c,model:_0x89161b}=this['editor'],_0x5ed815=_0x2da8c6['get'](_0x2e716e)['getFootnote'](_0x1cc8e1);return!!_0x5ed815&&(_0x89161b['change'](_0x5e1809=>{_0x5e1809['setSelection'](_0x5ed815['reference'],'on');}),_0x94c1c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x311be7}=this['editor']['model'],_0x3a2aa2=this['editor']['config']['get']('footnotes.multiBlock');_0x311be7['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x311be7['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x311be7['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3a2aa2?_0x311be7['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x311be7['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x311be7['addChildCheck'](_0x36ef55=>{for(const _0x2b21e4 of _0x36ef55)if('footnoteDefinition'===_0x2b21e4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4f4730}=this,{conversion:_0x229435,editing:_0x4e1a40}=_0x4f4730,{t:t}=_0x4f4730['locale'];_0x229435['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xcdd1ae,{writer:_0x1e5897,consumable:_0x1bedfb})=>{const _0x282b65=_0xcdd1ae['getChild'](0x0);if(!_0x282b65||!_0x282b65['is']('element','a'))return null;const _0x3aba8e=_0x282b65['getAttribute']('href')||'';if(!_0x3aba8e['startsWith']('#'))return null;const _0x22c41f=_0x3aba8e['replace'](/^#/,'');if(!_0x22c41f)return null;_0x1bedfb['consume'](_0x282b65,{'name':!0x0,'attributes':['href']});for(const {item:_0x3e957b}of _0x4e1a40['view']['createRangeIn'](_0x282b65))_0x3e957b['is']('$textProxy')?_0x1bedfb['consume'](_0x3e957b['textNode'],{'name':!0x0}):_0x3e957b['is']('element')&&_0x1bedfb['consume'](_0x3e957b,{'name':!0x0});return _0x1e5897['createElement']('footnoteRef',{'footnoteId':_0x22c41f});}}),_0x229435['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x422249,{writer:_0x5cf13a})=>D(_0x422249,_0x5cf13a)}),_0x229435['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5ae499,{writer:_0x4a950f})=>{const _0x186785=_0x5ae499['getAttribute']('footnoteCounter');return _0x2c514d(D(_0x5ae499,_0x4a950f),_0x4a950f,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x186785)});}});}['_defineDefinitionsConverters'](){const {editor:_0x32892b}=this,{t:t}=_0x32892b['locale'],{conversion:_0x15535b}=_0x32892b;_0x15535b['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x15535b['for']('upcast')['add'](_0x3f3fda=>{_0x3f3fda['on']('element:ol',(_0x6bc3bd,_0x374a56,_0x4950e5)=>{const _0x5aaa4f=_0x374a56['viewItem'];if(!_0x5aaa4f['hasClass']('footnotes-list')||!_0x374a56['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4950e5['consumable']['consume'](_0x5aaa4f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x53bbf9,modelCursor:_0x2b58a1}=_0x4950e5['convertChildren'](_0x374a56['viewItem'],_0x374a56['modelCursor']);_0x374a56['modelRange']=_0x53bbf9,_0x374a56['modelCursor']=_0x2b58a1;}),_0x3f3fda['on']('element:hr',(_0x455779,_0x59c91,_0x26c46a)=>{const _0x35dbea=_0x59c91['viewItem'];_0x35dbea['hasClass']('footnotes-divider')&&_0x59c91['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x26c46a['consumable']['consume'](_0x35dbea,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x15535b['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1990c,{writer:_0x3516f})=>g(_0x3516f)}),_0x15535b['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x5afc26,{writer:_0x2d79a3})=>{const _0xa58b0f=g(_0x2d79a3,{'data-footnotes-list-label':t('Footnotes')}),_0x2e5af1=_0x2c514d(_0xa58b0f,_0x2d79a3,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2d79a3['setCustomProperty']('footnotesDefinitions',!0x0,_0x2e5af1),_0x2e5af1;}});}['_defineDefinitionConverters'](){const {editor:_0x119115}=this,{conversion:_0x1c29b8,locale:_0x2701fb}=_0x119115,_0x406210=_0x119115['config']['get']('footnotes.multiBlock');_0x1c29b8['for']('upcast')['add'](_0x24f32f=>{_0x24f32f['on']('element:li',(_0x5294cd,_0x5ef295,_0x57d726)=>{const _0x378308=_0x5ef295['viewItem'];if(!_0x378308['hasClass']('footnote-definition')||!_0x378308['getAttribute']('id'))return;const _0x40df41=_0x378308['parent'];if(!_0x40df41['is']('element','ol')||!_0x40df41['hasClass']('footnotes-list'))return;if(!_0x57d726['consumable']['test'](_0x378308,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x54a32f=_0x57d726['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x378308['getAttribute']('id')});if(!_0x57d726['safeInsert'](_0x54a32f,_0x5ef295['modelCursor']))return;_0x57d726['consumable']['consume'](_0x378308,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2dea02=Array['from'](_0x378308['getChildren']())['find'](_0x3e9568=>_0x3e9568['is']('element')&&_0x3e9568['hasClass']('footnote-content'));for(const _0x24f07b of _0x378308['getChildren']())_0x24f07b['is']('element')&&(_0x57d726['consumable']['consume'](_0x24f07b,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x57d726['consumable']['consume'](_0x24f07b,{'name':!0x0,'classes':'footnote-content'}));if(_0x2dea02){if(_0x406210)_0x57d726['convertChildren'](_0x2dea02,_0x54a32f);else{const _0x4b8bb7=_0x57d726['writer']['createElement']('footnoteInlineContent');_0x57d726['writer']['insert'](_0x4b8bb7,_0x54a32f),_0x57d726['convertChildren'](_0x2dea02,_0x4b8bb7);}}_0x57d726['updateConversionResult'](_0x54a32f,_0x5ef295);});}),_0x1c29b8['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x52b922,{writer:_0x37ed35})=>v(_0x52b922,_0x37ed35,_0x2701fb,{'dataPipeline':!0x0})}),_0x1c29b8['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4d095e,{writer:_0x372975})=>v(_0x4d095e,_0x372975,_0x2701fb)});}['_defineBogusParagraphConverters'](){const {editor:_0x48eb48}=this,{conversion:_0x163b85}=_0x48eb48;_0x48eb48['config']['get']('footnotes.multiBlock')?(_0x163b85['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':m(),'converterPriority':'high'}),_0x163b85['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':m({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x48eb48['model']['document'],'change:data',()=>{!function(_0x3413ec,_0x4cbe1e){const _0x15e28b=_0x3413ec['document']['differ'],_0x26006c=new Set();for(const _0x3d98bb of _0x15e28b['getChanges']()){const _0x553699='attribute'==_0x3d98bb['type']?_0x3d98bb['range']['start']['parent']:_0x3d98bb['position']['parent'];_0x553699['is']('element','footnoteDefinition')&&_0x26006c['add'](_0x553699);}for(const _0x33654a of _0x26006c['values']()){const _0x17dd21=Array['from'](_0x33654a['getChildren']())['filter'](_0x3e166a=>p(_0x3e166a,_0x4cbe1e['mapper']));for(const _0x52d294 of _0x17dd21)_0x4cbe1e['reconvertItem'](_0x52d294);}}(_0x48eb48['model'],_0x48eb48['editing']);})):(_0x163b85['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':m()}),_0x163b85['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x366c4c,{writer:_0x5a83c9})=>{const _0x514917=_0x5a83c9['createContainerElement']('span');return _0x5a83c9['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x514917),_0x514917;}}));}['_defineKeyboardHandlers'](){const {editor:_0x20f4fd}=this,{editing:_0x3aa2f2,t:t}=_0x20f4fd,_0x10b1cc=_0x20f4fd['model']['document']['selection'];_0x20f4fd['keystrokes']['set']('CTRL+Shift+D','insertFootnote'),_0x20f4fd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Shift+D'}]}),this['listenTo'](_0x3aa2f2['view']['document'],'enter',(_0x195fb6,_0xa2d1c9)=>{const _0x3d669a=function(_0x3197aa){const _0x35145e=_0x3197aa['getSelectedElement']();if(_0x35145e?.['is']('element','footnoteRef'))return _0x35145e;return null;}(_0x10b1cc);if(_0x3d669a){const _0x6fccc0=_0x3d669a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x6fccc0),_0xa2d1c9['preventDefault'](),_0x195fb6['stop']();}},{'context':_0x562ade});}['_defineClickHandlers'](){const {editor:_0x3a7a47}=this,{editing:_0x22809a}=_0x3a7a47;_0x3a7a47['editing']['view']['addObserver'](_0x24fee1),_0x3a7a47['editing']['view']['addObserver'](_0x80f299);let _0x3f0aed=!0x1;this['listenTo'](_0x22809a['view']['document'],'pointerdown',(_0x2e2988,_0x32c73a)=>{const {target:_0x4fc5c0}=_0x32c73a,_0x17f217=_0x22809a['view']['document']['selection'];_0x3f0aed=!!(_0x4fc5c0['is']('element','a')&&_0x4fc5c0['parent']?.['is']('element','sup')&&_0x4fc5c0['parent']['hasClass']('footnote'))&&_0x17f217['getSelectedElement']()===_0x4fc5c0['parent'];},{'priority':'high'}),this['listenTo'](_0x22809a['view']['document'],'click',(_0x5f0d33,_0x4cd147)=>{const {target:_0x302c4b}=_0x4cd147;if(!_0x302c4b['is']('element','a'))return;if(_0x302c4b['parent']?.['is']('element','sup')&&_0x302c4b['parent']['hasClass']('footnote')&&!_0x3f0aed)return void _0x4cd147['preventDefault']();let _0x10390d=_0x302c4b['getAttribute']('href');if(!_0x10390d?.['startsWith']('#'))return;_0x10390d=_0x10390d['slice'](0x1);let _0x3660ed=!0x1;(_0x10390d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x10390d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x10390d))&&(_0x3660ed=!0x0),_0x3660ed&&(_0x4cd147['preventDefault'](),_0x5f0d33['stop']());},{'priority':'high','context':'$capture'});}}function m({dataPipeline:_0x349594}={}){return(_0x39c4f7,{writer:_0x53fa68})=>{if(!h(_0x39c4f7))return null;if(!_0x349594)return _0x53fa68['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2b72e7=_0x53fa68['createContainerElement']('p');return _0x53fa68['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2b72e7),_0x2b72e7;};}function h(_0x481cbd){const {parent:_0x38525d}=_0x481cbd;if(!_0x38525d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x38525d['childCount'])return!0x1;for(const _0x31f55 of _0x481cbd['getAttributeKeys']())if(!_0x31f55['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x31f55)return!0x1;return!0x0;}function p(_0x55d71f,_0xe3727d){if(!_0x55d71f['is']('element','paragraph'))return!0x1;const _0x56c88b=_0xe3727d['toViewElement'](_0x55d71f);return!!_0x56c88b&&h(_0x55d71f)!==_0x56c88b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x48f8e5){return _0x562ade(_0x48f8e5)&&_0x48f8e5['is']('containerElement')&&!!_0x48f8e5['getCustomProperty']('footnotesDefinitions');}function g(_0xb6da97,_0x4e6853={}){const _0x5a783a=_0xb6da97['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x35147e=_0xb6da97['createContainerElement']('ol',{'class':'footnotes-list'},_0xb6da97['createSlot']());return _0xb6da97['createContainerElement']('div',{'class':'footnotes',..._0x4e6853},[_0x5a783a,_0x35147e]);}function D(_0x4e3699,_0x128743){const _0x537f9d=_0x4e3699['getAttribute']('footnoteId'),_0x50226d=_0x4e3699['getAttribute']('footnoteCounter'),_0x3d1e86=_0x128743['createUIElement']('a',{'href':'#'+_0x537f9d},function(_0x234388){const _0xb98671=this['toDomElement'](_0x234388);return _0xb98671['textContent']=_0x50226d,_0xb98671;}),_0x16630a=_0x128743['createContainerElement']('sup',{'id':'ref-'+_0x537f9d,'class':'footnote'},[_0x3d1e86]);return _0x16630a['getFillerOffset']=()=>null,_0x16630a;}function v(_0x2b7f02,_0x7dc5c1,_0x42f4af,{dataPipeline:_0x27513}={}){const {t:t}=_0x42f4af,_0xbbe99b=_0x2b7f02['getAttribute']('footnoteId'),_0x1440ba=_0x7dc5c1['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xbbe99b},function(_0x18568f){const _0x5422ed=this['toDomElement'](_0x18568f);return _0x5422ed['innerText']='^',_0x5422ed;}),_0x2895af=_0x27513?_0x7dc5c1['createContainerElement']('div',{'class':'footnote-content'}):_0xfcf061(_0x7dc5c1['createEditableElement']('div',{'class':'footnote-content'}),_0x7dc5c1,{'label':t('Footnote\x20content.')});return _0x7dc5c1['insert'](_0x7dc5c1['createPositionAt'](_0x2895af,0x0),_0x7dc5c1['createSlot']()),_0x7dc5c1['createContainerElement']('li',{'class':'footnote-definition','id':_0xbbe99b},[_0x1440ba,_0x2895af]);}
|