@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251111.0 → 0.0.0-nightly-20251113.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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},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],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),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:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},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:()=>Tt,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>p,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=181]})(t,e)}function c(){const t=["_getElementKey","20lKEDzt","insert","values","$text","delete","createRangeOn","getChanges","elementName","add","name","328614wbrMkL","6UUylUh","_trackedElements","root","element","461630fPwkit","clear","position","$graveyard","get","27JPvwTY","724155jCwdkn","type","_model","1034848aiVdMp","remove","nodeAfter","attributes","reset","_elementName","set","from","996666OvGXVd","rootName","42986vrbuCV","189DRSmJx","getElementKey","length","getItems","slice","230211yrIFYb","has","push","flat"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(783860===-parseInt(e(197))/1*(parseInt(e(219))/2)+parseInt(e(203))/3+-parseInt(e(208))/4*(parseInt(e(184))/5)+parseInt(e(218))/6*(parseInt(e(198))/7)+parseInt(e(187))/8+-parseInt(e(183))/9*(parseInt(e(223))/10)+parseInt(e(195))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(186)];[r(192)];[r(207)];[r(220)]=new Map;constructor(t,e){const o=r;this[o(186)]=t,this[o(192)]=e[o(215)],this[o(207)]=e[o(199)]}[r(191)](){const t=r;this[t(220)][t(224)]()}[r(214)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(209)===i[e(185)]&&e(211)!==i[e(217)]&&i[e(225)][e(189)]){const t=this[e(186)][e(213)](i[e(225)][e(189)]);for(const o of t[e(201)]()){if(!o.is(e(222),this[e(192)]))continue;const t=this[e(207)](o);n[e(204)](t)||n[e(193)](t,[]),n[e(182)](t)[e(205)](o)}}if(e(188)===i[e(185)]&&i[e(217)]===this[e(192)]){const t=this[e(207)]({getAttribute:t=>i[e(190)][e(182)](t)});o[e(216)](t)}}for(const[t,n]of this[e(220)])e(181)===n[e(221)][e(196)]&&o[e(216)](t);for(const t of o)this[e(220)][e(212)](t);for(const[t,o]of n)this[e(220)][e(193)](t,o[o[e(200)]-1]);const i=new Set;for(const[t,s]of n)o[e(204)](t)&&(i[e(216)](s[0]),s[e(200)]>1?n[e(193)](t,s[e(202)](1)):n[e(212)](t),o[e(212)](t));return{removed:Array[e(194)](o),inserted:Array[e(194)](n[e(210)]())[e(206)](),moved:Array[e(194)](i)}}}const f=d;function u(){const t=["move","1013285VLVBJa","findIndex","map","footnoteRef","_handleMovedFootnoteReference","_handleInsertedFootnoteReference","footnoteDefinition","listenTo","createRangeIn","before","getFootnotesFormatter","registerPostFixer","find","_handleFootnotesDefinitionsObjectChanges","pluginName","201479wJhegJ","footnoteId","length","934004CDKyeG","init","_handleRemoveFootnoteReferenceById","70mzxCto","rootName","3GDTdRw","compareWith","_sortFootnoteDefinitions","createElement","setFootnoteFormatter","add","footnotes.multiBlock","_footnotes","getAttribute","has","getFootnotesDefinitionsObjectElement","_ensureFootnotesReferencesHaveProperOrder","getFootnotes","getFootnote","getChildren","from","enqueueChange","256942upcxCt","_footnoteDefsContainerTracker","_ensureFootnotesDefinitionsContainerExists","_footnoteDefsTracker","getChanges","_handleFootnoteReferencesChanges","isOfficialPlugin","6ZTmRFp","FootnotesTracker","_footnotesDefinitions","footnoteInlineContent","differ","37143sdrvkO","653952DXZGrm","set","4753463BAYeEp","footnoteCounter","min","$graveyard","childCount","insert","setAttribute","push","document","model","config","reference","_insertEmptyFootnotesDefinitionsContainer","editor","high","_updateFootnoteRefCounter","low","footnotesDefinitions","_handleFootnoteDefinitionsChanges","_updateFootnotesCounters","indexOf","splice","createPositionAt","remove","some","reset","singleton","createRangeOn","_handleFootnotesDefinitionsObjectSync","getRootNames","change:data","after","_footnoteRefsTracker","definition","paragraph","append","isEqual","createPositionBefore","unshift","parent","get","_footnoteFormatter","2xxCtMU","end","root","isPremiumPlugin"];return(u=function(){return t})()}function d(t,e){const o=u();return(d=function(t,e){return o[t-=426]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(123527===-parseInt(e(450))/1*(-parseInt(e(430))/2)+-parseInt(e(458))/3*(parseInt(e(453))/4)+parseInt(e(435))/5*(-parseInt(e(482))/6)+parseInt(e(475))/7+-parseInt(e(488))/8+parseInt(e(487))/9*(-parseInt(e(456))/10)+parseInt(e(490))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(u);class p extends t.Plugin{[f(465)]=[];[f(484)]=null;[f(429)]=null;[f(476)];[f(522)];[f(478)];static get[f(449)](){return f(483)}static get[f(481)](){return!0}static get[f(433)](){return!0}constructor(t){const e=f;super(t),this[e(476)]=new l(this[e(503)][e(499)],{elementName:e(507),getElementKey:()=>e(516)}),this[e(522)]=new l(this[e(503)][e(499)],{elementName:e(438),getElementKey:t=>t[e(466)](e(451))}),this[e(478)]=new l(this[e(503)][e(499)],{elementName:e(441),getElementKey:t=>t[e(466)](e(451))})}[f(454)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(498)][t(446)](e=>{const n=t,i=o[n(498)][n(486)][n(479)]();let s=!1;return this[n(448)](e,i)&&(s=!0),this[n(508)](e,i)&&(s=!0),this[n(480)](e,i)&&(s=!0),this[n(469)](e)&&(s=!0),this[n(518)](e)&&(s=!0),this[n(460)](e)&&(s=!0),s}),this[t(442)](o[t(498)],t(520),()=>{const e=t;o[e(474)]({isUndoable:!1},t=>{this[e(477)](t)})},{priority:t(506)}),this[t(442)](n,t(489),()=>{const e=t;this[e(465)]=[],this[e(476)][e(515)](),this[e(522)][e(515)](),this[e(478)][e(515)]()},{priority:t(504)})}[f(468)](){return this[f(484)]}[f(471)](t){const e=f;return this[e(465)][e(447)](e=>e.id===t)||null}[f(470)](){const t=f;return Array[t(473)](this[t(465)])}[f(445)](){return this[f(429)]}[f(462)](t){this[f(429)]=t}[f(509)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(465)][o(452)];i++)this[o(505)](t,i)&&(n=!0);return n}[f(502)](t,e){const o=f,n=t[o(461)](o(507),{});return t[o(525)](n,e),this[o(484)]=n,n}[f(477)](t){const e=f;if(!this[e(465)][e(452)]||this[e(484)])return;const o=this[e(465)][0][e(501)][e(432)],n=this[e(502)](t,o);for(const o of this[e(465)])o[e(523)][e(427)]||t[e(495)](o[e(523)],n,e(431));this[e(509)](t)}[f(448)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(476)][o(479)](e);if(r[o(452)]&&(this[o(484)]=r[0]),i[o(452)])if(i[o(452)]>1||this[o(484)]&&i[o(514)](t=>t!==this[o(484)])){const e=t[o(461)](o(507),{}),s=[];this[o(484)]&&s[o(497)](this[o(484)]),s[o(497)](...i),t[o(495)](e,s[0],o(444));for(const n of s)t[o(434)](t[o(443)](n),t[o(512)](e,o(431))),t[o(513)](n);this[o(484)]=e,this[o(509)](t),n=!0}else this[o(484)]=i[0];if(s[o(452)]&&o(493)===this[o(484)]?.[o(432)][o(457)]){for(const e of this[o(465)])t[o(513)](e[o(501)]),n=!0;this[o(465)]=[],this[o(484)]=null}return n}[f(508)](t,e){const o=f;let n=!1;const i=this[o(503)][o(500)][o(428)](o(464)),{inserted:s,moved:r}=this[o(478)][o(479)](e);for(const e of[...r,...s]){const s=e[o(466)](o(451)),r=this[o(471)](s);r&&(r[o(523)]=e),h(t,i,e)&&(n=!0)}return n}[f(480)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(522)][o(479)](e);for(const e of i)this[o(455)](t,e)&&(n=!0);for(const e of s)this[o(440)](t,e)&&(n=!0);for(const e of r)this[o(439)](t,e)&&(n=!0);return n}[f(518)](t){const e=f;if(!this[e(484)])return!1;let o=!1;if(this[e(484)][e(494)]!==this[e(465)][e(452)]){const n=[];for(const t of this[e(484)][e(472)]()){const i=t[e(466)](e(451));this[e(471)](i)||(n[e(426)](t),o=!0)}for(const o of n)t[e(513)](o)}const n=new Set,i=[];for(const t of this[e(484)][e(472)]()){const s=t[e(466)](e(451));n[e(467)](s)?(i[e(426)](t),o=!0):n[e(463)](s)}for(const o of i)t[e(513)](o);return this[e(484)][e(494)]||(t[e(513)](this[e(484)]),this[e(484)]=null,o=!0),o}[f(440)](t,e){const o=f;if(this[o(465)][o(447)](t=>t[o(501)]===e))return!1;let n=!1;const i=e[o(466)](o(451)),s=this[o(465)][o(436)](t=>t.id===i);-1!==s&&(t[o(513)](this[o(465)][s][o(501)]),this[o(465)][o(511)](s,1),n=!0);let r=this[o(484)]?function(t,e){const n=o;for(const o of t[n(472)]())if(o[n(466)](n(451))===e)return o;return null}(this[o(484)],i):null;r||(r=t[o(461)](o(441),{footnoteId:i}),this[o(484)]&&(t[o(495)](r,this[o(484)],o(431)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(503)][o(499)],this[o(465)],e);this[o(465)][o(511)](c,0,a);let l=c;return-1!==s&&(l=Math[o(492)](c,s)),this[o(509)](t,l)&&(n=!0),n}[f(455)](t,e){const o=f,n=this[o(465)][o(436)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(465)][n];return o(493)!==s[o(523)][o(432)][o(457)]&&(t[o(513)](s[o(523)]),i=!0),this[o(465)][o(511)](n,1),this[o(509)](t,n)&&(i=!0),i}[f(439)](t,e){const o=f,n=e[o(466)](o(451)),i=this[o(465)][o(436)](t=>t.id===n),s=this[o(465)][i];let r=!1;s[o(501)]=e,this[o(465)][o(511)](i,1);const a=m(this[o(503)][o(499)],this[o(465)],e);return this[o(465)][o(511)](a,0,s),this[o(509)](t,Math[o(492)](i,a))&&(r=!0),r}[f(505)](t,e){const o=f;if(!this[o(484)])return!1;const n=this[o(465)][e];let i;return i=this[o(429)]?this[o(429)]({footnote:n,container:this[o(484)],digits:String(this[o(465)][o(452)])[o(452)],value:e+1}):String(e+1),n[o(501)][o(466)](o(491))!=i&&(t[o(496)](o(491),i,n[o(501)]),!0)}[f(460)](t){const e=f;if(!this[e(484)]||this[e(465)][e(452)]<2)return!1;if(function(t,o){const n=e;if(t[n(452)]!==o[n(452)])return!1;for(let e=0;e<t[n(452)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(465)][e(437)](t=>t.id),Array[e(473)](this[e(484)][e(472)]())[e(437)](t=>t[e(466)](e(451)))))return!1;let o=!1;for(let n=0;n<this[e(465)][e(452)];n++){const i=this[e(465)][n],s=t[e(527)](i[e(523)]),r=t[e(512)](this[e(484)],n);s[e(526)](r)||(t[e(434)](t[e(517)](i[e(523)]),r),o=!0)}return o}[f(469)](t){const e=f;if(!this[e(465)][e(452)])return!1;const{model:o}=this[e(503)];let n=!1;for(let i=0;i<this[e(465)][e(452)]-1;i++){const s=this[e(465)][i],r=this[e(465)][i+1],a=o[e(527)](s[e(501)]),c=o[e(527)](r[e(501)]);e(521)===a[e(459)](c)&&(this[e(439)](t,s[e(501)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(494)])return!1;const i=n(e?524:485);return t[n(495)](t[n(461)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(452)])return 0;const i=t[n(527)](o);for(let o=0;o<e[n(452)];o++){const s=e[o],r=t[n(527)](s[n(501)]);if(n(444)===i[n(459)](r))return o}const s=o[n(432)];let r=-1;for(let t=e[n(452)]-1;t>=0;t--)if(e[t][n(501)][n(432)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(498)][n(519)](),c=a[n(510)](s[n(457)]),l=a[c+1];if(l)for(let t=0;t<e[n(452)];t++)if(e[t][n(501)][n(432)][n(457)]===l)return t;return e[n(452)]}function g(){const t=["isBlock","getItems","isEnabled","test","insertObject","33368oKMreG","editor","isObject","1202124XnBvBs","change","string","length","1340624AJASkJ","_getPositionToInsertFootnote","document","getFirstRange","364hNXhwF","createElement","model","footnoteRef","FootnotesEditing","selection","3163968wzOlRf","footnoteId","execute","refresh","_moveSelectionToFootnoteDefinition","checkChild","plugins","insert-footnote-command-executed-with-invalid-id","207274bGrEVU","6476410gpCufT","796794KSBoHV","get","end"];return(g=function(){return t})()}const w=y;function y(t,e){const o=g();return(y=function(t,e){return o[t-=227]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(690911===parseInt(e(253))/1+parseInt(e(236))/2+-parseInt(e(238))/3+parseInt(e(228))/4+-parseInt(e(237))/5+-parseInt(e(249))/6+-parseInt(e(257))/7*(-parseInt(e(246))/8))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(g);class b extends t.Command{[w(231)](){const t=w,e=this[t(247)][t(259)][t(255)][t(227)],o=this[t(254)](e);this[t(243)]=!!o}[w(230)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(255)],r=this[e(254)](s);if(!r)return;const a=o[e(234)][e(239)](e(261)),c=t?.[e(229)]??(0,i.uid)();!function(t){const o=e;return o(251)==typeof t&&t[o(252)]>0&&!/\s/[o(244)](t)&&!/^\d/[o(244)](t)}(c)?(0,i.logWarning)(e(235)):(n[e(250)](t=>{const o=e,i=t[o(258)](o(260),{footnoteId:c});n[o(245)](i,r,null)}),a[e(232)](c))}[w(254)](t){const e=w,{model:o}=this[e(247)],{schema:n}=o,i=t[e(256)]();for(const t of i[e(242)]())if(n[e(241)](t)||n[e(248)](t))return null;const s=i[e(240)];return n[e(233)](s,e(260))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[p]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function 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])],u(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 f=(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(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=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(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](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])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{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])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1762819200;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(p).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(p).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 P=o(331);const S=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=271]})(t,e)}function _(){const t=["listenTo","isOfficialPlugin","application/ckeditor5-footnotes","isPremiumPlugin","requires","getFirstRange","footnoteId","get","2712YXTOge","clipboardInput","flatMap","footnoteRef","stringify","remove","190crMffc","selection","footnoteDefinition","parse","insert","includes","_handleCopyFootnotesDefinitions","toView","258147Qdjyzs","dataTransfer","data","document","7QkuiUL","_defineClipboardIntegration","toModel","getData","method","element","getSelectedBlocks","FootnotesClipboard","append","reduce","49260gKMKbt","add","getFootnote","length","getFootnotesDefinitionsObjectElement","toData","getFootnotes","getAttribute","root","228xCGQgM","content","footnotesDefinitions","462KXjhJH","drop","contentInsertion","entries","sourceEditorId","find","5937YQkRKI","setAttribute","getRanges","editor","createElement","definition","3406568vGrmOd","create","change","htmlProcessor","15244838TPybAO","editing","outputTransformation","11597WjGput","187451ujuPyK","_handlePasteFootnotesDefinitions","end","push","26FqFIJx","8XOhsQb","_insertEmptyFootnotesDefinitionsContainer","init","setData","from","createRangeIn","pluginName"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(678099===parseInt(e(330))/1*(-parseInt(e(336))/2)+-parseInt(e(317))/3*(parseInt(e(271))/4)+parseInt(e(299))/5*(-parseInt(e(311))/6)+-parseInt(e(289))/7*(-parseInt(e(323))/8)+parseInt(e(285))/9*(parseInt(e(277))/10)+parseInt(e(331))/11*(-parseInt(e(308))/12)+parseInt(e(335))/13*(parseInt(e(327))/14))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[S(342)](){return S(296)}static get[S(347)](){return[v,P.ClipboardPipeline]}static get[S(344)](){return!0}static get[S(346)](){return!0}[S(338)](){this[S(290)]()}[S(290)](){const t=S;this[t(283)](),this[t(332)]()}[S(283)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(350)](P.ClipboardPipeline),s=o[t(350)](p);this[t(343)](i,t(329),(o,i)=>{const r=t,a=L(n[r(341)](i[r(309)]));if(!a[r(302)])return;const c=s[r(305)](),l=a[r(298)]((t,o)=>{const n=r,i=c[n(316)](t=>t.id===o);if(i){const o=e[n(287)][n(284)](i[n(322)],{isClipboardPipeline:!0}),s=e[n(287)][n(326)][n(304)](o);t[i.id]=s}return t},Object[r(324)](null));i[r(286)][r(339)](r(345),JSON[r(275)](l))})}[S(332)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(328)],r=n[t(350)](P.ClipboardPipeline),a=n[t(350)](p);let c=null;this[t(343)](s[t(288)],t(272),(e,o)=>{const n=t,i=o[n(286)][n(292)](n(345));c=i?JSON[n(280)](i):null}),this[t(343)](r,t(313),(n,s)=>{const r=t,l=s[r(315)]===this[r(320)].id;l&&r(312)===s[r(293)]||o[r(325)](t=>{const n=r;let f=a[n(303)]();const u=!!f&&Array[n(340)](o[n(288)][n(278)][n(295)]())[n(282)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(341)](e))n.is(o(294),o(310))&&i[o(334)](n);for(const e of i)t[o(276)](e)}(t,s[n(309)]),!c)return;const{selection:d}=o[n(288)],p=d[n(348)]()[n(307)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(341)](e))if(n.is(o(294),o(310)))return n;return null}(t,s[n(309)]),f||=a[n(337)](t,p));const h=Array[n(340)](d[n(319)]())[n(273)](L),m=function(t,e,o){const s=n,r=Object[s(324)](null);for(const{item:n}of t[s(341)](e))if(n.is(s(294),s(274))){const e=n[s(306)](s(349));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(318)](s(349),r[e],n)}return r}(t,s[n(309)],t=>{const e=n;return!l||!!a[e(301)](t)&&!h[e(282)](t)});for(const[o,i]of Object[n(314)](c)){const s=m[o]||o,r=t[n(321)](n(279),{footnoteId:s}),a=e[n(287)][n(326)][n(284)](i),c=e[n(287)][n(291)](a,r);t[n(297)](c,r),t[n(281)](r,f,n(333))}c=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(294),e(274))&&o[e(300)](n[e(306)](e(349)));return Array[e(340)](o)}var O=o(311),V=o(355),N=o(450),R=o.n(N),K=o(774),j=o.n(K),M=o(265),B=o.n(M),z=o(410),U=o.n(z),H=o(238),W=o.n(H),G=o(14),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=B().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=W();R()(G.A,J);G.A&&G.A.locals&&G.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,O.ButtonView)),e.add("menuBar:insertFootnote",q(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Q;function Q(t,e){var o=Z();return(Q=function(t,e){return o[t-=292]})(t,e)}!function(t){for(var e=Q,o=t();;)try{if(832948===-parseInt(e(298))/1*(-parseInt(e(303))/2)+-parseInt(e(302))/3+parseInt(e(305))/4+parseInt(e(301))/5*(-parseInt(e(304))/6)+parseInt(e(292))/7*(-parseInt(e(299))/8)+-parseInt(e(300))/9+parseInt(e(294))/10*(parseInt(e(306))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class $ extends t.Plugin{static get[Y(293)](){return Y(307)}static get[Y(295)](){return[v,D,X]}static get[Y(297)](){return!0}static get[Y(296)](){return!0}}function Z(){var t=["isOfficialPlugin","103KDqxla","5327816QSjrLa","13272606CYWiQq","8250645NPeXEf","220632rNFqaH","16342BeprMF","6fSTjtq","3827540SiXbgb","66HxEBZN","Footnotes","7jxiMJR","pluginName","4831390nExyEB","requires","isPremiumPlugin"];return(Z=function(){return t})()}function tt(t,e){const o=ot();return(tt=function(t,e){return o[t-=113]})(t,e)}const et=tt;function ot(){const t=["426000eMTthA","lower-alpha","decimal","upper-latin","1830zjgYHs","2EhXqlY","2331666erUFhY","4912IbFfPd","upper-roman","2494917utpPDR","lower-roman","515842mzuYTd","32752DwWcyz","10RxFAgp","upper-alpha","decimal-leading-zero","lower-latin","5908155ANigfQ","77XYAwvw"];return(ot=function(){return t})()}!function(t){const e=tt,o=t();for(;;)try{if(262347===parseInt(e(119))/1*(-parseInt(e(125))/2)+-parseInt(e(114))/3+-parseInt(e(121))/4*(-parseInt(e(118))/5)+-parseInt(e(120))/6+parseInt(e(113))/7*(parseInt(e(126))/8)+parseInt(e(123))/9*(parseInt(e(127))/10)+parseInt(e(131))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[et(116),et(129),et(130),et(117),et(115),et(128),et(124),et(122)],it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=487]})(t,e)}function rt(){const t=["3aMwUxz","isEnabled","13GPdbLO","45978756IUGwXs","footnotesListStyle","9YkDgIV","getAttribute","5978929CnnHJb","716173oxagHn","includes","plugins","198751GACPVZ","execute","174nGHtXt","get","1517806yHgNay","model","4935whiqFx","getFootnotesDefinitionsObjectElement","629984LKpFWx","refresh","setAttribute","value","548oxEivB","_updateFootnotesCounters","change","10PvNEcl"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(775584===-parseInt(e(490))/1+parseInt(e(497))/2*(-parseInt(e(509))/3)+-parseInt(e(505))/4*(parseInt(e(499))/5)+-parseInt(e(495))/6*(parseInt(e(493))/7)+-parseInt(e(501))/8*(parseInt(e(487))/9)+parseInt(e(508))/10*(-parseInt(e(489))/11)+parseInt(e(512))/12*(parseInt(e(511))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(502)](){const t=it,{editor:e}=this,o=e[t(492)][t(496)](p)[t(500)]();this[t(510)]=!!o,this[t(504)]=o?.[t(488)](t(513))??null}[it(494)]({value:t}){const e=it,{editor:o}=this,n=o[e(492)][e(496)](p),i=n[e(500)]();i&&nt[e(491)](t)&&o[e(498)][e(507)](o=>{const s=e;o[s(503)](s(513),t,i),n[s(506)](o)})}}const ct=ft;function lt(){const t=["162995YGKTGT","3384Nvckrj","value","plugins","footnotesListStart","get","20SijPWn","12KqitTq","isInteger","1413313nttdca","260252Rdabky","1542249mTIKRr","isEnabled","_updateFootnotesCounters","10oPzEHt","707bMdnVE","240486xUiifP","execute","change","model","338064jrjGyc","3YQmMEr","getFootnotesDefinitionsObjectElement","refresh","getAttribute","setAttribute"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=121]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(170625===parseInt(e(146))/1+parseInt(e(136))/2*(-parseInt(e(121))/3)+-parseInt(e(132))/4*(parseInt(e(126))/5)+parseInt(e(142))/6+-parseInt(e(141))/7*(-parseInt(e(127))/8)+parseInt(e(137))/9*(parseInt(e(140))/10)+-parseInt(e(135))/11*(parseInt(e(133))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(123)](){const t=ct,{editor:e}=this,o=e[t(129)][t(131)](p)[t(122)]();this[t(138)]=!!o,this[t(128)]=o?.[t(124)](t(130))??null}[ct(143)]({value:t}){const e=ct,{editor:o}=this,n=o[e(129)][e(131)](p),i=n[e(122)]();i&&Number[e(134)](t)&&o[e(145)][e(144)](o=>{const s=e;o[s(125)](s(130),t,i),n[s(139)](o)})}}const dt=gt;!function(t){const e=gt,o=t();for(;;)try{if(364058===-parseInt(e(282))/1*(parseInt(e(271))/2)+-parseInt(e(330))/3+parseInt(e(341))/4+-parseInt(e(295))/5*(-parseInt(e(296))/6)+-parseInt(e(319))/7+-parseInt(e(346))/8+-parseInt(e(351))/9*(-parseInt(e(266))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class pt extends t.Plugin{static get[dt(290)](){return dt(263)}static get[dt(316)](){return[v,p]}static get[dt(257)](){return!0}static get[dt(339)](){return!0}[dt(278)](){const t=dt,{editor:e}=this;e[t(350)][t(332)](t(307),t(293)),e[t(350)][t(332)](t(343),1),e[t(262)][t(297)](t(258),new at(e)),e[t(262)][t(297)](t(261),new ut(e)),this[t(287)](),this[t(273)](),this[t(294)](),this[t(349)]()}[dt(287)](){const t=dt,{editor:e}=this,{schema:o}=e[t(331)];o[t(309)](t(313),{allowAttributes:[t(280),t(353)]})}[dt(273)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(289)](t(334))[t(297)](e=>{const o=t;e.on(o(267),(t,e,n)=>{const s=o,r=e[s(260)],a=e[s(311)]?.[s(264)];r[s(272)](s(259))&&a?.is(s(274),s(313))&&(function(t,e,o,n){const i=s;if(!n[i(279)](e,i(353)))return;let r=1;const a=o[i(276)][i(356)](t,{attributes:i(318)});if(a){const e=Number[i(321)](t[i(320)](i(318)),10);Number[i(265)](e)||(r=e)}!a&&e[i(277)](i(353))||o[i(285)][i(270)](i(353),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(279)](e,i(280)))return;let r=i(293),a=!1;if(o[i(276)][i(356)](t,{attributes:i(301)})){const e={1:i(293),a:i(344),A:i(336),i:i(310),I:i(354)}[t[i(320)](i(301))];e&&(r=e),a=!0}o[i(276)][i(356)](t,{styles:i(333)})&&(r=t[i(286)](i(333)),a=!0),!a&&e[i(277)](i(280))||o[i(285)][i(270)](i(280),r,e)}(r,a,n,i))})}),o[t(289)](t(306))[t(297)](e=>{const o=t;e.on(o(303),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;null==r||1===r?n[i(285)][i(327)](i(318),s):n[i(285)][i(270)](i(318),String(r),s)}),e.on(o(268),(t,e,n)=>{const i=o;if(!n[i(276)][i(356)](e[i(281)],t[i(269)]))return;const s=ht(e[i(281)],n[i(337)]),{attributeNewValue:r}=e;r&&i(293)!==r?n[i(285)][i(324)](i(333),r,s):n[i(285)][i(288)](i(333),s)})})}[dt(349)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(302)][t(328)](p),i=this[t(317)](),s=this[t(345)]();o[t(283)][t(299)](e=>{const r=t,a=o[r(283)][r(304)][r(340)]();let c=!1;for(const t of a){if(r(325)!==t[r(301)]||r(326)===t[r(269)])continue;const n=o[r(292)](t[r(300)][r(308)]);for(const t of n[r(322)]())t.is(r(274),r(313))&&(!t[r(277)](r(353))&&o[r(312)][r(279)](t,r(353))&&(e[r(270)](r(353),s,t),c=!0),!t[r(277)](r(280))&&o[r(312)][r(279)](t,r(280))&&(e[r(270)](r(280),i,t),c=!0))}return c&&n[r(323)](e),c})}[dt(294)](){const t=dt,{editor:e}=this;e[t(302)][t(328)](p)[t(298)](e=>this[t(357)](e))}[dt(317)](){const t=dt;return this[t(329)][t(350)][t(328)](t(307))}[dt(345)](){const t=dt;return this[t(329)][t(350)][t(328)](t(343))}[dt(357)]({container:t,value:e,digits:o}){const n=dt,i=t[n(320)](n(280)),s=t[n(320)](n(353)),r=Math[n(338)](e)+(s??1)-1;switch(i){case n(348):return function(t,e){const o=n;return String(t)[o(284)](e,"0")}(r,Math[n(314)](2,o));case n(344):case n(291):return mt(r,!1);case n(336):case n(342):return mt(r,!0);case n(310):return yt(r,!1);case n(354):return yt(r,!0);default:return String(r)}}}function ht(t,e){const o=dt,n=e[o(352)](t);return Array[o(275)](n[o(315)]())[o(335)](t=>t.is(o(274),"ol")&&t[o(272)](o(259)))}function mt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(347)](97+t)+n,i=Math[o(338)]((i-1)/26)}return e?n[o(355)]():n}function gt(t,e){const o=bt();return(gt=function(t,e){return o[t-=257]})(t,e)}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=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(305)]()}function bt(){const t=["FootnotesPropertiesEditing","parent","isNaN","90SOYHgW","element:ol","attribute:footnotesListStyle:footnotesDefinitions","name","setAttribute","136iTEsxz","hasClass","_defineConverters","element","from","consumable","hasAttribute","init","checkAttribute","footnotesListStyle","item","7283QFegtJ","document","padStart","writer","getStyle","_defineSchema","removeStyle","for","pluginName","lower-latin","createRangeOn","decimal","_defineFormatter","5fHcnGz","38322OtHpOm","add","setFootnoteFormatter","registerPostFixer","position","type","plugins","attribute:footnotesListStart:footnotesDefinitions","differ","toLowerCase","downcast","footnotes.footnotesProperties.defaultListStyle","nodeAfter","extend","lower-roman","modelCursor","schema","footnotesDefinitions","max","getChildren","requires","_getDefaultListStyle","start","4442781BBYPEQ","getAttribute","parseInt","getItems","_updateFootnotesCounters","setStyle","insert","$text","removeAttribute","get","editor","1640832ATEfnN","model","define","list-style-type","upcast","find","upper-alpha","mapper","floor","isPremiumPlugin","getChanges","710156LWlBZG","upper-latin","footnotes.footnotesProperties.defaultStartIndex","lower-alpha","_getDefaultStartIndex","5805888ACBMGH","fromCharCode","decimal-leading-zero","_definePostfixer","config","2582739KiZJSO","toViewElement","footnotesListStart","upper-roman","toUpperCase","consume","_formatFootnoteListValue","isOfficialPlugin","footnotesStyle","footnotes-list","viewItem","footnotesStart","commands"];return(bt=function(){return t})()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(945),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();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[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.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:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});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}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["28TJjeoT","isPremiumPlugin","293296eOZktr","810357TANwKS","8270vvwWaV","130848tQenzp","5380596oIlrDx","15FtdNPG","isOfficialPlugin","11hrnhOW","585236zzaXsd","pluginName","2OpTCZr","requires","1791pidsHw","94902zrCyVh","FootnotesProperties"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=246]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(230476===-parseInt(e(252))/1+parseInt(e(262))/2*(parseInt(e(253))/3)+parseInt(e(260))/4*(-parseInt(e(257))/5)+-parseInt(e(248))/6*(-parseInt(e(250))/7)+parseInt(e(255))/8+parseInt(e(247))/9*(parseInt(e(254))/10)+-parseInt(e(259))/11*(-parseInt(e(256))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Tt extends t.Plugin{static get[Ft(261)](){return Ft(249)}static get[Ft(246)](){return[pt,Ct]}static get[Ft(258)](){return!0}static get[Ft(251)](){return!0}}function Pt(){var t=["56cPBMdo","4809238VmxtOU","371724auHQDA","16UNemJc","6kXwjLL","6096700hfJQAW","123507nACPQu","32762fUYKpS","542130MxEWio","584919wisRRR"];return(Pt=function(){return t})()}function St(t,e){var o=Pt();return(St=function(t,e){return o[t-=339]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(472806===-parseInt(e(345))/1+parseInt(e(341))/2*(parseInt(e(344))/3)+-parseInt(e(340))/4+-parseInt(e(346))/5+parseInt(e(342))/6*(-parseInt(e(339))/7)+-parseInt(e(348))/8*(-parseInt(e(347))/9)+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(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 f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},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],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}},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:()=>Y,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=239]})(t,e)}const a=r;function c(){const t=["type","getElementKey","nodeAfter","80296IShNCV","elementName","_elementName","getChanges","push","insert","from","265NrllCk","add","_trackedElements","flat","set","position","get","1116UWOnPd","$text","clear","name","getItems","_getElementKey","remove","element","attributes","3152664CWEScT","1324376ZIhvml","root","12496071uZTeaw","values","slice","32501570FmILrK","118185HOVMqJ","_model","86hfjnIP","rootName","reset","createRangeOn","$graveyard","length","43448AoaJHI","has","delete"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(951937===parseInt(e(244))/1+parseInt(e(252))/2*(-parseInt(e(250))/3)+-parseInt(e(258))/4*(-parseInt(e(271))/5)+parseInt(e(243))/6+-parseInt(e(246))/7+parseInt(e(264))/8*(-parseInt(e(278))/9)+parseInt(e(249))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(251)];[a(266)];[a(239)];[a(273)]=new Map;constructor(t,e){const o=a;this[o(251)]=t,this[o(266)]=e[o(265)],this[o(239)]=e[o(262)]}[a(254)](){const t=a;this[t(273)][t(280)]()}[a(267)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(269)===i[e(261)]&&e(279)!==i[e(281)]&&i[e(276)][e(263)]){const t=this[e(251)][e(255)](i[e(276)][e(263)]);for(const o of t[e(282)]()){if(!o.is(e(241),this[e(266)]))continue;const t=this[e(239)](o);n[e(259)](t)||n[e(275)](t,[]),n[e(277)](t)[e(268)](o)}}if(e(240)===i[e(261)]&&i[e(281)]===this[e(266)]){const t=this[e(239)]({getAttribute:t=>i[e(242)][e(277)](t)});o[e(272)](t)}}for(const[t,n]of this[e(273)])e(256)===n[e(245)][e(253)]&&o[e(272)](t);for(const t of o)this[e(273)][e(260)](t);for(const[t,o]of n)this[e(273)][e(275)](t,o[o[e(257)]-1]);const i=new Set;for(const[t,s]of n)o[e(259)](t)&&(i[e(272)](s[0]),s[e(257)]>1?n[e(275)](t,s[e(248)](1)):n[e(260)](t),o[e(260)](t));return{removed:Array[e(270)](o),inserted:Array[e(270)](n[e(247)]())[e(274)](),moved:Array[e(270)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=187]})(t,e)}function d(){const t=["singleton","has","getChildren","length","getFootnote","getChanges","createRangeIn","setFootnoteFormatter","append","high","2832235RxCKkQ","some","footnoteId","paragraph","_updateFootnotesCounters","push","splice","_handleFootnotesDefinitionsObjectSync","_footnoteRefsTracker","model","isPremiumPlugin","58042ArWvzs","editor","369WNeuuW","56jVaqAC","end","differ","_ensureFootnotesDefinitionsContainerExists","_ensureFootnotesReferencesHaveProperOrder","_handleRemoveFootnoteReferenceById","min","11CTBzvb","createElement","before","insert","footnoteDefinition","after","config","document","getAttribute","from","_footnoteDefsTracker","_updateFootnoteRefCounter","12jYPWlh","registerPostFixer","footnoteRef","_footnotes","12349524EyDUao","FootnotesTracker","footnoteInlineContent","_footnoteFormatter","get","footnotes.multiBlock","_handleInsertedFootnoteReference","childCount","listenTo","isOfficialPlugin","footnotesDefinitions","reference","definition","_footnotesDefinitions","368056YdnAbg","reset","createPositionAt","createRangeOn","_insertEmptyFootnotesDefinitionsContainer","remove","68808awFblY","92760tMnxNk","_handleFootnoteDefinitionsChanges","_sortFootnoteDefinitions","init","low","_footnoteDefsContainerTracker","map","unshift","find","findIndex","getFootnotesFormatter","compareWith","_handleFootnoteReferencesChanges","change:data","root","$graveyard","set","createPositionBefore","footnoteCounter","parent","move","enqueueChange","getFootnotes","indexOf","setAttribute","getFootnotesDefinitionsObjectElement","isEqual","getRootNames","13iZodZY","pluginName","add","rootName","494984clGeQh","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectChanges"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(297264===-parseInt(e(207))/1*(parseInt(e(235))/2)+parseInt(e(257))/3*(-parseInt(e(211))/4)+parseInt(e(224))/5+parseInt(e(281))/6*(-parseInt(e(238))/7)+parseInt(e(275))/8+parseInt(e(237))/9*(-parseInt(e(282))/10)+-parseInt(e(245))/11*(-parseInt(e(261))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(260)]=[];[f(274)]=null;[f(264)]=null;[f(287)];[f(232)];[f(255)];static get[f(208)](){return f(262)}static get[f(270)](){return!0}static get[f(234)](){return!0}constructor(t){const e=f;super(t),this[e(287)]=new l(this[e(236)][e(233)],{elementName:e(271),getElementKey:()=>e(214)}),this[e(232)]=new l(this[e(236)][e(233)],{elementName:e(259),getElementKey:t=>t[e(253)](e(226))}),this[e(255)]=new l(this[e(236)][e(233)],{elementName:e(249),getElementKey:t=>t[e(253)](e(226))})}[f(285)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(252)][t(258)](e=>{const n=t,i=o[n(252)][n(240)][n(219)]();let s=!1;return this[n(213)](e,i)&&(s=!0),this[n(283)](e,i)&&(s=!0),this[n(191)](e,i)&&(s=!0),this[n(242)](e)&&(s=!0),this[n(231)](e)&&(s=!0),this[n(284)](e)&&(s=!0),s}),this[t(269)](o[t(252)],t(192),()=>{const e=t;o[e(200)]({isUndoable:!1},t=>{this[e(241)](t)})},{priority:t(286)}),this[t(269)](n,t(195),()=>{const e=t;this[e(260)]=[],this[e(287)][e(276)](),this[e(232)][e(276)](),this[e(255)][e(276)]()},{priority:t(223)})}[f(204)](){return this[f(274)]}[f(218)](t){const e=f;return this[e(260)][e(187)](e=>e.id===t)||null}[f(201)](){const t=f;return Array[t(254)](this[t(260)])}[f(189)](){return this[f(264)]}[f(221)](t){this[f(264)]=t}[f(228)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(260)][o(217)];i++)this[o(256)](t,i)&&(n=!0);return n}[f(279)](t,e){const o=f,n=t[o(246)](o(271),{});return t[o(222)](n,e),this[o(274)]=n,n}[f(241)](t){const e=f;if(!this[e(260)][e(217)]||this[e(274)])return;const o=this[e(260)][0][e(272)][e(193)],n=this[e(279)](t,o);for(const o of this[e(260)])o[e(273)][e(198)]||t[e(248)](o[e(273)],n,e(239));this[e(228)](t)}[f(213)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(287)][o(219)](e);if(r[o(217)]&&(this[o(274)]=r[0]),i[o(217)])if(i[o(217)]>1||this[o(274)]&&i[o(225)](t=>t!==this[o(274)])){const e=t[o(246)](o(271),{}),s=[];this[o(274)]&&s[o(229)](this[o(274)]),s[o(229)](...i),t[o(248)](e,s[0],o(247));for(const n of s)t[o(199)](t[o(220)](n),t[o(277)](e,o(239))),t[o(280)](n);this[o(274)]=e,this[o(228)](t),n=!0}else this[o(274)]=i[0];if(s[o(217)]&&o(194)===this[o(274)]?.[o(193)][o(210)]){for(const e of this[o(260)])t[o(280)](e[o(272)]),n=!0;this[o(260)]=[],this[o(274)]=null}return n}[f(283)](t,e){const o=f;let n=!1;const i=this[o(236)][o(251)][o(265)](o(266)),{inserted:s,moved:r}=this[o(255)][o(219)](e);for(const e of[...r,...s]){const s=e[o(253)](o(226)),r=this[o(218)](s);r&&(r[o(273)]=e),p(t,i,e)&&(n=!0)}return n}[f(191)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(232)][o(219)](e);for(const e of i)this[o(243)](t,e)&&(n=!0);for(const e of s)this[o(267)](t,e)&&(n=!0);for(const e of r)this[o(212)](t,e)&&(n=!0);return n}[f(231)](t){const e=f;if(!this[e(274)])return!1;let o=!1;if(this[e(274)][e(268)]!==this[e(260)][e(217)]){const n=[];for(const t of this[e(274)][e(216)]()){const i=t[e(253)](e(226));this[e(218)](i)||(n[e(289)](t),o=!0)}for(const o of n)t[e(280)](o)}const n=new Set,i=[];for(const t of this[e(274)][e(216)]()){const s=t[e(253)](e(226));n[e(215)](s)?(i[e(289)](t),o=!0):n[e(209)](s)}for(const o of i)t[e(280)](o);return this[e(274)][e(268)]||(t[e(280)](this[e(274)]),this[e(274)]=null,o=!0),o}[f(267)](t,e){const o=f;if(this[o(260)][o(187)](t=>t[o(272)]===e))return!1;let n=!1;const i=e[o(253)](o(226)),s=this[o(260)][o(188)](t=>t.id===i);-1!==s&&(t[o(280)](this[o(260)][s][o(272)]),this[o(260)][o(230)](s,1),n=!0);let r=this[o(274)]?function(t,e){const n=o;for(const o of t[n(216)]())if(o[n(253)](n(226))===e)return o;return null}(this[o(274)],i):null;r||(r=t[o(246)](o(249),{footnoteId:i}),this[o(274)]&&(t[o(248)](r,this[o(274)],o(239)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(236)][o(233)],this[o(260)],e);this[o(260)][o(230)](c,0,a);let l=c;return-1!==s&&(l=Math[o(244)](c,s)),this[o(228)](t,l)&&(n=!0),n}[f(243)](t,e){const o=f,n=this[o(260)][o(188)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(260)][n];return o(194)!==s[o(273)][o(193)][o(210)]&&(t[o(280)](s[o(273)]),i=!0),this[o(260)][o(230)](n,1),this[o(228)](t,n)&&(i=!0),i}[f(212)](t,e){const o=f,n=e[o(253)](o(226)),i=this[o(260)][o(188)](t=>t.id===n),s=this[o(260)][i];let r=!1;s[o(272)]=e,this[o(260)][o(230)](i,1);const a=m(this[o(236)][o(233)],this[o(260)],e);return this[o(260)][o(230)](a,0,s),this[o(228)](t,Math[o(244)](i,a))&&(r=!0),r}[f(256)](t,e){const o=f;if(!this[o(274)])return!1;const n=this[o(260)][e];let i;return i=this[o(264)]?this[o(264)]({footnote:n,container:this[o(274)],digits:String(this[o(260)][o(217)])[o(217)],value:e+1}):String(e+1),n[o(272)][o(253)](o(197))!=i&&(t[o(203)](o(197),i,n[o(272)]),!0)}[f(284)](t){const e=f;if(!this[e(274)]||this[e(260)][e(217)]<2)return!1;if(function(t,o){const n=e;if(t[n(217)]!==o[n(217)])return!1;for(let e=0;e<t[n(217)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(260)][e(288)](t=>t.id),Array[e(254)](this[e(274)][e(216)]())[e(288)](t=>t[e(253)](e(226)))))return!1;let o=!1;for(let n=0;n<this[e(260)][e(217)];n++){const i=this[e(260)][n],s=t[e(196)](i[e(273)]),r=t[e(277)](this[e(274)],n);s[e(205)](r)||(t[e(199)](t[e(278)](i[e(273)]),r),o=!0)}return o}[f(242)](t){const e=f;if(!this[e(260)][e(217)])return!1;const{model:o}=this[e(236)];let n=!1;for(let i=0;i<this[e(260)][e(217)]-1;i++){const s=this[e(260)][i],r=this[e(260)][i+1],a=o[e(196)](s[e(272)]),c=o[e(196)](r[e(272)]);e(250)===a[e(190)](c)&&(this[e(212)](t,s[e(272)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(268)])return!1;const i=n(e?227:263);return t[n(248)](t[n(246)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(217)])return 0;const i=t[n(196)](o);for(let o=0;o<e[n(217)];o++){const s=e[o],r=t[n(196)](s[n(272)]);if(n(247)===i[n(190)](r))return o}const s=o[n(193)];let r=-1;for(let t=e[n(217)]-1;t>=0;t--)if(e[t][n(272)][n(193)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(252)][n(206)](),c=a[n(202)](s[n(210)]),l=a[c+1];if(l)for(let t=0;t<e[n(217)];t++)if(e[t][n(272)][n(193)][n(210)]===l)return t;return e[n(217)]}const g=y;function w(){const t=["footnoteId","test","27hrIJJc","3072384awBmeD","isObject","5337710ygDpQg","23217wBdxkh","226VktCUO","footnoteRef","getFirstRange","getItems","33960790UdvSts","insert-footnote-command-executed-with-invalid-id","string","isBlock","224WdnybM","createElement","length","FootnotesEditing","_getPositionToInsertFootnote","end","insertObject","get","model","execute","selection","isEnabled","checkChild","refresh","33895WqPUos","plugins","editor","change","1232176WJEROV","681768tQNKfu","document","_moveSelectionToFootnoteDefinition"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=270]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(482768===-parseInt(e(306))/1+parseInt(e(279))/2*(-parseInt(e(278))/3)+-parseInt(e(287))/4*(-parseInt(e(301))/5)+-parseInt(e(275))/6+-parseInt(e(277))/7+parseInt(e(305))/8*(-parseInt(e(274))/9)+parseInt(e(283))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(300)](){const t=g,e=this[t(303)][t(295)][t(270)][t(297)],o=this[t(291)](e);this[t(298)]=!!o}[g(296)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(270)],r=this[e(291)](s);if(!r)return;const a=o[e(302)][e(294)](e(290)),c=t?.[e(272)]??(0,i.uid)();!function(t){const o=e;return o(285)==typeof t&&t[o(289)]>0&&!/\s/[o(273)](t)&&!/^\d/[o(273)](t)}(c)?(0,i.logWarning)(e(284)):(n[e(304)](t=>{const o=e,i=t[o(288)](o(280),{footnoteId:c});n[o(293)](i,r,null)}),a[e(271)](c))}[g(291)](t){const e=g,{model:o}=this[e(303)],{schema:n}=o,i=t[e(281)]();for(const t of i[e(282)]())if(n[e(286)](t)||n[e(276)](t))return null;const s=i[e(292)];return n[e(299)](s,e(280))?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])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1762992e3;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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view: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 P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=A;function A(t,e){const o=D();return(A=function(t,e){return o[t-=280]})(t,e)}function D(){const t=["init","outputTransformation","element","definition","document","1786428FaNGgq","change","toView","68hQXPfJ","includes","remove","sourceEditorId","getRanges","append","editing","toData","data","_handleCopyFootnotesDefinitions","createRangeIn","stringify","push","reduce","setAttribute","get","_defineClipboardIntegration","createElement","getFirstRange","create","isOfficialPlugin","getData","editor","footnoteDefinition","htmlProcessor","_handlePasteFootnotesDefinitions","toModel","isPremiumPlugin","insert","getFootnote","getFootnotesDefinitionsObjectElement","parse","footnoteRef","requires","footnoteId","entries","add","getFootnotes","5910520ivBIXY","getAttribute","find","method","3486690BFvLWo","contentInsertion","length","root","flatMap","end","selection","1672307JGrkOx","footnotesDefinitions","26982HiVUJc","pluginName","from","application/ckeditor5-footnotes","1000MkPbDk","FootnotesClipboard","drop","getSelectedBlocks","clipboardInput","listenTo","325048FPfCUO","dataTransfer","125427XowQpM","setData","_insertEmptyFootnotesDefinitionsContainer","content"];return(D=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(451681===parseInt(e(296))/1+-parseInt(e(307))/2+-parseInt(e(298))/3*(-parseInt(e(310))/4)+-parseInt(e(290))/5*(-parseInt(e(286))/6)+-parseInt(e(284))/7+-parseInt(e(348))/8+parseInt(e(352))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[T(287)](){return T(291)}static get[T(343)](){return[v,S.ClipboardPipeline]}static get[T(330)](){return!0}static get[T(337)](){return!0}[T(302)](){this[T(326)]()}[T(326)](){const t=T;this[t(319)](),this[t(335)]()}[T(319)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(325)](S.ClipboardPipeline),s=o[t(325)](h);this[t(295)](i,t(303),(o,i)=>{const r=t,a=L(n[r(320)](i[r(301)]));if(!a[r(354)])return;const c=s[r(347)](),l=a[r(323)]((t,o)=>{const n=r,i=c[n(350)](t=>t.id===o);if(i){const o=e[n(318)][n(309)](i[n(305)],{isClipboardPipeline:!0}),s=e[n(318)][n(334)][n(317)](o);t[i.id]=s}return t},Object[r(329)](null));i[r(297)][r(299)](r(289),JSON[r(321)](l))})}[T(335)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(316)],r=n[t(325)](S.ClipboardPipeline),a=n[t(325)](h);let c=null;this[t(295)](s[t(306)],t(294),(e,o)=>{const n=t,i=o[n(297)][n(331)](n(289));c=i?JSON[n(341)](i):null}),this[t(295)](r,t(353),(n,s)=>{const r=t,l=s[r(313)]===this[r(332)].id;l&&r(292)===s[r(351)]||o[r(308)](t=>{const n=r;let f=a[n(340)]();const u=!!f&&Array[n(288)](o[n(306)][n(283)][n(293)]())[n(311)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(320)](e))n.is(o(304),o(285))&&i[o(322)](n);for(const e of i)t[o(312)](e)}(t,s[n(301)]),!c)return;const{selection:d}=o[n(306)],h=d[n(328)]()[n(280)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(320)](e))if(n.is(o(304),o(285)))return n;return null}(t,s[n(301)]),f||=a[n(300)](t,h));const p=Array[n(288)](d[n(314)]())[n(281)](L),m=function(t,e,o){const s=n,r=Object[s(329)](null);for(const{item:n}of t[s(320)](e))if(n.is(s(304),s(342))){const e=n[s(349)](s(344));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(324)](s(344),r[e],n)}return r}(t,s[n(301)],t=>{const e=n;return!l||!!a[e(339)](t)&&!p[e(311)](t)});for(const[o,i]of Object[n(345)](c)){const s=m[o]||o,r=t[n(327)](n(333),{footnoteId:s}),a=e[n(318)][n(334)][n(309)](i),c=e[n(318)][n(336)](a,r);t[n(315)](c,r),t[n(338)](r,f,n(282))}c=null})})}}function L(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(304),e(342))&&o[e(346)](n[e(349)](e(344)));return Array[e(288)](o)}var V=o(311),N=o(355),O=o(450),R=o.n(O),K=o(774),M=o.n(K),j=o(265),B=o.n(j),U=o(410),z=o.n(U),W=o(238),H=o.n(W),q=o(14),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=B().bind(null,"head"),J.domAPI=M(),J.insertStyleElement=H();R()(q.A,J);q.A&&q.A.locals&&q.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",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=$;function Z(){var t=["pluginName","566781cvbfJI","3309345RkQfnD","isOfficialPlugin","Footnotes","316970Lwrtty","599992uEUzXT","73019eKiuIm","4415xmrVvU","isPremiumPlugin","requires","14UVQiST","477258RVkOpL","928vuEtfP"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=324]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(113813===parseInt(e(333))/1+parseInt(e(331))/2+-parseInt(e(327))/3+parseInt(e(325))/4*(parseInt(e(334))/5)+parseInt(e(324))/6*(parseInt(e(337))/7)+parseInt(e(332))/8+-parseInt(e(328))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class Y extends t.Plugin{static get[G(326)](){return G(330)}static get[G(336)](){return[v,_,X]}static get[G(329)](){return!0}static get[G(335)](){return!0}}function tt(t,e){const o=et();return(tt=function(t,e){return o[t-=195]})(t,e)}function et(){const t=["upper-latin","lower-latin","13230460Zbhnad","7164479tsbEJr","decimal","upper-roman","lower-alpha","lower-roman","5664270kwqAFq","981439BmoXLC","18uvrIgA","1503936wMlgMi","upper-alpha","1221672EvzUKW","6aKCUKB","2KOfcKE","8766784bQmJhL","decimal-leading-zero"];return(et=function(){return t})()}const ot=tt;!function(t){const e=tt,o=t();for(;;)try{if(804338===-parseInt(e(206))/1*(-parseInt(e(212))/2)+-parseInt(e(210))/3+-parseInt(e(208))/4+parseInt(e(205))/5*(parseInt(e(211))/6)+parseInt(e(200))/7+parseInt(e(195))/8+parseInt(e(207))/9*(-parseInt(e(199))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const nt=[ot(201),ot(196),ot(198),ot(197),ot(203),ot(209),ot(204),ot(202)],it=rt;function st(){const t=["refresh","get","plugins","isEnabled","change","includes","setAttribute","_updateFootnotesCounters","314178SzbLlV","value","model","getFootnotesDefinitionsObjectElement","8406020VrfuUf","getAttribute","176bQtfGI","4193036YzzuRd","4017015riDxxN","footnotesListStyle","521478DPBIkb","7ZNMAvs","execute","3113262VpDPwX","15wKWhUs","59195540sLSzrE"];return(st=function(){return t})()}function rt(t,e){const o=st();return(rt=function(t,e){return o[t-=486]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(802172===parseInt(e(498))/1*(-parseInt(e(487))/2)+-parseInt(e(495))/3+-parseInt(e(494))/4+parseInt(e(501))/5*(-parseInt(e(500))/6)+parseInt(e(491))/7+-parseInt(e(493))/8*(parseInt(e(497))/9)+parseInt(e(502))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(st);class at extends t.Command{[it(503)](){const t=it,{editor:e}=this,o=e[t(505)][t(504)](h)[t(490)]();this[t(506)]=!!o,this[t(488)]=o?.[t(492)](t(496))??null}[it(499)]({value:t}){const e=it,{editor:o}=this,n=o[e(505)][e(504)](h),i=n[e(490)]();i&&nt[e(508)](t)&&o[e(489)][e(507)](o=>{const s=e;o[s(509)](s(496),t,i),n[s(486)](o)})}}const ct=lt;function lt(t,e){const o=ft();return(lt=function(t,e){return o[t-=366]})(t,e)}function ft(){const t=["14ogFCvN","get","isEnabled","setAttribute","plugins","isInteger","footnotesListStart","16228AajRpV","32719224qPfddz","change","getAttribute","refresh","8980QGkqAF","execute","value","getFootnotesDefinitionsObjectElement","3868290pjoHMA","250126vZwOEU","model","5FSveSv","14168896EMWuxi","965nNgcTJ","7173PfgPBg","_updateFootnotesCounters","1369224rIsBrT","11irKvMa"];return(ft=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(995860===parseInt(e(366))/1*(-parseInt(e(390))/2)+-parseInt(e(389))/3+parseInt(e(380))/4*(parseInt(e(368))/5)+-parseInt(e(371))/6*(-parseInt(e(373))/7)+-parseInt(e(367))/8+parseInt(e(369))/9*(parseInt(e(385))/10)+-parseInt(e(372))/11*(-parseInt(e(381))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class ut extends t.Command{[ct(384)](){const t=ct,{editor:e}=this,o=e[t(377)][t(374)](h)[t(388)]();this[t(375)]=!!o,this[t(387)]=o?.[t(383)](t(379))??null}[ct(386)]({value:t}){const e=ct,{editor:o}=this,n=o[e(377)][e(374)](h),i=n[e(388)]();i&&Number[e(378)](t)&&o[e(391)][e(382)](o=>{const s=e;o[s(376)](s(379),t,i),n[s(370)](o)})}}function dt(){const t=["decimal-leading-zero","hasClass","init","toLowerCase","9RYbmRm","upper-roman","911792LpDxaT","664539deJLum","parseInt","schema","element:ol","_defineConverters","document","isPremiumPlugin","getAttribute","viewItem","footnotesStart","requires","decimal","padStart","footnotesDefinitions","lower-alpha","nodeAfter","consume","_getDefaultStartIndex","config","footnotes-list","setFootnoteFormatter","floor","list-style-type","getChildren","attribute:footnotesListStyle:footnotesDefinitions","downcast","_getDefaultListStyle","footnotes.footnotesProperties.defaultStartIndex","_updateFootnotesCounters","attribute:footnotesListStart:footnotesDefinitions","removeStyle","lower-latin","fromCharCode","writer","plugins","_defineFormatter","setStyle","max","type","registerPostFixer","isOfficialPlugin","lower-roman","for","item","parent","_formatFootnoteListValue","137206dPluCK","getStyle","insert","commands","editor","toViewElement","add","footnotesStyle","checkAttribute","upper-alpha","10pIAWvT","from","toUpperCase","_defineSchema","9MbPtkS","getItems","2282784gHnokF","3556250SLSoqD","850904YzrGnz","removeAttribute","FootnotesPropertiesEditing","pluginName","extend","$text","name","2416662aEcMnK","consumable","isNaN","setAttribute","hasAttribute","footnotes.footnotesProperties.defaultListStyle","getChanges","differ","mapper","find","footnotesListStart","upper-latin","_definePostfixer","position","start","footnotesListStyle","model","modelCursor","upcast","createRangeOn","get","element","define"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=260]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(433218===-parseInt(e(346))/1*(-parseInt(e(294))/2)+-parseInt(e(349))/3+parseInt(e(312))/4*(-parseInt(e(304))/5)+parseInt(e(319))/6+parseInt(e(348))/7+parseInt(e(310))/8+-parseInt(e(308))/9*(parseInt(e(311))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(315)](){return ht(314)}static get[ht(359)](){return[v,h]}static get[ht(288)](){return!0}static get[ht(355)](){return!0}[ht(344)](){const t=ht,{editor:e}=this;e[t(266)][t(341)](t(324),t(360)),e[t(266)][t(341)](t(275),1),e[t(297)][t(300)](t(301),new at(e)),e[t(297)][t(300)](t(358),new ut(e)),this[t(307)](),this[t(353)](),this[t(283)](),this[t(331)]()}[ht(307)](){const t=ht,{editor:e}=this,{schema:o}=e[t(335)];o[t(316)](t(261),{allowAttributes:[t(334),t(329)]})}[ht(353)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(290)](t(337))[t(300)](e=>{const o=t;e.on(o(352),(t,e,n)=>{const s=o,r=e[s(357)],a=e[s(336)]?.[s(292)];r[s(343)](s(267))&&a?.is(s(340),s(261))&&(function(t,e,o,n){const i=s;if(!n[i(302)](e,i(329)))return;let r=1;const a=o[i(320)][i(264)](t,{attributes:i(333)});if(a){const e=Number[i(350)](t[i(356)](i(333)),10);Number[i(321)](e)||(r=e)}!a&&e[i(323)](i(329))||o[i(281)][i(322)](i(329),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(302)](e,i(334)))return;let r=i(360),a=!1;if(o[i(320)][i(264)](t,{attributes:i(286)})){const e={1:i(360),a:i(262),A:i(303),i:i(289),I:i(347)}[t[i(356)](i(286))];e&&(r=e),a=!0}o[i(320)][i(264)](t,{styles:i(270)})&&(r=t[i(295)](i(270)),a=!0),!a&&e[i(323)](i(334))||o[i(281)][i(322)](i(334),r,e)}(r,a,n,i))})}),o[t(290)](t(273))[t(300)](e=>{const o=t;e.on(o(277),(t,e,n)=>{const i=o;if(!n[i(320)][i(264)](e[i(291)],t[i(318)]))return;const s=gt(e[i(291)],n[i(327)]),{attributeNewValue:r}=e;null==r||1===r?n[i(281)][i(313)](i(333),s):n[i(281)][i(322)](i(333),String(r),s)}),e.on(o(272),(t,e,n)=>{const i=o;if(!n[i(320)][i(264)](e[i(291)],t[i(318)]))return;const s=gt(e[i(291)],n[i(327)]),{attributeNewValue:r}=e;r&&i(360)!==r?n[i(281)][i(284)](i(270),r,s):n[i(281)][i(278)](i(270),s)})})}[ht(331)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(282)][t(339)](h),i=this[t(274)](),s=this[t(265)]();o[t(354)][t(287)](e=>{const r=t,a=o[r(354)][r(326)][r(325)]();let c=!1;for(const t of a){if(r(296)!==t[r(286)]||r(317)===t[r(318)])continue;const n=o[r(338)](t[r(332)][r(263)]);for(const t of n[r(309)]())t.is(r(340),r(261))&&(!t[r(323)](r(329))&&o[r(351)][r(302)](t,r(329))&&(e[r(322)](r(329),s,t),c=!0),!t[r(323)](r(334))&&o[r(351)][r(302)](t,r(334))&&(e[r(322)](r(334),i,t),c=!0))}return c&&n[r(276)](e),c})}[ht(283)](){const t=ht,{editor:e}=this;e[t(282)][t(339)](h)[t(268)](e=>this[t(293)](e))}[ht(274)](){const t=ht;return this[t(298)][t(266)][t(339)](t(324))}[ht(265)](){const t=ht;return this[t(298)][t(266)][t(339)](t(275))}[ht(293)]({container:t,value:e,digits:o}){const n=ht,i=t[n(356)](n(334)),s=t[n(356)](n(329)),r=Math[n(269)](e)+(s??1)-1;switch(i){case n(342):return function(t,e){const o=n;return String(t)[o(260)](e,"0")}(r,Math[n(285)](2,o));case n(262):case n(279):return wt(r,!1);case n(303):case n(330):return wt(r,!0);case n(289):return bt(r,!1);case n(347):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(299)](t);return Array[o(305)](n[o(271)]())[o(328)](t=>t.is(o(340),"ol")&&t[o(343)](o(267)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(280)](97+t)+n,i=Math[o(269)]((i-1)/26)}return e?n[o(306)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(345)]()}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();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=["343792BIjjzE","isPremiumPlugin","3565620smLgVX","989385HOdsSk","455580IKzDkE","19712HLMqwX","931yPHxUE","568465aGZmXe","pluginName","4OfFwuT","FootnotesProperties","requires","70BfNxib","isOfficialPlugin","2187207dxqsci"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=466]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(382093===parseInt(e(475))/1+parseInt(e(468))/2+-parseInt(e(471))/3*(-parseInt(e(477))/4)+parseInt(e(472))/5+parseInt(e(470))/6+-parseInt(e(474))/7*(-parseInt(e(473))/8)+-parseInt(e(467))/9*(parseInt(e(480))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Ft(476)](){return Ft(478)}static get[Ft(479)](){return[mt,Ct]}static get[Ft(466)](){return!0}static get[Ft(469)](){return!0}}function St(t,e){var o=Tt();return(St=function(t,e){return o[t-=202]})(t,e)}function Tt(){var t=["24iTRaay","1690gzahoN","156mlMybL","357110xZHywG","535233URnrpn","2qRfhsh","478683QMQMDd","12mFiNZM","3736wBKHSe","2659895XPTHOV","204sdDVkJ","17611UTtFmz","1012068sLWivi"];return(Tt=function(){return t})()}!function(t){for(var e=St,o=t();;)try{if(412612===-parseInt(e(207))/1*(-parseInt(e(208))/2)+-parseInt(e(213))/3*(parseInt(e(211))/4)+-parseInt(e(206))/5*(-parseInt(e(210))/6)+parseInt(e(212))/7+parseInt(e(203))/8*(parseInt(e(209))/9)+parseInt(e(204))/10*(parseInt(e(214))/11)+-parseInt(e(202))/12*(parseInt(e(205))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
|