@ckeditor/ckeditor5-footnotes 47.7.0-alpha.4 → 47.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/footnotes.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +9 -9
- package/src/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={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},271(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},366(t){"use strict";t.exports=function(t){return t[1]}},789(t){"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},298(t){"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(t){"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>f,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["getChanges","11270286irrdhJ","_getElementKey","_trackedElements","getItems","2307584yuOkNF","set","from","rootName","115hvLzbI","attributes","elementName","$graveyard","position","91356QoUdKO","name","type","get","$text","_model","reset","_elementName","insert","1329Xcktrs","length","values","createRangeOn","1906RNwltz","slice","2840306ELmPSb","remove","clear","589329YJIpjt","nodeAfter","push","root","3375884arEeYi","element","flat","add","delete","getElementKey","has"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(468971===-parseInt(e(122))/1+-parseInt(e(117))/2*(-parseInt(e(113))/3)+parseInt(e(126))/4+-parseInt(e(142))/5*(-parseInt(e(104))/6)+parseInt(e(119))/7+parseInt(e(138))/8+-parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(109)];[a(111)];[a(135)];[a(136)]=new Map;constructor(t,e){const o=a;this[o(109)]=t,this[o(111)]=e[o(101)],this[o(135)]=e[o(131)]}[a(110)](){const t=a;this[t(136)][t(121)]()}[a(133)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(112)===i[e(106)]&&e(108)!==i[e(105)]&&i[e(103)][e(123)]){const t=this[e(109)][e(116)](i[e(103)][e(123)]);for(const o of t[e(137)]()){if(!o.is(e(127),this[e(111)]))continue;const t=this[e(135)](o);n[e(132)](t)||n[e(139)](t,[]),n[e(107)](t)[e(124)](o)}}if(e(120)===i[e(106)]&&i[e(105)]===this[e(111)]){const t=this[e(135)]({getAttribute:t=>i[e(143)][e(107)](t)});o[e(129)](t)}}for(const[t,n]of this[e(136)])e(102)===n[e(125)][e(141)]&&o[e(129)](t);for(const t of o)this[e(136)][e(130)](t);for(const[t,o]of n)this[e(136)][e(139)](t,o[o[e(114)]-1]);const i=new Set;for(const[t,s]of n)o[e(132)](t)&&(i[e(129)](s[0]),s[e(114)]>1?n[e(139)](t,s[e(118)](1)):n[e(130)](t),o[e(130)](t));return{removed:Array[e(140)](o),inserted:Array[e(140)](n[e(115)]())[e(128)](),moved:Array[e(140)](i)}}}const u=d;!function(t){const e=d,o=t();for(;;)try{if(907802===parseInt(e(513))/1+-parseInt(e(510))/2*(parseInt(e(493))/3)+-parseInt(e(515))/4*(parseInt(e(482))/5)+-parseInt(e(534))/6*(parseInt(e(484))/7)+-parseInt(e(536))/8*(parseInt(e(522))/9)+-parseInt(e(526))/10*(-parseInt(e(470))/11)+-parseInt(e(477))/12*(-parseInt(e(473))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class f extends t.Plugin{[u(517)]=[];[u(542)]=null;[u(466)]=null;[u(528)];[u(554)];[u(502)];static get[u(475)](){return u(548)}static get[u(462)](){return!0}static get[u(544)](){return!0}constructor(t){const e=u;super(t),this[e(528)]=new l(this[e(519)][e(471)],{elementName:e(457),getElementKey:()=>e(499)}),this[e(554)]=new l(this[e(519)][e(471)],{elementName:e(481),getElementKey:t=>t[e(454)](e(456))}),this[e(502)]=new l(this[e(519)][e(471)],{elementName:e(532),getElementKey:t=>t[e(454)](e(456))})}[u(538)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(541)][t(504)](e=>{const n=t,i=o[n(541)][n(521)][n(539)]();let s=!1;return this[n(557)](e,i)&&(s=!0),this[n(543)](e,i)&&(s=!0),this[n(537)](e,i)&&(s=!0),this[n(498)](e)&&(s=!0),this[n(467)](e)&&(s=!0),this[n(545)](e)&&(s=!0),s}),this[t(478)](o[t(541)],t(546),()=>{const e=t;o[e(483)]({isUndoable:!1},t=>{this[e(506)](t)})},{priority:t(469)}),this[t(478)](n,t(525),()=>{const e=t;this[e(517)]=[],this[e(528)][e(486)](),this[e(554)][e(486)](),this[e(502)][e(486)]()},{priority:t(540)})}[u(535)](){return this[u(542)]}[u(549)](t){const e=u;return this[e(517)][e(487)](e=>e.id===t)||null}[u(494)](){const t=u;return Array[t(508)](this[t(517)])}[u(501)](){return this[u(466)]}[u(553)](t){this[u(466)]=t}[u(463)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(517)][o(465)];i++)this[o(464)](t,i)&&(n=!0);return n}[u(531)](t,e){const o=u,n=t[o(530)](o(457),{});return t[o(512)](n,e),this[o(542)]=n,n}[u(506)](t){const e=u;if(!this[e(517)][e(465)]||this[e(542)])return;const o=this[e(517)][0][e(458)][e(500)],n=this[e(531)](t,o);for(const o of this[e(517)])o[e(507)][e(511)]||t[e(461)](o[e(507)],n,e(479));this[e(463)](t)}[u(557)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(528)][o(539)](e);if(r[o(465)]&&(this[o(542)]=r[0]),i[o(465)])if(i[o(465)]>1||this[o(542)]&&i[o(550)](t=>t!==this[o(542)])){const e=t[o(530)](o(457),{}),s=[];this[o(542)]&&s[o(496)](this[o(542)]),s[o(496)](...i),t[o(461)](e,s[0],o(460));for(const n of s)t[o(488)](t[o(524)](n),t[o(551)](e,o(479))),t[o(490)](n);this[o(542)]=e,this[o(463)](t),n=!0}else this[o(542)]=i[0];if(s[o(465)]&&o(497)===this[o(542)]?.[o(500)][o(533)]){for(const e of this[o(517)])t[o(490)](e[o(458)]),n=!0;this[o(517)]=[],this[o(542)]=null}return n}[u(543)](t,e){const o=u;let n=!1;const i=this[o(519)][o(529)][o(555)](o(518)),{inserted:s,moved:r}=this[o(502)][o(539)](e);for(const e of[...r,...s]){const s=e[o(454)](o(456)),r=this[o(549)](s);r&&(r[o(507)]=e),p(t,i,e)&&(n=!0)}return n}[u(537)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(554)][o(539)](e);for(const e of i)this[o(485)](t,e)&&(n=!0);for(const e of s)this[o(505)](t,e)&&(n=!0);for(const e of r)this[o(489)](t,e)&&(n=!0);return n}[u(467)](t){const e=u;if(!this[e(542)])return!1;let o=!1;if(this[e(542)][e(527)]!==this[e(517)][e(465)]){const n=[];for(const t of this[e(542)][e(491)]()){const i=t[e(454)](e(456));this[e(549)](i)||(n[e(472)](t),o=!0)}for(const o of n)t[e(490)](o)}const n=new Set,i=[];for(const t of this[e(542)][e(491)]()){const s=t[e(454)](e(456));n[e(492)](s)?(i[e(472)](t),o=!0):n[e(556)](s)}for(const o of i)t[e(490)](o);return this[e(542)][e(527)]||(t[e(490)](this[e(542)]),this[e(542)]=null,o=!0),o}[u(505)](t,e){const o=u;if(this[o(517)][o(487)](t=>t[o(458)]===e))return!1;let n=!1;const i=e[o(454)](o(456)),s=this[o(517)][o(514)](t=>t.id===i);-1!==s&&(t[o(490)](this[o(517)][s][o(458)]),this[o(517)][o(523)](s,1),n=!0);let r=this[o(542)]?function(t,e){const n=o;for(const o of t[n(491)]())if(o[n(454)](n(456))===e)return o;return null}(this[o(542)],i):null;r||(r=t[o(530)](o(532),{footnoteId:i}),this[o(542)]&&(t[o(461)](r,this[o(542)],o(479)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(519)][o(471)],this[o(517)],e);this[o(517)][o(523)](c,0,a);let l=c;return-1!==s&&(l=Math[o(552)](c,s)),this[o(463)](t,l)&&(n=!0),n}[u(485)](t,e){const o=u,n=this[o(517)][o(514)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(517)][n];return o(497)!==s[o(507)][o(500)][o(533)]&&(t[o(490)](s[o(507)]),i=!0),this[o(517)][o(523)](n,1),this[o(463)](t,n)&&(i=!0),i}[u(489)](t,e){const o=u,n=e[o(454)](o(456)),i=this[o(517)][o(514)](t=>t.id===n),s=this[o(517)][i];let r=!1;s[o(458)]=e,this[o(517)][o(523)](i,1);const a=m(this[o(519)][o(471)],this[o(517)],e);return this[o(517)][o(523)](a,0,s),this[o(463)](t,Math[o(552)](i,a))&&(r=!0),r}[u(464)](t,e){const o=u;if(!this[o(542)])return!1;const n=this[o(517)][e];let i;return i=this[o(466)]?this[o(466)]({footnote:n,container:this[o(542)],digits:String(this[o(517)][o(465)])[o(465)],value:e+1}):String(e+1),n[o(458)][o(454)](o(468))!=i&&(t[o(476)](o(468),i,n[o(458)]),!0)}[u(545)](t){const e=u;if(!this[e(542)]||this[e(517)][e(465)]<2)return!1;if(function(t,o){const n=e;if(t[n(465)]!==o[n(465)])return!1;for(let e=0;e<t[n(465)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(517)][e(480)](t=>t.id),Array[e(508)](this[e(542)][e(491)]())[e(480)](t=>t[e(454)](e(456)))))return!1;let o=!1;for(let n=0;n<this[e(517)][e(465)];n++){const i=this[e(517)][n],s=t[e(503)](i[e(507)]),r=t[e(551)](this[e(542)],n);s[e(455)](r)||(t[e(488)](t[e(459)](i[e(507)]),r),o=!0)}return o}[u(498)](t){const e=u;if(!this[e(517)][e(465)])return!1;const{model:o}=this[e(519)];let n=!1;for(let i=0;i<this[e(517)][e(465)]-1;i++){const s=this[e(517)][i],r=this[e(517)][i+1],a=o[e(503)](s[e(458)]),c=o[e(503)](r[e(458)]);e(520)===a[e(495)](c)&&(this[e(489)](t,s[e(458)]),i=-1,n=!0)}return n}}function d(t,e){const o=h();return(d=function(t,e){return o[t-=454]})(t,e)}function p(t,e,o){const n=u;if(o[n(527)])return!1;const i=n(e?516:474);return t[n(461)](t[n(530)](i),o),!0}function h(){const t=["compareWith","push","$graveyard","_ensureFootnotesReferencesHaveProperOrder","singleton","root","getFootnotesFormatter","_footnoteDefsTracker","createPositionBefore","registerPostFixer","_handleInsertedFootnoteReference","_ensureFootnotesDefinitionsContainerExists","definition","from","getRootNames","276418SlDkFA","parent","append","601781GeZMzM","findIndex","2748WsQCOB","paragraph","_footnotes","footnotes.multiBlock","editor","after","differ","27nxPTSg","splice","createRangeIn","set","11210LBGeqc","childCount","_footnoteDefsContainerTracker","config","createElement","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","rootName","8243106WAfLFX","getFootnotesDefinitionsObjectElement","350056UXGprj","_handleFootnoteReferencesChanges","init","getChanges","high","document","_footnotesDefinitions","_handleFootnoteDefinitionsChanges","isPremiumPlugin","_sortFootnoteDefinitions","change:data","indexOf","FootnotesTracker","getFootnote","some","createPositionAt","min","setFootnoteFormatter","_footnoteRefsTracker","get","add","_handleFootnotesDefinitionsObjectChanges","getAttribute","isEqual","footnoteId","footnotesDefinitions","reference","createRangeOn","before","insert","isOfficialPlugin","_updateFootnotesCounters","_updateFootnoteRefCounter","length","_footnoteFormatter","_handleFootnotesDefinitionsObjectSync","footnoteCounter","low","7084zVBrbK","model","unshift","51011909IOOnOP","footnoteInlineContent","pluginName","setAttribute","12kArPLm","listenTo","end","map","footnoteRef","7555IIGchy","enqueueChange","7LYSShI","_handleRemoveFootnoteReferenceById","reset","find","move","_handleMovedFootnoteReference","remove","getChildren","has","39vsJXwg","getFootnotes"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(465)])return 0;const i=t[n(503)](o);for(let o=0;o<e[n(465)];o++){const s=e[o],r=t[n(503)](s[n(458)]);if(n(460)===i[n(495)](r))return o}const s=o[n(500)];let r=-1;for(let t=e[n(465)]-1;t>=0;t--)if(e[t][n(458)][n(500)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(541)][n(509)](),c=a[n(547)](s[n(533)]),l=a[c+1];if(l)for(let t=0;t<e[n(465)];t++)if(e[t][n(458)][n(500)][n(533)]===l)return t;return e[n(465)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=257]})(t,e)}function y(){const t=["execute","2559744KwqHlI","42540XdupDK","insertObject","footnoteId","plugins","_moveSelectionToFootnoteDefinition","model","99TjPFMB","getItems","670293KJLXud","footnoteRef","FootnotesEditing","296390ieFYqR","11tAYBRa","get","checkChild","refresh","56VxVMeD","end","length","76vchPbt","selection","createElement","_getPositionToInsertFootnote","getFirstRange","string","test","127338rOWYrG","isObject","8042352lfmpyG","change","insert-footnote-command-executed-with-invalid-id","editor","isEnabled","6091yIcYKX","172eZFPjT","isBlock","document"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(367730===-parseInt(e(288))/1*(parseInt(e(289))/2)+parseInt(e(263))/3+-parseInt(e(274))/4*(-parseInt(e(294))/5)+-parseInt(e(281))/6*(parseInt(e(271))/7)+-parseInt(e(293))/8+-parseInt(e(261))/9*(-parseInt(e(266))/10)+parseInt(e(267))/11*(parseInt(e(283))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(270)](){const t=g,e=this[t(286)][t(260)][t(291)][t(275)],o=this[t(277)](e);this[t(287)]=!!o}[g(292)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(291)],r=this[e(277)](s);if(!r)return;const a=o[e(258)][e(268)](e(265)),c=t?.[e(257)]??(0,i.uid)();!function(t){const o=e;return o(279)==typeof t&&t[o(273)]>0&&!/\s/[o(280)](t)&&!/^\d/[o(280)](t)}(c)?(0,i.logWarning)(e(285)):(n[e(284)](t=>{const o=e,i=t[o(276)](o(264),{footnoteId:c});n[o(295)](i,r,null)}),a[e(259)](c))}[g(277)](t){const e=g,{model:o}=this[e(286)],{schema:n}=o,i=t[e(278)]();for(const t of i[e(262)]())if(n[e(290)](t)||n[e(282)](t))return null;const s=i[e(272)];return n[e(269)](s,e(264))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776211200;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).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(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);function A(t,e){const o=D();return(A=function(t,e){return o[t-=466]})(t,e)}const T=A;function D(){const t=["parse","entries","contentInsertion","reduce","editing","30ozVwpE","getSelectedBlocks","append","stringify","find","_handleCopyFootnotesDefinitions","getFirstRange","getChildren","getData","1053kLzEzF","961996OQAjjh","content","createElement","end","data","cloneElement","application/ckeditor5-footnotes","_insertEmptyFootnotesDefinitionsContainer","_handlePasteFootnotesDefinitions","setAttribute","toView","selection","hasAttribute","add","element","footnoteId","FootnotesClipboard","createRangeIn","getFootnotes","flatMap","footnoteInlineContent","config","32184hJCdyJ","init","drop","listenTo","definition","remove","_defineClipboardIntegration","editor","footnotesDefinitions","from","string","change","2620880hGFrGO","root","footnoteRef","insert","htmlProcessor","1941954QeGnRS","method","1179992nVNjNb","keys","push","193145PAdozt","create","toData","getFootnote","isOfficialPlugin","includes","get","outputTransformation","document","toModel","requires","getAttribute","sourceEditorId","dataTransfer","footnoteDefinition","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","setData","getRanges","isPremiumPlugin","length","clipboardInput","pluginName","586683SLBmWc"];return(D=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(367513===parseInt(e(523))/1+parseInt(e(497))/2+parseInt(e(495))/3+-parseInt(e(490))/4+-parseInt(e(500))/5*(parseInt(e(529))/6)+-parseInt(e(539))/7+-parseInt(e(478))/8*(parseInt(e(538))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(522)](){return T(472)}static get[T(510)](){return[I,S.ClipboardPipeline]}static get[T(504)](){return!0}static get[T(519)](){return!0}[T(479)](){this[T(484)]()}[T(484)](){const t=T;this[t(534)](),this[t(547)]()}[T(534)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(506)](S.ClipboardPipeline),s=o[t(506)](f);this[t(481)](i,t(507),(o,i)=>{const r=t,a=V(n[r(473)](i[r(540)]));if(!a[r(520)])return;const c=s[r(474)](),l=a[r(527)]((t,o)=>{const n=r,i=c[n(533)](t=>t.id===o);if(i){const o=e[n(543)][n(466)](i[n(482)],{isClipboardPipeline:!0}),s=e[n(543)][n(494)][n(502)](o);t[i.id]=s}return t},Object[r(501)](null));i[r(513)][r(517)](r(545),JSON[r(532)](l))})}[T(547)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(528)],r=n[t(506)](S.ClipboardPipeline),a=n[t(506)](f),c=e[t(477)][t(506)](t(516));let l=null;this[t(481)](s[t(508)],t(521),(e,o)=>{const n=t,i=o[n(513)][n(537)](n(545));l=i?JSON[n(524)](i):null}),this[t(481)](r,t(526),(n,s)=>{const r=t,u=s[r(512)]===this[r(485)].id;u&&r(480)===s[r(496)]||o[r(489)](t=>{const n=r;let f=a[n(515)]();const d=!!f&&Array[n(487)](o[n(508)][n(467)][n(530)]())[n(505)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(470),e(492)))return!0;return!1}(o[n(473)](s[n(540)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(501)](null);for(const e of i[o(536)]())e.is(o(470),o(514))&&e[o(468)](o(471))&&(s[e[o(511)](o(471))]=t[o(544)](e,!0));return Object[o(498)](s)[o(520)]?s:null}(t,s[n(540)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(473)](e))n.is(o(470),o(486))&&i[o(499)](n);for(const e of i)t[o(483)](e)}(t,s[n(540)]),!l)return;const{selection:p}=o[n(508)],h=p[n(535)]()[n(491)];f&&!d||(f=L(t,s[n(540)]),f||=a[n(546)](t,h));const m=Array[n(487)](p[n(518)]())[n(475)](V),g=function(t,e,o){const s=n,r=Object[s(501)](null);for(const{item:n}of t[s(473)](e))if(n.is(s(470),s(492))){const e=n[s(511)](s(471));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(548)](s(471),r[e],n)}return r}(t,s[n(540)],t=>{const e=n;return!u||!!a[e(503)](t)&&!m[e(505)](t)});for(const[o,i]of Object[n(525)](l)){const s=g[o]||o;let r;if(n(488)!=typeof i)r=i,s!==o&&t[n(548)](n(471),s,r);else{r=t[n(541)](n(514),{footnoteId:s});const o=e[n(543)][n(494)][n(466)](i);let a;if(c)a=e[n(543)][n(509)](o,r);else{a=t[n(541)](n(476));const i=e[n(543)][n(509)](o,a);t[n(493)](i,a)}t[n(531)](a,r)}t[n(493)](r,f,n(542))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(473)](e))if(n.is(o(470),o(486)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(470),e(492))&&o[e(469)](n[e(511)](e(471)));return Array[e(487)](o)}var O=o(311),N=o(355),R=o(789),K=o.n(R),j=o(437),M=o.n(j),B=o(298),z=o.n(B),W=o(207),H=o.n(W),J=o(825),U=o.n(J),q=o(264),G={attributes:{"data-cke":!0}};G.setAttributes=H(),G.insert=z().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=U();K()(q.A,G);q.A&&q.A.locals&&q.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,O.ButtonView)),e.add("menuBar:insertFootnote",X(t,O.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 O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=124]})(t,e)}function $(){var t=["1053786miwnCi","7MBKmJt","4258905BfxEqT","11169480gisxQV","isOfficialPlugin","1907418IJfvJC","isPremiumPlugin","pluginName","Footnotes","4069086wWkwbS","56971fUHjin","requires","2511996AmWIHG"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(542644===parseInt(e(135))/1+parseInt(e(125))/2+-parseInt(e(130))/3+-parseInt(e(124))/4+-parseInt(e(127))/5+parseInt(e(134))/6+-parseInt(e(126))/7*(-parseInt(e(128))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(132)](){return Y(133)}static get[Y(136)](){return[I,_,Q]}static get[Y(129)](){return!0}static get[Y(131)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=413]})(t,e)}function nt(){const t=["5821361DhtaaQ","128dxLlTc","decimal-leading-zero","57HviaAH","upper-roman","3741380VJkDGk","lower-latin","1438514ozIZSz","15604GbYJSF","3197330wCQZQh","upper-alpha","87150UVbDUK","decimal","74322kWQQkY","lower-roman","6VwaTYA","lower-alpha","upper-latin"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(435274===-parseInt(e(428))/1+parseInt(e(424))/2+-parseInt(e(420))/3*(-parseInt(e(425))/4)+-parseInt(e(422))/5*(-parseInt(e(414))/6)+-parseInt(e(417))/7+-parseInt(e(418))/8*(-parseInt(e(430))/9)+-parseInt(e(426))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(429),et(419),et(423),et(416),et(415),et(427),et(413),et(421)],st=at;function rt(){const t=["plugins","refresh","2Elsgrp","setAttribute","value","960krINHD","change","258WZIZYm","get","footnotesListStyle","isEnabled","27QiJYCt","143170URcHJq","model","7384JeMQap","267jIqgWN","171039nrmQrI","3071080FaEnLW","56756JdPKJN","includes","getFootnotesDefinitionsObjectElement","execute","getAttribute","974098cvOavQ","38225031eFlKcb","7357vofZDH","_updateFootnotesCounters"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=222]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(772925===parseInt(e(224))/1*(parseInt(e(245))/2)+-parseInt(e(237))/3*(parseInt(e(240))/4)+-parseInt(e(234))/5*(parseInt(e(229))/6)+-parseInt(e(247))/7*(parseInt(e(236))/8)+-parseInt(e(233))/9*(parseInt(e(239))/10)+parseInt(e(238))/11*(parseInt(e(227))/12)+parseInt(e(246))/13)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(223)](){const t=st,{editor:e}=this,o=e[t(222)][t(230)](f)[t(242)]();this[t(232)]=!!o,this[t(226)]=o?.[t(244)](t(231))??null}[st(243)]({value:t}){const e=st,{editor:o}=this,n=o[e(222)][e(230)](f),i=n[e(242)]();i&&it[e(241)](t)&&o[e(235)][e(228)](o=>{const s=e;o[s(225)](s(231),t,i),n[s(248)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=315]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(353470===-parseInt(e(337))/1+-parseInt(e(324))/2+-parseInt(e(330))/3*(-parseInt(e(318))/4)+parseInt(e(331))/5*(-parseInt(e(335))/6)+parseInt(e(333))/7*(-parseInt(e(329))/8)+parseInt(e(320))/9+parseInt(e(316))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(323)](){const t=lt,{editor:e}=this,o=e[t(334)][t(319)](f)[t(332)]();this[t(325)]=!!o,this[t(317)]=o?.[t(326)](t(315))??null}[lt(321)]({value:t}){const e=lt,{editor:o}=this,n=o[e(334)][e(319)](f),i=n[e(332)]();i&&Number[e(322)](t)&&o[e(336)][e(338)](o=>{const s=e;o[s(328)](s(315),t,i),n[s(327)](o)})}}function dt(){const t=["footnotesListStart","18740470iPAcJn","value","164WvKPNK","get","1019799nVvTTq","execute","isInteger","refresh","909006oIdubG","isEnabled","getAttribute","_updateFootnotesCounters","setAttribute","136ppaKux","10497rPGxKu","5iwWssx","getFootnotesDefinitionsObjectElement","261191apHsEs","plugins","70302PEbaLI","model","676806zPJjKp","change"];return(dt=function(){return t})()}const pt=gt;function ht(){const t=["init","position","footnotes.footnotesProperties.defaultStartIndex","hasClass","toUpperCase","start","upcast","hasAttribute","footnotesListStyle","upper-alpha","isPremiumPlugin","_formatFootnoteListValue","mapper","attribute:footnotesListStyle:footnotesDefinitions","4866JZJHZF","getChanges","item","element:ol","removeAttribute","isOfficialPlugin","2579739fYjLVc","commands","differ","find","viewItem","lower-latin","schema","consumable","_getDefaultListStyle","for","_defineConverters","removeStyle","getAttribute","extend","74658nxXksC","model","_definePostfixer","footnotesStart","getChildren","type","setAttribute","pluginName","config","getItems","modelCursor","plugins","18328DJuATC","lower-alpha","upper-latin","parent","max","document","createRangeOn","checkAttribute","footnotesDefinitions","registerPostFixer","$text","_getDefaultStartIndex","toViewElement","decimal-leading-zero","isNaN","lower-roman","padStart","_defineFormatter","name","list-style-type","requires","upper-roman","footnotesStyle","setStyle","parseInt","1072998FbxrDf","5430tNRnQL","get","from","fromCharCode","_updateFootnotesCounters","floor","11258253JGaXvp","getStyle","8616RdAzBL","footnotes.footnotesProperties.defaultListStyle","FootnotesPropertiesEditing","consume","footnotes-list","attribute:footnotesListStart:footnotesDefinitions","add","writer","setFootnoteFormatter","nodeAfter","downcast","_defineSchema","footnotesListStart","element","1897IWmCdl","editor","insert","define","toLowerCase","decimal"];return(ht=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(477884===parseInt(e(202))/1+parseInt(e(239))/2+parseInt(e(188))/3+-parseInt(e(248))/4+-parseInt(e(240))/5*(-parseInt(e(182))/6)+parseInt(e(162))/7*(-parseInt(e(214))/8)+-parseInt(e(246))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(209)](){return pt(250)}static get[pt(234)](){return[I,f]}static get[pt(187)](){return!0}static get[pt(178)](){return!0}[pt(168)](){const t=pt,{editor:e}=this;e[t(210)][t(165)](t(249),t(167)),e[t(210)][t(165)](t(170),1),e[t(189)][t(254)](t(236),new ct(e)),e[t(189)][t(254)](t(205),new ft(e)),this[t(159)](),this[t(198)](),this[t(231)](),this[t(204)]()}[pt(159)](){const t=pt,{editor:e}=this,{schema:o}=e[t(203)];o[t(201)](t(222),{allowAttributes:[t(176),t(160)]})}[pt(198)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(197)](t(174))[t(254)](e=>{const o=t;e.on(o(185),(t,e,n)=>{const s=o,r=e[s(192)],a=e[s(212)]?.[s(217)];r[s(171)](s(252))&&a?.is(s(161),s(222))&&(function(t,e,o,n){const i=s;if(!n[i(221)](e,i(160)))return;let r=1;const a=o[i(195)][i(251)](t,{attributes:i(173)});if(a){const e=Number[i(238)](t[i(200)](i(173)),10);Number[i(228)](e)||(r=e)}!a&&e[i(175)](i(160))||o[i(255)][i(208)](i(160),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(221)](e,i(176)))return;let r=i(167),a=!1;if(o[i(195)][i(251)](t,{attributes:i(207)})){const e={1:i(167),a:i(215),A:i(177),i:i(229),I:i(235)}[t[i(200)](i(207))];e&&(r=e),a=!0}o[i(195)][i(251)](t,{styles:i(233)})&&(r=function(t){const e=i;switch(t){case e(215):return e(193);case e(177):return e(216);default:return t}}(t[i(247)](i(233))),a=!0),!a&&e[i(175)](i(176))||o[i(255)][i(208)](i(176),r,e)}(r,a,n,i))})}),o[t(197)](t(258))[t(254)](e=>{const o=t;e.on(o(253),(t,e,n)=>{const i=o;if(!n[i(195)][i(251)](e[i(184)],t[i(232)]))return;const s=wt(e[i(184)],n[i(180)]),{attributeNewValue:r}=e;null==r||1===r?n[i(255)][i(186)](i(173),s):n[i(255)][i(208)](i(173),String(r),s)}),e.on(o(181),(t,e,n)=>{const i=o;if(!n[i(195)][i(251)](e[i(184)],t[i(232)]))return;const s=wt(e[i(184)],n[i(180)]),{attributeNewValue:r}=e;r&&i(167)!==r?n[i(255)][i(237)](i(233),r,s):n[i(255)][i(199)](i(233),s)})})}[pt(204)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(213)][t(241)](f),i=this[t(196)](),s=this[t(225)]();o[t(219)][t(223)](e=>{const r=t,a=o[r(219)][r(190)][r(183)]();let c=!1;for(const t of a){if(r(164)!==t[r(207)]||r(224)===t[r(232)])continue;const n=o[r(220)](t[r(169)][r(257)]);for(const t of n[r(211)]())t.is(r(161),r(222))&&(!t[r(175)](r(160))&&o[r(194)][r(221)](t,r(160))&&(e[r(208)](r(160),s,t),c=!0),!t[r(175)](r(176))&&o[r(194)][r(221)](t,r(176))&&(e[r(208)](r(176),i,t),c=!0))}return c&&n[r(244)](e),c})}[pt(231)](){const t=pt,{editor:e}=this;e[t(213)][t(241)](f)[t(256)](e=>this[t(179)](e))}[pt(196)](){const t=pt;return this[t(163)][t(210)][t(241)](t(249))}[pt(225)](){const t=pt;return this[t(163)][t(210)][t(241)](t(170))}[pt(179)]({container:t,value:e,digits:o}){const n=pt,i=t[n(200)](n(176)),s=t[n(200)](n(160)),r=Math[n(245)](e)+(s??1)-1;switch(i){case n(227):return function(t,e){const o=n;return String(t)[o(230)](e,"0")}(r,Math[n(218)](2,o));case n(215):case n(193):return yt(r,!1);case n(177):case n(216):return yt(r,!0);case n(229):return It(r,!1);case n(235):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=ht();return(gt=function(t,e){return o[t-=159]})(t,e)}function wt(t,e){const o=pt,n=e[o(226)](t);return Array[o(242)](n[o(206)]())[o(191)](t=>t.is(o(161),"ol")&&t[o(171)](o(252)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(243)](97+t)+n,i=Math[o(245)]((i-1)/26)}return e?n[o(172)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function It(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(166)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=U();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[O.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,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.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}=O.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=Pt;function Et(){var t=["4299DqwErp","isOfficialPlugin","isPremiumPlugin","13762LFXvoI","pluginName","2070306rPVBDI","1229625LureIh","requires","FootnotesProperties","1656dcYxwR","562210jrGLec","908upunxk","285675EDCtKO","93770sfFUNq"];return(Et=function(){return t})()}function Pt(t,e){var o=Et();return(Pt=function(t,e){return o[t-=423]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(206087===-parseInt(e(426))/1+-parseInt(e(423))/2+parseInt(e(427))/3*(parseInt(e(424))/4)+parseInt(e(425))/5+-parseInt(e(432))/6+-parseInt(e(430))/7*(-parseInt(e(436))/8)+parseInt(e(433))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[xt(431)](){return xt(435)}static get[xt(434)](){return[mt,Ft]}static get[xt(428)](){return!0}static get[xt(429)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=467]})(t,e)}function Tt(){var t=["486885HzqzZO","20sblgTa","5507370dmmmOH","630406ZcONcz","393281IEqJky","523728KRPpgH","2995664KrXmjc","2214420WpVsPa","184qcStoq"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(711493===parseInt(e(469))/1+-parseInt(e(468))/2+-parseInt(e(474))/3*(-parseInt(e(475))/4)+parseInt(e(467))/5+-parseInt(e(472))/6+parseInt(e(471))/7+parseInt(e(473))/8*(-parseInt(e(470))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={264(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},851(t,e,o){"use strict";o.d(e,{A:()=>a});var n=o(366),i=o.n(n),s=o(271),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},271(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},366(t){"use strict";t.exports=function(t){return t[1]}},789(t){"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},298(t){"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},825(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},207(t){"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},437(t){"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},331(t,e,o){t.exports=o(237)("./src/clipboard.js")},782(t,e,o){t.exports=o(237)("./src/core.js")},783(t,e,o){t.exports=o(237)("./src/engine.js")},355(t,e,o){t.exports=o(237)("./src/icons.js")},311(t,e,o){t.exports=o(237)("./src/ui.js")},584(t,e,o){t.exports=o(237)("./src/utils.js")},901(t,e,o){t.exports=o(237)("./src/widget.js")},237(t){"use strict";t.exports=CKEditor5.dll}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>I,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>f,FootnotesUI:()=>Q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["getChanges","11270286irrdhJ","_getElementKey","_trackedElements","getItems","2307584yuOkNF","set","from","rootName","115hvLzbI","attributes","elementName","$graveyard","position","91356QoUdKO","name","type","get","$text","_model","reset","_elementName","insert","1329Xcktrs","length","values","createRangeOn","1906RNwltz","slice","2840306ELmPSb","remove","clear","589329YJIpjt","nodeAfter","push","root","3375884arEeYi","element","flat","add","delete","getElementKey","has"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=101]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(468971===-parseInt(e(122))/1+-parseInt(e(117))/2*(-parseInt(e(113))/3)+parseInt(e(126))/4+-parseInt(e(142))/5*(-parseInt(e(104))/6)+parseInt(e(119))/7+parseInt(e(138))/8+-parseInt(e(134))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(109)];[a(111)];[a(135)];[a(136)]=new Map;constructor(t,e){const o=a;this[o(109)]=t,this[o(111)]=e[o(101)],this[o(135)]=e[o(131)]}[a(110)](){const t=a;this[t(136)][t(121)]()}[a(133)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(112)===i[e(106)]&&e(108)!==i[e(105)]&&i[e(103)][e(123)]){const t=this[e(109)][e(116)](i[e(103)][e(123)]);for(const o of t[e(137)]()){if(!o.is(e(127),this[e(111)]))continue;const t=this[e(135)](o);n[e(132)](t)||n[e(139)](t,[]),n[e(107)](t)[e(124)](o)}}if(e(120)===i[e(106)]&&i[e(105)]===this[e(111)]){const t=this[e(135)]({getAttribute:t=>i[e(143)][e(107)](t)});o[e(129)](t)}}for(const[t,n]of this[e(136)])e(102)===n[e(125)][e(141)]&&o[e(129)](t);for(const t of o)this[e(136)][e(130)](t);for(const[t,o]of n)this[e(136)][e(139)](t,o[o[e(114)]-1]);const i=new Set;for(const[t,s]of n)o[e(132)](t)&&(i[e(129)](s[0]),s[e(114)]>1?n[e(139)](t,s[e(118)](1)):n[e(130)](t),o[e(130)](t));return{removed:Array[e(140)](o),inserted:Array[e(140)](n[e(115)]())[e(128)](),moved:Array[e(140)](i)}}}const u=d;!function(t){const e=d,o=t();for(;;)try{if(907802===parseInt(e(513))/1+-parseInt(e(510))/2*(parseInt(e(493))/3)+-parseInt(e(515))/4*(parseInt(e(482))/5)+-parseInt(e(534))/6*(parseInt(e(484))/7)+-parseInt(e(536))/8*(parseInt(e(522))/9)+-parseInt(e(526))/10*(-parseInt(e(470))/11)+-parseInt(e(477))/12*(-parseInt(e(473))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class f extends t.Plugin{[u(517)]=[];[u(542)]=null;[u(466)]=null;[u(528)];[u(554)];[u(502)];static get[u(475)](){return u(548)}static get[u(462)](){return!0}static get[u(544)](){return!0}constructor(t){const e=u;super(t),this[e(528)]=new l(this[e(519)][e(471)],{elementName:e(457),getElementKey:()=>e(499)}),this[e(554)]=new l(this[e(519)][e(471)],{elementName:e(481),getElementKey:t=>t[e(454)](e(456))}),this[e(502)]=new l(this[e(519)][e(471)],{elementName:e(532),getElementKey:t=>t[e(454)](e(456))})}[u(538)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(541)][t(504)](e=>{const n=t,i=o[n(541)][n(521)][n(539)]();let s=!1;return this[n(557)](e,i)&&(s=!0),this[n(543)](e,i)&&(s=!0),this[n(537)](e,i)&&(s=!0),this[n(498)](e)&&(s=!0),this[n(467)](e)&&(s=!0),this[n(545)](e)&&(s=!0),s}),this[t(478)](o[t(541)],t(546),()=>{const e=t;o[e(483)]({isUndoable:!1},t=>{this[e(506)](t)})},{priority:t(469)}),this[t(478)](n,t(525),()=>{const e=t;this[e(517)]=[],this[e(528)][e(486)](),this[e(554)][e(486)](),this[e(502)][e(486)]()},{priority:t(540)})}[u(535)](){return this[u(542)]}[u(549)](t){const e=u;return this[e(517)][e(487)](e=>e.id===t)||null}[u(494)](){const t=u;return Array[t(508)](this[t(517)])}[u(501)](){return this[u(466)]}[u(553)](t){this[u(466)]=t}[u(463)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(517)][o(465)];i++)this[o(464)](t,i)&&(n=!0);return n}[u(531)](t,e){const o=u,n=t[o(530)](o(457),{});return t[o(512)](n,e),this[o(542)]=n,n}[u(506)](t){const e=u;if(!this[e(517)][e(465)]||this[e(542)])return;const o=this[e(517)][0][e(458)][e(500)],n=this[e(531)](t,o);for(const o of this[e(517)])o[e(507)][e(511)]||t[e(461)](o[e(507)],n,e(479));this[e(463)](t)}[u(557)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(528)][o(539)](e);if(r[o(465)]&&(this[o(542)]=r[0]),i[o(465)])if(i[o(465)]>1||this[o(542)]&&i[o(550)](t=>t!==this[o(542)])){const e=t[o(530)](o(457),{}),s=[];this[o(542)]&&s[o(496)](this[o(542)]),s[o(496)](...i),t[o(461)](e,s[0],o(460));for(const n of s)t[o(488)](t[o(524)](n),t[o(551)](e,o(479))),t[o(490)](n);this[o(542)]=e,this[o(463)](t),n=!0}else this[o(542)]=i[0];if(s[o(465)]&&o(497)===this[o(542)]?.[o(500)][o(533)]){for(const e of this[o(517)])t[o(490)](e[o(458)]),n=!0;this[o(517)]=[],this[o(542)]=null}return n}[u(543)](t,e){const o=u;let n=!1;const i=this[o(519)][o(529)][o(555)](o(518)),{inserted:s,moved:r}=this[o(502)][o(539)](e);for(const e of[...r,...s]){const s=e[o(454)](o(456)),r=this[o(549)](s);r&&(r[o(507)]=e),p(t,i,e)&&(n=!0)}return n}[u(537)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(554)][o(539)](e);for(const e of i)this[o(485)](t,e)&&(n=!0);for(const e of s)this[o(505)](t,e)&&(n=!0);for(const e of r)this[o(489)](t,e)&&(n=!0);return n}[u(467)](t){const e=u;if(!this[e(542)])return!1;let o=!1;if(this[e(542)][e(527)]!==this[e(517)][e(465)]){const n=[];for(const t of this[e(542)][e(491)]()){const i=t[e(454)](e(456));this[e(549)](i)||(n[e(472)](t),o=!0)}for(const o of n)t[e(490)](o)}const n=new Set,i=[];for(const t of this[e(542)][e(491)]()){const s=t[e(454)](e(456));n[e(492)](s)?(i[e(472)](t),o=!0):n[e(556)](s)}for(const o of i)t[e(490)](o);return this[e(542)][e(527)]||(t[e(490)](this[e(542)]),this[e(542)]=null,o=!0),o}[u(505)](t,e){const o=u;if(this[o(517)][o(487)](t=>t[o(458)]===e))return!1;let n=!1;const i=e[o(454)](o(456)),s=this[o(517)][o(514)](t=>t.id===i);-1!==s&&(t[o(490)](this[o(517)][s][o(458)]),this[o(517)][o(523)](s,1),n=!0);let r=this[o(542)]?function(t,e){const n=o;for(const o of t[n(491)]())if(o[n(454)](n(456))===e)return o;return null}(this[o(542)],i):null;r||(r=t[o(530)](o(532),{footnoteId:i}),this[o(542)]&&(t[o(461)](r,this[o(542)],o(479)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(519)][o(471)],this[o(517)],e);this[o(517)][o(523)](c,0,a);let l=c;return-1!==s&&(l=Math[o(552)](c,s)),this[o(463)](t,l)&&(n=!0),n}[u(485)](t,e){const o=u,n=this[o(517)][o(514)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(517)][n];return o(497)!==s[o(507)][o(500)][o(533)]&&(t[o(490)](s[o(507)]),i=!0),this[o(517)][o(523)](n,1),this[o(463)](t,n)&&(i=!0),i}[u(489)](t,e){const o=u,n=e[o(454)](o(456)),i=this[o(517)][o(514)](t=>t.id===n),s=this[o(517)][i];let r=!1;s[o(458)]=e,this[o(517)][o(523)](i,1);const a=m(this[o(519)][o(471)],this[o(517)],e);return this[o(517)][o(523)](a,0,s),this[o(463)](t,Math[o(552)](i,a))&&(r=!0),r}[u(464)](t,e){const o=u;if(!this[o(542)])return!1;const n=this[o(517)][e];let i;return i=this[o(466)]?this[o(466)]({footnote:n,container:this[o(542)],digits:String(this[o(517)][o(465)])[o(465)],value:e+1}):String(e+1),n[o(458)][o(454)](o(468))!=i&&(t[o(476)](o(468),i,n[o(458)]),!0)}[u(545)](t){const e=u;if(!this[e(542)]||this[e(517)][e(465)]<2)return!1;if(function(t,o){const n=e;if(t[n(465)]!==o[n(465)])return!1;for(let e=0;e<t[n(465)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(517)][e(480)](t=>t.id),Array[e(508)](this[e(542)][e(491)]())[e(480)](t=>t[e(454)](e(456)))))return!1;let o=!1;for(let n=0;n<this[e(517)][e(465)];n++){const i=this[e(517)][n],s=t[e(503)](i[e(507)]),r=t[e(551)](this[e(542)],n);s[e(455)](r)||(t[e(488)](t[e(459)](i[e(507)]),r),o=!0)}return o}[u(498)](t){const e=u;if(!this[e(517)][e(465)])return!1;const{model:o}=this[e(519)];let n=!1;for(let i=0;i<this[e(517)][e(465)]-1;i++){const s=this[e(517)][i],r=this[e(517)][i+1],a=o[e(503)](s[e(458)]),c=o[e(503)](r[e(458)]);e(520)===a[e(495)](c)&&(this[e(489)](t,s[e(458)]),i=-1,n=!0)}return n}}function d(t,e){const o=h();return(d=function(t,e){return o[t-=454]})(t,e)}function p(t,e,o){const n=u;if(o[n(527)])return!1;const i=n(e?516:474);return t[n(461)](t[n(530)](i),o),!0}function h(){const t=["compareWith","push","$graveyard","_ensureFootnotesReferencesHaveProperOrder","singleton","root","getFootnotesFormatter","_footnoteDefsTracker","createPositionBefore","registerPostFixer","_handleInsertedFootnoteReference","_ensureFootnotesDefinitionsContainerExists","definition","from","getRootNames","276418SlDkFA","parent","append","601781GeZMzM","findIndex","2748WsQCOB","paragraph","_footnotes","footnotes.multiBlock","editor","after","differ","27nxPTSg","splice","createRangeIn","set","11210LBGeqc","childCount","_footnoteDefsContainerTracker","config","createElement","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","rootName","8243106WAfLFX","getFootnotesDefinitionsObjectElement","350056UXGprj","_handleFootnoteReferencesChanges","init","getChanges","high","document","_footnotesDefinitions","_handleFootnoteDefinitionsChanges","isPremiumPlugin","_sortFootnoteDefinitions","change:data","indexOf","FootnotesTracker","getFootnote","some","createPositionAt","min","setFootnoteFormatter","_footnoteRefsTracker","get","add","_handleFootnotesDefinitionsObjectChanges","getAttribute","isEqual","footnoteId","footnotesDefinitions","reference","createRangeOn","before","insert","isOfficialPlugin","_updateFootnotesCounters","_updateFootnoteRefCounter","length","_footnoteFormatter","_handleFootnotesDefinitionsObjectSync","footnoteCounter","low","7084zVBrbK","model","unshift","51011909IOOnOP","footnoteInlineContent","pluginName","setAttribute","12kArPLm","listenTo","end","map","footnoteRef","7555IIGchy","enqueueChange","7LYSShI","_handleRemoveFootnoteReferenceById","reset","find","move","_handleMovedFootnoteReference","remove","getChildren","has","39vsJXwg","getFootnotes"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(465)])return 0;const i=t[n(503)](o);for(let o=0;o<e[n(465)];o++){const s=e[o],r=t[n(503)](s[n(458)]);if(n(460)===i[n(495)](r))return o}const s=o[n(500)];let r=-1;for(let t=e[n(465)]-1;t>=0;t--)if(e[t][n(458)][n(500)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(541)][n(509)](),c=a[n(547)](s[n(533)]),l=a[c+1];if(l)for(let t=0;t<e[n(465)];t++)if(e[t][n(458)][n(500)][n(533)]===l)return t;return e[n(465)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=257]})(t,e)}function y(){const t=["execute","2559744KwqHlI","42540XdupDK","insertObject","footnoteId","plugins","_moveSelectionToFootnoteDefinition","model","99TjPFMB","getItems","670293KJLXud","footnoteRef","FootnotesEditing","296390ieFYqR","11tAYBRa","get","checkChild","refresh","56VxVMeD","end","length","76vchPbt","selection","createElement","_getPositionToInsertFootnote","getFirstRange","string","test","127338rOWYrG","isObject","8042352lfmpyG","change","insert-footnote-command-executed-with-invalid-id","editor","isEnabled","6091yIcYKX","172eZFPjT","isBlock","document"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(367730===-parseInt(e(288))/1*(parseInt(e(289))/2)+parseInt(e(263))/3+-parseInt(e(274))/4*(-parseInt(e(294))/5)+-parseInt(e(281))/6*(parseInt(e(271))/7)+-parseInt(e(293))/8+-parseInt(e(261))/9*(-parseInt(e(266))/10)+parseInt(e(267))/11*(parseInt(e(283))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(270)](){const t=g,e=this[t(286)][t(260)][t(291)][t(275)],o=this[t(277)](e);this[t(287)]=!!o}[g(292)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(291)],r=this[e(277)](s);if(!r)return;const a=o[e(258)][e(268)](e(265)),c=t?.[e(257)]??(0,i.uid)();!function(t){const o=e;return o(279)==typeof t&&t[o(273)]>0&&!/\s/[o(280)](t)&&!/^\d/[o(280)](t)}(c)?(0,i.logWarning)(e(285)):(n[e(284)](t=>{const o=e,i=t[o(276)](o(264),{footnoteId:c});n[o(295)](i,r,null)}),a[e(259)](c))}[g(277)](t){const e=g,{model:o}=this[e(286)],{schema:n}=o,i=t[e(278)]();for(const t of i[e(262)]())if(n[e(290)](t)||n[e(282)](t))return null;const s=i[e(272)];return n[e(269)](s,e(264))?s:null}}class I extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[f]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1776297600;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(f).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(f).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:v(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:v({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:v()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function v({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);function A(t,e){const o=D();return(A=function(t,e){return o[t-=466]})(t,e)}const T=A;function D(){const t=["parse","entries","contentInsertion","reduce","editing","30ozVwpE","getSelectedBlocks","append","stringify","find","_handleCopyFootnotesDefinitions","getFirstRange","getChildren","getData","1053kLzEzF","961996OQAjjh","content","createElement","end","data","cloneElement","application/ckeditor5-footnotes","_insertEmptyFootnotesDefinitionsContainer","_handlePasteFootnotesDefinitions","setAttribute","toView","selection","hasAttribute","add","element","footnoteId","FootnotesClipboard","createRangeIn","getFootnotes","flatMap","footnoteInlineContent","config","32184hJCdyJ","init","drop","listenTo","definition","remove","_defineClipboardIntegration","editor","footnotesDefinitions","from","string","change","2620880hGFrGO","root","footnoteRef","insert","htmlProcessor","1941954QeGnRS","method","1179992nVNjNb","keys","push","193145PAdozt","create","toData","getFootnote","isOfficialPlugin","includes","get","outputTransformation","document","toModel","requires","getAttribute","sourceEditorId","dataTransfer","footnoteDefinition","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","setData","getRanges","isPremiumPlugin","length","clipboardInput","pluginName","586683SLBmWc"];return(D=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(367513===parseInt(e(523))/1+parseInt(e(497))/2+parseInt(e(495))/3+-parseInt(e(490))/4+-parseInt(e(500))/5*(parseInt(e(529))/6)+-parseInt(e(539))/7+-parseInt(e(478))/8*(parseInt(e(538))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(522)](){return T(472)}static get[T(510)](){return[I,S.ClipboardPipeline]}static get[T(504)](){return!0}static get[T(519)](){return!0}[T(479)](){this[T(484)]()}[T(484)](){const t=T;this[t(534)](),this[t(547)]()}[T(534)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(506)](S.ClipboardPipeline),s=o[t(506)](f);this[t(481)](i,t(507),(o,i)=>{const r=t,a=V(n[r(473)](i[r(540)]));if(!a[r(520)])return;const c=s[r(474)](),l=a[r(527)]((t,o)=>{const n=r,i=c[n(533)](t=>t.id===o);if(i){const o=e[n(543)][n(466)](i[n(482)],{isClipboardPipeline:!0}),s=e[n(543)][n(494)][n(502)](o);t[i.id]=s}return t},Object[r(501)](null));i[r(513)][r(517)](r(545),JSON[r(532)](l))})}[T(547)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(528)],r=n[t(506)](S.ClipboardPipeline),a=n[t(506)](f),c=e[t(477)][t(506)](t(516));let l=null;this[t(481)](s[t(508)],t(521),(e,o)=>{const n=t,i=o[n(513)][n(537)](n(545));l=i?JSON[n(524)](i):null}),this[t(481)](r,t(526),(n,s)=>{const r=t,u=s[r(512)]===this[r(485)].id;u&&r(480)===s[r(496)]||o[r(489)](t=>{const n=r;let f=a[n(515)]();const d=!!f&&Array[n(487)](o[n(508)][n(467)][n(530)]())[n(505)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(470),e(492)))return!0;return!1}(o[n(473)](s[n(540)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(501)](null);for(const e of i[o(536)]())e.is(o(470),o(514))&&e[o(468)](o(471))&&(s[e[o(511)](o(471))]=t[o(544)](e,!0));return Object[o(498)](s)[o(520)]?s:null}(t,s[n(540)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(473)](e))n.is(o(470),o(486))&&i[o(499)](n);for(const e of i)t[o(483)](e)}(t,s[n(540)]),!l)return;const{selection:p}=o[n(508)],h=p[n(535)]()[n(491)];f&&!d||(f=L(t,s[n(540)]),f||=a[n(546)](t,h));const m=Array[n(487)](p[n(518)]())[n(475)](V),g=function(t,e,o){const s=n,r=Object[s(501)](null);for(const{item:n}of t[s(473)](e))if(n.is(s(470),s(492))){const e=n[s(511)](s(471));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(548)](s(471),r[e],n)}return r}(t,s[n(540)],t=>{const e=n;return!u||!!a[e(503)](t)&&!m[e(505)](t)});for(const[o,i]of Object[n(525)](l)){const s=g[o]||o;let r;if(n(488)!=typeof i)r=i,s!==o&&t[n(548)](n(471),s,r);else{r=t[n(541)](n(514),{footnoteId:s});const o=e[n(543)][n(494)][n(466)](i);let a;if(c)a=e[n(543)][n(509)](o,r);else{a=t[n(541)](n(476));const i=e[n(543)][n(509)](o,a);t[n(493)](i,a)}t[n(531)](a,r)}t[n(493)](r,f,n(542))}l=null})})}}function L(t,e){const o=T;for(const{item:n}of t[o(473)](e))if(n.is(o(470),o(486)))return n;return null}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(470),e(492))&&o[e(469)](n[e(511)](e(471)));return Array[e(487)](o)}var O=o(311),N=o(355),R=o(789),K=o.n(R),j=o(437),M=o.n(j),B=o(298),z=o.n(B),W=o(207),H=o.n(W),J=o(825),U=o.n(J),q=o(264),G={attributes:{"data-cke":!0}};G.setAttributes=H(),G.insert=z().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=U();K()(q.A,G);q.A&&q.A.locals&&q.A.locals;class Q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",X(t,O.ButtonView)),e.add("menuBar:insertFootnote",X(t,O.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 O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=124]})(t,e)}function $(){var t=["1053786miwnCi","7MBKmJt","4258905BfxEqT","11169480gisxQV","isOfficialPlugin","1907418IJfvJC","isPremiumPlugin","pluginName","Footnotes","4069086wWkwbS","56971fUHjin","requires","2511996AmWIHG"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(542644===parseInt(e(135))/1+parseInt(e(125))/2+-parseInt(e(130))/3+-parseInt(e(124))/4+-parseInt(e(127))/5+parseInt(e(134))/6+-parseInt(e(126))/7*(-parseInt(e(128))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(132)](){return Y(133)}static get[Y(136)](){return[I,_,Q]}static get[Y(129)](){return!0}static get[Y(131)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=413]})(t,e)}function nt(){const t=["5821361DhtaaQ","128dxLlTc","decimal-leading-zero","57HviaAH","upper-roman","3741380VJkDGk","lower-latin","1438514ozIZSz","15604GbYJSF","3197330wCQZQh","upper-alpha","87150UVbDUK","decimal","74322kWQQkY","lower-roman","6VwaTYA","lower-alpha","upper-latin"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(435274===-parseInt(e(428))/1+parseInt(e(424))/2+-parseInt(e(420))/3*(-parseInt(e(425))/4)+-parseInt(e(422))/5*(-parseInt(e(414))/6)+-parseInt(e(417))/7+-parseInt(e(418))/8*(-parseInt(e(430))/9)+-parseInt(e(426))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(429),et(419),et(423),et(416),et(415),et(427),et(413),et(421)],st=at;function rt(){const t=["plugins","refresh","2Elsgrp","setAttribute","value","960krINHD","change","258WZIZYm","get","footnotesListStyle","isEnabled","27QiJYCt","143170URcHJq","model","7384JeMQap","267jIqgWN","171039nrmQrI","3071080FaEnLW","56756JdPKJN","includes","getFootnotesDefinitionsObjectElement","execute","getAttribute","974098cvOavQ","38225031eFlKcb","7357vofZDH","_updateFootnotesCounters"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=222]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(772925===parseInt(e(224))/1*(parseInt(e(245))/2)+-parseInt(e(237))/3*(parseInt(e(240))/4)+-parseInt(e(234))/5*(parseInt(e(229))/6)+-parseInt(e(247))/7*(parseInt(e(236))/8)+-parseInt(e(233))/9*(parseInt(e(239))/10)+parseInt(e(238))/11*(parseInt(e(227))/12)+parseInt(e(246))/13)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(223)](){const t=st,{editor:e}=this,o=e[t(222)][t(230)](f)[t(242)]();this[t(232)]=!!o,this[t(226)]=o?.[t(244)](t(231))??null}[st(243)]({value:t}){const e=st,{editor:o}=this,n=o[e(222)][e(230)](f),i=n[e(242)]();i&&it[e(241)](t)&&o[e(235)][e(228)](o=>{const s=e;o[s(225)](s(231),t,i),n[s(248)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=315]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(353470===-parseInt(e(337))/1+-parseInt(e(324))/2+-parseInt(e(330))/3*(-parseInt(e(318))/4)+parseInt(e(331))/5*(-parseInt(e(335))/6)+parseInt(e(333))/7*(-parseInt(e(329))/8)+parseInt(e(320))/9+parseInt(e(316))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(323)](){const t=lt,{editor:e}=this,o=e[t(334)][t(319)](f)[t(332)]();this[t(325)]=!!o,this[t(317)]=o?.[t(326)](t(315))??null}[lt(321)]({value:t}){const e=lt,{editor:o}=this,n=o[e(334)][e(319)](f),i=n[e(332)]();i&&Number[e(322)](t)&&o[e(336)][e(338)](o=>{const s=e;o[s(328)](s(315),t,i),n[s(327)](o)})}}function dt(){const t=["footnotesListStart","18740470iPAcJn","value","164WvKPNK","get","1019799nVvTTq","execute","isInteger","refresh","909006oIdubG","isEnabled","getAttribute","_updateFootnotesCounters","setAttribute","136ppaKux","10497rPGxKu","5iwWssx","getFootnotesDefinitionsObjectElement","261191apHsEs","plugins","70302PEbaLI","model","676806zPJjKp","change"];return(dt=function(){return t})()}const pt=gt;function ht(){const t=["init","position","footnotes.footnotesProperties.defaultStartIndex","hasClass","toUpperCase","start","upcast","hasAttribute","footnotesListStyle","upper-alpha","isPremiumPlugin","_formatFootnoteListValue","mapper","attribute:footnotesListStyle:footnotesDefinitions","4866JZJHZF","getChanges","item","element:ol","removeAttribute","isOfficialPlugin","2579739fYjLVc","commands","differ","find","viewItem","lower-latin","schema","consumable","_getDefaultListStyle","for","_defineConverters","removeStyle","getAttribute","extend","74658nxXksC","model","_definePostfixer","footnotesStart","getChildren","type","setAttribute","pluginName","config","getItems","modelCursor","plugins","18328DJuATC","lower-alpha","upper-latin","parent","max","document","createRangeOn","checkAttribute","footnotesDefinitions","registerPostFixer","$text","_getDefaultStartIndex","toViewElement","decimal-leading-zero","isNaN","lower-roman","padStart","_defineFormatter","name","list-style-type","requires","upper-roman","footnotesStyle","setStyle","parseInt","1072998FbxrDf","5430tNRnQL","get","from","fromCharCode","_updateFootnotesCounters","floor","11258253JGaXvp","getStyle","8616RdAzBL","footnotes.footnotesProperties.defaultListStyle","FootnotesPropertiesEditing","consume","footnotes-list","attribute:footnotesListStart:footnotesDefinitions","add","writer","setFootnoteFormatter","nodeAfter","downcast","_defineSchema","footnotesListStart","element","1897IWmCdl","editor","insert","define","toLowerCase","decimal"];return(ht=function(){return t})()}!function(t){const e=gt,o=t();for(;;)try{if(477884===parseInt(e(202))/1+parseInt(e(239))/2+parseInt(e(188))/3+-parseInt(e(248))/4+-parseInt(e(240))/5*(-parseInt(e(182))/6)+parseInt(e(162))/7*(-parseInt(e(214))/8)+-parseInt(e(246))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class mt extends t.Plugin{static get[pt(209)](){return pt(250)}static get[pt(234)](){return[I,f]}static get[pt(187)](){return!0}static get[pt(178)](){return!0}[pt(168)](){const t=pt,{editor:e}=this;e[t(210)][t(165)](t(249),t(167)),e[t(210)][t(165)](t(170),1),e[t(189)][t(254)](t(236),new ct(e)),e[t(189)][t(254)](t(205),new ft(e)),this[t(159)](),this[t(198)](),this[t(231)](),this[t(204)]()}[pt(159)](){const t=pt,{editor:e}=this,{schema:o}=e[t(203)];o[t(201)](t(222),{allowAttributes:[t(176),t(160)]})}[pt(198)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(197)](t(174))[t(254)](e=>{const o=t;e.on(o(185),(t,e,n)=>{const s=o,r=e[s(192)],a=e[s(212)]?.[s(217)];r[s(171)](s(252))&&a?.is(s(161),s(222))&&(function(t,e,o,n){const i=s;if(!n[i(221)](e,i(160)))return;let r=1;const a=o[i(195)][i(251)](t,{attributes:i(173)});if(a){const e=Number[i(238)](t[i(200)](i(173)),10);Number[i(228)](e)||(r=e)}!a&&e[i(175)](i(160))||o[i(255)][i(208)](i(160),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(221)](e,i(176)))return;let r=i(167),a=!1;if(o[i(195)][i(251)](t,{attributes:i(207)})){const e={1:i(167),a:i(215),A:i(177),i:i(229),I:i(235)}[t[i(200)](i(207))];e&&(r=e),a=!0}o[i(195)][i(251)](t,{styles:i(233)})&&(r=function(t){const e=i;switch(t){case e(215):return e(193);case e(177):return e(216);default:return t}}(t[i(247)](i(233))),a=!0),!a&&e[i(175)](i(176))||o[i(255)][i(208)](i(176),r,e)}(r,a,n,i))})}),o[t(197)](t(258))[t(254)](e=>{const o=t;e.on(o(253),(t,e,n)=>{const i=o;if(!n[i(195)][i(251)](e[i(184)],t[i(232)]))return;const s=wt(e[i(184)],n[i(180)]),{attributeNewValue:r}=e;null==r||1===r?n[i(255)][i(186)](i(173),s):n[i(255)][i(208)](i(173),String(r),s)}),e.on(o(181),(t,e,n)=>{const i=o;if(!n[i(195)][i(251)](e[i(184)],t[i(232)]))return;const s=wt(e[i(184)],n[i(180)]),{attributeNewValue:r}=e;r&&i(167)!==r?n[i(255)][i(237)](i(233),r,s):n[i(255)][i(199)](i(233),s)})})}[pt(204)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(213)][t(241)](f),i=this[t(196)](),s=this[t(225)]();o[t(219)][t(223)](e=>{const r=t,a=o[r(219)][r(190)][r(183)]();let c=!1;for(const t of a){if(r(164)!==t[r(207)]||r(224)===t[r(232)])continue;const n=o[r(220)](t[r(169)][r(257)]);for(const t of n[r(211)]())t.is(r(161),r(222))&&(!t[r(175)](r(160))&&o[r(194)][r(221)](t,r(160))&&(e[r(208)](r(160),s,t),c=!0),!t[r(175)](r(176))&&o[r(194)][r(221)](t,r(176))&&(e[r(208)](r(176),i,t),c=!0))}return c&&n[r(244)](e),c})}[pt(231)](){const t=pt,{editor:e}=this;e[t(213)][t(241)](f)[t(256)](e=>this[t(179)](e))}[pt(196)](){const t=pt;return this[t(163)][t(210)][t(241)](t(249))}[pt(225)](){const t=pt;return this[t(163)][t(210)][t(241)](t(170))}[pt(179)]({container:t,value:e,digits:o}){const n=pt,i=t[n(200)](n(176)),s=t[n(200)](n(160)),r=Math[n(245)](e)+(s??1)-1;switch(i){case n(227):return function(t,e){const o=n;return String(t)[o(230)](e,"0")}(r,Math[n(218)](2,o));case n(215):case n(193):return yt(r,!1);case n(177):case n(216):return yt(r,!0);case n(229):return It(r,!1);case n(235):return It(r,!0);default:return String(r)}}}function gt(t,e){const o=ht();return(gt=function(t,e){return o[t-=159]})(t,e)}function wt(t,e){const o=pt,n=e[o(226)](t);return Array[o(242)](n[o(206)]())[o(191)](t=>t.is(o(161),"ol")&&t[o(171)](o(252)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(243)](97+t)+n,i=Math[o(245)]((i-1)/26)}return e?n[o(172)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function It(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(166)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.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,O.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 O.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 O.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 O.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 O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(851),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=H(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=U();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[O.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,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.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}=O.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=Pt;function Et(){var t=["4299DqwErp","isOfficialPlugin","isPremiumPlugin","13762LFXvoI","pluginName","2070306rPVBDI","1229625LureIh","requires","FootnotesProperties","1656dcYxwR","562210jrGLec","908upunxk","285675EDCtKO","93770sfFUNq"];return(Et=function(){return t})()}function Pt(t,e){var o=Et();return(Pt=function(t,e){return o[t-=423]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(206087===-parseInt(e(426))/1+-parseInt(e(423))/2+parseInt(e(427))/3*(parseInt(e(424))/4)+parseInt(e(425))/5+-parseInt(e(432))/6+-parseInt(e(430))/7*(-parseInt(e(436))/8)+parseInt(e(433))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[xt(431)](){return xt(435)}static get[xt(434)](){return[mt,Ft]}static get[xt(428)](){return!0}static get[xt(429)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=467]})(t,e)}function Tt(){var t=["486885HzqzZO","20sblgTa","5507370dmmmOH","630406ZcONcz","393281IEqJky","523728KRPpgH","2995664KrXmjc","2214420WpVsPa","184qcStoq"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(711493===parseInt(e(469))/1+-parseInt(e(468))/2+-parseInt(e(474))/3*(-parseInt(e(475))/4)+parseInt(e(467))/5+-parseInt(e(472))/6+parseInt(e(471))/7+parseInt(e(473))/8*(-parseInt(e(470))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x317c7b,Command as _0x4dcf80}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x35fb10,isWidget as _0x430f0b,toWidgetEditable as _0x4847bd,WidgetToolbarRepository as _0x2d8651}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x44b4b1,logWarning as _0x29139a,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x118744,ClickObserver as _0x5757f2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x3dc1df}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x330ae5,ButtonView as _0x340aa5,View as _0x4478f6,ViewCollection as _0x1ea6eb,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x4bf9d0,BalloonPanelView as _0x2f9784,createDropdown as _0xc6e8a5}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x2bedc6,IconListStyleDecimal as _0x133f39,IconListStyleDecimalLeadingZero as _0x1015f6,IconListStyleLowerRoman as _0x3942f5,IconListStyleUpperRoman as _0x534c42,IconListStyleLowerLatin as _0x3ab491,IconListStyleUpperLatin as _0x58f7ea}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x2eb058,_0x42cb23){this['_model']=_0x2eb058,this['_elementName']=_0x42cb23['elementName'],this['_getElementKey']=_0x42cb23['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x7b5203){const _0x4cc549=new Set(),_0xda30e3=new Map();for(const _0xc3a2af of _0x7b5203){if('insert'===_0xc3a2af['type']&&'$text'!==_0xc3a2af['name']&&_0xc3a2af['position']['nodeAfter']){const _0x115354=this['_model']['createRangeOn'](_0xc3a2af['position']['nodeAfter']);for(const _0x1761a6 of _0x115354['getItems']()){if(!_0x1761a6['is']('element',this['_elementName']))continue;const _0x2b6124=this['_getElementKey'](_0x1761a6);_0xda30e3['has'](_0x2b6124)||_0xda30e3['set'](_0x2b6124,[]),_0xda30e3['get'](_0x2b6124)['push'](_0x1761a6);}}if('remove'===_0xc3a2af['type']&&_0xc3a2af['name']===this['_elementName']){const _0x1308c5=this['_getElementKey']({'getAttribute':_0xf6ca85=>_0xc3a2af['attributes']['get'](_0xf6ca85)});_0x4cc549['add'](_0x1308c5);}}for(const [_0x2c2419,_0x6d317a]of this['_trackedElements'])'$graveyard'===_0x6d317a['root']['rootName']&&_0x4cc549['add'](_0x2c2419);for(const _0x1deff7 of _0x4cc549)this['_trackedElements']['delete'](_0x1deff7);for(const [_0x39b061,_0x5e93bf]of _0xda30e3)this['_trackedElements']['set'](_0x39b061,_0x5e93bf[_0x5e93bf['length']-0x1]);const _0x299008=new Set();for(const [_0x133d4d,_0x36e4b5]of _0xda30e3)_0x4cc549['has'](_0x133d4d)&&(_0x299008['add'](_0x36e4b5[0x0]),_0x36e4b5['length']>0x1?_0xda30e3['set'](_0x133d4d,_0x36e4b5['slice'](0x1)):_0xda30e3['delete'](_0x133d4d),_0x4cc549['delete'](_0x133d4d));return{'removed':Array['from'](_0x4cc549),'inserted':Array['from'](_0xda30e3['values']())['flat'](),'moved':Array['from'](_0x299008)};}}class f extends _0x317c7b{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x5a2c92){super(_0x5a2c92),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x3d667e=>_0x3d667e['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x246315=>_0x246315['getAttribute']('footnoteId')});}['init'](){const {editor:_0x816981}=this,{model:_0x5907e6,data:_0x95cf4b}=_0x816981;_0x5907e6['document']['registerPostFixer'](_0x2bee75=>{const _0x49b849=_0x5907e6['document']['differ']['getChanges']();let _0x4ef923=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2bee75,_0x49b849)&&(_0x4ef923=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2bee75,_0x49b849)&&(_0x4ef923=!0x0),this['_handleFootnoteReferencesChanges'](_0x2bee75,_0x49b849)&&(_0x4ef923=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2bee75)&&(_0x4ef923=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2bee75)&&(_0x4ef923=!0x0),this['_sortFootnoteDefinitions'](_0x2bee75)&&(_0x4ef923=!0x0),_0x4ef923;}),this['listenTo'](_0x5907e6['document'],'change:data',()=>{_0x5907e6['enqueueChange']({'isUndoable':!0x1},_0x4586df=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x4586df);});},{'priority':'low'}),this['listenTo'](_0x95cf4b,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x2d820c){return this['_footnotes']['find'](_0x3cfdd6=>_0x3cfdd6['id']===_0x2d820c)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x57a76f){this['_footnoteFormatter']=_0x57a76f;}['_updateFootnotesCounters'](_0x1f932c,_0x4da02a=0x0){let _0x4973ae=!0x1;for(let _0x5a5f6b=_0x4da02a;_0x5a5f6b<this['_footnotes']['length'];_0x5a5f6b++)this['_updateFootnoteRefCounter'](_0x1f932c,_0x5a5f6b)&&(_0x4973ae=!0x0);return _0x4973ae;}['_insertEmptyFootnotesDefinitionsContainer'](_0x2c9bae,_0x465139){const _0x5d3289=_0x2c9bae['createElement']('footnotesDefinitions',{});return _0x2c9bae['append'](_0x5d3289,_0x465139),this['_footnotesDefinitions']=_0x5d3289,_0x5d3289;}['_ensureFootnotesDefinitionsContainerExists'](_0x2bb513){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x318500=this['_footnotes'][0x0]['reference']['root'],_0x314363=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2bb513,_0x318500);for(const _0x298fbe of this['_footnotes'])_0x298fbe['definition']['parent']||_0x2bb513['insert'](_0x298fbe['definition'],_0x314363,'end');this['_updateFootnotesCounters'](_0x2bb513);}['_handleFootnotesDefinitionsObjectChanges'](_0x4a15c3,_0x47c4d7){let _0x4197e5=!0x1;const {inserted:_0x41c999,removed:_0x2d2f5e,moved:_0x34ea9f}=this['_footnoteDefsContainerTracker']['getChanges'](_0x47c4d7);if(_0x34ea9f['length']&&(this['_footnotesDefinitions']=_0x34ea9f[0x0]),_0x41c999['length']){if(_0x41c999['length']>0x1||this['_footnotesDefinitions']&&_0x41c999['some'](_0x1b7c11=>_0x1b7c11!==this['_footnotesDefinitions'])){const _0x54f2d4=_0x4a15c3['createElement']('footnotesDefinitions',{}),_0x350a6d=[];this['_footnotesDefinitions']&&_0x350a6d['push'](this['_footnotesDefinitions']),_0x350a6d['push'](..._0x41c999),_0x4a15c3['insert'](_0x54f2d4,_0x350a6d[0x0],'before');for(const _0x46e454 of _0x350a6d)_0x4a15c3['move'](_0x4a15c3['createRangeIn'](_0x46e454),_0x4a15c3['createPositionAt'](_0x54f2d4,'end')),_0x4a15c3['remove'](_0x46e454);this['_footnotesDefinitions']=_0x54f2d4,this['_updateFootnotesCounters'](_0x4a15c3),_0x4197e5=!0x0;}else this['_footnotesDefinitions']=_0x41c999[0x0];}if(_0x2d2f5e['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x3cc9d7 of this['_footnotes'])_0x4a15c3['remove'](_0x3cc9d7['reference']),_0x4197e5=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x4197e5;}['_handleFootnoteDefinitionsChanges'](_0x4b1622,_0x518413){let _0x408715=!0x1;const _0x451767=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x340abc,moved:_0x5629a2}=this['_footnoteDefsTracker']['getChanges'](_0x518413);for(const _0x5224d4 of[..._0x5629a2,..._0x340abc]){const _0x375d5f=_0x5224d4['getAttribute']('footnoteId'),_0xb75244=this['getFootnote'](_0x375d5f);_0xb75244&&(_0xb75244['definition']=_0x5224d4),_(_0x4b1622,_0x451767,_0x5224d4)&&(_0x408715=!0x0);}return _0x408715;}['_handleFootnoteReferencesChanges'](_0x3cf9c3,_0x14ee70){let _0x5ce21c=!0x1;const {removed:_0x29af2d,inserted:_0x42f618,moved:_0x1ff6ad}=this['_footnoteRefsTracker']['getChanges'](_0x14ee70);for(const _0x1fe9f6 of _0x29af2d)this['_handleRemoveFootnoteReferenceById'](_0x3cf9c3,_0x1fe9f6)&&(_0x5ce21c=!0x0);for(const _0x1bb79f of _0x42f618)this['_handleInsertedFootnoteReference'](_0x3cf9c3,_0x1bb79f)&&(_0x5ce21c=!0x0);for(const _0x150f92 of _0x1ff6ad)this['_handleMovedFootnoteReference'](_0x3cf9c3,_0x150f92)&&(_0x5ce21c=!0x0);return _0x5ce21c;}['_handleFootnotesDefinitionsObjectSync'](_0x170ab0){if(!this['_footnotesDefinitions'])return!0x1;let _0x2026b0=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x204707=[];for(const _0x499b97 of this['_footnotesDefinitions']['getChildren']()){const _0x4e5a14=_0x499b97['getAttribute']('footnoteId');this['getFootnote'](_0x4e5a14)||(_0x204707['unshift'](_0x499b97),_0x2026b0=!0x0);}for(const _0x456c87 of _0x204707)_0x170ab0['remove'](_0x456c87);}const _0x575107=new Set(),_0x4c29bc=[];for(const _0x4ed8f1 of this['_footnotesDefinitions']['getChildren']()){const _0x2a2db5=_0x4ed8f1['getAttribute']('footnoteId');_0x575107['has'](_0x2a2db5)?(_0x4c29bc['unshift'](_0x4ed8f1),_0x2026b0=!0x0):_0x575107['add'](_0x2a2db5);}for(const _0x5e7e5c of _0x4c29bc)_0x170ab0['remove'](_0x5e7e5c);return this['_footnotesDefinitions']['childCount']||(_0x170ab0['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x2026b0=!0x0),_0x2026b0;}['_handleInsertedFootnoteReference'](_0x38f341,_0x1e72c0){if(this['_footnotes']['find'](_0xa15c2c=>_0xa15c2c['reference']===_0x1e72c0))return!0x1;let _0x1d377c=!0x1;const _0x189ece=_0x1e72c0['getAttribute']('footnoteId'),_0x2598ab=this['_footnotes']['findIndex'](_0x42e3f4=>_0x42e3f4['id']===_0x189ece);-0x1!==_0x2598ab&&(_0x38f341['remove'](this['_footnotes'][_0x2598ab]['reference']),this['_footnotes']['splice'](_0x2598ab,0x1),_0x1d377c=!0x0);let _0x271fcd=this['_footnotesDefinitions']?function(_0x1b2ddd,_0x10834d){for(const _0x2f9216 of _0x1b2ddd['getChildren']())if(_0x2f9216['getAttribute']('footnoteId')===_0x10834d)return _0x2f9216;return null;}(this['_footnotesDefinitions'],_0x189ece):null;_0x271fcd||(_0x271fcd=_0x38f341['createElement']('footnoteDefinition',{'footnoteId':_0x189ece}),this['_footnotesDefinitions']&&(_0x38f341['insert'](_0x271fcd,this['_footnotesDefinitions'],'end'),_0x1d377c=!0x0));const _0x4d3f9f={'id':_0x189ece,'reference':_0x1e72c0,'definition':_0x271fcd},_0x4d634f=I(this['editor']['model'],this['_footnotes'],_0x1e72c0);this['_footnotes']['splice'](_0x4d634f,0x0,_0x4d3f9f);let _0x3390ff=_0x4d634f;return-0x1!==_0x2598ab&&(_0x3390ff=Math['min'](_0x4d634f,_0x2598ab)),this['_updateFootnotesCounters'](_0x38f341,_0x3390ff)&&(_0x1d377c=!0x0),_0x1d377c;}['_handleRemoveFootnoteReferenceById'](_0x3d405c,_0x5168a7){const _0x4ca8d4=this['_footnotes']['findIndex'](_0x3d3f2a=>_0x3d3f2a['id']===_0x5168a7);if(-0x1===_0x4ca8d4)return!0x1;let _0x5ada9e=!0x1;const _0x31e3af=this['_footnotes'][_0x4ca8d4];return'$graveyard'!==_0x31e3af['definition']['root']['rootName']&&(_0x3d405c['remove'](_0x31e3af['definition']),_0x5ada9e=!0x0),this['_footnotes']['splice'](_0x4ca8d4,0x1),this['_updateFootnotesCounters'](_0x3d405c,_0x4ca8d4)&&(_0x5ada9e=!0x0),_0x5ada9e;}['_handleMovedFootnoteReference'](_0x517a36,_0x5cac18){const _0x4ce8b6=_0x5cac18['getAttribute']('footnoteId'),_0x64e6ac=this['_footnotes']['findIndex'](_0x1ee4c9=>_0x1ee4c9['id']===_0x4ce8b6),_0x5a6999=this['_footnotes'][_0x64e6ac];let _0x9a248c=!0x1;_0x5a6999['reference']=_0x5cac18,this['_footnotes']['splice'](_0x64e6ac,0x1);const _0x1f441d=I(this['editor']['model'],this['_footnotes'],_0x5cac18);return this['_footnotes']['splice'](_0x1f441d,0x0,_0x5a6999),this['_updateFootnotesCounters'](_0x517a36,Math['min'](_0x64e6ac,_0x1f441d))&&(_0x9a248c=!0x0),_0x9a248c;}['_updateFootnoteRefCounter'](_0x50402f,_0x9808e8){if(!this['_footnotesDefinitions'])return!0x1;const _0x4c18de=this['_footnotes'][_0x9808e8];let _0x196b7a;return _0x196b7a=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x4c18de,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x9808e8+0x1}):String(_0x9808e8+0x1),_0x4c18de['reference']['getAttribute']('footnoteCounter')!=_0x196b7a&&(_0x50402f['setAttribute']('footnoteCounter',_0x196b7a,_0x4c18de['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x205f2b){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x369c8a,_0x435dee){if(_0x369c8a['length']!==_0x435dee['length'])return!0x1;for(let _0x167b3d=0x0;_0x167b3d<_0x369c8a['length'];_0x167b3d++)if(_0x369c8a[_0x167b3d]!==_0x435dee[_0x167b3d])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x2270c8=>_0x2270c8['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x3eb350=>_0x3eb350['getAttribute']('footnoteId'))))return!0x1;let _0x319fb2=!0x1;for(let _0x3c806b=0x0;_0x3c806b<this['_footnotes']['length'];_0x3c806b++){const _0x7d14e0=this['_footnotes'][_0x3c806b],_0x5cf624=_0x205f2b['createPositionBefore'](_0x7d14e0['definition']),_0x12f85f=_0x205f2b['createPositionAt'](this['_footnotesDefinitions'],_0x3c806b);_0x5cf624['isEqual'](_0x12f85f)||(_0x205f2b['move'](_0x205f2b['createRangeOn'](_0x7d14e0['definition']),_0x12f85f),_0x319fb2=!0x0);}return _0x319fb2;}['_ensureFootnotesReferencesHaveProperOrder'](_0x594527){if(!this['_footnotes']['length'])return!0x1;const {model:_0x233b4d}=this['editor'];let _0x802f99=!0x1;for(let _0x3319ec=0x0;_0x3319ec<this['_footnotes']['length']-0x1;_0x3319ec++){const _0x30facc=this['_footnotes'][_0x3319ec],_0x499336=this['_footnotes'][_0x3319ec+0x1],_0x39f03d=_0x233b4d['createPositionBefore'](_0x30facc['reference']),_0x564948=_0x233b4d['createPositionBefore'](_0x499336['reference']);'after'===_0x39f03d['compareWith'](_0x564948)&&(this['_handleMovedFootnoteReference'](_0x594527,_0x30facc['reference']),_0x3319ec=-0x1,_0x802f99=!0x0);}return _0x802f99;}}function _(_0x39eeb8,_0x340556,_0x1ea69d){if(_0x1ea69d['childCount'])return!0x1;const _0x3d827b=_0x340556?'paragraph':'footnoteInlineContent';return _0x39eeb8['insert'](_0x39eeb8['createElement'](_0x3d827b),_0x1ea69d),!0x0;}function I(_0xf9ddb3,_0xe1044b,_0x28c13b){if(0x0===_0xe1044b['length'])return 0x0;const _0x34a48b=_0xf9ddb3['createPositionBefore'](_0x28c13b);for(let _0x3b868a=0x0;_0x3b868a<_0xe1044b['length'];_0x3b868a++){const _0x4ef311=_0xe1044b[_0x3b868a],_0x14079b=_0xf9ddb3['createPositionBefore'](_0x4ef311['reference']);if('before'===_0x34a48b['compareWith'](_0x14079b))return _0x3b868a;}const _0x1ce308=_0x28c13b['root'];let _0x370519=-0x1;for(let _0x34af73=_0xe1044b['length']-0x1;_0x34af73>=0x0;_0x34af73--)if(_0xe1044b[_0x34af73]['reference']['root']===_0x1ce308){_0x370519=_0x34af73;break;}if(-0x1!==_0x370519)return _0x370519+0x1;const _0x467d2f=_0xf9ddb3['document']['getRootNames'](),_0x267f52=_0x467d2f['indexOf'](_0x1ce308['rootName']),_0x25da05=_0x467d2f[_0x267f52+0x1];if(_0x25da05){for(let _0x3979a8=0x0;_0x3979a8<_0xe1044b['length'];_0x3979a8++)if(_0xe1044b[_0x3979a8]['reference']['root']['rootName']===_0x25da05)return _0x3979a8;}return _0xe1044b['length'];}class h extends _0x4dcf80{['refresh'](){const _0x21f8e8=this['editor']['model']['document']['selection'],_0x204bfc=this['_getPositionToInsertFootnote'](_0x21f8e8);this['isEnabled']=!!_0x204bfc;}['execute'](_0x9221f){const {editor:_0x399d3b}=this,{model:_0x4db90c}=_0x399d3b,{selection:_0x2e93b0}=_0x4db90c['document'],_0xf2ae81=this['_getPositionToInsertFootnote'](_0x2e93b0);if(!_0xf2ae81)return;const _0x40e7f8=_0x399d3b['plugins']['get']('FootnotesEditing'),_0x2b8708=_0x9221f?.['footnoteId']??_0x44b4b1();!function(_0x2890ac){return'string'==typeof _0x2890ac&&_0x2890ac['length']>0x0&&!/\s/['test'](_0x2890ac)&&!/^\d/['test'](_0x2890ac);}(_0x2b8708)?_0x29139a('insert-footnote-command-executed-with-invalid-id'):(_0x4db90c['change'](_0x2628d6=>{const _0x254c2e=_0x2628d6['createElement']('footnoteRef',{'footnoteId':_0x2b8708});_0x4db90c['insertObject'](_0x254c2e,_0xf2ae81,null);}),_0x40e7f8['_moveSelectionToFootnoteDefinition'](_0x2b8708));}['_getPositionToInsertFootnote'](_0x306725){const {model:_0x344045}=this['editor'],{schema:_0xd9a873}=_0x344045,_0x7c576b=_0x306725['getFirstRange']();for(const _0x12127c of _0x7c576b['getItems']())if(_0xd9a873['isBlock'](_0x12127c)||_0xd9a873['isObject'](_0x12127c))return null;const _0x5c8446=_0x7c576b['end'];return _0xd9a873['checkChild'](_0x5c8446,'footnoteRef')?_0x5c8446:null;}}class r extends _0x317c7b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd3cde5}=this;_0xd3cde5['config']['define']('footnotes.multiBlock',!0x0),_0xd3cde5['commands']['add']('insertFootnote',new h(_0xd3cde5)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1e3e8b){const _0x45110a=_0x812e6a([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]),_0x1f7068=0x47a28506,_0x193b94=0x47a50256^_0x1f7068,_0xfbb3bf=window[_0x812e6a([0x44,0x61,0x74,0x65])][_0x812e6a([0x6e,0x6f,0x77])](),_0x31c07d=_0x1e3e8b[_0x812e6a([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x505886=new window[(_0x812e6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x482cb7=>{_0x31c07d[_0x812e6a([0x6f,0x6e,0x63,0x65])](_0x812e6a([0x72,0x65,0x61,0x64,0x79]),_0x482cb7);}),_0x8b36f2={[_0x812e6a([0x6b,0x74,0x79])]:_0x812e6a([0x45,0x43]),[_0x812e6a([0x75,0x73,0x65])]:_0x812e6a([0x73,0x69,0x67]),[_0x812e6a([0x63,0x72,0x76])]:_0x812e6a([0x50,0x2d,0x32,0x35,0x36]),[_0x812e6a([0x78])]:_0x812e6a([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]),[_0x812e6a([0x79])]:_0x812e6a([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]),[_0x812e6a([0x61,0x6c,0x67])]:_0x812e6a([0x45,0x53,0x32,0x35,0x36])},_0x516a64=_0x31c07d[_0x812e6a([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x812e6a([0x67,0x65,0x74])](_0x812e6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5b6d28(){let _0x15a291,_0x15720c=null,_0x2b908d=null;try{if(_0x516a64==_0x812e6a([0x47,0x50,0x4c]))return _0x812e6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x15a291=_0xd77530(),!_0x15a291)return _0x812e6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x15a291[_0x812e6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x2b908d=_0x4bcb41(_0x15a291[_0x812e6a([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x15a291[_0x812e6a([0x6a,0x74,0x69])])),await _0x32f02d()?_0x1d60af()?_0x50de56()?_0x812e6a([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x516e0b()?(_0x15a291[_0x812e6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x812e6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x15720c=_0x51873f(_0x812e6a([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x2deb9f()):_0x812e6a([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x812e6a([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x812e6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x812e6a([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x50de56(){const _0x5524a2=[_0x812e6a([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x812e6a([0x74,0x72,0x69,0x61,0x6c])][_0x812e6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x15a291[_0x812e6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xfbb3bf/0x3e8:0xe10*_0x193b94;return _0x15a291[_0x812e6a([0x65,0x78,0x70])]<_0x5524a2;}function _0x1d60af(){const _0x5bfaf2=_0x15a291[_0x812e6a([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x5bfaf2&&(!!_0x5bfaf2[_0x812e6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x812e6a([0x2a]))||!!_0x5bfaf2[_0x812e6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x812e6a([0x46,0x4f,0x4f])));}function _0x516e0b(){const _0x3411e5=_0x15a291[_0x812e6a([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x3411e5||0x0==_0x3411e5[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x4095a5}=new URL(window[_0x812e6a([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x3411e5[_0x812e6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4095a5))return!0x0;const _0x929555=_0x4095a5[_0x812e6a([0x73,0x70,0x6c,0x69,0x74])](_0x812e6a([0x2e]));return _0x3411e5[_0x812e6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4c252d=>_0x4c252d[_0x812e6a([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x812e6a([0x2a])))[_0x812e6a([0x6d,0x61,0x70])](_0x52ab95=>_0x52ab95[_0x812e6a([0x73,0x70,0x6c,0x69,0x74])](_0x812e6a([0x2e])))[_0x812e6a([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x23f4f8=>_0x23f4f8[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x929555[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x812e6a([0x6d,0x61,0x70])](_0x55b7bd=>Array(_0x929555[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x55b7bd[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x812e6a([0x66,0x69,0x6c,0x6c])](_0x55b7bd[0x0]===_0x812e6a([0x2a])?_0x812e6a([0x2a]):'')[_0x812e6a([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x55b7bd))[_0x812e6a([0x73,0x6f,0x6d,0x65])](_0x13f4fe=>_0x929555[_0x812e6a([0x65,0x76,0x65,0x72,0x79])]((_0x4f7681,_0x5b05bb)=>_0x13f4fe[_0x5b05bb]===_0x4f7681||_0x13f4fe[_0x5b05bb]===_0x812e6a([0x2a])));}function _0x2deb9f(){return _0x15720c&&_0x2b908d?new window[(_0x812e6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x240cb3,_0x581db6)=>{_0x15720c[_0x812e6a([0x74,0x68,0x65,0x6e])](_0x240cb3,_0x581db6),_0x2b908d[_0x812e6a([0x74,0x68,0x65,0x6e])](_0x4d6112=>{_0x4d6112!=_0x812e6a([0x56,0x61,0x6c,0x69,0x64])&&_0x240cb3(_0x4d6112);},_0x581db6);}):_0x15720c||_0x2b908d||_0x812e6a([0x56,0x61,0x6c,0x69,0x64]);}}function _0x4bcb41(_0xcfd629,_0x300721){return new window[(_0x812e6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a746a=>{if(_0x1255f8())return _0x1a746a(_0x812e6a([0x56,0x61,0x6c,0x69,0x64]));_0x52feac(),_0x31c07d[_0x812e6a([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x812e6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x13098d=!0x1;const _0x1b6fae=_0x44b4b1();function _0x466f8e(_0xa3c620){return!!_0xa3c620&&(typeof _0xa3c620===_0x812e6a([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0xa3c620===_0x812e6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0xa3c620[_0x812e6a([0x74,0x68,0x65,0x6e])]===_0x812e6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0xa3c620[_0x812e6a([0x63,0x61,0x74,0x63,0x68])]===_0x812e6a([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1901f3(_0x41ea5f){_0x3b3541(_0x41ea5f)[_0x812e6a([0x74,0x68,0x65,0x6e])](_0x37e79f=>{if(!_0x37e79f||_0x37e79f[_0x812e6a([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x812e6a([0x6f,0x6b]))return _0x812e6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3ad5e9(_0x121238(_0x1b6fae+_0x300721))!=_0x37e79f[_0x812e6a([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x812e6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x812e6a([0x56,0x61,0x6c,0x69,0x64]);})[_0x812e6a([0x74,0x68,0x65,0x6e])](_0x3356c2=>(_0x3c042a(),_0x3356c2),()=>{const _0x324e0f=_0x2175d4();return null==_0x324e0f?(_0x3c042a(),_0x812e6a([0x56,0x61,0x6c,0x69,0x64])):_0x812e6a(_0xfbb3bf-_0x324e0f>(0x63ae0106^_0x1f7068)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x812e6a([0x74,0x68,0x65,0x6e])](_0x1a746a)[_0x812e6a([0x63,0x61,0x74,0x63,0x68])](()=>{_0x1a746a(_0x812e6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0xa91694=0x47946b86^_0x1f7068;function _0x3c042a(){const _0x2cda2f=_0x812e6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ad5e9(_0x121238(_0xcfd629)),_0x1d2d9f=_0x1f6b17(_0x3ad5e9(window[_0x812e6a([0x4d,0x61,0x74,0x68])][_0x812e6a([0x63,0x65,0x69,0x6c])](_0xfbb3bf/_0xa91694)));window[_0x812e6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x812e6a([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x2cda2f,_0x1d2d9f);}function _0x2175d4(){const _0x1e5c31=_0x812e6a([0x6c,0x6c,0x63,0x74,0x2d])+_0x3ad5e9(_0x121238(_0xcfd629)),_0x1ca6ef=window[_0x812e6a([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x812e6a([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x1e5c31);return _0x1ca6ef?window[_0x812e6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1f6b17(_0x1ca6ef),0x10)*_0xa91694:null;}function _0x3b3541(_0x40c504){return new window[(_0x812e6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5c32fb,_0x138f3e)=>{_0x40c504[_0x812e6a([0x74,0x68,0x65,0x6e])](_0x5c32fb,_0x138f3e),window[_0x812e6a([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x138f3e,0x47a351c6^_0x1f7068);});}}_0x31c07d[_0x812e6a([0x6f,0x6e])](_0x812e6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x4bc88e,_0x164581)=>{if(_0x164581[0x0]!=_0xcfd629)return _0x1a746a(_0x812e6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x164581[0x1]={..._0x164581[0x1],[_0x812e6a([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x1b6fae};},{[_0x812e6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x812e6a([0x68,0x69,0x67,0x68])}),_0x31c07d[_0x812e6a([0x6f,0x6e])](_0x812e6a([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x55199f=>{_0x466f8e(_0x55199f[_0x812e6a([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x13098d=!0x0,_0x1901f3(_0x55199f[_0x812e6a([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x812e6a([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x812e6a([0x6c,0x6f,0x77])}),_0x505886[_0x812e6a([0x74,0x68,0x65,0x6e])](()=>{_0x13098d||_0x1a746a(_0x812e6a([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1255f8(){return _0x31c07d[_0x812e6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x812e6a([0x76,0x69,0x65,0x77])][_0x812e6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x812e6a([0x61,0x75,0x74,0x6f]);}function _0x52feac(){_0x31c07d[_0x812e6a([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x812e6a([0x76,0x69,0x65,0x77])][_0x812e6a([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x812e6a([0x61,0x75,0x74,0x6f]);}}function _0x51873f(_0x354e8c){const _0xf6929e=[new window[(_0x812e6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x24395b=>setTimeout(_0x24395b,0x47abbbca^_0x1f7068)),_0x505886[_0x812e6a([0x74,0x68,0x65,0x6e])](()=>new window[(_0x812e6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1a7195=>{let _0x128a9e=0x0;_0x31c07d[_0x812e6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x812e6a([0x6f,0x6e])](_0x812e6a([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x88f95,_0x71c1f8)=>{_0x71c1f8[0x0][_0x812e6a([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x128a9e++,_0x128a9e==(0x47a280ee^_0x1f7068)&&(_0x1a7195(),_0x88f95[_0x812e6a([0x6f,0x66,0x66])]());});}))];return window[_0x812e6a([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x812e6a([0x72,0x61,0x63,0x65])](_0xf6929e)[_0x812e6a([0x74,0x68,0x65,0x6e])](()=>_0x354e8c);}async function _0x3651fa(){await _0x505886,_0x31c07d[_0x812e6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x812e6a([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x124b1d,_0x31c07d[_0x812e6a([0x6d,0x6f,0x64,0x65,0x6c])][_0x812e6a([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x124b1d,_0x31c07d[_0x812e6a([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x812e6a([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x2e8892(_0x5d9f3f){const _0xe11200=_0x528953();_0x31c07d[_0xe11200]=_0x812e6a([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x5d9f3f,_0x5d9f3f!=_0x812e6a([0x56,0x61,0x6c,0x69,0x64])&&_0x3651fa();}function _0x528953(){const _0x56a17c=window[_0x812e6a([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x812e6a([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x812e6a([0x6e,0x6f,0x77])]())[_0x812e6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x812e6a([0x2e]),'');let _0x1d133e=_0x812e6a([0x75]);for(let _0x263db4=0x0;_0x263db4<_0x56a17c[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x263db4+=0x2){let _0x578089=window[_0x812e6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x56a17c[_0x812e6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x263db4,_0x263db4+0x2));_0x578089>=_0x45110a[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x578089-=_0x45110a[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x1d133e+=_0x45110a[_0x578089];}return _0x1d133e;}function _0xd77530(){const _0x3c6783=_0x516a64[_0x812e6a([0x73,0x70,0x6c,0x69,0x74])](_0x812e6a([0x2e]));if(0x3!=_0x3c6783[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1f21aa(_0x3c6783[0x1]);function _0x1f21aa(_0x3463df){const _0x1fb9cf=_0x5793ac(_0x3463df);return _0x1fb9cf&&_0x1d7969()?_0x1fb9cf:null;function _0x1d7969(){const _0x92f087=_0x1fb9cf[_0x812e6a([0x6a,0x74,0x69])],_0x1977d0=window[_0x812e6a([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x92f087[_0x812e6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x92f087[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0xb61405={..._0x1fb9cf,[_0x812e6a([0x6a,0x74,0x69])]:_0x92f087[_0x812e6a([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x92f087[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0xb61405[_0x812e6a([0x76,0x63])],_0x121238(_0xb61405)==_0x1977d0;}}}async function _0x32f02d(){let _0x13dcc2=!0x0;try{const _0x595efc=_0x516a64[_0x812e6a([0x73,0x70,0x6c,0x69,0x74])](_0x812e6a([0x2e])),[_0x4dc9a9,_0x4b7d0b,_0x41b2da]=_0x595efc;return _0x1659e1(_0x4dc9a9),await _0x5ace79(_0x4dc9a9,_0x4b7d0b,_0x41b2da),_0x13dcc2;}catch{return!0x1;}function _0x1659e1(_0x12ade9){const _0x46d016=_0x5793ac(_0x12ade9);_0x46d016&&_0x46d016[_0x812e6a([0x61,0x6c,0x67])]==_0x812e6a([0x45,0x53,0x32,0x35,0x36])||(_0x13dcc2=!0x1);}async function _0x5ace79(_0x3b1492,_0x3d0964,_0x1295a0){const _0x52be13=window[_0x812e6a([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x812e6a([0x66,0x72,0x6f,0x6d])](_0x2106b8(_0x1295a0),_0xf7becf=>_0xf7becf[_0x812e6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x5e1af2=new window[(_0x812e6a([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x812e6a([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3b1492+_0x812e6a([0x2e])+_0x3d0964),_0xeaa21e=window[_0x812e6a([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x812e6a([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0xeaa21e)return;const _0xb9694d=await _0xeaa21e[_0x812e6a([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x812e6a([0x6a,0x77,0x6b]),_0x8b36f2,{[_0x812e6a([0x6e,0x61,0x6d,0x65])]:_0x812e6a([0x45,0x43,0x44,0x53,0x41]),[_0x812e6a([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x812e6a([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x812e6a([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0xeaa21e[_0x812e6a([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x812e6a([0x6e,0x61,0x6d,0x65])]:_0x812e6a([0x45,0x43,0x44,0x53,0x41]),[_0x812e6a([0x68,0x61,0x73,0x68])]:{[_0x812e6a([0x6e,0x61,0x6d,0x65])]:_0x812e6a([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0xb9694d,_0x52be13,_0x5e1af2)||(_0x13dcc2=!0x1);}}function _0x5793ac(_0x31f12){return _0x31f12[_0x812e6a([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x812e6a([0x65,0x79]))?JSON[_0x812e6a([0x70,0x61,0x72,0x73,0x65])](_0x2106b8(_0x31f12)):null;}function _0x2106b8(_0x11f88e){return window[_0x812e6a([0x61,0x74,0x6f,0x62])](_0x11f88e[_0x812e6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x812e6a([0x2b]))[_0x812e6a([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x812e6a([0x2f])));}function _0x121238(_0x4f32fa){let _0x164ca6=0x1505;function _0xb4c483(_0x5aec77){for(let _0x25ce38=0x0;_0x25ce38<_0x5aec77[_0x812e6a([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x25ce38++){const _0x3bbd5f=_0x5aec77[_0x812e6a([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x25ce38);_0x164ca6=(_0x164ca6<<0x5)+_0x164ca6+_0x3bbd5f,_0x164ca6&=_0x164ca6;}}function _0x2e7b37(_0x46923){Array[_0x812e6a([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x46923)?_0x46923[_0x812e6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2e7b37):_0x46923&&typeof _0x46923==_0x812e6a([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x812e6a([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x46923)[_0x812e6a([0x73,0x6f,0x72,0x74])]()[_0x812e6a([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x3e0634,_0x553a0b])=>{_0xb4c483(_0x3e0634),_0x2e7b37(_0x553a0b);}):_0xb4c483(window[_0x812e6a([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x46923));}return _0x2e7b37(_0x4f32fa),_0x164ca6>>>0x0;}function _0x3ad5e9(_0x27123f){return _0x27123f[_0x812e6a([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x812e6a([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x812e6a([0x30]));}function _0x1f6b17(_0x4b01ab){return _0x4b01ab[_0x812e6a([0x73,0x70,0x6c,0x69,0x74])]('')[_0x812e6a([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x812e6a([0x6a,0x6f,0x69,0x6e])]('');}function _0x124b1d(){}function _0x812e6a(_0x2b774d){return _0x2b774d['map'](_0x276cea=>String['fromCharCode'](_0x276cea))['join']('');}_0x2e8892(await _0x5b6d28());}(this);}['_moveSelectionToFootnoteDefinition'](_0x56a776){const {plugins:_0x486079,editing:_0x15b511,model:_0x551168}=this['editor'],_0x3019f3=_0x486079['get'](f)['getFootnote'](_0x56a776);return!!_0x3019f3&&(_0x551168['change'](_0x65fa28=>{_0x65fa28['setSelection'](_0x65fa28['createPositionAt'](_0x3019f3['definition'],'end'));}),_0x15b511['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x23e304){const {plugins:_0x2d184c,editing:_0x8bf236,model:_0x4ec98f}=this['editor'],_0x5a1e13=_0x2d184c['get'](f)['getFootnote'](_0x23e304);return!!_0x5a1e13&&(_0x4ec98f['change'](_0x46e438=>{_0x46e438['setSelection'](_0x5a1e13['reference'],'on');}),_0x8bf236['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1fff9c}=this['editor']['model'],_0x5c68e7=this['editor']['config']['get']('footnotes.multiBlock');_0x1fff9c['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1fff9c['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1fff9c['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x5c68e7?_0x1fff9c['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1fff9c['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1fff9c['addChildCheck'](_0x5a3972=>{for(const _0xb60bef of _0x5a3972)if('footnoteDefinition'===_0xb60bef['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x1ebb7c}=this,{conversion:_0x35cdbf,editing:_0x3a8975}=_0x1ebb7c,{t:t}=_0x1ebb7c['locale'];_0x35cdbf['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xabd82c,{writer:_0x54bc85,consumable:_0x790473})=>{const _0xf37380=_0xabd82c['getChild'](0x0);if(!_0xf37380||!_0xf37380['is']('element','a'))return null;const _0x4b8dd5=_0xf37380['getAttribute']('href')||'';if(!_0x4b8dd5['startsWith']('#'))return null;const _0x5cb05c=_0x4b8dd5['replace'](/^#/,'');if(!_0x5cb05c)return null;_0x790473['consume'](_0xf37380,{'name':!0x0,'attributes':['href']});for(const {item:_0x1df11b}of _0x3a8975['view']['createRangeIn'](_0xf37380))_0x1df11b['is']('$textProxy')?_0x790473['consume'](_0x1df11b['textNode'],{'name':!0x0}):_0x1df11b['is']('element')&&_0x790473['consume'](_0x1df11b,{'name':!0x0});return _0x54bc85['createElement']('footnoteRef',{'footnoteId':_0x5cb05c});}}),_0x35cdbf['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5017af,{writer:_0x2ff57f})=>b(_0x5017af,_0x2ff57f)}),_0x35cdbf['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x324d62,{writer:_0x3e8d2c})=>{const _0x9bb68a=_0x324d62['getAttribute']('footnoteCounter');return _0x35fb10(b(_0x324d62,_0x3e8d2c),_0x3e8d2c,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x9bb68a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1fa899}=this,{t:t}=_0x1fa899['locale'],{conversion:_0x4c7162}=_0x1fa899;_0x4c7162['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x4c7162['for']('upcast')['add'](_0xe426ed=>{_0xe426ed['on']('element:ol',(_0x1c4503,_0x3cdae1,_0x3e32e6)=>{const _0x3ac102=_0x3cdae1['viewItem'];if(!_0x3ac102['hasClass']('footnotes-list')||!_0x3cdae1['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3e32e6['consumable']['consume'](_0x3ac102,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x3d2977,modelCursor:_0x3844ba}=_0x3e32e6['convertChildren'](_0x3cdae1['viewItem'],_0x3cdae1['modelCursor']);_0x3cdae1['modelRange']=_0x3d2977,_0x3cdae1['modelCursor']=_0x3844ba;}),_0xe426ed['on']('element:hr',(_0x269d29,_0xeb5426,_0x3e10d8)=>{const _0xef9784=_0xeb5426['viewItem'];_0xef9784['hasClass']('footnotes-divider')&&_0xeb5426['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x3e10d8['consumable']['consume'](_0xef9784,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x4c7162['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4f8210,{writer:_0x2fd07f})=>D(_0x2fd07f)}),_0x4c7162['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x2ecf0a,{writer:_0x42fe5f})=>{const _0x40b09b=D(_0x42fe5f,{'data-footnotes-list-label':t('Footnotes')}),_0x2e04ee=_0x35fb10(_0x40b09b,_0x42fe5f,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x42fe5f['setCustomProperty']('footnotesDefinitions',!0x0,_0x2e04ee),_0x2e04ee;}});}['_defineDefinitionConverters'](){const {editor:_0x16596b}=this,{conversion:_0x36cca1,locale:_0x302302}=_0x16596b,_0x4b47fc=_0x16596b['config']['get']('footnotes.multiBlock');_0x36cca1['for']('upcast')['add'](_0x463a44=>{_0x463a44['on']('element:li',(_0x3525b8,_0x5aedfa,_0x263964)=>{const _0x2d97da=_0x5aedfa['viewItem'];if(!_0x2d97da['hasClass']('footnote-definition')||!_0x2d97da['getAttribute']('id'))return;const _0x5c9180=_0x2d97da['parent'];if(!_0x5c9180['is']('element','ol')||!_0x5c9180['hasClass']('footnotes-list'))return;if(!_0x263964['consumable']['test'](_0x2d97da,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0xb8f9fe=_0x263964['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2d97da['getAttribute']('id')});if(!_0x263964['safeInsert'](_0xb8f9fe,_0x5aedfa['modelCursor']))return;_0x263964['consumable']['consume'](_0x2d97da,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x1e2077=Array['from'](_0x2d97da['getChildren']())['find'](_0x159d30=>_0x159d30['is']('element')&&_0x159d30['hasClass']('footnote-content'));for(const _0x2254b6 of _0x2d97da['getChildren']())_0x2254b6['is']('element')&&(_0x263964['consumable']['consume'](_0x2254b6,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x263964['consumable']['consume'](_0x2254b6,{'name':!0x0,'classes':'footnote-content'}));if(_0x1e2077){if(_0x4b47fc)_0x263964['convertChildren'](_0x1e2077,_0xb8f9fe);else{const _0x5f4d76=_0x263964['writer']['createElement']('footnoteInlineContent');_0x263964['writer']['insert'](_0x5f4d76,_0xb8f9fe),_0x263964['convertChildren'](_0x1e2077,_0x5f4d76);}}_0x263964['updateConversionResult'](_0xb8f9fe,_0x5aedfa);});}),_0x36cca1['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x2a9953,{writer:_0x1280c4})=>y(_0x2a9953,_0x1280c4,_0x302302,{'dataPipeline':!0x0})}),_0x36cca1['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x46ba72,{writer:_0x2c4471})=>y(_0x46ba72,_0x2c4471,_0x302302)});}['_defineBogusParagraphConverters'](){const {editor:_0x134e3f}=this,{conversion:_0x48b224}=_0x134e3f;_0x134e3f['config']['get']('footnotes.multiBlock')?(_0x48b224['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x48b224['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x134e3f['model']['document'],'change:data',()=>{!function(_0x1f879f,_0x3fc1b9){const _0x4bfc74=_0x1f879f['document']['differ'],_0x4c852a=new Set();for(const _0x351fdc of _0x4bfc74['getChanges']()){const _0x82f20a='attribute'==_0x351fdc['type']?_0x351fdc['range']['start']['parent']:_0x351fdc['position']['parent'];_0x82f20a['is']('element','footnoteDefinition')&&_0x4c852a['add'](_0x82f20a);}for(const _0x16dc34 of _0x4c852a['values']()){const _0x101c28=Array['from'](_0x16dc34['getChildren']())['filter'](_0x21765f=>v(_0x21765f,_0x3fc1b9['mapper']));for(const _0x3f4662 of _0x101c28)_0x3fc1b9['reconvertItem'](_0x3f4662);}}(_0x134e3f['model'],_0x134e3f['editing']);})):(_0x48b224['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x48b224['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x392adf,{writer:_0x160bba})=>{const _0x36eeb9=_0x160bba['createContainerElement']('span');return _0x160bba['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x36eeb9),_0x36eeb9;}}));}['_defineKeyboardHandlers'](){const {editor:_0x199fd9}=this,{editing:_0x3b46eb,t:t}=_0x199fd9,_0x3a804b=_0x199fd9['model']['document']['selection'];_0x199fd9['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x199fd9['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3b46eb['view']['document'],'enter',(_0x193ea1,_0x59fa8e)=>{const _0x4d285e=function(_0x492db3){const _0x47e288=_0x492db3['getSelectedElement']();if(_0x47e288?.['is']('element','footnoteRef'))return _0x47e288;return null;}(_0x3a804b);if(_0x4d285e){const _0x4c4f87=_0x4d285e['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x4c4f87),_0x59fa8e['preventDefault'](),_0x193ea1['stop']();}},{'context':_0x430f0b});}['_defineClickHandlers'](){const {editor:_0x29ea82}=this,{editing:_0x35b050}=_0x29ea82;_0x29ea82['editing']['view']['addObserver'](_0x118744),_0x29ea82['editing']['view']['addObserver'](_0x5757f2);let _0x1bfc3a=!0x1;this['listenTo'](_0x35b050['view']['document'],'pointerdown',(_0xd8996f,_0x518061)=>{const {target:_0x35ccd9}=_0x518061,_0x25388a=_0x35b050['view']['document']['selection'];_0x1bfc3a=!!(_0x35ccd9?.['is']('element','a')&&_0x35ccd9['parent']?.['is']('element','sup')&&_0x35ccd9['parent']['hasClass']('footnote'))&&_0x25388a['getSelectedElement']()===_0x35ccd9['parent'];},{'priority':'high'}),this['listenTo'](_0x35b050['view']['document'],'click',(_0x2a71fd,_0x27ba95)=>{const {target:_0x4a8f24}=_0x27ba95;if(!_0x4a8f24?.['is']('element','a'))return;if(_0x4a8f24['parent']?.['is']('element','sup')&&_0x4a8f24['parent']['hasClass']('footnote')&&!_0x1bfc3a)return void _0x27ba95['preventDefault']();let _0x32b9df=_0x4a8f24['getAttribute']('href');if(!_0x32b9df?.['startsWith']('#'))return;_0x32b9df=_0x32b9df['slice'](0x1);let _0x1f9c93=!0x1;(_0x32b9df['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x32b9df['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x32b9df))&&(_0x1f9c93=!0x0),_0x1f9c93&&(_0x27ba95['preventDefault'](),_0x2a71fd['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x5dd4e9}={}){return(_0x18be68,{writer:_0x2ceca8})=>{if(!g(_0x18be68))return null;if(!_0x5dd4e9)return _0x2ceca8['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x47f28a=_0x2ceca8['createContainerElement']('p');return _0x2ceca8['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x47f28a),_0x47f28a;};}function g(_0x4225c7){const {parent:_0x21e79e}=_0x4225c7;if(!_0x21e79e?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x21e79e['childCount'])return!0x1;for(const _0x23828d of _0x4225c7['getAttributeKeys']())if(!_0x23828d['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x23828d)return!0x1;return!0x0;}function v(_0x4808b9,_0x4002d1){if(!_0x4808b9['is']('element','paragraph'))return!0x1;const _0x4b5f76=_0x4002d1['toViewElement'](_0x4808b9);return!!_0x4b5f76&&g(_0x4808b9)!==_0x4b5f76['is']('element','span');}function Q(_0x50b047){return _0x430f0b(_0x50b047)&&_0x50b047['is']('containerElement')&&!!_0x50b047['getCustomProperty']('footnotesDefinitions');}function D(_0x36c9a5,_0x359fba={}){const _0x2e94e1=_0x36c9a5['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x41e160=_0x36c9a5['createContainerElement']('ol',{'class':'footnotes-list'},_0x36c9a5['createSlot']());return _0x36c9a5['createContainerElement']('div',{'class':'footnotes',..._0x359fba},[_0x2e94e1,_0x41e160]);}function b(_0x3ad3ea,_0x5eb115){const _0x482419=_0x3ad3ea['getAttribute']('footnoteId'),_0x1c2650=_0x3ad3ea['getAttribute']('footnoteCounter'),_0x350393=_0x5eb115['createUIElement']('a',{'href':'#'+_0x482419},function(_0x4f16dd){const _0x52eccd=this['toDomElement'](_0x4f16dd);return _0x52eccd['textContent']=_0x1c2650,_0x52eccd;}),_0x26c083=_0x5eb115['createContainerElement']('sup',{'id':'ref-'+_0x482419,'class':'footnote'},[_0x350393]);return _0x26c083['getFillerOffset']=()=>null,_0x26c083;}function y(_0x59894e,_0x684d12,_0x23782e,{dataPipeline:_0x4cadc4}={}){const {t:t}=_0x23782e,_0x137b6e=_0x59894e['getAttribute']('footnoteId'),_0x24d893=_0x684d12['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x137b6e},function(_0x2cfbe8){const _0x319f8c=this['toDomElement'](_0x2cfbe8);return _0x319f8c['innerText']='^',_0x319f8c;}),_0x410765=_0x4cadc4?_0x684d12['createContainerElement']('div',{'class':'footnote-content'}):_0x4847bd(_0x684d12['createEditableElement']('div',{'class':'footnote-content'}),_0x684d12,{'label':t('Footnote\x20content.')});return _0x684d12['insert'](_0x684d12['createPositionAt'](_0x410765,0x0),_0x684d12['createSlot']()),_0x684d12['createContainerElement']('li',{'class':'footnote-definition','id':_0x137b6e},[_0x24d893,_0x410765]);}class e extends _0x317c7b{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x3dc1df];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x1a8eb5}=this,{plugins:_0x53d8c9,model:_0x1efbe2}=_0x1a8eb5,_0x408364=_0x53d8c9['get'](_0x3dc1df),_0x104844=_0x53d8c9['get'](f);this['listenTo'](_0x408364,'outputTransformation',(_0x25f3d1,_0xbdc458)=>{const _0x35453b=l(_0x1efbe2['createRangeIn'](_0xbdc458['content']));if(!_0x35453b['length'])return;const _0x53a379=_0x104844['getFootnotes'](),_0xf4b8c1=_0x35453b['reduce']((_0x5f5c14,_0x5680d2)=>{const _0x297fa0=_0x53a379['find'](_0x147c6e=>_0x147c6e['id']===_0x5680d2);if(_0x297fa0){const _0x20cbb3=_0x1a8eb5['data']['toView'](_0x297fa0['definition'],{'isClipboardPipeline':!0x0}),_0x362a6c=_0x1a8eb5['data']['htmlProcessor']['toData'](_0x20cbb3);_0x5f5c14[_0x297fa0['id']]=_0x362a6c;}return _0x5f5c14;},Object['create'](null));_0xbdc458['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0xf4b8c1));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x2dda62}=this,{model:_0x2dd66f,plugins:_0x3cc2ba}=_0x2dda62,{view:_0x13ecfe}=_0x2dda62['editing'],_0x2d4618=_0x3cc2ba['get'](_0x3dc1df),_0xfd2a0e=_0x3cc2ba['get'](f),_0x1258c1=_0x2dda62['config']['get']('footnotes.multiBlock');let _0x2b0450=null;this['listenTo'](_0x13ecfe['document'],'clipboardInput',(_0x3bb419,_0x4dc8ec)=>{const _0x404fc2=_0x4dc8ec['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x2b0450=_0x404fc2?JSON['parse'](_0x404fc2):null;}),this['listenTo'](_0x2d4618,'contentInsertion',(_0x2c9994,_0xb0b104)=>{const _0x6cf4df=_0xb0b104['sourceEditorId']===this['editor']['id'];_0x6cf4df&&'drop'===_0xb0b104['method']||_0x2dd66f['change'](_0xd9de4a=>{let _0x10be2d=_0xfd2a0e['getFootnotesDefinitionsObjectElement']();const _0x13e6f7=!!_0x10be2d&&Array['from'](_0x2dd66f['document']['selection']['getSelectedBlocks']())['includes'](_0x10be2d);if(!_0x2b0450&&function(_0x2189da){for(const {item:_0x19b511}of _0x2189da)if(_0x19b511['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x2dd66f['createRangeIn'](_0xb0b104['content']))&&(_0x2b0450=function(_0xed1520,_0x1fc1da){const _0x2d6c19=c(_0xed1520,_0x1fc1da);if(!_0x2d6c19)return null;const _0x4c83e0=Object['create'](null);for(const _0x485988 of _0x2d6c19['getChildren']())_0x485988['is']('element','footnoteDefinition')&&_0x485988['hasAttribute']('footnoteId')&&(_0x4c83e0[_0x485988['getAttribute']('footnoteId')]=_0xed1520['cloneElement'](_0x485988,!0x0));return Object['keys'](_0x4c83e0)['length']?_0x4c83e0:null;}(_0xd9de4a,_0xb0b104['content'])),(_0x10be2d&&!_0x13e6f7||!_0x10be2d&&!_0x2b0450)&&function(_0x1dd849,_0x8bb100){const _0x2224b3=[];for(const {item:_0xf2a365}of _0x1dd849['createRangeIn'](_0x8bb100))_0xf2a365['is']('element','footnotesDefinitions')&&_0x2224b3['push'](_0xf2a365);for(const _0x2cdc49 of _0x2224b3)_0x1dd849['remove'](_0x2cdc49);}(_0xd9de4a,_0xb0b104['content']),!_0x2b0450)return;const {selection:_0x2c8a47}=_0x2dd66f['document'],_0x5696ac=_0x2c8a47['getFirstRange']()['root'];_0x10be2d&&!_0x13e6f7||(_0x10be2d=c(_0xd9de4a,_0xb0b104['content']),_0x10be2d||=_0xfd2a0e['_insertEmptyFootnotesDefinitionsContainer'](_0xd9de4a,_0x5696ac));const _0x4f264f=Array['from'](_0x2c8a47['getRanges']())['flatMap'](l),_0x50a26d=function(_0x2d2b50,_0xcfdbc8,_0x3a9bd0){const _0x381cf3=Object['create'](null);for(const {item:_0x58f8fd}of _0x2d2b50['createRangeIn'](_0xcfdbc8))if(_0x58f8fd['is']('element','footnoteRef')){const _0x407091=_0x58f8fd['getAttribute']('footnoteId');if(!_0x3a9bd0(_0x407091))continue;_0x381cf3[_0x407091]||(_0x381cf3[_0x407091]=_0x44b4b1()),_0x2d2b50['setAttribute']('footnoteId',_0x381cf3[_0x407091],_0x58f8fd);}return _0x381cf3;}(_0xd9de4a,_0xb0b104['content'],_0x3579a6=>{if(!_0x6cf4df)return!0x0;return!!_0xfd2a0e['getFootnote'](_0x3579a6)&&!_0x4f264f['includes'](_0x3579a6);});for(const [_0x413f4e,_0x30cfaa]of Object['entries'](_0x2b0450)){const _0x3d885b=_0x50a26d[_0x413f4e]||_0x413f4e;let _0x51e923;if('string'!=typeof _0x30cfaa)_0x51e923=_0x30cfaa,_0x3d885b!==_0x413f4e&&_0xd9de4a['setAttribute']('footnoteId',_0x3d885b,_0x51e923);else{_0x51e923=_0xd9de4a['createElement']('footnoteDefinition',{'footnoteId':_0x3d885b});const _0x2b3663=_0x2dda62['data']['htmlProcessor']['toView'](_0x30cfaa);let _0x5dfe3e;if(_0x1258c1)_0x5dfe3e=_0x2dda62['data']['toModel'](_0x2b3663,_0x51e923);else{_0x5dfe3e=_0xd9de4a['createElement']('footnoteInlineContent');const _0x1bbfaf=_0x2dda62['data']['toModel'](_0x2b3663,_0x5dfe3e);_0xd9de4a['insert'](_0x1bbfaf,_0x5dfe3e);}_0xd9de4a['append'](_0x5dfe3e,_0x51e923);}_0xd9de4a['insert'](_0x51e923,_0x10be2d,'end');}_0x2b0450=null;});});}}function c(_0x175453,_0x211232){for(const {item:_0x46a1c7}of _0x175453['createRangeIn'](_0x211232))if(_0x46a1c7['is']('element','footnotesDefinitions'))return _0x46a1c7;return null;}function l(_0x1075cb){const _0x47cd14=new Set();for(const {item:_0x4ec1dc}of _0x1075cb)_0x4ec1dc['is']('element','footnoteRef')&&_0x47cd14['add'](_0x4ec1dc['getAttribute']('footnoteId'));return Array['from'](_0x47cd14);}class i extends _0x317c7b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3304fd}=this,{componentFactory:_0xee6f82}=_0x3304fd['ui'];_0xee6f82['add']('insertFootnote',E(_0x3304fd,_0x340aa5)),_0xee6f82['add']('menuBar:insertFootnote',E(_0x3304fd,_0x330ae5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x19a361=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5e46ae;for(const _0x2e118d in _0x19a361){const _0x42a1d3=_0x2e118d,_0x348885=_0x19a361[_0x42a1d3];if('footnotesLicenseKeyValid'==_0x348885||'footnotesLicenseKeyInvalid'==_0x348885||'footnotesLicenseKeyExpired'==_0x348885||'footnotesLicenseKeyDomainLimit'==_0x348885||'footnotesLicenseKeyNotAllowed'==_0x348885||'footnotesLicenseKeyEvaluationLimit'==_0x348885||'footnotesLicenseKeyUsageLimit'==_0x348885){delete _0x19a361[_0x42a1d3],_0x5e46ae=_0x348885,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5e46ae&&_0x19a361['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5e46ae&&_0x19a361['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5e46ae&&_0x19a361['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5e46ae&&_0x19a361['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5e46ae&&_0x19a361['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x5e46ae&&_0x19a361['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x4a0090,_0x3132ca){const _0x7b46ee=_0x4a0090['commands']['get']('insertFootnote');return _0x2b6336=>{const {t:t}=_0x2b6336,_0x41b118=new _0x3132ca(_0x2b6336),_0x1eaa36=_0x41b118 instanceof _0x330ae5;return _0x41b118['bind']('isEnabled')['to'](_0x7b46ee,'isEnabled'),_0x41b118['set']({'label':t(_0x1eaa36?'Footnote':'Insert\x20footnote'),'icon':_0x2bedc6,'tooltip':!0x0}),_0x41b118['on']('execute',()=>{_0x7b46ee['execute'](),_0x4a0090['editing']['view']['focus']();}),_0x41b118;};}class lt extends _0x317c7b{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 _0x4dcf80{['refresh'](){const {editor:_0x4921d9}=this,_0x1d4e8e=_0x4921d9['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x1d4e8e,this['value']=_0x1d4e8e?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x955b6}){const {editor:_0xf4a02c}=this,_0x281389=_0xf4a02c['plugins']['get'](f),_0x2cca35=_0x281389['getFootnotesDefinitionsObjectElement']();_0x2cca35&&W['includes'](_0x955b6)&&_0xf4a02c['model']['change'](_0x49e346=>{_0x49e346['setAttribute']('footnotesListStyle',_0x955b6,_0x2cca35),_0x281389['_updateFootnotesCounters'](_0x49e346);});}}class C extends _0x4dcf80{['refresh'](){const {editor:_0x48cb00}=this,_0x3a5595=_0x48cb00['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3a5595,this['value']=_0x3a5595?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x38f0bc}){const {editor:_0x1db1f7}=this,_0x305284=_0x1db1f7['plugins']['get'](f),_0x5c8bf6=_0x305284['getFootnotesDefinitionsObjectElement']();_0x5c8bf6&&Number['isInteger'](_0x38f0bc)&&_0x1db1f7['model']['change'](_0x557990=>{_0x557990['setAttribute']('footnotesListStart',_0x38f0bc,_0x5c8bf6),_0x305284['_updateFootnotesCounters'](_0x557990);});}}class P extends _0x317c7b{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x4182ba}=this;_0x4182ba['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x4182ba['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x4182ba['commands']['add']('footnotesStyle',new S(_0x4182ba)),_0x4182ba['commands']['add']('footnotesStart',new C(_0x4182ba)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x2c6055}=this,{schema:_0x222a34}=_0x2c6055['model'];_0x222a34['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0xf60d8a}=this,{conversion:_0x256c1b,model:_0x107334}=_0xf60d8a,{schema:_0x3b5aa4}=_0x107334;_0x256c1b['for']('upcast')['add'](_0x12f7e1=>{_0x12f7e1['on']('element:ol',(_0x2019d8,_0x3516c3,_0x431999)=>{const _0x3c85b4=_0x3516c3['viewItem'],_0xf7b0b3=_0x3516c3['modelCursor']?.['parent'];_0x3c85b4['hasClass']('footnotes-list')&&_0xf7b0b3?.['is']('element','footnotesDefinitions')&&(function(_0x4a9534,_0x461e05,_0x52fc01,_0x4f0a9c){if(!_0x4f0a9c['checkAttribute'](_0x461e05,'footnotesListStart'))return;let _0xa8007c=0x1;const _0x402a8f=_0x52fc01['consumable']['consume'](_0x4a9534,{'attributes':'start'});if(_0x402a8f){const _0x2791e3=Number['parseInt'](_0x4a9534['getAttribute']('start'),0xa);Number['isNaN'](_0x2791e3)||(_0xa8007c=_0x2791e3);}!_0x402a8f&&_0x461e05['hasAttribute']('footnotesListStart')||_0x52fc01['writer']['setAttribute']('footnotesListStart',_0xa8007c,_0x461e05);}(_0x3c85b4,_0xf7b0b3,_0x431999,_0x3b5aa4),function(_0x559deb,_0x267870,_0x36cb39,_0x1152a7){if(!_0x1152a7['checkAttribute'](_0x267870,'footnotesListStyle'))return;let _0x40611c='decimal',_0x4bdb05=!0x1;if(_0x36cb39['consumable']['consume'](_0x559deb,{'attributes':'type'})){const _0x547da7={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x559deb['getAttribute']('type')];_0x547da7&&(_0x40611c=_0x547da7),_0x4bdb05=!0x0;}_0x36cb39['consumable']['consume'](_0x559deb,{'styles':'list-style-type'})&&(_0x40611c=function(_0x29c6c0){switch(_0x29c6c0){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x29c6c0;}}(_0x559deb['getStyle']('list-style-type')),_0x4bdb05=!0x0),!_0x4bdb05&&_0x267870['hasAttribute']('footnotesListStyle')||_0x36cb39['writer']['setAttribute']('footnotesListStyle',_0x40611c,_0x267870);}(_0x3c85b4,_0xf7b0b3,_0x431999,_0x3b5aa4));});}),_0x256c1b['for']('downcast')['add'](_0x39467e=>{_0x39467e['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x13a57a,_0x741aab,_0x96519d)=>{if(!_0x96519d['consumable']['consume'](_0x741aab['item'],_0x13a57a['name']))return;const _0x54c15e=M(_0x741aab['item'],_0x96519d['mapper']),{attributeNewValue:_0x1e1763}=_0x741aab;null==_0x1e1763||0x1===_0x1e1763?_0x96519d['writer']['removeAttribute']('start',_0x54c15e):_0x96519d['writer']['setAttribute']('start',String(_0x1e1763),_0x54c15e);}),_0x39467e['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x40d740,_0xa63638,_0x45768d)=>{if(!_0x45768d['consumable']['consume'](_0xa63638['item'],_0x40d740['name']))return;const _0x6db773=M(_0xa63638['item'],_0x45768d['mapper']),{attributeNewValue:_0x1b5dae}=_0xa63638;_0x1b5dae&&'decimal'!==_0x1b5dae?_0x45768d['writer']['setStyle']('list-style-type',_0x1b5dae,_0x6db773):_0x45768d['writer']['removeStyle']('list-style-type',_0x6db773);});});}['_definePostfixer'](){const {editor:_0x56a099}=this,{model:_0x550515}=_0x56a099,_0x59eb28=_0x56a099['plugins']['get'](f),_0x5af8b3=this['_getDefaultListStyle'](),_0x9a9a3d=this['_getDefaultStartIndex']();_0x550515['document']['registerPostFixer'](_0x226c25=>{const _0x34ac03=_0x550515['document']['differ']['getChanges']();let _0x5759cf=!0x1;for(const _0x573610 of _0x34ac03){if('insert'!==_0x573610['type']||'$text'===_0x573610['name'])continue;const _0x5789b9=_0x550515['createRangeOn'](_0x573610['position']['nodeAfter']);for(const _0x2b0408 of _0x5789b9['getItems']())_0x2b0408['is']('element','footnotesDefinitions')&&(!_0x2b0408['hasAttribute']('footnotesListStart')&&_0x550515['schema']['checkAttribute'](_0x2b0408,'footnotesListStart')&&(_0x226c25['setAttribute']('footnotesListStart',_0x9a9a3d,_0x2b0408),_0x5759cf=!0x0),!_0x2b0408['hasAttribute']('footnotesListStyle')&&_0x550515['schema']['checkAttribute'](_0x2b0408,'footnotesListStyle')&&(_0x226c25['setAttribute']('footnotesListStyle',_0x5af8b3,_0x2b0408),_0x5759cf=!0x0));}return _0x5759cf&&_0x59eb28['_updateFootnotesCounters'](_0x226c25),_0x5759cf;});}['_defineFormatter'](){const {editor:_0x54957e}=this;_0x54957e['plugins']['get'](f)['setFootnoteFormatter'](_0x2adc81=>this['_formatFootnoteListValue'](_0x2adc81));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x4dfb8c,value:_0x2c309e,digits:_0x1e451b}){const _0x2159ff=_0x4dfb8c['getAttribute']('footnotesListStyle'),_0x1abd1b=_0x4dfb8c['getAttribute']('footnotesListStart'),_0x6334ec=Math['floor'](_0x2c309e)+(_0x1abd1b??0x1)-0x1;switch(_0x2159ff){case'decimal-leading-zero':return function(_0x13de85,_0x72689d){return String(_0x13de85)['padStart'](_0x72689d,'0');}(_0x6334ec,Math['max'](0x2,_0x1e451b));case'lower-alpha':case'lower-latin':return N(_0x6334ec,!0x1);case'upper-alpha':case'upper-latin':return N(_0x6334ec,!0x0);case'lower-roman':return X(_0x6334ec,!0x1);case'upper-roman':return X(_0x6334ec,!0x0);default:return String(_0x6334ec);}}}function M(_0x3f9ee9,_0x26b54d){const _0xb51261=_0x26b54d['toViewElement'](_0x3f9ee9);return Array['from'](_0xb51261['getChildren']())['find'](_0x4ac1b8=>_0x4ac1b8['is']('element','ol')&&_0x4ac1b8['hasClass']('footnotes-list'));}function N(_0x1759c3,_0x363f08){let _0x1d4914='',_0x27b6df=_0x1759c3;for(;_0x27b6df>0x0;){const _0x21488c=(_0x27b6df-0x1)%0x1a;_0x1d4914=String['fromCharCode'](0x61+_0x21488c)+_0x1d4914,_0x27b6df=Math['floor']((_0x27b6df-0x1)/0x1a);}return _0x363f08?_0x1d4914['toUpperCase']():_0x1d4914;}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(_0xf00938,_0x4d89c4){let _0x1b242b='',_0x539c11=_0xf00938;for(const {value:_0x39e8fc,numeral:_0x52321f}of V)for(;_0x539c11>=_0x39e8fc;)_0x1b242b+=_0x52321f,_0x539c11-=_0x39e8fc;return _0x4d89c4?_0x1b242b:_0x1b242b['toLowerCase']();}class J extends _0x4478f6{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1ea6eb();['focusCycler'];constructor(_0x3d5cc7,{styleButtonViews:_0x3c692e,styleGridAriaLabel:_0x24d43c}){super(_0x3d5cc7),(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'](_0x3c692e,_0x24d43c),[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 _0x19c00d of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x19c00d['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 _0x4e8242=_0x384ec9=>_0x384ec9['stopPropagation']();this['keystrokes']['set']('arrowright',_0x4e8242),this['keystrokes']['set']('arrowleft',_0x4e8242),this['keystrokes']['set']('arrowup',_0x4e8242),this['keystrokes']['set']('arrowdown',_0x4e8242);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x465e15,_0x1e318e){const _0xf66eea=new _0x4478f6(this['locale']);return _0xf66eea['children']=_0xf66eea['createCollection'](),_0xf66eea['children']['addMany'](_0x465e15),_0xf66eea['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1e318e,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xf66eea['children']}),_0xf66eea['children']['delegate']('execute')['to'](this),_0xf66eea['focus']=function(){for(const _0x4155d7 of this['children'])if(_0x4155d7 instanceof _0x340aa5&&_0x4155d7['isOn'])return void _0x4155d7['focus']();this['children']['first']['focus']();},_0xf66eea['focusTracker']=new rt(),_0xf66eea['keystrokes']=new nt(),_0xf66eea['render'](),_0xf66eea['keystrokes']['listenTo'](_0xf66eea['element']),this['children']['add'](_0xf66eea),_0xf66eea;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x259367=this['_createStartIndexPropertyView'](),_0x50d499=[_0x259367],_0x27f06f=new it(this['locale'],_0x50d499);return _0x27f06f['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x27f06f['buttonView']['bind']('isEnabled')['toMany'](_0x50d499,'isEnabled',(..._0x413b66)=>_0x413b66['some'](_0xd2de4f=>_0xd2de4f)),_0x27f06f['buttonView']['on']('change:isEnabled',(_0x2645f2,_0x55284f,_0x352886)=>{_0x352886||(_0x27f06f['isCollapsed']=!0x0);}),this['children']['add'](_0x27f06f),[_0x259367,_0x27f06f];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x14432a=new et(this['locale'],ot);return _0x14432a['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x14432a['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x14432a['fieldView']['on']('input',()=>{const _0x3af97c=_0x14432a['fieldView']['element'],_0x195486=_0x3af97c['valueAsNumber'];Number['isNaN'](_0x195486)?_0x14432a['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3af97c['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x195486}):_0x14432a['errorText']=t(_0x195486<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x14432a;}}class j extends _0x317c7b{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x4bf9d0,_0x2d8651];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xcaa37b}=this,{componentFactory:_0x1df157}=_0xcaa37b['ui'];_0xcaa37b['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x1df157['add']('footnotesStyle',function(_0x2434e1){return _0x5b38e3=>{const {t:t}=_0x5b38e3,_0x2d42e2=_0x2434e1['commands']['get']('footnotesStyle'),_0x1aa40d=_0xc6e8a5(_0x5b38e3),{buttonView:_0x203b74}=_0x1aa40d;return _0x1aa40d['class']='ck-footnotes-styles-dropdown',_0x1aa40d['bind']('isEnabled')['to'](_0x2d42e2,'isEnabled'),_0x203b74['set']({'label':t('Footnotes\x20style'),'icon':_0x2bedc6,'tooltip':!0x0}),_0x1aa40d['once']('change:isOpen',()=>{const _0x4e71b8=function({editor:_0x18c47e,dropdownView:_0x4ffc00}){const {t:t}=_0x18c47e['locale'],_0x869947=t('Footnotes\x20definitions\x20styles'),_0x5ae164=function(_0x6ca07f){const t=_0x6ca07f['locale']['t'],_0x44d726=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x133f39},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x1015f6},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3942f5},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x534c42},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x3ab491},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x58f7ea}];return _0x44d726['map'](function(_0x367b44){const _0x250f21=_0x367b44['locale'];return({label:_0x49d396,icon:_0x102483,tooltip:_0x36dd91,style:_0x40a2f7})=>{const _0x4b5cd4=_0x367b44['commands']['get']('footnotesStyle'),_0x1ee775=new _0x340aa5(_0x250f21);return _0x1ee775['set']({'label':_0x49d396,'icon':_0x102483,'tooltip':_0x36dd91}),_0x1ee775['bind']('isOn')['to'](_0x4b5cd4,'value',_0x54c426=>_0x54c426===_0x40a2f7),_0x1ee775['bind']('isEnabled')['to'](_0x4b5cd4,'isEnabled'),_0x1ee775['on']('execute',()=>{_0x367b44['execute']('footnotesStyle',{'value':_0x40a2f7}),_0x367b44['editing']['view']['focus']();}),_0x1ee775;};}(_0x6ca07f));}(_0x18c47e),_0x79634d=new J(_0x18c47e['locale'],{'styleGridAriaLabel':_0x869947,'styleButtonViews':_0x5ae164}),_0x1b76bd=_0x18c47e['commands']['get']('footnotesStart');return _0x79634d['startIndexFieldView']['bind']('isEnabled')['to'](_0x1b76bd),_0x79634d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x1b76bd),_0x79634d['on']('footnotesListStart',(_0x12028a,_0x18f708)=>{_0x18c47e['execute']('footnotesStart',{'value':_0x18f708['startIndex']});}),_0x79634d['delegate']('execute')['to'](_0x4ffc00),_0x79634d;}({'editor':_0x2434e1,'dropdownView':_0x1aa40d});_0x1aa40d['panelView']['children']['add'](_0x4e71b8);}),_0x1aa40d;};}(_0xcaa37b));}['afterInit'](){const {editor:_0x399a47}=this,{t:t}=_0x399a47['locale'],_0x34cbf6=_0x399a47['plugins']['get'](_0x2d8651),{defaultPositions:_0x2dad10}=_0x2f9784;_0x34cbf6['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x399a47['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x34234c=>{let _0x30ef75=_0x34234c['getFirstPosition']()?.['parent'];return _0x30ef75?.['is']('$text')&&(_0x30ef75=_0x30ef75['parent']),_0x30ef75?.['is']('element')?_0x30ef75['findAncestor'](Q):null;},'positions':[_0x2dad10['southArrowNorth'],_0x2dad10['southArrowNorthMiddleWest'],_0x2dad10['southArrowNorthMiddleEast'],_0x2dad10['southArrowNorthWest'],_0x2dad10['southArrowNorthEast'],_0x2dad10['northArrowSouth'],_0x2dad10['northArrowSouthMiddleWest'],_0x2dad10['northArrowSouthMiddleEast'],_0x2dad10['northArrowSouthWest'],_0x2dad10['northArrowSouthEast'],_0x2dad10['viewportStickyNorth']]});}}class ft extends _0x317c7b{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 _0x57b2ed,Command as _0x6da540}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x1ffee4,isWidget as _0x2ce040,toWidgetEditable as _0x105eec,WidgetToolbarRepository as _0x172028}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x24a8a0,logWarning as _0x3fcbc6,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x56be17,ClickObserver as _0x42a7b6}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0xe7a8ac}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x247fb5,ButtonView as _0xb5f745,View as _0x2ac7db,ViewCollection as _0x5ebd55,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x171975,BalloonPanelView as _0x256b86,createDropdown as _0x2a9075}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x111132,IconListStyleDecimal as _0x5103e3,IconListStyleDecimalLeadingZero as _0x134634,IconListStyleLowerRoman as _0x3dda16,IconListStyleUpperRoman as _0xc62943,IconListStyleLowerLatin as _0x280044,IconListStyleUpperLatin as _0x414a61}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x39d498,_0x171744){this['_model']=_0x39d498,this['_elementName']=_0x171744['elementName'],this['_getElementKey']=_0x171744['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x591494){const _0x45db46=new Set(),_0xcd0a99=new Map();for(const _0x4261ff of _0x591494){if('insert'===_0x4261ff['type']&&'$text'!==_0x4261ff['name']&&_0x4261ff['position']['nodeAfter']){const _0x3961d6=this['_model']['createRangeOn'](_0x4261ff['position']['nodeAfter']);for(const _0x310ff3 of _0x3961d6['getItems']()){if(!_0x310ff3['is']('element',this['_elementName']))continue;const _0x27037a=this['_getElementKey'](_0x310ff3);_0xcd0a99['has'](_0x27037a)||_0xcd0a99['set'](_0x27037a,[]),_0xcd0a99['get'](_0x27037a)['push'](_0x310ff3);}}if('remove'===_0x4261ff['type']&&_0x4261ff['name']===this['_elementName']){const _0x364636=this['_getElementKey']({'getAttribute':_0x223a64=>_0x4261ff['attributes']['get'](_0x223a64)});_0x45db46['add'](_0x364636);}}for(const [_0x268f81,_0x559412]of this['_trackedElements'])'$graveyard'===_0x559412['root']['rootName']&&_0x45db46['add'](_0x268f81);for(const _0x225774 of _0x45db46)this['_trackedElements']['delete'](_0x225774);for(const [_0x488486,_0xe7be36]of _0xcd0a99)this['_trackedElements']['set'](_0x488486,_0xe7be36[_0xe7be36['length']-0x1]);const _0x47aa3d=new Set();for(const [_0x4c0e0f,_0x393c3d]of _0xcd0a99)_0x45db46['has'](_0x4c0e0f)&&(_0x47aa3d['add'](_0x393c3d[0x0]),_0x393c3d['length']>0x1?_0xcd0a99['set'](_0x4c0e0f,_0x393c3d['slice'](0x1)):_0xcd0a99['delete'](_0x4c0e0f),_0x45db46['delete'](_0x4c0e0f));return{'removed':Array['from'](_0x45db46),'inserted':Array['from'](_0xcd0a99['values']())['flat'](),'moved':Array['from'](_0x47aa3d)};}}class f extends _0x57b2ed{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x2f34c9){super(_0x2f34c9),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x1af677=>_0x1af677['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x26f5de=>_0x26f5de['getAttribute']('footnoteId')});}['init'](){const {editor:_0x6b14b6}=this,{model:_0x2a06d4,data:_0x426ace}=_0x6b14b6;_0x2a06d4['document']['registerPostFixer'](_0x5f2336=>{const _0xc4df2d=_0x2a06d4['document']['differ']['getChanges']();let _0x2c866d=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x5f2336,_0xc4df2d)&&(_0x2c866d=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x5f2336,_0xc4df2d)&&(_0x2c866d=!0x0),this['_handleFootnoteReferencesChanges'](_0x5f2336,_0xc4df2d)&&(_0x2c866d=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x5f2336)&&(_0x2c866d=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x5f2336)&&(_0x2c866d=!0x0),this['_sortFootnoteDefinitions'](_0x5f2336)&&(_0x2c866d=!0x0),_0x2c866d;}),this['listenTo'](_0x2a06d4['document'],'change:data',()=>{_0x2a06d4['enqueueChange']({'isUndoable':!0x1},_0x31bfcd=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x31bfcd);});},{'priority':'low'}),this['listenTo'](_0x426ace,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x277eed){return this['_footnotes']['find'](_0x3f2c6b=>_0x3f2c6b['id']===_0x277eed)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x4a442a){this['_footnoteFormatter']=_0x4a442a;}['_updateFootnotesCounters'](_0x29671f,_0x227209=0x0){let _0x1dc78b=!0x1;for(let _0x17718d=_0x227209;_0x17718d<this['_footnotes']['length'];_0x17718d++)this['_updateFootnoteRefCounter'](_0x29671f,_0x17718d)&&(_0x1dc78b=!0x0);return _0x1dc78b;}['_insertEmptyFootnotesDefinitionsContainer'](_0x422333,_0x4cc6f2){const _0x312b6d=_0x422333['createElement']('footnotesDefinitions',{});return _0x422333['append'](_0x312b6d,_0x4cc6f2),this['_footnotesDefinitions']=_0x312b6d,_0x312b6d;}['_ensureFootnotesDefinitionsContainerExists'](_0x2e71ef){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4edefd=this['_footnotes'][0x0]['reference']['root'],_0x770798=this['_insertEmptyFootnotesDefinitionsContainer'](_0x2e71ef,_0x4edefd);for(const _0x4eaf5b of this['_footnotes'])_0x4eaf5b['definition']['parent']||_0x2e71ef['insert'](_0x4eaf5b['definition'],_0x770798,'end');this['_updateFootnotesCounters'](_0x2e71ef);}['_handleFootnotesDefinitionsObjectChanges'](_0x4a78cf,_0x16f245){let _0x1b2382=!0x1;const {inserted:_0x2bb43f,removed:_0x227b33,moved:_0x2427db}=this['_footnoteDefsContainerTracker']['getChanges'](_0x16f245);if(_0x2427db['length']&&(this['_footnotesDefinitions']=_0x2427db[0x0]),_0x2bb43f['length']){if(_0x2bb43f['length']>0x1||this['_footnotesDefinitions']&&_0x2bb43f['some'](_0x418015=>_0x418015!==this['_footnotesDefinitions'])){const _0x2ade31=_0x4a78cf['createElement']('footnotesDefinitions',{}),_0x230689=[];this['_footnotesDefinitions']&&_0x230689['push'](this['_footnotesDefinitions']),_0x230689['push'](..._0x2bb43f),_0x4a78cf['insert'](_0x2ade31,_0x230689[0x0],'before');for(const _0x4e4c84 of _0x230689)_0x4a78cf['move'](_0x4a78cf['createRangeIn'](_0x4e4c84),_0x4a78cf['createPositionAt'](_0x2ade31,'end')),_0x4a78cf['remove'](_0x4e4c84);this['_footnotesDefinitions']=_0x2ade31,this['_updateFootnotesCounters'](_0x4a78cf),_0x1b2382=!0x0;}else this['_footnotesDefinitions']=_0x2bb43f[0x0];}if(_0x227b33['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x14314e of this['_footnotes'])_0x4a78cf['remove'](_0x14314e['reference']),_0x1b2382=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1b2382;}['_handleFootnoteDefinitionsChanges'](_0x4b79fb,_0x38ebd7){let _0x1e872f=!0x1;const _0x110c60=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x155842,moved:_0x456e43}=this['_footnoteDefsTracker']['getChanges'](_0x38ebd7);for(const _0x37b2b3 of[..._0x456e43,..._0x155842]){const _0x491807=_0x37b2b3['getAttribute']('footnoteId'),_0x2072f4=this['getFootnote'](_0x491807);_0x2072f4&&(_0x2072f4['definition']=_0x37b2b3),_(_0x4b79fb,_0x110c60,_0x37b2b3)&&(_0x1e872f=!0x0);}return _0x1e872f;}['_handleFootnoteReferencesChanges'](_0x429db9,_0x27fff9){let _0x1cd35d=!0x1;const {removed:_0xf9b3c8,inserted:_0x378941,moved:_0x300f41}=this['_footnoteRefsTracker']['getChanges'](_0x27fff9);for(const _0x3f4cc2 of _0xf9b3c8)this['_handleRemoveFootnoteReferenceById'](_0x429db9,_0x3f4cc2)&&(_0x1cd35d=!0x0);for(const _0x3e910d of _0x378941)this['_handleInsertedFootnoteReference'](_0x429db9,_0x3e910d)&&(_0x1cd35d=!0x0);for(const _0x263256 of _0x300f41)this['_handleMovedFootnoteReference'](_0x429db9,_0x263256)&&(_0x1cd35d=!0x0);return _0x1cd35d;}['_handleFootnotesDefinitionsObjectSync'](_0x2f0ad1){if(!this['_footnotesDefinitions'])return!0x1;let _0x42d7b9=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x5c5d9d=[];for(const _0x460333 of this['_footnotesDefinitions']['getChildren']()){const _0x5c5636=_0x460333['getAttribute']('footnoteId');this['getFootnote'](_0x5c5636)||(_0x5c5d9d['unshift'](_0x460333),_0x42d7b9=!0x0);}for(const _0x39708f of _0x5c5d9d)_0x2f0ad1['remove'](_0x39708f);}const _0x58aba2=new Set(),_0xaf415=[];for(const _0x58e77a of this['_footnotesDefinitions']['getChildren']()){const _0xfb965b=_0x58e77a['getAttribute']('footnoteId');_0x58aba2['has'](_0xfb965b)?(_0xaf415['unshift'](_0x58e77a),_0x42d7b9=!0x0):_0x58aba2['add'](_0xfb965b);}for(const _0x49f808 of _0xaf415)_0x2f0ad1['remove'](_0x49f808);return this['_footnotesDefinitions']['childCount']||(_0x2f0ad1['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x42d7b9=!0x0),_0x42d7b9;}['_handleInsertedFootnoteReference'](_0x17a318,_0x20b8e2){if(this['_footnotes']['find'](_0xfa57ff=>_0xfa57ff['reference']===_0x20b8e2))return!0x1;let _0x517a93=!0x1;const _0x506a16=_0x20b8e2['getAttribute']('footnoteId'),_0x2e552d=this['_footnotes']['findIndex'](_0x2beba3=>_0x2beba3['id']===_0x506a16);-0x1!==_0x2e552d&&(_0x17a318['remove'](this['_footnotes'][_0x2e552d]['reference']),this['_footnotes']['splice'](_0x2e552d,0x1),_0x517a93=!0x0);let _0x461167=this['_footnotesDefinitions']?function(_0x1ca1d8,_0x5887c4){for(const _0x3c09a9 of _0x1ca1d8['getChildren']())if(_0x3c09a9['getAttribute']('footnoteId')===_0x5887c4)return _0x3c09a9;return null;}(this['_footnotesDefinitions'],_0x506a16):null;_0x461167||(_0x461167=_0x17a318['createElement']('footnoteDefinition',{'footnoteId':_0x506a16}),this['_footnotesDefinitions']&&(_0x17a318['insert'](_0x461167,this['_footnotesDefinitions'],'end'),_0x517a93=!0x0));const _0xc3a79c={'id':_0x506a16,'reference':_0x20b8e2,'definition':_0x461167},_0x19d63b=I(this['editor']['model'],this['_footnotes'],_0x20b8e2);this['_footnotes']['splice'](_0x19d63b,0x0,_0xc3a79c);let _0x4c63bd=_0x19d63b;return-0x1!==_0x2e552d&&(_0x4c63bd=Math['min'](_0x19d63b,_0x2e552d)),this['_updateFootnotesCounters'](_0x17a318,_0x4c63bd)&&(_0x517a93=!0x0),_0x517a93;}['_handleRemoveFootnoteReferenceById'](_0x171ef2,_0x2fbfff){const _0x1b5248=this['_footnotes']['findIndex'](_0x4b2b55=>_0x4b2b55['id']===_0x2fbfff);if(-0x1===_0x1b5248)return!0x1;let _0x28ea72=!0x1;const _0x360111=this['_footnotes'][_0x1b5248];return'$graveyard'!==_0x360111['definition']['root']['rootName']&&(_0x171ef2['remove'](_0x360111['definition']),_0x28ea72=!0x0),this['_footnotes']['splice'](_0x1b5248,0x1),this['_updateFootnotesCounters'](_0x171ef2,_0x1b5248)&&(_0x28ea72=!0x0),_0x28ea72;}['_handleMovedFootnoteReference'](_0x21cf3b,_0x2568dc){const _0x11699d=_0x2568dc['getAttribute']('footnoteId'),_0x1ca1e8=this['_footnotes']['findIndex'](_0x2091f1=>_0x2091f1['id']===_0x11699d),_0x5c6079=this['_footnotes'][_0x1ca1e8];let _0x3be064=!0x1;_0x5c6079['reference']=_0x2568dc,this['_footnotes']['splice'](_0x1ca1e8,0x1);const _0x38385d=I(this['editor']['model'],this['_footnotes'],_0x2568dc);return this['_footnotes']['splice'](_0x38385d,0x0,_0x5c6079),this['_updateFootnotesCounters'](_0x21cf3b,Math['min'](_0x1ca1e8,_0x38385d))&&(_0x3be064=!0x0),_0x3be064;}['_updateFootnoteRefCounter'](_0x2e4e07,_0x3d930c){if(!this['_footnotesDefinitions'])return!0x1;const _0x303b90=this['_footnotes'][_0x3d930c];let _0x59b2fd;return _0x59b2fd=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x303b90,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x3d930c+0x1}):String(_0x3d930c+0x1),_0x303b90['reference']['getAttribute']('footnoteCounter')!=_0x59b2fd&&(_0x2e4e07['setAttribute']('footnoteCounter',_0x59b2fd,_0x303b90['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x53d0ef){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x1651ed,_0x1edd64){if(_0x1651ed['length']!==_0x1edd64['length'])return!0x1;for(let _0x228278=0x0;_0x228278<_0x1651ed['length'];_0x228278++)if(_0x1651ed[_0x228278]!==_0x1edd64[_0x228278])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x1d79ca=>_0x1d79ca['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x1114cd=>_0x1114cd['getAttribute']('footnoteId'))))return!0x1;let _0xd5a5e7=!0x1;for(let _0x219316=0x0;_0x219316<this['_footnotes']['length'];_0x219316++){const _0x888867=this['_footnotes'][_0x219316],_0x73d8fc=_0x53d0ef['createPositionBefore'](_0x888867['definition']),_0x2a81cf=_0x53d0ef['createPositionAt'](this['_footnotesDefinitions'],_0x219316);_0x73d8fc['isEqual'](_0x2a81cf)||(_0x53d0ef['move'](_0x53d0ef['createRangeOn'](_0x888867['definition']),_0x2a81cf),_0xd5a5e7=!0x0);}return _0xd5a5e7;}['_ensureFootnotesReferencesHaveProperOrder'](_0x1b8e7d){if(!this['_footnotes']['length'])return!0x1;const {model:_0x511c2f}=this['editor'];let _0x554d85=!0x1;for(let _0xd7746=0x0;_0xd7746<this['_footnotes']['length']-0x1;_0xd7746++){const _0x49e0af=this['_footnotes'][_0xd7746],_0x14ebcb=this['_footnotes'][_0xd7746+0x1],_0x1c5791=_0x511c2f['createPositionBefore'](_0x49e0af['reference']),_0x3e5e2b=_0x511c2f['createPositionBefore'](_0x14ebcb['reference']);'after'===_0x1c5791['compareWith'](_0x3e5e2b)&&(this['_handleMovedFootnoteReference'](_0x1b8e7d,_0x49e0af['reference']),_0xd7746=-0x1,_0x554d85=!0x0);}return _0x554d85;}}function _(_0x1258ca,_0x15809c,_0x14e17b){if(_0x14e17b['childCount'])return!0x1;const _0x1dc65d=_0x15809c?'paragraph':'footnoteInlineContent';return _0x1258ca['insert'](_0x1258ca['createElement'](_0x1dc65d),_0x14e17b),!0x0;}function I(_0x59dc7c,_0x1f5e14,_0x393113){if(0x0===_0x1f5e14['length'])return 0x0;const _0x56c587=_0x59dc7c['createPositionBefore'](_0x393113);for(let _0x52c3b7=0x0;_0x52c3b7<_0x1f5e14['length'];_0x52c3b7++){const _0x30b500=_0x1f5e14[_0x52c3b7],_0x150a64=_0x59dc7c['createPositionBefore'](_0x30b500['reference']);if('before'===_0x56c587['compareWith'](_0x150a64))return _0x52c3b7;}const _0x59148d=_0x393113['root'];let _0x498a1e=-0x1;for(let _0x2e27e1=_0x1f5e14['length']-0x1;_0x2e27e1>=0x0;_0x2e27e1--)if(_0x1f5e14[_0x2e27e1]['reference']['root']===_0x59148d){_0x498a1e=_0x2e27e1;break;}if(-0x1!==_0x498a1e)return _0x498a1e+0x1;const _0x57429b=_0x59dc7c['document']['getRootNames'](),_0x58e884=_0x57429b['indexOf'](_0x59148d['rootName']),_0x34a76a=_0x57429b[_0x58e884+0x1];if(_0x34a76a){for(let _0xb8591d=0x0;_0xb8591d<_0x1f5e14['length'];_0xb8591d++)if(_0x1f5e14[_0xb8591d]['reference']['root']['rootName']===_0x34a76a)return _0xb8591d;}return _0x1f5e14['length'];}class h extends _0x6da540{['refresh'](){const _0x368046=this['editor']['model']['document']['selection'],_0x4309b8=this['_getPositionToInsertFootnote'](_0x368046);this['isEnabled']=!!_0x4309b8;}['execute'](_0x2e2bfc){const {editor:_0x594f0e}=this,{model:_0x4bd0d3}=_0x594f0e,{selection:_0x169586}=_0x4bd0d3['document'],_0x278f63=this['_getPositionToInsertFootnote'](_0x169586);if(!_0x278f63)return;const _0x152787=_0x594f0e['plugins']['get']('FootnotesEditing'),_0x6b3d26=_0x2e2bfc?.['footnoteId']??_0x24a8a0();!function(_0x415a37){return'string'==typeof _0x415a37&&_0x415a37['length']>0x0&&!/\s/['test'](_0x415a37)&&!/^\d/['test'](_0x415a37);}(_0x6b3d26)?_0x3fcbc6('insert-footnote-command-executed-with-invalid-id'):(_0x4bd0d3['change'](_0x330d0b=>{const _0x5b8619=_0x330d0b['createElement']('footnoteRef',{'footnoteId':_0x6b3d26});_0x4bd0d3['insertObject'](_0x5b8619,_0x278f63,null);}),_0x152787['_moveSelectionToFootnoteDefinition'](_0x6b3d26));}['_getPositionToInsertFootnote'](_0x52c35b){const {model:_0x43b282}=this['editor'],{schema:_0x136543}=_0x43b282,_0x41b5fb=_0x52c35b['getFirstRange']();for(const _0x2f01e4 of _0x41b5fb['getItems']())if(_0x136543['isBlock'](_0x2f01e4)||_0x136543['isObject'](_0x2f01e4))return null;const _0x1ba542=_0x41b5fb['end'];return _0x136543['checkChild'](_0x1ba542,'footnoteRef')?_0x1ba542:null;}}class r extends _0x57b2ed{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x508980}=this;_0x508980['config']['define']('footnotes.multiBlock',!0x0),_0x508980['commands']['add']('insertFootnote',new h(_0x508980)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x482702){const _0x1e4ad2=_0x53b339([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]),_0x74dec8=0x47a28506,_0x4df943=0x47a5026e^_0x74dec8,_0x458ba7=window[_0x53b339([0x44,0x61,0x74,0x65])][_0x53b339([0x6e,0x6f,0x77])](),_0x421774=_0x482702[_0x53b339([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x3b47ba=new window[(_0x53b339([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fed03=>{_0x421774[_0x53b339([0x6f,0x6e,0x63,0x65])](_0x53b339([0x72,0x65,0x61,0x64,0x79]),_0x2fed03);}),_0x458a13={[_0x53b339([0x6b,0x74,0x79])]:_0x53b339([0x45,0x43]),[_0x53b339([0x75,0x73,0x65])]:_0x53b339([0x73,0x69,0x67]),[_0x53b339([0x63,0x72,0x76])]:_0x53b339([0x50,0x2d,0x32,0x35,0x36]),[_0x53b339([0x78])]:_0x53b339([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]),[_0x53b339([0x79])]:_0x53b339([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]),[_0x53b339([0x61,0x6c,0x67])]:_0x53b339([0x45,0x53,0x32,0x35,0x36])},_0x302548=_0x421774[_0x53b339([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x53b339([0x67,0x65,0x74])](_0x53b339([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x1962df(){let _0x3435f9,_0x1f0f8d=null,_0x457765=null;try{if(_0x302548==_0x53b339([0x47,0x50,0x4c]))return _0x53b339([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x3435f9=_0x595205(),!_0x3435f9)return _0x53b339([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x3435f9[_0x53b339([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x457765=_0x2f4ce3(_0x3435f9[_0x53b339([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x3435f9[_0x53b339([0x6a,0x74,0x69])])),await _0x2fbb81()?_0x283c88()?_0x390cfe()?_0x53b339([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x235550()?(_0x3435f9[_0x53b339([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x53b339([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x1f0f8d=_0x376b57(_0x53b339([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x4fa1a4()):_0x53b339([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x53b339([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x53b339([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x53b339([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x390cfe(){const _0x4a79a3=[_0x53b339([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x53b339([0x74,0x72,0x69,0x61,0x6c])][_0x53b339([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3435f9[_0x53b339([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x458ba7/0x3e8:0xe10*_0x4df943;return _0x3435f9[_0x53b339([0x65,0x78,0x70])]<_0x4a79a3;}function _0x283c88(){const _0x2be58d=_0x3435f9[_0x53b339([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x2be58d&&(!!_0x2be58d[_0x53b339([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53b339([0x2a]))||!!_0x2be58d[_0x53b339([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53b339([0x46,0x4f,0x4f])));}function _0x235550(){const _0x4e9eeb=_0x3435f9[_0x53b339([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x4e9eeb||0x0==_0x4e9eeb[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x297d2f}=new URL(window[_0x53b339([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x4e9eeb[_0x53b339([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x297d2f))return!0x0;const _0x103950=_0x297d2f[_0x53b339([0x73,0x70,0x6c,0x69,0x74])](_0x53b339([0x2e]));return _0x4e9eeb[_0x53b339([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2ac52e=>_0x2ac52e[_0x53b339([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x53b339([0x2a])))[_0x53b339([0x6d,0x61,0x70])](_0x209cd6=>_0x209cd6[_0x53b339([0x73,0x70,0x6c,0x69,0x74])](_0x53b339([0x2e])))[_0x53b339([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x271d92=>_0x271d92[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x103950[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53b339([0x6d,0x61,0x70])](_0x16ea92=>Array(_0x103950[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x16ea92[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x53b339([0x66,0x69,0x6c,0x6c])](_0x16ea92[0x0]===_0x53b339([0x2a])?_0x53b339([0x2a]):'')[_0x53b339([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x16ea92))[_0x53b339([0x73,0x6f,0x6d,0x65])](_0x250e09=>_0x103950[_0x53b339([0x65,0x76,0x65,0x72,0x79])]((_0x350607,_0x3658fa)=>_0x250e09[_0x3658fa]===_0x350607||_0x250e09[_0x3658fa]===_0x53b339([0x2a])));}function _0x4fa1a4(){return _0x1f0f8d&&_0x457765?new window[(_0x53b339([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x51f945,_0x2687f6)=>{_0x1f0f8d[_0x53b339([0x74,0x68,0x65,0x6e])](_0x51f945,_0x2687f6),_0x457765[_0x53b339([0x74,0x68,0x65,0x6e])](_0x8be96b=>{_0x8be96b!=_0x53b339([0x56,0x61,0x6c,0x69,0x64])&&_0x51f945(_0x8be96b);},_0x2687f6);}):_0x1f0f8d||_0x457765||_0x53b339([0x56,0x61,0x6c,0x69,0x64]);}}function _0x2f4ce3(_0x57e4a8,_0x279c93){return new window[(_0x53b339([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4fc121=>{if(_0x488d12())return _0x4fc121(_0x53b339([0x56,0x61,0x6c,0x69,0x64]));_0x2629bd(),_0x421774[_0x53b339([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x53b339([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x4a5f76=!0x1;const _0xbb9279=_0x24a8a0();function _0x410402(_0x347203){return!!_0x347203&&(typeof _0x347203===_0x53b339([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x347203===_0x53b339([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x347203[_0x53b339([0x74,0x68,0x65,0x6e])]===_0x53b339([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x347203[_0x53b339([0x63,0x61,0x74,0x63,0x68])]===_0x53b339([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x1ffe41(_0x428ffd){_0x560023(_0x428ffd)[_0x53b339([0x74,0x68,0x65,0x6e])](_0x2aae6f=>{if(!_0x2aae6f||_0x2aae6f[_0x53b339([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x53b339([0x6f,0x6b]))return _0x53b339([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x17c6a6(_0x3e981f(_0xbb9279+_0x279c93))!=_0x2aae6f[_0x53b339([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x53b339([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x53b339([0x56,0x61,0x6c,0x69,0x64]);})[_0x53b339([0x74,0x68,0x65,0x6e])](_0x8a5529=>(_0x3eb8bf(),_0x8a5529),()=>{const _0x39b051=_0x2fc9f9();return null==_0x39b051?(_0x3eb8bf(),_0x53b339([0x56,0x61,0x6c,0x69,0x64])):_0x53b339(_0x458ba7-_0x39b051>(0x63ae0106^_0x74dec8)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x53b339([0x74,0x68,0x65,0x6e])](_0x4fc121)[_0x53b339([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4fc121(_0x53b339([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x18a86f=0x47946b86^_0x74dec8;function _0x3eb8bf(){const _0x144366=_0x53b339([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c6a6(_0x3e981f(_0x57e4a8)),_0x4b3911=_0x331b37(_0x17c6a6(window[_0x53b339([0x4d,0x61,0x74,0x68])][_0x53b339([0x63,0x65,0x69,0x6c])](_0x458ba7/_0x18a86f)));window[_0x53b339([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53b339([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x144366,_0x4b3911);}function _0x2fc9f9(){const _0x190e2b=_0x53b339([0x6c,0x6c,0x63,0x74,0x2d])+_0x17c6a6(_0x3e981f(_0x57e4a8)),_0x108194=window[_0x53b339([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x53b339([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x190e2b);return _0x108194?window[_0x53b339([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x331b37(_0x108194),0x10)*_0x18a86f:null;}function _0x560023(_0x1a8be9){return new window[(_0x53b339([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x5ca07e,_0xea7370)=>{_0x1a8be9[_0x53b339([0x74,0x68,0x65,0x6e])](_0x5ca07e,_0xea7370),window[_0x53b339([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0xea7370,0x47a351c6^_0x74dec8);});}}_0x421774[_0x53b339([0x6f,0x6e])](_0x53b339([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x38fec4,_0x2fa7eb)=>{if(_0x2fa7eb[0x0]!=_0x57e4a8)return _0x4fc121(_0x53b339([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x2fa7eb[0x1]={..._0x2fa7eb[0x1],[_0x53b339([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0xbb9279};},{[_0x53b339([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53b339([0x68,0x69,0x67,0x68])}),_0x421774[_0x53b339([0x6f,0x6e])](_0x53b339([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x188b41=>{_0x410402(_0x188b41[_0x53b339([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x4a5f76=!0x0,_0x1ffe41(_0x188b41[_0x53b339([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x53b339([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x53b339([0x6c,0x6f,0x77])}),_0x3b47ba[_0x53b339([0x74,0x68,0x65,0x6e])](()=>{_0x4a5f76||_0x4fc121(_0x53b339([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x488d12(){return _0x421774[_0x53b339([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53b339([0x76,0x69,0x65,0x77])][_0x53b339([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x53b339([0x61,0x75,0x74,0x6f]);}function _0x2629bd(){_0x421774[_0x53b339([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x53b339([0x76,0x69,0x65,0x77])][_0x53b339([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x53b339([0x61,0x75,0x74,0x6f]);}}function _0x376b57(_0x385490){const _0x18bc59=[new window[(_0x53b339([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4a6958=>setTimeout(_0x4a6958,0x47abbbca^_0x74dec8)),_0x3b47ba[_0x53b339([0x74,0x68,0x65,0x6e])](()=>new window[(_0x53b339([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5e2ff5=>{let _0x1ff896=0x0;_0x421774[_0x53b339([0x6d,0x6f,0x64,0x65,0x6c])][_0x53b339([0x6f,0x6e])](_0x53b339([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x32bafc,_0x58cfd0)=>{_0x58cfd0[0x0][_0x53b339([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x1ff896++,_0x1ff896==(0x47a280ee^_0x74dec8)&&(_0x5e2ff5(),_0x32bafc[_0x53b339([0x6f,0x66,0x66])]());});}))];return window[_0x53b339([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x53b339([0x72,0x61,0x63,0x65])](_0x18bc59)[_0x53b339([0x74,0x68,0x65,0x6e])](()=>_0x385490);}async function _0x37c6e7(){await _0x3b47ba,_0x421774[_0x53b339([0x6d,0x6f,0x64,0x65,0x6c])][_0x53b339([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x4fe71c,_0x421774[_0x53b339([0x6d,0x6f,0x64,0x65,0x6c])][_0x53b339([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x4fe71c,_0x421774[_0x53b339([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x53b339([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4df7bd(_0x2c4f26){const _0x456816=_0x34066a();_0x421774[_0x456816]=_0x53b339([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x2c4f26,_0x2c4f26!=_0x53b339([0x56,0x61,0x6c,0x69,0x64])&&_0x37c6e7();}function _0x34066a(){const _0x464d41=window[_0x53b339([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x53b339([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x53b339([0x6e,0x6f,0x77])]())[_0x53b339([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x53b339([0x2e]),'');let _0x14168c=_0x53b339([0x75]);for(let _0x1f85bb=0x0;_0x1f85bb<_0x464d41[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1f85bb+=0x2){let _0x2b0a72=window[_0x53b339([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x464d41[_0x53b339([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1f85bb,_0x1f85bb+0x2));_0x2b0a72>=_0x1e4ad2[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x2b0a72-=_0x1e4ad2[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x14168c+=_0x1e4ad2[_0x2b0a72];}return _0x14168c;}function _0x595205(){const _0x1c3de3=_0x302548[_0x53b339([0x73,0x70,0x6c,0x69,0x74])](_0x53b339([0x2e]));if(0x3!=_0x1c3de3[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x1473dc(_0x1c3de3[0x1]);function _0x1473dc(_0x196764){const _0x1d0160=_0x140803(_0x196764);return _0x1d0160&&_0x2081cb()?_0x1d0160:null;function _0x2081cb(){const _0x17d169=_0x1d0160[_0x53b339([0x6a,0x74,0x69])],_0x51278c=window[_0x53b339([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x17d169[_0x53b339([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x17d169[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3e8919={..._0x1d0160,[_0x53b339([0x6a,0x74,0x69])]:_0x17d169[_0x53b339([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x17d169[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3e8919[_0x53b339([0x76,0x63])],_0x3e981f(_0x3e8919)==_0x51278c;}}}async function _0x2fbb81(){let _0x46a1e2=!0x0;try{const _0x1ebd80=_0x302548[_0x53b339([0x73,0x70,0x6c,0x69,0x74])](_0x53b339([0x2e])),[_0x2dbbd5,_0xc87f73,_0x45e413]=_0x1ebd80;return _0x1238b5(_0x2dbbd5),await _0x2708d2(_0x2dbbd5,_0xc87f73,_0x45e413),_0x46a1e2;}catch{return!0x1;}function _0x1238b5(_0x42ffbf){const _0x42d1b5=_0x140803(_0x42ffbf);_0x42d1b5&&_0x42d1b5[_0x53b339([0x61,0x6c,0x67])]==_0x53b339([0x45,0x53,0x32,0x35,0x36])||(_0x46a1e2=!0x1);}async function _0x2708d2(_0x487098,_0x2a855f,_0x427ad0){const _0x337863=window[_0x53b339([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x53b339([0x66,0x72,0x6f,0x6d])](_0x3348ef(_0x427ad0),_0x14e643=>_0x14e643[_0x53b339([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3b4604=new window[(_0x53b339([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x53b339([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x487098+_0x53b339([0x2e])+_0x2a855f),_0x53e237=window[_0x53b339([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x53b339([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x53e237)return;const _0x3f6430=await _0x53e237[_0x53b339([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x53b339([0x6a,0x77,0x6b]),_0x458a13,{[_0x53b339([0x6e,0x61,0x6d,0x65])]:_0x53b339([0x45,0x43,0x44,0x53,0x41]),[_0x53b339([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x53b339([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x53b339([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x53e237[_0x53b339([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x53b339([0x6e,0x61,0x6d,0x65])]:_0x53b339([0x45,0x43,0x44,0x53,0x41]),[_0x53b339([0x68,0x61,0x73,0x68])]:{[_0x53b339([0x6e,0x61,0x6d,0x65])]:_0x53b339([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x3f6430,_0x337863,_0x3b4604)||(_0x46a1e2=!0x1);}}function _0x140803(_0x297ed4){return _0x297ed4[_0x53b339([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x53b339([0x65,0x79]))?JSON[_0x53b339([0x70,0x61,0x72,0x73,0x65])](_0x3348ef(_0x297ed4)):null;}function _0x3348ef(_0x4532fb){return window[_0x53b339([0x61,0x74,0x6f,0x62])](_0x4532fb[_0x53b339([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x53b339([0x2b]))[_0x53b339([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x53b339([0x2f])));}function _0x3e981f(_0x344eca){let _0x50e15f=0x1505;function _0x1fe5d4(_0x3b8830){for(let _0xf47b58=0x0;_0xf47b58<_0x3b8830[_0x53b339([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0xf47b58++){const _0x1234d3=_0x3b8830[_0x53b339([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0xf47b58);_0x50e15f=(_0x50e15f<<0x5)+_0x50e15f+_0x1234d3,_0x50e15f&=_0x50e15f;}}function _0xf89bdf(_0x56810f){Array[_0x53b339([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x56810f)?_0x56810f[_0x53b339([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0xf89bdf):_0x56810f&&typeof _0x56810f==_0x53b339([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x53b339([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x56810f)[_0x53b339([0x73,0x6f,0x72,0x74])]()[_0x53b339([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14f6fa,_0x4edf77])=>{_0x1fe5d4(_0x14f6fa),_0xf89bdf(_0x4edf77);}):_0x1fe5d4(window[_0x53b339([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x56810f));}return _0xf89bdf(_0x344eca),_0x50e15f>>>0x0;}function _0x17c6a6(_0x3ed64e){return _0x3ed64e[_0x53b339([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x53b339([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x53b339([0x30]));}function _0x331b37(_0x385b7f){return _0x385b7f[_0x53b339([0x73,0x70,0x6c,0x69,0x74])]('')[_0x53b339([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x53b339([0x6a,0x6f,0x69,0x6e])]('');}function _0x4fe71c(){}function _0x53b339(_0x1a7253){return _0x1a7253['map'](_0x2033f4=>String['fromCharCode'](_0x2033f4))['join']('');}_0x4df7bd(await _0x1962df());}(this);}['_moveSelectionToFootnoteDefinition'](_0x2c8182){const {plugins:_0x181b8b,editing:_0x55760b,model:_0x4e3055}=this['editor'],_0x52e13f=_0x181b8b['get'](f)['getFootnote'](_0x2c8182);return!!_0x52e13f&&(_0x4e3055['change'](_0xbae93b=>{_0xbae93b['setSelection'](_0xbae93b['createPositionAt'](_0x52e13f['definition'],'end'));}),_0x55760b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x1b0f59){const {plugins:_0x1c7949,editing:_0x2a854c,model:_0x2aabaf}=this['editor'],_0x18adc8=_0x1c7949['get'](f)['getFootnote'](_0x1b0f59);return!!_0x18adc8&&(_0x2aabaf['change'](_0x57119d=>{_0x57119d['setSelection'](_0x18adc8['reference'],'on');}),_0x2a854c['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x13148b}=this['editor']['model'],_0x30ec80=this['editor']['config']['get']('footnotes.multiBlock');_0x13148b['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x13148b['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x13148b['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x30ec80?_0x13148b['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x13148b['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x13148b['addChildCheck'](_0x5552ea=>{for(const _0x355594 of _0x5552ea)if('footnoteDefinition'===_0x355594['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xf94c6}=this,{conversion:_0x1d7652,editing:_0x262156}=_0xf94c6,{t:t}=_0xf94c6['locale'];_0x1d7652['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x33953c,{writer:_0xe1bb21,consumable:_0x4a5e85})=>{const _0x2235b9=_0x33953c['getChild'](0x0);if(!_0x2235b9||!_0x2235b9['is']('element','a'))return null;const _0x3c3890=_0x2235b9['getAttribute']('href')||'';if(!_0x3c3890['startsWith']('#'))return null;const _0x451a35=_0x3c3890['replace'](/^#/,'');if(!_0x451a35)return null;_0x4a5e85['consume'](_0x2235b9,{'name':!0x0,'attributes':['href']});for(const {item:_0x4c11ff}of _0x262156['view']['createRangeIn'](_0x2235b9))_0x4c11ff['is']('$textProxy')?_0x4a5e85['consume'](_0x4c11ff['textNode'],{'name':!0x0}):_0x4c11ff['is']('element')&&_0x4a5e85['consume'](_0x4c11ff,{'name':!0x0});return _0xe1bb21['createElement']('footnoteRef',{'footnoteId':_0x451a35});}}),_0x1d7652['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x19f2fa,{writer:_0x2583ad})=>b(_0x19f2fa,_0x2583ad)}),_0x1d7652['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x4f518a,{writer:_0x51b3f9})=>{const _0xc72747=_0x4f518a['getAttribute']('footnoteCounter');return _0x1ffee4(b(_0x4f518a,_0x51b3f9),_0x51b3f9,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0xc72747)});}});}['_defineDefinitionsConverters'](){const {editor:_0x5430a1}=this,{t:t}=_0x5430a1['locale'],{conversion:_0x203eb2}=_0x5430a1;_0x203eb2['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x203eb2['for']('upcast')['add'](_0x358430=>{_0x358430['on']('element:ol',(_0x37611a,_0x337040,_0x59d49d)=>{const _0x129adb=_0x337040['viewItem'];if(!_0x129adb['hasClass']('footnotes-list')||!_0x337040['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x59d49d['consumable']['consume'](_0x129adb,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x30e060,modelCursor:_0x193c16}=_0x59d49d['convertChildren'](_0x337040['viewItem'],_0x337040['modelCursor']);_0x337040['modelRange']=_0x30e060,_0x337040['modelCursor']=_0x193c16;}),_0x358430['on']('element:hr',(_0x32010e,_0x168fbc,_0x12ba89)=>{const _0x2807ef=_0x168fbc['viewItem'];_0x2807ef['hasClass']('footnotes-divider')&&_0x168fbc['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x12ba89['consumable']['consume'](_0x2807ef,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x203eb2['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3f37ea,{writer:_0x494050})=>D(_0x494050)}),_0x203eb2['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x305af9,{writer:_0x23b756})=>{const _0x3cc083=D(_0x23b756,{'data-footnotes-list-label':t('Footnotes')}),_0x51036e=_0x1ffee4(_0x3cc083,_0x23b756,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x23b756['setCustomProperty']('footnotesDefinitions',!0x0,_0x51036e),_0x51036e;}});}['_defineDefinitionConverters'](){const {editor:_0x5d49a6}=this,{conversion:_0xc3fcaa,locale:_0x515eb3}=_0x5d49a6,_0x23691b=_0x5d49a6['config']['get']('footnotes.multiBlock');_0xc3fcaa['for']('upcast')['add'](_0x53825d=>{_0x53825d['on']('element:li',(_0x3d8371,_0x119326,_0x3ee110)=>{const _0x2a3843=_0x119326['viewItem'];if(!_0x2a3843['hasClass']('footnote-definition')||!_0x2a3843['getAttribute']('id'))return;const _0x4da198=_0x2a3843['parent'];if(!_0x4da198['is']('element','ol')||!_0x4da198['hasClass']('footnotes-list'))return;if(!_0x3ee110['consumable']['test'](_0x2a3843,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x513b62=_0x3ee110['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x2a3843['getAttribute']('id')});if(!_0x3ee110['safeInsert'](_0x513b62,_0x119326['modelCursor']))return;_0x3ee110['consumable']['consume'](_0x2a3843,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x253733=Array['from'](_0x2a3843['getChildren']())['find'](_0x5d6a26=>_0x5d6a26['is']('element')&&_0x5d6a26['hasClass']('footnote-content'));for(const _0x2a6d3a of _0x2a3843['getChildren']())_0x2a6d3a['is']('element')&&(_0x3ee110['consumable']['consume'](_0x2a6d3a,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3ee110['consumable']['consume'](_0x2a6d3a,{'name':!0x0,'classes':'footnote-content'}));if(_0x253733){if(_0x23691b)_0x3ee110['convertChildren'](_0x253733,_0x513b62);else{const _0x71d720=_0x3ee110['writer']['createElement']('footnoteInlineContent');_0x3ee110['writer']['insert'](_0x71d720,_0x513b62),_0x3ee110['convertChildren'](_0x253733,_0x71d720);}}_0x3ee110['updateConversionResult'](_0x513b62,_0x119326);});}),_0xc3fcaa['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x5ecb29,{writer:_0x49bfe6})=>y(_0x5ecb29,_0x49bfe6,_0x515eb3,{'dataPipeline':!0x0})}),_0xc3fcaa['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x3f75ec,{writer:_0x9fb11b})=>y(_0x3f75ec,_0x9fb11b,_0x515eb3)});}['_defineBogusParagraphConverters'](){const {editor:_0x171de0}=this,{conversion:_0x1bdcf0}=_0x171de0;_0x171de0['config']['get']('footnotes.multiBlock')?(_0x1bdcf0['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1bdcf0['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x171de0['model']['document'],'change:data',()=>{!function(_0x46db80,_0x49ec20){const _0x173e0c=_0x46db80['document']['differ'],_0x4b3251=new Set();for(const _0x2c6b2b of _0x173e0c['getChanges']()){const _0x4b0862='attribute'==_0x2c6b2b['type']?_0x2c6b2b['range']['start']['parent']:_0x2c6b2b['position']['parent'];_0x4b0862['is']('element','footnoteDefinition')&&_0x4b3251['add'](_0x4b0862);}for(const _0x543179 of _0x4b3251['values']()){const _0x561367=Array['from'](_0x543179['getChildren']())['filter'](_0x1f249b=>v(_0x1f249b,_0x49ec20['mapper']));for(const _0xfd6c05 of _0x561367)_0x49ec20['reconvertItem'](_0xfd6c05);}}(_0x171de0['model'],_0x171de0['editing']);})):(_0x1bdcf0['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1bdcf0['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x9f196,{writer:_0xfa6784})=>{const _0x57f9f1=_0xfa6784['createContainerElement']('span');return _0xfa6784['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x57f9f1),_0x57f9f1;}}));}['_defineKeyboardHandlers'](){const {editor:_0x34ae07}=this,{editing:_0x1bb6ec,t:t}=_0x34ae07,_0x5265a9=_0x34ae07['model']['document']['selection'];_0x34ae07['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x34ae07['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x1bb6ec['view']['document'],'enter',(_0x3b40b8,_0x2a3e4b)=>{const _0x42724a=function(_0x5d288c){const _0x1bc5c6=_0x5d288c['getSelectedElement']();if(_0x1bc5c6?.['is']('element','footnoteRef'))return _0x1bc5c6;return null;}(_0x5265a9);if(_0x42724a){const _0x418316=_0x42724a['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x418316),_0x2a3e4b['preventDefault'](),_0x3b40b8['stop']();}},{'context':_0x2ce040});}['_defineClickHandlers'](){const {editor:_0x4a5fc8}=this,{editing:_0x4e771b}=_0x4a5fc8;_0x4a5fc8['editing']['view']['addObserver'](_0x56be17),_0x4a5fc8['editing']['view']['addObserver'](_0x42a7b6);let _0x38b05d=!0x1;this['listenTo'](_0x4e771b['view']['document'],'pointerdown',(_0x5157a5,_0x4c4390)=>{const {target:_0x3849db}=_0x4c4390,_0x5445d4=_0x4e771b['view']['document']['selection'];_0x38b05d=!!(_0x3849db?.['is']('element','a')&&_0x3849db['parent']?.['is']('element','sup')&&_0x3849db['parent']['hasClass']('footnote'))&&_0x5445d4['getSelectedElement']()===_0x3849db['parent'];},{'priority':'high'}),this['listenTo'](_0x4e771b['view']['document'],'click',(_0x3d0ad8,_0x889a68)=>{const {target:_0x3afc17}=_0x889a68;if(!_0x3afc17?.['is']('element','a'))return;if(_0x3afc17['parent']?.['is']('element','sup')&&_0x3afc17['parent']['hasClass']('footnote')&&!_0x38b05d)return void _0x889a68['preventDefault']();let _0x237be6=_0x3afc17['getAttribute']('href');if(!_0x237be6?.['startsWith']('#'))return;_0x237be6=_0x237be6['slice'](0x1);let _0xd7daff=!0x1;(_0x237be6['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x237be6['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x237be6))&&(_0xd7daff=!0x0),_0xd7daff&&(_0x889a68['preventDefault'](),_0x3d0ad8['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x211139}={}){return(_0x442a6e,{writer:_0x10f0dc})=>{if(!g(_0x442a6e))return null;if(!_0x211139)return _0x10f0dc['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x50fef0=_0x10f0dc['createContainerElement']('p');return _0x10f0dc['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x50fef0),_0x50fef0;};}function g(_0x357ce0){const {parent:_0x520b29}=_0x357ce0;if(!_0x520b29?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x520b29['childCount'])return!0x1;for(const _0x8f71c4 of _0x357ce0['getAttributeKeys']())if(!_0x8f71c4['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x8f71c4)return!0x1;return!0x0;}function v(_0x25a419,_0x4eec17){if(!_0x25a419['is']('element','paragraph'))return!0x1;const _0x2fdc8b=_0x4eec17['toViewElement'](_0x25a419);return!!_0x2fdc8b&&g(_0x25a419)!==_0x2fdc8b['is']('element','span');}function Q(_0xceeef9){return _0x2ce040(_0xceeef9)&&_0xceeef9['is']('containerElement')&&!!_0xceeef9['getCustomProperty']('footnotesDefinitions');}function D(_0x31eba7,_0x4ec169={}){const _0xd87827=_0x31eba7['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x452066=_0x31eba7['createContainerElement']('ol',{'class':'footnotes-list'},_0x31eba7['createSlot']());return _0x31eba7['createContainerElement']('div',{'class':'footnotes',..._0x4ec169},[_0xd87827,_0x452066]);}function b(_0x4cb34c,_0x8846b3){const _0x197e48=_0x4cb34c['getAttribute']('footnoteId'),_0x18e166=_0x4cb34c['getAttribute']('footnoteCounter'),_0x503853=_0x8846b3['createUIElement']('a',{'href':'#'+_0x197e48},function(_0x1b6474){const _0x435f51=this['toDomElement'](_0x1b6474);return _0x435f51['textContent']=_0x18e166,_0x435f51;}),_0x5bc819=_0x8846b3['createContainerElement']('sup',{'id':'ref-'+_0x197e48,'class':'footnote'},[_0x503853]);return _0x5bc819['getFillerOffset']=()=>null,_0x5bc819;}function y(_0x35e3d2,_0x5db038,_0x419f03,{dataPipeline:_0x53f1fc}={}){const {t:t}=_0x419f03,_0x410244=_0x35e3d2['getAttribute']('footnoteId'),_0x3f5588=_0x5db038['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x410244},function(_0x433c87){const _0x1f1085=this['toDomElement'](_0x433c87);return _0x1f1085['innerText']='^',_0x1f1085;}),_0x2acd2f=_0x53f1fc?_0x5db038['createContainerElement']('div',{'class':'footnote-content'}):_0x105eec(_0x5db038['createEditableElement']('div',{'class':'footnote-content'}),_0x5db038,{'label':t('Footnote\x20content.')});return _0x5db038['insert'](_0x5db038['createPositionAt'](_0x2acd2f,0x0),_0x5db038['createSlot']()),_0x5db038['createContainerElement']('li',{'class':'footnote-definition','id':_0x410244},[_0x3f5588,_0x2acd2f]);}class e extends _0x57b2ed{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0xe7a8ac];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x4e2067}=this,{plugins:_0x3e3c2c,model:_0x139101}=_0x4e2067,_0x366514=_0x3e3c2c['get'](_0xe7a8ac),_0x3f0fa0=_0x3e3c2c['get'](f);this['listenTo'](_0x366514,'outputTransformation',(_0x493536,_0x379d5c)=>{const _0xa93f2e=l(_0x139101['createRangeIn'](_0x379d5c['content']));if(!_0xa93f2e['length'])return;const _0x49a90a=_0x3f0fa0['getFootnotes'](),_0x3dd5e7=_0xa93f2e['reduce']((_0x2cad02,_0x24e8ae)=>{const _0x39db81=_0x49a90a['find'](_0x28401a=>_0x28401a['id']===_0x24e8ae);if(_0x39db81){const _0x2dac3c=_0x4e2067['data']['toView'](_0x39db81['definition'],{'isClipboardPipeline':!0x0}),_0x22112=_0x4e2067['data']['htmlProcessor']['toData'](_0x2dac3c);_0x2cad02[_0x39db81['id']]=_0x22112;}return _0x2cad02;},Object['create'](null));_0x379d5c['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x3dd5e7));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x396aa7}=this,{model:_0x33baa5,plugins:_0xd7cc75}=_0x396aa7,{view:_0x48df68}=_0x396aa7['editing'],_0x566c13=_0xd7cc75['get'](_0xe7a8ac),_0x1e9f53=_0xd7cc75['get'](f),_0x49625e=_0x396aa7['config']['get']('footnotes.multiBlock');let _0x1f44d0=null;this['listenTo'](_0x48df68['document'],'clipboardInput',(_0x56e324,_0x4764c4)=>{const _0x39cf91=_0x4764c4['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x1f44d0=_0x39cf91?JSON['parse'](_0x39cf91):null;}),this['listenTo'](_0x566c13,'contentInsertion',(_0x228f80,_0x1a070d)=>{const _0xe0a3d6=_0x1a070d['sourceEditorId']===this['editor']['id'];_0xe0a3d6&&'drop'===_0x1a070d['method']||_0x33baa5['change'](_0x311d97=>{let _0x3780c4=_0x1e9f53['getFootnotesDefinitionsObjectElement']();const _0x2d33fa=!!_0x3780c4&&Array['from'](_0x33baa5['document']['selection']['getSelectedBlocks']())['includes'](_0x3780c4);if(!_0x1f44d0&&function(_0x3f8b85){for(const {item:_0x565fba}of _0x3f8b85)if(_0x565fba['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x33baa5['createRangeIn'](_0x1a070d['content']))&&(_0x1f44d0=function(_0xd864ed,_0x36eb15){const _0x4dee51=c(_0xd864ed,_0x36eb15);if(!_0x4dee51)return null;const _0x25f723=Object['create'](null);for(const _0xd3d79d of _0x4dee51['getChildren']())_0xd3d79d['is']('element','footnoteDefinition')&&_0xd3d79d['hasAttribute']('footnoteId')&&(_0x25f723[_0xd3d79d['getAttribute']('footnoteId')]=_0xd864ed['cloneElement'](_0xd3d79d,!0x0));return Object['keys'](_0x25f723)['length']?_0x25f723:null;}(_0x311d97,_0x1a070d['content'])),(_0x3780c4&&!_0x2d33fa||!_0x3780c4&&!_0x1f44d0)&&function(_0x5a2579,_0x2ce3b5){const _0x53d500=[];for(const {item:_0x42f602}of _0x5a2579['createRangeIn'](_0x2ce3b5))_0x42f602['is']('element','footnotesDefinitions')&&_0x53d500['push'](_0x42f602);for(const _0x3f5847 of _0x53d500)_0x5a2579['remove'](_0x3f5847);}(_0x311d97,_0x1a070d['content']),!_0x1f44d0)return;const {selection:_0x46f7ce}=_0x33baa5['document'],_0x308a5a=_0x46f7ce['getFirstRange']()['root'];_0x3780c4&&!_0x2d33fa||(_0x3780c4=c(_0x311d97,_0x1a070d['content']),_0x3780c4||=_0x1e9f53['_insertEmptyFootnotesDefinitionsContainer'](_0x311d97,_0x308a5a));const _0x229d81=Array['from'](_0x46f7ce['getRanges']())['flatMap'](l),_0x3f2e44=function(_0x3382bb,_0x15e9a8,_0x5849fd){const _0x480313=Object['create'](null);for(const {item:_0x2fe2a9}of _0x3382bb['createRangeIn'](_0x15e9a8))if(_0x2fe2a9['is']('element','footnoteRef')){const _0x10bc56=_0x2fe2a9['getAttribute']('footnoteId');if(!_0x5849fd(_0x10bc56))continue;_0x480313[_0x10bc56]||(_0x480313[_0x10bc56]=_0x24a8a0()),_0x3382bb['setAttribute']('footnoteId',_0x480313[_0x10bc56],_0x2fe2a9);}return _0x480313;}(_0x311d97,_0x1a070d['content'],_0x596ee1=>{if(!_0xe0a3d6)return!0x0;return!!_0x1e9f53['getFootnote'](_0x596ee1)&&!_0x229d81['includes'](_0x596ee1);});for(const [_0xf73bf5,_0x3b209e]of Object['entries'](_0x1f44d0)){const _0xc6d059=_0x3f2e44[_0xf73bf5]||_0xf73bf5;let _0xc308c7;if('string'!=typeof _0x3b209e)_0xc308c7=_0x3b209e,_0xc6d059!==_0xf73bf5&&_0x311d97['setAttribute']('footnoteId',_0xc6d059,_0xc308c7);else{_0xc308c7=_0x311d97['createElement']('footnoteDefinition',{'footnoteId':_0xc6d059});const _0x2c20db=_0x396aa7['data']['htmlProcessor']['toView'](_0x3b209e);let _0x4932a9;if(_0x49625e)_0x4932a9=_0x396aa7['data']['toModel'](_0x2c20db,_0xc308c7);else{_0x4932a9=_0x311d97['createElement']('footnoteInlineContent');const _0x89e736=_0x396aa7['data']['toModel'](_0x2c20db,_0x4932a9);_0x311d97['insert'](_0x89e736,_0x4932a9);}_0x311d97['append'](_0x4932a9,_0xc308c7);}_0x311d97['insert'](_0xc308c7,_0x3780c4,'end');}_0x1f44d0=null;});});}}function c(_0x2b9afd,_0x33742b){for(const {item:_0x30db8a}of _0x2b9afd['createRangeIn'](_0x33742b))if(_0x30db8a['is']('element','footnotesDefinitions'))return _0x30db8a;return null;}function l(_0x6b9d5a){const _0x2825c0=new Set();for(const {item:_0x33b21b}of _0x6b9d5a)_0x33b21b['is']('element','footnoteRef')&&_0x2825c0['add'](_0x33b21b['getAttribute']('footnoteId'));return Array['from'](_0x2825c0);}class i extends _0x57b2ed{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x407111}=this,{componentFactory:_0x457234}=_0x407111['ui'];_0x457234['add']('insertFootnote',E(_0x407111,_0xb5f745)),_0x457234['add']('menuBar:insertFootnote',E(_0x407111,_0x247fb5)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x329604=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x5a27f8;for(const _0x351ded in _0x329604){const _0x5d8863=_0x351ded,_0xb0b074=_0x329604[_0x5d8863];if('footnotesLicenseKeyValid'==_0xb0b074||'footnotesLicenseKeyInvalid'==_0xb0b074||'footnotesLicenseKeyExpired'==_0xb0b074||'footnotesLicenseKeyDomainLimit'==_0xb0b074||'footnotesLicenseKeyNotAllowed'==_0xb0b074||'footnotesLicenseKeyEvaluationLimit'==_0xb0b074||'footnotesLicenseKeyUsageLimit'==_0xb0b074){delete _0x329604[_0x5d8863],_0x5a27f8=_0xb0b074,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x5a27f8&&_0x329604['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x5a27f8&&_0x329604['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x5a27f8&&_0x329604['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x5a27f8&&_0x329604['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x5a27f8&&_0x329604['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x5a27f8&&_0x329604['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x8dee06,_0x15c5be){const _0x5a6c3b=_0x8dee06['commands']['get']('insertFootnote');return _0x31811e=>{const {t:t}=_0x31811e,_0x50ebf9=new _0x15c5be(_0x31811e),_0x381cb3=_0x50ebf9 instanceof _0x247fb5;return _0x50ebf9['bind']('isEnabled')['to'](_0x5a6c3b,'isEnabled'),_0x50ebf9['set']({'label':t(_0x381cb3?'Footnote':'Insert\x20footnote'),'icon':_0x111132,'tooltip':!0x0}),_0x50ebf9['on']('execute',()=>{_0x5a6c3b['execute'](),_0x8dee06['editing']['view']['focus']();}),_0x50ebf9;};}class lt extends _0x57b2ed{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 _0x6da540{['refresh'](){const {editor:_0x1fcdfb}=this,_0x5e4b1b=_0x1fcdfb['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5e4b1b,this['value']=_0x5e4b1b?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x31b591}){const {editor:_0x47f430}=this,_0x5b8658=_0x47f430['plugins']['get'](f),_0x5f3e3e=_0x5b8658['getFootnotesDefinitionsObjectElement']();_0x5f3e3e&&W['includes'](_0x31b591)&&_0x47f430['model']['change'](_0x483c31=>{_0x483c31['setAttribute']('footnotesListStyle',_0x31b591,_0x5f3e3e),_0x5b8658['_updateFootnotesCounters'](_0x483c31);});}}class C extends _0x6da540{['refresh'](){const {editor:_0x59c8ee}=this,_0x4952c0=_0x59c8ee['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x4952c0,this['value']=_0x4952c0?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x36ff68}){const {editor:_0x58cfbb}=this,_0x4d680a=_0x58cfbb['plugins']['get'](f),_0x5516d5=_0x4d680a['getFootnotesDefinitionsObjectElement']();_0x5516d5&&Number['isInteger'](_0x36ff68)&&_0x58cfbb['model']['change'](_0x34b483=>{_0x34b483['setAttribute']('footnotesListStart',_0x36ff68,_0x5516d5),_0x4d680a['_updateFootnotesCounters'](_0x34b483);});}}class P extends _0x57b2ed{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x634cb1}=this;_0x634cb1['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x634cb1['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x634cb1['commands']['add']('footnotesStyle',new S(_0x634cb1)),_0x634cb1['commands']['add']('footnotesStart',new C(_0x634cb1)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x5e7736}=this,{schema:_0x1a1599}=_0x5e7736['model'];_0x1a1599['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x1a53ca}=this,{conversion:_0x40a751,model:_0x41dfd6}=_0x1a53ca,{schema:_0x4b56dd}=_0x41dfd6;_0x40a751['for']('upcast')['add'](_0x4f732e=>{_0x4f732e['on']('element:ol',(_0x59c715,_0x1ad656,_0x7a6725)=>{const _0x36fb7a=_0x1ad656['viewItem'],_0x2a4ab7=_0x1ad656['modelCursor']?.['parent'];_0x36fb7a['hasClass']('footnotes-list')&&_0x2a4ab7?.['is']('element','footnotesDefinitions')&&(function(_0x197e9e,_0x30780f,_0x5e919e,_0x43a414){if(!_0x43a414['checkAttribute'](_0x30780f,'footnotesListStart'))return;let _0xcbf852=0x1;const _0x2cc44c=_0x5e919e['consumable']['consume'](_0x197e9e,{'attributes':'start'});if(_0x2cc44c){const _0xc2a5eb=Number['parseInt'](_0x197e9e['getAttribute']('start'),0xa);Number['isNaN'](_0xc2a5eb)||(_0xcbf852=_0xc2a5eb);}!_0x2cc44c&&_0x30780f['hasAttribute']('footnotesListStart')||_0x5e919e['writer']['setAttribute']('footnotesListStart',_0xcbf852,_0x30780f);}(_0x36fb7a,_0x2a4ab7,_0x7a6725,_0x4b56dd),function(_0x142712,_0x1e326c,_0x1554b4,_0x42e095){if(!_0x42e095['checkAttribute'](_0x1e326c,'footnotesListStyle'))return;let _0x1e870b='decimal',_0x46c85a=!0x1;if(_0x1554b4['consumable']['consume'](_0x142712,{'attributes':'type'})){const _0x218114={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x142712['getAttribute']('type')];_0x218114&&(_0x1e870b=_0x218114),_0x46c85a=!0x0;}_0x1554b4['consumable']['consume'](_0x142712,{'styles':'list-style-type'})&&(_0x1e870b=function(_0xab9344){switch(_0xab9344){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0xab9344;}}(_0x142712['getStyle']('list-style-type')),_0x46c85a=!0x0),!_0x46c85a&&_0x1e326c['hasAttribute']('footnotesListStyle')||_0x1554b4['writer']['setAttribute']('footnotesListStyle',_0x1e870b,_0x1e326c);}(_0x36fb7a,_0x2a4ab7,_0x7a6725,_0x4b56dd));});}),_0x40a751['for']('downcast')['add'](_0x45e15b=>{_0x45e15b['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x5c5b65,_0xf0a802,_0x7d3af7)=>{if(!_0x7d3af7['consumable']['consume'](_0xf0a802['item'],_0x5c5b65['name']))return;const _0xde69aa=M(_0xf0a802['item'],_0x7d3af7['mapper']),{attributeNewValue:_0x16c0db}=_0xf0a802;null==_0x16c0db||0x1===_0x16c0db?_0x7d3af7['writer']['removeAttribute']('start',_0xde69aa):_0x7d3af7['writer']['setAttribute']('start',String(_0x16c0db),_0xde69aa);}),_0x45e15b['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x2168f5,_0x75655d,_0x21b909)=>{if(!_0x21b909['consumable']['consume'](_0x75655d['item'],_0x2168f5['name']))return;const _0x79fb6a=M(_0x75655d['item'],_0x21b909['mapper']),{attributeNewValue:_0x1b2534}=_0x75655d;_0x1b2534&&'decimal'!==_0x1b2534?_0x21b909['writer']['setStyle']('list-style-type',_0x1b2534,_0x79fb6a):_0x21b909['writer']['removeStyle']('list-style-type',_0x79fb6a);});});}['_definePostfixer'](){const {editor:_0x52ee4c}=this,{model:_0xd9d94f}=_0x52ee4c,_0x19fe42=_0x52ee4c['plugins']['get'](f),_0x66a576=this['_getDefaultListStyle'](),_0x24cdd4=this['_getDefaultStartIndex']();_0xd9d94f['document']['registerPostFixer'](_0x560a99=>{const _0x4fe1cf=_0xd9d94f['document']['differ']['getChanges']();let _0x43b382=!0x1;for(const _0x469c6b of _0x4fe1cf){if('insert'!==_0x469c6b['type']||'$text'===_0x469c6b['name'])continue;const _0x1351da=_0xd9d94f['createRangeOn'](_0x469c6b['position']['nodeAfter']);for(const _0xebe315 of _0x1351da['getItems']())_0xebe315['is']('element','footnotesDefinitions')&&(!_0xebe315['hasAttribute']('footnotesListStart')&&_0xd9d94f['schema']['checkAttribute'](_0xebe315,'footnotesListStart')&&(_0x560a99['setAttribute']('footnotesListStart',_0x24cdd4,_0xebe315),_0x43b382=!0x0),!_0xebe315['hasAttribute']('footnotesListStyle')&&_0xd9d94f['schema']['checkAttribute'](_0xebe315,'footnotesListStyle')&&(_0x560a99['setAttribute']('footnotesListStyle',_0x66a576,_0xebe315),_0x43b382=!0x0));}return _0x43b382&&_0x19fe42['_updateFootnotesCounters'](_0x560a99),_0x43b382;});}['_defineFormatter'](){const {editor:_0x53de4d}=this;_0x53de4d['plugins']['get'](f)['setFootnoteFormatter'](_0xb0a2a6=>this['_formatFootnoteListValue'](_0xb0a2a6));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x51fffe,value:_0x366543,digits:_0x168018}){const _0x482ee6=_0x51fffe['getAttribute']('footnotesListStyle'),_0x595462=_0x51fffe['getAttribute']('footnotesListStart'),_0x32d8c7=Math['floor'](_0x366543)+(_0x595462??0x1)-0x1;switch(_0x482ee6){case'decimal-leading-zero':return function(_0x5a5c7d,_0x5bf8b4){return String(_0x5a5c7d)['padStart'](_0x5bf8b4,'0');}(_0x32d8c7,Math['max'](0x2,_0x168018));case'lower-alpha':case'lower-latin':return N(_0x32d8c7,!0x1);case'upper-alpha':case'upper-latin':return N(_0x32d8c7,!0x0);case'lower-roman':return X(_0x32d8c7,!0x1);case'upper-roman':return X(_0x32d8c7,!0x0);default:return String(_0x32d8c7);}}}function M(_0x51f3ab,_0x57ec14){const _0x5f3e3b=_0x57ec14['toViewElement'](_0x51f3ab);return Array['from'](_0x5f3e3b['getChildren']())['find'](_0x2ae6a6=>_0x2ae6a6['is']('element','ol')&&_0x2ae6a6['hasClass']('footnotes-list'));}function N(_0x1efb0d,_0x3b806f){let _0x2cec45='',_0x2223ed=_0x1efb0d;for(;_0x2223ed>0x0;){const _0x5c07db=(_0x2223ed-0x1)%0x1a;_0x2cec45=String['fromCharCode'](0x61+_0x5c07db)+_0x2cec45,_0x2223ed=Math['floor']((_0x2223ed-0x1)/0x1a);}return _0x3b806f?_0x2cec45['toUpperCase']():_0x2cec45;}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(_0x50555b,_0x11ff3b){let _0x2d32b9='',_0x4160b6=_0x50555b;for(const {value:_0x491d54,numeral:_0x5c58e6}of V)for(;_0x4160b6>=_0x491d54;)_0x2d32b9+=_0x5c58e6,_0x4160b6-=_0x491d54;return _0x11ff3b?_0x2d32b9:_0x2d32b9['toLowerCase']();}class J extends _0x2ac7db{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x5ebd55();['focusCycler'];constructor(_0x37670e,{styleButtonViews:_0x1834fb,styleGridAriaLabel:_0x231aee}){super(_0x37670e),(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'](_0x1834fb,_0x231aee),[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 _0x2f97fd of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x2f97fd['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 _0x5271e2=_0x48acb8=>_0x48acb8['stopPropagation']();this['keystrokes']['set']('arrowright',_0x5271e2),this['keystrokes']['set']('arrowleft',_0x5271e2),this['keystrokes']['set']('arrowup',_0x5271e2),this['keystrokes']['set']('arrowdown',_0x5271e2);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3c84ff,_0xd810fd){const _0x26c8ff=new _0x2ac7db(this['locale']);return _0x26c8ff['children']=_0x26c8ff['createCollection'](),_0x26c8ff['children']['addMany'](_0x3c84ff),_0x26c8ff['setTemplate']({'tag':'div','attributes':{'aria-label':_0xd810fd,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x26c8ff['children']}),_0x26c8ff['children']['delegate']('execute')['to'](this),_0x26c8ff['focus']=function(){for(const _0x1cab05 of this['children'])if(_0x1cab05 instanceof _0xb5f745&&_0x1cab05['isOn'])return void _0x1cab05['focus']();this['children']['first']['focus']();},_0x26c8ff['focusTracker']=new rt(),_0x26c8ff['keystrokes']=new nt(),_0x26c8ff['render'](),_0x26c8ff['keystrokes']['listenTo'](_0x26c8ff['element']),this['children']['add'](_0x26c8ff),_0x26c8ff;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x117625=this['_createStartIndexPropertyView'](),_0x3245fd=[_0x117625],_0xc786e1=new it(this['locale'],_0x3245fd);return _0xc786e1['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0xc786e1['buttonView']['bind']('isEnabled')['toMany'](_0x3245fd,'isEnabled',(..._0x4f066b)=>_0x4f066b['some'](_0xdbb942=>_0xdbb942)),_0xc786e1['buttonView']['on']('change:isEnabled',(_0xa70ebb,_0x189ca0,_0x5db419)=>{_0x5db419||(_0xc786e1['isCollapsed']=!0x0);}),this['children']['add'](_0xc786e1),[_0x117625,_0xc786e1];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x533101=new et(this['locale'],ot);return _0x533101['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x533101['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x533101['fieldView']['on']('input',()=>{const _0x102470=_0x533101['fieldView']['element'],_0x209a08=_0x102470['valueAsNumber'];Number['isNaN'](_0x209a08)?_0x533101['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x102470['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x209a08}):_0x533101['errorText']=t(_0x209a08<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x533101;}}class j extends _0x57b2ed{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x171975,_0x172028];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xdfa1b6}=this,{componentFactory:_0x8eaa09}=_0xdfa1b6['ui'];_0xdfa1b6['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x8eaa09['add']('footnotesStyle',function(_0x106304){return _0x4dc026=>{const {t:t}=_0x4dc026,_0x71f10f=_0x106304['commands']['get']('footnotesStyle'),_0x62444b=_0x2a9075(_0x4dc026),{buttonView:_0x47a420}=_0x62444b;return _0x62444b['class']='ck-footnotes-styles-dropdown',_0x62444b['bind']('isEnabled')['to'](_0x71f10f,'isEnabled'),_0x47a420['set']({'label':t('Footnotes\x20style'),'icon':_0x111132,'tooltip':!0x0}),_0x62444b['once']('change:isOpen',()=>{const _0x3df8d8=function({editor:_0x77c7d4,dropdownView:_0x3d51e8}){const {t:t}=_0x77c7d4['locale'],_0x11b1b0=t('Footnotes\x20definitions\x20styles'),_0x5176c5=function(_0x22b8b6){const t=_0x22b8b6['locale']['t'],_0x494876=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x5103e3},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x134634},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x3dda16},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0xc62943},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x280044},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x414a61}];return _0x494876['map'](function(_0x2a101d){const _0x465da0=_0x2a101d['locale'];return({label:_0x29bd4d,icon:_0xe5d1a0,tooltip:_0x29854d,style:_0x4fc223})=>{const _0xcc0525=_0x2a101d['commands']['get']('footnotesStyle'),_0x36bccc=new _0xb5f745(_0x465da0);return _0x36bccc['set']({'label':_0x29bd4d,'icon':_0xe5d1a0,'tooltip':_0x29854d}),_0x36bccc['bind']('isOn')['to'](_0xcc0525,'value',_0x32bd33=>_0x32bd33===_0x4fc223),_0x36bccc['bind']('isEnabled')['to'](_0xcc0525,'isEnabled'),_0x36bccc['on']('execute',()=>{_0x2a101d['execute']('footnotesStyle',{'value':_0x4fc223}),_0x2a101d['editing']['view']['focus']();}),_0x36bccc;};}(_0x22b8b6));}(_0x77c7d4),_0x23541d=new J(_0x77c7d4['locale'],{'styleGridAriaLabel':_0x11b1b0,'styleButtonViews':_0x5176c5}),_0x29c41c=_0x77c7d4['commands']['get']('footnotesStart');return _0x23541d['startIndexFieldView']['bind']('isEnabled')['to'](_0x29c41c),_0x23541d['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x29c41c),_0x23541d['on']('footnotesListStart',(_0x585e8c,_0x8ed5de)=>{_0x77c7d4['execute']('footnotesStart',{'value':_0x8ed5de['startIndex']});}),_0x23541d['delegate']('execute')['to'](_0x3d51e8),_0x23541d;}({'editor':_0x106304,'dropdownView':_0x62444b});_0x62444b['panelView']['children']['add'](_0x3df8d8);}),_0x62444b;};}(_0xdfa1b6));}['afterInit'](){const {editor:_0x5494a9}=this,{t:t}=_0x5494a9['locale'],_0x226f1f=_0x5494a9['plugins']['get'](_0x172028),{defaultPositions:_0x22cd26}=_0x256b86;_0x226f1f['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5494a9['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x877b1c=>{let _0x396f21=_0x877b1c['getFirstPosition']()?.['parent'];return _0x396f21?.['is']('$text')&&(_0x396f21=_0x396f21['parent']),_0x396f21?.['is']('element')?_0x396f21['findAncestor'](Q):null;},'positions':[_0x22cd26['southArrowNorth'],_0x22cd26['southArrowNorthMiddleWest'],_0x22cd26['southArrowNorthMiddleEast'],_0x22cd26['southArrowNorthWest'],_0x22cd26['southArrowNorthEast'],_0x22cd26['northArrowSouth'],_0x22cd26['northArrowSouthMiddleWest'],_0x22cd26['northArrowSouthMiddleEast'],_0x22cd26['northArrowSouthWest'],_0x22cd26['northArrowSouthEast'],_0x22cd26['viewportStickyNorth']]});}}class ft extends _0x57b2ed{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
|
|
3
|
+
"version": "47.7.0",
|
|
4
4
|
"description": "The footnotes feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"type": "module",
|
|
24
24
|
"main": "src/index.js",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@ckeditor/ckeditor5-core": "47.7.0
|
|
27
|
-
"@ckeditor/ckeditor5-ui": "47.7.0
|
|
28
|
-
"@ckeditor/ckeditor5-engine": "47.7.0
|
|
29
|
-
"@ckeditor/ckeditor5-icons": "47.7.0
|
|
30
|
-
"@ckeditor/ckeditor5-widget": "47.7.0
|
|
31
|
-
"@ckeditor/ckeditor5-clipboard": "47.7.0
|
|
32
|
-
"@ckeditor/ckeditor5-utils": "47.7.0
|
|
33
|
-
"ckeditor5": "47.7.0
|
|
26
|
+
"@ckeditor/ckeditor5-core": "47.7.0",
|
|
27
|
+
"@ckeditor/ckeditor5-ui": "47.7.0",
|
|
28
|
+
"@ckeditor/ckeditor5-engine": "47.7.0",
|
|
29
|
+
"@ckeditor/ckeditor5-icons": "47.7.0",
|
|
30
|
+
"@ckeditor/ckeditor5-widget": "47.7.0",
|
|
31
|
+
"@ckeditor/ckeditor5-clipboard": "47.7.0",
|
|
32
|
+
"@ckeditor/ckeditor5-utils": "47.7.0",
|
|
33
|
+
"ckeditor5": "47.7.0"
|
|
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 _0x3ffc0e}from'ckeditor5/src/core.js';import{isWidget as _0x112891,toWidget as _0x4714d5,toWidgetEditable as _0x46f47d}from'ckeditor5/src/widget.js';import{uid as _0x341d3a}from'ckeditor5/src/utils.js';import{PointerObserver as _0x28fdce,ClickObserver as _0x1bac55}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x55c7e6}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x2c16be}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x3ffc0e{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x55c7e6];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0xd8a72b}=this;_0xd8a72b['config']['define']('footnotes.multiBlock',!0x0),_0xd8a72b['commands']['add']('insertFootnote',new _0x2c16be(_0xd8a72b)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x1d7605){const _0x12f6c3=_0x4872e5([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]),_0x21e381=0x47a28506,_0x382a1c=0x47a50256^_0x21e381,_0xb635ba=window[_0x4872e5([0x44,0x61,0x74,0x65])][_0x4872e5([0x6e,0x6f,0x77])](),_0x144fca=_0x1d7605[_0x4872e5([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4eb92c=new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x482a27=>{_0x144fca[_0x4872e5([0x6f,0x6e,0x63,0x65])](_0x4872e5([0x72,0x65,0x61,0x64,0x79]),_0x482a27);}),_0xb16b62={[_0x4872e5([0x6b,0x74,0x79])]:_0x4872e5([0x45,0x43]),[_0x4872e5([0x75,0x73,0x65])]:_0x4872e5([0x73,0x69,0x67]),[_0x4872e5([0x63,0x72,0x76])]:_0x4872e5([0x50,0x2d,0x32,0x35,0x36]),[_0x4872e5([0x78])]:_0x4872e5([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]),[_0x4872e5([0x79])]:_0x4872e5([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]),[_0x4872e5([0x61,0x6c,0x67])]:_0x4872e5([0x45,0x53,0x32,0x35,0x36])},_0x319b59=_0x144fca[_0x4872e5([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x4872e5([0x67,0x65,0x74])](_0x4872e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0xa00ce2(){let _0x2abc94,_0x359fa2=null,_0x5beb2e=null;try{if(_0x319b59==_0x4872e5([0x47,0x50,0x4c]))return _0x4872e5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x2abc94=_0x50ccac(),!_0x2abc94)return _0x4872e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x2abc94[_0x4872e5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x5beb2e=_0x1cf17f(_0x2abc94[_0x4872e5([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x2abc94[_0x4872e5([0x6a,0x74,0x69])])),await _0x278327()?_0x13a138()?_0x4aac1f()?_0x4872e5([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x47171f()?(_0x2abc94[_0x4872e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x4872e5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x359fa2=_0x4200c8(_0x4872e5([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x274ef8()):_0x4872e5([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x4872e5([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x4872e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x4872e5([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x4aac1f(){const _0x2f65c1=[_0x4872e5([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x4872e5([0x74,0x72,0x69,0x61,0x6c])][_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x2abc94[_0x4872e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0xb635ba/0x3e8:0xe10*_0x382a1c;return _0x2abc94[_0x4872e5([0x65,0x78,0x70])]<_0x2f65c1;}function _0x13a138(){const _0x34c275=_0x2abc94[_0x4872e5([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x34c275&&(!!_0x34c275[_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4872e5([0x2a]))||!!_0x34c275[_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4872e5([0x46,0x4f,0x4f])));}function _0x47171f(){const _0x5eb2de=_0x2abc94[_0x4872e5([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x5eb2de||0x0==_0x5eb2de[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0xa19094}=new URL(window[_0x4872e5([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x5eb2de[_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xa19094))return!0x0;const _0x55d773=_0xa19094[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])](_0x4872e5([0x2e]));return _0x5eb2de[_0x4872e5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4b62a7=>_0x4b62a7[_0x4872e5([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x4872e5([0x2a])))[_0x4872e5([0x6d,0x61,0x70])](_0x20dc67=>_0x20dc67[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])](_0x4872e5([0x2e])))[_0x4872e5([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2607fc=>_0x2607fc[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x55d773[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4872e5([0x6d,0x61,0x70])](_0x3a4137=>Array(_0x55d773[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x3a4137[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x4872e5([0x66,0x69,0x6c,0x6c])](_0x3a4137[0x0]===_0x4872e5([0x2a])?_0x4872e5([0x2a]):'')[_0x4872e5([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x3a4137))[_0x4872e5([0x73,0x6f,0x6d,0x65])](_0x2976b6=>_0x55d773[_0x4872e5([0x65,0x76,0x65,0x72,0x79])]((_0x532e0e,_0x5f0ab9)=>_0x2976b6[_0x5f0ab9]===_0x532e0e||_0x2976b6[_0x5f0ab9]===_0x4872e5([0x2a])));}function _0x274ef8(){return _0x359fa2&&_0x5beb2e?new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x46e559,_0x2d921e)=>{_0x359fa2[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x46e559,_0x2d921e),_0x5beb2e[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x2bae9c=>{_0x2bae9c!=_0x4872e5([0x56,0x61,0x6c,0x69,0x64])&&_0x46e559(_0x2bae9c);},_0x2d921e);}):_0x359fa2||_0x5beb2e||_0x4872e5([0x56,0x61,0x6c,0x69,0x64]);}}function _0x1cf17f(_0x425fb6,_0x47e9e2){return new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2968db=>{if(_0x1a0460())return _0x2968db(_0x4872e5([0x56,0x61,0x6c,0x69,0x64]));_0x4b6b95(),_0x144fca[_0x4872e5([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x4872e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x52b690=!0x1;const _0x2d5767=_0x341d3a();function _0xbeda9a(_0x509d1e){return!!_0x509d1e&&(typeof _0x509d1e===_0x4872e5([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x509d1e===_0x4872e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x509d1e[_0x4872e5([0x74,0x68,0x65,0x6e])]===_0x4872e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x509d1e[_0x4872e5([0x63,0x61,0x74,0x63,0x68])]===_0x4872e5([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x30c058(_0x959aba){_0x23733a(_0x959aba)[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x119a68=>{if(!_0x119a68||_0x119a68[_0x4872e5([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x4872e5([0x6f,0x6b]))return _0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x34ebc7(_0x4abb84(_0x2d5767+_0x47e9e2))!=_0x119a68[_0x4872e5([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x4872e5([0x56,0x61,0x6c,0x69,0x64]);})[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x5633ad=>(_0x6fb770(),_0x5633ad),()=>{const _0x436494=_0x39e891();return null==_0x436494?(_0x6fb770(),_0x4872e5([0x56,0x61,0x6c,0x69,0x64])):_0x4872e5(_0xb635ba-_0x436494>(0x63ae0106^_0x21e381)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x2968db)[_0x4872e5([0x63,0x61,0x74,0x63,0x68])](()=>{_0x2968db(_0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x5222e5=0x47946b86^_0x21e381;function _0x6fb770(){const _0x325c06=_0x4872e5([0x6c,0x6c,0x63,0x74,0x2d])+_0x34ebc7(_0x4abb84(_0x425fb6)),_0x472154=_0x4818b6(_0x34ebc7(window[_0x4872e5([0x4d,0x61,0x74,0x68])][_0x4872e5([0x63,0x65,0x69,0x6c])](_0xb635ba/_0x5222e5)));window[_0x4872e5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4872e5([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x325c06,_0x472154);}function _0x39e891(){const _0x5803ac=_0x4872e5([0x6c,0x6c,0x63,0x74,0x2d])+_0x34ebc7(_0x4abb84(_0x425fb6)),_0xe48b96=window[_0x4872e5([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x4872e5([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x5803ac);return _0xe48b96?window[_0x4872e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4818b6(_0xe48b96),0x10)*_0x5222e5:null;}function _0x23733a(_0x39ac7e){return new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x443710,_0x3d3c46)=>{_0x39ac7e[_0x4872e5([0x74,0x68,0x65,0x6e])](_0x443710,_0x3d3c46),window[_0x4872e5([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3d3c46,0x47a351c6^_0x21e381);});}}_0x144fca[_0x4872e5([0x6f,0x6e])](_0x4872e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x42c2ea,_0x4ddf55)=>{if(_0x4ddf55[0x0]!=_0x425fb6)return _0x2968db(_0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x4ddf55[0x1]={..._0x4ddf55[0x1],[_0x4872e5([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x2d5767};},{[_0x4872e5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4872e5([0x68,0x69,0x67,0x68])}),_0x144fca[_0x4872e5([0x6f,0x6e])](_0x4872e5([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x585886=>{_0xbeda9a(_0x585886[_0x4872e5([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x52b690=!0x0,_0x30c058(_0x585886[_0x4872e5([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x4872e5([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x4872e5([0x6c,0x6f,0x77])}),_0x4eb92c[_0x4872e5([0x74,0x68,0x65,0x6e])](()=>{_0x52b690||_0x2968db(_0x4872e5([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x1a0460(){return _0x144fca[_0x4872e5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4872e5([0x76,0x69,0x65,0x77])][_0x4872e5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x4872e5([0x61,0x75,0x74,0x6f]);}function _0x4b6b95(){_0x144fca[_0x4872e5([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x4872e5([0x76,0x69,0x65,0x77])][_0x4872e5([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x4872e5([0x61,0x75,0x74,0x6f]);}}function _0x4200c8(_0x3e4c5a){const _0xa494e4=[new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x30077f=>setTimeout(_0x30077f,0x47abbbca^_0x21e381)),_0x4eb92c[_0x4872e5([0x74,0x68,0x65,0x6e])](()=>new window[(_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2cd7e1=>{let _0x380266=0x0;_0x144fca[_0x4872e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4872e5([0x6f,0x6e])](_0x4872e5([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x5db48d,_0x3d22f6)=>{_0x3d22f6[0x0][_0x4872e5([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x380266++,_0x380266==(0x47a280ee^_0x21e381)&&(_0x2cd7e1(),_0x5db48d[_0x4872e5([0x6f,0x66,0x66])]());});}))];return window[_0x4872e5([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x4872e5([0x72,0x61,0x63,0x65])](_0xa494e4)[_0x4872e5([0x74,0x68,0x65,0x6e])](()=>_0x3e4c5a);}async function _0x5ee6c7(){await _0x4eb92c,_0x144fca[_0x4872e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4872e5([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xdb9274,_0x144fca[_0x4872e5([0x6d,0x6f,0x64,0x65,0x6c])][_0x4872e5([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xdb9274,_0x144fca[_0x4872e5([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x4872e5([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x26f038(_0x521196){const _0x5844ac=_0x3e9c66();_0x144fca[_0x5844ac]=_0x4872e5([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x521196,_0x521196!=_0x4872e5([0x56,0x61,0x6c,0x69,0x64])&&_0x5ee6c7();}function _0x3e9c66(){const _0x2d0689=window[_0x4872e5([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x4872e5([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x4872e5([0x6e,0x6f,0x77])]())[_0x4872e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x4872e5([0x2e]),'');let _0x4b9257=_0x4872e5([0x75]);for(let _0x1dc538=0x0;_0x1dc538<_0x2d0689[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x1dc538+=0x2){let _0x39a813=window[_0x4872e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x2d0689[_0x4872e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1dc538,_0x1dc538+0x2));_0x39a813>=_0x12f6c3[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x39a813-=_0x12f6c3[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x4b9257+=_0x12f6c3[_0x39a813];}return _0x4b9257;}function _0x50ccac(){const _0x3a6e35=_0x319b59[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])](_0x4872e5([0x2e]));if(0x3!=_0x3a6e35[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x40216f(_0x3a6e35[0x1]);function _0x40216f(_0x3171f4){const _0x588fa3=_0x26f7c1(_0x3171f4);return _0x588fa3&&_0x36071d()?_0x588fa3:null;function _0x36071d(){const _0x63d302=_0x588fa3[_0x4872e5([0x6a,0x74,0x69])],_0x49787f=window[_0x4872e5([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x63d302[_0x4872e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x63d302[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3afdc4={..._0x588fa3,[_0x4872e5([0x6a,0x74,0x69])]:_0x63d302[_0x4872e5([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x63d302[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3afdc4[_0x4872e5([0x76,0x63])],_0x4abb84(_0x3afdc4)==_0x49787f;}}}async function _0x278327(){let _0x1efe0f=!0x0;try{const _0x2cbe59=_0x319b59[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])](_0x4872e5([0x2e])),[_0x40bdd1,_0x35a60f,_0x195781]=_0x2cbe59;return _0x144eca(_0x40bdd1),await _0x2bdc8b(_0x40bdd1,_0x35a60f,_0x195781),_0x1efe0f;}catch{return!0x1;}function _0x144eca(_0x5470ae){const _0x147473=_0x26f7c1(_0x5470ae);_0x147473&&_0x147473[_0x4872e5([0x61,0x6c,0x67])]==_0x4872e5([0x45,0x53,0x32,0x35,0x36])||(_0x1efe0f=!0x1);}async function _0x2bdc8b(_0xa005cf,_0x5e0710,_0x57e562){const _0x36f4ab=window[_0x4872e5([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x4872e5([0x66,0x72,0x6f,0x6d])](_0x3705d7(_0x57e562),_0x1d0b1f=>_0x1d0b1f[_0x4872e5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x3bb4b4=new window[(_0x4872e5([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x4872e5([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0xa005cf+_0x4872e5([0x2e])+_0x5e0710),_0x5d1bd1=window[_0x4872e5([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x4872e5([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x5d1bd1)return;const _0x354ca2=await _0x5d1bd1[_0x4872e5([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x4872e5([0x6a,0x77,0x6b]),_0xb16b62,{[_0x4872e5([0x6e,0x61,0x6d,0x65])]:_0x4872e5([0x45,0x43,0x44,0x53,0x41]),[_0x4872e5([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x4872e5([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x4872e5([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x5d1bd1[_0x4872e5([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x4872e5([0x6e,0x61,0x6d,0x65])]:_0x4872e5([0x45,0x43,0x44,0x53,0x41]),[_0x4872e5([0x68,0x61,0x73,0x68])]:{[_0x4872e5([0x6e,0x61,0x6d,0x65])]:_0x4872e5([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x354ca2,_0x36f4ab,_0x3bb4b4)||(_0x1efe0f=!0x1);}}function _0x26f7c1(_0x3922c8){return _0x3922c8[_0x4872e5([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x4872e5([0x65,0x79]))?JSON[_0x4872e5([0x70,0x61,0x72,0x73,0x65])](_0x3705d7(_0x3922c8)):null;}function _0x3705d7(_0x6d1fdc){return window[_0x4872e5([0x61,0x74,0x6f,0x62])](_0x6d1fdc[_0x4872e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x4872e5([0x2b]))[_0x4872e5([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x4872e5([0x2f])));}function _0x4abb84(_0x9a7198){let _0x5ef588=0x1505;function _0x3de934(_0x27e450){for(let _0x583e9e=0x0;_0x583e9e<_0x27e450[_0x4872e5([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x583e9e++){const _0x128d2d=_0x27e450[_0x4872e5([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x583e9e);_0x5ef588=(_0x5ef588<<0x5)+_0x5ef588+_0x128d2d,_0x5ef588&=_0x5ef588;}}function _0x2a1de8(_0x1c0569){Array[_0x4872e5([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x1c0569)?_0x1c0569[_0x4872e5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2a1de8):_0x1c0569&&typeof _0x1c0569==_0x4872e5([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x4872e5([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x1c0569)[_0x4872e5([0x73,0x6f,0x72,0x74])]()[_0x4872e5([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x5c5f95,_0x16bec4])=>{_0x3de934(_0x5c5f95),_0x2a1de8(_0x16bec4);}):_0x3de934(window[_0x4872e5([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x1c0569));}return _0x2a1de8(_0x9a7198),_0x5ef588>>>0x0;}function _0x34ebc7(_0x576e55){return _0x576e55[_0x4872e5([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x4872e5([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x4872e5([0x30]));}function _0x4818b6(_0xfa8fd4){return _0xfa8fd4[_0x4872e5([0x73,0x70,0x6c,0x69,0x74])]('')[_0x4872e5([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x4872e5([0x6a,0x6f,0x69,0x6e])]('');}function _0xdb9274(){}function _0x4872e5(_0x1ae4b0){return _0x1ae4b0['map'](_0x4d576d=>String['fromCharCode'](_0x4d576d))['join']('');}_0x26f038(await _0xa00ce2());}(this);}['_moveSelectionToFootnoteDefinition'](_0x87ec38){const {plugins:_0x4fa518,editing:_0x5b4502,model:_0x2d7fb2}=this['editor'],_0x393f91=_0x4fa518['get'](_0x55c7e6)['getFootnote'](_0x87ec38);return!!_0x393f91&&(_0x2d7fb2['change'](_0x172ac3=>{_0x172ac3['setSelection'](_0x172ac3['createPositionAt'](_0x393f91['definition'],'end'));}),_0x5b4502['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3b01a6){const {plugins:_0xd0a470,editing:_0x4d8251,model:_0x299ffd}=this['editor'],_0x1c7c08=_0xd0a470['get'](_0x55c7e6)['getFootnote'](_0x3b01a6);return!!_0x1c7c08&&(_0x299ffd['change'](_0x397685=>{_0x397685['setSelection'](_0x1c7c08['reference'],'on');}),_0x4d8251['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x1e1ba3}=this['editor']['model'],_0x3b59a8=this['editor']['config']['get']('footnotes.multiBlock');_0x1e1ba3['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x1e1ba3['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x1e1ba3['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3b59a8?_0x1e1ba3['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x1e1ba3['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x1e1ba3['addChildCheck'](_0x4cc873=>{for(const _0x14ad57 of _0x4cc873)if('footnoteDefinition'===_0x14ad57['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x26d2aa}=this,{conversion:_0x52848f,editing:_0x212622}=_0x26d2aa,{t:t}=_0x26d2aa['locale'];_0x52848f['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x3766b1,{writer:_0x430dd3,consumable:_0x31c43d})=>{const _0x2f655b=_0x3766b1['getChild'](0x0);if(!_0x2f655b||!_0x2f655b['is']('element','a'))return null;const _0x54de87=_0x2f655b['getAttribute']('href')||'';if(!_0x54de87['startsWith']('#'))return null;const _0x214f86=_0x54de87['replace'](/^#/,'');if(!_0x214f86)return null;_0x31c43d['consume'](_0x2f655b,{'name':!0x0,'attributes':['href']});for(const {item:_0x4ebd3e}of _0x212622['view']['createRangeIn'](_0x2f655b))_0x4ebd3e['is']('$textProxy')?_0x31c43d['consume'](_0x4ebd3e['textNode'],{'name':!0x0}):_0x4ebd3e['is']('element')&&_0x31c43d['consume'](_0x4ebd3e,{'name':!0x0});return _0x430dd3['createElement']('footnoteRef',{'footnoteId':_0x214f86});}}),_0x52848f['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5c71a6,{writer:_0x49b18d})=>b(_0x5c71a6,_0x49b18d)}),_0x52848f['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x5134bc,{writer:_0x3f7b73})=>{const _0x16ff83=_0x5134bc['getAttribute']('footnoteCounter');return _0x4714d5(b(_0x5134bc,_0x3f7b73),_0x3f7b73,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x16ff83)});}});}['_defineDefinitionsConverters'](){const {editor:_0x1b81ab}=this,{t:t}=_0x1b81ab['locale'],{conversion:_0xeec260}=_0x1b81ab;_0xeec260['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xeec260['for']('upcast')['add'](_0x4ece0a=>{_0x4ece0a['on']('element:ol',(_0x5a5d06,_0x45e789,_0x2857af)=>{const _0x37726c=_0x45e789['viewItem'];if(!_0x37726c['hasClass']('footnotes-list')||!_0x45e789['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x2857af['consumable']['consume'](_0x37726c,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0xb2cfa0,modelCursor:_0x11332e}=_0x2857af['convertChildren'](_0x45e789['viewItem'],_0x45e789['modelCursor']);_0x45e789['modelRange']=_0xb2cfa0,_0x45e789['modelCursor']=_0x11332e;}),_0x4ece0a['on']('element:hr',(_0x16aad8,_0xe3ba47,_0xe51ec4)=>{const _0x47ab52=_0xe3ba47['viewItem'];_0x47ab52['hasClass']('footnotes-divider')&&_0xe3ba47['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0xe51ec4['consumable']['consume'](_0x47ab52,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xeec260['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x498425,{writer:_0x1c1d6f})=>D(_0x1c1d6f)}),_0xeec260['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4ceafa,{writer:_0x2e039b})=>{const _0x5f4db9=D(_0x2e039b,{'data-footnotes-list-label':t('Footnotes')}),_0x3f23bb=_0x4714d5(_0x5f4db9,_0x2e039b,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x2e039b['setCustomProperty']('footnotesDefinitions',!0x0,_0x3f23bb),_0x3f23bb;}});}['_defineDefinitionConverters'](){const {editor:_0x52b2f8}=this,{conversion:_0x3c7677,locale:_0x88f0eb}=_0x52b2f8,_0x3fc7ce=_0x52b2f8['config']['get']('footnotes.multiBlock');_0x3c7677['for']('upcast')['add'](_0x5c718e=>{_0x5c718e['on']('element:li',(_0x881aae,_0x4fab3a,_0x10ba58)=>{const _0x380f8e=_0x4fab3a['viewItem'];if(!_0x380f8e['hasClass']('footnote-definition')||!_0x380f8e['getAttribute']('id'))return;const _0x4a2a5c=_0x380f8e['parent'];if(!_0x4a2a5c['is']('element','ol')||!_0x4a2a5c['hasClass']('footnotes-list'))return;if(!_0x10ba58['consumable']['test'](_0x380f8e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x46261a=_0x10ba58['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x380f8e['getAttribute']('id')});if(!_0x10ba58['safeInsert'](_0x46261a,_0x4fab3a['modelCursor']))return;_0x10ba58['consumable']['consume'](_0x380f8e,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2f7cd2=Array['from'](_0x380f8e['getChildren']())['find'](_0x995016=>_0x995016['is']('element')&&_0x995016['hasClass']('footnote-content'));for(const _0x550594 of _0x380f8e['getChildren']())_0x550594['is']('element')&&(_0x10ba58['consumable']['consume'](_0x550594,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x10ba58['consumable']['consume'](_0x550594,{'name':!0x0,'classes':'footnote-content'}));if(_0x2f7cd2){if(_0x3fc7ce)_0x10ba58['convertChildren'](_0x2f7cd2,_0x46261a);else{const _0x572c77=_0x10ba58['writer']['createElement']('footnoteInlineContent');_0x10ba58['writer']['insert'](_0x572c77,_0x46261a),_0x10ba58['convertChildren'](_0x2f7cd2,_0x572c77);}}_0x10ba58['updateConversionResult'](_0x46261a,_0x4fab3a);});}),_0x3c7677['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x1fc19d,{writer:_0x2c97d8})=>y(_0x1fc19d,_0x2c97d8,_0x88f0eb,{'dataPipeline':!0x0})}),_0x3c7677['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x4dc6c0,{writer:_0xf7c02})=>y(_0x4dc6c0,_0xf7c02,_0x88f0eb)});}['_defineBogusParagraphConverters'](){const {editor:_0x44f894}=this,{conversion:_0x3ae317}=_0x44f894;_0x44f894['config']['get']('footnotes.multiBlock')?(_0x3ae317['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x3ae317['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x44f894['model']['document'],'change:data',()=>{!function(_0xaf7172,_0x439b41){const _0x13946a=_0xaf7172['document']['differ'],_0x2f3aff=new Set();for(const _0x2e6d31 of _0x13946a['getChanges']()){const _0x198f9e='attribute'==_0x2e6d31['type']?_0x2e6d31['range']['start']['parent']:_0x2e6d31['position']['parent'];_0x198f9e['is']('element','footnoteDefinition')&&_0x2f3aff['add'](_0x198f9e);}for(const _0xa7543d of _0x2f3aff['values']()){const _0x5edc2a=Array['from'](_0xa7543d['getChildren']())['filter'](_0x36c683=>v(_0x36c683,_0x439b41['mapper']));for(const _0x1fda24 of _0x5edc2a)_0x439b41['reconvertItem'](_0x1fda24);}}(_0x44f894['model'],_0x44f894['editing']);})):(_0x3ae317['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x3ae317['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5f52ca,{writer:_0x340df6})=>{const _0x27df06=_0x340df6['createContainerElement']('span');return _0x340df6['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x27df06),_0x27df06;}}));}['_defineKeyboardHandlers'](){const {editor:_0x8ed6a3}=this,{editing:_0x38f3fd,t:t}=_0x8ed6a3,_0x127ff4=_0x8ed6a3['model']['document']['selection'];_0x8ed6a3['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x8ed6a3['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x38f3fd['view']['document'],'enter',(_0x357acc,_0x23929d)=>{const _0x1b66b8=function(_0x50cfaf){const _0x4f5c03=_0x50cfaf['getSelectedElement']();if(_0x4f5c03?.['is']('element','footnoteRef'))return _0x4f5c03;return null;}(_0x127ff4);if(_0x1b66b8){const _0x14aaec=_0x1b66b8['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x14aaec),_0x23929d['preventDefault'](),_0x357acc['stop']();}},{'context':_0x112891});}['_defineClickHandlers'](){const {editor:_0x201fcf}=this,{editing:_0x384e73}=_0x201fcf;_0x201fcf['editing']['view']['addObserver'](_0x28fdce),_0x201fcf['editing']['view']['addObserver'](_0x1bac55);let _0x3aadb7=!0x1;this['listenTo'](_0x384e73['view']['document'],'pointerdown',(_0x316792,_0x3eac37)=>{const {target:_0x51a077}=_0x3eac37,_0x3ef54b=_0x384e73['view']['document']['selection'];_0x3aadb7=!!(_0x51a077?.['is']('element','a')&&_0x51a077['parent']?.['is']('element','sup')&&_0x51a077['parent']['hasClass']('footnote'))&&_0x3ef54b['getSelectedElement']()===_0x51a077['parent'];},{'priority':'high'}),this['listenTo'](_0x384e73['view']['document'],'click',(_0x2560fe,_0x42bb40)=>{const {target:_0x1cc000}=_0x42bb40;if(!_0x1cc000?.['is']('element','a'))return;if(_0x1cc000['parent']?.['is']('element','sup')&&_0x1cc000['parent']['hasClass']('footnote')&&!_0x3aadb7)return void _0x42bb40['preventDefault']();let _0x23b5f0=_0x1cc000['getAttribute']('href');if(!_0x23b5f0?.['startsWith']('#'))return;_0x23b5f0=_0x23b5f0['slice'](0x1);let _0x14d816=!0x1;(_0x23b5f0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x23b5f0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x23b5f0))&&(_0x14d816=!0x0),_0x14d816&&(_0x42bb40['preventDefault'](),_0x2560fe['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x1a411c}={}){return(_0x16aaee,{writer:_0x3173d4})=>{if(!g(_0x16aaee))return null;if(!_0x1a411c)return _0x3173d4['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x34566c=_0x3173d4['createContainerElement']('p');return _0x3173d4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x34566c),_0x34566c;};}function g(_0x379f9c){const {parent:_0x20b79b}=_0x379f9c;if(!_0x20b79b?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x20b79b['childCount'])return!0x1;for(const _0x23cc4f of _0x379f9c['getAttributeKeys']())if(!_0x23cc4f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x23cc4f)return!0x1;return!0x0;}function v(_0x157007,_0x437f94){if(!_0x157007['is']('element','paragraph'))return!0x1;const _0x347533=_0x437f94['toViewElement'](_0x157007);return!!_0x347533&&g(_0x157007)!==_0x347533['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x230330){return _0x112891(_0x230330)&&_0x230330['is']('containerElement')&&!!_0x230330['getCustomProperty']('footnotesDefinitions');}function D(_0x20921a,_0x3d49c4={}){const _0x3c8c2a=_0x20921a['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x31646d=_0x20921a['createContainerElement']('ol',{'class':'footnotes-list'},_0x20921a['createSlot']());return _0x20921a['createContainerElement']('div',{'class':'footnotes',..._0x3d49c4},[_0x3c8c2a,_0x31646d]);}function b(_0xc63f02,_0xcd5454){const _0x21b9ba=_0xc63f02['getAttribute']('footnoteId'),_0x264ddc=_0xc63f02['getAttribute']('footnoteCounter'),_0x2f1d8d=_0xcd5454['createUIElement']('a',{'href':'#'+_0x21b9ba},function(_0x63e3b6){const _0x209648=this['toDomElement'](_0x63e3b6);return _0x209648['textContent']=_0x264ddc,_0x209648;}),_0xb16a6=_0xcd5454['createContainerElement']('sup',{'id':'ref-'+_0x21b9ba,'class':'footnote'},[_0x2f1d8d]);return _0xb16a6['getFillerOffset']=()=>null,_0xb16a6;}function y(_0x1f03f5,_0x18f805,_0x59fcd5,{dataPipeline:_0x331a99}={}){const {t:t}=_0x59fcd5,_0xc89ce3=_0x1f03f5['getAttribute']('footnoteId'),_0x485fc9=_0x18f805['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0xc89ce3},function(_0x49b320){const _0x51c9a=this['toDomElement'](_0x49b320);return _0x51c9a['innerText']='^',_0x51c9a;}),_0x48a07d=_0x331a99?_0x18f805['createContainerElement']('div',{'class':'footnote-content'}):_0x46f47d(_0x18f805['createEditableElement']('div',{'class':'footnote-content'}),_0x18f805,{'label':t('Footnote\x20content.')});return _0x18f805['insert'](_0x18f805['createPositionAt'](_0x48a07d,0x0),_0x18f805['createSlot']()),_0x18f805['createContainerElement']('li',{'class':'footnote-definition','id':_0xc89ce3},[_0x485fc9,_0x48a07d]);}
|
|
23
|
+
import{Plugin as _0x51aea1}from'ckeditor5/src/core.js';import{isWidget as _0x56f56d,toWidget as _0x33c872,toWidgetEditable as _0x1a7f21}from'ckeditor5/src/widget.js';import{uid as _0x30a020}from'ckeditor5/src/utils.js';import{PointerObserver as _0x330e4d,ClickObserver as _0x122c8c}from'ckeditor5/src/engine.js';import{FootnotesTracker as _0x30e2b1}from'./footnotestracker.js';import{InsertFootnoteCommand as _0x5eb7a6}from'./commands/insertfootnotecommand.js';export class FootnotesEditing extends _0x51aea1{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[_0x30e2b1];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x550fa6}=this;_0x550fa6['config']['define']('footnotes.multiBlock',!0x0),_0x550fa6['commands']['add']('insertFootnote',new _0x5eb7a6(_0x550fa6)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x8006f3){const _0x25e487=_0x1d44de([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]),_0x1eac5b=0x47a28506,_0x4e02b4=0x47a5026e^_0x1eac5b,_0x10dba6=window[_0x1d44de([0x44,0x61,0x74,0x65])][_0x1d44de([0x6e,0x6f,0x77])](),_0x4a0a08=_0x8006f3[_0x1d44de([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x4a612a=new window[(_0x1d44de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x2fce0e=>{_0x4a0a08[_0x1d44de([0x6f,0x6e,0x63,0x65])](_0x1d44de([0x72,0x65,0x61,0x64,0x79]),_0x2fce0e);}),_0x2720ac={[_0x1d44de([0x6b,0x74,0x79])]:_0x1d44de([0x45,0x43]),[_0x1d44de([0x75,0x73,0x65])]:_0x1d44de([0x73,0x69,0x67]),[_0x1d44de([0x63,0x72,0x76])]:_0x1d44de([0x50,0x2d,0x32,0x35,0x36]),[_0x1d44de([0x78])]:_0x1d44de([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]),[_0x1d44de([0x79])]:_0x1d44de([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]),[_0x1d44de([0x61,0x6c,0x67])]:_0x1d44de([0x45,0x53,0x32,0x35,0x36])},_0x3abe1b=_0x4a0a08[_0x1d44de([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x1d44de([0x67,0x65,0x74])](_0x1d44de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x53507d(){let _0x56f761,_0x46ae92=null,_0x449d51=null;try{if(_0x3abe1b==_0x1d44de([0x47,0x50,0x4c]))return _0x1d44de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x56f761=_0x4a4f41(),!_0x56f761)return _0x1d44de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x56f761[_0x1d44de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x449d51=_0x5ddaae(_0x56f761[_0x1d44de([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x56f761[_0x1d44de([0x6a,0x74,0x69])])),await _0x234961()?_0x3891fb()?_0x343836()?_0x1d44de([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x10ddd1()?(_0x56f761[_0x1d44de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x1d44de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x46ae92=_0x547ff2(_0x1d44de([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0xd45198()):_0x1d44de([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x1d44de([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x1d44de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x1d44de([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x343836(){const _0x2febf5=[_0x1d44de([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x1d44de([0x74,0x72,0x69,0x61,0x6c])][_0x1d44de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x56f761[_0x1d44de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x10dba6/0x3e8:0xe10*_0x4e02b4;return _0x56f761[_0x1d44de([0x65,0x78,0x70])]<_0x2febf5;}function _0x3891fb(){const _0x288cdd=_0x56f761[_0x1d44de([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x288cdd&&(!!_0x288cdd[_0x1d44de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d44de([0x2a]))||!!_0x288cdd[_0x1d44de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d44de([0x46,0x4f,0x4f])));}function _0x10ddd1(){const _0x1b2c38=_0x56f761[_0x1d44de([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1b2c38||0x0==_0x1b2c38[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x134b2d}=new URL(window[_0x1d44de([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1b2c38[_0x1d44de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x134b2d))return!0x0;const _0x446e16=_0x134b2d[_0x1d44de([0x73,0x70,0x6c,0x69,0x74])](_0x1d44de([0x2e]));return _0x1b2c38[_0x1d44de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x481ec2=>_0x481ec2[_0x1d44de([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d44de([0x2a])))[_0x1d44de([0x6d,0x61,0x70])](_0x3fdc0d=>_0x3fdc0d[_0x1d44de([0x73,0x70,0x6c,0x69,0x74])](_0x1d44de([0x2e])))[_0x1d44de([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x2fb44f=>_0x2fb44f[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x446e16[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d44de([0x6d,0x61,0x70])](_0x1e7866=>Array(_0x446e16[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1e7866[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x1d44de([0x66,0x69,0x6c,0x6c])](_0x1e7866[0x0]===_0x1d44de([0x2a])?_0x1d44de([0x2a]):'')[_0x1d44de([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1e7866))[_0x1d44de([0x73,0x6f,0x6d,0x65])](_0x3cefe4=>_0x446e16[_0x1d44de([0x65,0x76,0x65,0x72,0x79])]((_0x93ca7e,_0x208a66)=>_0x3cefe4[_0x208a66]===_0x93ca7e||_0x3cefe4[_0x208a66]===_0x1d44de([0x2a])));}function _0xd45198(){return _0x46ae92&&_0x449d51?new window[(_0x1d44de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x297644,_0xfc760a)=>{_0x46ae92[_0x1d44de([0x74,0x68,0x65,0x6e])](_0x297644,_0xfc760a),_0x449d51[_0x1d44de([0x74,0x68,0x65,0x6e])](_0x3598f2=>{_0x3598f2!=_0x1d44de([0x56,0x61,0x6c,0x69,0x64])&&_0x297644(_0x3598f2);},_0xfc760a);}):_0x46ae92||_0x449d51||_0x1d44de([0x56,0x61,0x6c,0x69,0x64]);}}function _0x5ddaae(_0x689110,_0x16974b){return new window[(_0x1d44de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d8a4c=>{if(_0x43bf13())return _0x4d8a4c(_0x1d44de([0x56,0x61,0x6c,0x69,0x64]));_0x5a89d1(),_0x4a0a08[_0x1d44de([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x1d44de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x17db09=!0x1;const _0x5beeba=_0x30a020();function _0x590612(_0x417c2c){return!!_0x417c2c&&(typeof _0x417c2c===_0x1d44de([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x417c2c===_0x1d44de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x417c2c[_0x1d44de([0x74,0x68,0x65,0x6e])]===_0x1d44de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x417c2c[_0x1d44de([0x63,0x61,0x74,0x63,0x68])]===_0x1d44de([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x212b7c(_0x38c9da){_0x14ce1a(_0x38c9da)[_0x1d44de([0x74,0x68,0x65,0x6e])](_0x29a314=>{if(!_0x29a314||_0x29a314[_0x1d44de([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x1d44de([0x6f,0x6b]))return _0x1d44de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x35e23d(_0x59cae7(_0x5beeba+_0x16974b))!=_0x29a314[_0x1d44de([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x1d44de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x1d44de([0x56,0x61,0x6c,0x69,0x64]);})[_0x1d44de([0x74,0x68,0x65,0x6e])](_0x47cd2a=>(_0x13b405(),_0x47cd2a),()=>{const _0x2c2e3c=_0x3818c2();return null==_0x2c2e3c?(_0x13b405(),_0x1d44de([0x56,0x61,0x6c,0x69,0x64])):_0x1d44de(_0x10dba6-_0x2c2e3c>(0x63ae0106^_0x1eac5b)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x1d44de([0x74,0x68,0x65,0x6e])](_0x4d8a4c)[_0x1d44de([0x63,0x61,0x74,0x63,0x68])](()=>{_0x4d8a4c(_0x1d44de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x462759=0x47946b86^_0x1eac5b;function _0x13b405(){const _0xc78aa9=_0x1d44de([0x6c,0x6c,0x63,0x74,0x2d])+_0x35e23d(_0x59cae7(_0x689110)),_0x5a9bce=_0x4948c8(_0x35e23d(window[_0x1d44de([0x4d,0x61,0x74,0x68])][_0x1d44de([0x63,0x65,0x69,0x6c])](_0x10dba6/_0x462759)));window[_0x1d44de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d44de([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc78aa9,_0x5a9bce);}function _0x3818c2(){const _0x4df111=_0x1d44de([0x6c,0x6c,0x63,0x74,0x2d])+_0x35e23d(_0x59cae7(_0x689110)),_0x11d877=window[_0x1d44de([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x1d44de([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x4df111);return _0x11d877?window[_0x1d44de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x4948c8(_0x11d877),0x10)*_0x462759:null;}function _0x14ce1a(_0x59a869){return new window[(_0x1d44de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x4ea0bf,_0x3b9f23)=>{_0x59a869[_0x1d44de([0x74,0x68,0x65,0x6e])](_0x4ea0bf,_0x3b9f23),window[_0x1d44de([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x3b9f23,0x47a351c6^_0x1eac5b);});}}_0x4a0a08[_0x1d44de([0x6f,0x6e])](_0x1d44de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x45af03,_0x1a7d7a)=>{if(_0x1a7d7a[0x0]!=_0x689110)return _0x4d8a4c(_0x1d44de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x1a7d7a[0x1]={..._0x1a7d7a[0x1],[_0x1d44de([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x5beeba};},{[_0x1d44de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d44de([0x68,0x69,0x67,0x68])}),_0x4a0a08[_0x1d44de([0x6f,0x6e])](_0x1d44de([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5abaaf=>{_0x590612(_0x5abaaf[_0x1d44de([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x17db09=!0x0,_0x212b7c(_0x5abaaf[_0x1d44de([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x1d44de([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x1d44de([0x6c,0x6f,0x77])}),_0x4a612a[_0x1d44de([0x74,0x68,0x65,0x6e])](()=>{_0x17db09||_0x4d8a4c(_0x1d44de([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x43bf13(){return _0x4a0a08[_0x1d44de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d44de([0x76,0x69,0x65,0x77])][_0x1d44de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x1d44de([0x61,0x75,0x74,0x6f]);}function _0x5a89d1(){_0x4a0a08[_0x1d44de([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x1d44de([0x76,0x69,0x65,0x77])][_0x1d44de([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x1d44de([0x61,0x75,0x74,0x6f]);}}function _0x547ff2(_0x463e4b){const _0x414e2d=[new window[(_0x1d44de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4c796a=>setTimeout(_0x4c796a,0x47abbbca^_0x1eac5b)),_0x4a612a[_0x1d44de([0x74,0x68,0x65,0x6e])](()=>new window[(_0x1d44de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x1e1389=>{let _0xbe1ecd=0x0;_0x4a0a08[_0x1d44de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d44de([0x6f,0x6e])](_0x1d44de([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x66865e,_0x402c3f)=>{_0x402c3f[0x0][_0x1d44de([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0xbe1ecd++,_0xbe1ecd==(0x47a280ee^_0x1eac5b)&&(_0x1e1389(),_0x66865e[_0x1d44de([0x6f,0x66,0x66])]());});}))];return window[_0x1d44de([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x1d44de([0x72,0x61,0x63,0x65])](_0x414e2d)[_0x1d44de([0x74,0x68,0x65,0x6e])](()=>_0x463e4b);}async function _0x54cf82(){await _0x4a612a,_0x4a0a08[_0x1d44de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d44de([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x42abe8,_0x4a0a08[_0x1d44de([0x6d,0x6f,0x64,0x65,0x6c])][_0x1d44de([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x42abe8,_0x4a0a08[_0x1d44de([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x1d44de([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1e3cfd(_0xbe30df){const _0x234cee=_0x18045d();_0x4a0a08[_0x234cee]=_0x1d44de([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0xbe30df,_0xbe30df!=_0x1d44de([0x56,0x61,0x6c,0x69,0x64])&&_0x54cf82();}function _0x18045d(){const _0x36de45=window[_0x1d44de([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x1d44de([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x1d44de([0x6e,0x6f,0x77])]())[_0x1d44de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x1d44de([0x2e]),'');let _0x84b21c=_0x1d44de([0x75]);for(let _0x999667=0x0;_0x999667<_0x36de45[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x999667+=0x2){let _0x1fe212=window[_0x1d44de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x36de45[_0x1d44de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x999667,_0x999667+0x2));_0x1fe212>=_0x25e487[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x1fe212-=_0x25e487[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x84b21c+=_0x25e487[_0x1fe212];}return _0x84b21c;}function _0x4a4f41(){const _0x32e4af=_0x3abe1b[_0x1d44de([0x73,0x70,0x6c,0x69,0x74])](_0x1d44de([0x2e]));if(0x3!=_0x32e4af[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x3c331a(_0x32e4af[0x1]);function _0x3c331a(_0x21077a){const _0x41b75d=_0xcbd2ba(_0x21077a);return _0x41b75d&&_0x38726c()?_0x41b75d:null;function _0x38726c(){const _0x14fc7c=_0x41b75d[_0x1d44de([0x6a,0x74,0x69])],_0x29389c=window[_0x1d44de([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x14fc7c[_0x1d44de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x14fc7c[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x3c8826={..._0x41b75d,[_0x1d44de([0x6a,0x74,0x69])]:_0x14fc7c[_0x1d44de([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x14fc7c[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x3c8826[_0x1d44de([0x76,0x63])],_0x59cae7(_0x3c8826)==_0x29389c;}}}async function _0x234961(){let _0x1de437=!0x0;try{const _0x129123=_0x3abe1b[_0x1d44de([0x73,0x70,0x6c,0x69,0x74])](_0x1d44de([0x2e])),[_0x5d8db5,_0x3f1ef2,_0x1f2954]=_0x129123;return _0x23d582(_0x5d8db5),await _0x5bd30d(_0x5d8db5,_0x3f1ef2,_0x1f2954),_0x1de437;}catch{return!0x1;}function _0x23d582(_0x36a51c){const _0x1c23b4=_0xcbd2ba(_0x36a51c);_0x1c23b4&&_0x1c23b4[_0x1d44de([0x61,0x6c,0x67])]==_0x1d44de([0x45,0x53,0x32,0x35,0x36])||(_0x1de437=!0x1);}async function _0x5bd30d(_0x510b58,_0x49aa5d,_0x5cd67f){const _0x21a6c0=window[_0x1d44de([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x1d44de([0x66,0x72,0x6f,0x6d])](_0x151743(_0x5cd67f),_0x45108b=>_0x45108b[_0x1d44de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0xc9f846=new window[(_0x1d44de([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x1d44de([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x510b58+_0x1d44de([0x2e])+_0x49aa5d),_0x3bcd84=window[_0x1d44de([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x1d44de([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3bcd84)return;const _0x484c31=await _0x3bcd84[_0x1d44de([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x1d44de([0x6a,0x77,0x6b]),_0x2720ac,{[_0x1d44de([0x6e,0x61,0x6d,0x65])]:_0x1d44de([0x45,0x43,0x44,0x53,0x41]),[_0x1d44de([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x1d44de([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x1d44de([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3bcd84[_0x1d44de([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x1d44de([0x6e,0x61,0x6d,0x65])]:_0x1d44de([0x45,0x43,0x44,0x53,0x41]),[_0x1d44de([0x68,0x61,0x73,0x68])]:{[_0x1d44de([0x6e,0x61,0x6d,0x65])]:_0x1d44de([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x484c31,_0x21a6c0,_0xc9f846)||(_0x1de437=!0x1);}}function _0xcbd2ba(_0x32494e){return _0x32494e[_0x1d44de([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x1d44de([0x65,0x79]))?JSON[_0x1d44de([0x70,0x61,0x72,0x73,0x65])](_0x151743(_0x32494e)):null;}function _0x151743(_0x38fb00){return window[_0x1d44de([0x61,0x74,0x6f,0x62])](_0x38fb00[_0x1d44de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x1d44de([0x2b]))[_0x1d44de([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x1d44de([0x2f])));}function _0x59cae7(_0x333100){let _0x2db860=0x1505;function _0x3ef1a7(_0x54c668){for(let _0x284ae9=0x0;_0x284ae9<_0x54c668[_0x1d44de([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x284ae9++){const _0x320ec8=_0x54c668[_0x1d44de([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x284ae9);_0x2db860=(_0x2db860<<0x5)+_0x2db860+_0x320ec8,_0x2db860&=_0x2db860;}}function _0x2603b9(_0x3b273d){Array[_0x1d44de([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x3b273d)?_0x3b273d[_0x1d44de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x2603b9):_0x3b273d&&typeof _0x3b273d==_0x1d44de([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x1d44de([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x3b273d)[_0x1d44de([0x73,0x6f,0x72,0x74])]()[_0x1d44de([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x14f9a4,_0x59d0c8])=>{_0x3ef1a7(_0x14f9a4),_0x2603b9(_0x59d0c8);}):_0x3ef1a7(window[_0x1d44de([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x3b273d));}return _0x2603b9(_0x333100),_0x2db860>>>0x0;}function _0x35e23d(_0x430dfe){return _0x430dfe[_0x1d44de([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x1d44de([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x1d44de([0x30]));}function _0x4948c8(_0x428a65){return _0x428a65[_0x1d44de([0x73,0x70,0x6c,0x69,0x74])]('')[_0x1d44de([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x1d44de([0x6a,0x6f,0x69,0x6e])]('');}function _0x42abe8(){}function _0x1d44de(_0x10dcd7){return _0x10dcd7['map'](_0x357242=>String['fromCharCode'](_0x357242))['join']('');}_0x1e3cfd(await _0x53507d());}(this);}['_moveSelectionToFootnoteDefinition'](_0x4b145c){const {plugins:_0x158f0b,editing:_0xb9b9a6,model:_0x3f6167}=this['editor'],_0x233477=_0x158f0b['get'](_0x30e2b1)['getFootnote'](_0x4b145c);return!!_0x233477&&(_0x3f6167['change'](_0x5c23bd=>{_0x5c23bd['setSelection'](_0x5c23bd['createPositionAt'](_0x233477['definition'],'end'));}),_0xb9b9a6['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x3d2338){const {plugins:_0x3b4280,editing:_0x6601,model:_0x40600d}=this['editor'],_0x11d61a=_0x3b4280['get'](_0x30e2b1)['getFootnote'](_0x3d2338);return!!_0x11d61a&&(_0x40600d['change'](_0x61c17f=>{_0x61c17f['setSelection'](_0x11d61a['reference'],'on');}),_0x6601['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x17629d}=this['editor']['model'],_0x579e85=this['editor']['config']['get']('footnotes.multiBlock');_0x17629d['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x17629d['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x17629d['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x579e85?_0x17629d['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x17629d['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x17629d['addChildCheck'](_0x5bf480=>{for(const _0x578277 of _0x5bf480)if('footnoteDefinition'===_0x578277['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x44b1c9}=this,{conversion:_0x822820,editing:_0x5d13ba}=_0x44b1c9,{t:t}=_0x44b1c9['locale'];_0x822820['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x124a18,{writer:_0x42b3aa,consumable:_0x5e4b75})=>{const _0x23a8f0=_0x124a18['getChild'](0x0);if(!_0x23a8f0||!_0x23a8f0['is']('element','a'))return null;const _0x1f9918=_0x23a8f0['getAttribute']('href')||'';if(!_0x1f9918['startsWith']('#'))return null;const _0x2c932c=_0x1f9918['replace'](/^#/,'');if(!_0x2c932c)return null;_0x5e4b75['consume'](_0x23a8f0,{'name':!0x0,'attributes':['href']});for(const {item:_0x1a4f3d}of _0x5d13ba['view']['createRangeIn'](_0x23a8f0))_0x1a4f3d['is']('$textProxy')?_0x5e4b75['consume'](_0x1a4f3d['textNode'],{'name':!0x0}):_0x1a4f3d['is']('element')&&_0x5e4b75['consume'](_0x1a4f3d,{'name':!0x0});return _0x42b3aa['createElement']('footnoteRef',{'footnoteId':_0x2c932c});}}),_0x822820['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x29e50a,{writer:_0x4053f3})=>b(_0x29e50a,_0x4053f3)}),_0x822820['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x1ac591,{writer:_0x38a40b})=>{const _0x78cf8e=_0x1ac591['getAttribute']('footnoteCounter');return _0x33c872(b(_0x1ac591,_0x38a40b),_0x38a40b,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x78cf8e)});}});}['_defineDefinitionsConverters'](){const {editor:_0x286b00}=this,{t:t}=_0x286b00['locale'],{conversion:_0xcd8d6f}=_0x286b00;_0xcd8d6f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0xcd8d6f['for']('upcast')['add'](_0x4e6d0c=>{_0x4e6d0c['on']('element:ol',(_0x2e1e9c,_0x4c9b3a,_0x5539e9)=>{const _0xafa186=_0x4c9b3a['viewItem'];if(!_0xafa186['hasClass']('footnotes-list')||!_0x4c9b3a['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x5539e9['consumable']['consume'](_0xafa186,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x5bdd9e,modelCursor:_0x586aef}=_0x5539e9['convertChildren'](_0x4c9b3a['viewItem'],_0x4c9b3a['modelCursor']);_0x4c9b3a['modelRange']=_0x5bdd9e,_0x4c9b3a['modelCursor']=_0x586aef;}),_0x4e6d0c['on']('element:hr',(_0xbbe819,_0x4057a2,_0x5eaf5d)=>{const _0x125b76=_0x4057a2['viewItem'];_0x125b76['hasClass']('footnotes-divider')&&_0x4057a2['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x5eaf5d['consumable']['consume'](_0x125b76,{'name':!0x0,'classes':'footnotes-divider'});});}),_0xcd8d6f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x507da0,{writer:_0x102a50})=>D(_0x102a50)}),_0xcd8d6f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x30682d,{writer:_0x3f5322})=>{const _0x3e4d8e=D(_0x3f5322,{'data-footnotes-list-label':t('Footnotes')}),_0x960a16=_0x33c872(_0x3e4d8e,_0x3f5322,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3f5322['setCustomProperty']('footnotesDefinitions',!0x0,_0x960a16),_0x960a16;}});}['_defineDefinitionConverters'](){const {editor:_0x2ca418}=this,{conversion:_0x5878db,locale:_0x1942ec}=_0x2ca418,_0x2bb894=_0x2ca418['config']['get']('footnotes.multiBlock');_0x5878db['for']('upcast')['add'](_0x5dfb4c=>{_0x5dfb4c['on']('element:li',(_0x67b70b,_0x539c58,_0x2a6909)=>{const _0xdf557d=_0x539c58['viewItem'];if(!_0xdf557d['hasClass']('footnote-definition')||!_0xdf557d['getAttribute']('id'))return;const _0x3d3e26=_0xdf557d['parent'];if(!_0x3d3e26['is']('element','ol')||!_0x3d3e26['hasClass']('footnotes-list'))return;if(!_0x2a6909['consumable']['test'](_0xdf557d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x4647eb=_0x2a6909['writer']['createElement']('footnoteDefinition',{'footnoteId':_0xdf557d['getAttribute']('id')});if(!_0x2a6909['safeInsert'](_0x4647eb,_0x539c58['modelCursor']))return;_0x2a6909['consumable']['consume'](_0xdf557d,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x3cd25a=Array['from'](_0xdf557d['getChildren']())['find'](_0x31e634=>_0x31e634['is']('element')&&_0x31e634['hasClass']('footnote-content'));for(const _0x3c4de7 of _0xdf557d['getChildren']())_0x3c4de7['is']('element')&&(_0x2a6909['consumable']['consume'](_0x3c4de7,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x2a6909['consumable']['consume'](_0x3c4de7,{'name':!0x0,'classes':'footnote-content'}));if(_0x3cd25a){if(_0x2bb894)_0x2a6909['convertChildren'](_0x3cd25a,_0x4647eb);else{const _0x3a1e64=_0x2a6909['writer']['createElement']('footnoteInlineContent');_0x2a6909['writer']['insert'](_0x3a1e64,_0x4647eb),_0x2a6909['convertChildren'](_0x3cd25a,_0x3a1e64);}}_0x2a6909['updateConversionResult'](_0x4647eb,_0x539c58);});}),_0x5878db['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x13b727,{writer:_0x247adf})=>y(_0x13b727,_0x247adf,_0x1942ec,{'dataPipeline':!0x0})}),_0x5878db['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x565053,{writer:_0x2452b2})=>y(_0x565053,_0x2452b2,_0x1942ec)});}['_defineBogusParagraphConverters'](){const {editor:_0x513a57}=this,{conversion:_0x6f2c0f}=_0x513a57;_0x513a57['config']['get']('footnotes.multiBlock')?(_0x6f2c0f['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x6f2c0f['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x513a57['model']['document'],'change:data',()=>{!function(_0x369be1,_0x3f645d){const _0x1e6bd2=_0x369be1['document']['differ'],_0x4e9279=new Set();for(const _0x1ed90a of _0x1e6bd2['getChanges']()){const _0x19e2e9='attribute'==_0x1ed90a['type']?_0x1ed90a['range']['start']['parent']:_0x1ed90a['position']['parent'];_0x19e2e9['is']('element','footnoteDefinition')&&_0x4e9279['add'](_0x19e2e9);}for(const _0x1bdf14 of _0x4e9279['values']()){const _0x27db4f=Array['from'](_0x1bdf14['getChildren']())['filter'](_0x4061ed=>v(_0x4061ed,_0x3f645d['mapper']));for(const _0x567035 of _0x27db4f)_0x3f645d['reconvertItem'](_0x567035);}}(_0x513a57['model'],_0x513a57['editing']);})):(_0x6f2c0f['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x6f2c0f['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x41eaa4,{writer:_0x359f13})=>{const _0x193613=_0x359f13['createContainerElement']('span');return _0x359f13['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x193613),_0x193613;}}));}['_defineKeyboardHandlers'](){const {editor:_0x168560}=this,{editing:_0x187987,t:t}=_0x168560,_0x29bd1b=_0x168560['model']['document']['selection'];_0x168560['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x168560['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x187987['view']['document'],'enter',(_0x4fbcdd,_0x305bc5)=>{const _0x1e5472=function(_0x18c6b3){const _0x4475b5=_0x18c6b3['getSelectedElement']();if(_0x4475b5?.['is']('element','footnoteRef'))return _0x4475b5;return null;}(_0x29bd1b);if(_0x1e5472){const _0x1eddb1=_0x1e5472['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1eddb1),_0x305bc5['preventDefault'](),_0x4fbcdd['stop']();}},{'context':_0x56f56d});}['_defineClickHandlers'](){const {editor:_0x18b6a9}=this,{editing:_0x314149}=_0x18b6a9;_0x18b6a9['editing']['view']['addObserver'](_0x330e4d),_0x18b6a9['editing']['view']['addObserver'](_0x122c8c);let _0x591b84=!0x1;this['listenTo'](_0x314149['view']['document'],'pointerdown',(_0x5bde63,_0x5bff85)=>{const {target:_0x1a20a8}=_0x5bff85,_0x5522f9=_0x314149['view']['document']['selection'];_0x591b84=!!(_0x1a20a8?.['is']('element','a')&&_0x1a20a8['parent']?.['is']('element','sup')&&_0x1a20a8['parent']['hasClass']('footnote'))&&_0x5522f9['getSelectedElement']()===_0x1a20a8['parent'];},{'priority':'high'}),this['listenTo'](_0x314149['view']['document'],'click',(_0x12b6b0,_0x1de29b)=>{const {target:_0x29cd4e}=_0x1de29b;if(!_0x29cd4e?.['is']('element','a'))return;if(_0x29cd4e['parent']?.['is']('element','sup')&&_0x29cd4e['parent']['hasClass']('footnote')&&!_0x591b84)return void _0x1de29b['preventDefault']();let _0x2a82ee=_0x29cd4e['getAttribute']('href');if(!_0x2a82ee?.['startsWith']('#'))return;_0x2a82ee=_0x2a82ee['slice'](0x1);let _0x39bf=!0x1;(_0x2a82ee['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x2a82ee['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x2a82ee))&&(_0x39bf=!0x0),_0x39bf&&(_0x1de29b['preventDefault'](),_0x12b6b0['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0xc8d3e6}={}){return(_0x17d05c,{writer:_0x35d63a})=>{if(!g(_0x17d05c))return null;if(!_0xc8d3e6)return _0x35d63a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x2fe8f2=_0x35d63a['createContainerElement']('p');return _0x35d63a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2fe8f2),_0x2fe8f2;};}function g(_0x3e2958){const {parent:_0xd73efd}=_0x3e2958;if(!_0xd73efd?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0xd73efd['childCount'])return!0x1;for(const _0x1f09ca of _0x3e2958['getAttributeKeys']())if(!_0x1f09ca['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x1f09ca)return!0x1;return!0x0;}function v(_0x480c68,_0x5ed9fa){if(!_0x480c68['is']('element','paragraph'))return!0x1;const _0x29b203=_0x5ed9fa['toViewElement'](_0x480c68);return!!_0x29b203&&g(_0x480c68)!==_0x29b203['is']('element','span');}export function isFootnotesDefinitionsWidget(_0x359404){return _0x56f56d(_0x359404)&&_0x359404['is']('containerElement')&&!!_0x359404['getCustomProperty']('footnotesDefinitions');}function D(_0x5dd609,_0x536347={}){const _0x14c198=_0x5dd609['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x33c552=_0x5dd609['createContainerElement']('ol',{'class':'footnotes-list'},_0x5dd609['createSlot']());return _0x5dd609['createContainerElement']('div',{'class':'footnotes',..._0x536347},[_0x14c198,_0x33c552]);}function b(_0x555dc9,_0x5a32ff){const _0x441f7d=_0x555dc9['getAttribute']('footnoteId'),_0x5ac03e=_0x555dc9['getAttribute']('footnoteCounter'),_0x48a6a5=_0x5a32ff['createUIElement']('a',{'href':'#'+_0x441f7d},function(_0x479032){const _0x441952=this['toDomElement'](_0x479032);return _0x441952['textContent']=_0x5ac03e,_0x441952;}),_0x75eab7=_0x5a32ff['createContainerElement']('sup',{'id':'ref-'+_0x441f7d,'class':'footnote'},[_0x48a6a5]);return _0x75eab7['getFillerOffset']=()=>null,_0x75eab7;}function y(_0x4a5190,_0x46b796,_0x438ae2,{dataPipeline:_0x4a24c4}={}){const {t:t}=_0x438ae2,_0x180abe=_0x4a5190['getAttribute']('footnoteId'),_0x4ab98f=_0x46b796['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x180abe},function(_0x38688d){const _0x1cd071=this['toDomElement'](_0x38688d);return _0x1cd071['innerText']='^',_0x1cd071;}),_0x3fbf12=_0x4a24c4?_0x46b796['createContainerElement']('div',{'class':'footnote-content'}):_0x1a7f21(_0x46b796['createEditableElement']('div',{'class':'footnote-content'}),_0x46b796,{'label':t('Footnote\x20content.')});return _0x46b796['insert'](_0x46b796['createPositionAt'](_0x3fbf12,0x0),_0x46b796['createSlot']()),_0x46b796['createContainerElement']('li',{'class':'footnote-definition','id':_0x180abe},[_0x4ab98f,_0x3fbf12]);}
|