@ckeditor/ckeditor5-footnotes 47.7.0-alpha.2 → 47.7.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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/footnotesediting.js +1 -1
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:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>G,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=174]})(t,e)}const a=r;function c(){const t=["reset","root","1001979lTKmPW","_model","delete","_trackedElements","push","length","$text","265368Icbdwz","clear","4224SRXCTH","8VqUBzI","type","$graveyard","values","remove","getElementKey","_getElementKey","attributes","4MVIXbL","40DQAbAR","5050GzFJwq","217LPlWaS","6853hZjogN","_elementName","element","name","has","from","createRangeOn","slice","nodeAfter","3104VTQyeC","add","insert","getChanges","177720pagEak","get","rootName","elementName","set","position","3818844UUSSVH","getItems","flat"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(208415===parseInt(e(193))/1*(parseInt(e(214))/2)+parseInt(e(218))/3*(-parseInt(e(201))/4)+-parseInt(e(202))/5*(-parseInt(e(190))/6)+-parseInt(e(204))/7*(-parseInt(e(192))/8)+-parseInt(e(183))/9+parseInt(e(203))/10*(parseInt(e(205))/11)+-parseInt(e(178))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(184)];[a(206)];[a(199)];[a(186)]=new Map;constructor(t,e){const o=a;this[o(184)]=t,this[o(206)]=e[o(175)],this[o(199)]=e[o(198)]}[a(181)](){const t=a;this[t(186)][t(191)]()}[a(217)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(216)===i[e(194)]&&e(189)!==i[e(208)]&&i[e(177)][e(213)]){const t=this[e(184)][e(211)](i[e(177)][e(213)]);for(const o of t[e(179)]()){if(!o.is(e(207),this[e(206)]))continue;const t=this[e(199)](o);n[e(209)](t)||n[e(176)](t,[]),n[e(219)](t)[e(187)](o)}}if(e(197)===i[e(194)]&&i[e(208)]===this[e(206)]){const t=this[e(199)]({getAttribute:t=>i[e(200)][e(219)](t)});o[e(215)](t)}}for(const[t,n]of this[e(186)])e(195)===n[e(182)][e(174)]&&o[e(215)](t);for(const t of o)this[e(186)][e(185)](t);for(const[t,o]of n)this[e(186)][e(176)](t,o[o[e(188)]-1]);const i=new Set;for(const[t,s]of n)o[e(209)](t)&&(i[e(215)](s[0]),s[e(188)]>1?n[e(176)](t,s[e(212)](1)):n[e(185)](t),o[e(185)](t));return{removed:Array[e(210)](o),inserted:Array[e(210)](n[e(196)]())[e(180)](),moved:Array[e(210)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=237]})(t,e)}function d(){const t=["$graveyard","12YjbISV","_handleInsertedFootnoteReference","createPositionBefore","_sortFootnoteDefinitions","length","childCount","listenTo","document","_footnoteFormatter","footnotesDefinitions","differ","_handleFootnotesDefinitionsObjectSync","createElement","_handleFootnotesDefinitionsObjectChanges","registerPostFixer","map","getRootNames","createRangeIn","_footnotes","createRangeOn","parent","isPremiumPlugin","isOfficialPlugin","splice","footnoteId","push","_handleMovedFootnoteReference","editor","get","280dQrmKc","some","footnoteCounter","config","footnoteInlineContent","1137494JMMTLl","getAttribute","getChanges","change:data","_updateFootnoteRefCounter","_updateFootnotesCounters","paragraph","_footnoteDefsTracker","setFootnoteFormatter","pluginName","definition","remove","_ensureFootnotesDefinitionsContainerExists","unshift","root","find","add","isEqual","createPositionAt","27396JGHtGP","has","low","reference","set","getFootnotesFormatter","_insertEmptyFootnotesDefinitionsContainer","reset","_footnoteDefsContainerTracker","28lOtgIs","4650162bGNpzT","findIndex","12692240ocfeBq","25190lcdmWE","317004GGiyan","setAttribute","_handleFootnoteReferencesChanges","model","compareWith","_handleFootnoteDefinitionsChanges","move","getFootnotesDefinitionsObjectElement","1910655HQynFS","_ensureFootnotesReferencesHaveProperOrder","footnotes.multiBlock","getFootnotes","getFootnote","_footnoteRefsTracker","singleton","after","120915QsPZXA","from","indexOf","2FqyKbN","before","append","_handleRemoveFootnoteReferenceById","_footnotesDefinitions","FootnotesTracker","getChildren","min","init","end","rootName","insert","high","enqueueChange","footnoteDefinition","footnoteRef"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(806466===parseInt(e(272))/1*(-parseInt(e(324))/2)+-parseInt(e(301))/3+-parseInt(e(238))/4*(parseInt(e(313))/5)+-parseInt(e(305))/6*(-parseInt(e(300))/7)+parseInt(e(267))/8*(parseInt(e(321))/9)+-parseInt(e(303))/10+parseInt(e(304))/11*(parseInt(e(291))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[u(256)]=[];[u(328)]=null;[u(246)]=null;[u(299)];[u(318)];[u(279)];static get[u(281)](){return u(329)}static get[u(260)](){return!0}static get[u(259)](){return!0}constructor(t){const e=u;super(t),this[e(299)]=new l(this[e(265)][e(308)],{elementName:e(247),getElementKey:()=>e(319)}),this[e(318)]=new l(this[e(265)][e(308)],{elementName:e(339),getElementKey:t=>t[e(273)](e(262))}),this[e(279)]=new l(this[e(265)][e(308)],{elementName:e(338),getElementKey:t=>t[e(273)](e(262))})}[u(332)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(245)][t(252)](e=>{const n=t,i=o[n(245)][n(248)][n(274)]();let s=!1;return this[n(251)](e,i)&&(s=!0),this[n(310)](e,i)&&(s=!0),this[n(307)](e,i)&&(s=!0),this[n(314)](e)&&(s=!0),this[n(249)](e)&&(s=!0),this[n(241)](e)&&(s=!0),s}),this[t(244)](o[t(245)],t(275),()=>{const e=t;o[e(337)]({isUndoable:!1},t=>{this[e(284)](t)})},{priority:t(293)}),this[t(244)](n,t(295),()=>{const e=t;this[e(256)]=[],this[e(299)][e(298)](),this[e(318)][e(298)](),this[e(279)][e(298)]()},{priority:t(336)})}[u(312)](){return this[u(328)]}[u(317)](t){const e=u;return this[e(256)][e(287)](e=>e.id===t)||null}[u(316)](){const t=u;return Array[t(322)](this[t(256)])}[u(296)](){return this[u(246)]}[u(280)](t){this[u(246)]=t}[u(277)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(256)][o(242)];i++)this[o(276)](t,i)&&(n=!0);return n}[u(297)](t,e){const o=u,n=t[o(250)](o(247),{});return t[o(326)](n,e),this[o(328)]=n,n}[u(284)](t){const e=u;if(!this[e(256)][e(242)]||this[e(328)])return;const o=this[e(256)][0][e(294)][e(286)],n=this[e(297)](t,o);for(const o of this[e(256)])o[e(282)][e(258)]||t[e(335)](o[e(282)],n,e(333));this[e(277)](t)}[u(251)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(299)][o(274)](e);if(r[o(242)]&&(this[o(328)]=r[0]),i[o(242)])if(i[o(242)]>1||this[o(328)]&&i[o(268)](t=>t!==this[o(328)])){const e=t[o(250)](o(247),{}),s=[];this[o(328)]&&s[o(263)](this[o(328)]),s[o(263)](...i),t[o(335)](e,s[0],o(325));for(const n of s)t[o(311)](t[o(255)](n),t[o(290)](e,o(333))),t[o(283)](n);this[o(328)]=e,this[o(277)](t),n=!0}else this[o(328)]=i[0];if(s[o(242)]&&o(237)===this[o(328)]?.[o(286)][o(334)]){for(const e of this[o(256)])t[o(283)](e[o(294)]),n=!0;this[o(256)]=[],this[o(328)]=null}return n}[u(310)](t,e){const o=u;let n=!1;const i=this[o(265)][o(270)][o(266)](o(315)),{inserted:s,moved:r}=this[o(279)][o(274)](e);for(const e of[...r,...s]){const s=e[o(273)](o(262)),r=this[o(317)](s);r&&(r[o(282)]=e),p(t,i,e)&&(n=!0)}return n}[u(307)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(318)][o(274)](e);for(const e of i)this[o(327)](t,e)&&(n=!0);for(const e of s)this[o(239)](t,e)&&(n=!0);for(const e of r)this[o(264)](t,e)&&(n=!0);return n}[u(249)](t){const e=u;if(!this[e(328)])return!1;let o=!1;if(this[e(328)][e(243)]!==this[e(256)][e(242)]){const n=[];for(const t of this[e(328)][e(330)]()){const i=t[e(273)](e(262));this[e(317)](i)||(n[e(285)](t),o=!0)}for(const o of n)t[e(283)](o)}const n=new Set,i=[];for(const t of this[e(328)][e(330)]()){const s=t[e(273)](e(262));n[e(292)](s)?(i[e(285)](t),o=!0):n[e(288)](s)}for(const o of i)t[e(283)](o);return this[e(328)][e(243)]||(t[e(283)](this[e(328)]),this[e(328)]=null,o=!0),o}[u(239)](t,e){const o=u;if(this[o(256)][o(287)](t=>t[o(294)]===e))return!1;let n=!1;const i=e[o(273)](o(262)),s=this[o(256)][o(302)](t=>t.id===i);-1!==s&&(t[o(283)](this[o(256)][s][o(294)]),this[o(256)][o(261)](s,1),n=!0);let r=this[o(328)]?function(t,e){const n=o;for(const o of t[n(330)]())if(o[n(273)](n(262))===e)return o;return null}(this[o(328)],i):null;r||(r=t[o(250)](o(338),{footnoteId:i}),this[o(328)]&&(t[o(335)](r,this[o(328)],o(333)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(265)][o(308)],this[o(256)],e);this[o(256)][o(261)](c,0,a);let l=c;return-1!==s&&(l=Math[o(331)](c,s)),this[o(277)](t,l)&&(n=!0),n}[u(327)](t,e){const o=u,n=this[o(256)][o(302)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(256)][n];return o(237)!==s[o(282)][o(286)][o(334)]&&(t[o(283)](s[o(282)]),i=!0),this[o(256)][o(261)](n,1),this[o(277)](t,n)&&(i=!0),i}[u(264)](t,e){const o=u,n=e[o(273)](o(262)),i=this[o(256)][o(302)](t=>t.id===n),s=this[o(256)][i];let r=!1;s[o(294)]=e,this[o(256)][o(261)](i,1);const a=m(this[o(265)][o(308)],this[o(256)],e);return this[o(256)][o(261)](a,0,s),this[o(277)](t,Math[o(331)](i,a))&&(r=!0),r}[u(276)](t,e){const o=u;if(!this[o(328)])return!1;const n=this[o(256)][e];let i;return i=this[o(246)]?this[o(246)]({footnote:n,container:this[o(328)],digits:String(this[o(256)][o(242)])[o(242)],value:e+1}):String(e+1),n[o(294)][o(273)](o(269))!=i&&(t[o(306)](o(269),i,n[o(294)]),!0)}[u(241)](t){const e=u;if(!this[e(328)]||this[e(256)][e(242)]<2)return!1;if(function(t,o){const n=e;if(t[n(242)]!==o[n(242)])return!1;for(let e=0;e<t[n(242)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(256)][e(253)](t=>t.id),Array[e(322)](this[e(328)][e(330)]())[e(253)](t=>t[e(273)](e(262)))))return!1;let o=!1;for(let n=0;n<this[e(256)][e(242)];n++){const i=this[e(256)][n],s=t[e(240)](i[e(282)]),r=t[e(290)](this[e(328)],n);s[e(289)](r)||(t[e(311)](t[e(257)](i[e(282)]),r),o=!0)}return o}[u(314)](t){const e=u;if(!this[e(256)][e(242)])return!1;const{model:o}=this[e(265)];let n=!1;for(let i=0;i<this[e(256)][e(242)]-1;i++){const s=this[e(256)][i],r=this[e(256)][i+1],a=o[e(240)](s[e(294)]),c=o[e(240)](r[e(294)]);e(320)===a[e(309)](c)&&(this[e(264)](t,s[e(294)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(243)])return!1;const i=n(e?278:271);return t[n(335)](t[n(250)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(242)])return 0;const i=t[n(240)](o);for(let o=0;o<e[n(242)];o++){const s=e[o],r=t[n(240)](s[n(294)]);if(n(325)===i[n(309)](r))return o}const s=o[n(286)];let r=-1;for(let t=e[n(242)]-1;t>=0;t--)if(e[t][n(294)][n(286)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(245)][n(254)](),c=a[n(323)](s[n(334)]),l=a[c+1];if(l)for(let t=0;t<e[n(242)];t++)if(e[t][n(294)][n(286)][n(334)]===l)return t;return e[n(242)]}function g(t,e){const o=b();return(g=function(t,e){return o[t-=127]})(t,e)}const w=g;!function(t){const e=g,o=t();for(;;)try{if(912168===parseInt(e(154))/1+parseInt(e(143))/2*(-parseInt(e(151))/3)+-parseInt(e(140))/4+parseInt(e(131))/5+-parseInt(e(156))/6+-parseInt(e(132))/7+parseInt(e(158))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[w(135)](){const t=w,e=this[t(145)][t(129)][t(147)][t(148)],o=this[t(155)](e);this[t(134)]=!!o}[w(133)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(147)],r=this[e(155)](s);if(!r)return;const a=o[e(149)][e(153)](e(144)),c=t?.[e(138)]??(0,i.uid)();!function(t){const o=e;return o(128)==typeof t&&t[o(159)]>0&&!/\s/[o(160)](t)&&!/^\d/[o(160)](t)}(c)?(0,i.logWarning)(e(137)):(n[e(161)](t=>{const o=e,i=t[o(152)](o(130),{footnoteId:c});n[o(127)](i,r,null)}),a[e(157)](c))}[w(155)](t){const e=w,{model:o}=this[e(145)],{schema:n}=o,i=t[e(142)]();for(const t of i[e(150)]())if(n[e(139)](t)||n[e(136)](t))return null;const s=i[e(141)];return n[e(146)](s,e(130))?s:null}}function b(){const t=["4222985xJowjy","6693162xWmsbG","execute","isEnabled","refresh","isObject","insert-footnote-command-executed-with-invalid-id","footnoteId","isBlock","2997688kwPdIo","end","getFirstRange","270362MWiUsq","FootnotesEditing","editor","checkChild","document","selection","plugins","getItems","3qAaJMB","createElement","get","962871fckpJy","_getPositionToInsertFootnote","3013008zwdTTX","_moveSelectionToFootnoteDefinition","11581096eOVEib","length","test","change","insertObject","string","model","footnoteRef"];return(b=function(){return t})()}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(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:1776038400;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function D(t,e){const o=A();return(D=function(t,e){return o[t-=323]})(t,e)}function A(){const t=["reduce","getAttribute","create","content","footnoteInlineContent","toView","includes","toData","root","FootnotesClipboard","stringify","835390tJJtJM","change","editor","htmlProcessor","parse","_defineClipboardIntegration","remove","push","setData","getFirstRange","getSelectedBlocks","keys","config","sourceEditorId","selection","editing","5KtLgFL","add","listenTo","pluginName","flatMap","716644dricag","end","getFootnotes","setAttribute","17288apHiwu","init","document","dataTransfer","footnotesDefinitions","outputTransformation","getChildren","drop","insert","footnotes.multiBlock","entries","footnoteRef","8539VzHEXm","string","3014469JXIRDI","2485185nsEKGe","isPremiumPlugin","getFootnotesDefinitionsObjectElement","hasAttribute","_handleCopyFootnotesDefinitions","contentInsertion","data","_insertEmptyFootnotesDefinitionsContainer","getFootnote","clipboardInput","_handlePasteFootnotesDefinitions","method","cloneElement","getData","append","4169202gELdke","length","element","footnoteId","102pQmQIH","2597RIdOEQ","requires","from","createElement","110VoRIZE","toModel","application/ckeditor5-footnotes","get","definition","footnoteDefinition","createRangeIn","getRanges","find","isOfficialPlugin"];return(A=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(446896===-parseInt(e(338))/1*(-parseInt(e(360))/2)+parseInt(e(341))/3+parseInt(e(407))/4*(parseInt(e(402))/5)+-parseInt(e(356))/6+-parseInt(e(361))/7*(parseInt(e(326))/8)+-parseInt(e(340))/9+-parseInt(e(386))/10*(-parseInt(e(365))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[T(405)](){return T(384)}static get[T(362)](){return[I,P.ClipboardPipeline]}static get[T(374)](){return!0}static get[T(342)](){return!0}[T(327)](){this[T(391)]()}[T(391)](){const t=T;this[t(345)](),this[t(351)]()}[T(345)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(368)](P.ClipboardPipeline),s=o[t(368)](h);this[t(404)](i,t(331),(o,i)=>{const r=t,a=V(n[r(371)](i[r(378)]));if(!a[r(357)])return;const c=s[r(324)](),l=a[r(375)]((t,o)=>{const n=r,i=c[n(373)](t=>t.id===o);if(i){const o=e[n(347)][n(380)](i[n(369)],{isClipboardPipeline:!0}),s=e[n(347)][n(389)][n(382)](o);t[i.id]=s}return t},Object[r(377)](null));i[r(329)][r(394)](r(367),JSON[r(385)](l))})}[T(351)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(401)],r=n[t(368)](P.ClipboardPipeline),a=n[t(368)](h),c=e[t(398)][t(368)](t(335));let l=null;this[t(404)](s[t(328)],t(350),(e,o)=>{const n=t,i=o[n(329)][n(354)](n(367));l=i?JSON[n(390)](i):null}),this[t(404)](r,t(346),(n,s)=>{const r=t,u=s[r(399)]===this[r(388)].id;u&&r(333)===s[r(352)]||o[r(387)](t=>{const n=r;let f=a[n(343)]();const d=!!f&&Array[n(363)](o[n(328)][n(400)][n(396)]())[n(381)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(358),e(337)))return!0;return!1}(o[n(371)](s[n(378)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(377)](null);for(const e of i[o(332)]())e.is(o(358),o(370))&&e[o(344)](o(359))&&(s[e[o(376)](o(359))]=t[o(353)](e,!0));return Object[o(397)](s)[o(357)]?s:null}(t,s[n(378)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(371)](e))n.is(o(358),o(330))&&i[o(393)](n);for(const e of i)t[o(392)](e)}(t,s[n(378)]),!l)return;const{selection:h}=o[n(328)],p=h[n(395)]()[n(383)];f&&!d||(f=L(t,s[n(378)]),f||=a[n(348)](t,p));const m=Array[n(363)](h[n(372)]())[n(406)](V),g=function(t,e,o){const s=n,r=Object[s(377)](null);for(const{item:n}of t[s(371)](e))if(n.is(s(358),s(337))){const e=n[s(376)](s(359));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(325)](s(359),r[e],n)}return r}(t,s[n(378)],t=>{const e=n;return!u||!!a[e(349)](t)&&!m[e(381)](t)});for(const[o,i]of Object[n(336)](l)){const s=g[o]||o;let r;if(n(339)!=typeof i)r=i,s!==o&&t[n(325)](n(359),s,r);else{r=t[n(364)](n(370),{footnoteId:s});const o=e[n(347)][n(389)][n(380)](i);let a;if(c)a=e[n(347)][n(366)](o,r);else{a=t[n(364)](n(379));const i=e[n(347)][n(366)](o,a);t[n(334)](i,a)}t[n(355)](a,r)}t[n(334)](r,f,n(323))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(371)](e))if(n.is(o(358),o(330)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(358),e(337))&&o[e(403)](n[e(376)](e(359)));return Array[e(363)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),W=o.n(B),U=o(123),q=o.n(U),z=o(741),H=o.n(z),J=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=q(),Q.insert=W().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=H();K()(J.A,Q);J.A&&J.A.locals&&J.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var $=Y;function Y(t,e){var o=Z();return(Y=function(t,e){return o[t-=342]})(t,e)}function Z(){var t=["isOfficialPlugin","5441139ZibBSv","9195RshQCq","8yVsbhK","3764048wksUMN","Footnotes","3471650ayKdhu","pluginName","requires","1200234RdTpyX","464127lGIiqU","421631LtrWxD","isPremiumPlugin","60UnUeWt"];return(Z=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(582906===parseInt(e(345))/1+-parseInt(e(351))/2*(-parseInt(e(344))/3)+-parseInt(e(347))/4*(parseInt(e(350))/5)+parseInt(e(343))/6+-parseInt(e(354))/7+parseInt(e(352))/8+-parseInt(e(349))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class tt extends t.Plugin{static get[$(355)](){return $(353)}static get[$(342)](){return[I,_,G]}static get[$(348)](){return!0}static get[$(346)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(749226===-parseInt(e(199))/1+parseInt(e(204))/2+-parseInt(e(206))/3+parseInt(e(202))/4*(-parseInt(e(197))/5)+-parseInt(e(203))/6*(-parseInt(e(195))/7)+-parseInt(e(191))/8+parseInt(e(196))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(193),et(200),et(194),et(205),et(190),et(201),et(192),et(198)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=190]})(t,e)}function it(){const t=["lower-roman","decimal","lower-latin","777WxxfYU","11093688clDTIS","87475oovfTj","upper-roman","429191FBqkXk","decimal-leading-zero","upper-alpha","8KYkjLe","50586NOUbFx","2903056SXDaJB","upper-latin","2798784EBpunD","lower-alpha","11789328uQvcuJ"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=112]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(555752===parseInt(e(116))/1+parseInt(e(121))/2+-parseInt(e(130))/3*(parseInt(e(127))/4)+-parseInt(e(126))/5*(-parseInt(e(122))/6)+-parseInt(e(132))/7+-parseInt(e(124))/8+parseInt(e(120))/9*(-parseInt(e(128))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(113)](){const t=st,{editor:e}=this,o=e[t(135)][t(112)](h)[t(117)]();this[t(131)]=!!o,this[t(134)]=o?.[t(129)](t(119))??null}[st(133)]({value:t}){const e=st,{editor:o}=this,n=o[e(135)][e(112)](h),i=n[e(117)]();i&&ot[e(125)](t)&&o[e(123)][e(114)](o=>{const s=e;o[s(115)](s(119),t,i),n[s(118)](o)})}}function ct(){const t=["1851864BnXFaQ","execute","value","plugins","get","refresh","change","setAttribute","656248lMOFkd","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","footnotesListStyle","25101wxBmsV","881030QUALhP","4138734hsBWUO","model","1320712cpIxeW","includes","5jWDgUv","63124iTqsDB","100McknJg","getAttribute","147eBkJuT","isEnabled"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=174]})(t,e)}function ft(){const t=["1QyHzLL","100GkhHPe","4002471cfGaMf","getFootnotesDefinitionsObjectElement","value","isEnabled","_updateFootnotesCounters","11138679EeNTcx","footnotesListStart","change","setAttribute","execute","plugins","model","1143394TIECrT","get","1428724PvLJwf","refresh","10lFldQN","getAttribute","5274ehmqBH","isInteger","1444000lBRRFD","597179MIyybc","917OKdNsG"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(677488===parseInt(e(187))/1*(-parseInt(e(176))/2)+parseInt(e(189))/3+-parseInt(e(178))/4*(parseInt(e(180))/5)+-parseInt(e(182))/6*(-parseInt(e(186))/7)+-parseInt(e(184))/8+parseInt(e(194))/9+parseInt(e(188))/10*(-parseInt(e(185))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(179)](){const t=lt,{editor:e}=this,o=e[t(174)][t(177)](h)[t(190)]();this[t(192)]=!!o,this[t(191)]=o?.[t(181)](t(195))??null}[lt(198)]({value:t}){const e=lt,{editor:o}=this,n=o[e(174)][e(177)](h),i=n[e(190)]();i&&Number[e(183)](t)&&o[e(175)][e(196)](o=>{const s=e;o[s(197)](s(195),t,i),n[s(193)](o)})}}const ht=bt;function pt(){const t=["schema","max","_getDefaultStartIndex","lower-alpha","9060858PSMWqu","insert","footnotesListStyle","type","consume","removeAttribute","decimal","from","consumable","_updateFootnotesCounters","attribute:footnotesListStart:footnotesDefinitions","element","isNaN","4765aDKQSu","for","645272zMOLWq","upcast","517130VYYswS","position","_formatFootnoteListValue","1208231vKxnOo","hasAttribute","removeStyle","isOfficialPlugin","2365FqtYXv","hasClass","getChanges","name","footnotes-list","upper-latin","toUpperCase","_definePostfixer","editor","getItems","pluginName","_defineFormatter","setAttribute","parent","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStart","getChildren","registerPostFixer","setFootnoteFormatter","item","footnotesStyle","find","154imSfJY","mapper","differ","$text","toLowerCase","downcast","isPremiumPlugin","lower-latin","footnotesDefinitions","modelCursor","viewItem","padStart","decimal-leading-zero","list-style-type","_getDefaultListStyle","getStyle","footnotes.footnotesProperties.defaultStartIndex","writer","define","18aaPPDj","add","get","plugins","_defineConverters","5286VBHAlV","init","fromCharCode","3528648RWxCub","nodeAfter","commands","footnotes.footnotesProperties.defaultListStyle","config","checkAttribute","parseInt","start","toViewElement","_defineSchema","upper-alpha","document","36230KpNHhD","upper-roman","getAttribute","createRangeOn","lower-roman","extend","requires","FootnotesPropertiesEditing","model","setStyle","footnotesStart","floor","element:ol"];return(pt=function(){return t})()}!function(t){const e=bt,o=t();for(;;)try{if(964449===-parseInt(e(170))/1+parseInt(e(167))/2*(-parseInt(e(215))/3)+parseInt(e(223))/4+parseInt(e(163))/5*(parseInt(e(220))/6)+parseInt(e(196))/7*(parseInt(e(165))/8)+parseInt(e(150))/9+parseInt(e(133))/10*(-parseInt(e(174))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(184)](){return ht(140)}static get[ht(139)](){return[I,h]}static get[ht(173)](){return!0}static get[ht(202)](){return!0}[ht(221)](){const t=ht,{editor:e}=this;e[t(227)][t(214)](t(226),t(156)),e[t(227)][t(214)](t(212),1),e[t(225)][t(216)](t(194),new at(e)),e[t(225)][t(216)](t(143),new dt(e)),this[t(130)](),this[t(219)](),this[t(185)](),this[t(181)]()}[ht(130)](){const t=ht,{editor:e}=this,{schema:o}=e[t(141)];o[t(138)](t(204),{allowAttributes:[t(152),t(189)]})}[ht(219)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(164)](t(166))[t(216)](e=>{const o=t;e.on(o(145),(t,e,n)=>{const s=o,r=e[s(206)],a=e[s(205)]?.[s(187)];r[s(175)](s(178))&&a?.is(s(161),s(204))&&(function(t,e,o,n){const i=s;if(!n[i(228)](e,i(189)))return;let r=1;const a=o[i(158)][i(154)](t,{attributes:i(128)});if(a){const e=Number[i(229)](t[i(135)](i(128)),10);Number[i(162)](e)||(r=e)}!a&&e[i(171)](i(189))||o[i(213)][i(186)](i(189),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(228)](e,i(152)))return;let r=i(156),a=!1;if(o[i(158)][i(154)](t,{attributes:i(153)})){const e={1:i(156),a:i(149),A:i(131),i:i(137),I:i(134)}[t[i(135)](i(153))];e&&(r=e),a=!0}o[i(158)][i(154)](t,{styles:i(209)})&&(r=function(t){const e=i;switch(t){case e(149):return e(203);case e(131):return e(179);default:return t}}(t[i(211)](i(209))),a=!0),!a&&e[i(171)](i(152))||o[i(213)][i(186)](i(152),r,e)}(r,a,n,i))})}),o[t(164)](t(201))[t(216)](e=>{const o=t;e.on(o(160),(t,e,n)=>{const i=o;if(!n[i(158)][i(154)](e[i(193)],t[i(177)]))return;const s=gt(e[i(193)],n[i(197)]),{attributeNewValue:r}=e;null==r||1===r?n[i(213)][i(155)](i(128),s):n[i(213)][i(186)](i(128),String(r),s)}),e.on(o(188),(t,e,n)=>{const i=o;if(!n[i(158)][i(154)](e[i(193)],t[i(177)]))return;const s=gt(e[i(193)],n[i(197)]),{attributeNewValue:r}=e;r&&i(156)!==r?n[i(213)][i(142)](i(209),r,s):n[i(213)][i(172)](i(209),s)})})}[ht(181)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(218)][t(217)](h),i=this[t(210)](),s=this[t(148)]();o[t(132)][t(191)](e=>{const r=t,a=o[r(132)][r(198)][r(176)]();let c=!1;for(const t of a){if(r(151)!==t[r(153)]||r(199)===t[r(177)])continue;const n=o[r(136)](t[r(168)][r(224)]);for(const t of n[r(183)]())t.is(r(161),r(204))&&(!t[r(171)](r(189))&&o[r(146)][r(228)](t,r(189))&&(e[r(186)](r(189),s,t),c=!0),!t[r(171)](r(152))&&o[r(146)][r(228)](t,r(152))&&(e[r(186)](r(152),i,t),c=!0))}return c&&n[r(159)](e),c})}[ht(185)](){const t=ht,{editor:e}=this;e[t(218)][t(217)](h)[t(192)](e=>this[t(169)](e))}[ht(210)](){const t=ht;return this[t(182)][t(227)][t(217)](t(226))}[ht(148)](){const t=ht;return this[t(182)][t(227)][t(217)](t(212))}[ht(169)]({container:t,value:e,digits:o}){const n=ht,i=t[n(135)](n(152)),s=t[n(135)](n(189)),r=Math[n(144)](e)+(s??1)-1;switch(i){case n(208):return function(t,e){const o=n;return String(t)[o(207)](e,"0")}(r,Math[n(147)](2,o));case n(149):case n(203):return wt(r,!1);case n(131):case n(179):return wt(r,!0);case n(137):return It(r,!1);case n(134):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(129)](t);return Array[o(157)](n[o(190)]())[o(195)](t=>t.is(o(161),"ol")&&t[o(175)](o(178)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(222)](97+t)+n,i=Math[o(144)]((i-1)/26)}return e?n[o(180)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=pt();return(bt=function(t,e){return o[t-=128]})(t,e)}function It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(200)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=q(),Ct.insert=W().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=401]})(t,e)}function St(){var t=["isPremiumPlugin","FootnotesProperties","2234810qDLvgg","615465vLQomt","pluginName","2641pFHdUd","605416WBSyyh","20645350kKmCkA","309365YnPdee","4dijsEH","42CscUfT","122aQeNGJ","2224315WqdKux","requires","63vtIqSZ","isOfficialPlugin"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(325348===-parseInt(e(415))/1*(-parseInt(e(405))/2)+-parseInt(e(413))/3+-parseInt(e(403))/4*(parseInt(e(406))/5)+-parseInt(e(404))/6*(parseInt(e(402))/7)+parseInt(e(416))/8*(-parseInt(e(408))/9)+-parseInt(e(412))/10+parseInt(e(401))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(414)](){return xt(411)}static get[xt(407)](){return[mt,Ft]}static get[xt(409)](){return!0}static get[xt(410)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=206]})(t,e)}function Dt(){var t=["9mAjDIz","257390cjWWoy","408584NMNJlw","1069408hczqDY","2862dtFdwm","156078EFHSSl","30wQjYfG","279687vMqqIs","8620IRlPCp","182762sbzvRh"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(140555===parseInt(e(211))/1+parseInt(e(213))/2*(-parseInt(e(214))/3)+parseInt(e(207))/4+parseInt(e(210))/5*(parseInt(e(209))/6)+parseInt(e(215))/7+-parseInt(e(206))/8+-parseInt(e(208))/9*(parseInt(e(212))/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:()=>I,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>G,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=174]})(t,e)}const a=r;function c(){const t=["reset","root","1001979lTKmPW","_model","delete","_trackedElements","push","length","$text","265368Icbdwz","clear","4224SRXCTH","8VqUBzI","type","$graveyard","values","remove","getElementKey","_getElementKey","attributes","4MVIXbL","40DQAbAR","5050GzFJwq","217LPlWaS","6853hZjogN","_elementName","element","name","has","from","createRangeOn","slice","nodeAfter","3104VTQyeC","add","insert","getChanges","177720pagEak","get","rootName","elementName","set","position","3818844UUSSVH","getItems","flat"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(208415===parseInt(e(193))/1*(parseInt(e(214))/2)+parseInt(e(218))/3*(-parseInt(e(201))/4)+-parseInt(e(202))/5*(-parseInt(e(190))/6)+-parseInt(e(204))/7*(-parseInt(e(192))/8)+-parseInt(e(183))/9+parseInt(e(203))/10*(parseInt(e(205))/11)+-parseInt(e(178))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(184)];[a(206)];[a(199)];[a(186)]=new Map;constructor(t,e){const o=a;this[o(184)]=t,this[o(206)]=e[o(175)],this[o(199)]=e[o(198)]}[a(181)](){const t=a;this[t(186)][t(191)]()}[a(217)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(216)===i[e(194)]&&e(189)!==i[e(208)]&&i[e(177)][e(213)]){const t=this[e(184)][e(211)](i[e(177)][e(213)]);for(const o of t[e(179)]()){if(!o.is(e(207),this[e(206)]))continue;const t=this[e(199)](o);n[e(209)](t)||n[e(176)](t,[]),n[e(219)](t)[e(187)](o)}}if(e(197)===i[e(194)]&&i[e(208)]===this[e(206)]){const t=this[e(199)]({getAttribute:t=>i[e(200)][e(219)](t)});o[e(215)](t)}}for(const[t,n]of this[e(186)])e(195)===n[e(182)][e(174)]&&o[e(215)](t);for(const t of o)this[e(186)][e(185)](t);for(const[t,o]of n)this[e(186)][e(176)](t,o[o[e(188)]-1]);const i=new Set;for(const[t,s]of n)o[e(209)](t)&&(i[e(215)](s[0]),s[e(188)]>1?n[e(176)](t,s[e(212)](1)):n[e(185)](t),o[e(185)](t));return{removed:Array[e(210)](o),inserted:Array[e(210)](n[e(196)]())[e(180)](),moved:Array[e(210)](i)}}}const u=f;function f(t,e){const o=d();return(f=function(t,e){return o[t-=237]})(t,e)}function d(){const t=["$graveyard","12YjbISV","_handleInsertedFootnoteReference","createPositionBefore","_sortFootnoteDefinitions","length","childCount","listenTo","document","_footnoteFormatter","footnotesDefinitions","differ","_handleFootnotesDefinitionsObjectSync","createElement","_handleFootnotesDefinitionsObjectChanges","registerPostFixer","map","getRootNames","createRangeIn","_footnotes","createRangeOn","parent","isPremiumPlugin","isOfficialPlugin","splice","footnoteId","push","_handleMovedFootnoteReference","editor","get","280dQrmKc","some","footnoteCounter","config","footnoteInlineContent","1137494JMMTLl","getAttribute","getChanges","change:data","_updateFootnoteRefCounter","_updateFootnotesCounters","paragraph","_footnoteDefsTracker","setFootnoteFormatter","pluginName","definition","remove","_ensureFootnotesDefinitionsContainerExists","unshift","root","find","add","isEqual","createPositionAt","27396JGHtGP","has","low","reference","set","getFootnotesFormatter","_insertEmptyFootnotesDefinitionsContainer","reset","_footnoteDefsContainerTracker","28lOtgIs","4650162bGNpzT","findIndex","12692240ocfeBq","25190lcdmWE","317004GGiyan","setAttribute","_handleFootnoteReferencesChanges","model","compareWith","_handleFootnoteDefinitionsChanges","move","getFootnotesDefinitionsObjectElement","1910655HQynFS","_ensureFootnotesReferencesHaveProperOrder","footnotes.multiBlock","getFootnotes","getFootnote","_footnoteRefsTracker","singleton","after","120915QsPZXA","from","indexOf","2FqyKbN","before","append","_handleRemoveFootnoteReferenceById","_footnotesDefinitions","FootnotesTracker","getChildren","min","init","end","rootName","insert","high","enqueueChange","footnoteDefinition","footnoteRef"];return(d=function(){return t})()}!function(t){const e=f,o=t();for(;;)try{if(806466===parseInt(e(272))/1*(-parseInt(e(324))/2)+-parseInt(e(301))/3+-parseInt(e(238))/4*(parseInt(e(313))/5)+-parseInt(e(305))/6*(-parseInt(e(300))/7)+parseInt(e(267))/8*(parseInt(e(321))/9)+-parseInt(e(303))/10+parseInt(e(304))/11*(parseInt(e(291))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[u(256)]=[];[u(328)]=null;[u(246)]=null;[u(299)];[u(318)];[u(279)];static get[u(281)](){return u(329)}static get[u(260)](){return!0}static get[u(259)](){return!0}constructor(t){const e=u;super(t),this[e(299)]=new l(this[e(265)][e(308)],{elementName:e(247),getElementKey:()=>e(319)}),this[e(318)]=new l(this[e(265)][e(308)],{elementName:e(339),getElementKey:t=>t[e(273)](e(262))}),this[e(279)]=new l(this[e(265)][e(308)],{elementName:e(338),getElementKey:t=>t[e(273)](e(262))})}[u(332)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(245)][t(252)](e=>{const n=t,i=o[n(245)][n(248)][n(274)]();let s=!1;return this[n(251)](e,i)&&(s=!0),this[n(310)](e,i)&&(s=!0),this[n(307)](e,i)&&(s=!0),this[n(314)](e)&&(s=!0),this[n(249)](e)&&(s=!0),this[n(241)](e)&&(s=!0),s}),this[t(244)](o[t(245)],t(275),()=>{const e=t;o[e(337)]({isUndoable:!1},t=>{this[e(284)](t)})},{priority:t(293)}),this[t(244)](n,t(295),()=>{const e=t;this[e(256)]=[],this[e(299)][e(298)](),this[e(318)][e(298)](),this[e(279)][e(298)]()},{priority:t(336)})}[u(312)](){return this[u(328)]}[u(317)](t){const e=u;return this[e(256)][e(287)](e=>e.id===t)||null}[u(316)](){const t=u;return Array[t(322)](this[t(256)])}[u(296)](){return this[u(246)]}[u(280)](t){this[u(246)]=t}[u(277)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(256)][o(242)];i++)this[o(276)](t,i)&&(n=!0);return n}[u(297)](t,e){const o=u,n=t[o(250)](o(247),{});return t[o(326)](n,e),this[o(328)]=n,n}[u(284)](t){const e=u;if(!this[e(256)][e(242)]||this[e(328)])return;const o=this[e(256)][0][e(294)][e(286)],n=this[e(297)](t,o);for(const o of this[e(256)])o[e(282)][e(258)]||t[e(335)](o[e(282)],n,e(333));this[e(277)](t)}[u(251)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(299)][o(274)](e);if(r[o(242)]&&(this[o(328)]=r[0]),i[o(242)])if(i[o(242)]>1||this[o(328)]&&i[o(268)](t=>t!==this[o(328)])){const e=t[o(250)](o(247),{}),s=[];this[o(328)]&&s[o(263)](this[o(328)]),s[o(263)](...i),t[o(335)](e,s[0],o(325));for(const n of s)t[o(311)](t[o(255)](n),t[o(290)](e,o(333))),t[o(283)](n);this[o(328)]=e,this[o(277)](t),n=!0}else this[o(328)]=i[0];if(s[o(242)]&&o(237)===this[o(328)]?.[o(286)][o(334)]){for(const e of this[o(256)])t[o(283)](e[o(294)]),n=!0;this[o(256)]=[],this[o(328)]=null}return n}[u(310)](t,e){const o=u;let n=!1;const i=this[o(265)][o(270)][o(266)](o(315)),{inserted:s,moved:r}=this[o(279)][o(274)](e);for(const e of[...r,...s]){const s=e[o(273)](o(262)),r=this[o(317)](s);r&&(r[o(282)]=e),p(t,i,e)&&(n=!0)}return n}[u(307)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(318)][o(274)](e);for(const e of i)this[o(327)](t,e)&&(n=!0);for(const e of s)this[o(239)](t,e)&&(n=!0);for(const e of r)this[o(264)](t,e)&&(n=!0);return n}[u(249)](t){const e=u;if(!this[e(328)])return!1;let o=!1;if(this[e(328)][e(243)]!==this[e(256)][e(242)]){const n=[];for(const t of this[e(328)][e(330)]()){const i=t[e(273)](e(262));this[e(317)](i)||(n[e(285)](t),o=!0)}for(const o of n)t[e(283)](o)}const n=new Set,i=[];for(const t of this[e(328)][e(330)]()){const s=t[e(273)](e(262));n[e(292)](s)?(i[e(285)](t),o=!0):n[e(288)](s)}for(const o of i)t[e(283)](o);return this[e(328)][e(243)]||(t[e(283)](this[e(328)]),this[e(328)]=null,o=!0),o}[u(239)](t,e){const o=u;if(this[o(256)][o(287)](t=>t[o(294)]===e))return!1;let n=!1;const i=e[o(273)](o(262)),s=this[o(256)][o(302)](t=>t.id===i);-1!==s&&(t[o(283)](this[o(256)][s][o(294)]),this[o(256)][o(261)](s,1),n=!0);let r=this[o(328)]?function(t,e){const n=o;for(const o of t[n(330)]())if(o[n(273)](n(262))===e)return o;return null}(this[o(328)],i):null;r||(r=t[o(250)](o(338),{footnoteId:i}),this[o(328)]&&(t[o(335)](r,this[o(328)],o(333)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(265)][o(308)],this[o(256)],e);this[o(256)][o(261)](c,0,a);let l=c;return-1!==s&&(l=Math[o(331)](c,s)),this[o(277)](t,l)&&(n=!0),n}[u(327)](t,e){const o=u,n=this[o(256)][o(302)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(256)][n];return o(237)!==s[o(282)][o(286)][o(334)]&&(t[o(283)](s[o(282)]),i=!0),this[o(256)][o(261)](n,1),this[o(277)](t,n)&&(i=!0),i}[u(264)](t,e){const o=u,n=e[o(273)](o(262)),i=this[o(256)][o(302)](t=>t.id===n),s=this[o(256)][i];let r=!1;s[o(294)]=e,this[o(256)][o(261)](i,1);const a=m(this[o(265)][o(308)],this[o(256)],e);return this[o(256)][o(261)](a,0,s),this[o(277)](t,Math[o(331)](i,a))&&(r=!0),r}[u(276)](t,e){const o=u;if(!this[o(328)])return!1;const n=this[o(256)][e];let i;return i=this[o(246)]?this[o(246)]({footnote:n,container:this[o(328)],digits:String(this[o(256)][o(242)])[o(242)],value:e+1}):String(e+1),n[o(294)][o(273)](o(269))!=i&&(t[o(306)](o(269),i,n[o(294)]),!0)}[u(241)](t){const e=u;if(!this[e(328)]||this[e(256)][e(242)]<2)return!1;if(function(t,o){const n=e;if(t[n(242)]!==o[n(242)])return!1;for(let e=0;e<t[n(242)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(256)][e(253)](t=>t.id),Array[e(322)](this[e(328)][e(330)]())[e(253)](t=>t[e(273)](e(262)))))return!1;let o=!1;for(let n=0;n<this[e(256)][e(242)];n++){const i=this[e(256)][n],s=t[e(240)](i[e(282)]),r=t[e(290)](this[e(328)],n);s[e(289)](r)||(t[e(311)](t[e(257)](i[e(282)]),r),o=!0)}return o}[u(314)](t){const e=u;if(!this[e(256)][e(242)])return!1;const{model:o}=this[e(265)];let n=!1;for(let i=0;i<this[e(256)][e(242)]-1;i++){const s=this[e(256)][i],r=this[e(256)][i+1],a=o[e(240)](s[e(294)]),c=o[e(240)](r[e(294)]);e(320)===a[e(309)](c)&&(this[e(264)](t,s[e(294)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(243)])return!1;const i=n(e?278:271);return t[n(335)](t[n(250)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(242)])return 0;const i=t[n(240)](o);for(let o=0;o<e[n(242)];o++){const s=e[o],r=t[n(240)](s[n(294)]);if(n(325)===i[n(309)](r))return o}const s=o[n(286)];let r=-1;for(let t=e[n(242)]-1;t>=0;t--)if(e[t][n(294)][n(286)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(245)][n(254)](),c=a[n(323)](s[n(334)]),l=a[c+1];if(l)for(let t=0;t<e[n(242)];t++)if(e[t][n(294)][n(286)][n(334)]===l)return t;return e[n(242)]}function g(t,e){const o=b();return(g=function(t,e){return o[t-=127]})(t,e)}const w=g;!function(t){const e=g,o=t();for(;;)try{if(912168===parseInt(e(154))/1+parseInt(e(143))/2*(-parseInt(e(151))/3)+-parseInt(e(140))/4+parseInt(e(131))/5+-parseInt(e(156))/6+-parseInt(e(132))/7+parseInt(e(158))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[w(135)](){const t=w,e=this[t(145)][t(129)][t(147)][t(148)],o=this[t(155)](e);this[t(134)]=!!o}[w(133)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(147)],r=this[e(155)](s);if(!r)return;const a=o[e(149)][e(153)](e(144)),c=t?.[e(138)]??(0,i.uid)();!function(t){const o=e;return o(128)==typeof t&&t[o(159)]>0&&!/\s/[o(160)](t)&&!/^\d/[o(160)](t)}(c)?(0,i.logWarning)(e(137)):(n[e(161)](t=>{const o=e,i=t[o(152)](o(130),{footnoteId:c});n[o(127)](i,r,null)}),a[e(157)](c))}[w(155)](t){const e=w,{model:o}=this[e(145)],{schema:n}=o,i=t[e(142)]();for(const t of i[e(150)]())if(n[e(139)](t)||n[e(136)](t))return null;const s=i[e(141)];return n[e(146)](s,e(130))?s:null}}function b(){const t=["4222985xJowjy","6693162xWmsbG","execute","isEnabled","refresh","isObject","insert-footnote-command-executed-with-invalid-id","footnoteId","isBlock","2997688kwPdIo","end","getFirstRange","270362MWiUsq","FootnotesEditing","editor","checkChild","document","selection","plugins","getItems","3qAaJMB","createElement","get","962871fckpJy","_getPositionToInsertFootnote","3013008zwdTTX","_moveSelectionToFootnoteDefinition","11581096eOVEib","length","test","change","insertObject","string","model","footnoteRef"];return(b=function(){return t})()}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new y(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:1776124800;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=D;function D(t,e){const o=A();return(D=function(t,e){return o[t-=323]})(t,e)}function A(){const t=["reduce","getAttribute","create","content","footnoteInlineContent","toView","includes","toData","root","FootnotesClipboard","stringify","835390tJJtJM","change","editor","htmlProcessor","parse","_defineClipboardIntegration","remove","push","setData","getFirstRange","getSelectedBlocks","keys","config","sourceEditorId","selection","editing","5KtLgFL","add","listenTo","pluginName","flatMap","716644dricag","end","getFootnotes","setAttribute","17288apHiwu","init","document","dataTransfer","footnotesDefinitions","outputTransformation","getChildren","drop","insert","footnotes.multiBlock","entries","footnoteRef","8539VzHEXm","string","3014469JXIRDI","2485185nsEKGe","isPremiumPlugin","getFootnotesDefinitionsObjectElement","hasAttribute","_handleCopyFootnotesDefinitions","contentInsertion","data","_insertEmptyFootnotesDefinitionsContainer","getFootnote","clipboardInput","_handlePasteFootnotesDefinitions","method","cloneElement","getData","append","4169202gELdke","length","element","footnoteId","102pQmQIH","2597RIdOEQ","requires","from","createElement","110VoRIZE","toModel","application/ckeditor5-footnotes","get","definition","footnoteDefinition","createRangeIn","getRanges","find","isOfficialPlugin"];return(A=function(){return t})()}!function(t){const e=D,o=t();for(;;)try{if(446896===-parseInt(e(338))/1*(-parseInt(e(360))/2)+parseInt(e(341))/3+parseInt(e(407))/4*(parseInt(e(402))/5)+-parseInt(e(356))/6+-parseInt(e(361))/7*(parseInt(e(326))/8)+-parseInt(e(340))/9+-parseInt(e(386))/10*(-parseInt(e(365))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class _ extends t.Plugin{static get[T(405)](){return T(384)}static get[T(362)](){return[I,P.ClipboardPipeline]}static get[T(374)](){return!0}static get[T(342)](){return!0}[T(327)](){this[T(391)]()}[T(391)](){const t=T;this[t(345)](),this[t(351)]()}[T(345)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(368)](P.ClipboardPipeline),s=o[t(368)](h);this[t(404)](i,t(331),(o,i)=>{const r=t,a=V(n[r(371)](i[r(378)]));if(!a[r(357)])return;const c=s[r(324)](),l=a[r(375)]((t,o)=>{const n=r,i=c[n(373)](t=>t.id===o);if(i){const o=e[n(347)][n(380)](i[n(369)],{isClipboardPipeline:!0}),s=e[n(347)][n(389)][n(382)](o);t[i.id]=s}return t},Object[r(377)](null));i[r(329)][r(394)](r(367),JSON[r(385)](l))})}[T(351)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(401)],r=n[t(368)](P.ClipboardPipeline),a=n[t(368)](h),c=e[t(398)][t(368)](t(335));let l=null;this[t(404)](s[t(328)],t(350),(e,o)=>{const n=t,i=o[n(329)][n(354)](n(367));l=i?JSON[n(390)](i):null}),this[t(404)](r,t(346),(n,s)=>{const r=t,u=s[r(399)]===this[r(388)].id;u&&r(333)===s[r(352)]||o[r(387)](t=>{const n=r;let f=a[n(343)]();const d=!!f&&Array[n(363)](o[n(328)][n(400)][n(396)]())[n(381)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(358),e(337)))return!0;return!1}(o[n(371)](s[n(378)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(377)](null);for(const e of i[o(332)]())e.is(o(358),o(370))&&e[o(344)](o(359))&&(s[e[o(376)](o(359))]=t[o(353)](e,!0));return Object[o(397)](s)[o(357)]?s:null}(t,s[n(378)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(371)](e))n.is(o(358),o(330))&&i[o(393)](n);for(const e of i)t[o(392)](e)}(t,s[n(378)]),!l)return;const{selection:h}=o[n(328)],p=h[n(395)]()[n(383)];f&&!d||(f=L(t,s[n(378)]),f||=a[n(348)](t,p));const m=Array[n(363)](h[n(372)]())[n(406)](V),g=function(t,e,o){const s=n,r=Object[s(377)](null);for(const{item:n}of t[s(371)](e))if(n.is(s(358),s(337))){const e=n[s(376)](s(359));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(325)](s(359),r[e],n)}return r}(t,s[n(378)],t=>{const e=n;return!u||!!a[e(349)](t)&&!m[e(381)](t)});for(const[o,i]of Object[n(336)](l)){const s=g[o]||o;let r;if(n(339)!=typeof i)r=i,s!==o&&t[n(325)](n(359),s,r);else{r=t[n(364)](n(370),{footnoteId:s});const o=e[n(347)][n(389)][n(380)](i);let a;if(c)a=e[n(347)][n(366)](o,r);else{a=t[n(364)](n(379));const i=e[n(347)][n(366)](o,a);t[n(334)](i,a)}t[n(355)](a,r)}t[n(334)](r,f,n(323))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(371)](e))if(n.is(o(358),o(330)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(358),e(337))&&o[e(403)](n[e(376)](e(359)));return Array[e(363)](o)}var N=o(311),O=o(355),R=o(929),K=o.n(R),M=o(297),j=o.n(M),B=o(102),W=o.n(B),U=o(123),q=o.n(U),z=o(741),H=o.n(z),J=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=q(),Q.insert=W().bind(null,"head"),Q.domAPI=j(),Q.insertStyleElement=H();K()(J.A,Q);J.A&&J.A.locals&&J.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,N.ButtonView)),e.add("menuBar:insertFootnote",X(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var $=Y;function Y(t,e){var o=Z();return(Y=function(t,e){return o[t-=342]})(t,e)}function Z(){var t=["isOfficialPlugin","5441139ZibBSv","9195RshQCq","8yVsbhK","3764048wksUMN","Footnotes","3471650ayKdhu","pluginName","requires","1200234RdTpyX","464127lGIiqU","421631LtrWxD","isPremiumPlugin","60UnUeWt"];return(Z=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(582906===parseInt(e(345))/1+-parseInt(e(351))/2*(-parseInt(e(344))/3)+-parseInt(e(347))/4*(parseInt(e(350))/5)+parseInt(e(343))/6+-parseInt(e(354))/7+parseInt(e(352))/8+-parseInt(e(349))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class tt extends t.Plugin{static get[$(355)](){return $(353)}static get[$(342)](){return[I,_,G]}static get[$(348)](){return!0}static get[$(346)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(749226===-parseInt(e(199))/1+parseInt(e(204))/2+-parseInt(e(206))/3+parseInt(e(202))/4*(-parseInt(e(197))/5)+-parseInt(e(203))/6*(-parseInt(e(195))/7)+-parseInt(e(191))/8+parseInt(e(196))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(193),et(200),et(194),et(205),et(190),et(201),et(192),et(198)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=190]})(t,e)}function it(){const t=["lower-roman","decimal","lower-latin","777WxxfYU","11093688clDTIS","87475oovfTj","upper-roman","429191FBqkXk","decimal-leading-zero","upper-alpha","8KYkjLe","50586NOUbFx","2903056SXDaJB","upper-latin","2798784EBpunD","lower-alpha","11789328uQvcuJ"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=ct();return(rt=function(t,e){return o[t-=112]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(555752===parseInt(e(116))/1+parseInt(e(121))/2+-parseInt(e(130))/3*(parseInt(e(127))/4)+-parseInt(e(126))/5*(-parseInt(e(122))/6)+-parseInt(e(132))/7+-parseInt(e(124))/8+parseInt(e(120))/9*(-parseInt(e(128))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class at extends t.Command{[st(113)](){const t=st,{editor:e}=this,o=e[t(135)][t(112)](h)[t(117)]();this[t(131)]=!!o,this[t(134)]=o?.[t(129)](t(119))??null}[st(133)]({value:t}){const e=st,{editor:o}=this,n=o[e(135)][e(112)](h),i=n[e(117)]();i&&ot[e(125)](t)&&o[e(123)][e(114)](o=>{const s=e;o[s(115)](s(119),t,i),n[s(118)](o)})}}function ct(){const t=["1851864BnXFaQ","execute","value","plugins","get","refresh","change","setAttribute","656248lMOFkd","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","footnotesListStyle","25101wxBmsV","881030QUALhP","4138734hsBWUO","model","1320712cpIxeW","includes","5jWDgUv","63124iTqsDB","100McknJg","getAttribute","147eBkJuT","isEnabled"];return(ct=function(){return t})()}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=174]})(t,e)}function ft(){const t=["1QyHzLL","100GkhHPe","4002471cfGaMf","getFootnotesDefinitionsObjectElement","value","isEnabled","_updateFootnotesCounters","11138679EeNTcx","footnotesListStart","change","setAttribute","execute","plugins","model","1143394TIECrT","get","1428724PvLJwf","refresh","10lFldQN","getAttribute","5274ehmqBH","isInteger","1444000lBRRFD","597179MIyybc","917OKdNsG"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(677488===parseInt(e(187))/1*(-parseInt(e(176))/2)+parseInt(e(189))/3+-parseInt(e(178))/4*(parseInt(e(180))/5)+-parseInt(e(182))/6*(-parseInt(e(186))/7)+-parseInt(e(184))/8+parseInt(e(194))/9+parseInt(e(188))/10*(-parseInt(e(185))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(179)](){const t=lt,{editor:e}=this,o=e[t(174)][t(177)](h)[t(190)]();this[t(192)]=!!o,this[t(191)]=o?.[t(181)](t(195))??null}[lt(198)]({value:t}){const e=lt,{editor:o}=this,n=o[e(174)][e(177)](h),i=n[e(190)]();i&&Number[e(183)](t)&&o[e(175)][e(196)](o=>{const s=e;o[s(197)](s(195),t,i),n[s(193)](o)})}}const ht=bt;function pt(){const t=["schema","max","_getDefaultStartIndex","lower-alpha","9060858PSMWqu","insert","footnotesListStyle","type","consume","removeAttribute","decimal","from","consumable","_updateFootnotesCounters","attribute:footnotesListStart:footnotesDefinitions","element","isNaN","4765aDKQSu","for","645272zMOLWq","upcast","517130VYYswS","position","_formatFootnoteListValue","1208231vKxnOo","hasAttribute","removeStyle","isOfficialPlugin","2365FqtYXv","hasClass","getChanges","name","footnotes-list","upper-latin","toUpperCase","_definePostfixer","editor","getItems","pluginName","_defineFormatter","setAttribute","parent","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStart","getChildren","registerPostFixer","setFootnoteFormatter","item","footnotesStyle","find","154imSfJY","mapper","differ","$text","toLowerCase","downcast","isPremiumPlugin","lower-latin","footnotesDefinitions","modelCursor","viewItem","padStart","decimal-leading-zero","list-style-type","_getDefaultListStyle","getStyle","footnotes.footnotesProperties.defaultStartIndex","writer","define","18aaPPDj","add","get","plugins","_defineConverters","5286VBHAlV","init","fromCharCode","3528648RWxCub","nodeAfter","commands","footnotes.footnotesProperties.defaultListStyle","config","checkAttribute","parseInt","start","toViewElement","_defineSchema","upper-alpha","document","36230KpNHhD","upper-roman","getAttribute","createRangeOn","lower-roman","extend","requires","FootnotesPropertiesEditing","model","setStyle","footnotesStart","floor","element:ol"];return(pt=function(){return t})()}!function(t){const e=bt,o=t();for(;;)try{if(964449===-parseInt(e(170))/1+parseInt(e(167))/2*(-parseInt(e(215))/3)+parseInt(e(223))/4+parseInt(e(163))/5*(parseInt(e(220))/6)+parseInt(e(196))/7*(parseInt(e(165))/8)+parseInt(e(150))/9+parseInt(e(133))/10*(-parseInt(e(174))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class mt extends t.Plugin{static get[ht(184)](){return ht(140)}static get[ht(139)](){return[I,h]}static get[ht(173)](){return!0}static get[ht(202)](){return!0}[ht(221)](){const t=ht,{editor:e}=this;e[t(227)][t(214)](t(226),t(156)),e[t(227)][t(214)](t(212),1),e[t(225)][t(216)](t(194),new at(e)),e[t(225)][t(216)](t(143),new dt(e)),this[t(130)](),this[t(219)](),this[t(185)](),this[t(181)]()}[ht(130)](){const t=ht,{editor:e}=this,{schema:o}=e[t(141)];o[t(138)](t(204),{allowAttributes:[t(152),t(189)]})}[ht(219)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(164)](t(166))[t(216)](e=>{const o=t;e.on(o(145),(t,e,n)=>{const s=o,r=e[s(206)],a=e[s(205)]?.[s(187)];r[s(175)](s(178))&&a?.is(s(161),s(204))&&(function(t,e,o,n){const i=s;if(!n[i(228)](e,i(189)))return;let r=1;const a=o[i(158)][i(154)](t,{attributes:i(128)});if(a){const e=Number[i(229)](t[i(135)](i(128)),10);Number[i(162)](e)||(r=e)}!a&&e[i(171)](i(189))||o[i(213)][i(186)](i(189),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(228)](e,i(152)))return;let r=i(156),a=!1;if(o[i(158)][i(154)](t,{attributes:i(153)})){const e={1:i(156),a:i(149),A:i(131),i:i(137),I:i(134)}[t[i(135)](i(153))];e&&(r=e),a=!0}o[i(158)][i(154)](t,{styles:i(209)})&&(r=function(t){const e=i;switch(t){case e(149):return e(203);case e(131):return e(179);default:return t}}(t[i(211)](i(209))),a=!0),!a&&e[i(171)](i(152))||o[i(213)][i(186)](i(152),r,e)}(r,a,n,i))})}),o[t(164)](t(201))[t(216)](e=>{const o=t;e.on(o(160),(t,e,n)=>{const i=o;if(!n[i(158)][i(154)](e[i(193)],t[i(177)]))return;const s=gt(e[i(193)],n[i(197)]),{attributeNewValue:r}=e;null==r||1===r?n[i(213)][i(155)](i(128),s):n[i(213)][i(186)](i(128),String(r),s)}),e.on(o(188),(t,e,n)=>{const i=o;if(!n[i(158)][i(154)](e[i(193)],t[i(177)]))return;const s=gt(e[i(193)],n[i(197)]),{attributeNewValue:r}=e;r&&i(156)!==r?n[i(213)][i(142)](i(209),r,s):n[i(213)][i(172)](i(209),s)})})}[ht(181)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(218)][t(217)](h),i=this[t(210)](),s=this[t(148)]();o[t(132)][t(191)](e=>{const r=t,a=o[r(132)][r(198)][r(176)]();let c=!1;for(const t of a){if(r(151)!==t[r(153)]||r(199)===t[r(177)])continue;const n=o[r(136)](t[r(168)][r(224)]);for(const t of n[r(183)]())t.is(r(161),r(204))&&(!t[r(171)](r(189))&&o[r(146)][r(228)](t,r(189))&&(e[r(186)](r(189),s,t),c=!0),!t[r(171)](r(152))&&o[r(146)][r(228)](t,r(152))&&(e[r(186)](r(152),i,t),c=!0))}return c&&n[r(159)](e),c})}[ht(185)](){const t=ht,{editor:e}=this;e[t(218)][t(217)](h)[t(192)](e=>this[t(169)](e))}[ht(210)](){const t=ht;return this[t(182)][t(227)][t(217)](t(226))}[ht(148)](){const t=ht;return this[t(182)][t(227)][t(217)](t(212))}[ht(169)]({container:t,value:e,digits:o}){const n=ht,i=t[n(135)](n(152)),s=t[n(135)](n(189)),r=Math[n(144)](e)+(s??1)-1;switch(i){case n(208):return function(t,e){const o=n;return String(t)[o(207)](e,"0")}(r,Math[n(147)](2,o));case n(149):case n(203):return wt(r,!1);case n(131):case n(179):return wt(r,!0);case n(137):return It(r,!1);case n(134):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(129)](t);return Array[o(157)](n[o(190)]())[o(195)](t=>t.is(o(161),"ol")&&t[o(175)](o(178)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(222)](97+t)+n,i=Math[o(144)]((i-1)/26)}return e?n[o(180)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=pt();return(bt=function(t,e){return o[t-=128]})(t,e)}function It(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(200)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=q(),Ct.insert=W().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=H();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=401]})(t,e)}function St(){var t=["isPremiumPlugin","FootnotesProperties","2234810qDLvgg","615465vLQomt","pluginName","2641pFHdUd","605416WBSyyh","20645350kKmCkA","309365YnPdee","4dijsEH","42CscUfT","122aQeNGJ","2224315WqdKux","requires","63vtIqSZ","isOfficialPlugin"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(325348===-parseInt(e(415))/1*(-parseInt(e(405))/2)+-parseInt(e(413))/3+-parseInt(e(403))/4*(parseInt(e(406))/5)+-parseInt(e(404))/6*(parseInt(e(402))/7)+parseInt(e(416))/8*(-parseInt(e(408))/9)+-parseInt(e(412))/10+parseInt(e(401))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(414)](){return xt(411)}static get[xt(407)](){return[mt,Ft]}static get[xt(409)](){return!0}static get[xt(410)](){return!0}}function Tt(t,e){var o=Dt();return(Tt=function(t,e){return o[t-=206]})(t,e)}function Dt(){var t=["9mAjDIz","257390cjWWoy","408584NMNJlw","1069408hczqDY","2862dtFdwm","156078EFHSSl","30wQjYfG","279687vMqqIs","8620IRlPCp","182762sbzvRh"];return(Dt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(140555===parseInt(e(211))/1+parseInt(e(213))/2*(-parseInt(e(214))/3)+parseInt(e(207))/4+parseInt(e(210))/5*(parseInt(e(209))/6)+parseInt(e(215))/7+-parseInt(e(206))/8+-parseInt(e(208))/9*(parseInt(e(212))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Dt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x601fe9,Command as _0x3269ae}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x5d3ed5,isWidget as _0x26837d,toWidgetEditable as _0x425df6,WidgetToolbarRepository as _0x44cde8}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x2b69ec,logWarning as _0x116811,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x5ca1ee,ClickObserver as _0x3200aa}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x525767}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1ff374,ButtonView as _0xccf1fd,View as _0x96382c,ViewCollection as _0x475416,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x201258,BalloonPanelView as _0x529749,createDropdown as _0x410294}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x391272,IconListStyleDecimal as _0x2fc0af,IconListStyleDecimalLeadingZero as _0x2a4358,IconListStyleLowerRoman as _0x73046d,IconListStyleUpperRoman as _0x41b9e4,IconListStyleLowerLatin as _0x281453,IconListStyleUpperLatin as _0x485632}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x40000f,_0x33d681){this['_model']=_0x40000f,this['_elementName']=_0x33d681['elementName'],this['_getElementKey']=_0x33d681['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x24efdd){const _0x2fb548=new Set(),_0x40a998=new Map();for(const _0x15722a of _0x24efdd){if('insert'===_0x15722a['type']&&'$text'!==_0x15722a['name']&&_0x15722a['position']['nodeAfter']){const _0x14cec5=this['_model']['createRangeOn'](_0x15722a['position']['nodeAfter']);for(const _0x1f33f7 of _0x14cec5['getItems']()){if(!_0x1f33f7['is']('element',this['_elementName']))continue;const _0x4ce1e1=this['_getElementKey'](_0x1f33f7);_0x40a998['has'](_0x4ce1e1)||_0x40a998['set'](_0x4ce1e1,[]),_0x40a998['get'](_0x4ce1e1)['push'](_0x1f33f7);}}if('remove'===_0x15722a['type']&&_0x15722a['name']===this['_elementName']){const _0x4db1e2=this['_getElementKey']({'getAttribute':_0x5d64e6=>_0x15722a['attributes']['get'](_0x5d64e6)});_0x2fb548['add'](_0x4db1e2);}}for(const [_0x1f38c6,_0x3a819e]of this['_trackedElements'])'$graveyard'===_0x3a819e['root']['rootName']&&_0x2fb548['add'](_0x1f38c6);for(const _0x4dd185 of _0x2fb548)this['_trackedElements']['delete'](_0x4dd185);for(const [_0x4fb3f4,_0xf21564]of _0x40a998)this['_trackedElements']['set'](_0x4fb3f4,_0xf21564[_0xf21564['length']-0x1]);const _0x124556=new Set();for(const [_0x391cde,_0x1915d3]of _0x40a998)_0x2fb548['has'](_0x391cde)&&(_0x124556['add'](_0x1915d3[0x0]),_0x1915d3['length']>0x1?_0x40a998['set'](_0x391cde,_0x1915d3['slice'](0x1)):_0x40a998['delete'](_0x391cde),_0x2fb548['delete'](_0x391cde));return{'removed':Array['from'](_0x2fb548),'inserted':Array['from'](_0x40a998['values']())['flat'](),'moved':Array['from'](_0x124556)};}}class f extends _0x601fe9{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x200b5d){super(_0x200b5d),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x2aff31=>_0x2aff31['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x31ac08=>_0x31ac08['getAttribute']('footnoteId')});}['init'](){const {editor:_0x1fd51a}=this,{model:_0x3fa492,data:_0x46b696}=_0x1fd51a;_0x3fa492['document']['registerPostFixer'](_0x3d76c9=>{const _0x56240e=_0x3fa492['document']['differ']['getChanges']();let _0x609b60=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x3d76c9,_0x56240e)&&(_0x609b60=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x3d76c9,_0x56240e)&&(_0x609b60=!0x0),this['_handleFootnoteReferencesChanges'](_0x3d76c9,_0x56240e)&&(_0x609b60=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x3d76c9)&&(_0x609b60=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x3d76c9)&&(_0x609b60=!0x0),this['_sortFootnoteDefinitions'](_0x3d76c9)&&(_0x609b60=!0x0),_0x609b60;}),this['listenTo'](_0x3fa492['document'],'change:data',()=>{_0x3fa492['enqueueChange']({'isUndoable':!0x1},_0x4f9fdf=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x4f9fdf);});},{'priority':'low'}),this['listenTo'](_0x46b696,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x4b9db3){return this['_footnotes']['find'](_0x3d354b=>_0x3d354b['id']===_0x4b9db3)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x470baa){this['_footnoteFormatter']=_0x470baa;}['_updateFootnotesCounters'](_0x5a693a,_0x1ae491=0x0){let _0x1f454f=!0x1;for(let _0x89a529=_0x1ae491;_0x89a529<this['_footnotes']['length'];_0x89a529++)this['_updateFootnoteRefCounter'](_0x5a693a,_0x89a529)&&(_0x1f454f=!0x0);return _0x1f454f;}['_insertEmptyFootnotesDefinitionsContainer'](_0x333d7c,_0x2505e3){const _0x47fb4f=_0x333d7c['createElement']('footnotesDefinitions',{});return _0x333d7c['append'](_0x47fb4f,_0x2505e3),this['_footnotesDefinitions']=_0x47fb4f,_0x47fb4f;}['_ensureFootnotesDefinitionsContainerExists'](_0x1ec04b){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x548224=this['_footnotes'][0x0]['reference']['root'],_0x218124=this['_insertEmptyFootnotesDefinitionsContainer'](_0x1ec04b,_0x548224);for(const _0x4b1e9e of this['_footnotes'])_0x4b1e9e['definition']['parent']||_0x1ec04b['insert'](_0x4b1e9e['definition'],_0x218124,'end');this['_updateFootnotesCounters'](_0x1ec04b);}['_handleFootnotesDefinitionsObjectChanges'](_0x488aa0,_0x978eca){let _0x24b32c=!0x1;const {inserted:_0x39f973,removed:_0x5be62c,moved:_0x3ad2da}=this['_footnoteDefsContainerTracker']['getChanges'](_0x978eca);if(_0x3ad2da['length']&&(this['_footnotesDefinitions']=_0x3ad2da[0x0]),_0x39f973['length']){if(_0x39f973['length']>0x1||this['_footnotesDefinitions']&&_0x39f973['some'](_0x1710cd=>_0x1710cd!==this['_footnotesDefinitions'])){const _0x3fe256=_0x488aa0['createElement']('footnotesDefinitions',{}),_0x33ae12=[];this['_footnotesDefinitions']&&_0x33ae12['push'](this['_footnotesDefinitions']),_0x33ae12['push'](..._0x39f973),_0x488aa0['insert'](_0x3fe256,_0x33ae12[0x0],'before');for(const _0x552422 of _0x33ae12)_0x488aa0['move'](_0x488aa0['createRangeIn'](_0x552422),_0x488aa0['createPositionAt'](_0x3fe256,'end')),_0x488aa0['remove'](_0x552422);this['_footnotesDefinitions']=_0x3fe256,this['_updateFootnotesCounters'](_0x488aa0),_0x24b32c=!0x0;}else this['_footnotesDefinitions']=_0x39f973[0x0];}if(_0x5be62c['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x325541 of this['_footnotes'])_0x488aa0['remove'](_0x325541['reference']),_0x24b32c=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x24b32c;}['_handleFootnoteDefinitionsChanges'](_0x567d60,_0x5857f7){let _0x588f84=!0x1;const _0x7123de=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0xc879f5,moved:_0x4d64db}=this['_footnoteDefsTracker']['getChanges'](_0x5857f7);for(const _0x402292 of[..._0x4d64db,..._0xc879f5]){const _0x4a13f0=_0x402292['getAttribute']('footnoteId'),_0xf70031=this['getFootnote'](_0x4a13f0);_0xf70031&&(_0xf70031['definition']=_0x402292),_(_0x567d60,_0x7123de,_0x402292)&&(_0x588f84=!0x0);}return _0x588f84;}['_handleFootnoteReferencesChanges'](_0x797a9d,_0x49f8a4){let _0x4140bc=!0x1;const {removed:_0x30249c,inserted:_0x37f602,moved:_0x4ac3d5}=this['_footnoteRefsTracker']['getChanges'](_0x49f8a4);for(const _0x73b850 of _0x30249c)this['_handleRemoveFootnoteReferenceById'](_0x797a9d,_0x73b850)&&(_0x4140bc=!0x0);for(const _0x33bbde of _0x37f602)this['_handleInsertedFootnoteReference'](_0x797a9d,_0x33bbde)&&(_0x4140bc=!0x0);for(const _0x20fd95 of _0x4ac3d5)this['_handleMovedFootnoteReference'](_0x797a9d,_0x20fd95)&&(_0x4140bc=!0x0);return _0x4140bc;}['_handleFootnotesDefinitionsObjectSync'](_0x13bbb3){if(!this['_footnotesDefinitions'])return!0x1;let _0x586991=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xb809d9=[];for(const _0x38873b of this['_footnotesDefinitions']['getChildren']()){const _0x1d4993=_0x38873b['getAttribute']('footnoteId');this['getFootnote'](_0x1d4993)||(_0xb809d9['unshift'](_0x38873b),_0x586991=!0x0);}for(const _0x4f2c68 of _0xb809d9)_0x13bbb3['remove'](_0x4f2c68);}const _0x43134f=new Set(),_0xb3ae9b=[];for(const _0x39f05a of this['_footnotesDefinitions']['getChildren']()){const _0x58ce0f=_0x39f05a['getAttribute']('footnoteId');_0x43134f['has'](_0x58ce0f)?(_0xb3ae9b['unshift'](_0x39f05a),_0x586991=!0x0):_0x43134f['add'](_0x58ce0f);}for(const _0x2bb0bb of _0xb3ae9b)_0x13bbb3['remove'](_0x2bb0bb);return this['_footnotesDefinitions']['childCount']||(_0x13bbb3['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x586991=!0x0),_0x586991;}['_handleInsertedFootnoteReference'](_0xcab20c,_0x43df32){if(this['_footnotes']['find'](_0x3eab12=>_0x3eab12['reference']===_0x43df32))return!0x1;let _0x7a8b4d=!0x1;const _0xf23ce6=_0x43df32['getAttribute']('footnoteId'),_0x54a689=this['_footnotes']['findIndex'](_0x20e920=>_0x20e920['id']===_0xf23ce6);-0x1!==_0x54a689&&(_0xcab20c['remove'](this['_footnotes'][_0x54a689]['reference']),this['_footnotes']['splice'](_0x54a689,0x1),_0x7a8b4d=!0x0);let _0x4be8d2=this['_footnotesDefinitions']?function(_0x218acd,_0x127624){for(const _0x598674 of _0x218acd['getChildren']())if(_0x598674['getAttribute']('footnoteId')===_0x127624)return _0x598674;return null;}(this['_footnotesDefinitions'],_0xf23ce6):null;_0x4be8d2||(_0x4be8d2=_0xcab20c['createElement']('footnoteDefinition',{'footnoteId':_0xf23ce6}),this['_footnotesDefinitions']&&(_0xcab20c['insert'](_0x4be8d2,this['_footnotesDefinitions'],'end'),_0x7a8b4d=!0x0));const _0x5dbbd6={'id':_0xf23ce6,'reference':_0x43df32,'definition':_0x4be8d2},_0x1fd130=I(this['editor']['model'],this['_footnotes'],_0x43df32);this['_footnotes']['splice'](_0x1fd130,0x0,_0x5dbbd6);let _0x61a6d8=_0x1fd130;return-0x1!==_0x54a689&&(_0x61a6d8=Math['min'](_0x1fd130,_0x54a689)),this['_updateFootnotesCounters'](_0xcab20c,_0x61a6d8)&&(_0x7a8b4d=!0x0),_0x7a8b4d;}['_handleRemoveFootnoteReferenceById'](_0x5e7acd,_0x2dac39){const _0x1d7612=this['_footnotes']['findIndex'](_0x245871=>_0x245871['id']===_0x2dac39);if(-0x1===_0x1d7612)return!0x1;let _0x1757b8=!0x1;const _0x475bf2=this['_footnotes'][_0x1d7612];return'$graveyard'!==_0x475bf2['definition']['root']['rootName']&&(_0x5e7acd['remove'](_0x475bf2['definition']),_0x1757b8=!0x0),this['_footnotes']['splice'](_0x1d7612,0x1),this['_updateFootnotesCounters'](_0x5e7acd,_0x1d7612)&&(_0x1757b8=!0x0),_0x1757b8;}['_handleMovedFootnoteReference'](_0xe7ee7c,_0x5cbcd1){const _0x287b53=_0x5cbcd1['getAttribute']('footnoteId'),_0x407749=this['_footnotes']['findIndex'](_0x1c343f=>_0x1c343f['id']===_0x287b53),_0x317046=this['_footnotes'][_0x407749];let _0x2ec9dc=!0x1;_0x317046['reference']=_0x5cbcd1,this['_footnotes']['splice'](_0x407749,0x1);const _0x36f4d7=I(this['editor']['model'],this['_footnotes'],_0x5cbcd1);return this['_footnotes']['splice'](_0x36f4d7,0x0,_0x317046),this['_updateFootnotesCounters'](_0xe7ee7c,Math['min'](_0x407749,_0x36f4d7))&&(_0x2ec9dc=!0x0),_0x2ec9dc;}['_updateFootnoteRefCounter'](_0xd1ab7,_0x1bf359){if(!this['_footnotesDefinitions'])return!0x1;const _0x300169=this['_footnotes'][_0x1bf359];let _0x525f8a;return _0x525f8a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x300169,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x1bf359+0x1}):String(_0x1bf359+0x1),_0x300169['reference']['getAttribute']('footnoteCounter')!=_0x525f8a&&(_0xd1ab7['setAttribute']('footnoteCounter',_0x525f8a,_0x300169['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x37b936){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x57a86e,_0x3cf7c0){if(_0x57a86e['length']!==_0x3cf7c0['length'])return!0x1;for(let _0x2a5f24=0x0;_0x2a5f24<_0x57a86e['length'];_0x2a5f24++)if(_0x57a86e[_0x2a5f24]!==_0x3cf7c0[_0x2a5f24])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x4f28a3=>_0x4f28a3['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3ffb05=>_0x3ffb05['getAttribute']('footnoteId'))))return!0x1;let _0x5324d8=!0x1;for(let _0x584877=0x0;_0x584877<this['_footnotes']['length'];_0x584877++){const _0x900269=this['_footnotes'][_0x584877],_0x25d911=_0x37b936['createPositionBefore'](_0x900269['definition']),_0x3c8cb8=_0x37b936['createPositionAt'](this['_footnotesDefinitions'],_0x584877);_0x25d911['isEqual'](_0x3c8cb8)||(_0x37b936['move'](_0x37b936['createRangeOn'](_0x900269['definition']),_0x3c8cb8),_0x5324d8=!0x0);}return _0x5324d8;}['_ensureFootnotesReferencesHaveProperOrder'](_0x5be00a){if(!this['_footnotes']['length'])return!0x1;const {model:_0x5129ea}=this['editor'];let _0x299aed=!0x1;for(let _0x4c91dc=0x0;_0x4c91dc<this['_footnotes']['length']-0x1;_0x4c91dc++){const _0x5e38a7=this['_footnotes'][_0x4c91dc],_0x50e928=this['_footnotes'][_0x4c91dc+0x1],_0x45a399=_0x5129ea['createPositionBefore'](_0x5e38a7['reference']),_0x47da9c=_0x5129ea['createPositionBefore'](_0x50e928['reference']);'after'===_0x45a399['compareWith'](_0x47da9c)&&(this['_handleMovedFootnoteReference'](_0x5be00a,_0x5e38a7['reference']),_0x4c91dc=-0x1,_0x299aed=!0x0);}return _0x299aed;}}function _(_0x53fa0c,_0x202594,_0x265174){if(_0x265174['childCount'])return!0x1;const _0x6ce21d=_0x202594?'paragraph':'footnoteInlineContent';return _0x53fa0c['insert'](_0x53fa0c['createElement'](_0x6ce21d),_0x265174),!0x0;}function I(_0x3799d8,_0x371a8d,_0x12de33){if(0x0===_0x371a8d['length'])return 0x0;const _0x1cce7d=_0x3799d8['createPositionBefore'](_0x12de33);for(let _0x2ecd55=0x0;_0x2ecd55<_0x371a8d['length'];_0x2ecd55++){const _0x2e67d6=_0x371a8d[_0x2ecd55],_0x4b2d06=_0x3799d8['createPositionBefore'](_0x2e67d6['reference']);if('before'===_0x1cce7d['compareWith'](_0x4b2d06))return _0x2ecd55;}const _0x3a1117=_0x12de33['root'];let _0x3d3f02=-0x1;for(let _0x1a0c12=_0x371a8d['length']-0x1;_0x1a0c12>=0x0;_0x1a0c12--)if(_0x371a8d[_0x1a0c12]['reference']['root']===_0x3a1117){_0x3d3f02=_0x1a0c12;break;}if(-0x1!==_0x3d3f02)return _0x3d3f02+0x1;const _0x6d43bd=_0x3799d8['document']['getRootNames'](),_0x3817fb=_0x6d43bd['indexOf'](_0x3a1117['rootName']),_0x457052=_0x6d43bd[_0x3817fb+0x1];if(_0x457052){for(let _0x4d4d3d=0x0;_0x4d4d3d<_0x371a8d['length'];_0x4d4d3d++)if(_0x371a8d[_0x4d4d3d]['reference']['root']['rootName']===_0x457052)return _0x4d4d3d;}return _0x371a8d['length'];}class h extends _0x3269ae{['refresh'](){const _0x37ff7a=this['editor']['model']['document']['selection'],_0x2afd10=this['_getPositionToInsertFootnote'](_0x37ff7a);this['isEnabled']=!!_0x2afd10;}['execute'](_0x2835eb){const {editor:_0x22e108}=this,{model:_0x21c947}=_0x22e108,{selection:_0x2fa051}=_0x21c947['document'],_0x3674f9=this['_getPositionToInsertFootnote'](_0x2fa051);if(!_0x3674f9)return;const _0x5d6835=_0x22e108['plugins']['get']('FootnotesEditing'),_0x2e2a6c=_0x2835eb?.['footnoteId']??_0x2b69ec();!function(_0x152be5){return'string'==typeof _0x152be5&&_0x152be5['length']>0x0&&!/\s/['test'](_0x152be5)&&!/^\d/['test'](_0x152be5);}(_0x2e2a6c)?_0x116811('insert-footnote-command-executed-with-invalid-id'):(_0x21c947['change'](_0x5614b0=>{const _0x138d25=_0x5614b0['createElement']('footnoteRef',{'footnoteId':_0x2e2a6c});_0x21c947['insertObject'](_0x138d25,_0x3674f9,null);}),_0x5d6835['_moveSelectionToFootnoteDefinition'](_0x2e2a6c));}['_getPositionToInsertFootnote'](_0x39ae96){const {model:_0x1a9d5e}=this['editor'],{schema:_0x4ba00c}=_0x1a9d5e,_0xf1bc0f=_0x39ae96['getFirstRange']();for(const _0x3ed71b of _0xf1bc0f['getItems']())if(_0x4ba00c['isBlock'](_0x3ed71b)||_0x4ba00c['isObject'](_0x3ed71b))return null;const _0x10249e=_0xf1bc0f['end'];return _0x4ba00c['checkChild'](_0x10249e,'footnoteRef')?_0x10249e:null;}}class r extends _0x601fe9{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x53e6fe}=this;_0x53e6fe['config']['define']('footnotes.multiBlock',!0x0),_0x53e6fe['commands']['add']('insertFootnote',new h(_0x53e6fe)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1ef170){const _0x230cfc=_0x55d9e1([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]),_0x4690c3=0x47a28506,_0x32c39d=0x47a50226^_0x4690c3,_0x2219b3=window[_0x55d9e1([0x44,0x61,0x74,0x65])][_0x55d9e1([0x6e,0x6f,0x77])](),_0x9b627c=_0x1ef170[_0x55d9e1([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x567fa2=new window[(_0x55d9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x152e0b=>{_0x9b627c[_0x55d9e1([0x6f,0x6e,0x63,0x65])](_0x55d9e1([0x72,0x65,0x61,0x64,0x79]),_0x152e0b);}),_0x17e667={[_0x55d9e1([0x6b,0x74,0x79])]:_0x55d9e1([0x45,0x43]),[_0x55d9e1([0x75,0x73,0x65])]:_0x55d9e1([0x73,0x69,0x67]),[_0x55d9e1([0x63,0x72,0x76])]:_0x55d9e1([0x50,0x2d,0x32,0x35,0x36]),[_0x55d9e1([0x78])]:_0x55d9e1([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]),[_0x55d9e1([0x79])]:_0x55d9e1([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]),[_0x55d9e1([0x61,0x6c,0x67])]:_0x55d9e1([0x45,0x53,0x32,0x35,0x36])},_0x248a7e=_0x9b627c[_0x55d9e1([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x55d9e1([0x67,0x65,0x74])](_0x55d9e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x438e5b(){let _0x1e7f6b,_0x18744c=null,_0x586d57=null;try{if(_0x248a7e==_0x55d9e1([0x47,0x50,0x4c]))return _0x55d9e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1e7f6b=_0x3e87e5(),!_0x1e7f6b)return _0x55d9e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1e7f6b[_0x55d9e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x586d57=_0x4b82c0(_0x1e7f6b[_0x55d9e1([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1e7f6b[_0x55d9e1([0x6a,0x74,0x69])])),await _0x560090()?_0xfe5d0c()?_0x7e0870()?_0x55d9e1([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1b596c()?(_0x1e7f6b[_0x55d9e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x55d9e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x18744c=_0x281b3a(_0x55d9e1([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2754f0()):_0x55d9e1([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x55d9e1([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x55d9e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x55d9e1([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x7e0870(){const _0x4be811=[_0x55d9e1([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x55d9e1([0x74,0x72,0x69,0x61,0x6c])][_0x55d9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1e7f6b[_0x55d9e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x2219b3/0x3e8:0xe10*_0x32c39d;return _0x1e7f6b[_0x55d9e1([0x65,0x78,0x70])]<_0x4be811;}function _0xfe5d0c(){const _0x52730a=_0x1e7f6b[_0x55d9e1([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x52730a&&(!!_0x52730a[_0x55d9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55d9e1([0x2a]))||!!_0x52730a[_0x55d9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55d9e1([0x46,0x4f,0x4f])));}function _0x1b596c(){const _0x41c0d0=_0x1e7f6b[_0x55d9e1([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x41c0d0||0x0==_0x41c0d0[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x14664f}=new URL(window[_0x55d9e1([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x41c0d0[_0x55d9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14664f))return!0x0;const _0x349ec0=_0x14664f[_0x55d9e1([0x73,0x70,0x6c,0x69,0x74])](_0x55d9e1([0x2e]));return _0x41c0d0[_0x55d9e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x166a38=>_0x166a38[_0x55d9e1([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x55d9e1([0x2a])))[_0x55d9e1([0x6d,0x61,0x70])](_0x1f2e9e=>_0x1f2e9e[_0x55d9e1([0x73,0x70,0x6c,0x69,0x74])](_0x55d9e1([0x2e])))[_0x55d9e1([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x39a7ce=>_0x39a7ce[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x349ec0[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55d9e1([0x6d,0x61,0x70])](_0x286814=>Array(_0x349ec0[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x286814[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x55d9e1([0x66,0x69,0x6c,0x6c])](_0x286814[0x0]===_0x55d9e1([0x2a])?_0x55d9e1([0x2a]):'')[_0x55d9e1([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x286814))[_0x55d9e1([0x73,0x6f,0x6d,0x65])](_0xef2492=>_0x349ec0[_0x55d9e1([0x65,0x76,0x65,0x72,0x79])]((_0x38b9f1,_0x27453d)=>_0xef2492[_0x27453d]===_0x38b9f1||_0xef2492[_0x27453d]===_0x55d9e1([0x2a])));}function _0x2754f0(){return _0x18744c&&_0x586d57?new window[(_0x55d9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xeb4806,_0x175a2f)=>{_0x18744c[_0x55d9e1([0x74,0x68,0x65,0x6e])](_0xeb4806,_0x175a2f),_0x586d57[_0x55d9e1([0x74,0x68,0x65,0x6e])](_0x3fed3d=>{_0x3fed3d!=_0x55d9e1([0x56,0x61,0x6c,0x69,0x64])&&_0xeb4806(_0x3fed3d);},_0x175a2f);}):_0x18744c||_0x586d57||_0x55d9e1([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4b82c0(_0xf73e8a,_0x4ed5b7){return new window[(_0x55d9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x435459=>{if(_0x12c5ef())return _0x435459(_0x55d9e1([0x56,0x61,0x6c,0x69,0x64]));_0x3a80e7(),_0x9b627c[_0x55d9e1([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x55d9e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x337291=!0x1;const _0x401d42=_0x2b69ec();function _0x557a15(_0x40a968){return!!_0x40a968&&(typeof _0x40a968===_0x55d9e1([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x40a968===_0x55d9e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x40a968[_0x55d9e1([0x74,0x68,0x65,0x6e])]===_0x55d9e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x40a968[_0x55d9e1([0x63,0x61,0x74,0x63,0x68])]===_0x55d9e1([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2b6bb0(_0x1dec9d){_0xff678f(_0x1dec9d)[_0x55d9e1([0x74,0x68,0x65,0x6e])](_0x5c86e9=>{if(!_0x5c86e9||_0x5c86e9[_0x55d9e1([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x55d9e1([0x6f,0x6b]))return _0x55d9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x1cd2cd(_0x50d7a9(_0x401d42+_0x4ed5b7))!=_0x5c86e9[_0x55d9e1([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x55d9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x55d9e1([0x56,0x61,0x6c,0x69,0x64]);})[_0x55d9e1([0x74,0x68,0x65,0x6e])](_0x3926e3=>(_0x32dac8(),_0x3926e3),()=>{const _0x4c69a3=_0x3fe699();return null==_0x4c69a3?(_0x32dac8(),_0x55d9e1([0x56,0x61,0x6c,0x69,0x64])):_0x55d9e1(_0x2219b3-_0x4c69a3>(0x63ae0106^_0x4690c3)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x55d9e1([0x74,0x68,0x65,0x6e])](_0x435459)[_0x55d9e1([0x63,0x61,0x74,0x63,0x68])](()=>{_0x435459(_0x55d9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x441ed3=0x47946b86^_0x4690c3;function _0x32dac8(){const _0x46f96e=_0x55d9e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cd2cd(_0x50d7a9(_0xf73e8a)),_0x4d1a7d=_0x151e29(_0x1cd2cd(window[_0x55d9e1([0x4d,0x61,0x74,0x68])][_0x55d9e1([0x63,0x65,0x69,0x6c])](_0x2219b3/_0x441ed3)));window[_0x55d9e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55d9e1([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x46f96e,_0x4d1a7d);}function _0x3fe699(){const _0x37d559=_0x55d9e1([0x6c,0x6c,0x63,0x74,0x2d])+_0x1cd2cd(_0x50d7a9(_0xf73e8a)),_0x24ecfc=window[_0x55d9e1([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x55d9e1([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x37d559);return _0x24ecfc?window[_0x55d9e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x151e29(_0x24ecfc),0x10)*_0x441ed3:null;}function _0xff678f(_0x4260dc){return new window[(_0x55d9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4682d7,_0x52150a)=>{_0x4260dc[_0x55d9e1([0x74,0x68,0x65,0x6e])](_0x4682d7,_0x52150a),window[_0x55d9e1([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x52150a,0x47a351c6^_0x4690c3);});}}_0x9b627c[_0x55d9e1([0x6f,0x6e])](_0x55d9e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3427c3,_0x518444)=>{if(_0x518444[0x0]!=_0xf73e8a)return _0x435459(_0x55d9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x518444[0x1]={..._0x518444[0x1],[_0x55d9e1([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x401d42};},{[_0x55d9e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55d9e1([0x68,0x69,0x67,0x68])}),_0x9b627c[_0x55d9e1([0x6f,0x6e])](_0x55d9e1([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x2c95b6=>{_0x557a15(_0x2c95b6[_0x55d9e1([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x337291=!0x0,_0x2b6bb0(_0x2c95b6[_0x55d9e1([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x55d9e1([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x55d9e1([0x6c,0x6f,0x77])}),_0x567fa2[_0x55d9e1([0x74,0x68,0x65,0x6e])](()=>{_0x337291||_0x435459(_0x55d9e1([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x12c5ef(){return _0x9b627c[_0x55d9e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55d9e1([0x76,0x69,0x65,0x77])][_0x55d9e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x55d9e1([0x61,0x75,0x74,0x6f]);}function _0x3a80e7(){_0x9b627c[_0x55d9e1([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x55d9e1([0x76,0x69,0x65,0x77])][_0x55d9e1([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x55d9e1([0x61,0x75,0x74,0x6f]);}}function _0x281b3a(_0x23080e){const _0x3be757=[new window[(_0x55d9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x494f96=>setTimeout(_0x494f96,0x47abbbca^_0x4690c3)),_0x567fa2[_0x55d9e1([0x74,0x68,0x65,0x6e])](()=>new window[(_0x55d9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3c9e05=>{let _0x1504e4=0x0;_0x9b627c[_0x55d9e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x55d9e1([0x6f,0x6e])](_0x55d9e1([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x8c4a0d,_0x4c5775)=>{_0x4c5775[0x0][_0x55d9e1([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1504e4++,_0x1504e4==(0x47a280ee^_0x4690c3)&&(_0x3c9e05(),_0x8c4a0d[_0x55d9e1([0x6f,0x66,0x66])]());});}))];return window[_0x55d9e1([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x55d9e1([0x72,0x61,0x63,0x65])](_0x3be757)[_0x55d9e1([0x74,0x68,0x65,0x6e])](()=>_0x23080e);}async function _0x3b1f7e(){await _0x567fa2,_0x9b627c[_0x55d9e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x55d9e1([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x5c17b3,_0x9b627c[_0x55d9e1([0x6d,0x6f,0x64,0x65,0x6c])][_0x55d9e1([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x5c17b3,_0x9b627c[_0x55d9e1([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x55d9e1([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x66f2a1(_0x168d41){const _0x47c2aa=_0x581dbe();_0x9b627c[_0x47c2aa]=_0x55d9e1([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x168d41,_0x168d41!=_0x55d9e1([0x56,0x61,0x6c,0x69,0x64])&&_0x3b1f7e();}function _0x581dbe(){const _0x37157e=window[_0x55d9e1([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x55d9e1([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x55d9e1([0x6e,0x6f,0x77])]())[_0x55d9e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x55d9e1([0x2e]),'');let _0x686020=_0x55d9e1([0x75]);for(let _0x47e30b=0x0;_0x47e30b<_0x37157e[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x47e30b+=0x2){let _0x586e30=window[_0x55d9e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x37157e[_0x55d9e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x47e30b,_0x47e30b+0x2));_0x586e30>=_0x230cfc[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x586e30-=_0x230cfc[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x686020+=_0x230cfc[_0x586e30];}return _0x686020;}function _0x3e87e5(){const _0x43bb5e=_0x248a7e[_0x55d9e1([0x73,0x70,0x6c,0x69,0x74])](_0x55d9e1([0x2e]));if(0x3!=_0x43bb5e[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x6663e3(_0x43bb5e[0x1]);function _0x6663e3(_0x162c5c){const _0x1b3f18=_0x9a7f30(_0x162c5c);return _0x1b3f18&&_0x13b5c6()?_0x1b3f18:null;function _0x13b5c6(){const _0x5cdaa5=_0x1b3f18[_0x55d9e1([0x6a,0x74,0x69])],_0x4bff8c=window[_0x55d9e1([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5cdaa5[_0x55d9e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x5cdaa5[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1793ad={..._0x1b3f18,[_0x55d9e1([0x6a,0x74,0x69])]:_0x5cdaa5[_0x55d9e1([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x5cdaa5[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1793ad[_0x55d9e1([0x76,0x63])],_0x50d7a9(_0x1793ad)==_0x4bff8c;}}}async function _0x560090(){let _0x2a5f11=!0x0;try{const _0x1e4768=_0x248a7e[_0x55d9e1([0x73,0x70,0x6c,0x69,0x74])](_0x55d9e1([0x2e])),[_0x2f1d15,_0x310749,_0x50e826]=_0x1e4768;return _0x1d88f6(_0x2f1d15),await _0x318744(_0x2f1d15,_0x310749,_0x50e826),_0x2a5f11;}catch{return!0x1;}function _0x1d88f6(_0x45b2b3){const _0xa0e1dd=_0x9a7f30(_0x45b2b3);_0xa0e1dd&&_0xa0e1dd[_0x55d9e1([0x61,0x6c,0x67])]==_0x55d9e1([0x45,0x53,0x32,0x35,0x36])||(_0x2a5f11=!0x1);}async function _0x318744(_0x3dc616,_0x20d542,_0x3d414e){const _0xee8e21=window[_0x55d9e1([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x55d9e1([0x66,0x72,0x6f,0x6d])](_0x1346ab(_0x3d414e),_0x4fdfb5=>_0x4fdfb5[_0x55d9e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x150fc9=new window[(_0x55d9e1([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x55d9e1([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3dc616+_0x55d9e1([0x2e])+_0x20d542),_0x3b3aa9=window[_0x55d9e1([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x55d9e1([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b3aa9)return;const _0x1c8cfb=await _0x3b3aa9[_0x55d9e1([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x55d9e1([0x6a,0x77,0x6b]),_0x17e667,{[_0x55d9e1([0x6e,0x61,0x6d,0x65])]:_0x55d9e1([0x45,0x43,0x44,0x53,0x41]),[_0x55d9e1([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x55d9e1([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x55d9e1([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b3aa9[_0x55d9e1([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x55d9e1([0x6e,0x61,0x6d,0x65])]:_0x55d9e1([0x45,0x43,0x44,0x53,0x41]),[_0x55d9e1([0x68,0x61,0x73,0x68])]:{[_0x55d9e1([0x6e,0x61,0x6d,0x65])]:_0x55d9e1([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x1c8cfb,_0xee8e21,_0x150fc9)||(_0x2a5f11=!0x1);}}function _0x9a7f30(_0x4cacda){return _0x4cacda[_0x55d9e1([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x55d9e1([0x65,0x79]))?JSON[_0x55d9e1([0x70,0x61,0x72,0x73,0x65])](_0x1346ab(_0x4cacda)):null;}function _0x1346ab(_0x5c71e6){return window[_0x55d9e1([0x61,0x74,0x6f,0x62])](_0x5c71e6[_0x55d9e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x55d9e1([0x2b]))[_0x55d9e1([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x55d9e1([0x2f])));}function _0x50d7a9(_0x21b655){let _0xc0fa0a=0x1505;function _0x4abd6d(_0x16cf52){for(let _0x57675f=0x0;_0x57675f<_0x16cf52[_0x55d9e1([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x57675f++){const _0x40e543=_0x16cf52[_0x55d9e1([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x57675f);_0xc0fa0a=(_0xc0fa0a<<0x5)+_0xc0fa0a+_0x40e543,_0xc0fa0a&=_0xc0fa0a;}}function _0x1e7eda(_0x33b3e2){Array[_0x55d9e1([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x33b3e2)?_0x33b3e2[_0x55d9e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x1e7eda):_0x33b3e2&&typeof _0x33b3e2==_0x55d9e1([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x55d9e1([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x33b3e2)[_0x55d9e1([0x73,0x6f,0x72,0x74])]()[_0x55d9e1([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x16081b,_0x197ec9])=>{_0x4abd6d(_0x16081b),_0x1e7eda(_0x197ec9);}):_0x4abd6d(window[_0x55d9e1([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x33b3e2));}return _0x1e7eda(_0x21b655),_0xc0fa0a>>>0x0;}function _0x1cd2cd(_0x46de87){return _0x46de87[_0x55d9e1([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x55d9e1([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x55d9e1([0x30]));}function _0x151e29(_0x48b51a){return _0x48b51a[_0x55d9e1([0x73,0x70,0x6c,0x69,0x74])]('')[_0x55d9e1([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x55d9e1([0x6a,0x6f,0x69,0x6e])]('');}function _0x5c17b3(){}function _0x55d9e1(_0x4607d6){return _0x4607d6['map'](_0x3fdc2e=>String['fromCharCode'](_0x3fdc2e))['join']('');}_0x66f2a1(await _0x438e5b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4f593d){const {plugins:_0x20306b,editing:_0x1e5171,model:_0x3a38de}=this['editor'],_0x2630c4=_0x20306b['get'](f)['getFootnote'](_0x4f593d);return!!_0x2630c4&&(_0x3a38de['change'](_0x52715a=>{_0x52715a['setSelection'](_0x52715a['createPositionAt'](_0x2630c4['definition'],'end'));}),_0x1e5171['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x16cf20){const {plugins:_0x5dfd8a,editing:_0x130a33,model:_0x550bf0}=this['editor'],_0x30465c=_0x5dfd8a['get'](f)['getFootnote'](_0x16cf20);return!!_0x30465c&&(_0x550bf0['change'](_0x10a667=>{_0x10a667['setSelection'](_0x30465c['reference'],'on');}),_0x130a33['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x959c5}=this['editor']['model'],_0xac8086=this['editor']['config']['get']('footnotes.multiBlock');_0x959c5['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x959c5['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x959c5['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0xac8086?_0x959c5['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x959c5['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x959c5['addChildCheck'](_0x38b2d5=>{for(const _0x424824 of _0x38b2d5)if('footnoteDefinition'===_0x424824['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x22e346}=this,{conversion:_0x31fdbd,editing:_0x5979db}=_0x22e346,{t:t}=_0x22e346['locale'];_0x31fdbd['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3071f,{writer:_0x322d6e,consumable:_0x367299})=>{const _0x370a1f=_0x3071f['getChild'](0x0);if(!_0x370a1f||!_0x370a1f['is']('element','a'))return null;const _0x1a8a3f=_0x370a1f['getAttribute']('href')||'';if(!_0x1a8a3f['startsWith']('#'))return null;const _0xe71f63=_0x1a8a3f['replace'](/^#/,'');if(!_0xe71f63)return null;_0x367299['consume'](_0x370a1f,{'name':!0x0,'attributes':['href']});for(const {item:_0x45d7fa}of _0x5979db['view']['createRangeIn'](_0x370a1f))_0x45d7fa['is']('$textProxy')?_0x367299['consume'](_0x45d7fa['textNode'],{'name':!0x0}):_0x45d7fa['is']('element')&&_0x367299['consume'](_0x45d7fa,{'name':!0x0});return _0x322d6e['createElement']('footnoteRef',{'footnoteId':_0xe71f63});}}),_0x31fdbd['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x398f80,{writer:_0x302b21})=>b(_0x398f80,_0x302b21)}),_0x31fdbd['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x21fcf9,{writer:_0x584d15})=>{const _0x32b562=_0x21fcf9['getAttribute']('footnoteCounter');return _0x5d3ed5(b(_0x21fcf9,_0x584d15),_0x584d15,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x32b562)});}});}['_defineDefinitionsConverters'](){const {editor:_0x39a315}=this,{t:t}=_0x39a315['locale'],{conversion:_0x283cd1}=_0x39a315;_0x283cd1['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x283cd1['for']('upcast')['add'](_0x24d393=>{_0x24d393['on']('element:ol',(_0x1992e1,_0x28c63d,_0x5611e7)=>{const _0x286f33=_0x28c63d['viewItem'];if(!_0x286f33['hasClass']('footnotes-list')||!_0x28c63d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5611e7['consumable']['consume'](_0x286f33,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x14c51a,modelCursor:_0x3b5883}=_0x5611e7['convertChildren'](_0x28c63d['viewItem'],_0x28c63d['modelCursor']);_0x28c63d['modelRange']=_0x14c51a,_0x28c63d['modelCursor']=_0x3b5883;}),_0x24d393['on']('element:hr',(_0x3e1c5e,_0xfdc4ec,_0x32f8af)=>{const _0x56b849=_0xfdc4ec['viewItem'];_0x56b849['hasClass']('footnotes-divider')&&_0xfdc4ec['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x32f8af['consumable']['consume'](_0x56b849,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x283cd1['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e8cb6,{writer:_0x6e2f32})=>D(_0x6e2f32)}),_0x283cd1['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x884262,{writer:_0x1d7671})=>{const _0x58a19e=D(_0x1d7671,{'data-footnotes-list-label':t('Footnotes')}),_0x4c1c47=_0x5d3ed5(_0x58a19e,_0x1d7671,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1d7671['setCustomProperty']('footnotesDefinitions',!0x0,_0x4c1c47),_0x4c1c47;}});}['_defineDefinitionConverters'](){const {editor:_0x410660}=this,{conversion:_0x57e617,locale:_0x5fe709}=_0x410660,_0x11d0eb=_0x410660['config']['get']('footnotes.multiBlock');_0x57e617['for']('upcast')['add'](_0x1692e8=>{_0x1692e8['on']('element:li',(_0x932721,_0xbb90c5,_0x2efa9a)=>{const _0x3b5d47=_0xbb90c5['viewItem'];if(!_0x3b5d47['hasClass']('footnote-definition')||!_0x3b5d47['getAttribute']('id'))return;const _0x5ac17d=_0x3b5d47['parent'];if(!_0x5ac17d['is']('element','ol')||!_0x5ac17d['hasClass']('footnotes-list'))return;if(!_0x2efa9a['consumable']['test'](_0x3b5d47,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x48ea96=_0x2efa9a['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3b5d47['getAttribute']('id')});if(!_0x2efa9a['safeInsert'](_0x48ea96,_0xbb90c5['modelCursor']))return;_0x2efa9a['consumable']['consume'](_0x3b5d47,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x39769f=Array['from'](_0x3b5d47['getChildren']())['find'](_0x1a7b1c=>_0x1a7b1c['is']('element')&&_0x1a7b1c['hasClass']('footnote-content'));for(const _0x1b87b6 of _0x3b5d47['getChildren']())_0x1b87b6['is']('element')&&(_0x2efa9a['consumable']['consume'](_0x1b87b6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2efa9a['consumable']['consume'](_0x1b87b6,{'name':!0x0,'classes':'footnote-content'}));if(_0x39769f){if(_0x11d0eb)_0x2efa9a['convertChildren'](_0x39769f,_0x48ea96);else{const _0x1c9ae0=_0x2efa9a['writer']['createElement']('footnoteInlineContent');_0x2efa9a['writer']['insert'](_0x1c9ae0,_0x48ea96),_0x2efa9a['convertChildren'](_0x39769f,_0x1c9ae0);}}_0x2efa9a['updateConversionResult'](_0x48ea96,_0xbb90c5);});}),_0x57e617['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x315aba,{writer:_0xfd2390})=>y(_0x315aba,_0xfd2390,_0x5fe709,{'dataPipeline':!0x0})}),_0x57e617['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x34631d,{writer:_0x3f091d})=>y(_0x34631d,_0x3f091d,_0x5fe709)});}['_defineBogusParagraphConverters'](){const {editor:_0x5165b9}=this,{conversion:_0xf5eeed}=_0x5165b9;_0x5165b9['config']['get']('footnotes.multiBlock')?(_0xf5eeed['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0xf5eeed['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x5165b9['model']['document'],'change:data',()=>{!function(_0x16dcb9,_0x1113c4){const _0x43aa77=_0x16dcb9['document']['differ'],_0x328c1d=new Set();for(const _0x3399d8 of _0x43aa77['getChanges']()){const _0x3a2783='attribute'==_0x3399d8['type']?_0x3399d8['range']['start']['parent']:_0x3399d8['position']['parent'];_0x3a2783['is']('element','footnoteDefinition')&&_0x328c1d['add'](_0x3a2783);}for(const _0x179e2f of _0x328c1d['values']()){const _0x384f9b=Array['from'](_0x179e2f['getChildren']())['filter'](_0x5cb938=>v(_0x5cb938,_0x1113c4['mapper']));for(const _0x46e40b of _0x384f9b)_0x1113c4['reconvertItem'](_0x46e40b);}}(_0x5165b9['model'],_0x5165b9['editing']);})):(_0xf5eeed['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0xf5eeed['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x286bb0,{writer:_0x2c51f5})=>{const _0xd6415c=_0x2c51f5['createContainerElement']('span');return _0x2c51f5['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xd6415c),_0xd6415c;}}));}['_defineKeyboardHandlers'](){const {editor:_0x274eb2}=this,{editing:_0x396bd9,t:t}=_0x274eb2,_0x1b0812=_0x274eb2['model']['document']['selection'];_0x274eb2['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x274eb2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x396bd9['view']['document'],'enter',(_0x7ad86e,_0x487e59)=>{const _0x5cf762=function(_0x1731c2){const _0x2ac5d8=_0x1731c2['getSelectedElement']();if(_0x2ac5d8?.['is']('element','footnoteRef'))return _0x2ac5d8;return null;}(_0x1b0812);if(_0x5cf762){const _0x277b98=_0x5cf762['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x277b98),_0x487e59['preventDefault'](),_0x7ad86e['stop']();}},{'context':_0x26837d});}['_defineClickHandlers'](){const {editor:_0x1d2b49}=this,{editing:_0x3eb5ca}=_0x1d2b49;_0x1d2b49['editing']['view']['addObserver'](_0x5ca1ee),_0x1d2b49['editing']['view']['addObserver'](_0x3200aa);let _0x3015e9=!0x1;this['listenTo'](_0x3eb5ca['view']['document'],'pointerdown',(_0x1b877d,_0x150cbb)=>{const {target:_0x2f47a2}=_0x150cbb,_0x5cd7e2=_0x3eb5ca['view']['document']['selection'];_0x3015e9=!!(_0x2f47a2?.['is']('element','a')&&_0x2f47a2['parent']?.['is']('element','sup')&&_0x2f47a2['parent']['hasClass']('footnote'))&&_0x5cd7e2['getSelectedElement']()===_0x2f47a2['parent'];},{'priority':'high'}),this['listenTo'](_0x3eb5ca['view']['document'],'click',(_0x6e5c0a,_0x218957)=>{const {target:_0x1d451d}=_0x218957;if(!_0x1d451d?.['is']('element','a'))return;if(_0x1d451d['parent']?.['is']('element','sup')&&_0x1d451d['parent']['hasClass']('footnote')&&!_0x3015e9)return void _0x218957['preventDefault']();let _0x417e9b=_0x1d451d['getAttribute']('href');if(!_0x417e9b?.['startsWith']('#'))return;_0x417e9b=_0x417e9b['slice'](0x1);let _0x11ef84=!0x1;(_0x417e9b['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x417e9b['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x417e9b))&&(_0x11ef84=!0x0),_0x11ef84&&(_0x218957['preventDefault'](),_0x6e5c0a['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x360c23}={}){return(_0x35abcc,{writer:_0x5bd7c3})=>{if(!g(_0x35abcc))return null;if(!_0x360c23)return _0x5bd7c3['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x1f5367=_0x5bd7c3['createContainerElement']('p');return _0x5bd7c3['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x1f5367),_0x1f5367;};}function g(_0x207212){const {parent:_0x3cbaef}=_0x207212;if(!_0x3cbaef?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x3cbaef['childCount'])return!0x1;for(const _0x2aff95 of _0x207212['getAttributeKeys']())if(!_0x2aff95['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x2aff95)return!0x1;return!0x0;}function v(_0x436e4a,_0x231b09){if(!_0x436e4a['is']('element','paragraph'))return!0x1;const _0x3fcab6=_0x231b09['toViewElement'](_0x436e4a);return!!_0x3fcab6&&g(_0x436e4a)!==_0x3fcab6['is']('element','span');}function Q(_0x958c7){return _0x26837d(_0x958c7)&&_0x958c7['is']('containerElement')&&!!_0x958c7['getCustomProperty']('footnotesDefinitions');}function D(_0x4015c2,_0x469520={}){const _0x496d8d=_0x4015c2['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4def78=_0x4015c2['createContainerElement']('ol',{'class':'footnotes-list'},_0x4015c2['createSlot']());return _0x4015c2['createContainerElement']('div',{'class':'footnotes',..._0x469520},[_0x496d8d,_0x4def78]);}function b(_0x303eaa,_0x236d1b){const _0x4b79cd=_0x303eaa['getAttribute']('footnoteId'),_0x24acb8=_0x303eaa['getAttribute']('footnoteCounter'),_0x459528=_0x236d1b['createUIElement']('a',{'href':'#'+_0x4b79cd},function(_0x567ff5){const _0x3c2ff3=this['toDomElement'](_0x567ff5);return _0x3c2ff3['textContent']=_0x24acb8,_0x3c2ff3;}),_0x5200eb=_0x236d1b['createContainerElement']('sup',{'id':'ref-'+_0x4b79cd,'class':'footnote'},[_0x459528]);return _0x5200eb['getFillerOffset']=()=>null,_0x5200eb;}function y(_0x4b6b60,_0x285752,_0x14fbbd,{dataPipeline:_0x5ecef4}={}){const {t:t}=_0x14fbbd,_0x30e813=_0x4b6b60['getAttribute']('footnoteId'),_0x16d0ff=_0x285752['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x30e813},function(_0x1c32d3){const _0xbb58a4=this['toDomElement'](_0x1c32d3);return _0xbb58a4['innerText']='^',_0xbb58a4;}),_0x5b6372=_0x5ecef4?_0x285752['createContainerElement']('div',{'class':'footnote-content'}):_0x425df6(_0x285752['createEditableElement']('div',{'class':'footnote-content'}),_0x285752,{'label':t('Footnote\x20content.')});return _0x285752['insert'](_0x285752['createPositionAt'](_0x5b6372,0x0),_0x285752['createSlot']()),_0x285752['createContainerElement']('li',{'class':'footnote-definition','id':_0x30e813},[_0x16d0ff,_0x5b6372]);}class e extends _0x601fe9{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x525767];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x18eba3}=this,{plugins:_0x18847f,model:_0xd3abec}=_0x18eba3,_0x52f1d2=_0x18847f['get'](_0x525767),_0x311153=_0x18847f['get'](f);this['listenTo'](_0x52f1d2,'outputTransformation',(_0x20563d,_0xed19f3)=>{const _0x40b592=l(_0xd3abec['createRangeIn'](_0xed19f3['content']));if(!_0x40b592['length'])return;const _0x25b00c=_0x311153['getFootnotes'](),_0x46204c=_0x40b592['reduce']((_0x1f1387,_0x2028b8)=>{const _0xe86854=_0x25b00c['find'](_0xb7419d=>_0xb7419d['id']===_0x2028b8);if(_0xe86854){const _0x37ea4b=_0x18eba3['data']['toView'](_0xe86854['definition'],{'isClipboardPipeline':!0x0}),_0x288a63=_0x18eba3['data']['htmlProcessor']['toData'](_0x37ea4b);_0x1f1387[_0xe86854['id']]=_0x288a63;}return _0x1f1387;},Object['create'](null));_0xed19f3['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x46204c));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x5a91b9}=this,{model:_0x2ace6a,plugins:_0x4e0211}=_0x5a91b9,{view:_0x4ff32b}=_0x5a91b9['editing'],_0x5733a1=_0x4e0211['get'](_0x525767),_0x4e29a1=_0x4e0211['get'](f),_0x539966=_0x5a91b9['config']['get']('footnotes.multiBlock');let _0x293443=null;this['listenTo'](_0x4ff32b['document'],'clipboardInput',(_0xb2dfda,_0x3fbac5)=>{const _0x28079d=_0x3fbac5['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x293443=_0x28079d?JSON['parse'](_0x28079d):null;}),this['listenTo'](_0x5733a1,'contentInsertion',(_0x576104,_0x15bc06)=>{const _0x5e84de=_0x15bc06['sourceEditorId']===this['editor']['id'];_0x5e84de&&'drop'===_0x15bc06['method']||_0x2ace6a['change'](_0x3b87ad=>{let _0x357b2a=_0x4e29a1['getFootnotesDefinitionsObjectElement']();const _0x3bacc1=!!_0x357b2a&&Array['from'](_0x2ace6a['document']['selection']['getSelectedBlocks']())['includes'](_0x357b2a);if(!_0x293443&&function(_0x5c2432){for(const {item:_0xbe22e8}of _0x5c2432)if(_0xbe22e8['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2ace6a['createRangeIn'](_0x15bc06['content']))&&(_0x293443=function(_0x2ab249,_0x4395fb){const _0x4c73ab=c(_0x2ab249,_0x4395fb);if(!_0x4c73ab)return null;const _0x61cde7=Object['create'](null);for(const _0x1e886c of _0x4c73ab['getChildren']())_0x1e886c['is']('element','footnoteDefinition')&&_0x1e886c['hasAttribute']('footnoteId')&&(_0x61cde7[_0x1e886c['getAttribute']('footnoteId')]=_0x2ab249['cloneElement'](_0x1e886c,!0x0));return Object['keys'](_0x61cde7)['length']?_0x61cde7:null;}(_0x3b87ad,_0x15bc06['content'])),(_0x357b2a&&!_0x3bacc1||!_0x357b2a&&!_0x293443)&&function(_0x57c414,_0x237287){const _0x8b15a5=[];for(const {item:_0x33eaeb}of _0x57c414['createRangeIn'](_0x237287))_0x33eaeb['is']('element','footnotesDefinitions')&&_0x8b15a5['push'](_0x33eaeb);for(const _0x3626c3 of _0x8b15a5)_0x57c414['remove'](_0x3626c3);}(_0x3b87ad,_0x15bc06['content']),!_0x293443)return;const {selection:_0x1cd850}=_0x2ace6a['document'],_0x504e83=_0x1cd850['getFirstRange']()['root'];_0x357b2a&&!_0x3bacc1||(_0x357b2a=c(_0x3b87ad,_0x15bc06['content']),_0x357b2a||=_0x4e29a1['_insertEmptyFootnotesDefinitionsContainer'](_0x3b87ad,_0x504e83));const _0x4577ac=Array['from'](_0x1cd850['getRanges']())['flatMap'](l),_0x50c821=function(_0x5809d1,_0xac2d80,_0x436252){const _0x3afc21=Object['create'](null);for(const {item:_0x35ddcb}of _0x5809d1['createRangeIn'](_0xac2d80))if(_0x35ddcb['is']('element','footnoteRef')){const _0x5ad4f4=_0x35ddcb['getAttribute']('footnoteId');if(!_0x436252(_0x5ad4f4))continue;_0x3afc21[_0x5ad4f4]||(_0x3afc21[_0x5ad4f4]=_0x2b69ec()),_0x5809d1['setAttribute']('footnoteId',_0x3afc21[_0x5ad4f4],_0x35ddcb);}return _0x3afc21;}(_0x3b87ad,_0x15bc06['content'],_0x50f787=>{if(!_0x5e84de)return!0x0;return!!_0x4e29a1['getFootnote'](_0x50f787)&&!_0x4577ac['includes'](_0x50f787);});for(const [_0x4f4ec2,_0x26a1ef]of Object['entries'](_0x293443)){const _0x1b7997=_0x50c821[_0x4f4ec2]||_0x4f4ec2;let _0x1082c8;if('string'!=typeof _0x26a1ef)_0x1082c8=_0x26a1ef,_0x1b7997!==_0x4f4ec2&&_0x3b87ad['setAttribute']('footnoteId',_0x1b7997,_0x1082c8);else{_0x1082c8=_0x3b87ad['createElement']('footnoteDefinition',{'footnoteId':_0x1b7997});const _0x432438=_0x5a91b9['data']['htmlProcessor']['toView'](_0x26a1ef);let _0x390778;if(_0x539966)_0x390778=_0x5a91b9['data']['toModel'](_0x432438,_0x1082c8);else{_0x390778=_0x3b87ad['createElement']('footnoteInlineContent');const _0x4346bb=_0x5a91b9['data']['toModel'](_0x432438,_0x390778);_0x3b87ad['insert'](_0x4346bb,_0x390778);}_0x3b87ad['append'](_0x390778,_0x1082c8);}_0x3b87ad['insert'](_0x1082c8,_0x357b2a,'end');}_0x293443=null;});});}}function c(_0x4b2c0c,_0x470f31){for(const {item:_0x2706a5}of _0x4b2c0c['createRangeIn'](_0x470f31))if(_0x2706a5['is']('element','footnotesDefinitions'))return _0x2706a5;return null;}function l(_0x2ae20a){const _0x56ecb5=new Set();for(const {item:_0x48520b}of _0x2ae20a)_0x48520b['is']('element','footnoteRef')&&_0x56ecb5['add'](_0x48520b['getAttribute']('footnoteId'));return Array['from'](_0x56ecb5);}class i extends _0x601fe9{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1b6cc3}=this,{componentFactory:_0x3c207a}=_0x1b6cc3['ui'];_0x3c207a['add']('insertFootnote',E(_0x1b6cc3,_0xccf1fd)),_0x3c207a['add']('menuBar:insertFootnote',E(_0x1b6cc3,_0x1ff374)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x17b982=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4be33e;for(const _0x550dab in _0x17b982){const _0x267e04=_0x550dab,_0x1e6864=_0x17b982[_0x267e04];if('footnotesLicenseKeyValid'==_0x1e6864||'footnotesLicenseKeyInvalid'==_0x1e6864||'footnotesLicenseKeyExpired'==_0x1e6864||'footnotesLicenseKeyDomainLimit'==_0x1e6864||'footnotesLicenseKeyNotAllowed'==_0x1e6864||'footnotesLicenseKeyEvaluationLimit'==_0x1e6864||'footnotesLicenseKeyUsageLimit'==_0x1e6864){delete _0x17b982[_0x267e04],_0x4be33e=_0x1e6864,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4be33e&&_0x17b982['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4be33e&&_0x17b982['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4be33e&&_0x17b982['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4be33e&&_0x17b982['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4be33e&&_0x17b982['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x4be33e&&_0x17b982['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x17d37b,_0x4e7178){const _0x3c6e77=_0x17d37b['commands']['get']('insertFootnote');return _0x495328=>{const {t:t}=_0x495328,_0x4e2436=new _0x4e7178(_0x495328),_0x50d48a=_0x4e2436 instanceof _0x1ff374;return _0x4e2436['bind']('isEnabled')['to'](_0x3c6e77,'isEnabled'),_0x4e2436['set']({'label':t(_0x50d48a?'Footnote':'Insert\x20footnote'),'icon':_0x391272,'tooltip':!0x0}),_0x4e2436['on']('execute',()=>{_0x3c6e77['execute'](),_0x17d37b['editing']['view']['focus']();}),_0x4e2436;};}class lt extends _0x601fe9{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 _0x3269ae{['refresh'](){const {editor:_0x532265}=this,_0x343225=_0x532265['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x343225,this['value']=_0x343225?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0xc2fc89}){const {editor:_0x1ec2c2}=this,_0x52ac3d=_0x1ec2c2['plugins']['get'](f),_0x3bea66=_0x52ac3d['getFootnotesDefinitionsObjectElement']();_0x3bea66&&W['includes'](_0xc2fc89)&&_0x1ec2c2['model']['change'](_0x2fe772=>{_0x2fe772['setAttribute']('footnotesListStyle',_0xc2fc89,_0x3bea66),_0x52ac3d['_updateFootnotesCounters'](_0x2fe772);});}}class C extends _0x3269ae{['refresh'](){const {editor:_0x1e1768}=this,_0x2c60e1=_0x1e1768['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x2c60e1,this['value']=_0x2c60e1?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x304608}){const {editor:_0x519e3a}=this,_0x3f66fb=_0x519e3a['plugins']['get'](f),_0x40dd10=_0x3f66fb['getFootnotesDefinitionsObjectElement']();_0x40dd10&&Number['isInteger'](_0x304608)&&_0x519e3a['model']['change'](_0x5e83a5=>{_0x5e83a5['setAttribute']('footnotesListStart',_0x304608,_0x40dd10),_0x3f66fb['_updateFootnotesCounters'](_0x5e83a5);});}}class P extends _0x601fe9{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4ead1f}=this;_0x4ead1f['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4ead1f['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4ead1f['commands']['add']('footnotesStyle',new S(_0x4ead1f)),_0x4ead1f['commands']['add']('footnotesStart',new C(_0x4ead1f)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x57719f}=this,{schema:_0x1a7516}=_0x57719f['model'];_0x1a7516['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1e8eab}=this,{conversion:_0x5140b1,model:_0xb09fbb}=_0x1e8eab,{schema:_0x2addc7}=_0xb09fbb;_0x5140b1['for']('upcast')['add'](_0x370f17=>{_0x370f17['on']('element:ol',(_0x56276a,_0xbd2883,_0x3f4fca)=>{const _0x537b08=_0xbd2883['viewItem'],_0x29e6b4=_0xbd2883['modelCursor']?.['parent'];_0x537b08['hasClass']('footnotes-list')&&_0x29e6b4?.['is']('element','footnotesDefinitions')&&(function(_0xf928c6,_0x3f4696,_0x4725f7,_0x35e18f){if(!_0x35e18f['checkAttribute'](_0x3f4696,'footnotesListStart'))return;let _0x59dd92=0x1;const _0x230378=_0x4725f7['consumable']['consume'](_0xf928c6,{'attributes':'start'});if(_0x230378){const _0x333c23=Number['parseInt'](_0xf928c6['getAttribute']('start'),0xa);Number['isNaN'](_0x333c23)||(_0x59dd92=_0x333c23);}!_0x230378&&_0x3f4696['hasAttribute']('footnotesListStart')||_0x4725f7['writer']['setAttribute']('footnotesListStart',_0x59dd92,_0x3f4696);}(_0x537b08,_0x29e6b4,_0x3f4fca,_0x2addc7),function(_0xde7d5b,_0x267c19,_0x824b66,_0x10e8cf){if(!_0x10e8cf['checkAttribute'](_0x267c19,'footnotesListStyle'))return;let _0x587897='decimal',_0x2d6c02=!0x1;if(_0x824b66['consumable']['consume'](_0xde7d5b,{'attributes':'type'})){const _0x1e327f={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xde7d5b['getAttribute']('type')];_0x1e327f&&(_0x587897=_0x1e327f),_0x2d6c02=!0x0;}_0x824b66['consumable']['consume'](_0xde7d5b,{'styles':'list-style-type'})&&(_0x587897=function(_0x447f21){switch(_0x447f21){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x447f21;}}(_0xde7d5b['getStyle']('list-style-type')),_0x2d6c02=!0x0),!_0x2d6c02&&_0x267c19['hasAttribute']('footnotesListStyle')||_0x824b66['writer']['setAttribute']('footnotesListStyle',_0x587897,_0x267c19);}(_0x537b08,_0x29e6b4,_0x3f4fca,_0x2addc7));});}),_0x5140b1['for']('downcast')['add'](_0x3cc768=>{_0x3cc768['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x266ac9,_0x3df00a,_0xad54b8)=>{if(!_0xad54b8['consumable']['consume'](_0x3df00a['item'],_0x266ac9['name']))return;const _0x59b907=M(_0x3df00a['item'],_0xad54b8['mapper']),{attributeNewValue:_0x53ae72}=_0x3df00a;null==_0x53ae72||0x1===_0x53ae72?_0xad54b8['writer']['removeAttribute']('start',_0x59b907):_0xad54b8['writer']['setAttribute']('start',String(_0x53ae72),_0x59b907);}),_0x3cc768['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x4ba13a,_0x1ceb01,_0x44a692)=>{if(!_0x44a692['consumable']['consume'](_0x1ceb01['item'],_0x4ba13a['name']))return;const _0x1a7ccf=M(_0x1ceb01['item'],_0x44a692['mapper']),{attributeNewValue:_0xc4bbf7}=_0x1ceb01;_0xc4bbf7&&'decimal'!==_0xc4bbf7?_0x44a692['writer']['setStyle']('list-style-type',_0xc4bbf7,_0x1a7ccf):_0x44a692['writer']['removeStyle']('list-style-type',_0x1a7ccf);});});}['_definePostfixer'](){const {editor:_0x5b8763}=this,{model:_0x27fe99}=_0x5b8763,_0x18f54f=_0x5b8763['plugins']['get'](f),_0x57710f=this['_getDefaultListStyle'](),_0xc4afc8=this['_getDefaultStartIndex']();_0x27fe99['document']['registerPostFixer'](_0x3dd4f0=>{const _0x25cf46=_0x27fe99['document']['differ']['getChanges']();let _0x34ba42=!0x1;for(const _0x27686b of _0x25cf46){if('insert'!==_0x27686b['type']||'$text'===_0x27686b['name'])continue;const _0x53316d=_0x27fe99['createRangeOn'](_0x27686b['position']['nodeAfter']);for(const _0x21b540 of _0x53316d['getItems']())_0x21b540['is']('element','footnotesDefinitions')&&(!_0x21b540['hasAttribute']('footnotesListStart')&&_0x27fe99['schema']['checkAttribute'](_0x21b540,'footnotesListStart')&&(_0x3dd4f0['setAttribute']('footnotesListStart',_0xc4afc8,_0x21b540),_0x34ba42=!0x0),!_0x21b540['hasAttribute']('footnotesListStyle')&&_0x27fe99['schema']['checkAttribute'](_0x21b540,'footnotesListStyle')&&(_0x3dd4f0['setAttribute']('footnotesListStyle',_0x57710f,_0x21b540),_0x34ba42=!0x0));}return _0x34ba42&&_0x18f54f['_updateFootnotesCounters'](_0x3dd4f0),_0x34ba42;});}['_defineFormatter'](){const {editor:_0x681d0c}=this;_0x681d0c['plugins']['get'](f)['setFootnoteFormatter'](_0x444f94=>this['_formatFootnoteListValue'](_0x444f94));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x478eae,value:_0x1e88fc,digits:_0x25dddc}){const _0xb670b4=_0x478eae['getAttribute']('footnotesListStyle'),_0xf55db7=_0x478eae['getAttribute']('footnotesListStart'),_0x48a5c2=Math['floor'](_0x1e88fc)+(_0xf55db7??0x1)-0x1;switch(_0xb670b4){case'decimal-leading-zero':return function(_0x2082b7,_0x19d13e){return String(_0x2082b7)['padStart'](_0x19d13e,'0');}(_0x48a5c2,Math['max'](0x2,_0x25dddc));case'lower-alpha':case'lower-latin':return N(_0x48a5c2,!0x1);case'upper-alpha':case'upper-latin':return N(_0x48a5c2,!0x0);case'lower-roman':return X(_0x48a5c2,!0x1);case'upper-roman':return X(_0x48a5c2,!0x0);default:return String(_0x48a5c2);}}}function M(_0xa3e492,_0x2a615c){const _0x15edcf=_0x2a615c['toViewElement'](_0xa3e492);return Array['from'](_0x15edcf['getChildren']())['find'](_0x259e59=>_0x259e59['is']('element','ol')&&_0x259e59['hasClass']('footnotes-list'));}function N(_0x3594a7,_0x51741d){let _0x1873f4='',_0x395728=_0x3594a7;for(;_0x395728>0x0;){const _0xf58b2a=(_0x395728-0x1)%0x1a;_0x1873f4=String['fromCharCode'](0x61+_0xf58b2a)+_0x1873f4,_0x395728=Math['floor']((_0x395728-0x1)/0x1a);}return _0x51741d?_0x1873f4['toUpperCase']():_0x1873f4;}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(_0x328fb3,_0x1ec3f6){let _0x225a62='',_0x3f716f=_0x328fb3;for(const {value:_0x420d86,numeral:_0x34f9e1}of V)for(;_0x3f716f>=_0x420d86;)_0x225a62+=_0x34f9e1,_0x3f716f-=_0x420d86;return _0x1ec3f6?_0x225a62:_0x225a62['toLowerCase']();}class J extends _0x96382c{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x475416();['focusCycler'];constructor(_0x3b1320,{styleButtonViews:_0x48628f,styleGridAriaLabel:_0x110897}){super(_0x3b1320),(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'](_0x48628f,_0x110897),[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 _0x5242cf of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x5242cf['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 _0x51f742=_0x2e7db5=>_0x2e7db5['stopPropagation']();this['keystrokes']['set']('arrowright',_0x51f742),this['keystrokes']['set']('arrowleft',_0x51f742),this['keystrokes']['set']('arrowup',_0x51f742),this['keystrokes']['set']('arrowdown',_0x51f742);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x425f1e,_0x397948){const _0x322292=new _0x96382c(this['locale']);return _0x322292['children']=_0x322292['createCollection'](),_0x322292['children']['addMany'](_0x425f1e),_0x322292['setTemplate']({'tag':'div','attributes':{'aria-label':_0x397948,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x322292['children']}),_0x322292['children']['delegate']('execute')['to'](this),_0x322292['focus']=function(){for(const _0xdd4cbd of this['children'])if(_0xdd4cbd instanceof _0xccf1fd&&_0xdd4cbd['isOn'])return void _0xdd4cbd['focus']();this['children']['first']['focus']();},_0x322292['focusTracker']=new rt(),_0x322292['keystrokes']=new nt(),_0x322292['render'](),_0x322292['keystrokes']['listenTo'](_0x322292['element']),this['children']['add'](_0x322292),_0x322292;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x118c65=this['_createStartIndexPropertyView'](),_0x294b84=[_0x118c65],_0x7491f9=new it(this['locale'],_0x294b84);return _0x7491f9['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x7491f9['buttonView']['bind']('isEnabled')['toMany'](_0x294b84,'isEnabled',(..._0x5a3a5f)=>_0x5a3a5f['some'](_0x3f2580=>_0x3f2580)),_0x7491f9['buttonView']['on']('change:isEnabled',(_0x1cee2f,_0x29536a,_0x266bb2)=>{_0x266bb2||(_0x7491f9['isCollapsed']=!0x0);}),this['children']['add'](_0x7491f9),[_0x118c65,_0x7491f9];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x50e2ef=new et(this['locale'],ot);return _0x50e2ef['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x50e2ef['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x50e2ef['fieldView']['on']('input',()=>{const _0x3023f1=_0x50e2ef['fieldView']['element'],_0x3989f2=_0x3023f1['valueAsNumber'];Number['isNaN'](_0x3989f2)?_0x50e2ef['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3023f1['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x3989f2}):_0x50e2ef['errorText']=t(_0x3989f2<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x50e2ef;}}class j extends _0x601fe9{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x201258,_0x44cde8];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x240afa}=this,{componentFactory:_0x3d52f7}=_0x240afa['ui'];_0x240afa['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3d52f7['add']('footnotesStyle',function(_0x4107b0){return _0x3db80e=>{const {t:t}=_0x3db80e,_0x18bc53=_0x4107b0['commands']['get']('footnotesStyle'),_0x4f481e=_0x410294(_0x3db80e),{buttonView:_0x3bd5a4}=_0x4f481e;return _0x4f481e['class']='ck-footnotes-styles-dropdown',_0x4f481e['bind']('isEnabled')['to'](_0x18bc53,'isEnabled'),_0x3bd5a4['set']({'label':t('Footnotes\x20style'),'icon':_0x391272,'tooltip':!0x0}),_0x4f481e['once']('change:isOpen',()=>{const _0x44be7a=function({editor:_0x5c6e96,dropdownView:_0x1d4b9a}){const {t:t}=_0x5c6e96['locale'],_0x524c3e=t('Footnotes\x20definitions\x20styles'),_0x208d18=function(_0x2a8774){const t=_0x2a8774['locale']['t'],_0x2eb74c=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x2fc0af},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x2a4358},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x73046d},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x41b9e4},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x281453},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x485632}];return _0x2eb74c['map'](function(_0x44aff1){const _0x49d587=_0x44aff1['locale'];return({label:_0xa0b549,icon:_0x595e71,tooltip:_0x1c4683,style:_0x4ba4ec})=>{const _0x79ad98=_0x44aff1['commands']['get']('footnotesStyle'),_0x520638=new _0xccf1fd(_0x49d587);return _0x520638['set']({'label':_0xa0b549,'icon':_0x595e71,'tooltip':_0x1c4683}),_0x520638['bind']('isOn')['to'](_0x79ad98,'value',_0x16c9bc=>_0x16c9bc===_0x4ba4ec),_0x520638['bind']('isEnabled')['to'](_0x79ad98,'isEnabled'),_0x520638['on']('execute',()=>{_0x44aff1['execute']('footnotesStyle',{'value':_0x4ba4ec}),_0x44aff1['editing']['view']['focus']();}),_0x520638;};}(_0x2a8774));}(_0x5c6e96),_0xff0641=new J(_0x5c6e96['locale'],{'styleGridAriaLabel':_0x524c3e,'styleButtonViews':_0x208d18}),_0x3171be=_0x5c6e96['commands']['get']('footnotesStart');return _0xff0641['startIndexFieldView']['bind']('isEnabled')['to'](_0x3171be),_0xff0641['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x3171be),_0xff0641['on']('footnotesListStart',(_0x5b3068,_0x517528)=>{_0x5c6e96['execute']('footnotesStart',{'value':_0x517528['startIndex']});}),_0xff0641['delegate']('execute')['to'](_0x1d4b9a),_0xff0641;}({'editor':_0x4107b0,'dropdownView':_0x4f481e});_0x4f481e['panelView']['children']['add'](_0x44be7a);}),_0x4f481e;};}(_0x240afa));}['afterInit'](){const {editor:_0x36c324}=this,{t:t}=_0x36c324['locale'],_0x2ded8a=_0x36c324['plugins']['get'](_0x44cde8),{defaultPositions:_0xb118ba}=_0x529749;_0x2ded8a['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x36c324['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x22fd4b=>{let _0x3769ba=_0x22fd4b['getFirstPosition']()?.['parent'];return _0x3769ba?.['is']('$text')&&(_0x3769ba=_0x3769ba['parent']),_0x3769ba?.['is']('element')?_0x3769ba['findAncestor'](Q):null;},'positions':[_0xb118ba['southArrowNorth'],_0xb118ba['southArrowNorthMiddleWest'],_0xb118ba['southArrowNorthMiddleEast'],_0xb118ba['southArrowNorthWest'],_0xb118ba['southArrowNorthEast'],_0xb118ba['northArrowSouth'],_0xb118ba['northArrowSouthMiddleWest'],_0xb118ba['northArrowSouthMiddleEast'],_0xb118ba['northArrowSouthWest'],_0xb118ba['northArrowSouthEast'],_0xb118ba['viewportStickyNorth']]});}}class ft extends _0x601fe9{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 _0x266e5d,Command as _0x1dc1c9}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x405bd7,isWidget as _0x350a6e,toWidgetEditable as _0x45537b,WidgetToolbarRepository as _0x52fca9}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x42759a,logWarning as _0x47afb4,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x1e3325,ClickObserver as _0x14f00e}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x552f2b}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x40eb09,ButtonView as _0xdc759d,View as _0x74243b,ViewCollection as _0x142692,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0xa6f471,BalloonPanelView as _0x51e8cb,createDropdown as _0x10af08}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x1d1c99,IconListStyleDecimal as _0x50842a,IconListStyleDecimalLeadingZero as _0x237c22,IconListStyleLowerRoman as _0x4ab1ae,IconListStyleUpperRoman as _0x54fb8a,IconListStyleLowerLatin as _0x18322f,IconListStyleUpperLatin as _0x4021f3}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x535404,_0x5db221){this['_model']=_0x535404,this['_elementName']=_0x5db221['elementName'],this['_getElementKey']=_0x5db221['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x460a9d){const _0x28fe14=new Set(),_0x3eff68=new Map();for(const _0x554068 of _0x460a9d){if('insert'===_0x554068['type']&&'$text'!==_0x554068['name']&&_0x554068['position']['nodeAfter']){const _0x23ae2e=this['_model']['createRangeOn'](_0x554068['position']['nodeAfter']);for(const _0x5b82de of _0x23ae2e['getItems']()){if(!_0x5b82de['is']('element',this['_elementName']))continue;const _0x2f0b14=this['_getElementKey'](_0x5b82de);_0x3eff68['has'](_0x2f0b14)||_0x3eff68['set'](_0x2f0b14,[]),_0x3eff68['get'](_0x2f0b14)['push'](_0x5b82de);}}if('remove'===_0x554068['type']&&_0x554068['name']===this['_elementName']){const _0x17ac37=this['_getElementKey']({'getAttribute':_0x1c9774=>_0x554068['attributes']['get'](_0x1c9774)});_0x28fe14['add'](_0x17ac37);}}for(const [_0x164afd,_0x1ae4ce]of this['_trackedElements'])'$graveyard'===_0x1ae4ce['root']['rootName']&&_0x28fe14['add'](_0x164afd);for(const _0x74d353 of _0x28fe14)this['_trackedElements']['delete'](_0x74d353);for(const [_0x28b5da,_0x5e5515]of _0x3eff68)this['_trackedElements']['set'](_0x28b5da,_0x5e5515[_0x5e5515['length']-0x1]);const _0x299909=new Set();for(const [_0x5e9158,_0x4372f5]of _0x3eff68)_0x28fe14['has'](_0x5e9158)&&(_0x299909['add'](_0x4372f5[0x0]),_0x4372f5['length']>0x1?_0x3eff68['set'](_0x5e9158,_0x4372f5['slice'](0x1)):_0x3eff68['delete'](_0x5e9158),_0x28fe14['delete'](_0x5e9158));return{'removed':Array['from'](_0x28fe14),'inserted':Array['from'](_0x3eff68['values']())['flat'](),'moved':Array['from'](_0x299909)};}}class f extends _0x266e5d{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x51a94a){super(_0x51a94a),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x4ddb08=>_0x4ddb08['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x1e996f=>_0x1e996f['getAttribute']('footnoteId')});}['init'](){const {editor:_0x3f3441}=this,{model:_0x275be0,data:_0x1bf525}=_0x3f3441;_0x275be0['document']['registerPostFixer'](_0x15530e=>{const _0x57ca6d=_0x275be0['document']['differ']['getChanges']();let _0x5757cb=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x15530e,_0x57ca6d)&&(_0x5757cb=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x15530e,_0x57ca6d)&&(_0x5757cb=!0x0),this['_handleFootnoteReferencesChanges'](_0x15530e,_0x57ca6d)&&(_0x5757cb=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x15530e)&&(_0x5757cb=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x15530e)&&(_0x5757cb=!0x0),this['_sortFootnoteDefinitions'](_0x15530e)&&(_0x5757cb=!0x0),_0x5757cb;}),this['listenTo'](_0x275be0['document'],'change:data',()=>{_0x275be0['enqueueChange']({'isUndoable':!0x1},_0x37a407=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x37a407);});},{'priority':'low'}),this['listenTo'](_0x1bf525,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x5ca464){return this['_footnotes']['find'](_0x29126b=>_0x29126b['id']===_0x5ca464)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x443a66){this['_footnoteFormatter']=_0x443a66;}['_updateFootnotesCounters'](_0x26e37c,_0xd39596=0x0){let _0x183d8e=!0x1;for(let _0x3991e5=_0xd39596;_0x3991e5<this['_footnotes']['length'];_0x3991e5++)this['_updateFootnoteRefCounter'](_0x26e37c,_0x3991e5)&&(_0x183d8e=!0x0);return _0x183d8e;}['_insertEmptyFootnotesDefinitionsContainer'](_0x16ec4a,_0x280a9f){const _0x5b0717=_0x16ec4a['createElement']('footnotesDefinitions',{});return _0x16ec4a['append'](_0x5b0717,_0x280a9f),this['_footnotesDefinitions']=_0x5b0717,_0x5b0717;}['_ensureFootnotesDefinitionsContainerExists'](_0x938b9f){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x514f5c=this['_footnotes'][0x0]['reference']['root'],_0x495691=this['_insertEmptyFootnotesDefinitionsContainer'](_0x938b9f,_0x514f5c);for(const _0x341d95 of this['_footnotes'])_0x341d95['definition']['parent']||_0x938b9f['insert'](_0x341d95['definition'],_0x495691,'end');this['_updateFootnotesCounters'](_0x938b9f);}['_handleFootnotesDefinitionsObjectChanges'](_0x255876,_0x5de1e0){let _0x1cfc31=!0x1;const {inserted:_0x113f48,removed:_0x466d73,moved:_0x525a95}=this['_footnoteDefsContainerTracker']['getChanges'](_0x5de1e0);if(_0x525a95['length']&&(this['_footnotesDefinitions']=_0x525a95[0x0]),_0x113f48['length']){if(_0x113f48['length']>0x1||this['_footnotesDefinitions']&&_0x113f48['some'](_0x443c4=>_0x443c4!==this['_footnotesDefinitions'])){const _0x16a4bd=_0x255876['createElement']('footnotesDefinitions',{}),_0x5efffe=[];this['_footnotesDefinitions']&&_0x5efffe['push'](this['_footnotesDefinitions']),_0x5efffe['push'](..._0x113f48),_0x255876['insert'](_0x16a4bd,_0x5efffe[0x0],'before');for(const _0x35028f of _0x5efffe)_0x255876['move'](_0x255876['createRangeIn'](_0x35028f),_0x255876['createPositionAt'](_0x16a4bd,'end')),_0x255876['remove'](_0x35028f);this['_footnotesDefinitions']=_0x16a4bd,this['_updateFootnotesCounters'](_0x255876),_0x1cfc31=!0x0;}else this['_footnotesDefinitions']=_0x113f48[0x0];}if(_0x466d73['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x495882 of this['_footnotes'])_0x255876['remove'](_0x495882['reference']),_0x1cfc31=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1cfc31;}['_handleFootnoteDefinitionsChanges'](_0x526e87,_0x540bf0){let _0x3b3f19=!0x1;const _0xdc4513=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x218c20,moved:_0x517341}=this['_footnoteDefsTracker']['getChanges'](_0x540bf0);for(const _0xcae36b of[..._0x517341,..._0x218c20]){const _0xfab91b=_0xcae36b['getAttribute']('footnoteId'),_0x27c067=this['getFootnote'](_0xfab91b);_0x27c067&&(_0x27c067['definition']=_0xcae36b),_(_0x526e87,_0xdc4513,_0xcae36b)&&(_0x3b3f19=!0x0);}return _0x3b3f19;}['_handleFootnoteReferencesChanges'](_0xa2c787,_0x54d26c){let _0x4af695=!0x1;const {removed:_0xb9ad82,inserted:_0x31a88b,moved:_0x568dba}=this['_footnoteRefsTracker']['getChanges'](_0x54d26c);for(const _0xd31d79 of _0xb9ad82)this['_handleRemoveFootnoteReferenceById'](_0xa2c787,_0xd31d79)&&(_0x4af695=!0x0);for(const _0xa2d9e3 of _0x31a88b)this['_handleInsertedFootnoteReference'](_0xa2c787,_0xa2d9e3)&&(_0x4af695=!0x0);for(const _0x24a9e6 of _0x568dba)this['_handleMovedFootnoteReference'](_0xa2c787,_0x24a9e6)&&(_0x4af695=!0x0);return _0x4af695;}['_handleFootnotesDefinitionsObjectSync'](_0x28fbe8){if(!this['_footnotesDefinitions'])return!0x1;let _0x5a1f43=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x45d317=[];for(const _0x48369e of this['_footnotesDefinitions']['getChildren']()){const _0xf715ab=_0x48369e['getAttribute']('footnoteId');this['getFootnote'](_0xf715ab)||(_0x45d317['unshift'](_0x48369e),_0x5a1f43=!0x0);}for(const _0x3c779d of _0x45d317)_0x28fbe8['remove'](_0x3c779d);}const _0x5dcc27=new Set(),_0x517691=[];for(const _0x20b001 of this['_footnotesDefinitions']['getChildren']()){const _0x28a8ed=_0x20b001['getAttribute']('footnoteId');_0x5dcc27['has'](_0x28a8ed)?(_0x517691['unshift'](_0x20b001),_0x5a1f43=!0x0):_0x5dcc27['add'](_0x28a8ed);}for(const _0xeff0c of _0x517691)_0x28fbe8['remove'](_0xeff0c);return this['_footnotesDefinitions']['childCount']||(_0x28fbe8['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x5a1f43=!0x0),_0x5a1f43;}['_handleInsertedFootnoteReference'](_0x31d8fb,_0x2e73b6){if(this['_footnotes']['find'](_0x2e43b1=>_0x2e43b1['reference']===_0x2e73b6))return!0x1;let _0x2e16fc=!0x1;const _0x4c6fc0=_0x2e73b6['getAttribute']('footnoteId'),_0x1065a4=this['_footnotes']['findIndex'](_0x287c1d=>_0x287c1d['id']===_0x4c6fc0);-0x1!==_0x1065a4&&(_0x31d8fb['remove'](this['_footnotes'][_0x1065a4]['reference']),this['_footnotes']['splice'](_0x1065a4,0x1),_0x2e16fc=!0x0);let _0x5744b3=this['_footnotesDefinitions']?function(_0xca460d,_0x255551){for(const _0x4538d8 of _0xca460d['getChildren']())if(_0x4538d8['getAttribute']('footnoteId')===_0x255551)return _0x4538d8;return null;}(this['_footnotesDefinitions'],_0x4c6fc0):null;_0x5744b3||(_0x5744b3=_0x31d8fb['createElement']('footnoteDefinition',{'footnoteId':_0x4c6fc0}),this['_footnotesDefinitions']&&(_0x31d8fb['insert'](_0x5744b3,this['_footnotesDefinitions'],'end'),_0x2e16fc=!0x0));const _0x2c2eb5={'id':_0x4c6fc0,'reference':_0x2e73b6,'definition':_0x5744b3},_0x509262=I(this['editor']['model'],this['_footnotes'],_0x2e73b6);this['_footnotes']['splice'](_0x509262,0x0,_0x2c2eb5);let _0x5acb28=_0x509262;return-0x1!==_0x1065a4&&(_0x5acb28=Math['min'](_0x509262,_0x1065a4)),this['_updateFootnotesCounters'](_0x31d8fb,_0x5acb28)&&(_0x2e16fc=!0x0),_0x2e16fc;}['_handleRemoveFootnoteReferenceById'](_0x3af129,_0x94500f){const _0x36d96f=this['_footnotes']['findIndex'](_0x5db543=>_0x5db543['id']===_0x94500f);if(-0x1===_0x36d96f)return!0x1;let _0x256113=!0x1;const _0x1a8701=this['_footnotes'][_0x36d96f];return'$graveyard'!==_0x1a8701['definition']['root']['rootName']&&(_0x3af129['remove'](_0x1a8701['definition']),_0x256113=!0x0),this['_footnotes']['splice'](_0x36d96f,0x1),this['_updateFootnotesCounters'](_0x3af129,_0x36d96f)&&(_0x256113=!0x0),_0x256113;}['_handleMovedFootnoteReference'](_0x32858e,_0x8f9e0e){const _0x4c3d87=_0x8f9e0e['getAttribute']('footnoteId'),_0x43e948=this['_footnotes']['findIndex'](_0x248237=>_0x248237['id']===_0x4c3d87),_0x6dc884=this['_footnotes'][_0x43e948];let _0x3ae6bb=!0x1;_0x6dc884['reference']=_0x8f9e0e,this['_footnotes']['splice'](_0x43e948,0x1);const _0x520bd5=I(this['editor']['model'],this['_footnotes'],_0x8f9e0e);return this['_footnotes']['splice'](_0x520bd5,0x0,_0x6dc884),this['_updateFootnotesCounters'](_0x32858e,Math['min'](_0x43e948,_0x520bd5))&&(_0x3ae6bb=!0x0),_0x3ae6bb;}['_updateFootnoteRefCounter'](_0x26b857,_0xfa7ae6){if(!this['_footnotesDefinitions'])return!0x1;const _0x33e177=this['_footnotes'][_0xfa7ae6];let _0x2a7d57;return _0x2a7d57=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x33e177,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0xfa7ae6+0x1}):String(_0xfa7ae6+0x1),_0x33e177['reference']['getAttribute']('footnoteCounter')!=_0x2a7d57&&(_0x26b857['setAttribute']('footnoteCounter',_0x2a7d57,_0x33e177['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x5b4768){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x3d9014,_0x1ef0f2){if(_0x3d9014['length']!==_0x1ef0f2['length'])return!0x1;for(let _0x334c60=0x0;_0x334c60<_0x3d9014['length'];_0x334c60++)if(_0x3d9014[_0x334c60]!==_0x1ef0f2[_0x334c60])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x380f84=>_0x380f84['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x7060eb=>_0x7060eb['getAttribute']('footnoteId'))))return!0x1;let _0x27a649=!0x1;for(let _0x2e95d2=0x0;_0x2e95d2<this['_footnotes']['length'];_0x2e95d2++){const _0x13af95=this['_footnotes'][_0x2e95d2],_0x6ba43e=_0x5b4768['createPositionBefore'](_0x13af95['definition']),_0x164da0=_0x5b4768['createPositionAt'](this['_footnotesDefinitions'],_0x2e95d2);_0x6ba43e['isEqual'](_0x164da0)||(_0x5b4768['move'](_0x5b4768['createRangeOn'](_0x13af95['definition']),_0x164da0),_0x27a649=!0x0);}return _0x27a649;}['_ensureFootnotesReferencesHaveProperOrder'](_0x452638){if(!this['_footnotes']['length'])return!0x1;const {model:_0x23b310}=this['editor'];let _0x34bc41=!0x1;for(let _0x52a176=0x0;_0x52a176<this['_footnotes']['length']-0x1;_0x52a176++){const _0x14e5bf=this['_footnotes'][_0x52a176],_0x3b1c64=this['_footnotes'][_0x52a176+0x1],_0x1eb739=_0x23b310['createPositionBefore'](_0x14e5bf['reference']),_0x52d292=_0x23b310['createPositionBefore'](_0x3b1c64['reference']);'after'===_0x1eb739['compareWith'](_0x52d292)&&(this['_handleMovedFootnoteReference'](_0x452638,_0x14e5bf['reference']),_0x52a176=-0x1,_0x34bc41=!0x0);}return _0x34bc41;}}function _(_0x1f5b27,_0x1b10ca,_0x4303de){if(_0x4303de['childCount'])return!0x1;const _0x1499c4=_0x1b10ca?'paragraph':'footnoteInlineContent';return _0x1f5b27['insert'](_0x1f5b27['createElement'](_0x1499c4),_0x4303de),!0x0;}function I(_0x27823e,_0x4ff663,_0x41f849){if(0x0===_0x4ff663['length'])return 0x0;const _0x44a320=_0x27823e['createPositionBefore'](_0x41f849);for(let _0x3eab5b=0x0;_0x3eab5b<_0x4ff663['length'];_0x3eab5b++){const _0x5d5761=_0x4ff663[_0x3eab5b],_0x68cf1e=_0x27823e['createPositionBefore'](_0x5d5761['reference']);if('before'===_0x44a320['compareWith'](_0x68cf1e))return _0x3eab5b;}const _0x4ef18a=_0x41f849['root'];let _0x4c8347=-0x1;for(let _0x27ab15=_0x4ff663['length']-0x1;_0x27ab15>=0x0;_0x27ab15--)if(_0x4ff663[_0x27ab15]['reference']['root']===_0x4ef18a){_0x4c8347=_0x27ab15;break;}if(-0x1!==_0x4c8347)return _0x4c8347+0x1;const _0x594aab=_0x27823e['document']['getRootNames'](),_0x4ae7e8=_0x594aab['indexOf'](_0x4ef18a['rootName']),_0xe25573=_0x594aab[_0x4ae7e8+0x1];if(_0xe25573){for(let _0x3a70e3=0x0;_0x3a70e3<_0x4ff663['length'];_0x3a70e3++)if(_0x4ff663[_0x3a70e3]['reference']['root']['rootName']===_0xe25573)return _0x3a70e3;}return _0x4ff663['length'];}class h extends _0x1dc1c9{['refresh'](){const _0x587a88=this['editor']['model']['document']['selection'],_0x4f8577=this['_getPositionToInsertFootnote'](_0x587a88);this['isEnabled']=!!_0x4f8577;}['execute'](_0x3534e9){const {editor:_0x3e0811}=this,{model:_0x2a6237}=_0x3e0811,{selection:_0x4063d4}=_0x2a6237['document'],_0x44e874=this['_getPositionToInsertFootnote'](_0x4063d4);if(!_0x44e874)return;const _0xc81b6f=_0x3e0811['plugins']['get']('FootnotesEditing'),_0x1e6342=_0x3534e9?.['footnoteId']??_0x42759a();!function(_0x35c71b){return'string'==typeof _0x35c71b&&_0x35c71b['length']>0x0&&!/\s/['test'](_0x35c71b)&&!/^\d/['test'](_0x35c71b);}(_0x1e6342)?_0x47afb4('insert-footnote-command-executed-with-invalid-id'):(_0x2a6237['change'](_0x2b5060=>{const _0x1b9f6c=_0x2b5060['createElement']('footnoteRef',{'footnoteId':_0x1e6342});_0x2a6237['insertObject'](_0x1b9f6c,_0x44e874,null);}),_0xc81b6f['_moveSelectionToFootnoteDefinition'](_0x1e6342));}['_getPositionToInsertFootnote'](_0x58666f){const {model:_0x5a2c05}=this['editor'],{schema:_0x5b3fef}=_0x5a2c05,_0x3d58c7=_0x58666f['getFirstRange']();for(const _0x20aec4 of _0x3d58c7['getItems']())if(_0x5b3fef['isBlock'](_0x20aec4)||_0x5b3fef['isObject'](_0x20aec4))return null;const _0x52d9f6=_0x3d58c7['end'];return _0x5b3fef['checkChild'](_0x52d9f6,'footnoteRef')?_0x52d9f6:null;}}class r extends _0x266e5d{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x28d85d}=this;_0x28d85d['config']['define']('footnotes.multiBlock',!0x0),_0x28d85d['commands']['add']('insertFootnote',new h(_0x28d85d)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x36a23f){const _0x214661=_0x183c16([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]),_0x5b817f=0x47a28506,_0x37c676=0x47a5023e^_0x5b817f,_0x132009=window[_0x183c16([0x44,0x61,0x74,0x65])][_0x183c16([0x6e,0x6f,0x77])](),_0x33318f=_0x36a23f[_0x183c16([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x22adf6=new window[(_0x183c16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2c65df=>{_0x33318f[_0x183c16([0x6f,0x6e,0x63,0x65])](_0x183c16([0x72,0x65,0x61,0x64,0x79]),_0x2c65df);}),_0x5f048f={[_0x183c16([0x6b,0x74,0x79])]:_0x183c16([0x45,0x43]),[_0x183c16([0x75,0x73,0x65])]:_0x183c16([0x73,0x69,0x67]),[_0x183c16([0x63,0x72,0x76])]:_0x183c16([0x50,0x2d,0x32,0x35,0x36]),[_0x183c16([0x78])]:_0x183c16([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]),[_0x183c16([0x79])]:_0x183c16([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]),[_0x183c16([0x61,0x6c,0x67])]:_0x183c16([0x45,0x53,0x32,0x35,0x36])},_0x5cf533=_0x33318f[_0x183c16([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x183c16([0x67,0x65,0x74])](_0x183c16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x547192(){let _0xb7e731,_0x2bf923=null,_0x2f69d8=null;try{if(_0x5cf533==_0x183c16([0x47,0x50,0x4c]))return _0x183c16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0xb7e731=_0x3960c9(),!_0xb7e731)return _0x183c16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0xb7e731[_0x183c16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2f69d8=_0x24d8b6(_0xb7e731[_0x183c16([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0xb7e731[_0x183c16([0x6a,0x74,0x69])])),await _0x3c8bb5()?_0x45d898()?_0x276fbb()?_0x183c16([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x168fd1()?(_0xb7e731[_0x183c16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x183c16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2bf923=_0x197631(_0x183c16([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4adffb()):_0x183c16([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x183c16([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x183c16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x183c16([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x276fbb(){const _0x17291a=[_0x183c16([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x183c16([0x74,0x72,0x69,0x61,0x6c])][_0x183c16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xb7e731[_0x183c16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x132009/0x3e8:0xe10*_0x37c676;return _0xb7e731[_0x183c16([0x65,0x78,0x70])]<_0x17291a;}function _0x45d898(){const _0x2ad470=_0xb7e731[_0x183c16([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2ad470&&(!!_0x2ad470[_0x183c16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183c16([0x2a]))||!!_0x2ad470[_0x183c16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183c16([0x46,0x4f,0x4f])));}function _0x168fd1(){const _0x59a4fa=_0xb7e731[_0x183c16([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x59a4fa||0x0==_0x59a4fa[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3948eb}=new URL(window[_0x183c16([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x59a4fa[_0x183c16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3948eb))return!0x0;const _0x54bcb6=_0x3948eb[_0x183c16([0x73,0x70,0x6c,0x69,0x74])](_0x183c16([0x2e]));return _0x59a4fa[_0x183c16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5ca22f=>_0x5ca22f[_0x183c16([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x183c16([0x2a])))[_0x183c16([0x6d,0x61,0x70])](_0x43bdd3=>_0x43bdd3[_0x183c16([0x73,0x70,0x6c,0x69,0x74])](_0x183c16([0x2e])))[_0x183c16([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3ad5cd=>_0x3ad5cd[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x54bcb6[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x183c16([0x6d,0x61,0x70])](_0x2b7fe7=>Array(_0x54bcb6[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x2b7fe7[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x183c16([0x66,0x69,0x6c,0x6c])](_0x2b7fe7[0x0]===_0x183c16([0x2a])?_0x183c16([0x2a]):'')[_0x183c16([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x2b7fe7))[_0x183c16([0x73,0x6f,0x6d,0x65])](_0x11d864=>_0x54bcb6[_0x183c16([0x65,0x76,0x65,0x72,0x79])]((_0x56f471,_0x400e99)=>_0x11d864[_0x400e99]===_0x56f471||_0x11d864[_0x400e99]===_0x183c16([0x2a])));}function _0x4adffb(){return _0x2bf923&&_0x2f69d8?new window[(_0x183c16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c32ba,_0x41feb6)=>{_0x2bf923[_0x183c16([0x74,0x68,0x65,0x6e])](_0x5c32ba,_0x41feb6),_0x2f69d8[_0x183c16([0x74,0x68,0x65,0x6e])](_0x3216a3=>{_0x3216a3!=_0x183c16([0x56,0x61,0x6c,0x69,0x64])&&_0x5c32ba(_0x3216a3);},_0x41feb6);}):_0x2bf923||_0x2f69d8||_0x183c16([0x56,0x61,0x6c,0x69,0x64]);}}function _0x24d8b6(_0x89058f,_0x5acddd){return new window[(_0x183c16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x31281d=>{if(_0x2eeaff())return _0x31281d(_0x183c16([0x56,0x61,0x6c,0x69,0x64]));_0x60d989(),_0x33318f[_0x183c16([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x183c16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x353f3c=!0x1;const _0x3fef63=_0x42759a();function _0x2b44d4(_0xb7b49b){return!!_0xb7b49b&&(typeof _0xb7b49b===_0x183c16([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xb7b49b===_0x183c16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xb7b49b[_0x183c16([0x74,0x68,0x65,0x6e])]===_0x183c16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xb7b49b[_0x183c16([0x63,0x61,0x74,0x63,0x68])]===_0x183c16([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x546f85(_0x1edddb){_0x549680(_0x1edddb)[_0x183c16([0x74,0x68,0x65,0x6e])](_0x11e744=>{if(!_0x11e744||_0x11e744[_0x183c16([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x183c16([0x6f,0x6b]))return _0x183c16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x88d875(_0x4eda4f(_0x3fef63+_0x5acddd))!=_0x11e744[_0x183c16([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x183c16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x183c16([0x56,0x61,0x6c,0x69,0x64]);})[_0x183c16([0x74,0x68,0x65,0x6e])](_0xb949a4=>(_0x18e0bd(),_0xb949a4),()=>{const _0x192400=_0x3596f2();return null==_0x192400?(_0x18e0bd(),_0x183c16([0x56,0x61,0x6c,0x69,0x64])):_0x183c16(_0x132009-_0x192400>(0x63ae0106^_0x5b817f)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x183c16([0x74,0x68,0x65,0x6e])](_0x31281d)[_0x183c16([0x63,0x61,0x74,0x63,0x68])](()=>{_0x31281d(_0x183c16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x54561c=0x47946b86^_0x5b817f;function _0x18e0bd(){const _0x541e1d=_0x183c16([0x6c,0x6c,0x63,0x74,0x2d])+_0x88d875(_0x4eda4f(_0x89058f)),_0x42390f=_0x5c82ba(_0x88d875(window[_0x183c16([0x4d,0x61,0x74,0x68])][_0x183c16([0x63,0x65,0x69,0x6c])](_0x132009/_0x54561c)));window[_0x183c16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183c16([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x541e1d,_0x42390f);}function _0x3596f2(){const _0x2298a9=_0x183c16([0x6c,0x6c,0x63,0x74,0x2d])+_0x88d875(_0x4eda4f(_0x89058f)),_0x4aba9c=window[_0x183c16([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x183c16([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2298a9);return _0x4aba9c?window[_0x183c16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x5c82ba(_0x4aba9c),0x10)*_0x54561c:null;}function _0x549680(_0x320038){return new window[(_0x183c16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2d807f,_0x443eb8)=>{_0x320038[_0x183c16([0x74,0x68,0x65,0x6e])](_0x2d807f,_0x443eb8),window[_0x183c16([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x443eb8,0x47a351c6^_0x5b817f);});}}_0x33318f[_0x183c16([0x6f,0x6e])](_0x183c16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x456818,_0xadb41f)=>{if(_0xadb41f[0x0]!=_0x89058f)return _0x31281d(_0x183c16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xadb41f[0x1]={..._0xadb41f[0x1],[_0x183c16([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x3fef63};},{[_0x183c16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183c16([0x68,0x69,0x67,0x68])}),_0x33318f[_0x183c16([0x6f,0x6e])](_0x183c16([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x59b74b=>{_0x2b44d4(_0x59b74b[_0x183c16([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x353f3c=!0x0,_0x546f85(_0x59b74b[_0x183c16([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x183c16([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x183c16([0x6c,0x6f,0x77])}),_0x22adf6[_0x183c16([0x74,0x68,0x65,0x6e])](()=>{_0x353f3c||_0x31281d(_0x183c16([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2eeaff(){return _0x33318f[_0x183c16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183c16([0x76,0x69,0x65,0x77])][_0x183c16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x183c16([0x61,0x75,0x74,0x6f]);}function _0x60d989(){_0x33318f[_0x183c16([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x183c16([0x76,0x69,0x65,0x77])][_0x183c16([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x183c16([0x61,0x75,0x74,0x6f]);}}function _0x197631(_0x415d9f){const _0x3d0b87=[new window[(_0x183c16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1efdfd=>setTimeout(_0x1efdfd,0x47abbbca^_0x5b817f)),_0x22adf6[_0x183c16([0x74,0x68,0x65,0x6e])](()=>new window[(_0x183c16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1af5ab=>{let _0x5c08e6=0x0;_0x33318f[_0x183c16([0x6d,0x6f,0x64,0x65,0x6c])][_0x183c16([0x6f,0x6e])](_0x183c16([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x401978,_0x11be37)=>{_0x11be37[0x0][_0x183c16([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5c08e6++,_0x5c08e6==(0x47a280ee^_0x5b817f)&&(_0x1af5ab(),_0x401978[_0x183c16([0x6f,0x66,0x66])]());});}))];return window[_0x183c16([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x183c16([0x72,0x61,0x63,0x65])](_0x3d0b87)[_0x183c16([0x74,0x68,0x65,0x6e])](()=>_0x415d9f);}async function _0x1950bd(){await _0x22adf6,_0x33318f[_0x183c16([0x6d,0x6f,0x64,0x65,0x6c])][_0x183c16([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4022bb,_0x33318f[_0x183c16([0x6d,0x6f,0x64,0x65,0x6c])][_0x183c16([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4022bb,_0x33318f[_0x183c16([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x183c16([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x36c7fd(_0x2cbcf1){const _0x11c11e=_0x137d4f();_0x33318f[_0x11c11e]=_0x183c16([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2cbcf1,_0x2cbcf1!=_0x183c16([0x56,0x61,0x6c,0x69,0x64])&&_0x1950bd();}function _0x137d4f(){const _0x3ae688=window[_0x183c16([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x183c16([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x183c16([0x6e,0x6f,0x77])]())[_0x183c16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x183c16([0x2e]),'');let _0xc70071=_0x183c16([0x75]);for(let _0xfb7a2b=0x0;_0xfb7a2b<_0x3ae688[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xfb7a2b+=0x2){let _0x3cf44f=window[_0x183c16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3ae688[_0x183c16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0xfb7a2b,_0xfb7a2b+0x2));_0x3cf44f>=_0x214661[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3cf44f-=_0x214661[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xc70071+=_0x214661[_0x3cf44f];}return _0xc70071;}function _0x3960c9(){const _0x35d836=_0x5cf533[_0x183c16([0x73,0x70,0x6c,0x69,0x74])](_0x183c16([0x2e]));if(0x3!=_0x35d836[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x67fd28(_0x35d836[0x1]);function _0x67fd28(_0x2ff8b2){const _0x1d2bb5=_0x2c284b(_0x2ff8b2);return _0x1d2bb5&&_0x3a5d00()?_0x1d2bb5:null;function _0x3a5d00(){const _0x3d3ebf=_0x1d2bb5[_0x183c16([0x6a,0x74,0x69])],_0x4c27dd=window[_0x183c16([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3d3ebf[_0x183c16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x3d3ebf[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4026e7={..._0x1d2bb5,[_0x183c16([0x6a,0x74,0x69])]:_0x3d3ebf[_0x183c16([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x3d3ebf[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4026e7[_0x183c16([0x76,0x63])],_0x4eda4f(_0x4026e7)==_0x4c27dd;}}}async function _0x3c8bb5(){let _0x399ed8=!0x0;try{const _0x29167c=_0x5cf533[_0x183c16([0x73,0x70,0x6c,0x69,0x74])](_0x183c16([0x2e])),[_0x16bcf9,_0x3646d4,_0x1058a3]=_0x29167c;return _0x7c0822(_0x16bcf9),await _0x4942d4(_0x16bcf9,_0x3646d4,_0x1058a3),_0x399ed8;}catch{return!0x1;}function _0x7c0822(_0x306a14){const _0x184be5=_0x2c284b(_0x306a14);_0x184be5&&_0x184be5[_0x183c16([0x61,0x6c,0x67])]==_0x183c16([0x45,0x53,0x32,0x35,0x36])||(_0x399ed8=!0x1);}async function _0x4942d4(_0x39496,_0x1fc216,_0x463a50){const _0x471cad=window[_0x183c16([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x183c16([0x66,0x72,0x6f,0x6d])](_0x316ab5(_0x463a50),_0x2bf8a6=>_0x2bf8a6[_0x183c16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x4089a5=new window[(_0x183c16([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x183c16([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x39496+_0x183c16([0x2e])+_0x1fc216),_0x4d9544=window[_0x183c16([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x183c16([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4d9544)return;const _0x472d2f=await _0x4d9544[_0x183c16([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x183c16([0x6a,0x77,0x6b]),_0x5f048f,{[_0x183c16([0x6e,0x61,0x6d,0x65])]:_0x183c16([0x45,0x43,0x44,0x53,0x41]),[_0x183c16([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x183c16([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x183c16([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4d9544[_0x183c16([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x183c16([0x6e,0x61,0x6d,0x65])]:_0x183c16([0x45,0x43,0x44,0x53,0x41]),[_0x183c16([0x68,0x61,0x73,0x68])]:{[_0x183c16([0x6e,0x61,0x6d,0x65])]:_0x183c16([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x472d2f,_0x471cad,_0x4089a5)||(_0x399ed8=!0x1);}}function _0x2c284b(_0x5478e5){return _0x5478e5[_0x183c16([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x183c16([0x65,0x79]))?JSON[_0x183c16([0x70,0x61,0x72,0x73,0x65])](_0x316ab5(_0x5478e5)):null;}function _0x316ab5(_0x511124){return window[_0x183c16([0x61,0x74,0x6f,0x62])](_0x511124[_0x183c16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x183c16([0x2b]))[_0x183c16([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x183c16([0x2f])));}function _0x4eda4f(_0x2b3fb1){let _0x57cd1c=0x1505;function _0x2fc33e(_0x3a8ed1){for(let _0x304820=0x0;_0x304820<_0x3a8ed1[_0x183c16([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x304820++){const _0x5e1533=_0x3a8ed1[_0x183c16([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x304820);_0x57cd1c=(_0x57cd1c<<0x5)+_0x57cd1c+_0x5e1533,_0x57cd1c&=_0x57cd1c;}}function _0x428471(_0x48e4b3){Array[_0x183c16([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x48e4b3)?_0x48e4b3[_0x183c16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x428471):_0x48e4b3&&typeof _0x48e4b3==_0x183c16([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x183c16([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x48e4b3)[_0x183c16([0x73,0x6f,0x72,0x74])]()[_0x183c16([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3658ca,_0x478745])=>{_0x2fc33e(_0x3658ca),_0x428471(_0x478745);}):_0x2fc33e(window[_0x183c16([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x48e4b3));}return _0x428471(_0x2b3fb1),_0x57cd1c>>>0x0;}function _0x88d875(_0x18c609){return _0x18c609[_0x183c16([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x183c16([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x183c16([0x30]));}function _0x5c82ba(_0x22cb24){return _0x22cb24[_0x183c16([0x73,0x70,0x6c,0x69,0x74])]('')[_0x183c16([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x183c16([0x6a,0x6f,0x69,0x6e])]('');}function _0x4022bb(){}function _0x183c16(_0x51cb73){return _0x51cb73['map'](_0x4b1c8e=>String['fromCharCode'](_0x4b1c8e))['join']('');}_0x36c7fd(await _0x547192());}(this);}['_moveSelectionToFootnoteDefinition'](_0x3590db){const {plugins:_0x5f17d5,editing:_0x4c5b56,model:_0x54d087}=this['editor'],_0x4715e2=_0x5f17d5['get'](f)['getFootnote'](_0x3590db);return!!_0x4715e2&&(_0x54d087['change'](_0x537323=>{_0x537323['setSelection'](_0x537323['createPositionAt'](_0x4715e2['definition'],'end'));}),_0x4c5b56['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x38fdef){const {plugins:_0x6fbc42,editing:_0x19d7e9,model:_0x227e95}=this['editor'],_0x5de53e=_0x6fbc42['get'](f)['getFootnote'](_0x38fdef);return!!_0x5de53e&&(_0x227e95['change'](_0x5e4a22=>{_0x5e4a22['setSelection'](_0x5de53e['reference'],'on');}),_0x19d7e9['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x90f63b}=this['editor']['model'],_0x21c631=this['editor']['config']['get']('footnotes.multiBlock');_0x90f63b['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x90f63b['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x90f63b['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x21c631?_0x90f63b['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x90f63b['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x90f63b['addChildCheck'](_0x31c907=>{for(const _0x49a721 of _0x31c907)if('footnoteDefinition'===_0x49a721['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x59b32a}=this,{conversion:_0x34eeb5,editing:_0x40e761}=_0x59b32a,{t:t}=_0x59b32a['locale'];_0x34eeb5['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3fcb50,{writer:_0x56af6b,consumable:_0x15b24a})=>{const _0x2c2bf0=_0x3fcb50['getChild'](0x0);if(!_0x2c2bf0||!_0x2c2bf0['is']('element','a'))return null;const _0x393c42=_0x2c2bf0['getAttribute']('href')||'';if(!_0x393c42['startsWith']('#'))return null;const _0x3915a3=_0x393c42['replace'](/^#/,'');if(!_0x3915a3)return null;_0x15b24a['consume'](_0x2c2bf0,{'name':!0x0,'attributes':['href']});for(const {item:_0x2c434b}of _0x40e761['view']['createRangeIn'](_0x2c2bf0))_0x2c434b['is']('$textProxy')?_0x15b24a['consume'](_0x2c434b['textNode'],{'name':!0x0}):_0x2c434b['is']('element')&&_0x15b24a['consume'](_0x2c434b,{'name':!0x0});return _0x56af6b['createElement']('footnoteRef',{'footnoteId':_0x3915a3});}}),_0x34eeb5['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4b5690,{writer:_0x417fa8})=>b(_0x4b5690,_0x417fa8)}),_0x34eeb5['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x552857,{writer:_0x19846d})=>{const _0x30cb72=_0x552857['getAttribute']('footnoteCounter');return _0x405bd7(b(_0x552857,_0x19846d),_0x19846d,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x30cb72)});}});}['_defineDefinitionsConverters'](){const {editor:_0x307bab}=this,{t:t}=_0x307bab['locale'],{conversion:_0x4c2677}=_0x307bab;_0x4c2677['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4c2677['for']('upcast')['add'](_0x562e90=>{_0x562e90['on']('element:ol',(_0x2a9235,_0x14cff9,_0x14032c)=>{const _0x1a3179=_0x14cff9['viewItem'];if(!_0x1a3179['hasClass']('footnotes-list')||!_0x14cff9['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x14032c['consumable']['consume'](_0x1a3179,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x13ca2f,modelCursor:_0x77ab61}=_0x14032c['convertChildren'](_0x14cff9['viewItem'],_0x14cff9['modelCursor']);_0x14cff9['modelRange']=_0x13ca2f,_0x14cff9['modelCursor']=_0x77ab61;}),_0x562e90['on']('element:hr',(_0x19fd81,_0x4545c7,_0x21f58f)=>{const _0x3ccb7e=_0x4545c7['viewItem'];_0x3ccb7e['hasClass']('footnotes-divider')&&_0x4545c7['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x21f58f['consumable']['consume'](_0x3ccb7e,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4c2677['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x462707,{writer:_0x408ccd})=>D(_0x408ccd)}),_0x4c2677['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x159ebd,{writer:_0x1518ba})=>{const _0x1a126c=D(_0x1518ba,{'data-footnotes-list-label':t('Footnotes')}),_0x4fa723=_0x405bd7(_0x1a126c,_0x1518ba,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1518ba['setCustomProperty']('footnotesDefinitions',!0x0,_0x4fa723),_0x4fa723;}});}['_defineDefinitionConverters'](){const {editor:_0x189814}=this,{conversion:_0x1345a5,locale:_0x326a79}=_0x189814,_0x38a218=_0x189814['config']['get']('footnotes.multiBlock');_0x1345a5['for']('upcast')['add'](_0x4a3acb=>{_0x4a3acb['on']('element:li',(_0x4d0d82,_0x5befdc,_0x47acb2)=>{const _0x3b38aa=_0x5befdc['viewItem'];if(!_0x3b38aa['hasClass']('footnote-definition')||!_0x3b38aa['getAttribute']('id'))return;const _0xb732ef=_0x3b38aa['parent'];if(!_0xb732ef['is']('element','ol')||!_0xb732ef['hasClass']('footnotes-list'))return;if(!_0x47acb2['consumable']['test'](_0x3b38aa,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x12f6e7=_0x47acb2['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3b38aa['getAttribute']('id')});if(!_0x47acb2['safeInsert'](_0x12f6e7,_0x5befdc['modelCursor']))return;_0x47acb2['consumable']['consume'](_0x3b38aa,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x395e79=Array['from'](_0x3b38aa['getChildren']())['find'](_0x127fc0=>_0x127fc0['is']('element')&&_0x127fc0['hasClass']('footnote-content'));for(const _0x3d19d6 of _0x3b38aa['getChildren']())_0x3d19d6['is']('element')&&(_0x47acb2['consumable']['consume'](_0x3d19d6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x47acb2['consumable']['consume'](_0x3d19d6,{'name':!0x0,'classes':'footnote-content'}));if(_0x395e79){if(_0x38a218)_0x47acb2['convertChildren'](_0x395e79,_0x12f6e7);else{const _0xd75d30=_0x47acb2['writer']['createElement']('footnoteInlineContent');_0x47acb2['writer']['insert'](_0xd75d30,_0x12f6e7),_0x47acb2['convertChildren'](_0x395e79,_0xd75d30);}}_0x47acb2['updateConversionResult'](_0x12f6e7,_0x5befdc);});}),_0x1345a5['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4b2d89,{writer:_0x2c6c2a})=>y(_0x4b2d89,_0x2c6c2a,_0x326a79,{'dataPipeline':!0x0})}),_0x1345a5['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x9a223f,{writer:_0x1ac906})=>y(_0x9a223f,_0x1ac906,_0x326a79)});}['_defineBogusParagraphConverters'](){const {editor:_0x1b1591}=this,{conversion:_0x569772}=_0x1b1591;_0x1b1591['config']['get']('footnotes.multiBlock')?(_0x569772['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x569772['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x1b1591['model']['document'],'change:data',()=>{!function(_0x246641,_0x21f511){const _0x2b7c9c=_0x246641['document']['differ'],_0x3896cc=new Set();for(const _0x32ff48 of _0x2b7c9c['getChanges']()){const _0xfea370='attribute'==_0x32ff48['type']?_0x32ff48['range']['start']['parent']:_0x32ff48['position']['parent'];_0xfea370['is']('element','footnoteDefinition')&&_0x3896cc['add'](_0xfea370);}for(const _0x57b5bf of _0x3896cc['values']()){const _0x4436be=Array['from'](_0x57b5bf['getChildren']())['filter'](_0x865191=>v(_0x865191,_0x21f511['mapper']));for(const _0x3b0e3e of _0x4436be)_0x21f511['reconvertItem'](_0x3b0e3e);}}(_0x1b1591['model'],_0x1b1591['editing']);})):(_0x569772['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x569772['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x1f7fba,{writer:_0x115604})=>{const _0x475d0a=_0x115604['createContainerElement']('span');return _0x115604['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x475d0a),_0x475d0a;}}));}['_defineKeyboardHandlers'](){const {editor:_0x2474d2}=this,{editing:_0xaaf105,t:t}=_0x2474d2,_0x189b8d=_0x2474d2['model']['document']['selection'];_0x2474d2['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x2474d2['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0xaaf105['view']['document'],'enter',(_0x4b4415,_0x136638)=>{const _0x5e223f=function(_0x3e19e5){const _0x150e4b=_0x3e19e5['getSelectedElement']();if(_0x150e4b?.['is']('element','footnoteRef'))return _0x150e4b;return null;}(_0x189b8d);if(_0x5e223f){const _0x2c6959=_0x5e223f['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2c6959),_0x136638['preventDefault'](),_0x4b4415['stop']();}},{'context':_0x350a6e});}['_defineClickHandlers'](){const {editor:_0x1ba325}=this,{editing:_0x139d9d}=_0x1ba325;_0x1ba325['editing']['view']['addObserver'](_0x1e3325),_0x1ba325['editing']['view']['addObserver'](_0x14f00e);let _0x8bdfd2=!0x1;this['listenTo'](_0x139d9d['view']['document'],'pointerdown',(_0x5e6efe,_0x48a613)=>{const {target:_0x24cbda}=_0x48a613,_0x302690=_0x139d9d['view']['document']['selection'];_0x8bdfd2=!!(_0x24cbda?.['is']('element','a')&&_0x24cbda['parent']?.['is']('element','sup')&&_0x24cbda['parent']['hasClass']('footnote'))&&_0x302690['getSelectedElement']()===_0x24cbda['parent'];},{'priority':'high'}),this['listenTo'](_0x139d9d['view']['document'],'click',(_0x22c6d7,_0x58f343)=>{const {target:_0x3a6d69}=_0x58f343;if(!_0x3a6d69?.['is']('element','a'))return;if(_0x3a6d69['parent']?.['is']('element','sup')&&_0x3a6d69['parent']['hasClass']('footnote')&&!_0x8bdfd2)return void _0x58f343['preventDefault']();let _0x9ba637=_0x3a6d69['getAttribute']('href');if(!_0x9ba637?.['startsWith']('#'))return;_0x9ba637=_0x9ba637['slice'](0x1);let _0x4406d6=!0x1;(_0x9ba637['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x9ba637['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x9ba637))&&(_0x4406d6=!0x0),_0x4406d6&&(_0x58f343['preventDefault'](),_0x22c6d7['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x652c50}={}){return(_0x35a4b5,{writer:_0xb125ea})=>{if(!g(_0x35a4b5))return null;if(!_0x652c50)return _0xb125ea['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x29b8c1=_0xb125ea['createContainerElement']('p');return _0xb125ea['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x29b8c1),_0x29b8c1;};}function g(_0x9cc191){const {parent:_0x15172c}=_0x9cc191;if(!_0x15172c?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x15172c['childCount'])return!0x1;for(const _0x286390 of _0x9cc191['getAttributeKeys']())if(!_0x286390['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x286390)return!0x1;return!0x0;}function v(_0x28f2ce,_0x290b94){if(!_0x28f2ce['is']('element','paragraph'))return!0x1;const _0x57981d=_0x290b94['toViewElement'](_0x28f2ce);return!!_0x57981d&&g(_0x28f2ce)!==_0x57981d['is']('element','span');}function Q(_0x84659d){return _0x350a6e(_0x84659d)&&_0x84659d['is']('containerElement')&&!!_0x84659d['getCustomProperty']('footnotesDefinitions');}function D(_0x2802d3,_0x52cbdc={}){const _0x479ece=_0x2802d3['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x4509eb=_0x2802d3['createContainerElement']('ol',{'class':'footnotes-list'},_0x2802d3['createSlot']());return _0x2802d3['createContainerElement']('div',{'class':'footnotes',..._0x52cbdc},[_0x479ece,_0x4509eb]);}function b(_0x4425e9,_0x1d6266){const _0x493f41=_0x4425e9['getAttribute']('footnoteId'),_0x5555a8=_0x4425e9['getAttribute']('footnoteCounter'),_0xa4665f=_0x1d6266['createUIElement']('a',{'href':'#'+_0x493f41},function(_0x5f37d5){const _0x6a597f=this['toDomElement'](_0x5f37d5);return _0x6a597f['textContent']=_0x5555a8,_0x6a597f;}),_0x5c65fc=_0x1d6266['createContainerElement']('sup',{'id':'ref-'+_0x493f41,'class':'footnote'},[_0xa4665f]);return _0x5c65fc['getFillerOffset']=()=>null,_0x5c65fc;}function y(_0x1cf19f,_0x2ec476,_0x4ccdbc,{dataPipeline:_0x44eabc}={}){const {t:t}=_0x4ccdbc,_0x35aa63=_0x1cf19f['getAttribute']('footnoteId'),_0x4390bd=_0x2ec476['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x35aa63},function(_0x551474){const _0x575484=this['toDomElement'](_0x551474);return _0x575484['innerText']='^',_0x575484;}),_0x190cee=_0x44eabc?_0x2ec476['createContainerElement']('div',{'class':'footnote-content'}):_0x45537b(_0x2ec476['createEditableElement']('div',{'class':'footnote-content'}),_0x2ec476,{'label':t('Footnote\x20content.')});return _0x2ec476['insert'](_0x2ec476['createPositionAt'](_0x190cee,0x0),_0x2ec476['createSlot']()),_0x2ec476['createContainerElement']('li',{'class':'footnote-definition','id':_0x35aa63},[_0x4390bd,_0x190cee]);}class e extends _0x266e5d{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x552f2b];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x347190}=this,{plugins:_0x91ae00,model:_0x410135}=_0x347190,_0x317b3e=_0x91ae00['get'](_0x552f2b),_0xf48f92=_0x91ae00['get'](f);this['listenTo'](_0x317b3e,'outputTransformation',(_0x39cca9,_0x2b7a66)=>{const _0x1d43c3=l(_0x410135['createRangeIn'](_0x2b7a66['content']));if(!_0x1d43c3['length'])return;const _0x2b7859=_0xf48f92['getFootnotes'](),_0x3b1794=_0x1d43c3['reduce']((_0x4b66ca,_0x1dcae2)=>{const _0x5f07e3=_0x2b7859['find'](_0x1158c3=>_0x1158c3['id']===_0x1dcae2);if(_0x5f07e3){const _0xcd7c6b=_0x347190['data']['toView'](_0x5f07e3['definition'],{'isClipboardPipeline':!0x0}),_0x15b782=_0x347190['data']['htmlProcessor']['toData'](_0xcd7c6b);_0x4b66ca[_0x5f07e3['id']]=_0x15b782;}return _0x4b66ca;},Object['create'](null));_0x2b7a66['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3b1794));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2389d1}=this,{model:_0x156894,plugins:_0x2aa938}=_0x2389d1,{view:_0x2fd873}=_0x2389d1['editing'],_0x18f0e5=_0x2aa938['get'](_0x552f2b),_0x3aef80=_0x2aa938['get'](f),_0x5718ec=_0x2389d1['config']['get']('footnotes.multiBlock');let _0x481d1f=null;this['listenTo'](_0x2fd873['document'],'clipboardInput',(_0x34b385,_0x52b73c)=>{const _0x2e0028=_0x52b73c['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x481d1f=_0x2e0028?JSON['parse'](_0x2e0028):null;}),this['listenTo'](_0x18f0e5,'contentInsertion',(_0x3e7c7f,_0x2d29ae)=>{const _0x2aef41=_0x2d29ae['sourceEditorId']===this['editor']['id'];_0x2aef41&&'drop'===_0x2d29ae['method']||_0x156894['change'](_0x422e55=>{let _0xa5fab6=_0x3aef80['getFootnotesDefinitionsObjectElement']();const _0x4d1afd=!!_0xa5fab6&&Array['from'](_0x156894['document']['selection']['getSelectedBlocks']())['includes'](_0xa5fab6);if(!_0x481d1f&&function(_0x42a089){for(const {item:_0x1e92fd}of _0x42a089)if(_0x1e92fd['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x156894['createRangeIn'](_0x2d29ae['content']))&&(_0x481d1f=function(_0x1a0d68,_0x4066d6){const _0x4cafa6=c(_0x1a0d68,_0x4066d6);if(!_0x4cafa6)return null;const _0x4fd8aa=Object['create'](null);for(const _0x3acdce of _0x4cafa6['getChildren']())_0x3acdce['is']('element','footnoteDefinition')&&_0x3acdce['hasAttribute']('footnoteId')&&(_0x4fd8aa[_0x3acdce['getAttribute']('footnoteId')]=_0x1a0d68['cloneElement'](_0x3acdce,!0x0));return Object['keys'](_0x4fd8aa)['length']?_0x4fd8aa:null;}(_0x422e55,_0x2d29ae['content'])),(_0xa5fab6&&!_0x4d1afd||!_0xa5fab6&&!_0x481d1f)&&function(_0x381092,_0x189668){const _0x252bbc=[];for(const {item:_0xbe8a07}of _0x381092['createRangeIn'](_0x189668))_0xbe8a07['is']('element','footnotesDefinitions')&&_0x252bbc['push'](_0xbe8a07);for(const _0x5c8577 of _0x252bbc)_0x381092['remove'](_0x5c8577);}(_0x422e55,_0x2d29ae['content']),!_0x481d1f)return;const {selection:_0x52e69d}=_0x156894['document'],_0x2054d7=_0x52e69d['getFirstRange']()['root'];_0xa5fab6&&!_0x4d1afd||(_0xa5fab6=c(_0x422e55,_0x2d29ae['content']),_0xa5fab6||=_0x3aef80['_insertEmptyFootnotesDefinitionsContainer'](_0x422e55,_0x2054d7));const _0x4f5fe7=Array['from'](_0x52e69d['getRanges']())['flatMap'](l),_0x4c2118=function(_0x5efdb2,_0x3e9d47,_0x5b1e28){const _0x4d520d=Object['create'](null);for(const {item:_0x1767cd}of _0x5efdb2['createRangeIn'](_0x3e9d47))if(_0x1767cd['is']('element','footnoteRef')){const _0x166d82=_0x1767cd['getAttribute']('footnoteId');if(!_0x5b1e28(_0x166d82))continue;_0x4d520d[_0x166d82]||(_0x4d520d[_0x166d82]=_0x42759a()),_0x5efdb2['setAttribute']('footnoteId',_0x4d520d[_0x166d82],_0x1767cd);}return _0x4d520d;}(_0x422e55,_0x2d29ae['content'],_0x302676=>{if(!_0x2aef41)return!0x0;return!!_0x3aef80['getFootnote'](_0x302676)&&!_0x4f5fe7['includes'](_0x302676);});for(const [_0x176120,_0xb31eed]of Object['entries'](_0x481d1f)){const _0x3fc43e=_0x4c2118[_0x176120]||_0x176120;let _0x15ea7c;if('string'!=typeof _0xb31eed)_0x15ea7c=_0xb31eed,_0x3fc43e!==_0x176120&&_0x422e55['setAttribute']('footnoteId',_0x3fc43e,_0x15ea7c);else{_0x15ea7c=_0x422e55['createElement']('footnoteDefinition',{'footnoteId':_0x3fc43e});const _0x5f01af=_0x2389d1['data']['htmlProcessor']['toView'](_0xb31eed);let _0x489681;if(_0x5718ec)_0x489681=_0x2389d1['data']['toModel'](_0x5f01af,_0x15ea7c);else{_0x489681=_0x422e55['createElement']('footnoteInlineContent');const _0x20d94b=_0x2389d1['data']['toModel'](_0x5f01af,_0x489681);_0x422e55['insert'](_0x20d94b,_0x489681);}_0x422e55['append'](_0x489681,_0x15ea7c);}_0x422e55['insert'](_0x15ea7c,_0xa5fab6,'end');}_0x481d1f=null;});});}}function c(_0x58d702,_0x29e8fa){for(const {item:_0x208e09}of _0x58d702['createRangeIn'](_0x29e8fa))if(_0x208e09['is']('element','footnotesDefinitions'))return _0x208e09;return null;}function l(_0x4abd04){const _0x5e75ce=new Set();for(const {item:_0x3dc5ed}of _0x4abd04)_0x3dc5ed['is']('element','footnoteRef')&&_0x5e75ce['add'](_0x3dc5ed['getAttribute']('footnoteId'));return Array['from'](_0x5e75ce);}class i extends _0x266e5d{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x40d7c9}=this,{componentFactory:_0x383c6d}=_0x40d7c9['ui'];_0x383c6d['add']('insertFootnote',E(_0x40d7c9,_0xdc759d)),_0x383c6d['add']('menuBar:insertFootnote',E(_0x40d7c9,_0x40eb09)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x39f963=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x3a6a1c;for(const _0x576397 in _0x39f963){const _0x516444=_0x576397,_0xee4e30=_0x39f963[_0x516444];if('footnotesLicenseKeyValid'==_0xee4e30||'footnotesLicenseKeyInvalid'==_0xee4e30||'footnotesLicenseKeyExpired'==_0xee4e30||'footnotesLicenseKeyDomainLimit'==_0xee4e30||'footnotesLicenseKeyNotAllowed'==_0xee4e30||'footnotesLicenseKeyEvaluationLimit'==_0xee4e30||'footnotesLicenseKeyUsageLimit'==_0xee4e30){delete _0x39f963[_0x516444],_0x3a6a1c=_0xee4e30,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x3a6a1c&&_0x39f963['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x3a6a1c&&_0x39f963['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x3a6a1c&&_0x39f963['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x3a6a1c&&_0x39f963['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x3a6a1c&&_0x39f963['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x3a6a1c&&_0x39f963['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x567c73,_0xa0bbf7){const _0x43e3d6=_0x567c73['commands']['get']('insertFootnote');return _0x208e4b=>{const {t:t}=_0x208e4b,_0x3f6368=new _0xa0bbf7(_0x208e4b),_0x5e8437=_0x3f6368 instanceof _0x40eb09;return _0x3f6368['bind']('isEnabled')['to'](_0x43e3d6,'isEnabled'),_0x3f6368['set']({'label':t(_0x5e8437?'Footnote':'Insert\x20footnote'),'icon':_0x1d1c99,'tooltip':!0x0}),_0x3f6368['on']('execute',()=>{_0x43e3d6['execute'](),_0x567c73['editing']['view']['focus']();}),_0x3f6368;};}class lt extends _0x266e5d{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 _0x1dc1c9{['refresh'](){const {editor:_0x55e60d}=this,_0x31fc9a=_0x55e60d['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x31fc9a,this['value']=_0x31fc9a?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x3e10bd}){const {editor:_0xe393bd}=this,_0x487551=_0xe393bd['plugins']['get'](f),_0x5f58d0=_0x487551['getFootnotesDefinitionsObjectElement']();_0x5f58d0&&W['includes'](_0x3e10bd)&&_0xe393bd['model']['change'](_0x4c588c=>{_0x4c588c['setAttribute']('footnotesListStyle',_0x3e10bd,_0x5f58d0),_0x487551['_updateFootnotesCounters'](_0x4c588c);});}}class C extends _0x1dc1c9{['refresh'](){const {editor:_0x184251}=this,_0x3b3ace=_0x184251['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3b3ace,this['value']=_0x3b3ace?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x15c23c}){const {editor:_0x16308e}=this,_0x1a5597=_0x16308e['plugins']['get'](f),_0x567694=_0x1a5597['getFootnotesDefinitionsObjectElement']();_0x567694&&Number['isInteger'](_0x15c23c)&&_0x16308e['model']['change'](_0x349fb9=>{_0x349fb9['setAttribute']('footnotesListStart',_0x15c23c,_0x567694),_0x1a5597['_updateFootnotesCounters'](_0x349fb9);});}}class P extends _0x266e5d{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3f288a}=this;_0x3f288a['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x3f288a['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x3f288a['commands']['add']('footnotesStyle',new S(_0x3f288a)),_0x3f288a['commands']['add']('footnotesStart',new C(_0x3f288a)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x45b130}=this,{schema:_0x42e5b2}=_0x45b130['model'];_0x42e5b2['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x18cdaa}=this,{conversion:_0x571824,model:_0x499b37}=_0x18cdaa,{schema:_0x2be836}=_0x499b37;_0x571824['for']('upcast')['add'](_0x38e57b=>{_0x38e57b['on']('element:ol',(_0x37f136,_0x32849b,_0x5a1cb3)=>{const _0x415294=_0x32849b['viewItem'],_0x4312a6=_0x32849b['modelCursor']?.['parent'];_0x415294['hasClass']('footnotes-list')&&_0x4312a6?.['is']('element','footnotesDefinitions')&&(function(_0x21a579,_0x50e830,_0x3dc7ce,_0x3219f3){if(!_0x3219f3['checkAttribute'](_0x50e830,'footnotesListStart'))return;let _0x14eecb=0x1;const _0x4a5837=_0x3dc7ce['consumable']['consume'](_0x21a579,{'attributes':'start'});if(_0x4a5837){const _0x2e1711=Number['parseInt'](_0x21a579['getAttribute']('start'),0xa);Number['isNaN'](_0x2e1711)||(_0x14eecb=_0x2e1711);}!_0x4a5837&&_0x50e830['hasAttribute']('footnotesListStart')||_0x3dc7ce['writer']['setAttribute']('footnotesListStart',_0x14eecb,_0x50e830);}(_0x415294,_0x4312a6,_0x5a1cb3,_0x2be836),function(_0xaaccd7,_0x2bbc88,_0x5b2388,_0x540662){if(!_0x540662['checkAttribute'](_0x2bbc88,'footnotesListStyle'))return;let _0xb80d26='decimal',_0x52ed4c=!0x1;if(_0x5b2388['consumable']['consume'](_0xaaccd7,{'attributes':'type'})){const _0x5e930a={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0xaaccd7['getAttribute']('type')];_0x5e930a&&(_0xb80d26=_0x5e930a),_0x52ed4c=!0x0;}_0x5b2388['consumable']['consume'](_0xaaccd7,{'styles':'list-style-type'})&&(_0xb80d26=function(_0x12efc1){switch(_0x12efc1){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x12efc1;}}(_0xaaccd7['getStyle']('list-style-type')),_0x52ed4c=!0x0),!_0x52ed4c&&_0x2bbc88['hasAttribute']('footnotesListStyle')||_0x5b2388['writer']['setAttribute']('footnotesListStyle',_0xb80d26,_0x2bbc88);}(_0x415294,_0x4312a6,_0x5a1cb3,_0x2be836));});}),_0x571824['for']('downcast')['add'](_0x23665a=>{_0x23665a['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x4118ae,_0x2adb85,_0x251741)=>{if(!_0x251741['consumable']['consume'](_0x2adb85['item'],_0x4118ae['name']))return;const _0x4e146b=M(_0x2adb85['item'],_0x251741['mapper']),{attributeNewValue:_0x345fc0}=_0x2adb85;null==_0x345fc0||0x1===_0x345fc0?_0x251741['writer']['removeAttribute']('start',_0x4e146b):_0x251741['writer']['setAttribute']('start',String(_0x345fc0),_0x4e146b);}),_0x23665a['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x5ccedf,_0x3e4664,_0x168c46)=>{if(!_0x168c46['consumable']['consume'](_0x3e4664['item'],_0x5ccedf['name']))return;const _0x3c8069=M(_0x3e4664['item'],_0x168c46['mapper']),{attributeNewValue:_0xa49e53}=_0x3e4664;_0xa49e53&&'decimal'!==_0xa49e53?_0x168c46['writer']['setStyle']('list-style-type',_0xa49e53,_0x3c8069):_0x168c46['writer']['removeStyle']('list-style-type',_0x3c8069);});});}['_definePostfixer'](){const {editor:_0x3f556b}=this,{model:_0x43e49d}=_0x3f556b,_0x5e571c=_0x3f556b['plugins']['get'](f),_0x4d168b=this['_getDefaultListStyle'](),_0x5dd94a=this['_getDefaultStartIndex']();_0x43e49d['document']['registerPostFixer'](_0x10b4a8=>{const _0x1d5aee=_0x43e49d['document']['differ']['getChanges']();let _0x4be364=!0x1;for(const _0x452511 of _0x1d5aee){if('insert'!==_0x452511['type']||'$text'===_0x452511['name'])continue;const _0x3efc7e=_0x43e49d['createRangeOn'](_0x452511['position']['nodeAfter']);for(const _0x576315 of _0x3efc7e['getItems']())_0x576315['is']('element','footnotesDefinitions')&&(!_0x576315['hasAttribute']('footnotesListStart')&&_0x43e49d['schema']['checkAttribute'](_0x576315,'footnotesListStart')&&(_0x10b4a8['setAttribute']('footnotesListStart',_0x5dd94a,_0x576315),_0x4be364=!0x0),!_0x576315['hasAttribute']('footnotesListStyle')&&_0x43e49d['schema']['checkAttribute'](_0x576315,'footnotesListStyle')&&(_0x10b4a8['setAttribute']('footnotesListStyle',_0x4d168b,_0x576315),_0x4be364=!0x0));}return _0x4be364&&_0x5e571c['_updateFootnotesCounters'](_0x10b4a8),_0x4be364;});}['_defineFormatter'](){const {editor:_0x286205}=this;_0x286205['plugins']['get'](f)['setFootnoteFormatter'](_0x1e1c92=>this['_formatFootnoteListValue'](_0x1e1c92));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x31023f,value:_0xc8b454,digits:_0x2c4ce1}){const _0x223ae7=_0x31023f['getAttribute']('footnotesListStyle'),_0x1a1664=_0x31023f['getAttribute']('footnotesListStart'),_0x48a598=Math['floor'](_0xc8b454)+(_0x1a1664??0x1)-0x1;switch(_0x223ae7){case'decimal-leading-zero':return function(_0x5e878c,_0x54899e){return String(_0x5e878c)['padStart'](_0x54899e,'0');}(_0x48a598,Math['max'](0x2,_0x2c4ce1));case'lower-alpha':case'lower-latin':return N(_0x48a598,!0x1);case'upper-alpha':case'upper-latin':return N(_0x48a598,!0x0);case'lower-roman':return X(_0x48a598,!0x1);case'upper-roman':return X(_0x48a598,!0x0);default:return String(_0x48a598);}}}function M(_0x410c13,_0x3ae53f){const _0x777ad9=_0x3ae53f['toViewElement'](_0x410c13);return Array['from'](_0x777ad9['getChildren']())['find'](_0x45f758=>_0x45f758['is']('element','ol')&&_0x45f758['hasClass']('footnotes-list'));}function N(_0x1ad226,_0x322aa7){let _0x1bcea0='',_0x1fe7b8=_0x1ad226;for(;_0x1fe7b8>0x0;){const _0x89e79d=(_0x1fe7b8-0x1)%0x1a;_0x1bcea0=String['fromCharCode'](0x61+_0x89e79d)+_0x1bcea0,_0x1fe7b8=Math['floor']((_0x1fe7b8-0x1)/0x1a);}return _0x322aa7?_0x1bcea0['toUpperCase']():_0x1bcea0;}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(_0x1c331f,_0x465694){let _0x4c8eda='',_0x3f458d=_0x1c331f;for(const {value:_0x478c4e,numeral:_0x2b11be}of V)for(;_0x3f458d>=_0x478c4e;)_0x4c8eda+=_0x2b11be,_0x3f458d-=_0x478c4e;return _0x465694?_0x4c8eda:_0x4c8eda['toLowerCase']();}class J extends _0x74243b{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x142692();['focusCycler'];constructor(_0x35e12c,{styleButtonViews:_0x8b0388,styleGridAriaLabel:_0x382e00}){super(_0x35e12c),(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'](_0x8b0388,_0x382e00),[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 _0x3b91a0 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3b91a0['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 _0x2e62d6=_0x276f3b=>_0x276f3b['stopPropagation']();this['keystrokes']['set']('arrowright',_0x2e62d6),this['keystrokes']['set']('arrowleft',_0x2e62d6),this['keystrokes']['set']('arrowup',_0x2e62d6),this['keystrokes']['set']('arrowdown',_0x2e62d6);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x59d918,_0x467f47){const _0x33cd21=new _0x74243b(this['locale']);return _0x33cd21['children']=_0x33cd21['createCollection'](),_0x33cd21['children']['addMany'](_0x59d918),_0x33cd21['setTemplate']({'tag':'div','attributes':{'aria-label':_0x467f47,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x33cd21['children']}),_0x33cd21['children']['delegate']('execute')['to'](this),_0x33cd21['focus']=function(){for(const _0xf3ae8b of this['children'])if(_0xf3ae8b instanceof _0xdc759d&&_0xf3ae8b['isOn'])return void _0xf3ae8b['focus']();this['children']['first']['focus']();},_0x33cd21['focusTracker']=new rt(),_0x33cd21['keystrokes']=new nt(),_0x33cd21['render'](),_0x33cd21['keystrokes']['listenTo'](_0x33cd21['element']),this['children']['add'](_0x33cd21),_0x33cd21;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x41d469=this['_createStartIndexPropertyView'](),_0x3dfe7f=[_0x41d469],_0x505d84=new it(this['locale'],_0x3dfe7f);return _0x505d84['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x505d84['buttonView']['bind']('isEnabled')['toMany'](_0x3dfe7f,'isEnabled',(..._0x3cc462)=>_0x3cc462['some'](_0x51be21=>_0x51be21)),_0x505d84['buttonView']['on']('change:isEnabled',(_0x1bdcfa,_0x399e36,_0x5da4a6)=>{_0x5da4a6||(_0x505d84['isCollapsed']=!0x0);}),this['children']['add'](_0x505d84),[_0x41d469,_0x505d84];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x1e75e5=new et(this['locale'],ot);return _0x1e75e5['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x1e75e5['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x1e75e5['fieldView']['on']('input',()=>{const _0x4e2ce4=_0x1e75e5['fieldView']['element'],_0x4aebd9=_0x4e2ce4['valueAsNumber'];Number['isNaN'](_0x4aebd9)?_0x1e75e5['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x4e2ce4['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x4aebd9}):_0x1e75e5['errorText']=t(_0x4aebd9<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x1e75e5;}}class j extends _0x266e5d{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0xa6f471,_0x52fca9];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4d3a1f}=this,{componentFactory:_0x336ea3}=_0x4d3a1f['ui'];_0x4d3a1f['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x336ea3['add']('footnotesStyle',function(_0xc2dd6a){return _0x16c18d=>{const {t:t}=_0x16c18d,_0x1196e9=_0xc2dd6a['commands']['get']('footnotesStyle'),_0xb6dacd=_0x10af08(_0x16c18d),{buttonView:_0x13cfa2}=_0xb6dacd;return _0xb6dacd['class']='ck-footnotes-styles-dropdown',_0xb6dacd['bind']('isEnabled')['to'](_0x1196e9,'isEnabled'),_0x13cfa2['set']({'label':t('Footnotes\x20style'),'icon':_0x1d1c99,'tooltip':!0x0}),_0xb6dacd['once']('change:isOpen',()=>{const _0x5d31e5=function({editor:_0xa1acb2,dropdownView:_0x2a8a5f}){const {t:t}=_0xa1acb2['locale'],_0x2f6914=t('Footnotes\x20definitions\x20styles'),_0x31fab7=function(_0x4fa0f4){const t=_0x4fa0f4['locale']['t'],_0x3b9b96=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x50842a},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x237c22},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4ab1ae},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x54fb8a},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x18322f},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x4021f3}];return _0x3b9b96['map'](function(_0x2bd4db){const _0x40a66f=_0x2bd4db['locale'];return({label:_0x801028,icon:_0x1ef0e3,tooltip:_0x28b161,style:_0x7b6ba7})=>{const _0x33ac2f=_0x2bd4db['commands']['get']('footnotesStyle'),_0x148dae=new _0xdc759d(_0x40a66f);return _0x148dae['set']({'label':_0x801028,'icon':_0x1ef0e3,'tooltip':_0x28b161}),_0x148dae['bind']('isOn')['to'](_0x33ac2f,'value',_0x4ef156=>_0x4ef156===_0x7b6ba7),_0x148dae['bind']('isEnabled')['to'](_0x33ac2f,'isEnabled'),_0x148dae['on']('execute',()=>{_0x2bd4db['execute']('footnotesStyle',{'value':_0x7b6ba7}),_0x2bd4db['editing']['view']['focus']();}),_0x148dae;};}(_0x4fa0f4));}(_0xa1acb2),_0x569e3a=new J(_0xa1acb2['locale'],{'styleGridAriaLabel':_0x2f6914,'styleButtonViews':_0x31fab7}),_0x381d0f=_0xa1acb2['commands']['get']('footnotesStart');return _0x569e3a['startIndexFieldView']['bind']('isEnabled')['to'](_0x381d0f),_0x569e3a['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x381d0f),_0x569e3a['on']('footnotesListStart',(_0x5bdfe0,_0x45ffd1)=>{_0xa1acb2['execute']('footnotesStart',{'value':_0x45ffd1['startIndex']});}),_0x569e3a['delegate']('execute')['to'](_0x2a8a5f),_0x569e3a;}({'editor':_0xc2dd6a,'dropdownView':_0xb6dacd});_0xb6dacd['panelView']['children']['add'](_0x5d31e5);}),_0xb6dacd;};}(_0x4d3a1f));}['afterInit'](){const {editor:_0x40c81b}=this,{t:t}=_0x40c81b['locale'],_0x168e5e=_0x40c81b['plugins']['get'](_0x52fca9),{defaultPositions:_0x5dd1fc}=_0x51e8cb;_0x168e5e['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x40c81b['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x550941=>{let _0x20f0d4=_0x550941['getFirstPosition']()?.['parent'];return _0x20f0d4?.['is']('$text')&&(_0x20f0d4=_0x20f0d4['parent']),_0x20f0d4?.['is']('element')?_0x20f0d4['findAncestor'](Q):null;},'positions':[_0x5dd1fc['southArrowNorth'],_0x5dd1fc['southArrowNorthMiddleWest'],_0x5dd1fc['southArrowNorthMiddleEast'],_0x5dd1fc['southArrowNorthWest'],_0x5dd1fc['southArrowNorthEast'],_0x5dd1fc['northArrowSouth'],_0x5dd1fc['northArrowSouthMiddleWest'],_0x5dd1fc['northArrowSouthMiddleEast'],_0x5dd1fc['northArrowSouthWest'],_0x5dd1fc['northArrowSouthEast'],_0x5dd1fc['viewportStickyNorth']]});}}class ft extends _0x266e5d{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-footnotes",
|
|
3
|
-
"version": "47.7.0-alpha.
|
|
3
|
+
"version": "47.7.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.7.0-alpha.
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.7.0-alpha.
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.7.0-alpha.
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.7.0-alpha.
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.7.0-alpha.
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.7.0-alpha.
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.7.0-alpha.
|
|
33
|
-
"ckeditor5": "47.7.0-alpha.
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.7.0-alpha.3",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.7.0-alpha.3",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.7.0-alpha.3",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.7.0-alpha.3",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.7.0-alpha.3",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.7.0-alpha.3",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.7.0-alpha.3",
|
|
33
|
+
"ckeditor5": "47.7.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 _0xcad823}from'ckeditor5/src/core.js';import{isWidget as _0x546ae2,toWidget as _0x3860b8,toWidgetEditable as _0x3b8abf}from'ckeditor5/src/widget.js';import{uid as _0x28149e}from'ckeditor5/src/utils.js';import{PointerObserver as _0x16f1fa,ClickObserver as _0x3bbf3b}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x1e4c32}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x18c967}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0xcad823{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x1e4c32];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1fb3e5}=this;_0x1fb3e5['config']['define']('footnotes.multiBlock',!0x0),_0x1fb3e5['commands']['add']('insertFootnote',new _0x18c967(_0x1fb3e5)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x176bbd){const _0x5e3fd3=_0x2603d5([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]),_0x42673b=0x47a28506,_0x25f7d9=0x47a50226^_0x42673b,_0x1cf91e=window[_0x2603d5([0x44,0x61,0x74,0x65])][_0x2603d5([0x6e,0x6f,0x77])](),_0x1640f8=_0x176bbd[_0x2603d5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3d42d2=new window[(_0x2603d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1ea5a2=>{_0x1640f8[_0x2603d5([0x6f,0x6e,0x63,0x65])](_0x2603d5([0x72,0x65,0x61,0x64,0x79]),_0x1ea5a2);}),_0x96086e={[_0x2603d5([0x6b,0x74,0x79])]:_0x2603d5([0x45,0x43]),[_0x2603d5([0x75,0x73,0x65])]:_0x2603d5([0x73,0x69,0x67]),[_0x2603d5([0x63,0x72,0x76])]:_0x2603d5([0x50,0x2d,0x32,0x35,0x36]),[_0x2603d5([0x78])]:_0x2603d5([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]),[_0x2603d5([0x79])]:_0x2603d5([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]),[_0x2603d5([0x61,0x6c,0x67])]:_0x2603d5([0x45,0x53,0x32,0x35,0x36])},_0x4036c1=_0x1640f8[_0x2603d5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x2603d5([0x67,0x65,0x74])](_0x2603d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xee5de1(){let _0x23b312,_0x4209d0=null,_0x11ce68=null;try{if(_0x4036c1==_0x2603d5([0x47,0x50,0x4c]))return _0x2603d5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x23b312=_0x155936(),!_0x23b312)return _0x2603d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x23b312[_0x2603d5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x11ce68=_0x2de233(_0x23b312[_0x2603d5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x23b312[_0x2603d5([0x6a,0x74,0x69])])),await _0x49480a()?_0x1dccd7()?_0x4f1f58()?_0x2603d5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x6849d0()?(_0x23b312[_0x2603d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x2603d5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x4209d0=_0x52b402(_0x2603d5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1cc27e()):_0x2603d5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x2603d5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x2603d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x2603d5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4f1f58(){const _0x460248=[_0x2603d5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x2603d5([0x74,0x72,0x69,0x61,0x6c])][_0x2603d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x23b312[_0x2603d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1cf91e/0x3e8:0xe10*_0x25f7d9;return _0x23b312[_0x2603d5([0x65,0x78,0x70])]<_0x460248;}function _0x1dccd7(){const _0x1ae7a5=_0x23b312[_0x2603d5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x1ae7a5&&(!!_0x1ae7a5[_0x2603d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2603d5([0x2a]))||!!_0x1ae7a5[_0x2603d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2603d5([0x46,0x4f,0x4f])));}function _0x6849d0(){const _0x213cd3=_0x23b312[_0x2603d5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x213cd3||0x0==_0x213cd3[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3c2873}=new URL(window[_0x2603d5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x213cd3[_0x2603d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3c2873))return!0x0;const _0x142583=_0x3c2873[_0x2603d5([0x73,0x70,0x6c,0x69,0x74])](_0x2603d5([0x2e]));return _0x213cd3[_0x2603d5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x5979fa=>_0x5979fa[_0x2603d5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2603d5([0x2a])))[_0x2603d5([0x6d,0x61,0x70])](_0x45fb17=>_0x45fb17[_0x2603d5([0x73,0x70,0x6c,0x69,0x74])](_0x2603d5([0x2e])))[_0x2603d5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3c5137=>_0x3c5137[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x142583[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2603d5([0x6d,0x61,0x70])](_0x4451e2=>Array(_0x142583[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4451e2[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x2603d5([0x66,0x69,0x6c,0x6c])](_0x4451e2[0x0]===_0x2603d5([0x2a])?_0x2603d5([0x2a]):'')[_0x2603d5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4451e2))[_0x2603d5([0x73,0x6f,0x6d,0x65])](_0x2f4188=>_0x142583[_0x2603d5([0x65,0x76,0x65,0x72,0x79])]((_0x3e3825,_0x4f8e7e)=>_0x2f4188[_0x4f8e7e]===_0x3e3825||_0x2f4188[_0x4f8e7e]===_0x2603d5([0x2a])));}function _0x1cc27e(){return _0x4209d0&&_0x11ce68?new window[(_0x2603d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5e7bdd,_0x1db2cd)=>{_0x4209d0[_0x2603d5([0x74,0x68,0x65,0x6e])](_0x5e7bdd,_0x1db2cd),_0x11ce68[_0x2603d5([0x74,0x68,0x65,0x6e])](_0x27e11d=>{_0x27e11d!=_0x2603d5([0x56,0x61,0x6c,0x69,0x64])&&_0x5e7bdd(_0x27e11d);},_0x1db2cd);}):_0x4209d0||_0x11ce68||_0x2603d5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2de233(_0x11c7fd,_0x21950d){return new window[(_0x2603d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xbc30ab=>{if(_0x4798c3())return _0xbc30ab(_0x2603d5([0x56,0x61,0x6c,0x69,0x64]));_0x3c562b(),_0x1640f8[_0x2603d5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x2603d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x414fc1=!0x1;const _0x18d0d7=_0x28149e();function _0x1abdf6(_0x29721e){return!!_0x29721e&&(typeof _0x29721e===_0x2603d5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x29721e===_0x2603d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x29721e[_0x2603d5([0x74,0x68,0x65,0x6e])]===_0x2603d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x29721e[_0x2603d5([0x63,0x61,0x74,0x63,0x68])]===_0x2603d5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34e574(_0x45ddd1){_0x43861f(_0x45ddd1)[_0x2603d5([0x74,0x68,0x65,0x6e])](_0x23931c=>{if(!_0x23931c||_0x23931c[_0x2603d5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x2603d5([0x6f,0x6b]))return _0x2603d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3aad18(_0x2bf5fa(_0x18d0d7+_0x21950d))!=_0x23931c[_0x2603d5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x2603d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x2603d5([0x56,0x61,0x6c,0x69,0x64]);})[_0x2603d5([0x74,0x68,0x65,0x6e])](_0xfc956f=>(_0x440d83(),_0xfc956f),()=>{const _0x37b672=_0x260c6b();return null==_0x37b672?(_0x440d83(),_0x2603d5([0x56,0x61,0x6c,0x69,0x64])):_0x2603d5(_0x1cf91e-_0x37b672>(0x63ae0106^_0x42673b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x2603d5([0x74,0x68,0x65,0x6e])](_0xbc30ab)[_0x2603d5([0x63,0x61,0x74,0x63,0x68])](()=>{_0xbc30ab(_0x2603d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x400cb4=0x47946b86^_0x42673b;function _0x440d83(){const _0x7cd57=_0x2603d5([0x6c,0x6c,0x63,0x74,0x2d])+_0x3aad18(_0x2bf5fa(_0x11c7fd)),_0x591bb4=_0x26efe0(_0x3aad18(window[_0x2603d5([0x4d,0x61,0x74,0x68])][_0x2603d5([0x63,0x65,0x69,0x6c])](_0x1cf91e/_0x400cb4)));window[_0x2603d5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2603d5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x7cd57,_0x591bb4);}function _0x260c6b(){const _0x2147f2=_0x2603d5([0x6c,0x6c,0x63,0x74,0x2d])+_0x3aad18(_0x2bf5fa(_0x11c7fd)),_0x77e088=window[_0x2603d5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x2603d5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2147f2);return _0x77e088?window[_0x2603d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x26efe0(_0x77e088),0x10)*_0x400cb4:null;}function _0x43861f(_0x3083bd){return new window[(_0x2603d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xcbfc66,_0x17c59d)=>{_0x3083bd[_0x2603d5([0x74,0x68,0x65,0x6e])](_0xcbfc66,_0x17c59d),window[_0x2603d5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x17c59d,0x47a351c6^_0x42673b);});}}_0x1640f8[_0x2603d5([0x6f,0x6e])](_0x2603d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x55aa79,_0x20df5f)=>{if(_0x20df5f[0x0]!=_0x11c7fd)return _0xbc30ab(_0x2603d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x20df5f[0x1]={..._0x20df5f[0x1],[_0x2603d5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x18d0d7};},{[_0x2603d5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2603d5([0x68,0x69,0x67,0x68])}),_0x1640f8[_0x2603d5([0x6f,0x6e])](_0x2603d5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x7bb0fd=>{_0x1abdf6(_0x7bb0fd[_0x2603d5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x414fc1=!0x0,_0x34e574(_0x7bb0fd[_0x2603d5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x2603d5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x2603d5([0x6c,0x6f,0x77])}),_0x3d42d2[_0x2603d5([0x74,0x68,0x65,0x6e])](()=>{_0x414fc1||_0xbc30ab(_0x2603d5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x4798c3(){return _0x1640f8[_0x2603d5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2603d5([0x76,0x69,0x65,0x77])][_0x2603d5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x2603d5([0x61,0x75,0x74,0x6f]);}function _0x3c562b(){_0x1640f8[_0x2603d5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x2603d5([0x76,0x69,0x65,0x77])][_0x2603d5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x2603d5([0x61,0x75,0x74,0x6f]);}}function _0x52b402(_0x488fa7){const _0x29f80f=[new window[(_0x2603d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x154460=>setTimeout(_0x154460,0x47abbbca^_0x42673b)),_0x3d42d2[_0x2603d5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x2603d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1c3b9d=>{let _0x2a7378=0x0;_0x1640f8[_0x2603d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2603d5([0x6f,0x6e])](_0x2603d5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0xa1491b,_0x58b869)=>{_0x58b869[0x0][_0x2603d5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x2a7378++,_0x2a7378==(0x47a280ee^_0x42673b)&&(_0x1c3b9d(),_0xa1491b[_0x2603d5([0x6f,0x66,0x66])]());});}))];return window[_0x2603d5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x2603d5([0x72,0x61,0x63,0x65])](_0x29f80f)[_0x2603d5([0x74,0x68,0x65,0x6e])](()=>_0x488fa7);}async function _0x50aeb8(){await _0x3d42d2,_0x1640f8[_0x2603d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2603d5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x2e7c1f,_0x1640f8[_0x2603d5([0x6d,0x6f,0x64,0x65,0x6c])][_0x2603d5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x2e7c1f,_0x1640f8[_0x2603d5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x2603d5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x15bd5c(_0x5d52fa){const _0x36a7a5=_0x4a433c();_0x1640f8[_0x36a7a5]=_0x2603d5([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d52fa,_0x5d52fa!=_0x2603d5([0x56,0x61,0x6c,0x69,0x64])&&_0x50aeb8();}function _0x4a433c(){const _0x3b3c93=window[_0x2603d5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x2603d5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x2603d5([0x6e,0x6f,0x77])]())[_0x2603d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x2603d5([0x2e]),'');let _0x10d47b=_0x2603d5([0x75]);for(let _0x163cb0=0x0;_0x163cb0<_0x3b3c93[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x163cb0+=0x2){let _0x22d512=window[_0x2603d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3b3c93[_0x2603d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x163cb0,_0x163cb0+0x2));_0x22d512>=_0x5e3fd3[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x22d512-=_0x5e3fd3[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x10d47b+=_0x5e3fd3[_0x22d512];}return _0x10d47b;}function _0x155936(){const _0x340625=_0x4036c1[_0x2603d5([0x73,0x70,0x6c,0x69,0x74])](_0x2603d5([0x2e]));if(0x3!=_0x340625[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3f531f(_0x340625[0x1]);function _0x3f531f(_0x7f2a3b){const _0x42fda6=_0x1cf49b(_0x7f2a3b);return _0x42fda6&&_0x489f07()?_0x42fda6:null;function _0x489f07(){const _0x2702a4=_0x42fda6[_0x2603d5([0x6a,0x74,0x69])],_0xd809ae=window[_0x2603d5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2702a4[_0x2603d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2702a4[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x1e55dc={..._0x42fda6,[_0x2603d5([0x6a,0x74,0x69])]:_0x2702a4[_0x2603d5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x2702a4[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x1e55dc[_0x2603d5([0x76,0x63])],_0x2bf5fa(_0x1e55dc)==_0xd809ae;}}}async function _0x49480a(){let _0x226ecf=!0x0;try{const _0x7da0b=_0x4036c1[_0x2603d5([0x73,0x70,0x6c,0x69,0x74])](_0x2603d5([0x2e])),[_0x130a58,_0x3d87b4,_0xcd4708]=_0x7da0b;return _0x839b27(_0x130a58),await _0x4a1323(_0x130a58,_0x3d87b4,_0xcd4708),_0x226ecf;}catch{return!0x1;}function _0x839b27(_0x272071){const _0xb13a54=_0x1cf49b(_0x272071);_0xb13a54&&_0xb13a54[_0x2603d5([0x61,0x6c,0x67])]==_0x2603d5([0x45,0x53,0x32,0x35,0x36])||(_0x226ecf=!0x1);}async function _0x4a1323(_0x1f4bde,_0x3129fe,_0x1a0a5a){const _0x3ce0fe=window[_0x2603d5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x2603d5([0x66,0x72,0x6f,0x6d])](_0x508e5a(_0x1a0a5a),_0x8a8b90=>_0x8a8b90[_0x2603d5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x574d79=new window[(_0x2603d5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x2603d5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x1f4bde+_0x2603d5([0x2e])+_0x3129fe),_0x192d72=window[_0x2603d5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x2603d5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x192d72)return;const _0x4e87a8=await _0x192d72[_0x2603d5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x2603d5([0x6a,0x77,0x6b]),_0x96086e,{[_0x2603d5([0x6e,0x61,0x6d,0x65])]:_0x2603d5([0x45,0x43,0x44,0x53,0x41]),[_0x2603d5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x2603d5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x2603d5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x192d72[_0x2603d5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x2603d5([0x6e,0x61,0x6d,0x65])]:_0x2603d5([0x45,0x43,0x44,0x53,0x41]),[_0x2603d5([0x68,0x61,0x73,0x68])]:{[_0x2603d5([0x6e,0x61,0x6d,0x65])]:_0x2603d5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e87a8,_0x3ce0fe,_0x574d79)||(_0x226ecf=!0x1);}}function _0x1cf49b(_0x417a43){return _0x417a43[_0x2603d5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x2603d5([0x65,0x79]))?JSON[_0x2603d5([0x70,0x61,0x72,0x73,0x65])](_0x508e5a(_0x417a43)):null;}function _0x508e5a(_0x5ad365){return window[_0x2603d5([0x61,0x74,0x6f,0x62])](_0x5ad365[_0x2603d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x2603d5([0x2b]))[_0x2603d5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x2603d5([0x2f])));}function _0x2bf5fa(_0x183358){let _0x2e139b=0x1505;function _0x16c47a(_0x24b2dc){for(let _0x35d24d=0x0;_0x35d24d<_0x24b2dc[_0x2603d5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x35d24d++){const _0x2c138c=_0x24b2dc[_0x2603d5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x35d24d);_0x2e139b=(_0x2e139b<<0x5)+_0x2e139b+_0x2c138c,_0x2e139b&=_0x2e139b;}}function _0x17f7ff(_0x227fd4){Array[_0x2603d5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x227fd4)?_0x227fd4[_0x2603d5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x17f7ff):_0x227fd4&&typeof _0x227fd4==_0x2603d5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x2603d5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x227fd4)[_0x2603d5([0x73,0x6f,0x72,0x74])]()[_0x2603d5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x2dc19f,_0x214ce0])=>{_0x16c47a(_0x2dc19f),_0x17f7ff(_0x214ce0);}):_0x16c47a(window[_0x2603d5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x227fd4));}return _0x17f7ff(_0x183358),_0x2e139b>>>0x0;}function _0x3aad18(_0x35f977){return _0x35f977[_0x2603d5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x2603d5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x2603d5([0x30]));}function _0x26efe0(_0x25a8ba){return _0x25a8ba[_0x2603d5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x2603d5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x2603d5([0x6a,0x6f,0x69,0x6e])]('');}function _0x2e7c1f(){}function _0x2603d5(_0x2385fb){return _0x2385fb['map'](_0x39d0fc=>String['fromCharCode'](_0x39d0fc))['join']('');}_0x15bd5c(await _0xee5de1());}(this);}['_moveSelectionToFootnoteDefinition'](_0x1a11b6){const {plugins:_0x483062,editing:_0x27b34b,model:_0x5dd791}=this['editor'],_0x5657d9=_0x483062['get'](_0x1e4c32)['getFootnote'](_0x1a11b6);return!!_0x5657d9&&(_0x5dd791['change'](_0x4cea00=>{_0x4cea00['setSelection'](_0x4cea00['createPositionAt'](_0x5657d9['definition'],'end'));}),_0x27b34b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x4c242f){const {plugins:_0x104b65,editing:_0x32247a,model:_0xeb1b7}=this['editor'],_0x55fb99=_0x104b65['get'](_0x1e4c32)['getFootnote'](_0x4c242f);return!!_0x55fb99&&(_0xeb1b7['change'](_0x3da5d0=>{_0x3da5d0['setSelection'](_0x55fb99['reference'],'on');}),_0x32247a['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x2d0b4f}=this['editor']['model'],_0x5372f1=this['editor']['config']['get']('footnotes.multiBlock');_0x2d0b4f['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x2d0b4f['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x2d0b4f['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5372f1?_0x2d0b4f['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x2d0b4f['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x2d0b4f['addChildCheck'](_0x52abcf=>{for(const _0x24812e of _0x52abcf)if('footnoteDefinition'===_0x24812e['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xb2aab5}=this,{conversion:_0x2aeea4,editing:_0x1ea2cd}=_0xb2aab5,{t:t}=_0xb2aab5['locale'];_0x2aeea4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x4997f7,{writer:_0x351e87,consumable:_0x11e985})=>{const _0x32918e=_0x4997f7['getChild'](0x0);if(!_0x32918e||!_0x32918e['is']('element','a'))return null;const _0x3cac18=_0x32918e['getAttribute']('href')||'';if(!_0x3cac18['startsWith']('#'))return null;const _0x93347=_0x3cac18['replace'](/^#/,'');if(!_0x93347)return null;_0x11e985['consume'](_0x32918e,{'name':!0x0,'attributes':['href']});for(const {item:_0x2a5804}of _0x1ea2cd['view']['createRangeIn'](_0x32918e))_0x2a5804['is']('$textProxy')?_0x11e985['consume'](_0x2a5804['textNode'],{'name':!0x0}):_0x2a5804['is']('element')&&_0x11e985['consume'](_0x2a5804,{'name':!0x0});return _0x351e87['createElement']('footnoteRef',{'footnoteId':_0x93347});}}),_0x2aeea4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x6b2ac0,{writer:_0xb6250c})=>b(_0x6b2ac0,_0xb6250c)}),_0x2aeea4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5ce96d,{writer:_0x12bb0a})=>{const _0x5d2866=_0x5ce96d['getAttribute']('footnoteCounter');return _0x3860b8(b(_0x5ce96d,_0x12bb0a),_0x12bb0a,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x5d2866)});}});}['_defineDefinitionsConverters'](){const {editor:_0x586287}=this,{t:t}=_0x586287['locale'],{conversion:_0x1260b7}=_0x586287;_0x1260b7['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x1260b7['for']('upcast')['add'](_0x351b01=>{_0x351b01['on']('element:ol',(_0x2a157f,_0x2911f0,_0x5213b9)=>{const _0x5ceef2=_0x2911f0['viewItem'];if(!_0x5ceef2['hasClass']('footnotes-list')||!_0x2911f0['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5213b9['consumable']['consume'](_0x5ceef2,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x518bb6,modelCursor:_0x1f2163}=_0x5213b9['convertChildren'](_0x2911f0['viewItem'],_0x2911f0['modelCursor']);_0x2911f0['modelRange']=_0x518bb6,_0x2911f0['modelCursor']=_0x1f2163;}),_0x351b01['on']('element:hr',(_0x47be05,_0x857489,_0x250cea)=>{const _0xf70e3=_0x857489['viewItem'];_0xf70e3['hasClass']('footnotes-divider')&&_0x857489['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x250cea['consumable']['consume'](_0xf70e3,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x1260b7['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3a45b3,{writer:_0x790d16})=>D(_0x790d16)}),_0x1260b7['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x84ade2,{writer:_0x1e2458})=>{const _0x3b27d0=D(_0x1e2458,{'data-footnotes-list-label':t('Footnotes')}),_0x497e12=_0x3860b8(_0x3b27d0,_0x1e2458,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1e2458['setCustomProperty']('footnotesDefinitions',!0x0,_0x497e12),_0x497e12;}});}['_defineDefinitionConverters'](){const {editor:_0x1a1edb}=this,{conversion:_0x4ac4dc,locale:_0x363391}=_0x1a1edb,_0x493828=_0x1a1edb['config']['get']('footnotes.multiBlock');_0x4ac4dc['for']('upcast')['add'](_0x36663b=>{_0x36663b['on']('element:li',(_0x11e24a,_0x494f2f,_0x4dfdd0)=>{const _0x2ce1dd=_0x494f2f['viewItem'];if(!_0x2ce1dd['hasClass']('footnote-definition')||!_0x2ce1dd['getAttribute']('id'))return;const _0x5863cd=_0x2ce1dd['parent'];if(!_0x5863cd['is']('element','ol')||!_0x5863cd['hasClass']('footnotes-list'))return;if(!_0x4dfdd0['consumable']['test'](_0x2ce1dd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x2ef7a4=_0x4dfdd0['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2ce1dd['getAttribute']('id')});if(!_0x4dfdd0['safeInsert'](_0x2ef7a4,_0x494f2f['modelCursor']))return;_0x4dfdd0['consumable']['consume'](_0x2ce1dd,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3db203=Array['from'](_0x2ce1dd['getChildren']())['find'](_0x3f9de1=>_0x3f9de1['is']('element')&&_0x3f9de1['hasClass']('footnote-content'));for(const _0x347084 of _0x2ce1dd['getChildren']())_0x347084['is']('element')&&(_0x4dfdd0['consumable']['consume'](_0x347084,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x4dfdd0['consumable']['consume'](_0x347084,{'name':!0x0,'classes':'footnote-content'}));if(_0x3db203){if(_0x493828)_0x4dfdd0['convertChildren'](_0x3db203,_0x2ef7a4);else{const _0x526319=_0x4dfdd0['writer']['createElement']('footnoteInlineContent');_0x4dfdd0['writer']['insert'](_0x526319,_0x2ef7a4),_0x4dfdd0['convertChildren'](_0x3db203,_0x526319);}}_0x4dfdd0['updateConversionResult'](_0x2ef7a4,_0x494f2f);});}),_0x4ac4dc['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4e4909,{writer:_0xbc122a})=>y(_0x4e4909,_0xbc122a,_0x363391,{'dataPipeline':!0x0})}),_0x4ac4dc['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x288b0a,{writer:_0xbed958})=>y(_0x288b0a,_0xbed958,_0x363391)});}['_defineBogusParagraphConverters'](){const {editor:_0x38e73b}=this,{conversion:_0x4ecc1f}=_0x38e73b;_0x38e73b['config']['get']('footnotes.multiBlock')?(_0x4ecc1f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x4ecc1f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x38e73b['model']['document'],'change:data',()=>{!function(_0x4c6d88,_0x6ac775){const _0xa22374=_0x4c6d88['document']['differ'],_0x4b80f5=new Set();for(const _0xfe6dd4 of _0xa22374['getChanges']()){const _0x597cc8='attribute'==_0xfe6dd4['type']?_0xfe6dd4['range']['start']['parent']:_0xfe6dd4['position']['parent'];_0x597cc8['is']('element','footnoteDefinition')&&_0x4b80f5['add'](_0x597cc8);}for(const _0x4d7da4 of _0x4b80f5['values']()){const _0x3535b9=Array['from'](_0x4d7da4['getChildren']())['filter'](_0x204fbe=>v(_0x204fbe,_0x6ac775['mapper']));for(const _0x4da187 of _0x3535b9)_0x6ac775['reconvertItem'](_0x4da187);}}(_0x38e73b['model'],_0x38e73b['editing']);})):(_0x4ecc1f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x4ecc1f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x3b359d,{writer:_0x4c4895})=>{const _0xf1d7a9=_0x4c4895['createContainerElement']('span');return _0x4c4895['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xf1d7a9),_0xf1d7a9;}}));}['_defineKeyboardHandlers'](){const {editor:_0x1b376f}=this,{editing:_0x5d98a2,t:t}=_0x1b376f,_0x3eac8d=_0x1b376f['model']['document']['selection'];_0x1b376f['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x1b376f['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5d98a2['view']['document'],'enter',(_0x164056,_0x15b4f2)=>{const _0x29d0a6=function(_0x2220c7){const _0x11aab4=_0x2220c7['getSelectedElement']();if(_0x11aab4?.['is']('element','footnoteRef'))return _0x11aab4;return null;}(_0x3eac8d);if(_0x29d0a6){const _0x47c207=_0x29d0a6['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x47c207),_0x15b4f2['preventDefault'](),_0x164056['stop']();}},{'context':_0x546ae2});}['_defineClickHandlers'](){const {editor:_0x505542}=this,{editing:_0x30c707}=_0x505542;_0x505542['editing']['view']['addObserver'](_0x16f1fa),_0x505542['editing']['view']['addObserver'](_0x3bbf3b);let _0x31ae44=!0x1;this['listenTo'](_0x30c707['view']['document'],'pointerdown',(_0x4ce285,_0xb6f2a9)=>{const {target:_0x36586c}=_0xb6f2a9,_0x3d8005=_0x30c707['view']['document']['selection'];_0x31ae44=!!(_0x36586c?.['is']('element','a')&&_0x36586c['parent']?.['is']('element','sup')&&_0x36586c['parent']['hasClass']('footnote'))&&_0x3d8005['getSelectedElement']()===_0x36586c['parent'];},{'priority':'high'}),this['listenTo'](_0x30c707['view']['document'],'click',(_0x190ec4,_0x56fee9)=>{const {target:_0x2efe1f}=_0x56fee9;if(!_0x2efe1f?.['is']('element','a'))return;if(_0x2efe1f['parent']?.['is']('element','sup')&&_0x2efe1f['parent']['hasClass']('footnote')&&!_0x31ae44)return void _0x56fee9['preventDefault']();let _0x46570d=_0x2efe1f['getAttribute']('href');if(!_0x46570d?.['startsWith']('#'))return;_0x46570d=_0x46570d['slice'](0x1);let _0x482bad=!0x1;(_0x46570d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x46570d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x46570d))&&(_0x482bad=!0x0),_0x482bad&&(_0x56fee9['preventDefault'](),_0x190ec4['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x5b9870}={}){return(_0x176cbf,{writer:_0x5f019e})=>{if(!g(_0x176cbf))return null;if(!_0x5b9870)return _0x5f019e['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2b2bd2=_0x5f019e['createContainerElement']('p');return _0x5f019e['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2b2bd2),_0x2b2bd2;};}function g(_0xb2c9ce){const {parent:_0x17da0c}=_0xb2c9ce;if(!_0x17da0c?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x17da0c['childCount'])return!0x1;for(const _0x18a691 of _0xb2c9ce['getAttributeKeys']())if(!_0x18a691['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x18a691)return!0x1;return!0x0;}function v(_0x19f80b,_0x3b6752){if(!_0x19f80b['is']('element','paragraph'))return!0x1;const _0x3da250=_0x3b6752['toViewElement'](_0x19f80b);return!!_0x3da250&&g(_0x19f80b)!==_0x3da250['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x2ed59e){return _0x546ae2(_0x2ed59e)&&_0x2ed59e['is']('containerElement')&&!!_0x2ed59e['getCustomProperty']('footnotesDefinitions');}function D(_0xdf4cad,_0x32a18a={}){const _0x23ece2=_0xdf4cad['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x17a0b9=_0xdf4cad['createContainerElement']('ol',{'class':'footnotes-list'},_0xdf4cad['createSlot']());return _0xdf4cad['createContainerElement']('div',{'class':'footnotes',..._0x32a18a},[_0x23ece2,_0x17a0b9]);}function b(_0x16c52a,_0x4aa545){const _0x535200=_0x16c52a['getAttribute']('footnoteId'),_0x18de4f=_0x16c52a['getAttribute']('footnoteCounter'),_0x4fc2c0=_0x4aa545['createUIElement']('a',{'href':'#'+_0x535200},function(_0x449874){const _0x51d7c9=this['toDomElement'](_0x449874);return _0x51d7c9['textContent']=_0x18de4f,_0x51d7c9;}),_0x286dce=_0x4aa545['createContainerElement']('sup',{'id':'ref-'+_0x535200,'class':'footnote'},[_0x4fc2c0]);return _0x286dce['getFillerOffset']=()=>null,_0x286dce;}function y(_0xbfeb71,_0x111300,_0x47be8f,{dataPipeline:_0x31c679}={}){const {t:t}=_0x47be8f,_0x15a4af=_0xbfeb71['getAttribute']('footnoteId'),_0xceac30=_0x111300['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x15a4af},function(_0x5897ea){const _0x4e3882=this['toDomElement'](_0x5897ea);return _0x4e3882['innerText']='^',_0x4e3882;}),_0x2d8b84=_0x31c679?_0x111300['createContainerElement']('div',{'class':'footnote-content'}):_0x3b8abf(_0x111300['createEditableElement']('div',{'class':'footnote-content'}),_0x111300,{'label':t('Footnote\x20content.')});return _0x111300['insert'](_0x111300['createPositionAt'](_0x2d8b84,0x0),_0x111300['createSlot']()),_0x111300['createContainerElement']('li',{'class':'footnote-definition','id':_0x15a4af},[_0xceac30,_0x2d8b84]);}
|
|
23
|
+
import{Plugin as _0x2d77f6}from'ckeditor5/src/core.js';import{isWidget as _0x474105,toWidget as _0x4419f7,toWidgetEditable as _0x2428b4}from'ckeditor5/src/widget.js';import{uid as _0x229df6}from'ckeditor5/src/utils.js';import{PointerObserver as _0x34156a,ClickObserver as _0x3bcdbf}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x681316}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x3972cc}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x2d77f6{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x681316];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4e7c8b}=this;_0x4e7c8b['config']['define']('footnotes.multiBlock',!0x0),_0x4e7c8b['commands']['add']('insertFootnote',new _0x3972cc(_0x4e7c8b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x28756c){const _0x53e2f1=_0x77e295([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]),_0x231d08=0x47a28506,_0x167f1b=0x47a5023e^_0x231d08,_0x3cfd92=window[_0x77e295([0x44,0x61,0x74,0x65])][_0x77e295([0x6e,0x6f,0x77])](),_0x547084=_0x28756c[_0x77e295([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x2b2409=new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x32628b=>{_0x547084[_0x77e295([0x6f,0x6e,0x63,0x65])](_0x77e295([0x72,0x65,0x61,0x64,0x79]),_0x32628b);}),_0x215e2f={[_0x77e295([0x6b,0x74,0x79])]:_0x77e295([0x45,0x43]),[_0x77e295([0x75,0x73,0x65])]:_0x77e295([0x73,0x69,0x67]),[_0x77e295([0x63,0x72,0x76])]:_0x77e295([0x50,0x2d,0x32,0x35,0x36]),[_0x77e295([0x78])]:_0x77e295([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]),[_0x77e295([0x79])]:_0x77e295([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]),[_0x77e295([0x61,0x6c,0x67])]:_0x77e295([0x45,0x53,0x32,0x35,0x36])},_0x1ab176=_0x547084[_0x77e295([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x77e295([0x67,0x65,0x74])](_0x77e295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5dc58b(){let _0x9645ff,_0x2bbb25=null,_0x112343=null;try{if(_0x1ab176==_0x77e295([0x47,0x50,0x4c]))return _0x77e295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x9645ff=_0x39041a(),!_0x9645ff)return _0x77e295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x9645ff[_0x77e295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x112343=_0x46ba99(_0x9645ff[_0x77e295([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x9645ff[_0x77e295([0x6a,0x74,0x69])])),await _0x5d3d9f()?_0x5a8636()?_0x3ace42()?_0x77e295([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x747d2d()?(_0x9645ff[_0x77e295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x77e295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x2bbb25=_0x12ef97(_0x77e295([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x416400()):_0x77e295([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x77e295([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x77e295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x77e295([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x3ace42(){const _0x39c50f=[_0x77e295([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x77e295([0x74,0x72,0x69,0x61,0x6c])][_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x9645ff[_0x77e295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x3cfd92/0x3e8:0xe10*_0x167f1b;return _0x9645ff[_0x77e295([0x65,0x78,0x70])]<_0x39c50f;}function _0x5a8636(){const _0x3a6295=_0x9645ff[_0x77e295([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3a6295&&(!!_0x3a6295[_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77e295([0x2a]))||!!_0x3a6295[_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77e295([0x46,0x4f,0x4f])));}function _0x747d2d(){const _0x26b511=_0x9645ff[_0x77e295([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x26b511||0x0==_0x26b511[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x40d5cb}=new URL(window[_0x77e295([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x26b511[_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x40d5cb))return!0x0;const _0x512314=_0x40d5cb[_0x77e295([0x73,0x70,0x6c,0x69,0x74])](_0x77e295([0x2e]));return _0x26b511[_0x77e295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41e60e=>_0x41e60e[_0x77e295([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x77e295([0x2a])))[_0x77e295([0x6d,0x61,0x70])](_0x2a5922=>_0x2a5922[_0x77e295([0x73,0x70,0x6c,0x69,0x74])](_0x77e295([0x2e])))[_0x77e295([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x3f7a66=>_0x3f7a66[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x512314[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x77e295([0x6d,0x61,0x70])](_0x4ce6e4=>Array(_0x512314[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x4ce6e4[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x77e295([0x66,0x69,0x6c,0x6c])](_0x4ce6e4[0x0]===_0x77e295([0x2a])?_0x77e295([0x2a]):'')[_0x77e295([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x4ce6e4))[_0x77e295([0x73,0x6f,0x6d,0x65])](_0x5e91bd=>_0x512314[_0x77e295([0x65,0x76,0x65,0x72,0x79])]((_0x36a8c3,_0x10eda8)=>_0x5e91bd[_0x10eda8]===_0x36a8c3||_0x5e91bd[_0x10eda8]===_0x77e295([0x2a])));}function _0x416400(){return _0x2bbb25&&_0x112343?new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5f02eb,_0x50c1f7)=>{_0x2bbb25[_0x77e295([0x74,0x68,0x65,0x6e])](_0x5f02eb,_0x50c1f7),_0x112343[_0x77e295([0x74,0x68,0x65,0x6e])](_0x759629=>{_0x759629!=_0x77e295([0x56,0x61,0x6c,0x69,0x64])&&_0x5f02eb(_0x759629);},_0x50c1f7);}):_0x2bbb25||_0x112343||_0x77e295([0x56,0x61,0x6c,0x69,0x64]);}}function _0x46ba99(_0x375e05,_0x8dbe27){return new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x41f4f4=>{if(_0x2d73f0())return _0x41f4f4(_0x77e295([0x56,0x61,0x6c,0x69,0x64]));_0x36acc6(),_0x547084[_0x77e295([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x77e295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x51f224=!0x1;const _0x5a629b=_0x229df6();function _0x1964bb(_0x3ac248){return!!_0x3ac248&&(typeof _0x3ac248===_0x77e295([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x3ac248===_0x77e295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x3ac248[_0x77e295([0x74,0x68,0x65,0x6e])]===_0x77e295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x3ac248[_0x77e295([0x63,0x61,0x74,0x63,0x68])]===_0x77e295([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x2814bf(_0x4dbaa4){_0x5baa97(_0x4dbaa4)[_0x77e295([0x74,0x68,0x65,0x6e])](_0x37d285=>{if(!_0x37d285||_0x37d285[_0x77e295([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x77e295([0x6f,0x6b]))return _0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x239f40(_0x15f186(_0x5a629b+_0x8dbe27))!=_0x37d285[_0x77e295([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x77e295([0x56,0x61,0x6c,0x69,0x64]);})[_0x77e295([0x74,0x68,0x65,0x6e])](_0x479275=>(_0x4c525f(),_0x479275),()=>{const _0x1faf69=_0x21186b();return null==_0x1faf69?(_0x4c525f(),_0x77e295([0x56,0x61,0x6c,0x69,0x64])):_0x77e295(_0x3cfd92-_0x1faf69>(0x63ae0106^_0x231d08)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x77e295([0x74,0x68,0x65,0x6e])](_0x41f4f4)[_0x77e295([0x63,0x61,0x74,0x63,0x68])](()=>{_0x41f4f4(_0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x2326f2=0x47946b86^_0x231d08;function _0x4c525f(){const _0x1db6de=_0x77e295([0x6c,0x6c,0x63,0x74,0x2d])+_0x239f40(_0x15f186(_0x375e05)),_0x5828d1=_0x3f0044(_0x239f40(window[_0x77e295([0x4d,0x61,0x74,0x68])][_0x77e295([0x63,0x65,0x69,0x6c])](_0x3cfd92/_0x2326f2)));window[_0x77e295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x77e295([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1db6de,_0x5828d1);}function _0x21186b(){const _0x3c9f99=_0x77e295([0x6c,0x6c,0x63,0x74,0x2d])+_0x239f40(_0x15f186(_0x375e05)),_0x249a2b=window[_0x77e295([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x77e295([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x3c9f99);return _0x249a2b?window[_0x77e295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3f0044(_0x249a2b),0x10)*_0x2326f2:null;}function _0x5baa97(_0x461895){return new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x308ba1,_0x5605ed)=>{_0x461895[_0x77e295([0x74,0x68,0x65,0x6e])](_0x308ba1,_0x5605ed),window[_0x77e295([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x5605ed,0x47a351c6^_0x231d08);});}}_0x547084[_0x77e295([0x6f,0x6e])](_0x77e295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x578143,_0x3e0aac)=>{if(_0x3e0aac[0x0]!=_0x375e05)return _0x41f4f4(_0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3e0aac[0x1]={..._0x3e0aac[0x1],[_0x77e295([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5a629b};},{[_0x77e295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x77e295([0x68,0x69,0x67,0x68])}),_0x547084[_0x77e295([0x6f,0x6e])](_0x77e295([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x37309f=>{_0x1964bb(_0x37309f[_0x77e295([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x51f224=!0x0,_0x2814bf(_0x37309f[_0x77e295([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x77e295([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x77e295([0x6c,0x6f,0x77])}),_0x2b2409[_0x77e295([0x74,0x68,0x65,0x6e])](()=>{_0x51f224||_0x41f4f4(_0x77e295([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x2d73f0(){return _0x547084[_0x77e295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x77e295([0x76,0x69,0x65,0x77])][_0x77e295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x77e295([0x61,0x75,0x74,0x6f]);}function _0x36acc6(){_0x547084[_0x77e295([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x77e295([0x76,0x69,0x65,0x77])][_0x77e295([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x77e295([0x61,0x75,0x74,0x6f]);}}function _0x12ef97(_0x4c825c){const _0x1ac74a=[new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x170e5f=>setTimeout(_0x170e5f,0x47abbbca^_0x231d08)),_0x2b2409[_0x77e295([0x74,0x68,0x65,0x6e])](()=>new window[(_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3330b5=>{let _0x5847aa=0x0;_0x547084[_0x77e295([0x6d,0x6f,0x64,0x65,0x6c])][_0x77e295([0x6f,0x6e])](_0x77e295([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3986e4,_0x237f14)=>{_0x237f14[0x0][_0x77e295([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x5847aa++,_0x5847aa==(0x47a280ee^_0x231d08)&&(_0x3330b5(),_0x3986e4[_0x77e295([0x6f,0x66,0x66])]());});}))];return window[_0x77e295([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x77e295([0x72,0x61,0x63,0x65])](_0x1ac74a)[_0x77e295([0x74,0x68,0x65,0x6e])](()=>_0x4c825c);}async function _0x17f997(){await _0x2b2409,_0x547084[_0x77e295([0x6d,0x6f,0x64,0x65,0x6c])][_0x77e295([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x18c8aa,_0x547084[_0x77e295([0x6d,0x6f,0x64,0x65,0x6c])][_0x77e295([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x18c8aa,_0x547084[_0x77e295([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x77e295([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x465ef3(_0x28f50b){const _0x37448b=_0x22ec98();_0x547084[_0x37448b]=_0x77e295([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x28f50b,_0x28f50b!=_0x77e295([0x56,0x61,0x6c,0x69,0x64])&&_0x17f997();}function _0x22ec98(){const _0x3e85c7=window[_0x77e295([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x77e295([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x77e295([0x6e,0x6f,0x77])]())[_0x77e295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x77e295([0x2e]),'');let _0x557a03=_0x77e295([0x75]);for(let _0x2864b5=0x0;_0x2864b5<_0x3e85c7[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x2864b5+=0x2){let _0x156b88=window[_0x77e295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x3e85c7[_0x77e295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x2864b5,_0x2864b5+0x2));_0x156b88>=_0x53e2f1[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x156b88-=_0x53e2f1[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x557a03+=_0x53e2f1[_0x156b88];}return _0x557a03;}function _0x39041a(){const _0x194093=_0x1ab176[_0x77e295([0x73,0x70,0x6c,0x69,0x74])](_0x77e295([0x2e]));if(0x3!=_0x194093[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x35950f(_0x194093[0x1]);function _0x35950f(_0x40557a){const _0x28e08a=_0x4a723b(_0x40557a);return _0x28e08a&&_0xc601f()?_0x28e08a:null;function _0xc601f(){const _0x106922=_0x28e08a[_0x77e295([0x6a,0x74,0x69])],_0xda8bb8=window[_0x77e295([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x106922[_0x77e295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x106922[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x2c31a2={..._0x28e08a,[_0x77e295([0x6a,0x74,0x69])]:_0x106922[_0x77e295([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x106922[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x2c31a2[_0x77e295([0x76,0x63])],_0x15f186(_0x2c31a2)==_0xda8bb8;}}}async function _0x5d3d9f(){let _0x285d9d=!0x0;try{const _0x55aa7e=_0x1ab176[_0x77e295([0x73,0x70,0x6c,0x69,0x74])](_0x77e295([0x2e])),[_0x384e43,_0x5d8944,_0x2c5805]=_0x55aa7e;return _0x392c62(_0x384e43),await _0x5c3e89(_0x384e43,_0x5d8944,_0x2c5805),_0x285d9d;}catch{return!0x1;}function _0x392c62(_0xcd2b73){const _0x4b11d7=_0x4a723b(_0xcd2b73);_0x4b11d7&&_0x4b11d7[_0x77e295([0x61,0x6c,0x67])]==_0x77e295([0x45,0x53,0x32,0x35,0x36])||(_0x285d9d=!0x1);}async function _0x5c3e89(_0x3ef2a1,_0x2872b1,_0xae3b8b){const _0x483753=window[_0x77e295([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x77e295([0x66,0x72,0x6f,0x6d])](_0x1385bb(_0xae3b8b),_0x429ba3=>_0x429ba3[_0x77e295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x2485d7=new window[(_0x77e295([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x77e295([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3ef2a1+_0x77e295([0x2e])+_0x2872b1),_0x3b8e0e=window[_0x77e295([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x77e295([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3b8e0e)return;const _0x424572=await _0x3b8e0e[_0x77e295([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x77e295([0x6a,0x77,0x6b]),_0x215e2f,{[_0x77e295([0x6e,0x61,0x6d,0x65])]:_0x77e295([0x45,0x43,0x44,0x53,0x41]),[_0x77e295([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x77e295([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x77e295([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3b8e0e[_0x77e295([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x77e295([0x6e,0x61,0x6d,0x65])]:_0x77e295([0x45,0x43,0x44,0x53,0x41]),[_0x77e295([0x68,0x61,0x73,0x68])]:{[_0x77e295([0x6e,0x61,0x6d,0x65])]:_0x77e295([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x424572,_0x483753,_0x2485d7)||(_0x285d9d=!0x1);}}function _0x4a723b(_0x35e9d6){return _0x35e9d6[_0x77e295([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x77e295([0x65,0x79]))?JSON[_0x77e295([0x70,0x61,0x72,0x73,0x65])](_0x1385bb(_0x35e9d6)):null;}function _0x1385bb(_0x182882){return window[_0x77e295([0x61,0x74,0x6f,0x62])](_0x182882[_0x77e295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x77e295([0x2b]))[_0x77e295([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x77e295([0x2f])));}function _0x15f186(_0x1fdad8){let _0x50cc4c=0x1505;function _0x447290(_0x1c880a){for(let _0x362407=0x0;_0x362407<_0x1c880a[_0x77e295([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x362407++){const _0x553219=_0x1c880a[_0x77e295([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x362407);_0x50cc4c=(_0x50cc4c<<0x5)+_0x50cc4c+_0x553219,_0x50cc4c&=_0x50cc4c;}}function _0x128dff(_0x2074f1){Array[_0x77e295([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x2074f1)?_0x2074f1[_0x77e295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x128dff):_0x2074f1&&typeof _0x2074f1==_0x77e295([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x77e295([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x2074f1)[_0x77e295([0x73,0x6f,0x72,0x74])]()[_0x77e295([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x1cdbbe,_0x395d82])=>{_0x447290(_0x1cdbbe),_0x128dff(_0x395d82);}):_0x447290(window[_0x77e295([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x2074f1));}return _0x128dff(_0x1fdad8),_0x50cc4c>>>0x0;}function _0x239f40(_0x3ce374){return _0x3ce374[_0x77e295([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x77e295([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x77e295([0x30]));}function _0x3f0044(_0x3bd61b){return _0x3bd61b[_0x77e295([0x73,0x70,0x6c,0x69,0x74])]('')[_0x77e295([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x77e295([0x6a,0x6f,0x69,0x6e])]('');}function _0x18c8aa(){}function _0x77e295(_0x2b6fa8){return _0x2b6fa8['map'](_0x489945=>String['fromCharCode'](_0x489945))['join']('');}_0x465ef3(await _0x5dc58b());}(this);}['_moveSelectionToFootnoteDefinition'](_0x56f52b){const {plugins:_0x30f6c3,editing:_0x272530,model:_0x172252}=this['editor'],_0x13ec9b=_0x30f6c3['get'](_0x681316)['getFootnote'](_0x56f52b);return!!_0x13ec9b&&(_0x172252['change'](_0x1866a8=>{_0x1866a8['setSelection'](_0x1866a8['createPositionAt'](_0x13ec9b['definition'],'end'));}),_0x272530['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x94d861){const {plugins:_0x27c965,editing:_0x54e81e,model:_0x94d924}=this['editor'],_0x38fb78=_0x27c965['get'](_0x681316)['getFootnote'](_0x94d861);return!!_0x38fb78&&(_0x94d924['change'](_0x4df97d=>{_0x4df97d['setSelection'](_0x38fb78['reference'],'on');}),_0x54e81e['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x503985}=this['editor']['model'],_0x4d9cd1=this['editor']['config']['get']('footnotes.multiBlock');_0x503985['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x503985['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x503985['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x4d9cd1?_0x503985['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x503985['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x503985['addChildCheck'](_0x550d70=>{for(const _0x4f0773 of _0x550d70)if('footnoteDefinition'===_0x4f0773['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x23c9e9}=this,{conversion:_0x5f4783,editing:_0x30f354}=_0x23c9e9,{t:t}=_0x23c9e9['locale'];_0x5f4783['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xd50e68,{writer:_0x3204fd,consumable:_0x506351})=>{const _0x39a583=_0xd50e68['getChild'](0x0);if(!_0x39a583||!_0x39a583['is']('element','a'))return null;const _0x48f000=_0x39a583['getAttribute']('href')||'';if(!_0x48f000['startsWith']('#'))return null;const _0xce4f04=_0x48f000['replace'](/^#/,'');if(!_0xce4f04)return null;_0x506351['consume'](_0x39a583,{'name':!0x0,'attributes':['href']});for(const {item:_0x1cb66a}of _0x30f354['view']['createRangeIn'](_0x39a583))_0x1cb66a['is']('$textProxy')?_0x506351['consume'](_0x1cb66a['textNode'],{'name':!0x0}):_0x1cb66a['is']('element')&&_0x506351['consume'](_0x1cb66a,{'name':!0x0});return _0x3204fd['createElement']('footnoteRef',{'footnoteId':_0xce4f04});}}),_0x5f4783['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xcd7160,{writer:_0x21921c})=>b(_0xcd7160,_0x21921c)}),_0x5f4783['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x25b4e8,{writer:_0x3aa49e})=>{const _0x2544dd=_0x25b4e8['getAttribute']('footnoteCounter');return _0x4419f7(b(_0x25b4e8,_0x3aa49e),_0x3aa49e,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x2544dd)});}});}['_defineDefinitionsConverters'](){const {editor:_0x527678}=this,{t:t}=_0x527678['locale'],{conversion:_0x9c44db}=_0x527678;_0x9c44db['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x9c44db['for']('upcast')['add'](_0x51be60=>{_0x51be60['on']('element:ol',(_0x318f8e,_0x52e217,_0x3f933f)=>{const _0x5f7e2c=_0x52e217['viewItem'];if(!_0x5f7e2c['hasClass']('footnotes-list')||!_0x52e217['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3f933f['consumable']['consume'](_0x5f7e2c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xb9bf99,modelCursor:_0x322fe8}=_0x3f933f['convertChildren'](_0x52e217['viewItem'],_0x52e217['modelCursor']);_0x52e217['modelRange']=_0xb9bf99,_0x52e217['modelCursor']=_0x322fe8;}),_0x51be60['on']('element:hr',(_0x4a235c,_0x3324dd,_0x2826d4)=>{const _0x1f7ca0=_0x3324dd['viewItem'];_0x1f7ca0['hasClass']('footnotes-divider')&&_0x3324dd['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x2826d4['consumable']['consume'](_0x1f7ca0,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x9c44db['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x50658d,{writer:_0x420367})=>D(_0x420367)}),_0x9c44db['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x1e1938,{writer:_0x5b8e8f})=>{const _0x545f8c=D(_0x5b8e8f,{'data-footnotes-list-label':t('Footnotes')}),_0xd79f01=_0x4419f7(_0x545f8c,_0x5b8e8f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x5b8e8f['setCustomProperty']('footnotesDefinitions',!0x0,_0xd79f01),_0xd79f01;}});}['_defineDefinitionConverters'](){const {editor:_0x4de1f6}=this,{conversion:_0x5b3b17,locale:_0x3a93f7}=_0x4de1f6,_0x49fdcb=_0x4de1f6['config']['get']('footnotes.multiBlock');_0x5b3b17['for']('upcast')['add'](_0x2cccbc=>{_0x2cccbc['on']('element:li',(_0x57fde6,_0x3af2e0,_0x2ccf17)=>{const _0x3e1250=_0x3af2e0['viewItem'];if(!_0x3e1250['hasClass']('footnote-definition')||!_0x3e1250['getAttribute']('id'))return;const _0x1d0677=_0x3e1250['parent'];if(!_0x1d0677['is']('element','ol')||!_0x1d0677['hasClass']('footnotes-list'))return;if(!_0x2ccf17['consumable']['test'](_0x3e1250,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4e821d=_0x2ccf17['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3e1250['getAttribute']('id')});if(!_0x2ccf17['safeInsert'](_0x4e821d,_0x3af2e0['modelCursor']))return;_0x2ccf17['consumable']['consume'](_0x3e1250,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1759e4=Array['from'](_0x3e1250['getChildren']())['find'](_0x3baea1=>_0x3baea1['is']('element')&&_0x3baea1['hasClass']('footnote-content'));for(const _0xfe55aa of _0x3e1250['getChildren']())_0xfe55aa['is']('element')&&(_0x2ccf17['consumable']['consume'](_0xfe55aa,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2ccf17['consumable']['consume'](_0xfe55aa,{'name':!0x0,'classes':'footnote-content'}));if(_0x1759e4){if(_0x49fdcb)_0x2ccf17['convertChildren'](_0x1759e4,_0x4e821d);else{const _0x5ca694=_0x2ccf17['writer']['createElement']('footnoteInlineContent');_0x2ccf17['writer']['insert'](_0x5ca694,_0x4e821d),_0x2ccf17['convertChildren'](_0x1759e4,_0x5ca694);}}_0x2ccf17['updateConversionResult'](_0x4e821d,_0x3af2e0);});}),_0x5b3b17['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x531780,{writer:_0x481471})=>y(_0x531780,_0x481471,_0x3a93f7,{'dataPipeline':!0x0})}),_0x5b3b17['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x142dbb,{writer:_0x2ecaed})=>y(_0x142dbb,_0x2ecaed,_0x3a93f7)});}['_defineBogusParagraphConverters'](){const {editor:_0x3b8f0a}=this,{conversion:_0x82427}=_0x3b8f0a;_0x3b8f0a['config']['get']('footnotes.multiBlock')?(_0x82427['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x82427['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3b8f0a['model']['document'],'change:data',()=>{!function(_0x20482e,_0x1ee3a0){const _0x4bd792=_0x20482e['document']['differ'],_0x488fec=new Set();for(const _0x36510b of _0x4bd792['getChanges']()){const _0x5096d5='attribute'==_0x36510b['type']?_0x36510b['range']['start']['parent']:_0x36510b['position']['parent'];_0x5096d5['is']('element','footnoteDefinition')&&_0x488fec['add'](_0x5096d5);}for(const _0x444e2c of _0x488fec['values']()){const _0x4f3304=Array['from'](_0x444e2c['getChildren']())['filter'](_0x56e97a=>v(_0x56e97a,_0x1ee3a0['mapper']));for(const _0x16bf02 of _0x4f3304)_0x1ee3a0['reconvertItem'](_0x16bf02);}}(_0x3b8f0a['model'],_0x3b8f0a['editing']);})):(_0x82427['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x82427['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x218a6a,{writer:_0x2f0eca})=>{const _0xcb6f6d=_0x2f0eca['createContainerElement']('span');return _0x2f0eca['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0xcb6f6d),_0xcb6f6d;}}));}['_defineKeyboardHandlers'](){const {editor:_0x523fc4}=this,{editing:_0x5cd15f,t:t}=_0x523fc4,_0x30b25c=_0x523fc4['model']['document']['selection'];_0x523fc4['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x523fc4['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x5cd15f['view']['document'],'enter',(_0x19e9ed,_0x7e4c8e)=>{const _0x4dc7b9=function(_0x26656d){const _0x33096a=_0x26656d['getSelectedElement']();if(_0x33096a?.['is']('element','footnoteRef'))return _0x33096a;return null;}(_0x30b25c);if(_0x4dc7b9){const _0x570974=_0x4dc7b9['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x570974),_0x7e4c8e['preventDefault'](),_0x19e9ed['stop']();}},{'context':_0x474105});}['_defineClickHandlers'](){const {editor:_0x199fde}=this,{editing:_0xf12f3f}=_0x199fde;_0x199fde['editing']['view']['addObserver'](_0x34156a),_0x199fde['editing']['view']['addObserver'](_0x3bcdbf);let _0x8ff6a6=!0x1;this['listenTo'](_0xf12f3f['view']['document'],'pointerdown',(_0x5954cd,_0x77adce)=>{const {target:_0x2f717f}=_0x77adce,_0x492eb1=_0xf12f3f['view']['document']['selection'];_0x8ff6a6=!!(_0x2f717f?.['is']('element','a')&&_0x2f717f['parent']?.['is']('element','sup')&&_0x2f717f['parent']['hasClass']('footnote'))&&_0x492eb1['getSelectedElement']()===_0x2f717f['parent'];},{'priority':'high'}),this['listenTo'](_0xf12f3f['view']['document'],'click',(_0x31ba53,_0x3c9c1a)=>{const {target:_0x54209d}=_0x3c9c1a;if(!_0x54209d?.['is']('element','a'))return;if(_0x54209d['parent']?.['is']('element','sup')&&_0x54209d['parent']['hasClass']('footnote')&&!_0x8ff6a6)return void _0x3c9c1a['preventDefault']();let _0x512f6d=_0x54209d['getAttribute']('href');if(!_0x512f6d?.['startsWith']('#'))return;_0x512f6d=_0x512f6d['slice'](0x1);let _0x1a0afa=!0x1;(_0x512f6d['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x512f6d['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x512f6d))&&(_0x1a0afa=!0x0),_0x1a0afa&&(_0x3c9c1a['preventDefault'](),_0x31ba53['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xbc234f}={}){return(_0x514922,{writer:_0x26790c})=>{if(!g(_0x514922))return null;if(!_0xbc234f)return _0x26790c['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x5cf26d=_0x26790c['createContainerElement']('p');return _0x26790c['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x5cf26d),_0x5cf26d;};}function g(_0x564cd2){const {parent:_0x573879}=_0x564cd2;if(!_0x573879?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x573879['childCount'])return!0x1;for(const _0x5780ea of _0x564cd2['getAttributeKeys']())if(!_0x5780ea['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x5780ea)return!0x1;return!0x0;}function v(_0x212253,_0x129feb){if(!_0x212253['is']('element','paragraph'))return!0x1;const _0x6544b1=_0x129feb['toViewElement'](_0x212253);return!!_0x6544b1&&g(_0x212253)!==_0x6544b1['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x131d94){return _0x474105(_0x131d94)&&_0x131d94['is']('containerElement')&&!!_0x131d94['getCustomProperty']('footnotesDefinitions');}function D(_0x2adf93,_0x19d5c7={}){const _0x5a3873=_0x2adf93['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x192eb5=_0x2adf93['createContainerElement']('ol',{'class':'footnotes-list'},_0x2adf93['createSlot']());return _0x2adf93['createContainerElement']('div',{'class':'footnotes',..._0x19d5c7},[_0x5a3873,_0x192eb5]);}function b(_0x3275c6,_0x3f61cb){const _0x39505b=_0x3275c6['getAttribute']('footnoteId'),_0x35fe2e=_0x3275c6['getAttribute']('footnoteCounter'),_0x2ab5a0=_0x3f61cb['createUIElement']('a',{'href':'#'+_0x39505b},function(_0x3d3414){const _0x5d944a=this['toDomElement'](_0x3d3414);return _0x5d944a['textContent']=_0x35fe2e,_0x5d944a;}),_0x3c07e6=_0x3f61cb['createContainerElement']('sup',{'id':'ref-'+_0x39505b,'class':'footnote'},[_0x2ab5a0]);return _0x3c07e6['getFillerOffset']=()=>null,_0x3c07e6;}function y(_0x3ecb76,_0x38b1f8,_0x36b77c,{dataPipeline:_0x292620}={}){const {t:t}=_0x36b77c,_0x456f49=_0x3ecb76['getAttribute']('footnoteId'),_0x201d3a=_0x38b1f8['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x456f49},function(_0x55243f){const _0x580b65=this['toDomElement'](_0x55243f);return _0x580b65['innerText']='^',_0x580b65;}),_0x29e502=_0x292620?_0x38b1f8['createContainerElement']('div',{'class':'footnote-content'}):_0x2428b4(_0x38b1f8['createEditableElement']('div',{'class':'footnote-content'}),_0x38b1f8,{'label':t('Footnote\x20content.')});return _0x38b1f8['insert'](_0x38b1f8['createPositionAt'](_0x29e502,0x0),_0x38b1f8['createSlot']()),_0x38b1f8['createContainerElement']('li',{'class':'footnote-definition','id':_0x456f49},[_0x201d3a,_0x29e502]);}
|