@ckeditor/ckeditor5-footnotes 0.0.0-nightly-next-20251210.0 → 0.0.0-nightly-next-20251211.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ut,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>J,InsertFootnoteCommand:()=>w});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["push","insert","attributes","$text","delete","_model","length","remove","flat","_elementName","root","has","19858824myLGks","_trackedElements","values","3767380hiMwzF","246XPnPwA","type","3369360RJMoUc","_getElementKey","elementName","add","9328704hIOyxm","set","position","888520taOpTm","$graveyard","element","from","get","8844904hbMruY","nodeAfter","name","getElementKey","createRangeOn","getChanges","rootName","reset","clear","139595efuyZg","slice","2urtYyg","getItems"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=430]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(669183===parseInt(e(447))/1*(-parseInt(e(431))/2)+parseInt(e(467))/3+-parseInt(e(464))/4+-parseInt(e(445))/5*(-parseInt(e(465))/6)+parseInt(e(471))/7+parseInt(e(436))/8+-parseInt(e(461))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(454)];[a(458)];[a(468)];[a(462)]=new Map;constructor(t,e){const o=a;this[o(454)]=t,this[o(458)]=e[o(469)],this[o(468)]=e[o(439)]}[a(443)](){const t=a;this[t(462)][t(444)]()}[a(441)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(450)===i[e(466)]&&e(452)!==i[e(438)]&&i[e(430)][e(437)]){const t=this[e(454)][e(440)](i[e(430)][e(437)]);for(const o of t[e(448)]()){if(!o.is(e(433),this[e(458)]))continue;const t=this[e(468)](o);n[e(460)](t)||n[e(472)](t,[]),n[e(435)](t)[e(449)](o)}}if(e(456)===i[e(466)]&&i[e(438)]===this[e(458)]){const t=this[e(468)]({getAttribute:t=>i[e(451)][e(435)](t)});o[e(470)](t)}}for(const[t,n]of this[e(462)])e(432)===n[e(459)][e(442)]&&o[e(470)](t);for(const t of o)this[e(462)][e(453)](t);for(const[t,o]of n)this[e(462)][e(472)](t,o[o[e(455)]-1]);const i=new Set;for(const[t,s]of n)o[e(460)](t)&&(i[e(470)](s[0]),s[e(455)]>1?n[e(472)](t,s[e(446)](1)):n[e(453)](t),o[e(453)](t));return{removed:Array[e(434)](o),inserted:Array[e(434)](n[e(463)]())[e(457)](),moved:Array[e(434)](i)}}}const f=u;function u(t,e){const o=p();return(u=function(t,e){return o[t-=255]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(856344===parseInt(e(302))/1*(parseInt(e(350))/2)+parseInt(e(290))/3+-parseInt(e(326))/4+parseInt(e(327))/5*(-parseInt(e(314))/6)+parseInt(e(261))/7*(parseInt(e(330))/8)+-parseInt(e(281))/9*(parseInt(e(277))/10)+parseInt(e(283))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[f(315)]=[];[f(256)]=null;[f(321)]=null;[f(329)];[f(353)];[f(295)];static get[f(342)](){return f(324)}static get[f(294)](){return!0}static get[f(263)](){return!0}constructor(t){const e=f;super(t),this[e(329)]=new l(this[e(288)][e(349)],{elementName:e(265),getElementKey:()=>e(322)}),this[e(353)]=new l(this[e(288)][e(349)],{elementName:e(296),getElementKey:t=>t[e(301)](e(318))}),this[e(295)]=new l(this[e(288)][e(349)],{elementName:e(286),getElementKey:t=>t[e(301)](e(318))})}[f(297)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(325)][t(332)](e=>{const n=t,i=o[n(325)][n(340)][n(275)]();let s=!1;return this[n(354)](e,i)&&(s=!0),this[n(343)](e,i)&&(s=!0),this[n(344)](e,i)&&(s=!0),this[n(355)](e)&&(s=!0),this[n(266)](e)&&(s=!0),this[n(346)](e)&&(s=!0),s}),this[t(300)](o[t(325)],t(267),()=>{const e=t;o[e(309)]({isUndoable:!1},t=>{this[e(287)](t)})},{priority:t(356)}),this[t(300)](n,t(305),()=>{const e=t;this[e(315)]=[],this[e(329)][e(272)](),this[e(353)][e(272)](),this[e(295)][e(272)]()},{priority:t(348)})}[f(259)](){return this[f(256)]}[f(270)](t){const e=f;return this[e(315)][e(292)](e=>e.id===t)||null}[f(293)](){const t=f;return Array[t(279)](this[t(315)])}[f(278)](){return this[f(321)]}[f(339)](t){this[f(321)]=t}[f(345)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(315)][o(331)];i++)this[o(258)](t,i)&&(n=!0);return n}[f(335)](t,e){const o=f,n=t[o(306)](o(265),{});return t[o(308)](n,e),this[o(256)]=n,n}[f(287)](t){const e=f;if(!this[e(315)][e(331)]||this[e(256)])return;const o=this[e(315)][0][e(317)][e(337)],n=this[e(335)](t,o);for(const o of this[e(315)])o[e(313)][e(310)]||t[e(328)](o[e(313)],n,e(273));this[e(345)](t)}[f(354)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(329)][o(275)](e);if(r[o(331)]&&(this[o(256)]=r[0]),i[o(331)])if(i[o(331)]>1||this[o(256)]&&i[o(262)](t=>t!==this[o(256)])){const e=t[o(306)](o(265),{}),s=[];this[o(256)]&&s[o(285)](this[o(256)]),s[o(285)](...i),t[o(328)](e,s[0],o(284));for(const n of s)t[o(260)](t[o(338)](n),t[o(333)](e,o(273))),t[o(291)](n);this[o(256)]=e,this[o(345)](t),n=!0}else this[o(256)]=i[0];if(s[o(331)]&&o(280)===this[o(256)]?.[o(337)][o(304)]){for(const e of this[o(315)])t[o(291)](e[o(317)]),n=!0;this[o(315)]=[],this[o(256)]=null}return n}[f(343)](t,e){const o=f;let n=!1;const i=this[o(288)][o(274)][o(271)](o(323)),{inserted:s,moved:r}=this[o(295)][o(275)](e);for(const e of[...r,...s]){const s=e[o(301)](o(318)),r=this[o(270)](s);r&&(r[o(313)]=e),h(t,i,e)&&(n=!0)}return n}[f(344)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(353)][o(275)](e);for(const e of i)this[o(351)](t,e)&&(n=!0);for(const e of s)this[o(316)](t,e)&&(n=!0);for(const e of r)this[o(311)](t,e)&&(n=!0);return n}[f(266)](t){const e=f;if(!this[e(256)])return!1;let o=!1;if(this[e(256)][e(347)]!==this[e(315)][e(331)]){const n=[];for(const t of this[e(256)][e(255)]()){const i=t[e(301)](e(318));this[e(270)](i)||(n[e(257)](t),o=!0)}for(const o of n)t[e(291)](o)}const n=new Set,i=[];for(const t of this[e(256)][e(255)]()){const s=t[e(301)](e(318));n[e(298)](s)?(i[e(257)](t),o=!0):n[e(352)](s)}for(const o of i)t[e(291)](o);return this[e(256)][e(347)]||(t[e(291)](this[e(256)]),this[e(256)]=null,o=!0),o}[f(316)](t,e){const o=f;if(this[o(315)][o(292)](t=>t[o(317)]===e))return!1;let n=!1;const i=e[o(301)](o(318)),s=this[o(315)][o(289)](t=>t.id===i);-1!==s&&(t[o(291)](this[o(315)][s][o(317)]),this[o(315)][o(269)](s,1),n=!0);let r=this[o(256)]?function(t,e){const n=o;for(const o of t[n(255)]())if(o[n(301)](n(318))===e)return o;return null}(this[o(256)],i):null;r||(r=t[o(306)](o(286),{footnoteId:i}),this[o(256)]&&(t[o(328)](r,this[o(256)],o(273)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(288)][o(349)],this[o(315)],e);this[o(315)][o(269)](c,0,a);let l=c;return-1!==s&&(l=Math[o(282)](c,s)),this[o(345)](t,l)&&(n=!0),n}[f(351)](t,e){const o=f,n=this[o(315)][o(289)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(315)][n];return o(280)!==s[o(313)][o(337)][o(304)]&&(t[o(291)](s[o(313)]),i=!0),this[o(315)][o(269)](n,1),this[o(345)](t,n)&&(i=!0),i}[f(311)](t,e){const o=f,n=e[o(301)](o(318)),i=this[o(315)][o(289)](t=>t.id===n),s=this[o(315)][i];let r=!1;s[o(317)]=e,this[o(315)][o(269)](i,1);const a=m(this[o(288)][o(349)],this[o(315)],e);return this[o(315)][o(269)](a,0,s),this[o(345)](t,Math[o(282)](i,a))&&(r=!0),r}[f(258)](t,e){const o=f;if(!this[o(256)])return!1;const n=this[o(315)][e];let i;return i=this[o(321)]?this[o(321)]({footnote:n,container:this[o(256)],digits:String(this[o(315)][o(331)])[o(331)],value:e+1}):String(e+1),n[o(317)][o(301)](o(341))!=i&&(t[o(307)](o(341),i,n[o(317)]),!0)}[f(346)](t){const e=f;if(!this[e(256)]||this[e(315)][e(331)]<2)return!1;if(function(t,o){const n=e;if(t[n(331)]!==o[n(331)])return!1;for(let e=0;e<t[n(331)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(315)][e(268)](t=>t.id),Array[e(279)](this[e(256)][e(255)]())[e(268)](t=>t[e(301)](e(318)))))return!1;let o=!1;for(let n=0;n<this[e(315)][e(331)];n++){const i=this[e(315)][n],s=t[e(334)](i[e(313)]),r=t[e(333)](this[e(256)],n);s[e(264)](r)||(t[e(260)](t[e(299)](i[e(313)]),r),o=!0)}return o}[f(355)](t){const e=f;if(!this[e(315)][e(331)])return!1;const{model:o}=this[e(288)];let n=!1;for(let i=0;i<this[e(315)][e(331)]-1;i++){const s=this[e(315)][i],r=this[e(315)][i+1],a=o[e(334)](s[e(317)]),c=o[e(334)](r[e(317)]);e(320)===a[e(303)](c)&&(this[e(311)](t,s[e(317)]),i=-1,n=!0)}return n}}function h(t,e,o){const n=f;if(o[n(347)])return!1;const i=n(e?319:276);return t[n(328)](t[n(306)](i),o),!0}function p(){const t=["_ensureFootnotesReferencesHaveProperOrder","low","getChildren","_footnotesDefinitions","unshift","_updateFootnoteRefCounter","getFootnotesDefinitionsObjectElement","move","8875720UsCVwx","some","isPremiumPlugin","isEqual","footnotesDefinitions","_handleFootnotesDefinitionsObjectSync","change:data","map","splice","getFootnote","get","reset","end","config","getChanges","footnoteInlineContent","12755850MtmGqr","getFootnotesFormatter","from","$graveyard","9UKZqYh","min","10606013UlUqLc","before","push","footnoteDefinition","_ensureFootnotesDefinitionsContainerExists","editor","findIndex","5026761GktKwP","remove","find","getFootnotes","isOfficialPlugin","_footnoteDefsTracker","footnoteRef","init","has","createRangeOn","listenTo","getAttribute","3413cTdzPj","compareWith","rootName","set","createElement","setAttribute","append","enqueueChange","parent","_handleMovedFootnoteReference","getRootNames","definition","6VkZHRL","_footnotes","_handleInsertedFootnoteReference","reference","footnoteId","paragraph","after","_footnoteFormatter","singleton","footnotes.multiBlock","FootnotesTracker","document","4006348cHnKyd","4297695VgueSJ","insert","_footnoteDefsContainerTracker","8meEuhT","length","registerPostFixer","createPositionAt","createPositionBefore","_insertEmptyFootnotesDefinitionsContainer","indexOf","root","createRangeIn","setFootnoteFormatter","differ","footnoteCounter","pluginName","_handleFootnoteDefinitionsChanges","_handleFootnoteReferencesChanges","_updateFootnotesCounters","_sortFootnoteDefinitions","childCount","high","model","50KwUOdh","_handleRemoveFootnoteReferenceById","add","_footnoteRefsTracker","_handleFootnotesDefinitionsObjectChanges"];return(p=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(331)])return 0;const i=t[n(334)](o);for(let o=0;o<e[n(331)];o++){const s=e[o],r=t[n(334)](s[n(317)]);if(n(284)===i[n(303)](r))return o}const s=o[n(337)];let r=-1;for(let t=e[n(331)]-1;t>=0;t--)if(e[t][n(317)][n(337)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(325)][n(312)](),c=a[n(336)](s[n(304)]),l=a[c+1];if(l)for(let t=0;t<e[n(331)];t++)if(e[t][n(317)][n(337)][n(304)]===l)return t;return e[n(331)]}const g=y;!function(t){const e=y,o=t();for(;;)try{if(618246===parseInt(e(301))/1*(-parseInt(e(277))/2)+parseInt(e(306))/3*(-parseInt(e(273))/4)+parseInt(e(302))/5+parseInt(e(280))/6+parseInt(e(307))/7+-parseInt(e(300))/8+parseInt(e(298))/9*(-parseInt(e(296))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class w extends t.Command{[g(284)](){const t=g,e=this[t(281)][t(290)][t(308)][t(303)],o=this[t(292)](e);this[t(275)]=!!o}[g(305)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(308)],r=this[e(292)](s);if(!r)return;const a=o[e(286)][e(274)](e(283)),c=t?.[e(295)]??(0,i.uid)();!function(t){const o=e;return o(285)==typeof t&&t[o(297)]>0&&!/\s/[o(294)](t)&&!/^\d/[o(294)](t)}(c)?(0,i.logWarning)(e(293)):(n[e(282)](t=>{const o=e,i=t[o(291)](o(279),{footnoteId:c});n[o(276)](i,r,null)}),a[e(304)](c))}[g(292)](t){const e=g,{model:o}=this[e(281)],{schema:n}=o,i=t[e(289)]();for(const t of i[e(309)]())if(n[e(299)](t)||n[e(278)](t))return null;const s=i[e(288)];return n[e(287)](s,e(279))?s:null}}function y(t,e){const o=b();return(y=function(t,e){return o[t-=273]})(t,e)}function b(){const t=["insert-footnote-command-executed-with-invalid-id","test","footnoteId","10LYvRJg","length","1573956DxdivI","isBlock","4908104wcvMVr","339835fpbjCZ","5413335VLEIAM","selection","_moveSelectionToFootnoteDefinition","execute","638076gxkPYg","6049498zqiIgi","document","getItems","20ErQewn","get","isEnabled","insertObject","4ErnoKC","isObject","footnoteRef","7217352qqVvOJ","editor","change","FootnotesEditing","refresh","string","plugins","checkChild","end","getFirstRange","model","createElement","_getPositionToInsertFootnote"];return(b=function(){return t})()}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 w(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765324800;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(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 A=T;function T(t,e){const o=D();return(T=function(t,e){return o[t-=395]})(t,e)}!function(t){const e=T,o=t();for(;;)try{if(506678===-parseInt(e(416))/1+parseInt(e(414))/2+-parseInt(e(395))/3*(parseInt(e(403))/4)+-parseInt(e(457))/5*(-parseInt(e(468))/6)+parseInt(e(463))/7*(parseInt(e(470))/8)+parseInt(e(431))/9*(parseInt(e(423))/10)+parseInt(e(453))/11*(-parseInt(e(396))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(D);class _ extends t.Plugin{static get[A(415)](){return A(401)}static get[A(449)](){return[v,S.ClipboardPipeline]}static get[A(410)](){return!0}static get[A(448)](){return!0}[A(402)](){this[A(462)]()}[A(462)](){const t=A;this[t(466)](),this[t(456)]()}[A(466)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(397)](S.ClipboardPipeline),s=o[t(397)](d);this[t(452)](i,t(465),(o,i)=>{const r=t,a=L(n[r(427)](i[r(469)]));if(!a[r(474)])return;const c=s[r(447)](),l=a[r(413)]((t,o)=>{const n=r,i=c[n(436)](t=>t.id===o);if(i){const o=e[n(443)][n(475)](i[n(455)],{isClipboardPipeline:!0}),s=e[n(443)][n(425)][n(411)](o);t[i.id]=s}return t},Object[r(435)](null));i[r(472)][r(412)](r(439),JSON[r(434)](l))})}[A(456)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(444)],r=n[t(397)](S.ClipboardPipeline),a=n[t(397)](d),c=e[t(426)][t(397)](t(441));let l=null;this[t(452)](s[t(404)],t(419),(e,o)=>{const n=t,i=o[n(472)][n(471)](n(439));l=i?JSON[n(422)](i):null}),this[t(452)](r,t(458),(n,s)=>{const r=t,f=s[r(417)]===this[r(429)].id;f&&r(451)===s[r(418)]||o[r(440)](t=>{const n=r;let u=a[n(460)]();const d=!!u&&Array[n(433)](o[n(404)][n(438)][n(437)]())[n(400)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(427)](e))n.is(o(454),o(408))&&i[o(467)](n);for(const e of i)t[o(421)](e)}(t,s[n(469)]),!l)return;const{selection:h}=o[n(404)],p=h[n(428)]()[n(420)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(427)](e))if(n.is(o(454),o(408)))return n;return null}(t,s[n(469)]),u||=a[n(446)](t,p));const m=Array[n(433)](h[n(406)]())[n(424)](L),g=function(t,e,o){const s=n,r=Object[s(435)](null);for(const{item:n}of t[s(427)](e))if(n.is(s(454),s(459))){const e=n[s(398)](s(407));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(409)](s(407),r[e],n)}return r}(t,s[n(469)],t=>{const e=n;return!f||!!a[e(445)](t)&&!m[e(400)](t)});for(const[o,i]of Object[n(450)](l)){const s=g[o]||o,r=t[n(461)](n(399),{footnoteId:s}),a=e[n(443)][n(425)][n(475)](i);let l;if(c)l=e[n(443)][n(430)](a,r);else{l=t[n(461)](n(442));const o=e[n(443)][n(430)](a,l);t[n(432)](o,l)}t[n(405)](l,r),t[n(432)](r,u,n(473))}l=null})})}}function D(){const t=["data","editing","getFootnote","_insertEmptyFootnotesDefinitionsContainer","getFootnotes","isPremiumPlugin","requires","entries","drop","listenTo","1397pcEuRr","element","definition","_handlePasteFootnotesDefinitions","4695cYMIeS","contentInsertion","footnoteRef","getFootnotesDefinitionsObjectElement","createElement","_defineClipboardIntegration","56awUsMU","add","outputTransformation","_handleCopyFootnotesDefinitions","push","246VHcjyZ","content","738096ghTxZw","getData","dataTransfer","end","length","toView","3YVigxp","20172DiCoOX","get","getAttribute","footnoteDefinition","includes","FootnotesClipboard","init","2536520SZRVoD","document","append","getRanges","footnoteId","footnotesDefinitions","setAttribute","isOfficialPlugin","toData","setData","reduce","675916rZLPxk","pluginName","607131Wdtsyf","sourceEditorId","method","clipboardInput","root","remove","parse","730AEqgAn","flatMap","htmlProcessor","config","createRangeIn","getFirstRange","editor","toModel","104409iXcjmo","insert","from","stringify","create","find","getSelectedBlocks","selection","application/ckeditor5-footnotes","change","footnotes.multiBlock","footnoteInlineContent"];return(D=function(){return t})()}function L(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(454),e(459))&&o[e(464)](n[e(398)](e(407)));return Array[e(433)](o)}var V=o(311),O=o(355),R=o(929),N=o.n(R),K=o(297),M=o.n(K),j=o(102),B=o.n(j),U=o(123),z=o.n(U),W=o(741),q=o.n(W),H=o(728),X={attributes:{"data-cke":!0}};X.setAttributes=z(),X.insert=B().bind(null,"head"),X.domAPI=M(),X.insertStyleElement=q();N()(H.A,X);H.A&&H.A.locals&&H.A.locals;class J extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,V.ButtonView)),e.add("menuBar:insertFootnote",G(t,V.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof V.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=185]})(t,e)}var Y=Z;function $(){var t=["Footnotes","6jmnCsT","829488KwXPDr","6799lSCgOl","isPremiumPlugin","requires","3182860GbHjdi","2146932chZUCB","pluginName","5107305mklOpr","isOfficialPlugin","578949bXPyEE","6275144nikCmV"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(659587===parseInt(e(194))/1+parseInt(e(193))/2+parseInt(e(189))/3+-parseInt(e(185))/4+parseInt(e(197))/5+parseInt(e(192))/6*(parseInt(e(187))/7)+-parseInt(e(190))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[Y(186)](){return Y(191)}static get[Y(196)](){return[v,_,J]}static get[Y(188)](){return!0}static get[Y(195)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=279]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(876012===parseInt(e(280))/1+parseInt(e(294))/2+-parseInt(e(281))/3+-parseInt(e(292))/4*(parseInt(e(286))/5)+-parseInt(e(283))/6+-parseInt(e(290))/7+-parseInt(e(287))/8*(-parseInt(e(293))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(282),tt(295),tt(288),tt(289),tt(291),tt(284),tt(285),tt(279)];function nt(){const t=["upper-latin","7155435yXRxtg","lower-alpha","4OqaqRG","387YkSViw","2968740OpfrOy","decimal-leading-zero","upper-roman","56581GWmoDJ","3274647xgbMmW","decimal","3853146eGFJTm","upper-alpha","lower-roman","4473925wFGrvI","555496qMEfzf","lower-latin"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=486]})(t,e)}function rt(){const t=["1228712mKxexd","refresh","405974FBehnh","8RYcdzS","98xjiFAr","188wFFHCy","_updateFootnotesCounters","get","value","1523615kWODke","isEnabled","footnotesListStyle","includes","setAttribute","plugins","getAttribute","change","224778Cylklw","3618477hXdoNj","execute","10221360NUnEEa","model","10917XJMfUJ","getFootnotesDefinitionsObjectElement"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(351521===parseInt(e(502))/1+parseInt(e(500))/2+-parseInt(e(498))/3*(-parseInt(e(505))/4)+parseInt(e(509))/5+-parseInt(e(493))/6*(parseInt(e(504))/7)+-parseInt(e(503))/8*(-parseInt(e(494))/9)+-parseInt(e(496))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(501)](){const t=it,{editor:e}=this,o=e[t(490)][t(507)](d)[t(499)]();this[t(486)]=!!o,this[t(508)]=o?.[t(491)](t(487))??null}[it(495)]({value:t}){const e=it,{editor:o}=this,n=o[e(490)][e(507)](d),i=n[e(499)]();i&&ot[e(488)](t)&&o[e(497)][e(492)](o=>{const s=e;o[s(489)](s(487),t,i),n[s(506)](o)})}}function ct(){const t=["78XcbbNn","25822sWcRLv","8nxzZbi","change","1044999OnNaKU","refresh","setAttribute","plugins","307085LpgIUf","isInteger","42EICzwP","model","3774946CrhsFg","getFootnotesDefinitionsObjectElement","2718782KhADPK","2578310BdarFl","_updateFootnotesCounters","footnotesListStart","execute","value","getAttribute","get","16EAqxdT","isEnabled","80952ythhhM"];return(ct=function(){return t})()}const lt=ft;function ft(t,e){const o=ct();return(ft=function(t,e){return o[t-=432]})(t,e)}!function(t){const e=ft,o=t();for(;;)try{if(324744===parseInt(e(446))/1*(parseInt(e(447))/2)+parseInt(e(445))/3*(-parseInt(e(444))/4)+parseInt(e(453))/5*(parseInt(e(455))/6)+parseInt(e(432))/7+-parseInt(e(442))/8*(parseInt(e(449))/9)+parseInt(e(435))/10+-parseInt(e(434))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ct);class ut extends t.Command{[lt(450)](){const t=lt,{editor:e}=this,o=e[t(452)][t(441)](d)[t(433)]();this[t(443)]=!!o,this[t(439)]=o?.[t(440)](t(437))??null}[lt(438)]({value:t}){const e=lt,{editor:o}=this,n=o[e(452)][e(441)](d),i=n[e(433)]();i&&Number[e(454)](t)&&o[e(456)][e(448)](o=>{const s=e;o[s(451)](s(437),t,i),n[s(436)](o)})}}function dt(){const t=["position","footnotes.footnotesProperties.defaultStartIndex","padStart","item","extend","14994JhqSja","parent","element:ol","footnotesStart","_defineConverters","writer","setStyle","upcast","isPremiumPlugin","nodeAfter","removeStyle","11qMgymW","insert","getItems","mapper","6gBJwQp","floor","_formatFootnoteListValue","add","attribute:footnotesListStyle:footnotesDefinitions","_defineFormatter","footnotes.footnotesProperties.defaultListStyle","footnotes-list","modelCursor","list-style-type","find","391024nhKlno","_getDefaultListStyle","isOfficialPlugin","from","define","downcast","toViewElement","type","get","14993980huOwdk","registerPostFixer","$text","getChildren","setAttribute","isNaN","hasClass","footnotesListStart","lower-latin","hasAttribute","attribute:footnotesListStart:footnotesDefinitions","createRangeOn","viewItem","commands","checkAttribute","parseInt","upper-alpha","_updateFootnotesCounters","894172WaDBBx","requires","start","decimal","88963kkefoe","toLowerCase","_definePostfixer","footnotesDefinitions","decimal-leading-zero","footnotesListStyle","document","for","config","getChanges","lower-alpha","consume","max","1115rtiAck","224unGufA","element","model","init","lower-roman","getStyle","name","getAttribute","footnotesStyle","schema","editor","removeAttribute","pluginName","differ","plugins","toUpperCase","setFootnoteFormatter","10158984MUfmxP","_getDefaultStartIndex","_defineSchema","FootnotesPropertiesEditing","consumable","upper-roman","upper-latin","20488ffQQfz","fromCharCode"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=302]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(649669===parseInt(e(329))/1+-parseInt(e(325))/2*(parseInt(e(389))/3)+-parseInt(e(367))/4*(parseInt(e(342))/5)+-parseInt(e(374))/6*(parseInt(e(343))/7)+parseInt(e(400))/8+parseInt(e(360))/9+parseInt(e(307))/10*(parseInt(e(385))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(355)](){return ht(363)}static get[ht(326)](){return[v,d]}static get[ht(402)](){return!0}static get[ht(382)](){return!0}[ht(346)](){const t=ht,{editor:e}=this;e[t(337)][t(302)](t(395),t(328)),e[t(337)][t(302)](t(370),1),e[t(320)][t(392)](t(351),new at(e)),e[t(320)][t(392)](t(377),new ut(e)),this[t(362)](),this[t(378)](),this[t(394)](),this[t(331)]()}[ht(362)](){const t=ht,{editor:e}=this,{schema:o}=e[t(345)];o[t(373)](t(332),{allowAttributes:[t(334),t(314)]})}[ht(378)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(336)](t(381))[t(392)](e=>{const o=t;e.on(o(376),(t,e,n)=>{const s=o,r=e[s(319)],a=e[s(397)]?.[s(375)];r[s(313)](s(396))&&a?.is(s(344),s(332))&&(function(t,e,o,n){const i=s;if(!n[i(321)](e,i(314)))return;let r=1;const a=o[i(364)][i(340)](t,{attributes:i(327)});if(a){const e=Number[i(322)](t[i(350)](i(327)),10);Number[i(312)](e)||(r=e)}!a&&e[i(316)](i(314))||o[i(379)][i(311)](i(314),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(321)](e,i(334)))return;let r=i(328),a=!1;if(o[i(364)][i(340)](t,{attributes:i(305)})){const e={1:i(328),a:i(339),A:i(323),i:i(347),I:i(365)}[t[i(350)](i(305))];e&&(r=e),a=!0}o[i(364)][i(340)](t,{styles:i(398)})&&(r=function(t){const e=i;switch(t){case e(339):return e(315);case e(323):return e(366);default:return t}}(t[i(348)](i(398))),a=!0),!a&&e[i(316)](i(334))||o[i(379)][i(311)](i(334),r,e)}(r,a,n,i))})}),o[t(336)](t(303))[t(392)](e=>{const o=t;e.on(o(317),(t,e,n)=>{const i=o;if(!n[i(364)][i(340)](e[i(372)],t[i(349)]))return;const s=gt(e[i(372)],n[i(388)]),{attributeNewValue:r}=e;null==r||1===r?n[i(379)][i(354)](i(327),s):n[i(379)][i(311)](i(327),String(r),s)}),e.on(o(393),(t,e,n)=>{const i=o;if(!n[i(364)][i(340)](e[i(372)],t[i(349)]))return;const s=gt(e[i(372)],n[i(388)]),{attributeNewValue:r}=e;r&&i(328)!==r?n[i(379)][i(380)](i(398),r,s):n[i(379)][i(384)](i(398),s)})})}[ht(331)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(357)][t(306)](d),i=this[t(401)](),s=this[t(361)]();o[t(335)][t(308)](e=>{const r=t,a=o[r(335)][r(356)][r(338)]();let c=!1;for(const t of a){if(r(386)!==t[r(305)]||r(309)===t[r(349)])continue;const n=o[r(318)](t[r(369)][r(383)]);for(const t of n[r(387)]())t.is(r(344),r(332))&&(!t[r(316)](r(314))&&o[r(352)][r(321)](t,r(314))&&(e[r(311)](r(314),s,t),c=!0),!t[r(316)](r(334))&&o[r(352)][r(321)](t,r(334))&&(e[r(311)](r(334),i,t),c=!0))}return c&&n[r(324)](e),c})}[ht(394)](){const t=ht,{editor:e}=this;e[t(357)][t(306)](d)[t(359)](e=>this[t(391)](e))}[ht(401)](){const t=ht;return this[t(353)][t(337)][t(306)](t(395))}[ht(361)](){const t=ht;return this[t(353)][t(337)][t(306)](t(370))}[ht(391)]({container:t,value:e,digits:o}){const n=ht,i=t[n(350)](n(334)),s=t[n(350)](n(314)),r=Math[n(390)](e)+(s??1)-1;switch(i){case n(333):return function(t,e){const o=n;return String(t)[o(371)](e,"0")}(r,Math[n(341)](2,o));case n(339):case n(315):return wt(r,!1);case n(323):case n(366):return wt(r,!0);case n(347):return bt(r,!1);case n(365):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(304)](t);return Array[o(403)](n[o(310)]())[o(399)](t=>t.is(o(344),"ol")&&t[o(313)](o(396)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(368)](97+t)+n,i=Math[o(390)]((i-1)/26)}return e?n[o(358)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(330)]()}class vt extends V.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new V.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new V.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,V.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new V.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof V.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new V.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new V.LabeledFieldView(this.locale,V.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=M(),kt.insertStyleElement=q();N()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[V.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,V.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 V.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=V.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=Et();return(xt=function(t,e){return o[t-=180]})(t,e)}function Et(){var t=["isPremiumPlugin","pluginName","27sCcscB","233704Fdsdll","requires","3568089xvVBJw","FootnotesProperties","isOfficialPlugin","3153750QkguDw","2037020fmBkBw","12525872xlLLNl","807926HGtySs","15256MqHQPY"];return(Et=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(334445===-parseInt(e(180))/1+-parseInt(e(188))/2+-parseInt(e(192))/3*(-parseInt(e(189))/4)+parseInt(e(186))/5+-parseInt(e(185))/6+-parseInt(e(182))/7+parseInt(e(187))/8)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Et);class Pt extends t.Plugin{static get[Ft(191)](){return Ft(183)}static get[Ft(181)](){return[mt,Ct]}static get[Ft(184)](){return!0}static get[Ft(190)](){return!0}}function St(){var t=["4499408VrGxnv","9htbfQE","241608ujZSbc","4004BkaXcE","4150gHtPAW","79098tHajXg","562821vlhqzd","3146022PgemjL","78LbHYZo","8thXxsc","16kkUpPr","5ryUtJg","5824203EHuvXF"];return(St=function(){return t})()}function At(t,e){var o=St();return(At=function(t,e){return o[t-=223]})(t,e)}!function(t){for(var e=At,o=t();;)try{if(808234===parseInt(e(234))/1*(-parseInt(e(229))/2)+parseInt(e(230))/3*(parseInt(e(233))/4)+-parseInt(e(235))/5*(-parseInt(e(231))/6)+parseInt(e(223))/7+-parseInt(e(224))/8*(parseInt(e(225))/9)+-parseInt(e(228))/10*(-parseInt(e(227))/11)+-parseInt(e(226))/12*(-parseInt(e(232))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>Q,FootnotesClipboard:()=>D,FootnotesEditing:()=>v,FootnotesProperties:()=>At,FootnotesPropertiesEditing:()=>pt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>d,FootnotesUI:()=>q,InsertFootnoteCommand:()=>y});var t=o(782),e=o(901),i=o(584),s=o(783);const r=c;function a(){const t=["position","slice","_elementName","createRangeOn","remove","107100iEsYZI","delete","flat","_model","from","values","set","755646zVPWNb","has","type","clear","reset","elementName","$text","getChanges","add","attributes","length","insert","89654HOeQFL","6lXWver","5FJpTyQ","$graveyard","element","_getElementKey","5SiojFl","name","1990624UdWMCZ","_trackedElements","77828UrhviN","getElementKey","push","getItems","4471910XaEoKO","rootName","nodeAfter","get","root","105966gOkOtX"];return(a=function(){return t})()}function c(t,e){const o=a();return(c=function(t,e){return o[t-=340]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(217665===parseInt(e(369))/1*(parseInt(e(363))/2)+-parseInt(e(364))/3*(-parseInt(e(373))/4)+-parseInt(e(365))/5*(-parseInt(e(351))/6)+parseInt(e(382))/7+parseInt(e(371))/8+parseInt(e(344))/9+-parseInt(e(377))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[r(347)];[r(341)];[r(368)];[r(372)]=new Map;constructor(t,e){const o=r;this[o(347)]=t,this[o(341)]=e[o(356)],this[o(368)]=e[o(374)]}[r(355)](){const t=r;this[t(372)][t(354)]()}[r(358)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(362)===i[e(353)]&&e(357)!==i[e(370)]&&i[e(383)][e(379)]){const t=this[e(347)][e(342)](i[e(383)][e(379)]);for(const o of t[e(376)]()){if(!o.is(e(367),this[e(341)]))continue;const t=this[e(368)](o);n[e(352)](t)||n[e(350)](t,[]),n[e(380)](t)[e(375)](o)}}if(e(343)===i[e(353)]&&i[e(370)]===this[e(341)]){const t=this[e(368)]({getAttribute:t=>i[e(360)][e(380)](t)});o[e(359)](t)}}for(const[t,n]of this[e(372)])e(366)===n[e(381)][e(378)]&&o[e(359)](t);for(const t of o)this[e(372)][e(345)](t);for(const[t,o]of n)this[e(372)][e(350)](t,o[o[e(361)]-1]);const i=new Set;for(const[t,s]of n)o[e(352)](t)&&(i[e(359)](s[0]),s[e(361)]>1?n[e(350)](t,s[e(340)](1)):n[e(345)](t),o[e(345)](t));return{removed:Array[e(348)](o),inserted:Array[e(348)](n[e(349)]())[e(346)](),moved:Array[e(348)](i)}}}const f=u;function u(t,e){const o=p();return(u=function(t,e){return o[t-=146]})(t,e)}!function(t){const e=u,o=t();for(;;)try{if(275225===parseInt(e(199))/1*(parseInt(e(239))/2)+parseInt(e(163))/3+parseInt(e(151))/4*(parseInt(e(148))/5)+parseInt(e(221))/6*(-parseInt(e(192))/7)+parseInt(e(190))/8+parseInt(e(165))/9*(parseInt(e(147))/10)+-parseInt(e(244))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(p);class d extends t.Plugin{[f(155)]=[];[f(241)]=null;[f(161)]=null;[f(174)];[f(160)];[f(233)];static get[f(166)](){return f(157)}static get[f(231)](){return!0}static get[f(189)](){return!0}constructor(t){const e=f;super(t),this[e(174)]=new l(this[e(185)][e(207)],{elementName:e(211),getElementKey:()=>e(146)}),this[e(160)]=new l(this[e(185)][e(207)],{elementName:e(242),getElementKey:t=>t[e(168)](e(195))}),this[e(233)]=new l(this[e(185)][e(207)],{elementName:e(187),getElementKey:t=>t[e(168)](e(195))})}[f(235)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(202)][t(220)](e=>{const n=t,i=o[n(202)][n(224)][n(186)]();let s=!1;return this[n(229)](e,i)&&(s=!0),this[n(237)](e,i)&&(s=!0),this[n(243)](e,i)&&(s=!0),this[n(150)](e)&&(s=!0),this[n(152)](e)&&(s=!0),this[n(203)](e)&&(s=!0),s}),this[t(208)](o[t(202)],t(200),()=>{const e=t;o[e(194)]({isUndoable:!1},t=>{this[e(214)](t)})},{priority:t(156)}),this[t(208)](n,t(172),()=>{const e=t;this[e(155)]=[],this[e(174)][e(225)](),this[e(160)][e(225)](),this[e(233)][e(225)]()},{priority:t(216)})}[f(162)](){return this[f(241)]}[f(158)](t){const e=f;return this[e(155)][e(226)](e=>e.id===t)||null}[f(167)](){const t=f;return Array[t(212)](this[t(155)])}[f(215)](){return this[f(161)]}[f(210)](t){this[f(161)]=t}[f(236)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(155)][o(198)];i++)this[o(193)](t,i)&&(n=!0);return n}[f(159)](t,e){const o=f,n=t[o(179)](o(211),{});return t[o(183)](n,e),this[o(241)]=n,n}[f(214)](t){const e=f;if(!this[e(155)][e(198)]||this[e(241)])return;const o=this[e(155)][0][e(170)][e(219)],n=this[e(159)](t,o);for(const o of this[e(155)])o[e(182)][e(181)]||t[e(175)](o[e(182)],n,e(153));this[e(236)](t)}[f(229)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(174)][o(186)](e);if(r[o(198)]&&(this[o(241)]=r[0]),i[o(198)])if(i[o(198)]>1||this[o(241)]&&i[o(169)](t=>t!==this[o(241)])){const e=t[o(179)](o(211),{}),s=[];this[o(241)]&&s[o(222)](this[o(241)]),s[o(222)](...i),t[o(175)](e,s[0],o(204));for(const n of s)t[o(232)](t[o(176)](n),t[o(178)](e,o(153))),t[o(149)](n);this[o(241)]=e,this[o(236)](t),n=!0}else this[o(241)]=i[0];if(s[o(198)]&&o(201)===this[o(241)]?.[o(219)][o(213)]){for(const e of this[o(155)])t[o(149)](e[o(170)]),n=!0;this[o(155)]=[],this[o(241)]=null}return n}[f(237)](t,e){const o=f;let n=!1;const i=this[o(185)][o(238)][o(164)](o(247)),{inserted:s,moved:r}=this[o(233)][o(186)](e);for(const e of[...r,...s]){const s=e[o(168)](o(195)),r=this[o(158)](s);r&&(r[o(182)]=e),h(t,i,e)&&(n=!0)}return n}[f(243)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(160)][o(186)](e);for(const e of i)this[o(209)](t,e)&&(n=!0);for(const e of s)this[o(223)](t,e)&&(n=!0);for(const e of r)this[o(218)](t,e)&&(n=!0);return n}[f(152)](t){const e=f;if(!this[e(241)])return!1;let o=!1;if(this[e(241)][e(191)]!==this[e(155)][e(198)]){const n=[];for(const t of this[e(241)][e(230)]()){const i=t[e(168)](e(195));this[e(158)](i)||(n[e(154)](t),o=!0)}for(const o of n)t[e(149)](o)}const n=new Set,i=[];for(const t of this[e(241)][e(230)]()){const s=t[e(168)](e(195));n[e(180)](s)?(i[e(154)](t),o=!0):n[e(188)](s)}for(const o of i)t[e(149)](o);return this[e(241)][e(191)]||(t[e(149)](this[e(241)]),this[e(241)]=null,o=!0),o}[f(223)](t,e){const o=f;if(this[o(155)][o(226)](t=>t[o(170)]===e))return!1;let n=!1;const i=e[o(168)](o(195)),s=this[o(155)][o(217)](t=>t.id===i);-1!==s&&(t[o(149)](this[o(155)][s][o(170)]),this[o(155)][o(184)](s,1),n=!0);let r=this[o(241)]?function(t,e){const n=o;for(const o of t[n(230)]())if(o[n(168)](n(195))===e)return o;return null}(this[o(241)],i):null;r||(r=t[o(179)](o(187),{footnoteId:i}),this[o(241)]&&(t[o(175)](r,this[o(241)],o(153)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(185)][o(207)],this[o(155)],e);this[o(155)][o(184)](c,0,a);let l=c;return-1!==s&&(l=Math[o(234)](c,s)),this[o(236)](t,l)&&(n=!0),n}[f(209)](t,e){const o=f,n=this[o(155)][o(217)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(155)][n];return o(201)!==s[o(182)][o(219)][o(213)]&&(t[o(149)](s[o(182)]),i=!0),this[o(155)][o(184)](n,1),this[o(236)](t,n)&&(i=!0),i}[f(218)](t,e){const o=f,n=e[o(168)](o(195)),i=this[o(155)][o(217)](t=>t.id===n),s=this[o(155)][i];let r=!1;s[o(170)]=e,this[o(155)][o(184)](i,1);const a=m(this[o(185)][o(207)],this[o(155)],e);return this[o(155)][o(184)](a,0,s),this[o(236)](t,Math[o(234)](i,a))&&(r=!0),r}[f(193)](t,e){const o=f;if(!this[o(241)])return!1;const n=this[o(155)][e];let i;return i=this[o(161)]?this[o(161)]({footnote:n,container:this[o(241)],digits:String(this[o(155)][o(198)])[o(198)],value:e+1}):String(e+1),n[o(170)][o(168)](o(245))!=i&&(t[o(171)](o(245),i,n[o(170)]),!0)}[f(203)](t){const e=f;if(!this[e(241)]||this[e(155)][e(198)]<2)return!1;if(function(t,o){const n=e;if(t[n(198)]!==o[n(198)])return!1;for(let e=0;e<t[n(198)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(155)][e(177)](t=>t.id),Array[e(212)](this[e(241)][e(230)]())[e(177)](t=>t[e(168)](e(195)))))return!1;let o=!1;for(let n=0;n<this[e(155)][e(198)];n++){const i=this[e(155)][n],s=t[e(240)](i[e(182)]),r=t[e(178)](this[e(241)],n);s[e(246)](r)||(t[e(232)](t[e(227)](i[e(182)]),r),o=!0)}return o}[f(150)](t){const e=f;if(!this[e(155)][e(198)])return!1;const{model:o}=this[e(185)];let n=!1;for(let i=0;i<this[e(155)][e(198)]-1;i++){const s=this[e(155)][i],r=this[e(155)][i+1],a=o[e(240)](s[e(170)]),c=o[e(240)](r[e(170)]);e(206)===a[e(228)](c)&&(this[e(218)](t,s[e(170)]),i=-1,n=!0)}return n}}function p(){const t=["14twTtZJ","createPositionBefore","_footnotesDefinitions","footnoteRef","_handleFootnoteReferencesChanges","16097092KysFan","footnoteCounter","isEqual","footnotes.multiBlock","singleton","20MWigXC","2154935vvHtvy","remove","_ensureFootnotesReferencesHaveProperOrder","4aQfFRA","_handleFootnotesDefinitionsObjectSync","end","unshift","_footnotes","low","FootnotesTracker","getFootnote","_insertEmptyFootnotesDefinitionsContainer","_footnoteRefsTracker","_footnoteFormatter","getFootnotesDefinitionsObjectElement","946047GZFLfV","get","1688373pHtiWE","pluginName","getFootnotes","getAttribute","some","reference","setAttribute","set","paragraph","_footnoteDefsContainerTracker","insert","createRangeIn","map","createPositionAt","createElement","has","parent","definition","append","splice","editor","getChanges","footnoteDefinition","add","isPremiumPlugin","2529528cfFjQt","childCount","690641zRWozT","_updateFootnoteRefCounter","enqueueChange","footnoteId","getRootNames","indexOf","length","57077uEAtkd","change:data","$graveyard","document","_sortFootnoteDefinitions","before","footnoteInlineContent","after","model","listenTo","_handleRemoveFootnoteReferenceById","setFootnoteFormatter","footnotesDefinitions","from","rootName","_ensureFootnotesDefinitionsContainerExists","getFootnotesFormatter","high","findIndex","_handleMovedFootnoteReference","root","registerPostFixer","6rikobx","push","_handleInsertedFootnoteReference","differ","reset","find","createRangeOn","compareWith","_handleFootnotesDefinitionsObjectChanges","getChildren","isOfficialPlugin","move","_footnoteDefsTracker","min","init","_updateFootnotesCounters","_handleFootnoteDefinitionsChanges","config"];return(p=function(){return t})()}function h(t,e,o){const n=f;if(o[n(191)])return!1;const i=n(e?173:205);return t[n(175)](t[n(179)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(198)])return 0;const i=t[n(240)](o);for(let o=0;o<e[n(198)];o++){const s=e[o],r=t[n(240)](s[n(170)]);if(n(204)===i[n(228)](r))return o}const s=o[n(219)];let r=-1;for(let t=e[n(198)]-1;t>=0;t--)if(e[t][n(170)][n(219)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(202)][n(196)](),c=a[n(197)](s[n(213)]),l=a[c+1];if(l)for(let t=0;t<e[n(198)];t++)if(e[t][n(170)][n(219)][n(213)]===l)return t;return e[n(198)]}function g(t,e){const o=b();return(g=function(t,e){return o[t-=103]})(t,e)}const w=g;!function(t){const e=g,o=t();for(;;)try{if(704047===-parseInt(e(136))/1*(parseInt(e(119))/2)+-parseInt(e(131))/3*(parseInt(e(134))/4)+parseInt(e(109))/5*(parseInt(e(139))/6)+parseInt(e(103))/7+parseInt(e(125))/8+-parseInt(e(104))/9*(parseInt(e(138))/10)+parseInt(e(130))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class y extends t.Command{[w(132)](){const t=w,e=this[t(133)][t(110)][t(112)][t(105)],o=this[t(107)](e);this[t(121)]=!!o}[w(129)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(112)],r=this[e(107)](s);if(!r)return;const a=o[e(122)][e(116)](e(135)),c=t?.[e(115)]??(0,i.uid)();!function(t){const o=e;return o(117)==typeof t&&t[o(126)]>0&&!/\s/[o(137)](t)&&!/^\d/[o(137)](t)}(c)?(0,i.logWarning)(e(128)):(n[e(118)](t=>{const o=e,i=t[o(111)](o(106),{footnoteId:c});n[o(120)](i,r,null)}),a[e(140)](c))}[w(107)](t){const e=w,{model:o}=this[e(133)],{schema:n}=o,i=t[e(124)]();for(const t of i[e(114)]())if(n[e(123)](t)||n[e(127)](t))return null;const s=i[e(108)];return n[e(113)](s,e(106))?s:null}}function b(){const t=["730RZQKts","586230fnlDVE","_moveSelectionToFootnoteDefinition","8277108pcoPbI","169695CXTMmV","selection","footnoteRef","_getPositionToInsertFootnote","end","20IlJkpr","model","createElement","document","checkChild","getItems","footnoteId","get","string","change","9134uGZbXE","insertObject","isEnabled","plugins","isBlock","getFirstRange","677528oVISKt","length","isObject","insert-footnote-command-executed-with-invalid-id","execute","21017150kWsPsm","135ZuVsGu","refresh","editor","71792OikPOO","FootnotesEditing","149eZkhnl","test"];return(b=function(){return t})()}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 y(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=p(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](p(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1765411200;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>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})=>A(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>A(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 A(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const S=T;function T(t,e){const o=_();return(T=function(t,e){return o[t-=155]})(t,e)}function _(){const t=["getFootnote","24062YYIPnH","remove","end","390472Tigjux","listenTo","clipboardInput","application/ckeditor5-footnotes","_handlePasteFootnotesDefinitions","toModel","push","setAttribute","129060HnEGAy","270300inAjdt","isPremiumPlugin","_insertEmptyFootnotesDefinitionsContainer","106133pCcwRI","createRangeIn","getFootnotes","element","length","add","contentInsertion","dataTransfer","setData","init","get","getFirstRange","insert","1145262jAaLoN","htmlProcessor","root","FootnotesClipboard","footnoteId","editor","flatMap","toData","footnoteRef","stringify","entries","append","pluginName","definition","from","getRanges","footnoteInlineContent","document","method","parse","_defineClipboardIntegration","getAttribute","change","content","find","data","footnotes.multiBlock","selection","create","requires","2594403UqjTiM","outputTransformation","includes","footnoteDefinition","getData","drop","isOfficialPlugin","getFootnotesDefinitionsObjectElement","sourceEditorId","getSelectedBlocks","footnotesDefinitions","_handleCopyFootnotesDefinitions","config","reduce","createElement","toView","editing"];return(_=function(){return t})()}!function(t){const e=T,o=t();for(;;)try{if(100318===parseInt(e(195))/1+parseInt(e(180))/2+parseInt(e(192))/3+parseInt(e(183))/4+-parseInt(e(191))/5+parseInt(e(208))/6+-parseInt(e(162))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(_);class D extends t.Plugin{static get[S(220)](){return S(211)}static get[S(161)](){return[v,P.ClipboardPipeline]}static get[S(168)](){return!0}static get[S(193)](){return!0}[S(204)](){this[S(228)]()}[S(228)](){const t=S;this[t(173)](),this[t(187)]()}[S(173)](){const t=S,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(205)](P.ClipboardPipeline),s=o[t(205)](d);this[t(184)](i,t(163),(o,i)=>{const r=t,a=L(n[r(196)](i[r(155)]));if(!a[r(199)])return;const c=s[r(197)](),l=a[r(175)]((t,o)=>{const n=r,i=c[n(156)](t=>t.id===o);if(i){const o=e[n(157)][n(177)](i[n(221)],{isClipboardPipeline:!0}),s=e[n(157)][n(209)][n(215)](o);t[i.id]=s}return t},Object[r(160)](null));i[r(202)][r(203)](r(186),JSON[r(217)](l))})}[S(187)](){const t=S,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(178)],r=n[t(205)](P.ClipboardPipeline),a=n[t(205)](d),c=e[t(174)][t(205)](t(158));let l=null;this[t(184)](s[t(225)],t(185),(e,o)=>{const n=t,i=o[n(202)][n(166)](n(186));l=i?JSON[n(227)](i):null}),this[t(184)](r,t(201),(n,s)=>{const r=t,f=s[r(170)]===this[r(213)].id;f&&r(167)===s[r(226)]||o[r(230)](t=>{const n=r;let u=a[n(169)]();const d=!!u&&Array[n(222)](o[n(225)][n(159)][n(171)]())[n(164)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(196)](e))n.is(o(198),o(172))&&i[o(189)](n);for(const e of i)t[o(181)](e)}(t,s[n(155)]),!l)return;const{selection:p}=o[n(225)],h=p[n(206)]()[n(210)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(196)](e))if(n.is(o(198),o(172)))return n;return null}(t,s[n(155)]),u||=a[n(194)](t,h));const m=Array[n(222)](p[n(223)]())[n(214)](L),g=function(t,e,o){const s=n,r=Object[s(160)](null);for(const{item:n}of t[s(196)](e))if(n.is(s(198),s(216))){const e=n[s(229)](s(212));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(190)](s(212),r[e],n)}return r}(t,s[n(155)],t=>{const e=n;return!f||!!a[e(179)](t)&&!m[e(164)](t)});for(const[o,i]of Object[n(218)](l)){const s=g[o]||o,r=t[n(176)](n(165),{footnoteId:s}),a=e[n(157)][n(209)][n(177)](i);let l;if(c)l=e[n(157)][n(188)](a,r);else{l=t[n(176)](n(224));const o=e[n(157)][n(188)](a,l);t[n(207)](o,l)}t[n(219)](l,r),t[n(207)](r,u,n(182))}l=null})})}}function L(t){const e=S,o=new Set;for(const{item:n}of t)n.is(e(198),e(216))&&o[e(200)](n[e(229)](e(212)));return Array[e(222)](o)}var O=o(311),V=o(355),N=o(929),R=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),W=o(123),z=o.n(W),U=o(741),H=o.n(U),X=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=z(),J.insert=B().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=H();R()(X.A,J);X.A&&X.A.locals&&X.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,O.ButtonView)),e.add("menuBar:insertFootnote",Z(t,O.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&o._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Z(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof O.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var G=Y;function Y(t,e){var o=$();return(Y=function(t,e){return o[t-=191]})(t,e)}function $(){var t=["pluginName","isOfficialPlugin","3062dAdDIh","requires","4121763hMZaBX","324DFUSab","595BeVobw","736560WOAvIN","Footnotes","234030QkFZlJ","56008PItTac","isPremiumPlugin","2247774ltUPYp","2850220MwGYek"];return($=function(){return t})()}!function(t){for(var e=Y,o=t();;)try{if(971988===-parseInt(e(191))/1*(-parseInt(e(202))/2)+parseInt(e(204))/3+-parseInt(e(199))/4+-parseInt(e(195))/5+parseInt(e(198))/6+-parseInt(e(192))/7*(parseInt(e(196))/8)+parseInt(e(193))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class Q extends t.Plugin{static get[G(200)](){return G(194)}static get[G(203)](){return[v,D,q]}static get[G(201)](){return!0}static get[G(197)](){return!0}}function tt(t,e){const o=nt();return(tt=function(t,e){return o[t-=310]})(t,e)}const et=tt;!function(t){const e=tt,o=t();for(;;)try{if(762897===-parseInt(e(325))/1+-parseInt(e(317))/2+parseInt(e(321))/3*(parseInt(e(319))/4)+parseInt(e(315))/5*(parseInt(e(328))/6)+-parseInt(e(318))/7*(parseInt(e(329))/8)+-parseInt(e(320))/9*(parseInt(e(316))/10)+-parseInt(e(312))/11*(-parseInt(e(314))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[et(326),et(322),et(313),et(324),et(311),et(323),et(310),et(327)];function nt(){const t=["decimal-leading-zero","upper-alpha","upper-latin","847339iujLDH","decimal","upper-roman","2851698uNncDn","8KpJvgN","lower-roman","lower-alpha","67001HMkFXn","lower-latin","5364pJDVoi","5chAabm","3920vDCnGi","2798350ROrfsh","4508875xNIDoV","75832wlbAPW","17397SptiNQ","192COWmtO"];return(nt=function(){return t})()}const it=st;function st(t,e){const o=rt();return(st=function(t,e){return o[t-=365]})(t,e)}function rt(){const t=["_updateFootnotesCounters","52PFptuR","54rMFexM","change","45459wyjOTN","710sHbYGY","getAttribute","refresh","value","get","153635wvXjgO","12215520KrvFTW","model","946653SsPaCY","includes","execute","isEnabled","getFootnotesDefinitionsObjectElement","1854264NZAEsw","setAttribute","footnotesListStyle","3175332TiJFXk","188090VCiTOH","plugins"];return(rt=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(889047===parseInt(e(372))/1+parseInt(e(377))/2+parseInt(e(380))/3+parseInt(e(384))/4*(-parseInt(e(369))/5)+parseInt(e(385))/6*(parseInt(e(381))/7)+-parseInt(e(370))/8+parseInt(e(387))/9*(-parseInt(e(388))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[it(366)](){const t=it,{editor:e}=this,o=e[t(382)][t(368)](d)[t(376)]();this[t(375)]=!!o,this[t(367)]=o?.[t(365)](t(379))??null}[it(374)]({value:t}){const e=it,{editor:o}=this,n=o[e(382)][e(368)](d),i=n[e(376)]();i&&ot[e(373)](t)&&o[e(371)][e(386)](o=>{const s=e;o[s(378)](s(379),t,i),n[s(383)](o)})}}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=175]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(385167===-parseInt(e(177))/1+-parseInt(e(186))/2+parseInt(e(195))/3*(parseInt(e(193))/4)+parseInt(e(190))/5+parseInt(e(183))/6+-parseInt(e(179))/7+parseInt(e(184))/8*(parseInt(e(178))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(175)](){const t=ct,{editor:e}=this,o=e[t(181)][t(192)](d)[t(197)]();this[t(185)]=!!o,this[t(182)]=o?.[t(189)](t(180))??null}[ct(188)]({value:t}){const e=ct,{editor:o}=this,n=o[e(181)][e(192)](d),i=n[e(197)]();i&&Number[e(191)](t)&&o[e(176)][e(194)](o=>{const s=e;o[s(196)](s(180),t,i),n[s(187)](o)})}}function ut(){const t=["change","3wCygcK","setAttribute","getFootnotesDefinitionsObjectElement","refresh","model","427118HmJWbB","120114uENOXC","4472174jEEgld","footnotesListStart","plugins","value","4604706MCKNyt","304thfvDg","isEnabled","1238916gegsMq","_updateFootnotesCounters","execute","getAttribute","1725805XUFLVX","isInteger","get","1803460AzsbvO"];return(ut=function(){return t})()}const dt=mt;!function(t){const e=mt,o=t();for(;;)try{if(786020===parseInt(e(439))/1+parseInt(e(469))/2*(-parseInt(e(454))/3)+-parseInt(e(416))/4*(parseInt(e(492))/5)+parseInt(e(498))/6+parseInt(e(493))/7*(-parseInt(e(491))/8)+parseInt(e(432))/9*(-parseInt(e(433))/10)+parseInt(e(420))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ht);class pt extends t.Plugin{static get[dt(466)](){return dt(450)}static get[dt(438)](){return[v,d]}static get[dt(403)](){return!0}static get[dt(422)](){return!0}[dt(464)](){const t=dt,{editor:e}=this;e[t(489)][t(434)](t(436),t(495)),e[t(489)][t(434)](t(488),1),e[t(429)][t(418)](t(483),new at(e)),e[t(429)][t(418)](t(445),new ft(e)),this[t(449)](),this[t(407)](),this[t(411)](),this[t(413)]()}[dt(449)](){const t=dt,{editor:e}=this,{schema:o}=e[t(448)];o[t(414)](t(496),{allowAttributes:[t(421),t(474)]})}[dt(407)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(400)](t(481))[t(418)](e=>{const o=t;e.on(o(444),(t,e,n)=>{const s=o,r=e[s(406)],a=e[s(440)]?.[s(453)];r[s(423)](s(485))&&a?.is(s(497),s(496))&&(function(t,e,o,n){const i=s;if(!n[i(458)](e,i(474)))return;let r=1;const a=o[i(482)][i(494)](t,{attributes:i(462)});if(a){const e=Number[i(402)](t[i(461)](i(462)),10);Number[i(425)](e)||(r=e)}!a&&e[i(442)](i(474))||o[i(426)][i(480)](i(474),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(458)](e,i(421)))return;let r=i(495),a=!1;if(o[i(482)][i(494)](t,{attributes:i(431)})){const e={1:i(495),a:i(456),A:i(490),i:i(477),I:i(465)}[t[i(461)](i(431))];e&&(r=e),a=!0}o[i(482)][i(494)](t,{styles:i(472)})&&(r=function(t){const e=i;switch(t){case e(456):return e(471);case e(490):return e(417);default:return t}}(t[i(435)](i(472))),a=!0),!a&&e[i(442)](i(421))||o[i(426)][i(480)](i(421),r,e)}(r,a,n,i))})}),o[t(400)](t(476))[t(418)](e=>{const o=t;e.on(o(501),(t,e,n)=>{const i=o;if(!n[i(482)][i(494)](e[i(486)],t[i(500)]))return;const s=gt(e[i(486)],n[i(405)]),{attributeNewValue:r}=e;null==r||1===r?n[i(426)][i(409)](i(462),s):n[i(426)][i(480)](i(462),String(r),s)}),e.on(o(430),(t,e,n)=>{const i=o;if(!n[i(482)][i(494)](e[i(486)],t[i(500)]))return;const s=gt(e[i(486)],n[i(405)]),{attributeNewValue:r}=e;r&&i(495)!==r?n[i(426)][i(484)](i(472),r,s):n[i(426)][i(404)](i(472),s)})})}[dt(413)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(470)][t(408)](d),i=this[t(410)](),s=this[t(475)]();o[t(447)][t(441)](e=>{const r=t,a=o[r(447)][r(468)][r(478)]();let c=!1;for(const t of a){if(r(457)!==t[r(431)]||r(451)===t[r(500)])continue;const n=o[r(446)](t[r(499)][r(479)]);for(const t of n[r(419)]())t.is(r(497),r(496))&&(!t[r(442)](r(474))&&o[r(424)][r(458)](t,r(474))&&(e[r(480)](r(474),s,t),c=!0),!t[r(442)](r(421))&&o[r(424)][r(458)](t,r(421))&&(e[r(480)](r(421),i,t),c=!0))}return c&&n[r(463)](e),c})}[dt(411)](){const t=dt,{editor:e}=this;e[t(470)][t(408)](d)[t(428)](e=>this[t(452)](e))}[dt(410)](){const t=dt;return this[t(460)][t(489)][t(408)](t(436))}[dt(475)](){const t=dt;return this[t(460)][t(489)][t(408)](t(488))}[dt(452)]({container:t,value:e,digits:o}){const n=dt,i=t[n(461)](n(421)),s=t[n(461)](n(474)),r=Math[n(401)](e)+(s??1)-1;switch(i){case n(427):return function(t,e){const o=n;return String(t)[o(473)](e,"0")}(r,Math[n(459)](2,o));case n(456):case n(471):return wt(r,!1);case n(490):case n(417):return wt(r,!0);case n(477):return bt(r,!1);case n(465):return bt(r,!0);default:return String(r)}}}function ht(){const t=["footnotes-list","item","from","footnotes.footnotesProperties.defaultStartIndex","config","upper-alpha","1880688RJBLGs","24860fKdwoJ","35gRQlAf","consume","decimal","footnotesDefinitions","element","5510052aipXSf","position","name","attribute:footnotesListStart:footnotesDefinitions","for","floor","parseInt","isOfficialPlugin","removeStyle","mapper","viewItem","_defineConverters","get","removeAttribute","_getDefaultListStyle","_defineFormatter","fromCharCode","_definePostfixer","extend","getChildren","152jiAnRn","upper-latin","add","getItems","17487360ssdzwi","footnotesListStyle","isPremiumPlugin","hasClass","schema","isNaN","writer","decimal-leading-zero","setFootnoteFormatter","commands","attribute:footnotesListStyle:footnotesDefinitions","type","9znlzui","3773930CPAAsy","define","getStyle","footnotes.footnotesProperties.defaultListStyle","find","requires","728927enKRIT","modelCursor","registerPostFixer","hasAttribute","toLowerCase","element:ol","footnotesStart","createRangeOn","document","model","_defineSchema","FootnotesPropertiesEditing","$text","_formatFootnoteListValue","parent","212775mPDVNc","toUpperCase","lower-alpha","insert","checkAttribute","max","editor","getAttribute","start","_updateFootnotesCounters","init","upper-roman","pluginName","toViewElement","differ","20spFbEH","plugins","lower-latin","list-style-type","padStart","footnotesListStart","_getDefaultStartIndex","downcast","lower-roman","getChanges","nodeAfter","setAttribute","upcast","consumable","footnotesStyle","setStyle"];return(ht=function(){return t})()}function mt(t,e){const o=ht();return(mt=function(t,e){return o[t-=400]})(t,e)}function gt(t,e){const o=dt,n=e[o(467)](t);return Array[o(487)](n[o(415)]())[o(437)](t=>t.is(o(497),"ol")&&t[o(423)](o(485)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(412)](97+t)+n,i=Math[o(401)]((i-1)/26)}return e?n[o(455)]():n}const yt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function bt(t,e){const o=dt;let n="",i=t;for(const{value:t,numeral:e}of yt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(443)]()}class vt extends O.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new O.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new O.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,O.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new O.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof O.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new O.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new O.LabeledFieldView(this.locale,O.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=H();R()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[O.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,O.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:V.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:V.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:V.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:V.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:V.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:V.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:V.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),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}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function Ft(){var t=["isOfficialPlugin","FootnotesProperties","210618SqzfDj","isPremiumPlugin","1016020pJuSCw","requires","pluginName","45vOmXfK","3017332oeePcJ","1822600XboNeE","109431iQjFLi","544nAOAYI","2159820rIMbqK","337842YalACC"];return(Ft=function(){return t})()}var Et=xt;function xt(t,e){var o=Ft();return(xt=function(t,e){return o[t-=343]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(744179===parseInt(e(353))/1+-parseInt(e(344))/2+-parseInt(e(347))/3+-parseInt(e(343))/4+-parseInt(e(356))/5*(-parseInt(e(348))/6)+parseInt(e(345))/7+parseInt(e(346))/8*(parseInt(e(351))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Ft);class At extends t.Plugin{static get[Et(355)](){return Et(350)}static get[Et(354)](){return[pt,Ct]}static get[Et(349)](){return!0}static get[Et(352)](){return!0}}function Pt(t,e){var o=St();return(Pt=function(t,e){return o[t-=143]})(t,e)}function St(){var t=["20ajPWya","9owjkrQ","134564LbKTCl","299456YjwVDX","5KpkUia","595MRxjpe","611545rOflAS","595692dbUHAp","414pAuMna","411587vOzrSs","3175380eKdzAb"];return(St=function(){return t})()}!function(t){for(var e=Pt,o=t();;)try{if(212379===-parseInt(e(149))/1+-parseInt(e(153))/2*(-parseInt(e(152))/3)+parseInt(e(147))/4*(parseInt(e(144))/5)+parseInt(e(148))/6*(-parseInt(e(145))/7)+parseInt(e(143))/8+parseInt(e(150))/9+-parseInt(e(151))/10*(parseInt(e(146))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();