@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251215.0 → 0.0.0-nightly-20251216.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.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -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={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],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}}}},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:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>ht,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);function r(t,e){const o=a();return(r=function(t,e){return o[t-=398]})(t,e)}function a(){const t=["attributes","rootName","nodeAfter","15180dEHoXE","position","getItems","push","get","$text","length","set","clear","4696wGfXmJ","slice","getElementKey","elementName","name","flat","24770746SXwdyF","125pVsGNA","from","1689eHtykk","root","values","183486IOJrOy","9794650TjrkQa","451064uACOBl","_elementName","add","has","6330086FmHKfj","_model","$graveyard","reset","insert","createRangeOn","91GFEgiX","remove","144iUvJHM","type","_getElementKey","delete","getChanges","element","_trackedElements"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(539794===-parseInt(e(412))/1*(-parseInt(e(424))/2)+-parseInt(e(442))/3*(parseInt(e(433))/4)+-parseInt(e(440))/5*(parseInt(e(400))/6)+parseInt(e(406))/7+parseInt(e(402))/8*(-parseInt(e(414))/9)+-parseInt(e(401))/10+parseInt(e(439))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(407)];[c(403)];[c(416)];[c(420)]=new Map;constructor(t,e){const o=c;this[o(407)]=t,this[o(403)]=e[o(436)],this[o(416)]=e[o(435)]}[c(409)](){const t=c;this[t(420)][t(432)]()}[c(418)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(410)===i[e(415)]&&e(429)!==i[e(437)]&&i[e(425)][e(423)]){const t=this[e(407)][e(411)](i[e(425)][e(423)]);for(const o of t[e(426)]()){if(!o.is(e(419),this[e(403)]))continue;const t=this[e(416)](o);n[e(405)](t)||n[e(431)](t,[]),n[e(428)](t)[e(427)](o)}}if(e(413)===i[e(415)]&&i[e(437)]===this[e(403)]){const t=this[e(416)]({getAttribute:t=>i[e(421)][e(428)](t)});o[e(404)](t)}}for(const[t,n]of this[e(420)])e(408)===n[e(398)][e(422)]&&o[e(404)](t);for(const t of o)this[e(420)][e(417)](t);for(const[t,o]of n)this[e(420)][e(431)](t,o[o[e(430)]-1]);const i=new Set;for(const[t,s]of n)o[e(405)](t)&&(i[e(404)](s[0]),s[e(430)]>1?n[e(431)](t,s[e(434)](1)):n[e(417)](t),o[e(417)](t));return{removed:Array[e(441)](o),inserted:Array[e(441)](n[e(399)]())[e(438)](),moved:Array[e(441)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=310]})(t,e)}function d(){const t=["reset","has","before","remove","footnotesDefinitions","_sortFootnoteDefinitions","splice","_insertEmptyFootnotesDefinitionsContainer","unshift","getChildren","_updateFootnoteRefCounter","indexOf","_handleFootnoteReferencesChanges","rootName","footnoteInlineContent","1867zeKbrQ","insert","_updateFootnotesCounters","differ","591552gLvZza","length","enqueueChange","some","getFootnote","low","compareWith","_footnoteDefsTracker","isPremiumPlugin","after","getAttribute","footnoteCounter","1266gBzoiX","21CoNbIn","_ensureFootnotesDefinitionsContainerExists","listenTo","change:data","isEqual","push","FootnotesTracker","_ensureFootnotesReferencesHaveProperOrder","$graveyard","childCount","_footnotesDefinitions","min","singleton","338646nJzERi","getChanges","root","createRangeOn","set","getFootnotesDefinitionsObjectElement","setAttribute","definition","pluginName","isOfficialPlugin","1640BdLMph","init","34038AfZNKZ","from","_handleInsertedFootnoteReference","_footnoteFormatter","move","createPositionAt","find","301560BumUzn","footnoteDefinition","3224288wBuezS","paragraph","_handleFootnotesDefinitionsObjectSync","_handleRemoveFootnoteReferenceById","_footnoteDefsContainerTracker","5773360jGvlGg","setFootnoteFormatter","385dMNNAw","_handleFootnoteDefinitionsChanges","parent","footnoteRef","getRootNames","get","createRangeIn","editor","reference","getFootnotes","getFootnotesFormatter","findIndex","125BAOzbY","registerPostFixer","footnotes.multiBlock","document","append","config","createPositionBefore","model","_handleFootnotesDefinitionsObjectChanges","high","map","add","createElement","end","_handleMovedFootnoteReference","_footnoteRefsTracker","footnoteId","_footnotes"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(726252===parseInt(e(361))/1*(parseInt(e(377))/2)+-parseInt(e(365))/3+parseInt(e(314))/4+parseInt(e(328))/5*(-parseInt(e(391))/6)+parseInt(e(378))/7*(parseInt(e(412))/8)+parseInt(e(403))/9*(-parseInt(e(401))/10)+parseInt(e(316))/11*(-parseInt(e(410))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class p extends t.Plugin{[f(345)]=[];[f(388)]=null;[f(406)]=null;[f(313)];[f(343)];[f(372)];static get[f(399)](){return f(384)}static get[f(400)](){return!0}static get[f(373)](){return!0}constructor(t){const e=f;super(t),this[e(313)]=new l(this[e(323)][e(335)],{elementName:e(350),getElementKey:()=>e(390)}),this[e(343)]=new l(this[e(323)][e(335)],{elementName:e(319),getElementKey:t=>t[e(375)](e(344))}),this[e(372)]=new l(this[e(323)][e(335)],{elementName:e(411),getElementKey:t=>t[e(375)](e(344))})}[f(402)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(331)][t(329)](e=>{const n=t,i=o[n(331)][n(364)][n(392)]();let s=!1;return this[n(336)](e,i)&&(s=!0),this[n(317)](e,i)&&(s=!0),this[n(358)](e,i)&&(s=!0),this[n(385)](e)&&(s=!0),this[n(311)](e)&&(s=!0),this[n(351)](e)&&(s=!0),s}),this[t(380)](o[t(331)],t(381),()=>{const e=t;o[e(367)]({isUndoable:!1},t=>{this[e(379)](t)})},{priority:t(370)}),this[t(380)](n,t(395),()=>{const e=t;this[e(345)]=[],this[e(313)][e(346)](),this[e(343)][e(346)](),this[e(372)][e(346)]()},{priority:t(337)})}[f(396)](){return this[f(388)]}[f(369)](t){const e=f;return this[e(345)][e(409)](e=>e.id===t)||null}[f(325)](){const t=f;return Array[t(404)](this[t(345)])}[f(326)](){return this[f(406)]}[f(315)](t){this[f(406)]=t}[f(363)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(345)][o(366)];i++)this[o(356)](t,i)&&(n=!0);return n}[f(353)](t,e){const o=f,n=t[o(340)](o(350),{});return t[o(332)](n,e),this[o(388)]=n,n}[f(379)](t){const e=f;if(!this[e(345)][e(366)]||this[e(388)])return;const o=this[e(345)][0][e(324)][e(393)],n=this[e(353)](t,o);for(const o of this[e(345)])o[e(398)][e(318)]||t[e(362)](o[e(398)],n,e(341));this[e(363)](t)}[f(336)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(313)][o(392)](e);if(r[o(366)]&&(this[o(388)]=r[0]),i[o(366)])if(i[o(366)]>1||this[o(388)]&&i[o(368)](t=>t!==this[o(388)])){const e=t[o(340)](o(350),{}),s=[];this[o(388)]&&s[o(383)](this[o(388)]),s[o(383)](...i),t[o(362)](e,s[0],o(348));for(const n of s)t[o(407)](t[o(322)](n),t[o(408)](e,o(341))),t[o(349)](n);this[o(388)]=e,this[o(363)](t),n=!0}else this[o(388)]=i[0];if(s[o(366)]&&o(386)===this[o(388)]?.[o(393)][o(359)]){for(const e of this[o(345)])t[o(349)](e[o(324)]),n=!0;this[o(345)]=[],this[o(388)]=null}return n}[f(317)](t,e){const o=f;let n=!1;const i=this[o(323)][o(333)][o(321)](o(330)),{inserted:s,moved:r}=this[o(372)][o(392)](e);for(const e of[...r,...s]){const s=e[o(375)](o(344)),r=this[o(369)](s);r&&(r[o(398)]=e),h(t,i,e)&&(n=!0)}return n}[f(358)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(343)][o(392)](e);for(const e of i)this[o(312)](t,e)&&(n=!0);for(const e of s)this[o(405)](t,e)&&(n=!0);for(const e of r)this[o(342)](t,e)&&(n=!0);return n}[f(311)](t){const e=f;if(!this[e(388)])return!1;let o=!1;if(this[e(388)][e(387)]!==this[e(345)][e(366)]){const n=[];for(const t of this[e(388)][e(355)]()){const i=t[e(375)](e(344));this[e(369)](i)||(n[e(354)](t),o=!0)}for(const o of n)t[e(349)](o)}const n=new Set,i=[];for(const t of this[e(388)][e(355)]()){const s=t[e(375)](e(344));n[e(347)](s)?(i[e(354)](t),o=!0):n[e(339)](s)}for(const o of i)t[e(349)](o);return this[e(388)][e(387)]||(t[e(349)](this[e(388)]),this[e(388)]=null,o=!0),o}[f(405)](t,e){const o=f;if(this[o(345)][o(409)](t=>t[o(324)]===e))return!1;let n=!1;const i=e[o(375)](o(344)),s=this[o(345)][o(327)](t=>t.id===i);-1!==s&&(t[o(349)](this[o(345)][s][o(324)]),this[o(345)][o(352)](s,1),n=!0);let r=this[o(388)]?function(t,e){const n=o;for(const o of t[n(355)]())if(o[n(375)](n(344))===e)return o;return null}(this[o(388)],i):null;r||(r=t[o(340)](o(411),{footnoteId:i}),this[o(388)]&&(t[o(362)](r,this[o(388)],o(341)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(323)][o(335)],this[o(345)],e);this[o(345)][o(352)](c,0,a);let l=c;return-1!==s&&(l=Math[o(389)](c,s)),this[o(363)](t,l)&&(n=!0),n}[f(312)](t,e){const o=f,n=this[o(345)][o(327)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(345)][n];return o(386)!==s[o(398)][o(393)][o(359)]&&(t[o(349)](s[o(398)]),i=!0),this[o(345)][o(352)](n,1),this[o(363)](t,n)&&(i=!0),i}[f(342)](t,e){const o=f,n=e[o(375)](o(344)),i=this[o(345)][o(327)](t=>t.id===n),s=this[o(345)][i];let r=!1;s[o(324)]=e,this[o(345)][o(352)](i,1);const a=m(this[o(323)][o(335)],this[o(345)],e);return this[o(345)][o(352)](a,0,s),this[o(363)](t,Math[o(389)](i,a))&&(r=!0),r}[f(356)](t,e){const o=f;if(!this[o(388)])return!1;const n=this[o(345)][e];let i;return i=this[o(406)]?this[o(406)]({footnote:n,container:this[o(388)],digits:String(this[o(345)][o(366)])[o(366)],value:e+1}):String(e+1),n[o(324)][o(375)](o(376))!=i&&(t[o(397)](o(376),i,n[o(324)]),!0)}[f(351)](t){const e=f;if(!this[e(388)]||this[e(345)][e(366)]<2)return!1;if(function(t,o){const n=e;if(t[n(366)]!==o[n(366)])return!1;for(let e=0;e<t[n(366)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(345)][e(338)](t=>t.id),Array[e(404)](this[e(388)][e(355)]())[e(338)](t=>t[e(375)](e(344)))))return!1;let o=!1;for(let n=0;n<this[e(345)][e(366)];n++){const i=this[e(345)][n],s=t[e(334)](i[e(398)]),r=t[e(408)](this[e(388)],n);s[e(382)](r)||(t[e(407)](t[e(394)](i[e(398)]),r),o=!0)}return o}[f(385)](t){const e=f;if(!this[e(345)][e(366)])return!1;const{model:o}=this[e(323)];let n=!1;for(let i=0;i<this[e(345)][e(366)]-1;i++){const s=this[e(345)][i],r=this[e(345)][i+1],a=o[e(334)](s[e(324)]),c=o[e(334)](r[e(324)]);e(374)===a[e(371)](c)&&(this[e(342)](t,s[e(324)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(387)])return!1;const i=n(e?310:360);return t[n(362)](t[n(340)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(366)])return 0;const i=t[n(334)](o);for(let o=0;o<e[n(366)];o++){const s=e[o],r=t[n(334)](s[n(324)]);if(n(348)===i[n(371)](r))return o}const s=o[n(393)];let r=-1;for(let t=e[n(366)]-1;t>=0;t--)if(e[t][n(324)][n(393)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(331)][n(320)](),c=a[n(357)](s[n(359)]),l=a[c+1];if(l)for(let t=0;t<e[n(366)];t++)if(e[t][n(324)][n(393)][n(359)]===l)return t;return e[n(366)]}const g=y;function w(){const t=["5878568lIiPnP","isBlock","getItems","148994trvKmu","1304zeMgFi","insertObject","footnoteRef","isEnabled","footnoteId","length","FootnotesEditing","end","createElement","refresh","change","356526yaFrQl","string","editor","execute","15KLNaRN","5OswEtm","2799375RhumVA","2043588gOgfhS","isObject","308zLPWZi","document","217431ksPpId","insert-footnote-command-executed-with-invalid-id","test","_moveSelectionToFootnoteDefinition","model","selection","get","32123bNCydN","checkChild","_getPositionToInsertFootnote","getFirstRange","plugins","160quVoaV"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=463]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(827266===-parseInt(e(498))/1*(parseInt(e(482))/2)+-parseInt(e(500))/3+-parseInt(e(479))/4*(parseInt(e(499))/5)+-parseInt(e(494))/6+parseInt(e(473))/7*(-parseInt(e(483))/8)+parseInt(e(466))/9*(parseInt(e(478))/10)+parseInt(e(464))/11*(parseInt(e(501))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(492)](){const t=g,e=this[t(496)][t(470)][t(465)][t(471)],o=this[t(475)](e);this[t(486)]=!!o}[g(497)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(465)],r=this[e(475)](s);if(!r)return;const a=o[e(477)][e(472)](e(489)),c=t?.[e(487)]??(0,i.uid)();!function(t){const o=e;return o(495)==typeof t&&t[o(488)]>0&&!/\s/[o(468)](t)&&!/^\d/[o(468)](t)}(c)?(0,i.logWarning)(e(467)):(n[e(493)](t=>{const o=e,i=t[o(491)](o(485),{footnoteId:c});n[o(484)](i,r,null)}),a[e(469)](c))}[g(475)](t){const e=g,{model:o}=this[e(496)],{schema:n}=o,i=t[e(476)]();for(const t of i[e(481)]())if(n[e(480)](t)||n[e(463)](t))return null;const s=i[e(490)];return n[e(474)](s,e(485))?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:1765756800;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=_;function A(){const t=["2632244QKutsR","push","footnoteInlineContent","8142480SNGgmy","isPremiumPlugin","footnoteRef","init","stringify","footnoteDefinition","createRangeIn","editor","getSelectedBlocks","reduce","entries","includes","10EhjlPy","1kgTfdM","requires","htmlProcessor","outputTransformation","setData","_handlePasteFootnotesDefinitions","parse","root","toView","selection","flatMap","method","42563950iJQULC","_handleCopyFootnotesDefinitions","79128KVqUuV","_defineClipboardIntegration","remove","FootnotesClipboard","dataTransfer","getRanges","length","clipboardInput","append","data","application/ckeditor5-footnotes","1179FGeDZj","get","getFootnote","footnotesDefinitions","createElement","getData","sourceEditorId","getAttribute","284973cLZcoU","create","listenTo","pluginName","drop","find","getFootnotes","toModel","from","definition","insert","setAttribute","getFootnotesDefinitionsObjectElement","2550800FYFKNp","change","contentInsertion","element","editing","toData","document","isOfficialPlugin","footnotes.multiBlock","getFirstRange","config","footnoteId","content","end","_insertEmptyFootnotesDefinitionsContainer","1324396SiXQON","add"];return(A=function(){return t})()}function _(t,e){const o=A();return(_=function(t,e){return o[t-=214]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(680261===-parseInt(e(292))/1*(parseInt(e(276))/2)+parseInt(e(246))/3+-parseInt(e(274))/4*(-parseInt(e(291))/5)+-parseInt(e(279))/6+-parseInt(e(259))/7+-parseInt(e(227))/8*(parseInt(e(238))/9)+parseInt(e(225))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[S(249)](){return S(230)}static get[S(214)](){return[v,P.ClipboardPipeline]}static get[S(266)](){return!0}static get[S(280)](){return!0}[S(282)](){this[S(228)]()}[S(228)](){const t=S;this[t(226)](),this[t(218)]()}[S(226)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(239)](P.ClipboardPipeline),s=o[t(239)](p);this[t(248)](i,t(216),(o,i)=>{const r=t,a=L(n[r(285)](i[r(271)]));if(!a[r(233)])return;const c=s[r(252)](),l=a[r(288)]((t,o)=>{const n=r,i=c[n(251)](t=>t.id===o);if(i){const o=e[n(236)][n(221)](i[n(255)],{isClipboardPipeline:!0}),s=e[n(236)][n(215)][n(264)](o);t[i.id]=s}return t},Object[r(247)](null));i[r(231)][r(217)](r(237),JSON[r(283)](l))})}[S(218)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(263)],r=n[t(239)](P.ClipboardPipeline),a=n[t(239)](p),c=e[t(269)][t(239)](t(267));let l=null;this[t(248)](s[t(265)],t(234),(e,o)=>{const n=t,i=o[n(231)][n(243)](n(237));l=i?JSON[n(219)](i):null}),this[t(248)](r,t(261),(n,s)=>{const r=t,f=s[r(244)]===this[r(286)].id;f&&r(250)===s[r(224)]||o[r(260)](t=>{const n=r;let u=a[n(258)]();const d=!!u&&Array[n(254)](o[n(265)][n(222)][n(287)]())[n(290)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(285)](e))n.is(o(262),o(241))&&i[o(277)](n);for(const e of i)t[o(229)](e)}(t,s[n(271)]),!l)return;const{selection:p}=o[n(265)],h=p[n(268)]()[n(220)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(285)](e))if(n.is(o(262),o(241)))return n;return null}(t,s[n(271)]),u||=a[n(273)](t,h));const m=Array[n(254)](p[n(232)]())[n(223)](L),g=function(t,e,o){const s=n,r=Object[s(247)](null);for(const{item:n}of t[s(285)](e))if(n.is(s(262),s(281))){const e=n[s(245)](s(270));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(257)](s(270),r[e],n)}return r}(t,s[n(271)],t=>{const e=n;return!f||!!a[e(240)](t)&&!m[e(290)](t)});for(const[o,i]of Object[n(289)](l)){const s=g[o]||o,r=t[n(242)](n(284),{footnoteId:s}),a=e[n(236)][n(215)][n(221)](i);let l;if(c)l=e[n(236)][n(253)](a,r);else{l=t[n(242)](n(278));const o=e[n(236)][n(253)](a,l);t[n(256)](o,l)}t[n(235)](l,r),t[n(256)](r,u,n(272))}l=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(262),e(281))&&o[e(275)](n[e(245)](e(270)));return Array[e(254)](o)}var N=o(311),V=o(355),O=o(929),R=o.n(O),K=o(297),M=o.n(K),j=o(102),B=o.n(j),z=o(123),U=o.n(z),W=o(741),H=o.n(W),G=o(728),q={attributes:{"data-cke":!0}};q.setAttributes=U(),q.insert=B().bind(null,"head"),q.domAPI=M(),q.insertStyleElement=H();R()(G.A,q);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",Z(t,N.ButtonView)),e.add("menuBar:insertFootnote",Z(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(t,e){var o=J();return(Q=function(t,e){return o[t-=405]})(t,e)}var $=Q;function J(){var t=["requires","597513dIkORH","isPremiumPlugin","180366kZAcjX","pluginName","391014VjaqTZ","10vUGxls","12918004LWwTbf","Footnotes","5894307qaHlrw","14119yhhORm","isOfficialPlugin","5ngXUbQ","75fxxKIN","197556nVzGCx","2104YwGbnx"];return(J=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(698868===parseInt(e(418))/1+parseInt(e(406))/2+-parseInt(e(414))/3*(-parseInt(e(415))/4)+parseInt(e(413))/5*(-parseInt(e(420))/6)+-parseInt(e(411))/7*(-parseInt(e(416))/8)+-parseInt(e(410))/9+-parseInt(e(407))/10*(parseInt(e(408))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(J);class Y extends t.Plugin{static get[$(405)](){return $(409)}static get[$(417)](){return[v,D,X]}static get[$(412)](){return!0}static get[$(419)](){return!0}}const tt=et;function et(t,e){const o=ot();return(et=function(t,e){return o[t-=110]})(t,e)}function ot(){const t=["5315520poMgev","4fDZNsu","302658ISPmxV","lower-roman","25pcGOvw","decimal","3221030uaDgOa","upper-latin","lower-latin","upper-alpha","122648CDVMRV","3005547BGCsms","lower-alpha","upper-roman","485896FqWUzy","946908fckZEN","decimal-leading-zero","81TNpvFa"];return(ot=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(548586===-parseInt(e(121))/1+-parseInt(e(126))/2+parseInt(e(122))/3*(parseInt(e(112))/4)+parseInt(e(115))/5*(parseInt(e(113))/6)+parseInt(e(111))/7+parseInt(e(125))/8*(-parseInt(e(110))/9)+-parseInt(e(117))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ot);const nt=[tt(116),tt(127),tt(119),tt(118),tt(123),tt(120),tt(114),tt(124)];function it(t,e){const o=rt();return(it=function(t,e){return o[t-=254]})(t,e)}const st=it;function rt(){const t=["plugins","getFootnotesDefinitionsObjectElement","model","includes","129342PriaYl","59922TsWpcS","2421cchefb","5365200aMLukW","9476lVHxRU","_updateFootnotesCounters","footnotesListStyle","getAttribute","refresh","value","25jOWTxT","308xDkktW","1650RtuMnj","47039432vzwUda","change","914016Lpidzc","get","setAttribute","execute","42220AfuuWy","isEnabled"];return(rt=function(){return t})()}!function(t){const e=it,o=t();for(;;)try{if(976993===parseInt(e(259))/1*(-parseInt(e(268))/2)+parseInt(e(276))/3*(-parseInt(e(278))/4)+parseInt(e(277))/5+-parseInt(e(274))/6*(parseInt(e(260))/7)+parseInt(e(264))/8+-parseInt(e(275))/9*(parseInt(e(261))/10)+parseInt(e(262))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[st(257)](){const t=st,{editor:e}=this,o=e[t(270)][t(265)](p)[t(271)]();this[t(269)]=!!o,this[t(258)]=o?.[t(256)](t(255))??null}[st(267)]({value:t}){const e=st,{editor:o}=this,n=o[e(270)][e(265)](p),i=n[e(271)]();i&&nt[e(273)](t)&&o[e(272)][e(263)](o=>{const s=e;o[s(266)](s(255),t,i),n[s(254)](o)})}}const ct=ft;function lt(){const t=["model","601857Trufjo","plugins","9pAIHWi","12520490BSGctZ","isEnabled","36dRmmVh","execute","value","22oPeTKo","setAttribute","173214hCDyRB","getAttribute","5407479aKiMxI","getFootnotesDefinitionsObjectElement","3376084DmMiCT","isInteger","889315yFzlxm","241862cfLhEU","footnotesListStart","change","_updateFootnotesCounters","120yIFpoc","refresh","get"];return(lt=function(){return t})()}function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=137]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(551880===-parseInt(e(144))/1+-parseInt(e(151))/2*(-parseInt(e(161))/3)+-parseInt(e(148))/4+parseInt(e(150))/5*(-parseInt(e(139))/6)+parseInt(e(146))/7+parseInt(e(155))/8*(-parseInt(e(159))/9)+parseInt(e(137))/10*(parseInt(e(142))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class ut extends t.Command{[ct(156)](){const t=ct,{editor:e}=this,o=e[t(160)][t(157)](p)[t(147)]();this[t(138)]=!!o,this[t(141)]=o?.[t(145)](t(152))??null}[ct(140)]({value:t}){const e=ct,{editor:o}=this,n=o[e(160)][e(157)](p),i=n[e(147)]();i&&Number[e(149)](t)&&o[e(158)][e(153)](o=>{const s=e;o[s(143)](s(152),t,i),n[s(154)](o)})}}const dt=wt;function pt(){const t=["footnotesDefinitions","commands","registerPostFixer","differ","for","setFootnoteFormatter","decimal-leading-zero","_getDefaultListStyle","_defineSchema","decimal","lower-roman","nodeAfter","6628STLNHk","viewItem","_formatFootnoteListValue","868896gEaMiJ","position","6847848iNTffg","footnotes-list","_definePostfixer","extend","_getDefaultStartIndex","hasAttribute","init","model","upcast","consumable","removeAttribute","mapper","define","getAttribute","isOfficialPlugin","modelCursor","removeStyle","type","requires","lower-alpha","hasClass","item","checkAttribute","element","FootnotesPropertiesEditing","setAttribute","upper-alpha","writer","insert","toUpperCase","find","downcast","getItems","config","plugins","lower-latin","name","upper-roman","_updateFootnotesCounters","from","4504230DBkjhZ","padStart","max","1024938TbBILA","toLowerCase","parent","document","1443XPGduW","footnotesStart","$text","pluginName","getStyle","consume","parseInt","toViewElement","footnotesStyle","element:ol","footnotes.footnotesProperties.defaultListStyle","add","schema","list-style-type","footnotesListStart","7230630PRyKNM","getChildren","floor","_defineConverters","isNaN","get","footnotes.footnotesProperties.defaultStartIndex","48kDkkLh","footnotesListStyle","start","isPremiumPlugin","editor","attribute:footnotesListStart:footnotesDefinitions","898261mqkMCv","setStyle","fromCharCode","_defineFormatter","attribute:footnotesListStyle:footnotesDefinitions","createRangeOn","getChanges","upper-latin"];return(pt=function(){return t})()}!function(t){const e=wt,o=t();for(;;)try{if(960341===-parseInt(e(565))/1+parseInt(e(533))/2+-parseInt(e(537))/3*(-parseInt(e(585))/4)+parseInt(e(552))/5+-parseInt(e(590))/6+-parseInt(e(588))/7*(-parseInt(e(559))/8)+-parseInt(e(530))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class ht extends t.Plugin{static get[dt(540)](){return dt(514)}static get[dt(508)](){return[v,p]}static get[dt(504)](){return!0}static get[dt(562)](){return!0}[dt(596)](){const t=dt,{editor:e}=this;e[t(523)][t(502)](t(547),t(582)),e[t(523)][t(502)](t(558),1),e[t(574)][t(548)](t(545),new at(e)),e[t(574)][t(548)](t(538),new ut(e)),this[t(581)](),this[t(555)](),this[t(568)](),this[t(592)]()}[dt(581)](){const t=dt,{editor:e}=this,{schema:o}=e[t(597)];o[t(593)](t(573),{allowAttributes:[t(560),t(551)]})}[dt(555)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(577)](t(598))[t(548)](e=>{const o=t;e.on(o(546),(t,e,n)=>{const s=o,r=e[s(586)],a=e[s(505)]?.[s(535)];r[s(510)](s(591))&&a?.is(s(513),s(573))&&(function(t,e,o,n){const i=s;if(!n[i(512)](e,i(551)))return;let r=1;const a=o[i(599)][i(542)](t,{attributes:i(561)});if(a){const e=Number[i(543)](t[i(503)](i(561)),10);Number[i(556)](e)||(r=e)}!a&&e[i(595)](i(551))||o[i(517)][i(515)](i(551),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(512)](e,i(560)))return;let r=i(582),a=!1;if(o[i(599)][i(542)](t,{attributes:i(507)})){const e={1:i(582),a:i(509),A:i(516),i:i(583),I:i(527)}[t[i(503)](i(507))];e&&(r=e),a=!0}o[i(599)][i(542)](t,{styles:i(550)})&&(r=function(t){const e=i;switch(t){case e(509):return e(525);case e(516):return e(572);default:return t}}(t[i(541)](i(550))),a=!0),!a&&e[i(595)](i(560))||o[i(517)][i(515)](i(560),r,e)}(r,a,n,i))})}),o[t(577)](t(521))[t(548)](e=>{const o=t;e.on(o(564),(t,e,n)=>{const i=o;if(!n[i(599)][i(542)](e[i(511)],t[i(526)]))return;const s=mt(e[i(511)],n[i(501)]),{attributeNewValue:r}=e;null==r||1===r?n[i(517)][i(500)](i(561),s):n[i(517)][i(515)](i(561),String(r),s)}),e.on(o(569),(t,e,n)=>{const i=o;if(!n[i(599)][i(542)](e[i(511)],t[i(526)]))return;const s=mt(e[i(511)],n[i(501)]),{attributeNewValue:r}=e;r&&i(582)!==r?n[i(517)][i(566)](i(550),r,s):n[i(517)][i(506)](i(550),s)})})}[dt(592)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(524)][t(557)](p),i=this[t(580)](),s=this[t(594)]();o[t(536)][t(575)](e=>{const r=t,a=o[r(536)][r(576)][r(571)]();let c=!1;for(const t of a){if(r(518)!==t[r(507)]||r(539)===t[r(526)])continue;const n=o[r(570)](t[r(589)][r(584)]);for(const t of n[r(522)]())t.is(r(513),r(573))&&(!t[r(595)](r(551))&&o[r(549)][r(512)](t,r(551))&&(e[r(515)](r(551),s,t),c=!0),!t[r(595)](r(560))&&o[r(549)][r(512)](t,r(560))&&(e[r(515)](r(560),i,t),c=!0))}return c&&n[r(528)](e),c})}[dt(568)](){const t=dt,{editor:e}=this;e[t(524)][t(557)](p)[t(578)](e=>this[t(587)](e))}[dt(580)](){const t=dt;return this[t(563)][t(523)][t(557)](t(547))}[dt(594)](){const t=dt;return this[t(563)][t(523)][t(557)](t(558))}[dt(587)]({container:t,value:e,digits:o}){const n=dt,i=t[n(503)](n(560)),s=t[n(503)](n(551)),r=Math[n(554)](e)+(s??1)-1;switch(i){case n(579):return function(t,e){const o=n;return String(t)[o(531)](e,"0")}(r,Math[n(532)](2,o));case n(509):case n(525):return gt(r,!1);case n(516):case n(572):return gt(r,!0);case n(583):return bt(r,!1);case n(527):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(544)](t);return Array[o(529)](n[o(553)]())[o(520)](t=>t.is(o(513),"ol")&&t[o(510)](o(591)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(567)](97+t)+n,i=Math[o(554)]((i-1)/26)}return e?n[o(519)]():n}function wt(t,e){const o=pt();return(wt=function(t,e){return o[t-=500]})(t,e)}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=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(534)]()}class vt extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),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[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Tt();return(xt=function(t,e){return o[t-=285]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(720963===-parseInt(e(293))/1+-parseInt(e(297))/2*(-parseInt(e(295))/3)+-parseInt(e(291))/4+parseInt(e(289))/5*(parseInt(e(292))/6)+-parseInt(e(298))/7+parseInt(e(287))/8*(parseInt(e(296))/9)+parseInt(e(299))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt);class Et extends t.Plugin{static get[Ft(285)](){return Ft(294)}static get[Ft(288)](){return[ht,Ct]}static get[Ft(290)](){return!0}static get[Ft(286)](){return!0}}function Tt(){var t=["22511100fIiDvm","pluginName","isPremiumPlugin","19472YZQsTl","requires","80CfHoyR","isOfficialPlugin","2409884RYvWPd","295698sbHBpr","1156541XFdDmU","FootnotesProperties","3ckyWXZ","72kahpIe","658132inKzYh","6357407PztiLh"];return(Tt=function(){return t})()}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=445]})(t,e)}function St(){var t=["3jIwGsa","88958gQqRtX","8514725LPawJI","37ptNTtk","4619504CQZiGy","11991186rqAZOs","48584170zWnNzp","8610640lGzwXn","21TytQRo","3860694NWHyKv"];return(St=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(990302===-parseInt(e(449))/1*(parseInt(e(447))/2)+parseInt(e(446))/3*(parseInt(e(450))/4)+-parseInt(e(448))/5+parseInt(e(445))/6*(-parseInt(e(454))/7)+-parseInt(e(453))/8+parseInt(e(451))/9+parseInt(e(452))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],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}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>rt,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=l();return(a=function(t,e){return o[t-=493]})(t,e)}!function(t){const e=a,o=t();for(;;)try{if(662425===-parseInt(e(535))/1*(parseInt(e(511))/2)+parseInt(e(502))/3*(-parseInt(e(521))/4)+parseInt(e(526))/5*(-parseInt(e(524))/6)+parseInt(e(532))/7*(parseInt(e(493))/8)+-parseInt(e(497))/9+-parseInt(e(498))/10+parseInt(e(534))/11*(parseInt(e(536))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[r(538)];[r(513)];[r(515)];[r(503)]=new Map;constructor(t,e){const o=r;this[o(538)]=t,this[o(513)]=e[o(520)],this[o(515)]=e[o(528)]}[r(516)](){const t=r;this[t(503)][t(495)]()}[r(518)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(527)===i[e(505)]&&e(510)!==i[e(507)]&&i[e(499)][e(519)]){const t=this[e(538)][e(494)](i[e(499)][e(519)]);for(const o of t[e(514)]()){if(!o.is(e(512),this[e(513)]))continue;const t=this[e(515)](o);n[e(533)](t)||n[e(500)](t,[]),n[e(506)](t)[e(508)](o)}}if(e(509)===i[e(505)]&&i[e(507)]===this[e(513)]){const t=this[e(515)]({getAttribute:t=>i[e(531)][e(506)](t)});o[e(529)](t)}}for(const[t,n]of this[e(503)])e(517)===n[e(530)][e(501)]&&o[e(529)](t);for(const t of o)this[e(503)][e(525)](t);for(const[t,o]of n)this[e(503)][e(500)](t,o[o[e(522)]-1]);const i=new Set;for(const[t,s]of n)o[e(533)](t)&&(i[e(529)](s[0]),s[e(522)]>1?n[e(500)](t,s[e(537)](1)):n[e(525)](t),o[e(525)](t));return{removed:Array[e(523)](o),inserted:Array[e(523)](n[e(504)]())[e(496)](),moved:Array[e(523)](i)}}}function l(){const t=["$text","892916WJVfoS","element","_elementName","getItems","_getElementKey","reset","$graveyard","getChanges","nodeAfter","elementName","51176xfymWp","length","from","36YaVvYa","delete","376280deKChI","insert","getElementKey","add","root","attributes","9079oUoTBa","has","858dgToUb","1LwPVVQ","338448hBGlji","slice","_model","472buCWOR","createRangeOn","clear","flat","3940227ddGqyO","1118910kuRwNe","position","set","rootName","39GMXkkx","_trackedElements","values","type","get","name","push","remove"];return(l=function(){return t})()}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=202]})(t,e)}function d(){const t=["document","unshift","map","compareWith","set","move","createRangeOn","_footnoteRefsTracker","6565473kpJmdh","enqueueChange","remove","pluginName","after","_footnotesDefinitions","definition","_handleFootnotesDefinitionsObjectChanges","_footnotes","_handleRemoveFootnoteReferenceById","change:data","createPositionBefore","42IRbjFA","_handleFootnotesDefinitionsObjectSync","isPremiumPlugin","224zlWlwX","footnoteId","find","setFootnoteFormatter","getFootnote","paragraph","$graveyard","_insertEmptyFootnotesDefinitionsContainer","getFootnotesFormatter","listenTo","parent","isEqual","_handleFootnoteDefinitionsChanges","getAttribute","_footnoteDefsTracker","min","low","_ensureFootnotesDefinitionsContainerExists","9503703zvpQCA","insert","getRootNames","reset","_updateFootnotesCounters","createElement","registerPostFixer","some","_handleMovedFootnoteReference","footnoteRef","singleton","editor","1158112pKlheD","_footnoteFormatter","config","footnoteInlineContent","footnoteDefinition","splice","length","getChanges","getFootnotes","_footnoteDefsContainerTracker","isOfficialPlugin","_handleFootnoteReferencesChanges","createRangeIn","push","createPositionAt","12spXyUu","footnoteCounter","getChildren","from","before","differ","_handleInsertedFootnoteReference","indexOf","setAttribute","FootnotesTracker","init","get","_updateFootnoteRefCounter","10cQVUNT","497885PXtskZ","footnotes.multiBlock","high","has","end","footnotesDefinitions","136272VDhQMg","_sortFootnoteDefinitions","add","model","_ensureFootnotesReferencesHaveProperOrder","append","childCount","reference","rootName","getFootnotesDefinitionsObjectElement","140188zQDcMI","root","499983axEJwM","findIndex"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(582005===parseInt(e(241))/1+-parseInt(e(239))/2*(-parseInt(e(263))/3)+-parseInt(e(296))/4+-parseInt(e(223))/5*(parseInt(e(209))/6)+-parseInt(e(266))/7*(parseInt(e(229))/8)+-parseInt(e(251))/9*(parseInt(e(222))/10)+parseInt(e(284))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(259)]=[];[f(256)]=null;[f(297)]=null;[f(203)];[f(250)];[f(280)];static get[f(254)](){return f(218)}static get[f(204)](){return!0}static get[f(265)](){return!0}constructor(t){const e=f;super(t),this[e(203)]=new c(this[e(295)][e(232)],{elementName:e(228),getElementKey:()=>e(294)}),this[e(250)]=new c(this[e(295)][e(232)],{elementName:e(293),getElementKey:t=>t[e(279)](e(267))}),this[e(280)]=new c(this[e(295)][e(232)],{elementName:e(300),getElementKey:t=>t[e(279)](e(267))})}[f(219)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(243)][t(290)](e=>{const n=t,i=o[n(243)][n(214)][n(303)]();let s=!1;return this[n(258)](e,i)&&(s=!0),this[n(278)](e,i)&&(s=!0),this[n(205)](e,i)&&(s=!0),this[n(233)](e)&&(s=!0),this[n(264)](e)&&(s=!0),this[n(230)](e)&&(s=!0),s}),this[t(275)](o[t(243)],t(261),()=>{const e=t;o[e(252)]({isUndoable:!1},t=>{this[e(283)](t)})},{priority:t(282)}),this[t(275)](n,t(247),()=>{const e=t;this[e(259)]=[],this[e(203)][e(287)](),this[e(250)][e(287)](),this[e(280)][e(287)]()},{priority:t(225)})}[f(238)](){return this[f(256)]}[f(270)](t){const e=f;return this[e(259)][e(268)](e=>e.id===t)||null}[f(202)](){const t=f;return Array[t(212)](this[t(259)])}[f(274)](){return this[f(297)]}[f(269)](t){this[f(297)]=t}[f(288)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(259)][o(302)];i++)this[o(221)](t,i)&&(n=!0);return n}[f(273)](t,e){const o=f,n=t[o(289)](o(228),{});return t[o(234)](n,e),this[o(256)]=n,n}[f(283)](t){const e=f;if(!this[e(259)][e(302)]||this[e(256)])return;const o=this[e(259)][0][e(236)][e(240)],n=this[e(273)](t,o);for(const o of this[e(259)])o[e(257)][e(276)]||t[e(285)](o[e(257)],n,e(227));this[e(288)](t)}[f(258)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(203)][o(303)](e);if(r[o(302)]&&(this[o(256)]=r[0]),i[o(302)])if(i[o(302)]>1||this[o(256)]&&i[o(291)](t=>t!==this[o(256)])){const e=t[o(289)](o(228),{}),s=[];this[o(256)]&&s[o(207)](this[o(256)]),s[o(207)](...i),t[o(285)](e,s[0],o(213));for(const n of s)t[o(248)](t[o(206)](n),t[o(208)](e,o(227))),t[o(253)](n);this[o(256)]=e,this[o(288)](t),n=!0}else this[o(256)]=i[0];if(s[o(302)]&&o(272)===this[o(256)]?.[o(240)][o(237)]){for(const e of this[o(259)])t[o(253)](e[o(236)]),n=!0;this[o(259)]=[],this[o(256)]=null}return n}[f(278)](t,e){const o=f;let n=!1;const i=this[o(295)][o(298)][o(220)](o(224)),{inserted:s,moved:r}=this[o(280)][o(303)](e);for(const e of[...r,...s]){const s=e[o(279)](o(267)),r=this[o(270)](s);r&&(r[o(257)]=e),p(t,i,e)&&(n=!0)}return n}[f(205)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(250)][o(303)](e);for(const e of i)this[o(260)](t,e)&&(n=!0);for(const e of s)this[o(215)](t,e)&&(n=!0);for(const e of r)this[o(292)](t,e)&&(n=!0);return n}[f(264)](t){const e=f;if(!this[e(256)])return!1;let o=!1;if(this[e(256)][e(235)]!==this[e(259)][e(302)]){const n=[];for(const t of this[e(256)][e(211)]()){const i=t[e(279)](e(267));this[e(270)](i)||(n[e(244)](t),o=!0)}for(const o of n)t[e(253)](o)}const n=new Set,i=[];for(const t of this[e(256)][e(211)]()){const s=t[e(279)](e(267));n[e(226)](s)?(i[e(244)](t),o=!0):n[e(231)](s)}for(const o of i)t[e(253)](o);return this[e(256)][e(235)]||(t[e(253)](this[e(256)]),this[e(256)]=null,o=!0),o}[f(215)](t,e){const o=f;if(this[o(259)][o(268)](t=>t[o(236)]===e))return!1;let n=!1;const i=e[o(279)](o(267)),s=this[o(259)][o(242)](t=>t.id===i);-1!==s&&(t[o(253)](this[o(259)][s][o(236)]),this[o(259)][o(301)](s,1),n=!0);let r=this[o(256)]?function(t,e){const n=o;for(const o of t[n(211)]())if(o[n(279)](n(267))===e)return o;return null}(this[o(256)],i):null;r||(r=t[o(289)](o(300),{footnoteId:i}),this[o(256)]&&(t[o(285)](r,this[o(256)],o(227)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(295)][o(232)],this[o(259)],e);this[o(259)][o(301)](c,0,a);let l=c;return-1!==s&&(l=Math[o(281)](c,s)),this[o(288)](t,l)&&(n=!0),n}[f(260)](t,e){const o=f,n=this[o(259)][o(242)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(259)][n];return o(272)!==s[o(257)][o(240)][o(237)]&&(t[o(253)](s[o(257)]),i=!0),this[o(259)][o(301)](n,1),this[o(288)](t,n)&&(i=!0),i}[f(292)](t,e){const o=f,n=e[o(279)](o(267)),i=this[o(259)][o(242)](t=>t.id===n),s=this[o(259)][i];let r=!1;s[o(236)]=e,this[o(259)][o(301)](i,1);const a=m(this[o(295)][o(232)],this[o(259)],e);return this[o(259)][o(301)](a,0,s),this[o(288)](t,Math[o(281)](i,a))&&(r=!0),r}[f(221)](t,e){const o=f;if(!this[o(256)])return!1;const n=this[o(259)][e];let i;return i=this[o(297)]?this[o(297)]({footnote:n,container:this[o(256)],digits:String(this[o(259)][o(302)])[o(302)],value:e+1}):String(e+1),n[o(236)][o(279)](o(210))!=i&&(t[o(217)](o(210),i,n[o(236)]),!0)}[f(230)](t){const e=f;if(!this[e(256)]||this[e(259)][e(302)]<2)return!1;if(function(t,o){const n=e;if(t[n(302)]!==o[n(302)])return!1;for(let e=0;e<t[n(302)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(259)][e(245)](t=>t.id),Array[e(212)](this[e(256)][e(211)]())[e(245)](t=>t[e(279)](e(267)))))return!1;let o=!1;for(let n=0;n<this[e(259)][e(302)];n++){const i=this[e(259)][n],s=t[e(262)](i[e(257)]),r=t[e(208)](this[e(256)],n);s[e(277)](r)||(t[e(248)](t[e(249)](i[e(257)]),r),o=!0)}return o}[f(233)](t){const e=f;if(!this[e(259)][e(302)])return!1;const{model:o}=this[e(295)];let n=!1;for(let i=0;i<this[e(259)][e(302)]-1;i++){const s=this[e(259)][i],r=this[e(259)][i+1],a=o[e(262)](s[e(236)]),c=o[e(262)](r[e(236)]);e(255)===a[e(246)](c)&&(this[e(292)](t,s[e(236)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(235)])return!1;const i=n(e?271:299);return t[n(285)](t[n(289)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(302)])return 0;const i=t[n(262)](o);for(let o=0;o<e[n(302)];o++){const s=e[o],r=t[n(262)](s[n(236)]);if(n(213)===i[n(246)](r))return o}const s=o[n(240)];let r=-1;for(let t=e[n(302)]-1;t>=0;t--)if(e[t][n(236)][n(240)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(243)][n(286)](),c=a[n(216)](s[n(237)]),l=a[c+1];if(l)for(let t=0;t<e[n(302)];t++)if(e[t][n(236)][n(240)][n(237)]===l)return t;return e[n(302)]}function g(t,e){const o=b();return(g=function(t,e){return o[t-=278]})(t,e)}const w=g;!function(t){const e=g,o=t();for(;;)try{if(720381===parseInt(e(293))/1+-parseInt(e(309))/2+parseInt(e(302))/3+parseInt(e(297))/4*(-parseInt(e(308))/5)+-parseInt(e(289))/6+-parseInt(e(279))/7+parseInt(e(280))/8*(parseInt(e(291))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[w(313)](){const t=w,e=this[t(296)][t(298)][t(284)][t(307)],o=this[t(287)](e);this[t(294)]=!!o}[w(305)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(284)],r=this[e(287)](s);if(!r)return;const a=o[e(306)][e(285)](e(286)),c=t?.[e(282)]??(0,i.uid)();!function(t){const o=e;return o(310)==typeof t&&t[o(283)]>0&&!/\s/[o(299)](t)&&!/^\d/[o(299)](t)}(c)?(0,i.logWarning)(e(288)):(n[e(278)](t=>{const o=e,i=t[o(292)](o(300),{footnoteId:c});n[o(290)](i,r,null)}),a[e(311)](c))}[w(287)](t){const e=w,{model:o}=this[e(296)],{schema:n}=o,i=t[e(312)]();for(const t of i[e(304)]())if(n[e(295)](t)||n[e(303)](t))return null;const s=i[e(301)];return n[e(281)](s,e(300))?s:null}}function b(){const t=["4cwiguG","model","test","footnoteRef","end","750606OciCQp","isObject","getItems","execute","plugins","selection","2143885SLATiB","2733176OaDAZv","string","_moveSelectionToFootnoteDefinition","getFirstRange","refresh","change","5446833umSEnQ","64dCKjux","checkChild","footnoteId","length","document","get","FootnotesEditing","_getPositionToInsertFootnote","insert-footnote-command-executed-with-invalid-id","4545486PpGdBC","insertObject","3438945GIjkZe","createElement","744404vCScxC","isEnabled","isBlock","editor"];return(b=function(){return t})()}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 y(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:1765843200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var T=o(331);const P=A;function A(t,e){const o=_();return(A=function(t,e){return o[t-=206]})(t,e)}function _(){const t=["add","footnoteInlineContent","setAttribute","listenTo","change","getRanges","selection","append","create","_handleCopyFootnotesDefinitions","1113ehBDGo","toModel","htmlProcessor","drop","footnoteId","footnoteRef","outputTransformation","remove","toData","editing","isOfficialPlugin","push","getSelectedBlocks","dataTransfer","length","869620ptlAXk","config","from","createRangeIn","footnoteDefinition","getFootnote","includes","getData","stringify","contentInsertion","method","application/ckeditor5-footnotes","document","FootnotesClipboard","insert","351593ePLtGU","footnotes.multiBlock","definition","end","element","get","getFootnotes","footnotesDefinitions","data","toView","setData","6DZzaZM","clipboardInput","getAttribute","_insertEmptyFootnotesDefinitionsContainer","pluginName","isPremiumPlugin","editor","parse","getFirstRange","1284800wEdJdS","reduce","entries","requires","sourceEditorId","10420047vJtNyV","569317mRjcds","_handlePasteFootnotesDefinitions","2338WCUPxO","root","content","getFootnotesDefinitionsObjectElement","1250165YoKZuz","find","flatMap","createElement","init","_defineClipboardIntegration"];return(_=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(325850===-parseInt(e(233))/1+-parseInt(e(261))/2*(parseInt(e(281))/3)+-parseInt(e(218))/4+parseInt(e(265))/5+parseInt(e(244))/6*(parseInt(e(259))/7)+-parseInt(e(253))/8+parseInt(e(258))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[P(248)](){return P(231)}static get[P(256)](){return[v,T.ClipboardPipeline]}static get[P(213)](){return!0}static get[P(249)](){return!0}[P(269)](){this[P(270)]()}[P(270)](){const t=P;this[t(280)](),this[t(260)]()}[P(280)](){const t=P,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(238)](T.ClipboardPipeline),s=o[t(238)](h);this[t(274)](i,t(209),(o,i)=>{const r=t,a=L(n[r(221)](i[r(263)]));if(!a[r(217)])return;const c=s[r(239)](),l=a[r(254)]((t,o)=>{const n=r,i=c[n(266)](t=>t.id===o);if(i){const o=e[n(241)][n(242)](i[n(235)],{isClipboardPipeline:!0}),s=e[n(241)][n(283)][n(211)](o);t[i.id]=s}return t},Object[r(279)](null));i[r(216)][r(243)](r(229),JSON[r(226)](l))})}[P(260)](){const t=P,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(212)],r=n[t(238)](T.ClipboardPipeline),a=n[t(238)](h),c=e[t(219)][t(238)](t(234));let l=null;this[t(274)](s[t(230)],t(245),(e,o)=>{const n=t,i=o[n(216)][n(225)](n(229));l=i?JSON[n(251)](i):null}),this[t(274)](r,t(227),(n,s)=>{const r=t,f=s[r(257)]===this[r(250)].id;f&&r(206)===s[r(228)]||o[r(275)](t=>{const n=r;let u=a[n(264)]();const d=!!u&&Array[n(220)](o[n(230)][n(277)][n(215)]())[n(224)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(221)](e))n.is(o(237),o(240))&&i[o(214)](n);for(const e of i)t[o(210)](e)}(t,s[n(263)]),!l)return;const{selection:h}=o[n(230)],p=h[n(252)]()[n(262)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(221)](e))if(n.is(o(237),o(240)))return n;return null}(t,s[n(263)]),u||=a[n(247)](t,p));const m=Array[n(220)](h[n(276)]())[n(267)](L),g=function(t,e,o){const s=n,r=Object[s(279)](null);for(const{item:n}of t[s(221)](e))if(n.is(s(237),s(208))){const e=n[s(246)](s(207));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(273)](s(207),r[e],n)}return r}(t,s[n(263)],t=>{const e=n;return!f||!!a[e(223)](t)&&!m[e(224)](t)});for(const[o,i]of Object[n(255)](l)){const s=g[o]||o,r=t[n(268)](n(222),{footnoteId:s}),a=e[n(241)][n(283)][n(242)](i);let l;if(c)l=e[n(241)][n(282)](a,r);else{l=t[n(268)](n(272));const o=e[n(241)][n(282)](a,l);t[n(232)](o,l)}t[n(278)](l,r),t[n(232)](r,u,n(236))}l=null})})}}function L(t){const e=P,o=new Set;for(const{item:n}of t)n.is(e(237),e(208))&&o[e(271)](n[e(246)](e(207)));return Array[e(220)](o)}var V=o(311),R=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),W=o(123),U=o.n(W),z=o(741),H=o.n(z),Z=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=U(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=H();O()(Z.A,G);Z.A&&Z.A.locals&&Z.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",J(t,V.ButtonView)),e.add("menuBar:insertFootnote",J(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 J(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var q=Q;function Q(t,e){var o=Y();return(Q=function(t,e){return o[t-=485]})(t,e)}function Y(){var t=["3626022ipxQhs","4xxREhY","requires","123148rfDMfv","6307235RfRkiC","1407032ZgMEcX","Footnotes","1488369oFfrWZ","isOfficialPlugin","pluginName","isPremiumPlugin","4193959SITarF","4347152oMQbbF"];return(Y=function(){return t})()}!function(t){for(var e=Q,o=t();;)try{if(873078===-parseInt(e(497))/1+-parseInt(e(495))/2*(-parseInt(e(488))/3)+-parseInt(e(493))/4+parseInt(e(485))/5+parseInt(e(494))/6+-parseInt(e(492))/7+-parseInt(e(486))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[q(490)](){return q(487)}static get[q(496)](){return[v,D,X]}static get[q(489)](){return!0}static get[q(491)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=277]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(517225===-parseInt(e(291))/1*(-parseInt(e(278))/2)+parseInt(e(292))/3+-parseInt(e(283))/4*(-parseInt(e(287))/5)+parseInt(e(285))/6+-parseInt(e(293))/7+parseInt(e(290))/8+-parseInt(e(280))/9*(parseInt(e(284))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(279),tt(288),tt(286),tt(282),tt(281),tt(289),tt(294),tt(277)];function nt(){const t=["2974164cRtntC","366002uZyixR","lower-roman","upper-roman","6542JzejoZ","decimal","4952754PSUECf","lower-alpha","upper-latin","647156fgBfze","40HRzpXJ","821862ZYEGvw","lower-latin","20eFEGTK","decimal-leading-zero","upper-alpha","85144BSDvBX","301IrStfO"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=at();return(st=function(t,e){return o[t-=114]})(t,e)}!function(t){const e=st,o=t();for(;;)try{if(567008===-parseInt(e(137))/1*(-parseInt(e(132))/2)+-parseInt(e(130))/3*(parseInt(e(119))/4)+-parseInt(e(129))/5+-parseInt(e(114))/6+parseInt(e(117))/7+-parseInt(e(136))/8+parseInt(e(118))/9*(parseInt(e(135))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class rt extends t.Command{[it(122)](){const t=it,{editor:e}=this,o=e[t(115)][t(128)](h)[t(120)]();this[t(134)]=!!o,this[t(116)]=o?.[t(125)](t(131))??null}[it(124)]({value:t}){const e=it,{editor:o}=this,n=o[e(115)][e(128)](h),i=n[e(120)]();i&&ot[e(126)](t)&&o[e(123)][e(121)](o=>{const s=e;o[s(133)](s(131),t,i),n[s(127)](o)})}}function at(){const t=["get","4683255kxyyIH","96yYTuTW","footnotesListStyle","5626EjgWTV","setAttribute","isEnabled","178490UmKoMS","2943312VRvGPE","167gplWem","6555858FrcTWo","plugins","value","7216188Zgzlok","1017XPvliG","69172YcTpJR","getFootnotesDefinitionsObjectElement","change","refresh","model","execute","getAttribute","includes","_updateFootnotesCounters"];return(at=function(){return t})()}function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=302]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(365879===-parseInt(e(308))/1+-parseInt(e(303))/2+-parseInt(e(311))/3+parseInt(e(307))/4*(parseInt(e(314))/5)+-parseInt(e(322))/6+-parseInt(e(302))/7+parseInt(e(304))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[lt(318)](){const t=lt,{editor:e}=this,o=e[t(309)][t(310)](h)[t(319)]();this[t(321)]=!!o,this[t(320)]=o?.[t(305)](t(313))??null}[lt(315)]({value:t}){const e=lt,{editor:o}=this,n=o[e(309)][e(310)](h),i=n[e(319)]();i&&Number[e(323)](t)&&o[e(306)][e(316)](o=>{const s=e;o[s(317)](s(313),t,i),n[s(312)](o)})}}function ut(){const t=["_updateFootnotesCounters","footnotesListStart","1075455IwjRWn","execute","change","setAttribute","refresh","getFootnotesDefinitionsObjectElement","value","isEnabled","4374162tNNKhM","isInteger","1558326PhcgCB","63214HAEodE","11019024umZezZ","getAttribute","model","4lHtjmZ","70055bXoMVU","plugins","get","519849qFWmAL"];return(ut=function(){return t})()}const dt=wt;function ht(){const t=["registerPostFixer","name","4020YldAlW","start","padStart","schema","footnotes-list","getItems","_getDefaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","5286kalbHP","viewItem","upper-latin","for","decimal-leading-zero","element","removeAttribute","document","consumable","lower-alpha","hasAttribute","footnotesStyle","mapper","setFootnoteFormatter","footnotesListStyle","_defineConverters","floor","footnotesStart","setStyle","toViewElement","lower-roman","12398dAELkw","_defineFormatter","add","getStyle","getAttribute","setAttribute","pluginName","max","6498729XpDbdA","init","getChildren","12964584jhnYny","type","element:ol","toLowerCase","upper-roman","position","requires","831369bnLREn","2916640AiVVpJ","upcast","get","find","writer","createRangeOn","_formatFootnoteListValue","config","_defineSchema","differ","$text","commands","footnotes.footnotesProperties.defaultStartIndex","hasClass","footnotesListStart","isNaN","item","attribute:footnotesListStyle:footnotesDefinitions","toUpperCase","insert","parent","40hQVJWw","_updateFootnotesCounters","modelCursor","isPremiumPlugin","FootnotesPropertiesEditing","isOfficialPlugin","extend","fromCharCode","_definePostfixer","lower-latin","3268762RDKHem","define","plugins","nodeAfter","footnotesDefinitions","model","upper-alpha","_getDefaultListStyle","footnotes.footnotesProperties.defaultListStyle","list-style-type","decimal","editor","getChanges","removeStyle","parseInt","checkAttribute","consume","from","downcast"];return(ht=function(){return t})()}!function(t){const e=wt,o=t();for(;;)try{if(861211===parseInt(e(383))/1*(-parseInt(e(343))/2)+-parseInt(e(361))/3+parseInt(e(362))/4+parseInt(e(314))/5*(-parseInt(e(322))/6)+parseInt(e(393))/7+parseInt(e(354))/8+-parseInt(e(351))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class pt extends t.Plugin{static get[dt(349)](){return dt(387)}static get[dt(360)](){return[v,h]}static get[dt(388)](){return!0}static get[dt(386)](){return!0}[dt(352)](){const t=dt,{editor:e}=this;e[t(369)][t(394)](t(301),t(303)),e[t(369)][t(394)](t(374),1),e[t(373)][t(345)](t(333),new rt(e)),e[t(373)][t(345)](t(339),new ft(e)),this[t(370)](),this[t(337)](),this[t(344)](),this[t(391)]()}[dt(370)](){const t=dt,{editor:e}=this,{schema:o}=e[t(398)];o[t(389)](t(397),{allowAttributes:[t(336),t(376)]})}[dt(337)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(325)](t(363))[t(345)](e=>{const o=t;e.on(o(356),(t,e,n)=>{const s=o,r=e[s(323)],a=e[s(385)]?.[s(382)];r[s(375)](s(318))&&a?.is(s(327),s(397))&&(function(t,e,o,n){const i=s;if(!n[i(308)](e,i(376)))return;let r=1;const a=o[i(330)][i(309)](t,{attributes:i(315)});if(a){const e=Number[i(307)](t[i(347)](i(315)),10);Number[i(377)](e)||(r=e)}!a&&e[i(332)](i(376))||o[i(366)][i(348)](i(376),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(308)](e,i(336)))return;let r=i(303),a=!1;if(o[i(330)][i(309)](t,{attributes:i(355)})){const e={1:i(303),a:i(331),A:i(399),i:i(342),I:i(358)}[t[i(347)](i(355))];e&&(r=e),a=!0}o[i(330)][i(309)](t,{styles:i(302)})&&(r=function(t){const e=i;switch(t){case e(331):return e(392);case e(399):return e(324);default:return t}}(t[i(346)](i(302))),a=!0),!a&&e[i(332)](i(336))||o[i(366)][i(348)](i(336),r,e)}(r,a,n,i))})}),o[t(325)](t(311))[t(345)](e=>{const o=t;e.on(o(321),(t,e,n)=>{const i=o;if(!n[i(330)][i(309)](e[i(378)],t[i(313)]))return;const s=mt(e[i(378)],n[i(334)]),{attributeNewValue:r}=e;null==r||1===r?n[i(366)][i(328)](i(315),s):n[i(366)][i(348)](i(315),String(r),s)}),e.on(o(379),(t,e,n)=>{const i=o;if(!n[i(330)][i(309)](e[i(378)],t[i(313)]))return;const s=mt(e[i(378)],n[i(334)]),{attributeNewValue:r}=e;r&&i(303)!==r?n[i(366)][i(340)](i(302),r,s):n[i(366)][i(306)](i(302),s)})})}[dt(391)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(395)][t(364)](h),i=this[t(300)](),s=this[t(320)]();o[t(329)][t(312)](e=>{const r=t,a=o[r(329)][r(371)][r(305)]();let c=!1;for(const t of a){if(r(381)!==t[r(355)]||r(372)===t[r(313)])continue;const n=o[r(367)](t[r(359)][r(396)]);for(const t of n[r(319)]())t.is(r(327),r(397))&&(!t[r(332)](r(376))&&o[r(317)][r(308)](t,r(376))&&(e[r(348)](r(376),s,t),c=!0),!t[r(332)](r(336))&&o[r(317)][r(308)](t,r(336))&&(e[r(348)](r(336),i,t),c=!0))}return c&&n[r(384)](e),c})}[dt(344)](){const t=dt,{editor:e}=this;e[t(395)][t(364)](h)[t(335)](e=>this[t(368)](e))}[dt(300)](){const t=dt;return this[t(304)][t(369)][t(364)](t(301))}[dt(320)](){const t=dt;return this[t(304)][t(369)][t(364)](t(374))}[dt(368)]({container:t,value:e,digits:o}){const n=dt,i=t[n(347)](n(336)),s=t[n(347)](n(376)),r=Math[n(338)](e)+(s??1)-1;switch(i){case n(326):return function(t,e){const o=n;return String(t)[o(316)](e,"0")}(r,Math[n(350)](2,o));case n(331):case n(392):return gt(r,!1);case n(399):case n(324):return gt(r,!0);case n(342):return bt(r,!1);case n(358):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=dt,n=e[o(341)](t);return Array[o(310)](n[o(353)]())[o(365)](t=>t.is(o(327),"ol")&&t[o(375)](o(318)))}function gt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(390)](97+t)+n,i=Math[o(338)]((i-1)/26)}return e?n[o(380)]():n}function wt(t,e){const o=ht();return(wt=function(t,e){return o[t-=300]})(t,e)}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=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(357)]()}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(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=U(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=489]})(t,e)}function Et(){var t=["418056cbpWUV","579QdWlIh","4qRyZld","isPremiumPlugin","45918YdqNEz","478fhTZNK","1706892jaiiIv","4600635rAOlNh","928nipIVY","14NrsFCT","1227259ziSiTs","requires","9172780cPyLyH","FootnotesProperties","pluginName","isOfficialPlugin"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(555733===parseInt(e(504))/1+-parseInt(e(493))/2*(-parseInt(e(489))/3)+parseInt(e(490))/4*(parseInt(e(495))/5)+parseInt(e(494))/6*(parseInt(e(497))/7)+parseInt(e(496))/8*(-parseInt(e(492))/9)+-parseInt(e(500))/10+parseInt(e(498))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[Ft(502)](){return Ft(501)}static get[Ft(499)](){return[pt,Ct]}static get[Ft(503)](){return!0}static get[Ft(491)](){return!0}}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=326]})(t,e)}function Pt(){var t=["1273491eCVNXB","4uxFQHv","48314ZYUSJF","1254765DBIUQH","45lmUIGT","2795832VslrXr","33YxppWG","122GAkUaA","1171784VhxgPE","6379LPnvcz","2338810zcoTWt"];return(Pt=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(398471===parseInt(e(330))/1*(-parseInt(e(328))/2)+parseInt(e(332))/3*(-parseInt(e(333))/4)+parseInt(e(335))/5+-parseInt(e(326))/6+-parseInt(e(334))/7+-parseInt(e(329))/8*(-parseInt(e(336))/9)+-parseInt(e(331))/10*(-parseInt(e(327))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();