@ckeditor/ckeditor5-footnotes 47.7.1-alpha.0 → 47.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},271(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},366(t){"use strict";t.exports=function(t){return t[1]}},789(t){"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},298(t){"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(t){"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=177]})(t,e)}function c(){const t=["4079IeNNfx","210776uNFVlc","insert","set","_model","rootName","remove","_getElementKey","slice","6CfDJxL","142NiMtyg","_trackedElements","getElementKey","$text","length","nodeAfter","type","get","elementName","flat","getItems","_elementName","from","add","97375ZkquOF","createRangeOn","delete","reset","getChanges","1304103XMHUHd","213458LECQZQ","root","values","position","name","element","2203752DmVCSE","clear","5862807orGFHe","attributes","push","has","$graveyard"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(306681===parseInt(e(218))/1*(parseInt(e(185))/2)+parseInt(e(204))/3+-parseInt(e(219))/4+parseInt(e(199))/5*(-parseInt(e(184))/6)+parseInt(e(205))/7+parseInt(e(211))/8+-parseInt(e(213))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(179)];[r(196)];[r(182)];[r(186)]=new Map;constructor(t,e){const o=r;this[o(179)]=t,this[o(196)]=e[o(193)],this[o(182)]=e[o(187)]}[r(202)](){const t=r;this[t(186)][t(212)]()}[r(203)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(177)===i[e(191)]&&e(188)!==i[e(209)]&&i[e(208)][e(190)]){const t=this[e(179)][e(200)](i[e(208)][e(190)]);for(const o of t[e(195)]()){if(!o.is(e(210),this[e(196)]))continue;const t=this[e(182)](o);n[e(216)](t)||n[e(178)](t,[]),n[e(192)](t)[e(215)](o)}}if(e(181)===i[e(191)]&&i[e(209)]===this[e(196)]){const t=this[e(182)]({getAttribute:t=>i[e(214)][e(192)](t)});o[e(198)](t)}}for(const[t,n]of this[e(186)])e(217)===n[e(206)][e(180)]&&o[e(198)](t);for(const t of o)this[e(186)][e(201)](t);for(const[t,o]of n)this[e(186)][e(178)](t,o[o[e(189)]-1]);const i=new Set;for(const[t,s]of n)o[e(216)](t)&&(i[e(198)](s[0]),s[e(189)]>1?n[e(178)](t,s[e(183)](1)):n[e(201)](t),o[e(201)](t));return{removed:Array[e(197)](o),inserted:Array[e(197)](n[e(207)]())[e(194)](),moved:Array[e(197)](i)}}}function u(t,e){const o=d();return(u=function(t,e){return o[t-=128]})(t,e)}const f=u;function d(){const t=["childCount","_handleMovedFootnoteReference","_handleFootnoteDefinitionsChanges","footnotes.multiBlock","model","indexOf","min","change:data","reference","compareWith","definition","5337LOpxdM","add","18740810nOnKQX","getAttribute","_updateFootnoteRefCounter","_updateFootnotesCounters","_handleFootnoteReferencesChanges","push","singleton","193958rybZRI","getChanges","isEqual","_footnotesDefinitions","reset","differ","high","after","getChildren","rootName","_handleFootnotesDefinitionsObjectSync","createElement","_insertEmptyFootnotesDefinitionsContainer","footnoteCounter","_footnotes","footnotesDefinitions","getFootnotesDefinitionsObjectElement","238olDNuq","_footnoteDefsTracker","4092540wiafWy","unshift","_handleInsertedFootnoteReference","11rkSsUq","8hcMpYk","end","init","pluginName","set","setAttribute","insert","footnoteDefinition","_sortFootnoteDefinitions","from","_ensureFootnotesReferencesHaveProperOrder","listenTo","576090NuXyKu","length","FootnotesTracker","createRangeOn","isPremiumPlugin","document","getRootNames","createPositionAt","28qvUKJQ","enqueueChange","find","setFootnoteFormatter","config","createPositionBefore","_handleRemoveFootnoteReferenceById","some","splice","get","move","17148756elngkc","getFootnote","parent","has","createRangeIn","footnoteInlineContent","findIndex","_footnoteRefsTracker","footnoteRef","remove","getFootnotes","registerPostFixer","77028TKrrlX","_footnoteDefsContainerTracker","before","$graveyard","append","paragraph","footnoteId","root","map","_handleFootnotesDefinitionsObjectChanges","editor","getFootnotesFormatter","isOfficialPlugin","low","_ensureFootnotesDefinitionsContainerExists","_footnoteFormatter","17576SERAKd"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(973563===-parseInt(e(174))/1*(parseInt(e(151))/2)+parseInt(e(170))/3+-parseInt(e(194))/4*(-parseInt(e(186))/5)+parseInt(e(217))/6*(parseInt(e(168))/7)+-parseInt(e(130))/8*(parseInt(e(142))/9)+parseInt(e(144))/10+parseInt(e(173))/11*(-parseInt(e(205))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(165)]=[];[f(154)]=null;[f(129)]=null;[f(218)];[f(212)];[f(169)];static get[f(177)](){return f(188)}static get[f(229)](){return!0}static get[f(190)](){return!0}constructor(t){const e=f;super(t),this[e(218)]=new l(this[e(227)][e(135)],{elementName:e(166),getElementKey:()=>e(150)}),this[e(212)]=new l(this[e(227)][e(135)],{elementName:e(213),getElementKey:t=>t[e(145)](e(223))}),this[e(169)]=new l(this[e(227)][e(135)],{elementName:e(181),getElementKey:t=>t[e(145)](e(223))})}[f(176)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(191)][t(216)](e=>{const n=t,i=o[n(191)][n(156)][n(152)]();let s=!1;return this[n(226)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(148)](e,i)&&(s=!0),this[n(184)](e)&&(s=!0),this[n(161)](e)&&(s=!0),this[n(182)](e)&&(s=!0),s}),this[t(185)](o[t(191)],t(138),()=>{const e=t;o[e(195)]({isUndoable:!1},t=>{this[e(128)](t)})},{priority:t(230)}),this[t(185)](n,t(178),()=>{const e=t;this[e(165)]=[],this[e(218)][e(155)](),this[e(212)][e(155)](),this[e(169)][e(155)]()},{priority:t(157)})}[f(167)](){return this[f(154)]}[f(206)](t){const e=f;return this[e(165)][e(196)](e=>e.id===t)||null}[f(215)](){const t=f;return Array[t(183)](this[t(165)])}[f(228)](){return this[f(129)]}[f(197)](t){this[f(129)]=t}[f(147)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(165)][o(187)];i++)this[o(146)](t,i)&&(n=!0);return n}[f(163)](t,e){const o=f,n=t[o(162)](o(166),{});return t[o(221)](n,e),this[o(154)]=n,n}[f(128)](t){const e=f;if(!this[e(165)][e(187)]||this[e(154)])return;const o=this[e(165)][0][e(139)][e(224)],n=this[e(163)](t,o);for(const o of this[e(165)])o[e(141)][e(207)]||t[e(180)](o[e(141)],n,e(175));this[e(147)](t)}[f(226)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(218)][o(152)](e);if(r[o(187)]&&(this[o(154)]=r[0]),i[o(187)])if(i[o(187)]>1||this[o(154)]&&i[o(201)](t=>t!==this[o(154)])){const e=t[o(162)](o(166),{}),s=[];this[o(154)]&&s[o(149)](this[o(154)]),s[o(149)](...i),t[o(180)](e,s[0],o(219));for(const n of s)t[o(204)](t[o(209)](n),t[o(193)](e,o(175))),t[o(214)](n);this[o(154)]=e,this[o(147)](t),n=!0}else this[o(154)]=i[0];if(s[o(187)]&&o(220)===this[o(154)]?.[o(224)][o(160)]){for(const e of this[o(165)])t[o(214)](e[o(139)]),n=!0;this[o(165)]=[],this[o(154)]=null}return n}[f(133)](t,e){const o=f;let n=!1;const i=this[o(227)][o(198)][o(203)](o(134)),{inserted:s,moved:r}=this[o(169)][o(152)](e);for(const e of[...r,...s]){const s=e[o(145)](o(223)),r=this[o(206)](s);r&&(r[o(141)]=e),p(t,i,e)&&(n=!0)}return n}[f(148)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(212)][o(152)](e);for(const e of i)this[o(200)](t,e)&&(n=!0);for(const e of s)this[o(172)](t,e)&&(n=!0);for(const e of r)this[o(132)](t,e)&&(n=!0);return n}[f(161)](t){const e=f;if(!this[e(154)])return!1;let o=!1;if(this[e(154)][e(131)]!==this[e(165)][e(187)]){const n=[];for(const t of this[e(154)][e(159)]()){const i=t[e(145)](e(223));this[e(206)](i)||(n[e(171)](t),o=!0)}for(const o of n)t[e(214)](o)}const n=new Set,i=[];for(const t of this[e(154)][e(159)]()){const s=t[e(145)](e(223));n[e(208)](s)?(i[e(171)](t),o=!0):n[e(143)](s)}for(const o of i)t[e(214)](o);return this[e(154)][e(131)]||(t[e(214)](this[e(154)]),this[e(154)]=null,o=!0),o}[f(172)](t,e){const o=f;if(this[o(165)][o(196)](t=>t[o(139)]===e))return!1;let n=!1;const i=e[o(145)](o(223)),s=this[o(165)][o(211)](t=>t.id===i);-1!==s&&(t[o(214)](this[o(165)][s][o(139)]),this[o(165)][o(202)](s,1),n=!0);let r=this[o(154)]?function(t,e){const n=o;for(const o of t[n(159)]())if(o[n(145)](n(223))===e)return o;return null}(this[o(154)],i):null;r||(r=t[o(162)](o(181),{footnoteId:i}),this[o(154)]&&(t[o(180)](r,this[o(154)],o(175)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(227)][o(135)],this[o(165)],e);this[o(165)][o(202)](c,0,a);let l=c;return-1!==s&&(l=Math[o(137)](c,s)),this[o(147)](t,l)&&(n=!0),n}[f(200)](t,e){const o=f,n=this[o(165)][o(211)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(165)][n];return o(220)!==s[o(141)][o(224)][o(160)]&&(t[o(214)](s[o(141)]),i=!0),this[o(165)][o(202)](n,1),this[o(147)](t,n)&&(i=!0),i}[f(132)](t,e){const o=f,n=e[o(145)](o(223)),i=this[o(165)][o(211)](t=>t.id===n),s=this[o(165)][i];let r=!1;s[o(139)]=e,this[o(165)][o(202)](i,1);const a=m(this[o(227)][o(135)],this[o(165)],e);return this[o(165)][o(202)](a,0,s),this[o(147)](t,Math[o(137)](i,a))&&(r=!0),r}[f(146)](t,e){const o=f;if(!this[o(154)])return!1;const n=this[o(165)][e];let i;return i=this[o(129)]?this[o(129)]({footnote:n,container:this[o(154)],digits:String(this[o(165)][o(187)])[o(187)],value:e+1}):String(e+1),n[o(139)][o(145)](o(164))!=i&&(t[o(179)](o(164),i,n[o(139)]),!0)}[f(182)](t){const e=f;if(!this[e(154)]||this[e(165)][e(187)]<2)return!1;if(function(t,o){const n=e;if(t[n(187)]!==o[n(187)])return!1;for(let e=0;e<t[n(187)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(165)][e(225)](t=>t.id),Array[e(183)](this[e(154)][e(159)]())[e(225)](t=>t[e(145)](e(223)))))return!1;let o=!1;for(let n=0;n<this[e(165)][e(187)];n++){const i=this[e(165)][n],s=t[e(199)](i[e(141)]),r=t[e(193)](this[e(154)],n);s[e(153)](r)||(t[e(204)](t[e(189)](i[e(141)]),r),o=!0)}return o}[f(184)](t){const e=f;if(!this[e(165)][e(187)])return!1;const{model:o}=this[e(227)];let n=!1;for(let i=0;i<this[e(165)][e(187)]-1;i++){const s=this[e(165)][i],r=this[e(165)][i+1],a=o[e(199)](s[e(139)]),c=o[e(199)](r[e(139)]);e(158)===a[e(140)](c)&&(this[e(132)](t,s[e(139)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(131)])return!1;const i=n(e?222:210);return t[n(180)](t[n(162)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(187)])return 0;const i=t[n(199)](o);for(let o=0;o<e[n(187)];o++){const s=e[o],r=t[n(199)](s[n(139)]);if(n(219)===i[n(140)](r))return o}const s=o[n(224)];let r=-1;for(let t=e[n(187)]-1;t>=0;t--)if(e[t][n(139)][n(224)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(191)][n(192)](),c=a[n(136)](s[n(160)]),l=a[c+1];if(l)for(let t=0;t<e[n(187)];t++)if(e[t][n(139)][n(224)][n(160)]===l)return t;return e[n(187)]}const g=y;function w(){const t=["checkChild","687930nRselw","72728qQrOmW","string","editor","529136iVrCvm","15owUpkX","test","insert-footnote-command-executed-with-invalid-id","selection","328343xLFwmO","end","6039960QqGBAw","document","isEnabled","refresh","isBlock","insertObject","_getPositionToInsertFootnote","footnoteId","change","execute","getFirstRange","49rUwdiz","get","747nGdlum","length","FootnotesEditing","27969860GGCyRV","_moveSelectionToFootnoteDefinition","footnoteRef","829860ziyGxS","model","isObject","plugins","getItems","createElement"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=293]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(716151===-parseInt(e(320))/1+parseInt(e(304))/2+-parseInt(e(316))/3*(-parseInt(e(315))/4)+parseInt(e(322))/5+parseInt(e(311))/6*(parseInt(e(296))/7)+parseInt(e(312))/8*(parseInt(e(298))/9)+-parseInt(e(301))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(325)](){const t=g,e=this[t(314)][t(305)][t(323)][t(319)],o=this[t(328)](e);this[t(324)]=!!o}[g(294)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(323)],r=this[e(328)](s);if(!r)return;const a=o[e(307)][e(297)](e(300)),c=t?.[e(329)]??(0,i.uid)();!function(t){const o=e;return o(313)==typeof t&&t[o(299)]>0&&!/\s/[o(317)](t)&&!/^\d/[o(317)](t)}(c)?(0,i.logWarning)(e(318)):(n[e(293)](t=>{const o=e,i=t[o(309)](o(303),{footnoteId:c});n[o(327)](i,r,null)}),a[e(302)](c))}[g(328)](t){const e=g,{model:o}=this[e(314)],{schema:n}=o,i=t[e(295)]();for(const t of i[e(308)]())if(n[e(326)](t)||n[e(306)](t))return null;const s=i[e(321)];return n[e(310)](s,e(303))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776643200;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=_;function _(t,e){const o=A();return(_=function(t,e){return o[t-=333]})(t,e)}function A(){const t=["setAttribute","getFootnote","cloneElement","content","getData","createElement","document","hasAttribute","5620aLFsNO","append","selection","keys","from","push","editing","definition","config","element","getFirstRange","createRangeIn","application/ckeditor5-footnotes","outputTransformation","570iyyUSk","sourceEditorId","requires","insert","find","flatMap","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","footnoteInlineContent","stringify","contentInsertion","listenTo","footnoteId","add","footnoteRef","editor","get","662RltPls","getRanges","remove","2732515bpNXYL","FootnotesClipboard","toData","isPremiumPlugin","string","_handleCopyFootnotesDefinitions","create","getFootnotesDefinitionsObjectElement","drop","root","reduce","28437FZNiUn","footnoteDefinition","data","getFootnotes","entries","5805117iWOHLp","setData","length","toView","toModel","init","end","includes","getSelectedBlocks","pluginName","getAttribute","footnotes.multiBlock","parse","4603304hxiYqO","htmlProcessor","clipboardInput","getChildren","_defineClipboardIntegration","footnotesDefinitions","_handlePasteFootnotesDefinitions","change","method","16639OpQVlg","100wZWSDW","2251KuUQrM","28336QUibbV","dataTransfer"];return(A=function(){return t})()}!function(t){const e=_,o=t();for(;;)try{if(414704===parseInt(e(349))/1*(parseInt(e(391))/2)+parseInt(e(405))/3*(-parseInt(e(348))/4)+-parseInt(e(394))/5+-parseInt(e(374))/6*(-parseInt(e(347))/7)+-parseInt(e(338))/8+-parseInt(e(410))/9+parseInt(e(360))/10*(parseInt(e(350))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(334)](){return T(395)}static get[T(376)](){return[v,P.ClipboardPipeline]}static get[T(381)](){return!0}static get[T(397)](){return!0}[T(415)](){this[T(342)]()}[T(342)](){const t=T;this[t(399)](),this[t(344)]()}[T(399)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(390)](P.ClipboardPipeline),s=o[t(390)](h);this[t(385)](i,t(373),(o,i)=>{const r=t,a=O(n[r(371)](i[r(355)]));if(!a[r(412)])return;const c=s[r(408)](),l=a[r(404)]((t,o)=>{const n=r,i=c[n(378)](t=>t.id===o);if(i){const o=e[n(407)][n(413)](i[n(367)],{isClipboardPipeline:!0}),s=e[n(407)][n(339)][n(396)](o);t[i.id]=s}return t},Object[r(400)](null));i[r(351)][r(411)](r(372),JSON[r(383)](l))})}[T(344)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(366)],r=n[t(390)](P.ClipboardPipeline),a=n[t(390)](h),c=e[t(368)][t(390)](t(336));let l=null;this[t(385)](s[t(358)],t(340),(e,o)=>{const n=t,i=o[n(351)][n(356)](n(372));l=i?JSON[n(337)](i):null}),this[t(385)](r,t(384),(n,s)=>{const r=t,u=s[r(375)]===this[r(389)].id;u&&r(402)===s[r(346)]||o[r(345)](t=>{const n=r;let f=a[n(401)]();const d=!!f&&Array[n(364)](o[n(358)][n(362)][n(333)]())[n(417)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(369),e(388)))return!0;return!1}(o[n(371)](s[n(355)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(400)](null);for(const e of i[o(341)]())e.is(o(369),o(406))&&e[o(359)](o(386))&&(s[e[o(335)](o(386))]=t[o(354)](e,!0));return Object[o(363)](s)[o(412)]?s:null}(t,s[n(355)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(371)](e))n.is(o(369),o(343))&&i[o(365)](n);for(const e of i)t[o(393)](e)}(t,s[n(355)]),!l)return;const{selection:h}=o[n(358)],p=h[n(370)]()[n(403)];f&&!d||(f=L(t,s[n(355)]),f||=a[n(380)](t,p));const m=Array[n(364)](h[n(392)]())[n(379)](O),g=function(t,e,o){const s=n,r=Object[s(400)](null);for(const{item:n}of t[s(371)](e))if(n.is(s(369),s(388))){const e=n[s(335)](s(386));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(352)](s(386),r[e],n)}return r}(t,s[n(355)],t=>{const e=n;return!u||!!a[e(353)](t)&&!m[e(417)](t)});for(const[o,i]of Object[n(409)](l)){const s=g[o]||o;let r;if(n(398)!=typeof i)r=i,s!==o&&t[n(352)](n(386),s,r);else{r=t[n(357)](n(406),{footnoteId:s});const o=e[n(407)][n(339)][n(413)](i);let a;if(c)a=e[n(407)][n(414)](o,r);else{a=t[n(357)](n(382));const i=e[n(407)][n(414)](o,a);t[n(377)](i,a)}t[n(361)](a,r)}t[n(377)](r,f,n(416))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(371)](e))if(n.is(o(369),o(343)))return n;return null}function O(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(369),e(388))&&o[e(387)](n[e(335)](e(386)));return Array[e(364)](o)}var N=o(311),V=o(355),R=o(789),K=o.n(R),M=o(437),j=o.n(M),U=o(298),B=o.n(U),z=o(207),H=o.n(z),W=o(825),q=o.n(W),X=o(264),Y={attributes:{"data-cke":!0}};Y.setAttributes=H(),Y.insert=B().bind(null,"head"),Y.domAPI=j(),Y.insertStyleElement=q();K()(X.A,Y);X.A&&X.A.locals&&X.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=263]})(t,e)}function $(){var t=["Footnotes","1479210efDXld","2dZLbXz","5FGlber","1984239iPhIpg","78883ryprYZ","961848xppOrN","requires","48uRimTn","75924UpmukD","75009rOPEHA","isOfficialPlugin","pluginName","2553770TmeyjH","isPremiumPlugin"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(128464===-parseInt(e(272))/1*(-parseInt(e(264))/2)+-parseInt(e(271))/3+parseInt(e(268))/4+-parseInt(e(265))/5*(-parseInt(e(263))/6)+parseInt(e(267))/7*(parseInt(e(270))/8)+-parseInt(e(266))/9+-parseInt(e(275))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(274)](){return G(277)}static get[G(269)](){return[v,D,Q]}static get[G(273)](){return!0}static get[G(276)](){return!0}}function et(){const t=["decimal","3288PAAPdY","upper-roman","lower-alpha","upper-alpha","lower-latin","1000590QxqSou","6051429YJTjRj","239183jaUNFI","8aEriyP","decimal-leading-zero","lower-roman","3314637twrumi","1169418tNxRNQ","3302648beblhH","11445HgEOYG","upper-latin"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=110]})(t,e)}const nt=ot;!function(t){const e=ot,o=t();for(;;)try{if(808650===-parseInt(e(118))/1+-parseInt(e(111))/2+parseInt(e(117))/3+parseInt(e(119))/4+-parseInt(e(120))/5*(-parseInt(e(123))/6)+parseInt(e(113))/7*(-parseInt(e(114))/8)+-parseInt(e(112))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[nt(122),nt(115),nt(110),nt(121),nt(125),nt(126),nt(116),nt(124)];function st(t,e){const o=rt();return(st=function(t,e){return o[t-=498]})(t,e)}function rt(){const t=["7585008YvWMlS","footnotesListStyle","model","includes","49DTPZsQ","getFootnotesDefinitionsObjectElement","change","172889NsSuff","428MfCREC","6256170aaHohR","refresh","1367062jYUVdO","14634rpqKOs","24375123OibkuN","getAttribute","execute","get","value","964164wWuvwA","plugins","_updateFootnotesCounters","setAttribute","isEnabled"];return(rt=function(){return t})()}const at=st;!function(t){const e=st,o=t();for(;;)try{if(762495===parseInt(e(519))/1+parseInt(e(500))/2+parseInt(e(501))/3*(parseInt(e(520))/4)+-parseInt(e(498))/5+-parseInt(e(507))/6*(parseInt(e(516))/7)+-parseInt(e(512))/8+parseInt(e(502))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[at(499)](){const t=at,{editor:e}=this,o=e[t(508)][t(505)](h)[t(517)]();this[t(511)]=!!o,this[t(506)]=o?.[t(503)](t(513))??null}[at(504)]({value:t}){const e=at,{editor:o}=this,n=o[e(508)][e(505)](h),i=n[e(517)]();i&&it[e(515)](t)&&o[e(514)][e(518)](o=>{const s=e;o[s(510)](s(513),t,i),n[s(509)](o)})}}function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=214]})(t,e)}const ut=lt;function ft(){const t=["footnotesListStart","value","isEnabled","6267928HFnFzo","refresh","5836xwqZdd","getFootnotesDefinitionsObjectElement","execute","2152314LxhUKb","363596bmSfJf","1887802ErXbat","plugins","setAttribute","_updateFootnotesCounters","model","getAttribute","198BqkMof","isInteger","change","186085tuLbXe","get","518410RSgTaX","1623pkJYth"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(786984===parseInt(e(233))/1+parseInt(e(222))/2+parseInt(e(223))/3*(-parseInt(e(229))/4)+parseInt(e(220))/5*(parseInt(e(217))/6)+parseInt(e(234))/7+-parseInt(e(227))/8+parseInt(e(232))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[ut(228)](){const t=ut,{editor:e}=this,o=e[t(235)][t(221)](h)[t(230)]();this[t(226)]=!!o,this[t(225)]=o?.[t(216)](t(224))??null}[ut(231)]({value:t}){const e=ut,{editor:o}=this,n=o[e(235)][e(221)](h),i=n[e(230)]();i&&Number[e(218)](t)&&o[e(215)][e(219)](o=>{const s=e;o[s(236)](s(224),t,i),n[s(214)](o)})}}const ht=wt;!function(t){const e=wt,o=t();for(;;)try{if(507627===parseInt(e(148))/1+parseInt(e(149))/2+parseInt(e(150))/3+parseInt(e(206))/4+-parseInt(e(198))/5*(parseInt(e(173))/6)+parseInt(e(217))/7*(-parseInt(e(163))/8)+-parseInt(e(214))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(vt);class pt extends t.Plugin{static get[ht(141)](){return ht(219)}static get[ht(174)](){return[v,h]}static get[ht(157)](){return!0}static get[ht(192)](){return!0}[ht(197)](){const t=ht,{editor:e}=this;e[t(179)][t(134)](t(227),t(218)),e[t(179)][t(134)](t(207),1),e[t(137)][t(215)](t(226),new ct(e)),e[t(137)][t(215)](t(175),new dt(e)),this[t(193)](),this[t(216)](),this[t(164)](),this[t(220)]()}[ht(193)](){const t=ht,{editor:e}=this,{schema:o}=e[t(201)];o[t(205)](t(184),{allowAttributes:[t(188),t(185)]})}[ht(216)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(176)](t(167))[t(215)](e=>{const o=t;e.on(o(165),(t,e,n)=>{const s=o,r=e[s(133)],a=e[s(181)]?.[s(139)];r[s(222)](s(131))&&a?.is(s(211),s(184))&&(function(t,e,o,n){const i=s;if(!n[i(183)](e,i(185)))return;let r=1;const a=o[i(152)][i(154)](t,{attributes:i(132)});if(a){const e=Number[i(136)](t[i(138)](i(132)),10);Number[i(221)](e)||(r=e)}!a&&e[i(208)](i(185))||o[i(162)][i(171)](i(185),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(183)](e,i(188)))return;let r=i(218),a=!1;if(o[i(152)][i(154)](t,{attributes:i(153)})){const e={1:i(218),a:i(151),A:i(195),i:i(172),I:i(143)}[t[i(138)](i(153))];e&&(r=e),a=!0}o[i(152)][i(154)](t,{styles:i(212)})&&(r=function(t){const e=i;switch(t){case e(151):return e(159);case e(195):return e(223);default:return t}}(t[i(180)](i(212))),a=!0),!a&&e[i(208)](i(188))||o[i(162)][i(171)](i(188),r,e)}(r,a,n,i))})}),o[t(176)](t(202))[t(215)](e=>{const o=t;e.on(o(200),(t,e,n)=>{const i=o;if(!n[i(152)][i(154)](e[i(135)],t[i(186)]))return;const s=mt(e[i(135)],n[i(196)]),{attributeNewValue:r}=e;null==r||1===r?n[i(162)][i(194)](i(132),s):n[i(162)][i(171)](i(132),String(r),s)}),e.on(o(177),(t,e,n)=>{const i=o;if(!n[i(152)][i(154)](e[i(135)],t[i(186)]))return;const s=mt(e[i(135)],n[i(196)]),{attributeNewValue:r}=e;r&&i(218)!==r?n[i(162)][i(146)](i(212),r,s):n[i(162)][i(187)](i(212),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(161)][t(204)](h),i=this[t(199)](),s=this[t(178)]();o[t(147)][t(140)](e=>{const r=t,a=o[r(147)][r(213)][r(156)]();let c=!1;for(const t of a){if(r(191)!==t[r(153)]||r(130)===t[r(186)])continue;const n=o[r(158)](t[r(142)][r(170)]);for(const t of n[r(189)]())t.is(r(211),r(184))&&(!t[r(208)](r(185))&&o[r(155)][r(183)](t,r(185))&&(e[r(171)](r(185),s,t),c=!0),!t[r(208)](r(188))&&o[r(155)][r(183)](t,r(188))&&(e[r(171)](r(188),i,t),c=!0))}return c&&n[r(144)](e),c})}[ht(164)](){const t=ht,{editor:e}=this;e[t(161)][t(204)](h)[t(190)](e=>this[t(182)](e))}[ht(199)](){const t=ht;return this[t(224)][t(179)][t(204)](t(227))}[ht(178)](){const t=ht;return this[t(224)][t(179)][t(204)](t(207))}[ht(182)]({container:t,value:e,digits:o}){const n=ht,i=t[n(138)](n(188)),s=t[n(138)](n(185)),r=Math[n(166)](e)+(s??1)-1;switch(i){case n(160):return function(t,e){const o=n;return String(t)[o(209)](e,"0")}(r,Math[n(203)](2,o));case n(151):case n(159):return gt(r,!1);case n(195):case n(223):return gt(r,!0);case n(172):return bt(r,!1);case n(143):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=ht,n=e[o(225)](t);return Array[o(229)](n[o(210)]())[o(168)](t=>t.is(o(211),"ol")&&t[o(222)](o(131)))}function gt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(228)](97+t)+n,i=Math[o(166)]((i-1)/26)}return e?n[o(145)]():n}function wt(t,e){const o=vt();return(wt=function(t,e){return o[t-=130]})(t,e)}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(169)]()}function vt(){const t=["isPremiumPlugin","_defineSchema","removeAttribute","upper-alpha","mapper","init","5hcKKVW","_getDefaultListStyle","attribute:footnotesListStart:footnotesDefinitions","model","downcast","max","get","extend","3241288uzUEhi","footnotes.footnotesProperties.defaultStartIndex","hasAttribute","padStart","getChildren","element","list-style-type","differ","12220848HlhPpF","add","_defineConverters","49YpOotE","decimal","FootnotesPropertiesEditing","_definePostfixer","isNaN","hasClass","upper-latin","editor","toViewElement","footnotesStyle","footnotes.footnotesProperties.defaultListStyle","fromCharCode","from","$text","footnotes-list","start","viewItem","define","item","parseInt","commands","getAttribute","parent","registerPostFixer","pluginName","position","upper-roman","_updateFootnotesCounters","toUpperCase","setStyle","document","90711qLnxot","1743030KLOAmD","2291085DqcfVJ","lower-alpha","consumable","type","consume","schema","getChanges","isOfficialPlugin","createRangeOn","lower-latin","decimal-leading-zero","plugins","writer","729488fdYysR","_defineFormatter","element:ol","floor","upcast","find","toLowerCase","nodeAfter","setAttribute","lower-roman","194652ozSUCk","requires","footnotesStart","for","attribute:footnotesListStyle:footnotesDefinitions","_getDefaultStartIndex","config","getStyle","modelCursor","_formatFootnoteListValue","checkAttribute","footnotesDefinitions","footnotesListStart","name","removeStyle","footnotesListStyle","getItems","setFootnoteFormatter","insert"];return(vt=function(){return t})()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=B().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=270]})(t,e)}function St(){var t=["5960qRULmV","isPremiumPlugin","253880btZeLN","952035ujKZgH","573201jSifEL","138zMqLKd","171RUYMHo","12scNyRy","1870275VQmfTy","5862zltmYT","2bQqmbh","isOfficialPlugin","pluginName","2993280MRrvDO","1710mnCGtx","requires","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(379612===parseInt(e(279))/1*(parseInt(e(285))/2)+-parseInt(e(280))/3*(-parseInt(e(275))/4)+parseInt(e(272))/5*(parseInt(e(284))/6)+parseInt(e(278))/7+-parseInt(e(277))/8*(parseInt(e(281))/9)+-parseInt(e(271))/10+parseInt(e(283))/11*(parseInt(e(282))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(270)](){return xt(274)}static get[xt(273)](){return[pt,Ft]}static get[xt(286)](){return!0}static get[xt(276)](){return!0}}function Tt(t,e){var o=_t();return(Tt=function(t,e){return o[t-=346]})(t,e)}function _t(){var t=["9794568SckUfB","9098313JWhmNX","1164885JnUZiw","9tgfaaw","1468559fajgwU","2LUkYND","1349044FXfYxS","32994135BxKOdU","528684dBMiUN"];return(_t=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(830022===-parseInt(e(348))/1*(parseInt(e(349))/2)+-parseInt(e(347))/3*(-parseInt(e(350))/4)+parseInt(e(346))/5+-parseInt(e(352))/6+-parseInt(e(354))/7+-parseInt(e(353))/8+parseInt(e(351))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_t)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},271(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},366(t){"use strict";t.exports=function(t){return t[1]}},789(t){"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},298(t){"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(t){"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=177]})(t,e)}function c(){const t=["4079IeNNfx","210776uNFVlc","insert","set","_model","rootName","remove","_getElementKey","slice","6CfDJxL","142NiMtyg","_trackedElements","getElementKey","$text","length","nodeAfter","type","get","elementName","flat","getItems","_elementName","from","add","97375ZkquOF","createRangeOn","delete","reset","getChanges","1304103XMHUHd","213458LECQZQ","root","values","position","name","element","2203752DmVCSE","clear","5862807orGFHe","attributes","push","has","$graveyard"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(306681===parseInt(e(218))/1*(parseInt(e(185))/2)+parseInt(e(204))/3+-parseInt(e(219))/4+parseInt(e(199))/5*(-parseInt(e(184))/6)+parseInt(e(205))/7+parseInt(e(211))/8+-parseInt(e(213))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(179)];[r(196)];[r(182)];[r(186)]=new Map;constructor(t,e){const o=r;this[o(179)]=t,this[o(196)]=e[o(193)],this[o(182)]=e[o(187)]}[r(202)](){const t=r;this[t(186)][t(212)]()}[r(203)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(177)===i[e(191)]&&e(188)!==i[e(209)]&&i[e(208)][e(190)]){const t=this[e(179)][e(200)](i[e(208)][e(190)]);for(const o of t[e(195)]()){if(!o.is(e(210),this[e(196)]))continue;const t=this[e(182)](o);n[e(216)](t)||n[e(178)](t,[]),n[e(192)](t)[e(215)](o)}}if(e(181)===i[e(191)]&&i[e(209)]===this[e(196)]){const t=this[e(182)]({getAttribute:t=>i[e(214)][e(192)](t)});o[e(198)](t)}}for(const[t,n]of this[e(186)])e(217)===n[e(206)][e(180)]&&o[e(198)](t);for(const t of o)this[e(186)][e(201)](t);for(const[t,o]of n)this[e(186)][e(178)](t,o[o[e(189)]-1]);const i=new Set;for(const[t,s]of n)o[e(216)](t)&&(i[e(198)](s[0]),s[e(189)]>1?n[e(178)](t,s[e(183)](1)):n[e(201)](t),o[e(201)](t));return{removed:Array[e(197)](o),inserted:Array[e(197)](n[e(207)]())[e(194)](),moved:Array[e(197)](i)}}}function f(t,e){const o=d();return(f=function(t,e){return o[t-=128]})(t,e)}const u=f;function d(){const t=["childCount","_handleMovedFootnoteReference","_handleFootnoteDefinitionsChanges","footnotes.multiBlock","model","indexOf","min","change:data","reference","compareWith","definition","5337LOpxdM","add","18740810nOnKQX","getAttribute","_updateFootnoteRefCounter","_updateFootnotesCounters","_handleFootnoteReferencesChanges","push","singleton","193958rybZRI","getChanges","isEqual","_footnotesDefinitions","reset","differ","high","after","getChildren","rootName","_handleFootnotesDefinitionsObjectSync","createElement","_insertEmptyFootnotesDefinitionsContainer","footnoteCounter","_footnotes","footnotesDefinitions","getFootnotesDefinitionsObjectElement","238olDNuq","_footnoteDefsTracker","4092540wiafWy","unshift","_handleInsertedFootnoteReference","11rkSsUq","8hcMpYk","end","init","pluginName","set","setAttribute","insert","footnoteDefinition","_sortFootnoteDefinitions","from","_ensureFootnotesReferencesHaveProperOrder","listenTo","576090NuXyKu","length","FootnotesTracker","createRangeOn","isPremiumPlugin","document","getRootNames","createPositionAt","28qvUKJQ","enqueueChange","find","setFootnoteFormatter","config","createPositionBefore","_handleRemoveFootnoteReferenceById","some","splice","get","move","17148756elngkc","getFootnote","parent","has","createRangeIn","footnoteInlineContent","findIndex","_footnoteRefsTracker","footnoteRef","remove","getFootnotes","registerPostFixer","77028TKrrlX","_footnoteDefsContainerTracker","before","$graveyard","append","paragraph","footnoteId","root","map","_handleFootnotesDefinitionsObjectChanges","editor","getFootnotesFormatter","isOfficialPlugin","low","_ensureFootnotesDefinitionsContainerExists","_footnoteFormatter","17576SERAKd"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(973563===-parseInt(e(174))/1*(parseInt(e(151))/2)+parseInt(e(170))/3+-parseInt(e(194))/4*(-parseInt(e(186))/5)+parseInt(e(217))/6*(parseInt(e(168))/7)+-parseInt(e(130))/8*(parseInt(e(142))/9)+parseInt(e(144))/10+parseInt(e(173))/11*(-parseInt(e(205))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[u(165)]=[];[u(154)]=null;[u(129)]=null;[u(218)];[u(212)];[u(169)];static get[u(177)](){return u(188)}static get[u(229)](){return!0}static get[u(190)](){return!0}constructor(t){const e=u;super(t),this[e(218)]=new l(this[e(227)][e(135)],{elementName:e(166),getElementKey:()=>e(150)}),this[e(212)]=new l(this[e(227)][e(135)],{elementName:e(213),getElementKey:t=>t[e(145)](e(223))}),this[e(169)]=new l(this[e(227)][e(135)],{elementName:e(181),getElementKey:t=>t[e(145)](e(223))})}[u(176)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(191)][t(216)](e=>{const n=t,i=o[n(191)][n(156)][n(152)]();let s=!1;return this[n(226)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(148)](e,i)&&(s=!0),this[n(184)](e)&&(s=!0),this[n(161)](e)&&(s=!0),this[n(182)](e)&&(s=!0),s}),this[t(185)](o[t(191)],t(138),()=>{const e=t;o[e(195)]({isUndoable:!1},t=>{this[e(128)](t)})},{priority:t(230)}),this[t(185)](n,t(178),()=>{const e=t;this[e(165)]=[],this[e(218)][e(155)](),this[e(212)][e(155)](),this[e(169)][e(155)]()},{priority:t(157)})}[u(167)](){return this[u(154)]}[u(206)](t){const e=u;return this[e(165)][e(196)](e=>e.id===t)||null}[u(215)](){const t=u;return Array[t(183)](this[t(165)])}[u(228)](){return this[u(129)]}[u(197)](t){this[u(129)]=t}[u(147)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(165)][o(187)];i++)this[o(146)](t,i)&&(n=!0);return n}[u(163)](t,e){const o=u,n=t[o(162)](o(166),{});return t[o(221)](n,e),this[o(154)]=n,n}[u(128)](t){const e=u;if(!this[e(165)][e(187)]||this[e(154)])return;const o=this[e(165)][0][e(139)][e(224)],n=this[e(163)](t,o);for(const o of this[e(165)])o[e(141)][e(207)]||t[e(180)](o[e(141)],n,e(175));this[e(147)](t)}[u(226)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(218)][o(152)](e);if(r[o(187)]&&(this[o(154)]=r[0]),i[o(187)])if(i[o(187)]>1||this[o(154)]&&i[o(201)](t=>t!==this[o(154)])){const e=t[o(162)](o(166),{}),s=[];this[o(154)]&&s[o(149)](this[o(154)]),s[o(149)](...i),t[o(180)](e,s[0],o(219));for(const n of s)t[o(204)](t[o(209)](n),t[o(193)](e,o(175))),t[o(214)](n);this[o(154)]=e,this[o(147)](t),n=!0}else this[o(154)]=i[0];if(s[o(187)]&&o(220)===this[o(154)]?.[o(224)][o(160)]){for(const e of this[o(165)])t[o(214)](e[o(139)]),n=!0;this[o(165)]=[],this[o(154)]=null}return n}[u(133)](t,e){const o=u;let n=!1;const i=this[o(227)][o(198)][o(203)](o(134)),{inserted:s,moved:r}=this[o(169)][o(152)](e);for(const e of[...r,...s]){const s=e[o(145)](o(223)),r=this[o(206)](s);r&&(r[o(141)]=e),p(t,i,e)&&(n=!0)}return n}[u(148)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(212)][o(152)](e);for(const e of i)this[o(200)](t,e)&&(n=!0);for(const e of s)this[o(172)](t,e)&&(n=!0);for(const e of r)this[o(132)](t,e)&&(n=!0);return n}[u(161)](t){const e=u;if(!this[e(154)])return!1;let o=!1;if(this[e(154)][e(131)]!==this[e(165)][e(187)]){const n=[];for(const t of this[e(154)][e(159)]()){const i=t[e(145)](e(223));this[e(206)](i)||(n[e(171)](t),o=!0)}for(const o of n)t[e(214)](o)}const n=new Set,i=[];for(const t of this[e(154)][e(159)]()){const s=t[e(145)](e(223));n[e(208)](s)?(i[e(171)](t),o=!0):n[e(143)](s)}for(const o of i)t[e(214)](o);return this[e(154)][e(131)]||(t[e(214)](this[e(154)]),this[e(154)]=null,o=!0),o}[u(172)](t,e){const o=u;if(this[o(165)][o(196)](t=>t[o(139)]===e))return!1;let n=!1;const i=e[o(145)](o(223)),s=this[o(165)][o(211)](t=>t.id===i);-1!==s&&(t[o(214)](this[o(165)][s][o(139)]),this[o(165)][o(202)](s,1),n=!0);let r=this[o(154)]?function(t,e){const n=o;for(const o of t[n(159)]())if(o[n(145)](n(223))===e)return o;return null}(this[o(154)],i):null;r||(r=t[o(162)](o(181),{footnoteId:i}),this[o(154)]&&(t[o(180)](r,this[o(154)],o(175)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(227)][o(135)],this[o(165)],e);this[o(165)][o(202)](c,0,a);let l=c;return-1!==s&&(l=Math[o(137)](c,s)),this[o(147)](t,l)&&(n=!0),n}[u(200)](t,e){const o=u,n=this[o(165)][o(211)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(165)][n];return o(220)!==s[o(141)][o(224)][o(160)]&&(t[o(214)](s[o(141)]),i=!0),this[o(165)][o(202)](n,1),this[o(147)](t,n)&&(i=!0),i}[u(132)](t,e){const o=u,n=e[o(145)](o(223)),i=this[o(165)][o(211)](t=>t.id===n),s=this[o(165)][i];let r=!1;s[o(139)]=e,this[o(165)][o(202)](i,1);const a=m(this[o(227)][o(135)],this[o(165)],e);return this[o(165)][o(202)](a,0,s),this[o(147)](t,Math[o(137)](i,a))&&(r=!0),r}[u(146)](t,e){const o=u;if(!this[o(154)])return!1;const n=this[o(165)][e];let i;return i=this[o(129)]?this[o(129)]({footnote:n,container:this[o(154)],digits:String(this[o(165)][o(187)])[o(187)],value:e+1}):String(e+1),n[o(139)][o(145)](o(164))!=i&&(t[o(179)](o(164),i,n[o(139)]),!0)}[u(182)](t){const e=u;if(!this[e(154)]||this[e(165)][e(187)]<2)return!1;if(function(t,o){const n=e;if(t[n(187)]!==o[n(187)])return!1;for(let e=0;e<t[n(187)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(165)][e(225)](t=>t.id),Array[e(183)](this[e(154)][e(159)]())[e(225)](t=>t[e(145)](e(223)))))return!1;let o=!1;for(let n=0;n<this[e(165)][e(187)];n++){const i=this[e(165)][n],s=t[e(199)](i[e(141)]),r=t[e(193)](this[e(154)],n);s[e(153)](r)||(t[e(204)](t[e(189)](i[e(141)]),r),o=!0)}return o}[u(184)](t){const e=u;if(!this[e(165)][e(187)])return!1;const{model:o}=this[e(227)];let n=!1;for(let i=0;i<this[e(165)][e(187)]-1;i++){const s=this[e(165)][i],r=this[e(165)][i+1],a=o[e(199)](s[e(139)]),c=o[e(199)](r[e(139)]);e(158)===a[e(140)](c)&&(this[e(132)](t,s[e(139)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(131)])return!1;const i=n(e?222:210);return t[n(180)](t[n(162)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(187)])return 0;const i=t[n(199)](o);for(let o=0;o<e[n(187)];o++){const s=e[o],r=t[n(199)](s[n(139)]);if(n(219)===i[n(140)](r))return o}const s=o[n(224)];let r=-1;for(let t=e[n(187)]-1;t>=0;t--)if(e[t][n(139)][n(224)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(191)][n(192)](),c=a[n(136)](s[n(160)]),l=a[c+1];if(l)for(let t=0;t<e[n(187)];t++)if(e[t][n(139)][n(224)][n(160)]===l)return t;return e[n(187)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=333]})(t,e)}const w=g;function y(){const t=["1614432KEwBVH","7KjcYTd","346941NLCdKf","FootnotesEditing","footnoteId","checkChild","footnoteRef","1040iHUhGK","_moveSelectionToFootnoteDefinition","2820975mgLCFQ","isBlock","get","insert-footnote-command-executed-with-invalid-id","608926TPxKnl","document","test","change","3250215IrUfoI","plugins","createElement","_getPositionToInsertFootnote","6515838MkfDNN","isEnabled","getFirstRange","end","393560ViVopy","editor","isObject","1fbyDnn","execute","getItems","string","refresh","length","model","selection","insertObject"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(728098===-parseInt(e(334))/1*(parseInt(e(356))/2)+-parseInt(e(352))/3+-parseInt(e(368))/4+-parseInt(e(360))/5+parseInt(e(364))/6*(-parseInt(e(344))/7)+-parseInt(e(343))/8+-parseInt(e(345))/9*(-parseInt(e(350))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(338)](){const t=w,e=this[t(369)][t(340)][t(357)][t(341)],o=this[t(363)](e);this[t(365)]=!!o}[w(335)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(357)],r=this[e(363)](s);if(!r)return;const a=o[e(361)][e(354)](e(346)),c=t?.[e(347)]??(0,i.uid)();!function(t){const o=e;return o(337)==typeof t&&t[o(339)]>0&&!/\s/[o(358)](t)&&!/^\d/[o(358)](t)}(c)?(0,i.logWarning)(e(355)):(n[e(359)](t=>{const o=e,i=t[o(362)](o(349),{footnoteId:c});n[o(342)](i,r,null)}),a[e(351)](c))}[w(363)](t){const e=w,{model:o}=this[e(369)],{schema:n}=o,i=t[e(366)]();for(const t of i[e(336)]())if(n[e(353)](t)||n[e(333)](t))return null;const s=i[e(367)];return n[e(348)](s,e(349))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],f(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?u(f(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+u(f(t)),n=d(u(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+u(f(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776902400;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function D(t,e){const o=A();return(D=function(t,e){return o[t-=333]})(t,e)}function A(){const t=["setAttribute","getFootnote","cloneElement","content","getData","createElement","document","hasAttribute","5620aLFsNO","append","selection","keys","from","push","editing","definition","config","element","getFirstRange","createRangeIn","application/ckeditor5-footnotes","outputTransformation","570iyyUSk","sourceEditorId","requires","insert","find","flatMap","_insertEmptyFootnotesDefinitionsContainer","isOfficialPlugin","footnoteInlineContent","stringify","contentInsertion","listenTo","footnoteId","add","footnoteRef","editor","get","662RltPls","getRanges","remove","2732515bpNXYL","FootnotesClipboard","toData","isPremiumPlugin","string","_handleCopyFootnotesDefinitions","create","getFootnotesDefinitionsObjectElement","drop","root","reduce","28437FZNiUn","footnoteDefinition","data","getFootnotes","entries","5805117iWOHLp","setData","length","toView","toModel","init","end","includes","getSelectedBlocks","pluginName","getAttribute","footnotes.multiBlock","parse","4603304hxiYqO","htmlProcessor","clipboardInput","getChildren","_defineClipboardIntegration","footnotesDefinitions","_handlePasteFootnotesDefinitions","change","method","16639OpQVlg","100wZWSDW","2251KuUQrM","28336QUibbV","dataTransfer"];return(A=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(414704===parseInt(e(349))/1*(parseInt(e(391))/2)+parseInt(e(405))/3*(-parseInt(e(348))/4)+-parseInt(e(394))/5+-parseInt(e(374))/6*(-parseInt(e(347))/7)+-parseInt(e(338))/8+-parseInt(e(410))/9+parseInt(e(360))/10*(parseInt(e(350))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[T(334)](){return T(395)}static get[T(376)](){return[v,P.ClipboardPipeline]}static get[T(381)](){return!0}static get[T(397)](){return!0}[T(415)](){this[T(342)]()}[T(342)](){const t=T;this[t(399)](),this[t(344)]()}[T(399)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(390)](P.ClipboardPipeline),s=o[t(390)](h);this[t(385)](i,t(373),(o,i)=>{const r=t,a=N(n[r(371)](i[r(355)]));if(!a[r(412)])return;const c=s[r(408)](),l=a[r(404)]((t,o)=>{const n=r,i=c[n(378)](t=>t.id===o);if(i){const o=e[n(407)][n(413)](i[n(367)],{isClipboardPipeline:!0}),s=e[n(407)][n(339)][n(396)](o);t[i.id]=s}return t},Object[r(400)](null));i[r(351)][r(411)](r(372),JSON[r(383)](l))})}[T(344)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(366)],r=n[t(390)](P.ClipboardPipeline),a=n[t(390)](h),c=e[t(368)][t(390)](t(336));let l=null;this[t(385)](s[t(358)],t(340),(e,o)=>{const n=t,i=o[n(351)][n(356)](n(372));l=i?JSON[n(337)](i):null}),this[t(385)](r,t(384),(n,s)=>{const r=t,f=s[r(375)]===this[r(389)].id;f&&r(402)===s[r(346)]||o[r(345)](t=>{const n=r;let u=a[n(401)]();const d=!!u&&Array[n(364)](o[n(358)][n(362)][n(333)]())[n(417)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(369),e(388)))return!0;return!1}(o[n(371)](s[n(355)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(400)](null);for(const e of i[o(341)]())e.is(o(369),o(406))&&e[o(359)](o(386))&&(s[e[o(335)](o(386))]=t[o(354)](e,!0));return Object[o(363)](s)[o(412)]?s:null}(t,s[n(355)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(371)](e))n.is(o(369),o(343))&&i[o(365)](n);for(const e of i)t[o(393)](e)}(t,s[n(355)]),!l)return;const{selection:h}=o[n(358)],p=h[n(370)]()[n(403)];u&&!d||(u=L(t,s[n(355)]),u||=a[n(380)](t,p));const m=Array[n(364)](h[n(392)]())[n(379)](N),g=function(t,e,o){const s=n,r=Object[s(400)](null);for(const{item:n}of t[s(371)](e))if(n.is(s(369),s(388))){const e=n[s(335)](s(386));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(352)](s(386),r[e],n)}return r}(t,s[n(355)],t=>{const e=n;return!f||!!a[e(353)](t)&&!m[e(417)](t)});for(const[o,i]of Object[n(409)](l)){const s=g[o]||o;let r;if(n(398)!=typeof i)r=i,s!==o&&t[n(352)](n(386),s,r);else{r=t[n(357)](n(406),{footnoteId:s});const o=e[n(407)][n(339)][n(413)](i);let a;if(c)a=e[n(407)][n(414)](o,r);else{a=t[n(357)](n(382));const i=e[n(407)][n(414)](o,a);t[n(377)](i,a)}t[n(361)](a,r)}t[n(377)](r,u,n(416))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(371)](e))if(n.is(o(369),o(343)))return n;return null}function N(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(369),e(388))&&o[e(387)](n[e(335)](e(386)));return Array[e(364)](o)}var V=o(311),O=o(355),R=o(789),K=o.n(R),j=o(437),M=o.n(j),U=o(298),B=o.n(U),H=o(207),q=o.n(H),W=o(825),z=o.n(W),Y=o(264),Q={attributes:{"data-cke":!0}};Q.setAttributes=q(),Q.insert=B().bind(null,"head"),Q.domAPI=M(),Q.insertStyleElement=z();K()(Y.A,Q);Y.A&&Y.A.locals&&Y.A.locals;class Z 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",X(t,V.ButtonView)),e.add("menuBar:insertFootnote",X(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=263]})(t,e)}function $(){var t=["Footnotes","1479210efDXld","2dZLbXz","5FGlber","1984239iPhIpg","78883ryprYZ","961848xppOrN","requires","48uRimTn","75924UpmukD","75009rOPEHA","isOfficialPlugin","pluginName","2553770TmeyjH","isPremiumPlugin"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(128464===-parseInt(e(272))/1*(-parseInt(e(264))/2)+-parseInt(e(271))/3+parseInt(e(268))/4+-parseInt(e(265))/5*(-parseInt(e(263))/6)+parseInt(e(267))/7*(parseInt(e(270))/8)+-parseInt(e(266))/9+-parseInt(e(275))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[G(274)](){return G(277)}static get[G(269)](){return[v,_,Z]}static get[G(273)](){return!0}static get[G(276)](){return!0}}function et(){const t=["decimal","3288PAAPdY","upper-roman","lower-alpha","upper-alpha","lower-latin","1000590QxqSou","6051429YJTjRj","239183jaUNFI","8aEriyP","decimal-leading-zero","lower-roman","3314637twrumi","1169418tNxRNQ","3302648beblhH","11445HgEOYG","upper-latin"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=110]})(t,e)}const nt=ot;!function(t){const e=ot,o=t();for(;;)try{if(808650===-parseInt(e(118))/1+-parseInt(e(111))/2+parseInt(e(117))/3+parseInt(e(119))/4+-parseInt(e(120))/5*(-parseInt(e(123))/6)+parseInt(e(113))/7*(-parseInt(e(114))/8)+-parseInt(e(112))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[nt(122),nt(115),nt(110),nt(121),nt(125),nt(126),nt(116),nt(124)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=380]})(t,e)}function at(){const t=["23178903NGBVmi","isEnabled","value","refresh","2169870KqavAI","11440264YFKjgZ","change","includes","setAttribute","2963968ROGVGW","plugins","10yKBazV","model","getFootnotesDefinitionsObjectElement","execute","9SqAhQy","_updateFootnotesCounters","9012858hUQlLS","490290YZQKIW","8HxBxZK","5BIwNaI","getAttribute","27008BwRARb","get","footnotesListStyle"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(937990===parseInt(e(385))/1+-parseInt(e(381))/2+-parseInt(e(392))/3*(parseInt(e(382))/4)+-parseInt(e(383))/5*(-parseInt(e(380))/6)+parseInt(e(397))/7+-parseInt(e(393))/8*(parseInt(e(403))/9)+-parseInt(e(399))/10*(-parseInt(e(388))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(391)](){const t=st,{editor:e}=this,o=e[t(398)][t(386)](h)[t(401)]();this[t(389)]=!!o,this[t(390)]=o?.[t(384)](t(387))??null}[st(402)]({value:t}){const e=st,{editor:o}=this,n=o[e(398)][e(386)](h),i=n[e(401)]();i&&it[e(395)](t)&&o[e(400)][e(394)](o=>{const s=e;o[s(396)](s(387),t,i),n[s(404)](o)})}}const lt=ft;function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=334]})(t,e)}function ut(){const t=["40092YULwqf","execute","44JFFwVS","setAttribute","2094633uiBiNI","1093548ymdMql","_updateFootnotesCounters","1136710cqCJjZ","15512VTQZdx","getFootnotesDefinitionsObjectElement","1488DTUVTy","footnotesListStart","6lRUcxS","model","isInteger","89919XHiEjK","getAttribute","value","10344970LhMofx","change","get","isEnabled","plugins","refresh"];return(ut=function(){return t})()}!function(t){const e=ft,o=t();for(;;)try{if(311915===parseInt(e(342))/1*(-parseInt(e(339))/2)+-parseInt(e(351))/3*(-parseInt(e(353))/4)+parseInt(e(334))/5+-parseInt(e(356))/6+-parseInt(e(335))/7*(parseInt(e(337))/8)+-parseInt(e(355))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(350)](){const t=lt,{editor:e}=this,o=e[t(349)][t(347)](h)[t(336)]();this[t(348)]=!!o,this[t(344)]=o?.[t(343)](t(338))??null}[lt(352)]({value:t}){const e=lt,{editor:o}=this,n=o[e(349)][e(347)](h),i=n[e(336)]();i&&Number[e(341)](t)&&o[e(340)][e(346)](o=>{const s=e;o[s(354)](s(338),t,i),n[s(357)](o)})}}const ht=wt;!function(t){const e=wt,o=t();for(;;)try{if(507627===parseInt(e(148))/1+parseInt(e(149))/2+parseInt(e(150))/3+parseInt(e(206))/4+-parseInt(e(198))/5*(parseInt(e(173))/6)+parseInt(e(217))/7*(-parseInt(e(163))/8)+-parseInt(e(214))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(vt);class pt extends t.Plugin{static get[ht(141)](){return ht(219)}static get[ht(174)](){return[v,h]}static get[ht(157)](){return!0}static get[ht(192)](){return!0}[ht(197)](){const t=ht,{editor:e}=this;e[t(179)][t(134)](t(227),t(218)),e[t(179)][t(134)](t(207),1),e[t(137)][t(215)](t(226),new ct(e)),e[t(137)][t(215)](t(175),new dt(e)),this[t(193)](),this[t(216)](),this[t(164)](),this[t(220)]()}[ht(193)](){const t=ht,{editor:e}=this,{schema:o}=e[t(201)];o[t(205)](t(184),{allowAttributes:[t(188),t(185)]})}[ht(216)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(176)](t(167))[t(215)](e=>{const o=t;e.on(o(165),(t,e,n)=>{const s=o,r=e[s(133)],a=e[s(181)]?.[s(139)];r[s(222)](s(131))&&a?.is(s(211),s(184))&&(function(t,e,o,n){const i=s;if(!n[i(183)](e,i(185)))return;let r=1;const a=o[i(152)][i(154)](t,{attributes:i(132)});if(a){const e=Number[i(136)](t[i(138)](i(132)),10);Number[i(221)](e)||(r=e)}!a&&e[i(208)](i(185))||o[i(162)][i(171)](i(185),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(183)](e,i(188)))return;let r=i(218),a=!1;if(o[i(152)][i(154)](t,{attributes:i(153)})){const e={1:i(218),a:i(151),A:i(195),i:i(172),I:i(143)}[t[i(138)](i(153))];e&&(r=e),a=!0}o[i(152)][i(154)](t,{styles:i(212)})&&(r=function(t){const e=i;switch(t){case e(151):return e(159);case e(195):return e(223);default:return t}}(t[i(180)](i(212))),a=!0),!a&&e[i(208)](i(188))||o[i(162)][i(171)](i(188),r,e)}(r,a,n,i))})}),o[t(176)](t(202))[t(215)](e=>{const o=t;e.on(o(200),(t,e,n)=>{const i=o;if(!n[i(152)][i(154)](e[i(135)],t[i(186)]))return;const s=mt(e[i(135)],n[i(196)]),{attributeNewValue:r}=e;null==r||1===r?n[i(162)][i(194)](i(132),s):n[i(162)][i(171)](i(132),String(r),s)}),e.on(o(177),(t,e,n)=>{const i=o;if(!n[i(152)][i(154)](e[i(135)],t[i(186)]))return;const s=mt(e[i(135)],n[i(196)]),{attributeNewValue:r}=e;r&&i(218)!==r?n[i(162)][i(146)](i(212),r,s):n[i(162)][i(187)](i(212),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(161)][t(204)](h),i=this[t(199)](),s=this[t(178)]();o[t(147)][t(140)](e=>{const r=t,a=o[r(147)][r(213)][r(156)]();let c=!1;for(const t of a){if(r(191)!==t[r(153)]||r(130)===t[r(186)])continue;const n=o[r(158)](t[r(142)][r(170)]);for(const t of n[r(189)]())t.is(r(211),r(184))&&(!t[r(208)](r(185))&&o[r(155)][r(183)](t,r(185))&&(e[r(171)](r(185),s,t),c=!0),!t[r(208)](r(188))&&o[r(155)][r(183)](t,r(188))&&(e[r(171)](r(188),i,t),c=!0))}return c&&n[r(144)](e),c})}[ht(164)](){const t=ht,{editor:e}=this;e[t(161)][t(204)](h)[t(190)](e=>this[t(182)](e))}[ht(199)](){const t=ht;return this[t(224)][t(179)][t(204)](t(227))}[ht(178)](){const t=ht;return this[t(224)][t(179)][t(204)](t(207))}[ht(182)]({container:t,value:e,digits:o}){const n=ht,i=t[n(138)](n(188)),s=t[n(138)](n(185)),r=Math[n(166)](e)+(s??1)-1;switch(i){case n(160):return function(t,e){const o=n;return String(t)[o(209)](e,"0")}(r,Math[n(203)](2,o));case n(151):case n(159):return gt(r,!1);case n(195):case n(223):return gt(r,!0);case n(172):return bt(r,!1);case n(143):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=ht,n=e[o(225)](t);return Array[o(229)](n[o(210)]())[o(168)](t=>t.is(o(211),"ol")&&t[o(222)](o(131)))}function gt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(228)](97+t)+n,i=Math[o(166)]((i-1)/26)}return e?n[o(145)]():n}function wt(t,e){const o=vt();return(wt=function(t,e){return o[t-=130]})(t,e)}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(169)]()}function vt(){const t=["isPremiumPlugin","_defineSchema","removeAttribute","upper-alpha","mapper","init","5hcKKVW","_getDefaultListStyle","attribute:footnotesListStart:footnotesDefinitions","model","downcast","max","get","extend","3241288uzUEhi","footnotes.footnotesProperties.defaultStartIndex","hasAttribute","padStart","getChildren","element","list-style-type","differ","12220848HlhPpF","add","_defineConverters","49YpOotE","decimal","FootnotesPropertiesEditing","_definePostfixer","isNaN","hasClass","upper-latin","editor","toViewElement","footnotesStyle","footnotes.footnotesProperties.defaultListStyle","fromCharCode","from","$text","footnotes-list","start","viewItem","define","item","parseInt","commands","getAttribute","parent","registerPostFixer","pluginName","position","upper-roman","_updateFootnotesCounters","toUpperCase","setStyle","document","90711qLnxot","1743030KLOAmD","2291085DqcfVJ","lower-alpha","consumable","type","consume","schema","getChanges","isOfficialPlugin","createRangeOn","lower-latin","decimal-leading-zero","plugins","writer","729488fdYysR","_defineFormatter","element:ol","floor","upcast","find","toLowerCase","nodeAfter","setAttribute","lower-roman","194652ozSUCk","requires","footnotesStart","for","attribute:footnotesListStyle:footnotesDefinitions","_getDefaultStartIndex","config","getStyle","modelCursor","_formatFootnoteListValue","checkAttribute","footnotesDefinitions","footnotesListStart","name","removeStyle","footnotesListStyle","getItems","setFootnoteFormatter","insert"];return(vt=function(){return t})()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=q(),Ct.insert=B().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=z();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=270]})(t,e)}function St(){var t=["5960qRULmV","isPremiumPlugin","253880btZeLN","952035ujKZgH","573201jSifEL","138zMqLKd","171RUYMHo","12scNyRy","1870275VQmfTy","5862zltmYT","2bQqmbh","isOfficialPlugin","pluginName","2993280MRrvDO","1710mnCGtx","requires","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(379612===parseInt(e(279))/1*(parseInt(e(285))/2)+-parseInt(e(280))/3*(-parseInt(e(275))/4)+parseInt(e(272))/5*(parseInt(e(284))/6)+parseInt(e(278))/7+-parseInt(e(277))/8*(parseInt(e(281))/9)+-parseInt(e(271))/10+parseInt(e(283))/11*(parseInt(e(282))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(270)](){return xt(274)}static get[xt(273)](){return[pt,Ft]}static get[xt(286)](){return!0}static get[xt(276)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=346]})(t,e)}function Dt(){var t=["9794568SckUfB","9098313JWhmNX","1164885JnUZiw","9tgfaaw","1468559fajgwU","2LUkYND","1349044FXfYxS","32994135BxKOdU","528684dBMiUN"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(830022===-parseInt(e(348))/1*(parseInt(e(349))/2)+-parseInt(e(347))/3*(-parseInt(e(350))/4)+parseInt(e(346))/5+-parseInt(e(352))/6+-parseInt(e(354))/7+-parseInt(e(353))/8+parseInt(e(351))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
package/dist/index.js CHANGED
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x54fc79,Command as _0x4d85ab}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5f5136,isWidget as _0x55db2e,toWidgetEditable as _0x33cd15,WidgetToolbarRepository as _0x32f537}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x29f82b,logWarning as _0x2b02b2,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5def74,ClickObserver as _0xa76f8d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1bf577}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x400304,ButtonView as _0x1341bf,View as _0x33907a,ViewCollection as _0x336290,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x42a4b0,BalloonPanelView as _0x2d6142,createDropdown as _0x221538}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4a5924,IconListStyleDecimal as _0x2a1c01,IconListStyleDecimalLeadingZero as _0x32d776,IconListStyleLowerRoman as _0xbbab5a,IconListStyleUpperRoman as _0x565e32,IconListStyleLowerLatin as _0x2183eb,IconListStyleUpperLatin as _0x2639dc}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2d3bd3,_0x354274){this['_model']=_0x2d3bd3,this['_elementName']=_0x354274['elementName'],this['_getElementKey']=_0x354274['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5f1c9e){const _0x2031d7=new Set(),_0x82717c=new Map();for(const _0x5f14b0 of _0x5f1c9e){if('insert'===_0x5f14b0['type']&&'$text'!==_0x5f14b0['name']&&_0x5f14b0['position']['nodeAfter']){const _0x3ceb4e=this['_model']['createRangeOn'](_0x5f14b0['position']['nodeAfter']);for(const _0x2ad926 of _0x3ceb4e['getItems']()){if(!_0x2ad926['is']('element',this['_elementName']))continue;const _0x126a50=this['_getElementKey'](_0x2ad926);_0x82717c['has'](_0x126a50)||_0x82717c['set'](_0x126a50,[]),_0x82717c['get'](_0x126a50)['push'](_0x2ad926);}}if('remove'===_0x5f14b0['type']&&_0x5f14b0['name']===this['_elementName']){const _0x2a3f4e=this['_getElementKey']({'getAttribute':_0x424888=>_0x5f14b0['attributes']['get'](_0x424888)});_0x2031d7['add'](_0x2a3f4e);}}for(const [_0x3b2a7e,_0x547402]of this['_trackedElements'])'$graveyard'===_0x547402['root']['rootName']&&_0x2031d7['add'](_0x3b2a7e);for(const _0x46922f of _0x2031d7)this['_trackedElements']['delete'](_0x46922f);for(const [_0x5a2dfd,_0x1ac200]of _0x82717c)this['_trackedElements']['set'](_0x5a2dfd,_0x1ac200[_0x1ac200['length']-0x1]);const _0x24d262=new Set();for(const [_0x298f0b,_0x23d0fb]of _0x82717c)_0x2031d7['has'](_0x298f0b)&&(_0x24d262['add'](_0x23d0fb[0x0]),_0x23d0fb['length']>0x1?_0x82717c['set'](_0x298f0b,_0x23d0fb['slice'](0x1)):_0x82717c['delete'](_0x298f0b),_0x2031d7['delete'](_0x298f0b));return{'removed':Array['from'](_0x2031d7),'inserted':Array['from'](_0x82717c['values']())['flat'](),'moved':Array['from'](_0x24d262)};}}class f extends _0x54fc79{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x172ee2){super(_0x172ee2),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x272caa=>_0x272caa['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x20e09d=>_0x20e09d['getAttribute']('footnoteId')});}['init'](){const {editor:_0x88a305}=this,{model:_0xb4ace9,data:_0x18af75}=_0x88a305;_0xb4ace9['document']['registerPostFixer'](_0x2f46ca=>{const _0x5e9456=_0xb4ace9['document']['differ']['getChanges']();let _0x33c09d=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2f46ca,_0x5e9456)&&(_0x33c09d=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2f46ca,_0x5e9456)&&(_0x33c09d=!0x0),this['_handleFootnoteReferencesChanges'](_0x2f46ca,_0x5e9456)&&(_0x33c09d=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2f46ca)&&(_0x33c09d=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2f46ca)&&(_0x33c09d=!0x0),this['_sortFootnoteDefinitions'](_0x2f46ca)&&(_0x33c09d=!0x0),_0x33c09d;}),this['listenTo'](_0xb4ace9['document'],'change:data',()=>{_0xb4ace9['enqueueChange']({'isUndoable':!0x1},_0xef8c26=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xef8c26);});},{'priority':'low'}),this['listenTo'](_0x18af75,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0xed97ab){return this['_footnotes']['find'](_0x1303ff=>_0x1303ff['id']===_0xed97ab)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x43bf18){this['_footnoteFormatter']=_0x43bf18;}['_updateFootnotesCounters'](_0x166c0f,_0x490bfe=0x0){let _0x339db3=!0x1;for(let _0x5c7ae5=_0x490bfe;_0x5c7ae5<this['_footnotes']['length'];_0x5c7ae5++)this['_updateFootnoteRefCounter'](_0x166c0f,_0x5c7ae5)&&(_0x339db3=!0x0);return _0x339db3;}['_insertEmptyFootnotesDefinitionsContainer'](_0x20de1a,_0x56f814){const _0x28bca0=_0x20de1a['createElement']('footnotesDefinitions',{});return _0x20de1a['append'](_0x28bca0,_0x56f814),this['_footnotesDefinitions']=_0x28bca0,_0x28bca0;}['_ensureFootnotesDefinitionsContainerExists'](_0x53f990){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x38077e=this['_footnotes'][0x0]['reference']['root'],_0x1a4c2d=this['_insertEmptyFootnotesDefinitionsContainer'](_0x53f990,_0x38077e);for(const _0x2befa3 of this['_footnotes'])_0x2befa3['definition']['parent']||_0x53f990['insert'](_0x2befa3['definition'],_0x1a4c2d,'end');this['_updateFootnotesCounters'](_0x53f990);}['_handleFootnotesDefinitionsObjectChanges'](_0x32a562,_0x453455){let _0x26f6c6=!0x1;const {inserted:_0x301a21,removed:_0x25a35d,moved:_0x5e414f}=this['_footnoteDefsContainerTracker']['getChanges'](_0x453455);if(_0x5e414f['length']&&(this['_footnotesDefinitions']=_0x5e414f[0x0]),_0x301a21['length']){if(_0x301a21['length']>0x1||this['_footnotesDefinitions']&&_0x301a21['some'](_0x2f6ea1=>_0x2f6ea1!==this['_footnotesDefinitions'])){const _0x1cd589=_0x32a562['createElement']('footnotesDefinitions',{}),_0x565501=[];this['_footnotesDefinitions']&&_0x565501['push'](this['_footnotesDefinitions']),_0x565501['push'](..._0x301a21),_0x32a562['insert'](_0x1cd589,_0x565501[0x0],'before');for(const _0x883465 of _0x565501)_0x32a562['move'](_0x32a562['createRangeIn'](_0x883465),_0x32a562['createPositionAt'](_0x1cd589,'end')),_0x32a562['remove'](_0x883465);this['_footnotesDefinitions']=_0x1cd589,this['_updateFootnotesCounters'](_0x32a562),_0x26f6c6=!0x0;}else this['_footnotesDefinitions']=_0x301a21[0x0];}if(_0x25a35d['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x51e84e of this['_footnotes'])_0x32a562['remove'](_0x51e84e['reference']),_0x26f6c6=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x26f6c6;}['_handleFootnoteDefinitionsChanges'](_0x37f5da,_0x4a6770){let _0x341440=!0x1;const _0x31ebca=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x3ae438,moved:_0x27255c}=this['_footnoteDefsTracker']['getChanges'](_0x4a6770);for(const _0x328e79 of[..._0x27255c,..._0x3ae438]){const _0xb36d7a=_0x328e79['getAttribute']('footnoteId'),_0x45c107=this['getFootnote'](_0xb36d7a);_0x45c107&&(_0x45c107['definition']=_0x328e79),_(_0x37f5da,_0x31ebca,_0x328e79)&&(_0x341440=!0x0);}return _0x341440;}['_handleFootnoteReferencesChanges'](_0x1cb78a,_0x537619){let _0x38a44b=!0x1;const {removed:_0x47d399,inserted:_0x2f4f9e,moved:_0x16015c}=this['_footnoteRefsTracker']['getChanges'](_0x537619);for(const _0xf1ba7f of _0x47d399)this['_handleRemoveFootnoteReferenceById'](_0x1cb78a,_0xf1ba7f)&&(_0x38a44b=!0x0);for(const _0xf4eefa of _0x2f4f9e)this['_handleInsertedFootnoteReference'](_0x1cb78a,_0xf4eefa)&&(_0x38a44b=!0x0);for(const _0x4278d3 of _0x16015c)this['_handleMovedFootnoteReference'](_0x1cb78a,_0x4278d3)&&(_0x38a44b=!0x0);return _0x38a44b;}['_handleFootnotesDefinitionsObjectSync'](_0x2aafe0){if(!this['_footnotesDefinitions'])return!0x1;let _0x4c6533=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x575d0b=[];for(const _0x44ed4c of this['_footnotesDefinitions']['getChildren']()){const _0x2c786b=_0x44ed4c['getAttribute']('footnoteId');this['getFootnote'](_0x2c786b)||(_0x575d0b['unshift'](_0x44ed4c),_0x4c6533=!0x0);}for(const _0x22181c of _0x575d0b)_0x2aafe0['remove'](_0x22181c);}const _0x282c83=new Set(),_0x2a10ea=[];for(const _0x57f9df of this['_footnotesDefinitions']['getChildren']()){const _0x28f96d=_0x57f9df['getAttribute']('footnoteId');_0x282c83['has'](_0x28f96d)?(_0x2a10ea['unshift'](_0x57f9df),_0x4c6533=!0x0):_0x282c83['add'](_0x28f96d);}for(const _0x4863de of _0x2a10ea)_0x2aafe0['remove'](_0x4863de);return this['_footnotesDefinitions']['childCount']||(_0x2aafe0['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x4c6533=!0x0),_0x4c6533;}['_handleInsertedFootnoteReference'](_0x401fb8,_0x3ace6d){if(this['_footnotes']['find'](_0x1b2bc7=>_0x1b2bc7['reference']===_0x3ace6d))return!0x1;let _0x2ff29d=!0x1;const _0x173175=_0x3ace6d['getAttribute']('footnoteId'),_0x173628=this['_footnotes']['findIndex'](_0x3c73ce=>_0x3c73ce['id']===_0x173175);-0x1!==_0x173628&&(_0x401fb8['remove'](this['_footnotes'][_0x173628]['reference']),this['_footnotes']['splice'](_0x173628,0x1),_0x2ff29d=!0x0);let _0xbec0f=this['_footnotesDefinitions']?function(_0x20583e,_0x153ed8){for(const _0x52d1b3 of _0x20583e['getChildren']())if(_0x52d1b3['getAttribute']('footnoteId')===_0x153ed8)return _0x52d1b3;return null;}(this['_footnotesDefinitions'],_0x173175):null;_0xbec0f||(_0xbec0f=_0x401fb8['createElement']('footnoteDefinition',{'footnoteId':_0x173175}),this['_footnotesDefinitions']&&(_0x401fb8['insert'](_0xbec0f,this['_footnotesDefinitions'],'end'),_0x2ff29d=!0x0));const _0x495e07={'id':_0x173175,'reference':_0x3ace6d,'definition':_0xbec0f},_0x17c777=I(this['editor']['model'],this['_footnotes'],_0x3ace6d);this['_footnotes']['splice'](_0x17c777,0x0,_0x495e07);let _0x101b01=_0x17c777;return-0x1!==_0x173628&&(_0x101b01=Math['min'](_0x17c777,_0x173628)),this['_updateFootnotesCounters'](_0x401fb8,_0x101b01)&&(_0x2ff29d=!0x0),_0x2ff29d;}['_handleRemoveFootnoteReferenceById'](_0x377653,_0x16895e){const _0x4bd7bf=this['_footnotes']['findIndex'](_0x2905ee=>_0x2905ee['id']===_0x16895e);if(-0x1===_0x4bd7bf)return!0x1;let _0x998e4f=!0x1;const _0x145d30=this['_footnotes'][_0x4bd7bf];return'$graveyard'!==_0x145d30['definition']['root']['rootName']&&(_0x377653['remove'](_0x145d30['definition']),_0x998e4f=!0x0),this['_footnotes']['splice'](_0x4bd7bf,0x1),this['_updateFootnotesCounters'](_0x377653,_0x4bd7bf)&&(_0x998e4f=!0x0),_0x998e4f;}['_handleMovedFootnoteReference'](_0x51cc07,_0x163235){const _0x5c7cf0=_0x163235['getAttribute']('footnoteId'),_0x188ca9=this['_footnotes']['findIndex'](_0x2ece68=>_0x2ece68['id']===_0x5c7cf0),_0x25547f=this['_footnotes'][_0x188ca9];let _0x1e9a39=!0x1;_0x25547f['reference']=_0x163235,this['_footnotes']['splice'](_0x188ca9,0x1);const _0x2f086f=I(this['editor']['model'],this['_footnotes'],_0x163235);return this['_footnotes']['splice'](_0x2f086f,0x0,_0x25547f),this['_updateFootnotesCounters'](_0x51cc07,Math['min'](_0x188ca9,_0x2f086f))&&(_0x1e9a39=!0x0),_0x1e9a39;}['_updateFootnoteRefCounter'](_0x2a2e45,_0x31b50b){if(!this['_footnotesDefinitions'])return!0x1;const _0x5b50c5=this['_footnotes'][_0x31b50b];let _0x45dae4;return _0x45dae4=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x5b50c5,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x31b50b+0x1}):String(_0x31b50b+0x1),_0x5b50c5['reference']['getAttribute']('footnoteCounter')!=_0x45dae4&&(_0x2a2e45['setAttribute']('footnoteCounter',_0x45dae4,_0x5b50c5['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4fcc85){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2b73d1,_0x42ab57){if(_0x2b73d1['length']!==_0x42ab57['length'])return!0x1;for(let _0x200e81=0x0;_0x200e81<_0x2b73d1['length'];_0x200e81++)if(_0x2b73d1[_0x200e81]!==_0x42ab57[_0x200e81])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x45f0a1=>_0x45f0a1['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x347e1c=>_0x347e1c['getAttribute']('footnoteId'))))return!0x1;let _0x48f111=!0x1;for(let _0xc8ff1=0x0;_0xc8ff1<this['_footnotes']['length'];_0xc8ff1++){const _0x121ced=this['_footnotes'][_0xc8ff1],_0xad789e=_0x4fcc85['createPositionBefore'](_0x121ced['definition']),_0x1e805d=_0x4fcc85['createPositionAt'](this['_footnotesDefinitions'],_0xc8ff1);_0xad789e['isEqual'](_0x1e805d)||(_0x4fcc85['move'](_0x4fcc85['createRangeOn'](_0x121ced['definition']),_0x1e805d),_0x48f111=!0x0);}return _0x48f111;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5e0bbf){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4e3ccd}=this['editor'];let _0x51d3dd=!0x1;for(let _0x37262d=0x0;_0x37262d<this['_footnotes']['length']-0x1;_0x37262d++){const _0x4ebb2b=this['_footnotes'][_0x37262d],_0x291553=this['_footnotes'][_0x37262d+0x1],_0xe3580d=_0x4e3ccd['createPositionBefore'](_0x4ebb2b['reference']),_0x113673=_0x4e3ccd['createPositionBefore'](_0x291553['reference']);'after'===_0xe3580d['compareWith'](_0x113673)&&(this['_handleMovedFootnoteReference'](_0x5e0bbf,_0x4ebb2b['reference']),_0x37262d=-0x1,_0x51d3dd=!0x0);}return _0x51d3dd;}}function _(_0x2c87bd,_0x3f5cd7,_0xeb19fe){if(_0xeb19fe['childCount'])return!0x1;const _0x1d15da=_0x3f5cd7?'paragraph':'footnoteInlineContent';return _0x2c87bd['insert'](_0x2c87bd['createElement'](_0x1d15da),_0xeb19fe),!0x0;}function I(_0x4b821b,_0x138bf7,_0x393c0f){if(0x0===_0x138bf7['length'])return 0x0;const _0x20ca48=_0x4b821b['createPositionBefore'](_0x393c0f);for(let _0x192bb9=0x0;_0x192bb9<_0x138bf7['length'];_0x192bb9++){const _0x38e459=_0x138bf7[_0x192bb9],_0x246f62=_0x4b821b['createPositionBefore'](_0x38e459['reference']);if('before'===_0x20ca48['compareWith'](_0x246f62))return _0x192bb9;}const _0x155852=_0x393c0f['root'];let _0x122f0e=-0x1;for(let _0x27286b=_0x138bf7['length']-0x1;_0x27286b>=0x0;_0x27286b--)if(_0x138bf7[_0x27286b]['reference']['root']===_0x155852){_0x122f0e=_0x27286b;break;}if(-0x1!==_0x122f0e)return _0x122f0e+0x1;const _0x30b976=_0x4b821b['document']['getRootNames'](),_0x131096=_0x30b976['indexOf'](_0x155852['rootName']),_0x16fe08=_0x30b976[_0x131096+0x1];if(_0x16fe08){for(let _0x148cb3=0x0;_0x148cb3<_0x138bf7['length'];_0x148cb3++)if(_0x138bf7[_0x148cb3]['reference']['root']['rootName']===_0x16fe08)return _0x148cb3;}return _0x138bf7['length'];}class h extends _0x4d85ab{['refresh'](){const _0x459e6e=this['editor']['model']['document']['selection'],_0x5e6e67=this['_getPositionToInsertFootnote'](_0x459e6e);this['isEnabled']=!!_0x5e6e67;}['execute'](_0x364041){const {editor:_0x37ac27}=this,{model:_0x25a688}=_0x37ac27,{selection:_0x555be8}=_0x25a688['document'],_0x1c775a=this['_getPositionToInsertFootnote'](_0x555be8);if(!_0x1c775a)return;const _0x523f62=_0x37ac27['plugins']['get']('FootnotesEditing'),_0x3e2983=_0x364041?.['footnoteId']??_0x29f82b();!function(_0x3c9c4b){return'string'==typeof _0x3c9c4b&&_0x3c9c4b['length']>0x0&&!/\s/['test'](_0x3c9c4b)&&!/^\d/['test'](_0x3c9c4b);}(_0x3e2983)?_0x2b02b2('insert-footnote-command-executed-with-invalid-id'):(_0x25a688['change'](_0x4fb805=>{const _0x43a5f6=_0x4fb805['createElement']('footnoteRef',{'footnoteId':_0x3e2983});_0x25a688['insertObject'](_0x43a5f6,_0x1c775a,null);}),_0x523f62['_moveSelectionToFootnoteDefinition'](_0x3e2983));}['_getPositionToInsertFootnote'](_0x4207a8){const {model:_0x1174b2}=this['editor'],{schema:_0x82f2b9}=_0x1174b2,_0x309f82=_0x4207a8['getFirstRange']();for(const _0x2eb3df of _0x309f82['getItems']())if(_0x82f2b9['isBlock'](_0x2eb3df)||_0x82f2b9['isObject'](_0x2eb3df))return null;const _0x2e225b=_0x309f82['end'];return _0x82f2b9['checkChild'](_0x2e225b,'footnoteRef')?_0x2e225b:null;}}class r extends _0x54fc79{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5ae7cf}=this;_0x5ae7cf['config']['define']('footnotes.multiBlock',!0x0),_0x5ae7cf['commands']['add']('insertFootnote',new h(_0x5ae7cf)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x3355fa){const _0x30a180=_0x32873c([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]),_0x2109a6=0x47a28506,_0x330de5=0x47a502ce^_0x2109a6,_0x5bd2fb=window[_0x32873c([0x44,0x61,0x74,0x65])][_0x32873c([0x6e,0x6f,0x77])](),_0x123133=_0x3355fa[_0x32873c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5a0e11=new window[(_0x32873c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbc27cf=>{_0x123133[_0x32873c([0x6f,0x6e,0x63,0x65])](_0x32873c([0x72,0x65,0x61,0x64,0x79]),_0xbc27cf);}),_0x282a53={[_0x32873c([0x6b,0x74,0x79])]:_0x32873c([0x45,0x43]),[_0x32873c([0x75,0x73,0x65])]:_0x32873c([0x73,0x69,0x67]),[_0x32873c([0x63,0x72,0x76])]:_0x32873c([0x50,0x2d,0x32,0x35,0x36]),[_0x32873c([0x78])]:_0x32873c([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]),[_0x32873c([0x79])]:_0x32873c([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]),[_0x32873c([0x61,0x6c,0x67])]:_0x32873c([0x45,0x53,0x32,0x35,0x36])},_0xac0a28=_0x123133[_0x32873c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x32873c([0x67,0x65,0x74])](_0x32873c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3b4bc1(){let _0x32d7cb,_0x21bfae=null,_0x168f26=null;try{if(_0xac0a28==_0x32873c([0x47,0x50,0x4c]))return _0x32873c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x32d7cb=_0x1881fa(),!_0x32d7cb)return _0x32873c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x32d7cb[_0x32873c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x168f26=_0x37947e(_0x32d7cb[_0x32873c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x32d7cb[_0x32873c([0x6a,0x74,0x69])])),await _0x988833()?_0x5e5ac0()?_0x3cb9d5()?_0x32873c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xebb3c4()?(_0x32d7cb[_0x32873c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x32873c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x21bfae=_0x4567cf(_0x32873c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xccb33()):_0x32873c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x32873c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x32873c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x32873c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3cb9d5(){const _0x482d87=[_0x32873c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x32873c([0x74,0x72,0x69,0x61,0x6c])][_0x32873c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32d7cb[_0x32873c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bd2fb/0x3e8:0xe10*_0x330de5;return _0x32d7cb[_0x32873c([0x65,0x78,0x70])]<_0x482d87;}function _0x5e5ac0(){const _0x4e443d=_0x32d7cb[_0x32873c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e443d&&(!!_0x4e443d[_0x32873c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32873c([0x2a]))||!!_0x4e443d[_0x32873c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32873c([0x46,0x4f,0x4f])));}function _0xebb3c4(){const _0x4d6d52=_0x32d7cb[_0x32873c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4d6d52||0x0==_0x4d6d52[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4043d4}=new URL(window[_0x32873c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4d6d52[_0x32873c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4043d4))return!0x0;const _0x1ddc7a=_0x4043d4[_0x32873c([0x73,0x70,0x6c,0x69,0x74])](_0x32873c([0x2e]));return _0x4d6d52[_0x32873c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17c6e7=>_0x17c6e7[_0x32873c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x32873c([0x2a])))[_0x32873c([0x6d,0x61,0x70])](_0x4f7ebb=>_0x4f7ebb[_0x32873c([0x73,0x70,0x6c,0x69,0x74])](_0x32873c([0x2e])))[_0x32873c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2a1702=>_0x2a1702[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1ddc7a[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32873c([0x6d,0x61,0x70])](_0x5aadae=>Array(_0x1ddc7a[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5aadae[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x32873c([0x66,0x69,0x6c,0x6c])](_0x5aadae[0x0]===_0x32873c([0x2a])?_0x32873c([0x2a]):'')[_0x32873c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5aadae))[_0x32873c([0x73,0x6f,0x6d,0x65])](_0x11ba4c=>_0x1ddc7a[_0x32873c([0x65,0x76,0x65,0x72,0x79])]((_0x2eb9bc,_0xecfd78)=>_0x11ba4c[_0xecfd78]===_0x2eb9bc||_0x11ba4c[_0xecfd78]===_0x32873c([0x2a])));}function _0xccb33(){return _0x21bfae&&_0x168f26?new window[(_0x32873c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57027a,_0x32316e)=>{_0x21bfae[_0x32873c([0x74,0x68,0x65,0x6e])](_0x57027a,_0x32316e),_0x168f26[_0x32873c([0x74,0x68,0x65,0x6e])](_0xe4fbff=>{_0xe4fbff!=_0x32873c([0x56,0x61,0x6c,0x69,0x64])&&_0x57027a(_0xe4fbff);},_0x32316e);}):_0x21bfae||_0x168f26||_0x32873c([0x56,0x61,0x6c,0x69,0x64]);}}function _0x37947e(_0x119e21,_0x437728){return new window[(_0x32873c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1d0659=>{if(_0x5739e9())return _0x1d0659(_0x32873c([0x56,0x61,0x6c,0x69,0x64]));_0x16734f(),_0x123133[_0x32873c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x32873c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x5d986f=!0x1;const _0x52fab8=_0x29f82b();function _0x44880d(_0x437ca3){return!!_0x437ca3&&(typeof _0x437ca3===_0x32873c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x437ca3===_0x32873c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x437ca3[_0x32873c([0x74,0x68,0x65,0x6e])]===_0x32873c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x437ca3[_0x32873c([0x63,0x61,0x74,0x63,0x68])]===_0x32873c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x336eb8(_0x20fc1e){_0x238a22(_0x20fc1e)[_0x32873c([0x74,0x68,0x65,0x6e])](_0x1ef1d1=>{if(!_0x1ef1d1||_0x1ef1d1[_0x32873c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x32873c([0x6f,0x6b]))return _0x32873c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1a8c4e(_0x41f1da(_0x52fab8+_0x437728))!=_0x1ef1d1[_0x32873c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x32873c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x32873c([0x56,0x61,0x6c,0x69,0x64]);})[_0x32873c([0x74,0x68,0x65,0x6e])](_0x4302a4=>(_0x2fdca7(),_0x4302a4),()=>{const _0x47ae2d=_0x2bee7c();return null==_0x47ae2d?(_0x2fdca7(),_0x32873c([0x56,0x61,0x6c,0x69,0x64])):_0x32873c(_0x5bd2fb-_0x47ae2d>(0x63ae0106^_0x2109a6)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x32873c([0x74,0x68,0x65,0x6e])](_0x1d0659)[_0x32873c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1d0659(_0x32873c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3eda9e=0x47946b86^_0x2109a6;function _0x2fdca7(){const _0x1442d2=_0x32873c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a8c4e(_0x41f1da(_0x119e21)),_0x51631f=_0x275aca(_0x1a8c4e(window[_0x32873c([0x4d,0x61,0x74,0x68])][_0x32873c([0x63,0x65,0x69,0x6c])](_0x5bd2fb/_0x3eda9e)));window[_0x32873c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32873c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1442d2,_0x51631f);}function _0x2bee7c(){const _0x5b5f68=_0x32873c([0x6c,0x6c,0x63,0x74,0x2d])+_0x1a8c4e(_0x41f1da(_0x119e21)),_0x466183=window[_0x32873c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x32873c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5b5f68);return _0x466183?window[_0x32873c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x275aca(_0x466183),0x10)*_0x3eda9e:null;}function _0x238a22(_0x45f2e6){return new window[(_0x32873c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4e7916,_0x3c8788)=>{_0x45f2e6[_0x32873c([0x74,0x68,0x65,0x6e])](_0x4e7916,_0x3c8788),window[_0x32873c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3c8788,0x47a351c6^_0x2109a6);});}}_0x123133[_0x32873c([0x6f,0x6e])](_0x32873c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5880f7,_0xde6817)=>{if(_0xde6817[0x0]!=_0x119e21)return _0x1d0659(_0x32873c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xde6817[0x1]={..._0xde6817[0x1],[_0x32873c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x52fab8};},{[_0x32873c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32873c([0x68,0x69,0x67,0x68])}),_0x123133[_0x32873c([0x6f,0x6e])](_0x32873c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x9ad666=>{_0x44880d(_0x9ad666[_0x32873c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x5d986f=!0x0,_0x336eb8(_0x9ad666[_0x32873c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x32873c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x32873c([0x6c,0x6f,0x77])}),_0x5a0e11[_0x32873c([0x74,0x68,0x65,0x6e])](()=>{_0x5d986f||_0x1d0659(_0x32873c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5739e9(){return _0x123133[_0x32873c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32873c([0x76,0x69,0x65,0x77])][_0x32873c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x32873c([0x61,0x75,0x74,0x6f]);}function _0x16734f(){_0x123133[_0x32873c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x32873c([0x76,0x69,0x65,0x77])][_0x32873c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x32873c([0x61,0x75,0x74,0x6f]);}}function _0x4567cf(_0x54df09){const _0x1e712d=[new window[(_0x32873c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3fb03b=>setTimeout(_0x3fb03b,0x47abbbca^_0x2109a6)),_0x5a0e11[_0x32873c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x32873c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bf497=>{let _0x5249bc=0x0;_0x123133[_0x32873c([0x6d,0x6f,0x64,0x65,0x6c])][_0x32873c([0x6f,0x6e])](_0x32873c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x43e1c0,_0x46f83c)=>{_0x46f83c[0x0][_0x32873c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5249bc++,_0x5249bc==(0x47a280ee^_0x2109a6)&&(_0x1bf497(),_0x43e1c0[_0x32873c([0x6f,0x66,0x66])]());});}))];return window[_0x32873c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x32873c([0x72,0x61,0x63,0x65])](_0x1e712d)[_0x32873c([0x74,0x68,0x65,0x6e])](()=>_0x54df09);}async function _0x30f880(){await _0x5a0e11,_0x123133[_0x32873c([0x6d,0x6f,0x64,0x65,0x6c])][_0x32873c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x292b7f,_0x123133[_0x32873c([0x6d,0x6f,0x64,0x65,0x6c])][_0x32873c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x292b7f,_0x123133[_0x32873c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x32873c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4f6336(_0x2793b6){const _0x6aca7e=_0x3f6e60();_0x123133[_0x6aca7e]=_0x32873c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2793b6,_0x2793b6!=_0x32873c([0x56,0x61,0x6c,0x69,0x64])&&_0x30f880();}function _0x3f6e60(){const _0x43109b=window[_0x32873c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x32873c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x32873c([0x6e,0x6f,0x77])]())[_0x32873c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x32873c([0x2e]),'');let _0x169ac0=_0x32873c([0x75]);for(let _0x39cbbf=0x0;_0x39cbbf<_0x43109b[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x39cbbf+=0x2){let _0x5d74e5=window[_0x32873c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43109b[_0x32873c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x39cbbf,_0x39cbbf+0x2));_0x5d74e5>=_0x30a180[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d74e5-=_0x30a180[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x169ac0+=_0x30a180[_0x5d74e5];}return _0x169ac0;}function _0x1881fa(){const _0x4a5e38=_0xac0a28[_0x32873c([0x73,0x70,0x6c,0x69,0x74])](_0x32873c([0x2e]));if(0x3!=_0x4a5e38[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x213b39(_0x4a5e38[0x1]);function _0x213b39(_0x563c39){const _0x1185f5=_0x357110(_0x563c39);return _0x1185f5&&_0x60ca76()?_0x1185f5:null;function _0x60ca76(){const _0x1a2f57=_0x1185f5[_0x32873c([0x6a,0x74,0x69])],_0x2f448f=window[_0x32873c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1a2f57[_0x32873c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1a2f57[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b0d9c={..._0x1185f5,[_0x32873c([0x6a,0x74,0x69])]:_0x1a2f57[_0x32873c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1a2f57[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b0d9c[_0x32873c([0x76,0x63])],_0x41f1da(_0x1b0d9c)==_0x2f448f;}}}async function _0x988833(){let _0x5308fc=!0x0;try{const _0x4ff626=_0xac0a28[_0x32873c([0x73,0x70,0x6c,0x69,0x74])](_0x32873c([0x2e])),[_0x3eae6d,_0x4792b4,_0x28090c]=_0x4ff626;return _0x5a1b5a(_0x3eae6d),await _0x154d72(_0x3eae6d,_0x4792b4,_0x28090c),_0x5308fc;}catch{return!0x1;}function _0x5a1b5a(_0x384bdd){const _0x41c4dc=_0x357110(_0x384bdd);_0x41c4dc&&_0x41c4dc[_0x32873c([0x61,0x6c,0x67])]==_0x32873c([0x45,0x53,0x32,0x35,0x36])||(_0x5308fc=!0x1);}async function _0x154d72(_0x137ccf,_0x436eac,_0x44e765){const _0x3054c8=window[_0x32873c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x32873c([0x66,0x72,0x6f,0x6d])](_0x2f6bc6(_0x44e765),_0x1cf7ff=>_0x1cf7ff[_0x32873c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x479f73=new window[(_0x32873c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x32873c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x137ccf+_0x32873c([0x2e])+_0x436eac),_0x3574c9=window[_0x32873c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x32873c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3574c9)return;const _0x406918=await _0x3574c9[_0x32873c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x32873c([0x6a,0x77,0x6b]),_0x282a53,{[_0x32873c([0x6e,0x61,0x6d,0x65])]:_0x32873c([0x45,0x43,0x44,0x53,0x41]),[_0x32873c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x32873c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x32873c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3574c9[_0x32873c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x32873c([0x6e,0x61,0x6d,0x65])]:_0x32873c([0x45,0x43,0x44,0x53,0x41]),[_0x32873c([0x68,0x61,0x73,0x68])]:{[_0x32873c([0x6e,0x61,0x6d,0x65])]:_0x32873c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x406918,_0x3054c8,_0x479f73)||(_0x5308fc=!0x1);}}function _0x357110(_0x189477){return _0x189477[_0x32873c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x32873c([0x65,0x79]))?JSON[_0x32873c([0x70,0x61,0x72,0x73,0x65])](_0x2f6bc6(_0x189477)):null;}function _0x2f6bc6(_0x5d7437){return window[_0x32873c([0x61,0x74,0x6f,0x62])](_0x5d7437[_0x32873c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x32873c([0x2b]))[_0x32873c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x32873c([0x2f])));}function _0x41f1da(_0x4001c4){let _0x45622b=0x1505;function _0x20d3c6(_0x1692cb){for(let _0x157587=0x0;_0x157587<_0x1692cb[_0x32873c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x157587++){const _0x3c8066=_0x1692cb[_0x32873c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x157587);_0x45622b=(_0x45622b<<0x5)+_0x45622b+_0x3c8066,_0x45622b&=_0x45622b;}}function _0x5e6401(_0x28ea1e){Array[_0x32873c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x28ea1e)?_0x28ea1e[_0x32873c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5e6401):_0x28ea1e&&typeof _0x28ea1e==_0x32873c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x32873c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x28ea1e)[_0x32873c([0x73,0x6f,0x72,0x74])]()[_0x32873c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ac22c,_0x47ffd7])=>{_0x20d3c6(_0x5ac22c),_0x5e6401(_0x47ffd7);}):_0x20d3c6(window[_0x32873c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x28ea1e));}return _0x5e6401(_0x4001c4),_0x45622b>>>0x0;}function _0x1a8c4e(_0x33121f){return _0x33121f[_0x32873c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x32873c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x32873c([0x30]));}function _0x275aca(_0x5eb8c8){return _0x5eb8c8[_0x32873c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x32873c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x32873c([0x6a,0x6f,0x69,0x6e])]('');}function _0x292b7f(){}function _0x32873c(_0xc9f123){return _0xc9f123['map'](_0x5eb734=>String['fromCharCode'](_0x5eb734))['join']('');}_0x4f6336(await _0x3b4bc1());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5708bb){const {plugins:_0x1c2856,editing:_0x1a46c5,model:_0x236551}=this['editor'],_0x2ffa0a=_0x1c2856['get'](f)['getFootnote'](_0x5708bb);return!!_0x2ffa0a&&(_0x236551['change'](_0x39f502=>{_0x39f502['setSelection'](_0x39f502['createPositionAt'](_0x2ffa0a['definition'],'end'));}),_0x1a46c5['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x116891){const {plugins:_0x53f81c,editing:_0x269336,model:_0x3ff69b}=this['editor'],_0x110609=_0x53f81c['get'](f)['getFootnote'](_0x116891);return!!_0x110609&&(_0x3ff69b['change'](_0x226304=>{_0x226304['setSelection'](_0x110609['reference'],'on');}),_0x269336['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x51bd51}=this['editor']['model'],_0x3a68e9=this['editor']['config']['get']('footnotes.multiBlock');_0x51bd51['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x51bd51['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x51bd51['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3a68e9?_0x51bd51['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x51bd51['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x51bd51['addChildCheck'](_0x1c7bd1=>{for(const _0x143bed of _0x1c7bd1)if('footnoteDefinition'===_0x143bed['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x133a7c}=this,{conversion:_0x161c57,editing:_0x3efcea}=_0x133a7c,{t:t}=_0x133a7c['locale'];_0x161c57['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5aa8af,{writer:_0x492e10,consumable:_0x31e3ad})=>{const _0x152d5e=_0x5aa8af['getChild'](0x0);if(!_0x152d5e||!_0x152d5e['is']('element','a'))return null;const _0xd56976=_0x152d5e['getAttribute']('href')||'';if(!_0xd56976['startsWith']('#'))return null;const _0x3068c0=_0xd56976['replace'](/^#/,'');if(!_0x3068c0)return null;_0x31e3ad['consume'](_0x152d5e,{'name':!0x0,'attributes':['href']});for(const {item:_0x5a4d65}of _0x3efcea['view']['createRangeIn'](_0x152d5e))_0x5a4d65['is']('$textProxy')?_0x31e3ad['consume'](_0x5a4d65['textNode'],{'name':!0x0}):_0x5a4d65['is']('element')&&_0x31e3ad['consume'](_0x5a4d65,{'name':!0x0});return _0x492e10['createElement']('footnoteRef',{'footnoteId':_0x3068c0});}}),_0x161c57['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x15ac86,{writer:_0x324955})=>b(_0x15ac86,_0x324955)}),_0x161c57['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1eaa07,{writer:_0x491fd2})=>{const _0x1d6169=_0x1eaa07['getAttribute']('footnoteCounter');return _0x5f5136(b(_0x1eaa07,_0x491fd2),_0x491fd2,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1d6169)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3c8ccf}=this,{t:t}=_0x3c8ccf['locale'],{conversion:_0xdb9e4e}=_0x3c8ccf;_0xdb9e4e['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xdb9e4e['for']('upcast')['add'](_0x3b1fa9=>{_0x3b1fa9['on']('element:ol',(_0x3fdfa1,_0x518512,_0x3fc27c)=>{const _0x1dde4f=_0x518512['viewItem'];if(!_0x1dde4f['hasClass']('footnotes-list')||!_0x518512['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3fc27c['consumable']['consume'](_0x1dde4f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xbb22b6,modelCursor:_0x498a96}=_0x3fc27c['convertChildren'](_0x518512['viewItem'],_0x518512['modelCursor']);_0x518512['modelRange']=_0xbb22b6,_0x518512['modelCursor']=_0x498a96;}),_0x3b1fa9['on']('element:hr',(_0x269012,_0x42e39f,_0x1c27dd)=>{const _0x24d3fa=_0x42e39f['viewItem'];_0x24d3fa['hasClass']('footnotes-divider')&&_0x42e39f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x1c27dd['consumable']['consume'](_0x24d3fa,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xdb9e4e['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x392492,{writer:_0x26b174})=>D(_0x26b174)}),_0xdb9e4e['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x22a022,{writer:_0x200a38})=>{const _0x1e6bdb=D(_0x200a38,{'data-footnotes-list-label':t('Footnotes')}),_0x1b8248=_0x5f5136(_0x1e6bdb,_0x200a38,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x200a38['setCustomProperty']('footnotesDefinitions',!0x0,_0x1b8248),_0x1b8248;}});}['_defineDefinitionConverters'](){const {editor:_0x5dd0cf}=this,{conversion:_0x34f560,locale:_0x5b6d27}=_0x5dd0cf,_0x21c11c=_0x5dd0cf['config']['get']('footnotes.multiBlock');_0x34f560['for']('upcast')['add'](_0x5b6140=>{_0x5b6140['on']('element:li',(_0x5b88b7,_0x36fcb5,_0x2cb804)=>{const _0x1dc28e=_0x36fcb5['viewItem'];if(!_0x1dc28e['hasClass']('footnote-definition')||!_0x1dc28e['getAttribute']('id'))return;const _0x3b52a2=_0x1dc28e['parent'];if(!_0x3b52a2['is']('element','ol')||!_0x3b52a2['hasClass']('footnotes-list'))return;if(!_0x2cb804['consumable']['test'](_0x1dc28e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x7c5665=_0x2cb804['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1dc28e['getAttribute']('id')});if(!_0x2cb804['safeInsert'](_0x7c5665,_0x36fcb5['modelCursor']))return;_0x2cb804['consumable']['consume'](_0x1dc28e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x349200=Array['from'](_0x1dc28e['getChildren']())['find'](_0x4e4811=>_0x4e4811['is']('element')&&_0x4e4811['hasClass']('footnote-content'));for(const _0x333ac0 of _0x1dc28e['getChildren']())_0x333ac0['is']('element')&&(_0x2cb804['consumable']['consume'](_0x333ac0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2cb804['consumable']['consume'](_0x333ac0,{'name':!0x0,'classes':'footnote-content'}));if(_0x349200){if(_0x21c11c)_0x2cb804['convertChildren'](_0x349200,_0x7c5665);else{const _0x4592ec=_0x2cb804['writer']['createElement']('footnoteInlineContent');_0x2cb804['writer']['insert'](_0x4592ec,_0x7c5665),_0x2cb804['convertChildren'](_0x349200,_0x4592ec);}}_0x2cb804['updateConversionResult'](_0x7c5665,_0x36fcb5);});}),_0x34f560['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x395943,{writer:_0x5209e9})=>y(_0x395943,_0x5209e9,_0x5b6d27,{'dataPipeline':!0x0})}),_0x34f560['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5a6e5d,{writer:_0x3dd4c6})=>y(_0x5a6e5d,_0x3dd4c6,_0x5b6d27)});}['_defineBogusParagraphConverters'](){const {editor:_0x490552}=this,{conversion:_0x3d108b}=_0x490552;_0x490552['config']['get']('footnotes.multiBlock')?(_0x3d108b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3d108b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x490552['model']['document'],'change:data',()=>{!function(_0x4692cb,_0x57159d){const _0x576509=_0x4692cb['document']['differ'],_0x31d351=new Set();for(const _0x4f98c0 of _0x576509['getChanges']()){const _0x26c2b7='attribute'==_0x4f98c0['type']?_0x4f98c0['range']['start']['parent']:_0x4f98c0['position']['parent'];_0x26c2b7['is']('element','footnoteDefinition')&&_0x31d351['add'](_0x26c2b7);}for(const _0x304817 of _0x31d351['values']()){const _0x186d09=Array['from'](_0x304817['getChildren']())['filter'](_0x35d021=>v(_0x35d021,_0x57159d['mapper']));for(const _0x3220a9 of _0x186d09)_0x57159d['reconvertItem'](_0x3220a9);}}(_0x490552['model'],_0x490552['editing']);})):(_0x3d108b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3d108b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5a16a5,{writer:_0x312069})=>{const _0x32944c=_0x312069['createContainerElement']('span');return _0x312069['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x32944c),_0x32944c;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5b090d}=this,{editing:_0x3a1ca0,t:t}=_0x5b090d,_0x51fa32=_0x5b090d['model']['document']['selection'];_0x5b090d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5b090d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3a1ca0['view']['document'],'enter',(_0x129ac4,_0x2525e0)=>{const _0x48956a=function(_0x28b574){const _0x1385cf=_0x28b574['getSelectedElement']();if(_0x1385cf?.['is']('element','footnoteRef'))return _0x1385cf;return null;}(_0x51fa32);if(_0x48956a){const _0x514f23=_0x48956a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x514f23),_0x2525e0['preventDefault'](),_0x129ac4['stop']();}},{'context':_0x55db2e});}['_defineClickHandlers'](){const {editor:_0x2b2c42}=this,{editing:_0x22a73e}=_0x2b2c42;_0x2b2c42['editing']['view']['addObserver'](_0x5def74),_0x2b2c42['editing']['view']['addObserver'](_0xa76f8d);let _0x2ddaaf=!0x1;this['listenTo'](_0x22a73e['view']['document'],'pointerdown',(_0x5c6320,_0x130c32)=>{const {target:_0x46db5f}=_0x130c32,_0xc2eb2c=_0x22a73e['view']['document']['selection'];_0x2ddaaf=!!(_0x46db5f?.['is']('element','a')&&_0x46db5f['parent']?.['is']('element','sup')&&_0x46db5f['parent']['hasClass']('footnote'))&&_0xc2eb2c['getSelectedElement']()===_0x46db5f['parent'];},{'priority':'high'}),this['listenTo'](_0x22a73e['view']['document'],'click',(_0x4fb3b8,_0x4a2e91)=>{const {target:_0x1e4331}=_0x4a2e91;if(!_0x1e4331?.['is']('element','a'))return;if(_0x1e4331['parent']?.['is']('element','sup')&&_0x1e4331['parent']['hasClass']('footnote')&&!_0x2ddaaf)return void _0x4a2e91['preventDefault']();let _0x2cf806=_0x1e4331['getAttribute']('href');if(!_0x2cf806?.['startsWith']('#'))return;_0x2cf806=_0x2cf806['slice'](0x1);let _0x49bf2d=!0x1;(_0x2cf806['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2cf806['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2cf806))&&(_0x49bf2d=!0x0),_0x49bf2d&&(_0x4a2e91['preventDefault'](),_0x4fb3b8['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x40efe3}={}){return(_0x508c35,{writer:_0x1b62e0})=>{if(!g(_0x508c35))return null;if(!_0x40efe3)return _0x1b62e0['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x598c79=_0x1b62e0['createContainerElement']('p');return _0x1b62e0['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x598c79),_0x598c79;};}function g(_0x1acb55){const {parent:_0x1ff3ad}=_0x1acb55;if(!_0x1ff3ad?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1ff3ad['childCount'])return!0x1;for(const _0x146b46 of _0x1acb55['getAttributeKeys']())if(!_0x146b46['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x146b46)return!0x1;return!0x0;}function v(_0x236ec2,_0x48610d){if(!_0x236ec2['is']('element','paragraph'))return!0x1;const _0x5d5ca4=_0x48610d['toViewElement'](_0x236ec2);return!!_0x5d5ca4&&g(_0x236ec2)!==_0x5d5ca4['is']('element','span');}function Q(_0xa21db4){return _0x55db2e(_0xa21db4)&&_0xa21db4['is']('containerElement')&&!!_0xa21db4['getCustomProperty']('footnotesDefinitions');}function D(_0x27191c,_0x480b94={}){const _0x5a9ed8=_0x27191c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x77b30c=_0x27191c['createContainerElement']('ol',{'class':'footnotes-list'},_0x27191c['createSlot']());return _0x27191c['createContainerElement']('div',{'class':'footnotes',..._0x480b94},[_0x5a9ed8,_0x77b30c]);}function b(_0x9de4ea,_0x1ca32d){const _0x33a839=_0x9de4ea['getAttribute']('footnoteId'),_0x112913=_0x9de4ea['getAttribute']('footnoteCounter'),_0x535c16=_0x1ca32d['createUIElement']('a',{'href':'#'+_0x33a839},function(_0x5c1ada){const _0x2952c5=this['toDomElement'](_0x5c1ada);return _0x2952c5['textContent']=_0x112913,_0x2952c5;}),_0x439b76=_0x1ca32d['createContainerElement']('sup',{'id':'ref-'+_0x33a839,'class':'footnote'},[_0x535c16]);return _0x439b76['getFillerOffset']=()=>null,_0x439b76;}function y(_0x2c8cf8,_0x5db487,_0x42d63b,{dataPipeline:_0xb52941}={}){const {t:t}=_0x42d63b,_0x4841f5=_0x2c8cf8['getAttribute']('footnoteId'),_0x1c27c2=_0x5db487['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4841f5},function(_0x319ea0){const _0x5c87eb=this['toDomElement'](_0x319ea0);return _0x5c87eb['innerText']='^',_0x5c87eb;}),_0x3afe64=_0xb52941?_0x5db487['createContainerElement']('div',{'class':'footnote-content'}):_0x33cd15(_0x5db487['createEditableElement']('div',{'class':'footnote-content'}),_0x5db487,{'label':t('Footnote\x20content.')});return _0x5db487['insert'](_0x5db487['createPositionAt'](_0x3afe64,0x0),_0x5db487['createSlot']()),_0x5db487['createContainerElement']('li',{'class':'footnote-definition','id':_0x4841f5},[_0x1c27c2,_0x3afe64]);}class e extends _0x54fc79{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1bf577];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x52f746}=this,{plugins:_0x340666,model:_0x455434}=_0x52f746,_0x5c63d2=_0x340666['get'](_0x1bf577),_0x2a3ac1=_0x340666['get'](f);this['listenTo'](_0x5c63d2,'outputTransformation',(_0x51e613,_0x2a7e79)=>{const _0x199b1a=l(_0x455434['createRangeIn'](_0x2a7e79['content']));if(!_0x199b1a['length'])return;const _0x48d509=_0x2a3ac1['getFootnotes'](),_0x4fb0f5=_0x199b1a['reduce']((_0x41c5a0,_0x3b1007)=>{const _0x57a198=_0x48d509['find'](_0x1fecca=>_0x1fecca['id']===_0x3b1007);if(_0x57a198){const _0x1ba98d=_0x52f746['data']['toView'](_0x57a198['definition'],{'isClipboardPipeline':!0x0}),_0x27e188=_0x52f746['data']['htmlProcessor']['toData'](_0x1ba98d);_0x41c5a0[_0x57a198['id']]=_0x27e188;}return _0x41c5a0;},Object['create'](null));_0x2a7e79['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x4fb0f5));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x152d32}=this,{model:_0x1134c1,plugins:_0x119b44}=_0x152d32,{view:_0x2db7c6}=_0x152d32['editing'],_0x4800dc=_0x119b44['get'](_0x1bf577),_0x4f3277=_0x119b44['get'](f),_0xc2a0d8=_0x152d32['config']['get']('footnotes.multiBlock');let _0x4038b1=null;this['listenTo'](_0x2db7c6['document'],'clipboardInput',(_0x38d70e,_0x5db043)=>{const _0x32ee94=_0x5db043['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4038b1=_0x32ee94?JSON['parse'](_0x32ee94):null;}),this['listenTo'](_0x4800dc,'contentInsertion',(_0x112b7d,_0x53cd29)=>{const _0xc1e4d6=_0x53cd29['sourceEditorId']===this['editor']['id'];_0xc1e4d6&&'drop'===_0x53cd29['method']||_0x1134c1['change'](_0xe32575=>{let _0x3b34ff=_0x4f3277['getFootnotesDefinitionsObjectElement']();const _0x3d612a=!!_0x3b34ff&&Array['from'](_0x1134c1['document']['selection']['getSelectedBlocks']())['includes'](_0x3b34ff);if(!_0x4038b1&&function(_0x355d5e){for(const {item:_0x172b00}of _0x355d5e)if(_0x172b00['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x1134c1['createRangeIn'](_0x53cd29['content']))&&(_0x4038b1=function(_0x352ee7,_0x1b24bd){const _0x2a764a=c(_0x352ee7,_0x1b24bd);if(!_0x2a764a)return null;const _0x15b24a=Object['create'](null);for(const _0x44eb05 of _0x2a764a['getChildren']())_0x44eb05['is']('element','footnoteDefinition')&&_0x44eb05['hasAttribute']('footnoteId')&&(_0x15b24a[_0x44eb05['getAttribute']('footnoteId')]=_0x352ee7['cloneElement'](_0x44eb05,!0x0));return Object['keys'](_0x15b24a)['length']?_0x15b24a:null;}(_0xe32575,_0x53cd29['content'])),(_0x3b34ff&&!_0x3d612a||!_0x3b34ff&&!_0x4038b1)&&function(_0x56ff0b,_0x60444c){const _0x270963=[];for(const {item:_0x25ec3e}of _0x56ff0b['createRangeIn'](_0x60444c))_0x25ec3e['is']('element','footnotesDefinitions')&&_0x270963['push'](_0x25ec3e);for(const _0x380764 of _0x270963)_0x56ff0b['remove'](_0x380764);}(_0xe32575,_0x53cd29['content']),!_0x4038b1)return;const {selection:_0x589764}=_0x1134c1['document'],_0x538c7b=_0x589764['getFirstRange']()['root'];_0x3b34ff&&!_0x3d612a||(_0x3b34ff=c(_0xe32575,_0x53cd29['content']),_0x3b34ff||=_0x4f3277['_insertEmptyFootnotesDefinitionsContainer'](_0xe32575,_0x538c7b));const _0x306a02=Array['from'](_0x589764['getRanges']())['flatMap'](l),_0x59aa0b=function(_0x4243b9,_0x5b1ca9,_0x2ecf72){const _0x218d4a=Object['create'](null);for(const {item:_0x42ac1a}of _0x4243b9['createRangeIn'](_0x5b1ca9))if(_0x42ac1a['is']('element','footnoteRef')){const _0x2aae8=_0x42ac1a['getAttribute']('footnoteId');if(!_0x2ecf72(_0x2aae8))continue;_0x218d4a[_0x2aae8]||(_0x218d4a[_0x2aae8]=_0x29f82b()),_0x4243b9['setAttribute']('footnoteId',_0x218d4a[_0x2aae8],_0x42ac1a);}return _0x218d4a;}(_0xe32575,_0x53cd29['content'],_0x131d61=>{if(!_0xc1e4d6)return!0x0;return!!_0x4f3277['getFootnote'](_0x131d61)&&!_0x306a02['includes'](_0x131d61);});for(const [_0x525955,_0x5d19e1]of Object['entries'](_0x4038b1)){const _0x55104b=_0x59aa0b[_0x525955]||_0x525955;let _0x356ec4;if('string'!=typeof _0x5d19e1)_0x356ec4=_0x5d19e1,_0x55104b!==_0x525955&&_0xe32575['setAttribute']('footnoteId',_0x55104b,_0x356ec4);else{_0x356ec4=_0xe32575['createElement']('footnoteDefinition',{'footnoteId':_0x55104b});const _0x2a1333=_0x152d32['data']['htmlProcessor']['toView'](_0x5d19e1);let _0x5b6641;if(_0xc2a0d8)_0x5b6641=_0x152d32['data']['toModel'](_0x2a1333,_0x356ec4);else{_0x5b6641=_0xe32575['createElement']('footnoteInlineContent');const _0x1dc805=_0x152d32['data']['toModel'](_0x2a1333,_0x5b6641);_0xe32575['insert'](_0x1dc805,_0x5b6641);}_0xe32575['append'](_0x5b6641,_0x356ec4);}_0xe32575['insert'](_0x356ec4,_0x3b34ff,'end');}_0x4038b1=null;});});}}function c(_0x55ed4b,_0x4ee466){for(const {item:_0x3c665a}of _0x55ed4b['createRangeIn'](_0x4ee466))if(_0x3c665a['is']('element','footnotesDefinitions'))return _0x3c665a;return null;}function l(_0x3610e7){const _0x43f3c4=new Set();for(const {item:_0x4b1425}of _0x3610e7)_0x4b1425['is']('element','footnoteRef')&&_0x43f3c4['add'](_0x4b1425['getAttribute']('footnoteId'));return Array['from'](_0x43f3c4);}class i extends _0x54fc79{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x45a65a}=this,{componentFactory:_0x2b524c}=_0x45a65a['ui'];_0x2b524c['add']('insertFootnote',E(_0x45a65a,_0x1341bf)),_0x2b524c['add']('menuBar:insertFootnote',E(_0x45a65a,_0x400304)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x55a7af=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x597322;for(const _0x4e3100 in _0x55a7af){const _0x539775=_0x4e3100,_0x3265b3=_0x55a7af[_0x539775];if('footnotesLicenseKeyValid'==_0x3265b3||'footnotesLicenseKeyInvalid'==_0x3265b3||'footnotesLicenseKeyExpired'==_0x3265b3||'footnotesLicenseKeyDomainLimit'==_0x3265b3||'footnotesLicenseKeyNotAllowed'==_0x3265b3||'footnotesLicenseKeyEvaluationLimit'==_0x3265b3||'footnotesLicenseKeyUsageLimit'==_0x3265b3){delete _0x55a7af[_0x539775],_0x597322=_0x3265b3,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x597322&&_0x55a7af['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x597322&&_0x55a7af['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x597322&&_0x55a7af['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x597322&&_0x55a7af['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x597322&&_0x55a7af['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x597322&&_0x55a7af['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x4a9b0a,_0x4707b9){const _0x5f5d67=_0x4a9b0a['commands']['get']('insertFootnote');return _0x12394b=>{const {t:t}=_0x12394b,_0x557d1=new _0x4707b9(_0x12394b),_0x8780a8=_0x557d1 instanceof _0x400304;return _0x557d1['bind']('isEnabled')['to'](_0x5f5d67,'isEnabled'),_0x557d1['set']({'label':t(_0x8780a8?'Footnote':'Insert\x20footnote'),'icon':_0x4a5924,'tooltip':!0x0}),_0x557d1['on']('execute',()=>{_0x5f5d67['execute'](),_0x4a9b0a['editing']['view']['focus']();}),_0x557d1;};}class lt extends _0x54fc79{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x4d85ab{['refresh'](){const {editor:_0x5af6d3}=this,_0x4543bb=_0x5af6d3['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4543bb,this['value']=_0x4543bb?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x289f35}){const {editor:_0x4a254b}=this,_0x198660=_0x4a254b['plugins']['get'](f),_0x36c678=_0x198660['getFootnotesDefinitionsObjectElement']();_0x36c678&&W['includes'](_0x289f35)&&_0x4a254b['model']['change'](_0x1ff7ba=>{_0x1ff7ba['setAttribute']('footnotesListStyle',_0x289f35,_0x36c678),_0x198660['_updateFootnotesCounters'](_0x1ff7ba);});}}class C extends _0x4d85ab{['refresh'](){const {editor:_0x522b7a}=this,_0x1b3770=_0x522b7a['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1b3770,this['value']=_0x1b3770?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4c32c7}){const {editor:_0xf7c155}=this,_0x4b137c=_0xf7c155['plugins']['get'](f),_0x3eef78=_0x4b137c['getFootnotesDefinitionsObjectElement']();_0x3eef78&&Number['isInteger'](_0x4c32c7)&&_0xf7c155['model']['change'](_0x386b88=>{_0x386b88['setAttribute']('footnotesListStart',_0x4c32c7,_0x3eef78),_0x4b137c['_updateFootnotesCounters'](_0x386b88);});}}class P extends _0x54fc79{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x24c439}=this;_0x24c439['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x24c439['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x24c439['commands']['add']('footnotesStyle',new S(_0x24c439)),_0x24c439['commands']['add']('footnotesStart',new C(_0x24c439)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x282144}=this,{schema:_0x32fb3b}=_0x282144['model'];_0x32fb3b['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x259791}=this,{conversion:_0x2163af,model:_0x5033d2}=_0x259791,{schema:_0x4aafb6}=_0x5033d2;_0x2163af['for']('upcast')['add'](_0x58d5ef=>{_0x58d5ef['on']('element:ol',(_0x5738c1,_0x3240e8,_0x2f6e44)=>{const _0x5dbaa4=_0x3240e8['viewItem'],_0x3e404e=_0x3240e8['modelCursor']?.['parent'];_0x5dbaa4['hasClass']('footnotes-list')&&_0x3e404e?.['is']('element','footnotesDefinitions')&&(function(_0x2539ce,_0x39d17f,_0x23e98b,_0x3ae865){if(!_0x3ae865['checkAttribute'](_0x39d17f,'footnotesListStart'))return;let _0x3ef213=0x1;const _0x35578d=_0x23e98b['consumable']['consume'](_0x2539ce,{'attributes':'start'});if(_0x35578d){const _0x508a20=Number['parseInt'](_0x2539ce['getAttribute']('start'),0xa);Number['isNaN'](_0x508a20)||(_0x3ef213=_0x508a20);}!_0x35578d&&_0x39d17f['hasAttribute']('footnotesListStart')||_0x23e98b['writer']['setAttribute']('footnotesListStart',_0x3ef213,_0x39d17f);}(_0x5dbaa4,_0x3e404e,_0x2f6e44,_0x4aafb6),function(_0x2aca49,_0x38efaa,_0x72083a,_0x2c97a6){if(!_0x2c97a6['checkAttribute'](_0x38efaa,'footnotesListStyle'))return;let _0x35c887='decimal',_0x56d5cb=!0x1;if(_0x72083a['consumable']['consume'](_0x2aca49,{'attributes':'type'})){const _0x1169c6={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2aca49['getAttribute']('type')];_0x1169c6&&(_0x35c887=_0x1169c6),_0x56d5cb=!0x0;}_0x72083a['consumable']['consume'](_0x2aca49,{'styles':'list-style-type'})&&(_0x35c887=function(_0x52f3ec){switch(_0x52f3ec){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x52f3ec;}}(_0x2aca49['getStyle']('list-style-type')),_0x56d5cb=!0x0),!_0x56d5cb&&_0x38efaa['hasAttribute']('footnotesListStyle')||_0x72083a['writer']['setAttribute']('footnotesListStyle',_0x35c887,_0x38efaa);}(_0x5dbaa4,_0x3e404e,_0x2f6e44,_0x4aafb6));});}),_0x2163af['for']('downcast')['add'](_0x3c23ce=>{_0x3c23ce['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1d3440,_0x101bdd,_0x3daf06)=>{if(!_0x3daf06['consumable']['consume'](_0x101bdd['item'],_0x1d3440['name']))return;const _0x503879=M(_0x101bdd['item'],_0x3daf06['mapper']),{attributeNewValue:_0x11380b}=_0x101bdd;null==_0x11380b||0x1===_0x11380b?_0x3daf06['writer']['removeAttribute']('start',_0x503879):_0x3daf06['writer']['setAttribute']('start',String(_0x11380b),_0x503879);}),_0x3c23ce['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x18ad68,_0x15c24a,_0x4086a3)=>{if(!_0x4086a3['consumable']['consume'](_0x15c24a['item'],_0x18ad68['name']))return;const _0x3bf639=M(_0x15c24a['item'],_0x4086a3['mapper']),{attributeNewValue:_0x52e9ad}=_0x15c24a;_0x52e9ad&&'decimal'!==_0x52e9ad?_0x4086a3['writer']['setStyle']('list-style-type',_0x52e9ad,_0x3bf639):_0x4086a3['writer']['removeStyle']('list-style-type',_0x3bf639);});});}['_definePostfixer'](){const {editor:_0x545a69}=this,{model:_0x9796c3}=_0x545a69,_0x520957=_0x545a69['plugins']['get'](f),_0x3fd849=this['_getDefaultListStyle'](),_0x5539f6=this['_getDefaultStartIndex']();_0x9796c3['document']['registerPostFixer'](_0x89afdd=>{const _0x2e8e69=_0x9796c3['document']['differ']['getChanges']();let _0x57554a=!0x1;for(const _0x2a035a of _0x2e8e69){if('insert'!==_0x2a035a['type']||'$text'===_0x2a035a['name'])continue;const _0x2cb173=_0x9796c3['createRangeOn'](_0x2a035a['position']['nodeAfter']);for(const _0x86bda of _0x2cb173['getItems']())_0x86bda['is']('element','footnotesDefinitions')&&(!_0x86bda['hasAttribute']('footnotesListStart')&&_0x9796c3['schema']['checkAttribute'](_0x86bda,'footnotesListStart')&&(_0x89afdd['setAttribute']('footnotesListStart',_0x5539f6,_0x86bda),_0x57554a=!0x0),!_0x86bda['hasAttribute']('footnotesListStyle')&&_0x9796c3['schema']['checkAttribute'](_0x86bda,'footnotesListStyle')&&(_0x89afdd['setAttribute']('footnotesListStyle',_0x3fd849,_0x86bda),_0x57554a=!0x0));}return _0x57554a&&_0x520957['_updateFootnotesCounters'](_0x89afdd),_0x57554a;});}['_defineFormatter'](){const {editor:_0x4904cb}=this;_0x4904cb['plugins']['get'](f)['setFootnoteFormatter'](_0x2fef7b=>this['_formatFootnoteListValue'](_0x2fef7b));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x39cb90,value:_0x33d94b,digits:_0x300984}){const _0x2d7e90=_0x39cb90['getAttribute']('footnotesListStyle'),_0x2a3b5e=_0x39cb90['getAttribute']('footnotesListStart'),_0x23ec3c=Math['floor'](_0x33d94b)+(_0x2a3b5e??0x1)-0x1;switch(_0x2d7e90){case'decimal-leading-zero':return function(_0x4d18cb,_0x2ed58c){return String(_0x4d18cb)['padStart'](_0x2ed58c,'0');}(_0x23ec3c,Math['max'](0x2,_0x300984));case'lower-alpha':case'lower-latin':return N(_0x23ec3c,!0x1);case'upper-alpha':case'upper-latin':return N(_0x23ec3c,!0x0);case'lower-roman':return X(_0x23ec3c,!0x1);case'upper-roman':return X(_0x23ec3c,!0x0);default:return String(_0x23ec3c);}}}function M(_0x524091,_0x5dca63){const _0x1753f5=_0x5dca63['toViewElement'](_0x524091);return Array['from'](_0x1753f5['getChildren']())['find'](_0x1772fd=>_0x1772fd['is']('element','ol')&&_0x1772fd['hasClass']('footnotes-list'));}function N(_0x2cb7ee,_0xc26da){let _0x46c29e='',_0x1e2275=_0x2cb7ee;for(;_0x1e2275>0x0;){const _0x38fbb9=(_0x1e2275-0x1)%0x1a;_0x46c29e=String['fromCharCode'](0x61+_0x38fbb9)+_0x46c29e,_0x1e2275=Math['floor']((_0x1e2275-0x1)/0x1a);}return _0xc26da?_0x46c29e['toUpperCase']():_0x46c29e;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x387c1c,_0x1593ab){let _0x2f37a4='',_0xb3a97f=_0x387c1c;for(const {value:_0x1bee9d,numeral:_0x1c4b49}of V)for(;_0xb3a97f>=_0x1bee9d;)_0x2f37a4+=_0x1c4b49,_0xb3a97f-=_0x1bee9d;return _0x1593ab?_0x2f37a4:_0x2f37a4['toLowerCase']();}class J extends _0x33907a{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x336290();['focusCycler'];constructor(_0xfde0a,{styleButtonViews:_0x1cc574,styleGridAriaLabel:_0x3314c7}){super(_0xfde0a),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1cc574,_0x3314c7),[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 _0x1fd21d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1fd21d['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x3285e8=_0x4b64bf=>_0x4b64bf['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3285e8),this['keystrokes']['set']('arrowleft',_0x3285e8),this['keystrokes']['set']('arrowup',_0x3285e8),this['keystrokes']['set']('arrowdown',_0x3285e8);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x2df8e5,_0x1edf5b){const _0x3c16ac=new _0x33907a(this['locale']);return _0x3c16ac['children']=_0x3c16ac['createCollection'](),_0x3c16ac['children']['addMany'](_0x2df8e5),_0x3c16ac['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1edf5b,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3c16ac['children']}),_0x3c16ac['children']['delegate']('execute')['to'](this),_0x3c16ac['focus']=function(){for(const _0x1a6400 of this['children'])if(_0x1a6400 instanceof _0x1341bf&&_0x1a6400['isOn'])return void _0x1a6400['focus']();this['children']['first']['focus']();},_0x3c16ac['focusTracker']=new rt(),_0x3c16ac['keystrokes']=new nt(),_0x3c16ac['render'](),_0x3c16ac['keystrokes']['listenTo'](_0x3c16ac['element']),this['children']['add'](_0x3c16ac),_0x3c16ac;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x206a60=this['_createStartIndexPropertyView'](),_0x1ec004=[_0x206a60],_0x39182b=new it(this['locale'],_0x1ec004);return _0x39182b['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x39182b['buttonView']['bind']('isEnabled')['toMany'](_0x1ec004,'isEnabled',(..._0xb60c62)=>_0xb60c62['some'](_0x348109=>_0x348109)),_0x39182b['buttonView']['on']('change:isEnabled',(_0x13571a,_0x8f8ae3,_0x1aeaae)=>{_0x1aeaae||(_0x39182b['isCollapsed']=!0x0);}),this['children']['add'](_0x39182b),[_0x206a60,_0x39182b];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4e257b=new et(this['locale'],ot);return _0x4e257b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4e257b['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4e257b['fieldView']['on']('input',()=>{const _0x155a06=_0x4e257b['fieldView']['element'],_0x1b1cfd=_0x155a06['valueAsNumber'];Number['isNaN'](_0x1b1cfd)?_0x4e257b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x155a06['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x1b1cfd}):_0x4e257b['errorText']=t(_0x1b1cfd<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4e257b;}}class j extends _0x54fc79{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x42a4b0,_0x32f537];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2b1f9c}=this,{componentFactory:_0x4c3719}=_0x2b1f9c['ui'];_0x2b1f9c['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4c3719['add']('footnotesStyle',function(_0x56eeee){return _0x3e8199=>{const {t:t}=_0x3e8199,_0x3335bf=_0x56eeee['commands']['get']('footnotesStyle'),_0x147994=_0x221538(_0x3e8199),{buttonView:_0x240760}=_0x147994;return _0x147994['class']='ck-footnotes-styles-dropdown',_0x147994['bind']('isEnabled')['to'](_0x3335bf,'isEnabled'),_0x240760['set']({'label':t('Footnotes\x20style'),'icon':_0x4a5924,'tooltip':!0x0}),_0x147994['once']('change:isOpen',()=>{const _0x55c7f3=function({editor:_0x2a64a7,dropdownView:_0x488f0d}){const {t:t}=_0x2a64a7['locale'],_0x53e420=t('Footnotes\x20definitions\x20styles'),_0x3d9139=function(_0x2f97e9){const t=_0x2f97e9['locale']['t'],_0x3fc26a=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2a1c01},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x32d776},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xbbab5a},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x565e32},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2183eb},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2639dc}];return _0x3fc26a['map'](function(_0x3dc9a4){const _0x42257a=_0x3dc9a4['locale'];return({label:_0x153fcc,icon:_0x33ca14,tooltip:_0x2057e5,style:_0x541376})=>{const _0x80ec9e=_0x3dc9a4['commands']['get']('footnotesStyle'),_0x10f505=new _0x1341bf(_0x42257a);return _0x10f505['set']({'label':_0x153fcc,'icon':_0x33ca14,'tooltip':_0x2057e5}),_0x10f505['bind']('isOn')['to'](_0x80ec9e,'value',_0x10dd60=>_0x10dd60===_0x541376),_0x10f505['bind']('isEnabled')['to'](_0x80ec9e,'isEnabled'),_0x10f505['on']('execute',()=>{_0x3dc9a4['execute']('footnotesStyle',{'value':_0x541376}),_0x3dc9a4['editing']['view']['focus']();}),_0x10f505;};}(_0x2f97e9));}(_0x2a64a7),_0x57f562=new J(_0x2a64a7['locale'],{'styleGridAriaLabel':_0x53e420,'styleButtonViews':_0x3d9139}),_0x10fb70=_0x2a64a7['commands']['get']('footnotesStart');return _0x57f562['startIndexFieldView']['bind']('isEnabled')['to'](_0x10fb70),_0x57f562['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x10fb70),_0x57f562['on']('footnotesListStart',(_0x18dc51,_0x503a88)=>{_0x2a64a7['execute']('footnotesStart',{'value':_0x503a88['startIndex']});}),_0x57f562['delegate']('execute')['to'](_0x488f0d),_0x57f562;}({'editor':_0x56eeee,'dropdownView':_0x147994});_0x147994['panelView']['children']['add'](_0x55c7f3);}),_0x147994;};}(_0x2b1f9c));}['afterInit'](){const {editor:_0x287539}=this,{t:t}=_0x287539['locale'],_0x38cc48=_0x287539['plugins']['get'](_0x32f537),{defaultPositions:_0x2ea256}=_0x2d6142;_0x38cc48['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x287539['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x1ce272=>{let _0x6d0ecf=_0x1ce272['getFirstPosition']()?.['parent'];return _0x6d0ecf?.['is']('$text')&&(_0x6d0ecf=_0x6d0ecf['parent']),_0x6d0ecf?.['is']('element')?_0x6d0ecf['findAncestor'](Q):null;},'positions':[_0x2ea256['southArrowNorth'],_0x2ea256['southArrowNorthMiddleWest'],_0x2ea256['southArrowNorthMiddleEast'],_0x2ea256['southArrowNorthWest'],_0x2ea256['southArrowNorthEast'],_0x2ea256['northArrowSouth'],_0x2ea256['northArrowSouthMiddleWest'],_0x2ea256['northArrowSouthMiddleEast'],_0x2ea256['northArrowSouthWest'],_0x2ea256['northArrowSouthEast'],_0x2ea256['viewportStickyNorth']]});}}class ft extends _0x54fc79{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
23
+ import{Plugin as _0x55f208,Command as _0x117536}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x551ca5,isWidget as _0x256579,toWidgetEditable as _0x686109,WidgetToolbarRepository as _0x569f83}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x4a8e9,logWarning as _0x1f3cd2,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3f9f1c,ClickObserver as _0x577452}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x364372}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x531778,ButtonView as _0x3a955b,View as _0x1ad2c0,ViewCollection as _0x1cf98d,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x50acf6,BalloonPanelView as _0x3666fc,createDropdown as _0x3cd3b0}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x39a9b7,IconListStyleDecimal as _0x427de6,IconListStyleDecimalLeadingZero as _0xdbb943,IconListStyleLowerRoman as _0x51800d,IconListStyleUpperRoman as _0x2a415c,IconListStyleLowerLatin as _0x37fb7e,IconListStyleUpperLatin as _0x174dcd}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x52b335,_0x287852){this['_model']=_0x52b335,this['_elementName']=_0x287852['elementName'],this['_getElementKey']=_0x287852['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x532e75){const _0x25981c=new Set(),_0x40d707=new Map();for(const _0x2f6b3c of _0x532e75){if('insert'===_0x2f6b3c['type']&&'$text'!==_0x2f6b3c['name']&&_0x2f6b3c['position']['nodeAfter']){const _0x3d0615=this['_model']['createRangeOn'](_0x2f6b3c['position']['nodeAfter']);for(const _0x4256cc of _0x3d0615['getItems']()){if(!_0x4256cc['is']('element',this['_elementName']))continue;const _0x4aa8f3=this['_getElementKey'](_0x4256cc);_0x40d707['has'](_0x4aa8f3)||_0x40d707['set'](_0x4aa8f3,[]),_0x40d707['get'](_0x4aa8f3)['push'](_0x4256cc);}}if('remove'===_0x2f6b3c['type']&&_0x2f6b3c['name']===this['_elementName']){const _0x40a445=this['_getElementKey']({'getAttribute':_0x2797c5=>_0x2f6b3c['attributes']['get'](_0x2797c5)});_0x25981c['add'](_0x40a445);}}for(const [_0x13d612,_0x4a25d8]of this['_trackedElements'])'$graveyard'===_0x4a25d8['root']['rootName']&&_0x25981c['add'](_0x13d612);for(const _0x3bb08b of _0x25981c)this['_trackedElements']['delete'](_0x3bb08b);for(const [_0x548950,_0x10a24c]of _0x40d707)this['_trackedElements']['set'](_0x548950,_0x10a24c[_0x10a24c['length']-0x1]);const _0x33d2e1=new Set();for(const [_0x9380e6,_0x5492a8]of _0x40d707)_0x25981c['has'](_0x9380e6)&&(_0x33d2e1['add'](_0x5492a8[0x0]),_0x5492a8['length']>0x1?_0x40d707['set'](_0x9380e6,_0x5492a8['slice'](0x1)):_0x40d707['delete'](_0x9380e6),_0x25981c['delete'](_0x9380e6));return{'removed':Array['from'](_0x25981c),'inserted':Array['from'](_0x40d707['values']())['flat'](),'moved':Array['from'](_0x33d2e1)};}}class f extends _0x55f208{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x16e0d2){super(_0x16e0d2),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x40765a=>_0x40765a['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x28343a=>_0x28343a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4eeb7a}=this,{model:_0x2ffbfa,data:_0x305b2e}=_0x4eeb7a;_0x2ffbfa['document']['registerPostFixer'](_0x4179a6=>{const _0x535b4b=_0x2ffbfa['document']['differ']['getChanges']();let _0xaa8589=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x4179a6,_0x535b4b)&&(_0xaa8589=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x4179a6,_0x535b4b)&&(_0xaa8589=!0x0),this['_handleFootnoteReferencesChanges'](_0x4179a6,_0x535b4b)&&(_0xaa8589=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x4179a6)&&(_0xaa8589=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x4179a6)&&(_0xaa8589=!0x0),this['_sortFootnoteDefinitions'](_0x4179a6)&&(_0xaa8589=!0x0),_0xaa8589;}),this['listenTo'](_0x2ffbfa['document'],'change:data',()=>{_0x2ffbfa['enqueueChange']({'isUndoable':!0x1},_0x5f53bd=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x5f53bd);});},{'priority':'low'}),this['listenTo'](_0x305b2e,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x265c93){return this['_footnotes']['find'](_0x44910a=>_0x44910a['id']===_0x265c93)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x30c4bd){this['_footnoteFormatter']=_0x30c4bd;}['_updateFootnotesCounters'](_0x494b5d,_0x2cf907=0x0){let _0x33119b=!0x1;for(let _0x3ede68=_0x2cf907;_0x3ede68<this['_footnotes']['length'];_0x3ede68++)this['_updateFootnoteRefCounter'](_0x494b5d,_0x3ede68)&&(_0x33119b=!0x0);return _0x33119b;}['_insertEmptyFootnotesDefinitionsContainer'](_0x3d2ce6,_0x2171f4){const _0x4bfee7=_0x3d2ce6['createElement']('footnotesDefinitions',{});return _0x3d2ce6['append'](_0x4bfee7,_0x2171f4),this['_footnotesDefinitions']=_0x4bfee7,_0x4bfee7;}['_ensureFootnotesDefinitionsContainerExists'](_0x2b974f){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x31b49e=this['_footnotes'][0x0]['reference']['root'],_0x482bcc=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2b974f,_0x31b49e);for(const _0x3498ed of this['_footnotes'])_0x3498ed['definition']['parent']||_0x2b974f['insert'](_0x3498ed['definition'],_0x482bcc,'end');this['_updateFootnotesCounters'](_0x2b974f);}['_handleFootnotesDefinitionsObjectChanges'](_0x47aba5,_0x5c4aef){let _0x43d2b4=!0x1;const {inserted:_0x365b6c,removed:_0x26680d,moved:_0x123aae}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5c4aef);if(_0x123aae['length']&&(this['_footnotesDefinitions']=_0x123aae[0x0]),_0x365b6c['length']){if(_0x365b6c['length']>0x1||this['_footnotesDefinitions']&&_0x365b6c['some'](_0x484041=>_0x484041!==this['_footnotesDefinitions'])){const _0x439a35=_0x47aba5['createElement']('footnotesDefinitions',{}),_0x35905b=[];this['_footnotesDefinitions']&&_0x35905b['push'](this['_footnotesDefinitions']),_0x35905b['push'](..._0x365b6c),_0x47aba5['insert'](_0x439a35,_0x35905b[0x0],'before');for(const _0x1a592c of _0x35905b)_0x47aba5['move'](_0x47aba5['createRangeIn'](_0x1a592c),_0x47aba5['createPositionAt'](_0x439a35,'end')),_0x47aba5['remove'](_0x1a592c);this['_footnotesDefinitions']=_0x439a35,this['_updateFootnotesCounters'](_0x47aba5),_0x43d2b4=!0x0;}else this['_footnotesDefinitions']=_0x365b6c[0x0];}if(_0x26680d['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0xdd1458 of this['_footnotes'])_0x47aba5['remove'](_0xdd1458['reference']),_0x43d2b4=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x43d2b4;}['_handleFootnoteDefinitionsChanges'](_0x39e881,_0x40d9ec){let _0xfaea6d=!0x1;const _0x484b76=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x253f7b,moved:_0x5ad0dd}=this['_footnoteDefsTracker']['getChanges'](_0x40d9ec);for(const _0xc49056 of[..._0x5ad0dd,..._0x253f7b]){const _0x298b9f=_0xc49056['getAttribute']('footnoteId'),_0x5f4058=this['getFootnote'](_0x298b9f);_0x5f4058&&(_0x5f4058['definition']=_0xc49056),_(_0x39e881,_0x484b76,_0xc49056)&&(_0xfaea6d=!0x0);}return _0xfaea6d;}['_handleFootnoteReferencesChanges'](_0x2a2333,_0x37db4d){let _0x300df1=!0x1;const {removed:_0x2c9b00,inserted:_0x45b46d,moved:_0x5da494}=this['_footnoteRefsTracker']['getChanges'](_0x37db4d);for(const _0x3d0215 of _0x2c9b00)this['_handleRemoveFootnoteReferenceById'](_0x2a2333,_0x3d0215)&&(_0x300df1=!0x0);for(const _0x5f0ff6 of _0x45b46d)this['_handleInsertedFootnoteReference'](_0x2a2333,_0x5f0ff6)&&(_0x300df1=!0x0);for(const _0x20a755 of _0x5da494)this['_handleMovedFootnoteReference'](_0x2a2333,_0x20a755)&&(_0x300df1=!0x0);return _0x300df1;}['_handleFootnotesDefinitionsObjectSync'](_0x4c3e3c){if(!this['_footnotesDefinitions'])return!0x1;let _0x286be8=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xb63754=[];for(const _0x42b2bd of this['_footnotesDefinitions']['getChildren']()){const _0x4cd6e1=_0x42b2bd['getAttribute']('footnoteId');this['getFootnote'](_0x4cd6e1)||(_0xb63754['unshift'](_0x42b2bd),_0x286be8=!0x0);}for(const _0x28f092 of _0xb63754)_0x4c3e3c['remove'](_0x28f092);}const _0x2954bb=new Set(),_0x494918=[];for(const _0x5c1c89 of this['_footnotesDefinitions']['getChildren']()){const _0x26f9c5=_0x5c1c89['getAttribute']('footnoteId');_0x2954bb['has'](_0x26f9c5)?(_0x494918['unshift'](_0x5c1c89),_0x286be8=!0x0):_0x2954bb['add'](_0x26f9c5);}for(const _0x3f6d90 of _0x494918)_0x4c3e3c['remove'](_0x3f6d90);return this['_footnotesDefinitions']['childCount']||(_0x4c3e3c['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x286be8=!0x0),_0x286be8;}['_handleInsertedFootnoteReference'](_0x77d18c,_0x53fc61){if(this['_footnotes']['find'](_0xf0b1ed=>_0xf0b1ed['reference']===_0x53fc61))return!0x1;let _0x536c2e=!0x1;const _0x3a7d53=_0x53fc61['getAttribute']('footnoteId'),_0x471780=this['_footnotes']['findIndex'](_0x3acfeb=>_0x3acfeb['id']===_0x3a7d53);-0x1!==_0x471780&&(_0x77d18c['remove'](this['_footnotes'][_0x471780]['reference']),this['_footnotes']['splice'](_0x471780,0x1),_0x536c2e=!0x0);let _0x5f2fe8=this['_footnotesDefinitions']?function(_0x318a16,_0x41e527){for(const _0x1fc8a4 of _0x318a16['getChildren']())if(_0x1fc8a4['getAttribute']('footnoteId')===_0x41e527)return _0x1fc8a4;return null;}(this['_footnotesDefinitions'],_0x3a7d53):null;_0x5f2fe8||(_0x5f2fe8=_0x77d18c['createElement']('footnoteDefinition',{'footnoteId':_0x3a7d53}),this['_footnotesDefinitions']&&(_0x77d18c['insert'](_0x5f2fe8,this['_footnotesDefinitions'],'end'),_0x536c2e=!0x0));const _0x52ba5b={'id':_0x3a7d53,'reference':_0x53fc61,'definition':_0x5f2fe8},_0x4afa6b=I(this['editor']['model'],this['_footnotes'],_0x53fc61);this['_footnotes']['splice'](_0x4afa6b,0x0,_0x52ba5b);let _0x4c44c3=_0x4afa6b;return-0x1!==_0x471780&&(_0x4c44c3=Math['min'](_0x4afa6b,_0x471780)),this['_updateFootnotesCounters'](_0x77d18c,_0x4c44c3)&&(_0x536c2e=!0x0),_0x536c2e;}['_handleRemoveFootnoteReferenceById'](_0x21463f,_0x71fd0f){const _0x199674=this['_footnotes']['findIndex'](_0x4f6372=>_0x4f6372['id']===_0x71fd0f);if(-0x1===_0x199674)return!0x1;let _0x765fb=!0x1;const _0x937b06=this['_footnotes'][_0x199674];return'$graveyard'!==_0x937b06['definition']['root']['rootName']&&(_0x21463f['remove'](_0x937b06['definition']),_0x765fb=!0x0),this['_footnotes']['splice'](_0x199674,0x1),this['_updateFootnotesCounters'](_0x21463f,_0x199674)&&(_0x765fb=!0x0),_0x765fb;}['_handleMovedFootnoteReference'](_0x876444,_0x4dcb76){const _0x42127c=_0x4dcb76['getAttribute']('footnoteId'),_0x39ee0f=this['_footnotes']['findIndex'](_0xebf82d=>_0xebf82d['id']===_0x42127c),_0xd805c3=this['_footnotes'][_0x39ee0f];let _0xc5bcf3=!0x1;_0xd805c3['reference']=_0x4dcb76,this['_footnotes']['splice'](_0x39ee0f,0x1);const _0x26a114=I(this['editor']['model'],this['_footnotes'],_0x4dcb76);return this['_footnotes']['splice'](_0x26a114,0x0,_0xd805c3),this['_updateFootnotesCounters'](_0x876444,Math['min'](_0x39ee0f,_0x26a114))&&(_0xc5bcf3=!0x0),_0xc5bcf3;}['_updateFootnoteRefCounter'](_0x24d884,_0x137460){if(!this['_footnotesDefinitions'])return!0x1;const _0x30af7f=this['_footnotes'][_0x137460];let _0x264efa;return _0x264efa=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x30af7f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x137460+0x1}):String(_0x137460+0x1),_0x30af7f['reference']['getAttribute']('footnoteCounter')!=_0x264efa&&(_0x24d884['setAttribute']('footnoteCounter',_0x264efa,_0x30af7f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x4b2239){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x29f9c8,_0x31de4a){if(_0x29f9c8['length']!==_0x31de4a['length'])return!0x1;for(let _0x18cc35=0x0;_0x18cc35<_0x29f9c8['length'];_0x18cc35++)if(_0x29f9c8[_0x18cc35]!==_0x31de4a[_0x18cc35])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3f45ef=>_0x3f45ef['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0xb80bbf=>_0xb80bbf['getAttribute']('footnoteId'))))return!0x1;let _0x305948=!0x1;for(let _0x361765=0x0;_0x361765<this['_footnotes']['length'];_0x361765++){const _0x42ff26=this['_footnotes'][_0x361765],_0x2d8eea=_0x4b2239['createPositionBefore'](_0x42ff26['definition']),_0x767921=_0x4b2239['createPositionAt'](this['_footnotesDefinitions'],_0x361765);_0x2d8eea['isEqual'](_0x767921)||(_0x4b2239['move'](_0x4b2239['createRangeOn'](_0x42ff26['definition']),_0x767921),_0x305948=!0x0);}return _0x305948;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2678b5){if(!this['_footnotes']['length'])return!0x1;const {model:_0x4a1cc7}=this['editor'];let _0x497d7a=!0x1;for(let _0x49a053=0x0;_0x49a053<this['_footnotes']['length']-0x1;_0x49a053++){const _0x42243f=this['_footnotes'][_0x49a053],_0x38531f=this['_footnotes'][_0x49a053+0x1],_0x34aa5f=_0x4a1cc7['createPositionBefore'](_0x42243f['reference']),_0x22b09a=_0x4a1cc7['createPositionBefore'](_0x38531f['reference']);'after'===_0x34aa5f['compareWith'](_0x22b09a)&&(this['_handleMovedFootnoteReference'](_0x2678b5,_0x42243f['reference']),_0x49a053=-0x1,_0x497d7a=!0x0);}return _0x497d7a;}}function _(_0x24cc17,_0x237fea,_0x58b3b5){if(_0x58b3b5['childCount'])return!0x1;const _0x5c01e8=_0x237fea?'paragraph':'footnoteInlineContent';return _0x24cc17['insert'](_0x24cc17['createElement'](_0x5c01e8),_0x58b3b5),!0x0;}function I(_0x3d1b79,_0x3c404f,_0xac326f){if(0x0===_0x3c404f['length'])return 0x0;const _0xe4f1fe=_0x3d1b79['createPositionBefore'](_0xac326f);for(let _0x202e25=0x0;_0x202e25<_0x3c404f['length'];_0x202e25++){const _0x3590a0=_0x3c404f[_0x202e25],_0x165ec5=_0x3d1b79['createPositionBefore'](_0x3590a0['reference']);if('before'===_0xe4f1fe['compareWith'](_0x165ec5))return _0x202e25;}const _0xa27684=_0xac326f['root'];let _0x433db8=-0x1;for(let _0x1d0b0d=_0x3c404f['length']-0x1;_0x1d0b0d>=0x0;_0x1d0b0d--)if(_0x3c404f[_0x1d0b0d]['reference']['root']===_0xa27684){_0x433db8=_0x1d0b0d;break;}if(-0x1!==_0x433db8)return _0x433db8+0x1;const _0x1024e1=_0x3d1b79['document']['getRootNames'](),_0x2a52e2=_0x1024e1['indexOf'](_0xa27684['rootName']),_0x200f1e=_0x1024e1[_0x2a52e2+0x1];if(_0x200f1e){for(let _0x49d777=0x0;_0x49d777<_0x3c404f['length'];_0x49d777++)if(_0x3c404f[_0x49d777]['reference']['root']['rootName']===_0x200f1e)return _0x49d777;}return _0x3c404f['length'];}class h extends _0x117536{['refresh'](){const _0x2ecc35=this['editor']['model']['document']['selection'],_0x2f12eb=this['_getPositionToInsertFootnote'](_0x2ecc35);this['isEnabled']=!!_0x2f12eb;}['execute'](_0x57b8f4){const {editor:_0x5aa83e}=this,{model:_0x11cc5c}=_0x5aa83e,{selection:_0xe5d54a}=_0x11cc5c['document'],_0x3ccd0a=this['_getPositionToInsertFootnote'](_0xe5d54a);if(!_0x3ccd0a)return;const _0x55b44f=_0x5aa83e['plugins']['get']('FootnotesEditing'),_0x4c7681=_0x57b8f4?.['footnoteId']??_0x4a8e9();!function(_0x2b696c){return'string'==typeof _0x2b696c&&_0x2b696c['length']>0x0&&!/\s/['test'](_0x2b696c)&&!/^\d/['test'](_0x2b696c);}(_0x4c7681)?_0x1f3cd2('insert-footnote-command-executed-with-invalid-id'):(_0x11cc5c['change'](_0x172470=>{const _0x3c8a5d=_0x172470['createElement']('footnoteRef',{'footnoteId':_0x4c7681});_0x11cc5c['insertObject'](_0x3c8a5d,_0x3ccd0a,null);}),_0x55b44f['_moveSelectionToFootnoteDefinition'](_0x4c7681));}['_getPositionToInsertFootnote'](_0x59f385){const {model:_0x3ae5ee}=this['editor'],{schema:_0x29167e}=_0x3ae5ee,_0x54799e=_0x59f385['getFirstRange']();for(const _0x29421f of _0x54799e['getItems']())if(_0x29167e['isBlock'](_0x29421f)||_0x29167e['isObject'](_0x29421f))return null;const _0xb9c56b=_0x54799e['end'];return _0x29167e['checkChild'](_0xb9c56b,'footnoteRef')?_0xb9c56b:null;}}class r extends _0x55f208{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1110b8}=this;_0x1110b8['config']['define']('footnotes.multiBlock',!0x0),_0x1110b8['commands']['add']('insertFootnote',new h(_0x1110b8)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5760c0){const _0x3984b9=_0x1b4caa([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]),_0xfeb6f3=0x47a28506,_0x21afcf=0x47a50d16^_0xfeb6f3,_0x163515=window[_0x1b4caa([0x44,0x61,0x74,0x65])][_0x1b4caa([0x6e,0x6f,0x77])](),_0x31e88d=_0x5760c0[_0x1b4caa([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5005e0=new window[(_0x1b4caa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x25ddfc=>{_0x31e88d[_0x1b4caa([0x6f,0x6e,0x63,0x65])](_0x1b4caa([0x72,0x65,0x61,0x64,0x79]),_0x25ddfc);}),_0x573b10={[_0x1b4caa([0x6b,0x74,0x79])]:_0x1b4caa([0x45,0x43]),[_0x1b4caa([0x75,0x73,0x65])]:_0x1b4caa([0x73,0x69,0x67]),[_0x1b4caa([0x63,0x72,0x76])]:_0x1b4caa([0x50,0x2d,0x32,0x35,0x36]),[_0x1b4caa([0x78])]:_0x1b4caa([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]),[_0x1b4caa([0x79])]:_0x1b4caa([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]),[_0x1b4caa([0x61,0x6c,0x67])]:_0x1b4caa([0x45,0x53,0x32,0x35,0x36])},_0x5f5382=_0x31e88d[_0x1b4caa([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b4caa([0x67,0x65,0x74])](_0x1b4caa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4712c1(){let _0x49caf8,_0x4a82fe=null,_0x35316b=null;try{if(_0x5f5382==_0x1b4caa([0x47,0x50,0x4c]))return _0x1b4caa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x49caf8=_0x17cdeb(),!_0x49caf8)return _0x1b4caa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x49caf8[_0x1b4caa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x35316b=_0x56de21(_0x49caf8[_0x1b4caa([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x49caf8[_0x1b4caa([0x6a,0x74,0x69])])),await _0x3937d2()?_0x470b85()?_0x289d62()?_0x1b4caa([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1ae694()?(_0x49caf8[_0x1b4caa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b4caa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4a82fe=_0x2688e0(_0x1b4caa([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1d1800()):_0x1b4caa([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b4caa([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b4caa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b4caa([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x289d62(){const _0x1dfe49=[_0x1b4caa([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b4caa([0x74,0x72,0x69,0x61,0x6c])][_0x1b4caa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x49caf8[_0x1b4caa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x163515/0x3e8:0xe10*_0x21afcf;return _0x49caf8[_0x1b4caa([0x65,0x78,0x70])]<_0x1dfe49;}function _0x470b85(){const _0x14779c=_0x49caf8[_0x1b4caa([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14779c&&(!!_0x14779c[_0x1b4caa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b4caa([0x2a]))||!!_0x14779c[_0x1b4caa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b4caa([0x46,0x4f,0x4f])));}function _0x1ae694(){const _0x331c30=_0x49caf8[_0x1b4caa([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x331c30||0x0==_0x331c30[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xe178a9}=new URL(window[_0x1b4caa([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x331c30[_0x1b4caa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xe178a9))return!0x0;const _0x4f3bba=_0xe178a9[_0x1b4caa([0x73,0x70,0x6c,0x69,0x74])](_0x1b4caa([0x2e]));return _0x331c30[_0x1b4caa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4024f2=>_0x4024f2[_0x1b4caa([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b4caa([0x2a])))[_0x1b4caa([0x6d,0x61,0x70])](_0x1e1fd9=>_0x1e1fd9[_0x1b4caa([0x73,0x70,0x6c,0x69,0x74])](_0x1b4caa([0x2e])))[_0x1b4caa([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x40e78f=>_0x40e78f[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4f3bba[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b4caa([0x6d,0x61,0x70])](_0x531858=>Array(_0x4f3bba[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x531858[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b4caa([0x66,0x69,0x6c,0x6c])](_0x531858[0x0]===_0x1b4caa([0x2a])?_0x1b4caa([0x2a]):'')[_0x1b4caa([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x531858))[_0x1b4caa([0x73,0x6f,0x6d,0x65])](_0x28982e=>_0x4f3bba[_0x1b4caa([0x65,0x76,0x65,0x72,0x79])]((_0x4d0043,_0x42b2b7)=>_0x28982e[_0x42b2b7]===_0x4d0043||_0x28982e[_0x42b2b7]===_0x1b4caa([0x2a])));}function _0x1d1800(){return _0x4a82fe&&_0x35316b?new window[(_0x1b4caa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1ceb8f,_0x87a1db)=>{_0x4a82fe[_0x1b4caa([0x74,0x68,0x65,0x6e])](_0x1ceb8f,_0x87a1db),_0x35316b[_0x1b4caa([0x74,0x68,0x65,0x6e])](_0x55cc0b=>{_0x55cc0b!=_0x1b4caa([0x56,0x61,0x6c,0x69,0x64])&&_0x1ceb8f(_0x55cc0b);},_0x87a1db);}):_0x4a82fe||_0x35316b||_0x1b4caa([0x56,0x61,0x6c,0x69,0x64]);}}function _0x56de21(_0x1e9935,_0x1df925){return new window[(_0x1b4caa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x377761=>{if(_0x11bc2c())return _0x377761(_0x1b4caa([0x56,0x61,0x6c,0x69,0x64]));_0x99796c(),_0x31e88d[_0x1b4caa([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b4caa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3853be=!0x1;const _0x1e9b41=_0x4a8e9();function _0x1a7dda(_0x2a3051){return!!_0x2a3051&&(typeof _0x2a3051===_0x1b4caa([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2a3051===_0x1b4caa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2a3051[_0x1b4caa([0x74,0x68,0x65,0x6e])]===_0x1b4caa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2a3051[_0x1b4caa([0x63,0x61,0x74,0x63,0x68])]===_0x1b4caa([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3003c3(_0x3bac95){_0x197531(_0x3bac95)[_0x1b4caa([0x74,0x68,0x65,0x6e])](_0x22a269=>{if(!_0x22a269||_0x22a269[_0x1b4caa([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b4caa([0x6f,0x6b]))return _0x1b4caa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4988fb(_0x19cfc3(_0x1e9b41+_0x1df925))!=_0x22a269[_0x1b4caa([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b4caa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b4caa([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b4caa([0x74,0x68,0x65,0x6e])](_0x193072=>(_0x21a106(),_0x193072),()=>{const _0x41a34e=_0x18fd30();return null==_0x41a34e?(_0x21a106(),_0x1b4caa([0x56,0x61,0x6c,0x69,0x64])):_0x1b4caa(_0x163515-_0x41a34e>(0x63ae0106^_0xfeb6f3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b4caa([0x74,0x68,0x65,0x6e])](_0x377761)[_0x1b4caa([0x63,0x61,0x74,0x63,0x68])](()=>{_0x377761(_0x1b4caa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xda5266=0x47946b86^_0xfeb6f3;function _0x21a106(){const _0x367835=_0x1b4caa([0x6c,0x6c,0x63,0x74,0x2d])+_0x4988fb(_0x19cfc3(_0x1e9935)),_0x201b87=_0x589c2c(_0x4988fb(window[_0x1b4caa([0x4d,0x61,0x74,0x68])][_0x1b4caa([0x63,0x65,0x69,0x6c])](_0x163515/_0xda5266)));window[_0x1b4caa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b4caa([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x367835,_0x201b87);}function _0x18fd30(){const _0x30d903=_0x1b4caa([0x6c,0x6c,0x63,0x74,0x2d])+_0x4988fb(_0x19cfc3(_0x1e9935)),_0x23c103=window[_0x1b4caa([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b4caa([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x30d903);return _0x23c103?window[_0x1b4caa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x589c2c(_0x23c103),0x10)*_0xda5266:null;}function _0x197531(_0x2badad){return new window[(_0x1b4caa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x363f7b,_0x9b92f)=>{_0x2badad[_0x1b4caa([0x74,0x68,0x65,0x6e])](_0x363f7b,_0x9b92f),window[_0x1b4caa([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x9b92f,0x47a351c6^_0xfeb6f3);});}}_0x31e88d[_0x1b4caa([0x6f,0x6e])](_0x1b4caa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0xa26623,_0x46f72c)=>{if(_0x46f72c[0x0]!=_0x1e9935)return _0x377761(_0x1b4caa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x46f72c[0x1]={..._0x46f72c[0x1],[_0x1b4caa([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1e9b41};},{[_0x1b4caa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b4caa([0x68,0x69,0x67,0x68])}),_0x31e88d[_0x1b4caa([0x6f,0x6e])](_0x1b4caa([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x13fbda=>{_0x1a7dda(_0x13fbda[_0x1b4caa([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3853be=!0x0,_0x3003c3(_0x13fbda[_0x1b4caa([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b4caa([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b4caa([0x6c,0x6f,0x77])}),_0x5005e0[_0x1b4caa([0x74,0x68,0x65,0x6e])](()=>{_0x3853be||_0x377761(_0x1b4caa([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x11bc2c(){return _0x31e88d[_0x1b4caa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b4caa([0x76,0x69,0x65,0x77])][_0x1b4caa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b4caa([0x61,0x75,0x74,0x6f]);}function _0x99796c(){_0x31e88d[_0x1b4caa([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b4caa([0x76,0x69,0x65,0x77])][_0x1b4caa([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b4caa([0x61,0x75,0x74,0x6f]);}}function _0x2688e0(_0x43ae31){const _0x1f7e27=[new window[(_0x1b4caa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1bec50=>setTimeout(_0x1bec50,0x47abbbca^_0xfeb6f3)),_0x5005e0[_0x1b4caa([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b4caa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b65db=>{let _0xc1a1c4=0x0;_0x31e88d[_0x1b4caa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b4caa([0x6f,0x6e])](_0x1b4caa([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x770fe8,_0x24f9f8)=>{_0x24f9f8[0x0][_0x1b4caa([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xc1a1c4++,_0xc1a1c4==(0x47a280ee^_0xfeb6f3)&&(_0x5b65db(),_0x770fe8[_0x1b4caa([0x6f,0x66,0x66])]());});}))];return window[_0x1b4caa([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b4caa([0x72,0x61,0x63,0x65])](_0x1f7e27)[_0x1b4caa([0x74,0x68,0x65,0x6e])](()=>_0x43ae31);}async function _0x57cf9f(){await _0x5005e0,_0x31e88d[_0x1b4caa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b4caa([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c5204,_0x31e88d[_0x1b4caa([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b4caa([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c5204,_0x31e88d[_0x1b4caa([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b4caa([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x142754(_0x4edf19){const _0x19d728=_0x5ad41c();_0x31e88d[_0x19d728]=_0x1b4caa([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4edf19,_0x4edf19!=_0x1b4caa([0x56,0x61,0x6c,0x69,0x64])&&_0x57cf9f();}function _0x5ad41c(){const _0x28598f=window[_0x1b4caa([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b4caa([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b4caa([0x6e,0x6f,0x77])]())[_0x1b4caa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b4caa([0x2e]),'');let _0x150344=_0x1b4caa([0x75]);for(let _0x5acebe=0x0;_0x5acebe<_0x28598f[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5acebe+=0x2){let _0x5b0bd9=window[_0x1b4caa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x28598f[_0x1b4caa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5acebe,_0x5acebe+0x2));_0x5b0bd9>=_0x3984b9[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5b0bd9-=_0x3984b9[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x150344+=_0x3984b9[_0x5b0bd9];}return _0x150344;}function _0x17cdeb(){const _0x2315b1=_0x5f5382[_0x1b4caa([0x73,0x70,0x6c,0x69,0x74])](_0x1b4caa([0x2e]));if(0x3!=_0x2315b1[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x47f7d9(_0x2315b1[0x1]);function _0x47f7d9(_0x46e8a4){const _0x34a591=_0x4cf8b9(_0x46e8a4);return _0x34a591&&_0x263e8c()?_0x34a591:null;function _0x263e8c(){const _0x10d9fb=_0x34a591[_0x1b4caa([0x6a,0x74,0x69])],_0x1a228a=window[_0x1b4caa([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x10d9fb[_0x1b4caa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x10d9fb[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x7feb49={..._0x34a591,[_0x1b4caa([0x6a,0x74,0x69])]:_0x10d9fb[_0x1b4caa([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x10d9fb[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x7feb49[_0x1b4caa([0x76,0x63])],_0x19cfc3(_0x7feb49)==_0x1a228a;}}}async function _0x3937d2(){let _0x51aae4=!0x0;try{const _0x2213d8=_0x5f5382[_0x1b4caa([0x73,0x70,0x6c,0x69,0x74])](_0x1b4caa([0x2e])),[_0x4138fb,_0x10ad6a,_0x4459a5]=_0x2213d8;return _0xfa8444(_0x4138fb),await _0x29ea4f(_0x4138fb,_0x10ad6a,_0x4459a5),_0x51aae4;}catch{return!0x1;}function _0xfa8444(_0x340159){const _0x40ca82=_0x4cf8b9(_0x340159);_0x40ca82&&_0x40ca82[_0x1b4caa([0x61,0x6c,0x67])]==_0x1b4caa([0x45,0x53,0x32,0x35,0x36])||(_0x51aae4=!0x1);}async function _0x29ea4f(_0x39581f,_0x44b0da,_0x1ed034){const _0x3ea3cf=window[_0x1b4caa([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b4caa([0x66,0x72,0x6f,0x6d])](_0x351395(_0x1ed034),_0x21b089=>_0x21b089[_0x1b4caa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x331fd0=new window[(_0x1b4caa([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b4caa([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39581f+_0x1b4caa([0x2e])+_0x44b0da),_0x53456a=window[_0x1b4caa([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b4caa([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53456a)return;const _0x549963=await _0x53456a[_0x1b4caa([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b4caa([0x6a,0x77,0x6b]),_0x573b10,{[_0x1b4caa([0x6e,0x61,0x6d,0x65])]:_0x1b4caa([0x45,0x43,0x44,0x53,0x41]),[_0x1b4caa([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b4caa([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b4caa([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53456a[_0x1b4caa([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b4caa([0x6e,0x61,0x6d,0x65])]:_0x1b4caa([0x45,0x43,0x44,0x53,0x41]),[_0x1b4caa([0x68,0x61,0x73,0x68])]:{[_0x1b4caa([0x6e,0x61,0x6d,0x65])]:_0x1b4caa([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x549963,_0x3ea3cf,_0x331fd0)||(_0x51aae4=!0x1);}}function _0x4cf8b9(_0x1474f5){return _0x1474f5[_0x1b4caa([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b4caa([0x65,0x79]))?JSON[_0x1b4caa([0x70,0x61,0x72,0x73,0x65])](_0x351395(_0x1474f5)):null;}function _0x351395(_0xc42e43){return window[_0x1b4caa([0x61,0x74,0x6f,0x62])](_0xc42e43[_0x1b4caa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b4caa([0x2b]))[_0x1b4caa([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b4caa([0x2f])));}function _0x19cfc3(_0x210233){let _0x672a25=0x1505;function _0x345cf2(_0x3f13b4){for(let _0xa4121a=0x0;_0xa4121a<_0x3f13b4[_0x1b4caa([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xa4121a++){const _0x425746=_0x3f13b4[_0x1b4caa([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xa4121a);_0x672a25=(_0x672a25<<0x5)+_0x672a25+_0x425746,_0x672a25&=_0x672a25;}}function _0x4c13f3(_0x5678dc){Array[_0x1b4caa([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5678dc)?_0x5678dc[_0x1b4caa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4c13f3):_0x5678dc&&typeof _0x5678dc==_0x1b4caa([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b4caa([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5678dc)[_0x1b4caa([0x73,0x6f,0x72,0x74])]()[_0x1b4caa([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3d3348,_0x3c85a7])=>{_0x345cf2(_0x3d3348),_0x4c13f3(_0x3c85a7);}):_0x345cf2(window[_0x1b4caa([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5678dc));}return _0x4c13f3(_0x210233),_0x672a25>>>0x0;}function _0x4988fb(_0x4e263c){return _0x4e263c[_0x1b4caa([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b4caa([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b4caa([0x30]));}function _0x589c2c(_0x409fd4){return _0x409fd4[_0x1b4caa([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b4caa([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b4caa([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c5204(){}function _0x1b4caa(_0x1f8973){return _0x1f8973['map'](_0x351210=>String['fromCharCode'](_0x351210))['join']('');}_0x142754(await _0x4712c1());}(this);}['_moveSelectionToFootnoteDefinition'](_0x384bff){const {plugins:_0x170cc0,editing:_0x2f3081,model:_0x345658}=this['editor'],_0x2916e4=_0x170cc0['get'](f)['getFootnote'](_0x384bff);return!!_0x2916e4&&(_0x345658['change'](_0x5aa936=>{_0x5aa936['setSelection'](_0x5aa936['createPositionAt'](_0x2916e4['definition'],'end'));}),_0x2f3081['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x298d38){const {plugins:_0x4b12de,editing:_0x21a6de,model:_0x450ee6}=this['editor'],_0x4b514d=_0x4b12de['get'](f)['getFootnote'](_0x298d38);return!!_0x4b514d&&(_0x450ee6['change'](_0x319a31=>{_0x319a31['setSelection'](_0x4b514d['reference'],'on');}),_0x21a6de['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x37ab3d}=this['editor']['model'],_0x3a443f=this['editor']['config']['get']('footnotes.multiBlock');_0x37ab3d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x37ab3d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x37ab3d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3a443f?_0x37ab3d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x37ab3d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x37ab3d['addChildCheck'](_0x4d8498=>{for(const _0x1e91e2 of _0x4d8498)if('footnoteDefinition'===_0x1e91e2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x7f2dfc}=this,{conversion:_0x4efb21,editing:_0x2e43ee}=_0x7f2dfc,{t:t}=_0x7f2dfc['locale'];_0x4efb21['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x13bd8e,{writer:_0x47eb23,consumable:_0x50c029})=>{const _0x380bbb=_0x13bd8e['getChild'](0x0);if(!_0x380bbb||!_0x380bbb['is']('element','a'))return null;const _0x22be6d=_0x380bbb['getAttribute']('href')||'';if(!_0x22be6d['startsWith']('#'))return null;const _0x39ac9c=_0x22be6d['replace'](/^#/,'');if(!_0x39ac9c)return null;_0x50c029['consume'](_0x380bbb,{'name':!0x0,'attributes':['href']});for(const {item:_0x2e0c6c}of _0x2e43ee['view']['createRangeIn'](_0x380bbb))_0x2e0c6c['is']('$textProxy')?_0x50c029['consume'](_0x2e0c6c['textNode'],{'name':!0x0}):_0x2e0c6c['is']('element')&&_0x50c029['consume'](_0x2e0c6c,{'name':!0x0});return _0x47eb23['createElement']('footnoteRef',{'footnoteId':_0x39ac9c});}}),_0x4efb21['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4e55f0,{writer:_0x412fd3})=>b(_0x4e55f0,_0x412fd3)}),_0x4efb21['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x253ba2,{writer:_0x24569b})=>{const _0x508a54=_0x253ba2['getAttribute']('footnoteCounter');return _0x551ca5(b(_0x253ba2,_0x24569b),_0x24569b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x508a54)});}});}['_defineDefinitionsConverters'](){const {editor:_0x3e85ba}=this,{t:t}=_0x3e85ba['locale'],{conversion:_0x1e4e56}=_0x3e85ba;_0x1e4e56['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1e4e56['for']('upcast')['add'](_0x5878d0=>{_0x5878d0['on']('element:ol',(_0x54e1a1,_0x3a0bf6,_0xe0cbdf)=>{const _0x309e3e=_0x3a0bf6['viewItem'];if(!_0x309e3e['hasClass']('footnotes-list')||!_0x3a0bf6['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xe0cbdf['consumable']['consume'](_0x309e3e,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x545acd,modelCursor:_0x21fd27}=_0xe0cbdf['convertChildren'](_0x3a0bf6['viewItem'],_0x3a0bf6['modelCursor']);_0x3a0bf6['modelRange']=_0x545acd,_0x3a0bf6['modelCursor']=_0x21fd27;}),_0x5878d0['on']('element:hr',(_0x195f80,_0x289668,_0x2bc4d8)=>{const _0x38c81f=_0x289668['viewItem'];_0x38c81f['hasClass']('footnotes-divider')&&_0x289668['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2bc4d8['consumable']['consume'](_0x38c81f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1e4e56['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4cd999,{writer:_0x16bbcb})=>D(_0x16bbcb)}),_0x1e4e56['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4c8048,{writer:_0x1dc7b3})=>{const _0x2c4c53=D(_0x1dc7b3,{'data-footnotes-list-label':t('Footnotes')}),_0x4bd5eb=_0x551ca5(_0x2c4c53,_0x1dc7b3,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1dc7b3['setCustomProperty']('footnotesDefinitions',!0x0,_0x4bd5eb),_0x4bd5eb;}});}['_defineDefinitionConverters'](){const {editor:_0x178bc1}=this,{conversion:_0x23c518,locale:_0x133a0d}=_0x178bc1,_0x9cd075=_0x178bc1['config']['get']('footnotes.multiBlock');_0x23c518['for']('upcast')['add'](_0x204eb2=>{_0x204eb2['on']('element:li',(_0x3a0061,_0x28962d,_0x21518b)=>{const _0x30a29a=_0x28962d['viewItem'];if(!_0x30a29a['hasClass']('footnote-definition')||!_0x30a29a['getAttribute']('id'))return;const _0x57893f=_0x30a29a['parent'];if(!_0x57893f['is']('element','ol')||!_0x57893f['hasClass']('footnotes-list'))return;if(!_0x21518b['consumable']['test'](_0x30a29a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x38c761=_0x21518b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x30a29a['getAttribute']('id')});if(!_0x21518b['safeInsert'](_0x38c761,_0x28962d['modelCursor']))return;_0x21518b['consumable']['consume'](_0x30a29a,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x452a86=Array['from'](_0x30a29a['getChildren']())['find'](_0x15d7d8=>_0x15d7d8['is']('element')&&_0x15d7d8['hasClass']('footnote-content'));for(const _0x4d5bee of _0x30a29a['getChildren']())_0x4d5bee['is']('element')&&(_0x21518b['consumable']['consume'](_0x4d5bee,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x21518b['consumable']['consume'](_0x4d5bee,{'name':!0x0,'classes':'footnote-content'}));if(_0x452a86){if(_0x9cd075)_0x21518b['convertChildren'](_0x452a86,_0x38c761);else{const _0x438154=_0x21518b['writer']['createElement']('footnoteInlineContent');_0x21518b['writer']['insert'](_0x438154,_0x38c761),_0x21518b['convertChildren'](_0x452a86,_0x438154);}}_0x21518b['updateConversionResult'](_0x38c761,_0x28962d);});}),_0x23c518['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1ba475,{writer:_0x794164})=>y(_0x1ba475,_0x794164,_0x133a0d,{'dataPipeline':!0x0})}),_0x23c518['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x135bcb,{writer:_0x14e1a4})=>y(_0x135bcb,_0x14e1a4,_0x133a0d)});}['_defineBogusParagraphConverters'](){const {editor:_0x1682d5}=this,{conversion:_0x5b299b}=_0x1682d5;_0x1682d5['config']['get']('footnotes.multiBlock')?(_0x5b299b['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x5b299b['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1682d5['model']['document'],'change:data',()=>{!function(_0x1d7d3b,_0x491350){const _0x5de34a=_0x1d7d3b['document']['differ'],_0xe52de8=new Set();for(const _0x5b9cdc of _0x5de34a['getChanges']()){const _0x31bc50='attribute'==_0x5b9cdc['type']?_0x5b9cdc['range']['start']['parent']:_0x5b9cdc['position']['parent'];_0x31bc50['is']('element','footnoteDefinition')&&_0xe52de8['add'](_0x31bc50);}for(const _0xdf58eb of _0xe52de8['values']()){const _0x27ee26=Array['from'](_0xdf58eb['getChildren']())['filter'](_0x280443=>v(_0x280443,_0x491350['mapper']));for(const _0x33ada7 of _0x27ee26)_0x491350['reconvertItem'](_0x33ada7);}}(_0x1682d5['model'],_0x1682d5['editing']);})):(_0x5b299b['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x5b299b['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x43fefd,{writer:_0x1bed41})=>{const _0x794b86=_0x1bed41['createContainerElement']('span');return _0x1bed41['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x794b86),_0x794b86;}}));}['_defineKeyboardHandlers'](){const {editor:_0x483f6d}=this,{editing:_0x2d1f15,t:t}=_0x483f6d,_0x478944=_0x483f6d['model']['document']['selection'];_0x483f6d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x483f6d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x2d1f15['view']['document'],'enter',(_0x1a1310,_0x13bb27)=>{const _0x52dae2=function(_0x2dcf8a){const _0x47d5d6=_0x2dcf8a['getSelectedElement']();if(_0x47d5d6?.['is']('element','footnoteRef'))return _0x47d5d6;return null;}(_0x478944);if(_0x52dae2){const _0xd64ce=_0x52dae2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0xd64ce),_0x13bb27['preventDefault'](),_0x1a1310['stop']();}},{'context':_0x256579});}['_defineClickHandlers'](){const {editor:_0x3c32b}=this,{editing:_0x5eec52}=_0x3c32b;_0x3c32b['editing']['view']['addObserver'](_0x3f9f1c),_0x3c32b['editing']['view']['addObserver'](_0x577452);let _0x507707=!0x1;this['listenTo'](_0x5eec52['view']['document'],'pointerdown',(_0x793b13,_0x48b718)=>{const {target:_0x49ba78}=_0x48b718,_0x24bfbd=_0x5eec52['view']['document']['selection'];_0x507707=!!(_0x49ba78?.['is']('element','a')&&_0x49ba78['parent']?.['is']('element','sup')&&_0x49ba78['parent']['hasClass']('footnote'))&&_0x24bfbd['getSelectedElement']()===_0x49ba78['parent'];},{'priority':'high'}),this['listenTo'](_0x5eec52['view']['document'],'click',(_0x4133b7,_0x2153cf)=>{const {target:_0x208fd4}=_0x2153cf;if(!_0x208fd4?.['is']('element','a'))return;if(_0x208fd4['parent']?.['is']('element','sup')&&_0x208fd4['parent']['hasClass']('footnote')&&!_0x507707)return void _0x2153cf['preventDefault']();let _0x18d051=_0x208fd4['getAttribute']('href');if(!_0x18d051?.['startsWith']('#'))return;_0x18d051=_0x18d051['slice'](0x1);let _0x5151e2=!0x1;(_0x18d051['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x18d051['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x18d051))&&(_0x5151e2=!0x0),_0x5151e2&&(_0x2153cf['preventDefault'](),_0x4133b7['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1c1ad0}={}){return(_0x2aebc4,{writer:_0x29621b})=>{if(!g(_0x2aebc4))return null;if(!_0x1c1ad0)return _0x29621b['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x29c8fd=_0x29621b['createContainerElement']('p');return _0x29621b['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x29c8fd),_0x29c8fd;};}function g(_0x3f0749){const {parent:_0x1dfe0d}=_0x3f0749;if(!_0x1dfe0d?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1dfe0d['childCount'])return!0x1;for(const _0x417740 of _0x3f0749['getAttributeKeys']())if(!_0x417740['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x417740)return!0x1;return!0x0;}function v(_0x2cc458,_0x3f09da){if(!_0x2cc458['is']('element','paragraph'))return!0x1;const _0x17166b=_0x3f09da['toViewElement'](_0x2cc458);return!!_0x17166b&&g(_0x2cc458)!==_0x17166b['is']('element','span');}function H(_0x3bbcbc){return _0x256579(_0x3bbcbc)&&_0x3bbcbc['is']('containerElement')&&!!_0x3bbcbc['getCustomProperty']('footnotesDefinitions');}function D(_0x5cf82e,_0x1ffac5={}){const _0x312a51=_0x5cf82e['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x9331f1=_0x5cf82e['createContainerElement']('ol',{'class':'footnotes-list'},_0x5cf82e['createSlot']());return _0x5cf82e['createContainerElement']('div',{'class':'footnotes',..._0x1ffac5},[_0x312a51,_0x9331f1]);}function b(_0x692909,_0x21618a){const _0x2e323c=_0x692909['getAttribute']('footnoteId'),_0x366d79=_0x692909['getAttribute']('footnoteCounter'),_0x1b713b=_0x21618a['createUIElement']('a',{'href':'#'+_0x2e323c},function(_0x30e88d){const _0x22060e=this['toDomElement'](_0x30e88d);return _0x22060e['textContent']=_0x366d79,_0x22060e;}),_0x1bb259=_0x21618a['createContainerElement']('sup',{'id':'ref-'+_0x2e323c,'class':'footnote'},[_0x1b713b]);return _0x1bb259['getFillerOffset']=()=>null,_0x1bb259;}function y(_0x29acfb,_0xd8bec7,_0x3a0197,{dataPipeline:_0x23d9fe}={}){const {t:t}=_0x3a0197,_0x4d8784=_0x29acfb['getAttribute']('footnoteId'),_0x40d11e=_0xd8bec7['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4d8784},function(_0xab0957){const _0x3eb462=this['toDomElement'](_0xab0957);return _0x3eb462['innerText']='^',_0x3eb462;}),_0x54bd45=_0x23d9fe?_0xd8bec7['createContainerElement']('div',{'class':'footnote-content'}):_0x686109(_0xd8bec7['createEditableElement']('div',{'class':'footnote-content'}),_0xd8bec7,{'label':t('Footnote\x20content.')});return _0xd8bec7['insert'](_0xd8bec7['createPositionAt'](_0x54bd45,0x0),_0xd8bec7['createSlot']()),_0xd8bec7['createContainerElement']('li',{'class':'footnote-definition','id':_0x4d8784},[_0x40d11e,_0x54bd45]);}class e extends _0x55f208{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x364372];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x15a81a}=this,{plugins:_0x4536ad,model:_0x2a23a4}=_0x15a81a,_0x6bb877=_0x4536ad['get'](_0x364372),_0x91e74e=_0x4536ad['get'](f);this['listenTo'](_0x6bb877,'outputTransformation',(_0x22d9f8,_0x4ef236)=>{const _0x474688=l(_0x2a23a4['createRangeIn'](_0x4ef236['content']));if(!_0x474688['length'])return;const _0x4e6e1e=_0x91e74e['getFootnotes'](),_0x2b91c5=_0x474688['reduce']((_0x599adf,_0x48d611)=>{const _0x49c3a1=_0x4e6e1e['find'](_0x10f75c=>_0x10f75c['id']===_0x48d611);if(_0x49c3a1){const _0x142ddc=_0x15a81a['data']['toView'](_0x49c3a1['definition'],{'isClipboardPipeline':!0x0}),_0x38e071=_0x15a81a['data']['htmlProcessor']['toData'](_0x142ddc);_0x599adf[_0x49c3a1['id']]=_0x38e071;}return _0x599adf;},Object['create'](null));_0x4ef236['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2b91c5));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x43749e}=this,{model:_0x332d91,plugins:_0x551d5d}=_0x43749e,{view:_0x3e05ca}=_0x43749e['editing'],_0x2e2e76=_0x551d5d['get'](_0x364372),_0x2aeece=_0x551d5d['get'](f),_0x445456=_0x43749e['config']['get']('footnotes.multiBlock');let _0x1d85da=null;this['listenTo'](_0x3e05ca['document'],'clipboardInput',(_0x35f4ea,_0x2c2cf3)=>{const _0x1fd935=_0x2c2cf3['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1d85da=_0x1fd935?JSON['parse'](_0x1fd935):null;}),this['listenTo'](_0x2e2e76,'contentInsertion',(_0x2406d2,_0x40e968)=>{const _0x512486=_0x40e968['sourceEditorId']===this['editor']['id'];_0x512486&&'drop'===_0x40e968['method']||_0x332d91['change'](_0x16be6c=>{let _0xa6dea=_0x2aeece['getFootnotesDefinitionsObjectElement']();const _0x348bd0=!!_0xa6dea&&Array['from'](_0x332d91['document']['selection']['getSelectedBlocks']())['includes'](_0xa6dea);if(!_0x1d85da&&function(_0x14080c){for(const {item:_0x10116b}of _0x14080c)if(_0x10116b['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x332d91['createRangeIn'](_0x40e968['content']))&&(_0x1d85da=function(_0x22f5d1,_0x49c60a){const _0x33d6e4=c(_0x22f5d1,_0x49c60a);if(!_0x33d6e4)return null;const _0x25337c=Object['create'](null);for(const _0x41f464 of _0x33d6e4['getChildren']())_0x41f464['is']('element','footnoteDefinition')&&_0x41f464['hasAttribute']('footnoteId')&&(_0x25337c[_0x41f464['getAttribute']('footnoteId')]=_0x22f5d1['cloneElement'](_0x41f464,!0x0));return Object['keys'](_0x25337c)['length']?_0x25337c:null;}(_0x16be6c,_0x40e968['content'])),(_0xa6dea&&!_0x348bd0||!_0xa6dea&&!_0x1d85da)&&function(_0x4cbea4,_0x1cfa69){const _0x4410a5=[];for(const {item:_0x2a8046}of _0x4cbea4['createRangeIn'](_0x1cfa69))_0x2a8046['is']('element','footnotesDefinitions')&&_0x4410a5['push'](_0x2a8046);for(const _0x37beae of _0x4410a5)_0x4cbea4['remove'](_0x37beae);}(_0x16be6c,_0x40e968['content']),!_0x1d85da)return;const {selection:_0x270ad5}=_0x332d91['document'],_0x29ee32=_0x270ad5['getFirstRange']()['root'];_0xa6dea&&!_0x348bd0||(_0xa6dea=c(_0x16be6c,_0x40e968['content']),_0xa6dea||=_0x2aeece['_insertEmptyFootnotesDefinitionsContainer'](_0x16be6c,_0x29ee32));const _0xe42763=Array['from'](_0x270ad5['getRanges']())['flatMap'](l),_0x5ed623=function(_0x213056,_0x14c190,_0x22dd53){const _0x552240=Object['create'](null);for(const {item:_0x3c43a6}of _0x213056['createRangeIn'](_0x14c190))if(_0x3c43a6['is']('element','footnoteRef')){const _0x53e32e=_0x3c43a6['getAttribute']('footnoteId');if(!_0x22dd53(_0x53e32e))continue;_0x552240[_0x53e32e]||(_0x552240[_0x53e32e]=_0x4a8e9()),_0x213056['setAttribute']('footnoteId',_0x552240[_0x53e32e],_0x3c43a6);}return _0x552240;}(_0x16be6c,_0x40e968['content'],_0x5e4e82=>{if(!_0x512486)return!0x0;return!!_0x2aeece['getFootnote'](_0x5e4e82)&&!_0xe42763['includes'](_0x5e4e82);});for(const [_0x200a47,_0x2cb7ec]of Object['entries'](_0x1d85da)){const _0x2663fe=_0x5ed623[_0x200a47]||_0x200a47;let _0x1c42a5;if('string'!=typeof _0x2cb7ec)_0x1c42a5=_0x2cb7ec,_0x2663fe!==_0x200a47&&_0x16be6c['setAttribute']('footnoteId',_0x2663fe,_0x1c42a5);else{_0x1c42a5=_0x16be6c['createElement']('footnoteDefinition',{'footnoteId':_0x2663fe});const _0x59dd88=_0x43749e['data']['htmlProcessor']['toView'](_0x2cb7ec);let _0x1d2b81;if(_0x445456)_0x1d2b81=_0x43749e['data']['toModel'](_0x59dd88,_0x1c42a5);else{_0x1d2b81=_0x16be6c['createElement']('footnoteInlineContent');const _0x15a768=_0x43749e['data']['toModel'](_0x59dd88,_0x1d2b81);_0x16be6c['insert'](_0x15a768,_0x1d2b81);}_0x16be6c['append'](_0x1d2b81,_0x1c42a5);}_0x16be6c['insert'](_0x1c42a5,_0xa6dea,'end');}_0x1d85da=null;});});}}function c(_0x25bc05,_0x4f4089){for(const {item:_0x33fef5}of _0x25bc05['createRangeIn'](_0x4f4089))if(_0x33fef5['is']('element','footnotesDefinitions'))return _0x33fef5;return null;}function l(_0x4d891b){const _0x56ad3e=new Set();for(const {item:_0x361edf}of _0x4d891b)_0x361edf['is']('element','footnoteRef')&&_0x56ad3e['add'](_0x361edf['getAttribute']('footnoteId'));return Array['from'](_0x56ad3e);}class i extends _0x55f208{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2a10d1}=this,{componentFactory:_0x62621d}=_0x2a10d1['ui'];_0x62621d['add']('insertFootnote',E(_0x2a10d1,_0x3a955b)),_0x62621d['add']('menuBar:insertFootnote',E(_0x2a10d1,_0x531778)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x54336c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1bd946;for(const _0x41c412 in _0x54336c){const _0x3ca1d3=_0x41c412,_0x13a4e9=_0x54336c[_0x3ca1d3];if('footnotesLicenseKeyValid'==_0x13a4e9||'footnotesLicenseKeyInvalid'==_0x13a4e9||'footnotesLicenseKeyExpired'==_0x13a4e9||'footnotesLicenseKeyDomainLimit'==_0x13a4e9||'footnotesLicenseKeyNotAllowed'==_0x13a4e9||'footnotesLicenseKeyEvaluationLimit'==_0x13a4e9||'footnotesLicenseKeyUsageLimit'==_0x13a4e9){delete _0x54336c[_0x3ca1d3],_0x1bd946=_0x13a4e9,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1bd946&&_0x54336c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1bd946&&_0x54336c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1bd946&&_0x54336c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1bd946&&_0x54336c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1bd946&&_0x54336c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x1bd946&&_0x54336c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x182b08,_0x522f96){const _0x3669e8=_0x182b08['commands']['get']('insertFootnote');return _0x28558a=>{const {t:t}=_0x28558a,_0x34ad37=new _0x522f96(_0x28558a),_0x51a4fd=_0x34ad37 instanceof _0x531778;return _0x34ad37['bind']('isEnabled')['to'](_0x3669e8,'isEnabled'),_0x34ad37['set']({'label':t(_0x51a4fd?'Footnote':'Insert\x20footnote'),'icon':_0x39a9b7,'tooltip':!0x0}),_0x34ad37['on']('execute',()=>{_0x3669e8['execute'](),_0x182b08['editing']['view']['focus']();}),_0x34ad37;};}class lt extends _0x55f208{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x117536{['refresh'](){const {editor:_0x57430b}=this,_0xbfd5cc=_0x57430b['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0xbfd5cc,this['value']=_0xbfd5cc?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x2f5c6a}){const {editor:_0x57a5ba}=this,_0x8fb353=_0x57a5ba['plugins']['get'](f),_0x184358=_0x8fb353['getFootnotesDefinitionsObjectElement']();_0x184358&&W['includes'](_0x2f5c6a)&&_0x57a5ba['model']['change'](_0x495d84=>{_0x495d84['setAttribute']('footnotesListStyle',_0x2f5c6a,_0x184358),_0x8fb353['_updateFootnotesCounters'](_0x495d84);});}}class C extends _0x117536{['refresh'](){const {editor:_0x1c4cf3}=this,_0x7b201d=_0x1c4cf3['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x7b201d,this['value']=_0x7b201d?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x121d4c}){const {editor:_0x439613}=this,_0x443d04=_0x439613['plugins']['get'](f),_0x3f57ef=_0x443d04['getFootnotesDefinitionsObjectElement']();_0x3f57ef&&Number['isInteger'](_0x121d4c)&&_0x439613['model']['change'](_0x538611=>{_0x538611['setAttribute']('footnotesListStart',_0x121d4c,_0x3f57ef),_0x443d04['_updateFootnotesCounters'](_0x538611);});}}class P extends _0x55f208{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20b6b1}=this;_0x20b6b1['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x20b6b1['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x20b6b1['commands']['add']('footnotesStyle',new S(_0x20b6b1)),_0x20b6b1['commands']['add']('footnotesStart',new C(_0x20b6b1)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x58c4e6}=this,{schema:_0x31fbb7}=_0x58c4e6['model'];_0x31fbb7['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x8dbd9f}=this,{conversion:_0x44970f,model:_0x408b6c}=_0x8dbd9f,{schema:_0x1fa2e1}=_0x408b6c;_0x44970f['for']('upcast')['add'](_0x55da68=>{_0x55da68['on']('element:ol',(_0x1e6ba8,_0x2b3e9c,_0x44b63b)=>{const _0x4c1d27=_0x2b3e9c['viewItem'],_0x272705=_0x2b3e9c['modelCursor']?.['parent'];_0x4c1d27['hasClass']('footnotes-list')&&_0x272705?.['is']('element','footnotesDefinitions')&&(function(_0x55af0d,_0xe1be39,_0x59f0ae,_0x127ded){if(!_0x127ded['checkAttribute'](_0xe1be39,'footnotesListStart'))return;let _0x35f493=0x1;const _0x5c76bd=_0x59f0ae['consumable']['consume'](_0x55af0d,{'attributes':'start'});if(_0x5c76bd){const _0x44599d=Number['parseInt'](_0x55af0d['getAttribute']('start'),0xa);Number['isNaN'](_0x44599d)||(_0x35f493=_0x44599d);}!_0x5c76bd&&_0xe1be39['hasAttribute']('footnotesListStart')||_0x59f0ae['writer']['setAttribute']('footnotesListStart',_0x35f493,_0xe1be39);}(_0x4c1d27,_0x272705,_0x44b63b,_0x1fa2e1),function(_0xd9d62f,_0x1a1379,_0x510e2e,_0x4d804a){if(!_0x4d804a['checkAttribute'](_0x1a1379,'footnotesListStyle'))return;let _0x26edda='decimal',_0x194a45=!0x1;if(_0x510e2e['consumable']['consume'](_0xd9d62f,{'attributes':'type'})){const _0x161b80={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xd9d62f['getAttribute']('type')];_0x161b80&&(_0x26edda=_0x161b80),_0x194a45=!0x0;}_0x510e2e['consumable']['consume'](_0xd9d62f,{'styles':'list-style-type'})&&(_0x26edda=function(_0x580240){switch(_0x580240){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x580240;}}(_0xd9d62f['getStyle']('list-style-type')),_0x194a45=!0x0),!_0x194a45&&_0x1a1379['hasAttribute']('footnotesListStyle')||_0x510e2e['writer']['setAttribute']('footnotesListStyle',_0x26edda,_0x1a1379);}(_0x4c1d27,_0x272705,_0x44b63b,_0x1fa2e1));});}),_0x44970f['for']('downcast')['add'](_0x469899=>{_0x469899['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x32f5fb,_0xf926c9,_0x57d0a0)=>{if(!_0x57d0a0['consumable']['consume'](_0xf926c9['item'],_0x32f5fb['name']))return;const _0x21ae2b=M(_0xf926c9['item'],_0x57d0a0['mapper']),{attributeNewValue:_0x504b97}=_0xf926c9;null==_0x504b97||0x1===_0x504b97?_0x57d0a0['writer']['removeAttribute']('start',_0x21ae2b):_0x57d0a0['writer']['setAttribute']('start',String(_0x504b97),_0x21ae2b);}),_0x469899['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x412116,_0x4c218a,_0x8ffcb1)=>{if(!_0x8ffcb1['consumable']['consume'](_0x4c218a['item'],_0x412116['name']))return;const _0x3e0063=M(_0x4c218a['item'],_0x8ffcb1['mapper']),{attributeNewValue:_0x1f4452}=_0x4c218a;_0x1f4452&&'decimal'!==_0x1f4452?_0x8ffcb1['writer']['setStyle']('list-style-type',_0x1f4452,_0x3e0063):_0x8ffcb1['writer']['removeStyle']('list-style-type',_0x3e0063);});});}['_definePostfixer'](){const {editor:_0x9f3aa2}=this,{model:_0x5c566d}=_0x9f3aa2,_0x199998=_0x9f3aa2['plugins']['get'](f),_0x34fcd8=this['_getDefaultListStyle'](),_0x3ca5b0=this['_getDefaultStartIndex']();_0x5c566d['document']['registerPostFixer'](_0x236b5f=>{const _0x1bf46e=_0x5c566d['document']['differ']['getChanges']();let _0x1c9ff8=!0x1;for(const _0x5df3d1 of _0x1bf46e){if('insert'!==_0x5df3d1['type']||'$text'===_0x5df3d1['name'])continue;const _0x411629=_0x5c566d['createRangeOn'](_0x5df3d1['position']['nodeAfter']);for(const _0x571fb0 of _0x411629['getItems']())_0x571fb0['is']('element','footnotesDefinitions')&&(!_0x571fb0['hasAttribute']('footnotesListStart')&&_0x5c566d['schema']['checkAttribute'](_0x571fb0,'footnotesListStart')&&(_0x236b5f['setAttribute']('footnotesListStart',_0x3ca5b0,_0x571fb0),_0x1c9ff8=!0x0),!_0x571fb0['hasAttribute']('footnotesListStyle')&&_0x5c566d['schema']['checkAttribute'](_0x571fb0,'footnotesListStyle')&&(_0x236b5f['setAttribute']('footnotesListStyle',_0x34fcd8,_0x571fb0),_0x1c9ff8=!0x0));}return _0x1c9ff8&&_0x199998['_updateFootnotesCounters'](_0x236b5f),_0x1c9ff8;});}['_defineFormatter'](){const {editor:_0x58b7d5}=this;_0x58b7d5['plugins']['get'](f)['setFootnoteFormatter'](_0x4562a6=>this['_formatFootnoteListValue'](_0x4562a6));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x38b959,value:_0x488817,digits:_0x1da4fc}){const _0x20d8eb=_0x38b959['getAttribute']('footnotesListStyle'),_0x36b2c1=_0x38b959['getAttribute']('footnotesListStart'),_0x1bbf19=Math['floor'](_0x488817)+(_0x36b2c1??0x1)-0x1;switch(_0x20d8eb){case'decimal-leading-zero':return function(_0x252704,_0x5a658c){return String(_0x252704)['padStart'](_0x5a658c,'0');}(_0x1bbf19,Math['max'](0x2,_0x1da4fc));case'lower-alpha':case'lower-latin':return N(_0x1bbf19,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1bbf19,!0x0);case'lower-roman':return X(_0x1bbf19,!0x1);case'upper-roman':return X(_0x1bbf19,!0x0);default:return String(_0x1bbf19);}}}function M(_0x2ab3dd,_0x5bf6fc){const _0x2194e9=_0x5bf6fc['toViewElement'](_0x2ab3dd);return Array['from'](_0x2194e9['getChildren']())['find'](_0x2e4d7f=>_0x2e4d7f['is']('element','ol')&&_0x2e4d7f['hasClass']('footnotes-list'));}function N(_0x940d79,_0x4252f6){let _0x163231='',_0x35b657=_0x940d79;for(;_0x35b657>0x0;){const _0x2647f5=(_0x35b657-0x1)%0x1a;_0x163231=String['fromCharCode'](0x61+_0x2647f5)+_0x163231,_0x35b657=Math['floor']((_0x35b657-0x1)/0x1a);}return _0x4252f6?_0x163231['toUpperCase']():_0x163231;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0x86f8b5,_0x53352d){let _0x226759='',_0x126a24=_0x86f8b5;for(const {value:_0x272cb6,numeral:_0x6f01ee}of V)for(;_0x126a24>=_0x272cb6;)_0x226759+=_0x6f01ee,_0x126a24-=_0x272cb6;return _0x53352d?_0x226759:_0x226759['toLowerCase']();}class $ extends _0x1ad2c0{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1cf98d();['focusCycler'];constructor(_0x2e3889,{styleButtonViews:_0x43b295,styleGridAriaLabel:_0x40783f}){super(_0x2e3889),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x43b295,_0x40783f),[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 _0x1f2e74 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1f2e74['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x4aad2c=_0x4f02e4=>_0x4f02e4['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4aad2c),this['keystrokes']['set']('arrowleft',_0x4aad2c),this['keystrokes']['set']('arrowup',_0x4aad2c),this['keystrokes']['set']('arrowdown',_0x4aad2c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xeb869d,_0xade792){const _0x52d0db=new _0x1ad2c0(this['locale']);return _0x52d0db['children']=_0x52d0db['createCollection'](),_0x52d0db['children']['addMany'](_0xeb869d),_0x52d0db['setTemplate']({'tag':'div','attributes':{'aria-label':_0xade792,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x52d0db['children']}),_0x52d0db['children']['delegate']('execute')['to'](this),_0x52d0db['focus']=function(){for(const _0x4d3348 of this['children'])if(_0x4d3348 instanceof _0x3a955b&&_0x4d3348['isOn'])return void _0x4d3348['focus']();this['children']['first']['focus']();},_0x52d0db['focusTracker']=new rt(),_0x52d0db['keystrokes']=new nt(),_0x52d0db['render'](),_0x52d0db['keystrokes']['listenTo'](_0x52d0db['element']),this['children']['add'](_0x52d0db),_0x52d0db;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x21f667=this['_createStartIndexPropertyView'](),_0x44a133=[_0x21f667],_0x51b206=new it(this['locale'],_0x44a133);return _0x51b206['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x51b206['buttonView']['bind']('isEnabled')['toMany'](_0x44a133,'isEnabled',(..._0x26c495)=>_0x26c495['some'](_0x573a16=>_0x573a16)),_0x51b206['buttonView']['on']('change:isEnabled',(_0x1cc1fb,_0x366cc3,_0xfef7ba)=>{_0xfef7ba||(_0x51b206['isCollapsed']=!0x0);}),this['children']['add'](_0x51b206),[_0x21f667,_0x51b206];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0xe39e7f=new et(this['locale'],ot);return _0xe39e7f['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0xe39e7f['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0xe39e7f['fieldView']['on']('input',()=>{const _0x1b2627=_0xe39e7f['fieldView']['element'],_0x5c1876=_0x1b2627['valueAsNumber'];Number['isNaN'](_0x5c1876)?_0xe39e7f['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x1b2627['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x5c1876}):_0xe39e7f['errorText']=t(_0x5c1876<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0xe39e7f;}}class j extends _0x55f208{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x50acf6,_0x569f83];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x51c22a}=this,{componentFactory:_0x57da5c}=_0x51c22a['ui'];_0x51c22a['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x57da5c['add']('footnotesStyle',function(_0x56b471){return _0x560eb7=>{const {t:t}=_0x560eb7,_0x4961cd=_0x56b471['commands']['get']('footnotesStyle'),_0xf35a8d=_0x3cd3b0(_0x560eb7),{buttonView:_0x48d2e9}=_0xf35a8d;return _0xf35a8d['class']='ck-footnotes-styles-dropdown',_0xf35a8d['bind']('isEnabled')['to'](_0x4961cd,'isEnabled'),_0x48d2e9['set']({'label':t('Footnotes\x20style'),'icon':_0x39a9b7,'tooltip':!0x0}),_0xf35a8d['once']('change:isOpen',()=>{const _0x1c8791=function({editor:_0x468d42,dropdownView:_0x425457}){const {t:t}=_0x468d42['locale'],_0x2eb801=t('Footnotes\x20definitions\x20styles'),_0x53ecc2=function(_0x29eed4){const t=_0x29eed4['locale']['t'],_0x267bcc=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x427de6},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0xdbb943},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x51800d},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x2a415c},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x37fb7e},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x174dcd}];return _0x267bcc['map'](function(_0x42b7ab){const _0x3982c3=_0x42b7ab['locale'];return({label:_0x4f70a4,icon:_0x121f2e,tooltip:_0x148c54,style:_0x470e86})=>{const _0xc6372c=_0x42b7ab['commands']['get']('footnotesStyle'),_0x4ce4e4=new _0x3a955b(_0x3982c3);return _0x4ce4e4['set']({'label':_0x4f70a4,'icon':_0x121f2e,'tooltip':_0x148c54}),_0x4ce4e4['bind']('isOn')['to'](_0xc6372c,'value',_0x4d356f=>_0x4d356f===_0x470e86),_0x4ce4e4['bind']('isEnabled')['to'](_0xc6372c,'isEnabled'),_0x4ce4e4['on']('execute',()=>{_0x42b7ab['execute']('footnotesStyle',{'value':_0x470e86}),_0x42b7ab['editing']['view']['focus']();}),_0x4ce4e4;};}(_0x29eed4));}(_0x468d42),_0x5d6e92=new $(_0x468d42['locale'],{'styleGridAriaLabel':_0x2eb801,'styleButtonViews':_0x53ecc2}),_0x2da9ae=_0x468d42['commands']['get']('footnotesStart');return _0x5d6e92['startIndexFieldView']['bind']('isEnabled')['to'](_0x2da9ae),_0x5d6e92['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2da9ae),_0x5d6e92['on']('footnotesListStart',(_0x3bcccc,_0x44755c)=>{_0x468d42['execute']('footnotesStart',{'value':_0x44755c['startIndex']});}),_0x5d6e92['delegate']('execute')['to'](_0x425457),_0x5d6e92;}({'editor':_0x56b471,'dropdownView':_0xf35a8d});_0xf35a8d['panelView']['children']['add'](_0x1c8791);}),_0xf35a8d;};}(_0x51c22a));}['afterInit'](){const {editor:_0x243be4}=this,{t:t}=_0x243be4['locale'],_0x335a60=_0x243be4['plugins']['get'](_0x569f83),{defaultPositions:_0x447e3a}=_0x3666fc;_0x335a60['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x243be4['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x38ed70=>{let _0x53d6c7=_0x38ed70['getFirstPosition']()?.['parent'];return _0x53d6c7?.['is']('$text')&&(_0x53d6c7=_0x53d6c7['parent']),_0x53d6c7?.['is']('element')?_0x53d6c7['findAncestor'](H):null;},'positions':[_0x447e3a['southArrowNorth'],_0x447e3a['southArrowNorthMiddleWest'],_0x447e3a['southArrowNorthMiddleEast'],_0x447e3a['southArrowNorthWest'],_0x447e3a['southArrowNorthEast'],_0x447e3a['northArrowSouth'],_0x447e3a['northArrowSouthMiddleWest'],_0x447e3a['northArrowSouthMiddleEast'],_0x447e3a['northArrowSouthWest'],_0x447e3a['northArrowSouthEast'],_0x447e3a['viewportStickyNorth']]});}}class ft extends _0x55f208{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ckeditor/ckeditor5-footnotes",
3
- "version": "47.7.1-alpha.0",
3
+ "version": "47.7.1",
4
4
  "description": "The footnotes feature for CKEditor 5.",
5
5
  "keywords": [
6
6
  "ckeditor",
@@ -23,14 +23,14 @@
23
23
  "type": "module",
24
24
  "main": "src/index.js",
25
25
  "dependencies": {
26
- "@ckeditor/ckeditor5-core": "47.7.1-alpha.0",
27
- "@ckeditor/ckeditor5-ui": "47.7.1-alpha.0",
28
- "@ckeditor/ckeditor5-engine": "47.7.1-alpha.0",
29
- "@ckeditor/ckeditor5-icons": "47.7.1-alpha.0",
30
- "@ckeditor/ckeditor5-widget": "47.7.1-alpha.0",
31
- "@ckeditor/ckeditor5-clipboard": "47.7.1-alpha.0",
32
- "@ckeditor/ckeditor5-utils": "47.7.1-alpha.0",
33
- "ckeditor5": "47.7.1-alpha.0"
26
+ "@ckeditor/ckeditor5-core": "47.7.1",
27
+ "@ckeditor/ckeditor5-ui": "47.7.1",
28
+ "@ckeditor/ckeditor5-engine": "47.7.1",
29
+ "@ckeditor/ckeditor5-icons": "47.7.1",
30
+ "@ckeditor/ckeditor5-widget": "47.7.1",
31
+ "@ckeditor/ckeditor5-clipboard": "47.7.1",
32
+ "@ckeditor/ckeditor5-utils": "47.7.1",
33
+ "ckeditor5": "47.7.1"
34
34
  },
35
35
  "license": "SEE LICENSE IN LICENSE.md",
36
36
  "author": "CKSource (http://cksource.com/)",
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- const _0x3c794c=_0x3eae;(function(_0x401023,_0xa78a81){const _0x4ead72=_0x3eae,_0x34fb2f=_0x401023();while(!![]){try{const _0x91d38f=-parseInt(_0x4ead72(0x140))/0x1+parseInt(_0x4ead72(0x130))/0x2+-parseInt(_0x4ead72(0x13c))/0x3*(-parseInt(_0x4ead72(0x13b))/0x4)+parseInt(_0x4ead72(0x142))/0x5+parseInt(_0x4ead72(0x137))/0x6*(parseInt(_0x4ead72(0x128))/0x7)+parseInt(_0x4ead72(0x138))/0x8*(parseInt(_0x4ead72(0x12a))/0x9)+-parseInt(_0x4ead72(0x12d))/0xa;if(_0x91d38f===_0xa78a81)break;else _0x34fb2f['push'](_0x34fb2f['shift']());}catch(_0x99d9e8){_0x34fb2f['push'](_0x34fb2f['shift']());}}}(_0x8577,0xaed77));import{logWarning as _0x31186b,uid as _0x30baa2}from'ckeditor5/src/utils.js';import{Command as _0x45fcb4}from'ckeditor5/src/core.js';function _0x8577(){const _0x24be4e=['checkChild','687930nRselw','72728qQrOmW','string','editor','529136iVrCvm','15owUpkX','test','insert-footnote-command-executed-with-invalid-id','selection','328343xLFwmO','end','6039960QqGBAw','document','isEnabled','refresh','isBlock','insertObject','_getPositionToInsertFootnote','footnoteId','change','execute','getFirstRange','49rUwdiz','get','747nGdlum','length','FootnotesEditing','27969860GGCyRV','_moveSelectionToFootnoteDefinition','footnoteRef','829860ziyGxS','model','isObject','plugins','getItems','createElement'];_0x8577=function(){return _0x24be4e;};return _0x8577();}function _0x3eae(_0x5ed173,_0x10e8e0){const _0x8577a8=_0x8577();return _0x3eae=function(_0x3eae35,_0x1d40d2){_0x3eae35=_0x3eae35-0x125;let _0x42d6c9=_0x8577a8[_0x3eae35];return _0x42d6c9;},_0x3eae(_0x5ed173,_0x10e8e0);}export class InsertFootnoteCommand extends _0x45fcb4{[_0x3c794c(0x145)](){const _0x52edb2=_0x3c794c,_0x3c6e90=this[_0x52edb2(0x13a)][_0x52edb2(0x131)][_0x52edb2(0x143)][_0x52edb2(0x13f)],_0x25ee25=this[_0x52edb2(0x148)](_0x3c6e90);this[_0x52edb2(0x144)]=!!_0x25ee25;}[_0x3c794c(0x126)](_0x3b4d82){const _0x51c459=_0x3c794c,{editor:_0x3f47e9}=this,{model:_0x482b2c}=_0x3f47e9,{selection:_0x3269bb}=_0x482b2c[_0x51c459(0x143)],_0xe64a9c=this[_0x51c459(0x148)](_0x3269bb);if(!_0xe64a9c)return;const _0x4462e7=_0x3f47e9[_0x51c459(0x133)][_0x51c459(0x129)](_0x51c459(0x12c)),_0x3f3a22=_0x3b4d82?.[_0x51c459(0x149)]??_0x30baa2();!function(_0x823125){const _0x3e5dff=_0x51c459;return _0x3e5dff(0x139)==typeof _0x823125&&_0x823125[_0x3e5dff(0x12b)]>0x0&&!/\s/[_0x3e5dff(0x13d)](_0x823125)&&!/^\d/[_0x3e5dff(0x13d)](_0x823125);}(_0x3f3a22)?_0x31186b(_0x51c459(0x13e)):(_0x482b2c[_0x51c459(0x125)](_0x13e776=>{const _0x10d236=_0x51c459,_0x4f5198=_0x13e776[_0x10d236(0x135)](_0x10d236(0x12f),{'footnoteId':_0x3f3a22});_0x482b2c[_0x10d236(0x147)](_0x4f5198,_0xe64a9c,null);}),_0x4462e7[_0x51c459(0x12e)](_0x3f3a22));}[_0x3c794c(0x148)](_0x3c2ce7){const _0x248ae=_0x3c794c,{model:_0x47b4a7}=this[_0x248ae(0x13a)],{schema:_0x5d55d4}=_0x47b4a7,_0x678eab=_0x3c2ce7[_0x248ae(0x127)]();for(const _0x5ad949 of _0x678eab[_0x248ae(0x134)]())if(_0x5d55d4[_0x248ae(0x146)](_0x5ad949)||_0x5d55d4[_0x248ae(0x132)](_0x5ad949))return null;const _0x11799b=_0x678eab[_0x248ae(0x141)];return _0x5d55d4[_0x248ae(0x136)](_0x11799b,_0x248ae(0x12f))?_0x11799b:null;}}
23
+ function _0x2660(_0x2ca5f4,_0x2636f2){const _0x1ba9be=_0x1ba9();return _0x2660=function(_0x2660dd,_0x38c899){_0x2660dd=_0x2660dd-0x14d;let _0x16691a=_0x1ba9be[_0x2660dd];return _0x16691a;},_0x2660(_0x2ca5f4,_0x2636f2);}const _0x330ecd=_0x2660;(function(_0x2ca5f5,_0x59bf97){const _0x5094a5=_0x2660,_0x42b851=_0x2ca5f5();while(!![]){try{const _0x39ebc4=-parseInt(_0x5094a5(0x14e))/0x1*(parseInt(_0x5094a5(0x164))/0x2)+-parseInt(_0x5094a5(0x160))/0x3+-parseInt(_0x5094a5(0x170))/0x4+-parseInt(_0x5094a5(0x168))/0x5+parseInt(_0x5094a5(0x16c))/0x6*(-parseInt(_0x5094a5(0x158))/0x7)+-parseInt(_0x5094a5(0x157))/0x8+-parseInt(_0x5094a5(0x159))/0x9*(-parseInt(_0x5094a5(0x15e))/0xa);if(_0x39ebc4===_0x59bf97)break;else _0x42b851['push'](_0x42b851['shift']());}catch(_0x51aa3b){_0x42b851['push'](_0x42b851['shift']());}}}(_0x1ba9,0xb1c22));import{logWarning as _0x5adb0d,uid as _0x1fbf13}from'ckeditor5/src/utils.js';import{Command as _0x1c37d8}from'ckeditor5/src/core.js';function _0x1ba9(){const _0x505b97=['1614432KEwBVH','7KjcYTd','346941NLCdKf','FootnotesEditing','footnoteId','checkChild','footnoteRef','1040iHUhGK','_moveSelectionToFootnoteDefinition','2820975mgLCFQ','isBlock','get','insert-footnote-command-executed-with-invalid-id','608926TPxKnl','document','test','change','3250215IrUfoI','plugins','createElement','_getPositionToInsertFootnote','6515838MkfDNN','isEnabled','getFirstRange','end','393560ViVopy','editor','isObject','1fbyDnn','execute','getItems','string','refresh','length','model','selection','insertObject'];_0x1ba9=function(){return _0x505b97;};return _0x1ba9();}export class InsertFootnoteCommand extends _0x1c37d8{[_0x330ecd(0x152)](){const _0x55d93f=_0x330ecd,_0x58a904=this[_0x55d93f(0x171)][_0x55d93f(0x154)][_0x55d93f(0x165)][_0x55d93f(0x155)],_0x29c7e=this[_0x55d93f(0x16b)](_0x58a904);this[_0x55d93f(0x16d)]=!!_0x29c7e;}[_0x330ecd(0x14f)](_0x11615c){const _0x2a5fe2=_0x330ecd,{editor:_0x2de534}=this,{model:_0x169c0a}=_0x2de534,{selection:_0x33eadb}=_0x169c0a[_0x2a5fe2(0x165)],_0x3acd68=this[_0x2a5fe2(0x16b)](_0x33eadb);if(!_0x3acd68)return;const _0x34b5ca=_0x2de534[_0x2a5fe2(0x169)][_0x2a5fe2(0x162)](_0x2a5fe2(0x15a)),_0x42ccac=_0x11615c?.[_0x2a5fe2(0x15b)]??_0x1fbf13();!function(_0x515f6d){const _0x3d071a=_0x2a5fe2;return _0x3d071a(0x151)==typeof _0x515f6d&&_0x515f6d[_0x3d071a(0x153)]>0x0&&!/\s/[_0x3d071a(0x166)](_0x515f6d)&&!/^\d/[_0x3d071a(0x166)](_0x515f6d);}(_0x42ccac)?_0x5adb0d(_0x2a5fe2(0x163)):(_0x169c0a[_0x2a5fe2(0x167)](_0x5a9d43=>{const _0x3833f1=_0x2a5fe2,_0x30097d=_0x5a9d43[_0x3833f1(0x16a)](_0x3833f1(0x15d),{'footnoteId':_0x42ccac});_0x169c0a[_0x3833f1(0x156)](_0x30097d,_0x3acd68,null);}),_0x34b5ca[_0x2a5fe2(0x15f)](_0x42ccac));}[_0x330ecd(0x16b)](_0x25a28f){const _0x4c9045=_0x330ecd,{model:_0x2f5de4}=this[_0x4c9045(0x171)],{schema:_0x11dacf}=_0x2f5de4,_0x28b875=_0x25a28f[_0x4c9045(0x16e)]();for(const _0x46d23d of _0x28b875[_0x4c9045(0x150)]())if(_0x11dacf[_0x4c9045(0x161)](_0x46d23d)||_0x11dacf[_0x4c9045(0x14d)](_0x46d23d))return null;const _0x1fb479=_0x28b875[_0x4c9045(0x16f)];return _0x11dacf[_0x4c9045(0x15c)](_0x1fb479,_0x4c9045(0x15d))?_0x1fb479:null;}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{Plugin as _0x44280d}from'ckeditor5/src/core.js';import{isWidget as _0x1480ea,toWidget as _0x26c0fd,toWidgetEditable as _0x2a34e1}from'ckeditor5/src/widget.js';import{uid as _0x1db05e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x5d7a7d,ClickObserver as _0x152dcc}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x560b2a}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x11574e}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x44280d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x560b2a];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1fed80}=this;_0x1fed80['config']['define']('footnotes.multiBlock',!0x0),_0x1fed80['commands']['add']('insertFootnote',new _0x11574e(_0x1fed80)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5b1199){const _0x322061=_0x593bfe([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]),_0x212336=0x47a28506,_0x502e48=0x47a502ce^_0x212336,_0x1dc4dd=window[_0x593bfe([0x44,0x61,0x74,0x65])][_0x593bfe([0x6e,0x6f,0x77])](),_0x15dc6d=_0x5b1199[_0x593bfe([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x323d3b=new window[(_0x593bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x39a010=>{_0x15dc6d[_0x593bfe([0x6f,0x6e,0x63,0x65])](_0x593bfe([0x72,0x65,0x61,0x64,0x79]),_0x39a010);}),_0xb1953b={[_0x593bfe([0x6b,0x74,0x79])]:_0x593bfe([0x45,0x43]),[_0x593bfe([0x75,0x73,0x65])]:_0x593bfe([0x73,0x69,0x67]),[_0x593bfe([0x63,0x72,0x76])]:_0x593bfe([0x50,0x2d,0x32,0x35,0x36]),[_0x593bfe([0x78])]:_0x593bfe([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]),[_0x593bfe([0x79])]:_0x593bfe([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]),[_0x593bfe([0x61,0x6c,0x67])]:_0x593bfe([0x45,0x53,0x32,0x35,0x36])},_0x29ee1c=_0x15dc6d[_0x593bfe([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x593bfe([0x67,0x65,0x74])](_0x593bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x38c06b(){let _0x83f0f7,_0x5b1804=null,_0x4e81c8=null;try{if(_0x29ee1c==_0x593bfe([0x47,0x50,0x4c]))return _0x593bfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x83f0f7=_0x5acba1(),!_0x83f0f7)return _0x593bfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x83f0f7[_0x593bfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4e81c8=_0x410422(_0x83f0f7[_0x593bfe([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x83f0f7[_0x593bfe([0x6a,0x74,0x69])])),await _0x1258ed()?_0x2f4d91()?_0x221221()?_0x593bfe([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x412b7d()?(_0x83f0f7[_0x593bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x593bfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5b1804=_0x33fc7a(_0x593bfe([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x56572a()):_0x593bfe([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x593bfe([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x593bfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x593bfe([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x221221(){const _0x232409=[_0x593bfe([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x593bfe([0x74,0x72,0x69,0x61,0x6c])][_0x593bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x83f0f7[_0x593bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1dc4dd/0x3e8:0xe10*_0x502e48;return _0x83f0f7[_0x593bfe([0x65,0x78,0x70])]<_0x232409;}function _0x2f4d91(){const _0x578d5d=_0x83f0f7[_0x593bfe([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x578d5d&&(!!_0x578d5d[_0x593bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593bfe([0x2a]))||!!_0x578d5d[_0x593bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593bfe([0x46,0x4f,0x4f])));}function _0x412b7d(){const _0x39ff0e=_0x83f0f7[_0x593bfe([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x39ff0e||0x0==_0x39ff0e[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x420a8f}=new URL(window[_0x593bfe([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x39ff0e[_0x593bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x420a8f))return!0x0;const _0x4d64a2=_0x420a8f[_0x593bfe([0x73,0x70,0x6c,0x69,0x74])](_0x593bfe([0x2e]));return _0x39ff0e[_0x593bfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x541b55=>_0x541b55[_0x593bfe([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x593bfe([0x2a])))[_0x593bfe([0x6d,0x61,0x70])](_0x43ea60=>_0x43ea60[_0x593bfe([0x73,0x70,0x6c,0x69,0x74])](_0x593bfe([0x2e])))[_0x593bfe([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x47e3df=>_0x47e3df[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d64a2[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x593bfe([0x6d,0x61,0x70])](_0x145a5f=>Array(_0x4d64a2[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x145a5f[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x593bfe([0x66,0x69,0x6c,0x6c])](_0x145a5f[0x0]===_0x593bfe([0x2a])?_0x593bfe([0x2a]):'')[_0x593bfe([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x145a5f))[_0x593bfe([0x73,0x6f,0x6d,0x65])](_0x1b38e0=>_0x4d64a2[_0x593bfe([0x65,0x76,0x65,0x72,0x79])]((_0x42beaf,_0x3da486)=>_0x1b38e0[_0x3da486]===_0x42beaf||_0x1b38e0[_0x3da486]===_0x593bfe([0x2a])));}function _0x56572a(){return _0x5b1804&&_0x4e81c8?new window[(_0x593bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x1f57ef,_0x4c0e73)=>{_0x5b1804[_0x593bfe([0x74,0x68,0x65,0x6e])](_0x1f57ef,_0x4c0e73),_0x4e81c8[_0x593bfe([0x74,0x68,0x65,0x6e])](_0x226f80=>{_0x226f80!=_0x593bfe([0x56,0x61,0x6c,0x69,0x64])&&_0x1f57ef(_0x226f80);},_0x4c0e73);}):_0x5b1804||_0x4e81c8||_0x593bfe([0x56,0x61,0x6c,0x69,0x64]);}}function _0x410422(_0x3e0f82,_0x42b158){return new window[(_0x593bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3dc9ad=>{if(_0x2335d6())return _0x3dc9ad(_0x593bfe([0x56,0x61,0x6c,0x69,0x64]));_0x171ea8(),_0x15dc6d[_0x593bfe([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x593bfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x228207=!0x1;const _0x380b19=_0x1db05e();function _0x308f08(_0x350138){return!!_0x350138&&(typeof _0x350138===_0x593bfe([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x350138===_0x593bfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x350138[_0x593bfe([0x74,0x68,0x65,0x6e])]===_0x593bfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x350138[_0x593bfe([0x63,0x61,0x74,0x63,0x68])]===_0x593bfe([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x319dbd(_0x2e9f13){_0x385885(_0x2e9f13)[_0x593bfe([0x74,0x68,0x65,0x6e])](_0x137f10=>{if(!_0x137f10||_0x137f10[_0x593bfe([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x593bfe([0x6f,0x6b]))return _0x593bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x8bcb79(_0x3e21e8(_0x380b19+_0x42b158))!=_0x137f10[_0x593bfe([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x593bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x593bfe([0x56,0x61,0x6c,0x69,0x64]);})[_0x593bfe([0x74,0x68,0x65,0x6e])](_0x646af0=>(_0x44f0e1(),_0x646af0),()=>{const _0x4939ec=_0x29a24a();return null==_0x4939ec?(_0x44f0e1(),_0x593bfe([0x56,0x61,0x6c,0x69,0x64])):_0x593bfe(_0x1dc4dd-_0x4939ec>(0x63ae0106^_0x212336)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x593bfe([0x74,0x68,0x65,0x6e])](_0x3dc9ad)[_0x593bfe([0x63,0x61,0x74,0x63,0x68])](()=>{_0x3dc9ad(_0x593bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3c0669=0x47946b86^_0x212336;function _0x44f0e1(){const _0x541d9f=_0x593bfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x8bcb79(_0x3e21e8(_0x3e0f82)),_0x339025=_0x3562e4(_0x8bcb79(window[_0x593bfe([0x4d,0x61,0x74,0x68])][_0x593bfe([0x63,0x65,0x69,0x6c])](_0x1dc4dd/_0x3c0669)));window[_0x593bfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593bfe([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x541d9f,_0x339025);}function _0x29a24a(){const _0x4fc9d6=_0x593bfe([0x6c,0x6c,0x63,0x74,0x2d])+_0x8bcb79(_0x3e21e8(_0x3e0f82)),_0x1885a1=window[_0x593bfe([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x593bfe([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4fc9d6);return _0x1885a1?window[_0x593bfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3562e4(_0x1885a1),0x10)*_0x3c0669:null;}function _0x385885(_0x559ff0){return new window[(_0x593bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x35d428,_0x558a89)=>{_0x559ff0[_0x593bfe([0x74,0x68,0x65,0x6e])](_0x35d428,_0x558a89),window[_0x593bfe([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x558a89,0x47a351c6^_0x212336);});}}_0x15dc6d[_0x593bfe([0x6f,0x6e])](_0x593bfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x281fbf,_0x639d2d)=>{if(_0x639d2d[0x0]!=_0x3e0f82)return _0x3dc9ad(_0x593bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x639d2d[0x1]={..._0x639d2d[0x1],[_0x593bfe([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x380b19};},{[_0x593bfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593bfe([0x68,0x69,0x67,0x68])}),_0x15dc6d[_0x593bfe([0x6f,0x6e])](_0x593bfe([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x4916e8=>{_0x308f08(_0x4916e8[_0x593bfe([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x228207=!0x0,_0x319dbd(_0x4916e8[_0x593bfe([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x593bfe([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x593bfe([0x6c,0x6f,0x77])}),_0x323d3b[_0x593bfe([0x74,0x68,0x65,0x6e])](()=>{_0x228207||_0x3dc9ad(_0x593bfe([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2335d6(){return _0x15dc6d[_0x593bfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593bfe([0x76,0x69,0x65,0x77])][_0x593bfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x593bfe([0x61,0x75,0x74,0x6f]);}function _0x171ea8(){_0x15dc6d[_0x593bfe([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x593bfe([0x76,0x69,0x65,0x77])][_0x593bfe([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x593bfe([0x61,0x75,0x74,0x6f]);}}function _0x33fc7a(_0xc91c51){const _0x2a9b1c=[new window[(_0x593bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x22bbea=>setTimeout(_0x22bbea,0x47abbbca^_0x212336)),_0x323d3b[_0x593bfe([0x74,0x68,0x65,0x6e])](()=>new window[(_0x593bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5b5e2f=>{let _0x285da8=0x0;_0x15dc6d[_0x593bfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x593bfe([0x6f,0x6e])](_0x593bfe([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x65bee9,_0x1f5650)=>{_0x1f5650[0x0][_0x593bfe([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x285da8++,_0x285da8==(0x47a280ee^_0x212336)&&(_0x5b5e2f(),_0x65bee9[_0x593bfe([0x6f,0x66,0x66])]());});}))];return window[_0x593bfe([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x593bfe([0x72,0x61,0x63,0x65])](_0x2a9b1c)[_0x593bfe([0x74,0x68,0x65,0x6e])](()=>_0xc91c51);}async function _0xc51b9b(){await _0x323d3b,_0x15dc6d[_0x593bfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x593bfe([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x575079,_0x15dc6d[_0x593bfe([0x6d,0x6f,0x64,0x65,0x6c])][_0x593bfe([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x575079,_0x15dc6d[_0x593bfe([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x593bfe([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x318257(_0x1ac9d3){const _0x5f28f5=_0x250e31();_0x15dc6d[_0x5f28f5]=_0x593bfe([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1ac9d3,_0x1ac9d3!=_0x593bfe([0x56,0x61,0x6c,0x69,0x64])&&_0xc51b9b();}function _0x250e31(){const _0x20a69c=window[_0x593bfe([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x593bfe([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x593bfe([0x6e,0x6f,0x77])]())[_0x593bfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x593bfe([0x2e]),'');let _0x5cb461=_0x593bfe([0x75]);for(let _0x142f61=0x0;_0x142f61<_0x20a69c[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x142f61+=0x2){let _0x524543=window[_0x593bfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x20a69c[_0x593bfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x142f61,_0x142f61+0x2));_0x524543>=_0x322061[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x524543-=_0x322061[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cb461+=_0x322061[_0x524543];}return _0x5cb461;}function _0x5acba1(){const _0xfc6916=_0x29ee1c[_0x593bfe([0x73,0x70,0x6c,0x69,0x74])](_0x593bfe([0x2e]));if(0x3!=_0xfc6916[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x21e174(_0xfc6916[0x1]);function _0x21e174(_0x3b78a7){const _0x38c4f4=_0x54fb90(_0x3b78a7);return _0x38c4f4&&_0x1f91d6()?_0x38c4f4:null;function _0x1f91d6(){const _0x15c0de=_0x38c4f4[_0x593bfe([0x6a,0x74,0x69])],_0x119400=window[_0x593bfe([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x15c0de[_0x593bfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x15c0de[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ca8eb={..._0x38c4f4,[_0x593bfe([0x6a,0x74,0x69])]:_0x15c0de[_0x593bfe([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x15c0de[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ca8eb[_0x593bfe([0x76,0x63])],_0x3e21e8(_0x4ca8eb)==_0x119400;}}}async function _0x1258ed(){let _0x1339f0=!0x0;try{const _0xfe9a3f=_0x29ee1c[_0x593bfe([0x73,0x70,0x6c,0x69,0x74])](_0x593bfe([0x2e])),[_0x2c6aa9,_0x38d464,_0x416a6d]=_0xfe9a3f;return _0x5f5df0(_0x2c6aa9),await _0x2074a6(_0x2c6aa9,_0x38d464,_0x416a6d),_0x1339f0;}catch{return!0x1;}function _0x5f5df0(_0x392b17){const _0x4ce786=_0x54fb90(_0x392b17);_0x4ce786&&_0x4ce786[_0x593bfe([0x61,0x6c,0x67])]==_0x593bfe([0x45,0x53,0x32,0x35,0x36])||(_0x1339f0=!0x1);}async function _0x2074a6(_0x4e1785,_0x46e545,_0x1908c6){const _0x5d2be1=window[_0x593bfe([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x593bfe([0x66,0x72,0x6f,0x6d])](_0x13c455(_0x1908c6),_0x5322a8=>_0x5322a8[_0x593bfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e813a=new window[(_0x593bfe([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x593bfe([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x4e1785+_0x593bfe([0x2e])+_0x46e545),_0x5ca903=window[_0x593bfe([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x593bfe([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5ca903)return;const _0x274d1b=await _0x5ca903[_0x593bfe([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x593bfe([0x6a,0x77,0x6b]),_0xb1953b,{[_0x593bfe([0x6e,0x61,0x6d,0x65])]:_0x593bfe([0x45,0x43,0x44,0x53,0x41]),[_0x593bfe([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x593bfe([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x593bfe([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5ca903[_0x593bfe([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x593bfe([0x6e,0x61,0x6d,0x65])]:_0x593bfe([0x45,0x43,0x44,0x53,0x41]),[_0x593bfe([0x68,0x61,0x73,0x68])]:{[_0x593bfe([0x6e,0x61,0x6d,0x65])]:_0x593bfe([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x274d1b,_0x5d2be1,_0x5e813a)||(_0x1339f0=!0x1);}}function _0x54fb90(_0x2aabf0){return _0x2aabf0[_0x593bfe([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x593bfe([0x65,0x79]))?JSON[_0x593bfe([0x70,0x61,0x72,0x73,0x65])](_0x13c455(_0x2aabf0)):null;}function _0x13c455(_0xd2e5df){return window[_0x593bfe([0x61,0x74,0x6f,0x62])](_0xd2e5df[_0x593bfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x593bfe([0x2b]))[_0x593bfe([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x593bfe([0x2f])));}function _0x3e21e8(_0x5cbf32){let _0x11c502=0x1505;function _0xbafa69(_0xf498bb){for(let _0x1a0712=0x0;_0x1a0712<_0xf498bb[_0x593bfe([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a0712++){const _0x48cc24=_0xf498bb[_0x593bfe([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a0712);_0x11c502=(_0x11c502<<0x5)+_0x11c502+_0x48cc24,_0x11c502&=_0x11c502;}}function _0x37568f(_0x3413da){Array[_0x593bfe([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3413da)?_0x3413da[_0x593bfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x37568f):_0x3413da&&typeof _0x3413da==_0x593bfe([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x593bfe([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3413da)[_0x593bfe([0x73,0x6f,0x72,0x74])]()[_0x593bfe([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4d383a,_0x452263])=>{_0xbafa69(_0x4d383a),_0x37568f(_0x452263);}):_0xbafa69(window[_0x593bfe([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3413da));}return _0x37568f(_0x5cbf32),_0x11c502>>>0x0;}function _0x8bcb79(_0x4a381a){return _0x4a381a[_0x593bfe([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x593bfe([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x593bfe([0x30]));}function _0x3562e4(_0xfade3){return _0xfade3[_0x593bfe([0x73,0x70,0x6c,0x69,0x74])]('')[_0x593bfe([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x593bfe([0x6a,0x6f,0x69,0x6e])]('');}function _0x575079(){}function _0x593bfe(_0x458aa6){return _0x458aa6['map'](_0x54df43=>String['fromCharCode'](_0x54df43))['join']('');}_0x318257(await _0x38c06b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x44e024){const {plugins:_0x562aeb,editing:_0x1247aa,model:_0x155bbf}=this['editor'],_0x5eb19e=_0x562aeb['get'](_0x560b2a)['getFootnote'](_0x44e024);return!!_0x5eb19e&&(_0x155bbf['change'](_0x49d4cc=>{_0x49d4cc['setSelection'](_0x49d4cc['createPositionAt'](_0x5eb19e['definition'],'end'));}),_0x1247aa['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5c8e19){const {plugins:_0x2bf8dc,editing:_0x547730,model:_0x1d0904}=this['editor'],_0xc56b9c=_0x2bf8dc['get'](_0x560b2a)['getFootnote'](_0x5c8e19);return!!_0xc56b9c&&(_0x1d0904['change'](_0x428fa8=>{_0x428fa8['setSelection'](_0xc56b9c['reference'],'on');}),_0x547730['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3f5217}=this['editor']['model'],_0x46ac84=this['editor']['config']['get']('footnotes.multiBlock');_0x3f5217['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3f5217['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3f5217['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x46ac84?_0x3f5217['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3f5217['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3f5217['addChildCheck'](_0x3bd40a=>{for(const _0x8262ca of _0x3bd40a)if('footnoteDefinition'===_0x8262ca['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x31bf97}=this,{conversion:_0x2c301d,editing:_0x172aa2}=_0x31bf97,{t:t}=_0x31bf97['locale'];_0x2c301d['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x25b7dc,{writer:_0x9bde9a,consumable:_0x380a3d})=>{const _0x24de1a=_0x25b7dc['getChild'](0x0);if(!_0x24de1a||!_0x24de1a['is']('element','a'))return null;const _0x2f0227=_0x24de1a['getAttribute']('href')||'';if(!_0x2f0227['startsWith']('#'))return null;const _0x595db0=_0x2f0227['replace'](/^#/,'');if(!_0x595db0)return null;_0x380a3d['consume'](_0x24de1a,{'name':!0x0,'attributes':['href']});for(const {item:_0x2ae526}of _0x172aa2['view']['createRangeIn'](_0x24de1a))_0x2ae526['is']('$textProxy')?_0x380a3d['consume'](_0x2ae526['textNode'],{'name':!0x0}):_0x2ae526['is']('element')&&_0x380a3d['consume'](_0x2ae526,{'name':!0x0});return _0x9bde9a['createElement']('footnoteRef',{'footnoteId':_0x595db0});}}),_0x2c301d['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x368f11,{writer:_0x2dcc9c})=>b(_0x368f11,_0x2dcc9c)}),_0x2c301d['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x12b94b,{writer:_0x2dfe7})=>{const _0x5333d9=_0x12b94b['getAttribute']('footnoteCounter');return _0x26c0fd(b(_0x12b94b,_0x2dfe7),_0x2dfe7,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5333d9)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4e2046}=this,{t:t}=_0x4e2046['locale'],{conversion:_0x4f7d7c}=_0x4e2046;_0x4f7d7c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4f7d7c['for']('upcast')['add'](_0x3224ba=>{_0x3224ba['on']('element:ol',(_0x490105,_0x154c4d,_0x2f668e)=>{const _0x3b1d63=_0x154c4d['viewItem'];if(!_0x3b1d63['hasClass']('footnotes-list')||!_0x154c4d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2f668e['consumable']['consume'](_0x3b1d63,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x44bc30,modelCursor:_0x8ebb02}=_0x2f668e['convertChildren'](_0x154c4d['viewItem'],_0x154c4d['modelCursor']);_0x154c4d['modelRange']=_0x44bc30,_0x154c4d['modelCursor']=_0x8ebb02;}),_0x3224ba['on']('element:hr',(_0x289562,_0x1b12ea,_0x48e474)=>{const _0x3a389c=_0x1b12ea['viewItem'];_0x3a389c['hasClass']('footnotes-divider')&&_0x1b12ea['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x48e474['consumable']['consume'](_0x3a389c,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4f7d7c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x6a13d7,{writer:_0xd058a8})=>D(_0xd058a8)}),_0x4f7d7c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x44970b,{writer:_0x20d7f6})=>{const _0x448083=D(_0x20d7f6,{'data-footnotes-list-label':t('Footnotes')}),_0x9cb355=_0x26c0fd(_0x448083,_0x20d7f6,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x20d7f6['setCustomProperty']('footnotesDefinitions',!0x0,_0x9cb355),_0x9cb355;}});}['_defineDefinitionConverters'](){const {editor:_0x1649cd}=this,{conversion:_0x34cae1,locale:_0x47f966}=_0x1649cd,_0x59883a=_0x1649cd['config']['get']('footnotes.multiBlock');_0x34cae1['for']('upcast')['add'](_0xc332f8=>{_0xc332f8['on']('element:li',(_0x34bcd2,_0x507874,_0x23a84c)=>{const _0x532632=_0x507874['viewItem'];if(!_0x532632['hasClass']('footnote-definition')||!_0x532632['getAttribute']('id'))return;const _0x5bac67=_0x532632['parent'];if(!_0x5bac67['is']('element','ol')||!_0x5bac67['hasClass']('footnotes-list'))return;if(!_0x23a84c['consumable']['test'](_0x532632,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x89c46d=_0x23a84c['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x532632['getAttribute']('id')});if(!_0x23a84c['safeInsert'](_0x89c46d,_0x507874['modelCursor']))return;_0x23a84c['consumable']['consume'](_0x532632,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1670bb=Array['from'](_0x532632['getChildren']())['find'](_0x2d1b65=>_0x2d1b65['is']('element')&&_0x2d1b65['hasClass']('footnote-content'));for(const _0x583d29 of _0x532632['getChildren']())_0x583d29['is']('element')&&(_0x23a84c['consumable']['consume'](_0x583d29,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x23a84c['consumable']['consume'](_0x583d29,{'name':!0x0,'classes':'footnote-content'}));if(_0x1670bb){if(_0x59883a)_0x23a84c['convertChildren'](_0x1670bb,_0x89c46d);else{const _0x288b8f=_0x23a84c['writer']['createElement']('footnoteInlineContent');_0x23a84c['writer']['insert'](_0x288b8f,_0x89c46d),_0x23a84c['convertChildren'](_0x1670bb,_0x288b8f);}}_0x23a84c['updateConversionResult'](_0x89c46d,_0x507874);});}),_0x34cae1['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x214406,{writer:_0x649c96})=>y(_0x214406,_0x649c96,_0x47f966,{'dataPipeline':!0x0})}),_0x34cae1['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x51e26c,{writer:_0x5163e})=>y(_0x51e26c,_0x5163e,_0x47f966)});}['_defineBogusParagraphConverters'](){const {editor:_0x332471}=this,{conversion:_0x1f5150}=_0x332471;_0x332471['config']['get']('footnotes.multiBlock')?(_0x1f5150['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1f5150['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x332471['model']['document'],'change:data',()=>{!function(_0x241638,_0x2b6090){const _0x337883=_0x241638['document']['differ'],_0xb9a39c=new Set();for(const _0x2c458e of _0x337883['getChanges']()){const _0x12a961='attribute'==_0x2c458e['type']?_0x2c458e['range']['start']['parent']:_0x2c458e['position']['parent'];_0x12a961['is']('element','footnoteDefinition')&&_0xb9a39c['add'](_0x12a961);}for(const _0x190eb4 of _0xb9a39c['values']()){const _0x1c98bc=Array['from'](_0x190eb4['getChildren']())['filter'](_0x3993c6=>v(_0x3993c6,_0x2b6090['mapper']));for(const _0x4abe4b of _0x1c98bc)_0x2b6090['reconvertItem'](_0x4abe4b);}}(_0x332471['model'],_0x332471['editing']);})):(_0x1f5150['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1f5150['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2efc68,{writer:_0x41b205})=>{const _0x629bc1=_0x41b205['createContainerElement']('span');return _0x41b205['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x629bc1),_0x629bc1;}}));}['_defineKeyboardHandlers'](){const {editor:_0x71d5fe}=this,{editing:_0xe0fa8f,t:t}=_0x71d5fe,_0x5ca98c=_0x71d5fe['model']['document']['selection'];_0x71d5fe['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x71d5fe['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xe0fa8f['view']['document'],'enter',(_0x1de2fa,_0x64d7eb)=>{const _0x281c25=function(_0x203eb2){const _0x2b493e=_0x203eb2['getSelectedElement']();if(_0x2b493e?.['is']('element','footnoteRef'))return _0x2b493e;return null;}(_0x5ca98c);if(_0x281c25){const _0x4c43a1=_0x281c25['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4c43a1),_0x64d7eb['preventDefault'](),_0x1de2fa['stop']();}},{'context':_0x1480ea});}['_defineClickHandlers'](){const {editor:_0x54bad3}=this,{editing:_0x145971}=_0x54bad3;_0x54bad3['editing']['view']['addObserver'](_0x5d7a7d),_0x54bad3['editing']['view']['addObserver'](_0x152dcc);let _0x1c80b8=!0x1;this['listenTo'](_0x145971['view']['document'],'pointerdown',(_0x425cbb,_0x43bfa4)=>{const {target:_0xd7da2d}=_0x43bfa4,_0x313e2b=_0x145971['view']['document']['selection'];_0x1c80b8=!!(_0xd7da2d?.['is']('element','a')&&_0xd7da2d['parent']?.['is']('element','sup')&&_0xd7da2d['parent']['hasClass']('footnote'))&&_0x313e2b['getSelectedElement']()===_0xd7da2d['parent'];},{'priority':'high'}),this['listenTo'](_0x145971['view']['document'],'click',(_0x4953e8,_0x3fcd9c)=>{const {target:_0x1ba107}=_0x3fcd9c;if(!_0x1ba107?.['is']('element','a'))return;if(_0x1ba107['parent']?.['is']('element','sup')&&_0x1ba107['parent']['hasClass']('footnote')&&!_0x1c80b8)return void _0x3fcd9c['preventDefault']();let _0x47a26f=_0x1ba107['getAttribute']('href');if(!_0x47a26f?.['startsWith']('#'))return;_0x47a26f=_0x47a26f['slice'](0x1);let _0x2bb156=!0x1;(_0x47a26f['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x47a26f['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x47a26f))&&(_0x2bb156=!0x0),_0x2bb156&&(_0x3fcd9c['preventDefault'](),_0x4953e8['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x3bec49}={}){return(_0x4f3f3d,{writer:_0xba45c8})=>{if(!g(_0x4f3f3d))return null;if(!_0x3bec49)return _0xba45c8['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1da752=_0xba45c8['createContainerElement']('p');return _0xba45c8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1da752),_0x1da752;};}function g(_0x3893a8){const {parent:_0x21e6e3}=_0x3893a8;if(!_0x21e6e3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x21e6e3['childCount'])return!0x1;for(const _0xb897af of _0x3893a8['getAttributeKeys']())if(!_0xb897af['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xb897af)return!0x1;return!0x0;}function v(_0xf926d0,_0x5a99b7){if(!_0xf926d0['is']('element','paragraph'))return!0x1;const _0x33a91e=_0x5a99b7['toViewElement'](_0xf926d0);return!!_0x33a91e&&g(_0xf926d0)!==_0x33a91e['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x30a588){return _0x1480ea(_0x30a588)&&_0x30a588['is']('containerElement')&&!!_0x30a588['getCustomProperty']('footnotesDefinitions');}function D(_0x46c266,_0x50d409={}){const _0x3c174b=_0x46c266['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x478311=_0x46c266['createContainerElement']('ol',{'class':'footnotes-list'},_0x46c266['createSlot']());return _0x46c266['createContainerElement']('div',{'class':'footnotes',..._0x50d409},[_0x3c174b,_0x478311]);}function b(_0x25fa18,_0x22efe7){const _0x42f6d6=_0x25fa18['getAttribute']('footnoteId'),_0x47135f=_0x25fa18['getAttribute']('footnoteCounter'),_0x21feee=_0x22efe7['createUIElement']('a',{'href':'#'+_0x42f6d6},function(_0x4abd06){const _0x226244=this['toDomElement'](_0x4abd06);return _0x226244['textContent']=_0x47135f,_0x226244;}),_0x49bb14=_0x22efe7['createContainerElement']('sup',{'id':'ref-'+_0x42f6d6,'class':'footnote'},[_0x21feee]);return _0x49bb14['getFillerOffset']=()=>null,_0x49bb14;}function y(_0x289d8a,_0x28fc22,_0x198cea,{dataPipeline:_0x309750}={}){const {t:t}=_0x198cea,_0x22c052=_0x289d8a['getAttribute']('footnoteId'),_0x403587=_0x28fc22['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x22c052},function(_0x481cd2){const _0x184d6f=this['toDomElement'](_0x481cd2);return _0x184d6f['innerText']='^',_0x184d6f;}),_0x14e196=_0x309750?_0x28fc22['createContainerElement']('div',{'class':'footnote-content'}):_0x2a34e1(_0x28fc22['createEditableElement']('div',{'class':'footnote-content'}),_0x28fc22,{'label':t('Footnote\x20content.')});return _0x28fc22['insert'](_0x28fc22['createPositionAt'](_0x14e196,0x0),_0x28fc22['createSlot']()),_0x28fc22['createContainerElement']('li',{'class':'footnote-definition','id':_0x22c052},[_0x403587,_0x14e196]);}
23
+ import{Plugin as _0x50fe79}from'ckeditor5/src/core.js';import{isWidget as _0x5af9b0,toWidget as _0x287332,toWidgetEditable as _0x19936c}from'ckeditor5/src/widget.js';import{uid as _0x19fbe8}from'ckeditor5/src/utils.js';import{PointerObserver as _0x55eab6,ClickObserver as _0x5581ee}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xb3c977}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x46700e}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x50fe79{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xb3c977];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4f0db6}=this;_0x4f0db6['config']['define']('footnotes.multiBlock',!0x0),_0x4f0db6['commands']['add']('insertFootnote',new _0x46700e(_0x4f0db6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x4e5018){const _0x15f068=_0x954931([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]),_0x198e49=0x47a28506,_0x514548=0x47a50d16^_0x198e49,_0x1272c2=window[_0x954931([0x44,0x61,0x74,0x65])][_0x954931([0x6e,0x6f,0x77])](),_0xbf8fc7=_0x4e5018[_0x954931([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x47e7db=new window[(_0x954931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a74a9=>{_0xbf8fc7[_0x954931([0x6f,0x6e,0x63,0x65])](_0x954931([0x72,0x65,0x61,0x64,0x79]),_0x3a74a9);}),_0xd95cf7={[_0x954931([0x6b,0x74,0x79])]:_0x954931([0x45,0x43]),[_0x954931([0x75,0x73,0x65])]:_0x954931([0x73,0x69,0x67]),[_0x954931([0x63,0x72,0x76])]:_0x954931([0x50,0x2d,0x32,0x35,0x36]),[_0x954931([0x78])]:_0x954931([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]),[_0x954931([0x79])]:_0x954931([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]),[_0x954931([0x61,0x6c,0x67])]:_0x954931([0x45,0x53,0x32,0x35,0x36])},_0x35753b=_0xbf8fc7[_0x954931([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x954931([0x67,0x65,0x74])](_0x954931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x201c6b(){let _0x5e9575,_0x25fdf0=null,_0x10d66c=null;try{if(_0x35753b==_0x954931([0x47,0x50,0x4c]))return _0x954931([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5e9575=_0x500779(),!_0x5e9575)return _0x954931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5e9575[_0x954931([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x10d66c=_0x3db2ae(_0x5e9575[_0x954931([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5e9575[_0x954931([0x6a,0x74,0x69])])),await _0xe64974()?_0x5ef229()?_0x5f5a94()?_0x954931([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4d6cf8()?(_0x5e9575[_0x954931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x954931([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25fdf0=_0x559f3a(_0x954931([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x114b49()):_0x954931([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x954931([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x954931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x954931([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x5f5a94(){const _0x28295e=[_0x954931([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x954931([0x74,0x72,0x69,0x61,0x6c])][_0x954931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e9575[_0x954931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1272c2/0x3e8:0xe10*_0x514548;return _0x5e9575[_0x954931([0x65,0x78,0x70])]<_0x28295e;}function _0x5ef229(){const _0x5892e4=_0x5e9575[_0x954931([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5892e4&&(!!_0x5892e4[_0x954931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x954931([0x2a]))||!!_0x5892e4[_0x954931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x954931([0x46,0x4f,0x4f])));}function _0x4d6cf8(){const _0x58b2ee=_0x5e9575[_0x954931([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x58b2ee||0x0==_0x58b2ee[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x227f58}=new URL(window[_0x954931([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x58b2ee[_0x954931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x227f58))return!0x0;const _0x34a6f4=_0x227f58[_0x954931([0x73,0x70,0x6c,0x69,0x74])](_0x954931([0x2e]));return _0x58b2ee[_0x954931([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17f6e9=>_0x17f6e9[_0x954931([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x954931([0x2a])))[_0x954931([0x6d,0x61,0x70])](_0x1cccfd=>_0x1cccfd[_0x954931([0x73,0x70,0x6c,0x69,0x74])](_0x954931([0x2e])))[_0x954931([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4668f3=>_0x4668f3[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x34a6f4[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x954931([0x6d,0x61,0x70])](_0x44e560=>Array(_0x34a6f4[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x44e560[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x954931([0x66,0x69,0x6c,0x6c])](_0x44e560[0x0]===_0x954931([0x2a])?_0x954931([0x2a]):'')[_0x954931([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x44e560))[_0x954931([0x73,0x6f,0x6d,0x65])](_0x133adc=>_0x34a6f4[_0x954931([0x65,0x76,0x65,0x72,0x79])]((_0x3d671b,_0x12e348)=>_0x133adc[_0x12e348]===_0x3d671b||_0x133adc[_0x12e348]===_0x954931([0x2a])));}function _0x114b49(){return _0x25fdf0&&_0x10d66c?new window[(_0x954931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x3309b5,_0x3f05e6)=>{_0x25fdf0[_0x954931([0x74,0x68,0x65,0x6e])](_0x3309b5,_0x3f05e6),_0x10d66c[_0x954931([0x74,0x68,0x65,0x6e])](_0xf0b2db=>{_0xf0b2db!=_0x954931([0x56,0x61,0x6c,0x69,0x64])&&_0x3309b5(_0xf0b2db);},_0x3f05e6);}):_0x25fdf0||_0x10d66c||_0x954931([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3db2ae(_0x399ee7,_0x1d8e5b){return new window[(_0x954931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c0d7b=>{if(_0x400ef5())return _0x2c0d7b(_0x954931([0x56,0x61,0x6c,0x69,0x64]));_0x41618b(),_0xbf8fc7[_0x954931([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x954931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x37413d=!0x1;const _0x40d5dd=_0x19fbe8();function _0x564fbd(_0x208099){return!!_0x208099&&(typeof _0x208099===_0x954931([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x208099===_0x954931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x208099[_0x954931([0x74,0x68,0x65,0x6e])]===_0x954931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x208099[_0x954931([0x63,0x61,0x74,0x63,0x68])]===_0x954931([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4dc751(_0x626707){_0x163535(_0x626707)[_0x954931([0x74,0x68,0x65,0x6e])](_0x3f5adf=>{if(!_0x3f5adf||_0x3f5adf[_0x954931([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x954931([0x6f,0x6b]))return _0x954931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2d1af6(_0x4c888a(_0x40d5dd+_0x1d8e5b))!=_0x3f5adf[_0x954931([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x954931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x954931([0x56,0x61,0x6c,0x69,0x64]);})[_0x954931([0x74,0x68,0x65,0x6e])](_0x45cfbf=>(_0x31f531(),_0x45cfbf),()=>{const _0x25c17f=_0x34c1f4();return null==_0x25c17f?(_0x31f531(),_0x954931([0x56,0x61,0x6c,0x69,0x64])):_0x954931(_0x1272c2-_0x25c17f>(0x63ae0106^_0x198e49)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x954931([0x74,0x68,0x65,0x6e])](_0x2c0d7b)[_0x954931([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2c0d7b(_0x954931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5808e7=0x47946b86^_0x198e49;function _0x31f531(){const _0x523835=_0x954931([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d1af6(_0x4c888a(_0x399ee7)),_0x19236a=_0x38d3ef(_0x2d1af6(window[_0x954931([0x4d,0x61,0x74,0x68])][_0x954931([0x63,0x65,0x69,0x6c])](_0x1272c2/_0x5808e7)));window[_0x954931([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x954931([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x523835,_0x19236a);}function _0x34c1f4(){const _0x541c1a=_0x954931([0x6c,0x6c,0x63,0x74,0x2d])+_0x2d1af6(_0x4c888a(_0x399ee7)),_0x59ba12=window[_0x954931([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x954931([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x541c1a);return _0x59ba12?window[_0x954931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x38d3ef(_0x59ba12),0x10)*_0x5808e7:null;}function _0x163535(_0x2eeea9){return new window[(_0x954931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5a40d7,_0x55bb95)=>{_0x2eeea9[_0x954931([0x74,0x68,0x65,0x6e])](_0x5a40d7,_0x55bb95),window[_0x954931([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x55bb95,0x47a351c6^_0x198e49);});}}_0xbf8fc7[_0x954931([0x6f,0x6e])](_0x954931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x1e6c70,_0x4ebc91)=>{if(_0x4ebc91[0x0]!=_0x399ee7)return _0x2c0d7b(_0x954931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ebc91[0x1]={..._0x4ebc91[0x1],[_0x954931([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x40d5dd};},{[_0x954931([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x954931([0x68,0x69,0x67,0x68])}),_0xbf8fc7[_0x954931([0x6f,0x6e])](_0x954931([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x25a3e0=>{_0x564fbd(_0x25a3e0[_0x954931([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x37413d=!0x0,_0x4dc751(_0x25a3e0[_0x954931([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x954931([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x954931([0x6c,0x6f,0x77])}),_0x47e7db[_0x954931([0x74,0x68,0x65,0x6e])](()=>{_0x37413d||_0x2c0d7b(_0x954931([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x400ef5(){return _0xbf8fc7[_0x954931([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x954931([0x76,0x69,0x65,0x77])][_0x954931([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x954931([0x61,0x75,0x74,0x6f]);}function _0x41618b(){_0xbf8fc7[_0x954931([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x954931([0x76,0x69,0x65,0x77])][_0x954931([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x954931([0x61,0x75,0x74,0x6f]);}}function _0x559f3a(_0x3e3d02){const _0x52ebd9=[new window[(_0x954931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x290654=>setTimeout(_0x290654,0x47abbbca^_0x198e49)),_0x47e7db[_0x954931([0x74,0x68,0x65,0x6e])](()=>new window[(_0x954931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5045c9=>{let _0x507307=0x0;_0xbf8fc7[_0x954931([0x6d,0x6f,0x64,0x65,0x6c])][_0x954931([0x6f,0x6e])](_0x954931([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x30e81d,_0x3c0c9e)=>{_0x3c0c9e[0x0][_0x954931([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x507307++,_0x507307==(0x47a280ee^_0x198e49)&&(_0x5045c9(),_0x30e81d[_0x954931([0x6f,0x66,0x66])]());});}))];return window[_0x954931([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x954931([0x72,0x61,0x63,0x65])](_0x52ebd9)[_0x954931([0x74,0x68,0x65,0x6e])](()=>_0x3e3d02);}async function _0xb132c(){await _0x47e7db,_0xbf8fc7[_0x954931([0x6d,0x6f,0x64,0x65,0x6c])][_0x954931([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2be7d0,_0xbf8fc7[_0x954931([0x6d,0x6f,0x64,0x65,0x6c])][_0x954931([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2be7d0,_0xbf8fc7[_0x954931([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x954931([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x35e1b5(_0x1bf87c){const _0x57fad7=_0xc994aa();_0xbf8fc7[_0x57fad7]=_0x954931([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1bf87c,_0x1bf87c!=_0x954931([0x56,0x61,0x6c,0x69,0x64])&&_0xb132c();}function _0xc994aa(){const _0x53f7df=window[_0x954931([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x954931([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x954931([0x6e,0x6f,0x77])]())[_0x954931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x954931([0x2e]),'');let _0x5b2202=_0x954931([0x75]);for(let _0x1838db=0x0;_0x1838db<_0x53f7df[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1838db+=0x2){let _0xb64f87=window[_0x954931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53f7df[_0x954931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1838db,_0x1838db+0x2));_0xb64f87>=_0x15f068[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xb64f87-=_0x15f068[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5b2202+=_0x15f068[_0xb64f87];}return _0x5b2202;}function _0x500779(){const _0x2766c2=_0x35753b[_0x954931([0x73,0x70,0x6c,0x69,0x74])](_0x954931([0x2e]));if(0x3!=_0x2766c2[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x281ead(_0x2766c2[0x1]);function _0x281ead(_0x38776a){const _0x41c6f3=_0x4b661c(_0x38776a);return _0x41c6f3&&_0x3b27b3()?_0x41c6f3:null;function _0x3b27b3(){const _0x3001f0=_0x41c6f3[_0x954931([0x6a,0x74,0x69])],_0xd9c4a7=window[_0x954931([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3001f0[_0x954931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3001f0[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x53bc28={..._0x41c6f3,[_0x954931([0x6a,0x74,0x69])]:_0x3001f0[_0x954931([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3001f0[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x53bc28[_0x954931([0x76,0x63])],_0x4c888a(_0x53bc28)==_0xd9c4a7;}}}async function _0xe64974(){let _0x45236a=!0x0;try{const _0x5e130b=_0x35753b[_0x954931([0x73,0x70,0x6c,0x69,0x74])](_0x954931([0x2e])),[_0x13b071,_0x475bb4,_0x1158fd]=_0x5e130b;return _0x9cc366(_0x13b071),await _0x5c2a94(_0x13b071,_0x475bb4,_0x1158fd),_0x45236a;}catch{return!0x1;}function _0x9cc366(_0x104ce4){const _0x2737de=_0x4b661c(_0x104ce4);_0x2737de&&_0x2737de[_0x954931([0x61,0x6c,0x67])]==_0x954931([0x45,0x53,0x32,0x35,0x36])||(_0x45236a=!0x1);}async function _0x5c2a94(_0x187de1,_0x464e1f,_0x57df7c){const _0x22830e=window[_0x954931([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x954931([0x66,0x72,0x6f,0x6d])](_0x2e29ff(_0x57df7c),_0x556ac9=>_0x556ac9[_0x954931([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1637e8=new window[(_0x954931([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x954931([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x187de1+_0x954931([0x2e])+_0x464e1f),_0x37c62a=window[_0x954931([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x954931([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x37c62a)return;const _0x49512d=await _0x37c62a[_0x954931([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x954931([0x6a,0x77,0x6b]),_0xd95cf7,{[_0x954931([0x6e,0x61,0x6d,0x65])]:_0x954931([0x45,0x43,0x44,0x53,0x41]),[_0x954931([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x954931([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x954931([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x37c62a[_0x954931([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x954931([0x6e,0x61,0x6d,0x65])]:_0x954931([0x45,0x43,0x44,0x53,0x41]),[_0x954931([0x68,0x61,0x73,0x68])]:{[_0x954931([0x6e,0x61,0x6d,0x65])]:_0x954931([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x49512d,_0x22830e,_0x1637e8)||(_0x45236a=!0x1);}}function _0x4b661c(_0x25fca3){return _0x25fca3[_0x954931([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x954931([0x65,0x79]))?JSON[_0x954931([0x70,0x61,0x72,0x73,0x65])](_0x2e29ff(_0x25fca3)):null;}function _0x2e29ff(_0x25f584){return window[_0x954931([0x61,0x74,0x6f,0x62])](_0x25f584[_0x954931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x954931([0x2b]))[_0x954931([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x954931([0x2f])));}function _0x4c888a(_0x17b6f){let _0x44adf9=0x1505;function _0x2ef1b8(_0x2fd69f){for(let _0x397e8c=0x0;_0x397e8c<_0x2fd69f[_0x954931([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x397e8c++){const _0x2db069=_0x2fd69f[_0x954931([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x397e8c);_0x44adf9=(_0x44adf9<<0x5)+_0x44adf9+_0x2db069,_0x44adf9&=_0x44adf9;}}function _0xbb2f87(_0x1ba240){Array[_0x954931([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1ba240)?_0x1ba240[_0x954931([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xbb2f87):_0x1ba240&&typeof _0x1ba240==_0x954931([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x954931([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1ba240)[_0x954931([0x73,0x6f,0x72,0x74])]()[_0x954931([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a84ac,_0x28f71d])=>{_0x2ef1b8(_0x4a84ac),_0xbb2f87(_0x28f71d);}):_0x2ef1b8(window[_0x954931([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1ba240));}return _0xbb2f87(_0x17b6f),_0x44adf9>>>0x0;}function _0x2d1af6(_0x1ccc42){return _0x1ccc42[_0x954931([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x954931([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x954931([0x30]));}function _0x38d3ef(_0x484017){return _0x484017[_0x954931([0x73,0x70,0x6c,0x69,0x74])]('')[_0x954931([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x954931([0x6a,0x6f,0x69,0x6e])]('');}function _0x2be7d0(){}function _0x954931(_0x32661b){return _0x32661b['map'](_0x258e41=>String['fromCharCode'](_0x258e41))['join']('');}_0x35e1b5(await _0x201c6b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x17f916){const {plugins:_0x402b78,editing:_0x2541be,model:_0x8a0686}=this['editor'],_0x1be62a=_0x402b78['get'](_0xb3c977)['getFootnote'](_0x17f916);return!!_0x1be62a&&(_0x8a0686['change'](_0x30c51d=>{_0x30c51d['setSelection'](_0x30c51d['createPositionAt'](_0x1be62a['definition'],'end'));}),_0x2541be['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x2b3495){const {plugins:_0x448b21,editing:_0x1e49dc,model:_0x20667d}=this['editor'],_0x201ad=_0x448b21['get'](_0xb3c977)['getFootnote'](_0x2b3495);return!!_0x201ad&&(_0x20667d['change'](_0x6aecd1=>{_0x6aecd1['setSelection'](_0x201ad['reference'],'on');}),_0x1e49dc['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x487a89}=this['editor']['model'],_0x3208ec=this['editor']['config']['get']('footnotes.multiBlock');_0x487a89['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x487a89['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x487a89['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3208ec?_0x487a89['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x487a89['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x487a89['addChildCheck'](_0x56927f=>{for(const _0x454225 of _0x56927f)if('footnoteDefinition'===_0x454225['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x42f171}=this,{conversion:_0x1ad81e,editing:_0x40bd60}=_0x42f171,{t:t}=_0x42f171['locale'];_0x1ad81e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x34453b,{writer:_0x31c3bd,consumable:_0x210e34})=>{const _0x63a7d=_0x34453b['getChild'](0x0);if(!_0x63a7d||!_0x63a7d['is']('element','a'))return null;const _0x5e087f=_0x63a7d['getAttribute']('href')||'';if(!_0x5e087f['startsWith']('#'))return null;const _0x406e54=_0x5e087f['replace'](/^#/,'');if(!_0x406e54)return null;_0x210e34['consume'](_0x63a7d,{'name':!0x0,'attributes':['href']});for(const {item:_0x33bad4}of _0x40bd60['view']['createRangeIn'](_0x63a7d))_0x33bad4['is']('$textProxy')?_0x210e34['consume'](_0x33bad4['textNode'],{'name':!0x0}):_0x33bad4['is']('element')&&_0x210e34['consume'](_0x33bad4,{'name':!0x0});return _0x31c3bd['createElement']('footnoteRef',{'footnoteId':_0x406e54});}}),_0x1ad81e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x241346,{writer:_0x58ebbe})=>b(_0x241346,_0x58ebbe)}),_0x1ad81e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x76ddf2,{writer:_0x5478ae})=>{const _0x1fceb7=_0x76ddf2['getAttribute']('footnoteCounter');return _0x287332(b(_0x76ddf2,_0x5478ae),_0x5478ae,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1fceb7)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5c1457}=this,{t:t}=_0x5c1457['locale'],{conversion:_0x4fe17f}=_0x5c1457;_0x4fe17f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4fe17f['for']('upcast')['add'](_0x930a12=>{_0x930a12['on']('element:ol',(_0x15d4c8,_0x35ade0,_0x182351)=>{const _0x254b1f=_0x35ade0['viewItem'];if(!_0x254b1f['hasClass']('footnotes-list')||!_0x35ade0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x182351['consumable']['consume'](_0x254b1f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4e259a,modelCursor:_0x3cdd74}=_0x182351['convertChildren'](_0x35ade0['viewItem'],_0x35ade0['modelCursor']);_0x35ade0['modelRange']=_0x4e259a,_0x35ade0['modelCursor']=_0x3cdd74;}),_0x930a12['on']('element:hr',(_0x1fecd4,_0x2bf16f,_0xbf7be0)=>{const _0x521afb=_0x2bf16f['viewItem'];_0x521afb['hasClass']('footnotes-divider')&&_0x2bf16f['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xbf7be0['consumable']['consume'](_0x521afb,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4fe17f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4eee86,{writer:_0x3d4cb6})=>D(_0x3d4cb6)}),_0x4fe17f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x594ac0,{writer:_0x186808})=>{const _0x3d83ce=D(_0x186808,{'data-footnotes-list-label':t('Footnotes')}),_0x6c513=_0x287332(_0x3d83ce,_0x186808,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x186808['setCustomProperty']('footnotesDefinitions',!0x0,_0x6c513),_0x6c513;}});}['_defineDefinitionConverters'](){const {editor:_0x7b3208}=this,{conversion:_0xd0dd6c,locale:_0x270214}=_0x7b3208,_0x44cc37=_0x7b3208['config']['get']('footnotes.multiBlock');_0xd0dd6c['for']('upcast')['add'](_0x5c2200=>{_0x5c2200['on']('element:li',(_0x3257fd,_0x2780eb,_0x46ab3e)=>{const _0x45fc37=_0x2780eb['viewItem'];if(!_0x45fc37['hasClass']('footnote-definition')||!_0x45fc37['getAttribute']('id'))return;const _0x5496cb=_0x45fc37['parent'];if(!_0x5496cb['is']('element','ol')||!_0x5496cb['hasClass']('footnotes-list'))return;if(!_0x46ab3e['consumable']['test'](_0x45fc37,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x47301d=_0x46ab3e['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x45fc37['getAttribute']('id')});if(!_0x46ab3e['safeInsert'](_0x47301d,_0x2780eb['modelCursor']))return;_0x46ab3e['consumable']['consume'](_0x45fc37,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2a72cd=Array['from'](_0x45fc37['getChildren']())['find'](_0x3ce60e=>_0x3ce60e['is']('element')&&_0x3ce60e['hasClass']('footnote-content'));for(const _0x966d69 of _0x45fc37['getChildren']())_0x966d69['is']('element')&&(_0x46ab3e['consumable']['consume'](_0x966d69,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x46ab3e['consumable']['consume'](_0x966d69,{'name':!0x0,'classes':'footnote-content'}));if(_0x2a72cd){if(_0x44cc37)_0x46ab3e['convertChildren'](_0x2a72cd,_0x47301d);else{const _0x327160=_0x46ab3e['writer']['createElement']('footnoteInlineContent');_0x46ab3e['writer']['insert'](_0x327160,_0x47301d),_0x46ab3e['convertChildren'](_0x2a72cd,_0x327160);}}_0x46ab3e['updateConversionResult'](_0x47301d,_0x2780eb);});}),_0xd0dd6c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3542f8,{writer:_0x3e02fc})=>y(_0x3542f8,_0x3e02fc,_0x270214,{'dataPipeline':!0x0})}),_0xd0dd6c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x8e1906,{writer:_0x25b2c5})=>y(_0x8e1906,_0x25b2c5,_0x270214)});}['_defineBogusParagraphConverters'](){const {editor:_0x48286c}=this,{conversion:_0x46e95a}=_0x48286c;_0x48286c['config']['get']('footnotes.multiBlock')?(_0x46e95a['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x46e95a['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x48286c['model']['document'],'change:data',()=>{!function(_0x20b616,_0x11db1b){const _0x1ed723=_0x20b616['document']['differ'],_0x476440=new Set();for(const _0x51ada2 of _0x1ed723['getChanges']()){const _0x174910='attribute'==_0x51ada2['type']?_0x51ada2['range']['start']['parent']:_0x51ada2['position']['parent'];_0x174910['is']('element','footnoteDefinition')&&_0x476440['add'](_0x174910);}for(const _0x3f5403 of _0x476440['values']()){const _0x4b0ded=Array['from'](_0x3f5403['getChildren']())['filter'](_0xa64ce3=>v(_0xa64ce3,_0x11db1b['mapper']));for(const _0x56f511 of _0x4b0ded)_0x11db1b['reconvertItem'](_0x56f511);}}(_0x48286c['model'],_0x48286c['editing']);})):(_0x46e95a['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x46e95a['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x254619,{writer:_0x2451dc})=>{const _0x50c093=_0x2451dc['createContainerElement']('span');return _0x2451dc['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x50c093),_0x50c093;}}));}['_defineKeyboardHandlers'](){const {editor:_0x24d14f}=this,{editing:_0x3d62d5,t:t}=_0x24d14f,_0x2d0360=_0x24d14f['model']['document']['selection'];_0x24d14f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x24d14f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3d62d5['view']['document'],'enter',(_0x588baa,_0x144638)=>{const _0x498887=function(_0x2bd55d){const _0x3b7024=_0x2bd55d['getSelectedElement']();if(_0x3b7024?.['is']('element','footnoteRef'))return _0x3b7024;return null;}(_0x2d0360);if(_0x498887){const _0x3600af=_0x498887['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x3600af),_0x144638['preventDefault'](),_0x588baa['stop']();}},{'context':_0x5af9b0});}['_defineClickHandlers'](){const {editor:_0x17da83}=this,{editing:_0x159643}=_0x17da83;_0x17da83['editing']['view']['addObserver'](_0x55eab6),_0x17da83['editing']['view']['addObserver'](_0x5581ee);let _0x1bd9e1=!0x1;this['listenTo'](_0x159643['view']['document'],'pointerdown',(_0x40d512,_0x58ac5c)=>{const {target:_0x3ccd7f}=_0x58ac5c,_0x91428c=_0x159643['view']['document']['selection'];_0x1bd9e1=!!(_0x3ccd7f?.['is']('element','a')&&_0x3ccd7f['parent']?.['is']('element','sup')&&_0x3ccd7f['parent']['hasClass']('footnote'))&&_0x91428c['getSelectedElement']()===_0x3ccd7f['parent'];},{'priority':'high'}),this['listenTo'](_0x159643['view']['document'],'click',(_0x3de4c5,_0x31a23d)=>{const {target:_0x1bf4c4}=_0x31a23d;if(!_0x1bf4c4?.['is']('element','a'))return;if(_0x1bf4c4['parent']?.['is']('element','sup')&&_0x1bf4c4['parent']['hasClass']('footnote')&&!_0x1bd9e1)return void _0x31a23d['preventDefault']();let _0x453625=_0x1bf4c4['getAttribute']('href');if(!_0x453625?.['startsWith']('#'))return;_0x453625=_0x453625['slice'](0x1);let _0x350059=!0x1;(_0x453625['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x453625['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x453625))&&(_0x350059=!0x0),_0x350059&&(_0x31a23d['preventDefault'](),_0x3de4c5['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x3fc880}={}){return(_0x2b352b,{writer:_0x8ca183})=>{if(!g(_0x2b352b))return null;if(!_0x3fc880)return _0x8ca183['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x11f8e2=_0x8ca183['createContainerElement']('p');return _0x8ca183['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x11f8e2),_0x11f8e2;};}function g(_0x391777){const {parent:_0xaba718}=_0x391777;if(!_0xaba718?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0xaba718['childCount'])return!0x1;for(const _0x29d993 of _0x391777['getAttributeKeys']())if(!_0x29d993['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x29d993)return!0x1;return!0x0;}function v(_0x20ab13,_0x26bd3b){if(!_0x20ab13['is']('element','paragraph'))return!0x1;const _0x40c0a6=_0x26bd3b['toViewElement'](_0x20ab13);return!!_0x40c0a6&&g(_0x20ab13)!==_0x40c0a6['is']('element','span');}export function isFootnotesDefinitionsWidget(_0xe1fdd7){return _0x5af9b0(_0xe1fdd7)&&_0xe1fdd7['is']('containerElement')&&!!_0xe1fdd7['getCustomProperty']('footnotesDefinitions');}function D(_0x56a95f,_0x56e54b={}){const _0x2c6a9f=_0x56a95f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x504185=_0x56a95f['createContainerElement']('ol',{'class':'footnotes-list'},_0x56a95f['createSlot']());return _0x56a95f['createContainerElement']('div',{'class':'footnotes',..._0x56e54b},[_0x2c6a9f,_0x504185]);}function b(_0x343e22,_0x37f24d){const _0x3e6dd9=_0x343e22['getAttribute']('footnoteId'),_0xd891f8=_0x343e22['getAttribute']('footnoteCounter'),_0x2b9fdf=_0x37f24d['createUIElement']('a',{'href':'#'+_0x3e6dd9},function(_0x456d7a){const _0x432221=this['toDomElement'](_0x456d7a);return _0x432221['textContent']=_0xd891f8,_0x432221;}),_0x3bb994=_0x37f24d['createContainerElement']('sup',{'id':'ref-'+_0x3e6dd9,'class':'footnote'},[_0x2b9fdf]);return _0x3bb994['getFillerOffset']=()=>null,_0x3bb994;}function y(_0x125640,_0x4b51ca,_0x5d0e33,{dataPipeline:_0x769c8e}={}){const {t:t}=_0x5d0e33,_0x19e40b=_0x125640['getAttribute']('footnoteId'),_0x50b074=_0x4b51ca['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x19e40b},function(_0x35f02b){const _0x270b9b=this['toDomElement'](_0x35f02b);return _0x270b9b['innerText']='^',_0x270b9b;}),_0x2be4b1=_0x769c8e?_0x4b51ca['createContainerElement']('div',{'class':'footnote-content'}):_0x19936c(_0x4b51ca['createEditableElement']('div',{'class':'footnote-content'}),_0x4b51ca,{'label':t('Footnote\x20content.')});return _0x4b51ca['insert'](_0x4b51ca['createPositionAt'](_0x2be4b1,0x0),_0x4b51ca['createSlot']()),_0x4b51ca['createContainerElement']('li',{'class':'footnote-definition','id':_0x19e40b},[_0x50b074,_0x2be4b1]);}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x2946(_0x2bde06,_0x50bf57){const _0x189fff=_0x189f();return _0x2946=function(_0x29466e,_0x22b799){_0x29466e=_0x29466e-0xd6;let _0x5821fa=_0x189fff[_0x29466e];return _0x5821fa;},_0x2946(_0x2bde06,_0x50bf57);}const _0xf4cb2e=_0x2946;(function(_0x1d1907,_0x96462c){const _0x2cd330=_0x2946,_0x520d6a=_0x1d1907();while(!![]){try{const _0x1931c3=parseInt(_0x2cd330(0xe9))/0x1+parseInt(_0x2cd330(0xde))/0x2+parseInt(_0x2cd330(0xdf))/0x3*(-parseInt(_0x2cd330(0xe5))/0x4)+parseInt(_0x2cd330(0xdc))/0x5*(parseInt(_0x2cd330(0xd9))/0x6)+parseInt(_0x2cd330(0xea))/0x7+-parseInt(_0x2cd330(0xe3))/0x8+parseInt(_0x2cd330(0xe8))/0x9;if(_0x1931c3===_0x96462c)break;else _0x520d6a['push'](_0x520d6a['shift']());}catch(_0x3c3c85){_0x520d6a['push'](_0x520d6a['shift']());}}}(_0x189f,0xc0228));function _0x189f(){const _0x2bebe4=['footnotesListStart','value','isEnabled','6267928HFnFzo','refresh','5836xwqZdd','getFootnotesDefinitionsObjectElement','execute','2152314LxhUKb','363596bmSfJf','1887802ErXbat','plugins','setAttribute','_updateFootnotesCounters','model','getAttribute','198BqkMof','isInteger','change','186085tuLbXe','get','518410RSgTaX','1623pkJYth'];_0x189f=function(){return _0x2bebe4;};return _0x189f();}import{Command as _0x88e2cd}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x357857}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x88e2cd{[_0xf4cb2e(0xe4)](){const _0xf0bb05=_0xf4cb2e,{editor:_0x5072c4}=this,_0x3a88dc=_0x5072c4[_0xf0bb05(0xeb)][_0xf0bb05(0xdd)](_0x357857)[_0xf0bb05(0xe6)]();this[_0xf0bb05(0xe2)]=!!_0x3a88dc,this[_0xf0bb05(0xe1)]=_0x3a88dc?.[_0xf0bb05(0xd8)](_0xf0bb05(0xe0))??null;}[_0xf4cb2e(0xe7)]({value:_0x472657}){const _0x4baaae=_0xf4cb2e,{editor:_0x218a57}=this,_0xacc0ee=_0x218a57[_0x4baaae(0xeb)][_0x4baaae(0xdd)](_0x357857),_0x5902ff=_0xacc0ee[_0x4baaae(0xe6)]();_0x5902ff&&Number[_0x4baaae(0xda)](_0x472657)&&_0x218a57[_0x4baaae(0xd7)][_0x4baaae(0xdb)](_0x5a10ed=>{const _0x42412b=_0x4baaae;_0x5a10ed[_0x42412b(0xec)](_0x42412b(0xe0),_0x472657,_0x5902ff),_0xacc0ee[_0x42412b(0xd6)](_0x5a10ed);});}}
23
+ const _0x1750c5=_0x5c4c;function _0x5c4c(_0x329295,_0x19a9c4){const _0x6d4741=_0x6d47();return _0x5c4c=function(_0x5c4c0a,_0x4a53dd){_0x5c4c0a=_0x5c4c0a-0x14e;let _0x22a849=_0x6d4741[_0x5c4c0a];return _0x22a849;},_0x5c4c(_0x329295,_0x19a9c4);}(function(_0x4d786a,_0x247549){const _0x4d198e=_0x5c4c,_0x14fa94=_0x4d786a();while(!![]){try{const _0x51c5be=parseInt(_0x4d198e(0x156))/0x1*(-parseInt(_0x4d198e(0x153))/0x2)+-parseInt(_0x4d198e(0x15f))/0x3*(-parseInt(_0x4d198e(0x161))/0x4)+parseInt(_0x4d198e(0x14e))/0x5+-parseInt(_0x4d198e(0x164))/0x6+-parseInt(_0x4d198e(0x14f))/0x7*(parseInt(_0x4d198e(0x151))/0x8)+-parseInt(_0x4d198e(0x163))/0x9+parseInt(_0x4d198e(0x159))/0xa;if(_0x51c5be===_0x247549)break;else _0x14fa94['push'](_0x14fa94['shift']());}catch(_0x1f592b){_0x14fa94['push'](_0x14fa94['shift']());}}}(_0x6d47,0x4c26b));import{Command as _0x404de3}from'ckeditor5/src/core.js';function _0x6d47(){const _0x2208b5=['40092YULwqf','execute','44JFFwVS','setAttribute','2094633uiBiNI','1093548ymdMql','_updateFootnotesCounters','1136710cqCJjZ','15512VTQZdx','getFootnotesDefinitionsObjectElement','1488DTUVTy','footnotesListStart','6lRUcxS','model','isInteger','89919XHiEjK','getAttribute','value','10344970LhMofx','change','get','isEnabled','plugins','refresh'];_0x6d47=function(){return _0x2208b5;};return _0x6d47();}import{FootnotesTracker as _0x6246bf}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x404de3{[_0x1750c5(0x15e)](){const _0x40f583=_0x1750c5,{editor:_0x1f8a32}=this,_0x3713e6=_0x1f8a32[_0x40f583(0x15d)][_0x40f583(0x15b)](_0x6246bf)[_0x40f583(0x150)]();this[_0x40f583(0x15c)]=!!_0x3713e6,this[_0x40f583(0x158)]=_0x3713e6?.[_0x40f583(0x157)](_0x40f583(0x152))??null;}[_0x1750c5(0x160)]({value:_0x366342}){const _0x2bc022=_0x1750c5,{editor:_0x2cd061}=this,_0x1d3c62=_0x2cd061[_0x2bc022(0x15d)][_0x2bc022(0x15b)](_0x6246bf),_0x50ee20=_0x1d3c62[_0x2bc022(0x150)]();_0x50ee20&&Number[_0x2bc022(0x155)](_0x366342)&&_0x2cd061[_0x2bc022(0x154)][_0x2bc022(0x15a)](_0x499b66=>{const _0x46b74c=_0x2bc022;_0x499b66[_0x46b74c(0x162)](_0x46b74c(0x152),_0x366342,_0x50ee20),_0x1d3c62[_0x46b74c(0x165)](_0x499b66);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- function _0x5f0b(_0x523cc3,_0x43afdc){const _0x496c3e=_0x496c();return _0x5f0b=function(_0x5f0b58,_0x4a1921){_0x5f0b58=_0x5f0b58-0x1f2;let _0x2a8fdb=_0x496c3e[_0x5f0b58];return _0x2a8fdb;},_0x5f0b(_0x523cc3,_0x43afdc);}function _0x496c(){const _0x19388e=['7585008YvWMlS','footnotesListStyle','model','includes','49DTPZsQ','getFootnotesDefinitionsObjectElement','change','172889NsSuff','428MfCREC','6256170aaHohR','refresh','1367062jYUVdO','14634rpqKOs','24375123OibkuN','getAttribute','execute','get','value','964164wWuvwA','plugins','_updateFootnotesCounters','setAttribute','isEnabled'];_0x496c=function(){return _0x19388e;};return _0x496c();}const _0x230d9c=_0x5f0b;(function(_0x2d4072,_0x474349){const _0x3bbc42=_0x5f0b,_0x51fcfa=_0x2d4072();while(!![]){try{const _0x172f84=parseInt(_0x3bbc42(0x207))/0x1+parseInt(_0x3bbc42(0x1f4))/0x2+parseInt(_0x3bbc42(0x1f5))/0x3*(parseInt(_0x3bbc42(0x208))/0x4)+-parseInt(_0x3bbc42(0x1f2))/0x5+-parseInt(_0x3bbc42(0x1fb))/0x6*(parseInt(_0x3bbc42(0x204))/0x7)+-parseInt(_0x3bbc42(0x200))/0x8+parseInt(_0x3bbc42(0x1f6))/0x9;if(_0x172f84===_0x474349)break;else _0x51fcfa['push'](_0x51fcfa['shift']());}catch(_0x23d8d5){_0x51fcfa['push'](_0x51fcfa['shift']());}}}(_0x496c,0xba27f));import{Command as _0x3c2e31}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x59db84}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x20862e}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x3c2e31{[_0x230d9c(0x1f3)](){const _0x43fe6d=_0x230d9c,{editor:_0x1e0dba}=this,_0x4c51db=_0x1e0dba[_0x43fe6d(0x1fc)][_0x43fe6d(0x1f9)](_0x20862e)[_0x43fe6d(0x205)]();this[_0x43fe6d(0x1ff)]=!!_0x4c51db,this[_0x43fe6d(0x1fa)]=_0x4c51db?.[_0x43fe6d(0x1f7)](_0x43fe6d(0x201))??null;}[_0x230d9c(0x1f8)]({value:_0x1a277a}){const _0x47e779=_0x230d9c,{editor:_0xfa6516}=this,_0x4d3182=_0xfa6516[_0x47e779(0x1fc)][_0x47e779(0x1f9)](_0x20862e),_0x9e9ed=_0x4d3182[_0x47e779(0x205)]();_0x9e9ed&&_0x59db84[_0x47e779(0x203)](_0x1a277a)&&_0xfa6516[_0x47e779(0x202)][_0x47e779(0x206)](_0x3e0da1=>{const _0x32e167=_0x47e779;_0x3e0da1[_0x32e167(0x1fe)](_0x32e167(0x201),_0x1a277a,_0x9e9ed),_0x4d3182[_0x32e167(0x1fd)](_0x3e0da1);});}}
23
+ const _0x46eebd=_0x1f6d;(function(_0x2ccc57,_0x4eeceb){const _0x481621=_0x1f6d,_0x16667c=_0x2ccc57();while(!![]){try{const _0xa60cdc=parseInt(_0x481621(0x181))/0x1+-parseInt(_0x481621(0x17d))/0x2+-parseInt(_0x481621(0x188))/0x3*(parseInt(_0x481621(0x17e))/0x4)+-parseInt(_0x481621(0x17f))/0x5*(-parseInt(_0x481621(0x17c))/0x6)+parseInt(_0x481621(0x18d))/0x7+-parseInt(_0x481621(0x189))/0x8*(parseInt(_0x481621(0x193))/0x9)+-parseInt(_0x481621(0x18f))/0xa*(-parseInt(_0x481621(0x184))/0xb);if(_0xa60cdc===_0x4eeceb)break;else _0x16667c['push'](_0x16667c['shift']());}catch(_0x19f540){_0x16667c['push'](_0x16667c['shift']());}}}(_0x49a6,0xe5006));import{Command as _0x239a16}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x3b942e}from'../footnotespropertiesconfig.js';import{FootnotesTracker as _0x319ea5}from'../../footnotestracker.js';function _0x1f6d(_0x4e7d7d,_0x399a25){const _0x49a62c=_0x49a6();return _0x1f6d=function(_0x1f6d39,_0x159b42){_0x1f6d39=_0x1f6d39-0x17c;let _0x443b65=_0x49a62c[_0x1f6d39];return _0x443b65;},_0x1f6d(_0x4e7d7d,_0x399a25);}function _0x49a6(){const _0x2088d5=['23178903NGBVmi','isEnabled','value','refresh','2169870KqavAI','11440264YFKjgZ','change','includes','setAttribute','2963968ROGVGW','plugins','10yKBazV','model','getFootnotesDefinitionsObjectElement','execute','9SqAhQy','_updateFootnotesCounters','9012858hUQlLS','490290YZQKIW','8HxBxZK','5BIwNaI','getAttribute','27008BwRARb','get','footnotesListStyle'];_0x49a6=function(){return _0x2088d5;};return _0x49a6();}export class FootnotesStyleCommand extends _0x239a16{[_0x46eebd(0x187)](){const _0x4f69d6=_0x46eebd,{editor:_0xa3345b}=this,_0x17cdee=_0xa3345b[_0x4f69d6(0x18e)][_0x4f69d6(0x182)](_0x319ea5)[_0x4f69d6(0x191)]();this[_0x4f69d6(0x185)]=!!_0x17cdee,this[_0x4f69d6(0x186)]=_0x17cdee?.[_0x4f69d6(0x180)](_0x4f69d6(0x183))??null;}[_0x46eebd(0x192)]({value:_0x58164c}){const _0x323aaa=_0x46eebd,{editor:_0xddd282}=this,_0x4532ee=_0xddd282[_0x323aaa(0x18e)][_0x323aaa(0x182)](_0x319ea5),_0x1066da=_0x4532ee[_0x323aaa(0x191)]();_0x1066da&&_0x3b942e[_0x323aaa(0x18b)](_0x58164c)&&_0xddd282[_0x323aaa(0x190)][_0x323aaa(0x18a)](_0x1e6927=>{const _0x2b570f=_0x323aaa;_0x1e6927[_0x2b570f(0x18c)](_0x2b570f(0x183),_0x58164c,_0x1066da),_0x4532ee[_0x2b570f(0x194)](_0x1e6927);});}}
@@ -20,4 +20,4 @@
20
20
  *
21
21
  *
22
22
  */
23
- import{BalloonPanelView as _0x30e785,ButtonView as _0x8826fe,ContextualBalloon as _0x3bf63b,createDropdown as _0x50830c}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x1a6ba8}from'ckeditor5/src/widget.js';import{Plugin as _0x3ef0b5}from'ckeditor5/src/core.js';import{IconFootnote as _0x34761a,IconListStyleDecimal as _0x366acb,IconListStyleDecimalLeadingZero as _0x48896f,IconListStyleLowerLatin as _0x58cee3,IconListStyleLowerRoman as _0x4a239e,IconListStyleUpperLatin as _0x3c03d3,IconListStyleUpperRoman as _0x44e579}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x395c9f}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x5b55d5}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x3ef0b5{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3bf63b,_0x1a6ba8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x267d8b}=this,{componentFactory:_0x2db69d}=_0x267d8b['ui'];_0x267d8b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2db69d['add']('footnotesStyle',function(_0x3ffb36){return _0x349654=>{const {t:t}=_0x349654,_0x629172=_0x3ffb36['commands']['get']('footnotesStyle'),_0x3240f1=_0x50830c(_0x349654),{buttonView:_0x78b6da}=_0x3240f1;return _0x3240f1['class']='ck-footnotes-styles-dropdown',_0x3240f1['bind']('isEnabled')['to'](_0x629172,'isEnabled'),_0x78b6da['set']({'label':t('Footnotes\x20style'),'icon':_0x34761a,'tooltip':!0x0}),_0x3240f1['once']('change:isOpen',()=>{const _0x58be18=function({editor:_0x3e0c67,dropdownView:_0x1a5343}){const {t:t}=_0x3e0c67['locale'],_0x2c1c30=t('Footnotes\x20definitions\x20styles'),_0x45c21f=function(_0x2422ec){const t=_0x2422ec['locale']['t'],_0x50d403=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x366acb},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x48896f},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4a239e},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x44e579},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x58cee3},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x3c03d3}];return _0x50d403['map'](function(_0x9d5ffa){const _0xe76eec=_0x9d5ffa['locale'];return({label:_0x50f11d,icon:_0x44faf4,tooltip:_0x3673e5,style:_0x3e5600})=>{const _0xaedd7f=_0x9d5ffa['commands']['get']('footnotesStyle'),_0x14f05a=new _0x8826fe(_0xe76eec);return _0x14f05a['set']({'label':_0x50f11d,'icon':_0x44faf4,'tooltip':_0x3673e5}),_0x14f05a['bind']('isOn')['to'](_0xaedd7f,'value',_0x44a62b=>_0x44a62b===_0x3e5600),_0x14f05a['bind']('isEnabled')['to'](_0xaedd7f,'isEnabled'),_0x14f05a['on']('execute',()=>{_0x9d5ffa['execute']('footnotesStyle',{'value':_0x3e5600}),_0x9d5ffa['editing']['view']['focus']();}),_0x14f05a;};}(_0x2422ec));}(_0x3e0c67),_0x2f350e=new _0x395c9f(_0x3e0c67['locale'],{'styleGridAriaLabel':_0x2c1c30,'styleButtonViews':_0x45c21f}),_0x2dd638=_0x3e0c67['commands']['get']('footnotesStart');return _0x2f350e['startIndexFieldView']['bind']('isEnabled')['to'](_0x2dd638),_0x2f350e['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2dd638),_0x2f350e['on']('footnotesListStart',(_0x57823f,_0x44c038)=>{_0x3e0c67['execute']('footnotesStart',{'value':_0x44c038['startIndex']});}),_0x2f350e['delegate']('execute')['to'](_0x1a5343),_0x2f350e;}({'editor':_0x3ffb36,'dropdownView':_0x3240f1});_0x3240f1['panelView']['children']['add'](_0x58be18);}),_0x3240f1;};}(_0x267d8b));}['afterInit'](){const {editor:_0x47cfe0}=this,{t:t}=_0x47cfe0['locale'],_0x13a0bc=_0x47cfe0['plugins']['get'](_0x1a6ba8),{defaultPositions:_0x10f570}=_0x30e785;_0x13a0bc['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x47cfe0['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x28b047=>{let _0x3ab580=_0x28b047['getFirstPosition']()?.['parent'];return _0x3ab580?.['is']('$text')&&(_0x3ab580=_0x3ab580['parent']),_0x3ab580?.['is']('element')?_0x3ab580['findAncestor'](_0x5b55d5):null;},'positions':[_0x10f570['southArrowNorth'],_0x10f570['southArrowNorthMiddleWest'],_0x10f570['southArrowNorthMiddleEast'],_0x10f570['southArrowNorthWest'],_0x10f570['southArrowNorthEast'],_0x10f570['northArrowSouth'],_0x10f570['northArrowSouthMiddleWest'],_0x10f570['northArrowSouthMiddleEast'],_0x10f570['northArrowSouthWest'],_0x10f570['northArrowSouthEast'],_0x10f570['viewportStickyNorth']]});}}
23
+ import{BalloonPanelView as _0x1e3df5,ButtonView as _0xc255e1,ContextualBalloon as _0x252a92,createDropdown as _0x17a557}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x3deeb9}from'ckeditor5/src/widget.js';import{Plugin as _0x2502c8}from'ckeditor5/src/core.js';import{IconFootnote as _0x5128c2,IconListStyleDecimal as _0x469f69,IconListStyleDecimalLeadingZero as _0x3c83f8,IconListStyleLowerLatin as _0x4ef402,IconListStyleLowerRoman as _0x1e6893,IconListStyleUpperLatin as _0x19789c,IconListStyleUpperRoman as _0x40cf9e}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4e5bdb}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x54d30b}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x2502c8{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x252a92,_0x3deeb9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2a13b8}=this,{componentFactory:_0x171e67}=_0x2a13b8['ui'];_0x2a13b8['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x171e67['add']('footnotesStyle',function(_0x1fa77e){return _0xa5a4ed=>{const {t:t}=_0xa5a4ed,_0x34184c=_0x1fa77e['commands']['get']('footnotesStyle'),_0x37affa=_0x17a557(_0xa5a4ed),{buttonView:_0x3400a3}=_0x37affa;return _0x37affa['class']='ck-footnotes-styles-dropdown',_0x37affa['bind']('isEnabled')['to'](_0x34184c,'isEnabled'),_0x3400a3['set']({'label':t('Footnotes\x20style'),'icon':_0x5128c2,'tooltip':!0x0}),_0x37affa['once']('change:isOpen',()=>{const _0x51edb1=function({editor:_0x311eb3,dropdownView:_0x486633}){const {t:t}=_0x311eb3['locale'],_0x356b89=t('Footnotes\x20definitions\x20styles'),_0x8b6af=function(_0x21108b){const t=_0x21108b['locale']['t'],_0x1997d6=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x469f69},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x3c83f8},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x1e6893},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x40cf9e},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4ef402},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x19789c}];return _0x1997d6['map'](function(_0x573963){const _0x337266=_0x573963['locale'];return({label:_0x381aad,icon:_0x312488,tooltip:_0x408f68,style:_0x31aa29})=>{const _0xc4e8ad=_0x573963['commands']['get']('footnotesStyle'),_0x4fa880=new _0xc255e1(_0x337266);return _0x4fa880['set']({'label':_0x381aad,'icon':_0x312488,'tooltip':_0x408f68}),_0x4fa880['bind']('isOn')['to'](_0xc4e8ad,'value',_0x4e8ad8=>_0x4e8ad8===_0x31aa29),_0x4fa880['bind']('isEnabled')['to'](_0xc4e8ad,'isEnabled'),_0x4fa880['on']('execute',()=>{_0x573963['execute']('footnotesStyle',{'value':_0x31aa29}),_0x573963['editing']['view']['focus']();}),_0x4fa880;};}(_0x21108b));}(_0x311eb3),_0x1b6ca0=new _0x4e5bdb(_0x311eb3['locale'],{'styleGridAriaLabel':_0x356b89,'styleButtonViews':_0x8b6af}),_0x442e44=_0x311eb3['commands']['get']('footnotesStart');return _0x1b6ca0['startIndexFieldView']['bind']('isEnabled')['to'](_0x442e44),_0x1b6ca0['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x442e44),_0x1b6ca0['on']('footnotesListStart',(_0x329ca2,_0x19416c)=>{_0x311eb3['execute']('footnotesStart',{'value':_0x19416c['startIndex']});}),_0x1b6ca0['delegate']('execute')['to'](_0x486633),_0x1b6ca0;}({'editor':_0x1fa77e,'dropdownView':_0x37affa});_0x37affa['panelView']['children']['add'](_0x51edb1);}),_0x37affa;};}(_0x2a13b8));}['afterInit'](){const {editor:_0x3cbebd}=this,{t:t}=_0x3cbebd['locale'],_0x30cb41=_0x3cbebd['plugins']['get'](_0x3deeb9),{defaultPositions:_0x37b3fc}=_0x1e3df5;_0x30cb41['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3cbebd['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x24fcb0=>{let _0x2d3f7f=_0x24fcb0['getFirstPosition']()?.['parent'];return _0x2d3f7f?.['is']('$text')&&(_0x2d3f7f=_0x2d3f7f['parent']),_0x2d3f7f?.['is']('element')?_0x2d3f7f['findAncestor'](_0x54d30b):null;},'positions':[_0x37b3fc['southArrowNorth'],_0x37b3fc['southArrowNorthMiddleWest'],_0x37b3fc['southArrowNorthMiddleEast'],_0x37b3fc['southArrowNorthWest'],_0x37b3fc['southArrowNorthEast'],_0x37b3fc['northArrowSouth'],_0x37b3fc['northArrowSouthMiddleWest'],_0x37b3fc['northArrowSouthMiddleEast'],_0x37b3fc['northArrowSouthWest'],_0x37b3fc['northArrowSouthEast'],_0x37b3fc['viewportStickyNorth']]});}}