@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251128.0 → 0.0.0-nightly-20251130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),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:()=>Z,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;!function(t){const e=c,o=t();for(;;)try{if(989130===-parseInt(e(146))/1+-parseInt(e(135))/2+-parseInt(e(132))/3+-parseInt(e(123))/4*(parseInt(e(141))/5)+parseInt(e(155))/6+parseInt(e(144))/7*(parseInt(e(148))/8)+parseInt(e(125))/9*(parseInt(e(139))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(138)];[r(127)];[r(128)];[r(140)]=new Map;constructor(t,e){const o=r;this[o(138)]=t,this[o(127)]=e[o(120)],this[o(128)]=e[o(149)]}[r(156)](){const t=r;this[t(140)][t(130)]()}[r(160)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(154)===i[e(151)]&&e(119)!==i[e(159)]&&i[e(134)][e(147)]){const t=this[e(138)][e(118)](i[e(134)][e(147)]);for(const o of t[e(122)]()){if(!o.is(e(133),this[e(127)]))continue;const t=this[e(128)](o);n[e(137)](t)||n[e(136)](t,[]),n[e(145)](t)[e(161)](o)}}if(e(143)===i[e(151)]&&i[e(159)]===this[e(127)]){const t=this[e(128)]({getAttribute:t=>i[e(153)][e(145)](t)});o[e(126)](t)}}for(const[t,n]of this[e(140)])e(152)===n[e(131)][e(157)]&&o[e(126)](t);for(const t of o)this[e(140)][e(142)](t);for(const[t,o]of n)this[e(140)][e(136)](t,o[o[e(158)]-1]);const i=new Set;for(const[t,s]of n)o[e(137)](t)&&(i[e(126)](s[0]),s[e(158)]>1?n[e(136)](t,s[e(150)](1)):n[e(142)](t),o[e(142)](t));return{removed:Array[e(124)](o),inserted:Array[e(124)](n[e(129)]())[e(121)](),moved:Array[e(124)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=118]})(t,e)}function l(){const t=["_trackedElements","160NGnIEz","delete","remove","21xnWEYG","get","1227960JvEqRD","nodeAfter","3098816FerbDC","getElementKey","slice","type","$graveyard","attributes","insert","7577910GNLqyf","reset","rootName","length","name","getChanges","push","createRangeOn","$text","elementName","flat","getItems","201124ARxWXN","from","275841pTPHHX","add","_elementName","_getElementKey","values","clear","root","5390679tRcCVu","element","position","3473110LdBOAy","set","has","_model","1610IhNNOQ"];return(l=function(){return t})()}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=231]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(543304===parseInt(e(297))/1*(-parseInt(e(262))/2)+parseInt(e(286))/3+parseInt(e(328))/4*(parseInt(e(251))/5)+parseInt(e(304))/6*(parseInt(e(312))/7)+parseInt(e(311))/8*(-parseInt(e(258))/9)+-parseInt(e(299))/10*(-parseInt(e(261))/11)+parseInt(e(331))/12*(-parseInt(e(254))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(281)]=[];[u(249)]=null;[u(283)]=null;[u(260)];[u(315)];[u(244)];static get[u(246)](){return u(259)}static get[u(308)](){return!0}static get[u(275)](){return!0}constructor(t){const e=u;super(t),this[e(260)]=new a(this[e(255)][e(288)],{elementName:e(313),getElementKey:()=>e(314)}),this[e(315)]=new a(this[e(255)][e(288)],{elementName:e(267),getElementKey:t=>t[e(333)](e(332))}),this[e(244)]=new a(this[e(255)][e(288)],{elementName:e(248),getElementKey:t=>t[e(333)](e(332))})}[u(296)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(271)][t(238)](e=>{const n=t,i=o[n(271)][n(264)][n(265)]();let s=!1;return this[n(316)](e,i)&&(s=!0),this[n(274)](e,i)&&(s=!0),this[n(234)](e,i)&&(s=!0),this[n(326)](e)&&(s=!0),this[n(235)](e)&&(s=!0),this[n(236)](e)&&(s=!0),s}),this[t(319)](o[t(271)],t(231),()=>{const e=t;o[e(322)]({isUndoable:!1},t=>{this[e(290)](t)})},{priority:t(232)}),this[t(319)](n,t(309),()=>{const e=t;this[e(281)]=[],this[e(260)][e(273)](),this[e(315)][e(273)](),this[e(244)][e(273)]()},{priority:t(243)})}[u(266)](){return this[u(249)]}[u(327)](t){const e=u;return this[e(281)][e(321)](e=>e.id===t)||null}[u(256)](){const t=u;return Array[t(233)](this[t(281)])}[u(300)](){return this[u(283)]}[u(285)](t){this[u(283)]=t}[u(307)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(281)][o(334)];i++)this[o(241)](t,i)&&(n=!0);return n}[u(330)](t,e){const o=u,n=t[o(294)](o(313),{});return t[o(253)](n,e),this[o(249)]=n,n}[u(290)](t){const e=u;if(!this[e(281)][e(334)]||this[e(249)])return;const o=this[e(281)][0][e(277)][e(301)],n=this[e(330)](t,o);for(const o of this[e(281)])o[e(269)][e(242)]||t[e(280)](o[e(269)],n,e(270));this[e(307)](t)}[u(316)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(260)][o(265)](e);if(r[o(334)]&&(this[o(249)]=r[0]),i[o(334)])if(i[o(334)]>1||this[o(249)]&&i[o(284)](t=>t!==this[o(249)])){const e=t[o(294)](o(313),{}),s=[];this[o(249)]&&s[o(287)](this[o(249)]),s[o(287)](...i),t[o(280)](e,s[0],o(306));for(const n of s)t[o(268)](t[o(276)](n),t[o(320)](e,o(270))),t[o(247)](n);this[o(249)]=e,this[o(307)](t),n=!0}else this[o(249)]=i[0];if(s[o(334)]&&o(298)===this[o(249)]?.[o(301)][o(302)]){for(const e of this[o(281)])t[o(247)](e[o(277)]),n=!0;this[o(281)]=[],this[o(249)]=null}return n}[u(274)](t,e){const o=u;let n=!1;const i=this[o(255)][o(310)][o(292)](o(318)),{inserted:s,moved:r}=this[o(244)][o(265)](e);for(const e of[...r,...s]){const s=e[o(333)](o(332)),r=this[o(327)](s);r&&(r[o(269)]=e),p(t,i,e)&&(n=!0)}return n}[u(234)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(315)][o(265)](e);for(const e of i)this[o(257)](t,e)&&(n=!0);for(const e of s)this[o(240)](t,e)&&(n=!0);for(const e of r)this[o(317)](t,e)&&(n=!0);return n}[u(235)](t){const e=u;if(!this[e(249)])return!1;let o=!1;if(this[e(249)][e(279)]!==this[e(281)][e(334)]){const n=[];for(const t of this[e(249)][e(252)]()){const i=t[e(333)](e(332));this[e(327)](i)||(n[e(282)](t),o=!0)}for(const o of n)t[e(247)](o)}const n=new Set,i=[];for(const t of this[e(249)][e(252)]()){const s=t[e(333)](e(332));n[e(239)](s)?(i[e(282)](t),o=!0):n[e(245)](s)}for(const o of i)t[e(247)](o);return this[e(249)][e(279)]||(t[e(247)](this[e(249)]),this[e(249)]=null,o=!0),o}[u(240)](t,e){const o=u;if(this[o(281)][o(321)](t=>t[o(277)]===e))return!1;let n=!1;const i=e[o(333)](o(332)),s=this[o(281)][o(324)](t=>t.id===i);-1!==s&&(t[o(247)](this[o(281)][s][o(277)]),this[o(281)][o(303)](s,1),n=!0);let r=this[o(249)]?function(t,e){const n=o;for(const o of t[n(252)]())if(o[n(333)](n(332))===e)return o;return null}(this[o(249)],i):null;r||(r=t[o(294)](o(248),{footnoteId:i}),this[o(249)]&&(t[o(280)](r,this[o(249)],o(270)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(255)][o(288)],this[o(281)],e);this[o(281)][o(303)](c,0,a);let l=c;return-1!==s&&(l=Math[o(293)](c,s)),this[o(307)](t,l)&&(n=!0),n}[u(257)](t,e){const o=u,n=this[o(281)][o(324)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(281)][n];return o(298)!==s[o(269)][o(301)][o(302)]&&(t[o(247)](s[o(269)]),i=!0),this[o(281)][o(303)](n,1),this[o(307)](t,n)&&(i=!0),i}[u(317)](t,e){const o=u,n=e[o(333)](o(332)),i=this[o(281)][o(324)](t=>t.id===n),s=this[o(281)][i];let r=!1;s[o(277)]=e,this[o(281)][o(303)](i,1);const a=m(this[o(255)][o(288)],this[o(281)],e);return this[o(281)][o(303)](a,0,s),this[o(307)](t,Math[o(293)](i,a))&&(r=!0),r}[u(241)](t,e){const o=u;if(!this[o(249)])return!1;const n=this[o(281)][e];let i;return i=this[o(283)]?this[o(283)]({footnote:n,container:this[o(249)],digits:String(this[o(281)][o(334)])[o(334)],value:e+1}):String(e+1),n[o(277)][o(333)](o(291))!=i&&(t[o(329)](o(291),i,n[o(277)]),!0)}[u(236)](t){const e=u;if(!this[e(249)]||this[e(281)][e(334)]<2)return!1;if(function(t,o){const n=e;if(t[n(334)]!==o[n(334)])return!1;for(let e=0;e<t[n(334)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(281)][e(305)](t=>t.id),Array[e(233)](this[e(249)][e(252)]())[e(305)](t=>t[e(333)](e(332)))))return!1;let o=!1;for(let n=0;n<this[e(281)][e(334)];n++){const i=this[e(281)][n],s=t[e(295)](i[e(269)]),r=t[e(320)](this[e(249)],n);s[e(323)](r)||(t[e(268)](t[e(250)](i[e(269)]),r),o=!0)}return o}[u(326)](t){const e=u;if(!this[e(281)][e(334)])return!1;const{model:o}=this[e(255)];let n=!1;for(let i=0;i<this[e(281)][e(334)]-1;i++){const s=this[e(281)][i],r=this[e(281)][i+1],a=o[e(295)](s[e(277)]),c=o[e(295)](r[e(277)]);e(289)===a[e(278)](c)&&(this[e(317)](t,s[e(277)]),i=-1,n=!0)}return n}}function h(){const t=["min","createElement","createPositionBefore","init","1052957AYJDSt","$graveyard","10fFNQcl","getFootnotesFormatter","root","rootName","splice","6PRGRfz","map","before","_updateFootnotesCounters","isOfficialPlugin","set","config","8GSJcgi","3556182wtIShC","footnotesDefinitions","singleton","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges","_handleMovedFootnoteReference","footnotes.multiBlock","listenTo","createPositionAt","find","enqueueChange","isEqual","findIndex","paragraph","_ensureFootnotesReferencesHaveProperOrder","getFootnote","4162124JOSady","setAttribute","_insertEmptyFootnotesDefinitionsContainer","12KgtFKZ","footnoteId","getAttribute","length","change:data","low","from","_handleFootnoteReferencesChanges","_handleFootnotesDefinitionsObjectSync","_sortFootnoteDefinitions","footnoteInlineContent","registerPostFixer","has","_handleInsertedFootnoteReference","_updateFootnoteRefCounter","parent","high","_footnoteDefsTracker","add","pluginName","remove","footnoteDefinition","_footnotesDefinitions","createRangeOn","5sDtoYx","getChildren","append","21041501BkDhSI","editor","getFootnotes","_handleRemoveFootnoteReferenceById","962514ARKSIy","FootnotesTracker","_footnoteDefsContainerTracker","8451773nDCxsl","2HFHPgM","getRootNames","differ","getChanges","getFootnotesDefinitionsObjectElement","footnoteRef","move","definition","end","document","indexOf","reset","_handleFootnoteDefinitionsChanges","isPremiumPlugin","createRangeIn","reference","compareWith","childCount","insert","_footnotes","unshift","_footnoteFormatter","some","setFootnoteFormatter","3014652GOXCPQ","push","model","after","_ensureFootnotesDefinitionsContainerExists","footnoteCounter","get"];return(h=function(){return t})()}function p(t,e,o){const n=u;if(o[n(279)])return!1;const i=n(e?325:237);return t[n(280)](t[n(294)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(334)])return 0;const i=t[n(295)](o);for(let o=0;o<e[n(334)];o++){const s=e[o],r=t[n(295)](s[n(277)]);if(n(306)===i[n(278)](r))return o}const s=o[n(301)];let r=-1;for(let t=e[n(334)]-1;t>=0;t--)if(e[t][n(277)][n(301)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(271)][n(263)](),c=a[n(272)](s[n(302)]),l=a[c+1];if(l)for(let t=0;t<e[n(334)];t++)if(e[t][n(277)][n(301)][n(302)]===l)return t;return e[n(334)]}const g=y;function w(){const t=["createElement","_getPositionToInsertFootnote","model","isObject","isBlock","end","getFirstRange","plugins","get","609JLiMsh","editor","isEnabled","change","7945592xPUbNu","footnoteRef","FootnotesEditing","5140GUlcvM","insertObject","6629035NySZOv","8972DjDXip","footnoteId","7RBJmMk","_moveSelectionToFootnoteDefinition","document","getItems","2559156kDBGHx","checkChild","38313CgvydA","length","refresh","execute","696616tUAXTC","372538iyAwXN","insert-footnote-command-executed-with-invalid-id","string","test","selection"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=171]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(755966===-parseInt(e(202))/1+-parseInt(e(203))/2+parseInt(e(180))/3*(-parseInt(e(190))/4)+parseInt(e(189))/5+-parseInt(e(196))/6+-parseInt(e(192))/7*(parseInt(e(184))/8)+parseInt(e(198))/9*(parseInt(e(187))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(200)](){const t=g,e=this[t(181)][t(173)][t(194)][t(207)],o=this[t(172)](e);this[t(182)]=!!o}[g(201)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(194)],r=this[e(172)](s);if(!r)return;const a=o[e(178)][e(179)](e(186)),c=t?.[e(191)]??(0,i.uid)();!function(t){const o=e;return o(205)==typeof t&&t[o(199)]>0&&!/\s/[o(206)](t)&&!/^\d/[o(206)](t)}(c)?(0,i.logWarning)(e(204)):(n[e(183)](t=>{const o=e,i=t[o(171)](o(185),{footnoteId:c});n[o(188)](i,r,null)}),a[e(193)](c))}[g(172)](t){const e=g,{model:o}=this[e(181)],{schema:n}=o,i=t[e(177)]();for(const t of i[e(195)]())if(n[e(175)](t)||n[e(174)](t))return null;const s=i[e(176)];return n[e(197)](s,e(185))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764288e3;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function 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 P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=D;function D(t,e){const o=T();return(D=function(t,e){return o[t-=397]})(t,e)}function T(){const t=["change","dataTransfer","length","2430ujEQsy","getFootnotesDefinitionsObjectElement","toData","_insertEmptyFootnotesDefinitionsContainer","isPremiumPlugin","88740thieDl","get","getFootnotes","root","toView","16SFDsUD","contentInsertion","footnotesDefinitions","element","25528HYkYMY","definition","parse","method","insert","content","isOfficialPlugin","create","init","outputTransformation","data","37377DRCtfg","getAttribute","252027jcwzrz","_handlePasteFootnotesDefinitions","714rOPcJq","350645xkoeTh","setData","document","includes","footnoteRef","getFootnote","application/ckeditor5-footnotes","footnoteId","clipboardInput","htmlProcessor","stringify","setAttribute","pluginName","remove","flatMap","listenTo","editor","selection","1836258aZTdMH","391338EiqgNB","requires","reduce","end","append","getRanges","getFirstRange","createRangeIn","FootnotesClipboard","from","sourceEditorId","editing","createElement","getSelectedBlocks","getData","_handleCopyFootnotesDefinitions","entries","_defineClipboardIntegration","toModel","find","push","footnoteDefinition","drop","add"];return(T=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(231948===-parseInt(e(445))/1+-parseInt(e(467))/2+-parseInt(e(423))/3+parseInt(e(428))/4*(-parseInt(e(448))/5)+parseInt(e(466))/6+-parseInt(e(447))/7*(parseInt(e(432))/8)+-parseInt(e(443))/9*(-parseInt(e(418))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(460)](){return A(399)}static get[A(468)](){return[I,S.ClipboardPipeline]}static get[A(438)](){return!0}static get[A(422)](){return!0}[A(440)](){this[A(408)]()}[A(408)](){const t=A;this[t(406)](),this[t(446)]()}[A(406)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(424)](S.ClipboardPipeline),s=o[t(424)](d);this[t(463)](i,t(441),(o,i)=>{const r=t,a=L(n[r(398)](i[r(437)]));if(!a[r(417)])return;const c=s[r(425)](),l=a[r(469)]((t,o)=>{const n=r,i=c[n(410)](t=>t.id===o);if(i){const o=e[n(442)][n(427)](i[n(433)],{isClipboardPipeline:!0}),s=e[n(442)][n(457)][n(420)](o);t[i.id]=s}return t},Object[r(439)](null));i[r(416)][r(449)](r(454),JSON[r(458)](l))})}[A(446)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(402)],r=n[t(424)](S.ClipboardPipeline),a=n[t(424)](d);let c=null;this[t(463)](s[t(450)],t(456),(e,o)=>{const n=t,i=o[n(416)][n(405)](n(454));c=i?JSON[n(434)](i):null}),this[t(463)](r,t(429),(n,s)=>{const r=t,l=s[r(401)]===this[r(464)].id;l&&r(413)===s[r(435)]||o[r(415)](t=>{const n=r;let u=a[n(419)]();const f=!!u&&Array[n(400)](o[n(450)][n(465)][n(404)]())[n(451)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(398)](e))n.is(o(431),o(430))&&i[o(411)](n);for(const e of i)t[o(461)](e)}(t,s[n(437)]),!c)return;const{selection:d}=o[n(450)],h=d[n(397)]()[n(426)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(398)](e))if(n.is(o(431),o(430)))return n;return null}(t,s[n(437)]),u||=a[n(421)](t,h));const p=Array[n(400)](d[n(472)]())[n(462)](L),m=function(t,e,o){const s=n,r=Object[s(439)](null);for(const{item:n}of t[s(398)](e))if(n.is(s(431),s(452))){const e=n[s(444)](s(455));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(459)](s(455),r[e],n)}return r}(t,s[n(437)],t=>{const e=n;return!l||!!a[e(453)](t)&&!p[e(451)](t)});for(const[o,i]of Object[n(407)](c)){const s=m[o]||o,r=t[n(403)](n(412),{footnoteId:s}),a=e[n(442)][n(457)][n(427)](i),c=e[n(442)][n(409)](a,r);t[n(471)](c,r),t[n(436)](r,u,n(470))}c=null})})}}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(431),e(452))&&o[e(414)](n[e(444)](e(455)));return Array[e(400)](o)}var N=o(311),O=o(355),R=o(929),V=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),z=o(741),H=o.n(z),Q=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=W(),q.insert=B().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();V()(Q.A,q);Q.A&&Q.A.locals&&Q.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",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var J=Y;function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=487]})(t,e)}function $(){var t=["requires","744yheebv","isOfficialPlugin","147wqEmkM","72088DzordO","isPremiumPlugin","6190nNhMEB","196508mQfmiL","pluginName","Footnotes","284516nCnUck","1608030hToJFw","403668QmWaXQ","13779duNCoz","1880dTRKiQ"];return($=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(210870===-parseInt(e(491))/1+parseInt(e(494))/2+-parseInt(e(496))/3+-parseInt(e(500))/4*(-parseInt(e(490))/5)+parseInt(e(495))/6+-parseInt(e(487))/7*(-parseInt(e(488))/8)+parseInt(e(497))/9*(-parseInt(e(498))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Z extends t.Plugin{static get[J(492)](){return J(493)}static get[J(499)](){return[I,_,G]}static get[J(501)](){return!0}static get[J(489)](){return!0}}const tt=ot;function et(){const t=["34786GsVCYf","upper-latin","7374ZKAqCO","1445NygWIn","1975344UsxAdA","1375590fMzkCf","lower-alpha","595071nZPeyU","upper-alpha","lower-roman","upper-roman","lower-latin","9095493HHmPuj","476fhiWWQ","decimal-leading-zero","12615CxHXZK","17loMcFh","decimal","80Azhwru"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=496]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(404545===parseInt(e(501))/1*(parseInt(e(504))/2)+-parseInt(e(500))/3*(parseInt(e(498))/4)+-parseInt(e(507))/5*(-parseInt(e(506))/6)+parseInt(e(508))/7+parseInt(e(503))/8*(parseInt(e(511))/9)+parseInt(e(509))/10+-parseInt(e(497))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const nt=[tt(502),tt(499),tt(496),tt(505),tt(510),tt(512),tt(513),tt(514)];function it(t,e){const o=at();return(it=function(t,e){return o[t-=147]})(t,e)}const st=it;!function(t){const e=it,o=t();for(;;)try{if(559253===-parseInt(e(162))/1+parseInt(e(157))/2*(-parseInt(e(155))/3)+parseInt(e(163))/4+-parseInt(e(165))/5+parseInt(e(156))/6+-parseInt(e(148))/7+-parseInt(e(169))/8*(-parseInt(e(158))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[st(159)](){const t=st,{editor:e}=this,o=e[t(164)][t(154)](d)[t(166)]();this[t(149)]=!!o,this[t(147)]=o?.[t(167)](t(160))??null}[st(152)]({value:t}){const e=st,{editor:o}=this,n=o[e(164)][e(154)](d),i=n[e(166)]();i&&nt[e(168)](t)&&o[e(151)][e(150)](o=>{const s=e;o[s(161)](s(160),t,i),n[s(153)](o)})}}function at(){const t=["getAttribute","includes","35776retOcH","value","6956488GQLXHF","isEnabled","change","model","execute","_updateFootnotesCounters","get","1410522lUQgcz","266094mRnoUY","2fYpepD","4419nolYee","refresh","footnotesListStyle","setAttribute","965873XjbhiB","3854352TZQyWE","plugins","1073025rPKJUj","getFootnotesDefinitionsObjectElement"];return(at=function(){return t})()}function ct(){const t=["value","isInteger","change","4VYbFCt","10NjkgfO","6015690YvMCXu","getAttribute","execute","64780NapTsK","8200171UUtENo","_updateFootnotesCounters","9271493MSiFVy","model","plugins","setAttribute","6574976spWPGQ","get","footnotesListStart","refresh","1635222lWReQB","isEnabled","961513wFHdOA","85svIQyI","getFootnotesDefinitionsObjectElement","6lSFSuu"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=ct();return(ut=function(t,e){return o[t-=475]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(670714===parseInt(e(490))/1+-parseInt(e(497))/2*(parseInt(e(488))/3)+-parseInt(e(477))/4*(-parseInt(e(491))/5)+-parseInt(e(493))/6*(-parseInt(e(478))/7)+-parseInt(e(484))/8+-parseInt(e(499))/9*(parseInt(e(498))/10)+parseInt(e(480))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ft extends t.Command{[lt(487)](){const t=lt,{editor:e}=this,o=e[t(482)][t(485)](d)[t(492)]();this[t(489)]=!!o,this[t(494)]=o?.[t(475)](t(486))??null}[lt(476)]({value:t}){const e=lt,{editor:o}=this,n=o[e(482)][e(485)](d),i=n[e(492)]();i&&Number[e(495)](t)&&o[e(481)][e(496)](o=>{const s=e;o[s(483)](s(486),t,i),n[s(479)](o)})}}const dt=ht;function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=316]})(t,e)}function pt(){const t=["define","62652axNCON","_getDefaultStartIndex","toViewElement","1035702OuRyyy","padStart","setStyle","getChildren","max","writer","isPremiumPlugin","type","upper-roman","start","setAttribute","consume","add","model","element","footnotesListStyle","FootnotesPropertiesEditing","_defineConverters","differ","insert","commands","checkAttribute","322HesPdK","_defineSchema","plugins","downcast","19982yEKuUf","nodeAfter","pluginName","fromCharCode","getItems","1556628WPCMOL","modelCursor","434922rRCWit","consumable","editor","decimal-leading-zero","requires","lower-roman","52424LBECfC","createRangeOn","2519ehJBFY","viewItem","footnotesStyle","toLowerCase","footnotesDefinitions","schema","_updateFootnotesCounters","footnotes-list","getStyle","document","setFootnoteFormatter","parseInt","_getDefaultListStyle","for","footnotesListStart","name","item","upper-alpha","extend","toUpperCase","attribute:footnotesListStyle:footnotesDefinitions","isNaN","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","find","registerPostFixer","lower-latin","lower-alpha","10aZIwxx","2uQeXfw","_defineFormatter","from","config","hasClass","footnotesStart","$text","removeStyle","upper-latin","element:ol","get","5PJyNFe","floor","getAttribute","1568313CKjAoG","upcast","list-style-type","_definePostfixer","init","isOfficialPlugin","getChanges","attribute:footnotesListStart:footnotesDefinitions","parent","mapper","position","footnotes.footnotesProperties.defaultListStyle","_formatFootnoteListValue","decimal","hasAttribute"];return(pt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(377572===parseInt(e(411))/1*(-parseInt(e(352))/2)+-parseInt(e(366))/3+-parseInt(e(416))/4+-parseInt(e(363))/5*(parseInt(e(418))/6)+parseInt(e(407))/7*(parseInt(e(321))/8)+-parseInt(e(385))/9*(parseInt(e(351))/10)+-parseInt(e(323))/11*(-parseInt(e(382))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(413)](){return dt(401)}static get[dt(319)](){return[I,d]}static get[dt(371)](){return!0}static get[dt(391)](){return!0}[dt(370)](){const t=dt,{editor:e}=this;e[t(355)][t(381)](t(377),t(379)),e[t(355)][t(381)](t(346),1),e[t(405)][t(397)](t(325),new rt(e)),e[t(405)][t(397)](t(357),new ft(e)),this[t(408)](),this[t(402)](),this[t(353)](),this[t(369)]()}[dt(408)](){const t=dt,{editor:e}=this,{schema:o}=e[t(398)];o[t(341)](t(327),{allowAttributes:[t(400),t(337)]})}[dt(402)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(336)](t(367))[t(397)](e=>{const o=t;e.on(o(361),(t,e,n)=>{const s=o,r=e[s(324)],a=e[s(417)]?.[s(374)];r[s(356)](s(330))&&a?.is(s(399),s(327))&&(function(t,e,o,n){const i=s;if(!n[i(406)](e,i(337)))return;let r=1;const a=o[i(316)][i(396)](t,{attributes:i(394)});if(a){const e=Number[i(334)](t[i(365)](i(394)),10);Number[i(344)](e)||(r=e)}!a&&e[i(380)](i(337))||o[i(390)][i(395)](i(337),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(406)](e,i(400)))return;let r=i(379),a=!1;if(o[i(316)][i(396)](t,{attributes:i(392)})){const e={1:i(379),a:i(350),A:i(340),i:i(320),I:i(393)}[t[i(365)](i(392))];e&&(r=e),a=!0}o[i(316)][i(396)](t,{styles:i(368)})&&(r=t[i(331)](i(368)),a=!0),!a&&e[i(380)](i(400))||o[i(390)][i(395)](i(400),r,e)}(r,a,n,i))})}),o[t(336)](t(410))[t(397)](e=>{const o=t;e.on(o(373),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;null==r||1===r?n[i(390)][i(345)](i(394),s):n[i(390)][i(395)](i(394),String(r),s)}),e.on(o(343),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;r&&i(379)!==r?n[i(390)][i(387)](i(368),r,s):n[i(390)][i(359)](i(368),s)})})}[dt(369)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(409)][t(362)](d),i=this[t(335)](),s=this[t(383)]();o[t(332)][t(348)](e=>{const r=t,a=o[r(332)][r(403)][r(372)]();let c=!1;for(const t of a){if(r(404)!==t[r(392)]||r(358)===t[r(338)])continue;const n=o[r(322)](t[r(376)][r(412)]);for(const t of n[r(415)]())t.is(r(399),r(327))&&(!t[r(380)](r(337))&&o[r(328)][r(406)](t,r(337))&&(e[r(395)](r(337),s,t),c=!0),!t[r(380)](r(400))&&o[r(328)][r(406)](t,r(400))&&(e[r(395)](r(400),i,t),c=!0))}return c&&n[r(329)](e),c})}[dt(353)](){const t=dt,{editor:e}=this;e[t(409)][t(362)](d)[t(333)](e=>this[t(378)](e))}[dt(335)](){const t=dt;return this[t(317)][t(355)][t(362)](t(377))}[dt(383)](){const t=dt;return this[t(317)][t(355)][t(362)](t(346))}[dt(378)]({container:t,value:e,digits:o}){const n=dt,i=t[n(365)](n(400)),s=t[n(365)](n(337)),r=Math[n(364)](e)+(s??1)-1;switch(i){case n(318):return function(t,e){const o=n;return String(t)[o(386)](e,"0")}(r,Math[n(389)](2,o));case n(350):case n(349):return wt(r,!1);case n(340):case n(360):return wt(r,!0);case n(320):return bt(r,!1);case n(393):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(384)](t);return Array[o(354)](n[o(388)]())[o(347)](t=>t.is(o(399),"ol")&&t[o(356)](o(330)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(414)](97+t)+n,i=Math[o(364)]((i-1)/26)}return e?n[o(342)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(326)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();V()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=202]})(t,e)}function Et(){var t=["687412GiWEhQ","FootnotesProperties","355851CviBxQ","337709aEprOZ","3IPqMIR","isOfficialPlugin","371304zJqKaK","258MNCxQP","587055umPXQx","32hJbEsy","13255HksAyA","70wNCJex","requires","isPremiumPlugin","484252niESUG","297OSEOIB","pluginName"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(205636===-parseInt(e(215))/1+-parseInt(e(212))/2+-parseInt(e(216))/3*(parseInt(e(209))/4)+-parseInt(e(205))/5*(-parseInt(e(202))/6)+parseInt(e(203))/7*(parseInt(e(204))/8)+-parseInt(e(214))/9*(parseInt(e(206))/10)+-parseInt(e(210))/11*(-parseInt(e(218))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[Ft(211)](){return Ft(213)}static get[Ft(207)](){return[mt,Ct]}static get[Ft(217)](){return!0}static get[Ft(208)](){return!0}}function St(t,e){var o=At();return(St=function(t,e){return o[t-=434]})(t,e)}function At(){var t=["1749786uLYNWh","22MDYaTy","10517418XYxImK","8632360McDoqQ","3265586MGjmkb","14095736eMhIVh","1gBHAom","10kkmeOl","7bqTxsO","6151516adPaFI","765477RLeezo"];return(At=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(970908===parseInt(e(443))/1*(parseInt(e(441))/2)+parseInt(e(436))/3+-parseInt(e(435))/4+parseInt(e(444))/5*(-parseInt(e(437))/6)+-parseInt(e(434))/7*(-parseInt(e(442))/8)+parseInt(e(439))/9+-parseInt(e(440))/10*(parseInt(e(438))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(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 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),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;!function(t){const e=c,o=t();for(;;)try{if(989130===-parseInt(e(146))/1+-parseInt(e(135))/2+-parseInt(e(132))/3+-parseInt(e(123))/4*(parseInt(e(141))/5)+parseInt(e(155))/6+parseInt(e(144))/7*(parseInt(e(148))/8)+parseInt(e(125))/9*(parseInt(e(139))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(138)];[r(127)];[r(128)];[r(140)]=new Map;constructor(t,e){const o=r;this[o(138)]=t,this[o(127)]=e[o(120)],this[o(128)]=e[o(149)]}[r(156)](){const t=r;this[t(140)][t(130)]()}[r(160)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(154)===i[e(151)]&&e(119)!==i[e(159)]&&i[e(134)][e(147)]){const t=this[e(138)][e(118)](i[e(134)][e(147)]);for(const o of t[e(122)]()){if(!o.is(e(133),this[e(127)]))continue;const t=this[e(128)](o);n[e(137)](t)||n[e(136)](t,[]),n[e(145)](t)[e(161)](o)}}if(e(143)===i[e(151)]&&i[e(159)]===this[e(127)]){const t=this[e(128)]({getAttribute:t=>i[e(153)][e(145)](t)});o[e(126)](t)}}for(const[t,n]of this[e(140)])e(152)===n[e(131)][e(157)]&&o[e(126)](t);for(const t of o)this[e(140)][e(142)](t);for(const[t,o]of n)this[e(140)][e(136)](t,o[o[e(158)]-1]);const i=new Set;for(const[t,s]of n)o[e(137)](t)&&(i[e(126)](s[0]),s[e(158)]>1?n[e(136)](t,s[e(150)](1)):n[e(142)](t),o[e(142)](t));return{removed:Array[e(124)](o),inserted:Array[e(124)](n[e(129)]())[e(121)](),moved:Array[e(124)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=118]})(t,e)}function l(){const t=["_trackedElements","160NGnIEz","delete","remove","21xnWEYG","get","1227960JvEqRD","nodeAfter","3098816FerbDC","getElementKey","slice","type","$graveyard","attributes","insert","7577910GNLqyf","reset","rootName","length","name","getChanges","push","createRangeOn","$text","elementName","flat","getItems","201124ARxWXN","from","275841pTPHHX","add","_elementName","_getElementKey","values","clear","root","5390679tRcCVu","element","position","3473110LdBOAy","set","has","_model","1610IhNNOQ"];return(l=function(){return t})()}const f=u;function u(t,e){const o=h();return(u=function(t,e){return o[t-=231]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(543304===parseInt(e(297))/1*(-parseInt(e(262))/2)+parseInt(e(286))/3+parseInt(e(328))/4*(parseInt(e(251))/5)+parseInt(e(304))/6*(parseInt(e(312))/7)+parseInt(e(311))/8*(-parseInt(e(258))/9)+-parseInt(e(299))/10*(-parseInt(e(261))/11)+parseInt(e(331))/12*(-parseInt(e(254))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[f(281)]=[];[f(249)]=null;[f(283)]=null;[f(260)];[f(315)];[f(244)];static get[f(246)](){return f(259)}static get[f(308)](){return!0}static get[f(275)](){return!0}constructor(t){const e=f;super(t),this[e(260)]=new a(this[e(255)][e(288)],{elementName:e(313),getElementKey:()=>e(314)}),this[e(315)]=new a(this[e(255)][e(288)],{elementName:e(267),getElementKey:t=>t[e(333)](e(332))}),this[e(244)]=new a(this[e(255)][e(288)],{elementName:e(248),getElementKey:t=>t[e(333)](e(332))})}[f(296)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(271)][t(238)](e=>{const n=t,i=o[n(271)][n(264)][n(265)]();let s=!1;return this[n(316)](e,i)&&(s=!0),this[n(274)](e,i)&&(s=!0),this[n(234)](e,i)&&(s=!0),this[n(326)](e)&&(s=!0),this[n(235)](e)&&(s=!0),this[n(236)](e)&&(s=!0),s}),this[t(319)](o[t(271)],t(231),()=>{const e=t;o[e(322)]({isUndoable:!1},t=>{this[e(290)](t)})},{priority:t(232)}),this[t(319)](n,t(309),()=>{const e=t;this[e(281)]=[],this[e(260)][e(273)](),this[e(315)][e(273)](),this[e(244)][e(273)]()},{priority:t(243)})}[f(266)](){return this[f(249)]}[f(327)](t){const e=f;return this[e(281)][e(321)](e=>e.id===t)||null}[f(256)](){const t=f;return Array[t(233)](this[t(281)])}[f(300)](){return this[f(283)]}[f(285)](t){this[f(283)]=t}[f(307)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(281)][o(334)];i++)this[o(241)](t,i)&&(n=!0);return n}[f(330)](t,e){const o=f,n=t[o(294)](o(313),{});return t[o(253)](n,e),this[o(249)]=n,n}[f(290)](t){const e=f;if(!this[e(281)][e(334)]||this[e(249)])return;const o=this[e(281)][0][e(277)][e(301)],n=this[e(330)](t,o);for(const o of this[e(281)])o[e(269)][e(242)]||t[e(280)](o[e(269)],n,e(270));this[e(307)](t)}[f(316)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(260)][o(265)](e);if(r[o(334)]&&(this[o(249)]=r[0]),i[o(334)])if(i[o(334)]>1||this[o(249)]&&i[o(284)](t=>t!==this[o(249)])){const e=t[o(294)](o(313),{}),s=[];this[o(249)]&&s[o(287)](this[o(249)]),s[o(287)](...i),t[o(280)](e,s[0],o(306));for(const n of s)t[o(268)](t[o(276)](n),t[o(320)](e,o(270))),t[o(247)](n);this[o(249)]=e,this[o(307)](t),n=!0}else this[o(249)]=i[0];if(s[o(334)]&&o(298)===this[o(249)]?.[o(301)][o(302)]){for(const e of this[o(281)])t[o(247)](e[o(277)]),n=!0;this[o(281)]=[],this[o(249)]=null}return n}[f(274)](t,e){const o=f;let n=!1;const i=this[o(255)][o(310)][o(292)](o(318)),{inserted:s,moved:r}=this[o(244)][o(265)](e);for(const e of[...r,...s]){const s=e[o(333)](o(332)),r=this[o(327)](s);r&&(r[o(269)]=e),p(t,i,e)&&(n=!0)}return n}[f(234)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(315)][o(265)](e);for(const e of i)this[o(257)](t,e)&&(n=!0);for(const e of s)this[o(240)](t,e)&&(n=!0);for(const e of r)this[o(317)](t,e)&&(n=!0);return n}[f(235)](t){const e=f;if(!this[e(249)])return!1;let o=!1;if(this[e(249)][e(279)]!==this[e(281)][e(334)]){const n=[];for(const t of this[e(249)][e(252)]()){const i=t[e(333)](e(332));this[e(327)](i)||(n[e(282)](t),o=!0)}for(const o of n)t[e(247)](o)}const n=new Set,i=[];for(const t of this[e(249)][e(252)]()){const s=t[e(333)](e(332));n[e(239)](s)?(i[e(282)](t),o=!0):n[e(245)](s)}for(const o of i)t[e(247)](o);return this[e(249)][e(279)]||(t[e(247)](this[e(249)]),this[e(249)]=null,o=!0),o}[f(240)](t,e){const o=f;if(this[o(281)][o(321)](t=>t[o(277)]===e))return!1;let n=!1;const i=e[o(333)](o(332)),s=this[o(281)][o(324)](t=>t.id===i);-1!==s&&(t[o(247)](this[o(281)][s][o(277)]),this[o(281)][o(303)](s,1),n=!0);let r=this[o(249)]?function(t,e){const n=o;for(const o of t[n(252)]())if(o[n(333)](n(332))===e)return o;return null}(this[o(249)],i):null;r||(r=t[o(294)](o(248),{footnoteId:i}),this[o(249)]&&(t[o(280)](r,this[o(249)],o(270)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(255)][o(288)],this[o(281)],e);this[o(281)][o(303)](c,0,a);let l=c;return-1!==s&&(l=Math[o(293)](c,s)),this[o(307)](t,l)&&(n=!0),n}[f(257)](t,e){const o=f,n=this[o(281)][o(324)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(281)][n];return o(298)!==s[o(269)][o(301)][o(302)]&&(t[o(247)](s[o(269)]),i=!0),this[o(281)][o(303)](n,1),this[o(307)](t,n)&&(i=!0),i}[f(317)](t,e){const o=f,n=e[o(333)](o(332)),i=this[o(281)][o(324)](t=>t.id===n),s=this[o(281)][i];let r=!1;s[o(277)]=e,this[o(281)][o(303)](i,1);const a=m(this[o(255)][o(288)],this[o(281)],e);return this[o(281)][o(303)](a,0,s),this[o(307)](t,Math[o(293)](i,a))&&(r=!0),r}[f(241)](t,e){const o=f;if(!this[o(249)])return!1;const n=this[o(281)][e];let i;return i=this[o(283)]?this[o(283)]({footnote:n,container:this[o(249)],digits:String(this[o(281)][o(334)])[o(334)],value:e+1}):String(e+1),n[o(277)][o(333)](o(291))!=i&&(t[o(329)](o(291),i,n[o(277)]),!0)}[f(236)](t){const e=f;if(!this[e(249)]||this[e(281)][e(334)]<2)return!1;if(function(t,o){const n=e;if(t[n(334)]!==o[n(334)])return!1;for(let e=0;e<t[n(334)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(281)][e(305)](t=>t.id),Array[e(233)](this[e(249)][e(252)]())[e(305)](t=>t[e(333)](e(332)))))return!1;let o=!1;for(let n=0;n<this[e(281)][e(334)];n++){const i=this[e(281)][n],s=t[e(295)](i[e(269)]),r=t[e(320)](this[e(249)],n);s[e(323)](r)||(t[e(268)](t[e(250)](i[e(269)]),r),o=!0)}return o}[f(326)](t){const e=f;if(!this[e(281)][e(334)])return!1;const{model:o}=this[e(255)];let n=!1;for(let i=0;i<this[e(281)][e(334)]-1;i++){const s=this[e(281)][i],r=this[e(281)][i+1],a=o[e(295)](s[e(277)]),c=o[e(295)](r[e(277)]);e(289)===a[e(278)](c)&&(this[e(317)](t,s[e(277)]),i=-1,n=!0)}return n}}function h(){const t=["min","createElement","createPositionBefore","init","1052957AYJDSt","$graveyard","10fFNQcl","getFootnotesFormatter","root","rootName","splice","6PRGRfz","map","before","_updateFootnotesCounters","isOfficialPlugin","set","config","8GSJcgi","3556182wtIShC","footnotesDefinitions","singleton","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges","_handleMovedFootnoteReference","footnotes.multiBlock","listenTo","createPositionAt","find","enqueueChange","isEqual","findIndex","paragraph","_ensureFootnotesReferencesHaveProperOrder","getFootnote","4162124JOSady","setAttribute","_insertEmptyFootnotesDefinitionsContainer","12KgtFKZ","footnoteId","getAttribute","length","change:data","low","from","_handleFootnoteReferencesChanges","_handleFootnotesDefinitionsObjectSync","_sortFootnoteDefinitions","footnoteInlineContent","registerPostFixer","has","_handleInsertedFootnoteReference","_updateFootnoteRefCounter","parent","high","_footnoteDefsTracker","add","pluginName","remove","footnoteDefinition","_footnotesDefinitions","createRangeOn","5sDtoYx","getChildren","append","21041501BkDhSI","editor","getFootnotes","_handleRemoveFootnoteReferenceById","962514ARKSIy","FootnotesTracker","_footnoteDefsContainerTracker","8451773nDCxsl","2HFHPgM","getRootNames","differ","getChanges","getFootnotesDefinitionsObjectElement","footnoteRef","move","definition","end","document","indexOf","reset","_handleFootnoteDefinitionsChanges","isPremiumPlugin","createRangeIn","reference","compareWith","childCount","insert","_footnotes","unshift","_footnoteFormatter","some","setFootnoteFormatter","3014652GOXCPQ","push","model","after","_ensureFootnotesDefinitionsContainerExists","footnoteCounter","get"];return(h=function(){return t})()}function p(t,e,o){const n=f;if(o[n(279)])return!1;const i=n(e?325:237);return t[n(280)](t[n(294)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(334)])return 0;const i=t[n(295)](o);for(let o=0;o<e[n(334)];o++){const s=e[o],r=t[n(295)](s[n(277)]);if(n(306)===i[n(278)](r))return o}const s=o[n(301)];let r=-1;for(let t=e[n(334)]-1;t>=0;t--)if(e[t][n(277)][n(301)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(271)][n(263)](),c=a[n(272)](s[n(302)]),l=a[c+1];if(l)for(let t=0;t<e[n(334)];t++)if(e[t][n(277)][n(301)][n(302)]===l)return t;return e[n(334)]}const g=y;function w(){const t=["isBlock","43922406XZQdwC","refresh","get","checkChild","_getPositionToInsertFootnote","end","model","getItems","4017XPgpAq","createElement","insertObject","116738UEdntQ","2572mcyIsw","execute","plugins","isObject","document","10571022qWizNZ","insert-footnote-command-executed-with-invalid-id","length","9675862FFDuBS","FootnotesEditing","editor","getFirstRange","_moveSelectionToFootnoteDefinition","isEnabled","footnoteId","test","11CTUcWh","string","6822785UVJdyf","change","8lPAvGC","5880978blXnoH","footnoteRef","10sRZDaQ","selection"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=219]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(950238===-parseInt(e(250))/1*(-parseInt(e(233))/2)+parseInt(e(230))/3*(-parseInt(e(234))/4)+parseInt(e(252))/5+parseInt(e(239))/6+parseInt(e(242))/7+parseInt(e(254))/8*(parseInt(e(255))/9)+parseInt(e(219))/10*(-parseInt(e(222))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(223)](){const t=g,e=this[t(244)][t(228)][t(238)][t(220)],o=this[t(226)](e);this[t(247)]=!!o}[g(235)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(238)],r=this[e(226)](s);if(!r)return;const a=o[e(236)][e(224)](e(243)),c=t?.[e(248)]??(0,i.uid)();!function(t){const o=e;return o(251)==typeof t&&t[o(241)]>0&&!/\s/[o(249)](t)&&!/^\d/[o(249)](t)}(c)?(0,i.logWarning)(e(240)):(n[e(253)](t=>{const o=e,i=t[o(231)](o(256),{footnoteId:c});n[o(232)](i,r,null)}),a[e(246)](c))}[g(226)](t){const e=g,{model:o}=this[e(244)],{schema:n}=o,i=t[e(245)]();for(const t of i[e(229)]())if(n[e(221)](t)||n[e(237)](t))return null;const s=i[e(227)];return n[e(225)](s,e(256))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764460800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function 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 P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=T;function T(t,e){const o=D();return(T=function(t,e){return o[t-=397]})(t,e)}function D(){const t=["change","dataTransfer","length","2430ujEQsy","getFootnotesDefinitionsObjectElement","toData","_insertEmptyFootnotesDefinitionsContainer","isPremiumPlugin","88740thieDl","get","getFootnotes","root","toView","16SFDsUD","contentInsertion","footnotesDefinitions","element","25528HYkYMY","definition","parse","method","insert","content","isOfficialPlugin","create","init","outputTransformation","data","37377DRCtfg","getAttribute","252027jcwzrz","_handlePasteFootnotesDefinitions","714rOPcJq","350645xkoeTh","setData","document","includes","footnoteRef","getFootnote","application/ckeditor5-footnotes","footnoteId","clipboardInput","htmlProcessor","stringify","setAttribute","pluginName","remove","flatMap","listenTo","editor","selection","1836258aZTdMH","391338EiqgNB","requires","reduce","end","append","getRanges","getFirstRange","createRangeIn","FootnotesClipboard","from","sourceEditorId","editing","createElement","getSelectedBlocks","getData","_handleCopyFootnotesDefinitions","entries","_defineClipboardIntegration","toModel","find","push","footnoteDefinition","drop","add"];return(D=function(){return t})()}!function(t){const e=T,o=t();for(;;)try{if(231948===-parseInt(e(445))/1+-parseInt(e(467))/2+-parseInt(e(423))/3+parseInt(e(428))/4*(-parseInt(e(448))/5)+parseInt(e(466))/6+-parseInt(e(447))/7*(parseInt(e(432))/8)+-parseInt(e(443))/9*(-parseInt(e(418))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(460)](){return A(399)}static get[A(468)](){return[I,S.ClipboardPipeline]}static get[A(438)](){return!0}static get[A(422)](){return!0}[A(440)](){this[A(408)]()}[A(408)](){const t=A;this[t(406)](),this[t(446)]()}[A(406)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(424)](S.ClipboardPipeline),s=o[t(424)](d);this[t(463)](i,t(441),(o,i)=>{const r=t,a=L(n[r(398)](i[r(437)]));if(!a[r(417)])return;const c=s[r(425)](),l=a[r(469)]((t,o)=>{const n=r,i=c[n(410)](t=>t.id===o);if(i){const o=e[n(442)][n(427)](i[n(433)],{isClipboardPipeline:!0}),s=e[n(442)][n(457)][n(420)](o);t[i.id]=s}return t},Object[r(439)](null));i[r(416)][r(449)](r(454),JSON[r(458)](l))})}[A(446)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(402)],r=n[t(424)](S.ClipboardPipeline),a=n[t(424)](d);let c=null;this[t(463)](s[t(450)],t(456),(e,o)=>{const n=t,i=o[n(416)][n(405)](n(454));c=i?JSON[n(434)](i):null}),this[t(463)](r,t(429),(n,s)=>{const r=t,l=s[r(401)]===this[r(464)].id;l&&r(413)===s[r(435)]||o[r(415)](t=>{const n=r;let f=a[n(419)]();const u=!!f&&Array[n(400)](o[n(450)][n(465)][n(404)]())[n(451)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(398)](e))n.is(o(431),o(430))&&i[o(411)](n);for(const e of i)t[o(461)](e)}(t,s[n(437)]),!c)return;const{selection:d}=o[n(450)],h=d[n(397)]()[n(426)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(398)](e))if(n.is(o(431),o(430)))return n;return null}(t,s[n(437)]),f||=a[n(421)](t,h));const p=Array[n(400)](d[n(472)]())[n(462)](L),m=function(t,e,o){const s=n,r=Object[s(439)](null);for(const{item:n}of t[s(398)](e))if(n.is(s(431),s(452))){const e=n[s(444)](s(455));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(459)](s(455),r[e],n)}return r}(t,s[n(437)],t=>{const e=n;return!l||!!a[e(453)](t)&&!p[e(451)](t)});for(const[o,i]of Object[n(407)](c)){const s=m[o]||o,r=t[n(403)](n(412),{footnoteId:s}),a=e[n(442)][n(457)][n(427)](i),c=e[n(442)][n(409)](a,r);t[n(471)](c,r),t[n(436)](r,f,n(470))}c=null})})}}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(431),e(452))&&o[e(414)](n[e(444)](e(455)));return Array[e(400)](o)}var N=o(311),O=o(355),R=o(929),V=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),W=o.n(U),H=o(741),z=o.n(H),q=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=W(),Q.insert=B().bind(null,"head"),Q.domAPI=M(),Q.insertStyleElement=z();V()(q.A,Q);q.A&&q.A.locals&&q.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,N.ButtonView)),e.add("menuBar:insertFootnote",Y(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=J;function J(t,e){var o=Z();return(J=function(t,e){return o[t-=487]})(t,e)}function Z(){var t=["requires","744yheebv","isOfficialPlugin","147wqEmkM","72088DzordO","isPremiumPlugin","6190nNhMEB","196508mQfmiL","pluginName","Footnotes","284516nCnUck","1608030hToJFw","403668QmWaXQ","13779duNCoz","1880dTRKiQ"];return(Z=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(210870===-parseInt(e(491))/1+parseInt(e(494))/2+-parseInt(e(496))/3+-parseInt(e(500))/4*(-parseInt(e(490))/5)+parseInt(e(495))/6+-parseInt(e(487))/7*(-parseInt(e(488))/8)+parseInt(e(497))/9*(-parseInt(e(498))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[G(492)](){return G(493)}static get[G(499)](){return[I,_,X]}static get[G(501)](){return!0}static get[G(489)](){return!0}}const tt=ot;function et(){const t=["34786GsVCYf","upper-latin","7374ZKAqCO","1445NygWIn","1975344UsxAdA","1375590fMzkCf","lower-alpha","595071nZPeyU","upper-alpha","lower-roman","upper-roman","lower-latin","9095493HHmPuj","476fhiWWQ","decimal-leading-zero","12615CxHXZK","17loMcFh","decimal","80Azhwru"];return(et=function(){return t})()}function ot(t,e){const o=et();return(ot=function(t,e){return o[t-=496]})(t,e)}!function(t){const e=ot,o=t();for(;;)try{if(404545===parseInt(e(501))/1*(parseInt(e(504))/2)+-parseInt(e(500))/3*(parseInt(e(498))/4)+-parseInt(e(507))/5*(-parseInt(e(506))/6)+parseInt(e(508))/7+parseInt(e(503))/8*(parseInt(e(511))/9)+parseInt(e(509))/10+-parseInt(e(497))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const nt=[tt(502),tt(499),tt(496),tt(505),tt(510),tt(512),tt(513),tt(514)];function it(t,e){const o=rt();return(it=function(t,e){return o[t-=442]})(t,e)}const st=it;function rt(){const t=["change","execute","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","get","getAttribute","model","plugins","3779783geYgUZ","1179174dWuATW","includes","1043292XYZShr","refresh","value","3902352SsvUYc","footnotesListStyle","1824257GbYqXe","isEnabled","setAttribute","4139820YFpccP","897588fQIEuv","64TNAJxv"];return(rt=function(){return t})()}!function(t){const e=it,o=t();for(;;)try{if(916261===-parseInt(e(453))/1+parseInt(e(448))/2+-parseInt(e(451))/3+parseInt(e(457))/4+-parseInt(e(456))/5+-parseInt(e(446))/6+parseInt(e(445))/7*(parseInt(e(458))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[st(449)](){const t=st,{editor:e}=this,o=e[t(444)][t(463)](d)[t(462)]();this[t(454)]=!!o,this[t(450)]=o?.[t(442)](t(452))??null}[st(460)]({value:t}){const e=st,{editor:o}=this,n=o[e(444)][e(463)](d),i=n[e(462)]();i&&nt[e(447)](t)&&o[e(443)][e(459)](o=>{const s=e;o[s(455)](s(452),t,i),n[s(461)](o)})}}function ct(t,e){const o=ft();return(ct=function(t,e){return o[t-=121]})(t,e)}const lt=ct;function ft(){const t=["7VaHeCF","setAttribute","203106HbBqaU","200696rYfmNw","refresh","157479SAFnaP","get","317762BXjwyH","5hEQPKH","isEnabled","670omTCyt","1354784xnmTmx","_updateFootnotesCounters","getAttribute","isInteger","plugins","759396clsVvA","value","change","getFootnotesDefinitionsObjectElement","footnotesListStart","model","234okEuft","execute"];return(ft=function(){return t})()}!function(t){const e=ct,o=t();for(;;)try{if(146809===parseInt(e(136))/1+parseInt(e(138))/2+-parseInt(e(123))/3+-parseInt(e(134))/4+parseInt(e(139))/5*(-parseInt(e(133))/6)+-parseInt(e(131))/7*(-parseInt(e(142))/8)+parseInt(e(129))/9*(-parseInt(e(141))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[lt(135)](){const t=lt,{editor:e}=this,o=e[t(122)][t(137)](d)[t(126)]();this[t(140)]=!!o,this[t(124)]=o?.[t(144)](t(127))??null}[lt(130)]({value:t}){const e=lt,{editor:o}=this,n=o[e(122)][e(137)](d),i=n[e(126)]();i&&Number[e(121)](t)&&o[e(128)][e(125)](o=>{const s=e;o[s(132)](s(127),t,i),n[s(143)](o)})}}const dt=ht;function ht(t,e){const o=pt();return(ht=function(t,e){return o[t-=316]})(t,e)}function pt(){const t=["define","62652axNCON","_getDefaultStartIndex","toViewElement","1035702OuRyyy","padStart","setStyle","getChildren","max","writer","isPremiumPlugin","type","upper-roman","start","setAttribute","consume","add","model","element","footnotesListStyle","FootnotesPropertiesEditing","_defineConverters","differ","insert","commands","checkAttribute","322HesPdK","_defineSchema","plugins","downcast","19982yEKuUf","nodeAfter","pluginName","fromCharCode","getItems","1556628WPCMOL","modelCursor","434922rRCWit","consumable","editor","decimal-leading-zero","requires","lower-roman","52424LBECfC","createRangeOn","2519ehJBFY","viewItem","footnotesStyle","toLowerCase","footnotesDefinitions","schema","_updateFootnotesCounters","footnotes-list","getStyle","document","setFootnoteFormatter","parseInt","_getDefaultListStyle","for","footnotesListStart","name","item","upper-alpha","extend","toUpperCase","attribute:footnotesListStyle:footnotesDefinitions","isNaN","removeAttribute","footnotes.footnotesProperties.defaultStartIndex","find","registerPostFixer","lower-latin","lower-alpha","10aZIwxx","2uQeXfw","_defineFormatter","from","config","hasClass","footnotesStart","$text","removeStyle","upper-latin","element:ol","get","5PJyNFe","floor","getAttribute","1568313CKjAoG","upcast","list-style-type","_definePostfixer","init","isOfficialPlugin","getChanges","attribute:footnotesListStart:footnotesDefinitions","parent","mapper","position","footnotes.footnotesProperties.defaultListStyle","_formatFootnoteListValue","decimal","hasAttribute"];return(pt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(377572===parseInt(e(411))/1*(-parseInt(e(352))/2)+-parseInt(e(366))/3+-parseInt(e(416))/4+-parseInt(e(363))/5*(parseInt(e(418))/6)+parseInt(e(407))/7*(parseInt(e(321))/8)+-parseInt(e(385))/9*(parseInt(e(351))/10)+-parseInt(e(323))/11*(-parseInt(e(382))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[dt(413)](){return dt(401)}static get[dt(319)](){return[I,d]}static get[dt(371)](){return!0}static get[dt(391)](){return!0}[dt(370)](){const t=dt,{editor:e}=this;e[t(355)][t(381)](t(377),t(379)),e[t(355)][t(381)](t(346),1),e[t(405)][t(397)](t(325),new at(e)),e[t(405)][t(397)](t(357),new ut(e)),this[t(408)](),this[t(402)](),this[t(353)](),this[t(369)]()}[dt(408)](){const t=dt,{editor:e}=this,{schema:o}=e[t(398)];o[t(341)](t(327),{allowAttributes:[t(400),t(337)]})}[dt(402)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(336)](t(367))[t(397)](e=>{const o=t;e.on(o(361),(t,e,n)=>{const s=o,r=e[s(324)],a=e[s(417)]?.[s(374)];r[s(356)](s(330))&&a?.is(s(399),s(327))&&(function(t,e,o,n){const i=s;if(!n[i(406)](e,i(337)))return;let r=1;const a=o[i(316)][i(396)](t,{attributes:i(394)});if(a){const e=Number[i(334)](t[i(365)](i(394)),10);Number[i(344)](e)||(r=e)}!a&&e[i(380)](i(337))||o[i(390)][i(395)](i(337),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(406)](e,i(400)))return;let r=i(379),a=!1;if(o[i(316)][i(396)](t,{attributes:i(392)})){const e={1:i(379),a:i(350),A:i(340),i:i(320),I:i(393)}[t[i(365)](i(392))];e&&(r=e),a=!0}o[i(316)][i(396)](t,{styles:i(368)})&&(r=t[i(331)](i(368)),a=!0),!a&&e[i(380)](i(400))||o[i(390)][i(395)](i(400),r,e)}(r,a,n,i))})}),o[t(336)](t(410))[t(397)](e=>{const o=t;e.on(o(373),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;null==r||1===r?n[i(390)][i(345)](i(394),s):n[i(390)][i(395)](i(394),String(r),s)}),e.on(o(343),(t,e,n)=>{const i=o;if(!n[i(316)][i(396)](e[i(339)],t[i(338)]))return;const s=gt(e[i(339)],n[i(375)]),{attributeNewValue:r}=e;r&&i(379)!==r?n[i(390)][i(387)](i(368),r,s):n[i(390)][i(359)](i(368),s)})})}[dt(369)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(409)][t(362)](d),i=this[t(335)](),s=this[t(383)]();o[t(332)][t(348)](e=>{const r=t,a=o[r(332)][r(403)][r(372)]();let c=!1;for(const t of a){if(r(404)!==t[r(392)]||r(358)===t[r(338)])continue;const n=o[r(322)](t[r(376)][r(412)]);for(const t of n[r(415)]())t.is(r(399),r(327))&&(!t[r(380)](r(337))&&o[r(328)][r(406)](t,r(337))&&(e[r(395)](r(337),s,t),c=!0),!t[r(380)](r(400))&&o[r(328)][r(406)](t,r(400))&&(e[r(395)](r(400),i,t),c=!0))}return c&&n[r(329)](e),c})}[dt(353)](){const t=dt,{editor:e}=this;e[t(409)][t(362)](d)[t(333)](e=>this[t(378)](e))}[dt(335)](){const t=dt;return this[t(317)][t(355)][t(362)](t(377))}[dt(383)](){const t=dt;return this[t(317)][t(355)][t(362)](t(346))}[dt(378)]({container:t,value:e,digits:o}){const n=dt,i=t[n(365)](n(400)),s=t[n(365)](n(337)),r=Math[n(364)](e)+(s??1)-1;switch(i){case n(318):return function(t,e){const o=n;return String(t)[o(386)](e,"0")}(r,Math[n(389)](2,o));case n(350):case n(349):return wt(r,!1);case n(340):case n(360):return wt(r,!0);case n(320):return bt(r,!1);case n(393):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=dt,n=e[o(384)](t);return Array[o(354)](n[o(388)]())[o(347)](t=>t.is(o(399),"ol")&&t[o(356)](o(330)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(414)](97+t)+n,i=Math[o(364)]((i-1)/26)}return e?n[o(342)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(326)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var vt=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=W(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=z();V()(vt.A,kt);vt.A&&vt.A.locals&&vt.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=202]})(t,e)}function Et(){var t=["687412GiWEhQ","FootnotesProperties","355851CviBxQ","337709aEprOZ","3IPqMIR","isOfficialPlugin","371304zJqKaK","258MNCxQP","587055umPXQx","32hJbEsy","13255HksAyA","70wNCJex","requires","isPremiumPlugin","484252niESUG","297OSEOIB","pluginName"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(205636===-parseInt(e(215))/1+-parseInt(e(212))/2+-parseInt(e(216))/3*(parseInt(e(209))/4)+-parseInt(e(205))/5*(-parseInt(e(202))/6)+parseInt(e(203))/7*(parseInt(e(204))/8)+-parseInt(e(214))/9*(parseInt(e(206))/10)+-parseInt(e(210))/11*(-parseInt(e(218))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[Ft(211)](){return Ft(213)}static get[Ft(207)](){return[mt,Ct]}static get[Ft(217)](){return!0}static get[Ft(208)](){return!0}}function St(t,e){var o=At();return(St=function(t,e){return o[t-=434]})(t,e)}function At(){var t=["1749786uLYNWh","22MDYaTy","10517418XYxImK","8632360McDoqQ","3265586MGjmkb","14095736eMhIVh","1gBHAom","10kkmeOl","7bqTxsO","6151516adPaFI","765477RLeezo"];return(At=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(970908===parseInt(e(443))/1*(parseInt(e(441))/2)+parseInt(e(436))/3+-parseInt(e(435))/4+parseInt(e(444))/5*(-parseInt(e(437))/6)+-parseInt(e(434))/7*(-parseInt(e(442))/8)+parseInt(e(439))/9+-parseInt(e(440))/10*(parseInt(e(438))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(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 _0x1babc4,Command as _0x199234}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1e2051,isWidget as _0x582668,toWidgetEditable as _0x24f283,WidgetToolbarRepository as _0x4e9808}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x5de903,logWarning as _0x465693,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x427c5e,ClickObserver as _0x4d41b8}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x33fe7e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x50673b,ButtonView as _0x4299c3,View as _0x574ca8,ViewCollection as _0x103ab0,FocusCycler as _0x14f80a,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x35767e,BalloonPanelView as _0x4e120a,createDropdown as _0x38cb89}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x4fde22,IconListStyleDecimal as _0x387d81,IconListStyleDecimalLeadingZero as _0x195ff7,IconListStyleLowerRoman as _0x1c17d8,IconListStyleUpperRoman as _0x53e73b,IconListStyleLowerLatin as _0xf6ce8f,IconListStyleUpperLatin as _0x3ec87d}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x498108,_0x9ba568){this['_model']=_0x498108,this['_elementName']=_0x9ba568['elementName'],this['_getElementKey']=_0x9ba568['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3b2791){const _0x3ccf74=new Set(),_0x1955f0=new Map();for(const _0x29e467 of _0x3b2791){if('insert'===_0x29e467['type']&&'$text'!==_0x29e467['name']&&_0x29e467['position']['nodeAfter']){const _0x3c7a5a=this['_model']['createRangeOn'](_0x29e467['position']['nodeAfter']);for(const _0x19d76f of _0x3c7a5a['getItems']()){if(!_0x19d76f['is']('element',this['_elementName']))continue;const _0x3e401d=this['_getElementKey'](_0x19d76f);_0x1955f0['has'](_0x3e401d)||_0x1955f0['set'](_0x3e401d,[]),_0x1955f0['get'](_0x3e401d)['push'](_0x19d76f);}}if('remove'===_0x29e467['type']&&_0x29e467['name']===this['_elementName']){const _0x2cce4e=this['_getElementKey']({'getAttribute':_0x2e0b54=>_0x29e467['attributes']['get'](_0x2e0b54)});_0x3ccf74['add'](_0x2cce4e);}}for(const [_0x1e4e76,_0x2a38fe]of this['_trackedElements'])'$graveyard'===_0x2a38fe['root']['rootName']&&_0x3ccf74['add'](_0x1e4e76);for(const _0x38568c of _0x3ccf74)this['_trackedElements']['delete'](_0x38568c);for(const [_0x8d46e0,_0x394b0d]of _0x1955f0)this['_trackedElements']['set'](_0x8d46e0,_0x394b0d[_0x394b0d['length']-0x1]);const _0x10e969=new Set();for(const [_0x31399a,_0x12f6b1]of _0x1955f0)_0x3ccf74['has'](_0x31399a)&&(_0x10e969['add'](_0x12f6b1[0x0]),_0x12f6b1['length']>0x1?_0x1955f0['set'](_0x31399a,_0x12f6b1['slice'](0x1)):_0x1955f0['delete'](_0x31399a),_0x3ccf74['delete'](_0x31399a));return{'removed':Array['from'](_0x3ccf74),'inserted':Array['from'](_0x1955f0['values']())['flat'](),'moved':Array['from'](_0x10e969)};}}class c extends _0x1babc4{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5e8825){super(_0x5e8825),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x18e572=>_0x18e572['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1d6753=>_0x1d6753['getAttribute']('footnoteId')});}['init'](){const {editor:_0x18cc18}=this,{model:_0x26a5b7,data:_0x442357}=_0x18cc18;_0x26a5b7['document']['registerPostFixer'](_0x14546f=>{const _0x4a6fca=_0x26a5b7['document']['differ']['getChanges']();let _0x13ce9b=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x14546f,_0x4a6fca)&&(_0x13ce9b=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x14546f,_0x4a6fca)&&(_0x13ce9b=!0x0),this['_handleFootnoteReferencesChanges'](_0x14546f,_0x4a6fca)&&(_0x13ce9b=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x14546f)&&(_0x13ce9b=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x14546f)&&(_0x13ce9b=!0x0),this['_sortFootnoteDefinitions'](_0x14546f)&&(_0x13ce9b=!0x0),_0x13ce9b;}),this['listenTo'](_0x26a5b7['document'],'change:data',()=>{_0x26a5b7['enqueueChange']({'isUndoable':!0x1},_0xcf8a5f=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xcf8a5f);});},{'priority':'low'}),this['listenTo'](_0x442357,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x3ffeb7){return this['_footnotes']['find'](_0x218fcf=>_0x218fcf['id']===_0x3ffeb7)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x24a05b){this['_footnoteFormatter']=_0x24a05b;}['_updateFootnotesCounters'](_0x1d08f2,_0x33f34a=0x0){let _0x3adf37=!0x1;for(let _0x2d192c=_0x33f34a;_0x2d192c<this['_footnotes']['length'];_0x2d192c++)this['_updateFootnoteRefCounter'](_0x1d08f2,_0x2d192c)&&(_0x3adf37=!0x0);return _0x3adf37;}['_insertEmptyFootnotesDefinitionsContainer'](_0x5e03f8,_0x89f23d){const _0x372e4e=_0x5e03f8['createElement']('footnotesDefinitions',{});return _0x5e03f8['append'](_0x372e4e,_0x89f23d),this['_footnotesDefinitions']=_0x372e4e,_0x372e4e;}['_ensureFootnotesDefinitionsContainerExists'](_0x36b0d9){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x10a649=this['_footnotes'][0x0]['reference']['root'],_0x569bc0=this['_insertEmptyFootnotesDefinitionsContainer'](_0x36b0d9,_0x10a649);for(const _0x51a0f7 of this['_footnotes'])_0x51a0f7['definition']['parent']||_0x36b0d9['insert'](_0x51a0f7['definition'],_0x569bc0,'end');this['_updateFootnotesCounters'](_0x36b0d9);}['_handleFootnotesDefinitionsObjectChanges'](_0x20b20f,_0x5030fa){let _0x483530=!0x1;const {inserted:_0x22c5f5,removed:_0x459a69,moved:_0x16a73a}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5030fa);if(_0x16a73a['length']&&(this['_footnotesDefinitions']=_0x16a73a[0x0]),_0x22c5f5['length']){if(_0x22c5f5['length']>0x1||this['_footnotesDefinitions']&&_0x22c5f5['some'](_0x47c7bc=>_0x47c7bc!==this['_footnotesDefinitions'])){const _0x18dcb7=_0x20b20f['createElement']('footnotesDefinitions',{}),_0x2c5fa8=[];this['_footnotesDefinitions']&&_0x2c5fa8['push'](this['_footnotesDefinitions']),_0x2c5fa8['push'](..._0x22c5f5),_0x20b20f['insert'](_0x18dcb7,_0x2c5fa8[0x0],'before');for(const _0x7a9ff3 of _0x2c5fa8)_0x20b20f['move'](_0x20b20f['createRangeIn'](_0x7a9ff3),_0x20b20f['createPositionAt'](_0x18dcb7,'end')),_0x20b20f['remove'](_0x7a9ff3);this['_footnotesDefinitions']=_0x18dcb7,this['_updateFootnotesCounters'](_0x20b20f),_0x483530=!0x0;}else this['_footnotesDefinitions']=_0x22c5f5[0x0];}if(_0x459a69['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x27a1f5 of this['_footnotes'])_0x20b20f['remove'](_0x27a1f5['reference']),_0x483530=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x483530;}['_handleFootnoteDefinitionsChanges'](_0x478e8b,_0x30a589){let _0x3e46e0=!0x1;const _0x39df65=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x491355,moved:_0x574cce}=this['_footnoteDefsTracker']['getChanges'](_0x30a589);for(const _0x41c26a of[..._0x574cce,..._0x491355]){const _0x4c303f=_0x41c26a['getAttribute']('footnoteId'),_0x11f119=this['getFootnote'](_0x4c303f);_0x11f119&&(_0x11f119['definition']=_0x41c26a),_(_0x478e8b,_0x39df65,_0x41c26a)&&(_0x3e46e0=!0x0);}return _0x3e46e0;}['_handleFootnoteReferencesChanges'](_0xad09e,_0x20c7ef){let _0x34ea79=!0x1;const {removed:_0x45040c,inserted:_0x442aab,moved:_0x2b52b5}=this['_footnoteRefsTracker']['getChanges'](_0x20c7ef);for(const _0x8e5095 of _0x45040c)this['_handleRemoveFootnoteReferenceById'](_0xad09e,_0x8e5095)&&(_0x34ea79=!0x0);for(const _0x124f62 of _0x442aab)this['_handleInsertedFootnoteReference'](_0xad09e,_0x124f62)&&(_0x34ea79=!0x0);for(const _0x192095 of _0x2b52b5)this['_handleMovedFootnoteReference'](_0xad09e,_0x192095)&&(_0x34ea79=!0x0);return _0x34ea79;}['_handleFootnotesDefinitionsObjectSync'](_0x26e91f){if(!this['_footnotesDefinitions'])return!0x1;let _0xc7e8c9=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5a6e5a=[];for(const _0x3450b4 of this['_footnotesDefinitions']['getChildren']()){const _0x204f87=_0x3450b4['getAttribute']('footnoteId');this['getFootnote'](_0x204f87)||(_0x5a6e5a['unshift'](_0x3450b4),_0xc7e8c9=!0x0);}for(const _0x1fdcf7 of _0x5a6e5a)_0x26e91f['remove'](_0x1fdcf7);}const _0x580778=new Set(),_0x7ea911=[];for(const _0x21b3fe of this['_footnotesDefinitions']['getChildren']()){const _0x32f123=_0x21b3fe['getAttribute']('footnoteId');_0x580778['has'](_0x32f123)?(_0x7ea911['unshift'](_0x21b3fe),_0xc7e8c9=!0x0):_0x580778['add'](_0x32f123);}for(const _0x474d76 of _0x7ea911)_0x26e91f['remove'](_0x474d76);return this['_footnotesDefinitions']['childCount']||(_0x26e91f['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xc7e8c9=!0x0),_0xc7e8c9;}['_handleInsertedFootnoteReference'](_0x16f3c2,_0x40aa82){if(this['_footnotes']['find'](_0x4ec5be=>_0x4ec5be['reference']===_0x40aa82))return!0x1;let _0x1fadf2=!0x1;const _0x1af160=_0x40aa82['getAttribute']('footnoteId'),_0x19d089=this['_footnotes']['findIndex'](_0x16752f=>_0x16752f['id']===_0x1af160);-0x1!==_0x19d089&&(_0x16f3c2['remove'](this['_footnotes'][_0x19d089]['reference']),this['_footnotes']['splice'](_0x19d089,0x1),_0x1fadf2=!0x0);let _0x29a2ba=this['_footnotesDefinitions']?function(_0x105184,_0x4124a6){for(const _0x27add3 of _0x105184['getChildren']())if(_0x27add3['getAttribute']('footnoteId')===_0x4124a6)return _0x27add3;return null;}(this['_footnotesDefinitions'],_0x1af160):null;_0x29a2ba||(_0x29a2ba=_0x16f3c2['createElement']('footnoteDefinition',{'footnoteId':_0x1af160}),this['_footnotesDefinitions']&&(_0x16f3c2['insert'](_0x29a2ba,this['_footnotesDefinitions'],'end'),_0x1fadf2=!0x0));const _0x43bcac={'id':_0x1af160,'reference':_0x40aa82,'definition':_0x29a2ba},_0x966fbe=I(this['editor']['model'],this['_footnotes'],_0x40aa82);this['_footnotes']['splice'](_0x966fbe,0x0,_0x43bcac);let _0x1f69d5=_0x966fbe;return-0x1!==_0x19d089&&(_0x1f69d5=Math['min'](_0x966fbe,_0x19d089)),this['_updateFootnotesCounters'](_0x16f3c2,_0x1f69d5)&&(_0x1fadf2=!0x0),_0x1fadf2;}['_handleRemoveFootnoteReferenceById'](_0x5253f6,_0x2c5d30){const _0x10e5da=this['_footnotes']['findIndex'](_0x11fa5f=>_0x11fa5f['id']===_0x2c5d30);if(-0x1===_0x10e5da)return!0x1;let _0x2c7a10=!0x1;const _0x742559=this['_footnotes'][_0x10e5da];return'$graveyard'!==_0x742559['definition']['root']['rootName']&&(_0x5253f6['remove'](_0x742559['definition']),_0x2c7a10=!0x0),this['_footnotes']['splice'](_0x10e5da,0x1),this['_updateFootnotesCounters'](_0x5253f6,_0x10e5da)&&(_0x2c7a10=!0x0),_0x2c7a10;}['_handleMovedFootnoteReference'](_0x10f014,_0x46793a){const _0x3beee7=_0x46793a['getAttribute']('footnoteId'),_0x28e6e7=this['_footnotes']['findIndex'](_0x2ec608=>_0x2ec608['id']===_0x3beee7),_0x47d522=this['_footnotes'][_0x28e6e7];let _0x145f4c=!0x1;_0x47d522['reference']=_0x46793a,this['_footnotes']['splice'](_0x28e6e7,0x1);const _0x1c67fc=I(this['editor']['model'],this['_footnotes'],_0x46793a);return this['_footnotes']['splice'](_0x1c67fc,0x0,_0x47d522),this['_updateFootnotesCounters'](_0x10f014,Math['min'](_0x28e6e7,_0x1c67fc))&&(_0x145f4c=!0x0),_0x145f4c;}['_updateFootnoteRefCounter'](_0x5c600d,_0xc37bbd){if(!this['_footnotesDefinitions'])return!0x1;const _0x19b00f=this['_footnotes'][_0xc37bbd];let _0x561528;return _0x561528=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x19b00f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xc37bbd+0x1}):String(_0xc37bbd+0x1),_0x19b00f['reference']['getAttribute']('footnoteCounter')!=_0x561528&&(_0x5c600d['setAttribute']('footnoteCounter',_0x561528,_0x19b00f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x17ab34){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x59407d,_0x37ef52){if(_0x59407d['length']!==_0x37ef52['length'])return!0x1;for(let _0x5a36af=0x0;_0x5a36af<_0x59407d['length'];_0x5a36af++)if(_0x59407d[_0x5a36af]!==_0x37ef52[_0x5a36af])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x507c93=>_0x507c93['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x187fba=>_0x187fba['getAttribute']('footnoteId'))))return!0x1;let _0x326dea=!0x1;for(let _0x61191d=0x0;_0x61191d<this['_footnotes']['length'];_0x61191d++){const _0x53f463=this['_footnotes'][_0x61191d],_0x5e1f8d=_0x17ab34['createPositionBefore'](_0x53f463['definition']),_0x13bc9e=_0x17ab34['createPositionAt'](this['_footnotesDefinitions'],_0x61191d);_0x5e1f8d['isEqual'](_0x13bc9e)||(_0x17ab34['move'](_0x17ab34['createRangeOn'](_0x53f463['definition']),_0x13bc9e),_0x326dea=!0x0);}return _0x326dea;}['_ensureFootnotesReferencesHaveProperOrder'](_0x2371f2){if(!this['_footnotes']['length'])return!0x1;const {model:_0x122fee}=this['editor'];let _0x11a95c=!0x1;for(let _0x2a4fe6=0x0;_0x2a4fe6<this['_footnotes']['length']-0x1;_0x2a4fe6++){const _0x39fc46=this['_footnotes'][_0x2a4fe6],_0x35da42=this['_footnotes'][_0x2a4fe6+0x1],_0x27ec24=_0x122fee['createPositionBefore'](_0x39fc46['reference']),_0x2bc38a=_0x122fee['createPositionBefore'](_0x35da42['reference']);'after'===_0x27ec24['compareWith'](_0x2bc38a)&&(this['_handleMovedFootnoteReference'](_0x2371f2,_0x39fc46['reference']),_0x2a4fe6=-0x1,_0x11a95c=!0x0);}return _0x11a95c;}}function _(_0x189d33,_0x1dd3d4,_0x7c7a67){if(_0x7c7a67['childCount'])return!0x1;const _0x8bd996=_0x1dd3d4?'paragraph':'footnoteInlineContent';return _0x189d33['insert'](_0x189d33['createElement'](_0x8bd996),_0x7c7a67),!0x0;}function I(_0x56f1c9,_0x2ffdc5,_0x48b4d5){if(0x0===_0x2ffdc5['length'])return 0x0;const _0x285032=_0x56f1c9['createPositionBefore'](_0x48b4d5);for(let _0x1145b4=0x0;_0x1145b4<_0x2ffdc5['length'];_0x1145b4++){const _0x1ceee1=_0x2ffdc5[_0x1145b4],_0x34e2d6=_0x56f1c9['createPositionBefore'](_0x1ceee1['reference']);if('before'===_0x285032['compareWith'](_0x34e2d6))return _0x1145b4;}const _0x55493=_0x48b4d5['root'];let _0x161e40=-0x1;for(let _0x8447af=_0x2ffdc5['length']-0x1;_0x8447af>=0x0;_0x8447af--)if(_0x2ffdc5[_0x8447af]['reference']['root']===_0x55493){_0x161e40=_0x8447af;break;}if(-0x1!==_0x161e40)return _0x161e40+0x1;const _0x13905e=_0x56f1c9['document']['getRootNames'](),_0x30fefd=_0x13905e['indexOf'](_0x55493['rootName']),_0x9062f3=_0x13905e[_0x30fefd+0x1];if(_0x9062f3){for(let _0x1096c6=0x0;_0x1096c6<_0x2ffdc5['length'];_0x1096c6++)if(_0x2ffdc5[_0x1096c6]['reference']['root']['rootName']===_0x9062f3)return _0x1096c6;}return _0x2ffdc5['length'];}class m extends _0x199234{['refresh'](){const _0x203495=this['editor']['model']['document']['selection'],_0x216386=this['_getPositionToInsertFootnote'](_0x203495);this['isEnabled']=!!_0x216386;}['execute'](_0x38a838){const {editor:_0x559155}=this,{model:_0x206365}=_0x559155,{selection:_0x78ead5}=_0x206365['document'],_0x380c19=this['_getPositionToInsertFootnote'](_0x78ead5);if(!_0x380c19)return;const _0x4ac6f1=_0x559155['plugins']['get']('FootnotesEditing'),_0x15a6c8=_0x38a838?.['footnoteId']??_0x5de903();!function(_0x42b362){return'string'==typeof _0x42b362&&_0x42b362['length']>0x0&&!/\s/['test'](_0x42b362)&&!/^\d/['test'](_0x42b362);}(_0x15a6c8)?_0x465693('insert-footnote-command-executed-with-invalid-id'):(_0x206365['change'](_0x516a76=>{const _0x426e7e=_0x516a76['createElement']('footnoteRef',{'footnoteId':_0x15a6c8});_0x206365['insertObject'](_0x426e7e,_0x380c19,null);}),_0x4ac6f1['_moveSelectionToFootnoteDefinition'](_0x15a6c8));}['_getPositionToInsertFootnote'](_0x3e6a66){const {model:_0x50cbdb}=this['editor'],{schema:_0x213812}=_0x50cbdb,_0x399d3b=_0x3e6a66['getFirstRange']();for(const _0x22f936 of _0x399d3b['getItems']())if(_0x213812['isBlock'](_0x22f936)||_0x213812['isObject'](_0x22f936))return null;const _0x1c2b31=_0x399d3b['end'];return _0x213812['checkChild'](_0x1c2b31,'footnoteRef')?_0x1c2b31:null;}}class r extends _0x1babc4{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1fe455}=this;_0x1fe455['config']['define']('footnotes.multiBlock',!0x0),_0x1fe455['commands']['add']('insertFootnote',new m(_0x1fe455)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x515faf){const _0x3dad72=_0x5e437a([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]),_0x38a941=0x47a28506,_0x2b29a5=0x47a5ff66^_0x38a941,_0x4e58e3=window[_0x5e437a([0x44,0x61,0x74,0x65])][_0x5e437a([0x6e,0x6f,0x77])](),_0x4dfd03=_0x515faf[_0x5e437a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5d539b=new window[(_0x5e437a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x16d54e=>{_0x4dfd03[_0x5e437a([0x6f,0x6e,0x63,0x65])](_0x5e437a([0x72,0x65,0x61,0x64,0x79]),_0x16d54e);}),_0x3c002f={[_0x5e437a([0x6b,0x74,0x79])]:_0x5e437a([0x45,0x43]),[_0x5e437a([0x75,0x73,0x65])]:_0x5e437a([0x73,0x69,0x67]),[_0x5e437a([0x63,0x72,0x76])]:_0x5e437a([0x50,0x2d,0x32,0x35,0x36]),[_0x5e437a([0x78])]:_0x5e437a([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]),[_0x5e437a([0x79])]:_0x5e437a([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]),[_0x5e437a([0x61,0x6c,0x67])]:_0x5e437a([0x45,0x53,0x32,0x35,0x36])},_0x210b5f=_0x4dfd03[_0x5e437a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x5e437a([0x67,0x65,0x74])](_0x5e437a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x31dcc1(){let _0x39b6e7,_0x32bd0e=null,_0x5381cc=null;try{if(_0x210b5f==_0x5e437a([0x47,0x50,0x4c]))return _0x5e437a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x39b6e7=_0xee307d(),!_0x39b6e7)return _0x5e437a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x39b6e7[_0x5e437a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5381cc=_0x1fa5f6(_0x39b6e7[_0x5e437a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x39b6e7[_0x5e437a([0x6a,0x74,0x69])])),await _0x1527c1()?_0x26b915()?_0xee0999()?_0x5e437a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x26a7e5()?(_0x39b6e7[_0x5e437a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e437a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x32bd0e=_0x2f67aa(_0x5e437a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x39b6e7[_0x5e437a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x5e437a([0x74,0x72,0x69,0x61,0x6c])&&(_0x32bd0e=_0x2f67aa(_0x5e437a([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1bc3c5()):_0x5e437a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x5e437a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x5e437a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x5e437a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xee0999(){const _0x56e6f6=[_0x5e437a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x5e437a([0x74,0x72,0x69,0x61,0x6c])][_0x5e437a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x39b6e7[_0x5e437a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4e58e3/0x3e8:0xe10*_0x2b29a5;return _0x39b6e7[_0x5e437a([0x65,0x78,0x70])]<_0x56e6f6;}function _0x26b915(){const _0x8feaf8=_0x39b6e7[_0x5e437a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x8feaf8&&(!!_0x8feaf8[_0x5e437a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e437a([0x2a]))||!!_0x8feaf8[_0x5e437a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e437a([0x46,0x4f,0x4f])));}function _0x26a7e5(){const _0x3d5ad7=_0x39b6e7[_0x5e437a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3d5ad7||0x0==_0x3d5ad7[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xada8f0}=new URL(window[_0x5e437a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3d5ad7[_0x5e437a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xada8f0))return!0x0;const _0x3ac97c=_0xada8f0[_0x5e437a([0x73,0x70,0x6c,0x69,0x74])](_0x5e437a([0x2e]));return _0x3d5ad7[_0x5e437a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x46eddd=>_0x46eddd[_0x5e437a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e437a([0x2a])))[_0x5e437a([0x6d,0x61,0x70])](_0xf07dea=>_0xf07dea[_0x5e437a([0x73,0x70,0x6c,0x69,0x74])](_0x5e437a([0x2e])))[_0x5e437a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x9e1b17=>_0x9e1b17[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3ac97c[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e437a([0x6d,0x61,0x70])](_0x2337ea=>Array(_0x3ac97c[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2337ea[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x5e437a([0x66,0x69,0x6c,0x6c])](_0x2337ea[0x0]===_0x5e437a([0x2a])?_0x5e437a([0x2a]):'')[_0x5e437a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2337ea))[_0x5e437a([0x73,0x6f,0x6d,0x65])](_0x5a1cca=>_0x3ac97c[_0x5e437a([0x65,0x76,0x65,0x72,0x79])]((_0x210ece,_0x4cc458)=>_0x5a1cca[_0x4cc458]===_0x210ece||_0x5a1cca[_0x4cc458]===_0x5e437a([0x2a])));}function _0x1bc3c5(){return _0x32bd0e&&_0x5381cc?new window[(_0x5e437a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x48c5d6,_0x555558)=>{_0x32bd0e[_0x5e437a([0x74,0x68,0x65,0x6e])](_0x48c5d6,_0x555558),_0x5381cc[_0x5e437a([0x74,0x68,0x65,0x6e])](_0xacfaec=>{_0xacfaec!=_0x5e437a([0x56,0x61,0x6c,0x69,0x64])&&_0x48c5d6(_0xacfaec);},_0x555558);}):_0x32bd0e||_0x5381cc||_0x5e437a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1fa5f6(_0x3e00c4,_0x2f2022){return new window[(_0x5e437a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c04b5=>{if(_0x3a880d())return _0x4c04b5(_0x5e437a([0x56,0x61,0x6c,0x69,0x64]));_0x505334(),_0x4dfd03[_0x5e437a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x5e437a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1d685c=!0x1;const _0x4d0369=_0x5de903();function _0x7fb83b(_0x5a3a76){return!!_0x5a3a76&&(typeof _0x5a3a76===_0x5e437a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5a3a76===_0x5e437a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5a3a76[_0x5e437a([0x74,0x68,0x65,0x6e])]===_0x5e437a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5a3a76[_0x5e437a([0x63,0x61,0x74,0x63,0x68])]===_0x5e437a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x300eb9(_0x167d04){_0x2195e9(_0x167d04)[_0x5e437a([0x74,0x68,0x65,0x6e])](_0x119f72=>{if(!_0x119f72||_0x119f72[_0x5e437a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x5e437a([0x6f,0x6b]))return _0x5e437a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2371a9(_0xb4b953(_0x4d0369+_0x2f2022))!=_0x119f72[_0x5e437a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x5e437a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x5e437a([0x56,0x61,0x6c,0x69,0x64]);})[_0x5e437a([0x74,0x68,0x65,0x6e])](_0x514d17=>(_0xb9f6d5(),_0x514d17),()=>{const _0x547946=_0x5e2f53();return null==_0x547946?(_0xb9f6d5(),_0x5e437a([0x56,0x61,0x6c,0x69,0x64])):_0x5e437a(_0x4e58e3-_0x547946>(0x63ae0106^_0x38a941)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x5e437a([0x74,0x68,0x65,0x6e])](_0x4c04b5)[_0x5e437a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4c04b5(_0x5e437a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2edeeb=0x47946b86^_0x38a941;function _0xb9f6d5(){const _0xd39849=_0x5e437a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2371a9(_0xb4b953(_0x3e00c4)),_0x343b56=_0x355d5d(_0x2371a9(window[_0x5e437a([0x4d,0x61,0x74,0x68])][_0x5e437a([0x63,0x65,0x69,0x6c])](_0x4e58e3/_0x2edeeb)));window[_0x5e437a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e437a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd39849,_0x343b56);}function _0x5e2f53(){const _0x1b52a1=_0x5e437a([0x6c,0x6c,0x63,0x74,0x2d])+_0x2371a9(_0xb4b953(_0x3e00c4)),_0x10efc0=window[_0x5e437a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x5e437a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1b52a1);return _0x10efc0?window[_0x5e437a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x355d5d(_0x10efc0),0x10)*_0x2edeeb:null;}function _0x2195e9(_0xea51e3){return new window[(_0x5e437a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x57ee23,_0x45fa3c)=>{_0xea51e3[_0x5e437a([0x74,0x68,0x65,0x6e])](_0x57ee23,_0x45fa3c),window[_0x5e437a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x45fa3c,0x47a351c6^_0x38a941);});}}_0x4dfd03[_0x5e437a([0x6f,0x6e])](_0x5e437a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x2bfbed,_0x3c2db0)=>{if(_0x3c2db0[0x0]!=_0x3e00c4)return _0x4c04b5(_0x5e437a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3c2db0[0x1]={..._0x3c2db0[0x1],[_0x5e437a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x4d0369};},{[_0x5e437a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e437a([0x68,0x69,0x67,0x68])}),_0x4dfd03[_0x5e437a([0x6f,0x6e])](_0x5e437a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x39cd25=>{_0x7fb83b(_0x39cd25[_0x5e437a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1d685c=!0x0,_0x300eb9(_0x39cd25[_0x5e437a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x5e437a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x5e437a([0x6c,0x6f,0x77])}),_0x5d539b[_0x5e437a([0x74,0x68,0x65,0x6e])](()=>{_0x1d685c||_0x4c04b5(_0x5e437a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3a880d(){return _0x4dfd03[_0x5e437a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e437a([0x76,0x69,0x65,0x77])][_0x5e437a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x5e437a([0x61,0x75,0x74,0x6f]);}function _0x505334(){_0x4dfd03[_0x5e437a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x5e437a([0x76,0x69,0x65,0x77])][_0x5e437a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x5e437a([0x61,0x75,0x74,0x6f]);}}function _0x2f67aa(_0x3f0ce3){const _0xac5733=[new window[(_0x5e437a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c4021=>setTimeout(_0x2c4021,0x47abbbca^_0x38a941)),_0x5d539b[_0x5e437a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x5e437a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x18f3f=>{let _0x322acd=0x0;_0x4dfd03[_0x5e437a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e437a([0x6f,0x6e])](_0x5e437a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xdab65,_0x34aa39)=>{_0x34aa39[0x0][_0x5e437a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x322acd++,_0x322acd==(0x47a284fe^_0x38a941)&&(_0x18f3f(),_0xdab65[_0x5e437a([0x6f,0x66,0x66])]());});}))];return window[_0x5e437a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x5e437a([0x72,0x61,0x63,0x65])](_0xac5733)[_0x5e437a([0x74,0x68,0x65,0x6e])](()=>_0x3f0ce3);}async function _0x4e3a9(){await _0x5d539b,_0x4dfd03[_0x5e437a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e437a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x1efa0e,_0x4dfd03[_0x5e437a([0x6d,0x6f,0x64,0x65,0x6c])][_0x5e437a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x1efa0e,_0x4dfd03[_0x5e437a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x5e437a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0xf15d57(_0x4b3503){const _0x545f0e=_0x453699();_0x4dfd03[_0x545f0e]=_0x5e437a([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x4b3503,_0x4b3503!=_0x5e437a([0x56,0x61,0x6c,0x69,0x64])&&_0x4e3a9();}function _0x453699(){const _0x301706=window[_0x5e437a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x5e437a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x5e437a([0x6e,0x6f,0x77])]())[_0x5e437a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x5e437a([0x2e]),'');let _0x61fb92=_0x5e437a([0x75]);for(let _0x27cfb2=0x0;_0x27cfb2<_0x301706[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x27cfb2+=0x2){let _0x3f35d1=window[_0x5e437a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x301706[_0x5e437a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x27cfb2,_0x27cfb2+0x2));_0x3f35d1>=_0x3dad72[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3f35d1-=_0x3dad72[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x61fb92+=_0x3dad72[_0x3f35d1];}return _0x61fb92;}function _0xee307d(){const _0x4059f9=_0x210b5f[_0x5e437a([0x73,0x70,0x6c,0x69,0x74])](_0x5e437a([0x2e]));if(0x3!=_0x4059f9[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5a52e2(_0x4059f9[0x1]);function _0x5a52e2(_0x59790a){const _0x435512=_0x23471d(_0x59790a);return _0x435512&&_0x3c607b()?_0x435512:null;function _0x3c607b(){const _0x1bd893=_0x435512[_0x5e437a([0x6a,0x74,0x69])],_0x5082e6=window[_0x5e437a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1bd893[_0x5e437a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1bd893[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4a94b7={..._0x435512,[_0x5e437a([0x6a,0x74,0x69])]:_0x1bd893[_0x5e437a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1bd893[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4a94b7[_0x5e437a([0x76,0x63])],_0xb4b953(_0x4a94b7)==_0x5082e6;}}}async function _0x1527c1(){let _0x51239d=!0x0;try{const _0x4b2201=_0x210b5f[_0x5e437a([0x73,0x70,0x6c,0x69,0x74])](_0x5e437a([0x2e])),[_0x14f373,_0x2e2a54,_0x28652e]=_0x4b2201;return _0x54bcaa(_0x14f373),await _0x20acb6(_0x14f373,_0x2e2a54,_0x28652e),_0x51239d;}catch{return!0x1;}function _0x54bcaa(_0x2a45c4){const _0x1eb1b8=_0x23471d(_0x2a45c4);_0x1eb1b8&&_0x1eb1b8[_0x5e437a([0x61,0x6c,0x67])]==_0x5e437a([0x45,0x53,0x32,0x35,0x36])||(_0x51239d=!0x1);}async function _0x20acb6(_0x481744,_0x2453bb,_0x25eb0c){const _0x267174=window[_0x5e437a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x5e437a([0x66,0x72,0x6f,0x6d])](_0x3e880a(_0x25eb0c),_0x2ea76b=>_0x2ea76b[_0x5e437a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x12a7bd=new window[(_0x5e437a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x5e437a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x481744+_0x5e437a([0x2e])+_0x2453bb),_0x199414=window[_0x5e437a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x5e437a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x199414)return;const _0x252e16=await _0x199414[_0x5e437a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x5e437a([0x6a,0x77,0x6b]),_0x3c002f,{[_0x5e437a([0x6e,0x61,0x6d,0x65])]:_0x5e437a([0x45,0x43,0x44,0x53,0x41]),[_0x5e437a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x5e437a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x5e437a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x199414[_0x5e437a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x5e437a([0x6e,0x61,0x6d,0x65])]:_0x5e437a([0x45,0x43,0x44,0x53,0x41]),[_0x5e437a([0x68,0x61,0x73,0x68])]:{[_0x5e437a([0x6e,0x61,0x6d,0x65])]:_0x5e437a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x252e16,_0x267174,_0x12a7bd)||(_0x51239d=!0x1);}}function _0x23471d(_0x56326e){return _0x56326e[_0x5e437a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x5e437a([0x65,0x79]))?JSON[_0x5e437a([0x70,0x61,0x72,0x73,0x65])](_0x3e880a(_0x56326e)):null;}function _0x3e880a(_0x44f0cf){return window[_0x5e437a([0x61,0x74,0x6f,0x62])](_0x44f0cf[_0x5e437a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x5e437a([0x2b]))[_0x5e437a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x5e437a([0x2f])));}function _0xb4b953(_0x1fcae6){let _0x13c19d=0x1505;function _0x2aa327(_0x3b7fc6){for(let _0x1cd4bf=0x0;_0x1cd4bf<_0x3b7fc6[_0x5e437a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cd4bf++){const _0x88ca71=_0x3b7fc6[_0x5e437a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cd4bf);_0x13c19d=(_0x13c19d<<0x5)+_0x13c19d+_0x88ca71,_0x13c19d&=_0x13c19d;}}function _0xb14be6(_0x5c0d76){Array[_0x5e437a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x5c0d76)?_0x5c0d76[_0x5e437a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xb14be6):_0x5c0d76&&typeof _0x5c0d76==_0x5e437a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x5e437a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x5c0d76)[_0x5e437a([0x73,0x6f,0x72,0x74])]()[_0x5e437a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x368e81,_0xa02181])=>{_0x2aa327(_0x368e81),_0xb14be6(_0xa02181);}):_0x2aa327(window[_0x5e437a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x5c0d76));}return _0xb14be6(_0x1fcae6),_0x13c19d>>>0x0;}function _0x2371a9(_0x51f63c){return _0x51f63c[_0x5e437a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x5e437a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x5e437a([0x30]));}function _0x355d5d(_0x442bb3){return _0x442bb3[_0x5e437a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x5e437a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x5e437a([0x6a,0x6f,0x69,0x6e])]('');}function _0x1efa0e(){}function _0x5e437a(_0x27ac34){return _0x27ac34['map'](_0x11f1ee=>String['fromCharCode'](_0x11f1ee))['join']('');}_0xf15d57(await _0x31dcc1());}(this);}['_moveSelectionToFootnoteDefinition'](_0x30f7b5){const {plugins:_0x4227bf,editing:_0x319585,model:_0x4ec5db}=this['editor'],_0x4987d6=_0x4227bf['get'](c)['getFootnote'](_0x30f7b5);return!!_0x4987d6&&(_0x4ec5db['change'](_0x24377b=>{_0x24377b['setSelection'](_0x24377b['createPositionAt'](_0x4987d6['definition'],'end'));}),_0x319585['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x5d60ef){const {plugins:_0x3b6e64,editing:_0x2bd918,model:_0x51cdb9}=this['editor'],_0x525602=_0x3b6e64['get'](c)['getFootnote'](_0x5d60ef);return!!_0x525602&&(_0x51cdb9['change'](_0x4de5d5=>{_0x4de5d5['setSelection'](_0x525602['reference'],'on');}),_0x2bd918['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x57e80a}=this['editor']['model'],_0x41823f=this['editor']['config']['get']('footnotes.multiBlock');_0x57e80a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x57e80a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x57e80a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x41823f?_0x57e80a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x57e80a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x57e80a['addChildCheck'](_0x524ecf=>{for(const _0x560b8c of _0x524ecf)if('footnoteDefinition'===_0x560b8c['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x376cab}=this,{conversion:_0x2e49c6,editing:_0x28de92}=_0x376cab,{t:t}=_0x376cab['locale'];_0x2e49c6['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x574923,{writer:_0x431ca1,consumable:_0x2c423d})=>{const _0x50ba1e=_0x574923['getChild'](0x0);if(!_0x50ba1e||!_0x50ba1e['is']('element','a'))return null;const _0x3456c9=_0x50ba1e['getAttribute']('href')||'';if(!_0x3456c9['startsWith']('#'))return null;const _0x8feb20=_0x3456c9['replace'](/^#/,'');if(!_0x8feb20)return null;_0x2c423d['consume'](_0x50ba1e,{'name':!0x0,'attributes':['href']});for(const {item:_0x450abc}of _0x28de92['view']['createRangeIn'](_0x50ba1e))_0x450abc['is']('$textProxy')?_0x2c423d['consume'](_0x450abc['textNode'],{'name':!0x0}):_0x450abc['is']('element')&&_0x2c423d['consume'](_0x450abc,{'name':!0x0});return _0x431ca1['createElement']('footnoteRef',{'footnoteId':_0x8feb20});}}),_0x2e49c6['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x539613,{writer:_0x123cdf})=>D(_0x539613,_0x123cdf)}),_0x2e49c6['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5dddbd,{writer:_0x25c4c2})=>{const _0x4469db=_0x5dddbd['getAttribute']('footnoteCounter');return _0x1e2051(D(_0x5dddbd,_0x25c4c2),_0x25c4c2,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4469db)});}});}['_defineDefinitionsConverters'](){const {editor:_0x383b42}=this,{t:t}=_0x383b42['locale'],{conversion:_0x355f02}=_0x383b42;_0x355f02['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x355f02['for']('upcast')['add'](_0x242bb3=>{_0x242bb3['on']('element:ol',(_0x15f6a9,_0x44ba98,_0x5eeacf)=>{const _0x10bbc2=_0x44ba98['viewItem'];if(!_0x10bbc2['hasClass']('footnotes-list')||!_0x44ba98['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5eeacf['consumable']['consume'](_0x10bbc2,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x27d69d,modelCursor:_0x481130}=_0x5eeacf['convertChildren'](_0x44ba98['viewItem'],_0x44ba98['modelCursor']);_0x44ba98['modelRange']=_0x27d69d,_0x44ba98['modelCursor']=_0x481130;}),_0x242bb3['on']('element:hr',(_0x7b9122,_0x378258,_0x19a6f8)=>{const _0x507979=_0x378258['viewItem'];_0x507979['hasClass']('footnotes-divider')&&_0x378258['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x19a6f8['consumable']['consume'](_0x507979,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x355f02['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x23a1fb,{writer:_0x5acabc})=>v(_0x5acabc)}),_0x355f02['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3aac37,{writer:_0x5080da})=>{const _0x468928=v(_0x5080da,{'data-footnotes-list-label':t('Footnotes')}),_0x160245=_0x1e2051(_0x468928,_0x5080da,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5080da['setCustomProperty']('footnotesDefinitions',!0x0,_0x160245),_0x160245;}});}['_defineDefinitionConverters'](){const {editor:_0xa68485}=this,{conversion:_0x3d7437,locale:_0x5a8a3b}=_0xa68485,_0x23f7a7=_0xa68485['config']['get']('footnotes.multiBlock');_0x3d7437['for']('upcast')['add'](_0x320ea0=>{_0x320ea0['on']('element:li',(_0x4a71d4,_0x28118d,_0x4d26aa)=>{const _0x327797=_0x28118d['viewItem'];if(!_0x327797['hasClass']('footnote-definition')||!_0x327797['getAttribute']('id'))return;const _0x17bbc9=_0x327797['parent'];if(!_0x17bbc9['is']('element','ol')||!_0x17bbc9['hasClass']('footnotes-list'))return;if(!_0x4d26aa['consumable']['test'](_0x327797,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x556a29=_0x4d26aa['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x327797['getAttribute']('id')});if(!_0x4d26aa['safeInsert'](_0x556a29,_0x28118d['modelCursor']))return;_0x4d26aa['consumable']['consume'](_0x327797,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x47698b=Array['from'](_0x327797['getChildren']())['find'](_0x2ea81c=>_0x2ea81c['is']('element')&&_0x2ea81c['hasClass']('footnote-content'));for(const _0x5b595e of _0x327797['getChildren']())_0x5b595e['is']('element')&&(_0x4d26aa['consumable']['consume'](_0x5b595e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4d26aa['consumable']['consume'](_0x5b595e,{'name':!0x0,'classes':'footnote-content'}));if(_0x47698b){if(_0x23f7a7)_0x4d26aa['convertChildren'](_0x47698b,_0x556a29);else{const _0x3ff96c=_0x4d26aa['writer']['createElement']('footnoteInlineContent');_0x4d26aa['writer']['insert'](_0x3ff96c,_0x556a29),_0x4d26aa['convertChildren'](_0x47698b,_0x3ff96c);}}_0x4d26aa['updateConversionResult'](_0x556a29,_0x28118d);});}),_0x3d7437['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2e1f17,{writer:_0x43919b})=>b(_0x2e1f17,_0x43919b,_0x5a8a3b,{'dataPipeline':!0x0})}),_0x3d7437['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x18dd37,{writer:_0x1cfa25})=>b(_0x18dd37,_0x1cfa25,_0x5a8a3b)});}['_defineBogusParagraphConverters'](){const {editor:_0x353544}=this,{conversion:_0x30ccfb}=_0x353544;_0x353544['config']['get']('footnotes.multiBlock')?(_0x30ccfb['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x30ccfb['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x353544['model']['document'],'change:data',()=>{!function(_0x25ee2a,_0x16ee97){const _0x5db5ff=_0x25ee2a['document']['differ'],_0xb0fc88=new Set();for(const _0x4d5951 of _0x5db5ff['getChanges']()){const _0xb98d2a='attribute'==_0x4d5951['type']?_0x4d5951['range']['start']['parent']:_0x4d5951['position']['parent'];_0xb98d2a['is']('element','footnoteDefinition')&&_0xb0fc88['add'](_0xb98d2a);}for(const _0x3f0283 of _0xb0fc88['values']()){const _0x446b0f=Array['from'](_0x3f0283['getChildren']())['filter'](_0x4a51f5=>g(_0x4a51f5,_0x16ee97['mapper']));for(const _0x26d8ec of _0x446b0f)_0x16ee97['reconvertItem'](_0x26d8ec);}}(_0x353544['model'],_0x353544['editing']);})):(_0x30ccfb['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x30ccfb['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2a7317,{writer:_0x2f36ff})=>{const _0x286728=_0x2f36ff['createContainerElement']('span');return _0x2f36ff['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x286728),_0x286728;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1feb4f}=this,{editing:_0x269c79,t:t}=_0x1feb4f,_0x34791a=_0x1feb4f['model']['document']['selection'];_0x1feb4f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1feb4f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x269c79['view']['document'],'enter',(_0x36d74b,_0x343533)=>{const _0x57bff6=function(_0x459607){const _0x190ded=_0x459607['getSelectedElement']();if(_0x190ded?.['is']('element','footnoteRef'))return _0x190ded;return null;}(_0x34791a);if(_0x57bff6){const _0x2c6ebe=_0x57bff6['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2c6ebe),_0x343533['preventDefault'](),_0x36d74b['stop']();}},{'context':_0x582668});}['_defineClickHandlers'](){const {editor:_0x4ce506}=this,{editing:_0x236e32}=_0x4ce506;_0x4ce506['editing']['view']['addObserver'](_0x427c5e),_0x4ce506['editing']['view']['addObserver'](_0x4d41b8);let _0x2f336b=!0x1;this['listenTo'](_0x236e32['view']['document'],'pointerdown',(_0x25fc79,_0x13f839)=>{const {target:_0x34def5}=_0x13f839,_0x5d7f25=_0x236e32['view']['document']['selection'];_0x2f336b=!!(_0x34def5?.['is']('element','a')&&_0x34def5['parent']?.['is']('element','sup')&&_0x34def5['parent']['hasClass']('footnote'))&&_0x5d7f25['getSelectedElement']()===_0x34def5['parent'];},{'priority':'high'}),this['listenTo'](_0x236e32['view']['document'],'click',(_0x560dd2,_0x3c5158)=>{const {target:_0x90a607}=_0x3c5158;if(!_0x90a607?.['is']('element','a'))return;if(_0x90a607['parent']?.['is']('element','sup')&&_0x90a607['parent']['hasClass']('footnote')&&!_0x2f336b)return void _0x3c5158['preventDefault']();let _0x39d4bc=_0x90a607['getAttribute']('href');if(!_0x39d4bc?.['startsWith']('#'))return;_0x39d4bc=_0x39d4bc['slice'](0x1);let _0x1bc36d=!0x1;(_0x39d4bc['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x39d4bc['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x39d4bc))&&(_0x1bc36d=!0x0),_0x1bc36d&&(_0x3c5158['preventDefault'](),_0x560dd2['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x469e04}={}){return(_0x2164f9,{writer:_0x1e0e47})=>{if(!p(_0x2164f9))return null;if(!_0x469e04)return _0x1e0e47['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0xdcd923=_0x1e0e47['createContainerElement']('p');return _0x1e0e47['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xdcd923),_0xdcd923;};}function p(_0x29d5d2){const {parent:_0x42936a}=_0x29d5d2;if(!_0x42936a?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x42936a['childCount'])return!0x1;for(const _0x4f1a79 of _0x29d5d2['getAttributeKeys']())if(!_0x4f1a79['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4f1a79)return!0x1;return!0x0;}function g(_0x3b2cee,_0x5df287){if(!_0x3b2cee['is']('element','paragraph'))return!0x1;const _0x405f1d=_0x5df287['toViewElement'](_0x3b2cee);return!!_0x405f1d&&p(_0x3b2cee)!==_0x405f1d['is']('element','span');}function J(_0xebd2b8){return _0x582668(_0xebd2b8)&&_0xebd2b8['is']('containerElement')&&!!_0xebd2b8['getCustomProperty']('footnotesDefinitions');}function v(_0x5546e6,_0x281872={}){const _0x1e7c34=_0x5546e6['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x386428=_0x5546e6['createContainerElement']('ol',{'class':'footnotes-list'},_0x5546e6['createSlot']());return _0x5546e6['createContainerElement']('div',{'class':'footnotes',..._0x281872},[_0x1e7c34,_0x386428]);}function D(_0x18136b,_0x5c7895){const _0x20adbd=_0x18136b['getAttribute']('footnoteId'),_0xe2581e=_0x18136b['getAttribute']('footnoteCounter'),_0x42a1d5=_0x5c7895['createUIElement']('a',{'href':'#'+_0x20adbd},function(_0x1c5d6a){const _0x3218d1=this['toDomElement'](_0x1c5d6a);return _0x3218d1['textContent']=_0xe2581e,_0x3218d1;}),_0x3dfe11=_0x5c7895['createContainerElement']('sup',{'id':'ref-'+_0x20adbd,'class':'footnote'},[_0x42a1d5]);return _0x3dfe11['getFillerOffset']=()=>null,_0x3dfe11;}function b(_0x541cec,_0x30aad7,_0x2f1e68,{dataPipeline:_0x4d57f9}={}){const {t:t}=_0x2f1e68,_0xf27e82=_0x541cec['getAttribute']('footnoteId'),_0x2a9db7=_0x30aad7['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xf27e82},function(_0x42aa6f){const _0x5e4324=this['toDomElement'](_0x42aa6f);return _0x5e4324['innerText']='^',_0x5e4324;}),_0x6bc30e=_0x4d57f9?_0x30aad7['createContainerElement']('div',{'class':'footnote-content'}):_0x24f283(_0x30aad7['createEditableElement']('div',{'class':'footnote-content'}),_0x30aad7,{'label':t('Footnote\x20content.')});return _0x30aad7['insert'](_0x30aad7['createPositionAt'](_0x6bc30e,0x0),_0x30aad7['createSlot']()),_0x30aad7['createContainerElement']('li',{'class':'footnote-definition','id':_0xf27e82},[_0x2a9db7,_0x6bc30e]);}class e extends _0x1babc4{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x33fe7e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x267756}=this,{plugins:_0x20c5de,model:_0x261b1c}=_0x267756,_0x115adc=_0x20c5de['get'](_0x33fe7e),_0x248dcc=_0x20c5de['get'](c);this['listenTo'](_0x115adc,'outputTransformation',(_0x30de10,_0x3df8ee)=>{const _0x82441c=f(_0x261b1c['createRangeIn'](_0x3df8ee['content']));if(!_0x82441c['length'])return;const _0x3b6ba1=_0x248dcc['getFootnotes'](),_0x26e08a=_0x82441c['reduce']((_0x44ee1f,_0x4898f5)=>{const _0x2015b8=_0x3b6ba1['find'](_0x21b294=>_0x21b294['id']===_0x4898f5);if(_0x2015b8){const _0x5f08e1=_0x267756['data']['toView'](_0x2015b8['definition'],{'isClipboardPipeline':!0x0}),_0x1a64b8=_0x267756['data']['htmlProcessor']['toData'](_0x5f08e1);_0x44ee1f[_0x2015b8['id']]=_0x1a64b8;}return _0x44ee1f;},Object['create'](null));_0x3df8ee['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x26e08a));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2666cf}=this,{model:_0x20e9fa,plugins:_0x4b444c}=_0x2666cf,{view:_0x5da76d}=_0x2666cf['editing'],_0x59e360=_0x4b444c['get'](_0x33fe7e),_0x56252a=_0x4b444c['get'](c);let _0x294e12=null;this['listenTo'](_0x5da76d['document'],'clipboardInput',(_0x2167dc,_0x20b235)=>{const _0x511c70=_0x20b235['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x294e12=_0x511c70?JSON['parse'](_0x511c70):null;}),this['listenTo'](_0x59e360,'contentInsertion',(_0x5054ca,_0x1789de)=>{const _0x4bc5a1=_0x1789de['sourceEditorId']===this['editor']['id'];_0x4bc5a1&&'drop'===_0x1789de['method']||_0x20e9fa['change'](_0x14d896=>{let _0x85bf41=_0x56252a['getFootnotesDefinitionsObjectElement']();const _0xf8cba1=!!_0x85bf41&&Array['from'](_0x20e9fa['document']['selection']['getSelectedBlocks']())['includes'](_0x85bf41);if((_0x85bf41&&!_0xf8cba1||!_0x85bf41&&!_0x294e12)&&function(_0x223add,_0x13bbbd){const _0x14c41d=[];for(const {item:_0x50453e}of _0x223add['createRangeIn'](_0x13bbbd))_0x50453e['is']('element','footnotesDefinitions')&&_0x14c41d['push'](_0x50453e);for(const _0x2af0e6 of _0x14c41d)_0x223add['remove'](_0x2af0e6);}(_0x14d896,_0x1789de['content']),!_0x294e12)return;const {selection:_0x101445}=_0x20e9fa['document'],_0x35d077=_0x101445['getFirstRange']()['root'];_0x85bf41&&!_0xf8cba1||(_0x85bf41=function(_0x4e11a8,_0x4aa5e8){for(const {item:_0x392776}of _0x4e11a8['createRangeIn'](_0x4aa5e8))if(_0x392776['is']('element','footnotesDefinitions'))return _0x392776;return null;}(_0x14d896,_0x1789de['content']),_0x85bf41||=_0x56252a['_insertEmptyFootnotesDefinitionsContainer'](_0x14d896,_0x35d077));const _0x5e4e55=Array['from'](_0x101445['getRanges']())['flatMap'](f),_0x26d69b=function(_0xcc392e,_0x1999e5,_0x16cd70){const _0x35a1b5=Object['create'](null);for(const {item:_0x417e2a}of _0xcc392e['createRangeIn'](_0x1999e5))if(_0x417e2a['is']('element','footnoteRef')){const _0x2f5764=_0x417e2a['getAttribute']('footnoteId');if(!_0x16cd70(_0x2f5764))continue;_0x35a1b5[_0x2f5764]||(_0x35a1b5[_0x2f5764]=_0x5de903()),_0xcc392e['setAttribute']('footnoteId',_0x35a1b5[_0x2f5764],_0x417e2a);}return _0x35a1b5;}(_0x14d896,_0x1789de['content'],_0x47baca=>{if(!_0x4bc5a1)return!0x0;return!!_0x56252a['getFootnote'](_0x47baca)&&!_0x5e4e55['includes'](_0x47baca);});for(const [_0x328533,_0x580cc0]of Object['entries'](_0x294e12)){const _0x465a3f=_0x26d69b[_0x328533]||_0x328533,_0xe4b4cc=_0x14d896['createElement']('footnoteDefinition',{'footnoteId':_0x465a3f}),_0xa1023e=_0x2666cf['data']['htmlProcessor']['toView'](_0x580cc0),_0x1a7329=_0x2666cf['data']['toModel'](_0xa1023e,_0xe4b4cc);_0x14d896['append'](_0x1a7329,_0xe4b4cc),_0x14d896['insert'](_0xe4b4cc,_0x85bf41,'end');}_0x294e12=null;});});}}function f(_0x36019b){const _0x49bbe8=new Set();for(const {item:_0x51e531}of _0x36019b)_0x51e531['is']('element','footnoteRef')&&_0x49bbe8['add'](_0x51e531['getAttribute']('footnoteId'));return Array['from'](_0x49bbe8);}class i extends _0x1babc4{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4cd82d}=this,{componentFactory:_0x59831c}=_0x4cd82d['ui'];_0x59831c['add']('insertFootnote',x(_0x4cd82d,_0x4299c3)),_0x59831c['add']('menuBar:insertFootnote',x(_0x4cd82d,_0x50673b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3424e4=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0xe34064;for(const _0x2fd9ce in _0x3424e4){const _0x51c79c=_0x2fd9ce,_0x1c3a0d=_0x3424e4[_0x51c79c];if('footnotesLicenseKeyValid'==_0x1c3a0d||'footnotesLicenseKeyInvalid'==_0x1c3a0d||'footnotesLicenseKeyExpired'==_0x1c3a0d||'footnotesLicenseKeyDomainLimit'==_0x1c3a0d||'footnotesLicenseKeyNotAllowed'==_0x1c3a0d||'footnotesLicenseKeyEvaluationLimit'==_0x1c3a0d||'footnotesLicenseKeyTrialLimit'==_0x1c3a0d||'footnotesLicenseKeyUsageLimit'==_0x1c3a0d){delete _0x3424e4[_0x51c79c],_0xe34064=_0x1c3a0d,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0xe34064&&_0x3424e4['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0xe34064&&_0x3424e4['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0xe34064&&_0x3424e4['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0xe34064&&_0x3424e4['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0xe34064&&_0x3424e4['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0xe34064&&_0x3424e4['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0xe34064&&_0x3424e4['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x2ff8d2,_0x2ff0d6){const _0x4dca92=_0x2ff8d2['commands']['get']('insertFootnote');return _0x5d60ca=>{const {t:t}=_0x5d60ca,_0x2da3c9=new _0x2ff0d6(_0x5d60ca),_0x1d2dd6=_0x2da3c9 instanceof _0x50673b;return _0x2da3c9['bind']('isEnabled')['to'](_0x4dca92,'isEnabled'),_0x2da3c9['set']({'label':t(_0x1d2dd6?'Footnote':'Insert\x20footnote'),'icon':_0x4fde22,'tooltip':!0x0}),_0x2da3c9['on']('execute',()=>{_0x4dca92['execute'](),_0x2ff8d2['editing']['view']['focus']();}),_0x2da3c9;};}class lt extends _0x1babc4{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x199234{['refresh'](){const {editor:_0x313e65}=this,_0x1639af=_0x313e65['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1639af,this['value']=_0x1639af?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xa3978b}){const {editor:_0x2419ec}=this,_0x1c6b6b=_0x2419ec['plugins']['get'](c),_0xc08b8d=_0x1c6b6b['getFootnotesDefinitionsObjectElement']();_0xc08b8d&&Q['includes'](_0xa3978b)&&_0x2419ec['model']['change'](_0xa1d35=>{_0xa1d35['setAttribute']('footnotesListStyle',_0xa3978b,_0xc08b8d),_0x1c6b6b['_updateFootnotesCounters'](_0xa1d35);});}}class C extends _0x199234{['refresh'](){const {editor:_0x3cbf8b}=this,_0x3f5ce3=_0x3cbf8b['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3f5ce3,this['value']=_0x3f5ce3?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x1157a3}){const {editor:_0x1d4f6d}=this,_0x196027=_0x1d4f6d['plugins']['get'](c),_0x408f6b=_0x196027['getFootnotesDefinitionsObjectElement']();_0x408f6b&&Number['isInteger'](_0x1157a3)&&_0x1d4f6d['model']['change'](_0x832789=>{_0x832789['setAttribute']('footnotesListStart',_0x1157a3,_0x408f6b),_0x196027['_updateFootnotesCounters'](_0x832789);});}}class P extends _0x1babc4{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1e187f}=this;_0x1e187f['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x1e187f['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x1e187f['commands']['add']('footnotesStyle',new S(_0x1e187f)),_0x1e187f['commands']['add']('footnotesStart',new C(_0x1e187f)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x34e303}=this,{schema:_0x8a9e51}=_0x34e303['model'];_0x8a9e51['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x477e2f}=this,{conversion:_0x4b1390,model:_0x313763}=_0x477e2f,{schema:_0x94153a}=_0x313763;_0x4b1390['for']('upcast')['add'](_0x7530d1=>{_0x7530d1['on']('element:ol',(_0xee80df,_0x5c1f48,_0x354e33)=>{const _0x4eabe6=_0x5c1f48['viewItem'],_0x2b1792=_0x5c1f48['modelCursor']?.['parent'];_0x4eabe6['hasClass']('footnotes-list')&&_0x2b1792?.['is']('element','footnotesDefinitions')&&(function(_0x92e033,_0x427cf6,_0x353416,_0x23922c){if(!_0x23922c['checkAttribute'](_0x427cf6,'footnotesListStart'))return;let _0x4fe44f=0x1;const _0x4dfdf1=_0x353416['consumable']['consume'](_0x92e033,{'attributes':'start'});if(_0x4dfdf1){const _0x22b8d6=Number['parseInt'](_0x92e033['getAttribute']('start'),0xa);Number['isNaN'](_0x22b8d6)||(_0x4fe44f=_0x22b8d6);}!_0x4dfdf1&&_0x427cf6['hasAttribute']('footnotesListStart')||_0x353416['writer']['setAttribute']('footnotesListStart',_0x4fe44f,_0x427cf6);}(_0x4eabe6,_0x2b1792,_0x354e33,_0x94153a),function(_0x5f2c43,_0x2f9f69,_0x44070f,_0x3fdfde){if(!_0x3fdfde['checkAttribute'](_0x2f9f69,'footnotesListStyle'))return;let _0x5b1e36='decimal',_0x594046=!0x1;if(_0x44070f['consumable']['consume'](_0x5f2c43,{'attributes':'type'})){const _0x4cf5c4={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5f2c43['getAttribute']('type')];_0x4cf5c4&&(_0x5b1e36=_0x4cf5c4),_0x594046=!0x0;}_0x44070f['consumable']['consume'](_0x5f2c43,{'styles':'list-style-type'})&&(_0x5b1e36=_0x5f2c43['getStyle']('list-style-type'),_0x594046=!0x0),!_0x594046&&_0x2f9f69['hasAttribute']('footnotesListStyle')||_0x44070f['writer']['setAttribute']('footnotesListStyle',_0x5b1e36,_0x2f9f69);}(_0x4eabe6,_0x2b1792,_0x354e33,_0x94153a));});}),_0x4b1390['for']('downcast')['add'](_0x21a7e9=>{_0x21a7e9['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x42fe54,_0x53d9bf,_0x5b0a3c)=>{if(!_0x5b0a3c['consumable']['consume'](_0x53d9bf['item'],_0x42fe54['name']))return;const _0x34031b=M(_0x53d9bf['item'],_0x5b0a3c['mapper']),{attributeNewValue:_0x456eec}=_0x53d9bf;null==_0x456eec||0x1===_0x456eec?_0x5b0a3c['writer']['removeAttribute']('start',_0x34031b):_0x5b0a3c['writer']['setAttribute']('start',String(_0x456eec),_0x34031b);}),_0x21a7e9['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x329618,_0x36ba5d,_0x557f20)=>{if(!_0x557f20['consumable']['consume'](_0x36ba5d['item'],_0x329618['name']))return;const _0x47003e=M(_0x36ba5d['item'],_0x557f20['mapper']),{attributeNewValue:_0x26fcaa}=_0x36ba5d;_0x26fcaa&&'decimal'!==_0x26fcaa?_0x557f20['writer']['setStyle']('list-style-type',_0x26fcaa,_0x47003e):_0x557f20['writer']['removeStyle']('list-style-type',_0x47003e);});});}['_definePostfixer'](){const {editor:_0x3df7a8}=this,{model:_0x52fbaa}=_0x3df7a8,_0x6d9a58=_0x3df7a8['plugins']['get'](c),_0x3a8c17=this['_getDefaultListStyle'](),_0x277a3f=this['_getDefaultStartIndex']();_0x52fbaa['document']['registerPostFixer'](_0xbac158=>{const _0xe9fc77=_0x52fbaa['document']['differ']['getChanges']();let _0x66c65a=!0x1;for(const _0x260290 of _0xe9fc77){if('insert'!==_0x260290['type']||'$text'===_0x260290['name'])continue;const _0x3d5e51=_0x52fbaa['createRangeOn'](_0x260290['position']['nodeAfter']);for(const _0x41d08d of _0x3d5e51['getItems']())_0x41d08d['is']('element','footnotesDefinitions')&&(!_0x41d08d['hasAttribute']('footnotesListStart')&&_0x52fbaa['schema']['checkAttribute'](_0x41d08d,'footnotesListStart')&&(_0xbac158['setAttribute']('footnotesListStart',_0x277a3f,_0x41d08d),_0x66c65a=!0x0),!_0x41d08d['hasAttribute']('footnotesListStyle')&&_0x52fbaa['schema']['checkAttribute'](_0x41d08d,'footnotesListStyle')&&(_0xbac158['setAttribute']('footnotesListStyle',_0x3a8c17,_0x41d08d),_0x66c65a=!0x0));}return _0x66c65a&&_0x6d9a58['_updateFootnotesCounters'](_0xbac158),_0x66c65a;});}['_defineFormatter'](){const {editor:_0x193e78}=this;_0x193e78['plugins']['get'](c)['setFootnoteFormatter'](_0x5b1ff3=>this['_formatFootnoteListValue'](_0x5b1ff3));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x3dbb47,value:_0x1ff58f,digits:_0x1cd2f4}){const _0x1cb2a0=_0x3dbb47['getAttribute']('footnotesListStyle'),_0x9ecce1=_0x3dbb47['getAttribute']('footnotesListStart'),_0x34829d=Math['floor'](_0x1ff58f)+(_0x9ecce1??0x1)-0x1;switch(_0x1cb2a0){case'decimal-leading-zero':return function(_0x3b8c4c,_0x277c76){return String(_0x3b8c4c)['padStart'](_0x277c76,'0');}(_0x34829d,Math['max'](0x2,_0x1cd2f4));case'lower-alpha':case'lower-latin':return N(_0x34829d,!0x1);case'upper-alpha':case'upper-latin':return N(_0x34829d,!0x0);case'lower-roman':return X(_0x34829d,!0x1);case'upper-roman':return X(_0x34829d,!0x0);default:return String(_0x34829d);}}}function M(_0x3453bd,_0x35baa7){const _0x13160b=_0x35baa7['toViewElement'](_0x3453bd);return Array['from'](_0x13160b['getChildren']())['find'](_0x49cee5=>_0x49cee5['is']('element','ol')&&_0x49cee5['hasClass']('footnotes-list'));}function N(_0x416c15,_0x581701){let _0x59a899='',_0x393cb8=_0x416c15;for(;_0x393cb8>0x0;){const _0x7fd6ce=(_0x393cb8-0x1)%0x1a;_0x59a899=String['fromCharCode'](0x61+_0x7fd6ce)+_0x59a899,_0x393cb8=Math['floor']((_0x393cb8-0x1)/0x1a);}return _0x581701?_0x59a899['toUpperCase']():_0x59a899;}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(_0x12cf50,_0x33d746){let _0x3216ee='',_0x5ec5c7=_0x12cf50;for(const {value:_0x55807f,numeral:_0x7486fc}of V)for(;_0x5ec5c7>=_0x55807f;)_0x3216ee+=_0x7486fc,_0x5ec5c7-=_0x55807f;return _0x33d746?_0x3216ee:_0x3216ee['toLowerCase']();}class H extends _0x574ca8{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x103ab0();['focusCycler'];constructor(_0x9aeb33,{styleButtonViews:_0x1a3da7,styleGridAriaLabel:_0xb3077f}){super(_0x9aeb33),(this['focusCycler']=new _0x14f80a({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x1a3da7,_0xb3077f),[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 _0x31be69 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x31be69['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 _0x209f05=_0x2739f7=>_0x2739f7['stopPropagation']();this['keystrokes']['set']('arrowright',_0x209f05),this['keystrokes']['set']('arrowleft',_0x209f05),this['keystrokes']['set']('arrowup',_0x209f05),this['keystrokes']['set']('arrowdown',_0x209f05);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x42e098,_0x40ceab){const _0x4129ac=new _0x574ca8(this['locale']);return _0x4129ac['children']=_0x4129ac['createCollection'](),_0x4129ac['children']['addMany'](_0x42e098),_0x4129ac['setTemplate']({'tag':'div','attributes':{'aria-label':_0x40ceab,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x4129ac['children']}),_0x4129ac['children']['delegate']('execute')['to'](this),_0x4129ac['focus']=function(){for(const _0x2be11c of this['children'])if(_0x2be11c instanceof _0x4299c3&&_0x2be11c['isOn'])return void _0x2be11c['focus']();this['children']['first']['focus']();},_0x4129ac['focusTracker']=new ot(),_0x4129ac['keystrokes']=new rt(),_0x4129ac['render'](),_0x4129ac['keystrokes']['listenTo'](_0x4129ac['element']),this['children']['add'](_0x4129ac),_0x4129ac;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x4dae40=this['_createStartIndexPropertyView'](),_0x1bc9a2=[_0x4dae40],_0x3ffff6=new st(this['locale'],_0x1bc9a2);return _0x3ffff6['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3ffff6['buttonView']['bind']('isEnabled')['toMany'](_0x1bc9a2,'isEnabled',(..._0x5d752d)=>_0x5d752d['some'](_0x2b720e=>_0x2b720e)),_0x3ffff6['buttonView']['on']('change:isEnabled',(_0x3adb01,_0x580b58,_0x23bb01)=>{_0x23bb01||(_0x3ffff6['isCollapsed']=!0x0);}),this['children']['add'](_0x3ffff6),[_0x4dae40,_0x3ffff6];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5e2440=new it(this['locale'],et);return _0x5e2440['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5e2440['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5e2440['fieldView']['on']('input',()=>{const _0x39bb99=_0x5e2440['fieldView']['element'],_0x20b271=_0x39bb99['valueAsNumber'];Number['isNaN'](_0x20b271)?_0x5e2440['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x39bb99['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x20b271}):_0x5e2440['errorText']=t(_0x20b271<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5e2440;}}class j extends _0x1babc4{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x35767e,_0x4e9808];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x16cfc1}=this,{componentFactory:_0x4b67df}=_0x16cfc1['ui'];_0x16cfc1['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x4b67df['add']('footnotesStyle',function(_0x5e6d42){return _0x11a8bd=>{const {t:t}=_0x11a8bd,_0x12542c=_0x5e6d42['commands']['get']('footnotesStyle'),_0x5f1ee1=_0x38cb89(_0x11a8bd),{buttonView:_0x3dfb0a}=_0x5f1ee1;return _0x5f1ee1['class']='ck-footnotes-styles-dropdown',_0x5f1ee1['bind']('isEnabled')['to'](_0x12542c,'isEnabled'),_0x3dfb0a['set']({'label':t('Footnotes\x20style'),'icon':_0x4fde22,'tooltip':!0x0}),_0x5f1ee1['once']('change:isOpen',()=>{const _0x453e28=function({editor:_0x3af9aa,dropdownView:_0x2d34fc}){const {t:t}=_0x3af9aa['locale'],_0x3c4ef1=t('Footnotes\x20definitions\x20styles'),_0x59792e=function(_0x596f8c){const t=_0x596f8c['locale']['t'],_0x11527a=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x387d81},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x195ff7},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x1c17d8},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x53e73b},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0xf6ce8f},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x3ec87d}];return _0x11527a['map'](function(_0x26d262){const _0x914615=_0x26d262['locale'];return({label:_0x115523,icon:_0x226a92,tooltip:_0xfa177f,style:_0x4bcadc})=>{const _0x148cf5=_0x26d262['commands']['get']('footnotesStyle'),_0x54e8ad=new _0x4299c3(_0x914615);return _0x54e8ad['set']({'label':_0x115523,'icon':_0x226a92,'tooltip':_0xfa177f}),_0x54e8ad['bind']('isOn')['to'](_0x148cf5,'value',_0x1f24ea=>_0x1f24ea===_0x4bcadc),_0x54e8ad['bind']('isEnabled')['to'](_0x148cf5,'isEnabled'),_0x54e8ad['on']('execute',()=>{_0x26d262['execute']('footnotesStyle',{'value':_0x4bcadc}),_0x26d262['editing']['view']['focus']();}),_0x54e8ad;};}(_0x596f8c));}(_0x3af9aa),_0x18bd47=new H(_0x3af9aa['locale'],{'styleGridAriaLabel':_0x3c4ef1,'styleButtonViews':_0x59792e});return _0x18bd47['delegate']('execute')['to'](_0x2d34fc),_0x18bd47['on']('footnotesListStart',(_0x53607c,_0x1abbb0)=>{_0x3af9aa['execute']('footnotesStart',{'value':_0x1abbb0['startIndex']});}),_0x18bd47;}({'editor':_0x5e6d42,'dropdownView':_0x5f1ee1});_0x5f1ee1['panelView']['children']['add'](_0x453e28);}),_0x5f1ee1;};}(_0x16cfc1));}['afterInit'](){const {editor:_0x39d0f1}=this,{t:t}=_0x39d0f1['locale'],_0x20297e=_0x39d0f1['plugins']['get'](_0x4e9808),{defaultPositions:_0x5ac7e2}=_0x4e120a;_0x20297e['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x39d0f1['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0xc6e577=>{let _0x2301d7=_0xc6e577['getFirstPosition']()?.['parent'];return _0x2301d7?.['is']('$text')&&(_0x2301d7=_0x2301d7['parent']),_0x2301d7?.['is']('element')?_0x2301d7['findAncestor'](J):null;},'positions':[_0x5ac7e2['southArrowNorth'],_0x5ac7e2['southArrowNorthMiddleWest'],_0x5ac7e2['southArrowNorthMiddleEast'],_0x5ac7e2['southArrowNorthWest'],_0x5ac7e2['southArrowNorthEast'],_0x5ac7e2['northArrowSouth'],_0x5ac7e2['northArrowSouthMiddleWest'],_0x5ac7e2['northArrowSouthMiddleEast'],_0x5ac7e2['northArrowSouthWest'],_0x5ac7e2['northArrowSouthEast'],_0x5ac7e2['viewportStickyNorth']]});}}class ft extends _0x1babc4{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0xa14e92,Command as _0xf445d6}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x21d062,isWidget as _0x31737,toWidgetEditable as _0x4cc514,WidgetToolbarRepository as _0x963390}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1cfef1,logWarning as _0x374b88,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x37ccb5,ClickObserver as _0x288baf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x47992d}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x422a2b,ButtonView as _0x14b9cc,View as _0x4feb61,ViewCollection as _0x1da79a,FocusCycler as _0x4bb811,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x15c9f1,BalloonPanelView as _0x53e6cb,createDropdown as _0x1cbca5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x36ede8,IconListStyleDecimal as _0x37983c,IconListStyleDecimalLeadingZero as _0x1ad2f4,IconListStyleLowerRoman as _0x4552ae,IconListStyleUpperRoman as _0x290142,IconListStyleLowerLatin as _0x8a1070,IconListStyleUpperLatin as _0x2026ef}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x779a04,_0x2efff3){this['_model']=_0x779a04,this['_elementName']=_0x2efff3['elementName'],this['_getElementKey']=_0x2efff3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0xa3928f){const _0x2136ef=new Set(),_0x34ad65=new Map();for(const _0xba34a9 of _0xa3928f){if('insert'===_0xba34a9['type']&&'$text'!==_0xba34a9['name']&&_0xba34a9['position']['nodeAfter']){const _0x48e38f=this['_model']['createRangeOn'](_0xba34a9['position']['nodeAfter']);for(const _0x8e0f7a of _0x48e38f['getItems']()){if(!_0x8e0f7a['is']('element',this['_elementName']))continue;const _0x5af10f=this['_getElementKey'](_0x8e0f7a);_0x34ad65['has'](_0x5af10f)||_0x34ad65['set'](_0x5af10f,[]),_0x34ad65['get'](_0x5af10f)['push'](_0x8e0f7a);}}if('remove'===_0xba34a9['type']&&_0xba34a9['name']===this['_elementName']){const _0x134fdd=this['_getElementKey']({'getAttribute':_0x21f33c=>_0xba34a9['attributes']['get'](_0x21f33c)});_0x2136ef['add'](_0x134fdd);}}for(const [_0x18dd1c,_0x2d6e00]of this['_trackedElements'])'$graveyard'===_0x2d6e00['root']['rootName']&&_0x2136ef['add'](_0x18dd1c);for(const _0x3bbbcb of _0x2136ef)this['_trackedElements']['delete'](_0x3bbbcb);for(const [_0x265ca4,_0x11a251]of _0x34ad65)this['_trackedElements']['set'](_0x265ca4,_0x11a251[_0x11a251['length']-0x1]);const _0x293489=new Set();for(const [_0x223377,_0x10fff2]of _0x34ad65)_0x2136ef['has'](_0x223377)&&(_0x293489['add'](_0x10fff2[0x0]),_0x10fff2['length']>0x1?_0x34ad65['set'](_0x223377,_0x10fff2['slice'](0x1)):_0x34ad65['delete'](_0x223377),_0x2136ef['delete'](_0x223377));return{'removed':Array['from'](_0x2136ef),'inserted':Array['from'](_0x34ad65['values']())['flat'](),'moved':Array['from'](_0x293489)};}}class c extends _0xa14e92{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x1bbb62){super(_0x1bbb62),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x440ddf=>_0x440ddf['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x160b0a=>_0x160b0a['getAttribute']('footnoteId')});}['init'](){const {editor:_0x558b81}=this,{model:_0x5887b9,data:_0x2b4c6d}=_0x558b81;_0x5887b9['document']['registerPostFixer'](_0x45eda2=>{const _0x4408bd=_0x5887b9['document']['differ']['getChanges']();let _0x3873cc=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x45eda2,_0x4408bd)&&(_0x3873cc=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x45eda2,_0x4408bd)&&(_0x3873cc=!0x0),this['_handleFootnoteReferencesChanges'](_0x45eda2,_0x4408bd)&&(_0x3873cc=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x45eda2)&&(_0x3873cc=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x45eda2)&&(_0x3873cc=!0x0),this['_sortFootnoteDefinitions'](_0x45eda2)&&(_0x3873cc=!0x0),_0x3873cc;}),this['listenTo'](_0x5887b9['document'],'change:data',()=>{_0x5887b9['enqueueChange']({'isUndoable':!0x1},_0xb99e23=>{this['_ensureFootnotesDefinitionsContainerExists'](_0xb99e23);});},{'priority':'low'}),this['listenTo'](_0x2b4c6d,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4c5606){return this['_footnotes']['find'](_0x302a09=>_0x302a09['id']===_0x4c5606)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x40c6d3){this['_footnoteFormatter']=_0x40c6d3;}['_updateFootnotesCounters'](_0x31622b,_0x148cad=0x0){let _0x1425d3=!0x1;for(let _0x19b667=_0x148cad;_0x19b667<this['_footnotes']['length'];_0x19b667++)this['_updateFootnoteRefCounter'](_0x31622b,_0x19b667)&&(_0x1425d3=!0x0);return _0x1425d3;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2b9693,_0x12e490){const _0x10845d=_0x2b9693['createElement']('footnotesDefinitions',{});return _0x2b9693['append'](_0x10845d,_0x12e490),this['_footnotesDefinitions']=_0x10845d,_0x10845d;}['_ensureFootnotesDefinitionsContainerExists'](_0x2e312d){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x2873c7=this['_footnotes'][0x0]['reference']['root'],_0x472494=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2e312d,_0x2873c7);for(const _0x318bab of this['_footnotes'])_0x318bab['definition']['parent']||_0x2e312d['insert'](_0x318bab['definition'],_0x472494,'end');this['_updateFootnotesCounters'](_0x2e312d);}['_handleFootnotesDefinitionsObjectChanges'](_0x204f68,_0x2adc85){let _0x5e023d=!0x1;const {inserted:_0x4f6dd9,removed:_0x5ef052,moved:_0x459463}=this['_footnoteDefsContainerTracker']['getChanges'](_0x2adc85);if(_0x459463['length']&&(this['_footnotesDefinitions']=_0x459463[0x0]),_0x4f6dd9['length']){if(_0x4f6dd9['length']>0x1||this['_footnotesDefinitions']&&_0x4f6dd9['some'](_0x3bf433=>_0x3bf433!==this['_footnotesDefinitions'])){const _0x1424fe=_0x204f68['createElement']('footnotesDefinitions',{}),_0x1e2f3e=[];this['_footnotesDefinitions']&&_0x1e2f3e['push'](this['_footnotesDefinitions']),_0x1e2f3e['push'](..._0x4f6dd9),_0x204f68['insert'](_0x1424fe,_0x1e2f3e[0x0],'before');for(const _0x33c56c of _0x1e2f3e)_0x204f68['move'](_0x204f68['createRangeIn'](_0x33c56c),_0x204f68['createPositionAt'](_0x1424fe,'end')),_0x204f68['remove'](_0x33c56c);this['_footnotesDefinitions']=_0x1424fe,this['_updateFootnotesCounters'](_0x204f68),_0x5e023d=!0x0;}else this['_footnotesDefinitions']=_0x4f6dd9[0x0];}if(_0x5ef052['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1980ad of this['_footnotes'])_0x204f68['remove'](_0x1980ad['reference']),_0x5e023d=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x5e023d;}['_handleFootnoteDefinitionsChanges'](_0x3bf276,_0x10af6e){let _0x2ba87a=!0x1;const _0x97a755=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x45d755,moved:_0x6b9303}=this['_footnoteDefsTracker']['getChanges'](_0x10af6e);for(const _0x122d16 of[..._0x6b9303,..._0x45d755]){const _0x2719a9=_0x122d16['getAttribute']('footnoteId'),_0x2df1f9=this['getFootnote'](_0x2719a9);_0x2df1f9&&(_0x2df1f9['definition']=_0x122d16),_(_0x3bf276,_0x97a755,_0x122d16)&&(_0x2ba87a=!0x0);}return _0x2ba87a;}['_handleFootnoteReferencesChanges'](_0x2ab58b,_0x4bd8be){let _0x3bca65=!0x1;const {removed:_0xeb9aca,inserted:_0xadf818,moved:_0x3843ab}=this['_footnoteRefsTracker']['getChanges'](_0x4bd8be);for(const _0x2fba58 of _0xeb9aca)this['_handleRemoveFootnoteReferenceById'](_0x2ab58b,_0x2fba58)&&(_0x3bca65=!0x0);for(const _0x518116 of _0xadf818)this['_handleInsertedFootnoteReference'](_0x2ab58b,_0x518116)&&(_0x3bca65=!0x0);for(const _0x5a6907 of _0x3843ab)this['_handleMovedFootnoteReference'](_0x2ab58b,_0x5a6907)&&(_0x3bca65=!0x0);return _0x3bca65;}['_handleFootnotesDefinitionsObjectSync'](_0x3cb3de){if(!this['_footnotesDefinitions'])return!0x1;let _0x41a68c=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xf31791=[];for(const _0x13f4d4 of this['_footnotesDefinitions']['getChildren']()){const _0x194695=_0x13f4d4['getAttribute']('footnoteId');this['getFootnote'](_0x194695)||(_0xf31791['unshift'](_0x13f4d4),_0x41a68c=!0x0);}for(const _0x4c5a18 of _0xf31791)_0x3cb3de['remove'](_0x4c5a18);}const _0x362eb8=new Set(),_0x5e7ad2=[];for(const _0x445346 of this['_footnotesDefinitions']['getChildren']()){const _0x969539=_0x445346['getAttribute']('footnoteId');_0x362eb8['has'](_0x969539)?(_0x5e7ad2['unshift'](_0x445346),_0x41a68c=!0x0):_0x362eb8['add'](_0x969539);}for(const _0x1ab55b of _0x5e7ad2)_0x3cb3de['remove'](_0x1ab55b);return this['_footnotesDefinitions']['childCount']||(_0x3cb3de['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x41a68c=!0x0),_0x41a68c;}['_handleInsertedFootnoteReference'](_0x3d1fcb,_0x122825){if(this['_footnotes']['find'](_0xb1a634=>_0xb1a634['reference']===_0x122825))return!0x1;let _0x226e3e=!0x1;const _0x50cb0b=_0x122825['getAttribute']('footnoteId'),_0x2471b9=this['_footnotes']['findIndex'](_0x59b978=>_0x59b978['id']===_0x50cb0b);-0x1!==_0x2471b9&&(_0x3d1fcb['remove'](this['_footnotes'][_0x2471b9]['reference']),this['_footnotes']['splice'](_0x2471b9,0x1),_0x226e3e=!0x0);let _0x36e83d=this['_footnotesDefinitions']?function(_0x54353c,_0x520712){for(const _0xfb4daf of _0x54353c['getChildren']())if(_0xfb4daf['getAttribute']('footnoteId')===_0x520712)return _0xfb4daf;return null;}(this['_footnotesDefinitions'],_0x50cb0b):null;_0x36e83d||(_0x36e83d=_0x3d1fcb['createElement']('footnoteDefinition',{'footnoteId':_0x50cb0b}),this['_footnotesDefinitions']&&(_0x3d1fcb['insert'](_0x36e83d,this['_footnotesDefinitions'],'end'),_0x226e3e=!0x0));const _0x4a5ea7={'id':_0x50cb0b,'reference':_0x122825,'definition':_0x36e83d},_0x1cc4a8=I(this['editor']['model'],this['_footnotes'],_0x122825);this['_footnotes']['splice'](_0x1cc4a8,0x0,_0x4a5ea7);let _0xdd0921=_0x1cc4a8;return-0x1!==_0x2471b9&&(_0xdd0921=Math['min'](_0x1cc4a8,_0x2471b9)),this['_updateFootnotesCounters'](_0x3d1fcb,_0xdd0921)&&(_0x226e3e=!0x0),_0x226e3e;}['_handleRemoveFootnoteReferenceById'](_0x4fc0d0,_0x3f1b5b){const _0x49b9f7=this['_footnotes']['findIndex'](_0x446fbc=>_0x446fbc['id']===_0x3f1b5b);if(-0x1===_0x49b9f7)return!0x1;let _0x1dd31e=!0x1;const _0x5e4e9f=this['_footnotes'][_0x49b9f7];return'$graveyard'!==_0x5e4e9f['definition']['root']['rootName']&&(_0x4fc0d0['remove'](_0x5e4e9f['definition']),_0x1dd31e=!0x0),this['_footnotes']['splice'](_0x49b9f7,0x1),this['_updateFootnotesCounters'](_0x4fc0d0,_0x49b9f7)&&(_0x1dd31e=!0x0),_0x1dd31e;}['_handleMovedFootnoteReference'](_0xa91a6c,_0x15db35){const _0x25114a=_0x15db35['getAttribute']('footnoteId'),_0x1d5afc=this['_footnotes']['findIndex'](_0x58e07d=>_0x58e07d['id']===_0x25114a),_0x2b9d9f=this['_footnotes'][_0x1d5afc];let _0x56a86e=!0x1;_0x2b9d9f['reference']=_0x15db35,this['_footnotes']['splice'](_0x1d5afc,0x1);const _0x33f0f0=I(this['editor']['model'],this['_footnotes'],_0x15db35);return this['_footnotes']['splice'](_0x33f0f0,0x0,_0x2b9d9f),this['_updateFootnotesCounters'](_0xa91a6c,Math['min'](_0x1d5afc,_0x33f0f0))&&(_0x56a86e=!0x0),_0x56a86e;}['_updateFootnoteRefCounter'](_0x2f8779,_0x459ca7){if(!this['_footnotesDefinitions'])return!0x1;const _0x332a86=this['_footnotes'][_0x459ca7];let _0xdeafef;return _0xdeafef=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x332a86,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x459ca7+0x1}):String(_0x459ca7+0x1),_0x332a86['reference']['getAttribute']('footnoteCounter')!=_0xdeafef&&(_0x2f8779['setAttribute']('footnoteCounter',_0xdeafef,_0x332a86['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x46b1f7){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1055ae,_0x244be0){if(_0x1055ae['length']!==_0x244be0['length'])return!0x1;for(let _0x1fea31=0x0;_0x1fea31<_0x1055ae['length'];_0x1fea31++)if(_0x1055ae[_0x1fea31]!==_0x244be0[_0x1fea31])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x3044d4=>_0x3044d4['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3906cc=>_0x3906cc['getAttribute']('footnoteId'))))return!0x1;let _0x4e7ae9=!0x1;for(let _0x5af7ce=0x0;_0x5af7ce<this['_footnotes']['length'];_0x5af7ce++){const _0xd7d71c=this['_footnotes'][_0x5af7ce],_0x32814b=_0x46b1f7['createPositionBefore'](_0xd7d71c['definition']),_0x54f869=_0x46b1f7['createPositionAt'](this['_footnotesDefinitions'],_0x5af7ce);_0x32814b['isEqual'](_0x54f869)||(_0x46b1f7['move'](_0x46b1f7['createRangeOn'](_0xd7d71c['definition']),_0x54f869),_0x4e7ae9=!0x0);}return _0x4e7ae9;}['_ensureFootnotesReferencesHaveProperOrder'](_0x3dd1df){if(!this['_footnotes']['length'])return!0x1;const {model:_0x3f4e3e}=this['editor'];let _0x404fb1=!0x1;for(let _0x2bf77e=0x0;_0x2bf77e<this['_footnotes']['length']-0x1;_0x2bf77e++){const _0x19eb8e=this['_footnotes'][_0x2bf77e],_0x2f0712=this['_footnotes'][_0x2bf77e+0x1],_0x256957=_0x3f4e3e['createPositionBefore'](_0x19eb8e['reference']),_0x5f6f53=_0x3f4e3e['createPositionBefore'](_0x2f0712['reference']);'after'===_0x256957['compareWith'](_0x5f6f53)&&(this['_handleMovedFootnoteReference'](_0x3dd1df,_0x19eb8e['reference']),_0x2bf77e=-0x1,_0x404fb1=!0x0);}return _0x404fb1;}}function _(_0x45374f,_0xa0f3a2,_0x10ea36){if(_0x10ea36['childCount'])return!0x1;const _0x16a6db=_0xa0f3a2?'paragraph':'footnoteInlineContent';return _0x45374f['insert'](_0x45374f['createElement'](_0x16a6db),_0x10ea36),!0x0;}function I(_0x3cbf22,_0x5d30e2,_0x5404ab){if(0x0===_0x5d30e2['length'])return 0x0;const _0x540e20=_0x3cbf22['createPositionBefore'](_0x5404ab);for(let _0x49fc1a=0x0;_0x49fc1a<_0x5d30e2['length'];_0x49fc1a++){const _0xf902e8=_0x5d30e2[_0x49fc1a],_0x2e13f5=_0x3cbf22['createPositionBefore'](_0xf902e8['reference']);if('before'===_0x540e20['compareWith'](_0x2e13f5))return _0x49fc1a;}const _0x148fcb=_0x5404ab['root'];let _0xc6851d=-0x1;for(let _0x5262c0=_0x5d30e2['length']-0x1;_0x5262c0>=0x0;_0x5262c0--)if(_0x5d30e2[_0x5262c0]['reference']['root']===_0x148fcb){_0xc6851d=_0x5262c0;break;}if(-0x1!==_0xc6851d)return _0xc6851d+0x1;const _0x454fba=_0x3cbf22['document']['getRootNames'](),_0x8046d0=_0x454fba['indexOf'](_0x148fcb['rootName']),_0x4caf7a=_0x454fba[_0x8046d0+0x1];if(_0x4caf7a){for(let _0x46c779=0x0;_0x46c779<_0x5d30e2['length'];_0x46c779++)if(_0x5d30e2[_0x46c779]['reference']['root']['rootName']===_0x4caf7a)return _0x46c779;}return _0x5d30e2['length'];}class m extends _0xf445d6{['refresh'](){const _0x2ce571=this['editor']['model']['document']['selection'],_0x1ce3eb=this['_getPositionToInsertFootnote'](_0x2ce571);this['isEnabled']=!!_0x1ce3eb;}['execute'](_0x16c4a5){const {editor:_0x114b58}=this,{model:_0xc63513}=_0x114b58,{selection:_0x5c37f9}=_0xc63513['document'],_0x23d9e1=this['_getPositionToInsertFootnote'](_0x5c37f9);if(!_0x23d9e1)return;const _0x178c40=_0x114b58['plugins']['get']('FootnotesEditing'),_0x23a87e=_0x16c4a5?.['footnoteId']??_0x1cfef1();!function(_0x5d7514){return'string'==typeof _0x5d7514&&_0x5d7514['length']>0x0&&!/\s/['test'](_0x5d7514)&&!/^\d/['test'](_0x5d7514);}(_0x23a87e)?_0x374b88('insert-footnote-command-executed-with-invalid-id'):(_0xc63513['change'](_0x1bf62e=>{const _0x6b9823=_0x1bf62e['createElement']('footnoteRef',{'footnoteId':_0x23a87e});_0xc63513['insertObject'](_0x6b9823,_0x23d9e1,null);}),_0x178c40['_moveSelectionToFootnoteDefinition'](_0x23a87e));}['_getPositionToInsertFootnote'](_0x2962b2){const {model:_0x1b78b0}=this['editor'],{schema:_0x3c6e60}=_0x1b78b0,_0x9cd043=_0x2962b2['getFirstRange']();for(const _0x8c0618 of _0x9cd043['getItems']())if(_0x3c6e60['isBlock'](_0x8c0618)||_0x3c6e60['isObject'](_0x8c0618))return null;const _0x36a743=_0x9cd043['end'];return _0x3c6e60['checkChild'](_0x36a743,'footnoteRef')?_0x36a743:null;}}class r extends _0xa14e92{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3eac10}=this;_0x3eac10['config']['define']('footnotes.multiBlock',!0x0),_0x3eac10['commands']['add']('insertFootnote',new m(_0x3eac10)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1c9b45){const _0x1e3d8d=_0xc69c9d([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]),_0x3176f7=0x47a28506,_0x46b96c=0x47a5ff96^_0x3176f7,_0x5bb9bd=window[_0xc69c9d([0x44,0x61,0x74,0x65])][_0xc69c9d([0x6e,0x6f,0x77])](),_0x4f1ac0=_0x1c9b45[_0xc69c9d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x36607e=new window[(_0xc69c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3ca930=>{_0x4f1ac0[_0xc69c9d([0x6f,0x6e,0x63,0x65])](_0xc69c9d([0x72,0x65,0x61,0x64,0x79]),_0x3ca930);}),_0x4a9257={[_0xc69c9d([0x6b,0x74,0x79])]:_0xc69c9d([0x45,0x43]),[_0xc69c9d([0x75,0x73,0x65])]:_0xc69c9d([0x73,0x69,0x67]),[_0xc69c9d([0x63,0x72,0x76])]:_0xc69c9d([0x50,0x2d,0x32,0x35,0x36]),[_0xc69c9d([0x78])]:_0xc69c9d([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]),[_0xc69c9d([0x79])]:_0xc69c9d([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]),[_0xc69c9d([0x61,0x6c,0x67])]:_0xc69c9d([0x45,0x53,0x32,0x35,0x36])},_0xda91bf=_0x4f1ac0[_0xc69c9d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xc69c9d([0x67,0x65,0x74])](_0xc69c9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22920a(){let _0x5720f1,_0xe4456d=null,_0x243233=null;try{if(_0xda91bf==_0xc69c9d([0x47,0x50,0x4c]))return _0xc69c9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5720f1=_0x3b0d2b(),!_0x5720f1)return _0xc69c9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5720f1[_0xc69c9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x243233=_0x3d8ca9(_0x5720f1[_0xc69c9d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5720f1[_0xc69c9d([0x6a,0x74,0x69])])),await _0x8cf9e6()?_0x42d55e()?_0xfd3bb6()?_0xc69c9d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x25c70d()?(_0x5720f1[_0xc69c9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc69c9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0xe4456d=_0x3421a3(_0xc69c9d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5720f1[_0xc69c9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xc69c9d([0x74,0x72,0x69,0x61,0x6c])&&(_0xe4456d=_0x3421a3(_0xc69c9d([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2a8867()):_0xc69c9d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xc69c9d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xc69c9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xc69c9d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0xfd3bb6(){const _0x5b3b8f=[_0xc69c9d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xc69c9d([0x74,0x72,0x69,0x61,0x6c])][_0xc69c9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5720f1[_0xc69c9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x5bb9bd/0x3e8:0xe10*_0x46b96c;return _0x5720f1[_0xc69c9d([0x65,0x78,0x70])]<_0x5b3b8f;}function _0x42d55e(){const _0x14dfeb=_0x5720f1[_0xc69c9d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x14dfeb&&(!!_0x14dfeb[_0xc69c9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc69c9d([0x2a]))||!!_0x14dfeb[_0xc69c9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc69c9d([0x46,0x4f,0x4f])));}function _0x25c70d(){const _0x1dbea=_0x5720f1[_0xc69c9d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1dbea||0x0==_0x1dbea[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e16a5}=new URL(window[_0xc69c9d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1dbea[_0xc69c9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e16a5))return!0x0;const _0x4fca83=_0x5e16a5[_0xc69c9d([0x73,0x70,0x6c,0x69,0x74])](_0xc69c9d([0x2e]));return _0x1dbea[_0xc69c9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x27e8ee=>_0x27e8ee[_0xc69c9d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xc69c9d([0x2a])))[_0xc69c9d([0x6d,0x61,0x70])](_0x5b9257=>_0x5b9257[_0xc69c9d([0x73,0x70,0x6c,0x69,0x74])](_0xc69c9d([0x2e])))[_0xc69c9d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x392dbe=>_0x392dbe[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4fca83[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc69c9d([0x6d,0x61,0x70])](_0x39a5e7=>Array(_0x4fca83[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x39a5e7[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xc69c9d([0x66,0x69,0x6c,0x6c])](_0x39a5e7[0x0]===_0xc69c9d([0x2a])?_0xc69c9d([0x2a]):'')[_0xc69c9d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x39a5e7))[_0xc69c9d([0x73,0x6f,0x6d,0x65])](_0x3d5d2f=>_0x4fca83[_0xc69c9d([0x65,0x76,0x65,0x72,0x79])]((_0x3f8baa,_0x23f6f1)=>_0x3d5d2f[_0x23f6f1]===_0x3f8baa||_0x3d5d2f[_0x23f6f1]===_0xc69c9d([0x2a])));}function _0x2a8867(){return _0xe4456d&&_0x243233?new window[(_0xc69c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x197d26,_0x15244c)=>{_0xe4456d[_0xc69c9d([0x74,0x68,0x65,0x6e])](_0x197d26,_0x15244c),_0x243233[_0xc69c9d([0x74,0x68,0x65,0x6e])](_0x4759a3=>{_0x4759a3!=_0xc69c9d([0x56,0x61,0x6c,0x69,0x64])&&_0x197d26(_0x4759a3);},_0x15244c);}):_0xe4456d||_0x243233||_0xc69c9d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3d8ca9(_0x5ac3ff,_0x1eaf68){return new window[(_0xc69c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd7f2e4=>{if(_0x539dc6())return _0xd7f2e4(_0xc69c9d([0x56,0x61,0x6c,0x69,0x64]));_0x1948c5(),_0x4f1ac0[_0xc69c9d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xc69c9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4c62fd=!0x1;const _0xc2b6ea=_0x1cfef1();function _0x3c6891(_0xb7f94b){return!!_0xb7f94b&&(typeof _0xb7f94b===_0xc69c9d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb7f94b===_0xc69c9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb7f94b[_0xc69c9d([0x74,0x68,0x65,0x6e])]===_0xc69c9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb7f94b[_0xc69c9d([0x63,0x61,0x74,0x63,0x68])]===_0xc69c9d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x5c4c51(_0x406021){_0x22a70e(_0x406021)[_0xc69c9d([0x74,0x68,0x65,0x6e])](_0x21d424=>{if(!_0x21d424||_0x21d424[_0xc69c9d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xc69c9d([0x6f,0x6b]))return _0xc69c9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5e0ce8(_0x21ed29(_0xc2b6ea+_0x1eaf68))!=_0x21d424[_0xc69c9d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xc69c9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xc69c9d([0x56,0x61,0x6c,0x69,0x64]);})[_0xc69c9d([0x74,0x68,0x65,0x6e])](_0x50304d=>(_0x3a4fec(),_0x50304d),()=>{const _0x44d355=_0xa00679();return null==_0x44d355?(_0x3a4fec(),_0xc69c9d([0x56,0x61,0x6c,0x69,0x64])):_0xc69c9d(_0x5bb9bd-_0x44d355>(0x63ae0106^_0x3176f7)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xc69c9d([0x74,0x68,0x65,0x6e])](_0xd7f2e4)[_0xc69c9d([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd7f2e4(_0xc69c9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x391faa=0x47946b86^_0x3176f7;function _0x3a4fec(){const _0xed4c1e=_0xc69c9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e0ce8(_0x21ed29(_0x5ac3ff)),_0x51b21a=_0x2e000c(_0x5e0ce8(window[_0xc69c9d([0x4d,0x61,0x74,0x68])][_0xc69c9d([0x63,0x65,0x69,0x6c])](_0x5bb9bd/_0x391faa)));window[_0xc69c9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc69c9d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xed4c1e,_0x51b21a);}function _0xa00679(){const _0x59da52=_0xc69c9d([0x6c,0x6c,0x63,0x74,0x2d])+_0x5e0ce8(_0x21ed29(_0x5ac3ff)),_0x2c9b80=window[_0xc69c9d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xc69c9d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x59da52);return _0x2c9b80?window[_0xc69c9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2e000c(_0x2c9b80),0x10)*_0x391faa:null;}function _0x22a70e(_0x4f1912){return new window[(_0xc69c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x9f5271,_0x2c2720)=>{_0x4f1912[_0xc69c9d([0x74,0x68,0x65,0x6e])](_0x9f5271,_0x2c2720),window[_0xc69c9d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x2c2720,0x47a351c6^_0x3176f7);});}}_0x4f1ac0[_0xc69c9d([0x6f,0x6e])](_0xc69c9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x10faeb,_0x5a4ecb)=>{if(_0x5a4ecb[0x0]!=_0x5ac3ff)return _0xd7f2e4(_0xc69c9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5a4ecb[0x1]={..._0x5a4ecb[0x1],[_0xc69c9d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xc2b6ea};},{[_0xc69c9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc69c9d([0x68,0x69,0x67,0x68])}),_0x4f1ac0[_0xc69c9d([0x6f,0x6e])](_0xc69c9d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2343be=>{_0x3c6891(_0x2343be[_0xc69c9d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4c62fd=!0x0,_0x5c4c51(_0x2343be[_0xc69c9d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xc69c9d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xc69c9d([0x6c,0x6f,0x77])}),_0x36607e[_0xc69c9d([0x74,0x68,0x65,0x6e])](()=>{_0x4c62fd||_0xd7f2e4(_0xc69c9d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x539dc6(){return _0x4f1ac0[_0xc69c9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc69c9d([0x76,0x69,0x65,0x77])][_0xc69c9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xc69c9d([0x61,0x75,0x74,0x6f]);}function _0x1948c5(){_0x4f1ac0[_0xc69c9d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xc69c9d([0x76,0x69,0x65,0x77])][_0xc69c9d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xc69c9d([0x61,0x75,0x74,0x6f]);}}function _0x3421a3(_0x426090){const _0x1c9a19=[new window[(_0xc69c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x46362c=>setTimeout(_0x46362c,0x47abbbca^_0x3176f7)),_0x36607e[_0xc69c9d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xc69c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2e1efc=>{let _0x89a34=0x0;_0x4f1ac0[_0xc69c9d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc69c9d([0x6f,0x6e])](_0xc69c9d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x315024,_0x55e582)=>{_0x55e582[0x0][_0xc69c9d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x89a34++,_0x89a34==(0x47a284fe^_0x3176f7)&&(_0x2e1efc(),_0x315024[_0xc69c9d([0x6f,0x66,0x66])]());});}))];return window[_0xc69c9d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xc69c9d([0x72,0x61,0x63,0x65])](_0x1c9a19)[_0xc69c9d([0x74,0x68,0x65,0x6e])](()=>_0x426090);}async function _0x34a969(){await _0x36607e,_0x4f1ac0[_0xc69c9d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc69c9d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18f59d,_0x4f1ac0[_0xc69c9d([0x6d,0x6f,0x64,0x65,0x6c])][_0xc69c9d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18f59d,_0x4f1ac0[_0xc69c9d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xc69c9d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5a590f(_0x523575){const _0x402812=_0x51342d();_0x4f1ac0[_0x402812]=_0xc69c9d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x523575,_0x523575!=_0xc69c9d([0x56,0x61,0x6c,0x69,0x64])&&_0x34a969();}function _0x51342d(){const _0x53d0e6=window[_0xc69c9d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xc69c9d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xc69c9d([0x6e,0x6f,0x77])]())[_0xc69c9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xc69c9d([0x2e]),'');let _0x5cc07d=_0xc69c9d([0x75]);for(let _0x166fbc=0x0;_0x166fbc<_0x53d0e6[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x166fbc+=0x2){let _0x41b847=window[_0xc69c9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x53d0e6[_0xc69c9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x166fbc,_0x166fbc+0x2));_0x41b847>=_0x1e3d8d[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x41b847-=_0x1e3d8d[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x5cc07d+=_0x1e3d8d[_0x41b847];}return _0x5cc07d;}function _0x3b0d2b(){const _0x453ddf=_0xda91bf[_0xc69c9d([0x73,0x70,0x6c,0x69,0x74])](_0xc69c9d([0x2e]));if(0x3!=_0x453ddf[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x50a2ec(_0x453ddf[0x1]);function _0x50a2ec(_0xd3bce7){const _0x21c1a5=_0x162468(_0xd3bce7);return _0x21c1a5&&_0x499ab4()?_0x21c1a5:null;function _0x499ab4(){const _0x110b7f=_0x21c1a5[_0xc69c9d([0x6a,0x74,0x69])],_0x3edb5d=window[_0xc69c9d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x110b7f[_0xc69c9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x110b7f[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3766dd={..._0x21c1a5,[_0xc69c9d([0x6a,0x74,0x69])]:_0x110b7f[_0xc69c9d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x110b7f[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3766dd[_0xc69c9d([0x76,0x63])],_0x21ed29(_0x3766dd)==_0x3edb5d;}}}async function _0x8cf9e6(){let _0x300d65=!0x0;try{const _0x1ea7ea=_0xda91bf[_0xc69c9d([0x73,0x70,0x6c,0x69,0x74])](_0xc69c9d([0x2e])),[_0x59b1f8,_0x14b946,_0x2888df]=_0x1ea7ea;return _0x497553(_0x59b1f8),await _0x259550(_0x59b1f8,_0x14b946,_0x2888df),_0x300d65;}catch{return!0x1;}function _0x497553(_0x268a08){const _0x3199a0=_0x162468(_0x268a08);_0x3199a0&&_0x3199a0[_0xc69c9d([0x61,0x6c,0x67])]==_0xc69c9d([0x45,0x53,0x32,0x35,0x36])||(_0x300d65=!0x1);}async function _0x259550(_0x2a36b2,_0x2c2d60,_0x2c9fa2){const _0x22dd22=window[_0xc69c9d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xc69c9d([0x66,0x72,0x6f,0x6d])](_0x567751(_0x2c9fa2),_0x3cda88=>_0x3cda88[_0xc69c9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x494a2c=new window[(_0xc69c9d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xc69c9d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a36b2+_0xc69c9d([0x2e])+_0x2c2d60),_0x361188=window[_0xc69c9d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xc69c9d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x361188)return;const _0x28e67c=await _0x361188[_0xc69c9d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xc69c9d([0x6a,0x77,0x6b]),_0x4a9257,{[_0xc69c9d([0x6e,0x61,0x6d,0x65])]:_0xc69c9d([0x45,0x43,0x44,0x53,0x41]),[_0xc69c9d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xc69c9d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xc69c9d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x361188[_0xc69c9d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xc69c9d([0x6e,0x61,0x6d,0x65])]:_0xc69c9d([0x45,0x43,0x44,0x53,0x41]),[_0xc69c9d([0x68,0x61,0x73,0x68])]:{[_0xc69c9d([0x6e,0x61,0x6d,0x65])]:_0xc69c9d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x28e67c,_0x22dd22,_0x494a2c)||(_0x300d65=!0x1);}}function _0x162468(_0x29e9a4){return _0x29e9a4[_0xc69c9d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xc69c9d([0x65,0x79]))?JSON[_0xc69c9d([0x70,0x61,0x72,0x73,0x65])](_0x567751(_0x29e9a4)):null;}function _0x567751(_0x4258da){return window[_0xc69c9d([0x61,0x74,0x6f,0x62])](_0x4258da[_0xc69c9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xc69c9d([0x2b]))[_0xc69c9d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xc69c9d([0x2f])));}function _0x21ed29(_0x54c49){let _0x463881=0x1505;function _0x3cc1cb(_0x1bd440){for(let _0x202234=0x0;_0x202234<_0x1bd440[_0xc69c9d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x202234++){const _0x3d3209=_0x1bd440[_0xc69c9d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x202234);_0x463881=(_0x463881<<0x5)+_0x463881+_0x3d3209,_0x463881&=_0x463881;}}function _0x5c3860(_0x330f5e){Array[_0xc69c9d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x330f5e)?_0x330f5e[_0xc69c9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x5c3860):_0x330f5e&&typeof _0x330f5e==_0xc69c9d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xc69c9d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x330f5e)[_0xc69c9d([0x73,0x6f,0x72,0x74])]()[_0xc69c9d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x33f80d,_0x5173cb])=>{_0x3cc1cb(_0x33f80d),_0x5c3860(_0x5173cb);}):_0x3cc1cb(window[_0xc69c9d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x330f5e));}return _0x5c3860(_0x54c49),_0x463881>>>0x0;}function _0x5e0ce8(_0x46c67c){return _0x46c67c[_0xc69c9d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xc69c9d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xc69c9d([0x30]));}function _0x2e000c(_0x2661cb){return _0x2661cb[_0xc69c9d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xc69c9d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xc69c9d([0x6a,0x6f,0x69,0x6e])]('');}function _0x18f59d(){}function _0xc69c9d(_0x49c2e7){return _0x49c2e7['map'](_0x2340ff=>String['fromCharCode'](_0x2340ff))['join']('');}_0x5a590f(await _0x22920a());}(this);}['_moveSelectionToFootnoteDefinition'](_0x16b8a5){const {plugins:_0x14df24,editing:_0x53b94c,model:_0x483c91}=this['editor'],_0x4a219b=_0x14df24['get'](c)['getFootnote'](_0x16b8a5);return!!_0x4a219b&&(_0x483c91['change'](_0x1a7491=>{_0x1a7491['setSelection'](_0x1a7491['createPositionAt'](_0x4a219b['definition'],'end'));}),_0x53b94c['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x9b3bb9){const {plugins:_0x1e7d36,editing:_0x114e7a,model:_0x1c376e}=this['editor'],_0x2f878c=_0x1e7d36['get'](c)['getFootnote'](_0x9b3bb9);return!!_0x2f878c&&(_0x1c376e['change'](_0x488707=>{_0x488707['setSelection'](_0x2f878c['reference'],'on');}),_0x114e7a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x5f4bd6}=this['editor']['model'],_0x40d642=this['editor']['config']['get']('footnotes.multiBlock');_0x5f4bd6['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x5f4bd6['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x5f4bd6['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x40d642?_0x5f4bd6['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x5f4bd6['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x5f4bd6['addChildCheck'](_0x321bc6=>{for(const _0x4fa7b1 of _0x321bc6)if('footnoteDefinition'===_0x4fa7b1['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xd696f4}=this,{conversion:_0x5f4a88,editing:_0x3c287f}=_0xd696f4,{t:t}=_0xd696f4['locale'];_0x5f4a88['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x216725,{writer:_0x4dba51,consumable:_0x136e01})=>{const _0x1ed375=_0x216725['getChild'](0x0);if(!_0x1ed375||!_0x1ed375['is']('element','a'))return null;const _0x126a30=_0x1ed375['getAttribute']('href')||'';if(!_0x126a30['startsWith']('#'))return null;const _0xb3ca2e=_0x126a30['replace'](/^#/,'');if(!_0xb3ca2e)return null;_0x136e01['consume'](_0x1ed375,{'name':!0x0,'attributes':['href']});for(const {item:_0x434859}of _0x3c287f['view']['createRangeIn'](_0x1ed375))_0x434859['is']('$textProxy')?_0x136e01['consume'](_0x434859['textNode'],{'name':!0x0}):_0x434859['is']('element')&&_0x136e01['consume'](_0x434859,{'name':!0x0});return _0x4dba51['createElement']('footnoteRef',{'footnoteId':_0xb3ca2e});}}),_0x5f4a88['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x241eb2,{writer:_0x684927})=>D(_0x241eb2,_0x684927)}),_0x5f4a88['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x51d4e8,{writer:_0x1916c8})=>{const _0x1afbb4=_0x51d4e8['getAttribute']('footnoteCounter');return _0x21d062(D(_0x51d4e8,_0x1916c8),_0x1916c8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1afbb4)});}});}['_defineDefinitionsConverters'](){const {editor:_0x560cf8}=this,{t:t}=_0x560cf8['locale'],{conversion:_0x441ce1}=_0x560cf8;_0x441ce1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x441ce1['for']('upcast')['add'](_0x4e02b0=>{_0x4e02b0['on']('element:ol',(_0x136384,_0x5dc1cb,_0x546db1)=>{const _0x229d1a=_0x5dc1cb['viewItem'];if(!_0x229d1a['hasClass']('footnotes-list')||!_0x5dc1cb['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x546db1['consumable']['consume'](_0x229d1a,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x399b9b,modelCursor:_0x567a7c}=_0x546db1['convertChildren'](_0x5dc1cb['viewItem'],_0x5dc1cb['modelCursor']);_0x5dc1cb['modelRange']=_0x399b9b,_0x5dc1cb['modelCursor']=_0x567a7c;}),_0x4e02b0['on']('element:hr',(_0x17e58b,_0x1519b0,_0x25c560)=>{const _0x1c1a9b=_0x1519b0['viewItem'];_0x1c1a9b['hasClass']('footnotes-divider')&&_0x1519b0['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x25c560['consumable']['consume'](_0x1c1a9b,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x441ce1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x11ee40,{writer:_0x23289c})=>v(_0x23289c)}),_0x441ce1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x16636f,{writer:_0xb9cdd7})=>{const _0x571f75=v(_0xb9cdd7,{'data-footnotes-list-label':t('Footnotes')}),_0x40d079=_0x21d062(_0x571f75,_0xb9cdd7,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0xb9cdd7['setCustomProperty']('footnotesDefinitions',!0x0,_0x40d079),_0x40d079;}});}['_defineDefinitionConverters'](){const {editor:_0x3e1d9e}=this,{conversion:_0x32d078,locale:_0x29c587}=_0x3e1d9e,_0x4f0155=_0x3e1d9e['config']['get']('footnotes.multiBlock');_0x32d078['for']('upcast')['add'](_0x4ccc02=>{_0x4ccc02['on']('element:li',(_0x35f2ce,_0x312682,_0xc005d0)=>{const _0x294e69=_0x312682['viewItem'];if(!_0x294e69['hasClass']('footnote-definition')||!_0x294e69['getAttribute']('id'))return;const _0x572001=_0x294e69['parent'];if(!_0x572001['is']('element','ol')||!_0x572001['hasClass']('footnotes-list'))return;if(!_0xc005d0['consumable']['test'](_0x294e69,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4e422f=_0xc005d0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x294e69['getAttribute']('id')});if(!_0xc005d0['safeInsert'](_0x4e422f,_0x312682['modelCursor']))return;_0xc005d0['consumable']['consume'](_0x294e69,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x80f7fd=Array['from'](_0x294e69['getChildren']())['find'](_0x56fa00=>_0x56fa00['is']('element')&&_0x56fa00['hasClass']('footnote-content'));for(const _0x2f1ebc of _0x294e69['getChildren']())_0x2f1ebc['is']('element')&&(_0xc005d0['consumable']['consume'](_0x2f1ebc,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0xc005d0['consumable']['consume'](_0x2f1ebc,{'name':!0x0,'classes':'footnote-content'}));if(_0x80f7fd){if(_0x4f0155)_0xc005d0['convertChildren'](_0x80f7fd,_0x4e422f);else{const _0xb318cf=_0xc005d0['writer']['createElement']('footnoteInlineContent');_0xc005d0['writer']['insert'](_0xb318cf,_0x4e422f),_0xc005d0['convertChildren'](_0x80f7fd,_0xb318cf);}}_0xc005d0['updateConversionResult'](_0x4e422f,_0x312682);});}),_0x32d078['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x10c98a,{writer:_0x5caec5})=>b(_0x10c98a,_0x5caec5,_0x29c587,{'dataPipeline':!0x0})}),_0x32d078['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4252e8,{writer:_0x509fe7})=>b(_0x4252e8,_0x509fe7,_0x29c587)});}['_defineBogusParagraphConverters'](){const {editor:_0xd772e3}=this,{conversion:_0x37580e}=_0xd772e3;_0xd772e3['config']['get']('footnotes.multiBlock')?(_0x37580e['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x37580e['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0xd772e3['model']['document'],'change:data',()=>{!function(_0x41e179,_0x3cd2b7){const _0x73730f=_0x41e179['document']['differ'],_0x258736=new Set();for(const _0x54ef28 of _0x73730f['getChanges']()){const _0x3a8fc7='attribute'==_0x54ef28['type']?_0x54ef28['range']['start']['parent']:_0x54ef28['position']['parent'];_0x3a8fc7['is']('element','footnoteDefinition')&&_0x258736['add'](_0x3a8fc7);}for(const _0xbebeb2 of _0x258736['values']()){const _0x1a42da=Array['from'](_0xbebeb2['getChildren']())['filter'](_0x57741c=>g(_0x57741c,_0x3cd2b7['mapper']));for(const _0x3d8f05 of _0x1a42da)_0x3cd2b7['reconvertItem'](_0x3d8f05);}}(_0xd772e3['model'],_0xd772e3['editing']);})):(_0x37580e['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x37580e['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x24719a,{writer:_0x3abfdf})=>{const _0x4d88fd=_0x3abfdf['createContainerElement']('span');return _0x3abfdf['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4d88fd),_0x4d88fd;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5d4b2d}=this,{editing:_0x225d5c,t:t}=_0x5d4b2d,_0x20c632=_0x5d4b2d['model']['document']['selection'];_0x5d4b2d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5d4b2d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x225d5c['view']['document'],'enter',(_0x180187,_0x167475)=>{const _0x53d30f=function(_0x50f9d5){const _0x2e1d68=_0x50f9d5['getSelectedElement']();if(_0x2e1d68?.['is']('element','footnoteRef'))return _0x2e1d68;return null;}(_0x20c632);if(_0x53d30f){const _0x331e68=_0x53d30f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x331e68),_0x167475['preventDefault'](),_0x180187['stop']();}},{'context':_0x31737});}['_defineClickHandlers'](){const {editor:_0x4e85eb}=this,{editing:_0x51f9bf}=_0x4e85eb;_0x4e85eb['editing']['view']['addObserver'](_0x37ccb5),_0x4e85eb['editing']['view']['addObserver'](_0x288baf);let _0x1b90c9=!0x1;this['listenTo'](_0x51f9bf['view']['document'],'pointerdown',(_0x48af19,_0x4fc071)=>{const {target:_0x568dbc}=_0x4fc071,_0x5118c6=_0x51f9bf['view']['document']['selection'];_0x1b90c9=!!(_0x568dbc?.['is']('element','a')&&_0x568dbc['parent']?.['is']('element','sup')&&_0x568dbc['parent']['hasClass']('footnote'))&&_0x5118c6['getSelectedElement']()===_0x568dbc['parent'];},{'priority':'high'}),this['listenTo'](_0x51f9bf['view']['document'],'click',(_0xa6e30,_0x23a7a8)=>{const {target:_0x3fc085}=_0x23a7a8;if(!_0x3fc085?.['is']('element','a'))return;if(_0x3fc085['parent']?.['is']('element','sup')&&_0x3fc085['parent']['hasClass']('footnote')&&!_0x1b90c9)return void _0x23a7a8['preventDefault']();let _0x352e42=_0x3fc085['getAttribute']('href');if(!_0x352e42?.['startsWith']('#'))return;_0x352e42=_0x352e42['slice'](0x1);let _0x3214c9=!0x1;(_0x352e42['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x352e42['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x352e42))&&(_0x3214c9=!0x0),_0x3214c9&&(_0x23a7a8['preventDefault'](),_0xa6e30['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x47c1cf}={}){return(_0x32e88e,{writer:_0x3598f3})=>{if(!p(_0x32e88e))return null;if(!_0x47c1cf)return _0x3598f3['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5e5094=_0x3598f3['createContainerElement']('p');return _0x3598f3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5e5094),_0x5e5094;};}function p(_0x3c089b){const {parent:_0x263022}=_0x3c089b;if(!_0x263022?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x263022['childCount'])return!0x1;for(const _0x2e968b of _0x3c089b['getAttributeKeys']())if(!_0x2e968b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2e968b)return!0x1;return!0x0;}function g(_0x540875,_0x1845b8){if(!_0x540875['is']('element','paragraph'))return!0x1;const _0x2b89bb=_0x1845b8['toViewElement'](_0x540875);return!!_0x2b89bb&&p(_0x540875)!==_0x2b89bb['is']('element','span');}function $(_0xb559f9){return _0x31737(_0xb559f9)&&_0xb559f9['is']('containerElement')&&!!_0xb559f9['getCustomProperty']('footnotesDefinitions');}function v(_0x5a4351,_0x1bdae7={}){const _0x1d0320=_0x5a4351['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2a3dd6=_0x5a4351['createContainerElement']('ol',{'class':'footnotes-list'},_0x5a4351['createSlot']());return _0x5a4351['createContainerElement']('div',{'class':'footnotes',..._0x1bdae7},[_0x1d0320,_0x2a3dd6]);}function D(_0x57e73f,_0x304df8){const _0x45371c=_0x57e73f['getAttribute']('footnoteId'),_0x1712c8=_0x57e73f['getAttribute']('footnoteCounter'),_0x155ca4=_0x304df8['createUIElement']('a',{'href':'#'+_0x45371c},function(_0x1a4051){const _0x2c71a8=this['toDomElement'](_0x1a4051);return _0x2c71a8['textContent']=_0x1712c8,_0x2c71a8;}),_0x3c6b2e=_0x304df8['createContainerElement']('sup',{'id':'ref-'+_0x45371c,'class':'footnote'},[_0x155ca4]);return _0x3c6b2e['getFillerOffset']=()=>null,_0x3c6b2e;}function b(_0x2e9e28,_0x31c16d,_0x6446e3,{dataPipeline:_0x2eb1c7}={}){const {t:t}=_0x6446e3,_0x35f08f=_0x2e9e28['getAttribute']('footnoteId'),_0x5e8062=_0x31c16d['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x35f08f},function(_0xde23e9){const _0x594bec=this['toDomElement'](_0xde23e9);return _0x594bec['innerText']='^',_0x594bec;}),_0xf81f09=_0x2eb1c7?_0x31c16d['createContainerElement']('div',{'class':'footnote-content'}):_0x4cc514(_0x31c16d['createEditableElement']('div',{'class':'footnote-content'}),_0x31c16d,{'label':t('Footnote\x20content.')});return _0x31c16d['insert'](_0x31c16d['createPositionAt'](_0xf81f09,0x0),_0x31c16d['createSlot']()),_0x31c16d['createContainerElement']('li',{'class':'footnote-definition','id':_0x35f08f},[_0x5e8062,_0xf81f09]);}class e extends _0xa14e92{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x47992d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x905f0}=this,{plugins:_0x558c43,model:_0x46e06e}=_0x905f0,_0x4873a6=_0x558c43['get'](_0x47992d),_0x28f5d8=_0x558c43['get'](c);this['listenTo'](_0x4873a6,'outputTransformation',(_0x117f4f,_0x1b0f66)=>{const _0x584b78=f(_0x46e06e['createRangeIn'](_0x1b0f66['content']));if(!_0x584b78['length'])return;const _0x133363=_0x28f5d8['getFootnotes'](),_0x2ca7b5=_0x584b78['reduce']((_0x27a6f9,_0x55f7c1)=>{const _0x105a49=_0x133363['find'](_0x496e83=>_0x496e83['id']===_0x55f7c1);if(_0x105a49){const _0x43ab0c=_0x905f0['data']['toView'](_0x105a49['definition'],{'isClipboardPipeline':!0x0}),_0x32b2d1=_0x905f0['data']['htmlProcessor']['toData'](_0x43ab0c);_0x27a6f9[_0x105a49['id']]=_0x32b2d1;}return _0x27a6f9;},Object['create'](null));_0x1b0f66['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x2ca7b5));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5721e6}=this,{model:_0x4b0511,plugins:_0x584609}=_0x5721e6,{view:_0xf78046}=_0x5721e6['editing'],_0x30deb6=_0x584609['get'](_0x47992d),_0x53b1dd=_0x584609['get'](c);let _0x3e1f78=null;this['listenTo'](_0xf78046['document'],'clipboardInput',(_0x5efd73,_0x4d53cb)=>{const _0x44e3da=_0x4d53cb['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x3e1f78=_0x44e3da?JSON['parse'](_0x44e3da):null;}),this['listenTo'](_0x30deb6,'contentInsertion',(_0x4a4d46,_0x142b88)=>{const _0x5f59f3=_0x142b88['sourceEditorId']===this['editor']['id'];_0x5f59f3&&'drop'===_0x142b88['method']||_0x4b0511['change'](_0x5b6f16=>{let _0x3440fa=_0x53b1dd['getFootnotesDefinitionsObjectElement']();const _0x39747e=!!_0x3440fa&&Array['from'](_0x4b0511['document']['selection']['getSelectedBlocks']())['includes'](_0x3440fa);if((_0x3440fa&&!_0x39747e||!_0x3440fa&&!_0x3e1f78)&&function(_0x4a1299,_0x328998){const _0x3ca264=[];for(const {item:_0xe4df85}of _0x4a1299['createRangeIn'](_0x328998))_0xe4df85['is']('element','footnotesDefinitions')&&_0x3ca264['push'](_0xe4df85);for(const _0x11d8a of _0x3ca264)_0x4a1299['remove'](_0x11d8a);}(_0x5b6f16,_0x142b88['content']),!_0x3e1f78)return;const {selection:_0x3f8e6a}=_0x4b0511['document'],_0x3d0d42=_0x3f8e6a['getFirstRange']()['root'];_0x3440fa&&!_0x39747e||(_0x3440fa=function(_0x1bd353,_0xebb24f){for(const {item:_0x2cad86}of _0x1bd353['createRangeIn'](_0xebb24f))if(_0x2cad86['is']('element','footnotesDefinitions'))return _0x2cad86;return null;}(_0x5b6f16,_0x142b88['content']),_0x3440fa||=_0x53b1dd['_insertEmptyFootnotesDefinitionsContainer'](_0x5b6f16,_0x3d0d42));const _0xebe89b=Array['from'](_0x3f8e6a['getRanges']())['flatMap'](f),_0x2c1d19=function(_0x5e167c,_0x32b662,_0xf9d11a){const _0x2716b4=Object['create'](null);for(const {item:_0x40f97c}of _0x5e167c['createRangeIn'](_0x32b662))if(_0x40f97c['is']('element','footnoteRef')){const _0x17ecaa=_0x40f97c['getAttribute']('footnoteId');if(!_0xf9d11a(_0x17ecaa))continue;_0x2716b4[_0x17ecaa]||(_0x2716b4[_0x17ecaa]=_0x1cfef1()),_0x5e167c['setAttribute']('footnoteId',_0x2716b4[_0x17ecaa],_0x40f97c);}return _0x2716b4;}(_0x5b6f16,_0x142b88['content'],_0x39b64e=>{if(!_0x5f59f3)return!0x0;return!!_0x53b1dd['getFootnote'](_0x39b64e)&&!_0xebe89b['includes'](_0x39b64e);});for(const [_0x24dfc6,_0x54e465]of Object['entries'](_0x3e1f78)){const _0x1b0288=_0x2c1d19[_0x24dfc6]||_0x24dfc6,_0x11c297=_0x5b6f16['createElement']('footnoteDefinition',{'footnoteId':_0x1b0288}),_0x413c47=_0x5721e6['data']['htmlProcessor']['toView'](_0x54e465),_0x24d0da=_0x5721e6['data']['toModel'](_0x413c47,_0x11c297);_0x5b6f16['append'](_0x24d0da,_0x11c297),_0x5b6f16['insert'](_0x11c297,_0x3440fa,'end');}_0x3e1f78=null;});});}}function f(_0x50c148){const _0xe9474b=new Set();for(const {item:_0x50d4cc}of _0x50c148)_0x50d4cc['is']('element','footnoteRef')&&_0xe9474b['add'](_0x50d4cc['getAttribute']('footnoteId'));return Array['from'](_0xe9474b);}class i extends _0xa14e92{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xc4b79d}=this,{componentFactory:_0x70cbf7}=_0xc4b79d['ui'];_0x70cbf7['add']('insertFootnote',x(_0xc4b79d,_0x14b9cc)),_0x70cbf7['add']('menuBar:insertFootnote',x(_0xc4b79d,_0x422a2b)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x32e667=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5c7dad;for(const _0x40fdf1 in _0x32e667){const _0x5e05e4=_0x40fdf1,_0x5f1df6=_0x32e667[_0x5e05e4];if('footnotesLicenseKeyValid'==_0x5f1df6||'footnotesLicenseKeyInvalid'==_0x5f1df6||'footnotesLicenseKeyExpired'==_0x5f1df6||'footnotesLicenseKeyDomainLimit'==_0x5f1df6||'footnotesLicenseKeyNotAllowed'==_0x5f1df6||'footnotesLicenseKeyEvaluationLimit'==_0x5f1df6||'footnotesLicenseKeyTrialLimit'==_0x5f1df6||'footnotesLicenseKeyUsageLimit'==_0x5f1df6){delete _0x32e667[_0x5e05e4],_0x5c7dad=_0x5f1df6,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5c7dad&&_0x32e667['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5c7dad&&_0x32e667['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5c7dad&&_0x32e667['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5c7dad&&_0x32e667['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5c7dad&&_0x32e667['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyTrialLimit'==_0x5c7dad&&_0x32e667['_showLicenseError']('trialLimit'),'footnotesLicenseKeyUsageLimit'==_0x5c7dad&&_0x32e667['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function x(_0x106127,_0x33994e){const _0x266830=_0x106127['commands']['get']('insertFootnote');return _0xee394d=>{const {t:t}=_0xee394d,_0x4f872b=new _0x33994e(_0xee394d),_0xbe7a41=_0x4f872b instanceof _0x422a2b;return _0x4f872b['bind']('isEnabled')['to'](_0x266830,'isEnabled'),_0x4f872b['set']({'label':t(_0xbe7a41?'Footnote':'Insert\x20footnote'),'icon':_0x36ede8,'tooltip':!0x0}),_0x4f872b['on']('execute',()=>{_0x266830['execute'](),_0x106127['editing']['view']['focus']();}),_0x4f872b;};}class lt extends _0xa14e92{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Q=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0xf445d6{['refresh'](){const {editor:_0x509011}=this,_0x41dbc0=_0x509011['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x41dbc0,this['value']=_0x41dbc0?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x22a1d9}){const {editor:_0x317300}=this,_0x185d6b=_0x317300['plugins']['get'](c),_0x5025e2=_0x185d6b['getFootnotesDefinitionsObjectElement']();_0x5025e2&&Q['includes'](_0x22a1d9)&&_0x317300['model']['change'](_0x1690a9=>{_0x1690a9['setAttribute']('footnotesListStyle',_0x22a1d9,_0x5025e2),_0x185d6b['_updateFootnotesCounters'](_0x1690a9);});}}class C extends _0xf445d6{['refresh'](){const {editor:_0x41cf17}=this,_0x44c27a=_0x41cf17['plugins']['get'](c)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x44c27a,this['value']=_0x44c27a?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x259f18}){const {editor:_0x51ba3b}=this,_0x4c9c6f=_0x51ba3b['plugins']['get'](c),_0x2d5b2a=_0x4c9c6f['getFootnotesDefinitionsObjectElement']();_0x2d5b2a&&Number['isInteger'](_0x259f18)&&_0x51ba3b['model']['change'](_0x48f5a6=>{_0x48f5a6['setAttribute']('footnotesListStart',_0x259f18,_0x2d5b2a),_0x4c9c6f['_updateFootnotesCounters'](_0x48f5a6);});}}class P extends _0xa14e92{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15410c}=this;_0x15410c['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x15410c['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x15410c['commands']['add']('footnotesStyle',new S(_0x15410c)),_0x15410c['commands']['add']('footnotesStart',new C(_0x15410c)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x470a0e}=this,{schema:_0x266f15}=_0x470a0e['model'];_0x266f15['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x25ed32}=this,{conversion:_0x380b39,model:_0x2b1e5a}=_0x25ed32,{schema:_0x475eee}=_0x2b1e5a;_0x380b39['for']('upcast')['add'](_0x239afc=>{_0x239afc['on']('element:ol',(_0x354011,_0x29c23a,_0x2ef6ba)=>{const _0x5b1372=_0x29c23a['viewItem'],_0x1d67f8=_0x29c23a['modelCursor']?.['parent'];_0x5b1372['hasClass']('footnotes-list')&&_0x1d67f8?.['is']('element','footnotesDefinitions')&&(function(_0x4c9aaa,_0x44cb64,_0x430a5e,_0x32edff){if(!_0x32edff['checkAttribute'](_0x44cb64,'footnotesListStart'))return;let _0xdeddfe=0x1;const _0x19e25a=_0x430a5e['consumable']['consume'](_0x4c9aaa,{'attributes':'start'});if(_0x19e25a){const _0x8b3d1c=Number['parseInt'](_0x4c9aaa['getAttribute']('start'),0xa);Number['isNaN'](_0x8b3d1c)||(_0xdeddfe=_0x8b3d1c);}!_0x19e25a&&_0x44cb64['hasAttribute']('footnotesListStart')||_0x430a5e['writer']['setAttribute']('footnotesListStart',_0xdeddfe,_0x44cb64);}(_0x5b1372,_0x1d67f8,_0x2ef6ba,_0x475eee),function(_0x1c06d4,_0x35df36,_0x964135,_0x46fcbd){if(!_0x46fcbd['checkAttribute'](_0x35df36,'footnotesListStyle'))return;let _0x277b1a='decimal',_0x7fc932=!0x1;if(_0x964135['consumable']['consume'](_0x1c06d4,{'attributes':'type'})){const _0x309140={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x1c06d4['getAttribute']('type')];_0x309140&&(_0x277b1a=_0x309140),_0x7fc932=!0x0;}_0x964135['consumable']['consume'](_0x1c06d4,{'styles':'list-style-type'})&&(_0x277b1a=_0x1c06d4['getStyle']('list-style-type'),_0x7fc932=!0x0),!_0x7fc932&&_0x35df36['hasAttribute']('footnotesListStyle')||_0x964135['writer']['setAttribute']('footnotesListStyle',_0x277b1a,_0x35df36);}(_0x5b1372,_0x1d67f8,_0x2ef6ba,_0x475eee));});}),_0x380b39['for']('downcast')['add'](_0x2b2d18=>{_0x2b2d18['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x107bbc,_0x19b761,_0xf876b4)=>{if(!_0xf876b4['consumable']['consume'](_0x19b761['item'],_0x107bbc['name']))return;const _0x59fd95=M(_0x19b761['item'],_0xf876b4['mapper']),{attributeNewValue:_0x54f76d}=_0x19b761;null==_0x54f76d||0x1===_0x54f76d?_0xf876b4['writer']['removeAttribute']('start',_0x59fd95):_0xf876b4['writer']['setAttribute']('start',String(_0x54f76d),_0x59fd95);}),_0x2b2d18['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x1b780d,_0x57396e,_0x5227a0)=>{if(!_0x5227a0['consumable']['consume'](_0x57396e['item'],_0x1b780d['name']))return;const _0xa233fc=M(_0x57396e['item'],_0x5227a0['mapper']),{attributeNewValue:_0x28e4fa}=_0x57396e;_0x28e4fa&&'decimal'!==_0x28e4fa?_0x5227a0['writer']['setStyle']('list-style-type',_0x28e4fa,_0xa233fc):_0x5227a0['writer']['removeStyle']('list-style-type',_0xa233fc);});});}['_definePostfixer'](){const {editor:_0x4047e0}=this,{model:_0x5be9a6}=_0x4047e0,_0xea5feb=_0x4047e0['plugins']['get'](c),_0x5afe10=this['_getDefaultListStyle'](),_0x2bd449=this['_getDefaultStartIndex']();_0x5be9a6['document']['registerPostFixer'](_0x27d13b=>{const _0x3d7ff6=_0x5be9a6['document']['differ']['getChanges']();let _0x5b01d1=!0x1;for(const _0x10e3dd of _0x3d7ff6){if('insert'!==_0x10e3dd['type']||'$text'===_0x10e3dd['name'])continue;const _0x2b0193=_0x5be9a6['createRangeOn'](_0x10e3dd['position']['nodeAfter']);for(const _0x4a5145 of _0x2b0193['getItems']())_0x4a5145['is']('element','footnotesDefinitions')&&(!_0x4a5145['hasAttribute']('footnotesListStart')&&_0x5be9a6['schema']['checkAttribute'](_0x4a5145,'footnotesListStart')&&(_0x27d13b['setAttribute']('footnotesListStart',_0x2bd449,_0x4a5145),_0x5b01d1=!0x0),!_0x4a5145['hasAttribute']('footnotesListStyle')&&_0x5be9a6['schema']['checkAttribute'](_0x4a5145,'footnotesListStyle')&&(_0x27d13b['setAttribute']('footnotesListStyle',_0x5afe10,_0x4a5145),_0x5b01d1=!0x0));}return _0x5b01d1&&_0xea5feb['_updateFootnotesCounters'](_0x27d13b),_0x5b01d1;});}['_defineFormatter'](){const {editor:_0x25b3b2}=this;_0x25b3b2['plugins']['get'](c)['setFootnoteFormatter'](_0x5bf2a9=>this['_formatFootnoteListValue'](_0x5bf2a9));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5d13b9,value:_0x321997,digits:_0x53a12c}){const _0x7b6fb7=_0x5d13b9['getAttribute']('footnotesListStyle'),_0x38c745=_0x5d13b9['getAttribute']('footnotesListStart'),_0x410336=Math['floor'](_0x321997)+(_0x38c745??0x1)-0x1;switch(_0x7b6fb7){case'decimal-leading-zero':return function(_0x4fea99,_0x405246){return String(_0x4fea99)['padStart'](_0x405246,'0');}(_0x410336,Math['max'](0x2,_0x53a12c));case'lower-alpha':case'lower-latin':return N(_0x410336,!0x1);case'upper-alpha':case'upper-latin':return N(_0x410336,!0x0);case'lower-roman':return X(_0x410336,!0x1);case'upper-roman':return X(_0x410336,!0x0);default:return String(_0x410336);}}}function M(_0x5ae933,_0x16b8c0){const _0x470387=_0x16b8c0['toViewElement'](_0x5ae933);return Array['from'](_0x470387['getChildren']())['find'](_0x5be376=>_0x5be376['is']('element','ol')&&_0x5be376['hasClass']('footnotes-list'));}function N(_0x397ffc,_0x490938){let _0xd46d69='',_0xfed71e=_0x397ffc;for(;_0xfed71e>0x0;){const _0x2e5382=(_0xfed71e-0x1)%0x1a;_0xd46d69=String['fromCharCode'](0x61+_0x2e5382)+_0xd46d69,_0xfed71e=Math['floor']((_0xfed71e-0x1)/0x1a);}return _0x490938?_0xd46d69['toUpperCase']():_0xd46d69;}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(_0x3ae99c,_0x3175bb){let _0x5d3bf4='',_0x54631f=_0x3ae99c;for(const {value:_0x80373e,numeral:_0x14b3b2}of V)for(;_0x54631f>=_0x80373e;)_0x5d3bf4+=_0x14b3b2,_0x54631f-=_0x80373e;return _0x3175bb?_0x5d3bf4:_0x5d3bf4['toLowerCase']();}class R extends _0x4feb61{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x1da79a();['focusCycler'];constructor(_0x17cd76,{styleButtonViews:_0x51ff0e,styleGridAriaLabel:_0x5f4eba}){super(_0x17cd76),(this['focusCycler']=new _0x4bb811({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x51ff0e,_0x5f4eba),[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 _0x1ca74d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1ca74d['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 _0x313bfc=_0x41c08f=>_0x41c08f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x313bfc),this['keystrokes']['set']('arrowleft',_0x313bfc),this['keystrokes']['set']('arrowup',_0x313bfc),this['keystrokes']['set']('arrowdown',_0x313bfc);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0xb41da,_0xffc19){const _0x57d58f=new _0x4feb61(this['locale']);return _0x57d58f['children']=_0x57d58f['createCollection'](),_0x57d58f['children']['addMany'](_0xb41da),_0x57d58f['setTemplate']({'tag':'div','attributes':{'aria-label':_0xffc19,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x57d58f['children']}),_0x57d58f['children']['delegate']('execute')['to'](this),_0x57d58f['focus']=function(){for(const _0x1de475 of this['children'])if(_0x1de475 instanceof _0x14b9cc&&_0x1de475['isOn'])return void _0x1de475['focus']();this['children']['first']['focus']();},_0x57d58f['focusTracker']=new ot(),_0x57d58f['keystrokes']=new rt(),_0x57d58f['render'](),_0x57d58f['keystrokes']['listenTo'](_0x57d58f['element']),this['children']['add'](_0x57d58f),_0x57d58f;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x854a42=this['_createStartIndexPropertyView'](),_0x1a1879=[_0x854a42],_0x2c0074=new st(this['locale'],_0x1a1879);return _0x2c0074['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x2c0074['buttonView']['bind']('isEnabled')['toMany'](_0x1a1879,'isEnabled',(..._0x10cc79)=>_0x10cc79['some'](_0x31d279=>_0x31d279)),_0x2c0074['buttonView']['on']('change:isEnabled',(_0x16730e,_0x32acb9,_0x256541)=>{_0x256541||(_0x2c0074['isCollapsed']=!0x0);}),this['children']['add'](_0x2c0074),[_0x854a42,_0x2c0074];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x51222b=new it(this['locale'],et);return _0x51222b['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x51222b['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x51222b['fieldView']['on']('input',()=>{const _0x34992a=_0x51222b['fieldView']['element'],_0x3b1092=_0x34992a['valueAsNumber'];Number['isNaN'](_0x3b1092)?_0x51222b['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x34992a['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3b1092}):_0x51222b['errorText']=t(_0x3b1092<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x51222b;}}class j extends _0xa14e92{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x15c9f1,_0x963390];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x15e1c8}=this,{componentFactory:_0x172eb4}=_0x15e1c8['ui'];_0x15e1c8['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x172eb4['add']('footnotesStyle',function(_0x48f5bf){return _0xc5a343=>{const {t:t}=_0xc5a343,_0x113840=_0x48f5bf['commands']['get']('footnotesStyle'),_0x342f28=_0x1cbca5(_0xc5a343),{buttonView:_0x311b4f}=_0x342f28;return _0x342f28['class']='ck-footnotes-styles-dropdown',_0x342f28['bind']('isEnabled')['to'](_0x113840,'isEnabled'),_0x311b4f['set']({'label':t('Footnotes\x20style'),'icon':_0x36ede8,'tooltip':!0x0}),_0x342f28['once']('change:isOpen',()=>{const _0xaadd4c=function({editor:_0x4aea08,dropdownView:_0x29f67e}){const {t:t}=_0x4aea08['locale'],_0xad8335=t('Footnotes\x20definitions\x20styles'),_0x529ab6=function(_0x42a02d){const t=_0x42a02d['locale']['t'],_0x25e13f=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x37983c},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1ad2f4},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4552ae},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x290142},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x8a1070},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x2026ef}];return _0x25e13f['map'](function(_0x4f1221){const _0x2e36a0=_0x4f1221['locale'];return({label:_0x5aa256,icon:_0xe628ec,tooltip:_0x116d18,style:_0x47a86c})=>{const _0xbf6ac3=_0x4f1221['commands']['get']('footnotesStyle'),_0x843d9d=new _0x14b9cc(_0x2e36a0);return _0x843d9d['set']({'label':_0x5aa256,'icon':_0xe628ec,'tooltip':_0x116d18}),_0x843d9d['bind']('isOn')['to'](_0xbf6ac3,'value',_0x19a952=>_0x19a952===_0x47a86c),_0x843d9d['bind']('isEnabled')['to'](_0xbf6ac3,'isEnabled'),_0x843d9d['on']('execute',()=>{_0x4f1221['execute']('footnotesStyle',{'value':_0x47a86c}),_0x4f1221['editing']['view']['focus']();}),_0x843d9d;};}(_0x42a02d));}(_0x4aea08),_0x3619ae=new R(_0x4aea08['locale'],{'styleGridAriaLabel':_0xad8335,'styleButtonViews':_0x529ab6});return _0x3619ae['delegate']('execute')['to'](_0x29f67e),_0x3619ae['on']('footnotesListStart',(_0x3219cc,_0xb76247)=>{_0x4aea08['execute']('footnotesStart',{'value':_0xb76247['startIndex']});}),_0x3619ae;}({'editor':_0x48f5bf,'dropdownView':_0x342f28});_0x342f28['panelView']['children']['add'](_0xaadd4c);}),_0x342f28;};}(_0x15e1c8));}['afterInit'](){const {editor:_0x453e74}=this,{t:t}=_0x453e74['locale'],_0x142f62=_0x453e74['plugins']['get'](_0x963390),{defaultPositions:_0x152a62}=_0x53e6cb;_0x142f62['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x453e74['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x4eb38f=>{let _0x2ebbe0=_0x4eb38f['getFirstPosition']()?.['parent'];return _0x2ebbe0?.['is']('$text')&&(_0x2ebbe0=_0x2ebbe0['parent']),_0x2ebbe0?.['is']('element')?_0x2ebbe0['findAncestor']($):null;},'positions':[_0x152a62['southArrowNorth'],_0x152a62['southArrowNorthMiddleWest'],_0x152a62['southArrowNorthMiddleEast'],_0x152a62['southArrowNorthWest'],_0x152a62['southArrowNorthEast'],_0x152a62['northArrowSouth'],_0x152a62['northArrowSouthMiddleWest'],_0x152a62['northArrowSouthMiddleEast'],_0x152a62['northArrowSouthWest'],_0x152a62['northArrowSouthEast'],_0x152a62['viewportStickyNorth']]});}}class ft extends _0xa14e92{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,c as FootnotesTracker,i as FootnotesUI,m as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20251130.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "0.0.0-nightly-
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-
|
|
33
|
-
"ckeditor5": "0.0.0-nightly-
|
|
26
|
+
"@ckeditor/ckeditor5-core": "0.0.0-nightly-20251130.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "0.0.0-nightly-20251130.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "0.0.0-nightly-20251130.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "0.0.0-nightly-20251130.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "0.0.0-nightly-20251130.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "0.0.0-nightly-20251130.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "0.0.0-nightly-20251130.0",
|
|
33
|
+
"ckeditor5": "0.0.0-nightly-20251130.0"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x2d5d85=_0x370c;(function(_0x29e094,_0xb027a4){const _0x1a4abf=_0x370c,_0x36f97a=_0x29e094();while(!![]){try{const _0x710c3f=-parseInt(_0x1a4abf(0xfa))/0x1*(-parseInt(_0x1a4abf(0xe9))/0x2)+parseInt(_0x1a4abf(0xe6))/0x3*(-parseInt(_0x1a4abf(0xea))/0x4)+parseInt(_0x1a4abf(0xfc))/0x5+parseInt(_0x1a4abf(0xef))/0x6+parseInt(_0x1a4abf(0xf2))/0x7+parseInt(_0x1a4abf(0xfe))/0x8*(parseInt(_0x1a4abf(0xff))/0x9)+parseInt(_0x1a4abf(0xdb))/0xa*(-parseInt(_0x1a4abf(0xde))/0xb);if(_0x710c3f===_0xb027a4)break;else _0x36f97a['push'](_0x36f97a['shift']());}catch(_0xddd525){_0x36f97a['push'](_0x36f97a['shift']());}}}(_0x5750,0xe7fde));import{logWarning as _0x1138af,uid as _0x4fc8ea}from'ckeditor5/src/utils.js';function _0x5750(){const _0x39f453=['isBlock','43922406XZQdwC','refresh','get','checkChild','_getPositionToInsertFootnote','end','model','getItems','4017XPgpAq','createElement','insertObject','116738UEdntQ','2572mcyIsw','execute','plugins','isObject','document','10571022qWizNZ','insert-footnote-command-executed-with-invalid-id','length','9675862FFDuBS','FootnotesEditing','editor','getFirstRange','_moveSelectionToFootnoteDefinition','isEnabled','footnoteId','test','11CTUcWh','string','6822785UVJdyf','change','8lPAvGC','5880978blXnoH','footnoteRef','10sRZDaQ','selection'];_0x5750=function(){return _0x39f453;};return _0x5750();}import{Command as _0x2cc38d}from'ckeditor5/src/core.js';function _0x370c(_0x5e0972,_0x1ed2a2){const _0x57507a=_0x5750();return _0x370c=function(_0x370c82,_0x394b39){_0x370c82=_0x370c82-0xdb;let _0xb42e78=_0x57507a[_0x370c82];return _0xb42e78;},_0x370c(_0x5e0972,_0x1ed2a2);}export class InsertFootnoteCommand extends _0x2cc38d{[_0x2d5d85(0xdf)](){const _0x593ce7=_0x2d5d85,_0x18c0a0=this[_0x593ce7(0xf4)][_0x593ce7(0xe4)][_0x593ce7(0xee)][_0x593ce7(0xdc)],_0x368ab5=this[_0x593ce7(0xe2)](_0x18c0a0);this[_0x593ce7(0xf7)]=!!_0x368ab5;}[_0x2d5d85(0xeb)](_0x5a1f03){const _0x2f12b5=_0x2d5d85,{editor:_0x278f5e}=this,{model:_0x5814bc}=_0x278f5e,{selection:_0x29d89d}=_0x5814bc[_0x2f12b5(0xee)],_0x5f0b1c=this[_0x2f12b5(0xe2)](_0x29d89d);if(!_0x5f0b1c)return;const _0x24e535=_0x278f5e[_0x2f12b5(0xec)][_0x2f12b5(0xe0)](_0x2f12b5(0xf3)),_0x3a53f8=_0x5a1f03?.[_0x2f12b5(0xf8)]??_0x4fc8ea();!function(_0x4bd341){const _0x376884=_0x2f12b5;return _0x376884(0xfb)==typeof _0x4bd341&&_0x4bd341[_0x376884(0xf1)]>0x0&&!/\s/[_0x376884(0xf9)](_0x4bd341)&&!/^\d/[_0x376884(0xf9)](_0x4bd341);}(_0x3a53f8)?_0x1138af(_0x2f12b5(0xf0)):(_0x5814bc[_0x2f12b5(0xfd)](_0x2c21c3=>{const _0x1978b5=_0x2f12b5,_0xe74efb=_0x2c21c3[_0x1978b5(0xe7)](_0x1978b5(0x100),{'footnoteId':_0x3a53f8});_0x5814bc[_0x1978b5(0xe8)](_0xe74efb,_0x5f0b1c,null);}),_0x24e535[_0x2f12b5(0xf6)](_0x3a53f8));}[_0x2d5d85(0xe2)](_0x172f10){const _0x2cf317=_0x2d5d85,{model:_0xffd084}=this[_0x2cf317(0xf4)],{schema:_0x4c0964}=_0xffd084,_0x555a62=_0x172f10[_0x2cf317(0xf5)]();for(const _0x299a9e of _0x555a62[_0x2cf317(0xe5)]())if(_0x4c0964[_0x2cf317(0xdd)](_0x299a9e)||_0x4c0964[_0x2cf317(0xed)](_0x299a9e))return null;const _0x5b5338=_0x555a62[_0x2cf317(0xe3)];return _0x4c0964[_0x2cf317(0xe1)](_0x5b5338,_0x2cf317(0x100))?_0x5b5338:null;}}
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x5ec25e}from'ckeditor5/src/core.js';import{isWidget as _0x30506d,toWidget as _0x3da5dc,toWidgetEditable as _0x7016e6}from'ckeditor5/src/widget.js';import{uid as _0x2e43fe}from'ckeditor5/src/utils.js';import{PointerObserver as _0x8ffb56,ClickObserver as _0x47e9a8}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x28f9a1}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x495b31}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x5ec25e{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x28f9a1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x544041}=this;_0x544041['config']['define']('footnotes.multiBlock',!0x0),_0x544041['commands']['add']('insertFootnote',new _0x495b31(_0x544041)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x318ede){const _0x1151da=_0x40dde8([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]),_0x80fdab=0x47a28506,_0x119b2e=0x47a5ff66^_0x80fdab,_0x771e43=window[_0x40dde8([0x44,0x61,0x74,0x65])][_0x40dde8([0x6e,0x6f,0x77])](),_0x273277=_0x318ede[_0x40dde8([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x480521=new window[(_0x40dde8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1976d4=>{_0x273277[_0x40dde8([0x6f,0x6e,0x63,0x65])](_0x40dde8([0x72,0x65,0x61,0x64,0x79]),_0x1976d4);}),_0x31fe1c={[_0x40dde8([0x6b,0x74,0x79])]:_0x40dde8([0x45,0x43]),[_0x40dde8([0x75,0x73,0x65])]:_0x40dde8([0x73,0x69,0x67]),[_0x40dde8([0x63,0x72,0x76])]:_0x40dde8([0x50,0x2d,0x32,0x35,0x36]),[_0x40dde8([0x78])]:_0x40dde8([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]),[_0x40dde8([0x79])]:_0x40dde8([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]),[_0x40dde8([0x61,0x6c,0x67])]:_0x40dde8([0x45,0x53,0x32,0x35,0x36])},_0x13a5f3=_0x273277[_0x40dde8([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x40dde8([0x67,0x65,0x74])](_0x40dde8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x22622f(){let _0x5d7444,_0x3049b2=null,_0x49066e=null;try{if(_0x13a5f3==_0x40dde8([0x47,0x50,0x4c]))return _0x40dde8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5d7444=_0xc88419(),!_0x5d7444)return _0x40dde8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5d7444[_0x40dde8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x49066e=_0x298e1e(_0x5d7444[_0x40dde8([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5d7444[_0x40dde8([0x6a,0x74,0x69])])),await _0x480970()?_0x5a2c9a()?_0x37aa7e()?_0x40dde8([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x542712()?(_0x5d7444[_0x40dde8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40dde8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3049b2=_0x316e68(_0x40dde8([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5d7444[_0x40dde8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x40dde8([0x74,0x72,0x69,0x61,0x6c])&&(_0x3049b2=_0x316e68(_0x40dde8([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4c16d4()):_0x40dde8([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x40dde8([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x40dde8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x40dde8([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x37aa7e(){const _0x32e84c=[_0x40dde8([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x40dde8([0x74,0x72,0x69,0x61,0x6c])][_0x40dde8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5d7444[_0x40dde8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x771e43/0x3e8:0xe10*_0x119b2e;return _0x5d7444[_0x40dde8([0x65,0x78,0x70])]<_0x32e84c;}function _0x5a2c9a(){const _0x3078cc=_0x5d7444[_0x40dde8([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3078cc&&(!!_0x3078cc[_0x40dde8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40dde8([0x2a]))||!!_0x3078cc[_0x40dde8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40dde8([0x46,0x4f,0x4f])));}function _0x542712(){const _0x1c731e=_0x5d7444[_0x40dde8([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1c731e||0x0==_0x1c731e[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2eb6a7}=new URL(window[_0x40dde8([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1c731e[_0x40dde8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2eb6a7))return!0x0;const _0x5def6c=_0x2eb6a7[_0x40dde8([0x73,0x70,0x6c,0x69,0x74])](_0x40dde8([0x2e]));return _0x1c731e[_0x40dde8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x11a0ce=>_0x11a0ce[_0x40dde8([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40dde8([0x2a])))[_0x40dde8([0x6d,0x61,0x70])](_0x33acd4=>_0x33acd4[_0x40dde8([0x73,0x70,0x6c,0x69,0x74])](_0x40dde8([0x2e])))[_0x40dde8([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x123d56=>_0x123d56[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x5def6c[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40dde8([0x6d,0x61,0x70])](_0x1aa05e=>Array(_0x5def6c[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1aa05e[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x40dde8([0x66,0x69,0x6c,0x6c])](_0x1aa05e[0x0]===_0x40dde8([0x2a])?_0x40dde8([0x2a]):'')[_0x40dde8([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1aa05e))[_0x40dde8([0x73,0x6f,0x6d,0x65])](_0x328966=>_0x5def6c[_0x40dde8([0x65,0x76,0x65,0x72,0x79])]((_0x4fe44f,_0x289b72)=>_0x328966[_0x289b72]===_0x4fe44f||_0x328966[_0x289b72]===_0x40dde8([0x2a])));}function _0x4c16d4(){return _0x3049b2&&_0x49066e?new window[(_0x40dde8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x349bda,_0x53677f)=>{_0x3049b2[_0x40dde8([0x74,0x68,0x65,0x6e])](_0x349bda,_0x53677f),_0x49066e[_0x40dde8([0x74,0x68,0x65,0x6e])](_0x34b776=>{_0x34b776!=_0x40dde8([0x56,0x61,0x6c,0x69,0x64])&&_0x349bda(_0x34b776);},_0x53677f);}):_0x3049b2||_0x49066e||_0x40dde8([0x56,0x61,0x6c,0x69,0x64]);}}function _0x298e1e(_0x54818d,_0x4c2013){return new window[(_0x40dde8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x215e01=>{if(_0x45299a())return _0x215e01(_0x40dde8([0x56,0x61,0x6c,0x69,0x64]));_0x2907ab(),_0x273277[_0x40dde8([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x40dde8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x293b2e=!0x1;const _0x3baff7=_0x2e43fe();function _0x1b01c9(_0x3196f8){return!!_0x3196f8&&(typeof _0x3196f8===_0x40dde8([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3196f8===_0x40dde8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3196f8[_0x40dde8([0x74,0x68,0x65,0x6e])]===_0x40dde8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3196f8[_0x40dde8([0x63,0x61,0x74,0x63,0x68])]===_0x40dde8([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3e47ba(_0x857879){_0x53e4f8(_0x857879)[_0x40dde8([0x74,0x68,0x65,0x6e])](_0x2186e2=>{if(!_0x2186e2||_0x2186e2[_0x40dde8([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x40dde8([0x6f,0x6b]))return _0x40dde8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x436065(_0x959a5f(_0x3baff7+_0x4c2013))!=_0x2186e2[_0x40dde8([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x40dde8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x40dde8([0x56,0x61,0x6c,0x69,0x64]);})[_0x40dde8([0x74,0x68,0x65,0x6e])](_0x25317c=>(_0x298424(),_0x25317c),()=>{const _0x57b6af=_0x2cffd8();return null==_0x57b6af?(_0x298424(),_0x40dde8([0x56,0x61,0x6c,0x69,0x64])):_0x40dde8(_0x771e43-_0x57b6af>(0x63ae0106^_0x80fdab)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x40dde8([0x74,0x68,0x65,0x6e])](_0x215e01)[_0x40dde8([0x63,0x61,0x74,0x63,0x68])](()=>{_0x215e01(_0x40dde8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x207d47=0x47946b86^_0x80fdab;function _0x298424(){const _0x5678e6=_0x40dde8([0x6c,0x6c,0x63,0x74,0x2d])+_0x436065(_0x959a5f(_0x54818d)),_0x273892=_0x278aef(_0x436065(window[_0x40dde8([0x4d,0x61,0x74,0x68])][_0x40dde8([0x63,0x65,0x69,0x6c])](_0x771e43/_0x207d47)));window[_0x40dde8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40dde8([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5678e6,_0x273892);}function _0x2cffd8(){const _0x2e3488=_0x40dde8([0x6c,0x6c,0x63,0x74,0x2d])+_0x436065(_0x959a5f(_0x54818d)),_0x58e344=window[_0x40dde8([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x40dde8([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2e3488);return _0x58e344?window[_0x40dde8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x278aef(_0x58e344),0x10)*_0x207d47:null;}function _0x53e4f8(_0x1bca01){return new window[(_0x40dde8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4d037e,_0x39bc24)=>{_0x1bca01[_0x40dde8([0x74,0x68,0x65,0x6e])](_0x4d037e,_0x39bc24),window[_0x40dde8([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x39bc24,0x47a351c6^_0x80fdab);});}}_0x273277[_0x40dde8([0x6f,0x6e])](_0x40dde8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x41a16e,_0x2a3072)=>{if(_0x2a3072[0x0]!=_0x54818d)return _0x215e01(_0x40dde8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2a3072[0x1]={..._0x2a3072[0x1],[_0x40dde8([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3baff7};},{[_0x40dde8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40dde8([0x68,0x69,0x67,0x68])}),_0x273277[_0x40dde8([0x6f,0x6e])](_0x40dde8([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x27e745=>{_0x1b01c9(_0x27e745[_0x40dde8([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x293b2e=!0x0,_0x3e47ba(_0x27e745[_0x40dde8([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x40dde8([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x40dde8([0x6c,0x6f,0x77])}),_0x480521[_0x40dde8([0x74,0x68,0x65,0x6e])](()=>{_0x293b2e||_0x215e01(_0x40dde8([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x45299a(){return _0x273277[_0x40dde8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40dde8([0x76,0x69,0x65,0x77])][_0x40dde8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x40dde8([0x61,0x75,0x74,0x6f]);}function _0x2907ab(){_0x273277[_0x40dde8([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x40dde8([0x76,0x69,0x65,0x77])][_0x40dde8([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x40dde8([0x61,0x75,0x74,0x6f]);}}function _0x316e68(_0x3c95b3){const _0x2d4a7d=[new window[(_0x40dde8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24b8c5=>setTimeout(_0x24b8c5,0x47abbbca^_0x80fdab)),_0x480521[_0x40dde8([0x74,0x68,0x65,0x6e])](()=>new window[(_0x40dde8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x514965=>{let _0x154251=0x0;_0x273277[_0x40dde8([0x6d,0x6f,0x64,0x65,0x6c])][_0x40dde8([0x6f,0x6e])](_0x40dde8([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x2eaf1b,_0x180819)=>{_0x180819[0x0][_0x40dde8([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x154251++,_0x154251==(0x47a284fe^_0x80fdab)&&(_0x514965(),_0x2eaf1b[_0x40dde8([0x6f,0x66,0x66])]());});}))];return window[_0x40dde8([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x40dde8([0x72,0x61,0x63,0x65])](_0x2d4a7d)[_0x40dde8([0x74,0x68,0x65,0x6e])](()=>_0x3c95b3);}async function _0x108f93(){await _0x480521,_0x273277[_0x40dde8([0x6d,0x6f,0x64,0x65,0x6c])][_0x40dde8([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x7a4c3e,_0x273277[_0x40dde8([0x6d,0x6f,0x64,0x65,0x6c])][_0x40dde8([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x7a4c3e,_0x273277[_0x40dde8([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x40dde8([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x356588(_0x39836d){const _0x4ff14e=_0x2a6cfd();_0x273277[_0x4ff14e]=_0x40dde8([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39836d,_0x39836d!=_0x40dde8([0x56,0x61,0x6c,0x69,0x64])&&_0x108f93();}function _0x2a6cfd(){const _0x36fd0b=window[_0x40dde8([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x40dde8([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x40dde8([0x6e,0x6f,0x77])]())[_0x40dde8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x40dde8([0x2e]),'');let _0x574343=_0x40dde8([0x75]);for(let _0xc7b348=0x0;_0xc7b348<_0x36fd0b[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xc7b348+=0x2){let _0x775ad4=window[_0x40dde8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36fd0b[_0x40dde8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xc7b348,_0xc7b348+0x2));_0x775ad4>=_0x1151da[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x775ad4-=_0x1151da[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x574343+=_0x1151da[_0x775ad4];}return _0x574343;}function _0xc88419(){const _0x3e940e=_0x13a5f3[_0x40dde8([0x73,0x70,0x6c,0x69,0x74])](_0x40dde8([0x2e]));if(0x3!=_0x3e940e[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x380981(_0x3e940e[0x1]);function _0x380981(_0x582958){const _0x32933f=_0x1e24a6(_0x582958);return _0x32933f&&_0x370524()?_0x32933f:null;function _0x370524(){const _0x24dc63=_0x32933f[_0x40dde8([0x6a,0x74,0x69])],_0x12b809=window[_0x40dde8([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x24dc63[_0x40dde8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x24dc63[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1b9b0d={..._0x32933f,[_0x40dde8([0x6a,0x74,0x69])]:_0x24dc63[_0x40dde8([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x24dc63[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1b9b0d[_0x40dde8([0x76,0x63])],_0x959a5f(_0x1b9b0d)==_0x12b809;}}}async function _0x480970(){let _0x5ccf3e=!0x0;try{const _0xd65759=_0x13a5f3[_0x40dde8([0x73,0x70,0x6c,0x69,0x74])](_0x40dde8([0x2e])),[_0x1ce5a9,_0xd040c0,_0xb2cdff]=_0xd65759;return _0x444d19(_0x1ce5a9),await _0x25929a(_0x1ce5a9,_0xd040c0,_0xb2cdff),_0x5ccf3e;}catch{return!0x1;}function _0x444d19(_0x1c1a77){const _0x476f67=_0x1e24a6(_0x1c1a77);_0x476f67&&_0x476f67[_0x40dde8([0x61,0x6c,0x67])]==_0x40dde8([0x45,0x53,0x32,0x35,0x36])||(_0x5ccf3e=!0x1);}async function _0x25929a(_0x5edca2,_0xe25e75,_0x31e884){const _0xdfb342=window[_0x40dde8([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x40dde8([0x66,0x72,0x6f,0x6d])](_0x347c39(_0x31e884),_0x4d7f1b=>_0x4d7f1b[_0x40dde8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x598576=new window[(_0x40dde8([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x40dde8([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x5edca2+_0x40dde8([0x2e])+_0xe25e75),_0x3293a4=window[_0x40dde8([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x40dde8([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3293a4)return;const _0x17df54=await _0x3293a4[_0x40dde8([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x40dde8([0x6a,0x77,0x6b]),_0x31fe1c,{[_0x40dde8([0x6e,0x61,0x6d,0x65])]:_0x40dde8([0x45,0x43,0x44,0x53,0x41]),[_0x40dde8([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x40dde8([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x40dde8([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3293a4[_0x40dde8([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x40dde8([0x6e,0x61,0x6d,0x65])]:_0x40dde8([0x45,0x43,0x44,0x53,0x41]),[_0x40dde8([0x68,0x61,0x73,0x68])]:{[_0x40dde8([0x6e,0x61,0x6d,0x65])]:_0x40dde8([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x17df54,_0xdfb342,_0x598576)||(_0x5ccf3e=!0x1);}}function _0x1e24a6(_0x384132){return _0x384132[_0x40dde8([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x40dde8([0x65,0x79]))?JSON[_0x40dde8([0x70,0x61,0x72,0x73,0x65])](_0x347c39(_0x384132)):null;}function _0x347c39(_0x135a18){return window[_0x40dde8([0x61,0x74,0x6f,0x62])](_0x135a18[_0x40dde8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x40dde8([0x2b]))[_0x40dde8([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x40dde8([0x2f])));}function _0x959a5f(_0x2fdf85){let _0x1f7a60=0x1505;function _0x14b0c2(_0x7a0b0){for(let _0x46b26b=0x0;_0x46b26b<_0x7a0b0[_0x40dde8([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x46b26b++){const _0x2dc035=_0x7a0b0[_0x40dde8([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x46b26b);_0x1f7a60=(_0x1f7a60<<0x5)+_0x1f7a60+_0x2dc035,_0x1f7a60&=_0x1f7a60;}}function _0x2040f2(_0x4e694c){Array[_0x40dde8([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4e694c)?_0x4e694c[_0x40dde8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2040f2):_0x4e694c&&typeof _0x4e694c==_0x40dde8([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x40dde8([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4e694c)[_0x40dde8([0x73,0x6f,0x72,0x74])]()[_0x40dde8([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1c604c,_0x4fbe33])=>{_0x14b0c2(_0x1c604c),_0x2040f2(_0x4fbe33);}):_0x14b0c2(window[_0x40dde8([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4e694c));}return _0x2040f2(_0x2fdf85),_0x1f7a60>>>0x0;}function _0x436065(_0x52f658){return _0x52f658[_0x40dde8([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x40dde8([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x40dde8([0x30]));}function _0x278aef(_0x40bbf4){return _0x40bbf4[_0x40dde8([0x73,0x70,0x6c,0x69,0x74])]('')[_0x40dde8([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x40dde8([0x6a,0x6f,0x69,0x6e])]('');}function _0x7a4c3e(){}function _0x40dde8(_0x14ada9){return _0x14ada9['map'](_0x2a8b38=>String['fromCharCode'](_0x2a8b38))['join']('');}_0x356588(await _0x22622f());}(this);}['_moveSelectionToFootnoteDefinition'](_0x268815){const {plugins:_0x290f41,editing:_0x529836,model:_0x588020}=this['editor'],_0x25e8fd=_0x290f41['get'](_0x28f9a1)['getFootnote'](_0x268815);return!!_0x25e8fd&&(_0x588020['change'](_0xf750d=>{_0xf750d['setSelection'](_0xf750d['createPositionAt'](_0x25e8fd['definition'],'end'));}),_0x529836['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x215794){const {plugins:_0x4d7433,editing:_0x5aab4b,model:_0x87be88}=this['editor'],_0x2d8052=_0x4d7433['get'](_0x28f9a1)['getFootnote'](_0x215794);return!!_0x2d8052&&(_0x87be88['change'](_0x254201=>{_0x254201['setSelection'](_0x2d8052['reference'],'on');}),_0x5aab4b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1d53d9}=this['editor']['model'],_0x2ebc59=this['editor']['config']['get']('footnotes.multiBlock');_0x1d53d9['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1d53d9['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1d53d9['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x2ebc59?_0x1d53d9['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1d53d9['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1d53d9['addChildCheck'](_0x37a617=>{for(const _0x423fd4 of _0x37a617)if('footnoteDefinition'===_0x423fd4['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1c6a12}=this,{conversion:_0x21939a,editing:_0xb10c59}=_0x1c6a12,{t:t}=_0x1c6a12['locale'];_0x21939a['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4ee5ef,{writer:_0xb3900c,consumable:_0x3ae22c})=>{const _0x5889c6=_0x4ee5ef['getChild'](0x0);if(!_0x5889c6||!_0x5889c6['is']('element','a'))return null;const _0x2585ca=_0x5889c6['getAttribute']('href')||'';if(!_0x2585ca['startsWith']('#'))return null;const _0x19eaa4=_0x2585ca['replace'](/^#/,'');if(!_0x19eaa4)return null;_0x3ae22c['consume'](_0x5889c6,{'name':!0x0,'attributes':['href']});for(const {item:_0x38a4ca}of _0xb10c59['view']['createRangeIn'](_0x5889c6))_0x38a4ca['is']('$textProxy')?_0x3ae22c['consume'](_0x38a4ca['textNode'],{'name':!0x0}):_0x38a4ca['is']('element')&&_0x3ae22c['consume'](_0x38a4ca,{'name':!0x0});return _0xb3900c['createElement']('footnoteRef',{'footnoteId':_0x19eaa4});}}),_0x21939a['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x32d304,{writer:_0x2875de})=>D(_0x32d304,_0x2875de)}),_0x21939a['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4d652c,{writer:_0x485174})=>{const _0x46ad3b=_0x4d652c['getAttribute']('footnoteCounter');return _0x3da5dc(D(_0x4d652c,_0x485174),_0x485174,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x46ad3b)});}});}['_defineDefinitionsConverters'](){const {editor:_0x40e231}=this,{t:t}=_0x40e231['locale'],{conversion:_0x3dfe62}=_0x40e231;_0x3dfe62['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3dfe62['for']('upcast')['add'](_0x1cb651=>{_0x1cb651['on']('element:ol',(_0x2dd33b,_0x46fd26,_0x25a19e)=>{const _0x2580d8=_0x46fd26['viewItem'];if(!_0x2580d8['hasClass']('footnotes-list')||!_0x46fd26['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x25a19e['consumable']['consume'](_0x2580d8,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4ee34e,modelCursor:_0x3e820a}=_0x25a19e['convertChildren'](_0x46fd26['viewItem'],_0x46fd26['modelCursor']);_0x46fd26['modelRange']=_0x4ee34e,_0x46fd26['modelCursor']=_0x3e820a;}),_0x1cb651['on']('element:hr',(_0xafebb5,_0x3cee56,_0x420ee1)=>{const _0x45b2d7=_0x3cee56['viewItem'];_0x45b2d7['hasClass']('footnotes-divider')&&_0x3cee56['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x420ee1['consumable']['consume'](_0x45b2d7,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3dfe62['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2ca162,{writer:_0x34d51a})=>v(_0x34d51a)}),_0x3dfe62['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x81b13e,{writer:_0x18a8fd})=>{const _0x216312=v(_0x18a8fd,{'data-footnotes-list-label':t('Footnotes')}),_0x494d3a=_0x3da5dc(_0x216312,_0x18a8fd,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x18a8fd['setCustomProperty']('footnotesDefinitions',!0x0,_0x494d3a),_0x494d3a;}});}['_defineDefinitionConverters'](){const {editor:_0x1b7a1c}=this,{conversion:_0x313e1e,locale:_0x4e496b}=_0x1b7a1c,_0x384902=_0x1b7a1c['config']['get']('footnotes.multiBlock');_0x313e1e['for']('upcast')['add'](_0x4dec8f=>{_0x4dec8f['on']('element:li',(_0x491141,_0x560e7d,_0x3d903b)=>{const _0x24d2a6=_0x560e7d['viewItem'];if(!_0x24d2a6['hasClass']('footnote-definition')||!_0x24d2a6['getAttribute']('id'))return;const _0x165ce1=_0x24d2a6['parent'];if(!_0x165ce1['is']('element','ol')||!_0x165ce1['hasClass']('footnotes-list'))return;if(!_0x3d903b['consumable']['test'](_0x24d2a6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5ca181=_0x3d903b['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x24d2a6['getAttribute']('id')});if(!_0x3d903b['safeInsert'](_0x5ca181,_0x560e7d['modelCursor']))return;_0x3d903b['consumable']['consume'](_0x24d2a6,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x49ed94=Array['from'](_0x24d2a6['getChildren']())['find'](_0x1d93f3=>_0x1d93f3['is']('element')&&_0x1d93f3['hasClass']('footnote-content'));for(const _0x4df537 of _0x24d2a6['getChildren']())_0x4df537['is']('element')&&(_0x3d903b['consumable']['consume'](_0x4df537,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3d903b['consumable']['consume'](_0x4df537,{'name':!0x0,'classes':'footnote-content'}));if(_0x49ed94){if(_0x384902)_0x3d903b['convertChildren'](_0x49ed94,_0x5ca181);else{const _0xa02ffd=_0x3d903b['writer']['createElement']('footnoteInlineContent');_0x3d903b['writer']['insert'](_0xa02ffd,_0x5ca181),_0x3d903b['convertChildren'](_0x49ed94,_0xa02ffd);}}_0x3d903b['updateConversionResult'](_0x5ca181,_0x560e7d);});}),_0x313e1e['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4fffd9,{writer:_0x5c2e46})=>b(_0x4fffd9,_0x5c2e46,_0x4e496b,{'dataPipeline':!0x0})}),_0x313e1e['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x362ed6,{writer:_0x5a9f57})=>b(_0x362ed6,_0x5a9f57,_0x4e496b)});}['_defineBogusParagraphConverters'](){const {editor:_0x225a9b}=this,{conversion:_0x267563}=_0x225a9b;_0x225a9b['config']['get']('footnotes.multiBlock')?(_0x267563['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x267563['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x225a9b['model']['document'],'change:data',()=>{!function(_0x58e307,_0x2a6bdb){const _0x8a37e0=_0x58e307['document']['differ'],_0x295f79=new Set();for(const _0x587d46 of _0x8a37e0['getChanges']()){const _0x42eee5='attribute'==_0x587d46['type']?_0x587d46['range']['start']['parent']:_0x587d46['position']['parent'];_0x42eee5['is']('element','footnoteDefinition')&&_0x295f79['add'](_0x42eee5);}for(const _0xfee42b of _0x295f79['values']()){const _0x168f32=Array['from'](_0xfee42b['getChildren']())['filter'](_0x96e604=>g(_0x96e604,_0x2a6bdb['mapper']));for(const _0x44b7cc of _0x168f32)_0x2a6bdb['reconvertItem'](_0x44b7cc);}}(_0x225a9b['model'],_0x225a9b['editing']);})):(_0x267563['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x267563['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1d6822,{writer:_0x1d592a})=>{const _0x3ae104=_0x1d592a['createContainerElement']('span');return _0x1d592a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3ae104),_0x3ae104;}}));}['_defineKeyboardHandlers'](){const {editor:_0x21b3aa}=this,{editing:_0x49dee1,t:t}=_0x21b3aa,_0xab4fa2=_0x21b3aa['model']['document']['selection'];_0x21b3aa['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x21b3aa['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x49dee1['view']['document'],'enter',(_0x562161,_0x4cc2ee)=>{const _0x43e5c7=function(_0x2aa82c){const _0xabc801=_0x2aa82c['getSelectedElement']();if(_0xabc801?.['is']('element','footnoteRef'))return _0xabc801;return null;}(_0xab4fa2);if(_0x43e5c7){const _0x35e917=_0x43e5c7['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x35e917),_0x4cc2ee['preventDefault'](),_0x562161['stop']();}},{'context':_0x30506d});}['_defineClickHandlers'](){const {editor:_0x46e5c0}=this,{editing:_0x5ab0b8}=_0x46e5c0;_0x46e5c0['editing']['view']['addObserver'](_0x8ffb56),_0x46e5c0['editing']['view']['addObserver'](_0x47e9a8);let _0x70f9e7=!0x1;this['listenTo'](_0x5ab0b8['view']['document'],'pointerdown',(_0x325846,_0x105bf6)=>{const {target:_0x140cae}=_0x105bf6,_0x5a0773=_0x5ab0b8['view']['document']['selection'];_0x70f9e7=!!(_0x140cae?.['is']('element','a')&&_0x140cae['parent']?.['is']('element','sup')&&_0x140cae['parent']['hasClass']('footnote'))&&_0x5a0773['getSelectedElement']()===_0x140cae['parent'];},{'priority':'high'}),this['listenTo'](_0x5ab0b8['view']['document'],'click',(_0x3f53cc,_0xd4c864)=>{const {target:_0x321e13}=_0xd4c864;if(!_0x321e13?.['is']('element','a'))return;if(_0x321e13['parent']?.['is']('element','sup')&&_0x321e13['parent']['hasClass']('footnote')&&!_0x70f9e7)return void _0xd4c864['preventDefault']();let _0x6af3b6=_0x321e13['getAttribute']('href');if(!_0x6af3b6?.['startsWith']('#'))return;_0x6af3b6=_0x6af3b6['slice'](0x1);let _0x360ab9=!0x1;(_0x6af3b6['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x6af3b6['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x6af3b6))&&(_0x360ab9=!0x0),_0x360ab9&&(_0xd4c864['preventDefault'](),_0x3f53cc['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x57adf2}={}){return(_0x3d4682,{writer:_0x385056})=>{if(!p(_0x3d4682))return null;if(!_0x57adf2)return _0x385056['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2d948f=_0x385056['createContainerElement']('p');return _0x385056['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2d948f),_0x2d948f;};}function p(_0x3eb8b9){const {parent:_0x1e3db7}=_0x3eb8b9;if(!_0x1e3db7?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1e3db7['childCount'])return!0x1;for(const _0x2a9d94 of _0x3eb8b9['getAttributeKeys']())if(!_0x2a9d94['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2a9d94)return!0x1;return!0x0;}function g(_0x27361e,_0x32f941){if(!_0x27361e['is']('element','paragraph'))return!0x1;const _0x2a4c35=_0x32f941['toViewElement'](_0x27361e);return!!_0x2a4c35&&p(_0x27361e)!==_0x2a4c35['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3488f8){return _0x30506d(_0x3488f8)&&_0x3488f8['is']('containerElement')&&!!_0x3488f8['getCustomProperty']('footnotesDefinitions');}function v(_0x5f8c4f,_0x5a5312={}){const _0x1c1977=_0x5f8c4f['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x41262c=_0x5f8c4f['createContainerElement']('ol',{'class':'footnotes-list'},_0x5f8c4f['createSlot']());return _0x5f8c4f['createContainerElement']('div',{'class':'footnotes',..._0x5a5312},[_0x1c1977,_0x41262c]);}function D(_0x3da307,_0xd3197c){const _0x16f943=_0x3da307['getAttribute']('footnoteId'),_0x4922f9=_0x3da307['getAttribute']('footnoteCounter'),_0x2627bd=_0xd3197c['createUIElement']('a',{'href':'#'+_0x16f943},function(_0x3217bf){const _0x238015=this['toDomElement'](_0x3217bf);return _0x238015['textContent']=_0x4922f9,_0x238015;}),_0x1339d9=_0xd3197c['createContainerElement']('sup',{'id':'ref-'+_0x16f943,'class':'footnote'},[_0x2627bd]);return _0x1339d9['getFillerOffset']=()=>null,_0x1339d9;}function b(_0x2ad726,_0x284605,_0x18ecb8,{dataPipeline:_0x48d27b}={}){const {t:t}=_0x18ecb8,_0x1243f5=_0x2ad726['getAttribute']('footnoteId'),_0x291bf6=_0x284605['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x1243f5},function(_0x39505f){const _0x2728fe=this['toDomElement'](_0x39505f);return _0x2728fe['innerText']='^',_0x2728fe;}),_0x45e5ce=_0x48d27b?_0x284605['createContainerElement']('div',{'class':'footnote-content'}):_0x7016e6(_0x284605['createEditableElement']('div',{'class':'footnote-content'}),_0x284605,{'label':t('Footnote\x20content.')});return _0x284605['insert'](_0x284605['createPositionAt'](_0x45e5ce,0x0),_0x284605['createSlot']()),_0x284605['createContainerElement']('li',{'class':'footnote-definition','id':_0x1243f5},[_0x291bf6,_0x45e5ce]);}
|
|
23
|
+
import{Plugin as _0x1d74a6}from'ckeditor5/src/core.js';import{isWidget as _0x91660f,toWidget as _0x32b4c4,toWidgetEditable as _0x56e9e4}from'ckeditor5/src/widget.js';import{uid as _0xcef626}from'ckeditor5/src/utils.js';import{PointerObserver as _0x3a45ec,ClickObserver as _0x8b55ec}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0xf7bc29}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x4d52f}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1d74a6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0xf7bc29];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd7f3bb}=this;_0xd7f3bb['config']['define']('footnotes.multiBlock',!0x0),_0xd7f3bb['commands']['add']('insertFootnote',new _0x4d52f(_0xd7f3bb)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0xef94da){const _0x182b30=_0x17d0d4([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]),_0xe3912e=0x47a28506,_0x3d2ae6=0x47a5ff96^_0xe3912e,_0x4119e2=window[_0x17d0d4([0x44,0x61,0x74,0x65])][_0x17d0d4([0x6e,0x6f,0x77])](),_0x2a40ec=_0xef94da[_0x17d0d4([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3be273=new window[(_0x17d0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd7d6ab=>{_0x2a40ec[_0x17d0d4([0x6f,0x6e,0x63,0x65])](_0x17d0d4([0x72,0x65,0x61,0x64,0x79]),_0xd7d6ab);}),_0x29ce50={[_0x17d0d4([0x6b,0x74,0x79])]:_0x17d0d4([0x45,0x43]),[_0x17d0d4([0x75,0x73,0x65])]:_0x17d0d4([0x73,0x69,0x67]),[_0x17d0d4([0x63,0x72,0x76])]:_0x17d0d4([0x50,0x2d,0x32,0x35,0x36]),[_0x17d0d4([0x78])]:_0x17d0d4([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]),[_0x17d0d4([0x79])]:_0x17d0d4([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]),[_0x17d0d4([0x61,0x6c,0x67])]:_0x17d0d4([0x45,0x53,0x32,0x35,0x36])},_0x4a590b=_0x2a40ec[_0x17d0d4([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x17d0d4([0x67,0x65,0x74])](_0x17d0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x322273(){let _0x5aa2eb,_0x1d7319=null,_0x2806b6=null;try{if(_0x4a590b==_0x17d0d4([0x47,0x50,0x4c]))return _0x17d0d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x5aa2eb=_0x30d52d(),!_0x5aa2eb)return _0x17d0d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x5aa2eb[_0x17d0d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2806b6=_0xf1ba42(_0x5aa2eb[_0x17d0d4([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x5aa2eb[_0x17d0d4([0x6a,0x74,0x69])])),await _0x2e6996()?_0x51a069()?_0x4075e4()?_0x17d0d4([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x12041b()?(_0x5aa2eb[_0x17d0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17d0d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1d7319=_0x162717(_0x17d0d4([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),_0x5aa2eb[_0x17d0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x17d0d4([0x74,0x72,0x69,0x61,0x6c])&&(_0x1d7319=_0x162717(_0x17d0d4([0x54,0x72,0x69,0x61,0x6c,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3431be()):_0x17d0d4([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x17d0d4([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x17d0d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x17d0d4([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4075e4(){const _0x7e6336=[_0x17d0d4([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x17d0d4([0x74,0x72,0x69,0x61,0x6c])][_0x17d0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5aa2eb[_0x17d0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4119e2/0x3e8:0xe10*_0x3d2ae6;return _0x5aa2eb[_0x17d0d4([0x65,0x78,0x70])]<_0x7e6336;}function _0x51a069(){const _0x2f4c0d=_0x5aa2eb[_0x17d0d4([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2f4c0d&&(!!_0x2f4c0d[_0x17d0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17d0d4([0x2a]))||!!_0x2f4c0d[_0x17d0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17d0d4([0x46,0x4f,0x4f])));}function _0x12041b(){const _0x5c9e09=_0x5aa2eb[_0x17d0d4([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5c9e09||0x0==_0x5c9e09[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5206b4}=new URL(window[_0x17d0d4([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5c9e09[_0x17d0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5206b4))return!0x0;const _0x1b0c65=_0x5206b4[_0x17d0d4([0x73,0x70,0x6c,0x69,0x74])](_0x17d0d4([0x2e]));return _0x5c9e09[_0x17d0d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x366c58=>_0x366c58[_0x17d0d4([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x17d0d4([0x2a])))[_0x17d0d4([0x6d,0x61,0x70])](_0x14874b=>_0x14874b[_0x17d0d4([0x73,0x70,0x6c,0x69,0x74])](_0x17d0d4([0x2e])))[_0x17d0d4([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4cb2b7=>_0x4cb2b7[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x1b0c65[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17d0d4([0x6d,0x61,0x70])](_0x5637dc=>Array(_0x1b0c65[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x5637dc[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x17d0d4([0x66,0x69,0x6c,0x6c])](_0x5637dc[0x0]===_0x17d0d4([0x2a])?_0x17d0d4([0x2a]):'')[_0x17d0d4([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x5637dc))[_0x17d0d4([0x73,0x6f,0x6d,0x65])](_0x128196=>_0x1b0c65[_0x17d0d4([0x65,0x76,0x65,0x72,0x79])]((_0x5e310a,_0x3cda4b)=>_0x128196[_0x3cda4b]===_0x5e310a||_0x128196[_0x3cda4b]===_0x17d0d4([0x2a])));}function _0x3431be(){return _0x1d7319&&_0x2806b6?new window[(_0x17d0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x31dfcf,_0x3a03db)=>{_0x1d7319[_0x17d0d4([0x74,0x68,0x65,0x6e])](_0x31dfcf,_0x3a03db),_0x2806b6[_0x17d0d4([0x74,0x68,0x65,0x6e])](_0x5de2f4=>{_0x5de2f4!=_0x17d0d4([0x56,0x61,0x6c,0x69,0x64])&&_0x31dfcf(_0x5de2f4);},_0x3a03db);}):_0x1d7319||_0x2806b6||_0x17d0d4([0x56,0x61,0x6c,0x69,0x64]);}}function _0xf1ba42(_0x8212b0,_0x571a1c){return new window[(_0x17d0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x393456=>{if(_0x3248b4())return _0x393456(_0x17d0d4([0x56,0x61,0x6c,0x69,0x64]));_0x44c8d7(),_0x2a40ec[_0x17d0d4([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x17d0d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x33ee5d=!0x1;const _0x279b15=_0xcef626();function _0x37312e(_0x18f8d9){return!!_0x18f8d9&&(typeof _0x18f8d9===_0x17d0d4([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x18f8d9===_0x17d0d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x18f8d9[_0x17d0d4([0x74,0x68,0x65,0x6e])]===_0x17d0d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x18f8d9[_0x17d0d4([0x63,0x61,0x74,0x63,0x68])]===_0x17d0d4([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x286efe(_0x31ed08){_0x3b20ec(_0x31ed08)[_0x17d0d4([0x74,0x68,0x65,0x6e])](_0x5a43d8=>{if(!_0x5a43d8||_0x5a43d8[_0x17d0d4([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x17d0d4([0x6f,0x6b]))return _0x17d0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x5d653e(_0xe0bd30(_0x279b15+_0x571a1c))!=_0x5a43d8[_0x17d0d4([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x17d0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x17d0d4([0x56,0x61,0x6c,0x69,0x64]);})[_0x17d0d4([0x74,0x68,0x65,0x6e])](_0x2e979c=>(_0x15050a(),_0x2e979c),()=>{const _0x23acca=_0x247056();return null==_0x23acca?(_0x15050a(),_0x17d0d4([0x56,0x61,0x6c,0x69,0x64])):_0x17d0d4(_0x4119e2-_0x23acca>(0x63ae0106^_0xe3912e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x17d0d4([0x74,0x68,0x65,0x6e])](_0x393456)[_0x17d0d4([0x63,0x61,0x74,0x63,0x68])](()=>{_0x393456(_0x17d0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x270c8e=0x47946b86^_0xe3912e;function _0x15050a(){const _0x22a8e0=_0x17d0d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d653e(_0xe0bd30(_0x8212b0)),_0x323a3c=_0x206627(_0x5d653e(window[_0x17d0d4([0x4d,0x61,0x74,0x68])][_0x17d0d4([0x63,0x65,0x69,0x6c])](_0x4119e2/_0x270c8e)));window[_0x17d0d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17d0d4([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x22a8e0,_0x323a3c);}function _0x247056(){const _0x287ec1=_0x17d0d4([0x6c,0x6c,0x63,0x74,0x2d])+_0x5d653e(_0xe0bd30(_0x8212b0)),_0x2a9904=window[_0x17d0d4([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x17d0d4([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x287ec1);return _0x2a9904?window[_0x17d0d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x206627(_0x2a9904),0x10)*_0x270c8e:null;}function _0x3b20ec(_0x1ea9cf){return new window[(_0x17d0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x924db8,_0x5ad2ed)=>{_0x1ea9cf[_0x17d0d4([0x74,0x68,0x65,0x6e])](_0x924db8,_0x5ad2ed),window[_0x17d0d4([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5ad2ed,0x47a351c6^_0xe3912e);});}}_0x2a40ec[_0x17d0d4([0x6f,0x6e])](_0x17d0d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x31f88b,_0x39017d)=>{if(_0x39017d[0x0]!=_0x8212b0)return _0x393456(_0x17d0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x39017d[0x1]={..._0x39017d[0x1],[_0x17d0d4([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x279b15};},{[_0x17d0d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17d0d4([0x68,0x69,0x67,0x68])}),_0x2a40ec[_0x17d0d4([0x6f,0x6e])](_0x17d0d4([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0xb76a7c=>{_0x37312e(_0xb76a7c[_0x17d0d4([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x33ee5d=!0x0,_0x286efe(_0xb76a7c[_0x17d0d4([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x17d0d4([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x17d0d4([0x6c,0x6f,0x77])}),_0x3be273[_0x17d0d4([0x74,0x68,0x65,0x6e])](()=>{_0x33ee5d||_0x393456(_0x17d0d4([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3248b4(){return _0x2a40ec[_0x17d0d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17d0d4([0x76,0x69,0x65,0x77])][_0x17d0d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x17d0d4([0x61,0x75,0x74,0x6f]);}function _0x44c8d7(){_0x2a40ec[_0x17d0d4([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x17d0d4([0x76,0x69,0x65,0x77])][_0x17d0d4([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x17d0d4([0x61,0x75,0x74,0x6f]);}}function _0x162717(_0x56ddda){const _0x62e98=[new window[(_0x17d0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x55ca66=>setTimeout(_0x55ca66,0x47abbbca^_0xe3912e)),_0x3be273[_0x17d0d4([0x74,0x68,0x65,0x6e])](()=>new window[(_0x17d0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1efd73=>{let _0x585b77=0x0;_0x2a40ec[_0x17d0d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x17d0d4([0x6f,0x6e])](_0x17d0d4([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32ab5d,_0x511a99)=>{_0x511a99[0x0][_0x17d0d4([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x585b77++,_0x585b77==(0x47a284fe^_0xe3912e)&&(_0x1efd73(),_0x32ab5d[_0x17d0d4([0x6f,0x66,0x66])]());});}))];return window[_0x17d0d4([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x17d0d4([0x72,0x61,0x63,0x65])](_0x62e98)[_0x17d0d4([0x74,0x68,0x65,0x6e])](()=>_0x56ddda);}async function _0x418d65(){await _0x3be273,_0x2a40ec[_0x17d0d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x17d0d4([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x130f55,_0x2a40ec[_0x17d0d4([0x6d,0x6f,0x64,0x65,0x6c])][_0x17d0d4([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x130f55,_0x2a40ec[_0x17d0d4([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x17d0d4([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x29a5fb(_0x413358){const _0x219d3b=_0x2ca315();_0x2a40ec[_0x219d3b]=_0x17d0d4([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x413358,_0x413358!=_0x17d0d4([0x56,0x61,0x6c,0x69,0x64])&&_0x418d65();}function _0x2ca315(){const _0x2d3f09=window[_0x17d0d4([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x17d0d4([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x17d0d4([0x6e,0x6f,0x77])]())[_0x17d0d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x17d0d4([0x2e]),'');let _0x3bd7c8=_0x17d0d4([0x75]);for(let _0x542573=0x0;_0x542573<_0x2d3f09[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x542573+=0x2){let _0x5d6a16=window[_0x17d0d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d3f09[_0x17d0d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x542573,_0x542573+0x2));_0x5d6a16>=_0x182b30[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x5d6a16-=_0x182b30[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3bd7c8+=_0x182b30[_0x5d6a16];}return _0x3bd7c8;}function _0x30d52d(){const _0x13186d=_0x4a590b[_0x17d0d4([0x73,0x70,0x6c,0x69,0x74])](_0x17d0d4([0x2e]));if(0x3!=_0x13186d[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x5c7b28(_0x13186d[0x1]);function _0x5c7b28(_0x51e2c1){const _0x357d4d=_0x28ce01(_0x51e2c1);return _0x357d4d&&_0x48a502()?_0x357d4d:null;function _0x48a502(){const _0x303a7d=_0x357d4d[_0x17d0d4([0x6a,0x74,0x69])],_0x3e2247=window[_0x17d0d4([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x303a7d[_0x17d0d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x303a7d[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3fe640={..._0x357d4d,[_0x17d0d4([0x6a,0x74,0x69])]:_0x303a7d[_0x17d0d4([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x303a7d[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3fe640[_0x17d0d4([0x76,0x63])],_0xe0bd30(_0x3fe640)==_0x3e2247;}}}async function _0x2e6996(){let _0x44fa9=!0x0;try{const _0x721de1=_0x4a590b[_0x17d0d4([0x73,0x70,0x6c,0x69,0x74])](_0x17d0d4([0x2e])),[_0x81cb9f,_0x3c9caf,_0x49155e]=_0x721de1;return _0x12debd(_0x81cb9f),await _0x4abaaf(_0x81cb9f,_0x3c9caf,_0x49155e),_0x44fa9;}catch{return!0x1;}function _0x12debd(_0x363e61){const _0x459b1a=_0x28ce01(_0x363e61);_0x459b1a&&_0x459b1a[_0x17d0d4([0x61,0x6c,0x67])]==_0x17d0d4([0x45,0x53,0x32,0x35,0x36])||(_0x44fa9=!0x1);}async function _0x4abaaf(_0x539ffe,_0x387528,_0x111182){const _0x3729cf=window[_0x17d0d4([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x17d0d4([0x66,0x72,0x6f,0x6d])](_0x495c1a(_0x111182),_0x17bce2=>_0x17bce2[_0x17d0d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x20525f=new window[(_0x17d0d4([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x17d0d4([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x539ffe+_0x17d0d4([0x2e])+_0x387528),_0xa471b=window[_0x17d0d4([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x17d0d4([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xa471b)return;const _0x55203f=await _0xa471b[_0x17d0d4([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x17d0d4([0x6a,0x77,0x6b]),_0x29ce50,{[_0x17d0d4([0x6e,0x61,0x6d,0x65])]:_0x17d0d4([0x45,0x43,0x44,0x53,0x41]),[_0x17d0d4([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x17d0d4([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x17d0d4([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xa471b[_0x17d0d4([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x17d0d4([0x6e,0x61,0x6d,0x65])]:_0x17d0d4([0x45,0x43,0x44,0x53,0x41]),[_0x17d0d4([0x68,0x61,0x73,0x68])]:{[_0x17d0d4([0x6e,0x61,0x6d,0x65])]:_0x17d0d4([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x55203f,_0x3729cf,_0x20525f)||(_0x44fa9=!0x1);}}function _0x28ce01(_0x4338a6){return _0x4338a6[_0x17d0d4([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x17d0d4([0x65,0x79]))?JSON[_0x17d0d4([0x70,0x61,0x72,0x73,0x65])](_0x495c1a(_0x4338a6)):null;}function _0x495c1a(_0x9576e1){return window[_0x17d0d4([0x61,0x74,0x6f,0x62])](_0x9576e1[_0x17d0d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x17d0d4([0x2b]))[_0x17d0d4([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x17d0d4([0x2f])));}function _0xe0bd30(_0x2a5f78){let _0x327f27=0x1505;function _0x2ef2be(_0x55187d){for(let _0x2029b0=0x0;_0x2029b0<_0x55187d[_0x17d0d4([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2029b0++){const _0x553fb4=_0x55187d[_0x17d0d4([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x2029b0);_0x327f27=(_0x327f27<<0x5)+_0x327f27+_0x553fb4,_0x327f27&=_0x327f27;}}function _0x402866(_0xfd4fb1){Array[_0x17d0d4([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0xfd4fb1)?_0xfd4fb1[_0x17d0d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x402866):_0xfd4fb1&&typeof _0xfd4fb1==_0x17d0d4([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x17d0d4([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0xfd4fb1)[_0x17d0d4([0x73,0x6f,0x72,0x74])]()[_0x17d0d4([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x26b7a3,_0x47e8ee])=>{_0x2ef2be(_0x26b7a3),_0x402866(_0x47e8ee);}):_0x2ef2be(window[_0x17d0d4([0x53,0x74,0x72,0x69,0x6e,0x67])](_0xfd4fb1));}return _0x402866(_0x2a5f78),_0x327f27>>>0x0;}function _0x5d653e(_0x5f5dc6){return _0x5f5dc6[_0x17d0d4([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x17d0d4([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x17d0d4([0x30]));}function _0x206627(_0x53e23a){return _0x53e23a[_0x17d0d4([0x73,0x70,0x6c,0x69,0x74])]('')[_0x17d0d4([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x17d0d4([0x6a,0x6f,0x69,0x6e])]('');}function _0x130f55(){}function _0x17d0d4(_0x216f5c){return _0x216f5c['map'](_0x3a5512=>String['fromCharCode'](_0x3a5512))['join']('');}_0x29a5fb(await _0x322273());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1ba427){const {plugins:_0x2e37c7,editing:_0xdc2893,model:_0x4bb1d8}=this['editor'],_0x4585a4=_0x2e37c7['get'](_0xf7bc29)['getFootnote'](_0x1ba427);return!!_0x4585a4&&(_0x4bb1d8['change'](_0x470ba1=>{_0x470ba1['setSelection'](_0x470ba1['createPositionAt'](_0x4585a4['definition'],'end'));}),_0xdc2893['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x37c526){const {plugins:_0x117a83,editing:_0xaeb506,model:_0x4caddc}=this['editor'],_0xb32c97=_0x117a83['get'](_0xf7bc29)['getFootnote'](_0x37c526);return!!_0xb32c97&&(_0x4caddc['change'](_0x1bce19=>{_0x1bce19['setSelection'](_0xb32c97['reference'],'on');}),_0xaeb506['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x232146}=this['editor']['model'],_0x3b14d9=this['editor']['config']['get']('footnotes.multiBlock');_0x232146['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x232146['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x232146['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3b14d9?_0x232146['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x232146['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x232146['addChildCheck'](_0x13a731=>{for(const _0x1d0963 of _0x13a731)if('footnoteDefinition'===_0x1d0963['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x418554}=this,{conversion:_0x5364fc,editing:_0x164aa3}=_0x418554,{t:t}=_0x418554['locale'];_0x5364fc['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x33cbbf,{writer:_0x182d1f,consumable:_0x325555})=>{const _0x3deb5a=_0x33cbbf['getChild'](0x0);if(!_0x3deb5a||!_0x3deb5a['is']('element','a'))return null;const _0x3ad886=_0x3deb5a['getAttribute']('href')||'';if(!_0x3ad886['startsWith']('#'))return null;const _0xb8c094=_0x3ad886['replace'](/^#/,'');if(!_0xb8c094)return null;_0x325555['consume'](_0x3deb5a,{'name':!0x0,'attributes':['href']});for(const {item:_0x4c5f6d}of _0x164aa3['view']['createRangeIn'](_0x3deb5a))_0x4c5f6d['is']('$textProxy')?_0x325555['consume'](_0x4c5f6d['textNode'],{'name':!0x0}):_0x4c5f6d['is']('element')&&_0x325555['consume'](_0x4c5f6d,{'name':!0x0});return _0x182d1f['createElement']('footnoteRef',{'footnoteId':_0xb8c094});}}),_0x5364fc['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x338197,{writer:_0x21ab27})=>D(_0x338197,_0x21ab27)}),_0x5364fc['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x136a2c,{writer:_0x35d857})=>{const _0x5c0074=_0x136a2c['getAttribute']('footnoteCounter');return _0x32b4c4(D(_0x136a2c,_0x35d857),_0x35d857,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5c0074)});}});}['_defineDefinitionsConverters'](){const {editor:_0x51e68c}=this,{t:t}=_0x51e68c['locale'],{conversion:_0x1617b4}=_0x51e68c;_0x1617b4['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1617b4['for']('upcast')['add'](_0x5d41fa=>{_0x5d41fa['on']('element:ol',(_0x3b88c1,_0x484f61,_0x2657e8)=>{const _0x8d46d7=_0x484f61['viewItem'];if(!_0x8d46d7['hasClass']('footnotes-list')||!_0x484f61['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2657e8['consumable']['consume'](_0x8d46d7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5aea06,modelCursor:_0x1a64a3}=_0x2657e8['convertChildren'](_0x484f61['viewItem'],_0x484f61['modelCursor']);_0x484f61['modelRange']=_0x5aea06,_0x484f61['modelCursor']=_0x1a64a3;}),_0x5d41fa['on']('element:hr',(_0x703347,_0xf45a1b,_0x4907cc)=>{const _0x292109=_0xf45a1b['viewItem'];_0x292109['hasClass']('footnotes-divider')&&_0xf45a1b['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4907cc['consumable']['consume'](_0x292109,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1617b4['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0xb41d32,{writer:_0x47dc9f})=>v(_0x47dc9f)}),_0x1617b4['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4467b9,{writer:_0x200b6f})=>{const _0x21a35f=v(_0x200b6f,{'data-footnotes-list-label':t('Footnotes')}),_0x3b5a0b=_0x32b4c4(_0x21a35f,_0x200b6f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x200b6f['setCustomProperty']('footnotesDefinitions',!0x0,_0x3b5a0b),_0x3b5a0b;}});}['_defineDefinitionConverters'](){const {editor:_0x2693f6}=this,{conversion:_0x8bf8d2,locale:_0x353e96}=_0x2693f6,_0xecf7=_0x2693f6['config']['get']('footnotes.multiBlock');_0x8bf8d2['for']('upcast')['add'](_0x55683d=>{_0x55683d['on']('element:li',(_0x4dd308,_0x2a8c31,_0x39cfdb)=>{const _0x4d0b24=_0x2a8c31['viewItem'];if(!_0x4d0b24['hasClass']('footnote-definition')||!_0x4d0b24['getAttribute']('id'))return;const _0x1ce399=_0x4d0b24['parent'];if(!_0x1ce399['is']('element','ol')||!_0x1ce399['hasClass']('footnotes-list'))return;if(!_0x39cfdb['consumable']['test'](_0x4d0b24,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x5bd7fd=_0x39cfdb['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4d0b24['getAttribute']('id')});if(!_0x39cfdb['safeInsert'](_0x5bd7fd,_0x2a8c31['modelCursor']))return;_0x39cfdb['consumable']['consume'](_0x4d0b24,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x255f98=Array['from'](_0x4d0b24['getChildren']())['find'](_0x1e48cb=>_0x1e48cb['is']('element')&&_0x1e48cb['hasClass']('footnote-content'));for(const _0x158edd of _0x4d0b24['getChildren']())_0x158edd['is']('element')&&(_0x39cfdb['consumable']['consume'](_0x158edd,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x39cfdb['consumable']['consume'](_0x158edd,{'name':!0x0,'classes':'footnote-content'}));if(_0x255f98){if(_0xecf7)_0x39cfdb['convertChildren'](_0x255f98,_0x5bd7fd);else{const _0x3f3194=_0x39cfdb['writer']['createElement']('footnoteInlineContent');_0x39cfdb['writer']['insert'](_0x3f3194,_0x5bd7fd),_0x39cfdb['convertChildren'](_0x255f98,_0x3f3194);}}_0x39cfdb['updateConversionResult'](_0x5bd7fd,_0x2a8c31);});}),_0x8bf8d2['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5a57f9,{writer:_0x68bc8e})=>b(_0x5a57f9,_0x68bc8e,_0x353e96,{'dataPipeline':!0x0})}),_0x8bf8d2['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x35e645,{writer:_0x20395a})=>b(_0x35e645,_0x20395a,_0x353e96)});}['_defineBogusParagraphConverters'](){const {editor:_0x29ab4d}=this,{conversion:_0x252f22}=_0x29ab4d;_0x29ab4d['config']['get']('footnotes.multiBlock')?(_0x252f22['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':h(),'converterPriority':'high'}),_0x252f22['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':h({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x29ab4d['model']['document'],'change:data',()=>{!function(_0x2cc90d,_0x349e79){const _0x429b72=_0x2cc90d['document']['differ'],_0x319335=new Set();for(const _0x4cfa04 of _0x429b72['getChanges']()){const _0x3b82a5='attribute'==_0x4cfa04['type']?_0x4cfa04['range']['start']['parent']:_0x4cfa04['position']['parent'];_0x3b82a5['is']('element','footnoteDefinition')&&_0x319335['add'](_0x3b82a5);}for(const _0x27873c of _0x319335['values']()){const _0x58419f=Array['from'](_0x27873c['getChildren']())['filter'](_0x1380d6=>g(_0x1380d6,_0x349e79['mapper']));for(const _0x425480 of _0x58419f)_0x349e79['reconvertItem'](_0x425480);}}(_0x29ab4d['model'],_0x29ab4d['editing']);})):(_0x252f22['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':h()}),_0x252f22['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5d99d6,{writer:_0x32ff17})=>{const _0x25cbfa=_0x32ff17['createContainerElement']('span');return _0x32ff17['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x25cbfa),_0x25cbfa;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2ca9c3}=this,{editing:_0x1fded8,t:t}=_0x2ca9c3,_0x389bda=_0x2ca9c3['model']['document']['selection'];_0x2ca9c3['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2ca9c3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1fded8['view']['document'],'enter',(_0xa757c2,_0xe0d437)=>{const _0xaadd0b=function(_0x568ca3){const _0x5b7421=_0x568ca3['getSelectedElement']();if(_0x5b7421?.['is']('element','footnoteRef'))return _0x5b7421;return null;}(_0x389bda);if(_0xaadd0b){const _0x12d80e=_0xaadd0b['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x12d80e),_0xe0d437['preventDefault'](),_0xa757c2['stop']();}},{'context':_0x91660f});}['_defineClickHandlers'](){const {editor:_0x215d0e}=this,{editing:_0x16ccc5}=_0x215d0e;_0x215d0e['editing']['view']['addObserver'](_0x3a45ec),_0x215d0e['editing']['view']['addObserver'](_0x8b55ec);let _0x205f3c=!0x1;this['listenTo'](_0x16ccc5['view']['document'],'pointerdown',(_0x51725a,_0x3cf8f5)=>{const {target:_0x10a1c4}=_0x3cf8f5,_0x7ea322=_0x16ccc5['view']['document']['selection'];_0x205f3c=!!(_0x10a1c4?.['is']('element','a')&&_0x10a1c4['parent']?.['is']('element','sup')&&_0x10a1c4['parent']['hasClass']('footnote'))&&_0x7ea322['getSelectedElement']()===_0x10a1c4['parent'];},{'priority':'high'}),this['listenTo'](_0x16ccc5['view']['document'],'click',(_0x68bdb3,_0x2496fb)=>{const {target:_0x22a9a2}=_0x2496fb;if(!_0x22a9a2?.['is']('element','a'))return;if(_0x22a9a2['parent']?.['is']('element','sup')&&_0x22a9a2['parent']['hasClass']('footnote')&&!_0x205f3c)return void _0x2496fb['preventDefault']();let _0x3f95cd=_0x22a9a2['getAttribute']('href');if(!_0x3f95cd?.['startsWith']('#'))return;_0x3f95cd=_0x3f95cd['slice'](0x1);let _0x464949=!0x1;(_0x3f95cd['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x3f95cd['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x3f95cd))&&(_0x464949=!0x0),_0x464949&&(_0x2496fb['preventDefault'](),_0x68bdb3['stop']());},{'priority':'high','context':'$capture'});}}function h({dataPipeline:_0x3da475}={}){return(_0x4e150e,{writer:_0xf9bbad})=>{if(!p(_0x4e150e))return null;if(!_0x3da475)return _0xf9bbad['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x35282e=_0xf9bbad['createContainerElement']('p');return _0xf9bbad['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x35282e),_0x35282e;};}function p(_0x1b36ec){const {parent:_0x5eb6fd}=_0x1b36ec;if(!_0x5eb6fd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5eb6fd['childCount'])return!0x1;for(const _0xea4fc4 of _0x1b36ec['getAttributeKeys']())if(!_0xea4fc4['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xea4fc4)return!0x1;return!0x0;}function g(_0x41dbdb,_0x396658){if(!_0x41dbdb['is']('element','paragraph'))return!0x1;const _0x4ebfcb=_0x396658['toViewElement'](_0x41dbdb);return!!_0x4ebfcb&&p(_0x41dbdb)!==_0x4ebfcb['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x179e3e){return _0x91660f(_0x179e3e)&&_0x179e3e['is']('containerElement')&&!!_0x179e3e['getCustomProperty']('footnotesDefinitions');}function v(_0x3cd2b8,_0x3fa6f2={}){const _0x4d1d20=_0x3cd2b8['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x2c6ce0=_0x3cd2b8['createContainerElement']('ol',{'class':'footnotes-list'},_0x3cd2b8['createSlot']());return _0x3cd2b8['createContainerElement']('div',{'class':'footnotes',..._0x3fa6f2},[_0x4d1d20,_0x2c6ce0]);}function D(_0xf21565,_0x4cb8b4){const _0x46ce96=_0xf21565['getAttribute']('footnoteId'),_0x5e2d0c=_0xf21565['getAttribute']('footnoteCounter'),_0x59074d=_0x4cb8b4['createUIElement']('a',{'href':'#'+_0x46ce96},function(_0x24b49d){const _0xf35d00=this['toDomElement'](_0x24b49d);return _0xf35d00['textContent']=_0x5e2d0c,_0xf35d00;}),_0x307491=_0x4cb8b4['createContainerElement']('sup',{'id':'ref-'+_0x46ce96,'class':'footnote'},[_0x59074d]);return _0x307491['getFillerOffset']=()=>null,_0x307491;}function b(_0x2d1ed4,_0x4f67a9,_0x7ca30b,{dataPipeline:_0x527c2a}={}){const {t:t}=_0x7ca30b,_0x4ce2ad=_0x2d1ed4['getAttribute']('footnoteId'),_0x512db8=_0x4f67a9['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4ce2ad},function(_0x4edf83){const _0x3032e5=this['toDomElement'](_0x4edf83);return _0x3032e5['innerText']='^',_0x3032e5;}),_0x30dba0=_0x527c2a?_0x4f67a9['createContainerElement']('div',{'class':'footnote-content'}):_0x56e9e4(_0x4f67a9['createEditableElement']('div',{'class':'footnote-content'}),_0x4f67a9,{'label':t('Footnote\x20content.')});return _0x4f67a9['insert'](_0x4f67a9['createPositionAt'](_0x30dba0,0x0),_0x4f67a9['createSlot']()),_0x4f67a9['createContainerElement']('li',{'class':'footnote-definition','id':_0x4ce2ad},[_0x512db8,_0x30dba0]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x5a23(_0x1788d9,_0x33e52){const _0x315ec7=_0x315e();return _0x5a23=function(_0x5a2393,_0x28b764){_0x5a2393=_0x5a2393-0x79;let _0x386876=_0x315ec7[_0x5a2393];return _0x386876;},_0x5a23(_0x1788d9,_0x33e52);}const _0x8fdd42=_0x5a23;function _0x315e(){const _0x1a8db7=['7VaHeCF','setAttribute','203106HbBqaU','200696rYfmNw','refresh','157479SAFnaP','get','317762BXjwyH','5hEQPKH','isEnabled','670omTCyt','1354784xnmTmx','_updateFootnotesCounters','getAttribute','isInteger','plugins','759396clsVvA','value','change','getFootnotesDefinitionsObjectElement','footnotesListStart','model','234okEuft','execute'];_0x315e=function(){return _0x1a8db7;};return _0x315e();}(function(_0x256060,_0xc3ada9){const _0x1318d0=_0x5a23,_0x22a2db=_0x256060();while(!![]){try{const _0x37e6b1=parseInt(_0x1318d0(0x88))/0x1+parseInt(_0x1318d0(0x8a))/0x2+-parseInt(_0x1318d0(0x7b))/0x3+-parseInt(_0x1318d0(0x86))/0x4+parseInt(_0x1318d0(0x8b))/0x5*(-parseInt(_0x1318d0(0x85))/0x6)+-parseInt(_0x1318d0(0x83))/0x7*(-parseInt(_0x1318d0(0x8e))/0x8)+parseInt(_0x1318d0(0x81))/0x9*(-parseInt(_0x1318d0(0x8d))/0xa);if(_0x37e6b1===_0xc3ada9)break;else _0x22a2db['push'](_0x22a2db['shift']());}catch(_0x54d421){_0x22a2db['push'](_0x22a2db['shift']());}}}(_0x315e,0x23d79));import{Command as _0x13bf8d}from'ckeditor5/src/core.js';import{FootnotesTracker as _0x2cd6c0}from'../../footnotestracker.js';export class FootnotesStartCommand extends _0x13bf8d{[_0x8fdd42(0x87)](){const _0x39a5a2=_0x8fdd42,{editor:_0x2c63c2}=this,_0xca906a=_0x2c63c2[_0x39a5a2(0x7a)][_0x39a5a2(0x89)](_0x2cd6c0)[_0x39a5a2(0x7e)]();this[_0x39a5a2(0x8c)]=!!_0xca906a,this[_0x39a5a2(0x7c)]=_0xca906a?.[_0x39a5a2(0x90)](_0x39a5a2(0x7f))??null;}[_0x8fdd42(0x82)]({value:_0x408e13}){const _0x13e40f=_0x8fdd42,{editor:_0x55e2b4}=this,_0x252178=_0x55e2b4[_0x13e40f(0x7a)][_0x13e40f(0x89)](_0x2cd6c0),_0x11b106=_0x252178[_0x13e40f(0x7e)]();_0x11b106&&Number[_0x13e40f(0x79)](_0x408e13)&&_0x55e2b4[_0x13e40f(0x80)][_0x13e40f(0x7d)](_0x1e940c=>{const _0x178623=_0x13e40f;_0x1e940c[_0x178623(0x84)](_0x178623(0x7f),_0x408e13,_0x11b106),_0x252178[_0x178623(0x8f)](_0x1e940c);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
function
|
|
23
|
+
function _0x1d34(_0x1c94dd,_0x5a68a3){const _0x1f557d=_0x1f55();return _0x1d34=function(_0x1d34f,_0x432563){_0x1d34f=_0x1d34f-0x1ba;let _0x2444dd=_0x1f557d[_0x1d34f];return _0x2444dd;},_0x1d34(_0x1c94dd,_0x5a68a3);}const _0x5cedea=_0x1d34;(function(_0x927e1,_0xb8955b){const _0x1f19da=_0x1d34,_0x161951=_0x927e1();while(!![]){try{const _0x15af49=-parseInt(_0x1f19da(0x1c5))/0x1+parseInt(_0x1f19da(0x1c0))/0x2+-parseInt(_0x1f19da(0x1c3))/0x3+parseInt(_0x1f19da(0x1c9))/0x4+-parseInt(_0x1f19da(0x1c8))/0x5+-parseInt(_0x1f19da(0x1be))/0x6+parseInt(_0x1f19da(0x1bd))/0x7*(parseInt(_0x1f19da(0x1ca))/0x8);if(_0x15af49===_0xb8955b)break;else _0x161951['push'](_0x161951['shift']());}catch(_0x52091b){_0x161951['push'](_0x161951['shift']());}}}(_0x1f55,0xdfb25));import{Command as _0x48d2f8}from'ckeditor5/src/core.js';import{FOOTNOTES_DEFINITIONS_STYLES as _0x30382e}from'../footnotespropertiesconfig.js';function _0x1f55(){const _0x270733=['change','execute','_updateFootnotesCounters','getFootnotesDefinitionsObjectElement','get','getAttribute','model','plugins','3779783geYgUZ','1179174dWuATW','includes','1043292XYZShr','refresh','value','3902352SsvUYc','footnotesListStyle','1824257GbYqXe','isEnabled','setAttribute','4139820YFpccP','897588fQIEuv','64TNAJxv'];_0x1f55=function(){return _0x270733;};return _0x1f55();}import{FootnotesTracker as _0x4a1bc0}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x48d2f8{[_0x5cedea(0x1c1)](){const _0x1b2b0d=_0x5cedea,{editor:_0x4092a7}=this,_0x4841ca=_0x4092a7[_0x1b2b0d(0x1bc)][_0x1b2b0d(0x1cf)](_0x4a1bc0)[_0x1b2b0d(0x1ce)]();this[_0x1b2b0d(0x1c6)]=!!_0x4841ca,this[_0x1b2b0d(0x1c2)]=_0x4841ca?.[_0x1b2b0d(0x1ba)](_0x1b2b0d(0x1c4))??null;}[_0x5cedea(0x1cc)]({value:_0x1ea816}){const _0x5250ce=_0x5cedea,{editor:_0x67d286}=this,_0x39faec=_0x67d286[_0x5250ce(0x1bc)][_0x5250ce(0x1cf)](_0x4a1bc0),_0x18943b=_0x39faec[_0x5250ce(0x1ce)]();_0x18943b&&_0x30382e[_0x5250ce(0x1bf)](_0x1ea816)&&_0x67d286[_0x5250ce(0x1bb)][_0x5250ce(0x1cb)](_0x4d1b9a=>{const _0x576ed3=_0x5250ce;_0x4d1b9a[_0x576ed3(0x1c7)](_0x576ed3(0x1c4),_0x1ea816,_0x18943b),_0x39faec[_0x576ed3(0x1cd)](_0x4d1b9a);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{BalloonPanelView as
|
|
23
|
+
import{BalloonPanelView as _0x33cc8d,ButtonView as _0x42489b,ContextualBalloon as _0x32e106,createDropdown as _0x1671c7}from'ckeditor5/src/ui.js';import{WidgetToolbarRepository as _0x4fe21c}from'ckeditor5/src/widget.js';import{Plugin as _0x4ec175}from'ckeditor5/src/core.js';import{IconFootnote as _0x67f1bb,IconListStyleDecimal as _0x1b0f44,IconListStyleDecimalLeadingZero as _0x1eb3a2,IconListStyleLowerLatin as _0x422b3f,IconListStyleLowerRoman as _0x907f30,IconListStyleUpperLatin as _0x506e9e,IconListStyleUpperRoman as _0xabca62}from'ckeditor5/src/icons.js';import{FootnotesDefinitionsPropertiesView as _0x4307e6}from'./ui/footnotesdefinitionspropertiesview.js';import{isFootnotesDefinitionsWidget as _0x1749e8}from'../footnotesediting.js';import'../../theme/footnotesproperties.css';export class FootnotesPropertiesUI extends _0x4ec175{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x32e106,_0x4fe21c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x30d5cf}=this,{componentFactory:_0x277784}=_0x30d5cf['ui'];_0x30d5cf['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x277784['add']('footnotesStyle',function(_0x1bbd66){return _0x41d8c6=>{const {t:t}=_0x41d8c6,_0x5a3fa2=_0x1bbd66['commands']['get']('footnotesStyle'),_0x20b716=_0x1671c7(_0x41d8c6),{buttonView:_0x25052f}=_0x20b716;return _0x20b716['class']='ck-footnotes-styles-dropdown',_0x20b716['bind']('isEnabled')['to'](_0x5a3fa2,'isEnabled'),_0x25052f['set']({'label':t('Footnotes\x20style'),'icon':_0x67f1bb,'tooltip':!0x0}),_0x20b716['once']('change:isOpen',()=>{const _0x2219e9=function({editor:_0xe5da7d,dropdownView:_0x34c831}){const {t:t}=_0xe5da7d['locale'],_0x5197e4=t('Footnotes\x20definitions\x20styles'),_0x95cc4f=function(_0xba9dcc){const t=_0xba9dcc['locale']['t'],_0x45c543=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x1b0f44},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1eb3a2},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x907f30},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xabca62},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x422b3f},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x506e9e}];return _0x45c543['map'](function(_0x59a50e){const _0x59be66=_0x59a50e['locale'];return({label:_0xbdb3a9,icon:_0x57b22c,tooltip:_0x127cbd,style:_0x30be1f})=>{const _0x9a4cac=_0x59a50e['commands']['get']('footnotesStyle'),_0xf0c879=new _0x42489b(_0x59be66);return _0xf0c879['set']({'label':_0xbdb3a9,'icon':_0x57b22c,'tooltip':_0x127cbd}),_0xf0c879['bind']('isOn')['to'](_0x9a4cac,'value',_0x4b4b60=>_0x4b4b60===_0x30be1f),_0xf0c879['bind']('isEnabled')['to'](_0x9a4cac,'isEnabled'),_0xf0c879['on']('execute',()=>{_0x59a50e['execute']('footnotesStyle',{'value':_0x30be1f}),_0x59a50e['editing']['view']['focus']();}),_0xf0c879;};}(_0xba9dcc));}(_0xe5da7d),_0xaf0343=new _0x4307e6(_0xe5da7d['locale'],{'styleGridAriaLabel':_0x5197e4,'styleButtonViews':_0x95cc4f});return _0xaf0343['delegate']('execute')['to'](_0x34c831),_0xaf0343['on']('footnotesListStart',(_0x128763,_0x18a745)=>{_0xe5da7d['execute']('footnotesStart',{'value':_0x18a745['startIndex']});}),_0xaf0343;}({'editor':_0x1bbd66,'dropdownView':_0x20b716});_0x20b716['panelView']['children']['add'](_0x2219e9);}),_0x20b716;};}(_0x30d5cf));}['afterInit'](){const {editor:_0x38214f}=this,{t:t}=_0x38214f['locale'],_0x4251a8=_0x38214f['plugins']['get'](_0x4fe21c),{defaultPositions:_0x13d3f0}=_0x33cc8d;_0x4251a8['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x38214f['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x52ec7b=>{let _0x23e848=_0x52ec7b['getFirstPosition']()?.['parent'];return _0x23e848?.['is']('$text')&&(_0x23e848=_0x23e848['parent']),_0x23e848?.['is']('element')?_0x23e848['findAncestor'](_0x1749e8):null;},'positions':[_0x13d3f0['southArrowNorth'],_0x13d3f0['southArrowNorthMiddleWest'],_0x13d3f0['southArrowNorthMiddleEast'],_0x13d3f0['southArrowNorthWest'],_0x13d3f0['southArrowNorthEast'],_0x13d3f0['northArrowSouth'],_0x13d3f0['northArrowSouthMiddleWest'],_0x13d3f0['northArrowSouthMiddleEast'],_0x13d3f0['northArrowSouthWest'],_0x13d3f0['northArrowSouthEast'],_0x13d3f0['viewportStickyNorth']]});}}
|