@ckeditor/ckeditor5-footnotes 47.4.0-alpha.2 → 47.4.0-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>T,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>Z,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["values","getElementKey","has","rootName","_model","4FTtcvW","element","attributes","$graveyard","_trackedElements","createRangeOn","$text","set","2034432fSkmIF","position","690603yJkRRC","reset","getChanges","getItems","9461600eVttfj","get","remove","4361460TesKOZ","insert","nodeAfter","root","push","4428851OUXnQE","type","length","_elementName","elementName","816650XHbtLq","527WsCXIw","slice","from","clear","delete","add","1910gptmUM","name","flat","_getElementKey","8FMgCSi"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(377915===parseInt(e(359))/1*(-parseInt(e(365))/2)+-parseInt(e(385))/3*(-parseInt(e(375))/4)+-parseInt(e(358))/5+parseInt(e(348))/6+-parseInt(e(353))/7*(parseInt(e(369))/8)+-parseInt(e(383))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(374)];[a(356)];[a(368)];[a(379)]=new Map;constructor(t,e){const o=a;this[o(374)]=t,this[o(356)]=e[o(357)],this[o(368)]=e[o(371)]}[a(386)](){const t=a;this[t(379)][t(362)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(349)===i[e(354)]&&e(381)!==i[e(366)]&&i[e(384)][e(350)]){const t=this[e(374)][e(380)](i[e(384)][e(350)]);for(const o of t[e(388)]()){if(!o.is(e(376),this[e(356)]))continue;const t=this[e(368)](o);n[e(372)](t)||n[e(382)](t,[]),n[e(346)](t)[e(352)](o)}}if(e(347)===i[e(354)]&&i[e(366)]===this[e(356)]){const t=this[e(368)]({getAttribute:t=>i[e(377)][e(346)](t)});o[e(364)](t)}}for(const[t,n]of this[e(379)])e(378)===n[e(351)][e(373)]&&o[e(364)](t);for(const t of o)this[e(379)][e(363)](t);for(const[t,o]of n)this[e(379)][e(382)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(372)](t)&&(i[e(364)](s[0]),s[e(355)]>1?n[e(382)](t,s[e(360)](1)):n[e(363)](t),o[e(363)](t));return{removed:Array[e(361)](o),inserted:Array[e(361)](n[e(370)]())[e(367)](),moved:Array[e(361)](i)}}}const u=h;function f(){const t=["createRangeIn","reference","_footnotes","668390aOxUKn","footnotesDefinitions","enqueueChange","_handleFootnoteReferencesChanges","reset","388530WqsqmB","_handleFootnotesDefinitionsObjectChanges","before","getFootnotesFormatter","some","footnoteInlineContent","add","document","splice","getAttribute","indexOf","from","1501339XihKZn","compareWith","_handleMovedFootnoteReference","push","parent","getFootnote","definition","isOfficialPlugin","config","_ensureFootnotesReferencesHaveProperOrder","init","root","unshift","$graveyard","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","_footnoteFormatter","low","registerPostFixer","find","502080AxDlLV","isEqual","model","listenTo","setFootnoteFormatter","min","_handleRemoveFootnoteReferenceById","change:data","editor","171976XgIWET","234262DdAhyd","set","getFootnotes","getChanges","createPositionAt","end","_footnotesDefinitions","paragraph","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesDefinitionsContainerExists","footnoteRef","findIndex","after","footnotes.multiBlock","_footnoteDefsContainerTracker","singleton","getRootNames","_sortFootnoteDefinitions","6RheuBj","footnoteDefinition","footnoteCounter","rootName","FootnotesTracker","childCount","_footnoteRefsTracker","pluginName","footnoteId","insert","6GryiZS","9dcYvZd","length","move","differ","createElement","setAttribute","createPositionBefore","255135bnFYEL","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","append","high","remove","has","map","getFootnotesDefinitionsObjectElement","getChildren","createRangeOn","get","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(142797===parseInt(e(334))/1+-parseInt(e(392))/2+-parseInt(e(363))/3*(parseInt(e(324))/4)+parseInt(e(371))/5*(parseInt(e(353))/6)+parseInt(e(303))/7+parseInt(e(333))/8+parseInt(e(364))/9*(parseInt(e(387))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(386)]=[];[u(340)]=null;[u(320)]=null;[u(349)];[u(359)];[u(342)];static get[u(360)](){return u(357)}static get[u(310)](){return!0}static get[u(372)](){return!0}constructor(t){const e=u;super(t),this[e(349)]=new l(this[e(332)][e(326)],{elementName:e(388),getElementKey:()=>e(350)}),this[e(359)]=new l(this[e(332)][e(326)],{elementName:e(345),getElementKey:t=>t[e(401)](e(361))}),this[e(342)]=new l(this[e(332)][e(326)],{elementName:e(354),getElementKey:t=>t[e(401)](e(361))})}[u(313)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(399)][t(322)](e=>{const n=t,i=o[n(399)][n(367)][n(337)]();let s=!1;return this[n(393)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(312)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(352)](e)&&(s=!0),s}),this[t(327)](o[t(399)],t(331),()=>{const e=t;o[e(389)]({isUndoable:!1},t=>{this[e(344)](t)})},{priority:t(321)}),this[t(327)](n,t(335),()=>{const e=t;this[e(386)]=[],this[e(349)][e(391)](),this[e(359)][e(391)](),this[e(342)][e(391)]()},{priority:t(375)})}[u(379)](){return this[u(340)]}[u(308)](t){const e=u;return this[e(386)][e(323)](e=>e.id===t)||null}[u(336)](){const t=u;return Array[t(403)](this[t(386)])}[u(395)](){return this[u(320)]}[u(328)](t){this[u(320)]=t}[u(343)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(386)][o(365)];i++)this[o(317)](t,i)&&(n=!0);return n}[u(373)](t,e){const o=u,n=t[o(368)](o(388),{});return t[o(374)](n,e),this[o(340)]=n,n}[u(344)](t){const e=u;if(!this[e(386)][e(365)]||this[e(340)])return;const o=this[e(386)][0][e(385)][e(314)],n=this[e(373)](t,o);for(const o of this[e(386)])o[e(309)][e(307)]||t[e(362)](o[e(309)],n,e(339));this[e(343)](t)}[u(393)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(349)][o(337)](e);if(r[o(365)]&&(this[o(340)]=r[0]),i[o(365)])if(i[o(365)]>1||this[o(340)]&&i[o(396)](t=>t!==this[o(340)])){const e=t[o(368)](o(388),{}),s=[];this[o(340)]&&s[o(306)](this[o(340)]),s[o(306)](...i),t[o(362)](e,s[0],o(394));for(const n of s)t[o(366)](t[o(384)](n),t[o(338)](e,o(339))),t[o(376)](n);this[o(340)]=e,this[o(343)](t),n=!0}else this[o(340)]=i[0];if(s[o(365)]&&o(316)===this[o(340)]?.[o(314)][o(356)]){for(const e of this[o(386)])t[o(376)](e[o(385)]),n=!0;this[o(386)]=[],this[o(340)]=null}return n}[u(383)](t,e){const o=u;let n=!1;const i=this[o(332)][o(311)][o(382)](o(348)),{inserted:s,moved:r}=this[o(342)][o(337)](e);for(const e of[...r,...s]){const s=e[o(401)](o(361)),r=this[o(308)](s);r&&(r[o(309)]=e),p(t,i,e)&&(n=!0)}return n}[u(390)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(359)][o(337)](e);for(const e of i)this[o(330)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(305)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(340)])return!1;let o=!1;if(this[e(340)][e(358)]!==this[e(386)][e(365)]){const n=[];for(const t of this[e(340)][e(380)]()){const i=t[e(401)](e(361));this[e(308)](i)||(n[e(315)](t),o=!0)}for(const o of n)t[e(376)](o)}const n=new Set,i=[];for(const t of this[e(340)][e(380)]()){const s=t[e(401)](e(361));n[e(377)](s)?(i[e(315)](t),o=!0):n[e(398)](s)}for(const o of i)t[e(376)](o);return this[e(340)][e(358)]||(t[e(376)](this[e(340)]),this[e(340)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(386)][o(323)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(401)](o(361)),s=this[o(386)][o(346)](t=>t.id===i);-1!==s&&(t[o(376)](this[o(386)][s][o(385)]),this[o(386)][o(400)](s,1),n=!0);let r=this[o(340)]?function(t,e){const n=o;for(const o of t[n(380)]())if(o[n(401)](n(361))===e)return o;return null}(this[o(340)],i):null;r||(r=t[o(368)](o(354),{footnoteId:i}),this[o(340)]&&(t[o(362)](r,this[o(340)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(332)][o(326)],this[o(386)],e);this[o(386)][o(400)](c,0,a);let l=c;return-1!==s&&(l=Math[o(329)](c,s)),this[o(343)](t,l)&&(n=!0),n}[u(330)](t,e){const o=u,n=this[o(386)][o(346)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(386)][n];return o(316)!==s[o(309)][o(314)][o(356)]&&(t[o(376)](s[o(309)]),i=!0),this[o(386)][o(400)](n,1),this[o(343)](t,n)&&(i=!0),i}[u(305)](t,e){const o=u,n=e[o(401)](o(361)),i=this[o(386)][o(346)](t=>t.id===n),s=this[o(386)][i];let r=!1;s[o(385)]=e,this[o(386)][o(400)](i,1);const a=m(this[o(332)][o(326)],this[o(386)],e);return this[o(386)][o(400)](a,0,s),this[o(343)](t,Math[o(329)](i,a))&&(r=!0),r}[u(317)](t,e){const o=u;if(!this[o(340)])return!1;const n=this[o(386)][e];let i;return i=this[o(320)]?this[o(320)]({footnote:n,container:this[o(340)],digits:String(this[o(386)][o(365)])[o(365)],value:e+1}):String(e+1),n[o(385)][o(401)](o(355))!=i&&(t[o(369)](o(355),i,n[o(385)]),!0)}[u(352)](t){const e=u;if(!this[e(340)]||this[e(386)][e(365)]<2)return!1;if(function(t,o){const n=e;if(t[n(365)]!==o[n(365)])return!1;for(let e=0;e<t[n(365)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(386)][e(378)](t=>t.id),Array[e(403)](this[e(340)][e(380)]())[e(378)](t=>t[e(401)](e(361)))))return!1;let o=!1;for(let n=0;n<this[e(386)][e(365)];n++){const i=this[e(386)][n],s=t[e(370)](i[e(309)]),r=t[e(338)](this[e(340)],n);s[e(325)](r)||(t[e(366)](t[e(381)](i[e(309)]),r),o=!0)}return o}[u(312)](t){const e=u;if(!this[e(386)][e(365)])return!1;const{model:o}=this[e(332)];let n=!1;for(let i=0;i<this[e(386)][e(365)]-1;i++){const s=this[e(386)][i],r=this[e(386)][i+1],a=o[e(370)](s[e(385)]),c=o[e(370)](r[e(385)]);e(347)===a[e(304)](c)&&(this[e(305)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=f();return(h=function(t,e){return o[t-=303]})(t,e)}function p(t,e,o){const n=u;if(o[n(358)])return!1;const i=n(e?341:397);return t[n(362)](t[n(368)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(365)])return 0;const i=t[n(370)](o);for(let o=0;o<e[n(365)];o++){const s=e[o],r=t[n(370)](s[n(385)]);if(n(394)===i[n(304)](r))return o}const s=o[n(314)];let r=-1;for(let t=e[n(365)]-1;t>=0;t--)if(e[t][n(385)][n(314)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(399)][n(351)](),c=a[n(402)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(365)];t++)if(e[t][n(385)][n(314)][n(356)]===l)return t;return e[n(365)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=224]})(t,e)}function y(){const t=["getFirstRange","302vytRCU","insertObject","FootnotesEditing","isEnabled","4LEzJMt","createElement","length","5832670SgpOuq","footnoteId","string","1678002zFBGYw","execute","insert-footnote-command-executed-with-invalid-id","editor","_getPositionToInsertFootnote","checkChild","1077fiahSL","7365696kwoJav","end","footnoteRef","getItems","document","selection","refresh","isObject","1058504zTVyhx","3667405DhpGoD","18065853BhTQjI","get","_moveSelectionToFootnoteDefinition","change","plugins","model","isBlock","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(646354===parseInt(e(237))/1*(parseInt(e(257))/2)+-parseInt(e(231))/3+parseInt(e(225))/4*(parseInt(e(228))/5)+parseInt(e(238))/6+parseInt(e(247))/7+parseInt(e(246))/8+-parseInt(e(248))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(244)](){const t=g,e=this[t(234)][t(253)][t(242)][t(243)],o=this[t(235)](e);this[t(224)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(242)],r=this[e(235)](s);if(!r)return;const a=o[e(252)][e(249)](e(259)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(230)==typeof t&&t[o(227)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(233)):(n[e(251)](t=>{const o=e,i=t[o(226)](o(240),{footnoteId:c});n[o(258)](i,r,null)}),a[e(250)](c))}[g(235)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(241)]())if(n[e(254)](t)||n[e(245)](t))return null;const s=i[e(239)];return n[e(236)](s,e(240))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768003200;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var A=o(331);const D=L;function P(){const t=["FootnotesClipboard","init","getData","document","data","getFootnote","reduce","stringify","pluginName","getFirstRange","getSelectedBlocks","drop","change","4865778dxKFsz","20946339MFpbcK","footnoteId","listenTo","create","toView","keys","getAttribute","getChildren","end","isOfficialPlugin","contentInsertion","push","dataTransfer","content","requires","editing","parse","setAttribute","27595XGnKUI","4176920sFwkid","footnotesDefinitions","add","string","get","application/ckeditor5-footnotes","footnoteRef","flatMap","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","entries","root","422352gtbLoc","from","length","getFootnotes","228iHgonL","createElement","createRangeIn","clipboardInput","append","editor","cloneElement","getRanges","remove","sourceEditorId","footnoteInlineContent","7JdMekC","hasAttribute","toData","toModel","96085YhlIJc","setData","method","_handlePasteFootnotesDefinitions","insert","footnotes.multiBlock","htmlProcessor","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","1089045UlGADD","find","selection","element","footnoteDefinition","definition","includes","_handleCopyFootnotesDefinitions","config"];return(P=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(623956===parseInt(e(432))/1+parseInt(e(413))/2+-parseInt(e(441))/3+parseInt(e(417))/4*(-parseInt(e(399))/5)+-parseInt(e(380))/6*(parseInt(e(428))/7)+-parseInt(e(400))/8+parseInt(e(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(P);class T extends t.Plugin{static get[D(375)](){return D(450)}static get[D(395)](){return[v,A.ClipboardPipeline]}static get[D(390)](){return!0}static get[D(410)](){return!0}[D(368)](){this[D(409)]()}[D(409)](){const t=D;this[t(448)](),this[t(435)]()}[D(448)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](A.ClipboardPipeline),s=o[t(404)](d);this[t(383)](i,t(439),(o,i)=>{const r=t,a=O(n[r(419)](i[r(394)]));if(!a[r(415)])return;const c=s[r(416)](),l=a[r(373)]((t,o)=>{const n=r,i=c[n(442)](t=>t.id===o);if(i){const o=e[n(371)][n(385)](i[n(446)],{isClipboardPipeline:!0}),s=e[n(371)][n(438)][n(430)](o);t[i.id]=s}return t},Object[r(384)](null));i[r(393)][r(433)](r(405),JSON[r(374)](l))})}[D(435)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(396)],r=n[t(404)](A.ClipboardPipeline),a=n[t(404)](d),c=e[t(449)][t(404)](t(437));let l=null;this[t(383)](s[t(370)],t(420),(e,o)=>{const n=t,i=o[n(393)][n(369)](n(405));l=i?JSON[n(397)](i):null}),this[t(383)](r,t(391),(n,s)=>{const r=t,u=s[r(426)]===this[r(422)].id;u&&r(378)===s[r(434)]||o[r(379)](t=>{const n=r;let f=a[n(408)]();const d=!!f&&Array[n(414)](o[n(370)][n(443)][n(377)]())[n(447)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(444),e(406)))return!0;return!1}(o[n(419)](s[n(394)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(384)](null);for(const e of i[o(388)]())e.is(o(444),o(445))&&e[o(429)](o(382))&&(s[e[o(387)](o(382))]=t[o(423)](e,!0));return Object[o(386)](s)[o(415)]?s:null}(t,s[n(394)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(419)](e))n.is(o(444),o(401))&&i[o(392)](n);for(const e of i)t[o(425)](e)}(t,s[n(394)]),!l)return;const{selection:h}=o[n(370)],p=h[n(376)]()[n(412)];f&&!d||(f=_(t,s[n(394)]),f||=a[n(440)](t,p));const m=Array[n(414)](h[n(424)]())[n(407)](O),g=function(t,e,o){const s=n,r=Object[s(384)](null);for(const{item:n}of t[s(419)](e))if(n.is(s(444),s(406))){const e=n[s(387)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(398)](s(382),r[e],n)}return r}(t,s[n(394)],t=>{const e=n;return!u||!!a[e(372)](t)&&!m[e(447)](t)});for(const[o,i]of Object[n(411)](l)){const s=g[o]||o;let r;if(n(403)!=typeof i)r=i,s!==o&&t[n(398)](n(382),s,r);else{r=t[n(418)](n(445),{footnoteId:s});const o=e[n(371)][n(438)][n(385)](i);let a;if(c)a=e[n(371)][n(431)](o,r);else{a=t[n(418)](n(427));const i=e[n(371)][n(431)](o,a);t[n(436)](i,a)}t[n(421)](a,r)}t[n(436)](r,f,n(389))}l=null})})}}function _(t,e){const o=D;for(const{item:n}of t[o(419)](e))if(n.is(o(444),o(401)))return n;return null}function L(t,e){const o=P();return(L=function(t,e){return o[t-=368]})(t,e)}function O(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(444),e(406))&&o[e(402)](n[e(387)](e(382)));return Array[e(414)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),G=o.n(z),W=o(741),H=o.n(W),X=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=G(),q.insert=U().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();K()(X.A,q);X.A&&X.A.locals&&X.A.locals;class Z extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,V.ButtonView)),e.add("menuBar:insertFootnote",Y(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var J=Q;function Q(t,e){var o=$();return(Q=function(t,e){return o[t-=376]})(t,e)}function $(){var t=["94IknNSJ","pluginName","6eZOYlw","7035014zWQwbV","19079bmRObX","5205456CYpNws","1293978HZrFOp","855729QgpBju","requires","isPremiumPlugin","2978040GXUMZB","3793365HYSxGn","Footnotes","isOfficialPlugin","24geqvqB"];return($=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(802701===parseInt(e(385))/1*(-parseInt(e(381))/2)+-parseInt(e(387))/3+parseInt(e(386))/4+-parseInt(e(377))/5+-parseInt(e(383))/6*(-parseInt(e(384))/7)+parseInt(e(380))/8*(parseInt(e(388))/9)+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[J(382)](){return J(378)}static get[J(389)](){return[v,T,Z]}static get[J(379)](){return!0}static get[J(390)](){return!0}}const et=nt;function ot(){const t=["lower-alpha","70jOgChI","38058DfGjOz","3245232RdwFus","decimal","526339Gzbled","2091DgxtZk","474653jcpMYZ","upper-roman","1405670qVOqOE","1516atpnku","5232852zmtYFL","lower-latin","decimal-leading-zero","4QekAhu","lower-roman","upper-latin","364enEPot","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(291924===parseInt(e(471))/1+-parseInt(e(455))/2*(-parseInt(e(470))/3)+-parseInt(e(459))/4*(-parseInt(e(473))/5)+parseInt(e(466))/6*(parseInt(e(462))/7)+-parseInt(e(467))/8+-parseInt(e(456))/9+-parseInt(e(465))/10*(parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(468),et(458),et(457),et(461),et(464),et(463),et(460),et(472)],st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=379]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(440716===-parseInt(e(404))/1*(parseInt(e(388))/2)+-parseInt(e(380))/3*(parseInt(e(395))/4)+parseInt(e(396))/5+-parseInt(e(382))/6+parseInt(e(392))/7*(-parseInt(e(386))/8)+-parseInt(e(381))/9*(parseInt(e(379))/10)+parseInt(e(401))/11*(parseInt(e(389))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(397)](){const t=st,{editor:e}=this,o=e[t(398)][t(402)](d)[t(384)]();this[t(391)]=!!o,this[t(394)]=o?.[t(400)](t(387))??null}[st(393)]({value:t}){const e=st,{editor:o}=this,n=o[e(398)][e(402)](d),i=n[e(384)]();i&&it[e(399)](t)&&o[e(385)][e(383)](o=>{const s=e;o[s(403)](s(387),t,i),n[s(390)](o)})}}function ct(){const t=["2952mGZGmA","footnotesListStyle","2bJlFNB","13344108wxUcct","_updateFootnotesCounters","isEnabled","9611GPwHNn","execute","value","312020JftpCX","1642955wsyOHx","refresh","plugins","includes","getAttribute","22gbOXCP","get","setAttribute","207219PGvsES","1297470iHZfXP","15njBDqo","45vlMNDK","2155662kQpXVP","change","getFootnotesDefinitionsObjectElement","model"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(785738===-parseInt(e(438))/1+-parseInt(e(448))/2+parseInt(e(430))/3+parseInt(e(442))/4*(parseInt(e(447))/5)+parseInt(e(428))/6+parseInt(e(443))/7*(parseInt(e(445))/8)+-parseInt(e(436))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(444)][t(437)](d)[t(439)]();this[t(449)]=!!o,this[t(434)]=o?.[t(433)](t(429))??null}[lt(441)]({value:t}){const e=lt,{editor:o}=this,n=o[e(444)][e(437)](d),i=n[e(439)]();i&&Number[e(446)](t)&&o[e(431)][e(427)](o=>{const s=e;o[s(432)](s(429),t,i),n[s(435)](o)})}}function dt(){const t=["1179954SYZhqo","model","setAttribute","getAttribute","value","_updateFootnotesCounters","19310292dcZHZK","get","531929SSzcNG","getFootnotesDefinitionsObjectElement","refresh","execute","1683224sSMMHd","1253trpxdE","plugins","21544YGvFFh","isInteger","15GnkXoG","158936PxjZKw","isEnabled","change","8429640OPmBMQ","footnotesListStart"];return(dt=function(){return t})()}function ht(){const t=["footnotesListStyle","find","4942840lyHVfI","fromCharCode","editor","75736beoTBy","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","floor","isPremiumPlugin","type","_getDefaultListStyle","element:ol","name","_defineFormatter","lower-latin","writer","get","81cNoOiw","config","getChanges","createRangeOn","commands","start","_defineSchema","upper-roman","1224767sDTlCY","schema","removeStyle","8842932eGWUjO","_definePostfixer","document","consumable","extend","removeAttribute","footnotesListStart","mapper","setAttribute","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","FootnotesPropertiesEditing","padStart","3067911eYmYFj","upper-alpha","toViewElement","footnotesDefinitions","registerPostFixer","_defineConverters","isNaN","upcast","268279CtUXgd","modelCursor","differ","footnotesStyle","decimal-leading-zero","downcast","_formatFootnoteListValue","_getDefaultStartIndex","viewItem","lower-roman","define","attribute:footnotesListStart:footnotesDefinitions","insert","from","setStyle","pluginName","getAttribute","model","footnotes-list","parseInt","290MTXlMa","consume","getChildren","for","hasAttribute","toUpperCase","getStyle","max","plugins","hasClass","list-style-type","nodeAfter","init","getItems","$text","attribute:footnotesListStyle:footnotesDefinitions","element","upper-latin","decimal","position","item","4402578DjKoTG","setFootnoteFormatter","2butkdE","checkAttribute","footnotesStart","toLowerCase","5lEPyZs","parent","_updateFootnotesCounters","add","requires","24BKRMbn"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=252]})(t,e)}const mt=pt;!function(t){const e=pt,o=t();for(;;)try{if(770621===-parseInt(e(316))/1*(-parseInt(e(280))/2)+-parseInt(e(308))/3*(-parseInt(e(295))/4)+parseInt(e(284))/5*(parseInt(e(278))/6)+-parseInt(e(292))/7+parseInt(e(289))/8*(-parseInt(e(332))/9)+-parseInt(e(257))/10*(parseInt(e(340))/11)+parseInt(e(319))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[mt(252)](){return mt(330)}static get[mt(288)](){return[v,d]}static get[mt(296)](){return!0}static get[mt(299)](){return!0}[mt(269)](){const t=mt,{editor:e}=this;e[t(309)][t(350)](t(297),t(275)),e[t(309)][t(350)](t(329),1),e[t(312)][t(287)](t(343),new at(e)),e[t(312)][t(287)](t(282),new ft(e)),this[t(314)](),this[t(337)](),this[t(304)](),this[t(320)]()}[mt(314)](){const t=mt,{editor:e}=this,{schema:o}=e[t(254)];o[t(323)](t(335),{allowAttributes:[t(290),t(325)]})}[mt(337)](){const t=mt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(260)](t(339))[t(287)](e=>{const o=t;e.on(o(302),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(341)]?.[s(285)];r[s(266)](s(255))&&a?.is(s(273),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(325)))return;let r=1;const a=o[i(322)][i(258)](t,{attributes:i(313)});if(a){const e=Number[i(256)](t[i(253)](i(313)),10);Number[i(338)](e)||(r=e)}!a&&e[i(261)](i(325))||o[i(306)][i(327)](i(325),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(290)))return;let r=i(275),a=!1;if(o[i(322)][i(258)](t,{attributes:i(300)})){const e={1:i(275),a:i(328),A:i(333),i:i(349),I:i(315)}[t[i(253)](i(300))];e&&(r=e),a=!0}o[i(322)][i(258)](t,{styles:i(267)})&&(r=function(t){const e=i;switch(t){case e(328):return e(305);case e(333):return e(274);default:return t}}(t[i(263)](i(267))),a=!0),!a&&e[i(261)](i(290))||o[i(306)][i(327)](i(290),r,e)}(r,a,n,i))})}),o[t(260)](t(345))[t(287)](e=>{const o=t;e.on(o(351),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;null==r||1===r?n[i(306)][i(324)](i(313),s):n[i(306)][i(327)](i(313),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(306)][i(354)](i(267),r,s):n[i(306)][i(318)](i(267),s)})})}[mt(320)](){const t=mt,{editor:e}=this,{model:o}=e,n=e[t(265)][t(307)](d),i=this[t(301)](),s=this[t(347)]();o[t(321)][t(336)](e=>{const r=t,a=o[r(321)][r(342)][r(310)]();let c=!1;for(const t of a){if(r(352)!==t[r(300)]||r(271)===t[r(303)])continue;const n=o[r(311)](t[r(276)][r(268)]);for(const t of n[r(270)]())t.is(r(273),r(335))&&(!t[r(261)](r(325))&&o[r(317)][r(281)](t,r(325))&&(e[r(327)](r(325),s,t),c=!0),!t[r(261)](r(290))&&o[r(317)][r(281)](t,r(290))&&(e[r(327)](r(290),i,t),c=!0))}return c&&n[r(286)](e),c})}[mt(304)](){const t=mt,{editor:e}=this;e[t(265)][t(307)](d)[t(279)](e=>this[t(346)](e))}[mt(301)](){const t=mt;return this[t(294)][t(309)][t(307)](t(297))}[mt(347)](){const t=mt;return this[t(294)][t(309)][t(307)](t(329))}[mt(346)]({container:t,value:e,digits:o}){const n=mt,i=t[n(253)](n(290)),s=t[n(253)](n(325)),r=Math[n(298)](e)+(s??1)-1;switch(i){case n(344):return function(t,e){const o=n;return String(t)[o(331)](e,"0")}(r,Math[n(264)](2,o));case n(328):case n(305):return yt(r,!1);case n(333):case n(274):return yt(r,!0);case n(349):return vt(r,!1);case n(315):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=mt,n=e[o(334)](t);return Array[o(353)](n[o(259)]())[o(291)](t=>t.is(o(273),"ol")&&t[o(266)](o(255)))}function yt(t,e){const o=mt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(298)]((i-1)/26)}return e?n[o(262)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=mt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(283)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=G(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=496]})(t,e)}function St(){var t=["isPremiumPlugin","1606263vJWwNz","4087611rGubAR","6fvDsgL","335sAxNTx","13864360oLMQXy","1524719OBodCT","isOfficialPlugin","272GFyyDp","requires","260721rsrKEA","FootnotesProperties","98284IuAlQY","110MtEonD","pluginName","8974hwQzuN"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(936706===-parseInt(e(497))/1*(-parseInt(e(506))/2)+-parseInt(e(499))/3+parseInt(e(510))/4*(-parseInt(e(502))/5)+-parseInt(e(501))/6*(-parseInt(e(504))/7)+parseInt(e(503))/8+parseInt(e(508))/9*(parseInt(e(511))/10)+-parseInt(e(500))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class At extends t.Plugin{static get[xt(496)](){return xt(509)}static get[xt(507)](){return[gt,Ft]}static get[xt(505)](){return!0}static get[xt(498)](){return!0}}function Dt(){var t=["1827545VKwdnF","218745XiWyLU","1882320GAFDsB","1113066hrhcjS","147WBEdae","1171896yTunLG","4BolARx","150VLLFir","1587754iRAQED","590AdQILV"];return(Dt=function(){return t})()}function Pt(t,e){var o=Dt();return(Pt=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(211537===parseInt(e(192))/1*(parseInt(e(187))/2)+parseInt(e(191))/3+parseInt(e(184))/4*(parseInt(e(188))/5)+-parseInt(e(193))/6+parseInt(e(186))/7+-parseInt(e(190))/8+parseInt(e(189))/9*(-parseInt(e(185))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["values","getElementKey","has","rootName","_model","4FTtcvW","element","attributes","$graveyard","_trackedElements","createRangeOn","$text","set","2034432fSkmIF","position","690603yJkRRC","reset","getChanges","getItems","9461600eVttfj","get","remove","4361460TesKOZ","insert","nodeAfter","root","push","4428851OUXnQE","type","length","_elementName","elementName","816650XHbtLq","527WsCXIw","slice","from","clear","delete","add","1910gptmUM","name","flat","_getElementKey","8FMgCSi"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=345]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(377915===parseInt(e(359))/1*(-parseInt(e(365))/2)+-parseInt(e(385))/3*(-parseInt(e(375))/4)+-parseInt(e(358))/5+parseInt(e(348))/6+-parseInt(e(353))/7*(parseInt(e(369))/8)+-parseInt(e(383))/9+parseInt(e(345))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(374)];[a(356)];[a(368)];[a(379)]=new Map;constructor(t,e){const o=a;this[o(374)]=t,this[o(356)]=e[o(357)],this[o(368)]=e[o(371)]}[a(386)](){const t=a;this[t(379)][t(362)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(349)===i[e(354)]&&e(381)!==i[e(366)]&&i[e(384)][e(350)]){const t=this[e(374)][e(380)](i[e(384)][e(350)]);for(const o of t[e(388)]()){if(!o.is(e(376),this[e(356)]))continue;const t=this[e(368)](o);n[e(372)](t)||n[e(382)](t,[]),n[e(346)](t)[e(352)](o)}}if(e(347)===i[e(354)]&&i[e(366)]===this[e(356)]){const t=this[e(368)]({getAttribute:t=>i[e(377)][e(346)](t)});o[e(364)](t)}}for(const[t,n]of this[e(379)])e(378)===n[e(351)][e(373)]&&o[e(364)](t);for(const t of o)this[e(379)][e(363)](t);for(const[t,o]of n)this[e(379)][e(382)](t,o[o[e(355)]-1]);const i=new Set;for(const[t,s]of n)o[e(372)](t)&&(i[e(364)](s[0]),s[e(355)]>1?n[e(382)](t,s[e(360)](1)):n[e(363)](t),o[e(363)](t));return{removed:Array[e(361)](o),inserted:Array[e(361)](n[e(370)]())[e(367)](),moved:Array[e(361)](i)}}}const u=h;function f(){const t=["createRangeIn","reference","_footnotes","668390aOxUKn","footnotesDefinitions","enqueueChange","_handleFootnoteReferencesChanges","reset","388530WqsqmB","_handleFootnotesDefinitionsObjectChanges","before","getFootnotesFormatter","some","footnoteInlineContent","add","document","splice","getAttribute","indexOf","from","1501339XihKZn","compareWith","_handleMovedFootnoteReference","push","parent","getFootnote","definition","isOfficialPlugin","config","_ensureFootnotesReferencesHaveProperOrder","init","root","unshift","$graveyard","_updateFootnoteRefCounter","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","_footnoteFormatter","low","registerPostFixer","find","502080AxDlLV","isEqual","model","listenTo","setFootnoteFormatter","min","_handleRemoveFootnoteReferenceById","change:data","editor","171976XgIWET","234262DdAhyd","set","getFootnotes","getChanges","createPositionAt","end","_footnotesDefinitions","paragraph","_footnoteDefsTracker","_updateFootnotesCounters","_ensureFootnotesDefinitionsContainerExists","footnoteRef","findIndex","after","footnotes.multiBlock","_footnoteDefsContainerTracker","singleton","getRootNames","_sortFootnoteDefinitions","6RheuBj","footnoteDefinition","footnoteCounter","rootName","FootnotesTracker","childCount","_footnoteRefsTracker","pluginName","footnoteId","insert","6GryiZS","9dcYvZd","length","move","differ","createElement","setAttribute","createPositionBefore","255135bnFYEL","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","append","high","remove","has","map","getFootnotesDefinitionsObjectElement","getChildren","createRangeOn","get","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}!function(t){const e=h,o=t();for(;;)try{if(142797===parseInt(e(334))/1+-parseInt(e(392))/2+-parseInt(e(363))/3*(parseInt(e(324))/4)+parseInt(e(371))/5*(parseInt(e(353))/6)+parseInt(e(303))/7+parseInt(e(333))/8+parseInt(e(364))/9*(parseInt(e(387))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class d extends t.Plugin{[u(386)]=[];[u(340)]=null;[u(320)]=null;[u(349)];[u(359)];[u(342)];static get[u(360)](){return u(357)}static get[u(310)](){return!0}static get[u(372)](){return!0}constructor(t){const e=u;super(t),this[e(349)]=new l(this[e(332)][e(326)],{elementName:e(388),getElementKey:()=>e(350)}),this[e(359)]=new l(this[e(332)][e(326)],{elementName:e(345),getElementKey:t=>t[e(401)](e(361))}),this[e(342)]=new l(this[e(332)][e(326)],{elementName:e(354),getElementKey:t=>t[e(401)](e(361))})}[u(313)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(399)][t(322)](e=>{const n=t,i=o[n(399)][n(367)][n(337)]();let s=!1;return this[n(393)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(390)](e,i)&&(s=!0),this[n(312)](e)&&(s=!0),this[n(318)](e)&&(s=!0),this[n(352)](e)&&(s=!0),s}),this[t(327)](o[t(399)],t(331),()=>{const e=t;o[e(389)]({isUndoable:!1},t=>{this[e(344)](t)})},{priority:t(321)}),this[t(327)](n,t(335),()=>{const e=t;this[e(386)]=[],this[e(349)][e(391)](),this[e(359)][e(391)](),this[e(342)][e(391)]()},{priority:t(375)})}[u(379)](){return this[u(340)]}[u(308)](t){const e=u;return this[e(386)][e(323)](e=>e.id===t)||null}[u(336)](){const t=u;return Array[t(403)](this[t(386)])}[u(395)](){return this[u(320)]}[u(328)](t){this[u(320)]=t}[u(343)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(386)][o(365)];i++)this[o(317)](t,i)&&(n=!0);return n}[u(373)](t,e){const o=u,n=t[o(368)](o(388),{});return t[o(374)](n,e),this[o(340)]=n,n}[u(344)](t){const e=u;if(!this[e(386)][e(365)]||this[e(340)])return;const o=this[e(386)][0][e(385)][e(314)],n=this[e(373)](t,o);for(const o of this[e(386)])o[e(309)][e(307)]||t[e(362)](o[e(309)],n,e(339));this[e(343)](t)}[u(393)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(349)][o(337)](e);if(r[o(365)]&&(this[o(340)]=r[0]),i[o(365)])if(i[o(365)]>1||this[o(340)]&&i[o(396)](t=>t!==this[o(340)])){const e=t[o(368)](o(388),{}),s=[];this[o(340)]&&s[o(306)](this[o(340)]),s[o(306)](...i),t[o(362)](e,s[0],o(394));for(const n of s)t[o(366)](t[o(384)](n),t[o(338)](e,o(339))),t[o(376)](n);this[o(340)]=e,this[o(343)](t),n=!0}else this[o(340)]=i[0];if(s[o(365)]&&o(316)===this[o(340)]?.[o(314)][o(356)]){for(const e of this[o(386)])t[o(376)](e[o(385)]),n=!0;this[o(386)]=[],this[o(340)]=null}return n}[u(383)](t,e){const o=u;let n=!1;const i=this[o(332)][o(311)][o(382)](o(348)),{inserted:s,moved:r}=this[o(342)][o(337)](e);for(const e of[...r,...s]){const s=e[o(401)](o(361)),r=this[o(308)](s);r&&(r[o(309)]=e),p(t,i,e)&&(n=!0)}return n}[u(390)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(359)][o(337)](e);for(const e of i)this[o(330)](t,e)&&(n=!0);for(const e of s)this[o(319)](t,e)&&(n=!0);for(const e of r)this[o(305)](t,e)&&(n=!0);return n}[u(318)](t){const e=u;if(!this[e(340)])return!1;let o=!1;if(this[e(340)][e(358)]!==this[e(386)][e(365)]){const n=[];for(const t of this[e(340)][e(380)]()){const i=t[e(401)](e(361));this[e(308)](i)||(n[e(315)](t),o=!0)}for(const o of n)t[e(376)](o)}const n=new Set,i=[];for(const t of this[e(340)][e(380)]()){const s=t[e(401)](e(361));n[e(377)](s)?(i[e(315)](t),o=!0):n[e(398)](s)}for(const o of i)t[e(376)](o);return this[e(340)][e(358)]||(t[e(376)](this[e(340)]),this[e(340)]=null,o=!0),o}[u(319)](t,e){const o=u;if(this[o(386)][o(323)](t=>t[o(385)]===e))return!1;let n=!1;const i=e[o(401)](o(361)),s=this[o(386)][o(346)](t=>t.id===i);-1!==s&&(t[o(376)](this[o(386)][s][o(385)]),this[o(386)][o(400)](s,1),n=!0);let r=this[o(340)]?function(t,e){const n=o;for(const o of t[n(380)]())if(o[n(401)](n(361))===e)return o;return null}(this[o(340)],i):null;r||(r=t[o(368)](o(354),{footnoteId:i}),this[o(340)]&&(t[o(362)](r,this[o(340)],o(339)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(332)][o(326)],this[o(386)],e);this[o(386)][o(400)](c,0,a);let l=c;return-1!==s&&(l=Math[o(329)](c,s)),this[o(343)](t,l)&&(n=!0),n}[u(330)](t,e){const o=u,n=this[o(386)][o(346)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(386)][n];return o(316)!==s[o(309)][o(314)][o(356)]&&(t[o(376)](s[o(309)]),i=!0),this[o(386)][o(400)](n,1),this[o(343)](t,n)&&(i=!0),i}[u(305)](t,e){const o=u,n=e[o(401)](o(361)),i=this[o(386)][o(346)](t=>t.id===n),s=this[o(386)][i];let r=!1;s[o(385)]=e,this[o(386)][o(400)](i,1);const a=m(this[o(332)][o(326)],this[o(386)],e);return this[o(386)][o(400)](a,0,s),this[o(343)](t,Math[o(329)](i,a))&&(r=!0),r}[u(317)](t,e){const o=u;if(!this[o(340)])return!1;const n=this[o(386)][e];let i;return i=this[o(320)]?this[o(320)]({footnote:n,container:this[o(340)],digits:String(this[o(386)][o(365)])[o(365)],value:e+1}):String(e+1),n[o(385)][o(401)](o(355))!=i&&(t[o(369)](o(355),i,n[o(385)]),!0)}[u(352)](t){const e=u;if(!this[e(340)]||this[e(386)][e(365)]<2)return!1;if(function(t,o){const n=e;if(t[n(365)]!==o[n(365)])return!1;for(let e=0;e<t[n(365)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(386)][e(378)](t=>t.id),Array[e(403)](this[e(340)][e(380)]())[e(378)](t=>t[e(401)](e(361)))))return!1;let o=!1;for(let n=0;n<this[e(386)][e(365)];n++){const i=this[e(386)][n],s=t[e(370)](i[e(309)]),r=t[e(338)](this[e(340)],n);s[e(325)](r)||(t[e(366)](t[e(381)](i[e(309)]),r),o=!0)}return o}[u(312)](t){const e=u;if(!this[e(386)][e(365)])return!1;const{model:o}=this[e(332)];let n=!1;for(let i=0;i<this[e(386)][e(365)]-1;i++){const s=this[e(386)][i],r=this[e(386)][i+1],a=o[e(370)](s[e(385)]),c=o[e(370)](r[e(385)]);e(347)===a[e(304)](c)&&(this[e(305)](t,s[e(385)]),i=-1,n=!0)}return n}}function h(t,e){const o=f();return(h=function(t,e){return o[t-=303]})(t,e)}function p(t,e,o){const n=u;if(o[n(358)])return!1;const i=n(e?341:397);return t[n(362)](t[n(368)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(365)])return 0;const i=t[n(370)](o);for(let o=0;o<e[n(365)];o++){const s=e[o],r=t[n(370)](s[n(385)]);if(n(394)===i[n(304)](r))return o}const s=o[n(314)];let r=-1;for(let t=e[n(365)]-1;t>=0;t--)if(e[t][n(385)][n(314)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(399)][n(351)](),c=a[n(402)](s[n(356)]),l=a[c+1];if(l)for(let t=0;t<e[n(365)];t++)if(e[t][n(385)][n(314)][n(356)]===l)return t;return e[n(365)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=224]})(t,e)}function y(){const t=["getFirstRange","302vytRCU","insertObject","FootnotesEditing","isEnabled","4LEzJMt","createElement","length","5832670SgpOuq","footnoteId","string","1678002zFBGYw","execute","insert-footnote-command-executed-with-invalid-id","editor","_getPositionToInsertFootnote","checkChild","1077fiahSL","7365696kwoJav","end","footnoteRef","getItems","document","selection","refresh","isObject","1058504zTVyhx","3667405DhpGoD","18065853BhTQjI","get","_moveSelectionToFootnoteDefinition","change","plugins","model","isBlock","test"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(646354===parseInt(e(237))/1*(parseInt(e(257))/2)+-parseInt(e(231))/3+parseInt(e(225))/4*(parseInt(e(228))/5)+parseInt(e(238))/6+parseInt(e(247))/7+parseInt(e(246))/8+-parseInt(e(248))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(244)](){const t=g,e=this[t(234)][t(253)][t(242)][t(243)],o=this[t(235)](e);this[t(224)]=!!o}[g(232)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(242)],r=this[e(235)](s);if(!r)return;const a=o[e(252)][e(249)](e(259)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(230)==typeof t&&t[o(227)]>0&&!/\s/[o(255)](t)&&!/^\d/[o(255)](t)}(c)?(0,i.logWarning)(e(233)):(n[e(251)](t=>{const o=e,i=t[o(226)](o(240),{footnoteId:c});n[o(258)](i,r,null)}),a[e(250)](c))}[g(235)](t){const e=g,{model:o}=this[e(234)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(241)]())if(n[e(254)](t)||n[e(245)](t))return null;const s=i[e(239)];return n[e(236)](s,e(240))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768089600;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const A=L;function D(){const t=["FootnotesClipboard","init","getData","document","data","getFootnote","reduce","stringify","pluginName","getFirstRange","getSelectedBlocks","drop","change","4865778dxKFsz","20946339MFpbcK","footnoteId","listenTo","create","toView","keys","getAttribute","getChildren","end","isOfficialPlugin","contentInsertion","push","dataTransfer","content","requires","editing","parse","setAttribute","27595XGnKUI","4176920sFwkid","footnotesDefinitions","add","string","get","application/ckeditor5-footnotes","footnoteRef","flatMap","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","entries","root","422352gtbLoc","from","length","getFootnotes","228iHgonL","createElement","createRangeIn","clipboardInput","append","editor","cloneElement","getRanges","remove","sourceEditorId","footnoteInlineContent","7JdMekC","hasAttribute","toData","toModel","96085YhlIJc","setData","method","_handlePasteFootnotesDefinitions","insert","footnotes.multiBlock","htmlProcessor","outputTransformation","_insertEmptyFootnotesDefinitionsContainer","1089045UlGADD","find","selection","element","footnoteDefinition","definition","includes","_handleCopyFootnotesDefinitions","config"];return(D=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(623956===parseInt(e(432))/1+parseInt(e(413))/2+-parseInt(e(441))/3+parseInt(e(417))/4*(-parseInt(e(399))/5)+-parseInt(e(380))/6*(parseInt(e(428))/7)+-parseInt(e(400))/8+parseInt(e(381))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(375)](){return A(450)}static get[A(395)](){return[v,T.ClipboardPipeline]}static get[A(390)](){return!0}static get[A(410)](){return!0}[A(368)](){this[A(409)]()}[A(409)](){const t=A;this[t(448)](),this[t(435)]()}[A(448)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(404)](T.ClipboardPipeline),s=o[t(404)](d);this[t(383)](i,t(439),(o,i)=>{const r=t,a=O(n[r(419)](i[r(394)]));if(!a[r(415)])return;const c=s[r(416)](),l=a[r(373)]((t,o)=>{const n=r,i=c[n(442)](t=>t.id===o);if(i){const o=e[n(371)][n(385)](i[n(446)],{isClipboardPipeline:!0}),s=e[n(371)][n(438)][n(430)](o);t[i.id]=s}return t},Object[r(384)](null));i[r(393)][r(433)](r(405),JSON[r(374)](l))})}[A(435)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(396)],r=n[t(404)](T.ClipboardPipeline),a=n[t(404)](d),c=e[t(449)][t(404)](t(437));let l=null;this[t(383)](s[t(370)],t(420),(e,o)=>{const n=t,i=o[n(393)][n(369)](n(405));l=i?JSON[n(397)](i):null}),this[t(383)](r,t(391),(n,s)=>{const r=t,u=s[r(426)]===this[r(422)].id;u&&r(378)===s[r(434)]||o[r(379)](t=>{const n=r;let f=a[n(408)]();const d=!!f&&Array[n(414)](o[n(370)][n(443)][n(377)]())[n(447)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(444),e(406)))return!0;return!1}(o[n(419)](s[n(394)]))&&(l=function(t,e){const o=n,i=P(t,e);if(!i)return null;const s=Object[o(384)](null);for(const e of i[o(388)]())e.is(o(444),o(445))&&e[o(429)](o(382))&&(s[e[o(387)](o(382))]=t[o(423)](e,!0));return Object[o(386)](s)[o(415)]?s:null}(t,s[n(394)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(419)](e))n.is(o(444),o(401))&&i[o(392)](n);for(const e of i)t[o(425)](e)}(t,s[n(394)]),!l)return;const{selection:h}=o[n(370)],p=h[n(376)]()[n(412)];f&&!d||(f=P(t,s[n(394)]),f||=a[n(440)](t,p));const m=Array[n(414)](h[n(424)]())[n(407)](O),g=function(t,e,o){const s=n,r=Object[s(384)](null);for(const{item:n}of t[s(419)](e))if(n.is(s(444),s(406))){const e=n[s(387)](s(382));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(398)](s(382),r[e],n)}return r}(t,s[n(394)],t=>{const e=n;return!u||!!a[e(372)](t)&&!m[e(447)](t)});for(const[o,i]of Object[n(411)](l)){const s=g[o]||o;let r;if(n(403)!=typeof i)r=i,s!==o&&t[n(398)](n(382),s,r);else{r=t[n(418)](n(445),{footnoteId:s});const o=e[n(371)][n(438)][n(385)](i);let a;if(c)a=e[n(371)][n(431)](o,r);else{a=t[n(418)](n(427));const i=e[n(371)][n(431)](o,a);t[n(436)](i,a)}t[n(421)](a,r)}t[n(436)](r,f,n(389))}l=null})})}}function P(t,e){const o=A;for(const{item:n}of t[o(419)](e))if(n.is(o(444),o(401)))return n;return null}function L(t,e){const o=D();return(L=function(t,e){return o[t-=368]})(t,e)}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(444),e(406))&&o[e(402)](n[e(387)](e(382)));return Array[e(414)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),G=o(741),H=o.n(G),q=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=z().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=H();K()(q.A,X);q.A&&q.A.locals&&q.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=J;function J(t,e){var o=$();return(J=function(t,e){return o[t-=376]})(t,e)}function $(){var t=["94IknNSJ","pluginName","6eZOYlw","7035014zWQwbV","19079bmRObX","5205456CYpNws","1293978HZrFOp","855729QgpBju","requires","isPremiumPlugin","2978040GXUMZB","3793365HYSxGn","Footnotes","isOfficialPlugin","24geqvqB"];return($=function(){return t})()}!function(t){for(var e=J,o=t();;)try{if(802701===parseInt(e(385))/1*(-parseInt(e(381))/2)+-parseInt(e(387))/3+parseInt(e(386))/4+-parseInt(e(377))/5+-parseInt(e(383))/6*(-parseInt(e(384))/7)+parseInt(e(380))/8*(parseInt(e(388))/9)+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Q(382)](){return Q(378)}static get[Q(389)](){return[v,_,Y]}static get[Q(379)](){return!0}static get[Q(390)](){return!0}}const et=nt;function ot(){const t=["lower-alpha","70jOgChI","38058DfGjOz","3245232RdwFus","decimal","526339Gzbled","2091DgxtZk","474653jcpMYZ","upper-roman","1405670qVOqOE","1516atpnku","5232852zmtYFL","lower-latin","decimal-leading-zero","4QekAhu","lower-roman","upper-latin","364enEPot","upper-alpha"];return(ot=function(){return t})()}function nt(t,e){const o=ot();return(nt=function(t,e){return o[t-=455]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(291924===parseInt(e(471))/1+-parseInt(e(455))/2*(-parseInt(e(470))/3)+-parseInt(e(459))/4*(-parseInt(e(473))/5)+parseInt(e(466))/6*(parseInt(e(462))/7)+-parseInt(e(467))/8+-parseInt(e(456))/9+-parseInt(e(465))/10*(parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const it=[et(468),et(458),et(457),et(461),et(464),et(463),et(460),et(472)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=353]})(t,e)}function at(){const t=["4332312mtAfqV","model","getAttribute","getFootnotesDefinitionsObjectElement","includes","_updateFootnotesCounters","get","2502815JXWpQQ","4385832hxDhaK","footnotesListStyle","1764734vewIYK","1NojpiI","refresh","plugins","value","isEnabled","setAttribute","4636800anScsI","823915rzCTOR","execute","1825866MzXdzT","change"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(579818===parseInt(e(373))/1*(parseInt(e(372))/2)+-parseInt(e(360))/3+-parseInt(e(357))/4+-parseInt(e(358))/5+parseInt(e(370))/6+parseInt(e(369))/7+parseInt(e(362))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(374)](){const t=st,{editor:e}=this,o=e[t(353)][t(368)](d)[t(365)]();this[t(355)]=!!o,this[t(354)]=o?.[t(364)](t(371))??null}[st(359)]({value:t}){const e=st,{editor:o}=this,n=o[e(353)][e(368)](d),i=n[e(365)]();i&&it[e(366)](t)&&o[e(363)][e(361)](o=>{const s=e;o[s(356)](s(371),t,i),n[s(367)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=427]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(785738===-parseInt(e(438))/1+-parseInt(e(448))/2+parseInt(e(430))/3+parseInt(e(442))/4*(parseInt(e(447))/5)+parseInt(e(428))/6+parseInt(e(443))/7*(parseInt(e(445))/8)+-parseInt(e(436))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(440)](){const t=lt,{editor:e}=this,o=e[t(444)][t(437)](d)[t(439)]();this[t(449)]=!!o,this[t(434)]=o?.[t(433)](t(429))??null}[lt(441)]({value:t}){const e=lt,{editor:o}=this,n=o[e(444)][e(437)](d),i=n[e(439)]();i&&Number[e(446)](t)&&o[e(431)][e(427)](o=>{const s=e;o[s(432)](s(429),t,i),n[s(435)](o)})}}function dt(){const t=["1179954SYZhqo","model","setAttribute","getAttribute","value","_updateFootnotesCounters","19310292dcZHZK","get","531929SSzcNG","getFootnotesDefinitionsObjectElement","refresh","execute","1683224sSMMHd","1253trpxdE","plugins","21544YGvFFh","isInteger","15GnkXoG","158936PxjZKw","isEnabled","change","8429640OPmBMQ","footnotesListStart"];return(dt=function(){return t})()}function ht(){const t=["footnotesListStyle","find","4942840lyHVfI","fromCharCode","editor","75736beoTBy","isOfficialPlugin","footnotes.footnotesProperties.defaultListStyle","floor","isPremiumPlugin","type","_getDefaultListStyle","element:ol","name","_defineFormatter","lower-latin","writer","get","81cNoOiw","config","getChanges","createRangeOn","commands","start","_defineSchema","upper-roman","1224767sDTlCY","schema","removeStyle","8842932eGWUjO","_definePostfixer","document","consumable","extend","removeAttribute","footnotesListStart","mapper","setAttribute","lower-alpha","footnotes.footnotesProperties.defaultStartIndex","FootnotesPropertiesEditing","padStart","3067911eYmYFj","upper-alpha","toViewElement","footnotesDefinitions","registerPostFixer","_defineConverters","isNaN","upcast","268279CtUXgd","modelCursor","differ","footnotesStyle","decimal-leading-zero","downcast","_formatFootnoteListValue","_getDefaultStartIndex","viewItem","lower-roman","define","attribute:footnotesListStart:footnotesDefinitions","insert","from","setStyle","pluginName","getAttribute","model","footnotes-list","parseInt","290MTXlMa","consume","getChildren","for","hasAttribute","toUpperCase","getStyle","max","plugins","hasClass","list-style-type","nodeAfter","init","getItems","$text","attribute:footnotesListStyle:footnotesDefinitions","element","upper-latin","decimal","position","item","4402578DjKoTG","setFootnoteFormatter","2butkdE","checkAttribute","footnotesStart","toLowerCase","5lEPyZs","parent","_updateFootnotesCounters","add","requires","24BKRMbn"];return(ht=function(){return t})()}function pt(t,e){const o=ht();return(pt=function(t,e){return o[t-=252]})(t,e)}const mt=pt;!function(t){const e=pt,o=t();for(;;)try{if(770621===-parseInt(e(316))/1*(-parseInt(e(280))/2)+-parseInt(e(308))/3*(-parseInt(e(295))/4)+parseInt(e(284))/5*(parseInt(e(278))/6)+-parseInt(e(292))/7+parseInt(e(289))/8*(-parseInt(e(332))/9)+-parseInt(e(257))/10*(parseInt(e(340))/11)+parseInt(e(319))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[mt(252)](){return mt(330)}static get[mt(288)](){return[v,d]}static get[mt(296)](){return!0}static get[mt(299)](){return!0}[mt(269)](){const t=mt,{editor:e}=this;e[t(309)][t(350)](t(297),t(275)),e[t(309)][t(350)](t(329),1),e[t(312)][t(287)](t(343),new ct(e)),e[t(312)][t(287)](t(282),new ft(e)),this[t(314)](),this[t(337)](),this[t(304)](),this[t(320)]()}[mt(314)](){const t=mt,{editor:e}=this,{schema:o}=e[t(254)];o[t(323)](t(335),{allowAttributes:[t(290),t(325)]})}[mt(337)](){const t=mt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(260)](t(339))[t(287)](e=>{const o=t;e.on(o(302),(t,e,n)=>{const s=o,r=e[s(348)],a=e[s(341)]?.[s(285)];r[s(266)](s(255))&&a?.is(s(273),s(335))&&(function(t,e,o,n){const i=s;if(!n[i(281)](e,i(325)))return;let r=1;const a=o[i(322)][i(258)](t,{attributes:i(313)});if(a){const e=Number[i(256)](t[i(253)](i(313)),10);Number[i(338)](e)||(r=e)}!a&&e[i(261)](i(325))||o[i(306)][i(327)](i(325),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(281)](e,i(290)))return;let r=i(275),a=!1;if(o[i(322)][i(258)](t,{attributes:i(300)})){const e={1:i(275),a:i(328),A:i(333),i:i(349),I:i(315)}[t[i(253)](i(300))];e&&(r=e),a=!0}o[i(322)][i(258)](t,{styles:i(267)})&&(r=function(t){const e=i;switch(t){case e(328):return e(305);case e(333):return e(274);default:return t}}(t[i(263)](i(267))),a=!0),!a&&e[i(261)](i(290))||o[i(306)][i(327)](i(290),r,e)}(r,a,n,i))})}),o[t(260)](t(345))[t(287)](e=>{const o=t;e.on(o(351),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;null==r||1===r?n[i(306)][i(324)](i(313),s):n[i(306)][i(327)](i(313),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(322)][i(258)](e[i(277)],t[i(303)]))return;const s=wt(e[i(277)],n[i(326)]),{attributeNewValue:r}=e;r&&i(275)!==r?n[i(306)][i(354)](i(267),r,s):n[i(306)][i(318)](i(267),s)})})}[mt(320)](){const t=mt,{editor:e}=this,{model:o}=e,n=e[t(265)][t(307)](d),i=this[t(301)](),s=this[t(347)]();o[t(321)][t(336)](e=>{const r=t,a=o[r(321)][r(342)][r(310)]();let c=!1;for(const t of a){if(r(352)!==t[r(300)]||r(271)===t[r(303)])continue;const n=o[r(311)](t[r(276)][r(268)]);for(const t of n[r(270)]())t.is(r(273),r(335))&&(!t[r(261)](r(325))&&o[r(317)][r(281)](t,r(325))&&(e[r(327)](r(325),s,t),c=!0),!t[r(261)](r(290))&&o[r(317)][r(281)](t,r(290))&&(e[r(327)](r(290),i,t),c=!0))}return c&&n[r(286)](e),c})}[mt(304)](){const t=mt,{editor:e}=this;e[t(265)][t(307)](d)[t(279)](e=>this[t(346)](e))}[mt(301)](){const t=mt;return this[t(294)][t(309)][t(307)](t(297))}[mt(347)](){const t=mt;return this[t(294)][t(309)][t(307)](t(329))}[mt(346)]({container:t,value:e,digits:o}){const n=mt,i=t[n(253)](n(290)),s=t[n(253)](n(325)),r=Math[n(298)](e)+(s??1)-1;switch(i){case n(344):return function(t,e){const o=n;return String(t)[o(331)](e,"0")}(r,Math[n(264)](2,o));case n(328):case n(305):return yt(r,!1);case n(333):case n(274):return yt(r,!0);case n(349):return vt(r,!1);case n(315):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=mt,n=e[o(334)](t);return Array[o(353)](n[o(259)]())[o(291)](t=>t.is(o(273),"ol")&&t[o(266)](o(255)))}function yt(t,e){const o=mt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(293)](97+t)+n,i=Math[o(298)]((i-1)/26)}return e?n[o(262)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=mt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(283)]()}class It extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=496]})(t,e)}function St(){var t=["isPremiumPlugin","1606263vJWwNz","4087611rGubAR","6fvDsgL","335sAxNTx","13864360oLMQXy","1524719OBodCT","isOfficialPlugin","272GFyyDp","requires","260721rsrKEA","FootnotesProperties","98284IuAlQY","110MtEonD","pluginName","8974hwQzuN"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(936706===-parseInt(e(497))/1*(-parseInt(e(506))/2)+-parseInt(e(499))/3+parseInt(e(510))/4*(-parseInt(e(502))/5)+-parseInt(e(501))/6*(-parseInt(e(504))/7)+parseInt(e(503))/8+parseInt(e(508))/9*(parseInt(e(511))/10)+-parseInt(e(500))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Tt extends t.Plugin{static get[xt(496)](){return xt(509)}static get[xt(507)](){return[gt,Ft]}static get[xt(505)](){return!0}static get[xt(498)](){return!0}}function At(){var t=["1827545VKwdnF","218745XiWyLU","1882320GAFDsB","1113066hrhcjS","147WBEdae","1171896yTunLG","4BolARx","150VLLFir","1587754iRAQED","590AdQILV"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=184]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(211537===parseInt(e(192))/1*(parseInt(e(187))/2)+parseInt(e(191))/3+parseInt(e(184))/4*(parseInt(e(188))/5)+-parseInt(e(193))/6+parseInt(e(186))/7+-parseInt(e(190))/8+parseInt(e(189))/9*(-parseInt(e(185))/10))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 _0x1a1224,Command as _0x5e4aee}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x11fe15,isWidget as _0x41e0e1,toWidgetEditable as _0x51046e,WidgetToolbarRepository as _0x1bdf8d}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1e1024,logWarning as _0x1c18e2,FocusTracker as ot,KeystrokeHandler as rt,global as nt}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x3ca3e6,ClickObserver as _0x5441bf}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x4d9667}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x3f24a9,ButtonView as _0x275c2c,View as _0x464d81,ViewCollection as _0x5d8154,FocusCycler as _0x57b1ab,addKeyboardHandlingForGrid as tt,CollapsibleView as st,LabeledFieldView as it,createLabeledInputNumber as et,ContextualBalloon as _0x1c3e38,BalloonPanelView as _0x31f217,createDropdown as _0x14eff1}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0xeb2824,IconListStyleDecimal as _0x2fd60d,IconListStyleDecimalLeadingZero as _0x5da6fc,IconListStyleLowerRoman as _0x551ecf,IconListStyleUpperRoman as _0x150262,IconListStyleLowerLatin as _0x4fd7b8,IconListStyleUpperLatin as _0x8fa10e}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0xaea491,_0x233fc0){this['_model']=_0xaea491,this['_elementName']=_0x233fc0['elementName'],this['_getElementKey']=_0x233fc0['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3a9962){const _0x51c377=new Set(),_0x9bdc6e=new Map();for(const _0x13eab3 of _0x3a9962){if('insert'===_0x13eab3['type']&&'$text'!==_0x13eab3['name']&&_0x13eab3['position']['nodeAfter']){const _0x5d523a=this['_model']['createRangeOn'](_0x13eab3['position']['nodeAfter']);for(const _0x564682 of _0x5d523a['getItems']()){if(!_0x564682['is']('element',this['_elementName']))continue;const _0x8b78b5=this['_getElementKey'](_0x564682);_0x9bdc6e['has'](_0x8b78b5)||_0x9bdc6e['set'](_0x8b78b5,[]),_0x9bdc6e['get'](_0x8b78b5)['push'](_0x564682);}}if('remove'===_0x13eab3['type']&&_0x13eab3['name']===this['_elementName']){const _0x4b7739=this['_getElementKey']({'getAttribute':_0x5ab968=>_0x13eab3['attributes']['get'](_0x5ab968)});_0x51c377['add'](_0x4b7739);}}for(const [_0x63b6ba,_0x2a63ed]of this['_trackedElements'])'$graveyard'===_0x2a63ed['root']['rootName']&&_0x51c377['add'](_0x63b6ba);for(const _0x19e13c of _0x51c377)this['_trackedElements']['delete'](_0x19e13c);for(const [_0x204435,_0x3bea1f]of _0x9bdc6e)this['_trackedElements']['set'](_0x204435,_0x3bea1f[_0x3bea1f['length']-0x1]);const _0x17dec5=new Set();for(const [_0x2ade10,_0x5e9d72]of _0x9bdc6e)_0x51c377['has'](_0x2ade10)&&(_0x17dec5['add'](_0x5e9d72[0x0]),_0x5e9d72['length']>0x1?_0x9bdc6e['set'](_0x2ade10,_0x5e9d72['slice'](0x1)):_0x9bdc6e['delete'](_0x2ade10),_0x51c377['delete'](_0x2ade10));return{'removed':Array['from'](_0x51c377),'inserted':Array['from'](_0x9bdc6e['values']())['flat'](),'moved':Array['from'](_0x17dec5)};}}class f extends _0x1a1224{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x548728){super(_0x548728),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x32ddf4=>_0x32ddf4['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x269014=>_0x269014['getAttribute']('footnoteId')});}['init'](){const {editor:_0x400b7d}=this,{model:_0x3552b6,data:_0xd5b52c}=_0x400b7d;_0x3552b6['document']['registerPostFixer'](_0x5e1446=>{const _0xe60a32=_0x3552b6['document']['differ']['getChanges']();let _0x54c853=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5e1446,_0xe60a32)&&(_0x54c853=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5e1446,_0xe60a32)&&(_0x54c853=!0x0),this['_handleFootnoteReferencesChanges'](_0x5e1446,_0xe60a32)&&(_0x54c853=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5e1446)&&(_0x54c853=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5e1446)&&(_0x54c853=!0x0),this['_sortFootnoteDefinitions'](_0x5e1446)&&(_0x54c853=!0x0),_0x54c853;}),this['listenTo'](_0x3552b6['document'],'change:data',()=>{_0x3552b6['enqueueChange']({'isUndoable':!0x1},_0x36d9f1=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x36d9f1);});},{'priority':'low'}),this['listenTo'](_0xd5b52c,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x249204){return this['_footnotes']['find'](_0x1f581f=>_0x1f581f['id']===_0x249204)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x45e665){this['_footnoteFormatter']=_0x45e665;}['_updateFootnotesCounters'](_0x139aa6,_0x1943ae=0x0){let _0xd92a41=!0x1;for(let _0x79a1aa=_0x1943ae;_0x79a1aa<this['_footnotes']['length'];_0x79a1aa++)this['_updateFootnoteRefCounter'](_0x139aa6,_0x79a1aa)&&(_0xd92a41=!0x0);return _0xd92a41;}['_insertEmptyFootnotesDefinitionsContainer'](_0x9611e1,_0x26ca5d){const _0x380374=_0x9611e1['createElement']('footnotesDefinitions',{});return _0x9611e1['append'](_0x380374,_0x26ca5d),this['_footnotesDefinitions']=_0x380374,_0x380374;}['_ensureFootnotesDefinitionsContainerExists'](_0x428530){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x5374df=this['_footnotes'][0x0]['reference']['root'],_0x22a483=this['_insertEmptyFootnotesDefinitionsContainer'](_0x428530,_0x5374df);for(const _0x1ce80b of this['_footnotes'])_0x1ce80b['definition']['parent']||_0x428530['insert'](_0x1ce80b['definition'],_0x22a483,'end');this['_updateFootnotesCounters'](_0x428530);}['_handleFootnotesDefinitionsObjectChanges'](_0x362f34,_0x43a08a){let _0x1ac6e7=!0x1;const {inserted:_0x43a998,removed:_0x3ce52b,moved:_0x320b3e}=this['_footnoteDefsContainerTracker']['getChanges'](_0x43a08a);if(_0x320b3e['length']&&(this['_footnotesDefinitions']=_0x320b3e[0x0]),_0x43a998['length']){if(_0x43a998['length']>0x1||this['_footnotesDefinitions']&&_0x43a998['some'](_0x254cbb=>_0x254cbb!==this['_footnotesDefinitions'])){const _0x4472ac=_0x362f34['createElement']('footnotesDefinitions',{}),_0x5c6578=[];this['_footnotesDefinitions']&&_0x5c6578['push'](this['_footnotesDefinitions']),_0x5c6578['push'](..._0x43a998),_0x362f34['insert'](_0x4472ac,_0x5c6578[0x0],'before');for(const _0x22230a of _0x5c6578)_0x362f34['move'](_0x362f34['createRangeIn'](_0x22230a),_0x362f34['createPositionAt'](_0x4472ac,'end')),_0x362f34['remove'](_0x22230a);this['_footnotesDefinitions']=_0x4472ac,this['_updateFootnotesCounters'](_0x362f34),_0x1ac6e7=!0x0;}else this['_footnotesDefinitions']=_0x43a998[0x0];}if(_0x3ce52b['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x4a73a7 of this['_footnotes'])_0x362f34['remove'](_0x4a73a7['reference']),_0x1ac6e7=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1ac6e7;}['_handleFootnoteDefinitionsChanges'](_0xfcf2be,_0x17ab97){let _0x328d46=!0x1;const _0x46af49=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x195a9b,moved:_0x1fc0e7}=this['_footnoteDefsTracker']['getChanges'](_0x17ab97);for(const _0x46702c of[..._0x1fc0e7,..._0x195a9b]){const _0xe02106=_0x46702c['getAttribute']('footnoteId'),_0x29d5c5=this['getFootnote'](_0xe02106);_0x29d5c5&&(_0x29d5c5['definition']=_0x46702c),_(_0xfcf2be,_0x46af49,_0x46702c)&&(_0x328d46=!0x0);}return _0x328d46;}['_handleFootnoteReferencesChanges'](_0x5704c7,_0x3df03a){let _0x4a1a76=!0x1;const {removed:_0x40c575,inserted:_0x258e20,moved:_0x384875}=this['_footnoteRefsTracker']['getChanges'](_0x3df03a);for(const _0x2d8431 of _0x40c575)this['_handleRemoveFootnoteReferenceById'](_0x5704c7,_0x2d8431)&&(_0x4a1a76=!0x0);for(const _0x3dfd8a of _0x258e20)this['_handleInsertedFootnoteReference'](_0x5704c7,_0x3dfd8a)&&(_0x4a1a76=!0x0);for(const _0x38ff13 of _0x384875)this['_handleMovedFootnoteReference'](_0x5704c7,_0x38ff13)&&(_0x4a1a76=!0x0);return _0x4a1a76;}['_handleFootnotesDefinitionsObjectSync'](_0x561ed1){if(!this['_footnotesDefinitions'])return!0x1;let _0x29a34a=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x547af7=[];for(const _0x16fd7f of this['_footnotesDefinitions']['getChildren']()){const _0x6ea812=_0x16fd7f['getAttribute']('footnoteId');this['getFootnote'](_0x6ea812)||(_0x547af7['unshift'](_0x16fd7f),_0x29a34a=!0x0);}for(const _0x1bf53b of _0x547af7)_0x561ed1['remove'](_0x1bf53b);}const _0x2c0578=new Set(),_0x2f6c7e=[];for(const _0x4ba3e6 of this['_footnotesDefinitions']['getChildren']()){const _0x2cfa4c=_0x4ba3e6['getAttribute']('footnoteId');_0x2c0578['has'](_0x2cfa4c)?(_0x2f6c7e['unshift'](_0x4ba3e6),_0x29a34a=!0x0):_0x2c0578['add'](_0x2cfa4c);}for(const _0xd6ebb9 of _0x2f6c7e)_0x561ed1['remove'](_0xd6ebb9);return this['_footnotesDefinitions']['childCount']||(_0x561ed1['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x29a34a=!0x0),_0x29a34a;}['_handleInsertedFootnoteReference'](_0x37060c,_0x502b6d){if(this['_footnotes']['find'](_0x2efa5a=>_0x2efa5a['reference']===_0x502b6d))return!0x1;let _0x29134f=!0x1;const _0x264d88=_0x502b6d['getAttribute']('footnoteId'),_0x43ad03=this['_footnotes']['findIndex'](_0x2d41b5=>_0x2d41b5['id']===_0x264d88);-0x1!==_0x43ad03&&(_0x37060c['remove'](this['_footnotes'][_0x43ad03]['reference']),this['_footnotes']['splice'](_0x43ad03,0x1),_0x29134f=!0x0);let _0x3e491c=this['_footnotesDefinitions']?function(_0xffeba1,_0x3104d3){for(const _0x5414e7 of _0xffeba1['getChildren']())if(_0x5414e7['getAttribute']('footnoteId')===_0x3104d3)return _0x5414e7;return null;}(this['_footnotesDefinitions'],_0x264d88):null;_0x3e491c||(_0x3e491c=_0x37060c['createElement']('footnoteDefinition',{'footnoteId':_0x264d88}),this['_footnotesDefinitions']&&(_0x37060c['insert'](_0x3e491c,this['_footnotesDefinitions'],'end'),_0x29134f=!0x0));const _0x6bbb62={'id':_0x264d88,'reference':_0x502b6d,'definition':_0x3e491c},_0x2167c0=I(this['editor']['model'],this['_footnotes'],_0x502b6d);this['_footnotes']['splice'](_0x2167c0,0x0,_0x6bbb62);let _0x97f073=_0x2167c0;return-0x1!==_0x43ad03&&(_0x97f073=Math['min'](_0x2167c0,_0x43ad03)),this['_updateFootnotesCounters'](_0x37060c,_0x97f073)&&(_0x29134f=!0x0),_0x29134f;}['_handleRemoveFootnoteReferenceById'](_0x57cceb,_0x165687){const _0x530b89=this['_footnotes']['findIndex'](_0x24c762=>_0x24c762['id']===_0x165687);if(-0x1===_0x530b89)return!0x1;let _0x564700=!0x1;const _0x14c530=this['_footnotes'][_0x530b89];return'$graveyard'!==_0x14c530['definition']['root']['rootName']&&(_0x57cceb['remove'](_0x14c530['definition']),_0x564700=!0x0),this['_footnotes']['splice'](_0x530b89,0x1),this['_updateFootnotesCounters'](_0x57cceb,_0x530b89)&&(_0x564700=!0x0),_0x564700;}['_handleMovedFootnoteReference'](_0x222e5f,_0x5e2057){const _0x3850d7=_0x5e2057['getAttribute']('footnoteId'),_0x20dc70=this['_footnotes']['findIndex'](_0x3d4ad7=>_0x3d4ad7['id']===_0x3850d7),_0x213af1=this['_footnotes'][_0x20dc70];let _0x32eaad=!0x1;_0x213af1['reference']=_0x5e2057,this['_footnotes']['splice'](_0x20dc70,0x1);const _0x302985=I(this['editor']['model'],this['_footnotes'],_0x5e2057);return this['_footnotes']['splice'](_0x302985,0x0,_0x213af1),this['_updateFootnotesCounters'](_0x222e5f,Math['min'](_0x20dc70,_0x302985))&&(_0x32eaad=!0x0),_0x32eaad;}['_updateFootnoteRefCounter'](_0x530475,_0x2b4742){if(!this['_footnotesDefinitions'])return!0x1;const _0x2baa8f=this['_footnotes'][_0x2b4742];let _0x1167a9;return _0x1167a9=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2baa8f,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x2b4742+0x1}):String(_0x2b4742+0x1),_0x2baa8f['reference']['getAttribute']('footnoteCounter')!=_0x1167a9&&(_0x530475['setAttribute']('footnoteCounter',_0x1167a9,_0x2baa8f['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x8dc7a5){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0xb30b7c,_0x2157bb){if(_0xb30b7c['length']!==_0x2157bb['length'])return!0x1;for(let _0x50cd23=0x0;_0x50cd23<_0xb30b7c['length'];_0x50cd23++)if(_0xb30b7c[_0x50cd23]!==_0x2157bb[_0x50cd23])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x460010=>_0x460010['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x54ba55=>_0x54ba55['getAttribute']('footnoteId'))))return!0x1;let _0x3773f3=!0x1;for(let _0x27e0ab=0x0;_0x27e0ab<this['_footnotes']['length'];_0x27e0ab++){const _0x282f70=this['_footnotes'][_0x27e0ab],_0x534941=_0x8dc7a5['createPositionBefore'](_0x282f70['definition']),_0x27f0d8=_0x8dc7a5['createPositionAt'](this['_footnotesDefinitions'],_0x27e0ab);_0x534941['isEqual'](_0x27f0d8)||(_0x8dc7a5['move'](_0x8dc7a5['createRangeOn'](_0x282f70['definition']),_0x27f0d8),_0x3773f3=!0x0);}return _0x3773f3;}['_ensureFootnotesReferencesHaveProperOrder'](_0x48e262){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5b8e2d}=this['editor'];let _0x1a484d=!0x1;for(let _0x2cd559=0x0;_0x2cd559<this['_footnotes']['length']-0x1;_0x2cd559++){const _0x3d0a02=this['_footnotes'][_0x2cd559],_0x1cf3ee=this['_footnotes'][_0x2cd559+0x1],_0x3197f1=_0x5b8e2d['createPositionBefore'](_0x3d0a02['reference']),_0xeacb22=_0x5b8e2d['createPositionBefore'](_0x1cf3ee['reference']);'after'===_0x3197f1['compareWith'](_0xeacb22)&&(this['_handleMovedFootnoteReference'](_0x48e262,_0x3d0a02['reference']),_0x2cd559=-0x1,_0x1a484d=!0x0);}return _0x1a484d;}}function _(_0x408608,_0x38c338,_0x43fbb4){if(_0x43fbb4['childCount'])return!0x1;const _0x87f8eb=_0x38c338?'paragraph':'footnoteInlineContent';return _0x408608['insert'](_0x408608['createElement'](_0x87f8eb),_0x43fbb4),!0x0;}function I(_0x230e9a,_0x40d83e,_0x17d96a){if(0x0===_0x40d83e['length'])return 0x0;const _0x82b0e4=_0x230e9a['createPositionBefore'](_0x17d96a);for(let _0x5b0a04=0x0;_0x5b0a04<_0x40d83e['length'];_0x5b0a04++){const _0x2ed7f2=_0x40d83e[_0x5b0a04],_0x33e6a7=_0x230e9a['createPositionBefore'](_0x2ed7f2['reference']);if('before'===_0x82b0e4['compareWith'](_0x33e6a7))return _0x5b0a04;}const _0xbfa646=_0x17d96a['root'];let _0xc404c9=-0x1;for(let _0x5ce35d=_0x40d83e['length']-0x1;_0x5ce35d>=0x0;_0x5ce35d--)if(_0x40d83e[_0x5ce35d]['reference']['root']===_0xbfa646){_0xc404c9=_0x5ce35d;break;}if(-0x1!==_0xc404c9)return _0xc404c9+0x1;const _0x144118=_0x230e9a['document']['getRootNames'](),_0x3e9df8=_0x144118['indexOf'](_0xbfa646['rootName']),_0x2e6ede=_0x144118[_0x3e9df8+0x1];if(_0x2e6ede){for(let _0x4c28d6=0x0;_0x4c28d6<_0x40d83e['length'];_0x4c28d6++)if(_0x40d83e[_0x4c28d6]['reference']['root']['rootName']===_0x2e6ede)return _0x4c28d6;}return _0x40d83e['length'];}class h extends _0x5e4aee{['refresh'](){const _0x5c1c6b=this['editor']['model']['document']['selection'],_0x123387=this['_getPositionToInsertFootnote'](_0x5c1c6b);this['isEnabled']=!!_0x123387;}['execute'](_0x14e15e){const {editor:_0x361e12}=this,{model:_0x2e96e3}=_0x361e12,{selection:_0x2b0384}=_0x2e96e3['document'],_0x44ec4e=this['_getPositionToInsertFootnote'](_0x2b0384);if(!_0x44ec4e)return;const _0x2474dd=_0x361e12['plugins']['get']('FootnotesEditing'),_0x5727bf=_0x14e15e?.['footnoteId']??_0x1e1024();!function(_0x40a9f3){return'string'==typeof _0x40a9f3&&_0x40a9f3['length']>0x0&&!/\s/['test'](_0x40a9f3)&&!/^\d/['test'](_0x40a9f3);}(_0x5727bf)?_0x1c18e2('insert-footnote-command-executed-with-invalid-id'):(_0x2e96e3['change'](_0x693df=>{const _0x411946=_0x693df['createElement']('footnoteRef',{'footnoteId':_0x5727bf});_0x2e96e3['insertObject'](_0x411946,_0x44ec4e,null);}),_0x2474dd['_moveSelectionToFootnoteDefinition'](_0x5727bf));}['_getPositionToInsertFootnote'](_0x4ce2d4){const {model:_0x4f56d7}=this['editor'],{schema:_0x57de68}=_0x4f56d7,_0x7a9163=_0x4ce2d4['getFirstRange']();for(const _0x542f68 of _0x7a9163['getItems']())if(_0x57de68['isBlock'](_0x542f68)||_0x57de68['isObject'](_0x542f68))return null;const _0x879843=_0x7a9163['end'];return _0x57de68['checkChild'](_0x879843,'footnoteRef')?_0x879843:null;}}class r extends _0x1a1224{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ac333}=this;_0x4ac333['config']['define']('footnotes.multiBlock',!0x0),_0x4ac333['commands']['add']('insertFootnote',new h(_0x4ac333)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x2b3c2f){const _0x482294=_0x1b3fcc([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]),_0x43a8c4=0x47a28506,_0x369b25=0x47a5fb6e^_0x43a8c4,_0x2fd185=window[_0x1b3fcc([0x44,0x61,0x74,0x65])][_0x1b3fcc([0x6e,0x6f,0x77])](),_0x15cd2c=_0x2b3c2f[_0x1b3fcc([0x65,0x64,0x69,0x74,0x6f,0x72])],_0xce2a63=new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x9cf409=>{_0x15cd2c[_0x1b3fcc([0x6f,0x6e,0x63,0x65])](_0x1b3fcc([0x72,0x65,0x61,0x64,0x79]),_0x9cf409);}),_0x3bb728={[_0x1b3fcc([0x6b,0x74,0x79])]:_0x1b3fcc([0x45,0x43]),[_0x1b3fcc([0x75,0x73,0x65])]:_0x1b3fcc([0x73,0x69,0x67]),[_0x1b3fcc([0x63,0x72,0x76])]:_0x1b3fcc([0x50,0x2d,0x32,0x35,0x36]),[_0x1b3fcc([0x78])]:_0x1b3fcc([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]),[_0x1b3fcc([0x79])]:_0x1b3fcc([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]),[_0x1b3fcc([0x61,0x6c,0x67])]:_0x1b3fcc([0x45,0x53,0x32,0x35,0x36])},_0x598d16=_0x15cd2c[_0x1b3fcc([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1b3fcc([0x67,0x65,0x74])](_0x1b3fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x3d90a3(){let _0x54e08e,_0x3b5dc5=null,_0x4446a5=null;try{if(_0x598d16==_0x1b3fcc([0x47,0x50,0x4c]))return _0x1b3fcc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x54e08e=_0x4c941c(),!_0x54e08e)return _0x1b3fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x54e08e[_0x1b3fcc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x4446a5=_0xdcc9dd(_0x54e08e[_0x1b3fcc([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x54e08e[_0x1b3fcc([0x6a,0x74,0x69])])),await _0x2c0f12()?_0x23917a()?_0x98c87()?_0x1b3fcc([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x5ee806()?(_0x54e08e[_0x1b3fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1b3fcc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x3b5dc5=_0x23b307(_0x1b3fcc([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x476e70()):_0x1b3fcc([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1b3fcc([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1b3fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1b3fcc([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x98c87(){const _0x2dcc42=[_0x1b3fcc([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1b3fcc([0x74,0x72,0x69,0x61,0x6c])][_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x54e08e[_0x1b3fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2fd185/0x3e8:0xe10*_0x369b25;return _0x54e08e[_0x1b3fcc([0x65,0x78,0x70])]<_0x2dcc42;}function _0x23917a(){const _0x294fb4=_0x54e08e[_0x1b3fcc([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x294fb4&&(!!_0x294fb4[_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3fcc([0x2a]))||!!_0x294fb4[_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3fcc([0x46,0x4f,0x4f])));}function _0x5ee806(){const _0x2284d5=_0x54e08e[_0x1b3fcc([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x2284d5||0x0==_0x2284d5[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x30bae2}=new URL(window[_0x1b3fcc([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x2284d5[_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x30bae2))return!0x0;const _0x45391b=_0x30bae2[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b3fcc([0x2e]));return _0x2284d5[_0x1b3fcc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f2bf3=>_0x3f2bf3[_0x1b3fcc([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1b3fcc([0x2a])))[_0x1b3fcc([0x6d,0x61,0x70])](_0x5316cf=>_0x5316cf[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b3fcc([0x2e])))[_0x1b3fcc([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5b9772=>_0x5b9772[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x45391b[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b3fcc([0x6d,0x61,0x70])](_0x102423=>Array(_0x45391b[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x102423[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1b3fcc([0x66,0x69,0x6c,0x6c])](_0x102423[0x0]===_0x1b3fcc([0x2a])?_0x1b3fcc([0x2a]):'')[_0x1b3fcc([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x102423))[_0x1b3fcc([0x73,0x6f,0x6d,0x65])](_0x234512=>_0x45391b[_0x1b3fcc([0x65,0x76,0x65,0x72,0x79])]((_0x438f7f,_0x22bff6)=>_0x234512[_0x22bff6]===_0x438f7f||_0x234512[_0x22bff6]===_0x1b3fcc([0x2a])));}function _0x476e70(){return _0x3b5dc5&&_0x4446a5?new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x82a79d,_0x1e4d0c)=>{_0x3b5dc5[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x82a79d,_0x1e4d0c),_0x4446a5[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x4615be=>{_0x4615be!=_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64])&&_0x82a79d(_0x4615be);},_0x1e4d0c);}):_0x3b5dc5||_0x4446a5||_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64]);}}function _0xdcc9dd(_0x2b6da6,_0x205bae){return new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a0658=>{if(_0x3daca6())return _0x4a0658(_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64]));_0x410c5d(),_0x15cd2c[_0x1b3fcc([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1b3fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x509a7d=!0x1;const _0xd5427e=_0x1e1024();function _0x4655f6(_0x16f23c){return!!_0x16f23c&&(typeof _0x16f23c===_0x1b3fcc([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x16f23c===_0x1b3fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x16f23c[_0x1b3fcc([0x74,0x68,0x65,0x6e])]===_0x1b3fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x16f23c[_0x1b3fcc([0x63,0x61,0x74,0x63,0x68])]===_0x1b3fcc([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x196ead(_0x1fcff9){_0x46a3ef(_0x1fcff9)[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x2b4202=>{if(!_0x2b4202||_0x2b4202[_0x1b3fcc([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1b3fcc([0x6f,0x6b]))return _0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x2c755c(_0x5a8d1a(_0xd5427e+_0x205bae))!=_0x2b4202[_0x1b3fcc([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64]);})[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x2431b8=>(_0x2b9f85(),_0x2431b8),()=>{const _0x35cd45=_0x502981();return null==_0x35cd45?(_0x2b9f85(),_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64])):_0x1b3fcc(_0x2fd185-_0x35cd45>(0x63ae0106^_0x43a8c4)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x4a0658)[_0x1b3fcc([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4a0658(_0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x503f30=0x47946b86^_0x43a8c4;function _0x2b9f85(){const _0x139d3a=_0x1b3fcc([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c755c(_0x5a8d1a(_0x2b6da6)),_0x48f17e=_0x5a7a02(_0x2c755c(window[_0x1b3fcc([0x4d,0x61,0x74,0x68])][_0x1b3fcc([0x63,0x65,0x69,0x6c])](_0x2fd185/_0x503f30)));window[_0x1b3fcc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b3fcc([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x139d3a,_0x48f17e);}function _0x502981(){const _0x5688e9=_0x1b3fcc([0x6c,0x6c,0x63,0x74,0x2d])+_0x2c755c(_0x5a8d1a(_0x2b6da6)),_0x2bd09c=window[_0x1b3fcc([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1b3fcc([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5688e9);return _0x2bd09c?window[_0x1b3fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5a7a02(_0x2bd09c),0x10)*_0x503f30:null;}function _0x46a3ef(_0x2940b1){return new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2cc0a2,_0x5df4da)=>{_0x2940b1[_0x1b3fcc([0x74,0x68,0x65,0x6e])](_0x2cc0a2,_0x5df4da),window[_0x1b3fcc([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5df4da,0x47a351c6^_0x43a8c4);});}}_0x15cd2c[_0x1b3fcc([0x6f,0x6e])](_0x1b3fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4a4763,_0x3990b9)=>{if(_0x3990b9[0x0]!=_0x2b6da6)return _0x4a0658(_0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3990b9[0x1]={..._0x3990b9[0x1],[_0x1b3fcc([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xd5427e};},{[_0x1b3fcc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b3fcc([0x68,0x69,0x67,0x68])}),_0x15cd2c[_0x1b3fcc([0x6f,0x6e])](_0x1b3fcc([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x512d7f=>{_0x4655f6(_0x512d7f[_0x1b3fcc([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x509a7d=!0x0,_0x196ead(_0x512d7f[_0x1b3fcc([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1b3fcc([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1b3fcc([0x6c,0x6f,0x77])}),_0xce2a63[_0x1b3fcc([0x74,0x68,0x65,0x6e])](()=>{_0x509a7d||_0x4a0658(_0x1b3fcc([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x3daca6(){return _0x15cd2c[_0x1b3fcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b3fcc([0x76,0x69,0x65,0x77])][_0x1b3fcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1b3fcc([0x61,0x75,0x74,0x6f]);}function _0x410c5d(){_0x15cd2c[_0x1b3fcc([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1b3fcc([0x76,0x69,0x65,0x77])][_0x1b3fcc([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1b3fcc([0x61,0x75,0x74,0x6f]);}}function _0x23b307(_0x52ed91){const _0x51deee=[new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f495=>setTimeout(_0x41f495,0x47abbbca^_0x43a8c4)),_0xce2a63[_0x1b3fcc([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x97abbb=>{let _0x2de733=0x0;_0x15cd2c[_0x1b3fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3fcc([0x6f,0x6e])](_0x1b3fcc([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xd499e3,_0x394d68)=>{_0x394d68[0x0][_0x1b3fcc([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2de733++,_0x2de733==(0x47a280ee^_0x43a8c4)&&(_0x97abbb(),_0xd499e3[_0x1b3fcc([0x6f,0x66,0x66])]());});}))];return window[_0x1b3fcc([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1b3fcc([0x72,0x61,0x63,0x65])](_0x51deee)[_0x1b3fcc([0x74,0x68,0x65,0x6e])](()=>_0x52ed91);}async function _0x162739(){await _0xce2a63,_0x15cd2c[_0x1b3fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3fcc([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x36cb60,_0x15cd2c[_0x1b3fcc([0x6d,0x6f,0x64,0x65,0x6c])][_0x1b3fcc([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x36cb60,_0x15cd2c[_0x1b3fcc([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1b3fcc([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x14c801(_0x1631a6){const _0x226fe8=_0x28196e();_0x15cd2c[_0x226fe8]=_0x1b3fcc([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1631a6,_0x1631a6!=_0x1b3fcc([0x56,0x61,0x6c,0x69,0x64])&&_0x162739();}function _0x28196e(){const _0x22eb98=window[_0x1b3fcc([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1b3fcc([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1b3fcc([0x6e,0x6f,0x77])]())[_0x1b3fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1b3fcc([0x2e]),'');let _0x58e37b=_0x1b3fcc([0x75]);for(let _0x1365c4=0x0;_0x1365c4<_0x22eb98[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1365c4+=0x2){let _0x2dc4c3=window[_0x1b3fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x22eb98[_0x1b3fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1365c4,_0x1365c4+0x2));_0x2dc4c3>=_0x482294[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2dc4c3-=_0x482294[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x58e37b+=_0x482294[_0x2dc4c3];}return _0x58e37b;}function _0x4c941c(){const _0x145ef6=_0x598d16[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b3fcc([0x2e]));if(0x3!=_0x145ef6[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x49ac40(_0x145ef6[0x1]);function _0x49ac40(_0x4feb92){const _0x1f1e6d=_0x4a23ba(_0x4feb92);return _0x1f1e6d&&_0x4b1056()?_0x1f1e6d:null;function _0x4b1056(){const _0x536568=_0x1f1e6d[_0x1b3fcc([0x6a,0x74,0x69])],_0x340219=window[_0x1b3fcc([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x536568[_0x1b3fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x536568[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4e3c76={..._0x1f1e6d,[_0x1b3fcc([0x6a,0x74,0x69])]:_0x536568[_0x1b3fcc([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x536568[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4e3c76[_0x1b3fcc([0x76,0x63])],_0x5a8d1a(_0x4e3c76)==_0x340219;}}}async function _0x2c0f12(){let _0xa8a60c=!0x0;try{const _0x2955cd=_0x598d16[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])](_0x1b3fcc([0x2e])),[_0x4658f4,_0x2a0b8b,_0x32ded5]=_0x2955cd;return _0x360976(_0x4658f4),await _0x176e04(_0x4658f4,_0x2a0b8b,_0x32ded5),_0xa8a60c;}catch{return!0x1;}function _0x360976(_0x41864f){const _0x4f7538=_0x4a23ba(_0x41864f);_0x4f7538&&_0x4f7538[_0x1b3fcc([0x61,0x6c,0x67])]==_0x1b3fcc([0x45,0x53,0x32,0x35,0x36])||(_0xa8a60c=!0x1);}async function _0x176e04(_0x22ebca,_0x14bf65,_0x208937){const _0x46414f=window[_0x1b3fcc([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1b3fcc([0x66,0x72,0x6f,0x6d])](_0x2efe88(_0x208937),_0x168f61=>_0x168f61[_0x1b3fcc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e113d=new window[(_0x1b3fcc([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1b3fcc([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x22ebca+_0x1b3fcc([0x2e])+_0x14bf65),_0x4d183c=window[_0x1b3fcc([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1b3fcc([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d183c)return;const _0x478349=await _0x4d183c[_0x1b3fcc([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1b3fcc([0x6a,0x77,0x6b]),_0x3bb728,{[_0x1b3fcc([0x6e,0x61,0x6d,0x65])]:_0x1b3fcc([0x45,0x43,0x44,0x53,0x41]),[_0x1b3fcc([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1b3fcc([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1b3fcc([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d183c[_0x1b3fcc([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1b3fcc([0x6e,0x61,0x6d,0x65])]:_0x1b3fcc([0x45,0x43,0x44,0x53,0x41]),[_0x1b3fcc([0x68,0x61,0x73,0x68])]:{[_0x1b3fcc([0x6e,0x61,0x6d,0x65])]:_0x1b3fcc([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x478349,_0x46414f,_0x5e113d)||(_0xa8a60c=!0x1);}}function _0x4a23ba(_0x14c229){return _0x14c229[_0x1b3fcc([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1b3fcc([0x65,0x79]))?JSON[_0x1b3fcc([0x70,0x61,0x72,0x73,0x65])](_0x2efe88(_0x14c229)):null;}function _0x2efe88(_0x2c70c7){return window[_0x1b3fcc([0x61,0x74,0x6f,0x62])](_0x2c70c7[_0x1b3fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1b3fcc([0x2b]))[_0x1b3fcc([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1b3fcc([0x2f])));}function _0x5a8d1a(_0x3ccaa9){let _0x5e683d=0x1505;function _0x1b028f(_0x50392f){for(let _0x63a24f=0x0;_0x63a24f<_0x50392f[_0x1b3fcc([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x63a24f++){const _0x447d40=_0x50392f[_0x1b3fcc([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x63a24f);_0x5e683d=(_0x5e683d<<0x5)+_0x5e683d+_0x447d40,_0x5e683d&=_0x5e683d;}}function _0x34b469(_0x53eb09){Array[_0x1b3fcc([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x53eb09)?_0x53eb09[_0x1b3fcc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x34b469):_0x53eb09&&typeof _0x53eb09==_0x1b3fcc([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1b3fcc([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x53eb09)[_0x1b3fcc([0x73,0x6f,0x72,0x74])]()[_0x1b3fcc([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5ae170,_0x22920a])=>{_0x1b028f(_0x5ae170),_0x34b469(_0x22920a);}):_0x1b028f(window[_0x1b3fcc([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x53eb09));}return _0x34b469(_0x3ccaa9),_0x5e683d>>>0x0;}function _0x2c755c(_0x2a9cba){return _0x2a9cba[_0x1b3fcc([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1b3fcc([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1b3fcc([0x30]));}function _0x5a7a02(_0x439f8d){return _0x439f8d[_0x1b3fcc([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1b3fcc([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1b3fcc([0x6a,0x6f,0x69,0x6e])]('');}function _0x36cb60(){}function _0x1b3fcc(_0x33ea26){return _0x33ea26['map'](_0x4be36f=>String['fromCharCode'](_0x4be36f))['join']('');}_0x14c801(await _0x3d90a3());}(this);}['_moveSelectionToFootnoteDefinition'](_0x59b582){const {plugins:_0x1b069a,editing:_0x172abc,model:_0x26fb6c}=this['editor'],_0xea2827=_0x1b069a['get'](f)['getFootnote'](_0x59b582);return!!_0xea2827&&(_0x26fb6c['change'](_0x5c75c1=>{_0x5c75c1['setSelection'](_0x5c75c1['createPositionAt'](_0xea2827['definition'],'end'));}),_0x172abc['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x48825c){const {plugins:_0x3372c3,editing:_0x306928,model:_0x17c84b}=this['editor'],_0x54d7e3=_0x3372c3['get'](f)['getFootnote'](_0x48825c);return!!_0x54d7e3&&(_0x17c84b['change'](_0x4fcb9d=>{_0x4fcb9d['setSelection'](_0x54d7e3['reference'],'on');}),_0x306928['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3e8c1d}=this['editor']['model'],_0xe5e077=this['editor']['config']['get']('footnotes.multiBlock');_0x3e8c1d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3e8c1d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3e8c1d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xe5e077?_0x3e8c1d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3e8c1d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3e8c1d['addChildCheck'](_0x9cb277=>{for(const _0x40600e of _0x9cb277)if('footnoteDefinition'===_0x40600e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x139b02}=this,{conversion:_0x215dd6,editing:_0x5144b7}=_0x139b02,{t:t}=_0x139b02['locale'];_0x215dd6['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x5c62ab,{writer:_0x403ff3,consumable:_0x1baa7e})=>{const _0x593f57=_0x5c62ab['getChild'](0x0);if(!_0x593f57||!_0x593f57['is']('element','a'))return null;const _0x5da48f=_0x593f57['getAttribute']('href')||'';if(!_0x5da48f['startsWith']('#'))return null;const _0x4ca0fc=_0x5da48f['replace'](/^#/,'');if(!_0x4ca0fc)return null;_0x1baa7e['consume'](_0x593f57,{'name':!0x0,'attributes':['href']});for(const {item:_0x26483b}of _0x5144b7['view']['createRangeIn'](_0x593f57))_0x26483b['is']('$textProxy')?_0x1baa7e['consume'](_0x26483b['textNode'],{'name':!0x0}):_0x26483b['is']('element')&&_0x1baa7e['consume'](_0x26483b,{'name':!0x0});return _0x403ff3['createElement']('footnoteRef',{'footnoteId':_0x4ca0fc});}}),_0x215dd6['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x24ced7,{writer:_0xe7cc42})=>b(_0x24ced7,_0xe7cc42)}),_0x215dd6['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x48b15c,{writer:_0x46eb85})=>{const _0x2daff2=_0x48b15c['getAttribute']('footnoteCounter');return _0x11fe15(b(_0x48b15c,_0x46eb85),_0x46eb85,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2daff2)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2dcb39}=this,{t:t}=_0x2dcb39['locale'],{conversion:_0x3175d2}=_0x2dcb39;_0x3175d2['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3175d2['for']('upcast')['add'](_0x37216c=>{_0x37216c['on']('element:ol',(_0x4e2746,_0x3a44a4,_0x119847)=>{const _0x571398=_0x3a44a4['viewItem'];if(!_0x571398['hasClass']('footnotes-list')||!_0x3a44a4['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x119847['consumable']['consume'](_0x571398,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x4a6a6e,modelCursor:_0x20c5ea}=_0x119847['convertChildren'](_0x3a44a4['viewItem'],_0x3a44a4['modelCursor']);_0x3a44a4['modelRange']=_0x4a6a6e,_0x3a44a4['modelCursor']=_0x20c5ea;}),_0x37216c['on']('element:hr',(_0x1ebd7e,_0x5783d9,_0x14cf07)=>{const _0x28a68d=_0x5783d9['viewItem'];_0x28a68d['hasClass']('footnotes-divider')&&_0x5783d9['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x14cf07['consumable']['consume'](_0x28a68d,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3175d2['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2444d0,{writer:_0x1611fd})=>D(_0x1611fd)}),_0x3175d2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3d03c9,{writer:_0x4907c9})=>{const _0x2108ba=D(_0x4907c9,{'data-footnotes-list-label':t('Footnotes')}),_0x39eab0=_0x11fe15(_0x2108ba,_0x4907c9,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x4907c9['setCustomProperty']('footnotesDefinitions',!0x0,_0x39eab0),_0x39eab0;}});}['_defineDefinitionConverters'](){const {editor:_0x2d7e8a}=this,{conversion:_0x2fc143,locale:_0xf9384d}=_0x2d7e8a,_0x948107=_0x2d7e8a['config']['get']('footnotes.multiBlock');_0x2fc143['for']('upcast')['add'](_0x1d8ecd=>{_0x1d8ecd['on']('element:li',(_0x3998dc,_0x547b16,_0x581ea2)=>{const _0xcf9798=_0x547b16['viewItem'];if(!_0xcf9798['hasClass']('footnote-definition')||!_0xcf9798['getAttribute']('id'))return;const _0x21d089=_0xcf9798['parent'];if(!_0x21d089['is']('element','ol')||!_0x21d089['hasClass']('footnotes-list'))return;if(!_0x581ea2['consumable']['test'](_0xcf9798,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1e2c74=_0x581ea2['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xcf9798['getAttribute']('id')});if(!_0x581ea2['safeInsert'](_0x1e2c74,_0x547b16['modelCursor']))return;_0x581ea2['consumable']['consume'](_0xcf9798,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x21db19=Array['from'](_0xcf9798['getChildren']())['find'](_0x289925=>_0x289925['is']('element')&&_0x289925['hasClass']('footnote-content'));for(const _0x24a1fe of _0xcf9798['getChildren']())_0x24a1fe['is']('element')&&(_0x581ea2['consumable']['consume'](_0x24a1fe,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x581ea2['consumable']['consume'](_0x24a1fe,{'name':!0x0,'classes':'footnote-content'}));if(_0x21db19){if(_0x948107)_0x581ea2['convertChildren'](_0x21db19,_0x1e2c74);else{const _0x97e439=_0x581ea2['writer']['createElement']('footnoteInlineContent');_0x581ea2['writer']['insert'](_0x97e439,_0x1e2c74),_0x581ea2['convertChildren'](_0x21db19,_0x97e439);}}_0x581ea2['updateConversionResult'](_0x1e2c74,_0x547b16);});}),_0x2fc143['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x32c306,{writer:_0x1fcaf0})=>y(_0x32c306,_0x1fcaf0,_0xf9384d,{'dataPipeline':!0x0})}),_0x2fc143['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1c8e6a,{writer:_0x5d11a6})=>y(_0x1c8e6a,_0x5d11a6,_0xf9384d)});}['_defineBogusParagraphConverters'](){const {editor:_0x46db9b}=this,{conversion:_0x3c52b5}=_0x46db9b;_0x46db9b['config']['get']('footnotes.multiBlock')?(_0x3c52b5['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3c52b5['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x46db9b['model']['document'],'change:data',()=>{!function(_0x6f1de,_0x320508){const _0x320e22=_0x6f1de['document']['differ'],_0x24dc4a=new Set();for(const _0x2990bf of _0x320e22['getChanges']()){const _0x828861='attribute'==_0x2990bf['type']?_0x2990bf['range']['start']['parent']:_0x2990bf['position']['parent'];_0x828861['is']('element','footnoteDefinition')&&_0x24dc4a['add'](_0x828861);}for(const _0x4b5c76 of _0x24dc4a['values']()){const _0xc0528a=Array['from'](_0x4b5c76['getChildren']())['filter'](_0xb2c0a3=>v(_0xb2c0a3,_0x320508['mapper']));for(const _0x5e3ad5 of _0xc0528a)_0x320508['reconvertItem'](_0x5e3ad5);}}(_0x46db9b['model'],_0x46db9b['editing']);})):(_0x3c52b5['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3c52b5['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2bdea4,{writer:_0x2836b5})=>{const _0x1929a8=_0x2836b5['createContainerElement']('span');return _0x2836b5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1929a8),_0x1929a8;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5b83cd}=this,{editing:_0x1baedd,t:t}=_0x5b83cd,_0x4a2fa0=_0x5b83cd['model']['document']['selection'];_0x5b83cd['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5b83cd['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1baedd['view']['document'],'enter',(_0x385db7,_0xa811f4)=>{const _0x8355d0=function(_0x4b91ef){const _0x1cfd07=_0x4b91ef['getSelectedElement']();if(_0x1cfd07?.['is']('element','footnoteRef'))return _0x1cfd07;return null;}(_0x4a2fa0);if(_0x8355d0){const _0x379e80=_0x8355d0['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x379e80),_0xa811f4['preventDefault'](),_0x385db7['stop']();}},{'context':_0x41e0e1});}['_defineClickHandlers'](){const {editor:_0x45776e}=this,{editing:_0x4231de}=_0x45776e;_0x45776e['editing']['view']['addObserver'](_0x3ca3e6),_0x45776e['editing']['view']['addObserver'](_0x5441bf);let _0x19f481=!0x1;this['listenTo'](_0x4231de['view']['document'],'pointerdown',(_0x145299,_0x152841)=>{const {target:_0x41b7a0}=_0x152841,_0x3ff936=_0x4231de['view']['document']['selection'];_0x19f481=!!(_0x41b7a0?.['is']('element','a')&&_0x41b7a0['parent']?.['is']('element','sup')&&_0x41b7a0['parent']['hasClass']('footnote'))&&_0x3ff936['getSelectedElement']()===_0x41b7a0['parent'];},{'priority':'high'}),this['listenTo'](_0x4231de['view']['document'],'click',(_0x183ad8,_0x52a30e)=>{const {target:_0x4a738a}=_0x52a30e;if(!_0x4a738a?.['is']('element','a'))return;if(_0x4a738a['parent']?.['is']('element','sup')&&_0x4a738a['parent']['hasClass']('footnote')&&!_0x19f481)return void _0x52a30e['preventDefault']();let _0x5482f8=_0x4a738a['getAttribute']('href');if(!_0x5482f8?.['startsWith']('#'))return;_0x5482f8=_0x5482f8['slice'](0x1);let _0x345f84=!0x1;(_0x5482f8['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x5482f8['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x5482f8))&&(_0x345f84=!0x0),_0x345f84&&(_0x52a30e['preventDefault'](),_0x183ad8['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xc868dc}={}){return(_0x2d2312,{writer:_0x50e6b6})=>{if(!g(_0x2d2312))return null;if(!_0xc868dc)return _0x50e6b6['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x12671c=_0x50e6b6['createContainerElement']('p');return _0x50e6b6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x12671c),_0x12671c;};}function g(_0x4ce6de){const {parent:_0x1d9302}=_0x4ce6de;if(!_0x1d9302?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x1d9302['childCount'])return!0x1;for(const _0x32eb2b of _0x4ce6de['getAttributeKeys']())if(!_0x32eb2b['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x32eb2b)return!0x1;return!0x0;}function v(_0x35ba44,_0x54ee9e){if(!_0x35ba44['is']('element','paragraph'))return!0x1;const _0x14f40a=_0x54ee9e['toViewElement'](_0x35ba44);return!!_0x14f40a&&g(_0x35ba44)!==_0x14f40a['is']('element','span');}function Q(_0x4954db){return _0x41e0e1(_0x4954db)&&_0x4954db['is']('containerElement')&&!!_0x4954db['getCustomProperty']('footnotesDefinitions');}function D(_0x1be1aa,_0x3a5f5f={}){const _0x30db3f=_0x1be1aa['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xc7f6d8=_0x1be1aa['createContainerElement']('ol',{'class':'footnotes-list'},_0x1be1aa['createSlot']());return _0x1be1aa['createContainerElement']('div',{'class':'footnotes',..._0x3a5f5f},[_0x30db3f,_0xc7f6d8]);}function b(_0x57a9d1,_0x339154){const _0x5d7885=_0x57a9d1['getAttribute']('footnoteId'),_0x1f87bf=_0x57a9d1['getAttribute']('footnoteCounter'),_0x2bd0c5=_0x339154['createUIElement']('a',{'href':'#'+_0x5d7885},function(_0x2712ee){const _0x5b4212=this['toDomElement'](_0x2712ee);return _0x5b4212['textContent']=_0x1f87bf,_0x5b4212;}),_0x2320a2=_0x339154['createContainerElement']('sup',{'id':'ref-'+_0x5d7885,'class':'footnote'},[_0x2bd0c5]);return _0x2320a2['getFillerOffset']=()=>null,_0x2320a2;}function y(_0x42243e,_0x48168d,_0x287431,{dataPipeline:_0x7f13f2}={}){const {t:t}=_0x287431,_0x4eb044=_0x42243e['getAttribute']('footnoteId'),_0xd0c82b=_0x48168d['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4eb044},function(_0x113153){const _0x54064b=this['toDomElement'](_0x113153);return _0x54064b['innerText']='^',_0x54064b;}),_0x56bbde=_0x7f13f2?_0x48168d['createContainerElement']('div',{'class':'footnote-content'}):_0x51046e(_0x48168d['createEditableElement']('div',{'class':'footnote-content'}),_0x48168d,{'label':t('Footnote\x20content.')});return _0x48168d['insert'](_0x48168d['createPositionAt'](_0x56bbde,0x0),_0x48168d['createSlot']()),_0x48168d['createContainerElement']('li',{'class':'footnote-definition','id':_0x4eb044},[_0xd0c82b,_0x56bbde]);}class e extends _0x1a1224{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x4d9667];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x368a27}=this,{plugins:_0x232b06,model:_0x230dcc}=_0x368a27,_0x1d0e51=_0x232b06['get'](_0x4d9667),_0xa25b75=_0x232b06['get'](f);this['listenTo'](_0x1d0e51,'outputTransformation',(_0x3a496b,_0x15d601)=>{const _0xbaa966=l(_0x230dcc['createRangeIn'](_0x15d601['content']));if(!_0xbaa966['length'])return;const _0x3a2826=_0xa25b75['getFootnotes'](),_0x86c078=_0xbaa966['reduce']((_0x2db239,_0x579fbc)=>{const _0x17b22d=_0x3a2826['find'](_0xab87c5=>_0xab87c5['id']===_0x579fbc);if(_0x17b22d){const _0x30ddbd=_0x368a27['data']['toView'](_0x17b22d['definition'],{'isClipboardPipeline':!0x0}),_0x35f39e=_0x368a27['data']['htmlProcessor']['toData'](_0x30ddbd);_0x2db239[_0x17b22d['id']]=_0x35f39e;}return _0x2db239;},Object['create'](null));_0x15d601['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x86c078));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5c3969}=this,{model:_0x10d4a9,plugins:_0x3c2cfb}=_0x5c3969,{view:_0x47ffdd}=_0x5c3969['editing'],_0x1f54e7=_0x3c2cfb['get'](_0x4d9667),_0x585dad=_0x3c2cfb['get'](f),_0x5a4fa4=_0x5c3969['config']['get']('footnotes.multiBlock');let _0x85208a=null;this['listenTo'](_0x47ffdd['document'],'clipboardInput',(_0x34e74b,_0x4ea740)=>{const _0xfc2d2f=_0x4ea740['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x85208a=_0xfc2d2f?JSON['parse'](_0xfc2d2f):null;}),this['listenTo'](_0x1f54e7,'contentInsertion',(_0x359b25,_0x5e4164)=>{const _0x5aae8c=_0x5e4164['sourceEditorId']===this['editor']['id'];_0x5aae8c&&'drop'===_0x5e4164['method']||_0x10d4a9['change'](_0x494825=>{let _0x433bac=_0x585dad['getFootnotesDefinitionsObjectElement']();const _0x3a3eb0=!!_0x433bac&&Array['from'](_0x10d4a9['document']['selection']['getSelectedBlocks']())['includes'](_0x433bac);if(!_0x85208a&&function(_0x59b202){for(const {item:_0x5d8e1d}of _0x59b202)if(_0x5d8e1d['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x10d4a9['createRangeIn'](_0x5e4164['content']))&&(_0x85208a=function(_0x3f3b1a,_0xca0701){const _0x581377=c(_0x3f3b1a,_0xca0701);if(!_0x581377)return null;const _0x1ef87c=Object['create'](null);for(const _0x5ea8c9 of _0x581377['getChildren']())_0x5ea8c9['is']('element','footnoteDefinition')&&_0x5ea8c9['hasAttribute']('footnoteId')&&(_0x1ef87c[_0x5ea8c9['getAttribute']('footnoteId')]=_0x3f3b1a['cloneElement'](_0x5ea8c9,!0x0));return Object['keys'](_0x1ef87c)['length']?_0x1ef87c:null;}(_0x494825,_0x5e4164['content'])),(_0x433bac&&!_0x3a3eb0||!_0x433bac&&!_0x85208a)&&function(_0x228325,_0x63d8fb){const _0x1c86c7=[];for(const {item:_0x2c24eb}of _0x228325['createRangeIn'](_0x63d8fb))_0x2c24eb['is']('element','footnotesDefinitions')&&_0x1c86c7['push'](_0x2c24eb);for(const _0x25ad5a of _0x1c86c7)_0x228325['remove'](_0x25ad5a);}(_0x494825,_0x5e4164['content']),!_0x85208a)return;const {selection:_0xb7091b}=_0x10d4a9['document'],_0x1d4caa=_0xb7091b['getFirstRange']()['root'];_0x433bac&&!_0x3a3eb0||(_0x433bac=c(_0x494825,_0x5e4164['content']),_0x433bac||=_0x585dad['_insertEmptyFootnotesDefinitionsContainer'](_0x494825,_0x1d4caa));const _0x45f509=Array['from'](_0xb7091b['getRanges']())['flatMap'](l),_0x49b945=function(_0x4d0ebc,_0x1889f1,_0x5c8c76){const _0x597137=Object['create'](null);for(const {item:_0x1aefa8}of _0x4d0ebc['createRangeIn'](_0x1889f1))if(_0x1aefa8['is']('element','footnoteRef')){const _0x2eeaff=_0x1aefa8['getAttribute']('footnoteId');if(!_0x5c8c76(_0x2eeaff))continue;_0x597137[_0x2eeaff]||(_0x597137[_0x2eeaff]=_0x1e1024()),_0x4d0ebc['setAttribute']('footnoteId',_0x597137[_0x2eeaff],_0x1aefa8);}return _0x597137;}(_0x494825,_0x5e4164['content'],_0xfd8306=>{if(!_0x5aae8c)return!0x0;return!!_0x585dad['getFootnote'](_0xfd8306)&&!_0x45f509['includes'](_0xfd8306);});for(const [_0x390c10,_0x1cf5b7]of Object['entries'](_0x85208a)){const _0x2df614=_0x49b945[_0x390c10]||_0x390c10;let _0x5df668;if('string'!=typeof _0x1cf5b7)_0x5df668=_0x1cf5b7,_0x2df614!==_0x390c10&&_0x494825['setAttribute']('footnoteId',_0x2df614,_0x5df668);else{_0x5df668=_0x494825['createElement']('footnoteDefinition',{'footnoteId':_0x2df614});const _0x55e05b=_0x5c3969['data']['htmlProcessor']['toView'](_0x1cf5b7);let _0x53a817;if(_0x5a4fa4)_0x53a817=_0x5c3969['data']['toModel'](_0x55e05b,_0x5df668);else{_0x53a817=_0x494825['createElement']('footnoteInlineContent');const _0x171399=_0x5c3969['data']['toModel'](_0x55e05b,_0x53a817);_0x494825['insert'](_0x171399,_0x53a817);}_0x494825['append'](_0x53a817,_0x5df668);}_0x494825['insert'](_0x5df668,_0x433bac,'end');}_0x85208a=null;});});}}function c(_0x2cc9cb,_0xbd606e){for(const {item:_0x16a653}of _0x2cc9cb['createRangeIn'](_0xbd606e))if(_0x16a653['is']('element','footnotesDefinitions'))return _0x16a653;return null;}function l(_0x3a0d80){const _0x33386e=new Set();for(const {item:_0x3a312d}of _0x3a0d80)_0x3a312d['is']('element','footnoteRef')&&_0x33386e['add'](_0x3a312d['getAttribute']('footnoteId'));return Array['from'](_0x33386e);}class i extends _0x1a1224{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f4f59}=this,{componentFactory:_0x18a324}=_0x3f4f59['ui'];_0x18a324['add']('insertFootnote',E(_0x3f4f59,_0x275c2c)),_0x18a324['add']('menuBar:insertFootnote',E(_0x3f4f59,_0x3f24a9)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x4e544d=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x41ec3f;for(const _0x258422 in _0x4e544d){const _0x54f66b=_0x258422,_0x1eca46=_0x4e544d[_0x54f66b];if('footnotesLicenseKeyValid'==_0x1eca46||'footnotesLicenseKeyInvalid'==_0x1eca46||'footnotesLicenseKeyExpired'==_0x1eca46||'footnotesLicenseKeyDomainLimit'==_0x1eca46||'footnotesLicenseKeyNotAllowed'==_0x1eca46||'footnotesLicenseKeyEvaluationLimit'==_0x1eca46||'footnotesLicenseKeyUsageLimit'==_0x1eca46){delete _0x4e544d[_0x54f66b],_0x41ec3f=_0x1eca46,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x41ec3f&&_0x4e544d['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x41ec3f&&_0x4e544d['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x41ec3f&&_0x4e544d['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x41ec3f&&_0x4e544d['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x41ec3f&&_0x4e544d['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x41ec3f&&_0x4e544d['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x28e9df,_0x25a3e1){const _0x334866=_0x28e9df['commands']['get']('insertFootnote');return _0x236be7=>{const {t:t}=_0x236be7,_0x61ff97=new _0x25a3e1(_0x236be7),_0x465bc2=_0x61ff97 instanceof _0x3f24a9;return _0x61ff97['bind']('isEnabled')['to'](_0x334866,'isEnabled'),_0x61ff97['set']({'label':t(_0x465bc2?'Footnote':'Insert\x20footnote'),'icon':_0xeb2824,'tooltip':!0x0}),_0x61ff97['on']('execute',()=>{_0x334866['execute'](),_0x28e9df['editing']['view']['focus']();}),_0x61ff97;};}class lt extends _0x1a1224{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const ct=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x5e4aee{['refresh'](){const {editor:_0x3c0b60}=this,_0x3444cd=_0x3c0b60['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3444cd,this['value']=_0x3444cd?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x57c585}){const {editor:_0x2b7c50}=this,_0x3719c1=_0x2b7c50['plugins']['get'](f),_0x50b510=_0x3719c1['getFootnotesDefinitionsObjectElement']();_0x50b510&&ct['includes'](_0x57c585)&&_0x2b7c50['model']['change'](_0x513902=>{_0x513902['setAttribute']('footnotesListStyle',_0x57c585,_0x50b510),_0x3719c1['_updateFootnotesCounters'](_0x513902);});}}class C extends _0x5e4aee{['refresh'](){const {editor:_0xa70d8a}=this,_0x4f04d8=_0xa70d8a['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4f04d8,this['value']=_0x4f04d8?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x231db7}){const {editor:_0x55aa80}=this,_0x29228b=_0x55aa80['plugins']['get'](f),_0x549259=_0x29228b['getFootnotesDefinitionsObjectElement']();_0x549259&&Number['isInteger'](_0x231db7)&&_0x55aa80['model']['change'](_0x6391b0=>{_0x6391b0['setAttribute']('footnotesListStart',_0x231db7,_0x549259),_0x29228b['_updateFootnotesCounters'](_0x6391b0);});}}class P extends _0x1a1224{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x237fad}=this;_0x237fad['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x237fad['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x237fad['commands']['add']('footnotesStyle',new S(_0x237fad)),_0x237fad['commands']['add']('footnotesStart',new C(_0x237fad)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4a0f3a}=this,{schema:_0x18fe1e}=_0x4a0f3a['model'];_0x18fe1e['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x5e742e}=this,{conversion:_0x27499a,model:_0xab5458}=_0x5e742e,{schema:_0x5a9e7b}=_0xab5458;_0x27499a['for']('upcast')['add'](_0x3cb6df=>{_0x3cb6df['on']('element:ol',(_0x54f20c,_0x51195c,_0x578086)=>{const _0x20e1ac=_0x51195c['viewItem'],_0x36f71b=_0x51195c['modelCursor']?.['parent'];_0x20e1ac['hasClass']('footnotes-list')&&_0x36f71b?.['is']('element','footnotesDefinitions')&&(function(_0x13ed3d,_0x485e1a,_0x33dd9a,_0x4a19b9){if(!_0x4a19b9['checkAttribute'](_0x485e1a,'footnotesListStart'))return;let _0x4e9cf0=0x1;const _0x2de510=_0x33dd9a['consumable']['consume'](_0x13ed3d,{'attributes':'start'});if(_0x2de510){const _0x3fb4c2=Number['parseInt'](_0x13ed3d['getAttribute']('start'),0xa);Number['isNaN'](_0x3fb4c2)||(_0x4e9cf0=_0x3fb4c2);}!_0x2de510&&_0x485e1a['hasAttribute']('footnotesListStart')||_0x33dd9a['writer']['setAttribute']('footnotesListStart',_0x4e9cf0,_0x485e1a);}(_0x20e1ac,_0x36f71b,_0x578086,_0x5a9e7b),function(_0x2e9321,_0x9b54f0,_0x34e7f1,_0x577f83){if(!_0x577f83['checkAttribute'](_0x9b54f0,'footnotesListStyle'))return;let _0x10cea5='decimal',_0x20f969=!0x1;if(_0x34e7f1['consumable']['consume'](_0x2e9321,{'attributes':'type'})){const _0x10c51c={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x2e9321['getAttribute']('type')];_0x10c51c&&(_0x10cea5=_0x10c51c),_0x20f969=!0x0;}_0x34e7f1['consumable']['consume'](_0x2e9321,{'styles':'list-style-type'})&&(_0x10cea5=function(_0x4b8459){switch(_0x4b8459){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x4b8459;}}(_0x2e9321['getStyle']('list-style-type')),_0x20f969=!0x0),!_0x20f969&&_0x9b54f0['hasAttribute']('footnotesListStyle')||_0x34e7f1['writer']['setAttribute']('footnotesListStyle',_0x10cea5,_0x9b54f0);}(_0x20e1ac,_0x36f71b,_0x578086,_0x5a9e7b));});}),_0x27499a['for']('downcast')['add'](_0x1538c1=>{_0x1538c1['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x7b856a,_0x105b67,_0x32d484)=>{if(!_0x32d484['consumable']['consume'](_0x105b67['item'],_0x7b856a['name']))return;const _0x509713=M(_0x105b67['item'],_0x32d484['mapper']),{attributeNewValue:_0x41b0a9}=_0x105b67;null==_0x41b0a9||0x1===_0x41b0a9?_0x32d484['writer']['removeAttribute']('start',_0x509713):_0x32d484['writer']['setAttribute']('start',String(_0x41b0a9),_0x509713);}),_0x1538c1['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x46b7cc,_0x504599,_0x48d72e)=>{if(!_0x48d72e['consumable']['consume'](_0x504599['item'],_0x46b7cc['name']))return;const _0x1fa4e3=M(_0x504599['item'],_0x48d72e['mapper']),{attributeNewValue:_0xbc6e18}=_0x504599;_0xbc6e18&&'decimal'!==_0xbc6e18?_0x48d72e['writer']['setStyle']('list-style-type',_0xbc6e18,_0x1fa4e3):_0x48d72e['writer']['removeStyle']('list-style-type',_0x1fa4e3);});});}['_definePostfixer'](){const {editor:_0x44980a}=this,{model:_0x589bbe}=_0x44980a,_0x16362f=_0x44980a['plugins']['get'](f),_0x92f2af=this['_getDefaultListStyle'](),_0x40cc20=this['_getDefaultStartIndex']();_0x589bbe['document']['registerPostFixer'](_0x38d64b=>{const _0x56609b=_0x589bbe['document']['differ']['getChanges']();let _0x5c686a=!0x1;for(const _0x4eccf6 of _0x56609b){if('insert'!==_0x4eccf6['type']||'$text'===_0x4eccf6['name'])continue;const _0x265ac7=_0x589bbe['createRangeOn'](_0x4eccf6['position']['nodeAfter']);for(const _0x2355ff of _0x265ac7['getItems']())_0x2355ff['is']('element','footnotesDefinitions')&&(!_0x2355ff['hasAttribute']('footnotesListStart')&&_0x589bbe['schema']['checkAttribute'](_0x2355ff,'footnotesListStart')&&(_0x38d64b['setAttribute']('footnotesListStart',_0x40cc20,_0x2355ff),_0x5c686a=!0x0),!_0x2355ff['hasAttribute']('footnotesListStyle')&&_0x589bbe['schema']['checkAttribute'](_0x2355ff,'footnotesListStyle')&&(_0x38d64b['setAttribute']('footnotesListStyle',_0x92f2af,_0x2355ff),_0x5c686a=!0x0));}return _0x5c686a&&_0x16362f['_updateFootnotesCounters'](_0x38d64b),_0x5c686a;});}['_defineFormatter'](){const {editor:_0x3acc0f}=this;_0x3acc0f['plugins']['get'](f)['setFootnoteFormatter'](_0x4cf8da=>this['_formatFootnoteListValue'](_0x4cf8da));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x1dd323,value:_0x21215d,digits:_0x1c57ef}){const _0x4d2377=_0x1dd323['getAttribute']('footnotesListStyle'),_0xebfe8b=_0x1dd323['getAttribute']('footnotesListStart'),_0xda6457=Math['floor'](_0x21215d)+(_0xebfe8b??0x1)-0x1;switch(_0x4d2377){case'decimal-leading-zero':return function(_0x24e2e9,_0x11895d){return String(_0x24e2e9)['padStart'](_0x11895d,'0');}(_0xda6457,Math['max'](0x2,_0x1c57ef));case'lower-alpha':case'lower-latin':return N(_0xda6457,!0x1);case'upper-alpha':case'upper-latin':return N(_0xda6457,!0x0);case'lower-roman':return X(_0xda6457,!0x1);case'upper-roman':return X(_0xda6457,!0x0);default:return String(_0xda6457);}}}function M(_0x592625,_0x46aed5){const _0x1465d5=_0x46aed5['toViewElement'](_0x592625);return Array['from'](_0x1465d5['getChildren']())['find'](_0x4aa7fe=>_0x4aa7fe['is']('element','ol')&&_0x4aa7fe['hasClass']('footnotes-list'));}function N(_0x45bbe8,_0x34c629){let _0x3e8eda='',_0x1eff7a=_0x45bbe8;for(;_0x1eff7a>0x0;){const _0x549a55=(_0x1eff7a-0x1)%0x1a;_0x3e8eda=String['fromCharCode'](0x61+_0x549a55)+_0x3e8eda,_0x1eff7a=Math['floor']((_0x1eff7a-0x1)/0x1a);}return _0x34c629?_0x3e8eda['toUpperCase']():_0x3e8eda;}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(_0x3d14cc,_0x1137ef){let _0x50d9ad='',_0x2ad9ff=_0x3d14cc;for(const {value:_0x47f11e,numeral:_0x3e5489}of V)for(;_0x2ad9ff>=_0x47f11e;)_0x50d9ad+=_0x3e5489,_0x2ad9ff-=_0x47f11e;return _0x1137ef?_0x50d9ad:_0x50d9ad['toLowerCase']();}class J extends _0x464d81{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new ot();['keystrokes']=new rt();['focusables']=new _0x5d8154();['focusCycler'];constructor(_0x113d7c,{styleButtonViews:_0x5af9c0,styleGridAriaLabel:_0x708200}){super(_0x113d7c),(this['focusCycler']=new _0x57b1ab({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5af9c0,_0x708200),[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 _0x4d8422 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x4d8422['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 _0x40d921=_0x3f48ce=>_0x3f48ce['stopPropagation']();this['keystrokes']['set']('arrowright',_0x40d921),this['keystrokes']['set']('arrowleft',_0x40d921),this['keystrokes']['set']('arrowup',_0x40d921),this['keystrokes']['set']('arrowdown',_0x40d921);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x554273,_0xf670c4){const _0x3ca90b=new _0x464d81(this['locale']);return _0x3ca90b['children']=_0x3ca90b['createCollection'](),_0x3ca90b['children']['addMany'](_0x554273),_0x3ca90b['setTemplate']({'tag':'div','attributes':{'aria-label':_0xf670c4,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x3ca90b['children']}),_0x3ca90b['children']['delegate']('execute')['to'](this),_0x3ca90b['focus']=function(){for(const _0x528f25 of this['children'])if(_0x528f25 instanceof _0x275c2c&&_0x528f25['isOn'])return void _0x528f25['focus']();this['children']['first']['focus']();},_0x3ca90b['focusTracker']=new ot(),_0x3ca90b['keystrokes']=new rt(),_0x3ca90b['render'](),_0x3ca90b['keystrokes']['listenTo'](_0x3ca90b['element']),this['children']['add'](_0x3ca90b),_0x3ca90b;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x3dda95=this['_createStartIndexPropertyView'](),_0x752b50=[_0x3dda95],_0x3ffbb8=new st(this['locale'],_0x752b50);return _0x3ffbb8['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3ffbb8['buttonView']['bind']('isEnabled')['toMany'](_0x752b50,'isEnabled',(..._0x147832)=>_0x147832['some'](_0x59d06c=>_0x59d06c)),_0x3ffbb8['buttonView']['on']('change:isEnabled',(_0x4e8830,_0x37edc6,_0x5356b4)=>{_0x5356b4||(_0x3ffbb8['isCollapsed']=!0x0);}),this['children']['add'](_0x3ffbb8),[_0x3dda95,_0x3ffbb8];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x4bd231=new it(this['locale'],et);return _0x4bd231['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x4bd231['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x4bd231['fieldView']['on']('input',()=>{const _0x35124d=_0x4bd231['fieldView']['element'],_0x56c2cb=_0x35124d['valueAsNumber'];Number['isNaN'](_0x56c2cb)?_0x4bd231['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x35124d['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x56c2cb}):_0x4bd231['errorText']=t(_0x56c2cb<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x4bd231;}}class j extends _0x1a1224{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x1c3e38,_0x1bdf8d];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5d9358}=this,{componentFactory:_0x2b18ec}=_0x5d9358['ui'];_0x5d9358['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x2b18ec['add']('footnotesStyle',function(_0x13a4e7){return _0x333586=>{const {t:t}=_0x333586,_0x169250=_0x13a4e7['commands']['get']('footnotesStyle'),_0x1a35a0=_0x14eff1(_0x333586),{buttonView:_0x12a757}=_0x1a35a0;return _0x1a35a0['class']='ck-footnotes-styles-dropdown',_0x1a35a0['bind']('isEnabled')['to'](_0x169250,'isEnabled'),_0x12a757['set']({'label':t('Footnotes\x20style'),'icon':_0xeb2824,'tooltip':!0x0}),_0x1a35a0['once']('change:isOpen',()=>{const _0x5e09a2=function({editor:_0xa1cd61,dropdownView:_0x3bdc0b}){const {t:t}=_0xa1cd61['locale'],_0x214818=t('Footnotes\x20definitions\x20styles'),_0x2764b1=function(_0x25a08f){const t=_0x25a08f['locale']['t'],_0x1c0a66=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2fd60d},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x5da6fc},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x551ecf},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x150262},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4fd7b8},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x8fa10e}];return _0x1c0a66['map'](function(_0x314080){const _0x2a5884=_0x314080['locale'];return({label:_0x2b0cae,icon:_0x53b5d7,tooltip:_0xbe091f,style:_0xc82f93})=>{const _0x417310=_0x314080['commands']['get']('footnotesStyle'),_0x5ba9fa=new _0x275c2c(_0x2a5884);return _0x5ba9fa['set']({'label':_0x2b0cae,'icon':_0x53b5d7,'tooltip':_0xbe091f}),_0x5ba9fa['bind']('isOn')['to'](_0x417310,'value',_0x4fe629=>_0x4fe629===_0xc82f93),_0x5ba9fa['bind']('isEnabled')['to'](_0x417310,'isEnabled'),_0x5ba9fa['on']('execute',()=>{_0x314080['execute']('footnotesStyle',{'value':_0xc82f93}),_0x314080['editing']['view']['focus']();}),_0x5ba9fa;};}(_0x25a08f));}(_0xa1cd61),_0xc28827=new J(_0xa1cd61['locale'],{'styleGridAriaLabel':_0x214818,'styleButtonViews':_0x2764b1}),_0x334766=_0xa1cd61['commands']['get']('footnotesStart');return _0xc28827['startIndexFieldView']['bind']('isEnabled')['to'](_0x334766),_0xc28827['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x334766),_0xc28827['on']('footnotesListStart',(_0x46064e,_0x208ce6)=>{_0xa1cd61['execute']('footnotesStart',{'value':_0x208ce6['startIndex']});}),_0xc28827['delegate']('execute')['to'](_0x3bdc0b),_0xc28827;}({'editor':_0x13a4e7,'dropdownView':_0x1a35a0});_0x1a35a0['panelView']['children']['add'](_0x5e09a2);}),_0x1a35a0;};}(_0x5d9358));}['afterInit'](){const {editor:_0x5dd756}=this,{t:t}=_0x5dd756['locale'],_0x441466=_0x5dd756['plugins']['get'](_0x1bdf8d),{defaultPositions:_0x26b7b1}=_0x31f217;_0x441466['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5dd756['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x18aaa6=>{let _0x19a09c=_0x18aaa6['getFirstPosition']()?.['parent'];return _0x19a09c?.['is']('$text')&&(_0x19a09c=_0x19a09c['parent']),_0x19a09c?.['is']('element')?_0x19a09c['findAncestor'](Q):null;},'positions':[_0x26b7b1['southArrowNorth'],_0x26b7b1['southArrowNorthMiddleWest'],_0x26b7b1['southArrowNorthMiddleEast'],_0x26b7b1['southArrowNorthWest'],_0x26b7b1['southArrowNorthEast'],_0x26b7b1['northArrowSouth'],_0x26b7b1['northArrowSouthMiddleWest'],_0x26b7b1['northArrowSouthMiddleEast'],_0x26b7b1['northArrowSouthWest'],_0x26b7b1['northArrowSouthEast'],_0x26b7b1['viewportStickyNorth']]});}}class ft extends _0x1a1224{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x19eda0,Command as _0x351006}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x46d9c5,isWidget as _0x3b059c,toWidgetEditable as _0x180e5a,WidgetToolbarRepository as _0x4b86aa}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0xe68562,logWarning as _0x5aa102,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x33c070,ClickObserver as _0x37eab0}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x3fef1b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1b55b4,ButtonView as _0x1fc42c,View as _0x350447,ViewCollection as _0x1ec22f,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0xce7b1e,BalloonPanelView as _0x410fb1,createDropdown as _0x3b9fda}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x5a8fbf,IconListStyleDecimal as _0x2cca65,IconListStyleDecimalLeadingZero as _0x4d1f84,IconListStyleLowerRoman as _0x3b622a,IconListStyleUpperRoman as _0x521d19,IconListStyleLowerLatin as _0x4179bf,IconListStyleUpperLatin as _0x15bfb3}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x4b4de4,_0x80e2e3){this['_model']=_0x4b4de4,this['_elementName']=_0x80e2e3['elementName'],this['_getElementKey']=_0x80e2e3['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x401925){const _0x20b90f=new Set(),_0x5c78d7=new Map();for(const _0x3f8f5c of _0x401925){if('insert'===_0x3f8f5c['type']&&'$text'!==_0x3f8f5c['name']&&_0x3f8f5c['position']['nodeAfter']){const _0xb8cc09=this['_model']['createRangeOn'](_0x3f8f5c['position']['nodeAfter']);for(const _0x4460f2 of _0xb8cc09['getItems']()){if(!_0x4460f2['is']('element',this['_elementName']))continue;const _0x85873c=this['_getElementKey'](_0x4460f2);_0x5c78d7['has'](_0x85873c)||_0x5c78d7['set'](_0x85873c,[]),_0x5c78d7['get'](_0x85873c)['push'](_0x4460f2);}}if('remove'===_0x3f8f5c['type']&&_0x3f8f5c['name']===this['_elementName']){const _0x57b319=this['_getElementKey']({'getAttribute':_0x5a5989=>_0x3f8f5c['attributes']['get'](_0x5a5989)});_0x20b90f['add'](_0x57b319);}}for(const [_0x226124,_0x1dcafb]of this['_trackedElements'])'$graveyard'===_0x1dcafb['root']['rootName']&&_0x20b90f['add'](_0x226124);for(const _0x3acb0a of _0x20b90f)this['_trackedElements']['delete'](_0x3acb0a);for(const [_0x1a2b8e,_0x23e0e1]of _0x5c78d7)this['_trackedElements']['set'](_0x1a2b8e,_0x23e0e1[_0x23e0e1['length']-0x1]);const _0x76dab3=new Set();for(const [_0x27d3dc,_0x484ce0]of _0x5c78d7)_0x20b90f['has'](_0x27d3dc)&&(_0x76dab3['add'](_0x484ce0[0x0]),_0x484ce0['length']>0x1?_0x5c78d7['set'](_0x27d3dc,_0x484ce0['slice'](0x1)):_0x5c78d7['delete'](_0x27d3dc),_0x20b90f['delete'](_0x27d3dc));return{'removed':Array['from'](_0x20b90f),'inserted':Array['from'](_0x5c78d7['values']())['flat'](),'moved':Array['from'](_0x76dab3)};}}class f extends _0x19eda0{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x56e833){super(_0x56e833),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x360554=>_0x360554['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x115fba=>_0x115fba['getAttribute']('footnoteId')});}['init'](){const {editor:_0x31b014}=this,{model:_0x3e8865,data:_0x414844}=_0x31b014;_0x3e8865['document']['registerPostFixer'](_0x2de95f=>{const _0x3fbfcc=_0x3e8865['document']['differ']['getChanges']();let _0x136565=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2de95f,_0x3fbfcc)&&(_0x136565=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2de95f,_0x3fbfcc)&&(_0x136565=!0x0),this['_handleFootnoteReferencesChanges'](_0x2de95f,_0x3fbfcc)&&(_0x136565=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2de95f)&&(_0x136565=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2de95f)&&(_0x136565=!0x0),this['_sortFootnoteDefinitions'](_0x2de95f)&&(_0x136565=!0x0),_0x136565;}),this['listenTo'](_0x3e8865['document'],'change:data',()=>{_0x3e8865['enqueueChange']({'isUndoable':!0x1},_0x2ab0af=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x2ab0af);});},{'priority':'low'}),this['listenTo'](_0x414844,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x13d65b){return this['_footnotes']['find'](_0x54b88c=>_0x54b88c['id']===_0x13d65b)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x3a6126){this['_footnoteFormatter']=_0x3a6126;}['_updateFootnotesCounters'](_0x620e84,_0x492a4e=0x0){let _0x2e7119=!0x1;for(let _0x4b0702=_0x492a4e;_0x4b0702<this['_footnotes']['length'];_0x4b0702++)this['_updateFootnoteRefCounter'](_0x620e84,_0x4b0702)&&(_0x2e7119=!0x0);return _0x2e7119;}['_insertEmptyFootnotesDefinitionsContainer'](_0x5d48b2,_0x280952){const _0x3c4b79=_0x5d48b2['createElement']('footnotesDefinitions',{});return _0x5d48b2['append'](_0x3c4b79,_0x280952),this['_footnotesDefinitions']=_0x3c4b79,_0x3c4b79;}['_ensureFootnotesDefinitionsContainerExists'](_0x15e066){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x46b8fb=this['_footnotes'][0x0]['reference']['root'],_0x4b8607=this['_insertEmptyFootnotesDefinitionsContainer'](_0x15e066,_0x46b8fb);for(const _0x1943a7 of this['_footnotes'])_0x1943a7['definition']['parent']||_0x15e066['insert'](_0x1943a7['definition'],_0x4b8607,'end');this['_updateFootnotesCounters'](_0x15e066);}['_handleFootnotesDefinitionsObjectChanges'](_0x40c29b,_0x54ce9f){let _0xcd2768=!0x1;const {inserted:_0x1109b5,removed:_0x42a7b7,moved:_0x25d631}=this['_footnoteDefsContainerTracker']['getChanges'](_0x54ce9f);if(_0x25d631['length']&&(this['_footnotesDefinitions']=_0x25d631[0x0]),_0x1109b5['length']){if(_0x1109b5['length']>0x1||this['_footnotesDefinitions']&&_0x1109b5['some'](_0x156fdd=>_0x156fdd!==this['_footnotesDefinitions'])){const _0x1a6f41=_0x40c29b['createElement']('footnotesDefinitions',{}),_0x108658=[];this['_footnotesDefinitions']&&_0x108658['push'](this['_footnotesDefinitions']),_0x108658['push'](..._0x1109b5),_0x40c29b['insert'](_0x1a6f41,_0x108658[0x0],'before');for(const _0x1d0062 of _0x108658)_0x40c29b['move'](_0x40c29b['createRangeIn'](_0x1d0062),_0x40c29b['createPositionAt'](_0x1a6f41,'end')),_0x40c29b['remove'](_0x1d0062);this['_footnotesDefinitions']=_0x1a6f41,this['_updateFootnotesCounters'](_0x40c29b),_0xcd2768=!0x0;}else this['_footnotesDefinitions']=_0x1109b5[0x0];}if(_0x42a7b7['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x32c6ba of this['_footnotes'])_0x40c29b['remove'](_0x32c6ba['reference']),_0xcd2768=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0xcd2768;}['_handleFootnoteDefinitionsChanges'](_0x5a3739,_0x360b50){let _0x452707=!0x1;const _0x2b65c2=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x36a186,moved:_0x5777ea}=this['_footnoteDefsTracker']['getChanges'](_0x360b50);for(const _0x646437 of[..._0x5777ea,..._0x36a186]){const _0x4b7d96=_0x646437['getAttribute']('footnoteId'),_0x4ea124=this['getFootnote'](_0x4b7d96);_0x4ea124&&(_0x4ea124['definition']=_0x646437),_(_0x5a3739,_0x2b65c2,_0x646437)&&(_0x452707=!0x0);}return _0x452707;}['_handleFootnoteReferencesChanges'](_0x5066b9,_0x25707b){let _0x4fe643=!0x1;const {removed:_0x8f6e9d,inserted:_0x3c6ada,moved:_0x59162c}=this['_footnoteRefsTracker']['getChanges'](_0x25707b);for(const _0x41580d of _0x8f6e9d)this['_handleRemoveFootnoteReferenceById'](_0x5066b9,_0x41580d)&&(_0x4fe643=!0x0);for(const _0x4352be of _0x3c6ada)this['_handleInsertedFootnoteReference'](_0x5066b9,_0x4352be)&&(_0x4fe643=!0x0);for(const _0x345412 of _0x59162c)this['_handleMovedFootnoteReference'](_0x5066b9,_0x345412)&&(_0x4fe643=!0x0);return _0x4fe643;}['_handleFootnotesDefinitionsObjectSync'](_0x164496){if(!this['_footnotesDefinitions'])return!0x1;let _0x5b2d7d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x21c12b=[];for(const _0x1e7bd2 of this['_footnotesDefinitions']['getChildren']()){const _0x50740e=_0x1e7bd2['getAttribute']('footnoteId');this['getFootnote'](_0x50740e)||(_0x21c12b['unshift'](_0x1e7bd2),_0x5b2d7d=!0x0);}for(const _0x538b29 of _0x21c12b)_0x164496['remove'](_0x538b29);}const _0x41df0f=new Set(),_0x252efd=[];for(const _0x200aac of this['_footnotesDefinitions']['getChildren']()){const _0xe67469=_0x200aac['getAttribute']('footnoteId');_0x41df0f['has'](_0xe67469)?(_0x252efd['unshift'](_0x200aac),_0x5b2d7d=!0x0):_0x41df0f['add'](_0xe67469);}for(const _0x4da757 of _0x252efd)_0x164496['remove'](_0x4da757);return this['_footnotesDefinitions']['childCount']||(_0x164496['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5b2d7d=!0x0),_0x5b2d7d;}['_handleInsertedFootnoteReference'](_0x214d68,_0x58afd5){if(this['_footnotes']['find'](_0x268caf=>_0x268caf['reference']===_0x58afd5))return!0x1;let _0x5e6ee7=!0x1;const _0x4d9fe9=_0x58afd5['getAttribute']('footnoteId'),_0x520cd0=this['_footnotes']['findIndex'](_0x1a39cc=>_0x1a39cc['id']===_0x4d9fe9);-0x1!==_0x520cd0&&(_0x214d68['remove'](this['_footnotes'][_0x520cd0]['reference']),this['_footnotes']['splice'](_0x520cd0,0x1),_0x5e6ee7=!0x0);let _0x3bf0b3=this['_footnotesDefinitions']?function(_0x1cbad2,_0x25046d){for(const _0x6e1c2 of _0x1cbad2['getChildren']())if(_0x6e1c2['getAttribute']('footnoteId')===_0x25046d)return _0x6e1c2;return null;}(this['_footnotesDefinitions'],_0x4d9fe9):null;_0x3bf0b3||(_0x3bf0b3=_0x214d68['createElement']('footnoteDefinition',{'footnoteId':_0x4d9fe9}),this['_footnotesDefinitions']&&(_0x214d68['insert'](_0x3bf0b3,this['_footnotesDefinitions'],'end'),_0x5e6ee7=!0x0));const _0x4f164b={'id':_0x4d9fe9,'reference':_0x58afd5,'definition':_0x3bf0b3},_0xedea11=I(this['editor']['model'],this['_footnotes'],_0x58afd5);this['_footnotes']['splice'](_0xedea11,0x0,_0x4f164b);let _0x274281=_0xedea11;return-0x1!==_0x520cd0&&(_0x274281=Math['min'](_0xedea11,_0x520cd0)),this['_updateFootnotesCounters'](_0x214d68,_0x274281)&&(_0x5e6ee7=!0x0),_0x5e6ee7;}['_handleRemoveFootnoteReferenceById'](_0x2c4d49,_0x1c9ee4){const _0x281a99=this['_footnotes']['findIndex'](_0x2744d7=>_0x2744d7['id']===_0x1c9ee4);if(-0x1===_0x281a99)return!0x1;let _0x556462=!0x1;const _0x4ce5a1=this['_footnotes'][_0x281a99];return'$graveyard'!==_0x4ce5a1['definition']['root']['rootName']&&(_0x2c4d49['remove'](_0x4ce5a1['definition']),_0x556462=!0x0),this['_footnotes']['splice'](_0x281a99,0x1),this['_updateFootnotesCounters'](_0x2c4d49,_0x281a99)&&(_0x556462=!0x0),_0x556462;}['_handleMovedFootnoteReference'](_0x593c41,_0x1db67b){const _0x31b254=_0x1db67b['getAttribute']('footnoteId'),_0xffe4b9=this['_footnotes']['findIndex'](_0x50b5c2=>_0x50b5c2['id']===_0x31b254),_0x1017c2=this['_footnotes'][_0xffe4b9];let _0x5c6c41=!0x1;_0x1017c2['reference']=_0x1db67b,this['_footnotes']['splice'](_0xffe4b9,0x1);const _0x25b2f5=I(this['editor']['model'],this['_footnotes'],_0x1db67b);return this['_footnotes']['splice'](_0x25b2f5,0x0,_0x1017c2),this['_updateFootnotesCounters'](_0x593c41,Math['min'](_0xffe4b9,_0x25b2f5))&&(_0x5c6c41=!0x0),_0x5c6c41;}['_updateFootnoteRefCounter'](_0x3db630,_0x354e6e){if(!this['_footnotesDefinitions'])return!0x1;const _0x1c085d=this['_footnotes'][_0x354e6e];let _0xc5149c;return _0xc5149c=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x1c085d,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x354e6e+0x1}):String(_0x354e6e+0x1),_0x1c085d['reference']['getAttribute']('footnoteCounter')!=_0xc5149c&&(_0x3db630['setAttribute']('footnoteCounter',_0xc5149c,_0x1c085d['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x6d36f1){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x571781,_0x23d9d4){if(_0x571781['length']!==_0x23d9d4['length'])return!0x1;for(let _0xa20913=0x0;_0xa20913<_0x571781['length'];_0xa20913++)if(_0x571781[_0xa20913]!==_0x23d9d4[_0xa20913])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1886da=>_0x1886da['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x20f7c3=>_0x20f7c3['getAttribute']('footnoteId'))))return!0x1;let _0x4afc76=!0x1;for(let _0x29e90c=0x0;_0x29e90c<this['_footnotes']['length'];_0x29e90c++){const _0xacf9ae=this['_footnotes'][_0x29e90c],_0x3ec5e0=_0x6d36f1['createPositionBefore'](_0xacf9ae['definition']),_0x179448=_0x6d36f1['createPositionAt'](this['_footnotesDefinitions'],_0x29e90c);_0x3ec5e0['isEqual'](_0x179448)||(_0x6d36f1['move'](_0x6d36f1['createRangeOn'](_0xacf9ae['definition']),_0x179448),_0x4afc76=!0x0);}return _0x4afc76;}['_ensureFootnotesReferencesHaveProperOrder'](_0x39a2b1){if(!this['_footnotes']['length'])return!0x1;const {model:_0x464a8b}=this['editor'];let _0x24beec=!0x1;for(let _0x41d3ab=0x0;_0x41d3ab<this['_footnotes']['length']-0x1;_0x41d3ab++){const _0x54ade2=this['_footnotes'][_0x41d3ab],_0xdd86a2=this['_footnotes'][_0x41d3ab+0x1],_0x2cdcca=_0x464a8b['createPositionBefore'](_0x54ade2['reference']),_0x4f43e7=_0x464a8b['createPositionBefore'](_0xdd86a2['reference']);'after'===_0x2cdcca['compareWith'](_0x4f43e7)&&(this['_handleMovedFootnoteReference'](_0x39a2b1,_0x54ade2['reference']),_0x41d3ab=-0x1,_0x24beec=!0x0);}return _0x24beec;}}function _(_0x592612,_0x2c5dc3,_0x1acb21){if(_0x1acb21['childCount'])return!0x1;const _0x10fcdb=_0x2c5dc3?'paragraph':'footnoteInlineContent';return _0x592612['insert'](_0x592612['createElement'](_0x10fcdb),_0x1acb21),!0x0;}function I(_0x119e33,_0x4b90fd,_0x13be05){if(0x0===_0x4b90fd['length'])return 0x0;const _0x1a082c=_0x119e33['createPositionBefore'](_0x13be05);for(let _0x38607d=0x0;_0x38607d<_0x4b90fd['length'];_0x38607d++){const _0x56e4d3=_0x4b90fd[_0x38607d],_0x4c76cd=_0x119e33['createPositionBefore'](_0x56e4d3['reference']);if('before'===_0x1a082c['compareWith'](_0x4c76cd))return _0x38607d;}const _0x13b3de=_0x13be05['root'];let _0x189abb=-0x1;for(let _0x4dd45e=_0x4b90fd['length']-0x1;_0x4dd45e>=0x0;_0x4dd45e--)if(_0x4b90fd[_0x4dd45e]['reference']['root']===_0x13b3de){_0x189abb=_0x4dd45e;break;}if(-0x1!==_0x189abb)return _0x189abb+0x1;const _0x23319c=_0x119e33['document']['getRootNames'](),_0x3d6f7d=_0x23319c['indexOf'](_0x13b3de['rootName']),_0x30523e=_0x23319c[_0x3d6f7d+0x1];if(_0x30523e){for(let _0x3f2d43=0x0;_0x3f2d43<_0x4b90fd['length'];_0x3f2d43++)if(_0x4b90fd[_0x3f2d43]['reference']['root']['rootName']===_0x30523e)return _0x3f2d43;}return _0x4b90fd['length'];}class h extends _0x351006{['refresh'](){const _0x38c387=this['editor']['model']['document']['selection'],_0x4b8557=this['_getPositionToInsertFootnote'](_0x38c387);this['isEnabled']=!!_0x4b8557;}['execute'](_0x3f6ac8){const {editor:_0x253f61}=this,{model:_0x56c9f8}=_0x253f61,{selection:_0x3ac66e}=_0x56c9f8['document'],_0x332a6a=this['_getPositionToInsertFootnote'](_0x3ac66e);if(!_0x332a6a)return;const _0x13e4e7=_0x253f61['plugins']['get']('FootnotesEditing'),_0x325793=_0x3f6ac8?.['footnoteId']??_0xe68562();!function(_0x5a0154){return'string'==typeof _0x5a0154&&_0x5a0154['length']>0x0&&!/\s/['test'](_0x5a0154)&&!/^\d/['test'](_0x5a0154);}(_0x325793)?_0x5aa102('insert-footnote-command-executed-with-invalid-id'):(_0x56c9f8['change'](_0x2c7b62=>{const _0x567f64=_0x2c7b62['createElement']('footnoteRef',{'footnoteId':_0x325793});_0x56c9f8['insertObject'](_0x567f64,_0x332a6a,null);}),_0x13e4e7['_moveSelectionToFootnoteDefinition'](_0x325793));}['_getPositionToInsertFootnote'](_0x568fea){const {model:_0x33183a}=this['editor'],{schema:_0x2ee7b3}=_0x33183a,_0x5b8908=_0x568fea['getFirstRange']();for(const _0x53fc73 of _0x5b8908['getItems']())if(_0x2ee7b3['isBlock'](_0x53fc73)||_0x2ee7b3['isObject'](_0x53fc73))return null;const _0x56c86c=_0x5b8908['end'];return _0x2ee7b3['checkChild'](_0x56c86c,'footnoteRef')?_0x56c86c:null;}}class r extends _0x19eda0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1fd911}=this;_0x1fd911['config']['define']('footnotes.multiBlock',!0x0),_0x1fd911['commands']['add']('insertFootnote',new h(_0x1fd911)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x97e799){const _0x55e8ba=_0xdf3085([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]),_0x1a5a46=0x47a28506,_0x5ddad6=0x47a5fb86^_0x1a5a46,_0xab1153=window[_0xdf3085([0x44,0x61,0x74,0x65])][_0xdf3085([0x6e,0x6f,0x77])](),_0xdb8519=_0x97e799[_0xdf3085([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x5e04ba=new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x34e420=>{_0xdb8519[_0xdf3085([0x6f,0x6e,0x63,0x65])](_0xdf3085([0x72,0x65,0x61,0x64,0x79]),_0x34e420);}),_0x37c533={[_0xdf3085([0x6b,0x74,0x79])]:_0xdf3085([0x45,0x43]),[_0xdf3085([0x75,0x73,0x65])]:_0xdf3085([0x73,0x69,0x67]),[_0xdf3085([0x63,0x72,0x76])]:_0xdf3085([0x50,0x2d,0x32,0x35,0x36]),[_0xdf3085([0x78])]:_0xdf3085([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]),[_0xdf3085([0x79])]:_0xdf3085([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]),[_0xdf3085([0x61,0x6c,0x67])]:_0xdf3085([0x45,0x53,0x32,0x35,0x36])},_0x4d0960=_0xdb8519[_0xdf3085([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xdf3085([0x67,0x65,0x74])](_0xdf3085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x4275c0(){let _0x4579f7,_0x17c046=null,_0x5381fb=null;try{if(_0x4d0960==_0xdf3085([0x47,0x50,0x4c]))return _0xdf3085([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x4579f7=_0x560b3f(),!_0x4579f7)return _0xdf3085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x4579f7[_0xdf3085([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5381fb=_0x5a577b(_0x4579f7[_0xdf3085([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x4579f7[_0xdf3085([0x6a,0x74,0x69])])),await _0x58cd94()?_0xd737db()?_0x242cb5()?_0xdf3085([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x2e5477()?(_0x4579f7[_0xdf3085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xdf3085([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x17c046=_0x3bdcc7(_0xdf3085([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3f7b4e()):_0xdf3085([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xdf3085([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xdf3085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xdf3085([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x242cb5(){const _0x54b4c2=[_0xdf3085([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xdf3085([0x74,0x72,0x69,0x61,0x6c])][_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4579f7[_0xdf3085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xab1153/0x3e8:0xe10*_0x5ddad6;return _0x4579f7[_0xdf3085([0x65,0x78,0x70])]<_0x54b4c2;}function _0xd737db(){const _0x5ddb5b=_0x4579f7[_0xdf3085([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5ddb5b&&(!!_0x5ddb5b[_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf3085([0x2a]))||!!_0x5ddb5b[_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf3085([0x46,0x4f,0x4f])));}function _0x2e5477(){const _0x37c73c=_0x4579f7[_0xdf3085([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x37c73c||0x0==_0x37c73c[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x5e25d1}=new URL(window[_0xdf3085([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x37c73c[_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x5e25d1))return!0x0;const _0x428882=_0x5e25d1[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])](_0xdf3085([0x2e]));return _0x37c73c[_0xdf3085([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5087d4=>_0x5087d4[_0xdf3085([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xdf3085([0x2a])))[_0xdf3085([0x6d,0x61,0x70])](_0x5e7a32=>_0x5e7a32[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])](_0xdf3085([0x2e])))[_0xdf3085([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f0ad0=>_0x3f0ad0[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x428882[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdf3085([0x6d,0x61,0x70])](_0x1a581f=>Array(_0x428882[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1a581f[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xdf3085([0x66,0x69,0x6c,0x6c])](_0x1a581f[0x0]===_0xdf3085([0x2a])?_0xdf3085([0x2a]):'')[_0xdf3085([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1a581f))[_0xdf3085([0x73,0x6f,0x6d,0x65])](_0x43bf1b=>_0x428882[_0xdf3085([0x65,0x76,0x65,0x72,0x79])]((_0x557dfb,_0x2f9862)=>_0x43bf1b[_0x2f9862]===_0x557dfb||_0x43bf1b[_0x2f9862]===_0xdf3085([0x2a])));}function _0x3f7b4e(){return _0x17c046&&_0x5381fb?new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x17e96a,_0x294b22)=>{_0x17c046[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x17e96a,_0x294b22),_0x5381fb[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x1960d0=>{_0x1960d0!=_0xdf3085([0x56,0x61,0x6c,0x69,0x64])&&_0x17e96a(_0x1960d0);},_0x294b22);}):_0x17c046||_0x5381fb||_0xdf3085([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5a577b(_0xda64a2,_0x3c9840){return new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xd73376=>{if(_0x25fb34())return _0xd73376(_0xdf3085([0x56,0x61,0x6c,0x69,0x64]));_0xd9dc1d(),_0xdb8519[_0xdf3085([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xdf3085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x367db1=!0x1;const _0x33afdf=_0xe68562();function _0x62c779(_0x6f40f3){return!!_0x6f40f3&&(typeof _0x6f40f3===_0xdf3085([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x6f40f3===_0xdf3085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x6f40f3[_0xdf3085([0x74,0x68,0x65,0x6e])]===_0xdf3085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x6f40f3[_0xdf3085([0x63,0x61,0x74,0x63,0x68])]===_0xdf3085([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x4ac6ea(_0x51d0ed){_0x489598(_0x51d0ed)[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x408245=>{if(!_0x408245||_0x408245[_0xdf3085([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xdf3085([0x6f,0x6b]))return _0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1d2d44(_0x5544e3(_0x33afdf+_0x3c9840))!=_0x408245[_0xdf3085([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xdf3085([0x56,0x61,0x6c,0x69,0x64]);})[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x245255=>(_0x50b53a(),_0x245255),()=>{const _0x1693ac=_0x289ed8();return null==_0x1693ac?(_0x50b53a(),_0xdf3085([0x56,0x61,0x6c,0x69,0x64])):_0xdf3085(_0xab1153-_0x1693ac>(0x63ae0106^_0x1a5a46)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xdf3085([0x74,0x68,0x65,0x6e])](_0xd73376)[_0xdf3085([0x63,0x61,0x74,0x63,0x68])](()=>{_0xd73376(_0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xfb9126=0x47946b86^_0x1a5a46;function _0x50b53a(){const _0x4b50fa=_0xdf3085([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d2d44(_0x5544e3(_0xda64a2)),_0x2952d5=_0x1ed57e(_0x1d2d44(window[_0xdf3085([0x4d,0x61,0x74,0x68])][_0xdf3085([0x63,0x65,0x69,0x6c])](_0xab1153/_0xfb9126)));window[_0xdf3085([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdf3085([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4b50fa,_0x2952d5);}function _0x289ed8(){const _0xd3cfd2=_0xdf3085([0x6c,0x6c,0x63,0x74,0x2d])+_0x1d2d44(_0x5544e3(_0xda64a2)),_0x6b25d7=window[_0xdf3085([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xdf3085([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xd3cfd2);return _0x6b25d7?window[_0xdf3085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1ed57e(_0x6b25d7),0x10)*_0xfb9126:null;}function _0x489598(_0x229e11){return new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4aadd0,_0x5402ff)=>{_0x229e11[_0xdf3085([0x74,0x68,0x65,0x6e])](_0x4aadd0,_0x5402ff),window[_0xdf3085([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5402ff,0x47a351c6^_0x1a5a46);});}}_0xdb8519[_0xdf3085([0x6f,0x6e])](_0xdf3085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58cc70,_0x252bd1)=>{if(_0x252bd1[0x0]!=_0xda64a2)return _0xd73376(_0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x252bd1[0x1]={..._0x252bd1[0x1],[_0xdf3085([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x33afdf};},{[_0xdf3085([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdf3085([0x68,0x69,0x67,0x68])}),_0xdb8519[_0xdf3085([0x6f,0x6e])](_0xdf3085([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x56d7f4=>{_0x62c779(_0x56d7f4[_0xdf3085([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x367db1=!0x0,_0x4ac6ea(_0x56d7f4[_0xdf3085([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xdf3085([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xdf3085([0x6c,0x6f,0x77])}),_0x5e04ba[_0xdf3085([0x74,0x68,0x65,0x6e])](()=>{_0x367db1||_0xd73376(_0xdf3085([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x25fb34(){return _0xdb8519[_0xdf3085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdf3085([0x76,0x69,0x65,0x77])][_0xdf3085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xdf3085([0x61,0x75,0x74,0x6f]);}function _0xd9dc1d(){_0xdb8519[_0xdf3085([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xdf3085([0x76,0x69,0x65,0x77])][_0xdf3085([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xdf3085([0x61,0x75,0x74,0x6f]);}}function _0x3bdcc7(_0x2fa7f0){const _0x1ca4fb=[new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c7e70=>setTimeout(_0x2c7e70,0x47abbbca^_0x1a5a46)),_0x5e04ba[_0xdf3085([0x74,0x68,0x65,0x6e])](()=>new window[(_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x42cd64=>{let _0x58491e=0x0;_0xdb8519[_0xdf3085([0x6d,0x6f,0x64,0x65,0x6c])][_0xdf3085([0x6f,0x6e])](_0xdf3085([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5ba61d,_0x3cb4f8)=>{_0x3cb4f8[0x0][_0xdf3085([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x58491e++,_0x58491e==(0x47a280ee^_0x1a5a46)&&(_0x42cd64(),_0x5ba61d[_0xdf3085([0x6f,0x66,0x66])]());});}))];return window[_0xdf3085([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xdf3085([0x72,0x61,0x63,0x65])](_0x1ca4fb)[_0xdf3085([0x74,0x68,0x65,0x6e])](()=>_0x2fa7f0);}async function _0x463950(){await _0x5e04ba,_0xdb8519[_0xdf3085([0x6d,0x6f,0x64,0x65,0x6c])][_0xdf3085([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x332251,_0xdb8519[_0xdf3085([0x6d,0x6f,0x64,0x65,0x6c])][_0xdf3085([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x332251,_0xdb8519[_0xdf3085([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xdf3085([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x5e88a2(_0x2b4f88){const _0x239105=_0x553e11();_0xdb8519[_0x239105]=_0xdf3085([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2b4f88,_0x2b4f88!=_0xdf3085([0x56,0x61,0x6c,0x69,0x64])&&_0x463950();}function _0x553e11(){const _0x559edd=window[_0xdf3085([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xdf3085([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xdf3085([0x6e,0x6f,0x77])]())[_0xdf3085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xdf3085([0x2e]),'');let _0x39f14a=_0xdf3085([0x75]);for(let _0x5ad9f2=0x0;_0x5ad9f2<_0x559edd[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x5ad9f2+=0x2){let _0xbb05d0=window[_0xdf3085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x559edd[_0xdf3085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5ad9f2,_0x5ad9f2+0x2));_0xbb05d0>=_0x55e8ba[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0xbb05d0-=_0x55e8ba[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x39f14a+=_0x55e8ba[_0xbb05d0];}return _0x39f14a;}function _0x560b3f(){const _0x323029=_0x4d0960[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])](_0xdf3085([0x2e]));if(0x3!=_0x323029[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x485e50(_0x323029[0x1]);function _0x485e50(_0x127db8){const _0x19172b=_0x4e1ec6(_0x127db8);return _0x19172b&&_0x1a77ae()?_0x19172b:null;function _0x1a77ae(){const _0x34c81c=_0x19172b[_0xdf3085([0x6a,0x74,0x69])],_0x32fdf5=window[_0xdf3085([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x34c81c[_0xdf3085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x34c81c[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x493106={..._0x19172b,[_0xdf3085([0x6a,0x74,0x69])]:_0x34c81c[_0xdf3085([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x34c81c[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x493106[_0xdf3085([0x76,0x63])],_0x5544e3(_0x493106)==_0x32fdf5;}}}async function _0x58cd94(){let _0x4613d2=!0x0;try{const _0x2f3b95=_0x4d0960[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])](_0xdf3085([0x2e])),[_0x160760,_0x592e26,_0x41c320]=_0x2f3b95;return _0x2bcfcc(_0x160760),await _0x579591(_0x160760,_0x592e26,_0x41c320),_0x4613d2;}catch{return!0x1;}function _0x2bcfcc(_0x245da8){const _0x466863=_0x4e1ec6(_0x245da8);_0x466863&&_0x466863[_0xdf3085([0x61,0x6c,0x67])]==_0xdf3085([0x45,0x53,0x32,0x35,0x36])||(_0x4613d2=!0x1);}async function _0x579591(_0x2a3fb3,_0x2cbfe9,_0x4bead8){const _0x583b91=window[_0xdf3085([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xdf3085([0x66,0x72,0x6f,0x6d])](_0x27e683(_0x4bead8),_0x2f8378=>_0x2f8378[_0xdf3085([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4dc387=new window[(_0xdf3085([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xdf3085([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2a3fb3+_0xdf3085([0x2e])+_0x2cbfe9),_0x1a60b5=window[_0xdf3085([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xdf3085([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x1a60b5)return;const _0x57af7e=await _0x1a60b5[_0xdf3085([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xdf3085([0x6a,0x77,0x6b]),_0x37c533,{[_0xdf3085([0x6e,0x61,0x6d,0x65])]:_0xdf3085([0x45,0x43,0x44,0x53,0x41]),[_0xdf3085([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xdf3085([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xdf3085([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x1a60b5[_0xdf3085([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xdf3085([0x6e,0x61,0x6d,0x65])]:_0xdf3085([0x45,0x43,0x44,0x53,0x41]),[_0xdf3085([0x68,0x61,0x73,0x68])]:{[_0xdf3085([0x6e,0x61,0x6d,0x65])]:_0xdf3085([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x57af7e,_0x583b91,_0x4dc387)||(_0x4613d2=!0x1);}}function _0x4e1ec6(_0x269e87){return _0x269e87[_0xdf3085([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xdf3085([0x65,0x79]))?JSON[_0xdf3085([0x70,0x61,0x72,0x73,0x65])](_0x27e683(_0x269e87)):null;}function _0x27e683(_0x942cb){return window[_0xdf3085([0x61,0x74,0x6f,0x62])](_0x942cb[_0xdf3085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xdf3085([0x2b]))[_0xdf3085([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xdf3085([0x2f])));}function _0x5544e3(_0x2e96fb){let _0x5f05c8=0x1505;function _0x1a56fa(_0x79a812){for(let _0x1cfcbe=0x0;_0x1cfcbe<_0x79a812[_0xdf3085([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1cfcbe++){const _0x32eee9=_0x79a812[_0xdf3085([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x1cfcbe);_0x5f05c8=(_0x5f05c8<<0x5)+_0x5f05c8+_0x32eee9,_0x5f05c8&=_0x5f05c8;}}function _0x1a72c6(_0x7efaf9){Array[_0xdf3085([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x7efaf9)?_0x7efaf9[_0xdf3085([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1a72c6):_0x7efaf9&&typeof _0x7efaf9==_0xdf3085([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xdf3085([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x7efaf9)[_0xdf3085([0x73,0x6f,0x72,0x74])]()[_0xdf3085([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3c9411,_0x487e83])=>{_0x1a56fa(_0x3c9411),_0x1a72c6(_0x487e83);}):_0x1a56fa(window[_0xdf3085([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x7efaf9));}return _0x1a72c6(_0x2e96fb),_0x5f05c8>>>0x0;}function _0x1d2d44(_0x561b4c){return _0x561b4c[_0xdf3085([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xdf3085([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xdf3085([0x30]));}function _0x1ed57e(_0xff70f){return _0xff70f[_0xdf3085([0x73,0x70,0x6c,0x69,0x74])]('')[_0xdf3085([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xdf3085([0x6a,0x6f,0x69,0x6e])]('');}function _0x332251(){}function _0xdf3085(_0x3c6e69){return _0x3c6e69['map'](_0x468776=>String['fromCharCode'](_0x468776))['join']('');}_0x5e88a2(await _0x4275c0());}(this);}['_moveSelectionToFootnoteDefinition'](_0x18f139){const {plugins:_0x51bf06,editing:_0x259cc1,model:_0x391d0e}=this['editor'],_0x97a63a=_0x51bf06['get'](f)['getFootnote'](_0x18f139);return!!_0x97a63a&&(_0x391d0e['change'](_0x301ecc=>{_0x301ecc['setSelection'](_0x301ecc['createPositionAt'](_0x97a63a['definition'],'end'));}),_0x259cc1['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x190455){const {plugins:_0x172909,editing:_0x4b6c43,model:_0x12562c}=this['editor'],_0x502a88=_0x172909['get'](f)['getFootnote'](_0x190455);return!!_0x502a88&&(_0x12562c['change'](_0x280035=>{_0x280035['setSelection'](_0x502a88['reference'],'on');}),_0x4b6c43['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xaa6b86}=this['editor']['model'],_0x390a82=this['editor']['config']['get']('footnotes.multiBlock');_0xaa6b86['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xaa6b86['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xaa6b86['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x390a82?_0xaa6b86['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xaa6b86['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xaa6b86['addChildCheck'](_0x5906f4=>{for(const _0x2712d2 of _0x5906f4)if('footnoteDefinition'===_0x2712d2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x500f20}=this,{conversion:_0x4b2c9f,editing:_0x58b464}=_0x500f20,{t:t}=_0x500f20['locale'];_0x4b2c9f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x38837e,{writer:_0x5d575f,consumable:_0x1008ba})=>{const _0x3473ec=_0x38837e['getChild'](0x0);if(!_0x3473ec||!_0x3473ec['is']('element','a'))return null;const _0x2f696b=_0x3473ec['getAttribute']('href')||'';if(!_0x2f696b['startsWith']('#'))return null;const _0x3ba948=_0x2f696b['replace'](/^#/,'');if(!_0x3ba948)return null;_0x1008ba['consume'](_0x3473ec,{'name':!0x0,'attributes':['href']});for(const {item:_0x26413c}of _0x58b464['view']['createRangeIn'](_0x3473ec))_0x26413c['is']('$textProxy')?_0x1008ba['consume'](_0x26413c['textNode'],{'name':!0x0}):_0x26413c['is']('element')&&_0x1008ba['consume'](_0x26413c,{'name':!0x0});return _0x5d575f['createElement']('footnoteRef',{'footnoteId':_0x3ba948});}}),_0x4b2c9f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x40afba,{writer:_0x4ba1a3})=>b(_0x40afba,_0x4ba1a3)}),_0x4b2c9f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xb5ca3d,{writer:_0x4281f8})=>{const _0x248371=_0xb5ca3d['getAttribute']('footnoteCounter');return _0x46d9c5(b(_0xb5ca3d,_0x4281f8),_0x4281f8,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x248371)});}});}['_defineDefinitionsConverters'](){const {editor:_0x13ee6b}=this,{t:t}=_0x13ee6b['locale'],{conversion:_0x3b1a48}=_0x13ee6b;_0x3b1a48['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3b1a48['for']('upcast')['add'](_0x1e2680=>{_0x1e2680['on']('element:ol',(_0x20f405,_0x4b3d05,_0x3820cf)=>{const _0x475213=_0x4b3d05['viewItem'];if(!_0x475213['hasClass']('footnotes-list')||!_0x4b3d05['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3820cf['consumable']['consume'](_0x475213,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x2c154c,modelCursor:_0x5c543a}=_0x3820cf['convertChildren'](_0x4b3d05['viewItem'],_0x4b3d05['modelCursor']);_0x4b3d05['modelRange']=_0x2c154c,_0x4b3d05['modelCursor']=_0x5c543a;}),_0x1e2680['on']('element:hr',(_0x4c646e,_0x248d23,_0x4a4c17)=>{const _0x5c7c54=_0x248d23['viewItem'];_0x5c7c54['hasClass']('footnotes-divider')&&_0x248d23['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4a4c17['consumable']['consume'](_0x5c7c54,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3b1a48['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2ac95d,{writer:_0x2cfde7})=>D(_0x2cfde7)}),_0x3b1a48['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3ed7a6,{writer:_0x2708d0})=>{const _0x15c322=D(_0x2708d0,{'data-footnotes-list-label':t('Footnotes')}),_0x339db1=_0x46d9c5(_0x15c322,_0x2708d0,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2708d0['setCustomProperty']('footnotesDefinitions',!0x0,_0x339db1),_0x339db1;}});}['_defineDefinitionConverters'](){const {editor:_0x47a994}=this,{conversion:_0x4b3375,locale:_0x28a4ca}=_0x47a994,_0x495c19=_0x47a994['config']['get']('footnotes.multiBlock');_0x4b3375['for']('upcast')['add'](_0x3edbf4=>{_0x3edbf4['on']('element:li',(_0x216e8d,_0x2625d9,_0x1fa155)=>{const _0x152055=_0x2625d9['viewItem'];if(!_0x152055['hasClass']('footnote-definition')||!_0x152055['getAttribute']('id'))return;const _0x17fecf=_0x152055['parent'];if(!_0x17fecf['is']('element','ol')||!_0x17fecf['hasClass']('footnotes-list'))return;if(!_0x1fa155['consumable']['test'](_0x152055,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3e72ca=_0x1fa155['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x152055['getAttribute']('id')});if(!_0x1fa155['safeInsert'](_0x3e72ca,_0x2625d9['modelCursor']))return;_0x1fa155['consumable']['consume'](_0x152055,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x475bc1=Array['from'](_0x152055['getChildren']())['find'](_0x35230e=>_0x35230e['is']('element')&&_0x35230e['hasClass']('footnote-content'));for(const _0x41c6c9 of _0x152055['getChildren']())_0x41c6c9['is']('element')&&(_0x1fa155['consumable']['consume'](_0x41c6c9,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1fa155['consumable']['consume'](_0x41c6c9,{'name':!0x0,'classes':'footnote-content'}));if(_0x475bc1){if(_0x495c19)_0x1fa155['convertChildren'](_0x475bc1,_0x3e72ca);else{const _0x2bba68=_0x1fa155['writer']['createElement']('footnoteInlineContent');_0x1fa155['writer']['insert'](_0x2bba68,_0x3e72ca),_0x1fa155['convertChildren'](_0x475bc1,_0x2bba68);}}_0x1fa155['updateConversionResult'](_0x3e72ca,_0x2625d9);});}),_0x4b3375['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4c47f6,{writer:_0x48abb0})=>y(_0x4c47f6,_0x48abb0,_0x28a4ca,{'dataPipeline':!0x0})}),_0x4b3375['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1d2c5a,{writer:_0x59d8aa})=>y(_0x1d2c5a,_0x59d8aa,_0x28a4ca)});}['_defineBogusParagraphConverters'](){const {editor:_0x822fea}=this,{conversion:_0x492fe7}=_0x822fea;_0x822fea['config']['get']('footnotes.multiBlock')?(_0x492fe7['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x492fe7['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x822fea['model']['document'],'change:data',()=>{!function(_0x4b7ddd,_0x5f5d1d){const _0x162a88=_0x4b7ddd['document']['differ'],_0x492b55=new Set();for(const _0x46101f of _0x162a88['getChanges']()){const _0x1a21b6='attribute'==_0x46101f['type']?_0x46101f['range']['start']['parent']:_0x46101f['position']['parent'];_0x1a21b6['is']('element','footnoteDefinition')&&_0x492b55['add'](_0x1a21b6);}for(const _0x38044b of _0x492b55['values']()){const _0x36a522=Array['from'](_0x38044b['getChildren']())['filter'](_0x24a86f=>v(_0x24a86f,_0x5f5d1d['mapper']));for(const _0x560045 of _0x36a522)_0x5f5d1d['reconvertItem'](_0x560045);}}(_0x822fea['model'],_0x822fea['editing']);})):(_0x492fe7['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x492fe7['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x36212a,{writer:_0x50d137})=>{const _0x53855f=_0x50d137['createContainerElement']('span');return _0x50d137['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x53855f),_0x53855f;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1c03ca}=this,{editing:_0x1f4ba3,t:t}=_0x1c03ca,_0x294f56=_0x1c03ca['model']['document']['selection'];_0x1c03ca['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1c03ca['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1f4ba3['view']['document'],'enter',(_0x57e11f,_0x5987d4)=>{const _0x1b03e3=function(_0x3fa73a){const _0x2a60ac=_0x3fa73a['getSelectedElement']();if(_0x2a60ac?.['is']('element','footnoteRef'))return _0x2a60ac;return null;}(_0x294f56);if(_0x1b03e3){const _0x1e9be0=_0x1b03e3['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1e9be0),_0x5987d4['preventDefault'](),_0x57e11f['stop']();}},{'context':_0x3b059c});}['_defineClickHandlers'](){const {editor:_0x4231ce}=this,{editing:_0x49232e}=_0x4231ce;_0x4231ce['editing']['view']['addObserver'](_0x33c070),_0x4231ce['editing']['view']['addObserver'](_0x37eab0);let _0x3fcff5=!0x1;this['listenTo'](_0x49232e['view']['document'],'pointerdown',(_0x174ce7,_0x125fdc)=>{const {target:_0x476a92}=_0x125fdc,_0x4e074b=_0x49232e['view']['document']['selection'];_0x3fcff5=!!(_0x476a92?.['is']('element','a')&&_0x476a92['parent']?.['is']('element','sup')&&_0x476a92['parent']['hasClass']('footnote'))&&_0x4e074b['getSelectedElement']()===_0x476a92['parent'];},{'priority':'high'}),this['listenTo'](_0x49232e['view']['document'],'click',(_0x283188,_0x388ca0)=>{const {target:_0x342df5}=_0x388ca0;if(!_0x342df5?.['is']('element','a'))return;if(_0x342df5['parent']?.['is']('element','sup')&&_0x342df5['parent']['hasClass']('footnote')&&!_0x3fcff5)return void _0x388ca0['preventDefault']();let _0x4fdab1=_0x342df5['getAttribute']('href');if(!_0x4fdab1?.['startsWith']('#'))return;_0x4fdab1=_0x4fdab1['slice'](0x1);let _0x4ad8f2=!0x1;(_0x4fdab1['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x4fdab1['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x4fdab1))&&(_0x4ad8f2=!0x0),_0x4ad8f2&&(_0x388ca0['preventDefault'](),_0x283188['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x163ced}={}){return(_0x8cdac,{writer:_0x23ae3d})=>{if(!g(_0x8cdac))return null;if(!_0x163ced)return _0x23ae3d['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4cd075=_0x23ae3d['createContainerElement']('p');return _0x23ae3d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4cd075),_0x4cd075;};}function g(_0x5ae1e9){const {parent:_0x16dde0}=_0x5ae1e9;if(!_0x16dde0?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x16dde0['childCount'])return!0x1;for(const _0x3aa6 of _0x5ae1e9['getAttributeKeys']())if(!_0x3aa6['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x3aa6)return!0x1;return!0x0;}function v(_0xb8a2d9,_0x183a8a){if(!_0xb8a2d9['is']('element','paragraph'))return!0x1;const _0x533f3e=_0x183a8a['toViewElement'](_0xb8a2d9);return!!_0x533f3e&&g(_0xb8a2d9)!==_0x533f3e['is']('element','span');}function Q(_0x33de29){return _0x3b059c(_0x33de29)&&_0x33de29['is']('containerElement')&&!!_0x33de29['getCustomProperty']('footnotesDefinitions');}function D(_0x53be40,_0x4dfe88={}){const _0x1ff9b5=_0x53be40['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x48f71c=_0x53be40['createContainerElement']('ol',{'class':'footnotes-list'},_0x53be40['createSlot']());return _0x53be40['createContainerElement']('div',{'class':'footnotes',..._0x4dfe88},[_0x1ff9b5,_0x48f71c]);}function b(_0x5dcd9c,_0x23d8f5){const _0x36ce0f=_0x5dcd9c['getAttribute']('footnoteId'),_0x4e180c=_0x5dcd9c['getAttribute']('footnoteCounter'),_0x455861=_0x23d8f5['createUIElement']('a',{'href':'#'+_0x36ce0f},function(_0x1df7cd){const _0x43fc46=this['toDomElement'](_0x1df7cd);return _0x43fc46['textContent']=_0x4e180c,_0x43fc46;}),_0x5c4517=_0x23d8f5['createContainerElement']('sup',{'id':'ref-'+_0x36ce0f,'class':'footnote'},[_0x455861]);return _0x5c4517['getFillerOffset']=()=>null,_0x5c4517;}function y(_0x2465c5,_0x32502d,_0x9ffc79,{dataPipeline:_0x556db4}={}){const {t:t}=_0x9ffc79,_0x5dc00c=_0x2465c5['getAttribute']('footnoteId'),_0x3f66f1=_0x32502d['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x5dc00c},function(_0x547088){const _0x22cfc0=this['toDomElement'](_0x547088);return _0x22cfc0['innerText']='^',_0x22cfc0;}),_0x54f031=_0x556db4?_0x32502d['createContainerElement']('div',{'class':'footnote-content'}):_0x180e5a(_0x32502d['createEditableElement']('div',{'class':'footnote-content'}),_0x32502d,{'label':t('Footnote\x20content.')});return _0x32502d['insert'](_0x32502d['createPositionAt'](_0x54f031,0x0),_0x32502d['createSlot']()),_0x32502d['createContainerElement']('li',{'class':'footnote-definition','id':_0x5dc00c},[_0x3f66f1,_0x54f031]);}class e extends _0x19eda0{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x3fef1b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5c0aa2}=this,{plugins:_0x55e309,model:_0x2dcf7b}=_0x5c0aa2,_0x667eab=_0x55e309['get'](_0x3fef1b),_0x6aaff9=_0x55e309['get'](f);this['listenTo'](_0x667eab,'outputTransformation',(_0x4e7251,_0x2d4528)=>{const _0x4ec1de=l(_0x2dcf7b['createRangeIn'](_0x2d4528['content']));if(!_0x4ec1de['length'])return;const _0x346aae=_0x6aaff9['getFootnotes'](),_0x3d66d7=_0x4ec1de['reduce']((_0x4d5b43,_0x2628b9)=>{const _0x31d473=_0x346aae['find'](_0xcc3719=>_0xcc3719['id']===_0x2628b9);if(_0x31d473){const _0x5b10fc=_0x5c0aa2['data']['toView'](_0x31d473['definition'],{'isClipboardPipeline':!0x0}),_0x4f951c=_0x5c0aa2['data']['htmlProcessor']['toData'](_0x5b10fc);_0x4d5b43[_0x31d473['id']]=_0x4f951c;}return _0x4d5b43;},Object['create'](null));_0x2d4528['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3d66d7));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5a39ec}=this,{model:_0x4a15de,plugins:_0x4a865a}=_0x5a39ec,{view:_0x3db6ae}=_0x5a39ec['editing'],_0x485978=_0x4a865a['get'](_0x3fef1b),_0x242972=_0x4a865a['get'](f),_0x44e0ee=_0x5a39ec['config']['get']('footnotes.multiBlock');let _0x2205b4=null;this['listenTo'](_0x3db6ae['document'],'clipboardInput',(_0x4773d0,_0x41d969)=>{const _0x21e5c9=_0x41d969['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2205b4=_0x21e5c9?JSON['parse'](_0x21e5c9):null;}),this['listenTo'](_0x485978,'contentInsertion',(_0x3b9dbb,_0x13b622)=>{const _0x4d4233=_0x13b622['sourceEditorId']===this['editor']['id'];_0x4d4233&&'drop'===_0x13b622['method']||_0x4a15de['change'](_0x392c45=>{let _0x3064f6=_0x242972['getFootnotesDefinitionsObjectElement']();const _0x102f8f=!!_0x3064f6&&Array['from'](_0x4a15de['document']['selection']['getSelectedBlocks']())['includes'](_0x3064f6);if(!_0x2205b4&&function(_0xd98060){for(const {item:_0x2a1405}of _0xd98060)if(_0x2a1405['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4a15de['createRangeIn'](_0x13b622['content']))&&(_0x2205b4=function(_0x393f3f,_0x35ea49){const _0x31833f=c(_0x393f3f,_0x35ea49);if(!_0x31833f)return null;const _0x46edd4=Object['create'](null);for(const _0x497d8b of _0x31833f['getChildren']())_0x497d8b['is']('element','footnoteDefinition')&&_0x497d8b['hasAttribute']('footnoteId')&&(_0x46edd4[_0x497d8b['getAttribute']('footnoteId')]=_0x393f3f['cloneElement'](_0x497d8b,!0x0));return Object['keys'](_0x46edd4)['length']?_0x46edd4:null;}(_0x392c45,_0x13b622['content'])),(_0x3064f6&&!_0x102f8f||!_0x3064f6&&!_0x2205b4)&&function(_0x2ae0fb,_0x5dd47e){const _0x255d3e=[];for(const {item:_0x22349c}of _0x2ae0fb['createRangeIn'](_0x5dd47e))_0x22349c['is']('element','footnotesDefinitions')&&_0x255d3e['push'](_0x22349c);for(const _0x510d4e of _0x255d3e)_0x2ae0fb['remove'](_0x510d4e);}(_0x392c45,_0x13b622['content']),!_0x2205b4)return;const {selection:_0x4b7466}=_0x4a15de['document'],_0x137454=_0x4b7466['getFirstRange']()['root'];_0x3064f6&&!_0x102f8f||(_0x3064f6=c(_0x392c45,_0x13b622['content']),_0x3064f6||=_0x242972['_insertEmptyFootnotesDefinitionsContainer'](_0x392c45,_0x137454));const _0x4e4740=Array['from'](_0x4b7466['getRanges']())['flatMap'](l),_0x17b74c=function(_0x30aaac,_0x44a83e,_0x4aa2f6){const _0x14f28d=Object['create'](null);for(const {item:_0xd7b9d1}of _0x30aaac['createRangeIn'](_0x44a83e))if(_0xd7b9d1['is']('element','footnoteRef')){const _0xd3acd6=_0xd7b9d1['getAttribute']('footnoteId');if(!_0x4aa2f6(_0xd3acd6))continue;_0x14f28d[_0xd3acd6]||(_0x14f28d[_0xd3acd6]=_0xe68562()),_0x30aaac['setAttribute']('footnoteId',_0x14f28d[_0xd3acd6],_0xd7b9d1);}return _0x14f28d;}(_0x392c45,_0x13b622['content'],_0x49318b=>{if(!_0x4d4233)return!0x0;return!!_0x242972['getFootnote'](_0x49318b)&&!_0x4e4740['includes'](_0x49318b);});for(const [_0x46791b,_0x41e564]of Object['entries'](_0x2205b4)){const _0xb882dd=_0x17b74c[_0x46791b]||_0x46791b;let _0x227bae;if('string'!=typeof _0x41e564)_0x227bae=_0x41e564,_0xb882dd!==_0x46791b&&_0x392c45['setAttribute']('footnoteId',_0xb882dd,_0x227bae);else{_0x227bae=_0x392c45['createElement']('footnoteDefinition',{'footnoteId':_0xb882dd});const _0x92ea8a=_0x5a39ec['data']['htmlProcessor']['toView'](_0x41e564);let _0x27ec88;if(_0x44e0ee)_0x27ec88=_0x5a39ec['data']['toModel'](_0x92ea8a,_0x227bae);else{_0x27ec88=_0x392c45['createElement']('footnoteInlineContent');const _0x3cbb62=_0x5a39ec['data']['toModel'](_0x92ea8a,_0x27ec88);_0x392c45['insert'](_0x3cbb62,_0x27ec88);}_0x392c45['append'](_0x27ec88,_0x227bae);}_0x392c45['insert'](_0x227bae,_0x3064f6,'end');}_0x2205b4=null;});});}}function c(_0x5a8a0b,_0x39dfbc){for(const {item:_0x20d144}of _0x5a8a0b['createRangeIn'](_0x39dfbc))if(_0x20d144['is']('element','footnotesDefinitions'))return _0x20d144;return null;}function l(_0x2ec7b2){const _0x538dcf=new Set();for(const {item:_0x4f09a0}of _0x2ec7b2)_0x4f09a0['is']('element','footnoteRef')&&_0x538dcf['add'](_0x4f09a0['getAttribute']('footnoteId'));return Array['from'](_0x538dcf);}class i extends _0x19eda0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5c233d}=this,{componentFactory:_0x3eace9}=_0x5c233d['ui'];_0x3eace9['add']('insertFootnote',E(_0x5c233d,_0x1fc42c)),_0x3eace9['add']('menuBar:insertFootnote',E(_0x5c233d,_0x1b55b4)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x40978a=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x1d4c25;for(const _0xa6efb8 in _0x40978a){const _0x28845a=_0xa6efb8,_0x1da36c=_0x40978a[_0x28845a];if('footnotesLicenseKeyValid'==_0x1da36c||'footnotesLicenseKeyInvalid'==_0x1da36c||'footnotesLicenseKeyExpired'==_0x1da36c||'footnotesLicenseKeyDomainLimit'==_0x1da36c||'footnotesLicenseKeyNotAllowed'==_0x1da36c||'footnotesLicenseKeyEvaluationLimit'==_0x1da36c||'footnotesLicenseKeyUsageLimit'==_0x1da36c){delete _0x40978a[_0x28845a],_0x1d4c25=_0x1da36c,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x1d4c25&&_0x40978a['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x1d4c25&&_0x40978a['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x1d4c25&&_0x40978a['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x1d4c25&&_0x40978a['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x1d4c25&&_0x40978a['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x1d4c25&&_0x40978a['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x36bbf6,_0x24fbd9){const _0x2b8cfe=_0x36bbf6['commands']['get']('insertFootnote');return _0x4e8f77=>{const {t:t}=_0x4e8f77,_0xaa0810=new _0x24fbd9(_0x4e8f77),_0x5b71a0=_0xaa0810 instanceof _0x1b55b4;return _0xaa0810['bind']('isEnabled')['to'](_0x2b8cfe,'isEnabled'),_0xaa0810['set']({'label':t(_0x5b71a0?'Footnote':'Insert\x20footnote'),'icon':_0x5a8fbf,'tooltip':!0x0}),_0xaa0810['on']('execute',()=>{_0x2b8cfe['execute'](),_0x36bbf6['editing']['view']['focus']();}),_0xaa0810;};}class lt extends _0x19eda0{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x351006{['refresh'](){const {editor:_0x4a1ab0}=this,_0x3bf4c6=_0x4a1ab0['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3bf4c6,this['value']=_0x3bf4c6?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x1444bb}){const {editor:_0x27109e}=this,_0x16c956=_0x27109e['plugins']['get'](f),_0x13616a=_0x16c956['getFootnotesDefinitionsObjectElement']();_0x13616a&&W['includes'](_0x1444bb)&&_0x27109e['model']['change'](_0x184aad=>{_0x184aad['setAttribute']('footnotesListStyle',_0x1444bb,_0x13616a),_0x16c956['_updateFootnotesCounters'](_0x184aad);});}}class C extends _0x351006{['refresh'](){const {editor:_0x5d34d5}=this,_0x4b79cc=_0x5d34d5['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4b79cc,this['value']=_0x4b79cc?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x3d8273}){const {editor:_0x4255cb}=this,_0x351695=_0x4255cb['plugins']['get'](f),_0x109b3e=_0x351695['getFootnotesDefinitionsObjectElement']();_0x109b3e&&Number['isInteger'](_0x3d8273)&&_0x4255cb['model']['change'](_0x4f7baf=>{_0x4f7baf['setAttribute']('footnotesListStart',_0x3d8273,_0x109b3e),_0x351695['_updateFootnotesCounters'](_0x4f7baf);});}}class P extends _0x19eda0{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe5c6e5}=this;_0xe5c6e5['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0xe5c6e5['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0xe5c6e5['commands']['add']('footnotesStyle',new S(_0xe5c6e5)),_0xe5c6e5['commands']['add']('footnotesStart',new C(_0xe5c6e5)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x4a1454}=this,{schema:_0x586254}=_0x4a1454['model'];_0x586254['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x4d1f54}=this,{conversion:_0x15151f,model:_0x3e5a20}=_0x4d1f54,{schema:_0x737c64}=_0x3e5a20;_0x15151f['for']('upcast')['add'](_0x876a58=>{_0x876a58['on']('element:ol',(_0x862359,_0x94337a,_0x313cc9)=>{const _0x37af4c=_0x94337a['viewItem'],_0x1f4574=_0x94337a['modelCursor']?.['parent'];_0x37af4c['hasClass']('footnotes-list')&&_0x1f4574?.['is']('element','footnotesDefinitions')&&(function(_0x361240,_0x4c3dfa,_0x452d39,_0x23253f){if(!_0x23253f['checkAttribute'](_0x4c3dfa,'footnotesListStart'))return;let _0x186225=0x1;const _0x13ffca=_0x452d39['consumable']['consume'](_0x361240,{'attributes':'start'});if(_0x13ffca){const _0x4c6b68=Number['parseInt'](_0x361240['getAttribute']('start'),0xa);Number['isNaN'](_0x4c6b68)||(_0x186225=_0x4c6b68);}!_0x13ffca&&_0x4c3dfa['hasAttribute']('footnotesListStart')||_0x452d39['writer']['setAttribute']('footnotesListStart',_0x186225,_0x4c3dfa);}(_0x37af4c,_0x1f4574,_0x313cc9,_0x737c64),function(_0x5afdcd,_0x154146,_0x5dfa9e,_0x3f727b){if(!_0x3f727b['checkAttribute'](_0x154146,'footnotesListStyle'))return;let _0x3d833b='decimal',_0x376571=!0x1;if(_0x5dfa9e['consumable']['consume'](_0x5afdcd,{'attributes':'type'})){const _0x5743ea={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x5afdcd['getAttribute']('type')];_0x5743ea&&(_0x3d833b=_0x5743ea),_0x376571=!0x0;}_0x5dfa9e['consumable']['consume'](_0x5afdcd,{'styles':'list-style-type'})&&(_0x3d833b=function(_0x1c6c1a){switch(_0x1c6c1a){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x1c6c1a;}}(_0x5afdcd['getStyle']('list-style-type')),_0x376571=!0x0),!_0x376571&&_0x154146['hasAttribute']('footnotesListStyle')||_0x5dfa9e['writer']['setAttribute']('footnotesListStyle',_0x3d833b,_0x154146);}(_0x37af4c,_0x1f4574,_0x313cc9,_0x737c64));});}),_0x15151f['for']('downcast')['add'](_0x87cd33=>{_0x87cd33['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x1b9bc4,_0xe9d9cc,_0x12d2fd)=>{if(!_0x12d2fd['consumable']['consume'](_0xe9d9cc['item'],_0x1b9bc4['name']))return;const _0xa5226c=M(_0xe9d9cc['item'],_0x12d2fd['mapper']),{attributeNewValue:_0x3675f5}=_0xe9d9cc;null==_0x3675f5||0x1===_0x3675f5?_0x12d2fd['writer']['removeAttribute']('start',_0xa5226c):_0x12d2fd['writer']['setAttribute']('start',String(_0x3675f5),_0xa5226c);}),_0x87cd33['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2253a8,_0x29cc42,_0x20df12)=>{if(!_0x20df12['consumable']['consume'](_0x29cc42['item'],_0x2253a8['name']))return;const _0x465b82=M(_0x29cc42['item'],_0x20df12['mapper']),{attributeNewValue:_0x456461}=_0x29cc42;_0x456461&&'decimal'!==_0x456461?_0x20df12['writer']['setStyle']('list-style-type',_0x456461,_0x465b82):_0x20df12['writer']['removeStyle']('list-style-type',_0x465b82);});});}['_definePostfixer'](){const {editor:_0x571497}=this,{model:_0x5cf4e8}=_0x571497,_0x3792e1=_0x571497['plugins']['get'](f),_0x2ca5f5=this['_getDefaultListStyle'](),_0x7258f1=this['_getDefaultStartIndex']();_0x5cf4e8['document']['registerPostFixer'](_0x1747cf=>{const _0x466dde=_0x5cf4e8['document']['differ']['getChanges']();let _0x23e343=!0x1;for(const _0x1d40de of _0x466dde){if('insert'!==_0x1d40de['type']||'$text'===_0x1d40de['name'])continue;const _0x1b6f96=_0x5cf4e8['createRangeOn'](_0x1d40de['position']['nodeAfter']);for(const _0x530afd of _0x1b6f96['getItems']())_0x530afd['is']('element','footnotesDefinitions')&&(!_0x530afd['hasAttribute']('footnotesListStart')&&_0x5cf4e8['schema']['checkAttribute'](_0x530afd,'footnotesListStart')&&(_0x1747cf['setAttribute']('footnotesListStart',_0x7258f1,_0x530afd),_0x23e343=!0x0),!_0x530afd['hasAttribute']('footnotesListStyle')&&_0x5cf4e8['schema']['checkAttribute'](_0x530afd,'footnotesListStyle')&&(_0x1747cf['setAttribute']('footnotesListStyle',_0x2ca5f5,_0x530afd),_0x23e343=!0x0));}return _0x23e343&&_0x3792e1['_updateFootnotesCounters'](_0x1747cf),_0x23e343;});}['_defineFormatter'](){const {editor:_0x381337}=this;_0x381337['plugins']['get'](f)['setFootnoteFormatter'](_0x5dfcff=>this['_formatFootnoteListValue'](_0x5dfcff));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x28018d,value:_0x198d17,digits:_0x4a054d}){const _0xa18f=_0x28018d['getAttribute']('footnotesListStyle'),_0x3b08fd=_0x28018d['getAttribute']('footnotesListStart'),_0x21dd42=Math['floor'](_0x198d17)+(_0x3b08fd??0x1)-0x1;switch(_0xa18f){case'decimal-leading-zero':return function(_0x3d88d8,_0x573d76){return String(_0x3d88d8)['padStart'](_0x573d76,'0');}(_0x21dd42,Math['max'](0x2,_0x4a054d));case'lower-alpha':case'lower-latin':return N(_0x21dd42,!0x1);case'upper-alpha':case'upper-latin':return N(_0x21dd42,!0x0);case'lower-roman':return X(_0x21dd42,!0x1);case'upper-roman':return X(_0x21dd42,!0x0);default:return String(_0x21dd42);}}}function M(_0x4009f2,_0x89c46f){const _0x1eac6c=_0x89c46f['toViewElement'](_0x4009f2);return Array['from'](_0x1eac6c['getChildren']())['find'](_0x188a55=>_0x188a55['is']('element','ol')&&_0x188a55['hasClass']('footnotes-list'));}function N(_0x55b47f,_0x284fda){let _0x8e16cb='',_0x3967af=_0x55b47f;for(;_0x3967af>0x0;){const _0x15981b=(_0x3967af-0x1)%0x1a;_0x8e16cb=String['fromCharCode'](0x61+_0x15981b)+_0x8e16cb,_0x3967af=Math['floor']((_0x3967af-0x1)/0x1a);}return _0x284fda?_0x8e16cb['toUpperCase']():_0x8e16cb;}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(_0x241738,_0x92f841){let _0x5501d7='',_0x2b8e23=_0x241738;for(const {value:_0x53aeee,numeral:_0x1d88ed}of V)for(;_0x2b8e23>=_0x53aeee;)_0x5501d7+=_0x1d88ed,_0x2b8e23-=_0x53aeee;return _0x92f841?_0x5501d7:_0x5501d7['toLowerCase']();}class J extends _0x350447{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1ec22f();['focusCycler'];constructor(_0x3177ce,{styleButtonViews:_0x4299d8,styleGridAriaLabel:_0x4a970f}){super(_0x3177ce),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x4299d8,_0x4a970f),[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 _0x32941d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x32941d['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x166c18=_0x343715=>_0x343715['stopPropagation']();this['keystrokes']['set']('arrowright',_0x166c18),this['keystrokes']['set']('arrowleft',_0x166c18),this['keystrokes']['set']('arrowup',_0x166c18),this['keystrokes']['set']('arrowdown',_0x166c18);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x5e7dd1,_0x3880f8){const _0x367d7c=new _0x350447(this['locale']);return _0x367d7c['children']=_0x367d7c['createCollection'](),_0x367d7c['children']['addMany'](_0x5e7dd1),_0x367d7c['setTemplate']({'tag':'div','attributes':{'aria-label':_0x3880f8,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x367d7c['children']}),_0x367d7c['children']['delegate']('execute')['to'](this),_0x367d7c['focus']=function(){for(const _0x58144a of this['children'])if(_0x58144a instanceof _0x1fc42c&&_0x58144a['isOn'])return void _0x58144a['focus']();this['children']['first']['focus']();},_0x367d7c['focusTracker']=new rt(),_0x367d7c['keystrokes']=new nt(),_0x367d7c['render'](),_0x367d7c['keystrokes']['listenTo'](_0x367d7c['element']),this['children']['add'](_0x367d7c),_0x367d7c;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x32b918=this['_createStartIndexPropertyView'](),_0x14d015=[_0x32b918],_0x242da0=new it(this['locale'],_0x14d015);return _0x242da0['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x242da0['buttonView']['bind']('isEnabled')['toMany'](_0x14d015,'isEnabled',(..._0x1ed019)=>_0x1ed019['some'](_0x58a55f=>_0x58a55f)),_0x242da0['buttonView']['on']('change:isEnabled',(_0x341e6d,_0x3bed0a,_0x534a50)=>{_0x534a50||(_0x242da0['isCollapsed']=!0x0);}),this['children']['add'](_0x242da0),[_0x32b918,_0x242da0];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x2e87ed=new et(this['locale'],ot);return _0x2e87ed['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x2e87ed['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x2e87ed['fieldView']['on']('input',()=>{const _0x4d2273=_0x2e87ed['fieldView']['element'],_0xf7b6a9=_0x4d2273['valueAsNumber'];Number['isNaN'](_0xf7b6a9)?_0x2e87ed['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4d2273['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0xf7b6a9}):_0x2e87ed['errorText']=t(_0xf7b6a9<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x2e87ed;}}class j extends _0x19eda0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xce7b1e,_0x4b86aa];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xa4c0d7}=this,{componentFactory:_0x129169}=_0xa4c0d7['ui'];_0xa4c0d7['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x129169['add']('footnotesStyle',function(_0x51aefd){return _0x51f68a=>{const {t:t}=_0x51f68a,_0x4324b2=_0x51aefd['commands']['get']('footnotesStyle'),_0x4ab1a9=_0x3b9fda(_0x51f68a),{buttonView:_0x3e8334}=_0x4ab1a9;return _0x4ab1a9['class']='ck-footnotes-styles-dropdown',_0x4ab1a9['bind']('isEnabled')['to'](_0x4324b2,'isEnabled'),_0x3e8334['set']({'label':t('Footnotes\x20style'),'icon':_0x5a8fbf,'tooltip':!0x0}),_0x4ab1a9['once']('change:isOpen',()=>{const _0x145910=function({editor:_0x4247a0,dropdownView:_0x11a8e3}){const {t:t}=_0x4247a0['locale'],_0x62841b=t('Footnotes\x20definitions\x20styles'),_0x5809f3=function(_0x4e867a){const t=_0x4e867a['locale']['t'],_0x47ffd4=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2cca65},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4d1f84},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3b622a},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x521d19},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x4179bf},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x15bfb3}];return _0x47ffd4['map'](function(_0x495dfa){const _0x2cd051=_0x495dfa['locale'];return({label:_0x59d556,icon:_0x168429,tooltip:_0x4d9aec,style:_0x24e46b})=>{const _0xdde630=_0x495dfa['commands']['get']('footnotesStyle'),_0x23e16e=new _0x1fc42c(_0x2cd051);return _0x23e16e['set']({'label':_0x59d556,'icon':_0x168429,'tooltip':_0x4d9aec}),_0x23e16e['bind']('isOn')['to'](_0xdde630,'value',_0x503ba9=>_0x503ba9===_0x24e46b),_0x23e16e['bind']('isEnabled')['to'](_0xdde630,'isEnabled'),_0x23e16e['on']('execute',()=>{_0x495dfa['execute']('footnotesStyle',{'value':_0x24e46b}),_0x495dfa['editing']['view']['focus']();}),_0x23e16e;};}(_0x4e867a));}(_0x4247a0),_0x304b0e=new J(_0x4247a0['locale'],{'styleGridAriaLabel':_0x62841b,'styleButtonViews':_0x5809f3}),_0x488c18=_0x4247a0['commands']['get']('footnotesStart');return _0x304b0e['startIndexFieldView']['bind']('isEnabled')['to'](_0x488c18),_0x304b0e['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x488c18),_0x304b0e['on']('footnotesListStart',(_0x38cc2b,_0x5b9f27)=>{_0x4247a0['execute']('footnotesStart',{'value':_0x5b9f27['startIndex']});}),_0x304b0e['delegate']('execute')['to'](_0x11a8e3),_0x304b0e;}({'editor':_0x51aefd,'dropdownView':_0x4ab1a9});_0x4ab1a9['panelView']['children']['add'](_0x145910);}),_0x4ab1a9;};}(_0xa4c0d7));}['afterInit'](){const {editor:_0x3e6170}=this,{t:t}=_0x3e6170['locale'],_0x451612=_0x3e6170['plugins']['get'](_0x4b86aa),{defaultPositions:_0x3beea3}=_0x410fb1;_0x451612['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x3e6170['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x3e9945=>{let _0x3d8a69=_0x3e9945['getFirstPosition']()?.['parent'];return _0x3d8a69?.['is']('$text')&&(_0x3d8a69=_0x3d8a69['parent']),_0x3d8a69?.['is']('element')?_0x3d8a69['findAncestor'](Q):null;},'positions':[_0x3beea3['southArrowNorth'],_0x3beea3['southArrowNorthMiddleWest'],_0x3beea3['southArrowNorthMiddleEast'],_0x3beea3['southArrowNorthWest'],_0x3beea3['southArrowNorthEast'],_0x3beea3['northArrowSouth'],_0x3beea3['northArrowSouthMiddleWest'],_0x3beea3['northArrowSouthMiddleEast'],_0x3beea3['northArrowSouthWest'],_0x3beea3['northArrowSouthEast'],_0x3beea3['viewportStickyNorth']]});}}class ft extends _0x19eda0{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "47.4.0-alpha.
|
|
3
|
+
"version": "47.4.0-alpha.3",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "47.4.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.4.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.4.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.
|
|
33
|
-
"ckeditor5": "47.4.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.4.0-alpha.3",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.4.0-alpha.3",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.4.0-alpha.3",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.4.0-alpha.3",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.4.0-alpha.3",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.4.0-alpha.3",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.4.0-alpha.3",
|
|
33
|
+
"ckeditor5": "47.4.0-alpha.3"
|
|
34
34
|
},
|
|
35
35
|
"license": "SEE LICENSE IN LICENSE.md",
|
|
36
36
|
"author": "CKSource (http://cksource.com/)",
|
package/src/footnotesediting.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x405db5}from'ckeditor5/src/core.js';import{isWidget as _0x47fe90,toWidget as _0x31705e,toWidgetEditable as _0x391675}from'ckeditor5/src/widget.js';import{uid as _0x595b1d}from'ckeditor5/src/utils.js';import{PointerObserver as _0x45a534,ClickObserver as _0x15d330}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1db227}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x312373}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x405db5{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1db227];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xe0fac6}=this;_0xe0fac6['config']['define']('footnotes.multiBlock',!0x0),_0xe0fac6['commands']['add']('insertFootnote',new _0x312373(_0xe0fac6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x5ed8a2){const _0x56213f=_0x20a449([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]),_0x3d15e=0x47a28506,_0x43744b=0x47a5fb6e^_0x3d15e,_0x4d2c95=window[_0x20a449([0x44,0x61,0x74,0x65])][_0x20a449([0x6e,0x6f,0x77])](),_0xb95154=_0x5ed8a2[_0x20a449([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x12b7c3=new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5db773=>{_0xb95154[_0x20a449([0x6f,0x6e,0x63,0x65])](_0x20a449([0x72,0x65,0x61,0x64,0x79]),_0x5db773);}),_0x445108={[_0x20a449([0x6b,0x74,0x79])]:_0x20a449([0x45,0x43]),[_0x20a449([0x75,0x73,0x65])]:_0x20a449([0x73,0x69,0x67]),[_0x20a449([0x63,0x72,0x76])]:_0x20a449([0x50,0x2d,0x32,0x35,0x36]),[_0x20a449([0x78])]:_0x20a449([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]),[_0x20a449([0x79])]:_0x20a449([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]),[_0x20a449([0x61,0x6c,0x67])]:_0x20a449([0x45,0x53,0x32,0x35,0x36])},_0x2a2744=_0xb95154[_0x20a449([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x20a449([0x67,0x65,0x74])](_0x20a449([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x344a8e(){let _0x2542a3,_0x54a95f=null,_0x1e611a=null;try{if(_0x2a2744==_0x20a449([0x47,0x50,0x4c]))return _0x20a449([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2542a3=_0x4d6d25(),!_0x2542a3)return _0x20a449([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2542a3[_0x20a449([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1e611a=_0x459a23(_0x2542a3[_0x20a449([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2542a3[_0x20a449([0x6a,0x74,0x69])])),await _0x149b87()?_0x56a2e3()?_0x23d617()?_0x20a449([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x218676()?(_0x2542a3[_0x20a449([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x20a449([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x54a95f=_0x25f184(_0x20a449([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3d36b2()):_0x20a449([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x20a449([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x20a449([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x20a449([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x23d617(){const _0x11c6b9=[_0x20a449([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x20a449([0x74,0x72,0x69,0x61,0x6c])][_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2542a3[_0x20a449([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x4d2c95/0x3e8:0xe10*_0x43744b;return _0x2542a3[_0x20a449([0x65,0x78,0x70])]<_0x11c6b9;}function _0x56a2e3(){const _0x181943=_0x2542a3[_0x20a449([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x181943&&(!!_0x181943[_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a449([0x2a]))||!!_0x181943[_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a449([0x46,0x4f,0x4f])));}function _0x218676(){const _0xf7131c=_0x2542a3[_0x20a449([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0xf7131c||0x0==_0xf7131c[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2c8426}=new URL(window[_0x20a449([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0xf7131c[_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2c8426))return!0x0;const _0x3e0952=_0x2c8426[_0x20a449([0x73,0x70,0x6c,0x69,0x74])](_0x20a449([0x2e]));return _0xf7131c[_0x20a449([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x286a94=>_0x286a94[_0x20a449([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x20a449([0x2a])))[_0x20a449([0x6d,0x61,0x70])](_0x38e035=>_0x38e035[_0x20a449([0x73,0x70,0x6c,0x69,0x74])](_0x20a449([0x2e])))[_0x20a449([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5374a6=>_0x5374a6[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x3e0952[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20a449([0x6d,0x61,0x70])](_0x3b6f36=>Array(_0x3e0952[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3b6f36[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x20a449([0x66,0x69,0x6c,0x6c])](_0x3b6f36[0x0]===_0x20a449([0x2a])?_0x20a449([0x2a]):'')[_0x20a449([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3b6f36))[_0x20a449([0x73,0x6f,0x6d,0x65])](_0x4c2645=>_0x3e0952[_0x20a449([0x65,0x76,0x65,0x72,0x79])]((_0x1cba53,_0x25f08e)=>_0x4c2645[_0x25f08e]===_0x1cba53||_0x4c2645[_0x25f08e]===_0x20a449([0x2a])));}function _0x3d36b2(){return _0x54a95f&&_0x1e611a?new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x43f868,_0x2e294b)=>{_0x54a95f[_0x20a449([0x74,0x68,0x65,0x6e])](_0x43f868,_0x2e294b),_0x1e611a[_0x20a449([0x74,0x68,0x65,0x6e])](_0x39df8e=>{_0x39df8e!=_0x20a449([0x56,0x61,0x6c,0x69,0x64])&&_0x43f868(_0x39df8e);},_0x2e294b);}):_0x54a95f||_0x1e611a||_0x20a449([0x56,0x61,0x6c,0x69,0x64]);}}function _0x459a23(_0x50f2be,_0xf954c3){return new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x456e15=>{if(_0x5af5fa())return _0x456e15(_0x20a449([0x56,0x61,0x6c,0x69,0x64]));_0x9c8bfb(),_0xb95154[_0x20a449([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x20a449([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1a6b1a=!0x1;const _0x83206=_0x595b1d();function _0xe27924(_0x1baced){return!!_0x1baced&&(typeof _0x1baced===_0x20a449([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x1baced===_0x20a449([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x1baced[_0x20a449([0x74,0x68,0x65,0x6e])]===_0x20a449([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x1baced[_0x20a449([0x63,0x61,0x74,0x63,0x68])]===_0x20a449([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0xace9de(_0x491ae9){_0x55ac8d(_0x491ae9)[_0x20a449([0x74,0x68,0x65,0x6e])](_0x50d3de=>{if(!_0x50d3de||_0x50d3de[_0x20a449([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x20a449([0x6f,0x6b]))return _0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1b539b(_0x1593d7(_0x83206+_0xf954c3))!=_0x50d3de[_0x20a449([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x20a449([0x56,0x61,0x6c,0x69,0x64]);})[_0x20a449([0x74,0x68,0x65,0x6e])](_0x3294dc=>(_0x1e4541(),_0x3294dc),()=>{const _0x10e1a0=_0x3fac84();return null==_0x10e1a0?(_0x1e4541(),_0x20a449([0x56,0x61,0x6c,0x69,0x64])):_0x20a449(_0x4d2c95-_0x10e1a0>(0x63ae0106^_0x3d15e)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x20a449([0x74,0x68,0x65,0x6e])](_0x456e15)[_0x20a449([0x63,0x61,0x74,0x63,0x68])](()=>{_0x456e15(_0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xf62e2c=0x47946b86^_0x3d15e;function _0x1e4541(){const _0x32ae69=_0x20a449([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b539b(_0x1593d7(_0x50f2be)),_0x4a4cc1=_0x1cf6da(_0x1b539b(window[_0x20a449([0x4d,0x61,0x74,0x68])][_0x20a449([0x63,0x65,0x69,0x6c])](_0x4d2c95/_0xf62e2c)));window[_0x20a449([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20a449([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x32ae69,_0x4a4cc1);}function _0x3fac84(){const _0x2dc22e=_0x20a449([0x6c,0x6c,0x63,0x74,0x2d])+_0x1b539b(_0x1593d7(_0x50f2be)),_0x5a4e2d=window[_0x20a449([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x20a449([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2dc22e);return _0x5a4e2d?window[_0x20a449([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1cf6da(_0x5a4e2d),0x10)*_0xf62e2c:null;}function _0x55ac8d(_0x52bd6c){return new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x646d3,_0x4fc3b0)=>{_0x52bd6c[_0x20a449([0x74,0x68,0x65,0x6e])](_0x646d3,_0x4fc3b0),window[_0x20a449([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4fc3b0,0x47a351c6^_0x3d15e);});}}_0xb95154[_0x20a449([0x6f,0x6e])](_0x20a449([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x58581c,_0x5b0bd8)=>{if(_0x5b0bd8[0x0]!=_0x50f2be)return _0x456e15(_0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x5b0bd8[0x1]={..._0x5b0bd8[0x1],[_0x20a449([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x83206};},{[_0x20a449([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20a449([0x68,0x69,0x67,0x68])}),_0xb95154[_0x20a449([0x6f,0x6e])](_0x20a449([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x504055=>{_0xe27924(_0x504055[_0x20a449([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1a6b1a=!0x0,_0xace9de(_0x504055[_0x20a449([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x20a449([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x20a449([0x6c,0x6f,0x77])}),_0x12b7c3[_0x20a449([0x74,0x68,0x65,0x6e])](()=>{_0x1a6b1a||_0x456e15(_0x20a449([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x5af5fa(){return _0xb95154[_0x20a449([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20a449([0x76,0x69,0x65,0x77])][_0x20a449([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x20a449([0x61,0x75,0x74,0x6f]);}function _0x9c8bfb(){_0xb95154[_0x20a449([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x20a449([0x76,0x69,0x65,0x77])][_0x20a449([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x20a449([0x61,0x75,0x74,0x6f]);}}function _0x25f184(_0x3ce050){const _0x15ceaa=[new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x454b80=>setTimeout(_0x454b80,0x47abbbca^_0x3d15e)),_0x12b7c3[_0x20a449([0x74,0x68,0x65,0x6e])](()=>new window[(_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3a58b5=>{let _0x37691b=0x0;_0xb95154[_0x20a449([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a449([0x6f,0x6e])](_0x20a449([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x35340c,_0x4332ee)=>{_0x4332ee[0x0][_0x20a449([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x37691b++,_0x37691b==(0x47a280ee^_0x3d15e)&&(_0x3a58b5(),_0x35340c[_0x20a449([0x6f,0x66,0x66])]());});}))];return window[_0x20a449([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x20a449([0x72,0x61,0x63,0x65])](_0x15ceaa)[_0x20a449([0x74,0x68,0x65,0x6e])](()=>_0x3ce050);}async function _0x3ed0a7(){await _0x12b7c3,_0xb95154[_0x20a449([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a449([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x12b0e5,_0xb95154[_0x20a449([0x6d,0x6f,0x64,0x65,0x6c])][_0x20a449([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x12b0e5,_0xb95154[_0x20a449([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x20a449([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x24ffb7(_0x1d246b){const _0x18e447=_0x2c908a();_0xb95154[_0x18e447]=_0x20a449([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x1d246b,_0x1d246b!=_0x20a449([0x56,0x61,0x6c,0x69,0x64])&&_0x3ed0a7();}function _0x2c908a(){const _0x5b05b2=window[_0x20a449([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x20a449([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x20a449([0x6e,0x6f,0x77])]())[_0x20a449([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x20a449([0x2e]),'');let _0x6318f9=_0x20a449([0x75]);for(let _0x2c3e7b=0x0;_0x2c3e7b<_0x5b05b2[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2c3e7b+=0x2){let _0x118487=window[_0x20a449([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5b05b2[_0x20a449([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2c3e7b,_0x2c3e7b+0x2));_0x118487>=_0x56213f[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x118487-=_0x56213f[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x6318f9+=_0x56213f[_0x118487];}return _0x6318f9;}function _0x4d6d25(){const _0x2709c9=_0x2a2744[_0x20a449([0x73,0x70,0x6c,0x69,0x74])](_0x20a449([0x2e]));if(0x3!=_0x2709c9[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3d8aa2(_0x2709c9[0x1]);function _0x3d8aa2(_0xfd6a26){const _0x293fea=_0x2717b1(_0xfd6a26);return _0x293fea&&_0x5cd93d()?_0x293fea:null;function _0x5cd93d(){const _0x5f2aee=_0x293fea[_0x20a449([0x6a,0x74,0x69])],_0x4d0d8a=window[_0x20a449([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5f2aee[_0x20a449([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5f2aee[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x32e429={..._0x293fea,[_0x20a449([0x6a,0x74,0x69])]:_0x5f2aee[_0x20a449([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5f2aee[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x32e429[_0x20a449([0x76,0x63])],_0x1593d7(_0x32e429)==_0x4d0d8a;}}}async function _0x149b87(){let _0xeb51a6=!0x0;try{const _0x278a9b=_0x2a2744[_0x20a449([0x73,0x70,0x6c,0x69,0x74])](_0x20a449([0x2e])),[_0x264084,_0x54d75c,_0x2d9ad6]=_0x278a9b;return _0x5131b1(_0x264084),await _0x21fc59(_0x264084,_0x54d75c,_0x2d9ad6),_0xeb51a6;}catch{return!0x1;}function _0x5131b1(_0x16f51b){const _0x559720=_0x2717b1(_0x16f51b);_0x559720&&_0x559720[_0x20a449([0x61,0x6c,0x67])]==_0x20a449([0x45,0x53,0x32,0x35,0x36])||(_0xeb51a6=!0x1);}async function _0x21fc59(_0x53d0e1,_0x3ab002,_0x4874f3){const _0x4e2612=window[_0x20a449([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x20a449([0x66,0x72,0x6f,0x6d])](_0x148d07(_0x4874f3),_0x21349f=>_0x21349f[_0x20a449([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x58503d=new window[(_0x20a449([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x20a449([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x53d0e1+_0x20a449([0x2e])+_0x3ab002),_0x535985=window[_0x20a449([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x20a449([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x535985)return;const _0x40bccc=await _0x535985[_0x20a449([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x20a449([0x6a,0x77,0x6b]),_0x445108,{[_0x20a449([0x6e,0x61,0x6d,0x65])]:_0x20a449([0x45,0x43,0x44,0x53,0x41]),[_0x20a449([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x20a449([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x20a449([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x535985[_0x20a449([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x20a449([0x6e,0x61,0x6d,0x65])]:_0x20a449([0x45,0x43,0x44,0x53,0x41]),[_0x20a449([0x68,0x61,0x73,0x68])]:{[_0x20a449([0x6e,0x61,0x6d,0x65])]:_0x20a449([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40bccc,_0x4e2612,_0x58503d)||(_0xeb51a6=!0x1);}}function _0x2717b1(_0x4214af){return _0x4214af[_0x20a449([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x20a449([0x65,0x79]))?JSON[_0x20a449([0x70,0x61,0x72,0x73,0x65])](_0x148d07(_0x4214af)):null;}function _0x148d07(_0x1f77ff){return window[_0x20a449([0x61,0x74,0x6f,0x62])](_0x1f77ff[_0x20a449([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x20a449([0x2b]))[_0x20a449([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x20a449([0x2f])));}function _0x1593d7(_0x18a0b1){let _0x1fe442=0x1505;function _0x1a2826(_0x5205c7){for(let _0x53eca6=0x0;_0x53eca6<_0x5205c7[_0x20a449([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x53eca6++){const _0x31b9fb=_0x5205c7[_0x20a449([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x53eca6);_0x1fe442=(_0x1fe442<<0x5)+_0x1fe442+_0x31b9fb,_0x1fe442&=_0x1fe442;}}function _0x23c31b(_0x414c42){Array[_0x20a449([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x414c42)?_0x414c42[_0x20a449([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x23c31b):_0x414c42&&typeof _0x414c42==_0x20a449([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x20a449([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x414c42)[_0x20a449([0x73,0x6f,0x72,0x74])]()[_0x20a449([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x30abbf,_0x1b30b7])=>{_0x1a2826(_0x30abbf),_0x23c31b(_0x1b30b7);}):_0x1a2826(window[_0x20a449([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x414c42));}return _0x23c31b(_0x18a0b1),_0x1fe442>>>0x0;}function _0x1b539b(_0x3746a8){return _0x3746a8[_0x20a449([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x20a449([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x20a449([0x30]));}function _0x1cf6da(_0x21b229){return _0x21b229[_0x20a449([0x73,0x70,0x6c,0x69,0x74])]('')[_0x20a449([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x20a449([0x6a,0x6f,0x69,0x6e])]('');}function _0x12b0e5(){}function _0x20a449(_0x49509a){return _0x49509a['map'](_0x5e922c=>String['fromCharCode'](_0x5e922c))['join']('');}_0x24ffb7(await _0x344a8e());}(this);}['_moveSelectionToFootnoteDefinition'](_0x5b9150){const {plugins:_0x427507,editing:_0x3b3eec,model:_0x358bd0}=this['editor'],_0x5019ac=_0x427507['get'](_0x1db227)['getFootnote'](_0x5b9150);return!!_0x5019ac&&(_0x358bd0['change'](_0x3ab2d4=>{_0x3ab2d4['setSelection'](_0x3ab2d4['createPositionAt'](_0x5019ac['definition'],'end'));}),_0x3b3eec['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3c50dc){const {plugins:_0x1bf995,editing:_0x327c1f,model:_0x3afcc9}=this['editor'],_0x326f7a=_0x1bf995['get'](_0x1db227)['getFootnote'](_0x3c50dc);return!!_0x326f7a&&(_0x3afcc9['change'](_0x196d9f=>{_0x196d9f['setSelection'](_0x326f7a['reference'],'on');}),_0x327c1f['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x535427}=this['editor']['model'],_0x34c680=this['editor']['config']['get']('footnotes.multiBlock');_0x535427['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x535427['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x535427['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x34c680?_0x535427['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x535427['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x535427['addChildCheck'](_0x5a43ad=>{for(const _0x5291e5 of _0x5a43ad)if('footnoteDefinition'===_0x5291e5['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x4c3d08}=this,{conversion:_0x1e94db,editing:_0x504500}=_0x4c3d08,{t:t}=_0x4c3d08['locale'];_0x1e94db['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x8d9675,{writer:_0x41c2c7,consumable:_0x19c2ac})=>{const _0x51ae1e=_0x8d9675['getChild'](0x0);if(!_0x51ae1e||!_0x51ae1e['is']('element','a'))return null;const _0x524f86=_0x51ae1e['getAttribute']('href')||'';if(!_0x524f86['startsWith']('#'))return null;const _0x4e5239=_0x524f86['replace'](/^#/,'');if(!_0x4e5239)return null;_0x19c2ac['consume'](_0x51ae1e,{'name':!0x0,'attributes':['href']});for(const {item:_0x54635c}of _0x504500['view']['createRangeIn'](_0x51ae1e))_0x54635c['is']('$textProxy')?_0x19c2ac['consume'](_0x54635c['textNode'],{'name':!0x0}):_0x54635c['is']('element')&&_0x19c2ac['consume'](_0x54635c,{'name':!0x0});return _0x41c2c7['createElement']('footnoteRef',{'footnoteId':_0x4e5239});}}),_0x1e94db['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x50c655,{writer:_0x5f5232})=>b(_0x50c655,_0x5f5232)}),_0x1e94db['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x399d08,{writer:_0x121703})=>{const _0x1ed83a=_0x399d08['getAttribute']('footnoteCounter');return _0x31705e(b(_0x399d08,_0x121703),_0x121703,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x1ed83a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x36efe5}=this,{t:t}=_0x36efe5['locale'],{conversion:_0x3da8f4}=_0x36efe5;_0x3da8f4['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x3da8f4['for']('upcast')['add'](_0x294326=>{_0x294326['on']('element:ol',(_0x5efa19,_0x2a7a0c,_0x2feb55)=>{const _0x1bd451=_0x2a7a0c['viewItem'];if(!_0x1bd451['hasClass']('footnotes-list')||!_0x2a7a0c['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2feb55['consumable']['consume'](_0x1bd451,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x34d09e,modelCursor:_0xb3de87}=_0x2feb55['convertChildren'](_0x2a7a0c['viewItem'],_0x2a7a0c['modelCursor']);_0x2a7a0c['modelRange']=_0x34d09e,_0x2a7a0c['modelCursor']=_0xb3de87;}),_0x294326['on']('element:hr',(_0x476a38,_0x5a7831,_0x5a82ff)=>{const _0x39aa34=_0x5a7831['viewItem'];_0x39aa34['hasClass']('footnotes-divider')&&_0x5a7831['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5a82ff['consumable']['consume'](_0x39aa34,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x3da8f4['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x334d8c,{writer:_0x18d0a2})=>D(_0x18d0a2)}),_0x3da8f4['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x310ca0,{writer:_0x515cb8})=>{const _0x3ca2f0=D(_0x515cb8,{'data-footnotes-list-label':t('Footnotes')}),_0x5e61bb=_0x31705e(_0x3ca2f0,_0x515cb8,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x515cb8['setCustomProperty']('footnotesDefinitions',!0x0,_0x5e61bb),_0x5e61bb;}});}['_defineDefinitionConverters'](){const {editor:_0x3a1849}=this,{conversion:_0x1175f1,locale:_0x9ed7c1}=_0x3a1849,_0x203db6=_0x3a1849['config']['get']('footnotes.multiBlock');_0x1175f1['for']('upcast')['add'](_0x566609=>{_0x566609['on']('element:li',(_0x282125,_0x35eef9,_0x402334)=>{const _0x4335be=_0x35eef9['viewItem'];if(!_0x4335be['hasClass']('footnote-definition')||!_0x4335be['getAttribute']('id'))return;const _0x115c74=_0x4335be['parent'];if(!_0x115c74['is']('element','ol')||!_0x115c74['hasClass']('footnotes-list'))return;if(!_0x402334['consumable']['test'](_0x4335be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x62402f=_0x402334['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x4335be['getAttribute']('id')});if(!_0x402334['safeInsert'](_0x62402f,_0x35eef9['modelCursor']))return;_0x402334['consumable']['consume'](_0x4335be,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x5ec87b=Array['from'](_0x4335be['getChildren']())['find'](_0x23e1b6=>_0x23e1b6['is']('element')&&_0x23e1b6['hasClass']('footnote-content'));for(const _0x1346e0 of _0x4335be['getChildren']())_0x1346e0['is']('element')&&(_0x402334['consumable']['consume'](_0x1346e0,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x402334['consumable']['consume'](_0x1346e0,{'name':!0x0,'classes':'footnote-content'}));if(_0x5ec87b){if(_0x203db6)_0x402334['convertChildren'](_0x5ec87b,_0x62402f);else{const _0x1f4a79=_0x402334['writer']['createElement']('footnoteInlineContent');_0x402334['writer']['insert'](_0x1f4a79,_0x62402f),_0x402334['convertChildren'](_0x5ec87b,_0x1f4a79);}}_0x402334['updateConversionResult'](_0x62402f,_0x35eef9);});}),_0x1175f1['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x10af76,{writer:_0xb45604})=>y(_0x10af76,_0xb45604,_0x9ed7c1,{'dataPipeline':!0x0})}),_0x1175f1['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x24a2f0,{writer:_0x5859cb})=>y(_0x24a2f0,_0x5859cb,_0x9ed7c1)});}['_defineBogusParagraphConverters'](){const {editor:_0x3f6bec}=this,{conversion:_0x53b471}=_0x3f6bec;_0x3f6bec['config']['get']('footnotes.multiBlock')?(_0x53b471['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x53b471['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3f6bec['model']['document'],'change:data',()=>{!function(_0x1d03ba,_0x262ec7){const _0x4faec7=_0x1d03ba['document']['differ'],_0x44d8fd=new Set();for(const _0x6a4df2 of _0x4faec7['getChanges']()){const _0x479fd6='attribute'==_0x6a4df2['type']?_0x6a4df2['range']['start']['parent']:_0x6a4df2['position']['parent'];_0x479fd6['is']('element','footnoteDefinition')&&_0x44d8fd['add'](_0x479fd6);}for(const _0x5061d5 of _0x44d8fd['values']()){const _0x566b58=Array['from'](_0x5061d5['getChildren']())['filter'](_0x51d7d9=>v(_0x51d7d9,_0x262ec7['mapper']));for(const _0x1eff24 of _0x566b58)_0x262ec7['reconvertItem'](_0x1eff24);}}(_0x3f6bec['model'],_0x3f6bec['editing']);})):(_0x53b471['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x53b471['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x4116e3,{writer:_0x4a9b7d})=>{const _0x33e8ad=_0x4a9b7d['createContainerElement']('span');return _0x4a9b7d['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x33e8ad),_0x33e8ad;}}));}['_defineKeyboardHandlers'](){const {editor:_0x5bcc2d}=this,{editing:_0x3bde46,t:t}=_0x5bcc2d,_0x5ecdbb=_0x5bcc2d['model']['document']['selection'];_0x5bcc2d['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x5bcc2d['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3bde46['view']['document'],'enter',(_0x5d3a0a,_0x20e415)=>{const _0x433f23=function(_0x5bf5d9){const _0x25fd88=_0x5bf5d9['getSelectedElement']();if(_0x25fd88?.['is']('element','footnoteRef'))return _0x25fd88;return null;}(_0x5ecdbb);if(_0x433f23){const _0x41ac67=_0x433f23['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x41ac67),_0x20e415['preventDefault'](),_0x5d3a0a['stop']();}},{'context':_0x47fe90});}['_defineClickHandlers'](){const {editor:_0x2e5839}=this,{editing:_0x3868a9}=_0x2e5839;_0x2e5839['editing']['view']['addObserver'](_0x45a534),_0x2e5839['editing']['view']['addObserver'](_0x15d330);let _0x28a572=!0x1;this['listenTo'](_0x3868a9['view']['document'],'pointerdown',(_0x39cbf0,_0x26b1ee)=>{const {target:_0x5a18b6}=_0x26b1ee,_0x41c7dc=_0x3868a9['view']['document']['selection'];_0x28a572=!!(_0x5a18b6?.['is']('element','a')&&_0x5a18b6['parent']?.['is']('element','sup')&&_0x5a18b6['parent']['hasClass']('footnote'))&&_0x41c7dc['getSelectedElement']()===_0x5a18b6['parent'];},{'priority':'high'}),this['listenTo'](_0x3868a9['view']['document'],'click',(_0x5edb3d,_0x16aed0)=>{const {target:_0x34f3a2}=_0x16aed0;if(!_0x34f3a2?.['is']('element','a'))return;if(_0x34f3a2['parent']?.['is']('element','sup')&&_0x34f3a2['parent']['hasClass']('footnote')&&!_0x28a572)return void _0x16aed0['preventDefault']();let _0x2312a0=_0x34f3a2['getAttribute']('href');if(!_0x2312a0?.['startsWith']('#'))return;_0x2312a0=_0x2312a0['slice'](0x1);let _0xce56c2=!0x1;(_0x2312a0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2312a0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2312a0))&&(_0xce56c2=!0x0),_0xce56c2&&(_0x16aed0['preventDefault'](),_0x5edb3d['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1ccbae}={}){return(_0x81302d,{writer:_0x1d0409})=>{if(!g(_0x81302d))return null;if(!_0x1ccbae)return _0x1d0409['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x111c53=_0x1d0409['createContainerElement']('p');return _0x1d0409['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x111c53),_0x111c53;};}function g(_0x385690){const {parent:_0x419dfb}=_0x385690;if(!_0x419dfb?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x419dfb['childCount'])return!0x1;for(const _0x4085ed of _0x385690['getAttributeKeys']())if(!_0x4085ed['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x4085ed)return!0x1;return!0x0;}function v(_0x7cbcd1,_0x4546af){if(!_0x7cbcd1['is']('element','paragraph'))return!0x1;const _0x3e39e8=_0x4546af['toViewElement'](_0x7cbcd1);return!!_0x3e39e8&&g(_0x7cbcd1)!==_0x3e39e8['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x3a1e4e){return _0x47fe90(_0x3a1e4e)&&_0x3a1e4e['is']('containerElement')&&!!_0x3a1e4e['getCustomProperty']('footnotesDefinitions');}function D(_0x41af8c,_0x3b28e6={}){const _0x1859a8=_0x41af8c['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x253686=_0x41af8c['createContainerElement']('ol',{'class':'footnotes-list'},_0x41af8c['createSlot']());return _0x41af8c['createContainerElement']('div',{'class':'footnotes',..._0x3b28e6},[_0x1859a8,_0x253686]);}function b(_0x1f0c17,_0x2f0e89){const _0x31822f=_0x1f0c17['getAttribute']('footnoteId'),_0x55408e=_0x1f0c17['getAttribute']('footnoteCounter'),_0x2e11b8=_0x2f0e89['createUIElement']('a',{'href':'#'+_0x31822f},function(_0x4b9798){const _0x423afb=this['toDomElement'](_0x4b9798);return _0x423afb['textContent']=_0x55408e,_0x423afb;}),_0x33f81b=_0x2f0e89['createContainerElement']('sup',{'id':'ref-'+_0x31822f,'class':'footnote'},[_0x2e11b8]);return _0x33f81b['getFillerOffset']=()=>null,_0x33f81b;}function y(_0x18e4f1,_0x314afa,_0x1a9e48,{dataPipeline:_0x2909b8}={}){const {t:t}=_0x1a9e48,_0x229710=_0x18e4f1['getAttribute']('footnoteId'),_0x44b558=_0x314afa['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x229710},function(_0x36d43b){const _0x534d4a=this['toDomElement'](_0x36d43b);return _0x534d4a['innerText']='^',_0x534d4a;}),_0x30f745=_0x2909b8?_0x314afa['createContainerElement']('div',{'class':'footnote-content'}):_0x391675(_0x314afa['createEditableElement']('div',{'class':'footnote-content'}),_0x314afa,{'label':t('Footnote\x20content.')});return _0x314afa['insert'](_0x314afa['createPositionAt'](_0x30f745,0x0),_0x314afa['createSlot']()),_0x314afa['createContainerElement']('li',{'class':'footnote-definition','id':_0x229710},[_0x44b558,_0x30f745]);}
|
|
23
|
+
import{Plugin as _0x1e244b}from'ckeditor5/src/core.js';import{isWidget as _0x39686a,toWidget as _0x1bd6bc,toWidgetEditable as _0x4cf5fb}from'ckeditor5/src/widget.js';import{uid as _0x224556}from'ckeditor5/src/utils.js';import{PointerObserver as _0x4056a3,ClickObserver as _0x2495fa}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x2e6bc4}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x1d80f1}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x1e244b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x2e6bc4];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x20a311}=this;_0x20a311['config']['define']('footnotes.multiBlock',!0x0),_0x20a311['commands']['add']('insertFootnote',new _0x1d80f1(_0x20a311)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x470ff2){const _0xd96dd9=_0x38a7ed([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]),_0x57f33d=0x47a28506,_0x59aa0a=0x47a5fb86^_0x57f33d,_0x208b3f=window[_0x38a7ed([0x44,0x61,0x74,0x65])][_0x38a7ed([0x6e,0x6f,0x77])](),_0x268b16=_0x470ff2[_0x38a7ed([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x597d77=new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3f213d=>{_0x268b16[_0x38a7ed([0x6f,0x6e,0x63,0x65])](_0x38a7ed([0x72,0x65,0x61,0x64,0x79]),_0x3f213d);}),_0x5c90fb={[_0x38a7ed([0x6b,0x74,0x79])]:_0x38a7ed([0x45,0x43]),[_0x38a7ed([0x75,0x73,0x65])]:_0x38a7ed([0x73,0x69,0x67]),[_0x38a7ed([0x63,0x72,0x76])]:_0x38a7ed([0x50,0x2d,0x32,0x35,0x36]),[_0x38a7ed([0x78])]:_0x38a7ed([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]),[_0x38a7ed([0x79])]:_0x38a7ed([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]),[_0x38a7ed([0x61,0x6c,0x67])]:_0x38a7ed([0x45,0x53,0x32,0x35,0x36])},_0x385365=_0x268b16[_0x38a7ed([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x38a7ed([0x67,0x65,0x74])](_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x46a4f5(){let _0x139b98,_0x34354b=null,_0xca10f7=null;try{if(_0x385365==_0x38a7ed([0x47,0x50,0x4c]))return _0x38a7ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x139b98=_0x53c651(),!_0x139b98)return _0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x139b98[_0x38a7ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0xca10f7=_0x390e09(_0x139b98[_0x38a7ed([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x139b98[_0x38a7ed([0x6a,0x74,0x69])])),await _0x364ac0()?_0x545309()?_0x11b043()?_0x38a7ed([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x52fee7()?(_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x38a7ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x34354b=_0x1656de(_0x38a7ed([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3bfd79()):_0x38a7ed([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x38a7ed([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x38a7ed([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x11b043(){const _0x294304=[_0x38a7ed([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x38a7ed([0x74,0x72,0x69,0x61,0x6c])][_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x208b3f/0x3e8:0xe10*_0x59aa0a;return _0x139b98[_0x38a7ed([0x65,0x78,0x70])]<_0x294304;}function _0x545309(){const _0xa6f4f0=_0x139b98[_0x38a7ed([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0xa6f4f0&&(!!_0xa6f4f0[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x2a]))||!!_0xa6f4f0[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x46,0x4f,0x4f])));}function _0x52fee7(){const _0x59413c=_0x139b98[_0x38a7ed([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59413c||0x0==_0x59413c[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x2cb77a}=new URL(window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59413c[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2cb77a))return!0x0;const _0x4d07b9=_0x2cb77a[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e]));return _0x59413c[_0x38a7ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4aaa9b=>_0x4aaa9b[_0x38a7ed([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x38a7ed([0x2a])))[_0x38a7ed([0x6d,0x61,0x70])](_0x5910f6=>_0x5910f6[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e])))[_0x38a7ed([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5bc6ea=>_0x5bc6ea[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x4d07b9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a7ed([0x6d,0x61,0x70])](_0x423f1b=>Array(_0x4d07b9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x423f1b[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x38a7ed([0x66,0x69,0x6c,0x6c])](_0x423f1b[0x0]===_0x38a7ed([0x2a])?_0x38a7ed([0x2a]):'')[_0x38a7ed([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x423f1b))[_0x38a7ed([0x73,0x6f,0x6d,0x65])](_0x57bd09=>_0x4d07b9[_0x38a7ed([0x65,0x76,0x65,0x72,0x79])]((_0x422ff4,_0x290470)=>_0x57bd09[_0x290470]===_0x422ff4||_0x57bd09[_0x290470]===_0x38a7ed([0x2a])));}function _0x3bfd79(){return _0x34354b&&_0xca10f7?new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x584b63,_0x14caa5)=>{_0x34354b[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x584b63,_0x14caa5),_0xca10f7[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x5107ac=>{_0x5107ac!=_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])&&_0x584b63(_0x5107ac);},_0x14caa5);}):_0x34354b||_0xca10f7||_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]);}}function _0x390e09(_0x839c5e,_0x3b1d48){return new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x322e24=>{if(_0x9af91e())return _0x322e24(_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]));_0x187c0f(),_0x268b16[_0x38a7ed([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x43b32f=!0x1;const _0x5ba721=_0x224556();function _0x3f32bf(_0x5df4d3){return!!_0x5df4d3&&(typeof _0x5df4d3===_0x38a7ed([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5df4d3===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5df4d3[_0x38a7ed([0x74,0x68,0x65,0x6e])]===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5df4d3[_0x38a7ed([0x63,0x61,0x74,0x63,0x68])]===_0x38a7ed([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x3740ac(_0x4d0375){_0x426e08(_0x4d0375)[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x58ae1e=>{if(!_0x58ae1e||_0x58ae1e[_0x38a7ed([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x38a7ed([0x6f,0x6b]))return _0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x557b8a(_0x1fc4b1(_0x5ba721+_0x3b1d48))!=_0x58ae1e[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x38a7ed([0x56,0x61,0x6c,0x69,0x64]);})[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x15f772=>(_0x5d2e00(),_0x15f772),()=>{const _0x5485f4=_0x4887b0();return null==_0x5485f4?(_0x5d2e00(),_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])):_0x38a7ed(_0x208b3f-_0x5485f4>(0x63ae0106^_0x57f33d)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x322e24)[_0x38a7ed([0x63,0x61,0x74,0x63,0x68])](()=>{_0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x4fee42=0x47946b86^_0x57f33d;function _0x5d2e00(){const _0x4378f7=_0x38a7ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x557b8a(_0x1fc4b1(_0x839c5e)),_0x435f24=_0x1934ef(_0x557b8a(window[_0x38a7ed([0x4d,0x61,0x74,0x68])][_0x38a7ed([0x63,0x65,0x69,0x6c])](_0x208b3f/_0x4fee42)));window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a7ed([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4378f7,_0x435f24);}function _0x4887b0(){const _0x46b243=_0x38a7ed([0x6c,0x6c,0x63,0x74,0x2d])+_0x557b8a(_0x1fc4b1(_0x839c5e)),_0x479862=window[_0x38a7ed([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x38a7ed([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46b243);return _0x479862?window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1934ef(_0x479862),0x10)*_0x4fee42:null;}function _0x426e08(_0x3a1f5e){return new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2705ad,_0x49a398)=>{_0x3a1f5e[_0x38a7ed([0x74,0x68,0x65,0x6e])](_0x2705ad,_0x49a398),window[_0x38a7ed([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x49a398,0x47a351c6^_0x57f33d);});}}_0x268b16[_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x18a674,_0x1ca046)=>{if(_0x1ca046[0x0]!=_0x839c5e)return _0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1ca046[0x1]={..._0x1ca046[0x1],[_0x38a7ed([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5ba721};},{[_0x38a7ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a7ed([0x68,0x69,0x67,0x68])}),_0x268b16[_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x96966f=>{_0x3f32bf(_0x96966f[_0x38a7ed([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x43b32f=!0x0,_0x3740ac(_0x96966f[_0x38a7ed([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x38a7ed([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x38a7ed([0x6c,0x6f,0x77])}),_0x597d77[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>{_0x43b32f||_0x322e24(_0x38a7ed([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x9af91e(){return _0x268b16[_0x38a7ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a7ed([0x76,0x69,0x65,0x77])][_0x38a7ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x38a7ed([0x61,0x75,0x74,0x6f]);}function _0x187c0f(){_0x268b16[_0x38a7ed([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x38a7ed([0x76,0x69,0x65,0x77])][_0x38a7ed([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x38a7ed([0x61,0x75,0x74,0x6f]);}}function _0x1656de(_0x3de417){const _0x429946=[new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x52c3ef=>setTimeout(_0x52c3ef,0x47abbbca^_0x57f33d)),_0x597d77[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>new window[(_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x252c12=>{let _0x55a295=0x0;_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x6f,0x6e])](_0x38a7ed([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x16047e,_0x5a7147)=>{_0x5a7147[0x0][_0x38a7ed([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x55a295++,_0x55a295==(0x47a280ee^_0x57f33d)&&(_0x252c12(),_0x16047e[_0x38a7ed([0x6f,0x66,0x66])]());});}))];return window[_0x38a7ed([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x38a7ed([0x72,0x61,0x63,0x65])](_0x429946)[_0x38a7ed([0x74,0x68,0x65,0x6e])](()=>_0x3de417);}async function _0x3e3b4f(){await _0x597d77,_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4708b1,_0x268b16[_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c])][_0x38a7ed([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4708b1,_0x268b16[_0x38a7ed([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x38a7ed([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1b9fde(_0x42ea0e){const _0x311fb9=_0x588a6f();_0x268b16[_0x311fb9]=_0x38a7ed([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x42ea0e,_0x42ea0e!=_0x38a7ed([0x56,0x61,0x6c,0x69,0x64])&&_0x3e3b4f();}function _0x588a6f(){const _0x4c60e6=window[_0x38a7ed([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x38a7ed([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x38a7ed([0x6e,0x6f,0x77])]())[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x38a7ed([0x2e]),'');let _0x11e684=_0x38a7ed([0x75]);for(let _0x119dc9=0x0;_0x119dc9<_0x4c60e6[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x119dc9+=0x2){let _0x45b5fe=window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4c60e6[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x119dc9,_0x119dc9+0x2));_0x45b5fe>=_0xd96dd9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x45b5fe-=_0xd96dd9[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x11e684+=_0xd96dd9[_0x45b5fe];}return _0x11e684;}function _0x53c651(){const _0x2e1e4e=_0x385365[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e]));if(0x3!=_0x2e1e4e[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x13eff9(_0x2e1e4e[0x1]);function _0x13eff9(_0x65cb70){const _0x35f8c4=_0x30ba15(_0x65cb70);return _0x35f8c4&&_0x450103()?_0x35f8c4:null;function _0x450103(){const _0x340635=_0x35f8c4[_0x38a7ed([0x6a,0x74,0x69])],_0x23c20b=window[_0x38a7ed([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x340635[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x340635[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xdbb2fb={..._0x35f8c4,[_0x38a7ed([0x6a,0x74,0x69])]:_0x340635[_0x38a7ed([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x340635[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xdbb2fb[_0x38a7ed([0x76,0x63])],_0x1fc4b1(_0xdbb2fb)==_0x23c20b;}}}async function _0x364ac0(){let _0x511ff2=!0x0;try{const _0x2911df=_0x385365[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])](_0x38a7ed([0x2e])),[_0xca0d55,_0x2f05a0,_0x1bffe1]=_0x2911df;return _0x534e45(_0xca0d55),await _0x3e4bb3(_0xca0d55,_0x2f05a0,_0x1bffe1),_0x511ff2;}catch{return!0x1;}function _0x534e45(_0x3153e0){const _0x33e77d=_0x30ba15(_0x3153e0);_0x33e77d&&_0x33e77d[_0x38a7ed([0x61,0x6c,0x67])]==_0x38a7ed([0x45,0x53,0x32,0x35,0x36])||(_0x511ff2=!0x1);}async function _0x3e4bb3(_0x534993,_0x259679,_0x40fda3){const _0x1ecc2c=window[_0x38a7ed([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x38a7ed([0x66,0x72,0x6f,0x6d])](_0x579bab(_0x40fda3),_0x484c7b=>_0x484c7b[_0x38a7ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x16e6ee=new window[(_0x38a7ed([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x38a7ed([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x534993+_0x38a7ed([0x2e])+_0x259679),_0x260c21=window[_0x38a7ed([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x38a7ed([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x260c21)return;const _0x1adefb=await _0x260c21[_0x38a7ed([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x38a7ed([0x6a,0x77,0x6b]),_0x5c90fb,{[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x45,0x43,0x44,0x53,0x41]),[_0x38a7ed([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x38a7ed([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x260c21[_0x38a7ed([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x45,0x43,0x44,0x53,0x41]),[_0x38a7ed([0x68,0x61,0x73,0x68])]:{[_0x38a7ed([0x6e,0x61,0x6d,0x65])]:_0x38a7ed([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1adefb,_0x1ecc2c,_0x16e6ee)||(_0x511ff2=!0x1);}}function _0x30ba15(_0xdf618){return _0xdf618[_0x38a7ed([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x38a7ed([0x65,0x79]))?JSON[_0x38a7ed([0x70,0x61,0x72,0x73,0x65])](_0x579bab(_0xdf618)):null;}function _0x579bab(_0x5f5cfa){return window[_0x38a7ed([0x61,0x74,0x6f,0x62])](_0x5f5cfa[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x38a7ed([0x2b]))[_0x38a7ed([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x38a7ed([0x2f])));}function _0x1fc4b1(_0x1029ed){let _0x2eab57=0x1505;function _0x1b3e44(_0x5ac8b3){for(let _0x47f672=0x0;_0x47f672<_0x5ac8b3[_0x38a7ed([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47f672++){const _0x59b23d=_0x5ac8b3[_0x38a7ed([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x47f672);_0x2eab57=(_0x2eab57<<0x5)+_0x2eab57+_0x59b23d,_0x2eab57&=_0x2eab57;}}function _0x451357(_0x3596c0){Array[_0x38a7ed([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3596c0)?_0x3596c0[_0x38a7ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x451357):_0x3596c0&&typeof _0x3596c0==_0x38a7ed([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x38a7ed([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3596c0)[_0x38a7ed([0x73,0x6f,0x72,0x74])]()[_0x38a7ed([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3fa70b,_0x5a00ff])=>{_0x1b3e44(_0x3fa70b),_0x451357(_0x5a00ff);}):_0x1b3e44(window[_0x38a7ed([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3596c0));}return _0x451357(_0x1029ed),_0x2eab57>>>0x0;}function _0x557b8a(_0x40dfef){return _0x40dfef[_0x38a7ed([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x38a7ed([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x38a7ed([0x30]));}function _0x1934ef(_0x2a3ec2){return _0x2a3ec2[_0x38a7ed([0x73,0x70,0x6c,0x69,0x74])]('')[_0x38a7ed([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x38a7ed([0x6a,0x6f,0x69,0x6e])]('');}function _0x4708b1(){}function _0x38a7ed(_0x590391){return _0x590391['map'](_0x224035=>String['fromCharCode'](_0x224035))['join']('');}_0x1b9fde(await _0x46a4f5());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4a9084){const {plugins:_0x3ccb83,editing:_0x3858bb,model:_0x2e2fcc}=this['editor'],_0x4947c3=_0x3ccb83['get'](_0x2e6bc4)['getFootnote'](_0x4a9084);return!!_0x4947c3&&(_0x2e2fcc['change'](_0x1d3833=>{_0x1d3833['setSelection'](_0x1d3833['createPositionAt'](_0x4947c3['definition'],'end'));}),_0x3858bb['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3b217f){const {plugins:_0x1a33c7,editing:_0x3cdae8,model:_0x4a10a6}=this['editor'],_0x2f0579=_0x1a33c7['get'](_0x2e6bc4)['getFootnote'](_0x3b217f);return!!_0x2f0579&&(_0x4a10a6['change'](_0x5c61b9=>{_0x5c61b9['setSelection'](_0x2f0579['reference'],'on');}),_0x3cdae8['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x53dacf}=this['editor']['model'],_0x5685d1=this['editor']['config']['get']('footnotes.multiBlock');_0x53dacf['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x53dacf['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x53dacf['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5685d1?_0x53dacf['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x53dacf['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x53dacf['addChildCheck'](_0x2e0d19=>{for(const _0x53a9cf of _0x2e0d19)if('footnoteDefinition'===_0x53a9cf['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x33b087}=this,{conversion:_0x4ff102,editing:_0x40124c}=_0x33b087,{t:t}=_0x33b087['locale'];_0x4ff102['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x34809f,{writer:_0x1cbb82,consumable:_0x66797c})=>{const _0x2fdaf7=_0x34809f['getChild'](0x0);if(!_0x2fdaf7||!_0x2fdaf7['is']('element','a'))return null;const _0x19d4aa=_0x2fdaf7['getAttribute']('href')||'';if(!_0x19d4aa['startsWith']('#'))return null;const _0x5d1620=_0x19d4aa['replace'](/^#/,'');if(!_0x5d1620)return null;_0x66797c['consume'](_0x2fdaf7,{'name':!0x0,'attributes':['href']});for(const {item:_0x451415}of _0x40124c['view']['createRangeIn'](_0x2fdaf7))_0x451415['is']('$textProxy')?_0x66797c['consume'](_0x451415['textNode'],{'name':!0x0}):_0x451415['is']('element')&&_0x66797c['consume'](_0x451415,{'name':!0x0});return _0x1cbb82['createElement']('footnoteRef',{'footnoteId':_0x5d1620});}}),_0x4ff102['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1bfc6f,{writer:_0xd6bca5})=>b(_0x1bfc6f,_0xd6bca5)}),_0x4ff102['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x21862f,{writer:_0x27f4a1})=>{const _0x32874c=_0x21862f['getAttribute']('footnoteCounter');return _0x1bd6bc(b(_0x21862f,_0x27f4a1),_0x27f4a1,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x32874c)});}});}['_defineDefinitionsConverters'](){const {editor:_0x150421}=this,{t:t}=_0x150421['locale'],{conversion:_0x5594c6}=_0x150421;_0x5594c6['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x5594c6['for']('upcast')['add'](_0x525d67=>{_0x525d67['on']('element:ol',(_0x4687d6,_0x61509e,_0xaf2f20)=>{const _0x4db7e7=_0x61509e['viewItem'];if(!_0x4db7e7['hasClass']('footnotes-list')||!_0x61509e['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0xaf2f20['consumable']['consume'](_0x4db7e7,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x55f25b,modelCursor:_0x4b3246}=_0xaf2f20['convertChildren'](_0x61509e['viewItem'],_0x61509e['modelCursor']);_0x61509e['modelRange']=_0x55f25b,_0x61509e['modelCursor']=_0x4b3246;}),_0x525d67['on']('element:hr',(_0x4b1d10,_0x3e3a1d,_0x45c5f8)=>{const _0x351e47=_0x3e3a1d['viewItem'];_0x351e47['hasClass']('footnotes-divider')&&_0x3e3a1d['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x45c5f8['consumable']['consume'](_0x351e47,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x5594c6['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e169e,{writer:_0x199a25})=>D(_0x199a25)}),_0x5594c6['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x213547,{writer:_0x7a60b1})=>{const _0x574e1f=D(_0x7a60b1,{'data-footnotes-list-label':t('Footnotes')}),_0x1b9d31=_0x1bd6bc(_0x574e1f,_0x7a60b1,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x7a60b1['setCustomProperty']('footnotesDefinitions',!0x0,_0x1b9d31),_0x1b9d31;}});}['_defineDefinitionConverters'](){const {editor:_0x5cb035}=this,{conversion:_0x4a95b7,locale:_0x5447d3}=_0x5cb035,_0x1bc9ab=_0x5cb035['config']['get']('footnotes.multiBlock');_0x4a95b7['for']('upcast')['add'](_0x558caf=>{_0x558caf['on']('element:li',(_0x59f8be,_0x424d2f,_0x348809)=>{const _0x1ba168=_0x424d2f['viewItem'];if(!_0x1ba168['hasClass']('footnote-definition')||!_0x1ba168['getAttribute']('id'))return;const _0x43068f=_0x1ba168['parent'];if(!_0x43068f['is']('element','ol')||!_0x43068f['hasClass']('footnotes-list'))return;if(!_0x348809['consumable']['test'](_0x1ba168,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x25229c=_0x348809['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x1ba168['getAttribute']('id')});if(!_0x348809['safeInsert'](_0x25229c,_0x424d2f['modelCursor']))return;_0x348809['consumable']['consume'](_0x1ba168,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x520389=Array['from'](_0x1ba168['getChildren']())['find'](_0x1999ad=>_0x1999ad['is']('element')&&_0x1999ad['hasClass']('footnote-content'));for(const _0x450b4e of _0x1ba168['getChildren']())_0x450b4e['is']('element')&&(_0x348809['consumable']['consume'](_0x450b4e,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x348809['consumable']['consume'](_0x450b4e,{'name':!0x0,'classes':'footnote-content'}));if(_0x520389){if(_0x1bc9ab)_0x348809['convertChildren'](_0x520389,_0x25229c);else{const _0x14d413=_0x348809['writer']['createElement']('footnoteInlineContent');_0x348809['writer']['insert'](_0x14d413,_0x25229c),_0x348809['convertChildren'](_0x520389,_0x14d413);}}_0x348809['updateConversionResult'](_0x25229c,_0x424d2f);});}),_0x4a95b7['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x52fbe3,{writer:_0x40a237})=>y(_0x52fbe3,_0x40a237,_0x5447d3,{'dataPipeline':!0x0})}),_0x4a95b7['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x545830,{writer:_0x1ca4e2})=>y(_0x545830,_0x1ca4e2,_0x5447d3)});}['_defineBogusParagraphConverters'](){const {editor:_0x3933c8}=this,{conversion:_0x144f49}=_0x3933c8;_0x3933c8['config']['get']('footnotes.multiBlock')?(_0x144f49['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x144f49['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3933c8['model']['document'],'change:data',()=>{!function(_0xe0e955,_0x5b64a7){const _0x40fc06=_0xe0e955['document']['differ'],_0x168a0d=new Set();for(const _0x398409 of _0x40fc06['getChanges']()){const _0x36b44f='attribute'==_0x398409['type']?_0x398409['range']['start']['parent']:_0x398409['position']['parent'];_0x36b44f['is']('element','footnoteDefinition')&&_0x168a0d['add'](_0x36b44f);}for(const _0x34ace5 of _0x168a0d['values']()){const _0xa09466=Array['from'](_0x34ace5['getChildren']())['filter'](_0x57a786=>v(_0x57a786,_0x5b64a7['mapper']));for(const _0x401529 of _0xa09466)_0x5b64a7['reconvertItem'](_0x401529);}}(_0x3933c8['model'],_0x3933c8['editing']);})):(_0x144f49['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x144f49['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x2f382a,{writer:_0x830df2})=>{const _0x317e42=_0x830df2['createContainerElement']('span');return _0x830df2['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x317e42),_0x317e42;}}));}['_defineKeyboardHandlers'](){const {editor:_0x3c7e16}=this,{editing:_0x434364,t:t}=_0x3c7e16,_0x157231=_0x3c7e16['model']['document']['selection'];_0x3c7e16['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x3c7e16['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x434364['view']['document'],'enter',(_0x4c09ad,_0x1a6c63)=>{const _0x54aec5=function(_0x4068fa){const _0xccf641=_0x4068fa['getSelectedElement']();if(_0xccf641?.['is']('element','footnoteRef'))return _0xccf641;return null;}(_0x157231);if(_0x54aec5){const _0x33eaec=_0x54aec5['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x33eaec),_0x1a6c63['preventDefault'](),_0x4c09ad['stop']();}},{'context':_0x39686a});}['_defineClickHandlers'](){const {editor:_0x5c5e50}=this,{editing:_0x59cdd7}=_0x5c5e50;_0x5c5e50['editing']['view']['addObserver'](_0x4056a3),_0x5c5e50['editing']['view']['addObserver'](_0x2495fa);let _0x388a11=!0x1;this['listenTo'](_0x59cdd7['view']['document'],'pointerdown',(_0x16e4b8,_0x1317bc)=>{const {target:_0x5703ef}=_0x1317bc,_0x1cf910=_0x59cdd7['view']['document']['selection'];_0x388a11=!!(_0x5703ef?.['is']('element','a')&&_0x5703ef['parent']?.['is']('element','sup')&&_0x5703ef['parent']['hasClass']('footnote'))&&_0x1cf910['getSelectedElement']()===_0x5703ef['parent'];},{'priority':'high'}),this['listenTo'](_0x59cdd7['view']['document'],'click',(_0x267592,_0x4d0f11)=>{const {target:_0x1063f6}=_0x4d0f11;if(!_0x1063f6?.['is']('element','a'))return;if(_0x1063f6['parent']?.['is']('element','sup')&&_0x1063f6['parent']['hasClass']('footnote')&&!_0x388a11)return void _0x4d0f11['preventDefault']();let _0x11b1e6=_0x1063f6['getAttribute']('href');if(!_0x11b1e6?.['startsWith']('#'))return;_0x11b1e6=_0x11b1e6['slice'](0x1);let _0x58aae9=!0x1;(_0x11b1e6['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x11b1e6['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x11b1e6))&&(_0x58aae9=!0x0),_0x58aae9&&(_0x4d0f11['preventDefault'](),_0x267592['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x23ea6a}={}){return(_0x4a4674,{writer:_0xf8e424})=>{if(!g(_0x4a4674))return null;if(!_0x23ea6a)return _0xf8e424['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5bafc8=_0xf8e424['createContainerElement']('p');return _0xf8e424['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5bafc8),_0x5bafc8;};}function g(_0x34833e){const {parent:_0x5f30af}=_0x34833e;if(!_0x5f30af?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x5f30af['childCount'])return!0x1;for(const _0xf62171 of _0x34833e['getAttributeKeys']())if(!_0xf62171['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xf62171)return!0x1;return!0x0;}function v(_0x1046ae,_0x323236){if(!_0x1046ae['is']('element','paragraph'))return!0x1;const _0x31f2dd=_0x323236['toViewElement'](_0x1046ae);return!!_0x31f2dd&&g(_0x1046ae)!==_0x31f2dd['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x37298f){return _0x39686a(_0x37298f)&&_0x37298f['is']('containerElement')&&!!_0x37298f['getCustomProperty']('footnotesDefinitions');}function D(_0x388375,_0x1aee5e={}){const _0x33ec88=_0x388375['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x1e57a5=_0x388375['createContainerElement']('ol',{'class':'footnotes-list'},_0x388375['createSlot']());return _0x388375['createContainerElement']('div',{'class':'footnotes',..._0x1aee5e},[_0x33ec88,_0x1e57a5]);}function b(_0x125641,_0x35f687){const _0x4e30ca=_0x125641['getAttribute']('footnoteId'),_0xde2477=_0x125641['getAttribute']('footnoteCounter'),_0x4823ad=_0x35f687['createUIElement']('a',{'href':'#'+_0x4e30ca},function(_0x224089){const _0x4dc123=this['toDomElement'](_0x224089);return _0x4dc123['textContent']=_0xde2477,_0x4dc123;}),_0x53213f=_0x35f687['createContainerElement']('sup',{'id':'ref-'+_0x4e30ca,'class':'footnote'},[_0x4823ad]);return _0x53213f['getFillerOffset']=()=>null,_0x53213f;}function y(_0x1db3a0,_0x213529,_0x2f806d,{dataPipeline:_0x43fde8}={}){const {t:t}=_0x2f806d,_0x4aca1a=_0x1db3a0['getAttribute']('footnoteId'),_0x39ae51=_0x213529['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x4aca1a},function(_0x15bd0e){const _0x8cb68f=this['toDomElement'](_0x15bd0e);return _0x8cb68f['innerText']='^',_0x8cb68f;}),_0x55d8e2=_0x43fde8?_0x213529['createContainerElement']('div',{'class':'footnote-content'}):_0x4cf5fb(_0x213529['createEditableElement']('div',{'class':'footnote-content'}),_0x213529,{'label':t('Footnote\x20content.')});return _0x213529['insert'](_0x213529['createPositionAt'](_0x55d8e2,0x0),_0x213529['createSlot']()),_0x213529['createContainerElement']('li',{'class':'footnote-definition','id':_0x4aca1a},[_0x39ae51,_0x55d8e2]);}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
const
|
|
23
|
+
const _0x13001b=_0x52c7;(function(_0x129f74,_0x507dd5){const _0x1d79d5=_0x52c7,_0x33f460=_0x129f74();while(!![]){try{const _0x391d8d=parseInt(_0x1d79d5(0x175))/0x1*(parseInt(_0x1d79d5(0x174))/0x2)+-parseInt(_0x1d79d5(0x168))/0x3+-parseInt(_0x1d79d5(0x165))/0x4+-parseInt(_0x1d79d5(0x166))/0x5+parseInt(_0x1d79d5(0x172))/0x6+parseInt(_0x1d79d5(0x171))/0x7+parseInt(_0x1d79d5(0x16a))/0x8;if(_0x391d8d===_0x507dd5)break;else _0x33f460['push'](_0x33f460['shift']());}catch(_0x5786da){_0x33f460['push'](_0x33f460['shift']());}}}(_0x4a33,0x8d8ea));import{Command as _0x336119}from'ckeditor5/src/core.js';function _0x52c7(_0x5637fc,_0x269b19){const _0x4a33c0=_0x4a33();return _0x52c7=function(_0x52c799,_0x538944){_0x52c799=_0x52c799-0x161;let _0x126696=_0x4a33c0[_0x52c799];return _0x126696;},_0x52c7(_0x5637fc,_0x269b19);}import{FOOTNOTES_DEFINITIONS_STYLES as _0x3881f2}from'../footnotespropertiesconfig.js';function _0x4a33(){const _0x529277=['4332312mtAfqV','model','getAttribute','getFootnotesDefinitionsObjectElement','includes','_updateFootnotesCounters','get','2502815JXWpQQ','4385832hxDhaK','footnotesListStyle','1764734vewIYK','1NojpiI','refresh','plugins','value','isEnabled','setAttribute','4636800anScsI','823915rzCTOR','execute','1825866MzXdzT','change'];_0x4a33=function(){return _0x529277;};return _0x4a33();}import{FootnotesTracker as _0x61f52f}from'../../footnotestracker.js';export class FootnotesStyleCommand extends _0x336119{[_0x13001b(0x176)](){const _0x51908b=_0x13001b,{editor:_0x271595}=this,_0x2c8401=_0x271595[_0x51908b(0x161)][_0x51908b(0x170)](_0x61f52f)[_0x51908b(0x16d)]();this[_0x51908b(0x163)]=!!_0x2c8401,this[_0x51908b(0x162)]=_0x2c8401?.[_0x51908b(0x16c)](_0x51908b(0x173))??null;}[_0x13001b(0x167)]({value:_0x56b467}){const _0x238417=_0x13001b,{editor:_0x54f1ee}=this,_0x34e10a=_0x54f1ee[_0x238417(0x161)][_0x238417(0x170)](_0x61f52f),_0x4eff9d=_0x34e10a[_0x238417(0x16d)]();_0x4eff9d&&_0x3881f2[_0x238417(0x16e)](_0x56b467)&&_0x54f1ee[_0x238417(0x16b)][_0x238417(0x169)](_0x29aa3b=>{const _0x1c8c65=_0x238417;_0x29aa3b[_0x1c8c65(0x164)](_0x1c8c65(0x173),_0x56b467,_0x4eff9d),_0x34e10a[_0x1c8c65(0x16f)](_0x29aa3b);});}}
|
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{ButtonView as
|
|
23
|
+
import{ButtonView as _0x3b7ab6,View as _0xb0557a,ViewCollection as _0x237fa2,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot}from'ckeditor5/src/ui.js';import{FocusTracker as rt,KeystrokeHandler as nt,global as at}from'ckeditor5/src/utils.js';export class FootnotesDefinitionsPropertiesView extends _0xb0557a{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x237fa2();['focusCycler'];constructor(_0x32ebdc,{styleButtonViews:_0x5852d0,styleGridAriaLabel:_0x4b245b}){super(_0x32ebdc),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x5852d0,_0x4b245b),[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 _0x57f928 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x57f928['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x51fb3e=_0x59e25f=>_0x59e25f['stopPropagation']();this['keystrokes']['set']('arrowright',_0x51fb3e),this['keystrokes']['set']('arrowleft',_0x51fb3e),this['keystrokes']['set']('arrowup',_0x51fb3e),this['keystrokes']['set']('arrowdown',_0x51fb3e);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x32d2aa,_0x5e1434){const _0x69950d=new _0xb0557a(this['locale']);return _0x69950d['children']=_0x69950d['createCollection'](),_0x69950d['children']['addMany'](_0x32d2aa),_0x69950d['setTemplate']({'tag':'div','attributes':{'aria-label':_0x5e1434,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x69950d['children']}),_0x69950d['children']['delegate']('execute')['to'](this),_0x69950d['focus']=function(){for(const _0x31641a of this['children'])if(_0x31641a instanceof _0x3b7ab6&&_0x31641a['isOn'])return void _0x31641a['focus']();this['children']['first']['focus']();},_0x69950d['focusTracker']=new rt(),_0x69950d['keystrokes']=new nt(),_0x69950d['render'](),_0x69950d['keystrokes']['listenTo'](_0x69950d['element']),this['children']['add'](_0x69950d),_0x69950d;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x31cd65=this['_createStartIndexPropertyView'](),_0x365c21=[_0x31cd65],_0x3f63cb=new it(this['locale'],_0x365c21);return _0x3f63cb['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x3f63cb['buttonView']['bind']('isEnabled')['toMany'](_0x365c21,'isEnabled',(..._0x249367)=>_0x249367['some'](_0x110365=>_0x110365)),_0x3f63cb['buttonView']['on']('change:isEnabled',(_0x1ba7b4,_0x27db50,_0x72c134)=>{_0x72c134||(_0x3f63cb['isCollapsed']=!0x0);}),this['children']['add'](_0x3f63cb),[_0x31cd65,_0x3f63cb];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x252508=new et(this['locale'],ot);return _0x252508['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x252508['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x252508['fieldView']['on']('input',()=>{const _0x178226=_0x252508['fieldView']['element'],_0x34c288=_0x178226['valueAsNumber'];Number['isNaN'](_0x34c288)?_0x252508['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x178226['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x34c288}):_0x252508['errorText']=t(_0x34c288<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x252508;}}
|