@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251222.0 → 0.0.0-nightly-next-20251223.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 u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=c();return(r=function(t,e){return o[t-=213]})(t,e)}const a=r;function c(){const t=["_getElementKey","add","position","type","3310aDcrEO","_elementName","clear","root","843125kdTDYx","element","length","flat","remove","createRangeOn","15pDgPtr","473672ZZSPbM","$text","126313eISESR","reset","rootName","slice","6KhRgak","elementName","name","set","get","has","4632qlzGCc","1490420GfpZEC","insert","attributes","nodeAfter","getItems","getElementKey","1567476wDXqOK","9611uLPKbQ","getChanges","3981912eLgGWr","push","_model","_trackedElements","values","$graveyard","delete","from"];return(c=function(){return t})()}!function(t){const e=r,o=t();for(;;)try{if(581746===-parseInt(e(224))/1+parseInt(e(231))/2*(parseInt(e(237))/3)+parseInt(e(244))/4*(-parseInt(e(230))/5)+parseInt(e(243))/6*(-parseInt(e(251))/7)+-parseInt(e(253))/8+-parseInt(e(250))/9+parseInt(e(220))/10*(parseInt(e(233))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[a(255)];[a(221)];[a(216)];[a(256)]=new Map;constructor(t,e){const o=a;this[o(255)]=t,this[o(221)]=e[o(238)],this[o(216)]=e[o(249)]}[a(234)](){const t=a;this[t(256)][t(222)]()}[a(252)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(245)===i[e(219)]&&e(232)!==i[e(239)]&&i[e(218)][e(247)]){const t=this[e(255)][e(229)](i[e(218)][e(247)]);for(const o of t[e(248)]()){if(!o.is(e(225),this[e(221)]))continue;const t=this[e(216)](o);n[e(242)](t)||n[e(240)](t,[]),n[e(241)](t)[e(254)](o)}}if(e(228)===i[e(219)]&&i[e(239)]===this[e(221)]){const t=this[e(216)]({getAttribute:t=>i[e(246)][e(241)](t)});o[e(217)](t)}}for(const[t,n]of this[e(256)])e(213)===n[e(223)][e(235)]&&o[e(217)](t);for(const t of o)this[e(256)][e(214)](t);for(const[t,o]of n)this[e(256)][e(240)](t,o[o[e(226)]-1]);const i=new Set;for(const[t,s]of n)o[e(242)](t)&&(i[e(217)](s[0]),s[e(226)]>1?n[e(240)](t,s[e(236)](1)):n[e(214)](t),o[e(214)](t));return{removed:Array[e(215)](o),inserted:Array[e(215)](n[e(257)]())[e(227)](),moved:Array[e(215)](i)}}}function u(t,e){const o=h();return(u=function(t,e){return o[t-=202]})(t,e)}const f=u;!function(t){const e=u,o=t();for(;;)try{if(481154===parseInt(e(247))/1*(parseInt(e(213))/2)+parseInt(e(222))/3*(-parseInt(e(303))/4)+-parseInt(e(294))/5+parseInt(e(273))/6*(-parseInt(e(216))/7)+-parseInt(e(261))/8*(-parseInt(e(242))/9)+parseInt(e(252))/10*(parseInt(e(283))/11)+parseInt(e(263))/12*(parseInt(e(239))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[f(284)]=[];[f(290)]=null;[f(251)]=null;[f(256)];[f(285)];[f(225)];static get[f(295)](){return f(260)}static get[f(272)](){return!0}static get[f(281)](){return!0}constructor(t){const e=f;super(t),this[e(256)]=new l(this[e(218)][e(259)],{elementName:e(210),getElementKey:()=>e(245)}),this[e(285)]=new l(this[e(218)][e(259)],{elementName:e(204),getElementKey:t=>t[e(237)](e(214))}),this[e(225)]=new l(this[e(218)][e(259)],{elementName:e(209),getElementKey:t=>t[e(237)](e(214))})}[f(291)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(253)][t(240)](e=>{const n=t,i=o[n(253)][n(246)][n(274)]();let s=!1;return this[n(230)](e,i)&&(s=!0),this[n(255)](e,i)&&(s=!0),this[n(235)](e,i)&&(s=!0),this[n(206)](e)&&(s=!0),this[n(276)](e)&&(s=!0),this[n(280)](e)&&(s=!0),s}),this[t(297)](o[t(253)],t(231),()=>{const e=t;o[e(292)]({isUndoable:!1},t=>{this[e(286)](t)})},{priority:t(271)}),this[t(297)](n,t(243),()=>{const e=t;this[e(284)]=[],this[e(256)][e(289)](),this[e(285)][e(289)](),this[e(225)][e(289)]()},{priority:t(233)})}[f(234)](){return this[f(290)]}[f(224)](t){const e=f;return this[e(284)][e(267)](e=>e.id===t)||null}[f(293)](){const t=f;return Array[t(258)](this[t(284)])}[f(278)](){return this[f(251)]}[f(241)](t){this[f(251)]=t}[f(219)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(284)][o(268)];i++)this[o(215)](t,i)&&(n=!0);return n}[f(205)](t,e){const o=f,n=t[o(304)](o(210),{});return t[o(298)](n,e),this[o(290)]=n,n}[f(286)](t){const e=f;if(!this[e(284)][e(268)]||this[e(290)])return;const o=this[e(284)][0][e(277)][e(288)],n=this[e(205)](t,o);for(const o of this[e(284)])o[e(228)][e(265)]||t[e(299)](o[e(228)],n,e(302));this[e(219)](t)}[f(230)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(256)][o(274)](e);if(r[o(268)]&&(this[o(290)]=r[0]),i[o(268)])if(i[o(268)]>1||this[o(290)]&&i[o(270)](t=>t!==this[o(290)])){const e=t[o(304)](o(210),{}),s=[];this[o(290)]&&s[o(236)](this[o(290)]),s[o(236)](...i),t[o(299)](e,s[0],o(223));for(const n of s)t[o(266)](t[o(248)](n),t[o(226)](e,o(302))),t[o(202)](n);this[o(290)]=e,this[o(219)](t),n=!0}else this[o(290)]=i[0];if(s[o(268)]&&o(220)===this[o(290)]?.[o(288)][o(305)]){for(const e of this[o(284)])t[o(202)](e[o(277)]),n=!0;this[o(284)]=[],this[o(290)]=null}return n}[f(255)](t,e){const o=f;let n=!1;const i=this[o(218)][o(269)][o(282)](o(238)),{inserted:s,moved:r}=this[o(225)][o(274)](e);for(const e of[...r,...s]){const s=e[o(237)](o(214)),r=this[o(224)](s);r&&(r[o(228)]=e),p(t,i,e)&&(n=!0)}return n}[f(235)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(285)][o(274)](e);for(const e of i)this[o(203)](t,e)&&(n=!0);for(const e of s)this[o(227)](t,e)&&(n=!0);for(const e of r)this[o(208)](t,e)&&(n=!0);return n}[f(276)](t){const e=f;if(!this[e(290)])return!1;let o=!1;if(this[e(290)][e(300)]!==this[e(284)][e(268)]){const n=[];for(const t of this[e(290)][e(296)]()){const i=t[e(237)](e(214));this[e(224)](i)||(n[e(211)](t),o=!0)}for(const o of n)t[e(202)](o)}const n=new Set,i=[];for(const t of this[e(290)][e(296)]()){const s=t[e(237)](e(214));n[e(250)](s)?(i[e(211)](t),o=!0):n[e(262)](s)}for(const o of i)t[e(202)](o);return this[e(290)][e(300)]||(t[e(202)](this[e(290)]),this[e(290)]=null,o=!0),o}[f(227)](t,e){const o=f;if(this[o(284)][o(267)](t=>t[o(277)]===e))return!1;let n=!1;const i=e[o(237)](o(214)),s=this[o(284)][o(257)](t=>t.id===i);-1!==s&&(t[o(202)](this[o(284)][s][o(277)]),this[o(284)][o(221)](s,1),n=!0);let r=this[o(290)]?function(t,e){const n=o;for(const o of t[n(296)]())if(o[n(237)](n(214))===e)return o;return null}(this[o(290)],i):null;r||(r=t[o(304)](o(209),{footnoteId:i}),this[o(290)]&&(t[o(299)](r,this[o(290)],o(302)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(218)][o(259)],this[o(284)],e);this[o(284)][o(221)](c,0,a);let l=c;return-1!==s&&(l=Math[o(207)](c,s)),this[o(219)](t,l)&&(n=!0),n}[f(203)](t,e){const o=f,n=this[o(284)][o(257)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(284)][n];return o(220)!==s[o(228)][o(288)][o(305)]&&(t[o(202)](s[o(228)]),i=!0),this[o(284)][o(221)](n,1),this[o(219)](t,n)&&(i=!0),i}[f(208)](t,e){const o=f,n=e[o(237)](o(214)),i=this[o(284)][o(257)](t=>t.id===n),s=this[o(284)][i];let r=!1;s[o(277)]=e,this[o(284)][o(221)](i,1);const a=m(this[o(218)][o(259)],this[o(284)],e);return this[o(284)][o(221)](a,0,s),this[o(219)](t,Math[o(207)](i,a))&&(r=!0),r}[f(215)](t,e){const o=f;if(!this[o(290)])return!1;const n=this[o(284)][e];let i;return i=this[o(251)]?this[o(251)]({footnote:n,container:this[o(290)],digits:String(this[o(284)][o(268)])[o(268)],value:e+1}):String(e+1),n[o(277)][o(237)](o(244))!=i&&(t[o(279)](o(244),i,n[o(277)]),!0)}[f(280)](t){const e=f;if(!this[e(290)]||this[e(284)][e(268)]<2)return!1;if(function(t,o){const n=e;if(t[n(268)]!==o[n(268)])return!1;for(let e=0;e<t[n(268)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(284)][e(232)](t=>t.id),Array[e(258)](this[e(290)][e(296)]())[e(232)](t=>t[e(237)](e(214)))))return!1;let o=!1;for(let n=0;n<this[e(284)][e(268)];n++){const i=this[e(284)][n],s=t[e(254)](i[e(228)]),r=t[e(226)](this[e(290)],n);s[e(212)](r)||(t[e(266)](t[e(275)](i[e(228)]),r),o=!0)}return o}[f(206)](t){const e=f;if(!this[e(284)][e(268)])return!1;const{model:o}=this[e(218)];let n=!1;for(let i=0;i<this[e(284)][e(268)]-1;i++){const s=this[e(284)][i],r=this[e(284)][i+1],a=o[e(254)](s[e(277)]),c=o[e(254)](r[e(277)]);e(264)===a[e(287)](c)&&(this[e(208)](t,s[e(277)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(300)])return!1;const i=n(e?217:301);return t[n(299)](t[n(304)](i),o),!0}function h(){const t=["getFootnotes","3774710gzlMVX","pluginName","getChildren","listenTo","append","insert","childCount","footnoteInlineContent","end","164cfgktW","createElement","rootName","remove","_handleRemoveFootnoteReferenceById","footnoteRef","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesReferencesHaveProperOrder","min","_handleMovedFootnoteReference","footnoteDefinition","footnotesDefinitions","unshift","isEqual","94uyKjQG","footnoteId","_updateFootnoteRefCounter","626374itavFC","paragraph","editor","_updateFootnotesCounters","$graveyard","splice","26463oYFUDB","before","getFootnote","_footnoteDefsTracker","createPositionAt","_handleInsertedFootnoteReference","definition","getRootNames","_handleFootnotesDefinitionsObjectChanges","change:data","map","high","getFootnotesDefinitionsObjectElement","_handleFootnoteReferencesChanges","push","getAttribute","footnotes.multiBlock","689uHUukK","registerPostFixer","setFootnoteFormatter","1423881XfbiLy","set","footnoteCounter","singleton","differ","12339lesrWI","createRangeIn","indexOf","has","_footnoteFormatter","830IeWLlX","document","createPositionBefore","_handleFootnoteDefinitionsChanges","_footnoteDefsContainerTracker","findIndex","from","model","FootnotesTracker","40TvqjZr","add","109884UYOHdr","after","parent","move","find","length","config","some","low","isOfficialPlugin","60vzMuKG","getChanges","createRangeOn","_handleFootnotesDefinitionsObjectSync","reference","getFootnotesFormatter","setAttribute","_sortFootnoteDefinitions","isPremiumPlugin","get","84326qZciUq","_footnotes","_footnoteRefsTracker","_ensureFootnotesDefinitionsContainerExists","compareWith","root","reset","_footnotesDefinitions","init","enqueueChange"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(268)])return 0;const i=t[n(254)](o);for(let o=0;o<e[n(268)];o++){const s=e[o],r=t[n(254)](s[n(277)]);if(n(223)===i[n(287)](r))return o}const s=o[n(288)];let r=-1;for(let t=e[n(268)]-1;t>=0;t--)if(e[t][n(277)][n(288)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(253)][n(229)](),c=a[n(249)](s[n(305)]),l=a[c+1];if(l)for(let t=0;t<e[n(268)];t++)if(e[t][n(277)][n(288)][n(305)]===l)return t;return e[n(268)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=460]})(t,e)}function y(){const t=["insert-footnote-command-executed-with-invalid-id","525BXpYpj","footnoteId","get","isBlock","260YxjvOQ","editor","checkChild","footnoteRef","change","test","954CuIFqB","isObject","1494AZRJpQ","string","model","getFirstRange","refresh","end","185064pbjppN","_getPositionToInsertFootnote","_moveSelectionToFootnoteDefinition","11372ijnHau","document","insertObject","FootnotesEditing","2888394NCOjvs","getItems","31472vBhPyU","selection","length","createElement","execute","plugins","1767300xOAsBs","isEnabled","857bUSnXn","4602703ZTUhEU"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(366516===-parseInt(e(471))/1*(parseInt(e(486))/2)+-parseInt(e(474))/3*(-parseInt(e(495))/4)+parseInt(e(469))/5+-parseInt(e(461))/6+parseInt(e(472))/7+-parseInt(e(463))/8*(-parseInt(e(484))/9)+-parseInt(e(478))/10*(parseInt(e(492))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(490)](){const t=g,e=this[t(479)][t(488)][t(496)][t(464)],o=this[t(493)](e);this[t(470)]=!!o}[g(467)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(496)],r=this[e(493)](s);if(!r)return;const a=o[e(468)][e(476)](e(460)),c=t?.[e(475)]??(0,i.uid)();!function(t){const o=e;return o(487)==typeof t&&t[o(465)]>0&&!/\s/[o(483)](t)&&!/^\d/[o(483)](t)}(c)?(0,i.logWarning)(e(473)):(n[e(482)](t=>{const o=e,i=t[o(466)](o(481),{footnoteId:c});n[o(497)](i,r,null)}),a[e(494)](c))}[g(493)](t){const e=g,{model:o}=this[e(479)],{schema:n}=o,i=t[e(489)]();for(const t of i[e(462)]())if(n[e(477)](t)||n[e(485)](t))return null;const s=i[e(491)];return n[e(480)](s,e(481))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],f(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(f(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1766361600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>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 P=o(331);const A=D;function T(){const t=["getAttribute","cloneElement","toView","780536KhaWBB","createRangeIn","parse","footnoteId","config","toData","getRanges","1536euDytP","length","3810JzqzVV","get","outputTransformation","method","getFootnote","45HKgQIX","remove","footnotes.multiBlock","11QzOiRp","8198500nJeiOI","init","stringify","_handleCopyFootnotesDefinitions","54460cXyHBg","dataTransfer","selection","getChildren","_handlePasteFootnotesDefinitions","insert","document","clipboardInput","definition","isPremiumPlugin","listenTo","contentInsertion","footnoteDefinition","reduce","pluginName","editor","getFirstRange","element","requires","end","create","245401gWjAze","from","setAttribute","FootnotesClipboard","push","entries","getData","toModel","sourceEditorId","flatMap","_defineClipboardIntegration","footnotesDefinitions","footnoteRef","createElement","application/ckeditor5-footnotes","includes","find","setData","274OFdyMY","htmlProcessor","getFootnotesDefinitionsObjectElement","data","footnoteInlineContent","397064DnbXcN","change","drop","content","getSelectedBlocks","isOfficialPlugin","string","9735WdlDri","64JYjmqO","getFootnotes","_insertEmptyFootnotesDefinitionsContainer","root","append","hasAttribute","5579UhFDBH","keys","add","editing"];return(T=function(){return t})()}function D(t,e){const o=T();return(D=function(t,e){return o[t-=329]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(454963===-parseInt(e(352))/1+-parseInt(e(413))/2*(parseInt(e(338))/3)+parseInt(e(339))/4*(-parseInt(e(374))/5)+parseInt(e(361))/6*(parseInt(e(345))/7)+-parseInt(e(331))/8*(parseInt(e(366))/9)+parseInt(e(370))/10*(-parseInt(e(369))/11)+parseInt(e(359))/12*(parseInt(e(395))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(388)](){return A(398)}static get[A(392)](){return[v,P.ClipboardPipeline]}static get[A(336)](){return!0}static get[A(383)](){return!0}[A(371)](){this[A(405)]()}[A(405)](){const t=A;this[t(373)](),this[t(378)]()}[A(373)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(362)](P.ClipboardPipeline),s=o[t(362)](d);this[t(384)](i,t(363),(o,i)=>{const r=t,a=O(n[r(353)](i[r(334)]));if(!a[r(360)])return;const c=s[r(340)](),l=a[r(387)]((t,o)=>{const n=r,i=c[n(411)](t=>t.id===o);if(i){const o=e[n(329)][n(351)](i[n(382)],{isClipboardPipeline:!0}),s=e[n(329)][n(414)][n(357)](o);t[i.id]=s}return t},Object[r(394)](null));i[r(375)][r(412)](r(409),JSON[r(372)](l))})}[A(378)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(348)],r=n[t(362)](P.ClipboardPipeline),a=n[t(362)](d),c=e[t(356)][t(362)](t(368));let l=null;this[t(384)](s[t(380)],t(381),(e,o)=>{const n=t,i=o[n(375)][n(401)](n(409));l=i?JSON[n(354)](i):null}),this[t(384)](r,t(385),(n,s)=>{const r=t,u=s[r(403)]===this[r(389)].id;u&&r(333)===s[r(364)]||o[r(332)](t=>{const n=r;let f=a[n(415)]();const d=!!f&&Array[n(396)](o[n(380)][n(376)][n(335)]())[n(410)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(391),e(407)))return!0;return!1}(o[n(353)](s[n(334)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(394)](null);for(const e of i[o(377)]())e.is(o(391),o(386))&&e[o(344)](o(355))&&(s[e[o(349)](o(355))]=t[o(350)](e,!0));return Object[o(346)](s)[o(360)]?s:null}(t,s[n(334)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(353)](e))n.is(o(391),o(406))&&i[o(399)](n);for(const e of i)t[o(367)](e)}(t,s[n(334)]),!l)return;const{selection:p}=o[n(380)],h=p[n(390)]()[n(342)];f&&!d||(f=L(t,s[n(334)]),f||=a[n(341)](t,h));const m=Array[n(396)](p[n(358)]())[n(404)](O),g=function(t,e,o){const s=n,r=Object[s(394)](null);for(const{item:n}of t[s(353)](e))if(n.is(s(391),s(407))){const e=n[s(349)](s(355));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(397)](s(355),r[e],n)}return r}(t,s[n(334)],t=>{const e=n;return!u||!!a[e(365)](t)&&!m[e(410)](t)});for(const[o,i]of Object[n(400)](l)){const s=g[o]||o;let r;if(n(337)!=typeof i)r=i,s!==o&&t[n(397)](n(355),s,r);else{r=t[n(408)](n(386),{footnoteId:s});const o=e[n(329)][n(414)][n(351)](i);let a;if(c)a=e[n(329)][n(402)](o,r);else{a=t[n(408)](n(330));const i=e[n(329)][n(402)](o,a);t[n(379)](i,a)}t[n(343)](a,r)}t[n(379)](r,f,n(393))}l=null})})}}function L(t,e){const o=A;for(const{item:n}of t[o(353)](e))if(n.is(o(391),o(406)))return n;return null}function O(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(391),e(407))&&o[e(347)](n[e(349)](e(355)));return Array[e(396)](o)}var V=o(311),N=o(355),R=o(929),K=o.n(R),j=o(297),M=o.n(j),B=o(102),z=o.n(B),U=o(123),W=o.n(U),H=o(741),q=o.n(H),X=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=W(),G.insert=z().bind(null,"head"),G.domAPI=M(),G.insertStyleElement=q();K()(X.A,G);X.A&&X.A.locals&&X.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,V.ButtonView)),e.add("menuBar:insertFootnote",Y(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 Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Z=$;function Q(){var t=["Footnotes","17541OVSQXy","106KdwgPR","isPremiumPlugin","1788024WDrNGm","isOfficialPlugin","3347364wdrURy","1397018BtaOiW","12KEKTNi","18hmyaql","4082793OjTGCc","7060330HAdxXh","8176780bsOQuG","pluginName","requires"];return(Q=function(){return t})()}function $(t,e){var o=Q();return($=function(t,e){return o[t-=194]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(868738===parseInt(e(206))/1*(-parseInt(e(207))/2)+parseInt(e(200))/3+parseInt(e(196))/4+parseInt(e(202))/5+parseInt(e(198))/6*(-parseInt(e(197))/7)+-parseInt(e(194))/8+parseInt(e(199))/9*(-parseInt(e(201))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class tt extends t.Plugin{static get[Z(203)](){return Z(205)}static get[Z(204)](){return[v,_,J]}static get[Z(195)](){return!0}static get[Z(208)](){return!0}}function et(){const t=["11xoNVrb","decimal-leading-zero","49mwJHza","upper-latin","101636EpSbbm","lower-alpha","lower-latin","decimal","335078MCIzDu","lower-roman","211494YsTyiP","upper-alpha","673146AGfBUq","2358WRfyXf","16312NWYPVH","upper-roman","8195290MMTbbZ","1136050ekQSOr","6MIbKBD"];return(et=function(){return t})()}const ot=nt;function nt(t,e){const o=et();return(nt=function(t,e){return o[t-=157]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(447087===-parseInt(e(161))/1+parseInt(e(163))/2+-parseInt(e(171))/3*(parseInt(e(157))/4)+parseInt(e(170))/5+parseInt(e(165))/6*(parseInt(e(174))/7)+-parseInt(e(167))/8*(-parseInt(e(166))/9)+-parseInt(e(169))/10*(parseInt(e(172))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[ot(160),ot(173),ot(159),ot(175),ot(158),ot(164),ot(162),ot(168)],st=rt;function rt(t,e){const o=at();return(rt=function(t,e){return o[t-=267]})(t,e)}function at(){const t=["51261TqCAEh","getFootnotesDefinitionsObjectElement","4fBnzbb","includes","_updateFootnotesCounters","1733eudsAV","refresh","change","plugins","421195rgkfFz","getAttribute","80aVwdfV","isEnabled","1135080dycJGF","8469350XKVzJS","358UlbUqw","execute","model","setAttribute","1154427zqwVET","3528114rqgdKs","footnotesListStyle","get","value"];return(at=function(){return t})()}!function(t){const e=rt,o=t();for(;;)try{if(299425===parseInt(e(271))/1*(parseInt(e(281))/2)+-parseInt(e(285))/3+parseInt(e(268))/4*(-parseInt(e(275))/5)+-parseInt(e(286))/6+-parseInt(e(290))/7*(-parseInt(e(277))/8)+parseInt(e(279))/9+parseInt(e(280))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[st(272)](){const t=st,{editor:e}=this,o=e[t(274)][t(288)](d)[t(267)]();this[t(278)]=!!o,this[t(289)]=o?.[t(276)](t(287))??null}[st(282)]({value:t}){const e=st,{editor:o}=this,n=o[e(274)][e(288)](d),i=n[e(267)]();i&&it[e(269)](t)&&o[e(283)][e(273)](o=>{const s=e;o[s(284)](s(287),t,i),n[s(270)](o)})}}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=199]})(t,e)}function ft(){const t=["getAttribute","value","56VehpEZ","refresh","plugins","33901aUKveW","276465jppDiv","_updateFootnotesCounters","4IBcvQO","getFootnotesDefinitionsObjectElement","isEnabled","footnotesListStart","348399YtBviA","setAttribute","433378ilOyju","1208705ZZJXrY","get","17230xgOHAX","isInteger","99502pelpLR","execute","change","354csMeJN","model"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(150122===parseInt(e(219))/1+parseInt(e(214))/2+parseInt(e(206))/3+-parseInt(e(208))/4*(parseInt(e(215))/5)+-parseInt(e(222))/6*(parseInt(e(205))/7)+parseInt(e(202))/8*(parseInt(e(212))/9)+-parseInt(e(217))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(203)](){const t=lt,{editor:e}=this,o=e[t(204)][t(216)](d)[t(209)]();this[t(210)]=!!o,this[t(201)]=o?.[t(200)](t(211))??null}[lt(220)]({value:t}){const e=lt,{editor:o}=this,n=o[e(204)][e(216)](d),i=n[e(209)]();i&&Number[e(218)](t)&&o[e(199)][e(221)](o=>{const s=e;o[s(213)](s(211),t,i),n[s(207)](o)})}}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=462]})(t,e)}function mt(){const t=["footnotes.footnotesProperties.defaultStartIndex","getChanges","upper-alpha","element:ol","12fSPjuD","hasAttribute","getChildren","createRangeOn","setStyle","isNaN","38qAQytx","parent","extend","plugins","find","getItems","downcast","getStyle","26479WqXukL","insert","init","hasClass","_formatFootnoteListValue","removeStyle","footnotes-list","mapper","registerPostFixer","_defineSchema","setFootnoteFormatter","isPremiumPlugin","item","lower-alpha","document","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStart","for","writer","upper-latin","attribute:footnotesListStart:footnotesDefinitions","toViewElement","type","define","18216330ifoWSf","_getDefaultListStyle","footnotesStart","_updateFootnotesCounters","modelCursor","toLowerCase","decimal","16bZlRgh","consumable","removeAttribute","upcast","upper-roman","_defineFormatter","footnotes.footnotesProperties.defaultListStyle","161080zYOGtf","add","FootnotesPropertiesEditing","setAttribute","element","getAttribute","list-style-type","viewItem","63rUAnog","commands","652596jmtDGw","1840560cuRmwl","lower-roman","from","_getDefaultStartIndex","model","parseInt","2082mDHlSA","start","position","isOfficialPlugin","lower-latin","432141eUfzlu","padStart","requires","decimal-leading-zero","fromCharCode","floor","footnotesStyle","consume","editor","pluginName","config","schema","toUpperCase","get","footnotesListStyle","_defineConverters","differ","_definePostfixer","max","$text","checkAttribute","nodeAfter","3675dPMNEN","name","footnotesDefinitions"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(371813===-parseInt(e(481))/1*(parseInt(e(473))/2)+-parseInt(e(541))/3*(parseInt(e(512))/4)+parseInt(e(563))/5*(-parseInt(e(536))/6)+parseInt(e(529))/7+parseInt(e(519))/8*(parseInt(e(527))/9)+-parseInt(e(530))/10+-parseInt(e(505))/11*(-parseInt(e(467))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(550)](){return pt(521)}static get[pt(543)](){return[v,d]}static get[pt(539)](){return!0}static get[pt(492)](){return!0}[pt(483)](){const t=pt,{editor:e}=this;e[t(551)][t(504)](t(518),t(511)),e[t(551)][t(504)](t(463),1),e[t(528)][t(520)](t(547),new ct(e)),e[t(528)][t(520)](t(507),new dt(e)),this[t(490)](),this[t(556)](),this[t(517)](),this[t(558)]()}[pt(490)](){const t=pt,{editor:e}=this,{schema:o}=e[t(534)];o[t(475)](t(462),{allowAttributes:[t(555),t(497)]})}[pt(556)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(498)](t(515))[t(520)](e=>{const o=t;e.on(o(466),(t,e,n)=>{const s=o,r=e[s(526)],a=e[s(509)]?.[s(474)];r[s(484)](s(487))&&a?.is(s(523),s(462))&&(function(t,e,o,n){const i=s;if(!n[i(561)](e,i(497)))return;let r=1;const a=o[i(513)][i(548)](t,{attributes:i(537)});if(a){const e=Number[i(535)](t[i(524)](i(537)),10);Number[i(472)](e)||(r=e)}!a&&e[i(468)](i(497))||o[i(499)][i(522)](i(497),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(561)](e,i(555)))return;let r=i(511),a=!1;if(o[i(513)][i(548)](t,{attributes:i(503)})){const e={1:i(511),a:i(494),A:i(465),i:i(531),I:i(516)}[t[i(524)](i(503))];e&&(r=e),a=!0}o[i(513)][i(548)](t,{styles:i(525)})&&(r=function(t){const e=i;switch(t){case e(494):return e(540);case e(465):return e(500);default:return t}}(t[i(480)](i(525))),a=!0),!a&&e[i(468)](i(555))||o[i(499)][i(522)](i(555),r,e)}(r,a,n,i))})}),o[t(498)](t(479))[t(520)](e=>{const o=t;e.on(o(501),(t,e,n)=>{const i=o;if(!n[i(513)][i(548)](e[i(493)],t[i(564)]))return;const s=wt(e[i(493)],n[i(488)]),{attributeNewValue:r}=e;null==r||1===r?n[i(499)][i(514)](i(537),s):n[i(499)][i(522)](i(537),String(r),s)}),e.on(o(496),(t,e,n)=>{const i=o;if(!n[i(513)][i(548)](e[i(493)],t[i(564)]))return;const s=wt(e[i(493)],n[i(488)]),{attributeNewValue:r}=e;r&&i(511)!==r?n[i(499)][i(471)](i(525),r,s):n[i(499)][i(486)](i(525),s)})})}[pt(558)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(476)][t(554)](d),i=this[t(506)](),s=this[t(533)]();o[t(495)][t(489)](e=>{const r=t,a=o[r(495)][r(557)][r(464)]();let c=!1;for(const t of a){if(r(482)!==t[r(503)]||r(560)===t[r(564)])continue;const n=o[r(470)](t[r(538)][r(562)]);for(const t of n[r(478)]())t.is(r(523),r(462))&&(!t[r(468)](r(497))&&o[r(552)][r(561)](t,r(497))&&(e[r(522)](r(497),s,t),c=!0),!t[r(468)](r(555))&&o[r(552)][r(561)](t,r(555))&&(e[r(522)](r(555),i,t),c=!0))}return c&&n[r(508)](e),c})}[pt(517)](){const t=pt,{editor:e}=this;e[t(476)][t(554)](d)[t(491)](e=>this[t(485)](e))}[pt(506)](){const t=pt;return this[t(549)][t(551)][t(554)](t(518))}[pt(533)](){const t=pt;return this[t(549)][t(551)][t(554)](t(463))}[pt(485)]({container:t,value:e,digits:o}){const n=pt,i=t[n(524)](n(555)),s=t[n(524)](n(497)),r=Math[n(546)](e)+(s??1)-1;switch(i){case n(544):return function(t,e){const o=n;return String(t)[o(542)](e,"0")}(r,Math[n(559)](2,o));case n(494):case n(540):return yt(r,!1);case n(465):case n(500):return yt(r,!0);case n(531):return vt(r,!1);case n(516):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(502)](t);return Array[o(532)](n[o(469)]())[o(477)](t=>t.is(o(523),"ol")&&t[o(484)](o(487)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(545)](97+t)+n,i=Math[o(546)]((i-1)/26)}return e?n[o(553)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(510)]()}class It 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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(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 xt=Et;function Et(t,e){var o=St();return(Et=function(t,e){return o[t-=158]})(t,e)}function St(){var t=["286390GAEWUw","211348Bcphua","4cMjZVw","isOfficialPlugin","503634JrMnYf","requires","1706928zOxkJx","isPremiumPlugin","126133OZXJRw","197097GoLMTi","pluginName","3791568fJVWpH","FootnotesProperties"];return(St=function(){return t})()}!function(t){for(var e=Et,o=t();;)try{if(190311===-parseInt(e(166))/1+-parseInt(e(169))/2+parseInt(e(161))/3*(-parseInt(e(167))/4)+-parseInt(e(165))/5+parseInt(e(158))/6+parseInt(e(160))/7+parseInt(e(163))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[xt(162)](){return xt(164)}static get[xt(170)](){return[gt,Ft]}static get[xt(168)](){return!0}static get[xt(159)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=176]})(t,e)}function Tt(){var t=["3bFWfvK","12086808YzoNwN","2359388imGraz","423035dZmXHN","10004643mPwhSH","654970XbdWrN","1200318XGOPln","8564066NCYNiX","102rLTuYQ"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(943331===-parseInt(e(178))/1+-parseInt(e(177))/2*(parseInt(e(181))/3)+-parseInt(e(183))/4+-parseInt(e(184))/5*(-parseInt(e(180))/6)+parseInt(e(179))/7+parseInt(e(182))/8+-parseInt(e(176))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(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),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:()=>$,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>u,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["delete","_getElementKey","get","2qDToTG","elementName","flat","2156696awnzyF","1974343HKCmyT","rootName","add","getElementKey","6ELgrxa","element","560196eHbefS","length","nodeAfter","_elementName","4524005ENtffV","insert","push","279326ugLXKa","type","5608910aLEcqJ","from","27amQTBu","_model","$graveyard","name","remove","10408AXrbBv","root","createRangeOn","has","set","position","attributes","reset","getItems","values","$text","clear","slice","_trackedElements","getChanges"];return(r=function(){return t})()}function a(t,e){const o=r();return(a=function(t,e){return o[t-=159]})(t,e)}const c=a;!function(t){const e=a,o=t();for(;;)try{if(464874===parseInt(e(177))/1*(parseInt(e(160))/2)+-parseInt(e(170))/3+-parseInt(e(186))/4+-parseInt(e(174))/5*(-parseInt(e(168))/6)+-parseInt(e(164))/7+-parseInt(e(163))/8*(parseInt(e(181))/9)+parseInt(e(179))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[c(182)];[c(173)];[c(202)];[c(199)]=new Map;constructor(t,e){const o=c;this[o(182)]=t,this[o(173)]=e[o(161)],this[o(202)]=e[o(167)]}[c(193)](){const t=c;this[t(199)][t(197)]()}[c(200)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(175)===i[e(178)]&&e(196)!==i[e(184)]&&i[e(191)][e(172)]){const t=this[e(182)][e(188)](i[e(191)][e(172)]);for(const o of t[e(194)]()){if(!o.is(e(169),this[e(173)]))continue;const t=this[e(202)](o);n[e(189)](t)||n[e(190)](t,[]),n[e(159)](t)[e(176)](o)}}if(e(185)===i[e(178)]&&i[e(184)]===this[e(173)]){const t=this[e(202)]({getAttribute:t=>i[e(192)][e(159)](t)});o[e(166)](t)}}for(const[t,n]of this[e(199)])e(183)===n[e(187)][e(165)]&&o[e(166)](t);for(const t of o)this[e(199)][e(201)](t);for(const[t,o]of n)this[e(199)][e(190)](t,o[o[e(171)]-1]);const i=new Set;for(const[t,s]of n)o[e(189)](t)&&(i[e(166)](s[0]),s[e(171)]>1?n[e(190)](t,s[e(198)](1)):n[e(201)](t),o[e(201)](t));return{removed:Array[e(180)](o),inserted:Array[e(180)](n[e(195)]())[e(162)](),moved:Array[e(180)](i)}}}const f=p;!function(t){const e=p,o=t();for(;;)try{if(237046===-parseInt(e(384))/1+-parseInt(e(390))/2*(-parseInt(e(363))/3)+parseInt(e(394))/4*(-parseInt(e(407))/5)+-parseInt(e(424))/6*(-parseInt(e(399))/7)+-parseInt(e(370))/8+parseInt(e(335))/9+parseInt(e(357))/10*(parseInt(e(391))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class u extends t.Plugin{[f(380)]=[];[f(367)]=null;[f(425)]=null;[f(342)];[f(404)];[f(405)];static get[f(364)](){return f(366)}static get[f(347)](){return!0}static get[f(351)](){return!0}constructor(t){const e=f;super(t),this[e(342)]=new l(this[e(327)][e(415)],{elementName:e(377),getElementKey:()=>e(396)}),this[e(404)]=new l(this[e(327)][e(415)],{elementName:e(328),getElementKey:t=>t[e(348)](e(360))}),this[e(405)]=new l(this[e(327)][e(415)],{elementName:e(333),getElementKey:t=>t[e(348)](e(360))})}[f(389)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(381)][t(400)](e=>{const n=t,i=o[n(381)][n(395)][n(349)]();let s=!1;return this[n(372)](e,i)&&(s=!0),this[n(402)](e,i)&&(s=!0),this[n(383)](e,i)&&(s=!0),this[n(352)](e)&&(s=!0),this[n(417)](e)&&(s=!0),this[n(412)](e)&&(s=!0),s}),this[t(397)](o[t(381)],t(382),()=>{const e=t;o[e(406)]({isUndoable:!1},t=>{this[e(330)](t)})},{priority:t(393)}),this[t(397)](n,t(403),()=>{const e=t;this[e(380)]=[],this[e(342)][e(344)](),this[e(404)][e(344)](),this[e(405)][e(344)]()},{priority:t(369)})}[f(356)](){return this[f(367)]}[f(416)](t){const e=f;return this[e(380)][e(375)](e=>e.id===t)||null}[f(362)](){const t=f;return Array[t(338)](this[t(380)])}[f(329)](){return this[f(425)]}[f(339)](t){this[f(425)]=t}[f(411)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(380)][o(350)];i++)this[o(346)](t,i)&&(n=!0);return n}[f(414)](t,e){const o=f,n=t[o(398)](o(377),{});return t[o(365)](n,e),this[o(367)]=n,n}[f(330)](t){const e=f;if(!this[e(380)][e(350)]||this[e(367)])return;const o=this[e(380)][0][e(373)][e(387)],n=this[e(414)](t,o);for(const o of this[e(380)])o[e(386)][e(385)]||t[e(331)](o[e(386)],n,e(353));this[e(411)](t)}[f(372)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(342)][o(349)](e);if(r[o(350)]&&(this[o(367)]=r[0]),i[o(350)])if(i[o(350)]>1||this[o(367)]&&i[o(423)](t=>t!==this[o(367)])){const e=t[o(398)](o(377),{}),s=[];this[o(367)]&&s[o(427)](this[o(367)]),s[o(427)](...i),t[o(331)](e,s[0],o(410));for(const n of s)t[o(408)](t[o(420)](n),t[o(359)](e,o(353))),t[o(409)](n);this[o(367)]=e,this[o(411)](t),n=!0}else this[o(367)]=i[0];if(s[o(350)]&&o(388)===this[o(367)]?.[o(387)][o(392)]){for(const e of this[o(380)])t[o(409)](e[o(373)]),n=!0;this[o(380)]=[],this[o(367)]=null}return n}[f(402)](t,e){const o=f;let n=!1;const i=this[o(327)][o(345)][o(368)](o(337)),{inserted:s,moved:r}=this[o(405)][o(349)](e);for(const e of[...r,...s]){const s=e[o(348)](o(360)),r=this[o(416)](s);r&&(r[o(386)]=e),d(t,i,e)&&(n=!0)}return n}[f(383)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(404)][o(349)](e);for(const e of i)this[o(374)](t,e)&&(n=!0);for(const e of s)this[o(418)](t,e)&&(n=!0);for(const e of r)this[o(378)](t,e)&&(n=!0);return n}[f(417)](t){const e=f;if(!this[e(367)])return!1;let o=!1;if(this[e(367)][e(334)]!==this[e(380)][e(350)]){const n=[];for(const t of this[e(367)][e(341)]()){const i=t[e(348)](e(360));this[e(416)](i)||(n[e(332)](t),o=!0)}for(const o of n)t[e(409)](o)}const n=new Set,i=[];for(const t of this[e(367)][e(341)]()){const s=t[e(348)](e(360));n[e(361)](s)?(i[e(332)](t),o=!0):n[e(422)](s)}for(const o of i)t[e(409)](o);return this[e(367)][e(334)]||(t[e(409)](this[e(367)]),this[e(367)]=null,o=!0),o}[f(418)](t,e){const o=f;if(this[o(380)][o(375)](t=>t[o(373)]===e))return!1;let n=!1;const i=e[o(348)](o(360)),s=this[o(380)][o(421)](t=>t.id===i);-1!==s&&(t[o(409)](this[o(380)][s][o(373)]),this[o(380)][o(413)](s,1),n=!0);let r=this[o(367)]?function(t,e){const n=o;for(const o of t[n(341)]())if(o[n(348)](n(360))===e)return o;return null}(this[o(367)],i):null;r||(r=t[o(398)](o(333),{footnoteId:i}),this[o(367)]&&(t[o(331)](r,this[o(367)],o(353)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(327)][o(415)],this[o(380)],e);this[o(380)][o(413)](c,0,a);let l=c;return-1!==s&&(l=Math[o(358)](c,s)),this[o(411)](t,l)&&(n=!0),n}[f(374)](t,e){const o=f,n=this[o(380)][o(421)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(380)][n];return o(388)!==s[o(386)][o(387)][o(392)]&&(t[o(409)](s[o(386)]),i=!0),this[o(380)][o(413)](n,1),this[o(411)](t,n)&&(i=!0),i}[f(378)](t,e){const o=f,n=e[o(348)](o(360)),i=this[o(380)][o(421)](t=>t.id===n),s=this[o(380)][i];let r=!1;s[o(373)]=e,this[o(380)][o(413)](i,1);const a=m(this[o(327)][o(415)],this[o(380)],e);return this[o(380)][o(413)](a,0,s),this[o(411)](t,Math[o(358)](i,a))&&(r=!0),r}[f(346)](t,e){const o=f;if(!this[o(367)])return!1;const n=this[o(380)][e];let i;return i=this[o(425)]?this[o(425)]({footnote:n,container:this[o(367)],digits:String(this[o(380)][o(350)])[o(350)],value:e+1}):String(e+1),n[o(373)][o(348)](o(419))!=i&&(t[o(355)](o(419),i,n[o(373)]),!0)}[f(412)](t){const e=f;if(!this[e(367)]||this[e(380)][e(350)]<2)return!1;if(function(t,o){const n=e;if(t[n(350)]!==o[n(350)])return!1;for(let e=0;e<t[n(350)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(380)][e(428)](t=>t.id),Array[e(338)](this[e(367)][e(341)]())[e(428)](t=>t[e(348)](e(360)))))return!1;let o=!1;for(let n=0;n<this[e(380)][e(350)];n++){const i=this[e(380)][n],s=t[e(340)](i[e(386)]),r=t[e(359)](this[e(367)],n);s[e(426)](r)||(t[e(408)](t[e(401)](i[e(386)]),r),o=!0)}return o}[f(352)](t){const e=f;if(!this[e(380)][e(350)])return!1;const{model:o}=this[e(327)];let n=!1;for(let i=0;i<this[e(380)][e(350)]-1;i++){const s=this[e(380)][i],r=this[e(380)][i+1],a=o[e(340)](s[e(373)]),c=o[e(340)](r[e(373)]);e(336)===a[e(376)](c)&&(this[e(378)](t,s[e(373)]),i=-1,n=!0)}return n}}function d(t,e,o){const n=f;if(o[n(334)])return!1;const i=n(e?379:343);return t[n(331)](t[n(398)](i),o),!0}function p(t,e){const o=h();return(p=function(t,e){return o[t-=327]})(t,e)}function h(){const t=["createPositionBefore","getChildren","_footnoteDefsContainerTracker","footnoteInlineContent","reset","config","_updateFootnoteRefCounter","isOfficialPlugin","getAttribute","getChanges","length","isPremiumPlugin","_ensureFootnotesReferencesHaveProperOrder","end","indexOf","setAttribute","getFootnotesDefinitionsObjectElement","50jgfTKY","min","createPositionAt","footnoteId","has","getFootnotes","366QWJmGX","pluginName","append","FootnotesTracker","_footnotesDefinitions","get","high","1853072FhSxdz","getRootNames","_handleFootnotesDefinitionsObjectChanges","reference","_handleRemoveFootnoteReferenceById","find","compareWith","footnotesDefinitions","_handleMovedFootnoteReference","paragraph","_footnotes","document","change:data","_handleFootnoteReferencesChanges","405372FaHyxz","parent","definition","root","$graveyard","init","4654liftCJ","1068859zLgaNs","rootName","low","76jOeNZa","differ","singleton","listenTo","createElement","163261pWipup","registerPostFixer","createRangeOn","_handleFootnoteDefinitionsChanges","set","_footnoteRefsTracker","_footnoteDefsTracker","enqueueChange","91525jARMNB","move","remove","before","_updateFootnotesCounters","_sortFootnoteDefinitions","splice","_insertEmptyFootnotesDefinitionsContainer","model","getFootnote","_handleFootnotesDefinitionsObjectSync","_handleInsertedFootnoteReference","footnoteCounter","createRangeIn","findIndex","add","some","24fvCywp","_footnoteFormatter","isEqual","push","map","editor","footnoteRef","getFootnotesFormatter","_ensureFootnotesDefinitionsContainerExists","insert","unshift","footnoteDefinition","childCount","3229344QBhJyn","after","footnotes.multiBlock","from","setFootnoteFormatter"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(350)])return 0;const i=t[n(340)](o);for(let o=0;o<e[n(350)];o++){const s=e[o],r=t[n(340)](s[n(373)]);if(n(410)===i[n(376)](r))return o}const s=o[n(387)];let r=-1;for(let t=e[n(350)]-1;t>=0;t--)if(e[t][n(373)][n(387)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(381)][n(371)](),c=a[n(354)](s[n(392)]),l=a[c+1];if(l)for(let t=0;t<e[n(350)];t++)if(e[t][n(373)][n(387)][n(392)]===l)return t;return e[n(350)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=432]})(t,e)}const w=g;function y(){const t=["checkChild","length","insert-footnote-command-executed-with-invalid-id","isEnabled","1253058zNyxZu","6LtdDPr","get","3910319orRnLO","end","_getPositionToInsertFootnote","createElement","document","change","17430rSERoR","insertObject","1760292dLzfFJ","footnoteId","plugins","_moveSelectionToFootnoteDefinition","refresh","30mkGYLI","getItems","editor","footnoteRef","execute","isBlock","test","449021tavUvO","18549rfCPTQ","2998992YafQEp","string","15722848KCCzgp","FootnotesEditing","getFirstRange","isObject","selection","model"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(999371===parseInt(e(462))/1*(parseInt(e(440))/2)+parseInt(e(450))/3+-parseInt(e(464))/4+parseInt(e(455))/5*(-parseInt(e(439))/6)+-parseInt(e(442))/7+-parseInt(e(466))/8+parseInt(e(463))/9*(parseInt(e(448))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(454)](){const t=w,e=this[t(457)][t(434)][t(446)][t(433)],o=this[t(444)](e);this[t(438)]=!!o}[w(459)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(446)],r=this[e(444)](s);if(!r)return;const a=o[e(452)][e(441)](e(467)),c=t?.[e(451)]??(0,i.uid)();!function(t){const o=e;return o(465)==typeof t&&t[o(436)]>0&&!/\s/[o(461)](t)&&!/^\d/[o(461)](t)}(c)?(0,i.logWarning)(e(437)):(n[e(447)](t=>{const o=e,i=t[o(445)](o(458),{footnoteId:c});n[o(449)](i,r,null)}),a[e(453)](c))}[w(444)](t){const e=w,{model:o}=this[e(457)],{schema:n}=o,i=t[e(468)]();for(const t of i[e(456)]())if(n[e(460)](t)||n[e(432)](t))return null;const s=i[e(443)];return n[e(435)](s,e(458))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[u]}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++,1512==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:1766448e3;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(u).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(u).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const A=L;function T(){const t=["isOfficialPlugin","data","config","includes","remove","setData","reduce","insert","application/ckeditor5-footnotes","24021FNKoVQ","outputTransformation","setAttribute","keys","createRangeIn","getChildren","stringify","toView","create","footnoteInlineContent","editor","content","6oZdHyF","_insertEmptyFootnotesDefinitionsContainer","isPremiumPlugin","document","length","930Byxsxk","entries","1772MCPGqK","toData","requires","getFootnote","selection","find","getSelectedBlocks","_handleCopyFootnotesDefinitions","getFootnotesDefinitionsObjectElement","drop","sourceEditorId","getData","parse","htmlProcessor","footnotes.multiBlock","contentInsertion","append","method","getFootnotes","hasAttribute","push","root","getAttribute","FootnotesClipboard","2332620KeYDPu","footnotesDefinitions","flatMap","_defineClipboardIntegration","toModel","3972624IcIINa","get","cloneElement","add","4161KoNMlf","string","footnoteRef","getFirstRange","812732lvkeUl","createElement","from","clipboardInput","pluginName","editing","getRanges","footnoteDefinition","definition","4094167bOPfAd","486078zAMtvZ","init","dataTransfer","footnoteId","element","change","end","listenTo","_handlePasteFootnotesDefinitions"];return(T=function(){return t})()}function L(t,e){const o=T();return(L=function(t,e){return o[t-=368]})(t,e)}!function(t){const e=L,o=t();for(;;)try{if(348435===-parseInt(e(425))/1+-parseInt(e(415))/2+parseInt(e(411))/3*(parseInt(e(378))/4)+parseInt(e(402))/5+parseInt(e(371))/6*(-parseInt(e(424))/7)+parseInt(e(407))/8+-parseInt(e(443))/9*(-parseInt(e(376))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(419)](){return A(401)}static get[A(380)](){return[v,S.ClipboardPipeline]}static get[A(434)](){return!0}static get[A(373)](){return!0}[A(426)](){this[A(405)]()}[A(405)](){const t=A;this[t(385)](),this[t(433)]()}[A(385)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(408)](S.ClipboardPipeline),s=o[t(408)](u);this[t(432)](i,t(444),(o,i)=>{const r=t,a=R(n[r(447)](i[r(370)]));if(!a[r(375)])return;const c=s[r(396)](),l=a[r(440)]((t,o)=>{const n=r,i=c[n(383)](t=>t.id===o);if(i){const o=e[n(435)][n(450)](i[n(423)],{isClipboardPipeline:!0}),s=e[n(435)][n(391)][n(379)](o);t[i.id]=s}return t},Object[r(451)](null));i[r(427)][r(439)](r(442),JSON[r(449)](l))})}[A(433)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(420)],r=n[t(408)](S.ClipboardPipeline),a=n[t(408)](u),c=e[t(436)][t(408)](t(392));let l=null;this[t(432)](s[t(374)],t(418),(e,o)=>{const n=t,i=o[n(427)][n(389)](n(442));l=i?JSON[n(390)](i):null}),this[t(432)](r,t(393),(n,s)=>{const r=t,f=s[r(388)]===this[r(369)].id;f&&r(387)===s[r(395)]||o[r(430)](t=>{const n=r;let u=a[n(386)]();const d=!!u&&Array[n(417)](o[n(374)][n(382)][n(384)]())[n(437)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(429),e(413)))return!0;return!1}(o[n(447)](s[n(370)]))&&(l=function(t,e){const o=n,i=D(t,e);if(!i)return null;const s=Object[o(451)](null);for(const e of i[o(448)]())e.is(o(429),o(422))&&e[o(397)](o(428))&&(s[e[o(400)](o(428))]=t[o(409)](e,!0));return Object[o(446)](s)[o(375)]?s:null}(t,s[n(370)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(447)](e))n.is(o(429),o(403))&&i[o(398)](n);for(const e of i)t[o(438)](e)}(t,s[n(370)]),!l)return;const{selection:p}=o[n(374)],h=p[n(414)]()[n(399)];u&&!d||(u=D(t,s[n(370)]),u||=a[n(372)](t,h));const m=Array[n(417)](p[n(421)]())[n(404)](R),g=function(t,e,o){const s=n,r=Object[s(451)](null);for(const{item:n}of t[s(447)](e))if(n.is(s(429),s(413))){const e=n[s(400)](s(428));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(445)](s(428),r[e],n)}return r}(t,s[n(370)],t=>{const e=n;return!f||!!a[e(381)](t)&&!m[e(437)](t)});for(const[o,i]of Object[n(377)](l)){const s=g[o]||o;let r;if(n(412)!=typeof i)r=i,s!==o&&t[n(445)](n(428),s,r);else{r=t[n(416)](n(422),{footnoteId:s});const o=e[n(435)][n(391)][n(450)](i);let a;if(c)a=e[n(435)][n(406)](o,r);else{a=t[n(416)](n(368));const i=e[n(435)][n(406)](o,a);t[n(441)](i,a)}t[n(394)](a,r)}t[n(441)](r,u,n(431))}l=null})})}}function D(t,e){const o=A;for(const{item:n}of t[o(447)](e))if(n.is(o(429),o(403)))return n;return null}function R(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(429),e(413))&&o[e(410)](n[e(400)](e(428)));return Array[e(417)](o)}var V=o(311),N=o(355),O=o(929),K=o.n(O),M=o(297),j=o.n(M),B=o(102),z=o.n(B),U=o(123),W=o.n(U),H=o(741),q=o.n(H),G=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=W(),J.insert=z().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=q();K()(G.A,J);G.A&&G.A.locals&&G.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,V.ButtonView)),e.add("menuBar:insertFootnote",Z(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 Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:N.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(t,e){var o=tt();return(Q=function(t,e){return o[t-=214]})(t,e)}var Y=Q;!function(t){for(var e=Q,o=t();;)try{if(159464===-parseInt(e(220))/1*(parseInt(e(223))/2)+parseInt(e(221))/3+-parseInt(e(216))/4+parseInt(e(217))/5*(parseInt(e(222))/6)+parseInt(e(215))/7*(parseInt(e(228))/8)+-parseInt(e(214))/9+parseInt(e(226))/10*(-parseInt(e(219))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);class $ extends t.Plugin{static get[Y(227)](){return Y(229)}static get[Y(224)](){return[v,_,X]}static get[Y(225)](){return!0}static get[Y(218)](){return!0}}function tt(){var t=["777129qtXKDz","152478ZuoGyd","1934KHsROJ","requires","isOfficialPlugin","810yLHyOA","pluginName","240984uzidmq","Footnotes","322632CXfYcs","7QJyxnl","181616gBHgKL","10btgKzy","isPremiumPlugin","12694qPOOdt","6RCvGNh"];return(tt=function(){return t})()}function et(){const t=["40700GzoUde","5942493MVbtdk","decimal-leading-zero","lower-roman","1947473gnbIUc","1050FAPvFX","upper-roman","13274EgeilK","lower-latin","upper-latin","decimal","60462AnBqRl","upper-alpha","30QgiJEp","lower-alpha","453GgzJZG","247bGoqzW","8806755wmaDLQ","14254296XVpcex"];return(et=function(){return t})()}const ot=nt;function nt(t,e){const o=et();return(nt=function(t,e){return o[t-=122]})(t,e)}!function(t){const e=nt,o=t();for(;;)try{if(943096===parseInt(e(130))/1*(parseInt(e(140))/2)+parseInt(e(129))/3*(-parseInt(e(133))/4)+parseInt(e(131))/5+parseInt(e(125))/6*(-parseInt(e(138))/7)+parseInt(e(132))/8+-parseInt(e(134))/9+parseInt(e(127))/10*(-parseInt(e(137))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(et);const it=[ot(124),ot(135),ot(122),ot(123),ot(128),ot(126),ot(136),ot(139)],st=at;function rt(){const t=["31354RkFjvm","763371tzUMIx","plugins","890610TNHBQW","165425ZWqvqO","includes","get","2982200lcuBxB","refresh","getFootnotesDefinitionsObjectElement","value","6LsPZem","footnotesListStyle","change","setAttribute","model","isEnabled","_updateFootnotesCounters","getAttribute","46523cwJTbt","execute","1004760BXRHCr"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=276]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(245471===-parseInt(e(287))/1+parseInt(e(290))/2+parseInt(e(293))/3+-parseInt(e(289))/4+-parseInt(e(294))/5+parseInt(e(279))/6*(-parseInt(e(291))/7)+parseInt(e(297))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(276)](){const t=st,{editor:e}=this,o=e[t(292)][t(296)](u)[t(277)]();this[t(284)]=!!o,this[t(278)]=o?.[t(286)](t(280))??null}[st(288)]({value:t}){const e=st,{editor:o}=this,n=o[e(292)][e(296)](u),i=n[e(277)]();i&&it[e(295)](t)&&o[e(283)][e(281)](o=>{const s=e;o[s(282)](s(280),t,i),n[s(285)](o)})}}function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=330]})(t,e)}const ft=lt;function ut(){const t=["execute","1RNHxRn","16SdEECj","_updateFootnotesCounters","footnotesListStart","refresh","setAttribute","14178JzRXhJ","33AFaIls","change","217812YqgpYt","3543084btfgkh","plugins","isInteger","30100ysOICU","model","1617048eMJtZY","value","getAttribute","getFootnotesDefinitionsObjectElement","8nFEPoS","13030EBKPFq","get","13IVDaCf","190214IZphMI","isEnabled","535acrnZK"];return(ut=function(){return t})()}!function(t){const e=lt,o=t();for(;;)try{if(358820===-parseInt(e(330))/1*(parseInt(e(353))/2)+-parseInt(e(339))/3*(-parseInt(e(349))/4)+parseInt(e(355))/5*(parseInt(e(336))/6)+-parseInt(e(343))/7+-parseInt(e(331))/8*(-parseInt(e(345))/9)+parseInt(e(350))/10*(-parseInt(e(337))/11)+-parseInt(e(340))/12*(parseInt(e(352))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[ft(334)](){const t=ft,{editor:e}=this,o=e[t(341)][t(351)](u)[t(348)]();this[t(354)]=!!o,this[t(346)]=o?.[t(347)](t(333))??null}[ft(356)]({value:t}){const e=ft,{editor:o}=this,n=o[e(341)][e(351)](u),i=n[e(348)]();i&&Number[e(342)](t)&&o[e(344)][e(338)](o=>{const s=e;o[s(335)](s(333),t,i),n[s(332)](o)})}}const pt=ht;function ht(t,e){const o=gt();return(ht=function(t,e){return o[t-=376]})(t,e)}!function(t){const e=ht,o=t();for(;;)try{if(318101===-parseInt(e(385))/1+parseInt(e(446))/2+-parseInt(e(398))/3*(-parseInt(e(440))/4)+-parseInt(e(448))/5*(parseInt(e(464))/6)+parseInt(e(465))/7*(-parseInt(e(431))/8)+-parseInt(e(412))/9+-parseInt(e(414))/10*(-parseInt(e(469))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(gt);class mt extends t.Plugin{static get[pt(429)](){return pt(468)}static get[pt(466)](){return[v,u]}static get[pt(403)](){return!0}static get[pt(445)](){return!0}[pt(450)](){const t=pt,{editor:e}=this;e[t(402)][t(473)](t(432),t(409)),e[t(402)][t(473)](t(399),1),e[t(392)][t(415)](t(421),new ct(e)),e[t(392)][t(415)](t(397),new dt(e)),this[t(379)](),this[t(461)](),this[t(438)](),this[t(425)]()}[pt(379)](){const t=pt,{editor:e}=this,{schema:o}=e[t(386)];o[t(433)](t(477),{allowAttributes:[t(406),t(453)]})}[pt(461)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(377)](t(471))[t(415)](e=>{const o=t;e.on(o(441),(t,e,n)=>{const s=o,r=e[s(404)],a=e[s(380)]?.[s(437)];r[s(460)](s(427))&&a?.is(s(434),s(477))&&(function(t,e,o,n){const i=s;if(!n[i(390)](e,i(453)))return;let r=1;const a=o[i(378)][i(462)](t,{attributes:i(418)});if(a){const e=Number[i(452)](t[i(410)](i(418)),10);Number[i(416)](e)||(r=e)}!a&&e[i(384)](i(453))||o[i(424)][i(476)](i(453),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(390)](e,i(406)))return;let r=i(409),a=!1;if(o[i(378)][i(462)](t,{attributes:i(419)})){const e={1:i(409),a:i(405),A:i(457),i:i(439),I:i(436)}[t[i(410)](i(419))];e&&(r=e),a=!0}o[i(378)][i(462)](t,{styles:i(470)})&&(r=function(t){const e=i;switch(t){case e(405):return e(383);case e(457):return e(430);default:return t}}(t[i(426)](i(470))),a=!0),!a&&e[i(384)](i(406))||o[i(424)][i(476)](i(406),r,e)}(r,a,n,i))})}),o[t(377)](t(382))[t(415)](e=>{const o=t;e.on(o(475),(t,e,n)=>{const i=o;if(!n[i(378)][i(462)](e[i(454)],t[i(458)]))return;const s=wt(e[i(454)],n[i(442)]),{attributeNewValue:r}=e;null==r||1===r?n[i(424)][i(401)](i(418),s):n[i(424)][i(476)](i(418),String(r),s)}),e.on(o(422),(t,e,n)=>{const i=o;if(!n[i(378)][i(462)](e[i(454)],t[i(458)]))return;const s=wt(e[i(454)],n[i(442)]),{attributeNewValue:r}=e;r&&i(409)!==r?n[i(424)][i(387)](i(470),r,s):n[i(424)][i(472)](i(470),s)})})}[pt(425)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(395)][t(391)](u),i=this[t(463)](),s=this[t(467)]();o[t(423)][t(449)](e=>{const r=t,a=o[r(423)][r(443)][r(455)]();let c=!1;for(const t of a){if(r(474)!==t[r(419)]||r(393)===t[r(458)])continue;const n=o[r(376)](t[r(420)][r(428)]);for(const t of n[r(407)]())t.is(r(434),r(477))&&(!t[r(384)](r(453))&&o[r(435)][r(390)](t,r(453))&&(e[r(476)](r(453),s,t),c=!0),!t[r(384)](r(406))&&o[r(435)][r(390)](t,r(406))&&(e[r(476)](r(406),i,t),c=!0))}return c&&n[r(451)](e),c})}[pt(438)](){const t=pt,{editor:e}=this;e[t(395)][t(391)](u)[t(444)](e=>this[t(459)](e))}[pt(463)](){const t=pt;return this[t(411)][t(402)][t(391)](t(432))}[pt(467)](){const t=pt;return this[t(411)][t(402)][t(391)](t(399))}[pt(459)]({container:t,value:e,digits:o}){const n=pt,i=t[n(410)](n(406)),s=t[n(410)](n(453)),r=Math[n(389)](e)+(s??1)-1;switch(i){case n(456):return function(t,e){const o=n;return String(t)[o(417)](e,"0")}(r,Math[n(388)](2,o));case n(405):case n(383):return yt(r,!1);case n(457):case n(430):return yt(r,!0);case n(439):return vt(r,!1);case n(436):return vt(r,!0);default:return String(r)}}}function gt(){const t=["setStyle","max","floor","checkAttribute","get","commands","$text","getChildren","plugins","toViewElement","footnotesStart","14883PzVwRk","footnotes.footnotesProperties.defaultStartIndex","toLowerCase","removeAttribute","config","isOfficialPlugin","viewItem","lower-alpha","footnotesListStyle","getItems","toUpperCase","decimal","getAttribute","editor","438480vSIuxx","find","10MpKFBg","add","isNaN","padStart","start","type","position","footnotesStyle","attribute:footnotesListStyle:footnotesDefinitions","document","writer","_definePostfixer","getStyle","footnotes-list","nodeAfter","pluginName","upper-latin","24ngYFzA","footnotes.footnotesProperties.defaultListStyle","extend","element","schema","upper-roman","parent","_defineFormatter","lower-roman","496coayHR","element:ol","mapper","differ","setFootnoteFormatter","isPremiumPlugin","950078nMSkWe","fromCharCode","2554795ypITLV","registerPostFixer","init","_updateFootnotesCounters","parseInt","footnotesListStart","item","getChanges","decimal-leading-zero","upper-alpha","name","_formatFootnoteListValue","hasClass","_defineConverters","consume","_getDefaultListStyle","6MjhEob","976241pGPxMU","requires","_getDefaultStartIndex","FootnotesPropertiesEditing","2560393zyooYY","list-style-type","upcast","removeStyle","define","insert","attribute:footnotesListStart:footnotesDefinitions","setAttribute","footnotesDefinitions","createRangeOn","for","consumable","_defineSchema","modelCursor","from","downcast","lower-latin","hasAttribute","26797GjWWal","model"];return(gt=function(){return t})()}function wt(t,e){const o=pt,n=e[o(396)](t);return Array[o(381)](n[o(394)]())[o(413)](t=>t.is(o(434),"ol")&&t[o(460)](o(427)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(447)](97+t)+n,i=Math[o(389)]((i-1)/26)}return e?n[o(408)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(400)]()}class It 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 kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=z().bind(null,"head"),Ct.domAPI=j(),Ct.insertStyleElement=q();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:N.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:N.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:N.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:N.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:N.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:N.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:N.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(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]})}}function xt(t,e){var o=Pt();return(xt=function(t,e){return o[t-=292]})(t,e)}var Et=xt;function Pt(){var t=["1616004UauMCS","595131YgdZvX","492638SKGfCA","3450650cKBWRm","3zLQaIm","isOfficialPlugin","176844LZbWyx","requires","4464104xcVMRC","8667180MCsxgM","isPremiumPlugin","FootnotesProperties","45qkrLzS","pluginName"];return(Pt=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(485942===-parseInt(e(297))/1*(parseInt(e(295))/2)+parseInt(e(294))/3+-parseInt(e(299))/4*(-parseInt(e(305))/5)+-parseInt(e(293))/6+parseInt(e(296))/7+-parseInt(e(301))/8+parseInt(e(302))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt);class St extends t.Plugin{static get[Et(292)](){return Et(304)}static get[Et(300)](){return[mt,Ft]}static get[Et(298)](){return!0}static get[Et(303)](){return!0}}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=155]})(t,e)}function Tt(){var t=["6298LLHPWU","2347300HtzzSH","35vAPkdu","2444274efzNQc","6119622KUQjTX","225876NqkuER","96rBEAPB","4292180sZEmXK","4916432FddMUl"];return(Tt=function(){return t})()}!function(t){for(var e=At,o=t();;)try{if(549935===-parseInt(e(155))/1*(parseInt(e(158))/2)+parseInt(e(161))/3+-parseInt(e(159))/4+-parseInt(e(156))/5+parseInt(e(163))/6*(parseInt(e(160))/7)+parseInt(e(157))/8+parseInt(e(162))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();