@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251202.0 → 0.0.0-nightly-20251204.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +9 -9
  150. package/src/commands/insertfootnotecommand.js +1 -1
  151. package/src/footnotes.js +1 -1
  152. package/src/footnotesclipboard.js +1 -1
  153. package/src/footnotesediting.js +1 -1
  154. package/src/footnotesproperties/commands/footnotesstartcommand.js +1 -1
  155. package/src/footnotesproperties/commands/footnotesstylecommand.js +1 -1
  156. package/src/footnotesproperties/footnotespropertiesconfig.js +1 -1
  157. package/src/footnotesproperties/footnotespropertiesediting.js +1 -1
  158. package/src/footnotesproperties/footnotespropertiesui.js +1 -1
  159. package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +1 -1
  160. package/src/footnotesproperties.js +1 -1
  161. package/src/footnotestracker.js +1 -1
  162. package/src/footnotesui.js +1 -1
  163. package/src/index.js +1 -1
  164. package/src/modelelementtracker.js +1 -1
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:h,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>L,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>ht,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>u,FootnotesUI:()=>X,InsertFootnoteCommand:()=>w});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=l();return(r=function(t,e){return o[t-=126]})(t,e)}const a=r;!function(t){const e=r,o=t();for(;;)try{if(905253===-parseInt(e(132))/1*(parseInt(e(159))/2)+-parseInt(e(136))/3+-parseInt(e(153))/4+parseInt(e(145))/5+-parseInt(e(151))/6*(parseInt(e(166))/7)+parseInt(e(162))/8*(-parseInt(e(150))/9)+parseInt(e(134))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(l);class c{[a(161)];[a(129)];[a(139)];[a(158)]=new Map;constructor(t,e){const o=a;this[o(161)]=t,this[o(129)]=e[o(155)],this[o(139)]=e[o(133)]}[a(168)](){const t=a;this[t(158)][t(135)]()}[a(131)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(138)===i[e(137)]&&e(156)!==i[e(146)]&&i[e(143)][e(169)]){const t=this[e(161)][e(128)](i[e(143)][e(169)]);for(const o of t[e(130)]()){if(!o.is(e(147),this[e(129)]))continue;const t=this[e(139)](o);n[e(157)](t)||n[e(142)](t,[]),n[e(126)](t)[e(164)](o)}}if(e(152)===i[e(137)]&&i[e(146)]===this[e(129)]){const t=this[e(139)]({getAttribute:t=>i[e(160)][e(126)](t)});o[e(140)](t)}}for(const[t,n]of this[e(158)])e(167)===n[e(154)][e(165)]&&o[e(140)](t);for(const t of o)this[e(158)][e(144)](t);for(const[t,o]of n)this[e(158)][e(142)](t,o[o[e(149)]-1]);const i=new Set;for(const[t,s]of n)o[e(157)](t)&&(i[e(140)](s[0]),s[e(149)]>1?n[e(142)](t,s[e(141)](1)):n[e(144)](t),o[e(144)](t));return{removed:Array[e(148)](o),inserted:Array[e(148)](n[e(163)]())[e(127)](),moved:Array[e(148)](i)}}}function l(){const t=["5338935RldMni","type","insert","_getElementKey","add","slice","set","position","delete","6078625VPRlVZ","name","element","from","length","376866hybjKL","6iJHyRt","remove","3578624kOkOsX","root","elementName","$text","has","_trackedElements","38130xLCIzd","attributes","_model","96RaqXCX","values","push","rootName","1795199myWGLo","$graveyard","reset","nodeAfter","get","flat","createRangeOn","_elementName","getItems","getChanges","13GKXdxb","getElementKey","33706190LppraM","clear"];return(l=function(){return t})()}const f=h;!function(t){const e=h,o=t();for(;;)try{if(947196===-parseInt(e(510))/1+-parseInt(e(517))/2*(parseInt(e(536))/3)+parseInt(e(546))/4+-parseInt(e(539))/5*(-parseInt(e(537))/6)+parseInt(e(568))/7+-parseInt(e(518))/8*(-parseInt(e(541))/9)+-parseInt(e(545))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(m);class u extends t.Plugin{[f(519)]=[];[f(554)]=null;[f(570)]=null;[f(564)];[f(530)];[f(533)];static get[f(480)](){return f(562)}static get[f(478)](){return!0}static get[f(574)](){return!0}constructor(t){const e=f;super(t),this[e(564)]=new c(this[e(529)][e(551)],{elementName:e(552),getElementKey:()=>e(483)}),this[e(530)]=new c(this[e(529)][e(551)],{elementName:e(547),getElementKey:t=>t[e(520)](e(527))}),this[e(533)]=new c(this[e(529)][e(551)],{elementName:e(505),getElementKey:t=>t[e(520)](e(527))})}[f(492)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(532)][t(525)](e=>{const n=t,i=o[n(532)][n(573)][n(548)]();let s=!1;return this[n(522)](e,i)&&(s=!0),this[n(488)](e,i)&&(s=!0),this[n(540)](e,i)&&(s=!0),this[n(481)](e)&&(s=!0),this[n(556)](e)&&(s=!0),this[n(497)](e)&&(s=!0),s}),this[t(475)](o[t(532)],t(499),()=>{const e=t;o[e(535)]({isUndoable:!1},t=>{this[e(544)](t)})},{priority:t(495)}),this[t(475)](n,t(485),()=>{const e=t;this[e(519)]=[],this[e(564)][e(484)](),this[e(530)][e(484)](),this[e(533)][e(484)]()},{priority:t(569)})}[f(514)](){return this[f(554)]}[f(506)](t){const e=f;return this[e(519)][e(493)](e=>e.id===t)||null}[f(476)](){const t=f;return Array[t(500)](this[t(519)])}[f(503)](){return this[f(570)]}[f(559)](t){this[f(570)]=t}[f(550)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(519)][o(560)];i++)this[o(486)](t,i)&&(n=!0);return n}[f(543)](t,e){const o=f,n=t[o(561)](o(552),{});return t[o(498)](n,e),this[o(554)]=n,n}[f(544)](t){const e=f;if(!this[e(519)][e(560)]||this[e(554)])return;const o=this[e(519)][0][e(509)][e(508)],n=this[e(543)](t,o);for(const o of this[e(519)])o[e(526)][e(553)]||t[e(490)](o[e(526)],n,e(572));this[e(550)](t)}[f(522)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(564)][o(548)](e);if(r[o(560)]&&(this[o(554)]=r[0]),i[o(560)])if(i[o(560)]>1||this[o(554)]&&i[o(479)](t=>t!==this[o(554)])){const e=t[o(561)](o(552),{}),s=[];this[o(554)]&&s[o(496)](this[o(554)]),s[o(496)](...i),t[o(490)](e,s[0],o(516));for(const n of s)t[o(557)](t[o(513)](n),t[o(504)](e,o(572))),t[o(494)](n);this[o(554)]=e,this[o(550)](t),n=!0}else this[o(554)]=i[0];if(s[o(560)]&&o(489)===this[o(554)]?.[o(508)][o(474)]){for(const e of this[o(519)])t[o(494)](e[o(509)]),n=!0;this[o(519)]=[],this[o(554)]=null}return n}[f(488)](t,e){const o=f;let n=!1;const i=this[o(529)][o(482)][o(571)](o(528)),{inserted:s,moved:r}=this[o(533)][o(548)](e);for(const e of[...r,...s]){const s=e[o(520)](o(527)),r=this[o(506)](s);r&&(r[o(526)]=e),d(t,i,e)&&(n=!0)}return n}[f(540)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(530)][o(548)](e);for(const e of i)this[o(521)](t,e)&&(n=!0);for(const e of s)this[o(538)](t,e)&&(n=!0);for(const e of r)this[o(555)](t,e)&&(n=!0);return n}[f(556)](t){const e=f;if(!this[e(554)])return!1;let o=!1;if(this[e(554)][e(542)]!==this[e(519)][e(560)]){const n=[];for(const t of this[e(554)][e(515)]()){const i=t[e(520)](e(527));this[e(506)](i)||(n[e(549)](t),o=!0)}for(const o of n)t[e(494)](o)}const n=new Set,i=[];for(const t of this[e(554)][e(515)]()){const s=t[e(520)](e(527));n[e(491)](s)?(i[e(549)](t),o=!0):n[e(524)](s)}for(const o of i)t[e(494)](o);return this[e(554)][e(542)]||(t[e(494)](this[e(554)]),this[e(554)]=null,o=!0),o}[f(538)](t,e){const o=f;if(this[o(519)][o(493)](t=>t[o(509)]===e))return!1;let n=!1;const i=e[o(520)](o(527)),s=this[o(519)][o(531)](t=>t.id===i);-1!==s&&(t[o(494)](this[o(519)][s][o(509)]),this[o(519)][o(523)](s,1),n=!0);let r=this[o(554)]?function(t,e){const n=o;for(const o of t[n(515)]())if(o[n(520)](n(527))===e)return o;return null}(this[o(554)],i):null;r||(r=t[o(561)](o(505),{footnoteId:i}),this[o(554)]&&(t[o(490)](r,this[o(554)],o(572)),n=!0));const a={id:i,reference:e,definition:r},c=p(this[o(529)][o(551)],this[o(519)],e);this[o(519)][o(523)](c,0,a);let l=c;return-1!==s&&(l=Math[o(567)](c,s)),this[o(550)](t,l)&&(n=!0),n}[f(521)](t,e){const o=f,n=this[o(519)][o(531)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(519)][n];return o(489)!==s[o(526)][o(508)][o(474)]&&(t[o(494)](s[o(526)]),i=!0),this[o(519)][o(523)](n,1),this[o(550)](t,n)&&(i=!0),i}[f(555)](t,e){const o=f,n=e[o(520)](o(527)),i=this[o(519)][o(531)](t=>t.id===n),s=this[o(519)][i];let r=!1;s[o(509)]=e,this[o(519)][o(523)](i,1);const a=p(this[o(529)][o(551)],this[o(519)],e);return this[o(519)][o(523)](a,0,s),this[o(550)](t,Math[o(567)](i,a))&&(r=!0),r}[f(486)](t,e){const o=f;if(!this[o(554)])return!1;const n=this[o(519)][e];let i;return i=this[o(570)]?this[o(570)]({footnote:n,container:this[o(554)],digits:String(this[o(519)][o(560)])[o(560)],value:e+1}):String(e+1),n[o(509)][o(520)](o(565))!=i&&(t[o(501)](o(565),i,n[o(509)]),!0)}[f(497)](t){const e=f;if(!this[e(554)]||this[e(519)][e(560)]<2)return!1;if(function(t,o){const n=e;if(t[n(560)]!==o[n(560)])return!1;for(let e=0;e<t[n(560)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(519)][e(487)](t=>t.id),Array[e(500)](this[e(554)][e(515)]())[e(487)](t=>t[e(520)](e(527)))))return!1;let o=!1;for(let n=0;n<this[e(519)][e(560)];n++){const i=this[e(519)][n],s=t[e(507)](i[e(526)]),r=t[e(504)](this[e(554)],n);s[e(477)](r)||(t[e(557)](t[e(558)](i[e(526)]),r),o=!0)}return o}[f(481)](t){const e=f;if(!this[e(519)][e(560)])return!1;const{model:o}=this[e(529)];let n=!1;for(let i=0;i<this[e(519)][e(560)]-1;i++){const s=this[e(519)][i],r=this[e(519)][i+1],a=o[e(507)](s[e(509)]),c=o[e(507)](r[e(509)]);e(566)===a[e(512)](c)&&(this[e(555)](t,s[e(509)]),i=-1,n=!0)}return n}}function d(t,e,o){const n=f;if(o[n(542)])return!1;const i=n(e?502:511);return t[n(490)](t[n(561)](i),o),!0}function p(t,e,o){const n=f;if(0===e[n(560)])return 0;const i=t[n(507)](o);for(let o=0;o<e[n(560)];o++){const s=e[o],r=t[n(507)](s[n(509)]);if(n(516)===i[n(512)](r))return o}const s=o[n(508)];let r=-1;for(let t=e[n(560)]-1;t>=0;t--)if(e[t][n(509)][n(508)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(532)][n(534)](),c=a[n(563)](s[n(474)]),l=a[c+1];if(l)for(let t=0;t<e[n(560)];t++)if(e[t][n(509)][n(508)][n(474)]===l)return t;return e[n(560)]}function h(t,e){const o=m();return(h=function(t,e){return o[t-=474]})(t,e)}function m(){const t=["footnoteInlineContent","compareWith","createRangeIn","getFootnotesDefinitionsObjectElement","getChildren","before","149766tOxHYZ","4520rEsimG","_footnotes","getAttribute","_handleRemoveFootnoteReferenceById","_handleFootnotesDefinitionsObjectChanges","splice","add","registerPostFixer","definition","footnoteId","footnotes.multiBlock","editor","_footnoteRefsTracker","findIndex","document","_footnoteDefsTracker","getRootNames","enqueueChange","6iJzZRa","6JXHxgR","_handleInsertedFootnoteReference","5339185xwVthZ","_handleFootnoteReferencesChanges","837mTRqob","childCount","_insertEmptyFootnotesDefinitionsContainer","_ensureFootnotesDefinitionsContainerExists","8543360zLrSgr","4636492bxkCak","footnoteRef","getChanges","unshift","_updateFootnotesCounters","model","footnotesDefinitions","parent","_footnotesDefinitions","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","move","createRangeOn","setFootnoteFormatter","length","createElement","FootnotesTracker","indexOf","_footnoteDefsContainerTracker","footnoteCounter","after","min","4947817dzqYul","high","_footnoteFormatter","get","end","differ","isPremiumPlugin","rootName","listenTo","getFootnotes","isEqual","isOfficialPlugin","some","pluginName","_ensureFootnotesReferencesHaveProperOrder","config","singleton","reset","set","_updateFootnoteRefCounter","map","_handleFootnoteDefinitionsChanges","$graveyard","insert","has","init","find","remove","low","push","_sortFootnoteDefinitions","append","change:data","from","setAttribute","paragraph","getFootnotesFormatter","createPositionAt","footnoteDefinition","getFootnote","createPositionBefore","root","reference","1035038OxryFK"];return(m=function(){return t})()}const g=y;!function(t){const e=y,o=t();for(;;)try{if(848147===parseInt(e(448))/1*(-parseInt(e(475))/2)+parseInt(e(465))/3*(-parseInt(e(454))/4)+-parseInt(e(468))/5+parseInt(e(473))/6*(-parseInt(e(471))/7)+parseInt(e(458))/8*(parseInt(e(472))/9)+-parseInt(e(445))/10+parseInt(e(470))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(b);class w extends t.Command{[g(474)](){const t=g,e=this[t(447)][t(442)][t(450)][t(461)],o=this[t(444)](e);this[t(463)]=!!o}[g(438)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(450)],r=this[e(444)](s);if(!r)return;const a=o[e(449)][e(464)](e(453)),c=t?.[e(455)]??(0,i.uid)();!function(t){const o=e;return o(441)==typeof t&&t[o(467)]>0&&!/\s/[o(462)](t)&&!/^\d/[o(462)](t)}(c)?(0,i.logWarning)(e(469)):(n[e(440)](t=>{const o=e,i=t[o(466)](o(456),{footnoteId:c});n[o(451)](i,r,null)}),a[e(457)](c))}[g(444)](t){const e=g,{model:o}=this[e(447)],{schema:n}=o,i=t[e(452)]();for(const t of i[e(446)]())if(n[e(459)](t)||n[e(460)](t))return null;const s=i[e(439)];return n[e(443)](s,e(456))?s:null}}function y(t,e){const o=b();return(y=function(t,e){return o[t-=438]})(t,e)}function b(){const t=["change","string","model","checkChild","_getPositionToInsertFootnote","10821010fynMkS","getItems","editor","17291ingMRn","plugins","document","insertObject","getFirstRange","FootnotesEditing","8088SuYxUJ","footnoteId","footnoteRef","_moveSelectionToFootnoteDefinition","6149272weZVEL","isBlock","isObject","selection","test","isEnabled","get","366esPjNB","createElement","length","2314890cJLRfy","insert-footnote-command-executed-with-invalid-id","31874282gRLeak","133280FfpudD","9TEfDfV","318fXvxHO","refresh","2jnxiYw","execute","end"];return(b=function(){return t})()}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[u]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new 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 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:1764633600;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(u).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(u).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var S=o(331);const T=_;function _(t,e){const o=A();return(_=function(t,e){return o[t-=355]})(t,e)}!function(t){const e=_,o=t();for(;;)try{if(910245===-parseInt(e(387))/1+-parseInt(e(357))/2+parseInt(e(390))/3*(parseInt(e(381))/4)+parseInt(e(388))/5+-parseInt(e(402))/6*(parseInt(e(376))/7)+parseInt(e(398))/8*(-parseInt(e(424))/9)+parseInt(e(397))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(A);class L extends t.Plugin{static get[T(360)](){return T(399)}static get[T(395)](){return[v,S.ClipboardPipeline]}static get[T(383)](){return!0}static get[T(406)](){return!0}[T(369)](){this[T(430)]()}[T(430)](){const t=T;this[t(428)](),this[t(371)]()}[T(428)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(421)](S.ClipboardPipeline),s=o[t(421)](u);this[t(364)](i,t(382),(o,i)=>{const r=t,a=D(n[r(380)](i[r(429)]));if(!a[r(405)])return;const c=s[r(400)](),l=a[r(372)]((t,o)=>{const n=r,i=c[n(425)](t=>t.id===o);if(i){const o=e[n(417)][n(419)](i[n(356)],{isClipboardPipeline:!0}),s=e[n(417)][n(415)][n(379)](o);t[i.id]=s}return t},Object[r(359)](null));i[r(361)][r(426)](r(416),JSON[r(355)](l))})}[T(371)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(378)],r=n[t(421)](S.ClipboardPipeline),a=n[t(421)](u);let c=null;this[t(364)](s[t(362)],t(394),(e,o)=>{const n=t,i=o[n(361)][n(420)](n(416));c=i?JSON[n(422)](i):null}),this[t(364)](r,t(375),(n,s)=>{const r=t,l=s[r(377)]===this[r(386)].id;l&&r(384)===s[r(365)]||o[r(414)](t=>{const n=r;let f=a[n(363)]();const u=!!f&&Array[n(366)](o[n(362)][n(374)][n(409)]())[n(392)](f);if((f&&!u||!f&&!c)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(380)](e))n.is(o(403),o(368))&&i[o(412)](n);for(const e of i)t[o(427)](e)}(t,s[n(429)]),!c)return;const{selection:d}=o[n(362)],p=d[n(407)]()[n(373)];f&&!u||(f=function(t,e){const o=n;for(const{item:n}of t[o(380)](e))if(n.is(o(403),o(368)))return n;return null}(t,s[n(429)]),f||=a[n(396)](t,p));const h=Array[n(366)](d[n(410)]())[n(411)](D),m=function(t,e,o){const s=n,r=Object[s(359)](null);for(const{item:n}of t[s(380)](e))if(n.is(s(403),s(385))){const e=n[s(418)](s(423));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(393)](s(423),r[e],n)}return r}(t,s[n(429)],t=>{const e=n;return!l||!!a[e(389)](t)&&!h[e(392)](t)});for(const[o,i]of Object[n(413)](c)){const s=m[o]||o,r=t[n(370)](n(401),{footnoteId:s}),a=e[n(417)][n(415)][n(419)](i),c=e[n(417)][n(404)](a,r);t[n(391)](c,r),t[n(367)](r,f,n(358))}c=null})})}}function A(){const t=["data","getAttribute","toView","getData","get","parse","footnoteId","2042694ZffJSR","find","setData","remove","_handleCopyFootnotesDefinitions","content","_defineClipboardIntegration","stringify","definition","483392VxBBgF","end","create","pluginName","dataTransfer","document","getFootnotesDefinitionsObjectElement","listenTo","method","from","insert","footnotesDefinitions","init","createElement","_handlePasteFootnotesDefinitions","reduce","root","selection","contentInsertion","1194025bgJqbR","sourceEditorId","editing","toData","createRangeIn","7868OQcXxB","outputTransformation","isOfficialPlugin","drop","footnoteRef","editor","1119526AEepuv","8677875QKfSLH","getFootnote","183Ywhhrd","append","includes","setAttribute","clipboardInput","requires","_insertEmptyFootnotesDefinitionsContainer","17227120xwOKog","16rPPhfH","FootnotesClipboard","getFootnotes","footnoteDefinition","30ginwzw","element","toModel","length","isPremiumPlugin","getFirstRange","add","getSelectedBlocks","getRanges","flatMap","push","entries","change","htmlProcessor","application/ckeditor5-footnotes"];return(A=function(){return t})()}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(403),e(385))&&o[e(408)](n[e(418)](e(423)));return Array[e(366)](o)}var O=o(311),R=o(355),V=o(929),N=o.n(V),K=o(297),j=o.n(K),B=o(102),M=o.n(B),z=o(123),U=o.n(z),W=o(741),q=o.n(W),H=o(728),J={attributes:{"data-cke":!0}};J.setAttributes=U(),J.insert=M().bind(null,"head"),J.domAPI=j(),J.insertStyleElement=q();N()(H.A,J);H.A&&H.A.locals&&H.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,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:R.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Q=G;function G(t,e){var o=Y();return(G=function(t,e){return o[t-=423]})(t,e)}function Y(){var t=["6xboZsP","716779zWkgzn","2376248XZfFQG","5300664VheTzm","1266282FlwIpT","455WaiZOZ","78762RQzmfF","isOfficialPlugin","isPremiumPlugin","95384vCfoZa","pluginName","Footnotes","requires","116460pFYJmf","1628UmThgq","5QtPfEq"];return(Y=function(){return t})()}!function(t){for(var e=G,o=t();;)try{if(459280===-parseInt(e(426))/1+parseInt(e(425))/2*(parseInt(e(431))/3)+-parseInt(e(427))/4*(parseInt(e(424))/5)+parseInt(e(428))/6+-parseInt(e(430))/7*(parseInt(e(434))/8)+-parseInt(e(429))/9+-parseInt(e(438))/10*(-parseInt(e(423))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Y);class $ extends t.Plugin{static get[Q(435)](){return Q(436)}static get[Q(437)](){return[v,L,X]}static get[Q(432)](){return!0}static get[Q(433)](){return!0}}const tt=et;function et(t,e){const o=nt();return(et=function(t,e){return o[t-=125]})(t,e)}!function(t){const e=et,o=t();for(;;)try{if(745120===parseInt(e(125))/1+-parseInt(e(139))/2+-parseInt(e(127))/3+-parseInt(e(130))/4*(-parseInt(e(134))/5)+-parseInt(e(141))/6+parseInt(e(131))/7*(-parseInt(e(126))/8)+-parseInt(e(136))/9*(-parseInt(e(140))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const ot=[tt(129),tt(138),tt(135),tt(132),tt(137),tt(142),tt(133),tt(128)];function nt(){const t=["322208jHzISN","16WfBjov","835356hpCfYI","upper-roman","decimal","8WLTuvA","4635547jyOyEh","upper-latin","lower-roman","1439015SRenUu","lower-latin","1509786TmkZYG","lower-alpha","decimal-leading-zero","140860SbBQqL","100xvTxnz","941460QeOghW","upper-alpha"];return(nt=function(){return t})()}function it(t,e){const o=rt();return(it=function(t,e){return o[t-=112]})(t,e)}const st=it;function rt(){const t=["7285500HpIkkt","execute","refresh","5465tHAcDj","change","13haBsml","footnotesListStyle","8183LdJpMq","12391038EduDuu","7368uAFqoe","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","model","isEnabled","1335frPmQK","8750016GtZycR","get","includes","getAttribute","10QFizdJ","3156oHesDP","75018MOlWsS","1096CAHZdq","value","plugins","setAttribute"];return(rt=function(){return t})()}!function(t){const e=it,o=t();for(;;)try{if(906353===-parseInt(e(123))/1*(-parseInt(e(113))/2)+parseInt(e(132))/3*(-parseInt(e(112))/4)+-parseInt(e(121))/5*(-parseInt(e(127))/6)+-parseInt(e(125))/7*(parseInt(e(114))/8)+-parseInt(e(118))/9+parseInt(e(137))/10*(parseInt(e(126))/11)+-parseInt(e(133))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class at extends t.Command{[st(120)](){const t=st,{editor:e}=this,o=e[t(116)][t(134)](u)[t(128)]();this[t(131)]=!!o,this[t(115)]=o?.[t(136)](t(124))??null}[st(119)]({value:t}){const e=st,{editor:o}=this,n=o[e(116)][e(134)](u),i=n[e(128)]();i&&ot[e(135)](t)&&o[e(130)][e(122)](o=>{const s=e;o[s(117)](s(124),t,i),n[s(129)](o)})}}const ct=lt;function lt(t,e){const o=ut();return(lt=function(t,e){return o[t-=218]})(t,e)}!function(t){const e=lt,o=t();for(;;)try{if(686970===parseInt(e(236))/1+-parseInt(e(228))/2*(-parseInt(e(237))/3)+parseInt(e(219))/4*(parseInt(e(232))/5)+-parseInt(e(221))/6*(parseInt(e(229))/7)+parseInt(e(234))/8*(parseInt(e(218))/9)+-parseInt(e(224))/10+parseInt(e(240))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[ct(239)](){const t=ct,{editor:e}=this,o=e[t(225)][t(220)](u)[t(238)]();this[t(233)]=!!o,this[t(227)]=o?.[t(223)](t(226))??null}[ct(241)]({value:t}){const e=ct,{editor:o}=this,n=o[e(225)][e(220)](u),i=n[e(238)]();i&&Number[e(235)](t)&&o[e(242)][e(222)](o=>{const s=e;o[s(231)](s(226),t,i),n[s(230)](o)})}}function ut(){const t=["109213nOEtPN","525wlvlCO","getFootnotesDefinitionsObjectElement","refresh","11840994nqvvYQ","execute","model","62433fbtGiU","4mBKQdn","get","6361878cMwcWX","change","getAttribute","9361570WDLQpO","plugins","footnotesListStart","value","9328FckpUx","7TLuqPC","_updateFootnotesCounters","setAttribute","2332630HCFbvY","isEnabled","248qJtdtd","isInteger"];return(ut=function(){return t})()}const dt=mt;function pt(){const t=["define","mapper","47578488XqaANp","footnotesDefinitions","nodeAfter","plugins","getStyle","isPremiumPlugin","start","insert","attribute:footnotesListStyle:footnotesDefinitions","init","FootnotesPropertiesEditing","toUpperCase","downcast","removeAttribute","element:ol","16ubUXdE","commands","element","padStart","schema","from","$text","for","footnotes.footnotesProperties.defaultListStyle","footnotes.footnotesProperties.defaultStartIndex","isNaN","consume","removeStyle","getChanges","type","getItems","decimal-leading-zero","editor","_formatFootnoteListValue","createRangeOn","footnotesStyle","viewItem","attribute:footnotesListStart:footnotesDefinitions","footnotesListStyle","registerPostFixer","_getDefaultListStyle","189SJkjrk","find","parseInt","item","upcast","1642482oBBUFt","fromCharCode","pluginName","decimal","lower-alpha","footnotesListStart","hasClass","getAttribute","upper-latin","modelCursor","setFootnoteFormatter","_definePostfixer","footnotes-list","consumable","requires","_getDefaultStartIndex","_defineSchema","2305625poIPoe","toViewElement","60852fOknMz","toLowerCase","7252505QSFpRR","_defineConverters","11GqLOWW","_defineFormatter","max","hasAttribute","parent","position","2ShoEet","lower-roman","setStyle","isOfficialPlugin","upper-roman","2241018vSQyfm","11448470PqbdBd","differ","lower-latin","list-style-type","get","model","add","writer","checkAttribute","name","floor","_updateFootnotesCounters","document","footnotesStart","extend","config","getChildren","setAttribute","upper-alpha","6iZfjBl"];return(pt=function(){return t})()}!function(t){const e=mt,o=t();for(;;)try{if(842248===-parseInt(e(514))/1*(parseInt(e(543))/2)+-parseInt(e(509))/3*(parseInt(e(533))/4)+parseInt(e(535))/5+-parseInt(e(568))/6*(parseInt(e(531))/7)+parseInt(e(483))/8*(-parseInt(e(548))/9)+-parseInt(e(549))/10+parseInt(e(537))/11*(parseInt(e(571))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(pt);class ht extends t.Plugin{static get[dt(516)](){return dt(478)}static get[dt(528)](){return[v,u]}static get[dt(546)](){return!0}static get[dt(576)](){return!0}[dt(477)](){const t=dt,{editor:e}=this;e[t(564)][t(569)](t(491),t(517)),e[t(564)][t(569)](t(492),1),e[t(484)][t(555)](t(503),new at(e)),e[t(484)][t(555)](t(562),new ft(e)),this[t(530)](),this[t(536)](),this[t(538)](),this[t(525)]()}[dt(530)](){const t=dt,{editor:e}=this,{schema:o}=e[t(554)];o[t(563)](t(572),{allowAttributes:[t(506),t(519)]})}[dt(536)](){const t=dt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(490)](t(513))[t(555)](e=>{const o=t;e.on(o(482),(t,e,n)=>{const s=o,r=e[s(504)],a=e[s(523)]?.[s(541)];r[s(520)](s(526))&&a?.is(s(485),s(572))&&(function(t,e,o,n){const i=s;if(!n[i(557)](e,i(519)))return;let r=1;const a=o[i(527)][i(494)](t,{attributes:i(577)});if(a){const e=Number[i(511)](t[i(521)](i(577)),10);Number[i(493)](e)||(r=e)}!a&&e[i(540)](i(519))||o[i(556)][i(566)](i(519),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(557)](e,i(506)))return;let r=i(517),a=!1;if(o[i(527)][i(494)](t,{attributes:i(497)})){const e={1:i(517),a:i(518),A:i(567),i:i(544),I:i(547)}[t[i(521)](i(497))];e&&(r=e),a=!0}o[i(527)][i(494)](t,{styles:i(552)})&&(r=t[i(575)](i(552)),a=!0),!a&&e[i(540)](i(506))||o[i(556)][i(566)](i(506),r,e)}(r,a,n,i))})}),o[t(490)](t(480))[t(555)](e=>{const o=t;e.on(o(505),(t,e,n)=>{const i=o;if(!n[i(527)][i(494)](e[i(512)],t[i(558)]))return;const s=gt(e[i(512)],n[i(570)]),{attributeNewValue:r}=e;null==r||1===r?n[i(556)][i(481)](i(577),s):n[i(556)][i(566)](i(577),String(r),s)}),e.on(o(476),(t,e,n)=>{const i=o;if(!n[i(527)][i(494)](e[i(512)],t[i(558)]))return;const s=gt(e[i(512)],n[i(570)]),{attributeNewValue:r}=e;r&&i(517)!==r?n[i(556)][i(545)](i(552),r,s):n[i(556)][i(495)](i(552),s)})})}[dt(525)](){const t=dt,{editor:e}=this,{model:o}=e,n=e[t(574)][t(553)](u),i=this[t(508)](),s=this[t(529)]();o[t(561)][t(507)](e=>{const r=t,a=o[r(561)][r(550)][r(496)]();let c=!1;for(const t of a){if(r(475)!==t[r(497)]||r(489)===t[r(558)])continue;const n=o[r(502)](t[r(542)][r(573)]);for(const t of n[r(498)]())t.is(r(485),r(572))&&(!t[r(540)](r(519))&&o[r(487)][r(557)](t,r(519))&&(e[r(566)](r(519),s,t),c=!0),!t[r(540)](r(506))&&o[r(487)][r(557)](t,r(506))&&(e[r(566)](r(506),i,t),c=!0))}return c&&n[r(560)](e),c})}[dt(538)](){const t=dt,{editor:e}=this;e[t(574)][t(553)](u)[t(524)](e=>this[t(501)](e))}[dt(508)](){const t=dt;return this[t(500)][t(564)][t(553)](t(491))}[dt(529)](){const t=dt;return this[t(500)][t(564)][t(553)](t(492))}[dt(501)]({container:t,value:e,digits:o}){const n=dt,i=t[n(521)](n(506)),s=t[n(521)](n(519)),r=Math[n(559)](e)+(s??1)-1;switch(i){case n(499):return function(t,e){const o=n;return String(t)[o(486)](e,"0")}(r,Math[n(539)](2,o));case n(518):case n(551):return wt(r,!1);case n(567):case n(522):return wt(r,!0);case n(544):return bt(r,!1);case n(547):return bt(r,!0);default:return String(r)}}}function mt(t,e){const o=pt();return(mt=function(t,e){return o[t-=475]})(t,e)}function gt(t,e){const o=dt,n=e[o(532)](t);return Array[o(488)](n[o(565)]())[o(510)](t=>t.is(o(485),"ol")&&t[o(520)](o(526)))}function wt(t,e){const o=dt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(515)](97+t)+n,i=Math[o(559)]((i-1)/26)}return e?n[o(479)]():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(534)]()}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=U(),kt.insert=M().bind(null,"head"),kt.domAPI=j(),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[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:R.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:R.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:R.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:R.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:R.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:R.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:R.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new O.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new vt(t.locale,{styleGridAriaLabel:n,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=O.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=Et;function xt(){var t=["862432FUzGfP","1194996RURwMf","requires","104481ZkBoqE","2797480PzgWMy","671451yPpQUo","isOfficialPlugin","FootnotesProperties","pluginName","isPremiumPlugin","151492QnggIX","578915qzJmWJ"];return(xt=function(){return t})()}function Et(t,e){var o=xt();return(Et=function(t,e){return o[t-=267]})(t,e)}!function(t){for(var e=Et,o=t();;)try{if(127821===-parseInt(e(270))/1+-parseInt(e(277))/2+-parseInt(e(272))/3+parseInt(e(267))/4+parseInt(e(278))/5+-parseInt(e(268))/6+parseInt(e(271))/7)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Ft(275)](){return Ft(274)}static get[Ft(269)](){return[ht,Ct]}static get[Ft(273)](){return!0}static get[Ft(276)](){return!0}}function St(){var t=["4IXxeKg","51309jcyhKh","67960BllnEG","288kbdDXt","8375653YKUBDr","55517axgCKd","1889555QOJUnl","126uZlVNK","6zvTPJW","3133120DBqoIK","875516HrvPun"];return(St=function(){return t})()}function Tt(t,e){var o=St();return(Tt=function(t,e){return o[t-=282]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(627001===parseInt(e(287))/1+-parseInt(e(285))/2*(parseInt(e(289))/3)+parseInt(e(288))/4*(parseInt(e(283))/5)+parseInt(e(291))/6*(parseInt(e(282))/7)+-parseInt(e(290))/8*(-parseInt(e(284))/9)+-parseInt(e(286))/10+-parseInt(e(292))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var f=[].concat(t[l]);n&&r[f[0]]||(void 0!==s&&(void 0===f[5]||(f[1]="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {").concat(f[1],"}")),f[5]=s),o&&(f[2]?(f[1]="@media ".concat(f[2]," {").concat(f[1],"}"),f[2]=o):f[2]=o),i&&(f[4]?(f[1]="@supports (".concat(f[4],") {").concat(f[1],"}"),f[4]=i):f[4]="".concat(i)),e.push(f))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],f=s[l]||0,u="".concat(l," ").concat(f);s[l]=f+1;var d=o(u),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:u,updater:p,references:1})}r.push(u)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var f=o(s[l]);0===e[f].references&&(e[f].updater(),e.splice(f,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>$,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Et,FootnotesPropertiesEditing:()=>mt,FootnotesPropertiesUI:()=>Ct,FootnotesStartCommand:()=>ft,FootnotesStyleCommand:()=>at,FootnotesTracker:()=>h,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(){const t=["nodeAfter","_model","element","push","7VzOgjY","1148408kHyYRU","type","delete","clear","values","_elementName","_trackedElements","root","remove","getItems","rootName","6215658GaYfqT","81Bbxxyo","$graveyard","12zYygBB","length","has","_getElementKey","set","getElementKey","getChanges","from","position","get","15RQAjbw","136926ZiQTuc","attributes","$text","createRangeOn","478304zXcZlo","653956dfuSqG","name","add","elementName","flat","14096830LQoHiD","insert","slice","reset","42698403VTWBfS"];return(r=function(){return t})()}const a=c;function c(t,e){const o=r();return(c=function(t,e){return o[t-=352]})(t,e)}!function(t){const e=c,o=t();for(;;)try{if(713168===parseInt(e(352))/1+parseInt(e(392))/2*(parseInt(e(381))/3)+parseInt(e(396))/4*(-parseInt(e(391))/5)+parseInt(e(378))/6*(-parseInt(e(366))/7)+parseInt(e(367))/8*(-parseInt(e(379))/9)+-parseInt(e(357))/10+parseInt(e(361))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(r);class l{[a(363)];[a(372)];[a(384)];[a(373)]=new Map;constructor(t,e){const o=a;this[o(363)]=t,this[o(372)]=e[o(355)],this[o(384)]=e[o(386)]}[a(360)](){const t=a;this[t(373)][t(370)]()}[a(387)](t){const e=a,o=new Set,n=new Map;for(const i of t){if(e(358)===i[e(368)]&&e(394)!==i[e(353)]&&i[e(389)][e(362)]){const t=this[e(363)][e(395)](i[e(389)][e(362)]);for(const o of t[e(376)]()){if(!o.is(e(364),this[e(372)]))continue;const t=this[e(384)](o);n[e(383)](t)||n[e(385)](t,[]),n[e(390)](t)[e(365)](o)}}if(e(375)===i[e(368)]&&i[e(353)]===this[e(372)]){const t=this[e(384)]({getAttribute:t=>i[e(393)][e(390)](t)});o[e(354)](t)}}for(const[t,n]of this[e(373)])e(380)===n[e(374)][e(377)]&&o[e(354)](t);for(const t of o)this[e(373)][e(369)](t);for(const[t,o]of n)this[e(373)][e(385)](t,o[o[e(382)]-1]);const i=new Set;for(const[t,s]of n)o[e(383)](t)&&(i[e(354)](s[0]),s[e(382)]>1?n[e(385)](t,s[e(359)](1)):n[e(369)](t),o[e(369)](t));return{removed:Array[e(388)](o),inserted:Array[e(388)](n[e(371)]())[e(356)](),moved:Array[e(388)](i)}}}const f=u;function u(t,e){const o=d();return(u=function(t,e){return o[t-=378]})(t,e)}function d(){const t=["_updateFootnotesCounters","enqueueChange","splice","get","model","min","_ensureFootnotesReferencesHaveProperOrder","move","childCount","change:data","setFootnoteFormatter","isPremiumPlugin","footnoteInlineContent","remove","end","add","isOfficialPlugin","_footnoteRefsTracker","_footnotesDefinitions","getChanges","low","_footnoteDefsTracker","_handleFootnoteDefinitionsChanges","376368xaGwMR","compareWith","createRangeOn","_updateFootnoteRefCounter","unshift","_footnotes","_handleFootnotesDefinitionsObjectSync","set","getChildren","$graveyard","273510AVrheI","document","footnotes.multiBlock","push","reset","definition","_handleFootnoteReferencesChanges","createElement","parent","before","differ","815400ZsHGhz","after","getFootnotes","high","getFootnotesDefinitionsObjectElement","createPositionAt","_handleInsertedFootnoteReference","footnoteId","_ensureFootnotesDefinitionsContainerExists","getFootnote","_footnoteFormatter","footnoteRef","1931258ZUdIhW","_handleRemoveFootnoteReferenceById","append","singleton","24zFcthq","config","footnotesDefinitions","FootnotesTracker","map","from","isEqual","insert","createPositionBefore","_footnoteDefsContainerTracker","300027ZPzLxp","_handleMovedFootnoteReference","8fAPUKk","setAttribute","editor","getFootnotesFormatter","_handleFootnotesDefinitionsObjectChanges","193985ycmBbl","createRangeIn","getAttribute","root","paragraph","reference","getRootNames","length","registerPostFixer","rootName","init","some","_sortFootnoteDefinitions","_insertEmptyFootnotesDefinitionsContainer","1115172zkRJbD","pluginName","footnoteDefinition","has","indexOf","footnoteCounter","listenTo","findIndex","find"];return(d=function(){return t})()}!function(t){const e=u,o=t();for(;;)try{if(449104===parseInt(e(437))/1+parseInt(e(383))/2+-parseInt(e(430))/3+-parseInt(e(404))/4+parseInt(e(393))/5*(parseInt(e(420))/6)+-parseInt(e(416))/7*(-parseInt(e(432))/8)+-parseInt(e(451))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(d);class h extends t.Plugin{[f(388)]=[];[f(378)]=null;[f(414)]=null;[f(429)];[f(477)];[f(381)];static get[f(452)](){return f(423)}static get[f(476)](){return!0}static get[f(471)](){return!0}constructor(t){const e=f;super(t),this[e(429)]=new l(this[e(434)][e(464)],{elementName:e(422),getElementKey:()=>e(419)}),this[e(477)]=new l(this[e(434)][e(464)],{elementName:e(415),getElementKey:t=>t[e(439)](e(411))}),this[e(381)]=new l(this[e(434)][e(464)],{elementName:e(453),getElementKey:t=>t[e(439)](e(411))})}[f(447)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(394)][t(445)](e=>{const n=t,i=o[n(394)][n(403)][n(379)]();let s=!1;return this[n(436)](e,i)&&(s=!0),this[n(382)](e,i)&&(s=!0),this[n(399)](e,i)&&(s=!0),this[n(466)](e)&&(s=!0),this[n(389)](e)&&(s=!0),this[n(449)](e)&&(s=!0),s}),this[t(457)](o[t(394)],t(469),()=>{const e=t;o[e(461)]({isUndoable:!1},t=>{this[e(412)](t)})},{priority:t(380)}),this[t(457)](n,t(390),()=>{const e=t;this[e(388)]=[],this[e(429)][e(397)](),this[e(477)][e(397)](),this[e(381)][e(397)]()},{priority:t(407)})}[f(408)](){return this[f(378)]}[f(413)](t){const e=f;return this[e(388)][e(459)](e=>e.id===t)||null}[f(406)](){const t=f;return Array[t(425)](this[t(388)])}[f(435)](){return this[f(414)]}[f(470)](t){this[f(414)]=t}[f(460)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(388)][o(444)];i++)this[o(386)](t,i)&&(n=!0);return n}[f(450)](t,e){const o=f,n=t[o(400)](o(422),{});return t[o(418)](n,e),this[o(378)]=n,n}[f(412)](t){const e=f;if(!this[e(388)][e(444)]||this[e(378)])return;const o=this[e(388)][0][e(442)][e(440)],n=this[e(450)](t,o);for(const o of this[e(388)])o[e(398)][e(401)]||t[e(427)](o[e(398)],n,e(474));this[e(460)](t)}[f(436)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(429)][o(379)](e);if(r[o(444)]&&(this[o(378)]=r[0]),i[o(444)])if(i[o(444)]>1||this[o(378)]&&i[o(448)](t=>t!==this[o(378)])){const e=t[o(400)](o(422),{}),s=[];this[o(378)]&&s[o(396)](this[o(378)]),s[o(396)](...i),t[o(427)](e,s[0],o(402));for(const n of s)t[o(467)](t[o(438)](n),t[o(409)](e,o(474))),t[o(473)](n);this[o(378)]=e,this[o(460)](t),n=!0}else this[o(378)]=i[0];if(s[o(444)]&&o(392)===this[o(378)]?.[o(440)][o(446)]){for(const e of this[o(388)])t[o(473)](e[o(442)]),n=!0;this[o(388)]=[],this[o(378)]=null}return n}[f(382)](t,e){const o=f;let n=!1;const i=this[o(434)][o(421)][o(463)](o(395)),{inserted:s,moved:r}=this[o(381)][o(379)](e);for(const e of[...r,...s]){const s=e[o(439)](o(411)),r=this[o(413)](s);r&&(r[o(398)]=e),p(t,i,e)&&(n=!0)}return n}[f(399)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(477)][o(379)](e);for(const e of i)this[o(417)](t,e)&&(n=!0);for(const e of s)this[o(410)](t,e)&&(n=!0);for(const e of r)this[o(431)](t,e)&&(n=!0);return n}[f(389)](t){const e=f;if(!this[e(378)])return!1;let o=!1;if(this[e(378)][e(468)]!==this[e(388)][e(444)]){const n=[];for(const t of this[e(378)][e(391)]()){const i=t[e(439)](e(411));this[e(413)](i)||(n[e(387)](t),o=!0)}for(const o of n)t[e(473)](o)}const n=new Set,i=[];for(const t of this[e(378)][e(391)]()){const s=t[e(439)](e(411));n[e(454)](s)?(i[e(387)](t),o=!0):n[e(475)](s)}for(const o of i)t[e(473)](o);return this[e(378)][e(468)]||(t[e(473)](this[e(378)]),this[e(378)]=null,o=!0),o}[f(410)](t,e){const o=f;if(this[o(388)][o(459)](t=>t[o(442)]===e))return!1;let n=!1;const i=e[o(439)](o(411)),s=this[o(388)][o(458)](t=>t.id===i);-1!==s&&(t[o(473)](this[o(388)][s][o(442)]),this[o(388)][o(462)](s,1),n=!0);let r=this[o(378)]?function(t,e){const n=o;for(const o of t[n(391)]())if(o[n(439)](n(411))===e)return o;return null}(this[o(378)],i):null;r||(r=t[o(400)](o(453),{footnoteId:i}),this[o(378)]&&(t[o(427)](r,this[o(378)],o(474)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(434)][o(464)],this[o(388)],e);this[o(388)][o(462)](c,0,a);let l=c;return-1!==s&&(l=Math[o(465)](c,s)),this[o(460)](t,l)&&(n=!0),n}[f(417)](t,e){const o=f,n=this[o(388)][o(458)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(388)][n];return o(392)!==s[o(398)][o(440)][o(446)]&&(t[o(473)](s[o(398)]),i=!0),this[o(388)][o(462)](n,1),this[o(460)](t,n)&&(i=!0),i}[f(431)](t,e){const o=f,n=e[o(439)](o(411)),i=this[o(388)][o(458)](t=>t.id===n),s=this[o(388)][i];let r=!1;s[o(442)]=e,this[o(388)][o(462)](i,1);const a=m(this[o(434)][o(464)],this[o(388)],e);return this[o(388)][o(462)](a,0,s),this[o(460)](t,Math[o(465)](i,a))&&(r=!0),r}[f(386)](t,e){const o=f;if(!this[o(378)])return!1;const n=this[o(388)][e];let i;return i=this[o(414)]?this[o(414)]({footnote:n,container:this[o(378)],digits:String(this[o(388)][o(444)])[o(444)],value:e+1}):String(e+1),n[o(442)][o(439)](o(456))!=i&&(t[o(433)](o(456),i,n[o(442)]),!0)}[f(449)](t){const e=f;if(!this[e(378)]||this[e(388)][e(444)]<2)return!1;if(function(t,o){const n=e;if(t[n(444)]!==o[n(444)])return!1;for(let e=0;e<t[n(444)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(388)][e(424)](t=>t.id),Array[e(425)](this[e(378)][e(391)]())[e(424)](t=>t[e(439)](e(411)))))return!1;let o=!1;for(let n=0;n<this[e(388)][e(444)];n++){const i=this[e(388)][n],s=t[e(428)](i[e(398)]),r=t[e(409)](this[e(378)],n);s[e(426)](r)||(t[e(467)](t[e(385)](i[e(398)]),r),o=!0)}return o}[f(466)](t){const e=f;if(!this[e(388)][e(444)])return!1;const{model:o}=this[e(434)];let n=!1;for(let i=0;i<this[e(388)][e(444)]-1;i++){const s=this[e(388)][i],r=this[e(388)][i+1],a=o[e(428)](s[e(442)]),c=o[e(428)](r[e(442)]);e(405)===a[e(384)](c)&&(this[e(431)](t,s[e(442)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=f;if(o[n(468)])return!1;const i=n(e?441:472);return t[n(427)](t[n(400)](i),o),!0}function m(t,e,o){const n=f;if(0===e[n(444)])return 0;const i=t[n(428)](o);for(let o=0;o<e[n(444)];o++){const s=e[o],r=t[n(428)](s[n(442)]);if(n(402)===i[n(384)](r))return o}const s=o[n(440)];let r=-1;for(let t=e[n(444)]-1;t>=0;t--)if(e[t][n(442)][n(440)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(394)][n(443)](),c=a[n(455)](s[n(446)]),l=a[c+1];if(l)for(let t=0;t<e[n(444)];t++)if(e[t][n(442)][n(440)][n(446)]===l)return t;return e[n(444)]}const g=w;function w(t,e){const o=y();return(w=function(t,e){return o[t-=412]})(t,e)}function y(){const t=["_getPositionToInsertFootnote","footnoteId","49GnmOrT","insertObject","insert-footnote-command-executed-with-invalid-id","checkChild","model","getFirstRange","editor","string","document","change","37800vUbpNP","length","_moveSelectionToFootnoteDefinition","plugins","refresh","isObject","5853555QklSpI","FootnotesEditing","1228088NvfwaA","isEnabled","529333ZGRHfA","footnoteRef","4499joGpdL","execute","56IUdHST","921040IcMlPH","createElement","end","getItems","6ooTCkv","33718ZTsAQu","selection","test","6198zJTPsh","isBlock","get","3965vRSRcK"];return(y=function(){return t})()}!function(t){const e=w,o=t();for(;;)try{if(470300===-parseInt(e(439))/1*(parseInt(e(430))/2)+-parseInt(e(429))/3*(-parseInt(e(418))/4)+-parseInt(e(436))/5*(parseInt(e(433))/6)+parseInt(e(420))/7*(-parseInt(e(424))/8)+parseInt(e(416))/9+parseInt(e(425))/10+parseInt(e(422))/11*(parseInt(e(449))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[g(414)](){const t=g,e=this[t(445)][t(443)][t(447)][t(431)],o=this[t(437)](e);this[t(419)]=!!o}[g(423)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(447)],r=this[e(437)](s);if(!r)return;const a=o[e(413)][e(435)](e(417)),c=t?.[e(438)]??(0,i.uid)();!function(t){const o=e;return o(446)==typeof t&&t[o(450)]>0&&!/\s/[o(432)](t)&&!/^\d/[o(432)](t)}(c)?(0,i.logWarning)(e(441)):(n[e(448)](t=>{const o=e,i=t[o(426)](o(421),{footnoteId:c});n[o(440)](i,r,null)}),a[e(412)](c))}[g(437)](t){const e=g,{model:o}=this[e(445)],{schema:n}=o,i=t[e(444)]();for(const t of i[e(428)]())if(n[e(434)](t)||n[e(415)](t))return null;const s=i[e(427)];return n[e(442)](s,e(421))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[h]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[m([68,97,116,101])][m([110,111,119])](),n=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{n[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=n[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;n[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),o[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](f(t)):null}function f(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[m([108,101,110,103,116,104])];o++){const n=t[m([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function h(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function p(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let o=m([117]);for(let n=0;n<t[m([108,101,110,103,116,104])];n+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,n[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=p,n[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&o()?e:null;function o(){const t=e[m([106,116,105])],o=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),n={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete n[m([118,99])],u(n)==o}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),n[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const f=(0,i.uid)();function p(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(n){a(n)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(u(f+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(u(t)),n=h(d(window[m([77,97,116,104])][m([99,101,105,108])](o/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,n)}function r(){const e=m([108,108,99,116,45])+d(u(t)),o=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return o?window[m([112,97,114,115,101,73,110,116])](h(o),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,o)=>{t[m([116,104,101,110])](e,o),window[m([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[m([114,101,113,117,101,115,116,73,100])]:f}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),n[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{p(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){n[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const n=a[m([115,112,108,105,116])](m([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=l(e);o&&o[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](f(n),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+o),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1764806400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](o))return!0;const n=o[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=n[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(n[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>n[m([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&p?new(window[m([80,114,111,109,105,115,101])])((t,o)=>{e[m([116,104,101,110])](t,o),p[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},o)}):e||p||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),o.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(h).getFootnote(t);return!!i&&(n.change(t=>{t.setSelection(i.reference,"on")}),o.view.scrollToTheSelection(),!0)}_defineSchema(){const{schema:t}=this.editor.model,e=this.editor.config.get("footnotes.multiBlock");t.register("footnoteRef",{inheritAllFrom:"$inlineObject",allowAttributes:["footnoteId","footnoteCounter"]}),t.register("footnotesDefinitions",{inheritAllFrom:"$blockObject",allowChildren:["footnoteDefinition"]}),t.register("footnoteDefinition",{allowAttributes:["footnoteId"],disallowAttributes:["listItemId"],isLimit:!0}),e?t.extend("footnoteDefinition",{allowContentOf:"$container"}):t.register("footnoteInlineContent",{allowIn:"footnoteDefinition",allowContentOf:"$block",isLimit:!0}),t.addChildCheck(t=>{for(const e of t)if("footnoteDefinition"===e.name)return!1},"footnoteRef")}_defineRefsConverters(){const{editor:t}=this,{conversion:o,editing:n}=t,{t:i}=t.locale;o.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:o})=>{const i=t.getChild(0);if(!i||!i.is("element","a"))return null;const s=i.getAttribute("href")||"";if(!s.startsWith("#"))return null;const r=s.replace(/^#/,"");if(!r)return null;o.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of n.view.createRangeIn(i))t.is("$textProxy")?o.consume(t.textNode,{name:!0}):t.is("element")&&o.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),o.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>E(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(E(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>x(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=x(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function E(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);const T=A;function A(t,e){const o=L();return(A=function(t,e){return o[t-=128]})(t,e)}!function(t){const e=A,o=t();for(;;)try{if(490476===-parseInt(e(136))/1+-parseInt(e(162))/2*(parseInt(e(131))/3)+-parseInt(e(165))/4+parseInt(e(160))/5+parseInt(e(161))/6+-parseInt(e(163))/7*(-parseInt(e(200))/8)+-parseInt(e(180))/9*(parseInt(e(175))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(L);class _ extends t.Plugin{static get[T(141)](){return T(185)}static get[T(177)](){return[v,P.ClipboardPipeline]}static get[T(167)](){return!0}static get[T(181)](){return!0}[T(135)](){this[T(143)]()}[T(143)](){const t=T;this[t(171)](),this[t(140)]()}[T(171)](){const t=T,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(133)](P.ClipboardPipeline),s=o[t(133)](h);this[t(148)](i,t(147),(o,i)=>{const r=t,a=D(n[r(137)](i[r(158)]));if(!a[r(155)])return;const c=s[r(168)](),l=a[r(184)]((t,o)=>{const n=r,i=c[n(196)](t=>t.id===o);if(i){const o=e[n(144)][n(186)](i[n(195)],{isClipboardPipeline:!0}),s=e[n(144)][n(203)][n(164)](o);t[i.id]=s}return t},Object[r(187)](null));i[r(205)][r(169)](r(152),JSON[r(173)](l))})}[T(140)](){const t=T,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(194)],r=n[t(133)](P.ClipboardPipeline),a=n[t(133)](h),c=e[t(142)][t(133)](t(157));let l=null;this[t(148)](s[t(178)],t(150),(e,o)=>{const n=t,i=o[n(205)][n(192)](n(152));l=i?JSON[n(153)](i):null}),this[t(148)](r,t(146),(n,s)=>{const r=t,f=s[r(189)]===this[r(204)].id;f&&r(156)===s[r(138)]||o[r(145)](t=>{const n=r;let u=a[n(182)]();const d=!!u&&Array[n(179)](o[n(178)][n(190)][n(129)]())[n(174)](u);if((u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(137)](e))n.is(o(166),o(198))&&i[o(188)](n);for(const e of i)t[o(199)](e)}(t,s[n(158)]),!l)return;const{selection:h}=o[n(178)],p=h[n(197)]()[n(130)];u&&!d||(u=function(t,e){const o=n;for(const{item:n}of t[o(137)](e))if(n.is(o(166),o(198)))return n;return null}(t,s[n(158)]),u||=a[n(191)](t,p));const m=Array[n(179)](h[n(151)]())[n(170)](D),g=function(t,e,o){const s=n,r=Object[s(187)](null);for(const{item:n}of t[s(137)](e))if(n.is(s(166),s(154))){const e=n[s(128)](s(176));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(159)](s(176),r[e],n)}return r}(t,s[n(158)],t=>{const e=n;return!f||!!a[e(132)](t)&&!m[e(174)](t)});for(const[o,i]of Object[n(134)](l)){const s=g[o]||o,r=t[n(193)](n(206),{footnoteId:s}),a=e[n(144)][n(203)][n(186)](i);let l;if(c)l=e[n(144)][n(139)](a,r);else{l=t[n(193)](n(202));const o=e[n(144)][n(139)](a,l);t[n(149)](o,l)}t[n(172)](l,r),t[n(149)](r,u,n(183))}l=null})})}}function D(t){const e=T,o=new Set;for(const{item:n}of t)n.is(e(166),e(154))&&o[e(201)](n[e(128)](e(176)));return Array[e(179)](o)}function L(){const t=["htmlProcessor","editor","dataTransfer","footnoteDefinition","getAttribute","getSelectedBlocks","root","36969PxvGMG","getFootnote","get","entries","init","957794hYSnhP","createRangeIn","method","toModel","_handlePasteFootnotesDefinitions","pluginName","config","_defineClipboardIntegration","data","change","contentInsertion","outputTransformation","listenTo","insert","clipboardInput","getRanges","application/ckeditor5-footnotes","parse","footnoteRef","length","drop","footnotes.multiBlock","content","setAttribute","4896740ScGAXE","5119512OLGOal","82dSADsY","14VRFkma","toData","125256suFFUD","element","isOfficialPlugin","getFootnotes","setData","flatMap","_handleCopyFootnotesDefinitions","append","stringify","includes","70xCeEOQ","footnoteId","requires","document","from","1006569pasxHx","isPremiumPlugin","getFootnotesDefinitionsObjectElement","end","reduce","FootnotesClipboard","toView","create","push","sourceEditorId","selection","_insertEmptyFootnotesDefinitionsContainer","getData","createElement","editing","definition","find","getFirstRange","footnotesDefinitions","remove","3740456hTSnFb","add","footnoteInlineContent"];return(L=function(){return t})()}var R=o(311),V=o(355),N=o(929),O=o.n(N),K=o(297),j=o.n(K),M=o(102),B=o.n(M),U=o(123),z=o.n(U),H=o(741),W=o.n(H),q=o(728),G={attributes:{"data-cke":!0}};G.setAttributes=z(),G.insert=B().bind(null,"head"),G.domAPI=j(),G.insertStyleElement=W();O()(q.A,G);q.A&&q.A.locals&&q.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Z(t,R.ButtonView)),e.add("menuBar:insertFootnote",Z(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"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 R.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:V.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}function Q(){var t=["isOfficialPlugin","10IlCjdw","pluginName","6whKXVL","1006040wolHlV","4759876ROBHio","isPremiumPlugin","9WQXlRD","requires","3360378nLBulU","1396664kCPRAF","6GRsgPZ","Footnotes","325792fKsvJZ","529830fRBoRf","2865845xgjqgn"];return(Q=function(){return t})()}var J=Y;function Y(t,e){var o=Q();return(Y=function(t,e){return o[t-=131]})(t,e)}!function(t){for(var e=Y,o=t();;)try{if(610484===-parseInt(e(132))/1+-parseInt(e(131))/2*(-parseInt(e(145))/3)+parseInt(e(144))/4+-parseInt(e(133))/5*(parseInt(e(137))/6)+parseInt(e(143))/7+parseInt(e(138))/8*(parseInt(e(141))/9)+-parseInt(e(135))/10*(-parseInt(e(139))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Q);class $ extends t.Plugin{static get[J(136)](){return J(146)}static get[J(142)](){return[v,_,X]}static get[J(134)](){return!0}static get[J(140)](){return!0}}const tt=ot;!function(t){const e=ot,o=t();for(;;)try{if(446983===-parseInt(e(144))/1+parseInt(e(141))/2*(-parseInt(e(148))/3)+-parseInt(e(154))/4+-parseInt(e(138))/5*(-parseInt(e(147))/6)+parseInt(e(140))/7*(parseInt(e(142))/8)+-parseInt(e(137))/9+parseInt(e(139))/10*(parseInt(e(155))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const et=[tt(153),tt(143),tt(152),tt(146),tt(151),tt(149),tt(150),tt(145)];function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=137]})(t,e)}function nt(){const t=["upper-latin","6zcfKNg","162129gGhewY","upper-alpha","lower-roman","lower-alpha","lower-latin","decimal","716040oKiEST","11ctwHNL","398655glnZXV","475890NDVjJc","3075040MklXFl","7EMEECU","6cfMrIC","5027448KPxEHL","decimal-leading-zero","198696zFUqMP","upper-roman"];return(nt=function(){return t})()}function it(){const t=["plugins","266464xxlQCr","value","execute","get","1569115RtJbng","558ICXvtH","412116yatSix","refresh","model","getFootnotesDefinitionsObjectElement","footnotesListStyle","58648CPwvdY","includes","2069424tJlhqO","218212NqsXVv","12UWZwjN","change","isEnabled","_updateFootnotesCounters","308946nSxWcX","setAttribute","getAttribute"];return(it=function(){return t})()}const st=rt;function rt(t,e){const o=it();return(rt=function(t,e){return o[t-=428]})(t,e)}!function(t){const e=rt,o=t();for(;;)try{if(223694===parseInt(e(429))/1+parseInt(e(446))/2+-parseInt(e(438))/3*(parseInt(e(437))/4)+-parseInt(e(450))/5+parseInt(e(442))/6+-parseInt(e(436))/7+parseInt(e(434))/8*(parseInt(e(428))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(it);class at extends t.Command{[st(430)](){const t=st,{editor:e}=this,o=e[t(445)][t(449)](h)[t(432)]();this[t(440)]=!!o,this[t(447)]=o?.[t(444)](t(433))??null}[st(448)]({value:t}){const e=st,{editor:o}=this,n=o[e(445)][e(449)](h),i=n[e(432)]();i&&et[e(435)](t)&&o[e(431)][e(439)](o=>{const s=e;o[s(443)](s(433),t,i),n[s(441)](o)})}}function ct(t,e){const o=ut();return(ct=function(t,e){return o[t-=244]})(t,e)}const lt=ct;!function(t){const e=ct,o=t();for(;;)try{if(872796===-parseInt(e(250))/1+-parseInt(e(253))/2+parseInt(e(266))/3*(-parseInt(e(256))/4)+parseInt(e(245))/5+parseInt(e(265))/6+-parseInt(e(255))/7*(-parseInt(e(264))/8)+parseInt(e(258))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class ft extends t.Command{[lt(260)](){const t=lt,{editor:e}=this,o=e[t(249)][t(259)](h)[t(257)]();this[t(263)]=!!o,this[t(262)]=o?.[t(251)](t(244))??null}[lt(247)]({value:t}){const e=lt,{editor:o}=this,n=o[e(249)][e(259)](h),i=n[e(257)]();i&&Number[e(246)](t)&&o[e(248)][e(254)](o=>{const s=e;o[s(252)](s(244),t,i),n[s(261)](o)})}}function ut(){const t=["isEnabled","32TmfobF","5651124wSOUta","75auItPR","footnotesListStart","4444735niCjCL","isInteger","execute","model","plugins","452768jRJUtz","getAttribute","setAttribute","628966LkawRr","change","333648XtnAxe","144836vWdDLn","getFootnotesDefinitionsObjectElement","4714335EPLETQ","get","refresh","_updateFootnotesCounters","value"];return(ut=function(){return t})()}function dt(){const t=["document","setAttribute","$text","registerPostFixer","decimal-leading-zero","setStyle","FootnotesPropertiesEditing","3915680avDasZ","find","getChanges","for","floor","nodeAfter","consumable","extend","checkAttribute","attribute:footnotesListStyle:footnotesDefinitions","parent","init","add","_updateFootnotesCounters","5520vOFUNu","toLowerCase","pluginName","toViewElement","footnotes-list","item","viewItem","hasAttribute","removeAttribute","upcast","get","isOfficialPlugin","getAttribute","start","from","type","upper-roman","consume","_formatFootnoteListValue","list-style-type","footnotesDefinitions","parseInt","2321718zWXQjF","_defineFormatter","104vBhxnC","_defineSchema","footnotesListStyle","34256DebALz","upper-alpha","footnotes.footnotesProperties.defaultListStyle","insert","isNaN","decimal","define","removeStyle","element","toUpperCase","schema","position","1565160BPBCfB","element:ol","attribute:footnotesListStart:footnotesDefinitions","downcast","config","padStart","_defineConverters","lower-roman","mapper","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","editor","_getDefaultStartIndex","isPremiumPlugin","19223UgdHGr","getItems","hasClass","footnotesStart","686MZhEbd","writer","34ENgHtg","commands","_definePostfixer","9072297qlDyIE","setFootnoteFormatter","footnotesStyle","name","differ","model","requires","modelCursor","plugins","upper-latin","max","_getDefaultListStyle","getStyle","lower-alpha","lower-latin","getChildren","fromCharCode","createRangeOn"];return(dt=function(){return t})()}const ht=pt;function pt(t,e){const o=dt();return(pt=function(t,e){return o[t-=445]})(t,e)}!function(t){const e=pt,o=t();for(;;)try{if(522183===parseInt(e(542))/1*(-parseInt(e(447))/2)+-parseInt(e(489))/3*(parseInt(e(513))/4)+parseInt(e(528))/5+parseInt(e(511))/6+-parseInt(e(445))/7*(parseInt(e(516))/8)+parseInt(e(450))/9+-parseInt(e(475))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(dt);class mt extends t.Plugin{static get[ht(491)](){return ht(474)}static get[ht(456)](){return[v,h]}static get[ht(500)](){return!0}static get[ht(541)](){return!0}[ht(486)](){const t=ht,{editor:e}=this;e[t(532)][t(522)](t(518),t(521)),e[t(532)][t(522)](t(537),1),e[t(448)][t(487)](t(452),new at(e)),e[t(448)][t(487)](t(545),new ft(e)),this[t(514)](),this[t(534)](),this[t(512)](),this[t(449)]()}[ht(514)](){const t=ht,{editor:e}=this,{schema:o}=e[t(455)];o[t(482)](t(509),{allowAttributes:[t(515),t(538)]})}[ht(534)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(478)](t(498))[t(487)](e=>{const o=t;e.on(o(529),(t,e,n)=>{const s=o,r=e[s(495)],a=e[s(457)]?.[s(485)];r[s(544)](s(493))&&a?.is(s(524),s(509))&&(function(t,e,o,n){const i=s;if(!n[i(483)](e,i(538)))return;let r=1;const a=o[i(481)][i(506)](t,{attributes:i(502)});if(a){const e=Number[i(510)](t[i(501)](i(502)),10);Number[i(520)](e)||(r=e)}!a&&e[i(496)](i(538))||o[i(446)][i(469)](i(538),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(483)](e,i(515)))return;let r=i(521),a=!1;if(o[i(481)][i(506)](t,{attributes:i(504)})){const e={1:i(521),a:i(463),A:i(517),i:i(535),I:i(505)}[t[i(501)](i(504))];e&&(r=e),a=!0}o[i(481)][i(506)](t,{styles:i(508)})&&(r=function(t){const e=i;switch(t){case e(463):return e(464);case e(517):return e(459);default:return t}}(t[i(462)](i(508))),a=!0),!a&&e[i(496)](i(515))||o[i(446)][i(469)](i(515),r,e)}(r,a,n,i))})}),o[t(478)](t(531))[t(487)](e=>{const o=t;e.on(o(530),(t,e,n)=>{const i=o;if(!n[i(481)][i(506)](e[i(494)],t[i(453)]))return;const s=gt(e[i(494)],n[i(536)]),{attributeNewValue:r}=e;null==r||1===r?n[i(446)][i(497)](i(502),s):n[i(446)][i(469)](i(502),String(r),s)}),e.on(o(484),(t,e,n)=>{const i=o;if(!n[i(481)][i(506)](e[i(494)],t[i(453)]))return;const s=gt(e[i(494)],n[i(536)]),{attributeNewValue:r}=e;r&&i(521)!==r?n[i(446)][i(473)](i(508),r,s):n[i(446)][i(523)](i(508),s)})})}[ht(449)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(458)][t(499)](h),i=this[t(461)](),s=this[t(540)]();o[t(468)][t(471)](e=>{const r=t,a=o[r(468)][r(454)][r(477)]();let c=!1;for(const t of a){if(r(519)!==t[r(504)]||r(470)===t[r(453)])continue;const n=o[r(467)](t[r(527)][r(480)]);for(const t of n[r(543)]())t.is(r(524),r(509))&&(!t[r(496)](r(538))&&o[r(526)][r(483)](t,r(538))&&(e[r(469)](r(538),s,t),c=!0),!t[r(496)](r(515))&&o[r(526)][r(483)](t,r(515))&&(e[r(469)](r(515),i,t),c=!0))}return c&&n[r(488)](e),c})}[ht(512)](){const t=ht,{editor:e}=this;e[t(458)][t(499)](h)[t(451)](e=>this[t(507)](e))}[ht(461)](){const t=ht;return this[t(539)][t(532)][t(499)](t(518))}[ht(540)](){const t=ht;return this[t(539)][t(532)][t(499)](t(537))}[ht(507)]({container:t,value:e,digits:o}){const n=ht,i=t[n(501)](n(515)),s=t[n(501)](n(538)),r=Math[n(479)](e)+(s??1)-1;switch(i){case n(472):return function(t,e){const o=n;return String(t)[o(533)](e,"0")}(r,Math[n(460)](2,o));case n(463):case n(464):return wt(r,!1);case n(517):case n(459):return wt(r,!0);case n(535):return bt(r,!1);case n(505):return bt(r,!0);default:return String(r)}}}function gt(t,e){const o=ht,n=e[o(492)](t);return Array[o(503)](n[o(465)]())[o(476)](t=>t.is(o(524),"ol")&&t[o(544)](o(493)))}function wt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(466)](97+t)+n,i=Math[o(479)]((i-1)/26)}return e?n[o(525)]():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(490)]()}class vt extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var It=o(291),kt={attributes:{"data-cke":!0}};kt.setAttributes=z(),kt.insert=B().bind(null,"head"),kt.domAPI=j(),kt.insertStyleElement=W();O()(It.A,kt);It.A&&It.A.locals&&It.A.locals;class Ct extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon: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 R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new 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}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Ft=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=495]})(t,e)}!function(t){for(var e=xt,o=t();;)try{if(753354===-parseInt(e(507))/1*(parseInt(e(504))/2)+parseInt(e(505))/3+parseInt(e(496))/4+-parseInt(e(497))/5+parseInt(e(501))/6+parseInt(e(503))/7+-parseInt(e(502))/8*(parseInt(e(506))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Et extends t.Plugin{static get[Ft(508)](){return Ft(495)}static get[Ft(498)](){return[mt,Ct]}static get[Ft(500)](){return!0}static get[Ft(499)](){return!0}}function St(){var t=["22045800JXSfSX","5278679LxRyBx","171388kIPrgF","3070182NtGQJD","9TzWvUm","6QqoYlu","pluginName","FootnotesProperties","5087808qMxiaF","1648130kYAysX","requires","isPremiumPlugin","isOfficialPlugin","7820556sextcu"];return(St=function(){return t})()}function Pt(){var t=["771534Knnmdl","10kQVHGc","10456pfUHCz","119aQTbzm","68394qPuuFA","379140foYYWa","2mSmZNe","3201048AoTzDG","1044644nMXNfp","3875690edmvxU"];return(Pt=function(){return t})()}function Tt(t,e){var o=Pt();return(Tt=function(t,e){return o[t-=340]})(t,e)}!function(t){for(var e=Tt,o=t();;)try{if(309323===-parseInt(e(340))/1*(-parseInt(e(348))/2)+parseInt(e(349))/3+-parseInt(e(342))/4*(parseInt(e(345))/5)+-parseInt(e(344))/6+parseInt(e(347))/7*(parseInt(e(346))/8)+parseInt(e(341))/9+parseInt(e(343))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Pt)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();