@ckeditor/ckeditor5-footnotes 47.5.0-alpha.3 → 47.5.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},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:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["4vPaHqx","values","$graveyard","$text","push","createRangeOn","root","length","128177YjAxKI","flat","nodeAfter","add","rootName","_getElementKey","reset","18dTXtgz","delete","_elementName","get","from","getItems","insert","remove","_model","862023htXSMC","name","8xemtgq","7619967gxFZWg","6513130pOWlZH","_trackedElements","slice","getElementKey","has","element","getChanges","set","attributes","type","40444unQdIa","clear","elementName","7919160zxStvK","position","1896770GyRjqS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=327]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(677454===-parseInt(e(336))/1*(parseInt(e(330))/2)+parseInt(e(360))/3*(parseInt(e(362))/4)+-parseInt(e(335))/5+-parseInt(e(351))/6*(-parseInt(e(344))/7)+-parseInt(e(333))/8+parseInt(e(363))/9+parseInt(e(364))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(359)];[a(353)];[a(349)];[a(365)]=new Map;constructor(t,e){const o=a;this[o(359)]=t,this[o(353)]=e[o(332)],this[o(349)]=e[o(367)]}[a(350)](){const t=a;this[t(365)][t(331)]()}[a(370)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(357)===i[e(329)]&&e(339)!==i[e(361)]&&i[e(334)][e(346)]){const t=this[e(359)][e(341)](i[e(334)][e(346)]);for(const o of t[e(356)]()){if(!o.is(e(369),this[e(353)]))continue;const t=this[e(349)](o);n[e(368)](t)||n[e(327)](t,[]),n[e(354)](t)[e(340)](o)}}if(e(358)===i[e(329)]&&i[e(361)]===this[e(353)]){const t=this[e(349)]({getAttribute:t=>i[e(328)][e(354)](t)});o[e(347)](t)}}for(const[t,n]of this[e(365)])e(338)===n[e(342)][e(348)]&&o[e(347)](t);for(const t of o)this[e(365)][e(352)](t);for(const[t,o]of n)this[e(365)][e(327)](t,o[o[e(343)]-1]);const i=new Set;for(const[t,s]of n)o[e(368)](t)&&(i[e(347)](s[0]),s[e(343)]>1?n[e(327)](t,s[e(366)](1)):n[e(352)](t),o[e(352)](t));return{removed:Array[e(355)](o),inserted:Array[e(355)](n[e(337)]())[e(345)](),moved:Array[e(355)](i)}}}const f=u;function u(t,e){const o=h();return(u=function(t,e){return o[t-=266]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(938390===-parseInt(e(330))/1*(-parseInt(e(355))/2)+-parseInt(e(305))/3*(-parseInt(e(349))/4)+-parseInt(e(321))/5*(-parseInt(e(288))/6)+parseInt(e(314))/7*(-parseInt(e(273))/8)+-parseInt(e(310))/9+parseInt(e(275))/10+parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[f(346)]=[];[f(318)]=null;[f(301)]=null;[f(359)];[f(328)];[f(322)];static get[f(353)](){return f(274)}static get[f(327)](){return!0}static get[f(267)](){return!0}constructor(t){const e=f;super(t),this[e(359)]=new l(this[e(354)][e(287)],{elementName:e(339),getElementKey:()=>e(331)}),this[e(328)]=new l(this[e(354)][e(287)],{elementName:e(298),getElementKey:t=>t[e(292)](e(365))}),this[e(322)]=new l(this[e(354)][e(287)],{elementName:e(311),getElementKey:t=>t[e(292)](e(365))})}[f(340)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(323)][t(338)](e=>{const n=t,i=o[n(323)][n(308)][n(364)]();let s=!1;return this[n(334)](e,i)&&(s=!0),this[n(344)](e,i)&&(s=!0),this[n(294)](e,i)&&(s=!0),this[n(367)](e)&&(s=!0),this[n(313)](e)&&(s=!0),this[n(347)](e)&&(s=!0),s}),this[t(337)](o[t(323)],t(293),()=>{const e=t;o[e(362)]({isUndoable:!1},t=>{this[e(363)](t)})},{priority:t(317)}),this[t(337)](n,t(352),()=>{const e=t;this[e(346)]=[],this[e(359)][e(295)](),this[e(328)][e(295)](),this[e(322)][e(295)]()},{priority:t(285)})}[f(325)](){return this[f(318)]}[f(319)](t){const e=f;return this[e(346)][e(348)](e=>e.id===t)||null}[f(304)](){const t=f;return Array[t(300)](this[t(346)])}[f(283)](){return this[f(301)]}[f(315)](t){this[f(301)]=t}[f(279)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(346)][o(271)];i++)this[o(280)](t,i)&&(n=!0);return n}[f(366)](t,e){const o=f,n=t[o(345)](o(339),{});return t[o(361)](n,e),this[o(318)]=n,n}[f(363)](t){const e=f;if(!this[e(346)][e(271)]||this[e(318)])return;const o=this[e(346)][0][e(299)][e(357)],n=this[e(366)](t,o);for(const o of this[e(346)])o[e(316)][e(309)]||t[e(326)](o[e(316)],n,e(329));this[e(279)](t)}[f(334)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(359)][o(364)](e);if(r[o(271)]&&(this[o(318)]=r[0]),i[o(271)])if(i[o(271)]>1||this[o(318)]&&i[o(289)](t=>t!==this[o(318)])){const e=t[o(345)](o(339),{}),s=[];this[o(318)]&&s[o(343)](this[o(318)]),s[o(343)](...i),t[o(326)](e,s[0],o(336));for(const n of s)t[o(276)](t[o(333)](n),t[o(282)](e,o(329))),t[o(342)](n);this[o(318)]=e,this[o(279)](t),n=!0}else this[o(318)]=i[0];if(s[o(271)]&&o(320)===this[o(318)]?.[o(357)][o(269)]){for(const e of this[o(346)])t[o(342)](e[o(299)]),n=!0;this[o(346)]=[],this[o(318)]=null}return n}[f(344)](t,e){const o=f;let n=!1;const i=this[o(354)][o(350)][o(312)](o(358)),{inserted:s,moved:r}=this[o(322)][o(364)](e);for(const e of[...r,...s]){const s=e[o(292)](o(365)),r=this[o(319)](s);r&&(r[o(316)]=e),p(t,i,e)&&(n=!0)}return n}[f(294)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(328)][o(364)](e);for(const e of i)this[o(302)](t,e)&&(n=!0);for(const e of s)this[o(332)](t,e)&&(n=!0);for(const e of r)this[o(303)](t,e)&&(n=!0);return n}[f(313)](t){const e=f;if(!this[e(318)])return!1;let o=!1;if(this[e(318)][e(360)]!==this[e(346)][e(271)]){const n=[];for(const t of this[e(318)][e(341)]()){const i=t[e(292)](e(365));this[e(319)](i)||(n[e(286)](t),o=!0)}for(const o of n)t[e(342)](o)}const n=new Set,i=[];for(const t of this[e(318)][e(341)]()){const s=t[e(292)](e(365));n[e(270)](s)?(i[e(286)](t),o=!0):n[e(356)](s)}for(const o of i)t[e(342)](o);return this[e(318)][e(360)]||(t[e(342)](this[e(318)]),this[e(318)]=null,o=!0),o}[f(332)](t,e){const o=f;if(this[o(346)][o(348)](t=>t[o(299)]===e))return!1;let n=!1;const i=e[o(292)](o(365)),s=this[o(346)][o(272)](t=>t.id===i);-1!==s&&(t[o(342)](this[o(346)][s][o(299)]),this[o(346)][o(296)](s,1),n=!0);let r=this[o(318)]?function(t,e){const n=o;for(const o of t[n(341)]())if(o[n(292)](n(365))===e)return o;return null}(this[o(318)],i):null;r||(r=t[o(345)](o(311),{footnoteId:i}),this[o(318)]&&(t[o(326)](r,this[o(318)],o(329)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(354)][o(287)],this[o(346)],e);this[o(346)][o(296)](c,0,a);let l=c;return-1!==s&&(l=Math[o(351)](c,s)),this[o(279)](t,l)&&(n=!0),n}[f(302)](t,e){const o=f,n=this[o(346)][o(272)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(346)][n];return o(320)!==s[o(316)][o(357)][o(269)]&&(t[o(342)](s[o(316)]),i=!0),this[o(346)][o(296)](n,1),this[o(279)](t,n)&&(i=!0),i}[f(303)](t,e){const o=f,n=e[o(292)](o(365)),i=this[o(346)][o(272)](t=>t.id===n),s=this[o(346)][i];let r=!1;s[o(299)]=e,this[o(346)][o(296)](i,1);const a=m(this[o(354)][o(287)],this[o(346)],e);return this[o(346)][o(296)](a,0,s),this[o(279)](t,Math[o(351)](i,a))&&(r=!0),r}[f(280)](t,e){const o=f;if(!this[o(318)])return!1;const n=this[o(346)][e];let i;return i=this[o(301)]?this[o(301)]({footnote:n,container:this[o(318)],digits:String(this[o(346)][o(271)])[o(271)],value:e+1}):String(e+1),n[o(299)][o(292)](o(297))!=i&&(t[o(306)](o(297),i,n[o(299)]),!0)}[f(347)](t){const e=f;if(!this[e(318)]||this[e(346)][e(271)]<2)return!1;if(function(t,o){const n=e;if(t[n(271)]!==o[n(271)])return!1;for(let e=0;e<t[n(271)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(346)][e(335)](t=>t.id),Array[e(300)](this[e(318)][e(341)]())[e(335)](t=>t[e(292)](e(365)))))return!1;let o=!1;for(let n=0;n<this[e(346)][e(271)];n++){const i=this[e(346)][n],s=t[e(324)](i[e(316)]),r=t[e(282)](this[e(318)],n);s[e(290)](r)||(t[e(276)](t[e(291)](i[e(316)]),r),o=!0)}return o}[f(367)](t){const e=f;if(!this[e(346)][e(271)])return!1;const{model:o}=this[e(354)];let n=!1;for(let i=0;i<this[e(346)][e(271)]-1;i++){const s=this[e(346)][i],r=this[e(346)][i+1],a=o[e(324)](s[e(299)]),c=o[e(324)](r[e(299)]);e(284)===a[e(268)](c)&&(this[e(303)](t,s[e(299)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(360)])return!1;const i=n(e?281:307);return t[n(326)](t[n(345)](i),o),!0}function h(){const t=["footnotes.multiBlock","_footnoteDefsContainerTracker","childCount","append","enqueueChange","_ensureFootnotesDefinitionsContainerExists","getChanges","footnoteId","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesReferencesHaveProperOrder","5098654gDUpEP","isPremiumPlugin","compareWith","rootName","has","length","findIndex","56FQDtwF","FootnotesTracker","3904940PNpzrd","move","getRootNames","indexOf","_updateFootnotesCounters","_updateFootnoteRefCounter","paragraph","createPositionAt","getFootnotesFormatter","after","high","unshift","model","6AYuhSV","some","isEqual","createRangeOn","getAttribute","change:data","_handleFootnoteReferencesChanges","reset","splice","footnoteCounter","footnoteRef","reference","from","_footnoteFormatter","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","getFootnotes","1250655AylzvG","setAttribute","footnoteInlineContent","differ","parent","4856841NhHSIl","footnoteDefinition","get","_handleFootnotesDefinitionsObjectSync","1754312JMYfel","setFootnoteFormatter","definition","low","_footnotesDefinitions","getFootnote","$graveyard","5090270xWNWzf","_footnoteDefsTracker","document","createPositionBefore","getFootnotesDefinitionsObjectElement","insert","isOfficialPlugin","_footnoteRefsTracker","end","7831ocLVpN","singleton","_handleInsertedFootnoteReference","createRangeIn","_handleFootnotesDefinitionsObjectChanges","map","before","listenTo","registerPostFixer","footnotesDefinitions","init","getChildren","remove","push","_handleFootnoteDefinitionsChanges","createElement","_footnotes","_sortFootnoteDefinitions","find","12ymrYFj","config","min","set","pluginName","editor","28DCnFFb","add","root"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(271)])return 0;const i=t[n(324)](o);for(let o=0;o<e[n(271)];o++){const s=e[o],r=t[n(324)](s[n(299)]);if(n(336)===i[n(268)](r))return o}const s=o[n(357)];let r=-1;for(let t=e[n(271)]-1;t>=0;t--)if(e[t][n(299)][n(357)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(323)][n(277)](),c=a[n(278)](s[n(269)]),l=a[c+1];if(l)for(let t=0;t<e[n(271)];t++)if(e[t][n(299)][n(357)][n(269)]===l)return t;return e[n(271)]}const g=y;function w(){const t=["getFirstRange","selection","_getPositionToInsertFootnote","plugins","4085904BkUuHJ","change","isBlock","model","22PMLnNx","string","_moveSelectionToFootnoteDefinition","insertObject","3611090cPtzEv","test","3052044oxMTuY","418292OEjLTg","get","FootnotesEditing","insert-footnote-command-executed-with-invalid-id","getItems","createElement","footnoteRef","execute","editor","document","isObject","end","length","refresh","7HQcuTT","checkChild","footnoteId","153WKfwJp","11759124JlDPDJ","6362EefJDA","isEnabled","15mJDdSe","960145UZsPeq","12zttFzf"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=294]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(401005===-parseInt(e(329))/1*(parseInt(e(331))/2)+-parseInt(e(294))/3*(-parseInt(e(312))/4)+parseInt(e(295))/5*(-parseInt(e(296))/6)+parseInt(e(326))/7*(-parseInt(e(301))/8)+-parseInt(e(311))/9+-parseInt(e(309))/10+-parseInt(e(305))/11*(-parseInt(e(330))/12))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(320)][t(304)][t(321)][t(298)],o=this[t(299)](e);this[t(332)]=!!o}[g(319)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(321)],r=this[e(299)](s);if(!r)return;const a=o[e(300)][e(313)](e(314)),c=t?.[e(328)]??(0,i.uid)();!function(t){const o=e;return o(306)==typeof t&&t[o(324)]>0&&!/\s/[o(310)](t)&&!/^\d/[o(310)](t)}(c)?(0,i.logWarning)(e(315)):(n[e(302)](t=>{const o=e,i=t[o(317)](o(318),{footnoteId:c});n[o(308)](i,r,null)}),a[e(307)](c))}[g(299)](t){const e=g,{model:o}=this[e(320)],{schema:n}=o,i=t[e(297)]();for(const t of i[e(316)]())if(n[e(303)](t)||n[e(322)](t))return null;const s=i[e(323)];return n[e(327)](s,e(318))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([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[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([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]),[h([121])]:h([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]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([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[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([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(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([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[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770422400;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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 A=D;function T(){const t=["drop","listenTo","footnotesDefinitions","FootnotesClipboard","setAttribute","toData","_defineClipboardIntegration","push","clipboardInput","isOfficialPlugin","pluginName","8rqzslh","_insertEmptyFootnotesDefinitionsContainer","3nJwkts","113260DMsZQS","getFootnote","createElement","_handlePasteFootnotesDefinitions","insert","keys","reduce","toModel","flatMap","requires","element","footnoteId","getRanges","entries","getSelectedBlocks","isPremiumPlugin","3188ttcpdC","document","create","remove","76577hrTbUQ","footnotes.multiBlock","getFootnotes","hasAttribute","get","334146OEqtuD","2393586yzvBkm","end","data","string","cloneElement","length","root","selection","footnoteInlineContent","method","_handleCopyFootnotesDefinitions","getChildren","getAttribute","htmlProcessor","createRangeIn","footnoteRef","59283UrTAjS","config","dataTransfer","parse","toView","outputTransformation","stringify","396994QVYpOu","getFirstRange","getFootnotesDefinitionsObjectElement","includes","application/ckeditor5-footnotes","sourceEditorId","editing","change","definition","editor","from","append","setData","contentInsertion","find","footnoteDefinition","init","content","add","getData"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(103323===parseInt(e(198))/1+parseInt(e(144))/2*(-parseInt(e(177))/3)+parseInt(e(194))/4+parseInt(e(178))/5+-parseInt(e(120))/6+-parseInt(e(137))/7+parseInt(e(175))/8*(parseInt(e(121))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(174)](){return A(167)}static get[A(187)](){return[v,P.ClipboardPipeline]}static get[A(173)](){return!0}static get[A(193)](){return!0}[A(160)](){this[A(170)]()}[A(170)](){const t=A;this[t(131)](),this[t(181)]()}[A(131)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(119)](P.ClipboardPipeline),s=o[t(119)](d);this[t(165)](i,t(142),(o,i)=>{const r=t,a=N(n[r(135)](i[r(161)]));if(!a[r(126)])return;const c=s[r(117)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(158)](t=>t.id===o);if(i){const o=e[n(123)][n(141)](i[n(152)],{isClipboardPipeline:!0}),s=e[n(123)][n(134)][n(169)](o);t[i.id]=s}return t},Object[r(196)](null));i[r(139)][r(156)](r(148),JSON[r(143)](l))})}[A(181)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(150)],r=n[t(119)](P.ClipboardPipeline),a=n[t(119)](d),c=e[t(138)][t(119)](t(116));let l=null;this[t(165)](s[t(195)],t(172),(e,o)=>{const n=t,i=o[n(139)][n(163)](n(148));l=i?JSON[n(140)](i):null}),this[t(165)](r,t(157),(n,s)=>{const r=t,f=s[r(149)]===this[r(153)].id;f&&r(164)===s[r(130)]||o[r(151)](t=>{const n=r;let u=a[n(146)]();const d=!!u&&Array[n(154)](o[n(195)][n(128)][n(192)]())[n(147)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(188),e(136)))return!0;return!1}(o[n(135)](s[n(161)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(196)](null);for(const e of i[o(132)]())e.is(o(188),o(159))&&e[o(118)](o(189))&&(s[e[o(133)](o(189))]=t[o(125)](e,!0));return Object[o(183)](s)[o(126)]?s:null}(t,s[n(161)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(135)](e))n.is(o(188),o(166))&&i[o(171)](n);for(const e of i)t[o(197)](e)}(t,s[n(161)]),!l)return;const{selection:p}=o[n(195)],h=p[n(145)]()[n(127)];u&&!d||(u=L(t,s[n(161)]),u||=a[n(176)](t,h));const m=Array[n(154)](p[n(190)]())[n(186)](N),g=function(t,e,o){const s=n,r=Object[s(196)](null);for(const{item:n}of t[s(135)](e))if(n.is(s(188),s(136))){const e=n[s(133)](s(189));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(168)](s(189),r[e],n)}return r}(t,s[n(161)],t=>{const e=n;return!f||!!a[e(179)](t)&&!m[e(147)](t)});for(const[o,i]of Object[n(191)](l)){const s=g[o]||o;let r;if(n(124)!=typeof i)r=i,s!==o&&t[n(168)](n(189),s,r);else{r=t[n(180)](n(159),{footnoteId:s});const o=e[n(123)][n(134)][n(141)](i);let a;if(c)a=e[n(123)][n(185)](o,r);else{a=t[n(180)](n(129));const i=e[n(123)][n(185)](o,a);t[n(182)](i,a)}t[n(155)](a,r)}t[n(182)](r,u,n(122))}l=null})})}}function L(t,e){const o=A;for(const{item:n}of t[o(135)](e))if(n.is(o(188),o(166)))return n;return null}function N(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(188),e(136))&&o[e(162)](n[e(133)](e(189)));return Array[e(154)](o)}var V=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),z=o(102),U=o.n(z),B=o(123),W=o.n(B),q=o(741),H=o.n(q),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=H();K()(J.A,X);J.A&&J.A.locals&&J.A.locals;class G 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,V.ButtonView)),e.add("menuBar:insertFootnote",Z(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 Z(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 Q=$;function Y(){var t=["pluginName","7aszOkN","1635GfwsrH","210325nFoRPy","isPremiumPlugin","requires","Footnotes","2792UTOJCP","isOfficialPlugin","3087165NTVoGs","519446fqSQyz","16456581QJglMA","3767728AtvzqU","6187938rXIqNW"];return(Y=function(){return t})()}function $(t,e){var o=Y();return($=function(t,e){return o[t-=143]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(612641===-parseInt(e(145))/1+parseInt(e(152))/2+parseInt(e(144))/3*(-parseInt(e(149))/4)+parseInt(e(151))/5+-parseInt(e(155))/6+parseInt(e(143))/7*(-parseInt(e(154))/8)+parseInt(e(153))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class tt extends t.Plugin{static get[Q(156)](){return Q(148)}static get[Q(147)](){return[v,_,G]}static get[Q(150)](){return!0}static get[Q(146)](){return!0}}const et=nt;function ot(){const t=["879750qIgpSk","lower-alpha","decimal-leading-zero","48587UxEWqM","upper-alpha","lower-latin","14936896vCZbdw","1394225NZsYXn","lower-roman","25369479Zujubs","726dxMMaZ","decimal","upper-latin","60fPlFSd","1206282YdlRJI","493340eQZOnD","upper-roman"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=284]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(980984===-parseInt(e(287))/1+-parseInt(e(294))/2+-parseInt(e(297))/3+-parseInt(e(293))/4*(-parseInt(e(295))/5)+-parseInt(e(290))/6*(-parseInt(e(300))/7)+-parseInt(e(286))/8+parseInt(e(289))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(291),et(299),et(285),et(292),et(298),et(284),et(288),et(296)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=445]})(t,e)}function at(){const t=["1072220ywNSZH","16wxwvjE","refresh","1069750omPqCf","18owGpNl","7307649viishP","setAttribute","includes","plugins","execute","12vUmzYw","value","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","5593fYpcFD","model","27802905mTyapp","isEnabled","change","get","8sGgEAR","178046bAzEGi","getAttribute","55FPWrrR","4518575hFMdXQ","6654aMetUj","footnotesListStyle"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(889594===parseInt(e(464))/1*(-parseInt(e(463))/2)+parseInt(e(447))/3*(-parseInt(e(470))/4)+-parseInt(e(467))/5+parseInt(e(468))/6*(parseInt(e(457))/7)+parseInt(e(471))/8*(parseInt(e(448))/9)+parseInt(e(446))/10*(-parseInt(e(466))/11)+parseInt(e(453))/12*(parseInt(e(459))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(445)](){const t=st,{editor:e}=this,o=e[t(451)][t(462)](d)[t(456)]();this[t(460)]=!!o,this[t(454)]=o?.[t(465)](t(469))??null}[st(452)]({value:t}){const e=st,{editor:o}=this,n=o[e(451)][e(462)](d),i=n[e(456)]();i&&it[e(450)](t)&&o[e(458)][e(461)](o=>{const s=e;o[s(449)](s(469),t,i),n[s(455)](o)})}}function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=442]})(t,e)}const ft=lt;function ut(){const t=["3310535UJRxzw","refresh","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","getAttribute","4157598RUlrSp","isEnabled","3856664Aavbtm","2mFzGXA","4sARyam","execute","975060SVBmbt","get","value","5443352qgWZgf","change","isInteger","21103956nrXskw","footnotesListStart","model","plugins","setAttribute","2162703zrbBYD"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(488630===parseInt(e(444))/1*(-parseInt(e(464))/2)+-parseInt(e(455))/3+parseInt(e(442))/4*(parseInt(e(456))/5)+-parseInt(e(461))/6+parseInt(e(463))/7+-parseInt(e(447))/8+parseInt(e(450))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[ft(457)](){const t=ft,{editor:e}=this,o=e[t(453)][t(445)](d)[t(458)]();this[t(462)]=!!o,this[t(446)]=o?.[t(460)](t(451))??null}[ft(443)]({value:t}){const e=ft,{editor:o}=this,n=o[e(453)][e(445)](d),i=n[e(458)]();i&&Number[e(449)](t)&&o[e(452)][e(448)](o=>{const s=e;o[s(454)](s(451),t,i),n[s(459)](o)})}}const pt=gt;function ht(){const t=["start","get","footnotes-list","upper-roman","insert","getChildren","12DdehKk","_formatFootnoteListValue","element:ol","consume","upper-alpha","attribute:footnotesListStart:footnotesDefinitions","createRangeOn","_defineFormatter","schema","from","isNaN","floor","downcast","setFootnoteFormatter","list-style-type","footnotes.footnotesProperties.defaultStartIndex","$text","setStyle","config","footnotesStyle","_definePostfixer","model","for","init","padStart","registerPostFixer","plugins","7418expqTM","3225669khsOAu","parent","element","setAttribute","nodeAfter","4130287tJgPUU","editor","upper-latin","decimal","85563bIlvCK","getChanges","max","5135916jHSNGU","_updateFootnotesCounters","getAttribute","parseInt","isPremiumPlugin","requires","_getDefaultListStyle","toLowerCase","toViewElement","pluginName","_getDefaultStartIndex","name","viewItem","add","lower-roman","228BXikYq","footnotesListStyle","upcast","commands","checkAttribute","removeStyle","fromCharCode","4576165PnxBga","footnotesDefinitions","lower-latin","find","getItems","removeAttribute","type","FootnotesPropertiesEditing","getStyle","decimal-leading-zero","3993810eBbteH","extend","define","modelCursor","hasAttribute","writer","_defineConverters","position","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","40cAfPwA","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","4EbzIaR","footnotesStart","hasClass","mapper","document","toUpperCase","footnotesListStart","item","33eWcGXR","lower-alpha","differ","consumable"];return(ht=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(662623===parseInt(e(156))/1*(parseInt(e(184))/2)+-parseInt(e(157))/3*(-parseInt(e(214))/4)+-parseInt(e(191))/5+parseInt(e(232))/6*(-parseInt(e(162))/7)+-parseInt(e(211))/8*(parseInt(e(166))/9)+-parseInt(e(201))/10+-parseInt(e(222))/11*(-parseInt(e(169))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(178)](){return pt(198)}static get[pt(174)](){return[v,d]}static get[pt(212)](){return!0}static get[pt(173)](){return!0}[pt(152)](){const t=pt,{editor:e}=this;e[t(147)][t(203)](t(213),t(165)),e[t(147)][t(203)](t(144),1),e[t(187)][t(182)](t(148),new ct(e)),e[t(187)][t(182)](t(215),new dt(e)),this[t(210)](),this[t(207)](),this[t(239)](),this[t(149)]()}[pt(210)](){const t=pt,{editor:e}=this,{schema:o}=e[t(150)];o[t(202)](t(192),{allowAttributes:[t(185),t(220)]})}[pt(207)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(151)](t(186))[t(182)](e=>{const o=t;e.on(o(234),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(204)]?.[s(158)];r[s(216)](s(228))&&a?.is(s(159),s(192))&&(function(t,e,o,n){const i=s;if(!n[i(188)](e,i(220)))return;let r=1;const a=o[i(225)][i(235)](t,{attributes:i(226)});if(a){const e=Number[i(172)](t[i(171)](i(226)),10);Number[i(242)](e)||(r=e)}!a&&e[i(205)](i(220))||o[i(206)][i(160)](i(220),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(188)](e,i(185)))return;let r=i(165),a=!1;if(o[i(225)][i(235)](t,{attributes:i(197)})){const e={1:i(165),a:i(223),A:i(236),i:i(183),I:i(229)}[t[i(171)](i(197))];e&&(r=e),a=!0}o[i(225)][i(235)](t,{styles:i(143)})&&(r=function(t){const e=i;switch(t){case e(223):return e(193);case e(236):return e(164);default:return t}}(t[i(199)](i(143))),a=!0),!a&&e[i(205)](i(185))||o[i(206)][i(160)](i(185),r,e)}(r,a,n,i))})}),o[t(151)](t(244))[t(182)](e=>{const o=t;e.on(o(237),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;null==r||1===r?n[i(206)][i(196)](i(226),s):n[i(206)][i(160)](i(226),String(r),s)}),e.on(o(209),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;r&&i(165)!==r?n[i(206)][i(146)](i(143),r,s):n[i(206)][i(189)](i(143),s)})})}[pt(149)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(155)][t(227)](d),i=this[t(175)](),s=this[t(179)]();o[t(218)][t(154)](e=>{const r=t,a=o[r(218)][r(224)][r(167)]();let c=!1;for(const t of a){if(r(230)!==t[r(197)]||r(145)===t[r(180)])continue;const n=o[r(238)](t[r(208)][r(161)]);for(const t of n[r(195)]())t.is(r(159),r(192))&&(!t[r(205)](r(220))&&o[r(240)][r(188)](t,r(220))&&(e[r(160)](r(220),s,t),c=!0),!t[r(205)](r(185))&&o[r(240)][r(188)](t,r(185))&&(e[r(160)](r(185),i,t),c=!0))}return c&&n[r(170)](e),c})}[pt(239)](){const t=pt,{editor:e}=this;e[t(155)][t(227)](d)[t(245)](e=>this[t(233)](e))}[pt(175)](){const t=pt;return this[t(163)][t(147)][t(227)](t(213))}[pt(179)](){const t=pt;return this[t(163)][t(147)][t(227)](t(144))}[pt(233)]({container:t,value:e,digits:o}){const n=pt,i=t[n(171)](n(185)),s=t[n(171)](n(220)),r=Math[n(243)](e)+(s??1)-1;switch(i){case n(200):return function(t,e){const o=n;return String(t)[o(153)](e,"0")}(r,Math[n(168)](2,o));case n(223):case n(193):return yt(r,!1);case n(236):case n(164):return yt(r,!0);case n(183):return vt(r,!1);case n(229):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht();return(gt=function(t,e){return o[t-=143]})(t,e)}function wt(t,e){const o=pt,n=e[o(177)](t);return Array[o(241)](n[o(231)]())[o(194)](t=>t.is(o(159),"ol")&&t[o(216)](o(228)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(190)](97+t)+n,i=Math[o(243)]((i-1)/26)}return e?n[o(219)]():n}const bt=[{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 vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(176)]()}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(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=H();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=St;function Et(){var t=["1018kiWdfe","1235908UDIAcM","FootnotesProperties","pluginName","isOfficialPlugin","4807840FfBzdX","1480554iLxXTI","7LLaOrz","isPremiumPlugin","25JrkKOs","592434LQsMFo","1324467nEzbHP","requires","957704CVziyS","909loRZFm"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=214]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(272465===-parseInt(e(226))/1*(-parseInt(e(227))/2)+-parseInt(e(223))/3+parseInt(e(228))/4+parseInt(e(221))/5*(-parseInt(e(222))/6)+-parseInt(e(219))/7*(-parseInt(e(225))/8)+-parseInt(e(218))/9+parseInt(e(217))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(215)](){return xt(214)}static get[xt(224)](){return[mt,Ft]}static get[xt(216)](){return!0}static get[xt(220)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=173]})(t,e)}function Tt(){var t=["2010162PDJkst","7lyEehe","326608rlEUaQ","23810bKJRaP","162VHqjuo","4157335XfGvav","11860hdoUwE","3448716tNAukk","3688824LvcUWS","142Hrmgbg"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(796733===parseInt(e(173))/1*(parseInt(e(176))/2)+parseInt(e(175))/3+-parseInt(e(174))/4+-parseInt(e(182))/5+parseInt(e(177))/6+-parseInt(e(178))/7*(-parseInt(e(179))/8)+-parseInt(e(181))/9*(-parseInt(e(180))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),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}}}},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:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["4vPaHqx","values","$graveyard","$text","push","createRangeOn","root","length","128177YjAxKI","flat","nodeAfter","add","rootName","_getElementKey","reset","18dTXtgz","delete","_elementName","get","from","getItems","insert","remove","_model","862023htXSMC","name","8xemtgq","7619967gxFZWg","6513130pOWlZH","_trackedElements","slice","getElementKey","has","element","getChanges","set","attributes","type","40444unQdIa","clear","elementName","7919160zxStvK","position","1896770GyRjqS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=327]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(677454===-parseInt(e(336))/1*(parseInt(e(330))/2)+parseInt(e(360))/3*(parseInt(e(362))/4)+-parseInt(e(335))/5+-parseInt(e(351))/6*(-parseInt(e(344))/7)+-parseInt(e(333))/8+parseInt(e(363))/9+parseInt(e(364))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(359)];[a(353)];[a(349)];[a(365)]=new Map;constructor(t,e){const o=a;this[o(359)]=t,this[o(353)]=e[o(332)],this[o(349)]=e[o(367)]}[a(350)](){const t=a;this[t(365)][t(331)]()}[a(370)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(357)===i[e(329)]&&e(339)!==i[e(361)]&&i[e(334)][e(346)]){const t=this[e(359)][e(341)](i[e(334)][e(346)]);for(const o of t[e(356)]()){if(!o.is(e(369),this[e(353)]))continue;const t=this[e(349)](o);n[e(368)](t)||n[e(327)](t,[]),n[e(354)](t)[e(340)](o)}}if(e(358)===i[e(329)]&&i[e(361)]===this[e(353)]){const t=this[e(349)]({getAttribute:t=>i[e(328)][e(354)](t)});o[e(347)](t)}}for(const[t,n]of this[e(365)])e(338)===n[e(342)][e(348)]&&o[e(347)](t);for(const t of o)this[e(365)][e(352)](t);for(const[t,o]of n)this[e(365)][e(327)](t,o[o[e(343)]-1]);const i=new Set;for(const[t,s]of n)o[e(368)](t)&&(i[e(347)](s[0]),s[e(343)]>1?n[e(327)](t,s[e(366)](1)):n[e(352)](t),o[e(352)](t));return{removed:Array[e(355)](o),inserted:Array[e(355)](n[e(337)]())[e(345)](),moved:Array[e(355)](i)}}}const u=f;function f(t,e){const o=p();return(f=function(t,e){return o[t-=266]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(938390===-parseInt(e(330))/1*(-parseInt(e(355))/2)+-parseInt(e(305))/3*(-parseInt(e(349))/4)+-parseInt(e(321))/5*(-parseInt(e(288))/6)+parseInt(e(314))/7*(-parseInt(e(273))/8)+-parseInt(e(310))/9+parseInt(e(275))/10+parseInt(e(266))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[u(346)]=[];[u(318)]=null;[u(301)]=null;[u(359)];[u(328)];[u(322)];static get[u(353)](){return u(274)}static get[u(327)](){return!0}static get[u(267)](){return!0}constructor(t){const e=u;super(t),this[e(359)]=new l(this[e(354)][e(287)],{elementName:e(339),getElementKey:()=>e(331)}),this[e(328)]=new l(this[e(354)][e(287)],{elementName:e(298),getElementKey:t=>t[e(292)](e(365))}),this[e(322)]=new l(this[e(354)][e(287)],{elementName:e(311),getElementKey:t=>t[e(292)](e(365))})}[u(340)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(323)][t(338)](e=>{const n=t,i=o[n(323)][n(308)][n(364)]();let s=!1;return this[n(334)](e,i)&&(s=!0),this[n(344)](e,i)&&(s=!0),this[n(294)](e,i)&&(s=!0),this[n(367)](e)&&(s=!0),this[n(313)](e)&&(s=!0),this[n(347)](e)&&(s=!0),s}),this[t(337)](o[t(323)],t(293),()=>{const e=t;o[e(362)]({isUndoable:!1},t=>{this[e(363)](t)})},{priority:t(317)}),this[t(337)](n,t(352),()=>{const e=t;this[e(346)]=[],this[e(359)][e(295)](),this[e(328)][e(295)](),this[e(322)][e(295)]()},{priority:t(285)})}[u(325)](){return this[u(318)]}[u(319)](t){const e=u;return this[e(346)][e(348)](e=>e.id===t)||null}[u(304)](){const t=u;return Array[t(300)](this[t(346)])}[u(283)](){return this[u(301)]}[u(315)](t){this[u(301)]=t}[u(279)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(346)][o(271)];i++)this[o(280)](t,i)&&(n=!0);return n}[u(366)](t,e){const o=u,n=t[o(345)](o(339),{});return t[o(361)](n,e),this[o(318)]=n,n}[u(363)](t){const e=u;if(!this[e(346)][e(271)]||this[e(318)])return;const o=this[e(346)][0][e(299)][e(357)],n=this[e(366)](t,o);for(const o of this[e(346)])o[e(316)][e(309)]||t[e(326)](o[e(316)],n,e(329));this[e(279)](t)}[u(334)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(359)][o(364)](e);if(r[o(271)]&&(this[o(318)]=r[0]),i[o(271)])if(i[o(271)]>1||this[o(318)]&&i[o(289)](t=>t!==this[o(318)])){const e=t[o(345)](o(339),{}),s=[];this[o(318)]&&s[o(343)](this[o(318)]),s[o(343)](...i),t[o(326)](e,s[0],o(336));for(const n of s)t[o(276)](t[o(333)](n),t[o(282)](e,o(329))),t[o(342)](n);this[o(318)]=e,this[o(279)](t),n=!0}else this[o(318)]=i[0];if(s[o(271)]&&o(320)===this[o(318)]?.[o(357)][o(269)]){for(const e of this[o(346)])t[o(342)](e[o(299)]),n=!0;this[o(346)]=[],this[o(318)]=null}return n}[u(344)](t,e){const o=u;let n=!1;const i=this[o(354)][o(350)][o(312)](o(358)),{inserted:s,moved:r}=this[o(322)][o(364)](e);for(const e of[...r,...s]){const s=e[o(292)](o(365)),r=this[o(319)](s);r&&(r[o(316)]=e),h(t,i,e)&&(n=!0)}return n}[u(294)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(328)][o(364)](e);for(const e of i)this[o(302)](t,e)&&(n=!0);for(const e of s)this[o(332)](t,e)&&(n=!0);for(const e of r)this[o(303)](t,e)&&(n=!0);return n}[u(313)](t){const e=u;if(!this[e(318)])return!1;let o=!1;if(this[e(318)][e(360)]!==this[e(346)][e(271)]){const n=[];for(const t of this[e(318)][e(341)]()){const i=t[e(292)](e(365));this[e(319)](i)||(n[e(286)](t),o=!0)}for(const o of n)t[e(342)](o)}const n=new Set,i=[];for(const t of this[e(318)][e(341)]()){const s=t[e(292)](e(365));n[e(270)](s)?(i[e(286)](t),o=!0):n[e(356)](s)}for(const o of i)t[e(342)](o);return this[e(318)][e(360)]||(t[e(342)](this[e(318)]),this[e(318)]=null,o=!0),o}[u(332)](t,e){const o=u;if(this[o(346)][o(348)](t=>t[o(299)]===e))return!1;let n=!1;const i=e[o(292)](o(365)),s=this[o(346)][o(272)](t=>t.id===i);-1!==s&&(t[o(342)](this[o(346)][s][o(299)]),this[o(346)][o(296)](s,1),n=!0);let r=this[o(318)]?function(t,e){const n=o;for(const o of t[n(341)]())if(o[n(292)](n(365))===e)return o;return null}(this[o(318)],i):null;r||(r=t[o(345)](o(311),{footnoteId:i}),this[o(318)]&&(t[o(326)](r,this[o(318)],o(329)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(354)][o(287)],this[o(346)],e);this[o(346)][o(296)](c,0,a);let l=c;return-1!==s&&(l=Math[o(351)](c,s)),this[o(279)](t,l)&&(n=!0),n}[u(302)](t,e){const o=u,n=this[o(346)][o(272)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(346)][n];return o(320)!==s[o(316)][o(357)][o(269)]&&(t[o(342)](s[o(316)]),i=!0),this[o(346)][o(296)](n,1),this[o(279)](t,n)&&(i=!0),i}[u(303)](t,e){const o=u,n=e[o(292)](o(365)),i=this[o(346)][o(272)](t=>t.id===n),s=this[o(346)][i];let r=!1;s[o(299)]=e,this[o(346)][o(296)](i,1);const a=m(this[o(354)][o(287)],this[o(346)],e);return this[o(346)][o(296)](a,0,s),this[o(279)](t,Math[o(351)](i,a))&&(r=!0),r}[u(280)](t,e){const o=u;if(!this[o(318)])return!1;const n=this[o(346)][e];let i;return i=this[o(301)]?this[o(301)]({footnote:n,container:this[o(318)],digits:String(this[o(346)][o(271)])[o(271)],value:e+1}):String(e+1),n[o(299)][o(292)](o(297))!=i&&(t[o(306)](o(297),i,n[o(299)]),!0)}[u(347)](t){const e=u;if(!this[e(318)]||this[e(346)][e(271)]<2)return!1;if(function(t,o){const n=e;if(t[n(271)]!==o[n(271)])return!1;for(let e=0;e<t[n(271)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(346)][e(335)](t=>t.id),Array[e(300)](this[e(318)][e(341)]())[e(335)](t=>t[e(292)](e(365)))))return!1;let o=!1;for(let n=0;n<this[e(346)][e(271)];n++){const i=this[e(346)][n],s=t[e(324)](i[e(316)]),r=t[e(282)](this[e(318)],n);s[e(290)](r)||(t[e(276)](t[e(291)](i[e(316)]),r),o=!0)}return o}[u(367)](t){const e=u;if(!this[e(346)][e(271)])return!1;const{model:o}=this[e(354)];let n=!1;for(let i=0;i<this[e(346)][e(271)]-1;i++){const s=this[e(346)][i],r=this[e(346)][i+1],a=o[e(324)](s[e(299)]),c=o[e(324)](r[e(299)]);e(284)===a[e(268)](c)&&(this[e(303)](t,s[e(299)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(360)])return!1;const i=n(e?281:307);return t[n(326)](t[n(345)](i),o),!0}function p(){const t=["footnotes.multiBlock","_footnoteDefsContainerTracker","childCount","append","enqueueChange","_ensureFootnotesDefinitionsContainerExists","getChanges","footnoteId","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesReferencesHaveProperOrder","5098654gDUpEP","isPremiumPlugin","compareWith","rootName","has","length","findIndex","56FQDtwF","FootnotesTracker","3904940PNpzrd","move","getRootNames","indexOf","_updateFootnotesCounters","_updateFootnoteRefCounter","paragraph","createPositionAt","getFootnotesFormatter","after","high","unshift","model","6AYuhSV","some","isEqual","createRangeOn","getAttribute","change:data","_handleFootnoteReferencesChanges","reset","splice","footnoteCounter","footnoteRef","reference","from","_footnoteFormatter","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","getFootnotes","1250655AylzvG","setAttribute","footnoteInlineContent","differ","parent","4856841NhHSIl","footnoteDefinition","get","_handleFootnotesDefinitionsObjectSync","1754312JMYfel","setFootnoteFormatter","definition","low","_footnotesDefinitions","getFootnote","$graveyard","5090270xWNWzf","_footnoteDefsTracker","document","createPositionBefore","getFootnotesDefinitionsObjectElement","insert","isOfficialPlugin","_footnoteRefsTracker","end","7831ocLVpN","singleton","_handleInsertedFootnoteReference","createRangeIn","_handleFootnotesDefinitionsObjectChanges","map","before","listenTo","registerPostFixer","footnotesDefinitions","init","getChildren","remove","push","_handleFootnoteDefinitionsChanges","createElement","_footnotes","_sortFootnoteDefinitions","find","12ymrYFj","config","min","set","pluginName","editor","28DCnFFb","add","root"];return(p=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(271)])return 0;const i=t[n(324)](o);for(let o=0;o<e[n(271)];o++){const s=e[o],r=t[n(324)](s[n(299)]);if(n(336)===i[n(268)](r))return o}const s=o[n(357)];let r=-1;for(let t=e[n(271)]-1;t>=0;t--)if(e[t][n(299)][n(357)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(323)][n(277)](),c=a[n(278)](s[n(269)]),l=a[c+1];if(l)for(let t=0;t<e[n(271)];t++)if(e[t][n(299)][n(357)][n(269)]===l)return t;return e[n(271)]}const g=y;function w(){const t=["getFirstRange","selection","_getPositionToInsertFootnote","plugins","4085904BkUuHJ","change","isBlock","model","22PMLnNx","string","_moveSelectionToFootnoteDefinition","insertObject","3611090cPtzEv","test","3052044oxMTuY","418292OEjLTg","get","FootnotesEditing","insert-footnote-command-executed-with-invalid-id","getItems","createElement","footnoteRef","execute","editor","document","isObject","end","length","refresh","7HQcuTT","checkChild","footnoteId","153WKfwJp","11759124JlDPDJ","6362EefJDA","isEnabled","15mJDdSe","960145UZsPeq","12zttFzf"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=294]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(401005===-parseInt(e(329))/1*(parseInt(e(331))/2)+-parseInt(e(294))/3*(-parseInt(e(312))/4)+parseInt(e(295))/5*(-parseInt(e(296))/6)+parseInt(e(326))/7*(-parseInt(e(301))/8)+-parseInt(e(311))/9+-parseInt(e(309))/10+-parseInt(e(305))/11*(-parseInt(e(330))/12))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(320)][t(304)][t(321)][t(298)],o=this[t(299)](e);this[t(332)]=!!o}[g(319)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(321)],r=this[e(299)](s);if(!r)return;const a=o[e(300)][e(313)](e(314)),c=t?.[e(328)]??(0,i.uid)();!function(t){const o=e;return o(306)==typeof t&&t[o(324)]>0&&!/\s/[o(310)](t)&&!/^\d/[o(310)](t)}(c)?(0,i.logWarning)(e(315)):(n[e(302)](t=>{const o=e,i=t[o(317)](o(318),{footnoteId:c});n[o(308)](i,r,null)}),a[e(307)](c))}[g(299)](t){const e=g,{model:o}=this[e(320)],{schema:n}=o,i=t[e(297)]();for(const t of i[e(316)]())if(n[e(303)](t)||n[e(322)](t))return null;const s=i[e(323)];return n[e(327)](s,e(318))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=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:1770595200;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(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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 A=D;function T(){const t=["drop","listenTo","footnotesDefinitions","FootnotesClipboard","setAttribute","toData","_defineClipboardIntegration","push","clipboardInput","isOfficialPlugin","pluginName","8rqzslh","_insertEmptyFootnotesDefinitionsContainer","3nJwkts","113260DMsZQS","getFootnote","createElement","_handlePasteFootnotesDefinitions","insert","keys","reduce","toModel","flatMap","requires","element","footnoteId","getRanges","entries","getSelectedBlocks","isPremiumPlugin","3188ttcpdC","document","create","remove","76577hrTbUQ","footnotes.multiBlock","getFootnotes","hasAttribute","get","334146OEqtuD","2393586yzvBkm","end","data","string","cloneElement","length","root","selection","footnoteInlineContent","method","_handleCopyFootnotesDefinitions","getChildren","getAttribute","htmlProcessor","createRangeIn","footnoteRef","59283UrTAjS","config","dataTransfer","parse","toView","outputTransformation","stringify","396994QVYpOu","getFirstRange","getFootnotesDefinitionsObjectElement","includes","application/ckeditor5-footnotes","sourceEditorId","editing","change","definition","editor","from","append","setData","contentInsertion","find","footnoteDefinition","init","content","add","getData"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=116]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(103323===parseInt(e(198))/1+parseInt(e(144))/2*(-parseInt(e(177))/3)+parseInt(e(194))/4+parseInt(e(178))/5+-parseInt(e(120))/6+-parseInt(e(137))/7+parseInt(e(175))/8*(parseInt(e(121))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(174)](){return A(167)}static get[A(187)](){return[v,P.ClipboardPipeline]}static get[A(173)](){return!0}static get[A(193)](){return!0}[A(160)](){this[A(170)]()}[A(170)](){const t=A;this[t(131)](),this[t(181)]()}[A(131)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(119)](P.ClipboardPipeline),s=o[t(119)](d);this[t(165)](i,t(142),(o,i)=>{const r=t,a=O(n[r(135)](i[r(161)]));if(!a[r(126)])return;const c=s[r(117)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(158)](t=>t.id===o);if(i){const o=e[n(123)][n(141)](i[n(152)],{isClipboardPipeline:!0}),s=e[n(123)][n(134)][n(169)](o);t[i.id]=s}return t},Object[r(196)](null));i[r(139)][r(156)](r(148),JSON[r(143)](l))})}[A(181)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(150)],r=n[t(119)](P.ClipboardPipeline),a=n[t(119)](d),c=e[t(138)][t(119)](t(116));let l=null;this[t(165)](s[t(195)],t(172),(e,o)=>{const n=t,i=o[n(139)][n(163)](n(148));l=i?JSON[n(140)](i):null}),this[t(165)](r,t(157),(n,s)=>{const r=t,u=s[r(149)]===this[r(153)].id;u&&r(164)===s[r(130)]||o[r(151)](t=>{const n=r;let f=a[n(146)]();const d=!!f&&Array[n(154)](o[n(195)][n(128)][n(192)]())[n(147)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(188),e(136)))return!0;return!1}(o[n(135)](s[n(161)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(196)](null);for(const e of i[o(132)]())e.is(o(188),o(159))&&e[o(118)](o(189))&&(s[e[o(133)](o(189))]=t[o(125)](e,!0));return Object[o(183)](s)[o(126)]?s:null}(t,s[n(161)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(135)](e))n.is(o(188),o(166))&&i[o(171)](n);for(const e of i)t[o(197)](e)}(t,s[n(161)]),!l)return;const{selection:h}=o[n(195)],p=h[n(145)]()[n(127)];f&&!d||(f=L(t,s[n(161)]),f||=a[n(176)](t,p));const m=Array[n(154)](h[n(190)]())[n(186)](O),g=function(t,e,o){const s=n,r=Object[s(196)](null);for(const{item:n}of t[s(135)](e))if(n.is(s(188),s(136))){const e=n[s(133)](s(189));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(168)](s(189),r[e],n)}return r}(t,s[n(161)],t=>{const e=n;return!u||!!a[e(179)](t)&&!m[e(147)](t)});for(const[o,i]of Object[n(191)](l)){const s=g[o]||o;let r;if(n(124)!=typeof i)r=i,s!==o&&t[n(168)](n(189),s,r);else{r=t[n(180)](n(159),{footnoteId:s});const o=e[n(123)][n(134)][n(141)](i);let a;if(c)a=e[n(123)][n(185)](o,r);else{a=t[n(180)](n(129));const i=e[n(123)][n(185)](o,a);t[n(182)](i,a)}t[n(155)](a,r)}t[n(182)](r,f,n(122))}l=null})})}}function L(t,e){const o=A;for(const{item:n}of t[o(135)](e))if(n.is(o(188),o(166)))return n;return null}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(188),e(136))&&o[e(162)](n[e(133)](e(189)));return Array[e(154)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),z=o(102),U=o.n(z),B=o(123),W=o.n(B),H=o(741),q=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=j(),X.insertStyleElement=q();K()(J.A,X);J.A&&J.A.locals&&J.A.locals;class G 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",Y(t,V.ButtonView)),e.add("menuBar:insertFootnote",Y(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 Y(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:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=$;function Q(){var t=["pluginName","7aszOkN","1635GfwsrH","210325nFoRPy","isPremiumPlugin","requires","Footnotes","2792UTOJCP","isOfficialPlugin","3087165NTVoGs","519446fqSQyz","16456581QJglMA","3767728AtvzqU","6187938rXIqNW"];return(Q=function(){return t})()}function $(t,e){var o=Q();return($=function(t,e){return o[t-=143]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(612641===-parseInt(e(145))/1+parseInt(e(152))/2+parseInt(e(144))/3*(-parseInt(e(149))/4)+parseInt(e(151))/5+-parseInt(e(155))/6+parseInt(e(143))/7*(-parseInt(e(154))/8)+parseInt(e(153))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class tt extends t.Plugin{static get[Z(156)](){return Z(148)}static get[Z(147)](){return[v,_,G]}static get[Z(150)](){return!0}static get[Z(146)](){return!0}}const et=nt;function ot(){const t=["879750qIgpSk","lower-alpha","decimal-leading-zero","48587UxEWqM","upper-alpha","lower-latin","14936896vCZbdw","1394225NZsYXn","lower-roman","25369479Zujubs","726dxMMaZ","decimal","upper-latin","60fPlFSd","1206282YdlRJI","493340eQZOnD","upper-roman"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=284]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(980984===-parseInt(e(287))/1+-parseInt(e(294))/2+-parseInt(e(297))/3+-parseInt(e(293))/4*(-parseInt(e(295))/5)+-parseInt(e(290))/6*(-parseInt(e(300))/7)+-parseInt(e(286))/8+parseInt(e(289))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(291),et(299),et(285),et(292),et(298),et(284),et(288),et(296)],st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=190]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(105863===parseInt(e(201))/1+-parseInt(e(211))/2+parseInt(e(200))/3*(parseInt(e(207))/4)+parseInt(e(194))/5*(parseInt(e(195))/6)+-parseInt(e(196))/7+parseInt(e(208))/8*(parseInt(e(190))/9)+-parseInt(e(210))/10*(-parseInt(e(209))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(213)](){const t=st,{editor:e}=this,o=e[t(197)][t(198)](d)[t(212)]();this[t(214)]=!!o,this[t(199)]=o?.[t(192)](t(204))??null}[st(206)]({value:t}){const e=st,{editor:o}=this,n=o[e(197)][e(198)](d),i=n[e(212)]();i&&it[e(202)](t)&&o[e(205)][e(193)](o=>{const s=e;o[s(191)](s(204),t,i),n[s(203)](o)})}}function ct(){const t=["106536pwFCTL","663313NwKGER","plugins","get","value","60PBRfok","7829RNsuGO","includes","_updateFootnotesCounters","footnotesListStyle","model","execute","12908YUhdAV","84472Mcjtuh","44DMrIGk","568220vfanTh","325724pOmILm","getFootnotesDefinitionsObjectElement","refresh","isEnabled","9ypHUUh","setAttribute","getAttribute","change","15RWiYoi"];return(ct=function(){return t})()}function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=442]})(t,e)}const ut=lt;function ft(){const t=["3310535UJRxzw","refresh","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","getAttribute","4157598RUlrSp","isEnabled","3856664Aavbtm","2mFzGXA","4sARyam","execute","975060SVBmbt","get","value","5443352qgWZgf","change","isInteger","21103956nrXskw","footnotesListStart","model","plugins","setAttribute","2162703zrbBYD"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(488630===parseInt(e(444))/1*(-parseInt(e(464))/2)+-parseInt(e(455))/3+parseInt(e(442))/4*(parseInt(e(456))/5)+-parseInt(e(461))/6+parseInt(e(463))/7+-parseInt(e(447))/8+parseInt(e(450))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[ut(457)](){const t=ut,{editor:e}=this,o=e[t(453)][t(445)](d)[t(458)]();this[t(462)]=!!o,this[t(446)]=o?.[t(460)](t(451))??null}[ut(443)]({value:t}){const e=ut,{editor:o}=this,n=o[e(453)][e(445)](d),i=n[e(458)]();i&&Number[e(449)](t)&&o[e(452)][e(448)](o=>{const s=e;o[s(454)](s(451),t,i),n[s(459)](o)})}}const ht=gt;function pt(){const t=["start","get","footnotes-list","upper-roman","insert","getChildren","12DdehKk","_formatFootnoteListValue","element:ol","consume","upper-alpha","attribute:footnotesListStart:footnotesDefinitions","createRangeOn","_defineFormatter","schema","from","isNaN","floor","downcast","setFootnoteFormatter","list-style-type","footnotes.footnotesProperties.defaultStartIndex","$text","setStyle","config","footnotesStyle","_definePostfixer","model","for","init","padStart","registerPostFixer","plugins","7418expqTM","3225669khsOAu","parent","element","setAttribute","nodeAfter","4130287tJgPUU","editor","upper-latin","decimal","85563bIlvCK","getChanges","max","5135916jHSNGU","_updateFootnotesCounters","getAttribute","parseInt","isPremiumPlugin","requires","_getDefaultListStyle","toLowerCase","toViewElement","pluginName","_getDefaultStartIndex","name","viewItem","add","lower-roman","228BXikYq","footnotesListStyle","upcast","commands","checkAttribute","removeStyle","fromCharCode","4576165PnxBga","footnotesDefinitions","lower-latin","find","getItems","removeAttribute","type","FootnotesPropertiesEditing","getStyle","decimal-leading-zero","3993810eBbteH","extend","define","modelCursor","hasAttribute","writer","_defineConverters","position","attribute:footnotesListStyle:footnotesDefinitions","_defineSchema","40cAfPwA","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","4EbzIaR","footnotesStart","hasClass","mapper","document","toUpperCase","footnotesListStart","item","33eWcGXR","lower-alpha","differ","consumable"];return(pt=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(662623===parseInt(e(156))/1*(parseInt(e(184))/2)+-parseInt(e(157))/3*(-parseInt(e(214))/4)+-parseInt(e(191))/5+parseInt(e(232))/6*(-parseInt(e(162))/7)+-parseInt(e(211))/8*(parseInt(e(166))/9)+-parseInt(e(201))/10+-parseInt(e(222))/11*(-parseInt(e(169))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(178)](){return ht(198)}static get[ht(174)](){return[v,d]}static get[ht(212)](){return!0}static get[ht(173)](){return!0}[ht(152)](){const t=ht,{editor:e}=this;e[t(147)][t(203)](t(213),t(165)),e[t(147)][t(203)](t(144),1),e[t(187)][t(182)](t(148),new at(e)),e[t(187)][t(182)](t(215),new dt(e)),this[t(210)](),this[t(207)](),this[t(239)](),this[t(149)]()}[ht(210)](){const t=ht,{editor:e}=this,{schema:o}=e[t(150)];o[t(202)](t(192),{allowAttributes:[t(185),t(220)]})}[ht(207)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(151)](t(186))[t(182)](e=>{const o=t;e.on(o(234),(t,e,n)=>{const s=o,r=e[s(181)],a=e[s(204)]?.[s(158)];r[s(216)](s(228))&&a?.is(s(159),s(192))&&(function(t,e,o,n){const i=s;if(!n[i(188)](e,i(220)))return;let r=1;const a=o[i(225)][i(235)](t,{attributes:i(226)});if(a){const e=Number[i(172)](t[i(171)](i(226)),10);Number[i(242)](e)||(r=e)}!a&&e[i(205)](i(220))||o[i(206)][i(160)](i(220),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(188)](e,i(185)))return;let r=i(165),a=!1;if(o[i(225)][i(235)](t,{attributes:i(197)})){const e={1:i(165),a:i(223),A:i(236),i:i(183),I:i(229)}[t[i(171)](i(197))];e&&(r=e),a=!0}o[i(225)][i(235)](t,{styles:i(143)})&&(r=function(t){const e=i;switch(t){case e(223):return e(193);case e(236):return e(164);default:return t}}(t[i(199)](i(143))),a=!0),!a&&e[i(205)](i(185))||o[i(206)][i(160)](i(185),r,e)}(r,a,n,i))})}),o[t(151)](t(244))[t(182)](e=>{const o=t;e.on(o(237),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;null==r||1===r?n[i(206)][i(196)](i(226),s):n[i(206)][i(160)](i(226),String(r),s)}),e.on(o(209),(t,e,n)=>{const i=o;if(!n[i(225)][i(235)](e[i(221)],t[i(180)]))return;const s=wt(e[i(221)],n[i(217)]),{attributeNewValue:r}=e;r&&i(165)!==r?n[i(206)][i(146)](i(143),r,s):n[i(206)][i(189)](i(143),s)})})}[ht(149)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(155)][t(227)](d),i=this[t(175)](),s=this[t(179)]();o[t(218)][t(154)](e=>{const r=t,a=o[r(218)][r(224)][r(167)]();let c=!1;for(const t of a){if(r(230)!==t[r(197)]||r(145)===t[r(180)])continue;const n=o[r(238)](t[r(208)][r(161)]);for(const t of n[r(195)]())t.is(r(159),r(192))&&(!t[r(205)](r(220))&&o[r(240)][r(188)](t,r(220))&&(e[r(160)](r(220),s,t),c=!0),!t[r(205)](r(185))&&o[r(240)][r(188)](t,r(185))&&(e[r(160)](r(185),i,t),c=!0))}return c&&n[r(170)](e),c})}[ht(239)](){const t=ht,{editor:e}=this;e[t(155)][t(227)](d)[t(245)](e=>this[t(233)](e))}[ht(175)](){const t=ht;return this[t(163)][t(147)][t(227)](t(213))}[ht(179)](){const t=ht;return this[t(163)][t(147)][t(227)](t(144))}[ht(233)]({container:t,value:e,digits:o}){const n=ht,i=t[n(171)](n(185)),s=t[n(171)](n(220)),r=Math[n(243)](e)+(s??1)-1;switch(i){case n(200):return function(t,e){const o=n;return String(t)[o(153)](e,"0")}(r,Math[n(168)](2,o));case n(223):case n(193):return yt(r,!1);case n(236):case n(164):return yt(r,!0);case n(183):return vt(r,!1);case n(229):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=pt();return(gt=function(t,e){return o[t-=143]})(t,e)}function wt(t,e){const o=ht,n=e[o(177)](t);return Array[o(241)](n[o(231)]())[o(194)](t=>t.is(o(159),"ol")&&t[o(216)](o(228)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(190)](97+t)+n,i=Math[o(243)]((i-1)/26)}return e?n[o(219)]():n}const bt=[{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 vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(176)]()}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(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().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[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:N.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:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.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=St;function Et(){var t=["1018kiWdfe","1235908UDIAcM","FootnotesProperties","pluginName","isOfficialPlugin","4807840FfBzdX","1480554iLxXTI","7LLaOrz","isPremiumPlugin","25JrkKOs","592434LQsMFo","1324467nEzbHP","requires","957704CVziyS","909loRZFm"];return(Et=function(){return t})()}function St(t,e){var o=Et();return(St=function(t,e){return o[t-=214]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(272465===-parseInt(e(226))/1*(-parseInt(e(227))/2)+-parseInt(e(223))/3+parseInt(e(228))/4+parseInt(e(221))/5*(-parseInt(e(222))/6)+-parseInt(e(219))/7*(-parseInt(e(225))/8)+-parseInt(e(218))/9+parseInt(e(217))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[xt(215)](){return xt(214)}static get[xt(224)](){return[mt,Ft]}static get[xt(216)](){return!0}static get[xt(220)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=173]})(t,e)}function Tt(){var t=["2010162PDJkst","7lyEehe","326608rlEUaQ","23810bKJRaP","162VHqjuo","4157335XfGvav","11860hdoUwE","3448716tNAukk","3688824LvcUWS","142Hrmgbg"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(796733===parseInt(e(173))/1*(parseInt(e(176))/2)+parseInt(e(175))/3+-parseInt(e(174))/4+-parseInt(e(182))/5+parseInt(e(177))/6+-parseInt(e(178))/7*(-parseInt(e(179))/8)+-parseInt(e(181))/9*(-parseInt(e(180))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0xc427b3,Command as _0x156730}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x465b88,isWidget as _0x14f188,toWidgetEditable as _0x130635,WidgetToolbarRepository as _0x2d9ce9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x8dfd01,logWarning as _0x13bbb7,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x72adff,ClickObserver as _0x40b81d}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x2e9876}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3cbe22,ButtonView as _0x459df5,View as _0x5b0f6e,ViewCollection as _0x215386,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x5aee44,BalloonPanelView as _0x31c946,createDropdown as _0x40c154}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x141b9b,IconListStyleDecimal as _0x4b7e7d,IconListStyleDecimalLeadingZero as _0x40d847,IconListStyleLowerRoman as _0x1c4fa7,IconListStyleUpperRoman as _0x1dd5c0,IconListStyleLowerLatin as _0x4a4a79,IconListStyleUpperLatin as _0x42018a}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x56c18c,_0x19b9cc){this['_model']=_0x56c18c,this['_elementName']=_0x19b9cc['elementName'],this['_getElementKey']=_0x19b9cc['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x2b61f7){const _0x33d1d9=new Set(),_0x2ff535=new Map();for(const _0x1ff805 of _0x2b61f7){if('insert'===_0x1ff805['type']&&'$text'!==_0x1ff805['name']&&_0x1ff805['position']['nodeAfter']){const _0x751210=this['_model']['createRangeOn'](_0x1ff805['position']['nodeAfter']);for(const _0xfbf4a1 of _0x751210['getItems']()){if(!_0xfbf4a1['is']('element',this['_elementName']))continue;const _0x1c96e7=this['_getElementKey'](_0xfbf4a1);_0x2ff535['has'](_0x1c96e7)||_0x2ff535['set'](_0x1c96e7,[]),_0x2ff535['get'](_0x1c96e7)['push'](_0xfbf4a1);}}if('remove'===_0x1ff805['type']&&_0x1ff805['name']===this['_elementName']){const _0x1ab300=this['_getElementKey']({'getAttribute':_0x22e5b0=>_0x1ff805['attributes']['get'](_0x22e5b0)});_0x33d1d9['add'](_0x1ab300);}}for(const [_0x1dd4e1,_0x402866]of this['_trackedElements'])'$graveyard'===_0x402866['root']['rootName']&&_0x33d1d9['add'](_0x1dd4e1);for(const _0x519b63 of _0x33d1d9)this['_trackedElements']['delete'](_0x519b63);for(const [_0x2e6533,_0x470263]of _0x2ff535)this['_trackedElements']['set'](_0x2e6533,_0x470263[_0x470263['length']-0x1]);const _0x2325ec=new Set();for(const [_0x58c06c,_0x20bc93]of _0x2ff535)_0x33d1d9['has'](_0x58c06c)&&(_0x2325ec['add'](_0x20bc93[0x0]),_0x20bc93['length']>0x1?_0x2ff535['set'](_0x58c06c,_0x20bc93['slice'](0x1)):_0x2ff535['delete'](_0x58c06c),_0x33d1d9['delete'](_0x58c06c));return{'removed':Array['from'](_0x33d1d9),'inserted':Array['from'](_0x2ff535['values']())['flat'](),'moved':Array['from'](_0x2325ec)};}}class f extends _0xc427b3{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2ba402){super(_0x2ba402),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x584611=>_0x584611['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x53a7ed=>_0x53a7ed['getAttribute']('footnoteId')});}['init'](){const {editor:_0xe5f882}=this,{model:_0xfeb16f,data:_0x56aed0}=_0xe5f882;_0xfeb16f['document']['registerPostFixer'](_0x576737=>{const _0x2f2d85=_0xfeb16f['document']['differ']['getChanges']();let _0x4be075=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x576737,_0x2f2d85)&&(_0x4be075=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x576737,_0x2f2d85)&&(_0x4be075=!0x0),this['_handleFootnoteReferencesChanges'](_0x576737,_0x2f2d85)&&(_0x4be075=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x576737)&&(_0x4be075=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x576737)&&(_0x4be075=!0x0),this['_sortFootnoteDefinitions'](_0x576737)&&(_0x4be075=!0x0),_0x4be075;}),this['listenTo'](_0xfeb16f['document'],'change:data',()=>{_0xfeb16f['enqueueChange']({'isUndoable':!0x1},_0x9ab968=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x9ab968);});},{'priority':'low'}),this['listenTo'](_0x56aed0,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x223589){return this['_footnotes']['find'](_0x34368f=>_0x34368f['id']===_0x223589)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x450763){this['_footnoteFormatter']=_0x450763;}['_updateFootnotesCounters'](_0x1bde86,_0x1f82f0=0x0){let _0x506b69=!0x1;for(let _0x567ef3=_0x1f82f0;_0x567ef3<this['_footnotes']['length'];_0x567ef3++)this['_updateFootnoteRefCounter'](_0x1bde86,_0x567ef3)&&(_0x506b69=!0x0);return _0x506b69;}['_insertEmptyFootnotesDefinitionsContainer'](_0xa7f851,_0x4c4746){const _0x552598=_0xa7f851['createElement']('footnotesDefinitions',{});return _0xa7f851['append'](_0x552598,_0x4c4746),this['_footnotesDefinitions']=_0x552598,_0x552598;}['_ensureFootnotesDefinitionsContainerExists'](_0x39338d){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x26705d=this['_footnotes'][0x0]['reference']['root'],_0x2245bc=this['_insertEmptyFootnotesDefinitionsContainer'](_0x39338d,_0x26705d);for(const _0x37fb74 of this['_footnotes'])_0x37fb74['definition']['parent']||_0x39338d['insert'](_0x37fb74['definition'],_0x2245bc,'end');this['_updateFootnotesCounters'](_0x39338d);}['_handleFootnotesDefinitionsObjectChanges'](_0x13b6fe,_0x477eec){let _0x3cf53e=!0x1;const {inserted:_0xfb7a34,removed:_0x1a5708,moved:_0x3ba35f}=this['_footnoteDefsContainerTracker']['getChanges'](_0x477eec);if(_0x3ba35f['length']&&(this['_footnotesDefinitions']=_0x3ba35f[0x0]),_0xfb7a34['length']){if(_0xfb7a34['length']>0x1||this['_footnotesDefinitions']&&_0xfb7a34['some'](_0x1d81ce=>_0x1d81ce!==this['_footnotesDefinitions'])){const _0x515033=_0x13b6fe['createElement']('footnotesDefinitions',{}),_0x38e9af=[];this['_footnotesDefinitions']&&_0x38e9af['push'](this['_footnotesDefinitions']),_0x38e9af['push'](..._0xfb7a34),_0x13b6fe['insert'](_0x515033,_0x38e9af[0x0],'before');for(const _0x4fc84a of _0x38e9af)_0x13b6fe['move'](_0x13b6fe['createRangeIn'](_0x4fc84a),_0x13b6fe['createPositionAt'](_0x515033,'end')),_0x13b6fe['remove'](_0x4fc84a);this['_footnotesDefinitions']=_0x515033,this['_updateFootnotesCounters'](_0x13b6fe),_0x3cf53e=!0x0;}else this['_footnotesDefinitions']=_0xfb7a34[0x0];}if(_0x1a5708['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x45c807 of this['_footnotes'])_0x13b6fe['remove'](_0x45c807['reference']),_0x3cf53e=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x3cf53e;}['_handleFootnoteDefinitionsChanges'](_0x596777,_0x52894a){let _0x5bb780=!0x1;const _0x4a0863=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x324580,moved:_0x42707e}=this['_footnoteDefsTracker']['getChanges'](_0x52894a);for(const _0x46abd9 of[..._0x42707e,..._0x324580]){const _0x527e94=_0x46abd9['getAttribute']('footnoteId'),_0x3bc88a=this['getFootnote'](_0x527e94);_0x3bc88a&&(_0x3bc88a['definition']=_0x46abd9),_(_0x596777,_0x4a0863,_0x46abd9)&&(_0x5bb780=!0x0);}return _0x5bb780;}['_handleFootnoteReferencesChanges'](_0x4e2d8e,_0x19236b){let _0x4484de=!0x1;const {removed:_0x4d6c3f,inserted:_0x4e006d,moved:_0x58d165}=this['_footnoteRefsTracker']['getChanges'](_0x19236b);for(const _0x1d6db4 of _0x4d6c3f)this['_handleRemoveFootnoteReferenceById'](_0x4e2d8e,_0x1d6db4)&&(_0x4484de=!0x0);for(const _0x4ca70a of _0x4e006d)this['_handleInsertedFootnoteReference'](_0x4e2d8e,_0x4ca70a)&&(_0x4484de=!0x0);for(const _0x31bc82 of _0x58d165)this['_handleMovedFootnoteReference'](_0x4e2d8e,_0x31bc82)&&(_0x4484de=!0x0);return _0x4484de;}['_handleFootnotesDefinitionsObjectSync'](_0xa7469d){if(!this['_footnotesDefinitions'])return!0x1;let _0x18cc4d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4a1c57=[];for(const _0x42bfc7 of this['_footnotesDefinitions']['getChildren']()){const _0xaf7eab=_0x42bfc7['getAttribute']('footnoteId');this['getFootnote'](_0xaf7eab)||(_0x4a1c57['unshift'](_0x42bfc7),_0x18cc4d=!0x0);}for(const _0x736043 of _0x4a1c57)_0xa7469d['remove'](_0x736043);}const _0x4c19dc=new Set(),_0x22f0ec=[];for(const _0x5ec999 of this['_footnotesDefinitions']['getChildren']()){const _0x6d5f7=_0x5ec999['getAttribute']('footnoteId');_0x4c19dc['has'](_0x6d5f7)?(_0x22f0ec['unshift'](_0x5ec999),_0x18cc4d=!0x0):_0x4c19dc['add'](_0x6d5f7);}for(const _0x1ecfd2 of _0x22f0ec)_0xa7469d['remove'](_0x1ecfd2);return this['_footnotesDefinitions']['childCount']||(_0xa7469d['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x18cc4d=!0x0),_0x18cc4d;}['_handleInsertedFootnoteReference'](_0x5128ea,_0x39ba53){if(this['_footnotes']['find'](_0x502fb7=>_0x502fb7['reference']===_0x39ba53))return!0x1;let _0x286ba6=!0x1;const _0x255c94=_0x39ba53['getAttribute']('footnoteId'),_0x234cce=this['_footnotes']['findIndex'](_0x123068=>_0x123068['id']===_0x255c94);-0x1!==_0x234cce&&(_0x5128ea['remove'](this['_footnotes'][_0x234cce]['reference']),this['_footnotes']['splice'](_0x234cce,0x1),_0x286ba6=!0x0);let _0x2495a0=this['_footnotesDefinitions']?function(_0x17c497,_0x35077d){for(const _0x4476bc of _0x17c497['getChildren']())if(_0x4476bc['getAttribute']('footnoteId')===_0x35077d)return _0x4476bc;return null;}(this['_footnotesDefinitions'],_0x255c94):null;_0x2495a0||(_0x2495a0=_0x5128ea['createElement']('footnoteDefinition',{'footnoteId':_0x255c94}),this['_footnotesDefinitions']&&(_0x5128ea['insert'](_0x2495a0,this['_footnotesDefinitions'],'end'),_0x286ba6=!0x0));const _0x3ebf51={'id':_0x255c94,'reference':_0x39ba53,'definition':_0x2495a0},_0x5cfbd2=I(this['editor']['model'],this['_footnotes'],_0x39ba53);this['_footnotes']['splice'](_0x5cfbd2,0x0,_0x3ebf51);let _0x139cc3=_0x5cfbd2;return-0x1!==_0x234cce&&(_0x139cc3=Math['min'](_0x5cfbd2,_0x234cce)),this['_updateFootnotesCounters'](_0x5128ea,_0x139cc3)&&(_0x286ba6=!0x0),_0x286ba6;}['_handleRemoveFootnoteReferenceById'](_0x4b027d,_0x27aa23){const _0x2d61c0=this['_footnotes']['findIndex'](_0x3cb70c=>_0x3cb70c['id']===_0x27aa23);if(-0x1===_0x2d61c0)return!0x1;let _0x4e418a=!0x1;const _0x391caf=this['_footnotes'][_0x2d61c0];return'$graveyard'!==_0x391caf['definition']['root']['rootName']&&(_0x4b027d['remove'](_0x391caf['definition']),_0x4e418a=!0x0),this['_footnotes']['splice'](_0x2d61c0,0x1),this['_updateFootnotesCounters'](_0x4b027d,_0x2d61c0)&&(_0x4e418a=!0x0),_0x4e418a;}['_handleMovedFootnoteReference'](_0x1dd1fb,_0x147437){const _0x3718fb=_0x147437['getAttribute']('footnoteId'),_0x3dbbf1=this['_footnotes']['findIndex'](_0x15dd6d=>_0x15dd6d['id']===_0x3718fb),_0x3367f7=this['_footnotes'][_0x3dbbf1];let _0x5ae481=!0x1;_0x3367f7['reference']=_0x147437,this['_footnotes']['splice'](_0x3dbbf1,0x1);const _0x3660ed=I(this['editor']['model'],this['_footnotes'],_0x147437);return this['_footnotes']['splice'](_0x3660ed,0x0,_0x3367f7),this['_updateFootnotesCounters'](_0x1dd1fb,Math['min'](_0x3dbbf1,_0x3660ed))&&(_0x5ae481=!0x0),_0x5ae481;}['_updateFootnoteRefCounter'](_0x11b7c0,_0x12dc8c){if(!this['_footnotesDefinitions'])return!0x1;const _0x3551fe=this['_footnotes'][_0x12dc8c];let _0x34d6ac;return _0x34d6ac=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x3551fe,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x12dc8c+0x1}):String(_0x12dc8c+0x1),_0x3551fe['reference']['getAttribute']('footnoteCounter')!=_0x34d6ac&&(_0x11b7c0['setAttribute']('footnoteCounter',_0x34d6ac,_0x3551fe['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x10640a){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x2e0807,_0x582b63){if(_0x2e0807['length']!==_0x582b63['length'])return!0x1;for(let _0x209f87=0x0;_0x209f87<_0x2e0807['length'];_0x209f87++)if(_0x2e0807[_0x209f87]!==_0x582b63[_0x209f87])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x49a0ff=>_0x49a0ff['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x623e94=>_0x623e94['getAttribute']('footnoteId'))))return!0x1;let _0x3da2c5=!0x1;for(let _0x186186=0x0;_0x186186<this['_footnotes']['length'];_0x186186++){const _0x439abd=this['_footnotes'][_0x186186],_0x214c74=_0x10640a['createPositionBefore'](_0x439abd['definition']),_0x38688a=_0x10640a['createPositionAt'](this['_footnotesDefinitions'],_0x186186);_0x214c74['isEqual'](_0x38688a)||(_0x10640a['move'](_0x10640a['createRangeOn'](_0x439abd['definition']),_0x38688a),_0x3da2c5=!0x0);}return _0x3da2c5;}['_ensureFootnotesReferencesHaveProperOrder'](_0x53730e){if(!this['_footnotes']['length'])return!0x1;const {model:_0x518577}=this['editor'];let _0x5c54fb=!0x1;for(let _0x4523eb=0x0;_0x4523eb<this['_footnotes']['length']-0x1;_0x4523eb++){const _0x434454=this['_footnotes'][_0x4523eb],_0x4160e5=this['_footnotes'][_0x4523eb+0x1],_0x2e4b39=_0x518577['createPositionBefore'](_0x434454['reference']),_0x1d5083=_0x518577['createPositionBefore'](_0x4160e5['reference']);'after'===_0x2e4b39['compareWith'](_0x1d5083)&&(this['_handleMovedFootnoteReference'](_0x53730e,_0x434454['reference']),_0x4523eb=-0x1,_0x5c54fb=!0x0);}return _0x5c54fb;}}function _(_0x80f79a,_0x43c852,_0x1dcdbc){if(_0x1dcdbc['childCount'])return!0x1;const _0x29fd02=_0x43c852?'paragraph':'footnoteInlineContent';return _0x80f79a['insert'](_0x80f79a['createElement'](_0x29fd02),_0x1dcdbc),!0x0;}function I(_0x131242,_0x46ff3a,_0x333c96){if(0x0===_0x46ff3a['length'])return 0x0;const _0x99a778=_0x131242['createPositionBefore'](_0x333c96);for(let _0x24b464=0x0;_0x24b464<_0x46ff3a['length'];_0x24b464++){const _0x282635=_0x46ff3a[_0x24b464],_0x21d440=_0x131242['createPositionBefore'](_0x282635['reference']);if('before'===_0x99a778['compareWith'](_0x21d440))return _0x24b464;}const _0x209044=_0x333c96['root'];let _0x44f6ec=-0x1;for(let _0x3acb77=_0x46ff3a['length']-0x1;_0x3acb77>=0x0;_0x3acb77--)if(_0x46ff3a[_0x3acb77]['reference']['root']===_0x209044){_0x44f6ec=_0x3acb77;break;}if(-0x1!==_0x44f6ec)return _0x44f6ec+0x1;const _0x3d75a1=_0x131242['document']['getRootNames'](),_0x1904cc=_0x3d75a1['indexOf'](_0x209044['rootName']),_0x22b359=_0x3d75a1[_0x1904cc+0x1];if(_0x22b359){for(let _0x4a2886=0x0;_0x4a2886<_0x46ff3a['length'];_0x4a2886++)if(_0x46ff3a[_0x4a2886]['reference']['root']['rootName']===_0x22b359)return _0x4a2886;}return _0x46ff3a['length'];}class h extends _0x156730{['refresh'](){const _0x2f368f=this['editor']['model']['document']['selection'],_0x30bebe=this['_getPositionToInsertFootnote'](_0x2f368f);this['isEnabled']=!!_0x30bebe;}['execute'](_0x1d0ff3){const {editor:_0x18ff14}=this,{model:_0x166adb}=_0x18ff14,{selection:_0x17167d}=_0x166adb['document'],_0x392abc=this['_getPositionToInsertFootnote'](_0x17167d);if(!_0x392abc)return;const _0xf09ffe=_0x18ff14['plugins']['get']('FootnotesEditing'),_0x4b9914=_0x1d0ff3?.['footnoteId']??_0x8dfd01();!function(_0x1ecfdf){return'string'==typeof _0x1ecfdf&&_0x1ecfdf['length']>0x0&&!/\s/['test'](_0x1ecfdf)&&!/^\d/['test'](_0x1ecfdf);}(_0x4b9914)?_0x13bbb7('insert-footnote-command-executed-with-invalid-id'):(_0x166adb['change'](_0x558094=>{const _0x268e09=_0x558094['createElement']('footnoteRef',{'footnoteId':_0x4b9914});_0x166adb['insertObject'](_0x268e09,_0x392abc,null);}),_0xf09ffe['_moveSelectionToFootnoteDefinition'](_0x4b9914));}['_getPositionToInsertFootnote'](_0xb86ff1){const {model:_0x3cfea4}=this['editor'],{schema:_0x2c0023}=_0x3cfea4,_0x40d73f=_0xb86ff1['getFirstRange']();for(const _0xa9287b of _0x40d73f['getItems']())if(_0x2c0023['isBlock'](_0xa9287b)||_0x2c0023['isObject'](_0xa9287b))return null;const _0x515ec1=_0x40d73f['end'];return _0x2c0023['checkChild'](_0x515ec1,'footnoteRef')?_0x515ec1:null;}}class r extends _0xc427b3{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x2df14d}=this;_0x2df14d['config']['define']('footnotes.multiBlock',!0x0),_0x2df14d['commands']['add']('insertFootnote',new h(_0x2df14d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x537b68){const _0x24ea43=_0x14a6c1([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]),_0x4bef5b=0x47a28506,_0x589ca6=0x47a5040e^_0x4bef5b,_0x926082=window[_0x14a6c1([0x44,0x61,0x74,0x65])][_0x14a6c1([0x6e,0x6f,0x77])](),_0x1c4b6d=_0x537b68[_0x14a6c1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1fde6b=new window[(_0x14a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x50dd23=>{_0x1c4b6d[_0x14a6c1([0x6f,0x6e,0x63,0x65])](_0x14a6c1([0x72,0x65,0x61,0x64,0x79]),_0x50dd23);}),_0xf4bd47={[_0x14a6c1([0x6b,0x74,0x79])]:_0x14a6c1([0x45,0x43]),[_0x14a6c1([0x75,0x73,0x65])]:_0x14a6c1([0x73,0x69,0x67]),[_0x14a6c1([0x63,0x72,0x76])]:_0x14a6c1([0x50,0x2d,0x32,0x35,0x36]),[_0x14a6c1([0x78])]:_0x14a6c1([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]),[_0x14a6c1([0x79])]:_0x14a6c1([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]),[_0x14a6c1([0x61,0x6c,0x67])]:_0x14a6c1([0x45,0x53,0x32,0x35,0x36])},_0x13ced1=_0x1c4b6d[_0x14a6c1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14a6c1([0x67,0x65,0x74])](_0x14a6c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d7d2d(){let _0x295597,_0x25f51d=null,_0x22fca6=null;try{if(_0x13ced1==_0x14a6c1([0x47,0x50,0x4c]))return _0x14a6c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x295597=_0x20722d(),!_0x295597)return _0x14a6c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x295597[_0x14a6c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x22fca6=_0x74baa1(_0x295597[_0x14a6c1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x295597[_0x14a6c1([0x6a,0x74,0x69])])),await _0x3a5f80()?_0x2dec3b()?_0x3a3891()?_0x14a6c1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x4a5559()?(_0x295597[_0x14a6c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14a6c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x25f51d=_0x380048(_0x14a6c1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a9250()):_0x14a6c1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14a6c1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14a6c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14a6c1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3a3891(){const _0x4ad885=[_0x14a6c1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14a6c1([0x74,0x72,0x69,0x61,0x6c])][_0x14a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x295597[_0x14a6c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x926082/0x3e8:0xe10*_0x589ca6;return _0x295597[_0x14a6c1([0x65,0x78,0x70])]<_0x4ad885;}function _0x2dec3b(){const _0x1645d1=_0x295597[_0x14a6c1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1645d1&&(!!_0x1645d1[_0x14a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14a6c1([0x2a]))||!!_0x1645d1[_0x14a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14a6c1([0x46,0x4f,0x4f])));}function _0x4a5559(){const _0x27a7c0=_0x295597[_0x14a6c1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x27a7c0||0x0==_0x27a7c0[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e02bf}=new URL(window[_0x14a6c1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x27a7c0[_0x14a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e02bf))return!0x0;const _0x4af0bf=_0x5e02bf[_0x14a6c1([0x73,0x70,0x6c,0x69,0x74])](_0x14a6c1([0x2e]));return _0x27a7c0[_0x14a6c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x57e8b1=>_0x57e8b1[_0x14a6c1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14a6c1([0x2a])))[_0x14a6c1([0x6d,0x61,0x70])](_0x29dc6a=>_0x29dc6a[_0x14a6c1([0x73,0x70,0x6c,0x69,0x74])](_0x14a6c1([0x2e])))[_0x14a6c1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x590caf=>_0x590caf[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4af0bf[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14a6c1([0x6d,0x61,0x70])](_0x3c06de=>Array(_0x4af0bf[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3c06de[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14a6c1([0x66,0x69,0x6c,0x6c])](_0x3c06de[0x0]===_0x14a6c1([0x2a])?_0x14a6c1([0x2a]):'')[_0x14a6c1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3c06de))[_0x14a6c1([0x73,0x6f,0x6d,0x65])](_0x20bc5c=>_0x4af0bf[_0x14a6c1([0x65,0x76,0x65,0x72,0x79])]((_0x1d8f51,_0x54e3f1)=>_0x20bc5c[_0x54e3f1]===_0x1d8f51||_0x20bc5c[_0x54e3f1]===_0x14a6c1([0x2a])));}function _0x3a9250(){return _0x25f51d&&_0x22fca6?new window[(_0x14a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x30fb55,_0x5cd40a)=>{_0x25f51d[_0x14a6c1([0x74,0x68,0x65,0x6e])](_0x30fb55,_0x5cd40a),_0x22fca6[_0x14a6c1([0x74,0x68,0x65,0x6e])](_0x2b1cd6=>{_0x2b1cd6!=_0x14a6c1([0x56,0x61,0x6c,0x69,0x64])&&_0x30fb55(_0x2b1cd6);},_0x5cd40a);}):_0x25f51d||_0x22fca6||_0x14a6c1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x74baa1(_0x52d6cb,_0x5a3c94){return new window[(_0x14a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x7652ff=>{if(_0x50b9ea())return _0x7652ff(_0x14a6c1([0x56,0x61,0x6c,0x69,0x64]));_0xb66679(),_0x1c4b6d[_0x14a6c1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14a6c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x208a1e=!0x1;const _0x4f8950=_0x8dfd01();function _0x21d082(_0x1ad944){return!!_0x1ad944&&(typeof _0x1ad944===_0x14a6c1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1ad944===_0x14a6c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1ad944[_0x14a6c1([0x74,0x68,0x65,0x6e])]===_0x14a6c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1ad944[_0x14a6c1([0x63,0x61,0x74,0x63,0x68])]===_0x14a6c1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x8af3a5(_0x11c31e){_0x5a7c14(_0x11c31e)[_0x14a6c1([0x74,0x68,0x65,0x6e])](_0x39cc08=>{if(!_0x39cc08||_0x39cc08[_0x14a6c1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14a6c1([0x6f,0x6b]))return _0x14a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x12799e(_0xcff4f6(_0x4f8950+_0x5a3c94))!=_0x39cc08[_0x14a6c1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14a6c1([0x56,0x61,0x6c,0x69,0x64]);})[_0x14a6c1([0x74,0x68,0x65,0x6e])](_0x1d1170=>(_0x996720(),_0x1d1170),()=>{const _0x2f42c3=_0x59f132();return null==_0x2f42c3?(_0x996720(),_0x14a6c1([0x56,0x61,0x6c,0x69,0x64])):_0x14a6c1(_0x926082-_0x2f42c3>(0x63ae0106^_0x4bef5b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14a6c1([0x74,0x68,0x65,0x6e])](_0x7652ff)[_0x14a6c1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x7652ff(_0x14a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5e756a=0x47946b86^_0x4bef5b;function _0x996720(){const _0x39c251=_0x14a6c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x12799e(_0xcff4f6(_0x52d6cb)),_0x1c2ea5=_0x50e6fa(_0x12799e(window[_0x14a6c1([0x4d,0x61,0x74,0x68])][_0x14a6c1([0x63,0x65,0x69,0x6c])](_0x926082/_0x5e756a)));window[_0x14a6c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14a6c1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x39c251,_0x1c2ea5);}function _0x59f132(){const _0x1c7ffc=_0x14a6c1([0x6c,0x6c,0x63,0x74,0x2d])+_0x12799e(_0xcff4f6(_0x52d6cb)),_0x2fffac=window[_0x14a6c1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14a6c1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1c7ffc);return _0x2fffac?window[_0x14a6c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x50e6fa(_0x2fffac),0x10)*_0x5e756a:null;}function _0x5a7c14(_0xcab9f8){return new window[(_0x14a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x54baea,_0x52a413)=>{_0xcab9f8[_0x14a6c1([0x74,0x68,0x65,0x6e])](_0x54baea,_0x52a413),window[_0x14a6c1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52a413,0x47a351c6^_0x4bef5b);});}}_0x1c4b6d[_0x14a6c1([0x6f,0x6e])](_0x14a6c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4abfc7,_0x493c91)=>{if(_0x493c91[0x0]!=_0x52d6cb)return _0x7652ff(_0x14a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x493c91[0x1]={..._0x493c91[0x1],[_0x14a6c1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4f8950};},{[_0x14a6c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14a6c1([0x68,0x69,0x67,0x68])}),_0x1c4b6d[_0x14a6c1([0x6f,0x6e])](_0x14a6c1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1259e4=>{_0x21d082(_0x1259e4[_0x14a6c1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x208a1e=!0x0,_0x8af3a5(_0x1259e4[_0x14a6c1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14a6c1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14a6c1([0x6c,0x6f,0x77])}),_0x1fde6b[_0x14a6c1([0x74,0x68,0x65,0x6e])](()=>{_0x208a1e||_0x7652ff(_0x14a6c1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50b9ea(){return _0x1c4b6d[_0x14a6c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14a6c1([0x76,0x69,0x65,0x77])][_0x14a6c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14a6c1([0x61,0x75,0x74,0x6f]);}function _0xb66679(){_0x1c4b6d[_0x14a6c1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14a6c1([0x76,0x69,0x65,0x77])][_0x14a6c1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14a6c1([0x61,0x75,0x74,0x6f]);}}function _0x380048(_0x57a5a3){const _0x5da3c3=[new window[(_0x14a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x28bc9d=>setTimeout(_0x28bc9d,0x47abbbca^_0x4bef5b)),_0x1fde6b[_0x14a6c1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x56e705=>{let _0x1caa1c=0x0;_0x1c4b6d[_0x14a6c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x14a6c1([0x6f,0x6e])](_0x14a6c1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5195cd,_0x3b27d6)=>{_0x3b27d6[0x0][_0x14a6c1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1caa1c++,_0x1caa1c==(0x47a280ee^_0x4bef5b)&&(_0x56e705(),_0x5195cd[_0x14a6c1([0x6f,0x66,0x66])]());});}))];return window[_0x14a6c1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14a6c1([0x72,0x61,0x63,0x65])](_0x5da3c3)[_0x14a6c1([0x74,0x68,0x65,0x6e])](()=>_0x57a5a3);}async function _0x3b644d(){await _0x1fde6b,_0x1c4b6d[_0x14a6c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x14a6c1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1b7244,_0x1c4b6d[_0x14a6c1([0x6d,0x6f,0x64,0x65,0x6c])][_0x14a6c1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1b7244,_0x1c4b6d[_0x14a6c1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14a6c1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1811da(_0x11a9ba){const _0x19b739=_0x28f708();_0x1c4b6d[_0x19b739]=_0x14a6c1([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x11a9ba,_0x11a9ba!=_0x14a6c1([0x56,0x61,0x6c,0x69,0x64])&&_0x3b644d();}function _0x28f708(){const _0x182926=window[_0x14a6c1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14a6c1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14a6c1([0x6e,0x6f,0x77])]())[_0x14a6c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14a6c1([0x2e]),'');let _0x20bf42=_0x14a6c1([0x75]);for(let _0x4f9229=0x0;_0x4f9229<_0x182926[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4f9229+=0x2){let _0x1288c1=window[_0x14a6c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x182926[_0x14a6c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x4f9229,_0x4f9229+0x2));_0x1288c1>=_0x24ea43[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1288c1-=_0x24ea43[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x20bf42+=_0x24ea43[_0x1288c1];}return _0x20bf42;}function _0x20722d(){const _0x4711cc=_0x13ced1[_0x14a6c1([0x73,0x70,0x6c,0x69,0x74])](_0x14a6c1([0x2e]));if(0x3!=_0x4711cc[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x681258(_0x4711cc[0x1]);function _0x681258(_0x39b719){const _0x145780=_0x385c82(_0x39b719);return _0x145780&&_0x528b34()?_0x145780:null;function _0x528b34(){const _0x1e553f=_0x145780[_0x14a6c1([0x6a,0x74,0x69])],_0xa5d8d5=window[_0x14a6c1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1e553f[_0x14a6c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1e553f[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2cd45c={..._0x145780,[_0x14a6c1([0x6a,0x74,0x69])]:_0x1e553f[_0x14a6c1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1e553f[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2cd45c[_0x14a6c1([0x76,0x63])],_0xcff4f6(_0x2cd45c)==_0xa5d8d5;}}}async function _0x3a5f80(){let _0xc08f51=!0x0;try{const _0x32c23e=_0x13ced1[_0x14a6c1([0x73,0x70,0x6c,0x69,0x74])](_0x14a6c1([0x2e])),[_0x424be6,_0xc82f02,_0x4417ce]=_0x32c23e;return _0x16d02d(_0x424be6),await _0x3230d3(_0x424be6,_0xc82f02,_0x4417ce),_0xc08f51;}catch{return!0x1;}function _0x16d02d(_0x580f8d){const _0x49c4bf=_0x385c82(_0x580f8d);_0x49c4bf&&_0x49c4bf[_0x14a6c1([0x61,0x6c,0x67])]==_0x14a6c1([0x45,0x53,0x32,0x35,0x36])||(_0xc08f51=!0x1);}async function _0x3230d3(_0xa994a6,_0x1b77fe,_0x39feef){const _0x4860dd=window[_0x14a6c1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14a6c1([0x66,0x72,0x6f,0x6d])](_0x1ef6c9(_0x39feef),_0xe421fb=>_0xe421fb[_0x14a6c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3acbfc=new window[(_0x14a6c1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14a6c1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa994a6+_0x14a6c1([0x2e])+_0x1b77fe),_0x17debd=window[_0x14a6c1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14a6c1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x17debd)return;const _0x10d017=await _0x17debd[_0x14a6c1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14a6c1([0x6a,0x77,0x6b]),_0xf4bd47,{[_0x14a6c1([0x6e,0x61,0x6d,0x65])]:_0x14a6c1([0x45,0x43,0x44,0x53,0x41]),[_0x14a6c1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14a6c1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14a6c1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x17debd[_0x14a6c1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14a6c1([0x6e,0x61,0x6d,0x65])]:_0x14a6c1([0x45,0x43,0x44,0x53,0x41]),[_0x14a6c1([0x68,0x61,0x73,0x68])]:{[_0x14a6c1([0x6e,0x61,0x6d,0x65])]:_0x14a6c1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x10d017,_0x4860dd,_0x3acbfc)||(_0xc08f51=!0x1);}}function _0x385c82(_0xa08a71){return _0xa08a71[_0x14a6c1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14a6c1([0x65,0x79]))?JSON[_0x14a6c1([0x70,0x61,0x72,0x73,0x65])](_0x1ef6c9(_0xa08a71)):null;}function _0x1ef6c9(_0x51d16c){return window[_0x14a6c1([0x61,0x74,0x6f,0x62])](_0x51d16c[_0x14a6c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14a6c1([0x2b]))[_0x14a6c1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14a6c1([0x2f])));}function _0xcff4f6(_0x2c4e90){let _0x483085=0x1505;function _0x300694(_0x5a9474){for(let _0x280dfc=0x0;_0x280dfc<_0x5a9474[_0x14a6c1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x280dfc++){const _0x399c41=_0x5a9474[_0x14a6c1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x280dfc);_0x483085=(_0x483085<<0x5)+_0x483085+_0x399c41,_0x483085&=_0x483085;}}function _0x2c5617(_0x50d994){Array[_0x14a6c1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x50d994)?_0x50d994[_0x14a6c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2c5617):_0x50d994&&typeof _0x50d994==_0x14a6c1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14a6c1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x50d994)[_0x14a6c1([0x73,0x6f,0x72,0x74])]()[_0x14a6c1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x303f96,_0x1d5348])=>{_0x300694(_0x303f96),_0x2c5617(_0x1d5348);}):_0x300694(window[_0x14a6c1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x50d994));}return _0x2c5617(_0x2c4e90),_0x483085>>>0x0;}function _0x12799e(_0x3d411a){return _0x3d411a[_0x14a6c1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14a6c1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14a6c1([0x30]));}function _0x50e6fa(_0x4e48fd){return _0x4e48fd[_0x14a6c1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14a6c1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14a6c1([0x6a,0x6f,0x69,0x6e])]('');}function _0x1b7244(){}function _0x14a6c1(_0x5c4005){return _0x5c4005['map'](_0x50ac23=>String['fromCharCode'](_0x50ac23))['join']('');}_0x1811da(await _0x3d7d2d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4ccb6d){const {plugins:_0x52503f,editing:_0x33a66a,model:_0x1fb748}=this['editor'],_0x109f15=_0x52503f['get'](f)['getFootnote'](_0x4ccb6d);return!!_0x109f15&&(_0x1fb748['change'](_0x261b67=>{_0x261b67['setSelection'](_0x261b67['createPositionAt'](_0x109f15['definition'],'end'));}),_0x33a66a['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x27d819){const {plugins:_0x3c13b2,editing:_0x2149f7,model:_0x285db4}=this['editor'],_0x359810=_0x3c13b2['get'](f)['getFootnote'](_0x27d819);return!!_0x359810&&(_0x285db4['change'](_0x453e6f=>{_0x453e6f['setSelection'](_0x359810['reference'],'on');}),_0x2149f7['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x203a47}=this['editor']['model'],_0x39d349=this['editor']['config']['get']('footnotes.multiBlock');_0x203a47['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x203a47['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x203a47['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x39d349?_0x203a47['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x203a47['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x203a47['addChildCheck'](_0x975808=>{for(const _0xc4a0a of _0x975808)if('footnoteDefinition'===_0xc4a0a['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x2d931e}=this,{conversion:_0x5614fc,editing:_0x29e8da}=_0x2d931e,{t:t}=_0x2d931e['locale'];_0x5614fc['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xa60f1c,{writer:_0x6b707b,consumable:_0x59cf3a})=>{const _0x3437ad=_0xa60f1c['getChild'](0x0);if(!_0x3437ad||!_0x3437ad['is']('element','a'))return null;const _0x4bcbef=_0x3437ad['getAttribute']('href')||'';if(!_0x4bcbef['startsWith']('#'))return null;const _0x201198=_0x4bcbef['replace'](/^#/,'');if(!_0x201198)return null;_0x59cf3a['consume'](_0x3437ad,{'name':!0x0,'attributes':['href']});for(const {item:_0x4fc9b8}of _0x29e8da['view']['createRangeIn'](_0x3437ad))_0x4fc9b8['is']('$textProxy')?_0x59cf3a['consume'](_0x4fc9b8['textNode'],{'name':!0x0}):_0x4fc9b8['is']('element')&&_0x59cf3a['consume'](_0x4fc9b8,{'name':!0x0});return _0x6b707b['createElement']('footnoteRef',{'footnoteId':_0x201198});}}),_0x5614fc['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5192d5,{writer:_0x5a992e})=>b(_0x5192d5,_0x5a992e)}),_0x5614fc['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x7a09,{writer:_0x3ea8bc})=>{const _0x39aedc=_0x7a09['getAttribute']('footnoteCounter');return _0x465b88(b(_0x7a09,_0x3ea8bc),_0x3ea8bc,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x39aedc)});}});}['_defineDefinitionsConverters'](){const {editor:_0x4575ef}=this,{t:t}=_0x4575ef['locale'],{conversion:_0x52f06f}=_0x4575ef;_0x52f06f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x52f06f['for']('upcast')['add'](_0x1c156b=>{_0x1c156b['on']('element:ol',(_0x47086f,_0x56e8ca,_0x54a79e)=>{const _0x4930a9=_0x56e8ca['viewItem'];if(!_0x4930a9['hasClass']('footnotes-list')||!_0x56e8ca['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x54a79e['consumable']['consume'](_0x4930a9,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5cd51e,modelCursor:_0x3d5d53}=_0x54a79e['convertChildren'](_0x56e8ca['viewItem'],_0x56e8ca['modelCursor']);_0x56e8ca['modelRange']=_0x5cd51e,_0x56e8ca['modelCursor']=_0x3d5d53;}),_0x1c156b['on']('element:hr',(_0x560669,_0x4dfbea,_0x76d684)=>{const _0x53cdd8=_0x4dfbea['viewItem'];_0x53cdd8['hasClass']('footnotes-divider')&&_0x4dfbea['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x76d684['consumable']['consume'](_0x53cdd8,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x52f06f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x444196,{writer:_0x1da6ef})=>D(_0x1da6ef)}),_0x52f06f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1d20e7,{writer:_0x406e5f})=>{const _0x63d7e5=D(_0x406e5f,{'data-footnotes-list-label':t('Footnotes')}),_0x52eec7=_0x465b88(_0x63d7e5,_0x406e5f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x406e5f['setCustomProperty']('footnotesDefinitions',!0x0,_0x52eec7),_0x52eec7;}});}['_defineDefinitionConverters'](){const {editor:_0x4f2f61}=this,{conversion:_0x2c634b,locale:_0x577ea3}=_0x4f2f61,_0x24cfcd=_0x4f2f61['config']['get']('footnotes.multiBlock');_0x2c634b['for']('upcast')['add'](_0x316cdd=>{_0x316cdd['on']('element:li',(_0x1b34a4,_0x336fe0,_0x193856)=>{const _0x475108=_0x336fe0['viewItem'];if(!_0x475108['hasClass']('footnote-definition')||!_0x475108['getAttribute']('id'))return;const _0xa2c6eb=_0x475108['parent'];if(!_0xa2c6eb['is']('element','ol')||!_0xa2c6eb['hasClass']('footnotes-list'))return;if(!_0x193856['consumable']['test'](_0x475108,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x170cd4=_0x193856['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x475108['getAttribute']('id')});if(!_0x193856['safeInsert'](_0x170cd4,_0x336fe0['modelCursor']))return;_0x193856['consumable']['consume'](_0x475108,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x177c9a=Array['from'](_0x475108['getChildren']())['find'](_0x191a31=>_0x191a31['is']('element')&&_0x191a31['hasClass']('footnote-content'));for(const _0xc97f44 of _0x475108['getChildren']())_0xc97f44['is']('element')&&(_0x193856['consumable']['consume'](_0xc97f44,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x193856['consumable']['consume'](_0xc97f44,{'name':!0x0,'classes':'footnote-content'}));if(_0x177c9a){if(_0x24cfcd)_0x193856['convertChildren'](_0x177c9a,_0x170cd4);else{const _0x4b2425=_0x193856['writer']['createElement']('footnoteInlineContent');_0x193856['writer']['insert'](_0x4b2425,_0x170cd4),_0x193856['convertChildren'](_0x177c9a,_0x4b2425);}}_0x193856['updateConversionResult'](_0x170cd4,_0x336fe0);});}),_0x2c634b['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x543162,{writer:_0x1628f5})=>y(_0x543162,_0x1628f5,_0x577ea3,{'dataPipeline':!0x0})}),_0x2c634b['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0xd06943,{writer:_0x5ea878})=>y(_0xd06943,_0x5ea878,_0x577ea3)});}['_defineBogusParagraphConverters'](){const {editor:_0x245fb4}=this,{conversion:_0x3dd0e6}=_0x245fb4;_0x245fb4['config']['get']('footnotes.multiBlock')?(_0x3dd0e6['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3dd0e6['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x245fb4['model']['document'],'change:data',()=>{!function(_0x822892,_0x116fa0){const _0x5b4123=_0x822892['document']['differ'],_0x46dc44=new Set();for(const _0x452201 of _0x5b4123['getChanges']()){const _0x489349='attribute'==_0x452201['type']?_0x452201['range']['start']['parent']:_0x452201['position']['parent'];_0x489349['is']('element','footnoteDefinition')&&_0x46dc44['add'](_0x489349);}for(const _0x381c30 of _0x46dc44['values']()){const _0x81d21d=Array['from'](_0x381c30['getChildren']())['filter'](_0x55f99e=>v(_0x55f99e,_0x116fa0['mapper']));for(const _0x4c1d35 of _0x81d21d)_0x116fa0['reconvertItem'](_0x4c1d35);}}(_0x245fb4['model'],_0x245fb4['editing']);})):(_0x3dd0e6['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3dd0e6['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xe65b60,{writer:_0x37c675})=>{const _0x42a6c1=_0x37c675['createContainerElement']('span');return _0x37c675['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x42a6c1),_0x42a6c1;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2f84d8}=this,{editing:_0x191888,t:t}=_0x2f84d8,_0x1eb027=_0x2f84d8['model']['document']['selection'];_0x2f84d8['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2f84d8['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x191888['view']['document'],'enter',(_0x484bed,_0x411a28)=>{const _0x2cc8d1=function(_0xa5056c){const _0x4ae12f=_0xa5056c['getSelectedElement']();if(_0x4ae12f?.['is']('element','footnoteRef'))return _0x4ae12f;return null;}(_0x1eb027);if(_0x2cc8d1){const _0x17d1af=_0x2cc8d1['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x17d1af),_0x411a28['preventDefault'](),_0x484bed['stop']();}},{'context':_0x14f188});}['_defineClickHandlers'](){const {editor:_0x443245}=this,{editing:_0x899423}=_0x443245;_0x443245['editing']['view']['addObserver'](_0x72adff),_0x443245['editing']['view']['addObserver'](_0x40b81d);let _0x3b16e8=!0x1;this['listenTo'](_0x899423['view']['document'],'pointerdown',(_0x3dbbce,_0x364ea5)=>{const {target:_0x5353b9}=_0x364ea5,_0x3391b7=_0x899423['view']['document']['selection'];_0x3b16e8=!!(_0x5353b9?.['is']('element','a')&&_0x5353b9['parent']?.['is']('element','sup')&&_0x5353b9['parent']['hasClass']('footnote'))&&_0x3391b7['getSelectedElement']()===_0x5353b9['parent'];},{'priority':'high'}),this['listenTo'](_0x899423['view']['document'],'click',(_0x226c19,_0x375bce)=>{const {target:_0x31583c}=_0x375bce;if(!_0x31583c?.['is']('element','a'))return;if(_0x31583c['parent']?.['is']('element','sup')&&_0x31583c['parent']['hasClass']('footnote')&&!_0x3b16e8)return void _0x375bce['preventDefault']();let _0x122e79=_0x31583c['getAttribute']('href');if(!_0x122e79?.['startsWith']('#'))return;_0x122e79=_0x122e79['slice'](0x1);let _0x511146=!0x1;(_0x122e79['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x122e79['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x122e79))&&(_0x511146=!0x0),_0x511146&&(_0x375bce['preventDefault'](),_0x226c19['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x13699d}={}){return(_0x52f145,{writer:_0x298481})=>{if(!g(_0x52f145))return null;if(!_0x13699d)return _0x298481['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4860a6=_0x298481['createContainerElement']('p');return _0x298481['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4860a6),_0x4860a6;};}function g(_0x363918){const {parent:_0x1b7c6c}=_0x363918;if(!_0x1b7c6c?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1b7c6c['childCount'])return!0x1;for(const _0x2c1144 of _0x363918['getAttributeKeys']())if(!_0x2c1144['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2c1144)return!0x1;return!0x0;}function v(_0x123e03,_0x305d8e){if(!_0x123e03['is']('element','paragraph'))return!0x1;const _0x5d6164=_0x305d8e['toViewElement'](_0x123e03);return!!_0x5d6164&&g(_0x123e03)!==_0x5d6164['is']('element','span');}function Q(_0x465a9d){return _0x14f188(_0x465a9d)&&_0x465a9d['is']('containerElement')&&!!_0x465a9d['getCustomProperty']('footnotesDefinitions');}function D(_0x58f4d4,_0x11aeb4={}){const _0x1e7b27=_0x58f4d4['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x27c33d=_0x58f4d4['createContainerElement']('ol',{'class':'footnotes-list'},_0x58f4d4['createSlot']());return _0x58f4d4['createContainerElement']('div',{'class':'footnotes',..._0x11aeb4},[_0x1e7b27,_0x27c33d]);}function b(_0x1189cd,_0x15b622){const _0x4e57e8=_0x1189cd['getAttribute']('footnoteId'),_0x4e8b91=_0x1189cd['getAttribute']('footnoteCounter'),_0x360d1d=_0x15b622['createUIElement']('a',{'href':'#'+_0x4e57e8},function(_0x46e5be){const _0x8d4250=this['toDomElement'](_0x46e5be);return _0x8d4250['textContent']=_0x4e8b91,_0x8d4250;}),_0x139d00=_0x15b622['createContainerElement']('sup',{'id':'ref-'+_0x4e57e8,'class':'footnote'},[_0x360d1d]);return _0x139d00['getFillerOffset']=()=>null,_0x139d00;}function y(_0x12c256,_0x18df69,_0x5a3f7d,{dataPipeline:_0xfccbb9}={}){const {t:t}=_0x5a3f7d,_0x5bd241=_0x12c256['getAttribute']('footnoteId'),_0x125835=_0x18df69['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5bd241},function(_0x26d33b){const _0x413ef5=this['toDomElement'](_0x26d33b);return _0x413ef5['innerText']='^',_0x413ef5;}),_0x48fbf1=_0xfccbb9?_0x18df69['createContainerElement']('div',{'class':'footnote-content'}):_0x130635(_0x18df69['createEditableElement']('div',{'class':'footnote-content'}),_0x18df69,{'label':t('Footnote\x20content.')});return _0x18df69['insert'](_0x18df69['createPositionAt'](_0x48fbf1,0x0),_0x18df69['createSlot']()),_0x18df69['createContainerElement']('li',{'class':'footnote-definition','id':_0x5bd241},[_0x125835,_0x48fbf1]);}class e extends _0xc427b3{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x2e9876];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x15f065}=this,{plugins:_0x406167,model:_0x5ef33a}=_0x15f065,_0x38c1c1=_0x406167['get'](_0x2e9876),_0x54014b=_0x406167['get'](f);this['listenTo'](_0x38c1c1,'outputTransformation',(_0x81103e,_0x466e54)=>{const _0x321910=l(_0x5ef33a['createRangeIn'](_0x466e54['content']));if(!_0x321910['length'])return;const _0x22b7ba=_0x54014b['getFootnotes'](),_0x21906f=_0x321910['reduce']((_0x3c58ad,_0x2bfe15)=>{const _0x1031f6=_0x22b7ba['find'](_0x96e7eb=>_0x96e7eb['id']===_0x2bfe15);if(_0x1031f6){const _0x2f767b=_0x15f065['data']['toView'](_0x1031f6['definition'],{'isClipboardPipeline':!0x0}),_0xe7a6a8=_0x15f065['data']['htmlProcessor']['toData'](_0x2f767b);_0x3c58ad[_0x1031f6['id']]=_0xe7a6a8;}return _0x3c58ad;},Object['create'](null));_0x466e54['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x21906f));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x19d63c}=this,{model:_0x484d8b,plugins:_0xb46b1b}=_0x19d63c,{view:_0x2c258f}=_0x19d63c['editing'],_0x39c7ac=_0xb46b1b['get'](_0x2e9876),_0x569e88=_0xb46b1b['get'](f),_0x5bcef3=_0x19d63c['config']['get']('footnotes.multiBlock');let _0x4e96c7=null;this['listenTo'](_0x2c258f['document'],'clipboardInput',(_0x3b5c86,_0x46423f)=>{const _0x591e60=_0x46423f['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x4e96c7=_0x591e60?JSON['parse'](_0x591e60):null;}),this['listenTo'](_0x39c7ac,'contentInsertion',(_0x38dbcf,_0x6283fa)=>{const _0x3d1b2d=_0x6283fa['sourceEditorId']===this['editor']['id'];_0x3d1b2d&&'drop'===_0x6283fa['method']||_0x484d8b['change'](_0x46bfaf=>{let _0xc5d958=_0x569e88['getFootnotesDefinitionsObjectElement']();const _0x472502=!!_0xc5d958&&Array['from'](_0x484d8b['document']['selection']['getSelectedBlocks']())['includes'](_0xc5d958);if(!_0x4e96c7&&function(_0x342ca5){for(const {item:_0x134d6a}of _0x342ca5)if(_0x134d6a['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x484d8b['createRangeIn'](_0x6283fa['content']))&&(_0x4e96c7=function(_0x57fb00,_0x2277a1){const _0x1d921a=c(_0x57fb00,_0x2277a1);if(!_0x1d921a)return null;const _0x1b7fb1=Object['create'](null);for(const _0x147a98 of _0x1d921a['getChildren']())_0x147a98['is']('element','footnoteDefinition')&&_0x147a98['hasAttribute']('footnoteId')&&(_0x1b7fb1[_0x147a98['getAttribute']('footnoteId')]=_0x57fb00['cloneElement'](_0x147a98,!0x0));return Object['keys'](_0x1b7fb1)['length']?_0x1b7fb1:null;}(_0x46bfaf,_0x6283fa['content'])),(_0xc5d958&&!_0x472502||!_0xc5d958&&!_0x4e96c7)&&function(_0x4bd1c3,_0x53a20f){const _0x40e1fb=[];for(const {item:_0x3f4175}of _0x4bd1c3['createRangeIn'](_0x53a20f))_0x3f4175['is']('element','footnotesDefinitions')&&_0x40e1fb['push'](_0x3f4175);for(const _0x25e8c2 of _0x40e1fb)_0x4bd1c3['remove'](_0x25e8c2);}(_0x46bfaf,_0x6283fa['content']),!_0x4e96c7)return;const {selection:_0x2a0e03}=_0x484d8b['document'],_0x2ba62e=_0x2a0e03['getFirstRange']()['root'];_0xc5d958&&!_0x472502||(_0xc5d958=c(_0x46bfaf,_0x6283fa['content']),_0xc5d958||=_0x569e88['_insertEmptyFootnotesDefinitionsContainer'](_0x46bfaf,_0x2ba62e));const _0x5c0767=Array['from'](_0x2a0e03['getRanges']())['flatMap'](l),_0x2e90e9=function(_0x5183a9,_0x3a243d,_0x5eb75d){const _0x27be2c=Object['create'](null);for(const {item:_0x1ca27d}of _0x5183a9['createRangeIn'](_0x3a243d))if(_0x1ca27d['is']('element','footnoteRef')){const _0x433c03=_0x1ca27d['getAttribute']('footnoteId');if(!_0x5eb75d(_0x433c03))continue;_0x27be2c[_0x433c03]||(_0x27be2c[_0x433c03]=_0x8dfd01()),_0x5183a9['setAttribute']('footnoteId',_0x27be2c[_0x433c03],_0x1ca27d);}return _0x27be2c;}(_0x46bfaf,_0x6283fa['content'],_0x479731=>{if(!_0x3d1b2d)return!0x0;return!!_0x569e88['getFootnote'](_0x479731)&&!_0x5c0767['includes'](_0x479731);});for(const [_0x55cbce,_0x3cce9a]of Object['entries'](_0x4e96c7)){const _0x426cfc=_0x2e90e9[_0x55cbce]||_0x55cbce;let _0x4a03dc;if('string'!=typeof _0x3cce9a)_0x4a03dc=_0x3cce9a,_0x426cfc!==_0x55cbce&&_0x46bfaf['setAttribute']('footnoteId',_0x426cfc,_0x4a03dc);else{_0x4a03dc=_0x46bfaf['createElement']('footnoteDefinition',{'footnoteId':_0x426cfc});const _0x46264d=_0x19d63c['data']['htmlProcessor']['toView'](_0x3cce9a);let _0x11019d;if(_0x5bcef3)_0x11019d=_0x19d63c['data']['toModel'](_0x46264d,_0x4a03dc);else{_0x11019d=_0x46bfaf['createElement']('footnoteInlineContent');const _0x597ba9=_0x19d63c['data']['toModel'](_0x46264d,_0x11019d);_0x46bfaf['insert'](_0x597ba9,_0x11019d);}_0x46bfaf['append'](_0x11019d,_0x4a03dc);}_0x46bfaf['insert'](_0x4a03dc,_0xc5d958,'end');}_0x4e96c7=null;});});}}function c(_0x2b8eb2,_0x313967){for(const {item:_0x1f2480}of _0x2b8eb2['createRangeIn'](_0x313967))if(_0x1f2480['is']('element','footnotesDefinitions'))return _0x1f2480;return null;}function l(_0x3fc15d){const _0x118930=new Set();for(const {item:_0x1d661a}of _0x3fc15d)_0x1d661a['is']('element','footnoteRef')&&_0x118930['add'](_0x1d661a['getAttribute']('footnoteId'));return Array['from'](_0x118930);}class i extends _0xc427b3{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4d096c}=this,{componentFactory:_0x21eddd}=_0x4d096c['ui'];_0x21eddd['add']('insertFootnote',E(_0x4d096c,_0x459df5)),_0x21eddd['add']('menuBar:insertFootnote',E(_0x4d096c,_0x3cbe22)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x15703f=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xb44b42;for(const _0xf3dab3 in _0x15703f){const _0x4594f2=_0xf3dab3,_0x357db2=_0x15703f[_0x4594f2];if('footnotesLicenseKeyValid'==_0x357db2||'footnotesLicenseKeyInvalid'==_0x357db2||'footnotesLicenseKeyExpired'==_0x357db2||'footnotesLicenseKeyDomainLimit'==_0x357db2||'footnotesLicenseKeyNotAllowed'==_0x357db2||'footnotesLicenseKeyEvaluationLimit'==_0x357db2||'footnotesLicenseKeyUsageLimit'==_0x357db2){delete _0x15703f[_0x4594f2],_0xb44b42=_0x357db2,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xb44b42&&_0x15703f['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xb44b42&&_0x15703f['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xb44b42&&_0x15703f['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xb44b42&&_0x15703f['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xb44b42&&_0x15703f['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xb44b42&&_0x15703f['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x1e4ecd,_0x19a65a){const _0x57caff=_0x1e4ecd['commands']['get']('insertFootnote');return _0x3616c7=>{const {t:t}=_0x3616c7,_0x5d2b84=new _0x19a65a(_0x3616c7),_0x1450ea=_0x5d2b84 instanceof _0x3cbe22;return _0x5d2b84['bind']('isEnabled')['to'](_0x57caff,'isEnabled'),_0x5d2b84['set']({'label':t(_0x1450ea?'Footnote':'Insert\x20footnote'),'icon':_0x141b9b,'tooltip':!0x0}),_0x5d2b84['on']('execute',()=>{_0x57caff['execute'](),_0x1e4ecd['editing']['view']['focus']();}),_0x5d2b84;};}class lt extends _0xc427b3{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 _0x156730{['refresh'](){const {editor:_0xfe2af8}=this,_0x59e7b6=_0xfe2af8['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x59e7b6,this['value']=_0x59e7b6?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x14eb0a}){const {editor:_0x4bf4e0}=this,_0x24aec4=_0x4bf4e0['plugins']['get'](f),_0xd23f6d=_0x24aec4['getFootnotesDefinitionsObjectElement']();_0xd23f6d&&W['includes'](_0x14eb0a)&&_0x4bf4e0['model']['change'](_0x5c2a9d=>{_0x5c2a9d['setAttribute']('footnotesListStyle',_0x14eb0a,_0xd23f6d),_0x24aec4['_updateFootnotesCounters'](_0x5c2a9d);});}}class C extends _0x156730{['refresh'](){const {editor:_0x17b2cb}=this,_0x32b8ed=_0x17b2cb['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x32b8ed,this['value']=_0x32b8ed?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x8abb86}){const {editor:_0x39f19a}=this,_0x1590ab=_0x39f19a['plugins']['get'](f),_0xce92b3=_0x1590ab['getFootnotesDefinitionsObjectElement']();_0xce92b3&&Number['isInteger'](_0x8abb86)&&_0x39f19a['model']['change'](_0x353406=>{_0x353406['setAttribute']('footnotesListStart',_0x8abb86,_0xce92b3),_0x1590ab['_updateFootnotesCounters'](_0x353406);});}}class P extends _0xc427b3{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xf1c40f}=this;_0xf1c40f['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0xf1c40f['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0xf1c40f['commands']['add']('footnotesStyle',new S(_0xf1c40f)),_0xf1c40f['commands']['add']('footnotesStart',new C(_0xf1c40f)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x12b4e3}=this,{schema:_0x737fab}=_0x12b4e3['model'];_0x737fab['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x2a1696}=this,{conversion:_0x1be863,model:_0x440a05}=_0x2a1696,{schema:_0x274325}=_0x440a05;_0x1be863['for']('upcast')['add'](_0x5e5c67=>{_0x5e5c67['on']('element:ol',(_0x303b68,_0x46bf2e,_0x3033ae)=>{const _0x2d7d8e=_0x46bf2e['viewItem'],_0xef4dcc=_0x46bf2e['modelCursor']?.['parent'];_0x2d7d8e['hasClass']('footnotes-list')&&_0xef4dcc?.['is']('element','footnotesDefinitions')&&(function(_0x5e44d6,_0x14bc94,_0x213c0b,_0x373b96){if(!_0x373b96['checkAttribute'](_0x14bc94,'footnotesListStart'))return;let _0xabaa5f=0x1;const _0x145070=_0x213c0b['consumable']['consume'](_0x5e44d6,{'attributes':'start'});if(_0x145070){const _0x9287ff=Number['parseInt'](_0x5e44d6['getAttribute']('start'),0xa);Number['isNaN'](_0x9287ff)||(_0xabaa5f=_0x9287ff);}!_0x145070&&_0x14bc94['hasAttribute']('footnotesListStart')||_0x213c0b['writer']['setAttribute']('footnotesListStart',_0xabaa5f,_0x14bc94);}(_0x2d7d8e,_0xef4dcc,_0x3033ae,_0x274325),function(_0x351105,_0x42c040,_0x302184,_0x12ca32){if(!_0x12ca32['checkAttribute'](_0x42c040,'footnotesListStyle'))return;let _0x25729c='decimal',_0x5e0f9c=!0x1;if(_0x302184['consumable']['consume'](_0x351105,{'attributes':'type'})){const _0x38cb0d={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x351105['getAttribute']('type')];_0x38cb0d&&(_0x25729c=_0x38cb0d),_0x5e0f9c=!0x0;}_0x302184['consumable']['consume'](_0x351105,{'styles':'list-style-type'})&&(_0x25729c=function(_0x4dcdf2){switch(_0x4dcdf2){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x4dcdf2;}}(_0x351105['getStyle']('list-style-type')),_0x5e0f9c=!0x0),!_0x5e0f9c&&_0x42c040['hasAttribute']('footnotesListStyle')||_0x302184['writer']['setAttribute']('footnotesListStyle',_0x25729c,_0x42c040);}(_0x2d7d8e,_0xef4dcc,_0x3033ae,_0x274325));});}),_0x1be863['for']('downcast')['add'](_0x353283=>{_0x353283['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x476d68,_0x2d1d1c,_0x379a2f)=>{if(!_0x379a2f['consumable']['consume'](_0x2d1d1c['item'],_0x476d68['name']))return;const _0x86dcb1=M(_0x2d1d1c['item'],_0x379a2f['mapper']),{attributeNewValue:_0x3a7bae}=_0x2d1d1c;null==_0x3a7bae||0x1===_0x3a7bae?_0x379a2f['writer']['removeAttribute']('start',_0x86dcb1):_0x379a2f['writer']['setAttribute']('start',String(_0x3a7bae),_0x86dcb1);}),_0x353283['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x436d94,_0x12e3d3,_0x4d9340)=>{if(!_0x4d9340['consumable']['consume'](_0x12e3d3['item'],_0x436d94['name']))return;const _0x458477=M(_0x12e3d3['item'],_0x4d9340['mapper']),{attributeNewValue:_0x1d8375}=_0x12e3d3;_0x1d8375&&'decimal'!==_0x1d8375?_0x4d9340['writer']['setStyle']('list-style-type',_0x1d8375,_0x458477):_0x4d9340['writer']['removeStyle']('list-style-type',_0x458477);});});}['_definePostfixer'](){const {editor:_0x8bdc54}=this,{model:_0xe20180}=_0x8bdc54,_0x1e4e01=_0x8bdc54['plugins']['get'](f),_0x5b6bfe=this['_getDefaultListStyle'](),_0x31a685=this['_getDefaultStartIndex']();_0xe20180['document']['registerPostFixer'](_0x369efd=>{const _0x1f1694=_0xe20180['document']['differ']['getChanges']();let _0x3160bb=!0x1;for(const _0x5c87aa of _0x1f1694){if('insert'!==_0x5c87aa['type']||'$text'===_0x5c87aa['name'])continue;const _0x166f08=_0xe20180['createRangeOn'](_0x5c87aa['position']['nodeAfter']);for(const _0x238405 of _0x166f08['getItems']())_0x238405['is']('element','footnotesDefinitions')&&(!_0x238405['hasAttribute']('footnotesListStart')&&_0xe20180['schema']['checkAttribute'](_0x238405,'footnotesListStart')&&(_0x369efd['setAttribute']('footnotesListStart',_0x31a685,_0x238405),_0x3160bb=!0x0),!_0x238405['hasAttribute']('footnotesListStyle')&&_0xe20180['schema']['checkAttribute'](_0x238405,'footnotesListStyle')&&(_0x369efd['setAttribute']('footnotesListStyle',_0x5b6bfe,_0x238405),_0x3160bb=!0x0));}return _0x3160bb&&_0x1e4e01['_updateFootnotesCounters'](_0x369efd),_0x3160bb;});}['_defineFormatter'](){const {editor:_0x328b6a}=this;_0x328b6a['plugins']['get'](f)['setFootnoteFormatter'](_0x507d09=>this['_formatFootnoteListValue'](_0x507d09));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x9993f5,value:_0x9a4965,digits:_0x3f7e23}){const _0x57edcd=_0x9993f5['getAttribute']('footnotesListStyle'),_0x4243e2=_0x9993f5['getAttribute']('footnotesListStart'),_0x5763be=Math['floor'](_0x9a4965)+(_0x4243e2??0x1)-0x1;switch(_0x57edcd){case'decimal-leading-zero':return function(_0x1c6e09,_0x1dc8d){return String(_0x1c6e09)['padStart'](_0x1dc8d,'0');}(_0x5763be,Math['max'](0x2,_0x3f7e23));case'lower-alpha':case'lower-latin':return N(_0x5763be,!0x1);case'upper-alpha':case'upper-latin':return N(_0x5763be,!0x0);case'lower-roman':return X(_0x5763be,!0x1);case'upper-roman':return X(_0x5763be,!0x0);default:return String(_0x5763be);}}}function M(_0x26909a,_0x6da36a){const _0x31623a=_0x6da36a['toViewElement'](_0x26909a);return Array['from'](_0x31623a['getChildren']())['find'](_0x466428=>_0x466428['is']('element','ol')&&_0x466428['hasClass']('footnotes-list'));}function N(_0x24b056,_0x4e26dc){let _0x7a0cd9='',_0x3db6b5=_0x24b056;for(;_0x3db6b5>0x0;){const _0x5993f9=(_0x3db6b5-0x1)%0x1a;_0x7a0cd9=String['fromCharCode'](0x61+_0x5993f9)+_0x7a0cd9,_0x3db6b5=Math['floor']((_0x3db6b5-0x1)/0x1a);}return _0x4e26dc?_0x7a0cd9['toUpperCase']():_0x7a0cd9;}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(_0x15d65d,_0x28c3a5){let _0x26c3a9='',_0x82d8b7=_0x15d65d;for(const {value:_0x32643a,numeral:_0x2e721c}of V)for(;_0x82d8b7>=_0x32643a;)_0x26c3a9+=_0x2e721c,_0x82d8b7-=_0x32643a;return _0x28c3a5?_0x26c3a9:_0x26c3a9['toLowerCase']();}class J extends _0x5b0f6e{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x215386();['focusCycler'];constructor(_0x1fe598,{styleButtonViews:_0x5d5e4a,styleGridAriaLabel:_0x4bdf82}){super(_0x1fe598),(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'](_0x5d5e4a,_0x4bdf82),[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 _0x2aa351 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2aa351['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 _0x1bf00c=_0x161bbf=>_0x161bbf['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1bf00c),this['keystrokes']['set']('arrowleft',_0x1bf00c),this['keystrokes']['set']('arrowup',_0x1bf00c),this['keystrokes']['set']('arrowdown',_0x1bf00c);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x373205,_0x48ef2e){const _0x338895=new _0x5b0f6e(this['locale']);return _0x338895['children']=_0x338895['createCollection'](),_0x338895['children']['addMany'](_0x373205),_0x338895['setTemplate']({'tag':'div','attributes':{'aria-label':_0x48ef2e,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x338895['children']}),_0x338895['children']['delegate']('execute')['to'](this),_0x338895['focus']=function(){for(const _0x17ec4f of this['children'])if(_0x17ec4f instanceof _0x459df5&&_0x17ec4f['isOn'])return void _0x17ec4f['focus']();this['children']['first']['focus']();},_0x338895['focusTracker']=new rt(),_0x338895['keystrokes']=new nt(),_0x338895['render'](),_0x338895['keystrokes']['listenTo'](_0x338895['element']),this['children']['add'](_0x338895),_0x338895;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x70c9d6=this['_createStartIndexPropertyView'](),_0x25c1ec=[_0x70c9d6],_0x5d0387=new it(this['locale'],_0x25c1ec);return _0x5d0387['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x5d0387['buttonView']['bind']('isEnabled')['toMany'](_0x25c1ec,'isEnabled',(..._0x4487e8)=>_0x4487e8['some'](_0xeac388=>_0xeac388)),_0x5d0387['buttonView']['on']('change:isEnabled',(_0x380692,_0x1d3ea9,_0x2c09fd)=>{_0x2c09fd||(_0x5d0387['isCollapsed']=!0x0);}),this['children']['add'](_0x5d0387),[_0x70c9d6,_0x5d0387];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x35bb16=new et(this['locale'],ot);return _0x35bb16['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x35bb16['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x35bb16['fieldView']['on']('input',()=>{const _0x122e0f=_0x35bb16['fieldView']['element'],_0x3836e8=_0x122e0f['valueAsNumber'];Number['isNaN'](_0x3836e8)?_0x35bb16['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x122e0f['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3836e8}):_0x35bb16['errorText']=t(_0x3836e8<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x35bb16;}}class j extends _0xc427b3{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x5aee44,_0x2d9ce9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50d446}=this,{componentFactory:_0x1d05cf}=_0x50d446['ui'];_0x50d446['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1d05cf['add']('footnotesStyle',function(_0x19706d){return _0x53e51e=>{const {t:t}=_0x53e51e,_0xfd1f96=_0x19706d['commands']['get']('footnotesStyle'),_0x3a0da2=_0x40c154(_0x53e51e),{buttonView:_0x4cb5bd}=_0x3a0da2;return _0x3a0da2['class']='ck-footnotes-styles-dropdown',_0x3a0da2['bind']('isEnabled')['to'](_0xfd1f96,'isEnabled'),_0x4cb5bd['set']({'label':t('Footnotes\x20style'),'icon':_0x141b9b,'tooltip':!0x0}),_0x3a0da2['once']('change:isOpen',()=>{const _0x48894f=function({editor:_0x36028d,dropdownView:_0x4cc1ac}){const {t:t}=_0x36028d['locale'],_0x57840c=t('Footnotes\x20definitions\x20styles'),_0xafd5a7=function(_0x411fc6){const t=_0x411fc6['locale']['t'],_0x4ff6a8=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x4b7e7d},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x40d847},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x1c4fa7},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x1dd5c0},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4a4a79},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x42018a}];return _0x4ff6a8['map'](function(_0x4d07c9){const _0x5e90d9=_0x4d07c9['locale'];return({label:_0x385dbb,icon:_0x1d7447,tooltip:_0x5301f7,style:_0x5d5f7f})=>{const _0x3347d7=_0x4d07c9['commands']['get']('footnotesStyle'),_0x201ee9=new _0x459df5(_0x5e90d9);return _0x201ee9['set']({'label':_0x385dbb,'icon':_0x1d7447,'tooltip':_0x5301f7}),_0x201ee9['bind']('isOn')['to'](_0x3347d7,'value',_0x1816a0=>_0x1816a0===_0x5d5f7f),_0x201ee9['bind']('isEnabled')['to'](_0x3347d7,'isEnabled'),_0x201ee9['on']('execute',()=>{_0x4d07c9['execute']('footnotesStyle',{'value':_0x5d5f7f}),_0x4d07c9['editing']['view']['focus']();}),_0x201ee9;};}(_0x411fc6));}(_0x36028d),_0x3cfc56=new J(_0x36028d['locale'],{'styleGridAriaLabel':_0x57840c,'styleButtonViews':_0xafd5a7}),_0x517d40=_0x36028d['commands']['get']('footnotesStart');return _0x3cfc56['startIndexFieldView']['bind']('isEnabled')['to'](_0x517d40),_0x3cfc56['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x517d40),_0x3cfc56['on']('footnotesListStart',(_0x20c52d,_0x1961fd)=>{_0x36028d['execute']('footnotesStart',{'value':_0x1961fd['startIndex']});}),_0x3cfc56['delegate']('execute')['to'](_0x4cc1ac),_0x3cfc56;}({'editor':_0x19706d,'dropdownView':_0x3a0da2});_0x3a0da2['panelView']['children']['add'](_0x48894f);}),_0x3a0da2;};}(_0x50d446));}['afterInit'](){const {editor:_0x5f1f5b}=this,{t:t}=_0x5f1f5b['locale'],_0x3f1f75=_0x5f1f5b['plugins']['get'](_0x2d9ce9),{defaultPositions:_0x1db885}=_0x31c946;_0x3f1f75['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5f1f5b['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x332e82=>{let _0x39b2ae=_0x332e82['getFirstPosition']()?.['parent'];return _0x39b2ae?.['is']('$text')&&(_0x39b2ae=_0x39b2ae['parent']),_0x39b2ae?.['is']('element')?_0x39b2ae['findAncestor'](Q):null;},'positions':[_0x1db885['southArrowNorth'],_0x1db885['southArrowNorthMiddleWest'],_0x1db885['southArrowNorthMiddleEast'],_0x1db885['southArrowNorthWest'],_0x1db885['southArrowNorthEast'],_0x1db885['northArrowSouth'],_0x1db885['northArrowSouthMiddleWest'],_0x1db885['northArrowSouthMiddleEast'],_0x1db885['northArrowSouthWest'],_0x1db885['northArrowSouthEast'],_0x1db885['viewportStickyNorth']]});}}class ft extends _0xc427b3{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 _0x19d282,Command as _0x5dcd72}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1e629c,isWidget as _0x1b91e8,toWidgetEditable as _0x168b8d,WidgetToolbarRepository as _0x485e67}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x494e29,logWarning as _0x388350,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0xfda84c,ClickObserver as _0x455301}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x1c55f9}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0xac728b,ButtonView as _0x57e31b,View as _0x3f35c4,ViewCollection as _0x34314c,FocusCycler as _0x5aa4bf,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x3d3e38,BalloonPanelView as _0x39994f,createDropdown as _0x27e3e8}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x59fbc4,IconListStyleDecimal as _0x3ef62f,IconListStyleDecimalLeadingZero as _0x1e4f2c,IconListStyleLowerRoman as _0xde1ffd,IconListStyleUpperRoman as _0xad5bad,IconListStyleLowerLatin as _0x185c0d,IconListStyleUpperLatin as _0x8b695d}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x406fa2,_0x16b1a6){this['_model']=_0x406fa2,this['_elementName']=_0x16b1a6['elementName'],this['_getElementKey']=_0x16b1a6['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3d7bc7){const _0x107f35=new Set(),_0x260e42=new Map();for(const _0x34c23f of _0x3d7bc7){if('insert'===_0x34c23f['type']&&'$text'!==_0x34c23f['name']&&_0x34c23f['position']['nodeAfter']){const _0x23167f=this['_model']['createRangeOn'](_0x34c23f['position']['nodeAfter']);for(const _0x3fa77e of _0x23167f['getItems']()){if(!_0x3fa77e['is']('element',this['_elementName']))continue;const _0x5737f2=this['_getElementKey'](_0x3fa77e);_0x260e42['has'](_0x5737f2)||_0x260e42['set'](_0x5737f2,[]),_0x260e42['get'](_0x5737f2)['push'](_0x3fa77e);}}if('remove'===_0x34c23f['type']&&_0x34c23f['name']===this['_elementName']){const _0x7ead75=this['_getElementKey']({'getAttribute':_0x5df005=>_0x34c23f['attributes']['get'](_0x5df005)});_0x107f35['add'](_0x7ead75);}}for(const [_0x16d2b6,_0x5f48a0]of this['_trackedElements'])'$graveyard'===_0x5f48a0['root']['rootName']&&_0x107f35['add'](_0x16d2b6);for(const _0x97782e of _0x107f35)this['_trackedElements']['delete'](_0x97782e);for(const [_0x44dbcc,_0xcf7b82]of _0x260e42)this['_trackedElements']['set'](_0x44dbcc,_0xcf7b82[_0xcf7b82['length']-0x1]);const _0x3fa4c6=new Set();for(const [_0xb6436c,_0x4272e8]of _0x260e42)_0x107f35['has'](_0xb6436c)&&(_0x3fa4c6['add'](_0x4272e8[0x0]),_0x4272e8['length']>0x1?_0x260e42['set'](_0xb6436c,_0x4272e8['slice'](0x1)):_0x260e42['delete'](_0xb6436c),_0x107f35['delete'](_0xb6436c));return{'removed':Array['from'](_0x107f35),'inserted':Array['from'](_0x260e42['values']())['flat'](),'moved':Array['from'](_0x3fa4c6)};}}class f extends _0x19d282{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x52d629){super(_0x52d629),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x45e8e3=>_0x45e8e3['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5e7389=>_0x5e7389['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4897cb}=this,{model:_0x5a385c,data:_0x3a8df7}=_0x4897cb;_0x5a385c['document']['registerPostFixer'](_0x2027a6=>{const _0x3aee73=_0x5a385c['document']['differ']['getChanges']();let _0x232ea2=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2027a6,_0x3aee73)&&(_0x232ea2=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2027a6,_0x3aee73)&&(_0x232ea2=!0x0),this['_handleFootnoteReferencesChanges'](_0x2027a6,_0x3aee73)&&(_0x232ea2=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2027a6)&&(_0x232ea2=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2027a6)&&(_0x232ea2=!0x0),this['_sortFootnoteDefinitions'](_0x2027a6)&&(_0x232ea2=!0x0),_0x232ea2;}),this['listenTo'](_0x5a385c['document'],'change:data',()=>{_0x5a385c['enqueueChange']({'isUndoable':!0x1},_0x380515=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x380515);});},{'priority':'low'}),this['listenTo'](_0x3a8df7,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x32bb27){return this['_footnotes']['find'](_0x50ff84=>_0x50ff84['id']===_0x32bb27)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x47abac){this['_footnoteFormatter']=_0x47abac;}['_updateFootnotesCounters'](_0x4be667,_0x8d147d=0x0){let _0x173ed1=!0x1;for(let _0x2bf587=_0x8d147d;_0x2bf587<this['_footnotes']['length'];_0x2bf587++)this['_updateFootnoteRefCounter'](_0x4be667,_0x2bf587)&&(_0x173ed1=!0x0);return _0x173ed1;}['_insertEmptyFootnotesDefinitionsContainer'](_0x4a32f3,_0x242370){const _0x51880b=_0x4a32f3['createElement']('footnotesDefinitions',{});return _0x4a32f3['append'](_0x51880b,_0x242370),this['_footnotesDefinitions']=_0x51880b,_0x51880b;}['_ensureFootnotesDefinitionsContainerExists'](_0x6c09d5){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x835b4c=this['_footnotes'][0x0]['reference']['root'],_0x5abbe1=this['_insertEmptyFootnotesDefinitionsContainer'](_0x6c09d5,_0x835b4c);for(const _0x6f5788 of this['_footnotes'])_0x6f5788['definition']['parent']||_0x6c09d5['insert'](_0x6f5788['definition'],_0x5abbe1,'end');this['_updateFootnotesCounters'](_0x6c09d5);}['_handleFootnotesDefinitionsObjectChanges'](_0x132960,_0x20089c){let _0x23c5f0=!0x1;const {inserted:_0x3344d4,removed:_0x4deb6f,moved:_0x3a7e29}=this['_footnoteDefsContainerTracker']['getChanges'](_0x20089c);if(_0x3a7e29['length']&&(this['_footnotesDefinitions']=_0x3a7e29[0x0]),_0x3344d4['length']){if(_0x3344d4['length']>0x1||this['_footnotesDefinitions']&&_0x3344d4['some'](_0x134b03=>_0x134b03!==this['_footnotesDefinitions'])){const _0xfb1233=_0x132960['createElement']('footnotesDefinitions',{}),_0x25df2a=[];this['_footnotesDefinitions']&&_0x25df2a['push'](this['_footnotesDefinitions']),_0x25df2a['push'](..._0x3344d4),_0x132960['insert'](_0xfb1233,_0x25df2a[0x0],'before');for(const _0x20e911 of _0x25df2a)_0x132960['move'](_0x132960['createRangeIn'](_0x20e911),_0x132960['createPositionAt'](_0xfb1233,'end')),_0x132960['remove'](_0x20e911);this['_footnotesDefinitions']=_0xfb1233,this['_updateFootnotesCounters'](_0x132960),_0x23c5f0=!0x0;}else this['_footnotesDefinitions']=_0x3344d4[0x0];}if(_0x4deb6f['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x19be48 of this['_footnotes'])_0x132960['remove'](_0x19be48['reference']),_0x23c5f0=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x23c5f0;}['_handleFootnoteDefinitionsChanges'](_0x1db84c,_0x32143a){let _0x4e7918=!0x1;const _0x2bf728=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4dc5ef,moved:_0x3aafa2}=this['_footnoteDefsTracker']['getChanges'](_0x32143a);for(const _0x3de677 of[..._0x3aafa2,..._0x4dc5ef]){const _0x512007=_0x3de677['getAttribute']('footnoteId'),_0x4527a8=this['getFootnote'](_0x512007);_0x4527a8&&(_0x4527a8['definition']=_0x3de677),_(_0x1db84c,_0x2bf728,_0x3de677)&&(_0x4e7918=!0x0);}return _0x4e7918;}['_handleFootnoteReferencesChanges'](_0x3f92ec,_0x1afb10){let _0x56f794=!0x1;const {removed:_0x16b0af,inserted:_0x393a42,moved:_0x3f5b1c}=this['_footnoteRefsTracker']['getChanges'](_0x1afb10);for(const _0xc5e71e of _0x16b0af)this['_handleRemoveFootnoteReferenceById'](_0x3f92ec,_0xc5e71e)&&(_0x56f794=!0x0);for(const _0xbf6cc2 of _0x393a42)this['_handleInsertedFootnoteReference'](_0x3f92ec,_0xbf6cc2)&&(_0x56f794=!0x0);for(const _0x593387 of _0x3f5b1c)this['_handleMovedFootnoteReference'](_0x3f92ec,_0x593387)&&(_0x56f794=!0x0);return _0x56f794;}['_handleFootnotesDefinitionsObjectSync'](_0x1ea76e){if(!this['_footnotesDefinitions'])return!0x1;let _0x5afce4=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x4e75b1=[];for(const _0x29c885 of this['_footnotesDefinitions']['getChildren']()){const _0x197df3=_0x29c885['getAttribute']('footnoteId');this['getFootnote'](_0x197df3)||(_0x4e75b1['unshift'](_0x29c885),_0x5afce4=!0x0);}for(const _0x242296 of _0x4e75b1)_0x1ea76e['remove'](_0x242296);}const _0x563637=new Set(),_0x1aff72=[];for(const _0x192952 of this['_footnotesDefinitions']['getChildren']()){const _0x8ce623=_0x192952['getAttribute']('footnoteId');_0x563637['has'](_0x8ce623)?(_0x1aff72['unshift'](_0x192952),_0x5afce4=!0x0):_0x563637['add'](_0x8ce623);}for(const _0x7d71c8 of _0x1aff72)_0x1ea76e['remove'](_0x7d71c8);return this['_footnotesDefinitions']['childCount']||(_0x1ea76e['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5afce4=!0x0),_0x5afce4;}['_handleInsertedFootnoteReference'](_0x24dea5,_0x344590){if(this['_footnotes']['find'](_0x260f7e=>_0x260f7e['reference']===_0x344590))return!0x1;let _0x747719=!0x1;const _0x12f609=_0x344590['getAttribute']('footnoteId'),_0xfa7df7=this['_footnotes']['findIndex'](_0x4922d9=>_0x4922d9['id']===_0x12f609);-0x1!==_0xfa7df7&&(_0x24dea5['remove'](this['_footnotes'][_0xfa7df7]['reference']),this['_footnotes']['splice'](_0xfa7df7,0x1),_0x747719=!0x0);let _0x11c515=this['_footnotesDefinitions']?function(_0x46c173,_0x52bd98){for(const _0x4968b6 of _0x46c173['getChildren']())if(_0x4968b6['getAttribute']('footnoteId')===_0x52bd98)return _0x4968b6;return null;}(this['_footnotesDefinitions'],_0x12f609):null;_0x11c515||(_0x11c515=_0x24dea5['createElement']('footnoteDefinition',{'footnoteId':_0x12f609}),this['_footnotesDefinitions']&&(_0x24dea5['insert'](_0x11c515,this['_footnotesDefinitions'],'end'),_0x747719=!0x0));const _0x23922e={'id':_0x12f609,'reference':_0x344590,'definition':_0x11c515},_0x31bff9=I(this['editor']['model'],this['_footnotes'],_0x344590);this['_footnotes']['splice'](_0x31bff9,0x0,_0x23922e);let _0x1d9918=_0x31bff9;return-0x1!==_0xfa7df7&&(_0x1d9918=Math['min'](_0x31bff9,_0xfa7df7)),this['_updateFootnotesCounters'](_0x24dea5,_0x1d9918)&&(_0x747719=!0x0),_0x747719;}['_handleRemoveFootnoteReferenceById'](_0x1222ca,_0x6809fe){const _0x3bba25=this['_footnotes']['findIndex'](_0x455a1e=>_0x455a1e['id']===_0x6809fe);if(-0x1===_0x3bba25)return!0x1;let _0x42a236=!0x1;const _0x9d4ffe=this['_footnotes'][_0x3bba25];return'$graveyard'!==_0x9d4ffe['definition']['root']['rootName']&&(_0x1222ca['remove'](_0x9d4ffe['definition']),_0x42a236=!0x0),this['_footnotes']['splice'](_0x3bba25,0x1),this['_updateFootnotesCounters'](_0x1222ca,_0x3bba25)&&(_0x42a236=!0x0),_0x42a236;}['_handleMovedFootnoteReference'](_0x31f18b,_0x2ab23a){const _0x86c9a2=_0x2ab23a['getAttribute']('footnoteId'),_0x1b9ff3=this['_footnotes']['findIndex'](_0x5049c0=>_0x5049c0['id']===_0x86c9a2),_0x3bda1a=this['_footnotes'][_0x1b9ff3];let _0xb0ac7c=!0x1;_0x3bda1a['reference']=_0x2ab23a,this['_footnotes']['splice'](_0x1b9ff3,0x1);const _0x4fc190=I(this['editor']['model'],this['_footnotes'],_0x2ab23a);return this['_footnotes']['splice'](_0x4fc190,0x0,_0x3bda1a),this['_updateFootnotesCounters'](_0x31f18b,Math['min'](_0x1b9ff3,_0x4fc190))&&(_0xb0ac7c=!0x0),_0xb0ac7c;}['_updateFootnoteRefCounter'](_0x3289bb,_0xbd19fe){if(!this['_footnotesDefinitions'])return!0x1;const _0x366271=this['_footnotes'][_0xbd19fe];let _0x13dd67;return _0x13dd67=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x366271,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xbd19fe+0x1}):String(_0xbd19fe+0x1),_0x366271['reference']['getAttribute']('footnoteCounter')!=_0x13dd67&&(_0x3289bb['setAttribute']('footnoteCounter',_0x13dd67,_0x366271['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x57a609){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x371d6e,_0x492bd8){if(_0x371d6e['length']!==_0x492bd8['length'])return!0x1;for(let _0x5b2f0e=0x0;_0x5b2f0e<_0x371d6e['length'];_0x5b2f0e++)if(_0x371d6e[_0x5b2f0e]!==_0x492bd8[_0x5b2f0e])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3ed112=>_0x3ed112['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x29c03a=>_0x29c03a['getAttribute']('footnoteId'))))return!0x1;let _0x2e7d2d=!0x1;for(let _0x1f5a67=0x0;_0x1f5a67<this['_footnotes']['length'];_0x1f5a67++){const _0x5da777=this['_footnotes'][_0x1f5a67],_0x3ec313=_0x57a609['createPositionBefore'](_0x5da777['definition']),_0xebdae4=_0x57a609['createPositionAt'](this['_footnotesDefinitions'],_0x1f5a67);_0x3ec313['isEqual'](_0xebdae4)||(_0x57a609['move'](_0x57a609['createRangeOn'](_0x5da777['definition']),_0xebdae4),_0x2e7d2d=!0x0);}return _0x2e7d2d;}['_ensureFootnotesReferencesHaveProperOrder'](_0x16b953){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5dcce2}=this['editor'];let _0x46a957=!0x1;for(let _0x2f040d=0x0;_0x2f040d<this['_footnotes']['length']-0x1;_0x2f040d++){const _0x1085d9=this['_footnotes'][_0x2f040d],_0x1acfd7=this['_footnotes'][_0x2f040d+0x1],_0x2095e8=_0x5dcce2['createPositionBefore'](_0x1085d9['reference']),_0x304382=_0x5dcce2['createPositionBefore'](_0x1acfd7['reference']);'after'===_0x2095e8['compareWith'](_0x304382)&&(this['_handleMovedFootnoteReference'](_0x16b953,_0x1085d9['reference']),_0x2f040d=-0x1,_0x46a957=!0x0);}return _0x46a957;}}function _(_0x2b1ac3,_0x20c52e,_0x16001b){if(_0x16001b['childCount'])return!0x1;const _0x5ad36f=_0x20c52e?'paragraph':'footnoteInlineContent';return _0x2b1ac3['insert'](_0x2b1ac3['createElement'](_0x5ad36f),_0x16001b),!0x0;}function I(_0x206d0b,_0x35dd20,_0x40d937){if(0x0===_0x35dd20['length'])return 0x0;const _0x5c2510=_0x206d0b['createPositionBefore'](_0x40d937);for(let _0x37f243=0x0;_0x37f243<_0x35dd20['length'];_0x37f243++){const _0x3d11de=_0x35dd20[_0x37f243],_0x19e00b=_0x206d0b['createPositionBefore'](_0x3d11de['reference']);if('before'===_0x5c2510['compareWith'](_0x19e00b))return _0x37f243;}const _0x25d483=_0x40d937['root'];let _0x4502a1=-0x1;for(let _0x508e86=_0x35dd20['length']-0x1;_0x508e86>=0x0;_0x508e86--)if(_0x35dd20[_0x508e86]['reference']['root']===_0x25d483){_0x4502a1=_0x508e86;break;}if(-0x1!==_0x4502a1)return _0x4502a1+0x1;const _0x5f4f50=_0x206d0b['document']['getRootNames'](),_0xa0ea97=_0x5f4f50['indexOf'](_0x25d483['rootName']),_0xbdec92=_0x5f4f50[_0xa0ea97+0x1];if(_0xbdec92){for(let _0x5c1310=0x0;_0x5c1310<_0x35dd20['length'];_0x5c1310++)if(_0x35dd20[_0x5c1310]['reference']['root']['rootName']===_0xbdec92)return _0x5c1310;}return _0x35dd20['length'];}class h extends _0x5dcd72{['refresh'](){const _0x54290e=this['editor']['model']['document']['selection'],_0x28d198=this['_getPositionToInsertFootnote'](_0x54290e);this['isEnabled']=!!_0x28d198;}['execute'](_0x152245){const {editor:_0x3b7f41}=this,{model:_0xf508e6}=_0x3b7f41,{selection:_0x1ebeea}=_0xf508e6['document'],_0x37a2f8=this['_getPositionToInsertFootnote'](_0x1ebeea);if(!_0x37a2f8)return;const _0x300a98=_0x3b7f41['plugins']['get']('FootnotesEditing'),_0x4237d6=_0x152245?.['footnoteId']??_0x494e29();!function(_0x4e13d8){return'string'==typeof _0x4e13d8&&_0x4e13d8['length']>0x0&&!/\s/['test'](_0x4e13d8)&&!/^\d/['test'](_0x4e13d8);}(_0x4237d6)?_0x388350('insert-footnote-command-executed-with-invalid-id'):(_0xf508e6['change'](_0x504758=>{const _0x1375da=_0x504758['createElement']('footnoteRef',{'footnoteId':_0x4237d6});_0xf508e6['insertObject'](_0x1375da,_0x37a2f8,null);}),_0x300a98['_moveSelectionToFootnoteDefinition'](_0x4237d6));}['_getPositionToInsertFootnote'](_0xde42b2){const {model:_0xc58709}=this['editor'],{schema:_0x407e64}=_0xc58709,_0x163890=_0xde42b2['getFirstRange']();for(const _0x3b988b of _0x163890['getItems']())if(_0x407e64['isBlock'](_0x3b988b)||_0x407e64['isObject'](_0x3b988b))return null;const _0x1bf8fa=_0x163890['end'];return _0x407e64['checkChild'](_0x1bf8fa,'footnoteRef')?_0x1bf8fa:null;}}class r extends _0x19d282{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5984de}=this;_0x5984de['config']['define']('footnotes.multiBlock',!0x0),_0x5984de['commands']['add']('insertFootnote',new h(_0x5984de)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x25879f){const _0x2b54ba=_0x23ae18([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]),_0x5d2d89=0x47a28506,_0x2a8940=0x47a5043e^_0x5d2d89,_0x54f086=window[_0x23ae18([0x44,0x61,0x74,0x65])][_0x23ae18([0x6e,0x6f,0x77])](),_0xd12d5e=_0x25879f[_0x23ae18([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x1cc962=new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x45a9c9=>{_0xd12d5e[_0x23ae18([0x6f,0x6e,0x63,0x65])](_0x23ae18([0x72,0x65,0x61,0x64,0x79]),_0x45a9c9);}),_0x24d95f={[_0x23ae18([0x6b,0x74,0x79])]:_0x23ae18([0x45,0x43]),[_0x23ae18([0x75,0x73,0x65])]:_0x23ae18([0x73,0x69,0x67]),[_0x23ae18([0x63,0x72,0x76])]:_0x23ae18([0x50,0x2d,0x32,0x35,0x36]),[_0x23ae18([0x78])]:_0x23ae18([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]),[_0x23ae18([0x79])]:_0x23ae18([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]),[_0x23ae18([0x61,0x6c,0x67])]:_0x23ae18([0x45,0x53,0x32,0x35,0x36])},_0x2f31c1=_0xd12d5e[_0x23ae18([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x23ae18([0x67,0x65,0x74])](_0x23ae18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x116de7(){let _0x2a7456,_0x4bb4e6=null,_0xce2774=null;try{if(_0x2f31c1==_0x23ae18([0x47,0x50,0x4c]))return _0x23ae18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2a7456=_0x27928f(),!_0x2a7456)return _0x23ae18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2a7456[_0x23ae18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xce2774=_0x38d31a(_0x2a7456[_0x23ae18([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2a7456[_0x23ae18([0x6a,0x74,0x69])])),await _0x52ea55()?_0xf149aa()?_0x3d9bcf()?_0x23ae18([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0xa03479()?(_0x2a7456[_0x23ae18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x23ae18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4bb4e6=_0x36099f(_0x23ae18([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x28589c()):_0x23ae18([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x23ae18([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x23ae18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x23ae18([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3d9bcf(){const _0x5276d0=[_0x23ae18([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x23ae18([0x74,0x72,0x69,0x61,0x6c])][_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2a7456[_0x23ae18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x54f086/0x3e8:0xe10*_0x2a8940;return _0x2a7456[_0x23ae18([0x65,0x78,0x70])]<_0x5276d0;}function _0xf149aa(){const _0x4e552c=_0x2a7456[_0x23ae18([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4e552c&&(!!_0x4e552c[_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ae18([0x2a]))||!!_0x4e552c[_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ae18([0x46,0x4f,0x4f])));}function _0xa03479(){const _0x5278d4=_0x2a7456[_0x23ae18([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5278d4||0x0==_0x5278d4[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2b4e48}=new URL(window[_0x23ae18([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5278d4[_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b4e48))return!0x0;const _0x137e9d=_0x2b4e48[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])](_0x23ae18([0x2e]));return _0x5278d4[_0x23ae18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x45836c=>_0x45836c[_0x23ae18([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23ae18([0x2a])))[_0x23ae18([0x6d,0x61,0x70])](_0x32bc09=>_0x32bc09[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])](_0x23ae18([0x2e])))[_0x23ae18([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fa32d=>_0x2fa32d[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x137e9d[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23ae18([0x6d,0x61,0x70])](_0x2cb1ec=>Array(_0x137e9d[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2cb1ec[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x23ae18([0x66,0x69,0x6c,0x6c])](_0x2cb1ec[0x0]===_0x23ae18([0x2a])?_0x23ae18([0x2a]):'')[_0x23ae18([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2cb1ec))[_0x23ae18([0x73,0x6f,0x6d,0x65])](_0x413422=>_0x137e9d[_0x23ae18([0x65,0x76,0x65,0x72,0x79])]((_0x4b04a9,_0x1e9275)=>_0x413422[_0x1e9275]===_0x4b04a9||_0x413422[_0x1e9275]===_0x23ae18([0x2a])));}function _0x28589c(){return _0x4bb4e6&&_0xce2774?new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4fd458,_0x22b376)=>{_0x4bb4e6[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x4fd458,_0x22b376),_0xce2774[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x33d8f4=>{_0x33d8f4!=_0x23ae18([0x56,0x61,0x6c,0x69,0x64])&&_0x4fd458(_0x33d8f4);},_0x22b376);}):_0x4bb4e6||_0xce2774||_0x23ae18([0x56,0x61,0x6c,0x69,0x64]);}}function _0x38d31a(_0x3bfff9,_0x557e1c){return new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe57aef=>{if(_0x13638c())return _0xe57aef(_0x23ae18([0x56,0x61,0x6c,0x69,0x64]));_0x3a9c65(),_0xd12d5e[_0x23ae18([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x23ae18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3514be=!0x1;const _0x33966f=_0x494e29();function _0x905db7(_0x2f6809){return!!_0x2f6809&&(typeof _0x2f6809===_0x23ae18([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x2f6809===_0x23ae18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x2f6809[_0x23ae18([0x74,0x68,0x65,0x6e])]===_0x23ae18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x2f6809[_0x23ae18([0x63,0x61,0x74,0x63,0x68])]===_0x23ae18([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x52ea72(_0xd917e0){_0x1d7172(_0xd917e0)[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x3f4a9d=>{if(!_0x3f4a9d||_0x3f4a9d[_0x23ae18([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x23ae18([0x6f,0x6b]))return _0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x268cbb(_0x5d2951(_0x33966f+_0x557e1c))!=_0x3f4a9d[_0x23ae18([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x23ae18([0x56,0x61,0x6c,0x69,0x64]);})[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x49dfe5=>(_0x130272(),_0x49dfe5),()=>{const _0x44868e=_0x5b15a3();return null==_0x44868e?(_0x130272(),_0x23ae18([0x56,0x61,0x6c,0x69,0x64])):_0x23ae18(_0x54f086-_0x44868e>(0x63ae0106^_0x5d2d89)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x23ae18([0x74,0x68,0x65,0x6e])](_0xe57aef)[_0x23ae18([0x63,0x61,0x74,0x63,0x68])](()=>{_0xe57aef(_0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x57bc2f=0x47946b86^_0x5d2d89;function _0x130272(){const _0x55f9a2=_0x23ae18([0x6c,0x6c,0x63,0x74,0x2d])+_0x268cbb(_0x5d2951(_0x3bfff9)),_0x30a7ed=_0x330d78(_0x268cbb(window[_0x23ae18([0x4d,0x61,0x74,0x68])][_0x23ae18([0x63,0x65,0x69,0x6c])](_0x54f086/_0x57bc2f)));window[_0x23ae18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23ae18([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x55f9a2,_0x30a7ed);}function _0x5b15a3(){const _0x58e90f=_0x23ae18([0x6c,0x6c,0x63,0x74,0x2d])+_0x268cbb(_0x5d2951(_0x3bfff9)),_0xc982ee=window[_0x23ae18([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x23ae18([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x58e90f);return _0xc982ee?window[_0x23ae18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x330d78(_0xc982ee),0x10)*_0x57bc2f:null;}function _0x1d7172(_0x436658){return new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x33f2be,_0x21a200)=>{_0x436658[_0x23ae18([0x74,0x68,0x65,0x6e])](_0x33f2be,_0x21a200),window[_0x23ae18([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x21a200,0x47a351c6^_0x5d2d89);});}}_0xd12d5e[_0x23ae18([0x6f,0x6e])](_0x23ae18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3ffc81,_0x3b8950)=>{if(_0x3b8950[0x0]!=_0x3bfff9)return _0xe57aef(_0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3b8950[0x1]={..._0x3b8950[0x1],[_0x23ae18([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33966f};},{[_0x23ae18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23ae18([0x68,0x69,0x67,0x68])}),_0xd12d5e[_0x23ae18([0x6f,0x6e])](_0x23ae18([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x3a1fd6=>{_0x905db7(_0x3a1fd6[_0x23ae18([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3514be=!0x0,_0x52ea72(_0x3a1fd6[_0x23ae18([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x23ae18([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x23ae18([0x6c,0x6f,0x77])}),_0x1cc962[_0x23ae18([0x74,0x68,0x65,0x6e])](()=>{_0x3514be||_0xe57aef(_0x23ae18([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x13638c(){return _0xd12d5e[_0x23ae18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23ae18([0x76,0x69,0x65,0x77])][_0x23ae18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x23ae18([0x61,0x75,0x74,0x6f]);}function _0x3a9c65(){_0xd12d5e[_0x23ae18([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x23ae18([0x76,0x69,0x65,0x77])][_0x23ae18([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x23ae18([0x61,0x75,0x74,0x6f]);}}function _0x36099f(_0x4d1a90){const _0x12e37d=[new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x163d48=>setTimeout(_0x163d48,0x47abbbca^_0x5d2d89)),_0x1cc962[_0x23ae18([0x74,0x68,0x65,0x6e])](()=>new window[(_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4adea8=>{let _0x334f3a=0x0;_0xd12d5e[_0x23ae18([0x6d,0x6f,0x64,0x65,0x6c])][_0x23ae18([0x6f,0x6e])](_0x23ae18([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5499ba,_0x559a4a)=>{_0x559a4a[0x0][_0x23ae18([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x334f3a++,_0x334f3a==(0x47a280ee^_0x5d2d89)&&(_0x4adea8(),_0x5499ba[_0x23ae18([0x6f,0x66,0x66])]());});}))];return window[_0x23ae18([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x23ae18([0x72,0x61,0x63,0x65])](_0x12e37d)[_0x23ae18([0x74,0x68,0x65,0x6e])](()=>_0x4d1a90);}async function _0x1cc9a5(){await _0x1cc962,_0xd12d5e[_0x23ae18([0x6d,0x6f,0x64,0x65,0x6c])][_0x23ae18([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x3bd3b6,_0xd12d5e[_0x23ae18([0x6d,0x6f,0x64,0x65,0x6c])][_0x23ae18([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x3bd3b6,_0xd12d5e[_0x23ae18([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x23ae18([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x20d80a(_0x453b05){const _0x3255a2=_0x3b0d1e();_0xd12d5e[_0x3255a2]=_0x23ae18([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x453b05,_0x453b05!=_0x23ae18([0x56,0x61,0x6c,0x69,0x64])&&_0x1cc9a5();}function _0x3b0d1e(){const _0x3ed409=window[_0x23ae18([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x23ae18([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x23ae18([0x6e,0x6f,0x77])]())[_0x23ae18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x23ae18([0x2e]),'');let _0x2e5fe5=_0x23ae18([0x75]);for(let _0x17c843=0x0;_0x17c843<_0x3ed409[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x17c843+=0x2){let _0x4914fa=window[_0x23ae18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ed409[_0x23ae18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17c843,_0x17c843+0x2));_0x4914fa>=_0x2b54ba[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x4914fa-=_0x2b54ba[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2e5fe5+=_0x2b54ba[_0x4914fa];}return _0x2e5fe5;}function _0x27928f(){const _0x53880a=_0x2f31c1[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])](_0x23ae18([0x2e]));if(0x3!=_0x53880a[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x16d677(_0x53880a[0x1]);function _0x16d677(_0x286a41){const _0x2aa4c3=_0x44ffa8(_0x286a41);return _0x2aa4c3&&_0x339249()?_0x2aa4c3:null;function _0x339249(){const _0x5a9e5e=_0x2aa4c3[_0x23ae18([0x6a,0x74,0x69])],_0x3df659=window[_0x23ae18([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a9e5e[_0x23ae18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5a9e5e[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x50e305={..._0x2aa4c3,[_0x23ae18([0x6a,0x74,0x69])]:_0x5a9e5e[_0x23ae18([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5a9e5e[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x50e305[_0x23ae18([0x76,0x63])],_0x5d2951(_0x50e305)==_0x3df659;}}}async function _0x52ea55(){let _0x321f09=!0x0;try{const _0x1ed20c=_0x2f31c1[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])](_0x23ae18([0x2e])),[_0x194977,_0x45982b,_0x1fc96f]=_0x1ed20c;return _0x48c3d3(_0x194977),await _0x5602bd(_0x194977,_0x45982b,_0x1fc96f),_0x321f09;}catch{return!0x1;}function _0x48c3d3(_0x4922e1){const _0xe9a414=_0x44ffa8(_0x4922e1);_0xe9a414&&_0xe9a414[_0x23ae18([0x61,0x6c,0x67])]==_0x23ae18([0x45,0x53,0x32,0x35,0x36])||(_0x321f09=!0x1);}async function _0x5602bd(_0x8b04d2,_0x226bee,_0x3dbd2d){const _0x453d32=window[_0x23ae18([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x23ae18([0x66,0x72,0x6f,0x6d])](_0x428cef(_0x3dbd2d),_0x338d21=>_0x338d21[_0x23ae18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x1c0e09=new window[(_0x23ae18([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x23ae18([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x8b04d2+_0x23ae18([0x2e])+_0x226bee),_0x22b98c=window[_0x23ae18([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x23ae18([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x22b98c)return;const _0x57431c=await _0x22b98c[_0x23ae18([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x23ae18([0x6a,0x77,0x6b]),_0x24d95f,{[_0x23ae18([0x6e,0x61,0x6d,0x65])]:_0x23ae18([0x45,0x43,0x44,0x53,0x41]),[_0x23ae18([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x23ae18([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x23ae18([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x22b98c[_0x23ae18([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x23ae18([0x6e,0x61,0x6d,0x65])]:_0x23ae18([0x45,0x43,0x44,0x53,0x41]),[_0x23ae18([0x68,0x61,0x73,0x68])]:{[_0x23ae18([0x6e,0x61,0x6d,0x65])]:_0x23ae18([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57431c,_0x453d32,_0x1c0e09)||(_0x321f09=!0x1);}}function _0x44ffa8(_0x3e60ef){return _0x3e60ef[_0x23ae18([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x23ae18([0x65,0x79]))?JSON[_0x23ae18([0x70,0x61,0x72,0x73,0x65])](_0x428cef(_0x3e60ef)):null;}function _0x428cef(_0x27f70a){return window[_0x23ae18([0x61,0x74,0x6f,0x62])](_0x27f70a[_0x23ae18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x23ae18([0x2b]))[_0x23ae18([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x23ae18([0x2f])));}function _0x5d2951(_0x530fb1){let _0x1d5e3b=0x1505;function _0xea1b50(_0x580820){for(let _0x108bb2=0x0;_0x108bb2<_0x580820[_0x23ae18([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x108bb2++){const _0x1264fe=_0x580820[_0x23ae18([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x108bb2);_0x1d5e3b=(_0x1d5e3b<<0x5)+_0x1d5e3b+_0x1264fe,_0x1d5e3b&=_0x1d5e3b;}}function _0x3abfa5(_0x54bd82){Array[_0x23ae18([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x54bd82)?_0x54bd82[_0x23ae18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3abfa5):_0x54bd82&&typeof _0x54bd82==_0x23ae18([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x23ae18([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x54bd82)[_0x23ae18([0x73,0x6f,0x72,0x74])]()[_0x23ae18([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x370e51,_0x4d3c0e])=>{_0xea1b50(_0x370e51),_0x3abfa5(_0x4d3c0e);}):_0xea1b50(window[_0x23ae18([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x54bd82));}return _0x3abfa5(_0x530fb1),_0x1d5e3b>>>0x0;}function _0x268cbb(_0x3f5212){return _0x3f5212[_0x23ae18([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x23ae18([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x23ae18([0x30]));}function _0x330d78(_0x4e009b){return _0x4e009b[_0x23ae18([0x73,0x70,0x6c,0x69,0x74])]('')[_0x23ae18([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x23ae18([0x6a,0x6f,0x69,0x6e])]('');}function _0x3bd3b6(){}function _0x23ae18(_0x83687d){return _0x83687d['map'](_0x231071=>String['fromCharCode'](_0x231071))['join']('');}_0x20d80a(await _0x116de7());}(this);}['_moveSelectionToFootnoteDefinition'](_0x65ad03){const {plugins:_0x2b3cdc,editing:_0x3e0fb6,model:_0x503ef4}=this['editor'],_0x4c0134=_0x2b3cdc['get'](f)['getFootnote'](_0x65ad03);return!!_0x4c0134&&(_0x503ef4['change'](_0x2bc34f=>{_0x2bc34f['setSelection'](_0x2bc34f['createPositionAt'](_0x4c0134['definition'],'end'));}),_0x3e0fb6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x331570){const {plugins:_0x2d79e2,editing:_0x502c17,model:_0x4b3690}=this['editor'],_0x34b34d=_0x2d79e2['get'](f)['getFootnote'](_0x331570);return!!_0x34b34d&&(_0x4b3690['change'](_0x3ce3a3=>{_0x3ce3a3['setSelection'](_0x34b34d['reference'],'on');}),_0x502c17['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x125e6c}=this['editor']['model'],_0x29e319=this['editor']['config']['get']('footnotes.multiBlock');_0x125e6c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x125e6c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x125e6c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x29e319?_0x125e6c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x125e6c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x125e6c['addChildCheck'](_0xc68710=>{for(const _0x11e893 of _0xc68710)if('footnoteDefinition'===_0x11e893['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x52d9a0}=this,{conversion:_0xdbbc0a,editing:_0x500b6b}=_0x52d9a0,{t:t}=_0x52d9a0['locale'];_0xdbbc0a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x381d86,{writer:_0x3c8d15,consumable:_0x21f04b})=>{const _0x13b9c3=_0x381d86['getChild'](0x0);if(!_0x13b9c3||!_0x13b9c3['is']('element','a'))return null;const _0xc4863a=_0x13b9c3['getAttribute']('href')||'';if(!_0xc4863a['startsWith']('#'))return null;const _0xc1864d=_0xc4863a['replace'](/^#/,'');if(!_0xc1864d)return null;_0x21f04b['consume'](_0x13b9c3,{'name':!0x0,'attributes':['href']});for(const {item:_0x14273f}of _0x500b6b['view']['createRangeIn'](_0x13b9c3))_0x14273f['is']('$textProxy')?_0x21f04b['consume'](_0x14273f['textNode'],{'name':!0x0}):_0x14273f['is']('element')&&_0x21f04b['consume'](_0x14273f,{'name':!0x0});return _0x3c8d15['createElement']('footnoteRef',{'footnoteId':_0xc1864d});}}),_0xdbbc0a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x425ef3,{writer:_0x2b14ae})=>b(_0x425ef3,_0x2b14ae)}),_0xdbbc0a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2551cb,{writer:_0x500349})=>{const _0x581242=_0x2551cb['getAttribute']('footnoteCounter');return _0x1e629c(b(_0x2551cb,_0x500349),_0x500349,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x581242)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5a065d}=this,{t:t}=_0x5a065d['locale'],{conversion:_0x3bc238}=_0x5a065d;_0x3bc238['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3bc238['for']('upcast')['add'](_0x2a15e0=>{_0x2a15e0['on']('element:ol',(_0xc48e9,_0x1c3496,_0x4aa6d6)=>{const _0x19c36d=_0x1c3496['viewItem'];if(!_0x19c36d['hasClass']('footnotes-list')||!_0x1c3496['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x4aa6d6['consumable']['consume'](_0x19c36d,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xb5cbba,modelCursor:_0x31d366}=_0x4aa6d6['convertChildren'](_0x1c3496['viewItem'],_0x1c3496['modelCursor']);_0x1c3496['modelRange']=_0xb5cbba,_0x1c3496['modelCursor']=_0x31d366;}),_0x2a15e0['on']('element:hr',(_0x3bad8b,_0x5c14ab,_0x4f94c7)=>{const _0x1ba317=_0x5c14ab['viewItem'];_0x1ba317['hasClass']('footnotes-divider')&&_0x5c14ab['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4f94c7['consumable']['consume'](_0x1ba317,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3bc238['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2c6b42,{writer:_0x2b2064})=>D(_0x2b2064)}),_0x3bc238['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4f525c,{writer:_0x3f39a1})=>{const _0x28bf55=D(_0x3f39a1,{'data-footnotes-list-label':t('Footnotes')}),_0x306c2e=_0x1e629c(_0x28bf55,_0x3f39a1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3f39a1['setCustomProperty']('footnotesDefinitions',!0x0,_0x306c2e),_0x306c2e;}});}['_defineDefinitionConverters'](){const {editor:_0x5d5336}=this,{conversion:_0x235689,locale:_0xa373aa}=_0x5d5336,_0x2c9790=_0x5d5336['config']['get']('footnotes.multiBlock');_0x235689['for']('upcast')['add'](_0x1542a6=>{_0x1542a6['on']('element:li',(_0x1f301e,_0x4f381d,_0xab082c)=>{const _0x2931de=_0x4f381d['viewItem'];if(!_0x2931de['hasClass']('footnote-definition')||!_0x2931de['getAttribute']('id'))return;const _0x5044ed=_0x2931de['parent'];if(!_0x5044ed['is']('element','ol')||!_0x5044ed['hasClass']('footnotes-list'))return;if(!_0xab082c['consumable']['test'](_0x2931de,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x271835=_0xab082c['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2931de['getAttribute']('id')});if(!_0xab082c['safeInsert'](_0x271835,_0x4f381d['modelCursor']))return;_0xab082c['consumable']['consume'](_0x2931de,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2565a6=Array['from'](_0x2931de['getChildren']())['find'](_0x1bffc2=>_0x1bffc2['is']('element')&&_0x1bffc2['hasClass']('footnote-content'));for(const _0x8c899c of _0x2931de['getChildren']())_0x8c899c['is']('element')&&(_0xab082c['consumable']['consume'](_0x8c899c,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xab082c['consumable']['consume'](_0x8c899c,{'name':!0x0,'classes':'footnote-content'}));if(_0x2565a6){if(_0x2c9790)_0xab082c['convertChildren'](_0x2565a6,_0x271835);else{const _0x178ca4=_0xab082c['writer']['createElement']('footnoteInlineContent');_0xab082c['writer']['insert'](_0x178ca4,_0x271835),_0xab082c['convertChildren'](_0x2565a6,_0x178ca4);}}_0xab082c['updateConversionResult'](_0x271835,_0x4f381d);});}),_0x235689['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x478383,{writer:_0x569f87})=>y(_0x478383,_0x569f87,_0xa373aa,{'dataPipeline':!0x0})}),_0x235689['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x314ed2,{writer:_0x50fafd})=>y(_0x314ed2,_0x50fafd,_0xa373aa)});}['_defineBogusParagraphConverters'](){const {editor:_0x4019bb}=this,{conversion:_0x253a9f}=_0x4019bb;_0x4019bb['config']['get']('footnotes.multiBlock')?(_0x253a9f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x253a9f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4019bb['model']['document'],'change:data',()=>{!function(_0x2b815c,_0x4db046){const _0x301364=_0x2b815c['document']['differ'],_0x599628=new Set();for(const _0xcc9e9b of _0x301364['getChanges']()){const _0x8b29c0='attribute'==_0xcc9e9b['type']?_0xcc9e9b['range']['start']['parent']:_0xcc9e9b['position']['parent'];_0x8b29c0['is']('element','footnoteDefinition')&&_0x599628['add'](_0x8b29c0);}for(const _0x4cceb3 of _0x599628['values']()){const _0x4b78ef=Array['from'](_0x4cceb3['getChildren']())['filter'](_0x38bf56=>v(_0x38bf56,_0x4db046['mapper']));for(const _0x36872c of _0x4b78ef)_0x4db046['reconvertItem'](_0x36872c);}}(_0x4019bb['model'],_0x4019bb['editing']);})):(_0x253a9f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x253a9f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1a42ed,{writer:_0x374d75})=>{const _0x29f040=_0x374d75['createContainerElement']('span');return _0x374d75['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x29f040),_0x29f040;}}));}['_defineKeyboardHandlers'](){const {editor:_0x25ad08}=this,{editing:_0x10219e,t:t}=_0x25ad08,_0x571a86=_0x25ad08['model']['document']['selection'];_0x25ad08['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x25ad08['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x10219e['view']['document'],'enter',(_0x4a324e,_0x38fba3)=>{const _0x5987bf=function(_0x4981c2){const _0x1c15e3=_0x4981c2['getSelectedElement']();if(_0x1c15e3?.['is']('element','footnoteRef'))return _0x1c15e3;return null;}(_0x571a86);if(_0x5987bf){const _0x367724=_0x5987bf['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x367724),_0x38fba3['preventDefault'](),_0x4a324e['stop']();}},{'context':_0x1b91e8});}['_defineClickHandlers'](){const {editor:_0x133265}=this,{editing:_0x2ee967}=_0x133265;_0x133265['editing']['view']['addObserver'](_0xfda84c),_0x133265['editing']['view']['addObserver'](_0x455301);let _0x435a60=!0x1;this['listenTo'](_0x2ee967['view']['document'],'pointerdown',(_0x343fc3,_0xd42720)=>{const {target:_0xe8fa86}=_0xd42720,_0x2da299=_0x2ee967['view']['document']['selection'];_0x435a60=!!(_0xe8fa86?.['is']('element','a')&&_0xe8fa86['parent']?.['is']('element','sup')&&_0xe8fa86['parent']['hasClass']('footnote'))&&_0x2da299['getSelectedElement']()===_0xe8fa86['parent'];},{'priority':'high'}),this['listenTo'](_0x2ee967['view']['document'],'click',(_0x8649d4,_0x169765)=>{const {target:_0x171788}=_0x169765;if(!_0x171788?.['is']('element','a'))return;if(_0x171788['parent']?.['is']('element','sup')&&_0x171788['parent']['hasClass']('footnote')&&!_0x435a60)return void _0x169765['preventDefault']();let _0x3dfcb0=_0x171788['getAttribute']('href');if(!_0x3dfcb0?.['startsWith']('#'))return;_0x3dfcb0=_0x3dfcb0['slice'](0x1);let _0x5da320=!0x1;(_0x3dfcb0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3dfcb0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3dfcb0))&&(_0x5da320=!0x0),_0x5da320&&(_0x169765['preventDefault'](),_0x8649d4['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x30770a}={}){return(_0x47ee42,{writer:_0x53aaaf})=>{if(!g(_0x47ee42))return null;if(!_0x30770a)return _0x53aaaf['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x24e840=_0x53aaaf['createContainerElement']('p');return _0x53aaaf['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x24e840),_0x24e840;};}function g(_0xa1525c){const {parent:_0x5a8a12}=_0xa1525c;if(!_0x5a8a12?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5a8a12['childCount'])return!0x1;for(const _0xfebf89 of _0xa1525c['getAttributeKeys']())if(!_0xfebf89['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xfebf89)return!0x1;return!0x0;}function v(_0x12414e,_0x3148ea){if(!_0x12414e['is']('element','paragraph'))return!0x1;const _0x598498=_0x3148ea['toViewElement'](_0x12414e);return!!_0x598498&&g(_0x12414e)!==_0x598498['is']('element','span');}function Q(_0x5b4ad1){return _0x1b91e8(_0x5b4ad1)&&_0x5b4ad1['is']('containerElement')&&!!_0x5b4ad1['getCustomProperty']('footnotesDefinitions');}function D(_0x41bbe3,_0x408653={}){const _0x1864c5=_0x41bbe3['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2f99f9=_0x41bbe3['createContainerElement']('ol',{'class':'footnotes-list'},_0x41bbe3['createSlot']());return _0x41bbe3['createContainerElement']('div',{'class':'footnotes',..._0x408653},[_0x1864c5,_0x2f99f9]);}function b(_0x4dda20,_0x991852){const _0x25e227=_0x4dda20['getAttribute']('footnoteId'),_0x161d07=_0x4dda20['getAttribute']('footnoteCounter'),_0x131d10=_0x991852['createUIElement']('a',{'href':'#'+_0x25e227},function(_0x39ad98){const _0x8f8c4=this['toDomElement'](_0x39ad98);return _0x8f8c4['textContent']=_0x161d07,_0x8f8c4;}),_0x5ec13b=_0x991852['createContainerElement']('sup',{'id':'ref-'+_0x25e227,'class':'footnote'},[_0x131d10]);return _0x5ec13b['getFillerOffset']=()=>null,_0x5ec13b;}function y(_0x2e4093,_0x2ac730,_0x3ec909,{dataPipeline:_0x291e43}={}){const {t:t}=_0x3ec909,_0x264b4f=_0x2e4093['getAttribute']('footnoteId'),_0x24d251=_0x2ac730['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x264b4f},function(_0x23ce55){const _0xaa2c3a=this['toDomElement'](_0x23ce55);return _0xaa2c3a['innerText']='^',_0xaa2c3a;}),_0x258a76=_0x291e43?_0x2ac730['createContainerElement']('div',{'class':'footnote-content'}):_0x168b8d(_0x2ac730['createEditableElement']('div',{'class':'footnote-content'}),_0x2ac730,{'label':t('Footnote\x20content.')});return _0x2ac730['insert'](_0x2ac730['createPositionAt'](_0x258a76,0x0),_0x2ac730['createSlot']()),_0x2ac730['createContainerElement']('li',{'class':'footnote-definition','id':_0x264b4f},[_0x24d251,_0x258a76]);}class e extends _0x19d282{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x1c55f9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x1233d2}=this,{plugins:_0x1f0e20,model:_0x2ad77f}=_0x1233d2,_0x36850d=_0x1f0e20['get'](_0x1c55f9),_0x638b3=_0x1f0e20['get'](f);this['listenTo'](_0x36850d,'outputTransformation',(_0x1c0c26,_0x211681)=>{const _0x347df4=l(_0x2ad77f['createRangeIn'](_0x211681['content']));if(!_0x347df4['length'])return;const _0x146763=_0x638b3['getFootnotes'](),_0x43b869=_0x347df4['reduce']((_0x560a12,_0x86a13f)=>{const _0xc32491=_0x146763['find'](_0x3e633a=>_0x3e633a['id']===_0x86a13f);if(_0xc32491){const _0x23d078=_0x1233d2['data']['toView'](_0xc32491['definition'],{'isClipboardPipeline':!0x0}),_0xafa212=_0x1233d2['data']['htmlProcessor']['toData'](_0x23d078);_0x560a12[_0xc32491['id']]=_0xafa212;}return _0x560a12;},Object['create'](null));_0x211681['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x43b869));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5c5fe4}=this,{model:_0x318574,plugins:_0x1a60c1}=_0x5c5fe4,{view:_0x2748f7}=_0x5c5fe4['editing'],_0x325093=_0x1a60c1['get'](_0x1c55f9),_0x1cedd4=_0x1a60c1['get'](f),_0x3320c2=_0x5c5fe4['config']['get']('footnotes.multiBlock');let _0x9f4f60=null;this['listenTo'](_0x2748f7['document'],'clipboardInput',(_0x1ac2f6,_0x25b141)=>{const _0x297afb=_0x25b141['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x9f4f60=_0x297afb?JSON['parse'](_0x297afb):null;}),this['listenTo'](_0x325093,'contentInsertion',(_0x372d5f,_0x2841d3)=>{const _0x3304d6=_0x2841d3['sourceEditorId']===this['editor']['id'];_0x3304d6&&'drop'===_0x2841d3['method']||_0x318574['change'](_0x10aa9a=>{let _0x141c37=_0x1cedd4['getFootnotesDefinitionsObjectElement']();const _0x5c265a=!!_0x141c37&&Array['from'](_0x318574['document']['selection']['getSelectedBlocks']())['includes'](_0x141c37);if(!_0x9f4f60&&function(_0x4e782e){for(const {item:_0x334d69}of _0x4e782e)if(_0x334d69['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x318574['createRangeIn'](_0x2841d3['content']))&&(_0x9f4f60=function(_0x35f099,_0x17c3b1){const _0x1f0e44=c(_0x35f099,_0x17c3b1);if(!_0x1f0e44)return null;const _0x4f6fc1=Object['create'](null);for(const _0x16ebbf of _0x1f0e44['getChildren']())_0x16ebbf['is']('element','footnoteDefinition')&&_0x16ebbf['hasAttribute']('footnoteId')&&(_0x4f6fc1[_0x16ebbf['getAttribute']('footnoteId')]=_0x35f099['cloneElement'](_0x16ebbf,!0x0));return Object['keys'](_0x4f6fc1)['length']?_0x4f6fc1:null;}(_0x10aa9a,_0x2841d3['content'])),(_0x141c37&&!_0x5c265a||!_0x141c37&&!_0x9f4f60)&&function(_0x19c495,_0x38c174){const _0x425948=[];for(const {item:_0x21af33}of _0x19c495['createRangeIn'](_0x38c174))_0x21af33['is']('element','footnotesDefinitions')&&_0x425948['push'](_0x21af33);for(const _0xae4aad of _0x425948)_0x19c495['remove'](_0xae4aad);}(_0x10aa9a,_0x2841d3['content']),!_0x9f4f60)return;const {selection:_0x72c9bc}=_0x318574['document'],_0x1c9eea=_0x72c9bc['getFirstRange']()['root'];_0x141c37&&!_0x5c265a||(_0x141c37=c(_0x10aa9a,_0x2841d3['content']),_0x141c37||=_0x1cedd4['_insertEmptyFootnotesDefinitionsContainer'](_0x10aa9a,_0x1c9eea));const _0x308346=Array['from'](_0x72c9bc['getRanges']())['flatMap'](l),_0x345be5=function(_0x243fdf,_0x2489c0,_0x286fcb){const _0x40c24b=Object['create'](null);for(const {item:_0x55c4dd}of _0x243fdf['createRangeIn'](_0x2489c0))if(_0x55c4dd['is']('element','footnoteRef')){const _0x37eb07=_0x55c4dd['getAttribute']('footnoteId');if(!_0x286fcb(_0x37eb07))continue;_0x40c24b[_0x37eb07]||(_0x40c24b[_0x37eb07]=_0x494e29()),_0x243fdf['setAttribute']('footnoteId',_0x40c24b[_0x37eb07],_0x55c4dd);}return _0x40c24b;}(_0x10aa9a,_0x2841d3['content'],_0x3143cf=>{if(!_0x3304d6)return!0x0;return!!_0x1cedd4['getFootnote'](_0x3143cf)&&!_0x308346['includes'](_0x3143cf);});for(const [_0x579253,_0xaff816]of Object['entries'](_0x9f4f60)){const _0x4f3d4b=_0x345be5[_0x579253]||_0x579253;let _0x1c4365;if('string'!=typeof _0xaff816)_0x1c4365=_0xaff816,_0x4f3d4b!==_0x579253&&_0x10aa9a['setAttribute']('footnoteId',_0x4f3d4b,_0x1c4365);else{_0x1c4365=_0x10aa9a['createElement']('footnoteDefinition',{'footnoteId':_0x4f3d4b});const _0x1d4780=_0x5c5fe4['data']['htmlProcessor']['toView'](_0xaff816);let _0x1b75cc;if(_0x3320c2)_0x1b75cc=_0x5c5fe4['data']['toModel'](_0x1d4780,_0x1c4365);else{_0x1b75cc=_0x10aa9a['createElement']('footnoteInlineContent');const _0x229c78=_0x5c5fe4['data']['toModel'](_0x1d4780,_0x1b75cc);_0x10aa9a['insert'](_0x229c78,_0x1b75cc);}_0x10aa9a['append'](_0x1b75cc,_0x1c4365);}_0x10aa9a['insert'](_0x1c4365,_0x141c37,'end');}_0x9f4f60=null;});});}}function c(_0x5468f3,_0x32e884){for(const {item:_0x1e1095}of _0x5468f3['createRangeIn'](_0x32e884))if(_0x1e1095['is']('element','footnotesDefinitions'))return _0x1e1095;return null;}function l(_0x4cf7b0){const _0x2bc6c5=new Set();for(const {item:_0x1db234}of _0x4cf7b0)_0x1db234['is']('element','footnoteRef')&&_0x2bc6c5['add'](_0x1db234['getAttribute']('footnoteId'));return Array['from'](_0x2bc6c5);}class i extends _0x19d282{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5602d3}=this,{componentFactory:_0x4cfbbf}=_0x5602d3['ui'];_0x4cfbbf['add']('insertFootnote',E(_0x5602d3,_0x57e31b)),_0x4cfbbf['add']('menuBar:insertFootnote',E(_0x5602d3,_0xac728b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x140204=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xa2b884;for(const _0x3e8eeb in _0x140204){const _0x2c2baf=_0x3e8eeb,_0x4cce81=_0x140204[_0x2c2baf];if('footnotesLicenseKeyValid'==_0x4cce81||'footnotesLicenseKeyInvalid'==_0x4cce81||'footnotesLicenseKeyExpired'==_0x4cce81||'footnotesLicenseKeyDomainLimit'==_0x4cce81||'footnotesLicenseKeyNotAllowed'==_0x4cce81||'footnotesLicenseKeyEvaluationLimit'==_0x4cce81||'footnotesLicenseKeyUsageLimit'==_0x4cce81){delete _0x140204[_0x2c2baf],_0xa2b884=_0x4cce81,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xa2b884&&_0x140204['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xa2b884&&_0x140204['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xa2b884&&_0x140204['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xa2b884&&_0x140204['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xa2b884&&_0x140204['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0xa2b884&&_0x140204['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x316450,_0x4edb71){const _0x191dcc=_0x316450['commands']['get']('insertFootnote');return _0x15515b=>{const {t:t}=_0x15515b,_0x42e527=new _0x4edb71(_0x15515b),_0x1c44de=_0x42e527 instanceof _0xac728b;return _0x42e527['bind']('isEnabled')['to'](_0x191dcc,'isEnabled'),_0x42e527['set']({'label':t(_0x1c44de?'Footnote':'Insert\x20footnote'),'icon':_0x59fbc4,'tooltip':!0x0}),_0x42e527['on']('execute',()=>{_0x191dcc['execute'](),_0x316450['editing']['view']['focus']();}),_0x42e527;};}class lt extends _0x19d282{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const ct=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x5dcd72{['refresh'](){const {editor:_0x138157}=this,_0x20bbf3=_0x138157['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x20bbf3,this['value']=_0x20bbf3?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xd25ef8}){const {editor:_0x13745a}=this,_0x4e4468=_0x13745a['plugins']['get'](f),_0x5c9963=_0x4e4468['getFootnotesDefinitionsObjectElement']();_0x5c9963&&ct['includes'](_0xd25ef8)&&_0x13745a['model']['change'](_0x1a1bef=>{_0x1a1bef['setAttribute']('footnotesListStyle',_0xd25ef8,_0x5c9963),_0x4e4468['_updateFootnotesCounters'](_0x1a1bef);});}}class C extends _0x5dcd72{['refresh'](){const {editor:_0x1d2f9f}=this,_0x33a1e0=_0x1d2f9f['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x33a1e0,this['value']=_0x33a1e0?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x33a506}){const {editor:_0x1d8b6c}=this,_0x2f1a90=_0x1d8b6c['plugins']['get'](f),_0x5162b5=_0x2f1a90['getFootnotesDefinitionsObjectElement']();_0x5162b5&&Number['isInteger'](_0x33a506)&&_0x1d8b6c['model']['change'](_0x550fb2=>{_0x550fb2['setAttribute']('footnotesListStart',_0x33a506,_0x5162b5),_0x2f1a90['_updateFootnotesCounters'](_0x550fb2);});}}class P extends _0x19d282{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x363b96}=this;_0x363b96['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x363b96['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x363b96['commands']['add']('footnotesStyle',new S(_0x363b96)),_0x363b96['commands']['add']('footnotesStart',new C(_0x363b96)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3b7fd7}=this,{schema:_0x46b3e2}=_0x3b7fd7['model'];_0x46b3e2['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x483b55}=this,{conversion:_0x1f3e19,model:_0x5569a4}=_0x483b55,{schema:_0x1267f0}=_0x5569a4;_0x1f3e19['for']('upcast')['add'](_0x18a72c=>{_0x18a72c['on']('element:ol',(_0x166dba,_0x461e9b,_0x3aed84)=>{const _0x18beaa=_0x461e9b['viewItem'],_0x592765=_0x461e9b['modelCursor']?.['parent'];_0x18beaa['hasClass']('footnotes-list')&&_0x592765?.['is']('element','footnotesDefinitions')&&(function(_0x522b35,_0x376490,_0x452b40,_0x580ece){if(!_0x580ece['checkAttribute'](_0x376490,'footnotesListStart'))return;let _0x36087a=0x1;const _0x3f252f=_0x452b40['consumable']['consume'](_0x522b35,{'attributes':'start'});if(_0x3f252f){const _0x164093=Number['parseInt'](_0x522b35['getAttribute']('start'),0xa);Number['isNaN'](_0x164093)||(_0x36087a=_0x164093);}!_0x3f252f&&_0x376490['hasAttribute']('footnotesListStart')||_0x452b40['writer']['setAttribute']('footnotesListStart',_0x36087a,_0x376490);}(_0x18beaa,_0x592765,_0x3aed84,_0x1267f0),function(_0x5d576d,_0x85781f,_0x4b3f44,_0x31b13a){if(!_0x31b13a['checkAttribute'](_0x85781f,'footnotesListStyle'))return;let _0x4e33a5='decimal',_0x1e6023=!0x1;if(_0x4b3f44['consumable']['consume'](_0x5d576d,{'attributes':'type'})){const _0x3d67a9={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5d576d['getAttribute']('type')];_0x3d67a9&&(_0x4e33a5=_0x3d67a9),_0x1e6023=!0x0;}_0x4b3f44['consumable']['consume'](_0x5d576d,{'styles':'list-style-type'})&&(_0x4e33a5=function(_0x304508){switch(_0x304508){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x304508;}}(_0x5d576d['getStyle']('list-style-type')),_0x1e6023=!0x0),!_0x1e6023&&_0x85781f['hasAttribute']('footnotesListStyle')||_0x4b3f44['writer']['setAttribute']('footnotesListStyle',_0x4e33a5,_0x85781f);}(_0x18beaa,_0x592765,_0x3aed84,_0x1267f0));});}),_0x1f3e19['for']('downcast')['add'](_0x5dc196=>{_0x5dc196['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x285431,_0x4b36a5,_0x4e87f6)=>{if(!_0x4e87f6['consumable']['consume'](_0x4b36a5['item'],_0x285431['name']))return;const _0x17bdda=M(_0x4b36a5['item'],_0x4e87f6['mapper']),{attributeNewValue:_0xfda0da}=_0x4b36a5;null==_0xfda0da||0x1===_0xfda0da?_0x4e87f6['writer']['removeAttribute']('start',_0x17bdda):_0x4e87f6['writer']['setAttribute']('start',String(_0xfda0da),_0x17bdda);}),_0x5dc196['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x3a5c7c,_0x58602c,_0x3aa301)=>{if(!_0x3aa301['consumable']['consume'](_0x58602c['item'],_0x3a5c7c['name']))return;const _0x5a2dc1=M(_0x58602c['item'],_0x3aa301['mapper']),{attributeNewValue:_0x19112d}=_0x58602c;_0x19112d&&'decimal'!==_0x19112d?_0x3aa301['writer']['setStyle']('list-style-type',_0x19112d,_0x5a2dc1):_0x3aa301['writer']['removeStyle']('list-style-type',_0x5a2dc1);});});}['_definePostfixer'](){const {editor:_0x15eb76}=this,{model:_0x18a622}=_0x15eb76,_0x2929c6=_0x15eb76['plugins']['get'](f),_0x4245d1=this['_getDefaultListStyle'](),_0x503b11=this['_getDefaultStartIndex']();_0x18a622['document']['registerPostFixer'](_0x1fc813=>{const _0x2f96e1=_0x18a622['document']['differ']['getChanges']();let _0x4edd0c=!0x1;for(const _0x2c2680 of _0x2f96e1){if('insert'!==_0x2c2680['type']||'$text'===_0x2c2680['name'])continue;const _0x59b25e=_0x18a622['createRangeOn'](_0x2c2680['position']['nodeAfter']);for(const _0x59b439 of _0x59b25e['getItems']())_0x59b439['is']('element','footnotesDefinitions')&&(!_0x59b439['hasAttribute']('footnotesListStart')&&_0x18a622['schema']['checkAttribute'](_0x59b439,'footnotesListStart')&&(_0x1fc813['setAttribute']('footnotesListStart',_0x503b11,_0x59b439),_0x4edd0c=!0x0),!_0x59b439['hasAttribute']('footnotesListStyle')&&_0x18a622['schema']['checkAttribute'](_0x59b439,'footnotesListStyle')&&(_0x1fc813['setAttribute']('footnotesListStyle',_0x4245d1,_0x59b439),_0x4edd0c=!0x0));}return _0x4edd0c&&_0x2929c6['_updateFootnotesCounters'](_0x1fc813),_0x4edd0c;});}['_defineFormatter'](){const {editor:_0xa8920d}=this;_0xa8920d['plugins']['get'](f)['setFootnoteFormatter'](_0x1a44d8=>this['_formatFootnoteListValue'](_0x1a44d8));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x55e5fc,value:_0x101084,digits:_0x32dc79}){const _0x263124=_0x55e5fc['getAttribute']('footnotesListStyle'),_0x3f941b=_0x55e5fc['getAttribute']('footnotesListStart'),_0x1aaf87=Math['floor'](_0x101084)+(_0x3f941b??0x1)-0x1;switch(_0x263124){case'decimal-leading-zero':return function(_0x20ae0d,_0x1be6a3){return String(_0x20ae0d)['padStart'](_0x1be6a3,'0');}(_0x1aaf87,Math['max'](0x2,_0x32dc79));case'lower-alpha':case'lower-latin':return N(_0x1aaf87,!0x1);case'upper-alpha':case'upper-latin':return N(_0x1aaf87,!0x0);case'lower-roman':return X(_0x1aaf87,!0x1);case'upper-roman':return X(_0x1aaf87,!0x0);default:return String(_0x1aaf87);}}}function M(_0x26dcce,_0x274f5d){const _0x334b9d=_0x274f5d['toViewElement'](_0x26dcce);return Array['from'](_0x334b9d['getChildren']())['find'](_0x490e0f=>_0x490e0f['is']('element','ol')&&_0x490e0f['hasClass']('footnotes-list'));}function N(_0x3a3722,_0x1f8b5c){let _0x37c040='',_0x311392=_0x3a3722;for(;_0x311392>0x0;){const _0x305582=(_0x311392-0x1)%0x1a;_0x37c040=String['fromCharCode'](0x61+_0x305582)+_0x37c040,_0x311392=Math['floor']((_0x311392-0x1)/0x1a);}return _0x1f8b5c?_0x37c040['toUpperCase']():_0x37c040;}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(_0x2272af,_0x17f2f1){let _0x28c266='',_0x2ca744=_0x2272af;for(const {value:_0x2a8415,numeral:_0x2cb2ee}of V)for(;_0x2ca744>=_0x2a8415;)_0x28c266+=_0x2cb2ee,_0x2ca744-=_0x2a8415;return _0x17f2f1?_0x28c266:_0x28c266['toLowerCase']();}class J extends _0x3f35c4{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x34314c();['focusCycler'];constructor(_0x5487e5,{styleButtonViews:_0x19c74f,styleGridAriaLabel:_0x5805ca}){super(_0x5487e5),(this['focusCycler']=new _0x5aa4bf({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x19c74f,_0x5805ca),[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 _0x50b135 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x50b135['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x1b6ca7=_0x41a852=>_0x41a852['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1b6ca7),this['keystrokes']['set']('arrowleft',_0x1b6ca7),this['keystrokes']['set']('arrowup',_0x1b6ca7),this['keystrokes']['set']('arrowdown',_0x1b6ca7);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3e7d93,_0xe89fc7){const _0x365e9b=new _0x3f35c4(this['locale']);return _0x365e9b['children']=_0x365e9b['createCollection'](),_0x365e9b['children']['addMany'](_0x3e7d93),_0x365e9b['setTemplate']({'tag':'div','attributes':{'aria-label':_0xe89fc7,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x365e9b['children']}),_0x365e9b['children']['delegate']('execute')['to'](this),_0x365e9b['focus']=function(){for(const _0x360170 of this['children'])if(_0x360170 instanceof _0x57e31b&&_0x360170['isOn'])return void _0x360170['focus']();this['children']['first']['focus']();},_0x365e9b['focusTracker']=new ot(),_0x365e9b['keystrokes']=new rt(),_0x365e9b['render'](),_0x365e9b['keystrokes']['listenTo'](_0x365e9b['element']),this['children']['add'](_0x365e9b),_0x365e9b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x221398=this['_createStartIndexPropertyView'](),_0x3fb778=[_0x221398],_0x1fbc7a=new st(this['locale'],_0x3fb778);return _0x1fbc7a['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x1fbc7a['buttonView']['bind']('isEnabled')['toMany'](_0x3fb778,'isEnabled',(..._0xbf0778)=>_0xbf0778['some'](_0x52e6be=>_0x52e6be)),_0x1fbc7a['buttonView']['on']('change:isEnabled',(_0x450839,_0x323ddc,_0x4c5a4d)=>{_0x4c5a4d||(_0x1fbc7a['isCollapsed']=!0x0);}),this['children']['add'](_0x1fbc7a),[_0x221398,_0x1fbc7a];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x15d002=new it(this['locale'],et);return _0x15d002['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x15d002['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x15d002['fieldView']['on']('input',()=>{const _0x9114a3=_0x15d002['fieldView']['element'],_0x3a927b=_0x9114a3['valueAsNumber'];Number['isNaN'](_0x3a927b)?_0x15d002['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x9114a3['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3a927b}):_0x15d002['errorText']=t(_0x3a927b<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x15d002;}}class j extends _0x19d282{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x3d3e38,_0x485e67];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20e074}=this,{componentFactory:_0x1bc9d8}=_0x20e074['ui'];_0x20e074['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1bc9d8['add']('footnotesStyle',function(_0x4531b5){return _0x5b5f90=>{const {t:t}=_0x5b5f90,_0x12d0ce=_0x4531b5['commands']['get']('footnotesStyle'),_0x171d30=_0x27e3e8(_0x5b5f90),{buttonView:_0x4ee523}=_0x171d30;return _0x171d30['class']='ck-footnotes-styles-dropdown',_0x171d30['bind']('isEnabled')['to'](_0x12d0ce,'isEnabled'),_0x4ee523['set']({'label':t('Footnotes\x20style'),'icon':_0x59fbc4,'tooltip':!0x0}),_0x171d30['once']('change:isOpen',()=>{const _0x2eb292=function({editor:_0x421b4a,dropdownView:_0x34ec54}){const {t:t}=_0x421b4a['locale'],_0x3f0c36=t('Footnotes\x20definitions\x20styles'),_0x401da2=function(_0x472278){const t=_0x472278['locale']['t'],_0x4bb42d=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x3ef62f},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1e4f2c},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0xde1ffd},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xad5bad},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x185c0d},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x8b695d}];return _0x4bb42d['map'](function(_0x325183){const _0x18e9d9=_0x325183['locale'];return({label:_0x154ee8,icon:_0x136dab,tooltip:_0x1d36e6,style:_0x109c16})=>{const _0x1eecf2=_0x325183['commands']['get']('footnotesStyle'),_0x2763bc=new _0x57e31b(_0x18e9d9);return _0x2763bc['set']({'label':_0x154ee8,'icon':_0x136dab,'tooltip':_0x1d36e6}),_0x2763bc['bind']('isOn')['to'](_0x1eecf2,'value',_0x27d200=>_0x27d200===_0x109c16),_0x2763bc['bind']('isEnabled')['to'](_0x1eecf2,'isEnabled'),_0x2763bc['on']('execute',()=>{_0x325183['execute']('footnotesStyle',{'value':_0x109c16}),_0x325183['editing']['view']['focus']();}),_0x2763bc;};}(_0x472278));}(_0x421b4a),_0x398003=new J(_0x421b4a['locale'],{'styleGridAriaLabel':_0x3f0c36,'styleButtonViews':_0x401da2}),_0x1c885e=_0x421b4a['commands']['get']('footnotesStart');return _0x398003['startIndexFieldView']['bind']('isEnabled')['to'](_0x1c885e),_0x398003['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x1c885e),_0x398003['on']('footnotesListStart',(_0x39b6fc,_0x545537)=>{_0x421b4a['execute']('footnotesStart',{'value':_0x545537['startIndex']});}),_0x398003['delegate']('execute')['to'](_0x34ec54),_0x398003;}({'editor':_0x4531b5,'dropdownView':_0x171d30});_0x171d30['panelView']['children']['add'](_0x2eb292);}),_0x171d30;};}(_0x20e074));}['afterInit'](){const {editor:_0x12908d}=this,{t:t}=_0x12908d['locale'],_0x10852c=_0x12908d['plugins']['get'](_0x485e67),{defaultPositions:_0x457eeb}=_0x39994f;_0x10852c['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x12908d['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x137271=>{let _0x42a3b6=_0x137271['getFirstPosition']()?.['parent'];return _0x42a3b6?.['is']('$text')&&(_0x42a3b6=_0x42a3b6['parent']),_0x42a3b6?.['is']('element')?_0x42a3b6['findAncestor'](Q):null;},'positions':[_0x457eeb['southArrowNorth'],_0x457eeb['southArrowNorthMiddleWest'],_0x457eeb['southArrowNorthMiddleEast'],_0x457eeb['southArrowNorthWest'],_0x457eeb['southArrowNorthEast'],_0x457eeb['northArrowSouth'],_0x457eeb['northArrowSouthMiddleWest'],_0x457eeb['northArrowSouthMiddleEast'],_0x457eeb['northArrowSouthWest'],_0x457eeb['northArrowSouthEast'],_0x457eeb['viewportStickyNorth']]});}}class ft extends _0x19d282{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.5.0-alpha.
|
|
3
|
+
"version": "47.5.0-alpha.5",
|
|
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.5.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.5.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.5.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.5.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.5.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.5.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.5.0-alpha.
|
|
33
|
-
"ckeditor5": "47.5.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.5.0-alpha.5",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.5.0-alpha.5",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.5.0-alpha.5",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.5.0-alpha.5",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.5.0-alpha.5",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.5.0-alpha.5",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.5.0-alpha.5",
|
|
33
|
+
"ckeditor5": "47.5.0-alpha.5"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x1174b3}from'ckeditor5/src/core.js';import{isWidget as _0x39964c,toWidget as _0x41af7e,toWidgetEditable as _0xe2da9f}from'ckeditor5/src/widget.js';import{uid as _0x2e13f0}from'ckeditor5/src/utils.js';import{PointerObserver as _0x1c89b3,ClickObserver as _0x47a1c2}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x5bf69e}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x430c0f}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1174b3{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x5bf69e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5a60bd}=this;_0x5a60bd['config']['define']('footnotes.multiBlock',!0x0),_0x5a60bd['commands']['add']('insertFootnote',new _0x430c0f(_0x5a60bd)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x11eba2){const _0x45cb8d=_0x1f5c06([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]),_0x5f1c18=0x47a28506,_0x1aff0d=0x47a5040e^_0x5f1c18,_0x51531c=window[_0x1f5c06([0x44,0x61,0x74,0x65])][_0x1f5c06([0x6e,0x6f,0x77])](),_0x557948=_0x11eba2[_0x1f5c06([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x488a1f=new window[(_0x1f5c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x306a34=>{_0x557948[_0x1f5c06([0x6f,0x6e,0x63,0x65])](_0x1f5c06([0x72,0x65,0x61,0x64,0x79]),_0x306a34);}),_0xa8d1de={[_0x1f5c06([0x6b,0x74,0x79])]:_0x1f5c06([0x45,0x43]),[_0x1f5c06([0x75,0x73,0x65])]:_0x1f5c06([0x73,0x69,0x67]),[_0x1f5c06([0x63,0x72,0x76])]:_0x1f5c06([0x50,0x2d,0x32,0x35,0x36]),[_0x1f5c06([0x78])]:_0x1f5c06([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]),[_0x1f5c06([0x79])]:_0x1f5c06([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]),[_0x1f5c06([0x61,0x6c,0x67])]:_0x1f5c06([0x45,0x53,0x32,0x35,0x36])},_0x35625f=_0x557948[_0x1f5c06([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1f5c06([0x67,0x65,0x74])](_0x1f5c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3e0e02(){let _0x340d26,_0x1747d3=null,_0x478c41=null;try{if(_0x35625f==_0x1f5c06([0x47,0x50,0x4c]))return _0x1f5c06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x340d26=_0x37aec3(),!_0x340d26)return _0x1f5c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x340d26[_0x1f5c06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x478c41=_0x48ee98(_0x340d26[_0x1f5c06([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x340d26[_0x1f5c06([0x6a,0x74,0x69])])),await _0x9e041a()?_0x42e9cc()?_0x22a98d()?_0x1f5c06([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x109765()?(_0x340d26[_0x1f5c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1f5c06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1747d3=_0x742362(_0x1f5c06([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1108e6()):_0x1f5c06([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1f5c06([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1f5c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1f5c06([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x22a98d(){const _0x1c8968=[_0x1f5c06([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1f5c06([0x74,0x72,0x69,0x61,0x6c])][_0x1f5c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x340d26[_0x1f5c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x51531c/0x3e8:0xe10*_0x1aff0d;return _0x340d26[_0x1f5c06([0x65,0x78,0x70])]<_0x1c8968;}function _0x42e9cc(){const _0x4ea0f6=_0x340d26[_0x1f5c06([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4ea0f6&&(!!_0x4ea0f6[_0x1f5c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f5c06([0x2a]))||!!_0x4ea0f6[_0x1f5c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f5c06([0x46,0x4f,0x4f])));}function _0x109765(){const _0x303a3d=_0x340d26[_0x1f5c06([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x303a3d||0x0==_0x303a3d[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5b726f}=new URL(window[_0x1f5c06([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x303a3d[_0x1f5c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5b726f))return!0x0;const _0x12ab1d=_0x5b726f[_0x1f5c06([0x73,0x70,0x6c,0x69,0x74])](_0x1f5c06([0x2e]));return _0x303a3d[_0x1f5c06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5e3bda=>_0x5e3bda[_0x1f5c06([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1f5c06([0x2a])))[_0x1f5c06([0x6d,0x61,0x70])](_0xf7bd19=>_0xf7bd19[_0x1f5c06([0x73,0x70,0x6c,0x69,0x74])](_0x1f5c06([0x2e])))[_0x1f5c06([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x17e26d=>_0x17e26d[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x12ab1d[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f5c06([0x6d,0x61,0x70])](_0x71987c=>Array(_0x12ab1d[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x71987c[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1f5c06([0x66,0x69,0x6c,0x6c])](_0x71987c[0x0]===_0x1f5c06([0x2a])?_0x1f5c06([0x2a]):'')[_0x1f5c06([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x71987c))[_0x1f5c06([0x73,0x6f,0x6d,0x65])](_0x10982e=>_0x12ab1d[_0x1f5c06([0x65,0x76,0x65,0x72,0x79])]((_0x121959,_0x347ae3)=>_0x10982e[_0x347ae3]===_0x121959||_0x10982e[_0x347ae3]===_0x1f5c06([0x2a])));}function _0x1108e6(){return _0x1747d3&&_0x478c41?new window[(_0x1f5c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2582a9,_0x3f14bd)=>{_0x1747d3[_0x1f5c06([0x74,0x68,0x65,0x6e])](_0x2582a9,_0x3f14bd),_0x478c41[_0x1f5c06([0x74,0x68,0x65,0x6e])](_0x8ae201=>{_0x8ae201!=_0x1f5c06([0x56,0x61,0x6c,0x69,0x64])&&_0x2582a9(_0x8ae201);},_0x3f14bd);}):_0x1747d3||_0x478c41||_0x1f5c06([0x56,0x61,0x6c,0x69,0x64]);}}function _0x48ee98(_0x250c70,_0xfe6b75){return new window[(_0x1f5c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x537cb9=>{if(_0x2a28eb())return _0x537cb9(_0x1f5c06([0x56,0x61,0x6c,0x69,0x64]));_0x28abfb(),_0x557948[_0x1f5c06([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1f5c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x3ab3a4=!0x1;const _0x2f8c14=_0x2e13f0();function _0x2f7fa7(_0x86535a){return!!_0x86535a&&(typeof _0x86535a===_0x1f5c06([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x86535a===_0x1f5c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x86535a[_0x1f5c06([0x74,0x68,0x65,0x6e])]===_0x1f5c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x86535a[_0x1f5c06([0x63,0x61,0x74,0x63,0x68])]===_0x1f5c06([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3294a7(_0x81ef3){_0x3e870b(_0x81ef3)[_0x1f5c06([0x74,0x68,0x65,0x6e])](_0x57a610=>{if(!_0x57a610||_0x57a610[_0x1f5c06([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1f5c06([0x6f,0x6b]))return _0x1f5c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x44a416(_0x1595ae(_0x2f8c14+_0xfe6b75))!=_0x57a610[_0x1f5c06([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1f5c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1f5c06([0x56,0x61,0x6c,0x69,0x64]);})[_0x1f5c06([0x74,0x68,0x65,0x6e])](_0x2aae9b=>(_0x2aa41f(),_0x2aae9b),()=>{const _0x25c21a=_0x437bd4();return null==_0x25c21a?(_0x2aa41f(),_0x1f5c06([0x56,0x61,0x6c,0x69,0x64])):_0x1f5c06(_0x51531c-_0x25c21a>(0x63ae0106^_0x5f1c18)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1f5c06([0x74,0x68,0x65,0x6e])](_0x537cb9)[_0x1f5c06([0x63,0x61,0x74,0x63,0x68])](()=>{_0x537cb9(_0x1f5c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x3b5dfd=0x47946b86^_0x5f1c18;function _0x2aa41f(){const _0x5215c4=_0x1f5c06([0x6c,0x6c,0x63,0x74,0x2d])+_0x44a416(_0x1595ae(_0x250c70)),_0xe5d13f=_0x41db24(_0x44a416(window[_0x1f5c06([0x4d,0x61,0x74,0x68])][_0x1f5c06([0x63,0x65,0x69,0x6c])](_0x51531c/_0x3b5dfd)));window[_0x1f5c06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f5c06([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5215c4,_0xe5d13f);}function _0x437bd4(){const _0x2205d3=_0x1f5c06([0x6c,0x6c,0x63,0x74,0x2d])+_0x44a416(_0x1595ae(_0x250c70)),_0x1b6758=window[_0x1f5c06([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1f5c06([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2205d3);return _0x1b6758?window[_0x1f5c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x41db24(_0x1b6758),0x10)*_0x3b5dfd:null;}function _0x3e870b(_0x3629d3){return new window[(_0x1f5c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x53900f,_0x18cc05)=>{_0x3629d3[_0x1f5c06([0x74,0x68,0x65,0x6e])](_0x53900f,_0x18cc05),window[_0x1f5c06([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x18cc05,0x47a351c6^_0x5f1c18);});}}_0x557948[_0x1f5c06([0x6f,0x6e])](_0x1f5c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x5b6c03,_0x56e794)=>{if(_0x56e794[0x0]!=_0x250c70)return _0x537cb9(_0x1f5c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x56e794[0x1]={..._0x56e794[0x1],[_0x1f5c06([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2f8c14};},{[_0x1f5c06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f5c06([0x68,0x69,0x67,0x68])}),_0x557948[_0x1f5c06([0x6f,0x6e])](_0x1f5c06([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x1cb83a=>{_0x2f7fa7(_0x1cb83a[_0x1f5c06([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x3ab3a4=!0x0,_0x3294a7(_0x1cb83a[_0x1f5c06([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1f5c06([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1f5c06([0x6c,0x6f,0x77])}),_0x488a1f[_0x1f5c06([0x74,0x68,0x65,0x6e])](()=>{_0x3ab3a4||_0x537cb9(_0x1f5c06([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2a28eb(){return _0x557948[_0x1f5c06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f5c06([0x76,0x69,0x65,0x77])][_0x1f5c06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1f5c06([0x61,0x75,0x74,0x6f]);}function _0x28abfb(){_0x557948[_0x1f5c06([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1f5c06([0x76,0x69,0x65,0x77])][_0x1f5c06([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1f5c06([0x61,0x75,0x74,0x6f]);}}function _0x742362(_0x3c5e5){const _0x4e7dfe=[new window[(_0x1f5c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1cde65=>setTimeout(_0x1cde65,0x47abbbca^_0x5f1c18)),_0x488a1f[_0x1f5c06([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1f5c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27fd1a=>{let _0x2253d2=0x0;_0x557948[_0x1f5c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f5c06([0x6f,0x6e])](_0x1f5c06([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5e99a6,_0x56f807)=>{_0x56f807[0x0][_0x1f5c06([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2253d2++,_0x2253d2==(0x47a280ee^_0x5f1c18)&&(_0x27fd1a(),_0x5e99a6[_0x1f5c06([0x6f,0x66,0x66])]());});}))];return window[_0x1f5c06([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1f5c06([0x72,0x61,0x63,0x65])](_0x4e7dfe)[_0x1f5c06([0x74,0x68,0x65,0x6e])](()=>_0x3c5e5);}async function _0x1e74a7(){await _0x488a1f,_0x557948[_0x1f5c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f5c06([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x19cb95,_0x557948[_0x1f5c06([0x6d,0x6f,0x64,0x65,0x6c])][_0x1f5c06([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x19cb95,_0x557948[_0x1f5c06([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1f5c06([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4cd2f8(_0x21e9b9){const _0x431403=_0x284126();_0x557948[_0x431403]=_0x1f5c06([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x21e9b9,_0x21e9b9!=_0x1f5c06([0x56,0x61,0x6c,0x69,0x64])&&_0x1e74a7();}function _0x284126(){const _0x515802=window[_0x1f5c06([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1f5c06([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1f5c06([0x6e,0x6f,0x77])]())[_0x1f5c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1f5c06([0x2e]),'');let _0x2c65c1=_0x1f5c06([0x75]);for(let _0x353e21=0x0;_0x353e21<_0x515802[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x353e21+=0x2){let _0x34c605=window[_0x1f5c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x515802[_0x1f5c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x353e21,_0x353e21+0x2));_0x34c605>=_0x45cb8d[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x34c605-=_0x45cb8d[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x2c65c1+=_0x45cb8d[_0x34c605];}return _0x2c65c1;}function _0x37aec3(){const _0x1a3841=_0x35625f[_0x1f5c06([0x73,0x70,0x6c,0x69,0x74])](_0x1f5c06([0x2e]));if(0x3!=_0x1a3841[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3eb4ef(_0x1a3841[0x1]);function _0x3eb4ef(_0xdbc82e){const _0xb10f16=_0x32dd5e(_0xdbc82e);return _0xb10f16&&_0x45e699()?_0xb10f16:null;function _0x45e699(){const _0x2d928b=_0xb10f16[_0x1f5c06([0x6a,0x74,0x69])],_0x4b291=window[_0x1f5c06([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d928b[_0x1f5c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2d928b[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3ccd5d={..._0xb10f16,[_0x1f5c06([0x6a,0x74,0x69])]:_0x2d928b[_0x1f5c06([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2d928b[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3ccd5d[_0x1f5c06([0x76,0x63])],_0x1595ae(_0x3ccd5d)==_0x4b291;}}}async function _0x9e041a(){let _0x1bc769=!0x0;try{const _0x48e434=_0x35625f[_0x1f5c06([0x73,0x70,0x6c,0x69,0x74])](_0x1f5c06([0x2e])),[_0x230a5f,_0x165b86,_0x560883]=_0x48e434;return _0x3f8d97(_0x230a5f),await _0x1d3c78(_0x230a5f,_0x165b86,_0x560883),_0x1bc769;}catch{return!0x1;}function _0x3f8d97(_0x41b16a){const _0x37c947=_0x32dd5e(_0x41b16a);_0x37c947&&_0x37c947[_0x1f5c06([0x61,0x6c,0x67])]==_0x1f5c06([0x45,0x53,0x32,0x35,0x36])||(_0x1bc769=!0x1);}async function _0x1d3c78(_0x272263,_0x376746,_0x577fc5){const _0x3824d1=window[_0x1f5c06([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1f5c06([0x66,0x72,0x6f,0x6d])](_0x55aaf2(_0x577fc5),_0x57358b=>_0x57358b[_0x1f5c06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x385bfd=new window[(_0x1f5c06([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1f5c06([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x272263+_0x1f5c06([0x2e])+_0x376746),_0x26ef2=window[_0x1f5c06([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1f5c06([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x26ef2)return;const _0x38afda=await _0x26ef2[_0x1f5c06([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1f5c06([0x6a,0x77,0x6b]),_0xa8d1de,{[_0x1f5c06([0x6e,0x61,0x6d,0x65])]:_0x1f5c06([0x45,0x43,0x44,0x53,0x41]),[_0x1f5c06([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1f5c06([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1f5c06([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x26ef2[_0x1f5c06([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1f5c06([0x6e,0x61,0x6d,0x65])]:_0x1f5c06([0x45,0x43,0x44,0x53,0x41]),[_0x1f5c06([0x68,0x61,0x73,0x68])]:{[_0x1f5c06([0x6e,0x61,0x6d,0x65])]:_0x1f5c06([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x38afda,_0x3824d1,_0x385bfd)||(_0x1bc769=!0x1);}}function _0x32dd5e(_0x1f3574){return _0x1f3574[_0x1f5c06([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1f5c06([0x65,0x79]))?JSON[_0x1f5c06([0x70,0x61,0x72,0x73,0x65])](_0x55aaf2(_0x1f3574)):null;}function _0x55aaf2(_0x42f4c9){return window[_0x1f5c06([0x61,0x74,0x6f,0x62])](_0x42f4c9[_0x1f5c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1f5c06([0x2b]))[_0x1f5c06([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1f5c06([0x2f])));}function _0x1595ae(_0x10dd95){let _0x521699=0x1505;function _0x1d0a69(_0x1624ee){for(let _0x1a447c=0x0;_0x1a447c<_0x1624ee[_0x1f5c06([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1a447c++){const _0x1520c3=_0x1624ee[_0x1f5c06([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1a447c);_0x521699=(_0x521699<<0x5)+_0x521699+_0x1520c3,_0x521699&=_0x521699;}}function _0x2fa8cc(_0x1e1e07){Array[_0x1f5c06([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1e1e07)?_0x1e1e07[_0x1f5c06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2fa8cc):_0x1e1e07&&typeof _0x1e1e07==_0x1f5c06([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1f5c06([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1e1e07)[_0x1f5c06([0x73,0x6f,0x72,0x74])]()[_0x1f5c06([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0xfb23a3,_0x5ed828])=>{_0x1d0a69(_0xfb23a3),_0x2fa8cc(_0x5ed828);}):_0x1d0a69(window[_0x1f5c06([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1e1e07));}return _0x2fa8cc(_0x10dd95),_0x521699>>>0x0;}function _0x44a416(_0xf30b8d){return _0xf30b8d[_0x1f5c06([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1f5c06([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1f5c06([0x30]));}function _0x41db24(_0x3865f4){return _0x3865f4[_0x1f5c06([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1f5c06([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1f5c06([0x6a,0x6f,0x69,0x6e])]('');}function _0x19cb95(){}function _0x1f5c06(_0x47a7ea){return _0x47a7ea['map'](_0x1bd903=>String['fromCharCode'](_0x1bd903))['join']('');}_0x4cd2f8(await _0x3e0e02());}(this);}['_moveSelectionToFootnoteDefinition'](_0x23779f){const {plugins:_0x3e93a7,editing:_0x32400d,model:_0x6fcf58}=this['editor'],_0x342e9d=_0x3e93a7['get'](_0x5bf69e)['getFootnote'](_0x23779f);return!!_0x342e9d&&(_0x6fcf58['change'](_0x2e91a=>{_0x2e91a['setSelection'](_0x2e91a['createPositionAt'](_0x342e9d['definition'],'end'));}),_0x32400d['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x52ef68){const {plugins:_0x4995ce,editing:_0x2bffb3,model:_0x3b312c}=this['editor'],_0x5617c7=_0x4995ce['get'](_0x5bf69e)['getFootnote'](_0x52ef68);return!!_0x5617c7&&(_0x3b312c['change'](_0x4a6bdc=>{_0x4a6bdc['setSelection'](_0x5617c7['reference'],'on');}),_0x2bffb3['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3d7000}=this['editor']['model'],_0x33c33b=this['editor']['config']['get']('footnotes.multiBlock');_0x3d7000['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3d7000['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3d7000['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x33c33b?_0x3d7000['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3d7000['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3d7000['addChildCheck'](_0x918663=>{for(const _0x5605a1 of _0x918663)if('footnoteDefinition'===_0x5605a1['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x23700c}=this,{conversion:_0x35818e,editing:_0x10f294}=_0x23700c,{t:t}=_0x23700c['locale'];_0x35818e['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x37145d,{writer:_0x26b950,consumable:_0x485937})=>{const _0x2a6811=_0x37145d['getChild'](0x0);if(!_0x2a6811||!_0x2a6811['is']('element','a'))return null;const _0x20dce8=_0x2a6811['getAttribute']('href')||'';if(!_0x20dce8['startsWith']('#'))return null;const _0x4c29c7=_0x20dce8['replace'](/^#/,'');if(!_0x4c29c7)return null;_0x485937['consume'](_0x2a6811,{'name':!0x0,'attributes':['href']});for(const {item:_0x1e50ce}of _0x10f294['view']['createRangeIn'](_0x2a6811))_0x1e50ce['is']('$textProxy')?_0x485937['consume'](_0x1e50ce['textNode'],{'name':!0x0}):_0x1e50ce['is']('element')&&_0x485937['consume'](_0x1e50ce,{'name':!0x0});return _0x26b950['createElement']('footnoteRef',{'footnoteId':_0x4c29c7});}}),_0x35818e['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x55569b,{writer:_0xadbc9e})=>b(_0x55569b,_0xadbc9e)}),_0x35818e['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5673fa,{writer:_0x464f5d})=>{const _0x42bf2a=_0x5673fa['getAttribute']('footnoteCounter');return _0x41af7e(b(_0x5673fa,_0x464f5d),_0x464f5d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x42bf2a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x200e66}=this,{t:t}=_0x200e66['locale'],{conversion:_0x49401d}=_0x200e66;_0x49401d['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x49401d['for']('upcast')['add'](_0x455bbb=>{_0x455bbb['on']('element:ol',(_0x30bd09,_0x69afe4,_0x12ca67)=>{const _0x10aea0=_0x69afe4['viewItem'];if(!_0x10aea0['hasClass']('footnotes-list')||!_0x69afe4['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x12ca67['consumable']['consume'](_0x10aea0,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x333924,modelCursor:_0x1f6c8d}=_0x12ca67['convertChildren'](_0x69afe4['viewItem'],_0x69afe4['modelCursor']);_0x69afe4['modelRange']=_0x333924,_0x69afe4['modelCursor']=_0x1f6c8d;}),_0x455bbb['on']('element:hr',(_0x3812ce,_0x45ae59,_0x35b71a)=>{const _0x1927bc=_0x45ae59['viewItem'];_0x1927bc['hasClass']('footnotes-divider')&&_0x45ae59['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x35b71a['consumable']['consume'](_0x1927bc,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x49401d['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x44948b,{writer:_0x19cb61})=>D(_0x19cb61)}),_0x49401d['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x41291b,{writer:_0x239d03})=>{const _0x5c40ff=D(_0x239d03,{'data-footnotes-list-label':t('Footnotes')}),_0x47d4ea=_0x41af7e(_0x5c40ff,_0x239d03,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x239d03['setCustomProperty']('footnotesDefinitions',!0x0,_0x47d4ea),_0x47d4ea;}});}['_defineDefinitionConverters'](){const {editor:_0x10288e}=this,{conversion:_0x3648b8,locale:_0x3d4b8f}=_0x10288e,_0x3f10aa=_0x10288e['config']['get']('footnotes.multiBlock');_0x3648b8['for']('upcast')['add'](_0x215fdd=>{_0x215fdd['on']('element:li',(_0x34843b,_0x2e1a7c,_0x5e7e14)=>{const _0x5c5b5d=_0x2e1a7c['viewItem'];if(!_0x5c5b5d['hasClass']('footnote-definition')||!_0x5c5b5d['getAttribute']('id'))return;const _0x5703bb=_0x5c5b5d['parent'];if(!_0x5703bb['is']('element','ol')||!_0x5703bb['hasClass']('footnotes-list'))return;if(!_0x5e7e14['consumable']['test'](_0x5c5b5d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x395c3b=_0x5e7e14['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x5c5b5d['getAttribute']('id')});if(!_0x5e7e14['safeInsert'](_0x395c3b,_0x2e1a7c['modelCursor']))return;_0x5e7e14['consumable']['consume'](_0x5c5b5d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x578eeb=Array['from'](_0x5c5b5d['getChildren']())['find'](_0x68e98d=>_0x68e98d['is']('element')&&_0x68e98d['hasClass']('footnote-content'));for(const _0x3c1017 of _0x5c5b5d['getChildren']())_0x3c1017['is']('element')&&(_0x5e7e14['consumable']['consume'](_0x3c1017,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x5e7e14['consumable']['consume'](_0x3c1017,{'name':!0x0,'classes':'footnote-content'}));if(_0x578eeb){if(_0x3f10aa)_0x5e7e14['convertChildren'](_0x578eeb,_0x395c3b);else{const _0x6984da=_0x5e7e14['writer']['createElement']('footnoteInlineContent');_0x5e7e14['writer']['insert'](_0x6984da,_0x395c3b),_0x5e7e14['convertChildren'](_0x578eeb,_0x6984da);}}_0x5e7e14['updateConversionResult'](_0x395c3b,_0x2e1a7c);});}),_0x3648b8['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x59e4a4,{writer:_0x20df03})=>y(_0x59e4a4,_0x20df03,_0x3d4b8f,{'dataPipeline':!0x0})}),_0x3648b8['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x458b35,{writer:_0x532c5f})=>y(_0x458b35,_0x532c5f,_0x3d4b8f)});}['_defineBogusParagraphConverters'](){const {editor:_0xd09999}=this,{conversion:_0x123eab}=_0xd09999;_0xd09999['config']['get']('footnotes.multiBlock')?(_0x123eab['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x123eab['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xd09999['model']['document'],'change:data',()=>{!function(_0x294077,_0x17797f){const _0x2c68d7=_0x294077['document']['differ'],_0x3ed29c=new Set();for(const _0x40ff29 of _0x2c68d7['getChanges']()){const _0x2dddaf='attribute'==_0x40ff29['type']?_0x40ff29['range']['start']['parent']:_0x40ff29['position']['parent'];_0x2dddaf['is']('element','footnoteDefinition')&&_0x3ed29c['add'](_0x2dddaf);}for(const _0x3b6dd1 of _0x3ed29c['values']()){const _0xce5837=Array['from'](_0x3b6dd1['getChildren']())['filter'](_0x3b096d=>v(_0x3b096d,_0x17797f['mapper']));for(const _0x243941 of _0xce5837)_0x17797f['reconvertItem'](_0x243941);}}(_0xd09999['model'],_0xd09999['editing']);})):(_0x123eab['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x123eab['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3d6694,{writer:_0x3bff06})=>{const _0x5ccc85=_0x3bff06['createContainerElement']('span');return _0x3bff06['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5ccc85),_0x5ccc85;}}));}['_defineKeyboardHandlers'](){const {editor:_0x262dcf}=this,{editing:_0x1b4b91,t:t}=_0x262dcf,_0x3625f2=_0x262dcf['model']['document']['selection'];_0x262dcf['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x262dcf['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1b4b91['view']['document'],'enter',(_0x54552f,_0x43b34e)=>{const _0xb9ee6c=function(_0x475646){const _0x32a2a6=_0x475646['getSelectedElement']();if(_0x32a2a6?.['is']('element','footnoteRef'))return _0x32a2a6;return null;}(_0x3625f2);if(_0xb9ee6c){const _0x2f655b=_0xb9ee6c['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2f655b),_0x43b34e['preventDefault'](),_0x54552f['stop']();}},{'context':_0x39964c});}['_defineClickHandlers'](){const {editor:_0x5504a4}=this,{editing:_0x4ebd12}=_0x5504a4;_0x5504a4['editing']['view']['addObserver'](_0x1c89b3),_0x5504a4['editing']['view']['addObserver'](_0x47a1c2);let _0x51a6fb=!0x1;this['listenTo'](_0x4ebd12['view']['document'],'pointerdown',(_0x4594ef,_0x514571)=>{const {target:_0x150b4b}=_0x514571,_0xe6a968=_0x4ebd12['view']['document']['selection'];_0x51a6fb=!!(_0x150b4b?.['is']('element','a')&&_0x150b4b['parent']?.['is']('element','sup')&&_0x150b4b['parent']['hasClass']('footnote'))&&_0xe6a968['getSelectedElement']()===_0x150b4b['parent'];},{'priority':'high'}),this['listenTo'](_0x4ebd12['view']['document'],'click',(_0x1b9bde,_0x3d721d)=>{const {target:_0x36bcb1}=_0x3d721d;if(!_0x36bcb1?.['is']('element','a'))return;if(_0x36bcb1['parent']?.['is']('element','sup')&&_0x36bcb1['parent']['hasClass']('footnote')&&!_0x51a6fb)return void _0x3d721d['preventDefault']();let _0x26f265=_0x36bcb1['getAttribute']('href');if(!_0x26f265?.['startsWith']('#'))return;_0x26f265=_0x26f265['slice'](0x1);let _0x55e867=!0x1;(_0x26f265['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x26f265['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x26f265))&&(_0x55e867=!0x0),_0x55e867&&(_0x3d721d['preventDefault'](),_0x1b9bde['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x43a41b}={}){return(_0x51b1d9,{writer:_0x40f51f})=>{if(!g(_0x51b1d9))return null;if(!_0x43a41b)return _0x40f51f['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x44f4d5=_0x40f51f['createContainerElement']('p');return _0x40f51f['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x44f4d5),_0x44f4d5;};}function g(_0x1d4a67){const {parent:_0x1f5df3}=_0x1d4a67;if(!_0x1f5df3?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1f5df3['childCount'])return!0x1;for(const _0x168664 of _0x1d4a67['getAttributeKeys']())if(!_0x168664['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x168664)return!0x1;return!0x0;}function v(_0x539893,_0x382c82){if(!_0x539893['is']('element','paragraph'))return!0x1;const _0x9856f0=_0x382c82['toViewElement'](_0x539893);return!!_0x9856f0&&g(_0x539893)!==_0x9856f0['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x6717d3){return _0x39964c(_0x6717d3)&&_0x6717d3['is']('containerElement')&&!!_0x6717d3['getCustomProperty']('footnotesDefinitions');}function D(_0x1aa8eb,_0x29d80a={}){const _0x4d911b=_0x1aa8eb['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x23dcd0=_0x1aa8eb['createContainerElement']('ol',{'class':'footnotes-list'},_0x1aa8eb['createSlot']());return _0x1aa8eb['createContainerElement']('div',{'class':'footnotes',..._0x29d80a},[_0x4d911b,_0x23dcd0]);}function b(_0x40d2ea,_0x3b98ed){const _0xcaa247=_0x40d2ea['getAttribute']('footnoteId'),_0x4ff49c=_0x40d2ea['getAttribute']('footnoteCounter'),_0x4a58fe=_0x3b98ed['createUIElement']('a',{'href':'#'+_0xcaa247},function(_0x25c172){const _0x158e86=this['toDomElement'](_0x25c172);return _0x158e86['textContent']=_0x4ff49c,_0x158e86;}),_0x446383=_0x3b98ed['createContainerElement']('sup',{'id':'ref-'+_0xcaa247,'class':'footnote'},[_0x4a58fe]);return _0x446383['getFillerOffset']=()=>null,_0x446383;}function y(_0x4dd512,_0xdab6ef,_0x1a47d2,{dataPipeline:_0x3cb6c4}={}){const {t:t}=_0x1a47d2,_0x1892c3=_0x4dd512['getAttribute']('footnoteId'),_0x8a26aa=_0xdab6ef['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1892c3},function(_0x5c6aa4){const _0x29c893=this['toDomElement'](_0x5c6aa4);return _0x29c893['innerText']='^',_0x29c893;}),_0x30c49a=_0x3cb6c4?_0xdab6ef['createContainerElement']('div',{'class':'footnote-content'}):_0xe2da9f(_0xdab6ef['createEditableElement']('div',{'class':'footnote-content'}),_0xdab6ef,{'label':t('Footnote\x20content.')});return _0xdab6ef['insert'](_0xdab6ef['createPositionAt'](_0x30c49a,0x0),_0xdab6ef['createSlot']()),_0xdab6ef['createContainerElement']('li',{'class':'footnote-definition','id':_0x1892c3},[_0x8a26aa,_0x30c49a]);}
|
|
23
|
+
import{Plugin as _0x4753b7}from'ckeditor5/src/core.js';import{isWidget as _0x263b59,toWidget as _0x482574,toWidgetEditable as _0x1e69d5}from'ckeditor5/src/widget.js';import{uid as _0x1f6c4e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x28581c,ClickObserver as _0x181017}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x3d36ec}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x505ad1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x4753b7{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x3d36ec];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xabe3ce}=this;_0xabe3ce['config']['define']('footnotes.multiBlock',!0x0),_0xabe3ce['commands']['add']('insertFootnote',new _0x505ad1(_0xabe3ce)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x331b23){const _0x562730=_0x389087([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]),_0x452d62=0x47a28506,_0x4cda41=0x47a5043e^_0x452d62,_0x1c9dad=window[_0x389087([0x44,0x61,0x74,0x65])][_0x389087([0x6e,0x6f,0x77])](),_0xb1b50d=_0x331b23[_0x389087([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x479e30=new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x11fefc=>{_0xb1b50d[_0x389087([0x6f,0x6e,0x63,0x65])](_0x389087([0x72,0x65,0x61,0x64,0x79]),_0x11fefc);}),_0x48be6e={[_0x389087([0x6b,0x74,0x79])]:_0x389087([0x45,0x43]),[_0x389087([0x75,0x73,0x65])]:_0x389087([0x73,0x69,0x67]),[_0x389087([0x63,0x72,0x76])]:_0x389087([0x50,0x2d,0x32,0x35,0x36]),[_0x389087([0x78])]:_0x389087([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]),[_0x389087([0x79])]:_0x389087([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]),[_0x389087([0x61,0x6c,0x67])]:_0x389087([0x45,0x53,0x32,0x35,0x36])},_0x1bf44e=_0xb1b50d[_0x389087([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x389087([0x67,0x65,0x74])](_0x389087([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x17262e(){let _0x2b0083,_0x166c11=null,_0x1f3236=null;try{if(_0x1bf44e==_0x389087([0x47,0x50,0x4c]))return _0x389087([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2b0083=_0x1bc8c8(),!_0x2b0083)return _0x389087([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2b0083[_0x389087([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1f3236=_0xdcc2c0(_0x2b0083[_0x389087([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2b0083[_0x389087([0x6a,0x74,0x69])])),await _0x187510()?_0x1fe2db()?_0x215e62()?_0x389087([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x173e55()?(_0x2b0083[_0x389087([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x389087([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x166c11=_0x231e68(_0x389087([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3ba97e()):_0x389087([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x389087([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x389087([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x389087([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x215e62(){const _0x3eb8ee=[_0x389087([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x389087([0x74,0x72,0x69,0x61,0x6c])][_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2b0083[_0x389087([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1c9dad/0x3e8:0xe10*_0x4cda41;return _0x2b0083[_0x389087([0x65,0x78,0x70])]<_0x3eb8ee;}function _0x1fe2db(){const _0x535f5b=_0x2b0083[_0x389087([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x535f5b&&(!!_0x535f5b[_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389087([0x2a]))||!!_0x535f5b[_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389087([0x46,0x4f,0x4f])));}function _0x173e55(){const _0x1dd501=_0x2b0083[_0x389087([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1dd501||0x0==_0x1dd501[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x352cb0}=new URL(window[_0x389087([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1dd501[_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x352cb0))return!0x0;const _0x2303d6=_0x352cb0[_0x389087([0x73,0x70,0x6c,0x69,0x74])](_0x389087([0x2e]));return _0x1dd501[_0x389087([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x36c3eb=>_0x36c3eb[_0x389087([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x389087([0x2a])))[_0x389087([0x6d,0x61,0x70])](_0xbd2ac0=>_0xbd2ac0[_0x389087([0x73,0x70,0x6c,0x69,0x74])](_0x389087([0x2e])))[_0x389087([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5c2603=>_0x5c2603[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x2303d6[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389087([0x6d,0x61,0x70])](_0x535778=>Array(_0x2303d6[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x535778[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x389087([0x66,0x69,0x6c,0x6c])](_0x535778[0x0]===_0x389087([0x2a])?_0x389087([0x2a]):'')[_0x389087([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x535778))[_0x389087([0x73,0x6f,0x6d,0x65])](_0x114e3b=>_0x2303d6[_0x389087([0x65,0x76,0x65,0x72,0x79])]((_0x3ce7dd,_0x293af2)=>_0x114e3b[_0x293af2]===_0x3ce7dd||_0x114e3b[_0x293af2]===_0x389087([0x2a])));}function _0x3ba97e(){return _0x166c11&&_0x1f3236?new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x407180,_0x520bda)=>{_0x166c11[_0x389087([0x74,0x68,0x65,0x6e])](_0x407180,_0x520bda),_0x1f3236[_0x389087([0x74,0x68,0x65,0x6e])](_0x55098c=>{_0x55098c!=_0x389087([0x56,0x61,0x6c,0x69,0x64])&&_0x407180(_0x55098c);},_0x520bda);}):_0x166c11||_0x1f3236||_0x389087([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdcc2c0(_0x244d4a,_0x1a9470){return new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x27ce56=>{if(_0x1ef928())return _0x27ce56(_0x389087([0x56,0x61,0x6c,0x69,0x64]));_0x273cfc(),_0xb1b50d[_0x389087([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x389087([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x398bcc=!0x1;const _0x1207cc=_0x1f6c4e();function _0x359c5a(_0x38f02d){return!!_0x38f02d&&(typeof _0x38f02d===_0x389087([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x38f02d===_0x389087([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x38f02d[_0x389087([0x74,0x68,0x65,0x6e])]===_0x389087([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x38f02d[_0x389087([0x63,0x61,0x74,0x63,0x68])]===_0x389087([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3db797(_0x25e2f9){_0x28f472(_0x25e2f9)[_0x389087([0x74,0x68,0x65,0x6e])](_0x52f34c=>{if(!_0x52f34c||_0x52f34c[_0x389087([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x389087([0x6f,0x6b]))return _0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4add69(_0x5c5608(_0x1207cc+_0x1a9470))!=_0x52f34c[_0x389087([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x389087([0x56,0x61,0x6c,0x69,0x64]);})[_0x389087([0x74,0x68,0x65,0x6e])](_0x16379e=>(_0x59b98b(),_0x16379e),()=>{const _0x4e39a7=_0x286eff();return null==_0x4e39a7?(_0x59b98b(),_0x389087([0x56,0x61,0x6c,0x69,0x64])):_0x389087(_0x1c9dad-_0x4e39a7>(0x63ae0106^_0x452d62)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x389087([0x74,0x68,0x65,0x6e])](_0x27ce56)[_0x389087([0x63,0x61,0x74,0x63,0x68])](()=>{_0x27ce56(_0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x927608=0x47946b86^_0x452d62;function _0x59b98b(){const _0x42f104=_0x389087([0x6c,0x6c,0x63,0x74,0x2d])+_0x4add69(_0x5c5608(_0x244d4a)),_0x351421=_0x708cf8(_0x4add69(window[_0x389087([0x4d,0x61,0x74,0x68])][_0x389087([0x63,0x65,0x69,0x6c])](_0x1c9dad/_0x927608)));window[_0x389087([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389087([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x42f104,_0x351421);}function _0x286eff(){const _0x36a918=_0x389087([0x6c,0x6c,0x63,0x74,0x2d])+_0x4add69(_0x5c5608(_0x244d4a)),_0x1bfacd=window[_0x389087([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x389087([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x36a918);return _0x1bfacd?window[_0x389087([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x708cf8(_0x1bfacd),0x10)*_0x927608:null;}function _0x28f472(_0x418d2c){return new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4478c3,_0xeb8b7)=>{_0x418d2c[_0x389087([0x74,0x68,0x65,0x6e])](_0x4478c3,_0xeb8b7),window[_0x389087([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xeb8b7,0x47a351c6^_0x452d62);});}}_0xb1b50d[_0x389087([0x6f,0x6e])](_0x389087([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4ba6b7,_0xdf7308)=>{if(_0xdf7308[0x0]!=_0x244d4a)return _0x27ce56(_0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xdf7308[0x1]={..._0xdf7308[0x1],[_0x389087([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1207cc};},{[_0x389087([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389087([0x68,0x69,0x67,0x68])}),_0xb1b50d[_0x389087([0x6f,0x6e])](_0x389087([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x368b92=>{_0x359c5a(_0x368b92[_0x389087([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x398bcc=!0x0,_0x3db797(_0x368b92[_0x389087([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x389087([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x389087([0x6c,0x6f,0x77])}),_0x479e30[_0x389087([0x74,0x68,0x65,0x6e])](()=>{_0x398bcc||_0x27ce56(_0x389087([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1ef928(){return _0xb1b50d[_0x389087([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389087([0x76,0x69,0x65,0x77])][_0x389087([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x389087([0x61,0x75,0x74,0x6f]);}function _0x273cfc(){_0xb1b50d[_0x389087([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x389087([0x76,0x69,0x65,0x77])][_0x389087([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x389087([0x61,0x75,0x74,0x6f]);}}function _0x231e68(_0xc7374a){const _0x10d1a0=[new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x107ac1=>setTimeout(_0x107ac1,0x47abbbca^_0x452d62)),_0x479e30[_0x389087([0x74,0x68,0x65,0x6e])](()=>new window[(_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3b8029=>{let _0x1bb9be=0x0;_0xb1b50d[_0x389087([0x6d,0x6f,0x64,0x65,0x6c])][_0x389087([0x6f,0x6e])](_0x389087([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xb20f84,_0x15b3da)=>{_0x15b3da[0x0][_0x389087([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1bb9be++,_0x1bb9be==(0x47a280ee^_0x452d62)&&(_0x3b8029(),_0xb20f84[_0x389087([0x6f,0x66,0x66])]());});}))];return window[_0x389087([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x389087([0x72,0x61,0x63,0x65])](_0x10d1a0)[_0x389087([0x74,0x68,0x65,0x6e])](()=>_0xc7374a);}async function _0x5775ee(){await _0x479e30,_0xb1b50d[_0x389087([0x6d,0x6f,0x64,0x65,0x6c])][_0x389087([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x10e2fc,_0xb1b50d[_0x389087([0x6d,0x6f,0x64,0x65,0x6c])][_0x389087([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x10e2fc,_0xb1b50d[_0x389087([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x389087([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x45bd81(_0x1e01e1){const _0x233612=_0x182b47();_0xb1b50d[_0x233612]=_0x389087([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1e01e1,_0x1e01e1!=_0x389087([0x56,0x61,0x6c,0x69,0x64])&&_0x5775ee();}function _0x182b47(){const _0x3256a3=window[_0x389087([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x389087([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x389087([0x6e,0x6f,0x77])]())[_0x389087([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x389087([0x2e]),'');let _0x43cad2=_0x389087([0x75]);for(let _0x46948e=0x0;_0x46948e<_0x3256a3[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46948e+=0x2){let _0x1150d3=window[_0x389087([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3256a3[_0x389087([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x46948e,_0x46948e+0x2));_0x1150d3>=_0x562730[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1150d3-=_0x562730[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x43cad2+=_0x562730[_0x1150d3];}return _0x43cad2;}function _0x1bc8c8(){const _0x5b8d10=_0x1bf44e[_0x389087([0x73,0x70,0x6c,0x69,0x74])](_0x389087([0x2e]));if(0x3!=_0x5b8d10[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x533583(_0x5b8d10[0x1]);function _0x533583(_0x1466d6){const _0x1a3139=_0x4d5509(_0x1466d6);return _0x1a3139&&_0x52c470()?_0x1a3139:null;function _0x52c470(){const _0x30e7a3=_0x1a3139[_0x389087([0x6a,0x74,0x69])],_0x109169=window[_0x389087([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x30e7a3[_0x389087([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x30e7a3[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x56af84={..._0x1a3139,[_0x389087([0x6a,0x74,0x69])]:_0x30e7a3[_0x389087([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x30e7a3[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x56af84[_0x389087([0x76,0x63])],_0x5c5608(_0x56af84)==_0x109169;}}}async function _0x187510(){let _0x12f42f=!0x0;try{const _0x394ed0=_0x1bf44e[_0x389087([0x73,0x70,0x6c,0x69,0x74])](_0x389087([0x2e])),[_0x12fdf8,_0x56b6ab,_0x22a4dd]=_0x394ed0;return _0x4b4300(_0x12fdf8),await _0x57cad0(_0x12fdf8,_0x56b6ab,_0x22a4dd),_0x12f42f;}catch{return!0x1;}function _0x4b4300(_0x1e4320){const _0x24fcf1=_0x4d5509(_0x1e4320);_0x24fcf1&&_0x24fcf1[_0x389087([0x61,0x6c,0x67])]==_0x389087([0x45,0x53,0x32,0x35,0x36])||(_0x12f42f=!0x1);}async function _0x57cad0(_0xd1f138,_0x763ae7,_0x9ed3b3){const _0x334678=window[_0x389087([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x389087([0x66,0x72,0x6f,0x6d])](_0x464e72(_0x9ed3b3),_0x1e9c8a=>_0x1e9c8a[_0x389087([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x179b9f=new window[(_0x389087([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x389087([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xd1f138+_0x389087([0x2e])+_0x763ae7),_0x40716c=window[_0x389087([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x389087([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x40716c)return;const _0x3af6b0=await _0x40716c[_0x389087([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x389087([0x6a,0x77,0x6b]),_0x48be6e,{[_0x389087([0x6e,0x61,0x6d,0x65])]:_0x389087([0x45,0x43,0x44,0x53,0x41]),[_0x389087([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x389087([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x389087([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x40716c[_0x389087([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x389087([0x6e,0x61,0x6d,0x65])]:_0x389087([0x45,0x43,0x44,0x53,0x41]),[_0x389087([0x68,0x61,0x73,0x68])]:{[_0x389087([0x6e,0x61,0x6d,0x65])]:_0x389087([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3af6b0,_0x334678,_0x179b9f)||(_0x12f42f=!0x1);}}function _0x4d5509(_0x2bb174){return _0x2bb174[_0x389087([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x389087([0x65,0x79]))?JSON[_0x389087([0x70,0x61,0x72,0x73,0x65])](_0x464e72(_0x2bb174)):null;}function _0x464e72(_0x592259){return window[_0x389087([0x61,0x74,0x6f,0x62])](_0x592259[_0x389087([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x389087([0x2b]))[_0x389087([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x389087([0x2f])));}function _0x5c5608(_0x361c16){let _0xcac334=0x1505;function _0x5a1c73(_0x2633cb){for(let _0x4e9f0d=0x0;_0x4e9f0d<_0x2633cb[_0x389087([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x4e9f0d++){const _0xfea37f=_0x2633cb[_0x389087([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x4e9f0d);_0xcac334=(_0xcac334<<0x5)+_0xcac334+_0xfea37f,_0xcac334&=_0xcac334;}}function _0x4150a4(_0x10d153){Array[_0x389087([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x10d153)?_0x10d153[_0x389087([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x4150a4):_0x10d153&&typeof _0x10d153==_0x389087([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x389087([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x10d153)[_0x389087([0x73,0x6f,0x72,0x74])]()[_0x389087([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4c4d1e,_0x51394f])=>{_0x5a1c73(_0x4c4d1e),_0x4150a4(_0x51394f);}):_0x5a1c73(window[_0x389087([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x10d153));}return _0x4150a4(_0x361c16),_0xcac334>>>0x0;}function _0x4add69(_0x3792df){return _0x3792df[_0x389087([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x389087([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x389087([0x30]));}function _0x708cf8(_0x2b428e){return _0x2b428e[_0x389087([0x73,0x70,0x6c,0x69,0x74])]('')[_0x389087([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x389087([0x6a,0x6f,0x69,0x6e])]('');}function _0x10e2fc(){}function _0x389087(_0x330ba7){return _0x330ba7['map'](_0x58c4e8=>String['fromCharCode'](_0x58c4e8))['join']('');}_0x45bd81(await _0x17262e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x46615f){const {plugins:_0x396257,editing:_0x5b54cb,model:_0x43e929}=this['editor'],_0xb07467=_0x396257['get'](_0x3d36ec)['getFootnote'](_0x46615f);return!!_0xb07467&&(_0x43e929['change'](_0x3391c9=>{_0x3391c9['setSelection'](_0x3391c9['createPositionAt'](_0xb07467['definition'],'end'));}),_0x5b54cb['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x26354a){const {plugins:_0x5c1724,editing:_0x4c9377,model:_0x506207}=this['editor'],_0x3c906a=_0x5c1724['get'](_0x3d36ec)['getFootnote'](_0x26354a);return!!_0x3c906a&&(_0x506207['change'](_0xd56859=>{_0xd56859['setSelection'](_0x3c906a['reference'],'on');}),_0x4c9377['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x92aa99}=this['editor']['model'],_0x20a0dc=this['editor']['config']['get']('footnotes.multiBlock');_0x92aa99['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x92aa99['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x92aa99['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x20a0dc?_0x92aa99['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x92aa99['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x92aa99['addChildCheck'](_0x2af423=>{for(const _0x5d4f22 of _0x2af423)if('footnoteDefinition'===_0x5d4f22['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xce6a51}=this,{conversion:_0x18d694,editing:_0x386c6a}=_0xce6a51,{t:t}=_0xce6a51['locale'];_0x18d694['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x38a8b1,{writer:_0x42b1fe,consumable:_0x4ae14b})=>{const _0x27347a=_0x38a8b1['getChild'](0x0);if(!_0x27347a||!_0x27347a['is']('element','a'))return null;const _0x4e986a=_0x27347a['getAttribute']('href')||'';if(!_0x4e986a['startsWith']('#'))return null;const _0x251c30=_0x4e986a['replace'](/^#/,'');if(!_0x251c30)return null;_0x4ae14b['consume'](_0x27347a,{'name':!0x0,'attributes':['href']});for(const {item:_0x405ba3}of _0x386c6a['view']['createRangeIn'](_0x27347a))_0x405ba3['is']('$textProxy')?_0x4ae14b['consume'](_0x405ba3['textNode'],{'name':!0x0}):_0x405ba3['is']('element')&&_0x4ae14b['consume'](_0x405ba3,{'name':!0x0});return _0x42b1fe['createElement']('footnoteRef',{'footnoteId':_0x251c30});}}),_0x18d694['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x2ec0a4,{writer:_0x2548ad})=>b(_0x2ec0a4,_0x2548ad)}),_0x18d694['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x25d687,{writer:_0x2b0e91})=>{const _0x29a281=_0x25d687['getAttribute']('footnoteCounter');return _0x482574(b(_0x25d687,_0x2b0e91),_0x2b0e91,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x29a281)});}});}['_defineDefinitionsConverters'](){const {editor:_0x375552}=this,{t:t}=_0x375552['locale'],{conversion:_0x2ccacc}=_0x375552;_0x2ccacc['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x2ccacc['for']('upcast')['add'](_0x5d3dc5=>{_0x5d3dc5['on']('element:ol',(_0x589d42,_0x319021,_0x47a4f2)=>{const _0x561e42=_0x319021['viewItem'];if(!_0x561e42['hasClass']('footnotes-list')||!_0x319021['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x47a4f2['consumable']['consume'](_0x561e42,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xeec8c0,modelCursor:_0x22162d}=_0x47a4f2['convertChildren'](_0x319021['viewItem'],_0x319021['modelCursor']);_0x319021['modelRange']=_0xeec8c0,_0x319021['modelCursor']=_0x22162d;}),_0x5d3dc5['on']('element:hr',(_0x5ba385,_0x528982,_0x171db9)=>{const _0x1b019f=_0x528982['viewItem'];_0x1b019f['hasClass']('footnotes-divider')&&_0x528982['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x171db9['consumable']['consume'](_0x1b019f,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x2ccacc['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4ed2c7,{writer:_0x5baec6})=>D(_0x5baec6)}),_0x2ccacc['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x23dca9,{writer:_0x4c5926})=>{const _0x5c42c1=D(_0x4c5926,{'data-footnotes-list-label':t('Footnotes')}),_0x2f3723=_0x482574(_0x5c42c1,_0x4c5926,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4c5926['setCustomProperty']('footnotesDefinitions',!0x0,_0x2f3723),_0x2f3723;}});}['_defineDefinitionConverters'](){const {editor:_0x2f4704}=this,{conversion:_0xaeb15c,locale:_0x4fa9f4}=_0x2f4704,_0x89a6cb=_0x2f4704['config']['get']('footnotes.multiBlock');_0xaeb15c['for']('upcast')['add'](_0x1f3baf=>{_0x1f3baf['on']('element:li',(_0x26284c,_0xf4ca51,_0x11272f)=>{const _0x4b1181=_0xf4ca51['viewItem'];if(!_0x4b1181['hasClass']('footnote-definition')||!_0x4b1181['getAttribute']('id'))return;const _0x1535cb=_0x4b1181['parent'];if(!_0x1535cb['is']('element','ol')||!_0x1535cb['hasClass']('footnotes-list'))return;if(!_0x11272f['consumable']['test'](_0x4b1181,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3c8221=_0x11272f['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4b1181['getAttribute']('id')});if(!_0x11272f['safeInsert'](_0x3c8221,_0xf4ca51['modelCursor']))return;_0x11272f['consumable']['consume'](_0x4b1181,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x25df30=Array['from'](_0x4b1181['getChildren']())['find'](_0x426697=>_0x426697['is']('element')&&_0x426697['hasClass']('footnote-content'));for(const _0x13e9bc of _0x4b1181['getChildren']())_0x13e9bc['is']('element')&&(_0x11272f['consumable']['consume'](_0x13e9bc,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x11272f['consumable']['consume'](_0x13e9bc,{'name':!0x0,'classes':'footnote-content'}));if(_0x25df30){if(_0x89a6cb)_0x11272f['convertChildren'](_0x25df30,_0x3c8221);else{const _0x19c24e=_0x11272f['writer']['createElement']('footnoteInlineContent');_0x11272f['writer']['insert'](_0x19c24e,_0x3c8221),_0x11272f['convertChildren'](_0x25df30,_0x19c24e);}}_0x11272f['updateConversionResult'](_0x3c8221,_0xf4ca51);});}),_0xaeb15c['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4478ee,{writer:_0x3b83af})=>y(_0x4478ee,_0x3b83af,_0x4fa9f4,{'dataPipeline':!0x0})}),_0xaeb15c['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x122779,{writer:_0x28bca3})=>y(_0x122779,_0x28bca3,_0x4fa9f4)});}['_defineBogusParagraphConverters'](){const {editor:_0x4dea6f}=this,{conversion:_0x8c4518}=_0x4dea6f;_0x4dea6f['config']['get']('footnotes.multiBlock')?(_0x8c4518['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x8c4518['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x4dea6f['model']['document'],'change:data',()=>{!function(_0x10f428,_0x403408){const _0x218fa5=_0x10f428['document']['differ'],_0x253bb5=new Set();for(const _0x5a5114 of _0x218fa5['getChanges']()){const _0x213238='attribute'==_0x5a5114['type']?_0x5a5114['range']['start']['parent']:_0x5a5114['position']['parent'];_0x213238['is']('element','footnoteDefinition')&&_0x253bb5['add'](_0x213238);}for(const _0x55e91b of _0x253bb5['values']()){const _0x4c608b=Array['from'](_0x55e91b['getChildren']())['filter'](_0x37979d=>v(_0x37979d,_0x403408['mapper']));for(const _0x442c7b of _0x4c608b)_0x403408['reconvertItem'](_0x442c7b);}}(_0x4dea6f['model'],_0x4dea6f['editing']);})):(_0x8c4518['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x8c4518['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0xbd1b79,{writer:_0x2d2749})=>{const _0x124eef=_0x2d2749['createContainerElement']('span');return _0x2d2749['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x124eef),_0x124eef;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5e3c7c}=this,{editing:_0xabd32d,t:t}=_0x5e3c7c,_0x2366e1=_0x5e3c7c['model']['document']['selection'];_0x5e3c7c['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5e3c7c['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xabd32d['view']['document'],'enter',(_0xa46b1f,_0x3e890)=>{const _0x1186b2=function(_0x4f0491){const _0x16aa00=_0x4f0491['getSelectedElement']();if(_0x16aa00?.['is']('element','footnoteRef'))return _0x16aa00;return null;}(_0x2366e1);if(_0x1186b2){const _0x5d497c=_0x1186b2['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x5d497c),_0x3e890['preventDefault'](),_0xa46b1f['stop']();}},{'context':_0x263b59});}['_defineClickHandlers'](){const {editor:_0x2e5cc0}=this,{editing:_0x826701}=_0x2e5cc0;_0x2e5cc0['editing']['view']['addObserver'](_0x28581c),_0x2e5cc0['editing']['view']['addObserver'](_0x181017);let _0x3c9908=!0x1;this['listenTo'](_0x826701['view']['document'],'pointerdown',(_0x3809e3,_0x2db9a7)=>{const {target:_0x5d02bd}=_0x2db9a7,_0x14c2e0=_0x826701['view']['document']['selection'];_0x3c9908=!!(_0x5d02bd?.['is']('element','a')&&_0x5d02bd['parent']?.['is']('element','sup')&&_0x5d02bd['parent']['hasClass']('footnote'))&&_0x14c2e0['getSelectedElement']()===_0x5d02bd['parent'];},{'priority':'high'}),this['listenTo'](_0x826701['view']['document'],'click',(_0x10ef1c,_0xb613ad)=>{const {target:_0x5c0114}=_0xb613ad;if(!_0x5c0114?.['is']('element','a'))return;if(_0x5c0114['parent']?.['is']('element','sup')&&_0x5c0114['parent']['hasClass']('footnote')&&!_0x3c9908)return void _0xb613ad['preventDefault']();let _0x34f28d=_0x5c0114['getAttribute']('href');if(!_0x34f28d?.['startsWith']('#'))return;_0x34f28d=_0x34f28d['slice'](0x1);let _0x10de70=!0x1;(_0x34f28d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x34f28d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x34f28d))&&(_0x10de70=!0x0),_0x10de70&&(_0xb613ad['preventDefault'](),_0x10ef1c['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xdcb01d}={}){return(_0x310baf,{writer:_0x54c84d})=>{if(!g(_0x310baf))return null;if(!_0xdcb01d)return _0x54c84d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1564bd=_0x54c84d['createContainerElement']('p');return _0x54c84d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1564bd),_0x1564bd;};}function g(_0x35757e){const {parent:_0x2afd08}=_0x35757e;if(!_0x2afd08?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2afd08['childCount'])return!0x1;for(const _0x345d42 of _0x35757e['getAttributeKeys']())if(!_0x345d42['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x345d42)return!0x1;return!0x0;}function v(_0x10c282,_0xe26901){if(!_0x10c282['is']('element','paragraph'))return!0x1;const _0x580f7b=_0xe26901['toViewElement'](_0x10c282);return!!_0x580f7b&&g(_0x10c282)!==_0x580f7b['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x5cfcb7){return _0x263b59(_0x5cfcb7)&&_0x5cfcb7['is']('containerElement')&&!!_0x5cfcb7['getCustomProperty']('footnotesDefinitions');}function D(_0x3aa284,_0x56a331={}){const _0x44fc8a=_0x3aa284['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2f2651=_0x3aa284['createContainerElement']('ol',{'class':'footnotes-list'},_0x3aa284['createSlot']());return _0x3aa284['createContainerElement']('div',{'class':'footnotes',..._0x56a331},[_0x44fc8a,_0x2f2651]);}function b(_0x13b429,_0x3d40ef){const _0x289d7b=_0x13b429['getAttribute']('footnoteId'),_0x4597d9=_0x13b429['getAttribute']('footnoteCounter'),_0x2ab5d1=_0x3d40ef['createUIElement']('a',{'href':'#'+_0x289d7b},function(_0x4a4401){const _0x45fa22=this['toDomElement'](_0x4a4401);return _0x45fa22['textContent']=_0x4597d9,_0x45fa22;}),_0x42ab72=_0x3d40ef['createContainerElement']('sup',{'id':'ref-'+_0x289d7b,'class':'footnote'},[_0x2ab5d1]);return _0x42ab72['getFillerOffset']=()=>null,_0x42ab72;}function y(_0x2f0534,_0x59f781,_0x228120,{dataPipeline:_0x13a0c5}={}){const {t:t}=_0x228120,_0x2bdcdf=_0x2f0534['getAttribute']('footnoteId'),_0xd45f24=_0x59f781['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x2bdcdf},function(_0xdf9c24){const _0x252217=this['toDomElement'](_0xdf9c24);return _0x252217['innerText']='^',_0x252217;}),_0x41df2f=_0x13a0c5?_0x59f781['createContainerElement']('div',{'class':'footnote-content'}):_0x1e69d5(_0x59f781['createEditableElement']('div',{'class':'footnote-content'}),_0x59f781,{'label':t('Footnote\x20content.')});return _0x59f781['insert'](_0x59f781['createPositionAt'](_0x41df2f,0x0),_0x59f781['createSlot']()),_0x59f781['createContainerElement']('li',{'class':'footnote-definition','id':_0x2bdcdf},[_0xd45f24,_0x41df2f]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x5484d5=_0x3a02;(function(_0x37c16e,_0x243af7){const _0x56de57=_0x3a02,_0x383352=_0x37c16e();while(!![]){try{const _0x3ac068=parseInt(_0x56de57(0xc9))/0x1+-parseInt(_0x56de57(0xd3))/0x2+parseInt(_0x56de57(0xc8))/0x3*(parseInt(_0x56de57(0xcf))/0x4)+parseInt(_0x56de57(0xc2))/0x5*(parseInt(_0x56de57(0xc3))/0x6)+-parseInt(_0x56de57(0xc4))/0x7+parseInt(_0x56de57(0xd0))/0x8*(parseInt(_0x56de57(0xbe))/0x9)+-parseInt(_0x56de57(0xd2))/0xa*(-parseInt(_0x56de57(0xd1))/0xb);if(_0x3ac068===_0x243af7)break;else _0x383352['push'](_0x383352['shift']());}catch(_0x331104){_0x383352['push'](_0x383352['shift']());}}}(_0x55bc,0x19d87));import{Command as _0x1bf079}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x3d396f}from'../footnotespropertiesconfig.js';function _0x3a02(_0x465381,_0x762494){const _0x55bcac=_0x55bc();return _0x3a02=function(_0x3a022f,_0x2c99d2){_0x3a022f=_0x3a022f-0xbe;let _0x14b4be=_0x55bcac[_0x3a022f];return _0x14b4be;},_0x3a02(_0x465381,_0x762494);}import{FootnotesTracker as _0x2fb82d}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x1bf079{[_0x5484d5(0xd5)](){const _0x320a42=_0x5484d5,{editor:_0x22d4f2}=this,_0x262496=_0x22d4f2[_0x320a42(0xc5)][_0x320a42(0xc6)](_0x2fb82d)[_0x320a42(0xd4)]();this[_0x320a42(0xd6)]=!!_0x262496,this[_0x320a42(0xc7)]=_0x262496?.[_0x320a42(0xc0)](_0x320a42(0xcc))??null;}[_0x5484d5(0xce)]({value:_0xc8f608}){const _0x3df3f4=_0x5484d5,{editor:_0x8387ba}=this,_0x5b1029=_0x8387ba[_0x3df3f4(0xc5)][_0x3df3f4(0xc6)](_0x2fb82d),_0x2f6adc=_0x5b1029[_0x3df3f4(0xd4)]();_0x2f6adc&&_0x3d396f[_0x3df3f4(0xca)](_0xc8f608)&&_0x8387ba[_0x3df3f4(0xcd)][_0x3df3f4(0xc1)](_0x42f33c=>{const _0x1053b0=_0x3df3f4;_0x42f33c[_0x1053b0(0xbf)](_0x1053b0(0xcc),_0xc8f608,_0x2f6adc),_0x5b1029[_0x1053b0(0xcb)](_0x42f33c);});}}function _0x55bc(){const _0x257ce8=['106536pwFCTL','663313NwKGER','plugins','get','value','60PBRfok','7829RNsuGO','includes','_updateFootnotesCounters','footnotesListStyle','model','execute','12908YUhdAV','84472Mcjtuh','44DMrIGk','568220vfanTh','325724pOmILm','getFootnotesDefinitionsObjectElement','refresh','isEnabled','9ypHUUh','setAttribute','getAttribute','change','15RWiYoi'];_0x55bc=function(){return _0x257ce8;};return _0x55bc();}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x504e27,View as _0x3fb71e,ViewCollection as _0x2d1a15,FocusCycler as _0x1e01b3,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et}from'ckeditor5/src/ui.js';import{FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0x3fb71e{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x2d1a15();['focusCycler'];constructor(_0x2e8771,{styleButtonViews:_0x61ff5b,styleGridAriaLabel:_0x34727d}){super(_0x2e8771),(this['focusCycler']=new _0x1e01b3({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x61ff5b,_0x34727d),[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 _0x2e0c4b of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2e0c4b['element']);tt({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>nt['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0xe24d82=_0xa33d31=>_0xa33d31['stopPropagation']();this['keystrokes']['set']('arrowright',_0xe24d82),this['keystrokes']['set']('arrowleft',_0xe24d82),this['keystrokes']['set']('arrowup',_0xe24d82),this['keystrokes']['set']('arrowdown',_0xe24d82);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x175801,_0x2d4ced){const _0x3071f1=new _0x3fb71e(this['locale']);return _0x3071f1['children']=_0x3071f1['createCollection'](),_0x3071f1['children']['addMany'](_0x175801),_0x3071f1['setTemplate']({'tag':'div','attributes':{'aria-label':_0x2d4ced,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3071f1['children']}),_0x3071f1['children']['delegate']('execute')['to'](this),_0x3071f1['focus']=function(){for(const _0x2269fb of this['children'])if(_0x2269fb instanceof _0x504e27&&_0x2269fb['isOn'])return void _0x2269fb['focus']();this['children']['first']['focus']();},_0x3071f1['focusTracker']=new ot(),_0x3071f1['keystrokes']=new rt(),_0x3071f1['render'](),_0x3071f1['keystrokes']['listenTo'](_0x3071f1['element']),this['children']['add'](_0x3071f1),_0x3071f1;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x5047f2=this['_createStartIndexPropertyView'](),_0x28176a=[_0x5047f2],_0x10a002=new st(this['locale'],_0x28176a);return _0x10a002['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x10a002['buttonView']['bind']('isEnabled')['toMany'](_0x28176a,'isEnabled',(..._0x48504e)=>_0x48504e['some'](_0x1d7c9b=>_0x1d7c9b)),_0x10a002['buttonView']['on']('change:isEnabled',(_0x2711cd,_0x5d678b,_0x2dfd2c)=>{_0x2dfd2c||(_0x10a002['isCollapsed']=!0x0);}),this['children']['add'](_0x10a002),[_0x5047f2,_0x10a002];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x476247=new it(this['locale'],et);return _0x476247['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x476247['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x476247['fieldView']['on']('input',()=>{const _0x20dcc5=_0x476247['fieldView']['element'],_0xae9600=_0x20dcc5['valueAsNumber'];Number['isNaN'](_0xae9600)?_0x476247['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x20dcc5['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xae9600}):_0x476247['errorText']=t(_0xae9600<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x476247;}}
|