@ckeditor/ckeditor5-footnotes 47.4.0 → 47.5.0-alpha.1

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 +10 -10
  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-2026, 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),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>St,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>Y,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=252]})(t,e)}function c(){const t=["426uhQFzV","24016NbITqf","flat","name","_model","has","slice","root","element","$text","values","remove","insert","_getElementKey","elementName","173954RYZYRJ","506992eDIaTP","12rVgxsW","delete","22455158wXvuzx","78205NDiAml","get","nodeAfter","$graveyard","getItems","7930260ULDDAs","_elementName","type","position","attributes","set","length","createRangeOn","10Qhkocc","42VtqCmk","_trackedElements","rootName","798MkmcOz","add","373022WQKyaY","getElementKey","push","getChanges","reset","from","clear"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(806548===-parseInt(e(257))/1+-parseInt(e(279))/2+-parseInt(e(255))/3*(-parseInt(e(265))/4)+-parseInt(e(284))/5*(parseInt(e(264))/6)+parseInt(e(252))/7*(-parseInt(e(280))/8)+parseInt(e(289))/9*(-parseInt(e(297))/10)+parseInt(e(283))/11*(parseInt(e(281))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(268)];[r(290)];[r(277)];[r(253)]=new Map;constructor(t,e){const o=r;this[o(268)]=t,this[o(290)]=e[o(278)],this[o(277)]=e[o(258)]}[r(261)](){const t=r;this[t(253)][t(263)]()}[r(260)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(276)===i[e(291)]&&e(273)!==i[e(267)]&&i[e(292)][e(286)]){const t=this[e(268)][e(296)](i[e(292)][e(286)]);for(const o of t[e(288)]()){if(!o.is(e(272),this[e(290)]))continue;const t=this[e(277)](o);n[e(269)](t)||n[e(294)](t,[]),n[e(285)](t)[e(259)](o)}}if(e(275)===i[e(291)]&&i[e(267)]===this[e(290)]){const t=this[e(277)]({getAttribute:t=>i[e(293)][e(285)](t)});o[e(256)](t)}}for(const[t,n]of this[e(253)])e(287)===n[e(271)][e(254)]&&o[e(256)](t);for(const t of o)this[e(253)][e(282)](t);for(const[t,o]of n)this[e(253)][e(294)](t,o[o[e(295)]-1]);const i=new Set;for(const[t,s]of n)o[e(269)](t)&&(i[e(256)](s[0]),s[e(295)]>1?n[e(294)](t,s[e(270)](1)):n[e(282)](t),o[e(282)](t));return{removed:Array[e(262)](o),inserted:Array[e(262)](n[e(274)]())[e(266)](),moved:Array[e(262)](i)}}}const u=f;function f(t,e){const o=m();return(f=function(t,e){return o[t-=107]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(958333===-parseInt(e(143))/1*(parseInt(e(144))/2)+parseInt(e(172))/3+-parseInt(e(152))/4+parseInt(e(197))/5+parseInt(e(178))/6+parseInt(e(114))/7+-parseInt(e(179))/8*(parseInt(e(163))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class d extends t.Plugin{[u(122)]=[];[u(110)]=null;[u(194)]=null;[u(135)];[u(124)];[u(107)];static get[u(185)](){return u(156)}static get[u(165)](){return!0}static get[u(141)](){return!0}constructor(t){const e=u;super(t),this[e(135)]=new l(this[e(201)][e(117)],{elementName:e(191),getElementKey:()=>e(138)}),this[e(124)]=new l(this[e(201)][e(117)],{elementName:e(167),getElementKey:t=>t[e(189)](e(145))}),this[e(107)]=new l(this[e(201)][e(117)],{elementName:e(131),getElementKey:t=>t[e(189)](e(145))})}[u(153)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(204)][t(109)](e=>{const n=t,i=o[n(204)][n(125)][n(198)]();let s=!1;return this[n(142)](e,i)&&(s=!0),this[n(206)](e,i)&&(s=!0),this[n(133)](e,i)&&(s=!0),this[n(136)](e)&&(s=!0),this[n(174)](e)&&(s=!0),this[n(159)](e)&&(s=!0),s}),this[t(171)](o[t(204)],t(164),()=>{const e=t;o[e(123)]({isUndoable:!1},t=>{this[e(199)](t)})},{priority:t(200)}),this[t(171)](n,t(119),()=>{const e=t;this[e(122)]=[],this[e(135)][e(146)](),this[e(124)][e(146)](),this[e(107)][e(146)]()},{priority:t(129)})}[u(118)](){return this[u(110)]}[u(158)](t){const e=u;return this[e(122)][e(203)](e=>e.id===t)||null}[u(150)](){const t=u;return Array[t(187)](this[t(122)])}[u(115)](){return this[u(194)]}[u(192)](t){this[u(194)]=t}[u(183)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(122)][o(173)];i++)this[o(188)](t,i)&&(n=!0);return n}[u(130)](t,e){const o=u,n=t[o(176)](o(191),{});return t[o(132)](n,e),this[o(110)]=n,n}[u(199)](t){const e=u;if(!this[e(122)][e(173)]||this[e(110)])return;const o=this[e(122)][0][e(169)][e(127)],n=this[e(130)](t,o);for(const o of this[e(122)])o[e(175)][e(195)]||t[e(148)](o[e(175)],n,e(162));this[e(183)](t)}[u(142)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(135)][o(198)](e);if(r[o(173)]&&(this[o(110)]=r[0]),i[o(173)])if(i[o(173)]>1||this[o(110)]&&i[o(151)](t=>t!==this[o(110)])){const e=t[o(176)](o(191),{}),s=[];this[o(110)]&&s[o(184)](this[o(110)]),s[o(184)](...i),t[o(148)](e,s[0],o(182));for(const n of s)t[o(155)](t[o(160)](n),t[o(137)](e,o(162))),t[o(170)](n);this[o(110)]=e,this[o(183)](t),n=!0}else this[o(110)]=i[0];if(s[o(173)]&&o(193)===this[o(110)]?.[o(127)][o(190)]){for(const e of this[o(122)])t[o(170)](e[o(169)]),n=!0;this[o(122)]=[],this[o(110)]=null}return n}[u(206)](t,e){const o=u;let n=!1;const i=this[o(201)][o(147)][o(112)](o(161)),{inserted:s,moved:r}=this[o(107)][o(198)](e);for(const e of[...r,...s]){const s=e[o(189)](o(145)),r=this[o(158)](s);r&&(r[o(175)]=e),h(t,i,e)&&(n=!0)}return n}[u(133)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(124)][o(198)](e);for(const e of i)this[o(149)](t,e)&&(n=!0);for(const e of s)this[o(154)](t,e)&&(n=!0);for(const e of r)this[o(126)](t,e)&&(n=!0);return n}[u(174)](t){const e=u;if(!this[e(110)])return!1;let o=!1;if(this[e(110)][e(113)]!==this[e(122)][e(173)]){const n=[];for(const t of this[e(110)][e(111)]()){const i=t[e(189)](e(145));this[e(158)](i)||(n[e(196)](t),o=!0)}for(const o of n)t[e(170)](o)}const n=new Set,i=[];for(const t of this[e(110)][e(111)]()){const s=t[e(189)](e(145));n[e(128)](s)?(i[e(196)](t),o=!0):n[e(116)](s)}for(const o of i)t[e(170)](o);return this[e(110)][e(113)]||(t[e(170)](this[e(110)]),this[e(110)]=null,o=!0),o}[u(154)](t,e){const o=u;if(this[o(122)][o(203)](t=>t[o(169)]===e))return!1;let n=!1;const i=e[o(189)](o(145)),s=this[o(122)][o(202)](t=>t.id===i);-1!==s&&(t[o(170)](this[o(122)][s][o(169)]),this[o(122)][o(181)](s,1),n=!0);let r=this[o(110)]?function(t,e){const n=o;for(const o of t[n(111)]())if(o[n(189)](n(145))===e)return o;return null}(this[o(110)],i):null;r||(r=t[o(176)](o(131),{footnoteId:i}),this[o(110)]&&(t[o(148)](r,this[o(110)],o(162)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(201)][o(117)],this[o(122)],e);this[o(122)][o(181)](c,0,a);let l=c;return-1!==s&&(l=Math[o(177)](c,s)),this[o(183)](t,l)&&(n=!0),n}[u(149)](t,e){const o=u,n=this[o(122)][o(202)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(122)][n];return o(193)!==s[o(175)][o(127)][o(190)]&&(t[o(170)](s[o(175)]),i=!0),this[o(122)][o(181)](n,1),this[o(183)](t,n)&&(i=!0),i}[u(126)](t,e){const o=u,n=e[o(189)](o(145)),i=this[o(122)][o(202)](t=>t.id===n),s=this[o(122)][i];let r=!1;s[o(169)]=e,this[o(122)][o(181)](i,1);const a=p(this[o(201)][o(117)],this[o(122)],e);return this[o(122)][o(181)](a,0,s),this[o(183)](t,Math[o(177)](i,a))&&(r=!0),r}[u(188)](t,e){const o=u;if(!this[o(110)])return!1;const n=this[o(122)][e];let i;return i=this[o(194)]?this[o(194)]({footnote:n,container:this[o(110)],digits:String(this[o(122)][o(173)])[o(173)],value:e+1}):String(e+1),n[o(169)][o(189)](o(186))!=i&&(t[o(120)](o(186),i,n[o(169)]),!0)}[u(159)](t){const e=u;if(!this[e(110)]||this[e(122)][e(173)]<2)return!1;if(function(t,o){const n=e;if(t[n(173)]!==o[n(173)])return!1;for(let e=0;e<t[n(173)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(122)][e(108)](t=>t.id),Array[e(187)](this[e(110)][e(111)]())[e(108)](t=>t[e(189)](e(145)))))return!1;let o=!1;for(let n=0;n<this[e(122)][e(173)];n++){const i=this[e(122)][n],s=t[e(134)](i[e(175)]),r=t[e(137)](this[e(110)],n);s[e(168)](r)||(t[e(155)](t[e(140)](i[e(175)]),r),o=!0)}return o}[u(136)](t){const e=u;if(!this[e(122)][e(173)])return!1;const{model:o}=this[e(201)];let n=!1;for(let i=0;i<this[e(122)][e(173)]-1;i++){const s=this[e(122)][i],r=this[e(122)][i+1],a=o[e(134)](s[e(169)]),c=o[e(134)](r[e(169)]);e(205)===a[e(180)](c)&&(this[e(126)](t,s[e(169)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=u;if(o[n(113)])return!1;const i=n(e?139:121);return t[n(148)](t[n(176)](i),o),!0}function p(t,e,o){const n=u;if(0===e[n(173)])return 0;const i=t[n(134)](o);for(let o=0;o<e[n(173)];o++){const s=e[o],r=t[n(134)](s[n(169)]);if(n(182)===i[n(180)](r))return o}const s=o[n(127)];let r=-1;for(let t=e[n(173)]-1;t>=0;t--)if(e[t][n(169)][n(127)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(204)][n(166)](),c=a[n(157)](s[n(190)]),l=a[c+1];if(l)for(let t=0;t<e[n(173)];t++)if(e[t][n(169)][n(127)][n(190)]===l)return t;return e[n(173)]}function m(){const t=["min","3410316liksdd","11401224LLAmgw","compareWith","splice","before","_updateFootnotesCounters","push","pluginName","footnoteCounter","from","_updateFootnoteRefCounter","getAttribute","rootName","footnotesDefinitions","setFootnoteFormatter","$graveyard","_footnoteFormatter","parent","unshift","5103665QFqXuN","getChanges","_ensureFootnotesDefinitionsContainerExists","low","editor","findIndex","find","document","after","_handleFootnoteDefinitionsChanges","_footnoteDefsTracker","map","registerPostFixer","_footnotesDefinitions","getChildren","get","childCount","6851838JUfYwH","getFootnotesFormatter","add","model","getFootnotesDefinitionsObjectElement","set","setAttribute","footnoteInlineContent","_footnotes","enqueueChange","_footnoteRefsTracker","differ","_handleMovedFootnoteReference","root","has","high","_insertEmptyFootnotesDefinitionsContainer","footnoteDefinition","append","_handleFootnoteReferencesChanges","createPositionBefore","_footnoteDefsContainerTracker","_ensureFootnotesReferencesHaveProperOrder","createPositionAt","singleton","paragraph","createRangeOn","isPremiumPlugin","_handleFootnotesDefinitionsObjectChanges","1zJaSqP","727930jayqtD","footnoteId","reset","config","insert","_handleRemoveFootnoteReferenceById","getFootnotes","some","595876XJPuvE","init","_handleInsertedFootnoteReference","move","FootnotesTracker","indexOf","getFootnote","_sortFootnoteDefinitions","createRangeIn","footnotes.multiBlock","end","9iKEoVQ","change:data","isOfficialPlugin","getRootNames","footnoteRef","isEqual","reference","remove","listenTo","985401PUPURx","length","_handleFootnotesDefinitionsObjectSync","definition","createElement"];return(m=function(){return t})()}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=307]})(t,e)}function y(){const t=["5PbPYgt","document","createElement","footnoteRef","refresh","179484rbjGrP","get","editor","72wzdTwg","10vkExOa","400TcDrmf","48201zfACfh","isObject","checkChild","test","5616128WoaYcv","3412926eIJPvr","35KfToMC","insert-footnote-command-executed-with-invalid-id","end","isEnabled","change","selection","17883JEFvVu","2879252QcdWpR","plugins","getItems","_getPositionToInsertFootnote","execute","isBlock","FootnotesEditing","1656498aqwSlk","insertObject","length","model","getFirstRange","string","footnoteId","_moveSelectionToFootnoteDefinition"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(762019===-parseInt(e(321))/1+-parseInt(e(325))/2*(-parseInt(e(327))/3)+-parseInt(e(340))/4*(-parseInt(e(316))/5)+parseInt(e(308))/6*(parseInt(e(333))/7)+parseInt(e(331))/8+-parseInt(e(339))/9*(parseInt(e(326))/10)+-parseInt(e(332))/11*(parseInt(e(324))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(320)](){const t=g,e=this[t(323)][t(311)][t(317)][t(338)],o=this[t(343)](e);this[t(336)]=!!o}[g(344)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(317)],r=this[e(343)](s);if(!r)return;const a=o[e(341)][e(322)](e(307)),c=t?.[e(314)]??(0,i.uid)();!function(t){const o=e;return o(313)==typeof t&&t[o(310)]>0&&!/\s/[o(330)](t)&&!/^\d/[o(330)](t)}(c)?(0,i.logWarning)(e(334)):(n[e(337)](t=>{const o=e,i=t[o(318)](o(319),{footnoteId:c});n[o(309)](i,r,null)}),a[e(315)](c))}[g(343)](t){const e=g,{model:o}=this[e(323)],{schema:n}=o,i=t[e(312)]();for(const t of i[e(342)]())if(n[e(345)](t)||n[e(328)](t))return null;const s=i[e(335)];return n[e(329)](s,e(319))?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=p([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[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([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]),[p([121])]:p([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]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([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(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1768348800;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([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})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=L;function A(){const t=["getFootnote","cloneElement","keys","1583676Uydcgz","create","hasAttribute","string","config","sourceEditorId","contentInsertion","getAttribute","getFootnotes","_handlePasteFootnotesDefinitions","getRanges","includes","2361030qRZLOB","isPremiumPlugin","getFootnotesDefinitionsObjectElement","footnotes.multiBlock","_handleCopyFootnotesDefinitions","createElement","isOfficialPlugin","element","3300200MhcJIl","find","insert","flatMap","getFirstRange","toView","_insertEmptyFootnotesDefinitionsContainer","application/ckeditor5-footnotes","end","toData","stringify","clipboardInput","requires","document","entries","selection","FootnotesClipboard","add","from","getChildren","5609980RJBTuv","footnoteId","650736HkbuUq","push","listenTo","_defineClipboardIntegration","18iORJbG","parse","reduce","7jnWRlq","footnoteRef","footnoteInlineContent","root","editing","setData","remove","toModel","data","content","1617478QXnAly","append","outputTransformation","change","setAttribute","footnotesDefinitions","footnoteDefinition","definition","createRangeIn","htmlProcessor","80208tnJdwv","get","pluginName","editor","dataTransfer","length","1YKWXhm","method","getSelectedBlocks","init","getData","drop"];return(A=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(828131===parseInt(e(258))/1*(parseInt(e(326))/2)+parseInt(e(336))/3+parseInt(e(287))/4+-parseInt(e(307))/5+parseInt(e(267))/6*(-parseInt(e(316))/7)+parseInt(e(309))/8+parseInt(e(313))/9*(parseInt(e(279))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(338)](){return T(303)}static get[T(299)](){return[v,S.ClipboardPipeline]}static get[T(285)](){return!0}static get[T(280)](){return!0}[T(261)](){this[T(312)]()}[T(312)](){const t=T;this[t(283)](),this[t(276)]()}[T(283)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(337)](S.ClipboardPipeline),s=o[t(337)](d);this[t(311)](i,t(328),(o,i)=>{const r=t,a=V(n[r(334)](i[r(325)]));if(!a[r(257)])return;const c=s[r(275)](),l=a[r(315)]((t,o)=>{const n=r,i=c[n(288)](t=>t.id===o);if(i){const o=e[n(324)][n(292)](i[n(333)],{isClipboardPipeline:!0}),s=e[n(324)][n(335)][n(296)](o);t[i.id]=s}return t},Object[r(268)](null));i[r(340)][r(321)](r(294),JSON[r(297)](l))})}[T(276)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(320)],r=n[t(337)](S.ClipboardPipeline),a=n[t(337)](d),c=e[t(271)][t(337)](t(282));let l=null;this[t(311)](s[t(300)],t(298),(e,o)=>{const n=t,i=o[n(340)][n(262)](n(294));l=i?JSON[n(314)](i):null}),this[t(311)](r,t(273),(n,s)=>{const r=t,u=s[r(272)]===this[r(339)].id;u&&r(263)===s[r(259)]||o[r(329)](t=>{const n=r;let f=a[n(281)]();const d=!!f&&Array[n(305)](o[n(300)][n(302)][n(260)]())[n(278)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(286),e(317)))return!0;return!1}(o[n(334)](s[n(325)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(268)](null);for(const e of i[o(306)]())e.is(o(286),o(332))&&e[o(269)](o(308))&&(s[e[o(274)](o(308))]=t[o(265)](e,!0));return Object[o(266)](s)[o(257)]?s:null}(t,s[n(325)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(334)](e))n.is(o(286),o(331))&&i[o(310)](n);for(const e of i)t[o(322)](e)}(t,s[n(325)]),!l)return;const{selection:h}=o[n(300)],p=h[n(291)]()[n(319)];f&&!d||(f=_(t,s[n(325)]),f||=a[n(293)](t,p));const m=Array[n(305)](h[n(277)]())[n(290)](V),g=function(t,e,o){const s=n,r=Object[s(268)](null);for(const{item:n}of t[s(334)](e))if(n.is(s(286),s(317))){const e=n[s(274)](s(308));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(330)](s(308),r[e],n)}return r}(t,s[n(325)],t=>{const e=n;return!u||!!a[e(264)](t)&&!m[e(278)](t)});for(const[o,i]of Object[n(301)](l)){const s=g[o]||o;let r;if(n(270)!=typeof i)r=i,s!==o&&t[n(330)](n(308),s,r);else{r=t[n(284)](n(332),{footnoteId:s});const o=e[n(324)][n(335)][n(292)](i);let a;if(c)a=e[n(324)][n(323)](o,r);else{a=t[n(284)](n(318));const i=e[n(324)][n(323)](o,a);t[n(289)](i,a)}t[n(327)](a,r)}t[n(289)](r,f,n(295))}l=null})})}}function _(t,e){const o=T;for(const{item:n}of t[o(334)](e))if(n.is(o(286),o(331)))return n;return null}function L(t,e){const o=A();return(L=function(t,e){return o[t-=257]})(t,e)}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(286),e(317))&&o[e(304)](n[e(274)](e(308)));return Array[e(305)](o)}var R=o(311),N=o(355),O=o(929),K=o.n(O),j=o(297),M=o.n(j),z=o(102),U=o.n(z),B=o(123),W=o.n(B),q=o(741),J=o.n(q),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=W(),X.insert=U().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=J();K()(H.A,X);H.A&&H.A.locals&&H.A.locals;class Y extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,R.ButtonView)),e.add("menuBar:insertFootnote",Q(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof R.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=G;function G(t,e){var o=tt();return(G=function(t,e){return o[t-=141]})(t,e)}!function(t){for(var e=G,o=t();;)try{if(860224===parseInt(e(151))/1*(parseInt(e(148))/2)+-parseInt(e(143))/3+-parseInt(e(149))/4*(parseInt(e(154))/5)+parseInt(e(144))/6+parseInt(e(152))/7+-parseInt(e(147))/8+parseInt(e(155))/9*(parseInt(e(153))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(tt);class $ extends t.Plugin{static get[Z(146)](){return Z(141)}static get[Z(150)](){return[v,D,Y]}static get[Z(142)](){return!0}static get[Z(145)](){return!0}}function tt(){var t=["Footnotes","isOfficialPlugin","1415373sVlQEZ","7357134VztLSm","isPremiumPlugin","pluginName","7595808jkXYaF","10042YAsQji","6376596rxAtYx","requires","167zYQXjw","8977759bsrkUY","5284070ghYpWa","5lTntmw","9rqsmhD"];return(tt=function(){return t})()}function et(t,e){const o=nt();return(et=function(t,e){return o[t-=468]})(t,e)}const ot=et;function nt(){const t=["decimal-leading-zero","1048forjmr","upper-latin","7764SIsESk","11qCgNWj","upper-roman","65lqHORW","lower-roman","18416RVzNxh","46819152PnMVfK","decimal","lower-latin","160956gUbgXw","upper-alpha","lower-alpha","3906taGbfu","5602830EuwMQL","9aDEfRW","2329453Koetkb","35718IHpiyw"];return(nt=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(684497===-parseInt(e(479))/1*(parseInt(e(474))/2)+parseInt(e(485))/3*(-parseInt(e(483))/4)+-parseInt(e(468))/5*(-parseInt(e(481))/6)+-parseInt(e(480))/7+-parseInt(e(470))/8*(parseInt(e(477))/9)+-parseInt(e(478))/10*(parseInt(e(486))/11)+parseInt(e(471))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[ot(472),ot(482),ot(473),ot(484),ot(476),ot(475),ot(469),ot(487)],st=at;function rt(){const t=["2624844aFkJkn","_updateFootnotesCounters","getAttribute","8xttDyN","isEnabled","get","execute","6871802ezIKOa","516DxnbKr","getFootnotesDefinitionsObjectElement","plugins","44440hUYZvy","789921qVybSG","refresh","62280iLXjKg","value","setAttribute","2439IkjaBz","model","1073544ocvKCS","includes","1196276ywZxJd","footnotesListStyle","change"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=118]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(549602===parseInt(e(138))/1+-parseInt(e(121))/2+-parseInt(e(126))/3+-parseInt(e(123))/4+parseInt(e(137))/5*(parseInt(e(134))/6)+parseInt(e(133))/7*(-parseInt(e(129))/8)+parseInt(e(119))/9*(parseInt(e(140))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(139)](){const t=st,{editor:e}=this,o=e[t(136)][t(131)](d)[t(135)]();this[t(130)]=!!o,this[t(141)]=o?.[t(128)](t(124))??null}[st(132)]({value:t}){const e=st,{editor:o}=this,n=o[e(136)][e(131)](d),i=n[e(135)]();i&&it[e(122)](t)&&o[e(120)][e(125)](o=>{const s=e;o[s(118)](s(124),t,i),n[s(127)](o)})}}const lt=ut;function ut(t,e){const o=dt();return(ut=function(t,e){return o[t-=381]})(t,e)}!function(t){const e=ut,o=t();for(;;)try{if(444012===-parseInt(e(381))/1*(-parseInt(e(394))/2)+parseInt(e(385))/3*(parseInt(e(391))/4)+parseInt(e(403))/5+-parseInt(e(397))/6+-parseInt(e(404))/7*(-parseInt(e(388))/8)+parseInt(e(398))/9+parseInt(e(402))/10*(-parseInt(e(383))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class ft extends t.Command{[lt(384)](){const t=lt,{editor:e}=this,o=e[t(382)][t(401)](d)[t(396)]();this[t(390)]=!!o,this[t(386)]=o?.[t(400)](t(399))??null}[lt(405)]({value:t}){const e=lt,{editor:o}=this,n=o[e(382)][e(401)](d),i=n[e(396)]();i&&Number[e(393)](t)&&o[e(387)][e(392)](o=>{const s=e;o[s(389)](s(399),t,i),n[s(395)](o)})}}function dt(){const t=["28yhNsTc","change","isInteger","276344ZMtIxI","_updateFootnotesCounters","getFootnotesDefinitionsObjectElement","2005182TScfuD","5744142xCMYxv","footnotesListStart","getAttribute","get","283980IZaIHE","1570985GlmNje","3252081KKPqfw","execute","4JHkPoG","plugins","627IXsDYv","refresh","183081BvWCrZ","value","model","8UsLuwX","setAttribute","isEnabled"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=bt();return(pt=function(t,e){return o[t-=120]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(981307===parseInt(e(215))/1*(-parseInt(e(134))/2)+parseInt(e(154))/3*(parseInt(e(140))/4)+-parseInt(e(142))/5*(parseInt(e(125))/6)+parseInt(e(184))/7+parseInt(e(148))/8*(parseInt(e(167))/9)+-parseInt(e(159))/10+parseInt(e(203))/11*(parseInt(e(202))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(bt);class mt extends t.Plugin{static get[ht(197)](){return ht(162)}static get[ht(193)](){return[v,d]}static get[ht(155)](){return!0}static get[ht(182)](){return!0}[ht(214)](){const t=ht,{editor:e}=this;e[t(168)][t(178)](t(194),t(198)),e[t(168)][t(178)](t(195),1),e[t(124)][t(135)](t(137),new ct(e)),e[t(124)][t(135)](t(166),new ft(e)),this[t(126)](),this[t(181)](),this[t(153)](),this[t(220)]()}[ht(126)](){const t=ht,{editor:e}=this,{schema:o}=e[t(216)];o[t(123)](t(149),{allowAttributes:[t(196),t(144)]})}[ht(181)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(160)](t(191))[t(135)](e=>{const o=t;e.on(o(188),(t,e,n)=>{const s=o,r=e[s(143)],a=e[s(189)]?.[s(147)];r[s(139)](s(192))&&a?.is(s(163),s(149))&&(function(t,e,o,n){const i=s;if(!n[i(205)](e,i(144)))return;let r=1;const a=o[i(165)][i(146)](t,{attributes:i(210)});if(a){const e=Number[i(219)](t[i(170)](i(210)),10);Number[i(187)](e)||(r=e)}!a&&e[i(207)](i(144))||o[i(171)][i(204)](i(144),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(205)](e,i(196)))return;let r=i(198),a=!1;if(o[i(165)][i(146)](t,{attributes:i(206)})){const e={1:i(198),a:i(130),A:i(158),i:i(209),I:i(212)}[t[i(170)](i(206))];e&&(r=e),a=!0}o[i(165)][i(146)](t,{styles:i(164)})&&(r=function(t){const e=i;switch(t){case e(130):return e(174);case e(158):return e(180);default:return t}}(t[i(211)](i(164))),a=!0),!a&&e[i(207)](i(196))||o[i(171)][i(204)](i(196),r,e)}(r,a,n,i))})}),o[t(160)](t(145))[t(135)](e=>{const o=t;e.on(o(157),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;null==r||1===r?n[i(171)][i(175)](i(210),s):n[i(171)][i(204)](i(210),String(r),s)}),e.on(o(120),(t,e,n)=>{const i=o;if(!n[i(165)][i(146)](e[i(132)],t[i(221)]))return;const s=gt(e[i(132)],n[i(185)]),{attributeNewValue:r}=e;r&&i(198)!==r?n[i(171)][i(208)](i(164),r,s):n[i(171)][i(217)](i(164),s)})})}[ht(220)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(183)][t(190)](d),i=this[t(129)](),s=this[t(138)]();o[t(128)][t(218)](e=>{const r=t,a=o[r(128)][r(213)][r(133)]();let c=!1;for(const t of a){if(r(200)!==t[r(206)]||r(141)===t[r(221)])continue;const n=o[r(179)](t[r(150)][r(152)]);for(const t of n[r(201)]())t.is(r(163),r(149))&&(!t[r(207)](r(144))&&o[r(151)][r(205)](t,r(144))&&(e[r(204)](r(144),s,t),c=!0),!t[r(207)](r(196))&&o[r(151)][r(205)](t,r(196))&&(e[r(204)](r(196),i,t),c=!0))}return c&&n[r(173)](e),c})}[ht(153)](){const t=ht,{editor:e}=this;e[t(183)][t(190)](d)[t(199)](e=>this[t(156)](e))}[ht(129)](){const t=ht;return this[t(222)][t(168)][t(190)](t(194))}[ht(138)](){const t=ht;return this[t(222)][t(168)][t(190)](t(195))}[ht(156)]({container:t,value:e,digits:o}){const n=ht,i=t[n(170)](n(196)),s=t[n(170)](n(144)),r=Math[n(131)](e)+(s??1)-1;switch(i){case n(176):return function(t,e){const o=n;return String(t)[o(136)](e,"0")}(r,Math[n(177)](2,o));case n(130):case n(174):return wt(r,!1);case n(158):case n(180):return wt(r,!0);case n(209):return vt(r,!1);case n(212):return vt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(186)](t);return Array[o(127)](n[o(169)]())[o(122)](t=>t.is(o(163),"ol")&&t[o(139)](o(192)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(172)](97+t)+n,i=Math[o(131)]((i-1)/26)}return e?n[o(161)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(){const t=["removeStyle","registerPostFixer","parseInt","_definePostfixer","name","editor","attribute:footnotesListStyle:footnotesDefinitions","toLowerCase","find","extend","commands","2388yBnGvr","_defineSchema","from","document","_getDefaultListStyle","lower-alpha","floor","item","getChanges","46lQpDuw","add","padStart","footnotesStyle","_getDefaultStartIndex","hasClass","28AuUOMK","$text","5275QiJPst","viewItem","footnotesListStart","downcast","consume","parent","6936izkgpz","footnotesDefinitions","position","schema","nodeAfter","_defineFormatter","394737oJXSlv","isOfficialPlugin","_formatFootnoteListValue","attribute:footnotesListStart:footnotesDefinitions","upper-alpha","15785370LhZugj","for","toUpperCase","FootnotesPropertiesEditing","element","list-style-type","consumable","footnotesStart","18918pTuweR","config","getChildren","getAttribute","writer","fromCharCode","_updateFootnotesCounters","lower-latin","removeAttribute","decimal-leading-zero","max","define","createRangeOn","upper-latin","_defineConverters","isPremiumPlugin","plugins","5410307kWSpHs","mapper","toViewElement","isNaN","element:ol","modelCursor","get","upcast","footnotes-list","requires","footnotes.footnotesProperties.defaultListStyle","footnotes.footnotesProperties.defaultStartIndex","footnotesListStyle","pluginName","decimal","setFootnoteFormatter","insert","getItems","906420piIsfQ","187eCPGjd","setAttribute","checkAttribute","type","hasAttribute","setStyle","lower-roman","start","getStyle","upper-roman","differ","init","79163UnMWwV","model"];return(bt=function(){return t})()}function vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(121)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.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,R.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 R.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 R.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 R.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 R.LabeledFieldView(this.locale,R.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=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=J();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[R.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,R.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 R.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}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var xt=Pt;function Et(){var t=["78962rPgtyx","pluginName","161184VLXaWD","902718FnzaQn","3932580jpxsYk","24eEuxhg","2922KZqJQF","35021dPjyqt","requires","18Uwokgh","FootnotesProperties","344gxrNKd","168615hFpaJx","isPremiumPlugin","isOfficialPlugin"];return(Et=function(){return t})()}function Pt(t,e){var o=Et();return(Pt=function(t,e){return o[t-=164]})(t,e)}!function(t){for(var e=Pt,o=t();;)try{if(128508===parseInt(e(176))/1+-parseInt(e(172))/2*(parseInt(e(167))/3)+parseInt(e(178))/4+parseInt(e(173))/5*(-parseInt(e(170))/6)+-parseInt(e(168))/7*(parseInt(e(166))/8)+-parseInt(e(164))/9+parseInt(e(165))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class St extends t.Plugin{static get[xt(177)](){return xt(171)}static get[xt(169)](){return[mt,Ft]}static get[xt(175)](){return!0}static get[xt(174)](){return!0}}function Tt(t,e){var o=At();return(Tt=function(t,e){return o[t-=371]})(t,e)}function At(){var t=["2182146rwhpmI","216498AgVZaW","5125764ZouscI","11SquqzX","6nswLGq","1137224dlUgzZ","734820InmtzT","5427185iAuLGp","9RaMtxU","1877664YRvMJr"];return(At=function(){return t})()}!function(t){for(var e=Tt,o=t();;)try{if(669281===parseInt(e(372))/1*(-parseInt(e(380))/2)+parseInt(e(379))/3+-parseInt(e(378))/4+parseInt(e(376))/5*(parseInt(e(373))/6)+parseInt(e(371))/7+parseInt(e(374))/8*(-parseInt(e(377))/9)+-parseInt(e(375))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(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 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:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>d,FootnotesUI:()=>G,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=239]})(t,e)}function c(){const t=["448912YtfcjA","values","2809255vuleQg","getElementKey","name","delete","647742zVsRKs","flat","add","reset","createRangeOn","remove","position","56048lVCyWc","length","$text","set","element","12xLHxNU","16376152LlZpjV","clear","$graveyard","root","push","insert","881366oskSkQ","getItems","504590LFQGNd","elementName","35TpOPMh","rootName","type","_getElementKey","_elementName","getChanges","1ZLJMYV","from","has","_model","slice","nodeAfter","get","9vUqrtL","_trackedElements","attributes","477inEEWW","187PSajid"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(432416===-parseInt(e(254))/1*(-parseInt(e(244))/2)+parseInt(e(261))/3*(-parseInt(e(266))/4)+parseInt(e(268))/5+-parseInt(e(272))/6*(-parseInt(e(248))/7)+-parseInt(e(279))/8*(parseInt(e(264))/9)+parseInt(e(246))/10*(parseInt(e(265))/11)+parseInt(e(284))/12*(-parseInt(e(285))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(257)];[r(252)];[r(251)];[r(262)]=new Map;constructor(t,e){const o=r;this[o(257)]=t,this[o(252)]=e[o(247)],this[o(251)]=e[o(269)]}[r(275)](){const t=r;this[t(262)][t(239)]()}[r(253)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(243)===i[e(250)]&&e(281)!==i[e(270)]&&i[e(278)][e(259)]){const t=this[e(257)][e(276)](i[e(278)][e(259)]);for(const o of t[e(245)]()){if(!o.is(e(283),this[e(252)]))continue;const t=this[e(251)](o);n[e(256)](t)||n[e(282)](t,[]),n[e(260)](t)[e(242)](o)}}if(e(277)===i[e(250)]&&i[e(270)]===this[e(252)]){const t=this[e(251)]({getAttribute:t=>i[e(263)][e(260)](t)});o[e(274)](t)}}for(const[t,n]of this[e(262)])e(240)===n[e(241)][e(249)]&&o[e(274)](t);for(const t of o)this[e(262)][e(271)](t);for(const[t,o]of n)this[e(262)][e(282)](t,o[o[e(280)]-1]);const i=new Set;for(const[t,s]of n)o[e(256)](t)&&(i[e(274)](s[0]),s[e(280)]>1?n[e(282)](t,s[e(258)](1)):n[e(271)](t),o[e(271)](t));return{removed:Array[e(255)](o),inserted:Array[e(255)](n[e(267)]())[e(273)](),moved:Array[e(255)](i)}}}const u=f;function f(t,e){const o=h();return(f=function(t,e){return o[t-=481]})(t,e)}!function(t){const e=f,o=t();for(;;)try{if(500111===-parseInt(e(559))/1*(-parseInt(e(570))/2)+-parseInt(e(530))/3+-parseInt(e(483))/4*(parseInt(e(489))/5)+-parseInt(e(533))/6+-parseInt(e(541))/7+parseInt(e(536))/8+-parseInt(e(513))/9*(-parseInt(e(569))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class d extends t.Plugin{[u(484)]=[];[u(490)]=null;[u(546)]=null;[u(550)];[u(554)];[u(487)];static get[u(506)](){return u(534)}static get[u(504)](){return!0}static get[u(482)](){return!0}constructor(t){const e=u;super(t),this[e(550)]=new l(this[e(512)][e(538)],{elementName:e(573),getElementKey:()=>e(531)}),this[e(554)]=new l(this[e(512)][e(538)],{elementName:e(509),getElementKey:t=>t[e(580)](e(492))}),this[e(487)]=new l(this[e(512)][e(538)],{elementName:e(535),getElementKey:t=>t[e(580)](e(492))})}[u(543)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(515)][t(521)](e=>{const n=t,i=o[n(515)][n(563)][n(510)]();let s=!1;return this[n(571)](e,i)&&(s=!0),this[n(516)](e,i)&&(s=!0),this[n(549)](e,i)&&(s=!0),this[n(522)](e)&&(s=!0),this[n(507)](e)&&(s=!0),this[n(547)](e)&&(s=!0),s}),this[t(537)](o[t(515)],t(499),()=>{const e=t;o[e(497)]({isUndoable:!1},t=>{this[e(556)](t)})},{priority:t(558)}),this[t(537)](n,t(494),()=>{const e=t;this[e(484)]=[],this[e(550)][e(552)](),this[e(554)][e(552)](),this[e(487)][e(552)]()},{priority:t(527)})}[u(517)](){return this[u(490)]}[u(488)](t){const e=u;return this[e(484)][e(557)](e=>e.id===t)||null}[u(500)](){const t=u;return Array[t(565)](this[t(484)])}[u(518)](){return this[u(546)]}[u(576)](t){this[u(546)]=t}[u(577)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(484)][o(481)];i++)this[o(532)](t,i)&&(n=!0);return n}[u(539)](t,e){const o=u,n=t[o(566)](o(573),{});return t[o(551)](n,e),this[o(490)]=n,n}[u(556)](t){const e=u;if(!this[e(484)][e(481)]||this[e(490)])return;const o=this[e(484)][0][e(553)][e(486)],n=this[e(539)](t,o);for(const o of this[e(484)])o[e(503)][e(544)]||t[e(511)](o[e(503)],n,e(505));this[e(577)](t)}[u(571)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(550)][o(510)](e);if(r[o(481)]&&(this[o(490)]=r[0]),i[o(481)])if(i[o(481)]>1||this[o(490)]&&i[o(508)](t=>t!==this[o(490)])){const e=t[o(566)](o(573),{}),s=[];this[o(490)]&&s[o(561)](this[o(490)]),s[o(561)](...i),t[o(511)](e,s[0],o(560));for(const n of s)t[o(520)](t[o(493)](n),t[o(542)](e,o(505))),t[o(574)](n);this[o(490)]=e,this[o(577)](t),n=!0}else this[o(490)]=i[0];if(s[o(481)]&&o(555)===this[o(490)]?.[o(486)][o(519)]){for(const e of this[o(484)])t[o(574)](e[o(553)]),n=!0;this[o(484)]=[],this[o(490)]=null}return n}[u(516)](t,e){const o=u;let n=!1;const i=this[o(512)][o(502)][o(529)](o(501)),{inserted:s,moved:r}=this[o(487)][o(510)](e);for(const e of[...r,...s]){const s=e[o(580)](o(492)),r=this[o(488)](s);r&&(r[o(503)]=e),p(t,i,e)&&(n=!0)}return n}[u(549)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(554)][o(510)](e);for(const e of i)this[o(581)](t,e)&&(n=!0);for(const e of s)this[o(567)](t,e)&&(n=!0);for(const e of r)this[o(578)](t,e)&&(n=!0);return n}[u(507)](t){const e=u;if(!this[e(490)])return!1;let o=!1;if(this[e(490)][e(579)]!==this[e(484)][e(481)]){const n=[];for(const t of this[e(490)][e(526)]()){const i=t[e(580)](e(492));this[e(488)](i)||(n[e(528)](t),o=!0)}for(const o of n)t[e(574)](o)}const n=new Set,i=[];for(const t of this[e(490)][e(526)]()){const s=t[e(580)](e(492));n[e(572)](s)?(i[e(528)](t),o=!0):n[e(496)](s)}for(const o of i)t[e(574)](o);return this[e(490)][e(579)]||(t[e(574)](this[e(490)]),this[e(490)]=null,o=!0),o}[u(567)](t,e){const o=u;if(this[o(484)][o(557)](t=>t[o(553)]===e))return!1;let n=!1;const i=e[o(580)](o(492)),s=this[o(484)][o(540)](t=>t.id===i);-1!==s&&(t[o(574)](this[o(484)][s][o(553)]),this[o(484)][o(548)](s,1),n=!0);let r=this[o(490)]?function(t,e){const n=o;for(const o of t[n(526)]())if(o[n(580)](n(492))===e)return o;return null}(this[o(490)],i):null;r||(r=t[o(566)](o(535),{footnoteId:i}),this[o(490)]&&(t[o(511)](r,this[o(490)],o(505)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(512)][o(538)],this[o(484)],e);this[o(484)][o(548)](c,0,a);let l=c;return-1!==s&&(l=Math[o(564)](c,s)),this[o(577)](t,l)&&(n=!0),n}[u(581)](t,e){const o=u,n=this[o(484)][o(540)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(484)][n];return o(555)!==s[o(503)][o(486)][o(519)]&&(t[o(574)](s[o(503)]),i=!0),this[o(484)][o(548)](n,1),this[o(577)](t,n)&&(i=!0),i}[u(578)](t,e){const o=u,n=e[o(580)](o(492)),i=this[o(484)][o(540)](t=>t.id===n),s=this[o(484)][i];let r=!1;s[o(553)]=e,this[o(484)][o(548)](i,1);const a=m(this[o(512)][o(538)],this[o(484)],e);return this[o(484)][o(548)](a,0,s),this[o(577)](t,Math[o(564)](i,a))&&(r=!0),r}[u(532)](t,e){const o=u;if(!this[o(490)])return!1;const n=this[o(484)][e];let i;return i=this[o(546)]?this[o(546)]({footnote:n,container:this[o(490)],digits:String(this[o(484)][o(481)])[o(481)],value:e+1}):String(e+1),n[o(553)][o(580)](o(491))!=i&&(t[o(498)](o(491),i,n[o(553)]),!0)}[u(547)](t){const e=u;if(!this[e(490)]||this[e(484)][e(481)]<2)return!1;if(function(t,o){const n=e;if(t[n(481)]!==o[n(481)])return!1;for(let e=0;e<t[n(481)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(484)][e(568)](t=>t.id),Array[e(565)](this[e(490)][e(526)]())[e(568)](t=>t[e(580)](e(492)))))return!1;let o=!1;for(let n=0;n<this[e(484)][e(481)];n++){const i=this[e(484)][n],s=t[e(523)](i[e(503)]),r=t[e(542)](this[e(490)],n);s[e(575)](r)||(t[e(520)](t[e(525)](i[e(503)]),r),o=!0)}return o}[u(522)](t){const e=u;if(!this[e(484)][e(481)])return!1;const{model:o}=this[e(512)];let n=!1;for(let i=0;i<this[e(484)][e(481)]-1;i++){const s=this[e(484)][i],r=this[e(484)][i+1],a=o[e(523)](s[e(553)]),c=o[e(523)](r[e(553)]);e(495)===a[e(545)](c)&&(this[e(578)](t,s[e(553)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(579)])return!1;const i=n(e?514:562);return t[n(511)](t[n(566)](i),o),!0}function h(){const t=["_handleRemoveFootnoteReferenceById","length","isPremiumPlugin","355736hIlLNv","_footnotes","indexOf","root","_footnoteDefsTracker","getFootnote","5HeAnTa","_footnotesDefinitions","footnoteCounter","footnoteId","createRangeIn","set","after","add","enqueueChange","setAttribute","change:data","getFootnotes","footnotes.multiBlock","config","definition","isOfficialPlugin","end","pluginName","_handleFootnotesDefinitionsObjectSync","some","footnoteRef","getChanges","insert","editor","279CdyEhm","paragraph","document","_handleFootnoteDefinitionsChanges","getFootnotesDefinitionsObjectElement","getFootnotesFormatter","rootName","move","registerPostFixer","_ensureFootnotesReferencesHaveProperOrder","createPositionBefore","getRootNames","createRangeOn","getChildren","high","unshift","get","1020567cyhXMW","singleton","_updateFootnoteRefCounter","5645178ijGwpB","FootnotesTracker","footnoteDefinition","5973472XqjLBB","listenTo","model","_insertEmptyFootnotesDefinitionsContainer","findIndex","2448376SVDacs","createPositionAt","init","parent","compareWith","_footnoteFormatter","_sortFootnoteDefinitions","splice","_handleFootnoteReferencesChanges","_footnoteDefsContainerTracker","append","reset","reference","_footnoteRefsTracker","$graveyard","_ensureFootnotesDefinitionsContainerExists","find","low","1cIBEoG","before","push","footnoteInlineContent","differ","min","from","createElement","_handleInsertedFootnoteReference","map","424070srpzao","317128ePonZC","_handleFootnotesDefinitionsObjectChanges","has","footnotesDefinitions","remove","isEqual","setFootnoteFormatter","_updateFootnotesCounters","_handleMovedFootnoteReference","childCount","getAttribute"];return(h=function(){return t})()}function m(t,e,o){const n=u;if(0===e[n(481)])return 0;const i=t[n(523)](o);for(let o=0;o<e[n(481)];o++){const s=e[o],r=t[n(523)](s[n(553)]);if(n(560)===i[n(545)](r))return o}const s=o[n(486)];let r=-1;for(let t=e[n(481)]-1;t>=0;t--)if(e[t][n(553)][n(486)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(515)][n(524)](),c=a[n(485)](s[n(519)]),l=a[c+1];if(l)for(let t=0;t<e[n(481)];t++)if(e[t][n(553)][n(486)][n(519)]===l)return t;return e[n(481)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=199]})(t,e)}const w=g;function y(){const t=["843541AZfAEF","get","footnoteRef","isEnabled","checkChild","insertObject","plugins","isBlock","editor","length","model","_moveSelectionToFootnoteDefinition","selection","3704900AmwgFn","684649cDOlAb","1540156NLIEnC","isObject","101395HtPMbE","string","_getPositionToInsertFootnote","footnoteId","createElement","102SclBFu","111504gfbAPX","test","execute","end","2293485GsKAzu","FootnotesEditing","insert-footnote-command-executed-with-invalid-id","2466icYudt","refresh","change","getItems","getFirstRange","document"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(761609===-parseInt(e(208))/1+-parseInt(e(223))/2+-parseInt(e(199))/3+-parseInt(e(221))/4+-parseInt(e(225))/5*(-parseInt(e(230))/6)+-parseInt(e(222))/7+parseInt(e(231))/8*(parseInt(e(202))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(203)](){const t=w,e=this[t(216)][t(218)][t(207)][t(220)],o=this[t(227)](e);this[t(211)]=!!o}[w(233)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(207)],r=this[e(227)](s);if(!r)return;const a=o[e(214)][e(209)](e(200)),c=t?.[e(228)]??(0,i.uid)();!function(t){const o=e;return o(226)==typeof t&&t[o(217)]>0&&!/\s/[o(232)](t)&&!/^\d/[o(232)](t)}(c)?(0,i.logWarning)(e(201)):(n[e(204)](t=>{const o=e,i=t[o(229)](o(210),{footnoteId:c});n[o(213)](i,r,null)}),a[e(219)](c))}[w(227)](t){const e=w,{model:o}=this[e(216)],{schema:n}=o,i=t[e(206)]();for(const t of i[e(205)]())if(n[e(215)](t)||n[e(224)](t))return null;const s=i[e(234)];return n[e(212)](s,e(210))?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=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],u(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?f(u(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+f(u(t)),n=d(f(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+f(u(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1770249600;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(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})=>x(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)(x(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})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(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 E(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 x(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 T=L;function A(){const t=["setAttribute","from","change","footnotesDefinitions","isPremiumPlugin","document","1nhnGlX","data","1095LWkgKA","insert","editor","2417202aWBXJq","config","_defineClipboardIntegration","getSelectedBlocks","push","toModel","getFootnotes","root","selection","listenTo","toData","end","application/ckeditor5-footnotes","dataTransfer","flatMap","9316930QrVcdk","createElement","element","398741Uixpql","init","includes","htmlProcessor","footnoteDefinition","_insertEmptyFootnotesDefinitionsContainer","editing","string","clipboardInput","getFootnotesDefinitionsObjectElement","pluginName","7807104VIEaYg","hasAttribute","contentInsertion","outputTransformation","getChildren","parse","requires","add","toView","footnoteInlineContent","cloneElement","create","stringify","getAttribute","4180TGgaZn","drop","_handleCopyFootnotesDefinitions","method","length","createRangeIn","getFootnote","getData","sourceEditorId","footnotes.multiBlock","_handlePasteFootnotesDefinitions","isOfficialPlugin","find","keys","append","230634YNYQDH","getRanges","setData","reduce","entries","get","1674414AXDJMG","getFirstRange","FootnotesClipboard","remove","footnoteId","30kdqFjX","content","definition","footnoteRef"];return(A=function(){return t})()}!function(t){const e=L,o=t();for(;;)try{if(492606===-parseInt(e(350))/1*(parseInt(e(329))/2)+parseInt(e(271))/3+-parseInt(e(314))/4*(-parseInt(e(352))/5)+parseInt(e(340))/6*(-parseInt(e(289))/7)+parseInt(e(300))/8+-parseInt(e(335))/9+-parseInt(e(286))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class D extends t.Plugin{static get[T(299)](){return T(337)}static get[T(306)](){return[v,P.ClipboardPipeline]}static get[T(325)](){return!0}static get[T(348)](){return!0}[T(290)](){this[T(273)]()}[T(273)](){const t=T;this[t(316)](),this[t(324)]()}[T(316)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(334)](P.ClipboardPipeline),s=o[t(334)](d);this[t(280)](i,t(303),(o,i)=>{const r=t,a=V(n[r(319)](i[r(341)]));if(!a[r(318)])return;const c=s[r(277)](),l=a[r(332)]((t,o)=>{const n=r,i=c[n(326)](t=>t.id===o);if(i){const o=e[n(351)][n(308)](i[n(342)],{isClipboardPipeline:!0}),s=e[n(351)][n(292)][n(281)](o);t[i.id]=s}return t},Object[r(311)](null));i[r(284)][r(331)](r(283),JSON[r(312)](l))})}[T(324)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(295)],r=n[t(334)](P.ClipboardPipeline),a=n[t(334)](d),c=e[t(272)][t(334)](t(323));let l=null;this[t(280)](s[t(349)],t(297),(e,o)=>{const n=t,i=o[n(284)][n(321)](n(283));l=i?JSON[n(305)](i):null}),this[t(280)](r,t(302),(n,s)=>{const r=t,u=s[r(322)]===this[r(354)].id;u&&r(315)===s[r(317)]||o[r(346)](t=>{const n=r;let f=a[n(298)]();const d=!!f&&Array[n(345)](o[n(349)][n(279)][n(274)]())[n(291)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(288),e(343)))return!0;return!1}(o[n(319)](s[n(341)]))&&(l=function(t,e){const o=n,i=_(t,e);if(!i)return null;const s=Object[o(311)](null);for(const e of i[o(304)]())e.is(o(288),o(293))&&e[o(301)](o(339))&&(s[e[o(313)](o(339))]=t[o(310)](e,!0));return Object[o(327)](s)[o(318)]?s:null}(t,s[n(341)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(319)](e))n.is(o(288),o(347))&&i[o(275)](n);for(const e of i)t[o(338)](e)}(t,s[n(341)]),!l)return;const{selection:p}=o[n(349)],h=p[n(336)]()[n(278)];f&&!d||(f=_(t,s[n(341)]),f||=a[n(294)](t,h));const m=Array[n(345)](p[n(330)]())[n(285)](V),g=function(t,e,o){const s=n,r=Object[s(311)](null);for(const{item:n}of t[s(319)](e))if(n.is(s(288),s(343))){const e=n[s(313)](s(339));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(344)](s(339),r[e],n)}return r}(t,s[n(341)],t=>{const e=n;return!u||!!a[e(320)](t)&&!m[e(291)](t)});for(const[o,i]of Object[n(333)](l)){const s=g[o]||o;let r;if(n(296)!=typeof i)r=i,s!==o&&t[n(344)](n(339),s,r);else{r=t[n(287)](n(293),{footnoteId:s});const o=e[n(351)][n(292)][n(308)](i);let a;if(c)a=e[n(351)][n(276)](o,r);else{a=t[n(287)](n(309));const i=e[n(351)][n(276)](o,a);t[n(353)](i,a)}t[n(328)](a,r)}t[n(353)](r,f,n(282))}l=null})})}}function _(t,e){const o=T;for(const{item:n}of t[o(319)](e))if(n.is(o(288),o(347)))return n;return null}function L(t,e){const o=A();return(L=function(t,e){return o[t-=271]})(t,e)}function V(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(288),e(343))&&o[e(307)](n[e(313)](e(339)));return Array[e(345)](o)}var N=o(311),O=o(355),R=o(929),j=o.n(R),K=o(297),M=o.n(K),B=o(102),U=o.n(B),W=o(123),z=o.n(W),H=o(741),q=o.n(H),J=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=U().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=q();j()(J.A,X);J.A&&J.A.locals&&J.A.locals;class G extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Q(t,N.ButtonView)),e.add("menuBar:insertFootnote",Q(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Q(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=$;function Z(){var t=["1488825ZgbfNW","282004oQUmNJ","21iJLSaB","requires","899320fxMPeu","20532swUTTh","22CNgMJT","isOfficialPlugin","isPremiumPlugin","39872VbaIwk","65IkPYSa","1443244yzcLES","pluginName","261PJuaJa","Footnotes","1GDvOwx","1572dDFgTx","204529zjfDaW"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=103]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(584497===parseInt(e(105))/1*(-parseInt(e(119))/2)+parseInt(e(108))/3+-parseInt(e(109))/4*(parseInt(e(118))/5)+parseInt(e(113))/6*(-parseInt(e(110))/7)+parseInt(e(117))/8*(-parseInt(e(103))/9)+-parseInt(e(112))/10*(parseInt(e(114))/11)+parseInt(e(106))/12*(parseInt(e(107))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class tt extends t.Plugin{static get[Y(120)](){return Y(104)}static get[Y(111)](){return[v,D,G]}static get[Y(115)](){return!0}static get[Y(116)](){return!0}}const et=nt;!function(t){const e=nt,o=t();for(;;)try{if(692607===-parseInt(e(300))/1*(-parseInt(e(294))/2)+parseInt(e(296))/3*(-parseInt(e(292))/4)+-parseInt(e(287))/5+-parseInt(e(286))/6*(-parseInt(e(288))/7)+-parseInt(e(299))/8*(-parseInt(e(284))/9)+-parseInt(e(297))/10*(parseInt(e(298))/11)+parseInt(e(285))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);const ot=[et(289),et(293),et(283),et(291),et(295),et(301),et(282),et(290)];function nt(t,e){const o=it();return(nt=function(t,e){return o[t-=282]})(t,e)}function it(){const t=["3119303EYzImG","159592umOvcW","5939TnjuFk","upper-alpha","lower-roman","lower-latin","252vPLwKl","23078388mrsHFd","1767168TCodmi","4872800XBridl","21SuunOZ","decimal","upper-roman","upper-latin","1492QiqSVM","decimal-leading-zero","226IvtPJe","lower-alpha","9933ctaYwn","40HnbJOc"];return(it=function(){return t})()}const st=at;function rt(){const t=["change","68894JkxVTL","2943864babbdA","isEnabled","_updateFootnotesCounters","get","5127160fVUJDp","getFootnotesDefinitionsObjectElement","value","getAttribute","footnotesListStyle","plugins","1988775yuUYDv","6heXVDT","model","setAttribute","2379176Hmkjug","1017885IYapku","includes","429314QWgQmA","refresh","execute"];return(rt=function(){return t})()}function at(t,e){const o=rt();return(at=function(t,e){return o[t-=410]})(t,e)}!function(t){const e=at,o=t();for(;;)try{if(370038===-parseInt(e(416))/1+-parseInt(e(420))/2+parseInt(e(431))/3+parseInt(e(413))/4+parseInt(e(414))/5*(-parseInt(e(410))/6)+parseInt(e(421))/7+-parseInt(e(425))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[st(417)](){const t=st,{editor:e}=this,o=e[t(430)][t(424)](d)[t(426)]();this[t(422)]=!!o,this[t(427)]=o?.[t(428)](t(429))??null}[st(418)]({value:t}){const e=st,{editor:o}=this,n=o[e(430)][e(424)](d),i=n[e(426)]();i&&ot[e(415)](t)&&o[e(411)][e(419)](o=>{const s=e;o[s(412)](s(429),t,i),n[s(423)](o)})}}function lt(){const t=["324wSzuNE","getFootnotesDefinitionsObjectElement","model","1046243FWglEq","isInteger","_updateFootnotesCounters","setAttribute","476931xVTDpN","1974NsKziO","16tXVRPr","isEnabled","plugins","401896fXdXXq","1808010UGrdaY","getAttribute","902900aAgpYo","value","511045zpFCah","execute","footnotesListStart","refresh","get","change","20BvFQzm","30BwrxNl"];return(lt=function(){return t})()}const ut=ft;function ft(t,e){const o=lt();return(ft=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(286194===parseInt(e(237))/1+parseInt(e(228))/2*(parseInt(e(220))/3)+parseInt(e(232))/4+-parseInt(e(235))/5+parseInt(e(219))/6*(parseInt(e(227))/7)+parseInt(e(229))/8*(-parseInt(e(233))/9)+parseInt(e(218))/10*(-parseInt(e(223))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(lt);class dt extends t.Command{[ut(240)](){const t=ut,{editor:e}=this,o=e[t(231)][t(241)](d)[t(221)]();this[t(230)]=!!o,this[t(236)]=o?.[t(234)](t(239))??null}[ut(238)]({value:t}){const e=ut,{editor:o}=this,n=o[e(231)][e(241)](d),i=n[e(221)]();i&&Number[e(224)](t)&&o[e(222)][e(242)](o=>{const s=e;o[s(226)](s(239),t,i),n[s(225)](o)})}}const pt=mt;function ht(){const t=["footnotesListStyle","getChanges","footnotesStart","_definePostfixer","5861298HmUyhn","isNaN","lower-latin","336249dIGCDq","getItems","max","FootnotesPropertiesEditing","editor","lower-alpha","3acipoc","1377530stgcBF","5834bgRnes","$text","_formatFootnoteListValue","footnotes-list","upper-roman","get","item","parseInt","lower-roman","commands","from","for","modelCursor","footnotesDefinitions","footnotesListStart","112KllDXZ","plugins","schema","name","nodeAfter","model","attribute:footnotesListStart:footnotesDefinitions","_defineFormatter","getAttribute","1479364ekLnIu","_defineSchema","element","type","mapper","getChildren","getStyle","insert","floor","_getDefaultStartIndex","requires","decimal","padStart","pluginName","_defineConverters","footnotesStyle","setFootnoteFormatter","_getDefaultListStyle","379oBaTeb","decimal-leading-zero","toLowerCase","hasAttribute","init","consume","upcast","setStyle","element:ol","1755280MkketU","registerPostFixer","toUpperCase","checkAttribute","viewItem","upper-alpha","start","consumable","toViewElement","4290350NrrSQr","document","differ","list-style-type","_updateFootnotesCounters","removeAttribute","setAttribute","fromCharCode","add","createRangeOn","downcast","removeStyle","parent","extend","isPremiumPlugin","footnotes.footnotesProperties.defaultListStyle","config","define","hasClass","isOfficialPlugin","find","position","upper-latin","writer","attribute:footnotesListStyle:footnotesDefinitions","7dhQZHL","footnotes.footnotesProperties.defaultStartIndex"];return(ht=function(){return t})()}function mt(t,e){const o=ht();return(mt=function(t,e){return o[t-=164]})(t,e)}!function(t){const e=mt,o=t();for(;;)try{if(623448===parseInt(e(177))/1*(-parseInt(e(237))/2)+parseInt(e(235))/3*(parseInt(e(261))/4)+parseInt(e(186))/5+parseInt(e(226))/6*(parseInt(e(220))/7)+parseInt(e(252))/8*(-parseInt(e(229))/9)+parseInt(e(195))/10+parseInt(e(236))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class gt extends t.Plugin{static get[pt(172)](){return pt(232)}static get[pt(169)](){return[v,d]}static get[pt(214)](){return!0}static get[pt(209)](){return!0}[pt(181)](){const t=pt,{editor:e}=this;e[t(211)][t(212)](t(210),t(170)),e[t(211)][t(212)](t(221),1),e[t(246)][t(203)](t(174),new ct(e)),e[t(246)][t(203)](t(224),new dt(e)),this[t(262)](),this[t(173)](),this[t(259)](),this[t(225)]()}[pt(262)](){const t=pt,{editor:e}=this,{schema:o}=e[t(257)];o[t(208)](t(250),{allowAttributes:[t(222),t(251)]})}[pt(173)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(248)](t(183))[t(203)](e=>{const o=t;e.on(o(185),(t,e,n)=>{const s=o,r=e[s(190)],a=e[s(249)]?.[s(207)];r[s(213)](s(240))&&a?.is(s(263),s(250))&&(function(t,e,o,n){const i=s;if(!n[i(189)](e,i(251)))return;let r=1;const a=o[i(193)][i(182)](t,{attributes:i(192)});if(a){const e=Number[i(244)](t[i(260)](i(192)),10);Number[i(227)](e)||(r=e)}!a&&e[i(180)](i(251))||o[i(218)][i(201)](i(251),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(189)](e,i(222)))return;let r=i(170),a=!1;if(o[i(193)][i(182)](t,{attributes:i(264)})){const e={1:i(170),a:i(234),A:i(191),i:i(245),I:i(241)}[t[i(260)](i(264))];e&&(r=e),a=!0}o[i(193)][i(182)](t,{styles:i(198)})&&(r=function(t){const e=i;switch(t){case e(234):return e(228);case e(191):return e(217);default:return t}}(t[i(165)](i(198))),a=!0),!a&&e[i(180)](i(222))||o[i(218)][i(201)](i(222),r,e)}(r,a,n,i))})}),o[t(248)](t(205))[t(203)](e=>{const o=t;e.on(o(258),(t,e,n)=>{const i=o;if(!n[i(193)][i(182)](e[i(243)],t[i(255)]))return;const s=wt(e[i(243)],n[i(265)]),{attributeNewValue:r}=e;null==r||1===r?n[i(218)][i(200)](i(192),s):n[i(218)][i(201)](i(192),String(r),s)}),e.on(o(219),(t,e,n)=>{const i=o;if(!n[i(193)][i(182)](e[i(243)],t[i(255)]))return;const s=wt(e[i(243)],n[i(265)]),{attributeNewValue:r}=e;r&&i(170)!==r?n[i(218)][i(184)](i(198),r,s):n[i(218)][i(206)](i(198),s)})})}[pt(225)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(253)][t(242)](d),i=this[t(176)](),s=this[t(168)]();o[t(196)][t(187)](e=>{const r=t,a=o[r(196)][r(197)][r(223)]();let c=!1;for(const t of a){if(r(166)!==t[r(264)]||r(238)===t[r(255)])continue;const n=o[r(204)](t[r(216)][r(256)]);for(const t of n[r(230)]())t.is(r(263),r(250))&&(!t[r(180)](r(251))&&o[r(254)][r(189)](t,r(251))&&(e[r(201)](r(251),s,t),c=!0),!t[r(180)](r(222))&&o[r(254)][r(189)](t,r(222))&&(e[r(201)](r(222),i,t),c=!0))}return c&&n[r(199)](e),c})}[pt(259)](){const t=pt,{editor:e}=this;e[t(253)][t(242)](d)[t(175)](e=>this[t(239)](e))}[pt(176)](){const t=pt;return this[t(233)][t(211)][t(242)](t(210))}[pt(168)](){const t=pt;return this[t(233)][t(211)][t(242)](t(221))}[pt(239)]({container:t,value:e,digits:o}){const n=pt,i=t[n(260)](n(222)),s=t[n(260)](n(251)),r=Math[n(167)](e)+(s??1)-1;switch(i){case n(178):return function(t,e){const o=n;return String(t)[o(171)](e,"0")}(r,Math[n(231)](2,o));case n(234):case n(228):return yt(r,!1);case n(191):case n(217):return yt(r,!0);case n(245):return vt(r,!1);case n(241):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(194)](t);return Array[o(247)](n[o(164)]())[o(215)](t=>t.is(o(263),"ol")&&t[o(213)](o(240)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(202)](97+t)+n,i=Math[o(167)]((i-1)/26)}return e?n[o(188)]():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(179)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=z(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=q();j()(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[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.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:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=382]})(t,e)}function xt(){var t=["isPremiumPlugin","requires","1wAVaGm","17468165MznLwW","8435168BBTVjk","10181059pjLcLj","isOfficialPlugin","13235598oSvaRv","10wqsgOY","20SMfXOo","222155PpcGVi","FootnotesProperties","pluginName","409236oQWZlE","6ZnfJka","236982TdnJCZ"];return(xt=function(){return t})()}var St=Et;!function(t){for(var e=Et,o=t();;)try{if(837805===parseInt(e(385))/1*(parseInt(e(396))/2)+parseInt(e(382))/3*(parseInt(e(392))/4)+-parseInt(e(393))/5+parseInt(e(397))/6*(parseInt(e(388))/7)+-parseInt(e(387))/8+-parseInt(e(390))/9*(-parseInt(e(391))/10)+-parseInt(e(386))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[St(395)](){return St(394)}static get[St(384)](){return[gt,Ft]}static get[St(389)](){return!0}static get[St(383)](){return!0}}function Tt(){var t=["520932yTqsEB","35660LsdJDn","255261LgEblq","148qLEoHx","7621209ZQhrjr","565608FUQUbx","735455faVdpa","16EluvKi","771060jdKJNP"];return(Tt=function(){return t})()}function At(t,e){var o=Tt();return(At=function(t,e){return o[t-=490]})(t,e)}!function(t){for(var e=At,o=t();;)try{if(204830===parseInt(e(490))/1+-parseInt(e(497))/2+-parseInt(e(496))/3+parseInt(e(491))/4*(-parseInt(e(498))/5)+parseInt(e(493))/6+parseInt(e(494))/7*(-parseInt(e(495))/8)+parseInt(e(492))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Tt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();