@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251106.0 → 0.0.0-nightly-20251107.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/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +9 -9
- package/src/commands/insertfootnotecommand.js +1 -1
- package/src/footnotes.js +1 -1
- package/src/footnotesclipboard.js +1 -1
- package/src/footnotesediting.js +1 -1
- package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
- package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
- package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
- package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
- package/src/footnotesproperties/footnotespropertiesui.js +1 -1
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
- package/src/footnotesproperties.js +1 -1
- package/src/footnotestracker.js +1 -1
- package/src/footnotesui.js +1 -1
- package/src/index.js +1 -1
- package/src/modelelementtracker.js +1 -1
package/build/footnotes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265: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)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374: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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774: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)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=a();return(r=function(t,e){return o[t-=123]})(t,e)}function a(){const t=["getChanges","element","reset","flat","root","621fMfhIw","17672BHGtLk","5809951dMUvJd","get","5266140BIgfOa","set","push","clear","getItems","attributes","remove","_model","rootName","_trackedElements","elementName","delete","has","values","from","_elementName","$graveyard","24rRqqTE","type","add","position","439896dADKSG","642836vyCZfL","name","_getElementKey","$text","nodeAfter","getElementKey","slice","length","insert","createRangeOn","217775lwPdEP","2141345HPKxqC"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(450442===-parseInt(e(154))/1+parseInt(e(144))/2+-parseInt(e(139))/3*(-parseInt(e(143))/4)+-parseInt(e(155))/5+parseInt(e(165))/6+-parseInt(e(163))/7+-parseInt(e(162))/8*(parseInt(e(161))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(129)];[c(137)];[c(146)];[c(131)]=new Map;constructor(t,e){const o=c;this[o(129)]=t,this[o(137)]=e[o(132)],this[o(146)]=e[o(149)]}[c(158)](){const t=c;this[t(131)][t(125)]()}[c(156)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(152)===i[e(140)]&&e(147)!==i[e(145)]&&i[e(142)][e(148)]){const t=this[e(129)][e(153)](i[e(142)][e(148)]);for(const o of t[e(126)]()){if(!o.is(e(157),this[e(137)]))continue;const t=this[e(146)](o);n[e(134)](t)||n[e(123)](t,[]),n[e(164)](t)[e(124)](o)}}if(e(128)===i[e(140)]&&i[e(145)]===this[e(137)]){const t=this[e(146)]({getAttribute:t=>i[e(127)][e(164)](t)});o[e(141)](t)}}for(const[t,n]of this[e(131)])e(138)===n[e(160)][e(130)]&&o[e(141)](t);for(const t of o)this[e(131)][e(133)](t);for(const[t,o]of n)this[e(131)][e(123)](t,o[o[e(151)]-1]);const i=new Set;for(const[t,s]of n)o[e(134)](t)&&(i[e(141)](s[0]),s[e(151)]>1?n[e(123)](t,s[e(150)](1)):n[e(133)](t),o[e(133)](t));return{removed:Array[e(136)](o),inserted:Array[e(136)](n[e(135)]())[e(159)](),moved:Array[e(136)](i)}}}const u=d;function f(){const t=["some","remove","_sortFootnoteDefinitions","_ensureFootnotesDefinitionsContainerExists","insert","15syfAHy","move","footnoteDefinition","listenTo","end","after","7QGxjFR","6843992EEIcdq","_footnotesDefinitions","find","_footnoteFormatter","_handleInsertedFootnoteReference","length","getFootnotesDefinitionsObjectElement","min","_ensureFootnotesReferencesHaveProperOrder","reset","footnoteId","differ","getChanges","get","getChildren","getAttribute","createRangeIn","init","FootnotesTracker","set","enqueueChange","unshift","setFootnoteFormatter","createPositionAt","root","_updateFootnotesCounters","isPremiumPlugin","map","childCount","setAttribute","_footnoteDefsContainerTracker","footnoteCounter","_footnoteRefsTracker","footnoteRef","findIndex","document","2lhwWGO","isEqual","3345216KpPmvB","singleton","high","add","createElement","413422cuXpqR","footnoteInlineContent","_handleFootnotesDefinitionsObjectSync","_footnotes","createRangeOn","footnotesDefinitions","editor","3353985BjbArA","1639884zFPcjM","compareWith","low","pluginName","change:data","_insertEmptyFootnotesDefinitionsContainer","12641994KdFmbs","_footnoteDefsTracker","indexOf","has","append","registerPostFixer","$graveyard","_handleRemoveFootnoteReferenceById","_handleFootnoteReferencesChanges","footnotes.multiBlock","paragraph","_handleMovedFootnoteReference","reference","createPositionBefore","877700COYHVc","getFootnote","before","splice","config","parent","definition","rootName","_handleFootnotesDefinitionsObjectChanges","getFootnotes","getRootNames","model","_updateFootnoteRefCounter","push","from","isOfficialPlugin","getFootnotesFormatter","_handleFootnoteDefinitionsChanges"];return(f=function(){return t})()}function d(t,e){const o=f();return(d=function(t,e){return o[t-=153]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(795445===-parseInt(e(162))/1*(-parseInt(e(155))/2)+-parseInt(e(169))/3+parseInt(e(170))/4*(-parseInt(e(213))/5)+parseInt(e(157))/6+parseInt(e(219))/7*(parseInt(e(220))/8)+parseInt(e(176))/9+-parseInt(e(190))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class h extends t.Plugin{[u(165)]=[];[u(221)]=null;[u(223)]=null;[u(250)];[u(252)];[u(177)];static get[u(173)](){return u(238)}static get[u(205)](){return!0}static get[u(246)](){return!0}constructor(t){const e=u;super(t),this[e(250)]=new l(this[e(168)][e(201)],{elementName:e(167),getElementKey:()=>e(158)}),this[e(252)]=new l(this[e(168)][e(201)],{elementName:e(253),getElementKey:t=>t[e(235)](e(230))}),this[e(177)]=new l(this[e(168)][e(201)],{elementName:e(215),getElementKey:t=>t[e(235)](e(230))})}[u(237)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(154)][t(181)](e=>{const n=t,i=o[n(154)][n(231)][n(232)]();let s=!1;return this[n(198)](e,i)&&(s=!0),this[n(207)](e,i)&&(s=!0),this[n(184)](e,i)&&(s=!0),this[n(228)](e)&&(s=!0),this[n(164)](e)&&(s=!0),this[n(210)](e)&&(s=!0),s}),this[t(216)](o[t(154)],t(174),()=>{const e=t;o[e(240)]({isUndoable:!1},t=>{this[e(211)](t)})},{priority:t(172)}),this[t(216)](n,t(239),()=>{const e=t;this[e(165)]=[],this[e(250)][e(229)](),this[e(252)][e(229)](),this[e(177)][e(229)]()},{priority:t(159)})}[u(226)](){return this[u(221)]}[u(191)](t){const e=u;return this[e(165)][e(222)](e=>e.id===t)||null}[u(199)](){const t=u;return Array[t(204)](this[t(165)])}[u(206)](){return this[u(223)]}[u(242)](t){this[u(223)]=t}[u(245)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(165)][o(225)];i++)this[o(202)](t,i)&&(n=!0);return n}[u(175)](t,e){const o=u,n=t[o(161)](o(167),{});return t[o(180)](n,e),this[o(221)]=n,n}[u(211)](t){const e=u;if(!this[e(165)][e(225)]||this[e(221)])return;const o=this[e(165)][0][e(188)][e(244)],n=this[e(175)](t,o);for(const o of this[e(165)])o[e(196)][e(195)]||t[e(212)](o[e(196)],n,e(217));this[e(245)](t)}[u(198)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(250)][o(232)](e);if(r[o(225)]&&(this[o(221)]=r[0]),i[o(225)])if(i[o(225)]>1||this[o(221)]&&i[o(208)](t=>t!==this[o(221)])){const e=t[o(161)](o(167),{}),s=[];this[o(221)]&&s[o(203)](this[o(221)]),s[o(203)](...i),t[o(212)](e,s[0],o(192));for(const n of s)t[o(214)](t[o(236)](n),t[o(243)](e,o(217))),t[o(209)](n);this[o(221)]=e,this[o(245)](t),n=!0}else this[o(221)]=i[0];if(s[o(225)]&&o(182)===this[o(221)]?.[o(244)][o(197)]){for(const e of this[o(165)])t[o(209)](e[o(188)]),n=!0;this[o(165)]=[],this[o(221)]=null}return n}[u(207)](t,e){const o=u;let n=!1;const i=this[o(168)][o(194)][o(233)](o(185)),{inserted:s,moved:r}=this[o(177)][o(232)](e);for(const e of[...r,...s]){const s=e[o(235)](o(230)),r=this[o(191)](s);r&&(r[o(196)]=e),p(t,i,e)&&(n=!0)}return n}[u(184)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(252)][o(232)](e);for(const e of i)this[o(183)](t,e)&&(n=!0);for(const e of s)this[o(224)](t,e)&&(n=!0);for(const e of r)this[o(187)](t,e)&&(n=!0);return n}[u(164)](t){const e=u;if(!this[e(221)])return!1;let o=!1;if(this[e(221)][e(248)]!==this[e(165)][e(225)]){const n=[];for(const t of this[e(221)][e(234)]()){const i=t[e(235)](e(230));this[e(191)](i)||(n[e(241)](t),o=!0)}for(const o of n)t[e(209)](o)}const n=new Set,i=[];for(const t of this[e(221)][e(234)]()){const s=t[e(235)](e(230));n[e(179)](s)?(i[e(241)](t),o=!0):n[e(160)](s)}for(const o of i)t[e(209)](o);return this[e(221)][e(248)]||(t[e(209)](this[e(221)]),this[e(221)]=null,o=!0),o}[u(224)](t,e){const o=u;if(this[o(165)][o(222)](t=>t[o(188)]===e))return!1;let n=!1;const i=e[o(235)](o(230)),s=this[o(165)][o(153)](t=>t.id===i);-1!==s&&(t[o(209)](this[o(165)][s][o(188)]),this[o(165)][o(193)](s,1),n=!0);let r=this[o(221)]?function(t,e){const n=o;for(const o of t[n(234)]())if(o[n(235)](n(230))===e)return o;return null}(this[o(221)],i):null;r||(r=t[o(161)](o(215),{footnoteId:i}),this[o(221)]&&(t[o(212)](r,this[o(221)],o(217)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(168)][o(201)],this[o(165)],e);this[o(165)][o(193)](c,0,a);let l=c;return-1!==s&&(l=Math[o(227)](c,s)),this[o(245)](t,l)&&(n=!0),n}[u(183)](t,e){const o=u,n=this[o(165)][o(153)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(165)][n];return o(182)!==s[o(196)][o(244)][o(197)]&&(t[o(209)](s[o(196)]),i=!0),this[o(165)][o(193)](n,1),this[o(245)](t,n)&&(i=!0),i}[u(187)](t,e){const o=u,n=e[o(235)](o(230)),i=this[o(165)][o(153)](t=>t.id===n),s=this[o(165)][i];let r=!1;s[o(188)]=e,this[o(165)][o(193)](i,1);const a=m(this[o(168)][o(201)],this[o(165)],e);return this[o(165)][o(193)](a,0,s),this[o(245)](t,Math[o(227)](i,a))&&(r=!0),r}[u(202)](t,e){const o=u;if(!this[o(221)])return!1;const n=this[o(165)][e];let i;return i=this[o(223)]?this[o(223)]({footnote:n,container:this[o(221)],digits:String(this[o(165)][o(225)])[o(225)],value:e+1}):String(e+1),n[o(188)][o(235)](o(251))!=i&&(t[o(249)](o(251),i,n[o(188)]),!0)}[u(210)](t){const e=u;if(!this[e(221)]||this[e(165)][e(225)]<2)return!1;if(function(t,o){const n=e;if(t[n(225)]!==o[n(225)])return!1;for(let e=0;e<t[n(225)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(165)][e(247)](t=>t.id),Array[e(204)](this[e(221)][e(234)]())[e(247)](t=>t[e(235)](e(230)))))return!1;let o=!1;for(let n=0;n<this[e(165)][e(225)];n++){const i=this[e(165)][n],s=t[e(189)](i[e(196)]),r=t[e(243)](this[e(221)],n);s[e(156)](r)||(t[e(214)](t[e(166)](i[e(196)]),r),o=!0)}return o}[u(228)](t){const e=u;if(!this[e(165)][e(225)])return!1;const{model:o}=this[e(168)];let n=!1;for(let i=0;i<this[e(165)][e(225)]-1;i++){const s=this[e(165)][i],r=this[e(165)][i+1],a=o[e(189)](s[e(188)]),c=o[e(189)](r[e(188)]);e(218)===a[e(171)](c)&&(this[e(187)](t,s[e(188)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(248)])return!1;const i=n(e?186:163);return t[n(212)](t[n(161)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(225)])return 0;const i=t[n(189)](o);for(let o=0;o<e[n(225)];o++){const s=e[o],r=t[n(189)](s[n(188)]);if(n(192)===i[n(171)](r))return o}const s=o[n(244)];let r=-1;for(let t=e[n(225)]-1;t>=0;t--)if(e[t][n(188)][n(244)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(154)][n(200)](),c=a[n(178)](s[n(197)]),l=a[c+1];if(l)for(let t=0;t<e[n(225)];t++)if(e[t][n(188)][n(244)][n(197)]===l)return t;return e[n(225)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=317]})(t,e)}function y(){const t=["document","model","isEnabled","change","118384smArqr","plugins","get","length","26873OvZTgu","184XMjlJD","editor","insertObject","1537272vCmbOw","1449012wgagEh","isObject","5TGEmtK","checkChild","refresh","end","selection","test","108MBmgEf","_getPositionToInsertFootnote","getFirstRange","FootnotesEditing","createElement","83730RxDJyl","string","1588yASUgk","isBlock","execute","insert-footnote-command-executed-with-invalid-id","footnoteRef","getItems","330274SzSKVo","_moveSelectionToFootnoteDefinition","footnoteId","141ZdTZJx"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(142023===-parseInt(e(319))/1+parseInt(e(349))/2+-parseInt(e(352))/3*(parseInt(e(343))/4)+-parseInt(e(330))/5*(-parseInt(e(328))/6)+-parseInt(e(323))/7*(parseInt(e(324))/8)+parseInt(e(336))/9*(parseInt(e(341))/10)+-parseInt(e(327))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(332)](){const t=g,e=this[t(325)][t(354)][t(353)][t(334)],o=this[t(337)](e);this[t(317)]=!!o}[g(345)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(353)],r=this[e(337)](s);if(!r)return;const a=o[e(320)][e(321)](e(339)),c=t?.[e(351)]??(0,i.uid)();!function(t){const o=e;return o(342)==typeof t&&t[o(322)]>0&&!/\s/[o(335)](t)&&!/^\d/[o(335)](t)}(c)?(0,i.logWarning)(e(346)):(n[e(318)](t=>{const o=e,i=t[o(340)](o(347),{footnoteId:c});n[o(326)](i,r,null)}),a[e(350)](c))}[g(337)](t){const e=g,{model:o}=this[e(325)],{schema:n}=o,i=t[e(338)]();for(const t of i[e(348)]())if(n[e(344)](t)||n[e(329)](t))return null;const s=i[e(333)];return n[e(331)](s,e(347))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1762387200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=_;function A(){const t=["getRanges","from","toView","flatMap","getFirstRange","contentInsertion","footnotesDefinitions","getData","getFootnote","create","_handlePasteFootnotesDefinitions","stringify","push","root","991490KBelKe","6799496mFmesA","footnoteRef","_defineClipboardIntegration","setAttribute","length","pluginName","insert","_insertEmptyFootnotesDefinitionsContainer","remove","append","setData","end","162295dUPmhT","editing","478785dTPrWa","drop","definition","content","sourceEditorId","application/ckeditor5-footnotes","toData","4vbynBt","_handleCopyFootnotesDefinitions","getSelectedBlocks","outputTransformation","5845056sKBVKg","getFootnotesDefinitionsObjectElement","requires","createRangeIn","footnoteId","htmlProcessor","isOfficialPlugin","toModel","172723ZTFIzc","dataTransfer","clipboardInput","selection","find","editor","2206988oKMFLs","includes","get","FootnotesClipboard","add","reduce","element","change","init","entries","data","207XSZpGE","isPremiumPlugin","createElement","parse","getFootnotes","28wRrEsp","footnoteDefinition","getAttribute","document","method","listenTo"];return(A=function(){return t})()}function _(t,e){const o=A();return(_=function(t,e){return o[t-=398]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(493770===-parseInt(e(412))/1*(parseInt(e(400))/2)+-parseInt(e(469))/3+-parseInt(e(434))/4*(-parseInt(e(467))/5)+-parseInt(e(404))/6+parseInt(e(418))/7+-parseInt(e(455))/8+-parseInt(e(429))/9*(-parseInt(e(454))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[P(460)](){return P(421)}static get[P(406)](){return[v,T.ClipboardPipeline]}static get[P(410)](){return!0}static get[P(430)](){return!0}[P(426)](){this[P(457)]()}[P(457)](){const t=P;this[t(401)](),this[t(450)]()}[P(401)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(420)](T.ClipboardPipeline),s=o[t(420)](h);this[t(439)](i,t(403),(o,i)=>{const r=t,a=L(n[r(407)](i[r(472)]));if(!a[r(459)])return;const c=s[r(433)](),l=a[r(423)]((t,o)=>{const n=r,i=c[n(416)](t=>t.id===o);if(i){const o=e[n(428)][n(442)](i[n(471)],{isClipboardPipeline:!0}),s=e[n(428)][n(409)][n(399)](o);t[i.id]=s}return t},Object[r(449)](null));i[r(413)][r(465)](r(398),JSON[r(451)](l))})}[P(450)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(468)],r=n[t(420)](T.ClipboardPipeline),a=n[t(420)](h);let c=null;this[t(439)](s[t(437)],t(414),(e,o)=>{const n=t,i=o[n(413)][n(447)](n(398));c=i?JSON[n(432)](i):null}),this[t(439)](r,t(445),(n,s)=>{const r=t,l=s[r(473)]===this[r(417)].id;l&&r(470)===s[r(438)]||o[r(425)](t=>{const n=r;let u=a[n(405)]();const f=!!u&&Array[n(441)](o[n(437)][n(415)][n(402)]())[n(419)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(407)](e))n.is(o(424),o(446))&&i[o(452)](n);for(const e of i)t[o(463)](e)}(t,s[n(472)]),!c)return;const{selection:d}=o[n(437)],h=d[n(444)]()[n(453)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(407)](e))if(n.is(o(424),o(446)))return n;return null}(t,s[n(472)]),u||=a[n(462)](t,h));const p=Array[n(441)](d[n(440)]())[n(443)](L),m=function(t,e,o){const s=n,r=Object[s(449)](null);for(const{item:n}of t[s(407)](e))if(n.is(s(424),s(456))){const e=n[s(436)](s(408));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(458)](s(408),r[e],n)}return r}(t,s[n(472)],t=>{const e=n;return!l||!!a[e(448)](t)&&!p[e(419)](t)});for(const[o,i]of Object[n(427)](c)){const s=m[o]||o,r=t[n(431)](n(435),{footnoteId:s}),a=e[n(428)][n(409)][n(442)](i),c=e[n(428)][n(411)](a,r);t[n(464)](c,r),t[n(461)](r,u,n(466))}c=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(424),e(456))&&o[e(422)](n[e(436)](e(408)));return Array[e(441)](o)}var V=o(311),R=o(355),O=o(450),K=o.n(O),N=o(774),M=o.n(N),j=o(265),B=o.n(j),U=o(410),z=o.n(U),W=o(238),H=o.n(W),q=o(14),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=B().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=H();K()(q.A,G);q.A&&q.A.locals&&q.A.locals;class J 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,V.ButtonView)),e.add("menuBar:insertFootnote",X(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function X(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=Y;function Y(t,e){var o=Z();return(Y=function(t,e){return o[t-=238]})(t,e)}function Z(){var t=["3176215nNhmSf","36UdcFfF","10912AMYuJz","isPremiumPlugin","requires","765600RYSLDc","1317406FHCfGm","2DCHqlQ","pluginName","isOfficialPlugin","1752YzCaHY","4765025QufuIS","58644YKhhSX","16543770ikAHeo","Footnotes","143qsVtEe","12EXxwth","11sHRJFm"];return(Z=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(855758===-parseInt(e(247))/1*(-parseInt(e(248))/2)+parseInt(e(242))/3*(-parseInt(e(243))/4)+parseInt(e(252))/5+parseInt(e(239))/6*(-parseInt(e(241))/7)+parseInt(e(251))/8*(-parseInt(e(253))/9)+parseInt(e(254))/10*(parseInt(e(240))/11)+-parseInt(e(246))/12*(parseInt(e(238))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[Q(249)](){return Q(255)}static get[Q(245)](){return[v,D,J]}static get[Q(250)](){return!0}static get[Q(244)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=422]})(t,e)}function ot(){const t=["1MVguwI","16789432GoyKoW","decimal","1085202iJBsJT","upper-latin","upper-roman","decimal-leading-zero","1264314QZktLM","3616668ZcxGfx","476pDeHyu","15dJBkSo","lower-latin","2095004RWJJJw","69021pdpNHI","lower-alpha","upper-alpha","108616lvJlqE","lower-roman","430zjbJzI"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(557223===-parseInt(e(431))/1*(parseInt(e(424))/2)+parseInt(e(434))/3+-parseInt(e(439))/4+-parseInt(e(422))/5*(parseInt(e(438))/6)+-parseInt(e(440))/7*(-parseInt(e(428))/8)+parseInt(e(425))/9*(parseInt(e(430))/10)+parseInt(e(432))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(433),tt(437),tt(423),tt(435),tt(426),tt(427),tt(429),tt(436)],it=rt;function st(){const t=["getFootnotesDefinitionsObjectElement","1334688urgCBg","9uaXSoD","2671388kpcqVr","isEnabled","value","execute","getAttribute","refresh","setAttribute","6393760lNjwTx","973444BWMbId","footnotesListStyle","_updateFootnotesCounters","get","24618TCAfmk","plugins","change","1147203rGgLQQ","model","includes","5lVMqcX","10271250xmUiUh","1904wAeWPy"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=202]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(685829===parseInt(e(205))/1+-parseInt(e(215))/2+-parseInt(e(222))/3+-parseInt(e(207))/4*(parseInt(e(225))/5)+parseInt(e(219))/6*(parseInt(e(203))/7)+parseInt(e(214))/8+parseInt(e(206))/9*(-parseInt(e(202))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(212)](){const t=it,{editor:e}=this,o=e[t(220)][t(218)](h)[t(204)]();this[t(208)]=!!o,this[t(209)]=o?.[t(211)](t(216))??null}[it(210)]({value:t}){const e=it,{editor:o}=this,n=o[e(220)][e(218)](h),i=n[e(204)]();i&&nt[e(224)](t)&&o[e(223)][e(221)](o=>{const s=e;o[s(213)](s(216),t,i),n[s(217)](o)})}}const ct=ut;function lt(){const t=["value","isEnabled","151974clYRMF","get","getAttribute","setAttribute","9jeCmkh","_updateFootnotesCounters","5715523xUqNty","plugins","2432310kpicQK","refresh","4252854NxaFiy","40240UGuQlh","80TEWCwK","execute","7LNGYjo","isInteger","191095ePCfNH","261XvZYfX","footnotesListStart","getFootnotesDefinitionsObjectElement","change","model","6290704nyLAYI"];return(lt=function(){return t})()}function ut(t,e){const o=lt();return(ut=function(t,e){return o[t-=354]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(410841===-parseInt(e(357))/1*(parseInt(e(378))/2)+parseInt(e(361))/3+-parseInt(e(365))/4*(-parseInt(e(369))/5)+parseInt(e(363))/6+-parseInt(e(367))/7*(parseInt(e(375))/8)+-parseInt(e(370))/9*(-parseInt(e(364))/10)+-parseInt(e(359))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ft extends t.Command{[ct(362)](){const t=ct,{editor:e}=this,o=e[t(360)][t(354)](h)[t(372)]();this[t(377)]=!!o,this[t(376)]=o?.[t(355)](t(371))??null}[ct(366)]({value:t}){const e=ct,{editor:o}=this,n=o[e(360)][e(354)](h),i=n[e(372)]();i&&Number[e(368)](t)&&o[e(374)][e(373)](o=>{const s=e;o[s(356)](s(371),t,i),n[s(358)](o)})}}const dt=mt;!function(t){const e=mt,o=t();for(;;)try{if(289342===parseInt(e(482))/1*(parseInt(e(437))/2)+-parseInt(e(466))/3*(-parseInt(e(405))/4)+parseInt(e(484))/5+-parseInt(e(490))/6+parseInt(e(460))/7+-parseInt(e(431))/8*(-parseInt(e(491))/9)+-parseInt(e(461))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(yt);class ht extends t.Plugin{static get[dt(456)](){return dt(448)}static get[dt(489)](){return[v,h]}static get[dt(432)](){return!0}static get[dt(402)](){return!0}[dt(438)](){const t=dt,{editor:e}=this;e[t(476)][t(407)](t(444),t(487)),e[t(476)][t(407)](t(406),1),e[t(479)][t(451)](t(481),new at(e)),e[t(479)][t(451)](t(430),new ft(e)),this[t(427)](),this[t(480)](),this[t(429)](),this[t(424)]()}[dt(427)](){const t=dt,{editor:e}=this,{schema:o}=e[t(478)];o[t(411)](t(397),{allowAttributes:[t(463),t(445)]})}[dt(480)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(416)](t(449))[t(451)](e=>{const o=t;e.on(o(395),(t,e,n)=>{const s=o,r=e[s(398)],a=e[s(394)]?.[s(400)];r[s(474)](s(396))&&a?.is(s(453),s(397))&&(function(t,e,o,n){const i=s;if(!n[i(455)](e,i(445)))return;let r=1;const a=o[i(418)][i(401)](t,{attributes:i(409)});if(a){const e=Number[i(404)](t[i(458)](i(409)),10);Number[i(425)](e)||(r=e)}!a&&e[i(415)](i(445))||o[i(447)][i(459)](i(445),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(455)](e,i(463)))return;let r=i(487),a=!1;if(o[i(418)][i(401)](t,{attributes:i(440)})){const e={1:i(487),a:i(462),A:i(450),i:i(457),I:i(477)}[t[i(458)](i(440))];e&&(r=e),a=!0}o[i(418)][i(401)](t,{styles:i(410)})&&(r=t[i(471)](i(410)),a=!0),!a&&e[i(415)](i(463))||o[i(447)][i(459)](i(463),r,e)}(r,a,n,i))})}),o[t(416)](t(442))[t(451)](e=>{const o=t;e.on(o(465),(t,e,n)=>{const i=o;if(!n[i(418)][i(401)](e[i(443)],t[i(436)]))return;const s=pt(e[i(443)],n[i(494)]),{attributeNewValue:r}=e;null==r||1===r?n[i(447)][i(454)](i(409),s):n[i(447)][i(459)](i(409),String(r),s)}),e.on(o(422),(t,e,n)=>{const i=o;if(!n[i(418)][i(401)](e[i(443)],t[i(436)]))return;const s=pt(e[i(443)],n[i(494)]),{attributeNewValue:r}=e;r&&i(487)!==r?n[i(447)][i(472)](i(410),r,s):n[i(447)][i(486)](i(410),s)})})}[dt(424)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(419)][t(475)](h),i=this[t(420)](),s=this[t(492)]();o[t(464)][t(473)](e=>{const r=t,a=o[r(464)][r(412)][r(423)]();let c=!1;for(const t of a){if(r(434)!==t[r(440)]||r(468)===t[r(436)])continue;const n=o[r(485)](t[r(483)][r(452)]);for(const t of n[r(417)]())t.is(r(453),r(397))&&(!t[r(415)](r(445))&&o[r(469)][r(455)](t,r(445))&&(e[r(459)](r(445),s,t),c=!0),!t[r(415)](r(463))&&o[r(469)][r(455)](t,r(463))&&(e[r(459)](r(463),i,t),c=!0))}return c&&n[r(413)](e),c})}[dt(429)](){const t=dt,{editor:e}=this;e[t(419)][t(475)](h)[t(493)](e=>this[t(408)](e))}[dt(420)](){const t=dt;return this[t(403)][t(476)][t(475)](t(444))}[dt(492)](){const t=dt;return this[t(403)][t(476)][t(475)](t(406))}[dt(408)]({container:t,value:e,digits:o}){const n=dt,i=t[n(458)](n(463)),s=t[n(458)](n(445)),r=Math[n(428)](e)+(s??1)-1;switch(i){case n(446):return function(t,e){const o=n;return String(t)[o(414)](e,"0")}(r,Math[n(433)](2,o));case n(462):case n(421):return gt(r,!1);case n(450):case n(488):return gt(r,!0);case n(457):return bt(r,!1);case n(477):return bt(r,!0);default:return String(r)}}}function pt(t,e){const o=dt,n=e[o(435)](t);return Array[o(467)](n[o(441)]())[o(470)](t=>t.is(o(453),"ol")&&t[o(474)](o(396)))}function mt(t,e){const o=yt();return(mt=function(t,e){return o[t-=394]})(t,e)}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(439)](97+t)+n,i=Math[o(428)]((i-1)/26)}return e?n[o(399)]():n}const wt=[{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 yt(){const t=["4oKShCa","position","499660TMcRRP","createRangeOn","removeStyle","decimal","upper-latin","requires","1340970CDTzzt","2385xljcHv","_getDefaultStartIndex","setFootnoteFormatter","mapper","modelCursor","element:ol","footnotes-list","footnotesDefinitions","viewItem","toUpperCase","parent","consume","isPremiumPlugin","editor","parseInt","142436eBkyKB","footnotes.footnotesProperties.defaultStartIndex","define","_formatFootnoteListValue","start","list-style-type","extend","differ","_updateFootnotesCounters","padStart","hasAttribute","for","getItems","consumable","plugins","_getDefaultListStyle","lower-latin","attribute:footnotesListStyle:footnotesDefinitions","getChanges","_definePostfixer","isNaN","toLowerCase","_defineSchema","floor","_defineFormatter","footnotesStart","2912sCSWsn","isOfficialPlugin","max","insert","toViewElement","name","118322NQJlWI","init","fromCharCode","type","getChildren","downcast","item","footnotes.footnotesProperties.defaultListStyle","footnotesListStart","decimal-leading-zero","writer","FootnotesPropertiesEditing","upcast","upper-alpha","add","nodeAfter","element","removeAttribute","checkAttribute","pluginName","lower-roman","getAttribute","setAttribute","2467010zxKtRb","3082380YLulaV","lower-alpha","footnotesListStyle","document","attribute:footnotesListStart:footnotesDefinitions","3mtDiLX","from","$text","schema","find","getStyle","setStyle","registerPostFixer","hasClass","get","config","upper-roman","model","commands","_defineConverters","footnotesStyle"];return(yt=function(){return t})()}function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(426)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=H();K()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.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:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["3704905Upvkbw","requires","7220565bFYhss","11432092KRumhS","pluginName","1501189UuLLmC","isPremiumPlugin","651242uGVbbI","12djuAsG","FootnotesProperties","238264VJSLyC","7226094tFIiVI","40OtdOgu","isOfficialPlugin"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=220]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(829206===parseInt(e(230))/1+parseInt(e(232))/2*(parseInt(e(233))/3)+-parseInt(e(221))/4+-parseInt(e(225))/5+parseInt(e(222))/6+parseInt(e(228))/7+-parseInt(e(223))/8*(parseInt(e(227))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class St extends t.Plugin{static get[Ft(229)](){return Ft(220)}static get[Ft(226)](){return[ht,Ct]}static get[Ft(224)](){return!0}static get[Ft(231)](){return!0}}function Tt(){var t=["127926QOLZGS","2QDNSRx","7120104orQIUi","85WyiDbw","40AMDGTW","4665269QsabnG","6099620fOaomP","1191735gqSKRO","63069MnHPEX","1297359bZlapB"];return(Tt=function(){return t})()}function Pt(t,e){var o=Tt();return(Pt=function(t,e){return o[t-=250]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(673753===parseInt(e(253))/1*(parseInt(e(257))/2)+-parseInt(e(254))/3*(-parseInt(e(250))/4)+-parseInt(e(259))/5*(-parseInt(e(256))/6)+-parseInt(e(251))/7+-parseInt(e(258))/8+-parseInt(e(255))/9+parseInt(e(252))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|
|
5
|
+
*/(()=>{var t={14:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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},237:t=>{"use strict";t.exports=CKEditor5.dll},238:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},265: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)}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},374: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}},410:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},450: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}}},453:t=>{"use strict";t.exports=function(t){return t[1]}},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},774: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)}}}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},945:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(453),i=o.n(n),s=o(374),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}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Z,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Tt,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;!function(t){const e=c,o=t();for(;;)try{if(289895===parseInt(e(155))/1+-parseInt(e(174))/2+parseInt(e(171))/3+-parseInt(e(135))/4+parseInt(e(162))/5+-parseInt(e(152))/6*(parseInt(e(138))/7)+parseInt(e(169))/8*(parseInt(e(161))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class a{[r(166)];[r(172)];[r(157)];[r(134)]=new Map;constructor(t,e){const o=r;this[o(166)]=t,this[o(172)]=e[o(163)],this[o(157)]=e[o(151)]}[r(156)](){const t=r;this[t(134)][t(168)]()}[r(146)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(149)===i[e(173)]&&e(170)!==i[e(143)]&&i[e(165)][e(139)]){const t=this[e(166)][e(144)](i[e(165)][e(139)]);for(const o of t[e(133)]()){if(!o.is(e(158),this[e(172)]))continue;const t=this[e(157)](o);n[e(141)](t)||n[e(164)](t,[]),n[e(160)](t)[e(148)](o)}}if(e(136)===i[e(173)]&&i[e(143)]===this[e(172)]){const t=this[e(157)]({getAttribute:t=>i[e(150)][e(160)](t)});o[e(147)](t)}}for(const[t,n]of this[e(134)])e(137)===n[e(140)][e(154)]&&o[e(147)](t);for(const t of o)this[e(134)][e(153)](t);for(const[t,o]of n)this[e(134)][e(164)](t,o[o[e(142)]-1]);const i=new Set;for(const[t,s]of n)o[e(141)](t)&&(i[e(147)](s[0]),s[e(142)]>1?n[e(164)](t,s[e(175)](1)):n[e(153)](t),o[e(153)](t));return{removed:Array[e(167)](o),inserted:Array[e(167)](n[e(145)]())[e(159)](),moved:Array[e(167)](i)}}}function c(t,e){const o=l();return(c=function(t,e){return o[t-=133]})(t,e)}function l(){const t=["clear","31432UyVAXB","$text","1016118xMIgTo","_elementName","type","192658txHgfo","slice","getItems","_trackedElements","152104VFDbkm","remove","$graveyard","287952RUSdzt","nodeAfter","root","has","length","name","createRangeOn","values","getChanges","add","push","insert","attributes","getElementKey","72pjNzEu","delete","rootName","83186dOZErk","reset","_getElementKey","element","flat","get","1116sgNZJi","43970MwqkkU","elementName","set","position","_model","from"];return(l=function(){return t})()}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=141]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(619687===parseInt(e(228))/1*(-parseInt(e(205))/2)+parseInt(e(237))/3*(parseInt(e(181))/4)+parseInt(e(233))/5*(-parseInt(e(201))/6)+-parseInt(e(197))/7+parseInt(e(149))/8*(parseInt(e(160))/9)+-parseInt(e(191))/10+parseInt(e(148))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(153)]=[];[u(172)]=null;[u(235)]=null;[u(155)];[u(183)];[u(159)];static get[u(238)](){return u(166)}static get[u(214)](){return!0}static get[u(169)](){return!0}constructor(t){const e=u;super(t),this[e(155)]=new a(this[e(142)][e(210)],{elementName:e(223),getElementKey:()=>e(154)}),this[e(183)]=new a(this[e(142)][e(210)],{elementName:e(167),getElementKey:t=>t[e(156)](e(188))}),this[e(159)]=new a(this[e(142)][e(210)],{elementName:e(208),getElementKey:t=>t[e(156)](e(188))})}[u(193)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(195)][t(192)](e=>{const n=t,i=o[n(195)][n(204)][n(164)]();let s=!1;return this[n(150)](e,i)&&(s=!0),this[n(168)](e,i)&&(s=!0),this[n(146)](e,i)&&(s=!0),this[n(242)](e)&&(s=!0),this[n(220)](e)&&(s=!0),this[n(182)](e)&&(s=!0),s}),this[t(186)](o[t(195)],t(163),()=>{const e=t;o[e(157)]({isUndoable:!1},t=>{this[e(158)](t)})},{priority:t(207)}),this[t(186)](n,t(211),()=>{const e=t;this[e(153)]=[],this[e(155)][e(161)](),this[e(183)][e(161)](),this[e(159)][e(161)]()},{priority:t(144)})}[u(202)](){return this[u(172)]}[u(196)](t){const e=u;return this[e(153)][e(152)](e=>e.id===t)||null}[u(240)](){const t=u;return Array[t(239)](this[t(153)])}[u(241)](){return this[u(235)]}[u(171)](t){this[u(235)]=t}[u(231)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(153)][o(198)];i++)this[o(199)](t,i)&&(n=!0);return n}[u(221)](t,e){const o=u,n=t[o(200)](o(223),{});return t[o(147)](n,e),this[o(172)]=n,n}[u(158)](t){const e=u;if(!this[e(153)][e(198)]||this[e(172)])return;const o=this[e(153)][0][e(145)][e(176)],n=this[e(221)](t,o);for(const o of this[e(153)])o[e(234)][e(229)]||t[e(170)](o[e(234)],n,e(143));this[e(231)](t)}[u(150)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(155)][o(164)](e);if(r[o(198)]&&(this[o(172)]=r[0]),i[o(198)])if(i[o(198)]>1||this[o(172)]&&i[o(227)](t=>t!==this[o(172)])){const e=t[o(200)](o(223),{}),s=[];this[o(172)]&&s[o(189)](this[o(172)]),s[o(189)](...i),t[o(170)](e,s[0],o(179));for(const n of s)t[o(180)](t[o(230)](n),t[o(174)](e,o(143))),t[o(141)](n);this[o(172)]=e,this[o(231)](t),n=!0}else this[o(172)]=i[0];if(s[o(198)]&&o(232)===this[o(172)]?.[o(176)][o(173)]){for(const e of this[o(153)])t[o(141)](e[o(145)]),n=!0;this[o(153)]=[],this[o(172)]=null}return n}[u(168)](t,e){const o=u;let n=!1;const i=this[o(142)][o(194)][o(165)](o(206)),{inserted:s,moved:r}=this[o(159)][o(164)](e);for(const e of[...r,...s]){const s=e[o(156)](o(188)),r=this[o(196)](s);r&&(r[o(234)]=e),p(t,i,e)&&(n=!0)}return n}[u(146)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(183)][o(164)](e);for(const e of i)this[o(184)](t,e)&&(n=!0);for(const e of s)this[o(215)](t,e)&&(n=!0);for(const e of r)this[o(185)](t,e)&&(n=!0);return n}[u(220)](t){const e=u;if(!this[e(172)])return!1;let o=!1;if(this[e(172)][e(203)]!==this[e(153)][e(198)]){const n=[];for(const t of this[e(172)][e(213)]()){const i=t[e(156)](e(188));this[e(196)](i)||(n[e(217)](t),o=!0)}for(const o of n)t[e(141)](o)}const n=new Set,i=[];for(const t of this[e(172)][e(213)]()){const s=t[e(156)](e(188));n[e(216)](s)?(i[e(217)](t),o=!0):n[e(178)](s)}for(const o of i)t[e(141)](o);return this[e(172)][e(203)]||(t[e(141)](this[e(172)]),this[e(172)]=null,o=!0),o}[u(215)](t,e){const o=u;if(this[o(153)][o(152)](t=>t[o(145)]===e))return!1;let n=!1;const i=e[o(156)](o(188)),s=this[o(153)][o(177)](t=>t.id===i);-1!==s&&(t[o(141)](this[o(153)][s][o(145)]),this[o(153)][o(187)](s,1),n=!0);let r=this[o(172)]?function(t,e){const n=o;for(const o of t[n(213)]())if(o[n(156)](n(188))===e)return o;return null}(this[o(172)],i):null;r||(r=t[o(200)](o(208),{footnoteId:i}),this[o(172)]&&(t[o(170)](r,this[o(172)],o(143)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(142)][o(210)],this[o(153)],e);this[o(153)][o(187)](c,0,a);let l=c;return-1!==s&&(l=Math[o(175)](c,s)),this[o(231)](t,l)&&(n=!0),n}[u(184)](t,e){const o=u,n=this[o(153)][o(177)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(153)][n];return o(232)!==s[o(234)][o(176)][o(173)]&&(t[o(141)](s[o(234)]),i=!0),this[o(153)][o(187)](n,1),this[o(231)](t,n)&&(i=!0),i}[u(185)](t,e){const o=u,n=e[o(156)](o(188)),i=this[o(153)][o(177)](t=>t.id===n),s=this[o(153)][i];let r=!1;s[o(145)]=e,this[o(153)][o(187)](i,1);const a=m(this[o(142)][o(210)],this[o(153)],e);return this[o(153)][o(187)](a,0,s),this[o(231)](t,Math[o(175)](i,a))&&(r=!0),r}[u(199)](t,e){const o=u;if(!this[o(172)])return!1;const n=this[o(153)][e];let i;return i=this[o(235)]?this[o(235)]({footnote:n,container:this[o(172)],digits:String(this[o(153)][o(198)])[o(198)],value:e+1}):String(e+1),n[o(145)][o(156)](o(190))!=i&&(t[o(209)](o(190),i,n[o(145)]),!0)}[u(182)](t){const e=u;if(!this[e(172)]||this[e(153)][e(198)]<2)return!1;if(function(t,o){const n=e;if(t[n(198)]!==o[n(198)])return!1;for(let e=0;e<t[n(198)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(153)][e(224)](t=>t.id),Array[e(239)](this[e(172)][e(213)]())[e(224)](t=>t[e(156)](e(188)))))return!1;let o=!1;for(let n=0;n<this[e(153)][e(198)];n++){const i=this[e(153)][n],s=t[e(225)](i[e(234)]),r=t[e(174)](this[e(172)],n);s[e(151)](r)||(t[e(180)](t[e(218)](i[e(234)]),r),o=!0)}return o}[u(242)](t){const e=u;if(!this[e(153)][e(198)])return!1;const{model:o}=this[e(142)];let n=!1;for(let i=0;i<this[e(153)][e(198)]-1;i++){const s=this[e(153)][i],r=this[e(153)][i+1],a=o[e(225)](s[e(145)]),c=o[e(225)](r[e(145)]);e(162)===a[e(219)](c)&&(this[e(185)](t,s[e(145)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(203)])return!1;const i=n(e?226:222);return t[n(170)](t[n(200)](i),o),!0}function h(){const t=["move","72YjJxGl","_sortFootnoteDefinitions","_footnoteRefsTracker","_handleRemoveFootnoteReferenceById","_handleMovedFootnoteReference","listenTo","splice","footnoteId","push","footnoteCounter","6315090HXvLdV","registerPostFixer","init","config","document","getFootnote","5885173BdyEVw","length","_updateFootnoteRefCounter","createElement","109506Bcldua","getFootnotesDefinitionsObjectElement","childCount","differ","403174lLGEPw","footnotes.multiBlock","low","footnoteDefinition","setAttribute","model","set","getRootNames","getChildren","isOfficialPlugin","_handleInsertedFootnoteReference","has","unshift","createRangeOn","compareWith","_handleFootnotesDefinitionsObjectSync","_insertEmptyFootnotesDefinitionsContainer","footnoteInlineContent","footnotesDefinitions","map","createPositionBefore","paragraph","some","4xokIfa","parent","createRangeIn","_updateFootnotesCounters","$graveyard","310jrnQXM","definition","_footnoteFormatter","indexOf","101016AqmvCx","pluginName","from","getFootnotes","getFootnotesFormatter","_ensureFootnotesReferencesHaveProperOrder","remove","editor","end","high","reference","_handleFootnoteReferencesChanges","append","27860965XbchWq","3563736HWuaZJ","_handleFootnotesDefinitionsObjectChanges","isEqual","find","_footnotes","singleton","_footnoteDefsContainerTracker","getAttribute","enqueueChange","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsTracker","18pmIEIh","reset","after","change:data","getChanges","get","FootnotesTracker","footnoteRef","_handleFootnoteDefinitionsChanges","isPremiumPlugin","insert","setFootnoteFormatter","_footnotesDefinitions","rootName","createPositionAt","min","root","findIndex","add","before"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(198)])return 0;const i=t[n(225)](o);for(let o=0;o<e[n(198)];o++){const s=e[o],r=t[n(225)](s[n(145)]);if(n(179)===i[n(219)](r))return o}const s=o[n(176)];let r=-1;for(let t=e[n(198)]-1;t>=0;t--)if(e[t][n(145)][n(176)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(195)][n(212)](),c=a[n(236)](s[n(173)]),l=a[c+1];if(l)for(let t=0;t<e[n(198)];t++)if(e[t][n(145)][n(176)][n(173)]===l)return t;return e[n(198)]}function g(){const t=["checkChild","getItems","82456xVhJar","411432SbJkeA","model","selection","4735600KZamYw","createElement","change","footnoteRef","get","18aaAlJl","test","72krpuaE","FootnotesEditing","length","document","insert-footnote-command-executed-with-invalid-id","1416NMKjyC","execute","editor","string","isBlock","isEnabled","163104uJCKqA","66863lKYMzg","1664298jCqsjR","end","_moveSelectionToFootnoteDefinition","refresh","isObject","332570PpEopP","getFirstRange","footnoteId","16kRVfAa","16mvdmoY","insertObject","plugins","_getPositionToInsertFootnote"];return(g=function(){return t})()}function w(t,e){const o=g();return(w=function(t,e){return o[t-=372]})(t,e)}const y=w;!function(t){const e=w,o=t();for(;;)try{if(496853===-parseInt(e(382))/1*(-parseInt(e(391))/2)+-parseInt(e(381))/3*(-parseInt(e(392))/4)+-parseInt(e(388))/5+parseInt(e(383))/6+-parseInt(e(399))/7*(parseInt(e(409))/8)+parseInt(e(407))/9*(parseInt(e(402))/10)+parseInt(e(398))/11*(-parseInt(e(375))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[y(386)](){const t=y,e=this[t(377)][t(400)][t(373)][t(401)],o=this[t(395)](e);this[t(380)]=!!o}[y(376)](t){const e=y,{editor:o}=this,{model:n}=o,{selection:s}=n[e(373)],r=this[e(395)](s);if(!r)return;const a=o[e(394)][e(406)](e(410)),c=t?.[e(390)]??(0,i.uid)();!function(t){const o=e;return o(378)==typeof t&&t[o(372)]>0&&!/\s/[o(408)](t)&&!/^\d/[o(408)](t)}(c)?(0,i.logWarning)(e(374)):(n[e(404)](t=>{const o=e,i=t[o(403)](o(405),{footnoteId:c});n[o(393)](i,r,null)}),a[e(385)](c))}[y(395)](t){const e=y,{model:o}=this[e(377)],{schema:n}=o,i=t[e(389)]();for(const t of i[e(397)]())if(n[e(379)](t)||n[e(387)](t))return null;const s=i[e(384)];return n[e(396)](s,e(405))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1762473600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>T(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function T(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=P;function P(t,e){const o=L();return(P=function(t,e){return o[t-=273]})(t,e)}!function(t){const e=P,o=t();for(;;)try{if(147683===parseInt(e(303))/1+parseInt(e(298))/2*(parseInt(e(313))/3)+parseInt(e(316))/4+parseInt(e(315))/5+parseInt(e(326))/6+parseInt(e(293))/7+-parseInt(e(328))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(L);class _ extends t.Plugin{static get[A(280)](){return A(329)}static get[A(342)](){return[v,S.ClipboardPipeline]}static get[A(281)](){return!0}static get[A(297)](){return!0}[A(343)](){this[A(278)]()}[A(278)](){const t=A;this[t(335)](),this[t(312)]()}[A(335)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(331)](S.ClipboardPipeline),s=o[t(331)](d);this[t(300)](i,t(306),(o,i)=>{const r=t,a=D(n[r(282)](i[r(314)]));if(!a[r(308)])return;const c=s[r(288)](),l=a[r(321)]((t,o)=>{const n=r,i=c[n(341)](t=>t.id===o);if(i){const o=e[n(346)][n(307)](i[n(292)],{isClipboardPipeline:!0}),s=e[n(346)][n(337)][n(302)](o);t[i.id]=s}return t},Object[r(277)](null));i[r(284)][r(336)](r(325),JSON[r(273)](l))})}[A(312)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(345)],r=n[t(331)](S.ClipboardPipeline),a=n[t(331)](d);let c=null;this[t(300)](s[t(338)],t(319),(e,o)=>{const n=t,i=o[n(284)][n(310)](n(325));c=i?JSON[n(309)](i):null}),this[t(300)](r,t(301),(n,s)=>{const r=t,l=s[r(320)]===this[r(295)].id;l&&r(289)===s[r(304)]||o[r(311)](t=>{const n=r;let u=a[n(296)]();const f=!!u&&Array[n(340)](o[n(338)][n(318)][n(276)]())[n(287)](u);if((u&&!f||!u&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(282)](e))n.is(o(279),o(322))&&i[o(334)](n);for(const e of i)t[o(294)](e)}(t,s[n(314)]),!c)return;const{selection:d}=o[n(338)],p=d[n(299)]()[n(305)];u&&!f||(u=function(t,e){const o=n;for(const{item:n}of t[o(282)](e))if(n.is(o(279),o(322)))return n;return null}(t,s[n(314)]),u||=a[n(275)](t,p));const h=Array[n(340)](d[n(274)]())[n(290)](D),m=function(t,e,o){const s=n,r=Object[s(277)](null);for(const{item:n}of t[s(282)](e))if(n.is(s(279),s(291))){const e=n[s(327)](s(285));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(286)](s(285),r[e],n)}return r}(t,s[n(314)],t=>{const e=n;return!l||!!a[e(330)](t)&&!h[e(287)](t)});for(const[o,i]of Object[n(333)](c)){const s=m[o]||o,r=t[n(324)](n(332),{footnoteId:s}),a=e[n(346)][n(337)][n(307)](i),c=e[n(346)][n(283)](a,r);t[n(344)](c,r),t[n(339)](r,u,n(317))}c=null})})}}function D(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(279),e(291))&&o[e(323)](n[e(327)](e(285)));return Array[e(340)](o)}function L(){const t=["get","footnoteDefinition","entries","push","_handleCopyFootnotesDefinitions","setData","htmlProcessor","document","insert","from","find","requires","init","append","editing","data","stringify","getRanges","_insertEmptyFootnotesDefinitionsContainer","getSelectedBlocks","create","_defineClipboardIntegration","element","pluginName","isOfficialPlugin","createRangeIn","toModel","dataTransfer","footnoteId","setAttribute","includes","getFootnotes","drop","flatMap","footnoteRef","definition","1727607nEBdou","remove","editor","getFootnotesDefinitionsObjectElement","isPremiumPlugin","5012uIqvky","getFirstRange","listenTo","contentInsertion","toData","39976CfukTJ","method","root","outputTransformation","toView","length","parse","getData","change","_handlePasteFootnotesDefinitions","33ApBAEu","content","619430OTzoLu","1132612LBasZP","end","selection","clipboardInput","sourceEditorId","reduce","footnotesDefinitions","add","createElement","application/ckeditor5-footnotes","1045062aUIehx","getAttribute","5983008DMLQla","FootnotesClipboard","getFootnote"];return(L=function(){return t})()}var V=o(311),N=o(355),O=o(450),R=o.n(O),M=o(774),j=o.n(M),K=o(265),B=o.n(K),U=o(410),z=o.n(U),W=o(238),q=o.n(W),H=o(14),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=B().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=q();R()(H.A,J);H.A&&H.A.locals&&H.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,V.ButtonView)),e.add("menuBar:insertFootnote",Q(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Y;function $(){var t=["18674lZUExl","Footnotes","112TsRETW","90ZtlLoU","requires","2777232wImyXp","7580720xUdufM","34WMImZO","778015DgTevs","isPremiumPlugin","62975jfyGsg","isOfficialPlugin","18dhgvSE","48999SmQQEq","pluginName","101395yViFaI"];return($=function(){return t})()}function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=367]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(402395===-parseInt(e(379))/1*(parseInt(e(372))/2)+parseInt(e(369))/3*(parseInt(e(374))/4)+-parseInt(e(371))/5*(-parseInt(e(375))/6)+-parseInt(e(380))/7+-parseInt(e(377))/8*(parseInt(e(368))/9)+parseInt(e(378))/10+parseInt(e(382))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Z extends t.Plugin{static get[G(370)](){return G(373)}static get[G(376)](){return[v,_,X]}static get[G(367)](){return!0}static get[G(381)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=353]})(t,e)}function ot(){const t=["21byjxHi","447690MjkRdK","361229UClcIu","decimal","18dbAUPJ","6TgFDiT","316402nfgFhg","upper-latin","1310980faWsVr","1521396QVHICC","682232Piyxoq","5JGdmdQ","lower-latin","decimal-leading-zero","530230adINCI","lower-alpha","156HQVmbC","lower-roman","upper-alpha","upper-roman"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(261573===parseInt(e(371))/1+parseInt(e(370))/2*(parseInt(e(366))/3)+-parseInt(e(353))/4*(-parseInt(e(356))/5)+-parseInt(e(354))/6+-parseInt(e(365))/7*(parseInt(e(355))/8)+-parseInt(e(369))/9*(-parseInt(e(359))/10)+parseInt(e(367))/11*(-parseInt(e(361))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(368),tt(358),tt(357),tt(372),tt(360),tt(363),tt(362),tt(364)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=352]})(t,e)}function rt(){const t=["12354957OmWvDC","footnotesListStyle","refresh","getFootnotesDefinitionsObjectElement","setAttribute","model","value","_updateFootnotesCounters","get","195356GpyDbe","124apkSCX","4984112LDWFfp","getAttribute","isEnabled","execute","18NRVmct","plugins","5022985IUYVCc","change","1419653gsbFHh","148047uzlvlr","includes","2504528XRXBlB"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(789742===parseInt(e(357))/1+-parseInt(e(360))/2+parseInt(e(358))/3*(parseInt(e(371))/4)+parseInt(e(355))/5+-parseInt(e(353))/6*(-parseInt(e(370))/7)+-parseInt(e(372))/8+-parseInt(e(361))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(363)](){const t=it,{editor:e}=this,o=e[t(354)][t(369)](d)[t(364)]();this[t(374)]=!!o,this[t(367)]=o?.[t(373)](t(362))??null}[it(352)]({value:t}){const e=it,{editor:o}=this,n=o[e(354)][e(369)](d),i=n[e(364)]();i&&nt[e(359)](t)&&o[e(366)][e(356)](o=>{const s=e;o[s(365)](s(362),t,i),n[s(368)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=115]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(495038===-parseInt(e(120))/1+parseInt(e(126))/2*(-parseInt(e(117))/3)+parseInt(e(116))/4+parseInt(e(131))/5*(-parseInt(e(127))/6)+parseInt(e(132))/7+-parseInt(e(115))/8*(-parseInt(e(129))/9)+parseInt(e(139))/10*(parseInt(e(123))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(118)](){const t=ct,{editor:e}=this,o=e[t(134)][t(128)](d)[t(137)]();this[t(136)]=!!o,this[t(124)]=o?.[t(119)](t(121))??null}[ct(125)]({value:t}){const e=ct,{editor:o}=this,n=o[e(134)][e(128)](d),i=n[e(137)]();i&&Number[e(138)](t)&&o[e(122)][e(133)](o=>{const s=e;o[s(135)](s(121),t,i),n[s(130)](o)})}}function ft(){const t=["330oYBFCE","refresh","getAttribute","844819GHDewT","footnotesListStart","model","11FjIQPB","value","execute","10544vBfvBG","6AJBNRQ","get","36UiSxus","_updateFootnotesCounters","713485SmotER","5156494TQqlsH","change","plugins","setAttribute","isEnabled","getFootnotesDefinitionsObjectElement","isInteger","5280860htAUlO","1397272FPqTcm","396440DbsTug"];return(ft=function(){return t})()}const dt=yt;function pt(){const t=["schema","document","_definePostfixer","4302300fOCXrf","FootnotesPropertiesEditing","decimal","_updateFootnotesCounters","5226746aaNfZT","type","getAttribute","_defineSchema","footnotes.footnotesProperties.defaultStartIndex","getChildren","1505570vPoknk","viewItem","toLowerCase","consumable","createRangeOn","fromCharCode","parseInt","decimal-leading-zero","getItems","2zimYMJ","hasClass","_defineFormatter","start","toUpperCase","40irowij","hasAttribute","removeAttribute","lower-alpha","_getDefaultStartIndex","nodeAfter","1136374RDqprk","position","$text","padStart","registerPostFixer","insert","name","pluginName","init","attribute:footnotesListStyle:footnotesDefinitions","getChanges","element","isOfficialPlugin","downcast","setFootnoteFormatter","plugins","footnotesStart","list-style-type","for","footnotesDefinitions","from","toViewElement","floor","parent","element:ol","upper-roman","add","lower-latin","4882528KSIpxk","consume","footnotesListStart","mapper","getStyle","get","upper-latin","_getDefaultListStyle","item","footnotesListStyle","isNaN","_defineConverters","setAttribute","attribute:footnotesListStart:footnotesDefinitions","lower-roman","setStyle","99AGfeYn","checkAttribute","editor","max","config","upcast","find","7843992XIrdez","976638jrLxfB","isPremiumPlugin","_formatFootnoteListValue","footnotes.footnotesProperties.defaultListStyle","footnotes-list","model","requires","commands","extend","footnotesStyle","removeStyle","modelCursor","writer","differ","upper-alpha","define"];return(pt=function(){return t})()}!function(t){const e=yt,o=t();for(;;)try{if(762078===parseInt(e(409))/1*(parseInt(e(420))/2)+parseInt(e(390))/3+-parseInt(e(448))/4+parseInt(e(414))/5*(parseInt(e(472))/6)+parseInt(e(394))/7+-parseInt(e(471))/8+parseInt(e(464))/9*(-parseInt(e(400))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class ht extends t.Plugin{static get[dt(427)](){return dt(391)}static get[dt(478)](){return[v,d]}static get[dt(432)](){return!0}static get[dt(473)](){return!0}[dt(428)](){const t=dt,{editor:e}=this;e[t(468)][t(487)](t(475),t(392)),e[t(468)][t(487)](t(398),1),e[t(479)][t(446)](t(481),new at(e)),e[t(479)][t(446)](t(436),new ut(e)),this[t(397)](),this[t(459)](),this[t(411)](),this[t(389)]()}[dt(397)](){const t=dt,{editor:e}=this,{schema:o}=e[t(477)];o[t(480)](t(439),{allowAttributes:[t(457),t(450)]})}[dt(459)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(438)](t(469))[t(446)](e=>{const o=t;e.on(o(444),(t,e,n)=>{const s=o,r=e[s(401)],a=e[s(483)]?.[s(443)];r[s(410)](s(476))&&a?.is(s(431),s(439))&&(function(t,e,o,n){const i=s;if(!n[i(465)](e,i(450)))return;let r=1;const a=o[i(403)][i(449)](t,{attributes:i(412)});if(a){const e=Number[i(406)](t[i(396)](i(412)),10);Number[i(458)](e)||(r=e)}!a&&e[i(415)](i(450))||o[i(484)][i(460)](i(450),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(465)](e,i(457)))return;let r=i(392),a=!1;if(o[i(403)][i(449)](t,{attributes:i(395)})){const e={1:i(392),a:i(417),A:i(486),i:i(462),I:i(445)}[t[i(396)](i(395))];e&&(r=e),a=!0}o[i(403)][i(449)](t,{styles:i(437)})&&(r=t[i(452)](i(437)),a=!0),!a&&e[i(415)](i(457))||o[i(484)][i(460)](i(457),r,e)}(r,a,n,i))})}),o[t(438)](t(433))[t(446)](e=>{const o=t;e.on(o(461),(t,e,n)=>{const i=o;if(!n[i(403)][i(449)](e[i(456)],t[i(426)]))return;const s=mt(e[i(456)],n[i(451)]),{attributeNewValue:r}=e;null==r||1===r?n[i(484)][i(416)](i(412),s):n[i(484)][i(460)](i(412),String(r),s)}),e.on(o(429),(t,e,n)=>{const i=o;if(!n[i(403)][i(449)](e[i(456)],t[i(426)]))return;const s=mt(e[i(456)],n[i(451)]),{attributeNewValue:r}=e;r&&i(392)!==r?n[i(484)][i(463)](i(437),r,s):n[i(484)][i(482)](i(437),s)})})}[dt(389)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(435)][t(453)](d),i=this[t(455)](),s=this[t(418)]();o[t(388)][t(424)](e=>{const r=t,a=o[r(388)][r(485)][r(430)]();let c=!1;for(const t of a){if(r(425)!==t[r(395)]||r(422)===t[r(426)])continue;const n=o[r(404)](t[r(421)][r(419)]);for(const t of n[r(408)]())t.is(r(431),r(439))&&(!t[r(415)](r(450))&&o[r(387)][r(465)](t,r(450))&&(e[r(460)](r(450),s,t),c=!0),!t[r(415)](r(457))&&o[r(387)][r(465)](t,r(457))&&(e[r(460)](r(457),i,t),c=!0))}return c&&n[r(393)](e),c})}[dt(411)](){const t=dt,{editor:e}=this;e[t(435)][t(453)](d)[t(434)](e=>this[t(474)](e))}[dt(455)](){const t=dt;return this[t(466)][t(468)][t(453)](t(475))}[dt(418)](){const t=dt;return this[t(466)][t(468)][t(453)](t(398))}[dt(474)]({container:t,value:e,digits:o}){const n=dt,i=t[n(396)](n(457)),s=t[n(396)](n(450)),r=Math[n(442)](e)+(s??1)-1;switch(i){case n(407):return function(t,e){const o=n;return String(t)[o(423)](e,"0")}(r,Math[n(467)](2,o));case n(417):case n(447):return gt(r,!1);case n(486):case n(454):return gt(r,!0);case n(462):return bt(r,!1);case n(445):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(441)](t);return Array[o(440)](n[o(399)]())[o(470)](t=>t.is(o(431),"ol")&&t[o(410)](o(476)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(405)](97+t)+n,i=Math[o(442)]((i-1)/26)}return e?n[o(413)]():n}const wt=[{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 yt(t,e){const o=pt();return(yt=function(t,e){return o[t-=387]})(t,e)}function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of wt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(402)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=q();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["requires","771078rwiwWO","477937mEIlzv","2711088WFptLa","539306qjaLMA","165yaAvMU","isOfficialPlugin","14XFYPLn","isPremiumPlugin","FootnotesProperties","pluginName","1857852japboI","5352uvzNxy","2982808Mwgbxz"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=492]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(392709===parseInt(e(500))/1+parseInt(e(502))/2+parseInt(e(499))/3+parseInt(e(495))/4+-parseInt(e(503))/5*(parseInt(e(496))/6)+-parseInt(e(505))/7*(parseInt(e(497))/8)+-parseInt(e(501))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Tt extends t.Plugin{static get[Ft(494)](){return Ft(493)}static get[Ft(498)](){return[ht,Ct]}static get[Ft(504)](){return!0}static get[Ft(492)](){return!0}}function St(){var t=["332bfiShd","15565tePbsi","339238qCRQCO","9909rkrkuB","675087osxcFc","2959750YBNMOz","239283iMTMgD","11icrOxl","84LTdJSN","112758bJrQhR","216JcsAdx"];return(St=function(){return t})()}function At(t,e){var o=St();return(At=function(t,e){return o[t-=231]})(t,e)}!function(t){for(var e=At,o=t();;)try{if(137474===parseInt(e(239))/1+-parseInt(e(235))/2+-parseInt(e(237))/3+parseInt(e(233))/4*(-parseInt(e(234))/5)+parseInt(e(231))/6*(parseInt(e(241))/7)+-parseInt(e(232))/8*(-parseInt(e(236))/9)+-parseInt(e(238))/10*(-parseInt(e(240))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|