@ckeditor/ckeditor5-footnotes 47.6.2-alpha.0 → 47.6.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/build/footnotes.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/translations/af.js +1 -1
  4. package/dist/translations/af.umd.js +1 -1
  5. package/dist/translations/ar.js +1 -1
  6. package/dist/translations/ar.umd.js +1 -1
  7. package/dist/translations/ast.js +1 -1
  8. package/dist/translations/ast.umd.js +1 -1
  9. package/dist/translations/az.js +1 -1
  10. package/dist/translations/az.umd.js +1 -1
  11. package/dist/translations/be.js +1 -1
  12. package/dist/translations/be.umd.js +1 -1
  13. package/dist/translations/bg.js +1 -1
  14. package/dist/translations/bg.umd.js +1 -1
  15. package/dist/translations/bn.js +1 -1
  16. package/dist/translations/bn.umd.js +1 -1
  17. package/dist/translations/bs.js +1 -1
  18. package/dist/translations/bs.umd.js +1 -1
  19. package/dist/translations/ca.js +1 -1
  20. package/dist/translations/ca.umd.js +1 -1
  21. package/dist/translations/cs.js +1 -1
  22. package/dist/translations/cs.umd.js +1 -1
  23. package/dist/translations/da.js +1 -1
  24. package/dist/translations/da.umd.js +1 -1
  25. package/dist/translations/de-ch.js +1 -1
  26. package/dist/translations/de-ch.umd.js +1 -1
  27. package/dist/translations/de.js +1 -1
  28. package/dist/translations/de.umd.js +1 -1
  29. package/dist/translations/el.js +1 -1
  30. package/dist/translations/el.umd.js +1 -1
  31. package/dist/translations/en-au.js +1 -1
  32. package/dist/translations/en-au.umd.js +1 -1
  33. package/dist/translations/en-gb.js +1 -1
  34. package/dist/translations/en-gb.umd.js +1 -1
  35. package/dist/translations/en.js +1 -1
  36. package/dist/translations/en.umd.js +1 -1
  37. package/dist/translations/eo.js +1 -1
  38. package/dist/translations/eo.umd.js +1 -1
  39. package/dist/translations/es-co.js +1 -1
  40. package/dist/translations/es-co.umd.js +1 -1
  41. package/dist/translations/es.js +1 -1
  42. package/dist/translations/es.umd.js +1 -1
  43. package/dist/translations/et.js +1 -1
  44. package/dist/translations/et.umd.js +1 -1
  45. package/dist/translations/eu.js +1 -1
  46. package/dist/translations/eu.umd.js +1 -1
  47. package/dist/translations/fa.js +1 -1
  48. package/dist/translations/fa.umd.js +1 -1
  49. package/dist/translations/fi.js +1 -1
  50. package/dist/translations/fi.umd.js +1 -1
  51. package/dist/translations/fr.js +1 -1
  52. package/dist/translations/fr.umd.js +1 -1
  53. package/dist/translations/gl.js +1 -1
  54. package/dist/translations/gl.umd.js +1 -1
  55. package/dist/translations/gu.js +1 -1
  56. package/dist/translations/gu.umd.js +1 -1
  57. package/dist/translations/he.js +1 -1
  58. package/dist/translations/he.umd.js +1 -1
  59. package/dist/translations/hi.js +1 -1
  60. package/dist/translations/hi.umd.js +1 -1
  61. package/dist/translations/hr.js +1 -1
  62. package/dist/translations/hr.umd.js +1 -1
  63. package/dist/translations/hu.js +1 -1
  64. package/dist/translations/hu.umd.js +1 -1
  65. package/dist/translations/hy.js +1 -1
  66. package/dist/translations/hy.umd.js +1 -1
  67. package/dist/translations/id.js +1 -1
  68. package/dist/translations/id.umd.js +1 -1
  69. package/dist/translations/it.js +1 -1
  70. package/dist/translations/it.umd.js +1 -1
  71. package/dist/translations/ja.js +1 -1
  72. package/dist/translations/ja.umd.js +1 -1
  73. package/dist/translations/jv.js +1 -1
  74. package/dist/translations/jv.umd.js +1 -1
  75. package/dist/translations/kk.js +1 -1
  76. package/dist/translations/kk.umd.js +1 -1
  77. package/dist/translations/km.js +1 -1
  78. package/dist/translations/km.umd.js +1 -1
  79. package/dist/translations/kn.js +1 -1
  80. package/dist/translations/kn.umd.js +1 -1
  81. package/dist/translations/ko.js +1 -1
  82. package/dist/translations/ko.umd.js +1 -1
  83. package/dist/translations/ku.js +1 -1
  84. package/dist/translations/ku.umd.js +1 -1
  85. package/dist/translations/lt.js +1 -1
  86. package/dist/translations/lt.umd.js +1 -1
  87. package/dist/translations/lv.js +1 -1
  88. package/dist/translations/lv.umd.js +1 -1
  89. package/dist/translations/ms.js +1 -1
  90. package/dist/translations/ms.umd.js +1 -1
  91. package/dist/translations/nb.js +1 -1
  92. package/dist/translations/nb.umd.js +1 -1
  93. package/dist/translations/ne.js +1 -1
  94. package/dist/translations/ne.umd.js +1 -1
  95. package/dist/translations/nl.js +1 -1
  96. package/dist/translations/nl.umd.js +1 -1
  97. package/dist/translations/no.js +1 -1
  98. package/dist/translations/no.umd.js +1 -1
  99. package/dist/translations/oc.js +1 -1
  100. package/dist/translations/oc.umd.js +1 -1
  101. package/dist/translations/pl.js +1 -1
  102. package/dist/translations/pl.umd.js +1 -1
  103. package/dist/translations/pt-br.js +1 -1
  104. package/dist/translations/pt-br.umd.js +1 -1
  105. package/dist/translations/pt.js +1 -1
  106. package/dist/translations/pt.umd.js +1 -1
  107. package/dist/translations/ro.js +1 -1
  108. package/dist/translations/ro.umd.js +1 -1
  109. package/dist/translations/ru.js +1 -1
  110. package/dist/translations/ru.umd.js +1 -1
  111. package/dist/translations/si.js +1 -1
  112. package/dist/translations/si.umd.js +1 -1
  113. package/dist/translations/sk.js +1 -1
  114. package/dist/translations/sk.umd.js +1 -1
  115. package/dist/translations/sl.js +1 -1
  116. package/dist/translations/sl.umd.js +1 -1
  117. package/dist/translations/sq.js +1 -1
  118. package/dist/translations/sq.umd.js +1 -1
  119. package/dist/translations/sr-latn.js +1 -1
  120. package/dist/translations/sr-latn.umd.js +1 -1
  121. package/dist/translations/sr.js +1 -1
  122. package/dist/translations/sr.umd.js +1 -1
  123. package/dist/translations/sv.js +1 -1
  124. package/dist/translations/sv.umd.js +1 -1
  125. package/dist/translations/th.js +1 -1
  126. package/dist/translations/th.umd.js +1 -1
  127. package/dist/translations/ti.js +1 -1
  128. package/dist/translations/ti.umd.js +1 -1
  129. package/dist/translations/tk.js +1 -1
  130. package/dist/translations/tk.umd.js +1 -1
  131. package/dist/translations/tr.js +1 -1
  132. package/dist/translations/tr.umd.js +1 -1
  133. package/dist/translations/tt.js +1 -1
  134. package/dist/translations/tt.umd.js +1 -1
  135. package/dist/translations/ug.js +1 -1
  136. package/dist/translations/ug.umd.js +1 -1
  137. package/dist/translations/uk.js +1 -1
  138. package/dist/translations/uk.umd.js +1 -1
  139. package/dist/translations/ur.js +1 -1
  140. package/dist/translations/ur.umd.js +1 -1
  141. package/dist/translations/uz.js +1 -1
  142. package/dist/translations/uz.umd.js +1 -1
  143. package/dist/translations/vi.js +1 -1
  144. package/dist/translations/vi.umd.js +1 -1
  145. package/dist/translations/zh-cn.js +1 -1
  146. package/dist/translations/zh-cn.umd.js +1 -1
  147. package/dist/translations/zh.js +1 -1
  148. package/dist/translations/zh.umd.js +1 -1
  149. package/package.json +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-2026, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);n&&r[u[0]]||(void 0!==s&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=s),o&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=o):u[2]=o),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},782:(t,e,o)=>{t.exports=o(237)("./src/core.js")},783:(t,e,o)=>{t.exports=o(237)("./src/engine.js")},901:(t,e,o)=>{t.exports=o(237)("./src/widget.js")},929:t=>{"use strict";var e=[];function o(t){for(var o=-1,n=0;n<e.length;n++)if(e[n].identifier===t){o=n;break}return o}function n(t,n){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=n.base?c[0]+n.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=o(f),h={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(h);else{var p=i(h,n);n.byIndex=a,e.splice(a,0,{identifier:f,updater:p,references:1})}r.push(f)}return r}function i(t,e){var o=e.domAPI(e);o.update(t);return function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;o.update(t=e)}else o.remove()}}t.exports=function(t,i){var s=n(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=o(s[r]);e[a].references--}for(var c=n(t,i),l=0;l<s.length;l++){var u=o(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function o(n){var i=e[n];if(void 0!==i)return i.exports;var s=e[n]={id:n,exports:{}};return t[n](s,s.exports,o),s.exports}o.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return o.d(e,{a:e}),e},o.d=(t,e)=>{for(var n in e)o.o(e,n)&&!o.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n={};(()=>{"use strict";o.r(n),o.d(n,{Footnotes:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>h,FootnotesUI:()=>q,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);function r(t,e){const o=a();return(r=function(t,e){return o[t-=370]})(t,e)}function a(){const t=["3PSOicY","_model","delete","root","attributes","getChanges","717979CXFwMc","4744GnnhZi","777TEbAuH","getItems","4007277CwanjO","length","type","rootName","insert","elementName","$graveyard","reset","clear","add","slice","nodeAfter","name","3048400yIdgjC","4092268knULNH","values","get","_getElementKey","_trackedElements","createRangeOn","remove","6viExUB","position","2804992wxoFIC","push","from","set","19361680AvSjGn","element","$text","_elementName","flat","has","getElementKey"];return(a=function(){return t})()}const c=r;!function(t){const e=r,o=t();for(;;)try{if(740156===-parseInt(e(389))/1+-parseInt(e(372))/2+parseInt(e(383))/3*(parseInt(e(407))/4)+parseInt(e(406))/5*(-parseInt(e(370))/6)+parseInt(e(391))/7*(parseInt(e(390))/8)+parseInt(e(393))/9+parseInt(e(376))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(a);class l{[c(384)];[c(379)];[c(410)];[c(411)]=new Map;constructor(t,e){const o=c;this[o(384)]=t,this[o(379)]=e[o(398)],this[o(410)]=e[o(382)]}[c(400)](){const t=c;this[t(411)][t(401)]()}[c(388)](t){const e=c,o=new Set,n=new Map;for(const i of t){if(e(397)===i[e(395)]&&e(378)!==i[e(405)]&&i[e(371)][e(404)]){const t=this[e(384)][e(412)](i[e(371)][e(404)]);for(const o of t[e(392)]()){if(!o.is(e(377),this[e(379)]))continue;const t=this[e(410)](o);n[e(381)](t)||n[e(375)](t,[]),n[e(409)](t)[e(373)](o)}}if(e(413)===i[e(395)]&&i[e(405)]===this[e(379)]){const t=this[e(410)]({getAttribute:t=>i[e(387)][e(409)](t)});o[e(402)](t)}}for(const[t,n]of this[e(411)])e(399)===n[e(386)][e(396)]&&o[e(402)](t);for(const t of o)this[e(411)][e(385)](t);for(const[t,o]of n)this[e(411)][e(375)](t,o[o[e(394)]-1]);const i=new Set;for(const[t,s]of n)o[e(381)](t)&&(i[e(402)](s[0]),s[e(394)]>1?n[e(375)](t,s[e(403)](1)):n[e(385)](t),o[e(385)](t));return{removed:Array[e(374)](o),inserted:Array[e(374)](n[e(408)]())[e(380)](),moved:Array[e(374)](i)}}}const u=d;function f(){const t=["_footnoteDefsTracker","end","_sortFootnoteDefinitions","getAttribute","registerPostFixer","getFootnotes","47021nAESuo","getRootNames","init","createPositionAt","push","footnoteId","375330QNUtfL","FootnotesTracker","_handleFootnotesDefinitionsObjectChanges","low","createRangeOn","getFootnotesFormatter","paragraph","length","getFootnotesDefinitionsObjectElement","definition","_footnotes","map","change:data","_handleFootnoteDefinitionsChanges","_handleRemoveFootnoteReferenceById","insert","parent","add","append","footnotesDefinitions","getChanges","setFootnoteFormatter","_updateFootnotesCounters","isPremiumPlugin","631694hRZrYB","pluginName","enqueueChange","405HxLBUf","120wPKkRH","unshift","createRangeIn","set","has","isOfficialPlugin","findIndex","document","_updateFootnoteRefCounter","differ","363eYiHUY","compareWith","listenTo","rootName","root","262047pWGYqn","_footnoteDefsContainerTracker","4bqtIoR","_ensureFootnotesDefinitionsContainerExists","23196MuoJDM","_ensureFootnotesReferencesHaveProperOrder","getChildren","remove","createPositionBefore","setAttribute","high","editor","singleton","indexOf","_footnoteRefsTracker","isEqual","24uqsyFB","reference","_handleFootnotesDefinitionsObjectSync","config","666CjKtSs","footnotes.multiBlock","1552149QuwOji","model","footnoteRef","getFootnote","footnoteDefinition","reset","footnoteCounter","$graveyard","_insertEmptyFootnotesDefinitionsContainer","min","before","get","splice","from","some","childCount","createElement","move","_footnoteFormatter","find","106232WrJEgw","_handleMovedFootnoteReference","_handleFootnoteReferencesChanges","_handleInsertedFootnoteReference","_footnotesDefinitions","after","footnoteInlineContent"];return(f=function(){return t})()}function d(t,e){const o=f();return(d=function(t,e){return o[t-=271]})(t,e)}!function(t){const e=d,o=t();for(;;)try{if(640613===-parseInt(e(299))/1*(-parseInt(e(301))/2)+parseInt(e(321))/3+-parseInt(e(303))/4*(parseInt(e(283))/5)+parseInt(e(315))/6*(parseInt(e(280))/7)+-parseInt(e(341))/8*(-parseInt(e(319))/9)+parseInt(e(360))/10*(-parseInt(e(294))/11)+parseInt(e(284))/12*(-parseInt(e(354))/13))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(f);class h extends t.Plugin{[u(370)]=[];[u(345)]=null;[u(339)]=null;[u(300)];[u(313)];[u(348)];static get[u(281)](){return u(361)}static get[u(289)](){return!0}static get[u(279)](){return!0}constructor(t){const e=u;super(t),this[e(300)]=new l(this[e(310)][e(322)],{elementName:e(275),getElementKey:()=>e(311)}),this[e(313)]=new l(this[e(310)][e(322)],{elementName:e(323),getElementKey:t=>t[e(351)](e(359))}),this[e(348)]=new l(this[e(310)][e(322)],{elementName:e(325),getElementKey:t=>t[e(351)](e(359))})}[u(356)](){const t=u,{editor:e}=this,{model:o,data:n}=e;o[t(291)][t(352)](e=>{const n=t,i=o[n(291)][n(293)][n(276)]();let s=!1;return this[n(362)](e,i)&&(s=!0),this[n(373)](e,i)&&(s=!0),this[n(343)](e,i)&&(s=!0),this[n(304)](e)&&(s=!0),this[n(317)](e)&&(s=!0),this[n(350)](e)&&(s=!0),s}),this[t(296)](o[t(291)],t(372),()=>{const e=t;o[e(282)]({isUndoable:!1},t=>{this[e(302)](t)})},{priority:t(363)}),this[t(296)](n,t(287),()=>{const e=t;this[e(370)]=[],this[e(300)][e(326)](),this[e(313)][e(326)](),this[e(348)][e(326)]()},{priority:t(309)})}[u(368)](){return this[u(345)]}[u(324)](t){const e=u;return this[e(370)][e(340)](e=>e.id===t)||null}[u(353)](){const t=u;return Array[t(334)](this[t(370)])}[u(365)](){return this[u(339)]}[u(277)](t){this[u(339)]=t}[u(278)](t,e=0){const o=u;let n=!1;for(let i=e;i<this[o(370)][o(367)];i++)this[o(292)](t,i)&&(n=!0);return n}[u(329)](t,e){const o=u,n=t[o(337)](o(275),{});return t[o(274)](n,e),this[o(345)]=n,n}[u(302)](t){const e=u;if(!this[e(370)][e(367)]||this[e(345)])return;const o=this[e(370)][0][e(316)][e(298)],n=this[e(329)](t,o);for(const o of this[e(370)])o[e(369)][e(272)]||t[e(271)](o[e(369)],n,e(349));this[e(278)](t)}[u(362)](t,e){const o=u;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(300)][o(276)](e);if(r[o(367)]&&(this[o(345)]=r[0]),i[o(367)])if(i[o(367)]>1||this[o(345)]&&i[o(335)](t=>t!==this[o(345)])){const e=t[o(337)](o(275),{}),s=[];this[o(345)]&&s[o(358)](this[o(345)]),s[o(358)](...i),t[o(271)](e,s[0],o(331));for(const n of s)t[o(338)](t[o(286)](n),t[o(357)](e,o(349))),t[o(306)](n);this[o(345)]=e,this[o(278)](t),n=!0}else this[o(345)]=i[0];if(s[o(367)]&&o(328)===this[o(345)]?.[o(298)][o(297)]){for(const e of this[o(370)])t[o(306)](e[o(316)]),n=!0;this[o(370)]=[],this[o(345)]=null}return n}[u(373)](t,e){const o=u;let n=!1;const i=this[o(310)][o(318)][o(332)](o(320)),{inserted:s,moved:r}=this[o(348)][o(276)](e);for(const e of[...r,...s]){const s=e[o(351)](o(359)),r=this[o(324)](s);r&&(r[o(369)]=e),p(t,i,e)&&(n=!0)}return n}[u(343)](t,e){const o=u;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(313)][o(276)](e);for(const e of i)this[o(374)](t,e)&&(n=!0);for(const e of s)this[o(344)](t,e)&&(n=!0);for(const e of r)this[o(342)](t,e)&&(n=!0);return n}[u(317)](t){const e=u;if(!this[e(345)])return!1;let o=!1;if(this[e(345)][e(336)]!==this[e(370)][e(367)]){const n=[];for(const t of this[e(345)][e(305)]()){const i=t[e(351)](e(359));this[e(324)](i)||(n[e(285)](t),o=!0)}for(const o of n)t[e(306)](o)}const n=new Set,i=[];for(const t of this[e(345)][e(305)]()){const s=t[e(351)](e(359));n[e(288)](s)?(i[e(285)](t),o=!0):n[e(273)](s)}for(const o of i)t[e(306)](o);return this[e(345)][e(336)]||(t[e(306)](this[e(345)]),this[e(345)]=null,o=!0),o}[u(344)](t,e){const o=u;if(this[o(370)][o(340)](t=>t[o(316)]===e))return!1;let n=!1;const i=e[o(351)](o(359)),s=this[o(370)][o(290)](t=>t.id===i);-1!==s&&(t[o(306)](this[o(370)][s][o(316)]),this[o(370)][o(333)](s,1),n=!0);let r=this[o(345)]?function(t,e){const n=o;for(const o of t[n(305)]())if(o[n(351)](n(359))===e)return o;return null}(this[o(345)],i):null;r||(r=t[o(337)](o(325),{footnoteId:i}),this[o(345)]&&(t[o(271)](r,this[o(345)],o(349)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(310)][o(322)],this[o(370)],e);this[o(370)][o(333)](c,0,a);let l=c;return-1!==s&&(l=Math[o(330)](c,s)),this[o(278)](t,l)&&(n=!0),n}[u(374)](t,e){const o=u,n=this[o(370)][o(290)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(370)][n];return o(328)!==s[o(369)][o(298)][o(297)]&&(t[o(306)](s[o(369)]),i=!0),this[o(370)][o(333)](n,1),this[o(278)](t,n)&&(i=!0),i}[u(342)](t,e){const o=u,n=e[o(351)](o(359)),i=this[o(370)][o(290)](t=>t.id===n),s=this[o(370)][i];let r=!1;s[o(316)]=e,this[o(370)][o(333)](i,1);const a=m(this[o(310)][o(322)],this[o(370)],e);return this[o(370)][o(333)](a,0,s),this[o(278)](t,Math[o(330)](i,a))&&(r=!0),r}[u(292)](t,e){const o=u;if(!this[o(345)])return!1;const n=this[o(370)][e];let i;return i=this[o(339)]?this[o(339)]({footnote:n,container:this[o(345)],digits:String(this[o(370)][o(367)])[o(367)],value:e+1}):String(e+1),n[o(316)][o(351)](o(327))!=i&&(t[o(308)](o(327),i,n[o(316)]),!0)}[u(350)](t){const e=u;if(!this[e(345)]||this[e(370)][e(367)]<2)return!1;if(function(t,o){const n=e;if(t[n(367)]!==o[n(367)])return!1;for(let e=0;e<t[n(367)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(370)][e(371)](t=>t.id),Array[e(334)](this[e(345)][e(305)]())[e(371)](t=>t[e(351)](e(359)))))return!1;let o=!1;for(let n=0;n<this[e(370)][e(367)];n++){const i=this[e(370)][n],s=t[e(307)](i[e(369)]),r=t[e(357)](this[e(345)],n);s[e(314)](r)||(t[e(338)](t[e(364)](i[e(369)]),r),o=!0)}return o}[u(304)](t){const e=u;if(!this[e(370)][e(367)])return!1;const{model:o}=this[e(310)];let n=!1;for(let i=0;i<this[e(370)][e(367)]-1;i++){const s=this[e(370)][i],r=this[e(370)][i+1],a=o[e(307)](s[e(316)]),c=o[e(307)](r[e(316)]);e(346)===a[e(295)](c)&&(this[e(342)](t,s[e(316)]),i=-1,n=!0)}return n}}function p(t,e,o){const n=u;if(o[n(336)])return!1;const i=n(e?366:347);return t[n(271)](t[n(337)](i),o),!0}function m(t,e,o){const n=u;if(0===e[n(367)])return 0;const i=t[n(307)](o);for(let o=0;o<e[n(367)];o++){const s=e[o],r=t[n(307)](s[n(316)]);if(n(331)===i[n(295)](r))return o}const s=o[n(298)];let r=-1;for(let t=e[n(367)]-1;t>=0;t--)if(e[t][n(316)][n(298)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(291)][n(355)](),c=a[n(312)](s[n(297)]),l=a[c+1];if(l)for(let t=0;t<e[n(367)];t++)if(e[t][n(316)][n(298)][n(297)]===l)return t;return e[n(367)]}function g(t,e){const o=y();return(g=function(t,e){return o[t-=492]})(t,e)}const w=g;function y(){const t=["string","isEnabled","2242708KSRruS","FootnotesEditing","1687472zjPWAQ","getItems","203492XnxHus","execute","footnoteId","_moveSelectionToFootnoteDefinition","footnoteRef","888138kFViXO","end","5590179XVniDD","refresh","2842164qkHGkf","5iMisJh","isObject","checkChild","plugins","insertObject","getFirstRange","insert-footnote-command-executed-with-invalid-id","change","document","editor","isBlock","27tzefQl","length","_getPositionToInsertFootnote","createElement","model","21xoYhEm","selection","18145510wUmjKd","test","get"];return(y=function(){return t})()}!function(t){const e=g,o=t();for(;;)try{if(466969===-parseInt(e(502))/1+parseInt(e(497))/2*(-parseInt(e(523))/3)+parseInt(e(493))/4+-parseInt(e(507))/5*(parseInt(e(506))/6)+parseInt(e(504))/7+parseInt(e(495))/8*(-parseInt(e(518))/9)+parseInt(e(525))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(y);class b extends t.Command{[w(505)](){const t=w,e=this[t(516)][t(522)][t(515)][t(524)],o=this[t(520)](e);this[t(492)]=!!o}[w(498)](t){const e=w,{editor:o}=this,{model:n}=o,{selection:s}=n[e(515)],r=this[e(520)](s);if(!r)return;const a=o[e(510)][e(527)](e(494)),c=t?.[e(499)]??(0,i.uid)();!function(t){const o=e;return o(528)==typeof t&&t[o(519)]>0&&!/\s/[o(526)](t)&&!/^\d/[o(526)](t)}(c)?(0,i.logWarning)(e(513)):(n[e(514)](t=>{const o=e,i=t[o(521)](o(501),{footnoteId:c});n[o(511)](i,r,null)}),a[e(500)](c))}[w(520)](t){const e=w,{model:o}=this[e(516)],{schema:n}=o,i=t[e(512)]();for(const t of i[e(496)]())if(n[e(517)](t)||n[e(508)](t))return null;const s=i[e(503)];return n[e(509)](s,e(501))?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=p([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[p([68,97,116,101])][p([110,111,119])](),n=t[p([101,100,105,116,111,114])],s=new(window[p([80,114,111,109,105,115,101])])(t=>{n[p([111,110,99,101])](p([114,101,97,100,121]),t)}),r={[p([107,116,121])]:p([69,67]),[p([117,115,101])]:p([115,105,103]),[p([99,114,118])]:p([80,45,50,53,54]),[p([120])]:p([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[p([121])]:p([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[p([97,108,103])]:p([69,83,50,53,54])},a=n[p([99,111,110,102,105,103])][p([103,101,116])](p([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[p([115,116,97,114,116,115,87,105,116,104])](p([101,121]))?JSON[p([112,97,114,115,101])](l(t)):null}function l(t){return window[p([97,116,111,98])](t[p([114,101,112,108,97,99,101])](/-/g,p([43]))[p([114,101,112,108,97,99,101])](/_/g,p([47])))}function u(t){let e=5381;function o(t){for(let o=0;o<t[p([108,101,110,103,116,104])];o++){const n=t[p([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[p([105,115,65,114,114,97,121])](e)?e[p([102,111,114,69,97,99,104])](t):e&&typeof e==p([111,98,106,101,99,116])?Object[p([101,110,116,114,105,101,115])](e)[p([115,111,114,116])]()[p([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[p([83,116,114,105,110,103])](e))}(t),e>>>0}function f(t){return t[p([116,111,83,116,114,105,110,103])](16)[p([112,97,100,83,116,97,114,116])](8,p([48]))}function d(t){return t[p([115,112,108,105,116])]("")[p([114,101,118,101,114,115,101])]()[p([106,111,105,110])]("")}function h(){}function p(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[p([83,116,114,105,110,103])](window[p([112,101,114,102,111,114,109,97,110,99,101])][p([110,111,119])]())[p([114,101,112,108,97,99,101])](p([46]),"");let o=p([117]);for(let n=0;n<t[p([108,101,110,103,116,104])];n+=2){let i=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[p([108,101,110,103,116,104])]&&(i-=e[p([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=p([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=p([86,97,108,105,100])&&async function(){await s,n[p([109,111,100,101,108])][p([99,104,97,110,103,101])]=h,n[p([109,111,100,101,108])][p([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,n[p([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](p([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==p([71,80,76])?p([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[p([115,112,108,105,116])](p([46]));return 3!=t[p([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[p([106,116,105])],o=window[p([112,97,114,115,101,73,110,116])](t[p([115,117,98,115,116,114,105,110,103])](t[p([108,101,110,103,116,104])]-8),16),n={...e,[p([106,116,105])]:t[p([115,117,98,115,116,114,105,110,103])](0,t[p([108,101,110,103,116,104])]-8)};return delete n[p([118,99])],u(n)==o}}}(),t?(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[p([80,114,111,109,105,115,101])])(c=>{if(r())return c(p([86,97,108,105,100]));a(),n[p([100,101,99,111,114,97,116,101])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const h=(0,i.uid)();function m(t){return!!t&&(typeof t===p([111,98,106,101,99,116])||typeof t===p([102,117,110,99,116,105,111,110]))&&typeof t[p([116,104,101,110])]===p([102,117,110,99,116,105,111,110])&&typeof t[p([99,97,116,99,104])]===p([102,117,110,99,116,105,111,110])}function g(n){a(n)[p([116,104,101,110])](t=>t&&t[p([115,116,97,116,117,115])]==p([111,107])?f(u(h+e))!=t[p([118,101,114,105,102,105,99,97,116,105,111,110])]?p([85,115,97,103,101,76,105,109,105,116]):p([86,97,108,105,100]):p([85,115,97,103,101,76,105,109,105,116]))[p([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),p([86,97,108,105,100])):p(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[p([116,104,101,110])](c)[p([99,97,116,99,104])](()=>{c(p([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=p([108,108,99,116,45])+f(u(t)),n=d(f(window[p([77,97,116,104])][p([99,101,105,108])](o/i)));window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([115,101,116,73,116,101,109])](e,n)}function r(){const e=p([108,108,99,116,45])+f(u(t)),o=window[p([108,111,99,97,108,83,116,111,114,97,103,101])][p([103,101,116,73,116,101,109])](e);return o?window[p([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[p([80,114,111,109,105,115,101])])((e,o)=>{t[p([116,104,101,110])](e,o),window[p([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(p([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[p([114,101,113,117,101,115,116,73,100])]:h}},{[p([112,114,105,111,114,105,116,121])]:p([104,105,103,104])}),n[p([111,110])](p([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[p([114,101,116,117,114,110])])&&(l=!0,g(t[p([114,101,116,117,114,110])]))},{[p([112,114,105,111,114,105,116,121])]:p([108,111,119])}),s[p([116,104,101,110])](()=>{l||c(p([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==p([97,117,116,111])}function a(){n[p([101,100,105,116,105,110,103])][p([118,105,101,119])][p([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=p([97,117,116,111])}}(t[p([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[p([106,116,105])])),await async function(){let t=!0;try{const n=a[p([115,112,108,105,116])](p([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[p([97,108,103])]==p([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[p([85,105,110,116,56,65,114,114,97,121])][p([102,114,111,109])](l(n),t=>t[p([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[p([84,101,120,116,69,110,99,111,100,101,114])]))[p([101,110,99,111,100,101])](e+p([46])+o),a=window[p([99,114,121,112,116,111])][p([115,117,98,116,108,101])];if(!a)return;const c=await a[p([105,109,112,111,114,116,75,101,121])](p([106,119,107]),r,{[p([110,97,109,101])]:p([69,67,68,83,65]),[p([110,97,109,101,100,67,117,114,118,101])]:p([80,45,50,53,54])},!1,[p([118,101,114,105,102,121])]);await a[p([118,101,114,105,102,121])]({[p([110,97,109,101])]:p([69,67,68,83,65]),[p([104,97,115,104])]:{[p([110,97,109,101])]:p([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[p([102,101,97,116,117,114,101,115])];return!(!e||!e[p([105,110,99,108,117,100,101,115])](p([42]))&&!e[p([105,110,99,108,117,100,101,115])](p([70,79,79])))}()?function(){const e=[p([101,118,97,108,117,97,116,105,111,110]),p([116,114,105,97,108])][p([105,110,99,108,117,100,101,115])](t[p([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:177552e4;return t[p([101,120,112])]<e}()?p([69,120,112,105,114,101,100]):function(){const e=t[p([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[p([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[p([108,111,99,97,116,105,111,110])].href);if(e[p([105,110,99,108,117,100,101,115])](o))return!0;const n=o[p([115,112,108,105,116])](p([46]));return e[p([102,105,108,116,101,114])](t=>t[p([105,110,99,108,117,100,101,115])](p([42])))[p([109,97,112])](t=>t[p([115,112,108,105,116])](p([46])))[p([102,105,108,116,101,114])](t=>t[p([108,101,110,103,116,104])]<=n[p([108,101,110,103,116,104])])[p([109,97,112])](t=>Array(n[p([108,101,110,103,116,104])]-t[p([108,101,110,103,116,104])])[p([102,105,108,108])](t[0]===p([42])?p([42]):"")[p([99,111,110,99,97,116])](t))[p([115,111,109,101])](t=>n[p([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===p([42])))}()?(t[p([108,105,99,101,110,115,101,84,121,112,101])]==p([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[p([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[p([116,104,101,110])](()=>new(window[p([80,114,111,109,105,115,101])])(t=>{let e=0;n[p([109,111,100,101,108])][p([111,110])](p([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][p([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[p([111,102,102])]())})}))];return window[p([80,114,111,109,105,115,101])][p([114,97,99,101])](e)[p([116,104,101,110])](()=>t)}(p([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&h?new(window[p([80,114,111,109,105,115,101])])((t,o)=>{e[p([116,104,101,110])](t,o),h[p([116,104,101,110])](e=>{e!=p([86,97,108,105,100])&&t(e)},o)}):e||h||p([86,97,108,105,100]))):p([68,111,109,97,105,110,76,105,109,105,116]):p([78,111,116,65,108,108,111,119,101,100]):p([73,110,118,97,108,105,100])):p([73,110,118,97,108,105,100]))}catch{return p([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(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 A=D;function D(t,e){const o=T();return(D=function(t,e){return o[t-=211]})(t,e)}!function(t){const e=D,o=t();for(;;)try{if(938735===parseInt(e(241))/1*(parseInt(e(213))/2)+parseInt(e(216))/3+parseInt(e(295))/4*(parseInt(e(244))/5)+parseInt(e(236))/6+parseInt(e(273))/7*(parseInt(e(245))/8)+parseInt(e(266))/9+parseInt(e(278))/10*(-parseInt(e(220))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[A(239)](){return A(247)}static get[A(268)](){return[v,P.ClipboardPipeline]}static get[A(250)](){return!0}static get[A(223)](){return!0}[A(254)](){this[A(246)]()}[A(246)](){const t=A;this[t(277)](),this[t(276)]()}[A(277)](){const t=A,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(214)](P.ClipboardPipeline),s=o[t(214)](h);this[t(257)](i,t(226),(o,i)=>{const r=t,a=V(n[r(215)](i[r(283)]));if(!a[r(258)])return;const c=s[r(231)](),l=a[r(292)]((t,o)=>{const n=r,i=c[n(261)](t=>t.id===o);if(i){const o=e[n(224)][n(218)](i[n(272)],{isClipboardPipeline:!0}),s=e[n(224)][n(212)][n(251)](o);t[i.id]=s}return t},Object[r(293)](null));i[r(265)][r(275)](r(235),JSON[r(242)](l))})}[A(276)](){const t=A,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(259)],r=n[t(214)](P.ClipboardPipeline),a=n[t(214)](h),c=e[t(230)][t(214)](t(253));let l=null;this[t(257)](s[t(248)],t(252),(e,o)=>{const n=t,i=o[n(265)][n(232)](n(235));l=i?JSON[n(219)](i):null}),this[t(257)](r,t(233),(n,s)=>{const r=t,u=s[r(260)]===this[r(227)].id;u&&r(240)===s[r(249)]||o[r(222)](t=>{const n=r;let f=a[n(264)]();const d=!!f&&Array[n(221)](o[n(248)][n(270)][n(238)]())[n(286)](f);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(279),e(255)))return!0;return!1}(o[n(215)](s[n(283)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(293)](null);for(const e of i[o(225)]())e.is(o(279),o(284))&&e[o(229)](o(271))&&(s[e[o(228)](o(271))]=t[o(280)](e,!0));return Object[o(269)](s)[o(258)]?s:null}(t,s[n(283)])),(f&&!d||!f&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(215)](e))n.is(o(279),o(217))&&i[o(211)](n);for(const e of i)t[o(285)](e)}(t,s[n(283)]),!l)return;const{selection:h}=o[n(248)],p=h[n(263)]()[n(281)];f&&!d||(f=L(t,s[n(283)]),f||=a[n(262)](t,p));const m=Array[n(221)](h[n(287)]())[n(291)](V),g=function(t,e,o){const s=n,r=Object[s(293)](null);for(const{item:n}of t[s(215)](e))if(n.is(s(279),s(255))){const e=n[s(228)](s(271));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(237)](s(271),r[e],n)}return r}(t,s[n(283)],t=>{const e=n;return!u||!!a[e(256)](t)&&!m[e(286)](t)});for(const[o,i]of Object[n(282)](l)){const s=g[o]||o;let r;if(n(274)!=typeof i)r=i,s!==o&&t[n(237)](n(271),s,r);else{r=t[n(267)](n(284),{footnoteId:s});const o=e[n(224)][n(212)][n(218)](i);let a;if(c)a=e[n(224)][n(290)](o,r);else{a=t[n(267)](n(288));const i=e[n(224)][n(290)](o,a);t[n(243)](i,a)}t[n(234)](a,r)}t[n(243)](r,f,n(289))}l=null})})}}function T(){const t=["footnoteRef","getFootnote","listenTo","length","editing","sourceEditorId","find","_insertEmptyFootnotesDefinitionsContainer","getFirstRange","getFootnotesDefinitionsObjectElement","dataTransfer","11559222zwXwEe","createElement","requires","keys","selection","footnoteId","definition","7200641YFjoCL","string","setData","_handlePasteFootnotesDefinitions","_handleCopyFootnotesDefinitions","63752620TlmIyp","element","cloneElement","root","entries","content","footnoteDefinition","remove","includes","getRanges","footnoteInlineContent","end","toModel","flatMap","reduce","create","add","7736AFQvJu","push","htmlProcessor","4uFAnvn","get","createRangeIn","4936170YRDXct","footnotesDefinitions","toView","parse","11lgMwHt","from","change","isPremiumPlugin","data","getChildren","outputTransformation","editor","getAttribute","hasAttribute","config","getFootnotes","getData","contentInsertion","append","application/ckeditor5-footnotes","9139620LLIUgd","setAttribute","getSelectedBlocks","pluginName","drop","832029nnbbZr","stringify","insert","435pdnwJa","8LoEizs","_defineClipboardIntegration","FootnotesClipboard","document","method","isOfficialPlugin","toData","clipboardInput","footnotes.multiBlock","init"];return(T=function(){return t})()}function L(t,e){const o=A;for(const{item:n}of t[o(215)](e))if(n.is(o(279),o(217)))return n;return null}function V(t){const e=A,o=new Set;for(const{item:n}of t)n.is(e(279),e(255))&&o[e(294)](n[e(228)](e(271)));return Array[e(221)](o)}var R=o(311),O=o(355),N=o(929),K=o.n(N),j=o(297),M=o.n(j),B=o(102),U=o.n(B),z=o(123),W=o.n(z),H=o(741),X=o.n(H),J=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=W(),Q.insert=U().bind(null,"head"),Q.domAPI=M(),Q.insertStyleElement=X();K()(J.A,Q);J.A&&J.A.locals&&J.A.locals;class q extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",G(t,R.ButtonView)),e.add("menuBar:insertFootnote",G(t,R.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(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:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var Y=Z;function Z(t,e){var o=$();return(Z=function(t,e){return o[t-=397]})(t,e)}function $(){var t=["isOfficialPlugin","8hDNGsk","646180ikMaoP","isPremiumPlugin","6EumeDz","180858VIdvUb","requires","93577UJjfuP","1749013owBifU","123976YilMSQ","727JevgGf","594QwZZxF","Footnotes","pluginName","228wXiUWA","9GYpPOe","1718890AKztVx"];return($=function(){return t})()}!function(t){for(var e=Z,o=t();;)try{if(125423===parseInt(e(406))/1*(parseInt(e(407))/2)+parseInt(e(401))/3*(-parseInt(e(397))/4)+-parseInt(e(398))/5*(-parseInt(e(400))/6)+parseInt(e(404))/7+-parseInt(e(405))/8+parseInt(e(411))/9*(-parseInt(e(412))/10)+parseInt(e(403))/11*(-parseInt(e(410))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}($);class tt extends t.Plugin{static get[Y(409)](){return Y(408)}static get[Y(402)](){return[v,_,q]}static get[Y(413)](){return!0}static get[Y(399)](){return!0}}const et=ot;function ot(t,e){const o=nt();return(ot=function(t,e){return o[t-=108]})(t,e)}function nt(){const t=["upper-alpha","9516JxvEUP","lower-alpha","15472AfwmKQ","decimal-leading-zero","1085SOvgSJ","2128836fEtaZb","6813cPRapD","488252JIuyqV","lower-latin","340704tZBDlC","upper-roman","upper-latin","6247017Xlnsoo","514544wlfWng","decimal","lower-roman"];return(nt=function(){return t})()}!function(t){const e=ot,o=t();for(;;)try{if(448922===parseInt(e(109))/1+parseInt(e(115))/2+parseInt(e(111))/3+-parseInt(e(119))/4*(-parseInt(e(123))/5)+-parseInt(e(124))/6+parseInt(e(114))/7+-parseInt(e(121))/8*(parseInt(e(108))/9))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[et(116),et(122),et(110),et(113),et(120),et(118),et(117),et(112)];function st(t,e){const o=rt();return(st=function(t,e){return o[t-=206]})(t,e)}function rt(){const t=["getAttribute","isEnabled","model","get","121420snITQn","718464RzUGKh","getFootnotesDefinitionsObjectElement","3579mRRaXk","1344590tnCOaC","change","82XhdFIs","footnotesListStyle","refresh","20axRaJM","_updateFootnotesCounters","includes","147456PGqyJq","execute","615654GBgPhR","value","7XsxoIe","204658KtXokQ","plugins","setAttribute"];return(rt=function(){return t})()}const at=st;!function(t){const e=st,o=t();for(;;)try{if(103308===-parseInt(e(226))/1+parseInt(e(215))/2*(parseInt(e(212))/3)+-parseInt(e(218))/4*(-parseInt(e(209))/5)+parseInt(e(221))/6+parseInt(e(225))/7*(-parseInt(e(210))/8)+parseInt(e(223))/9+parseInt(e(213))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(rt);class ct extends t.Command{[at(217)](){const t=at,{editor:e}=this,o=e[t(227)][t(208)](h)[t(211)]();this[t(206)]=!!o,this[t(224)]=o?.[t(229)](t(216))??null}[at(222)]({value:t}){const e=at,{editor:o}=this,n=o[e(227)][e(208)](h),i=n[e(211)]();i&&it[e(220)](t)&&o[e(207)][e(214)](o=>{const s=e;o[s(228)](s(216),t,i),n[s(219)](o)})}}const lt=ut;function ut(t,e){const o=ft();return(ut=function(t,e){return o[t-=223]})(t,e)}function ft(){const t=["get","8ifBsxR","6GhMJXN","model","155026boCNVd","refresh","plugins","getAttribute","getFootnotesDefinitionsObjectElement","32TYNWjO","execute","1177MGHygB","_updateFootnotesCounters","2423334PEWSdQ","24747KfCHRv","setAttribute","change","5540950OzQpkw","2152367QvITur","12571632BUVUid","footnotesListStart","value","178390UtjvRD","isInteger","isEnabled"];return(ft=function(){return t})()}!function(t){const e=ut,o=t();for(;;)try{if(936947===parseInt(e(239))/1+-parseInt(e(223))/2+parseInt(e(224))/3*(parseInt(e(244))/4)+parseInt(e(227))/5+parseInt(e(237))/6*(parseInt(e(228))/7)+parseInt(e(236))/8*(-parseInt(e(229))/9)+-parseInt(e(232))/10*(-parseInt(e(246))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ft);class dt extends t.Command{[lt(240)](){const t=lt,{editor:e}=this,o=e[t(241)][t(235)](h)[t(243)]();this[t(234)]=!!o,this[t(231)]=o?.[t(242)](t(230))??null}[lt(245)]({value:t}){const e=lt,{editor:o}=this,n=o[e(241)][e(235)](h),i=n[e(243)]();i&&Number[e(233)](t)&&o[e(238)][e(226)](o=>{const s=e;o[s(225)](s(230),t,i),n[s(247)](o)})}}const ht=pt;function pt(t,e){const o=mt();return(pt=function(t,e){return o[t-=384]})(t,e)}function mt(){const t=["upcast","pluginName","insert","2YbQIZo","init","removeAttribute","setAttribute","2126916Fdkevz","parseInt","footnotes.footnotesProperties.defaultListStyle","isNaN","120bvdYYs","hasClass","isOfficialPlugin","decimal","decimal-leading-zero","checkAttribute","getChildren","hasAttribute","footnotes-list","commands","fromCharCode","upper-roman","_getDefaultStartIndex","define","_defineSchema","44065QvmVlB","isPremiumPlugin","lower-latin","4981188DaeVGJ","9nEYvdL","nodeAfter","_getDefaultListStyle","document","_updateFootnotesCounters","_defineFormatter","createRangeOn","element","from","editor","name","toLowerCase","$text","element:ol","removeStyle","start","parent","14951770KsCteB","differ","consumable","getStyle","writer","209DFtymU","lower-alpha","toViewElement","3898540mqqBDu","plugins","4WPKGrb","registerPostFixer","footnotesStart","87814fNfpRi","upper-alpha","upper-latin","list-style-type","model","find","attribute:footnotesListStart:footnotesDefinitions","item","getChanges","_defineConverters","add","get","modelCursor","footnotesStyle","2894109PlcUik","getAttribute","mapper","footnotes.footnotesProperties.defaultStartIndex","footnotesListStart","for","getItems","type","downcast","toUpperCase","consume","schema","viewItem","padStart","_definePostfixer","extend","footnotesDefinitions","floor","lower-roman","config","setStyle","FootnotesPropertiesEditing","position","_formatFootnoteListValue","requires","max","setFootnoteFormatter","attribute:footnotesListStyle:footnotesDefinitions","footnotesListStyle"];return(mt=function(){return t})()}!function(t){const e=pt,o=t();for(;;)try{if(775988===-parseInt(e(461))/1+parseInt(e(404))/2*(-parseInt(e(475))/3)+-parseInt(e(458))/4*(parseInt(e(456))/5)+parseInt(e(430))/6+-parseInt(e(427))/7*(parseInt(e(412))/8)+parseInt(e(431))/9*(-parseInt(e(448))/10)+parseInt(e(453))/11*(parseInt(e(408))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[ht(402)](){return ht(393)}static get[ht(396)](){return[v,h]}static get[ht(414)](){return!0}static get[ht(428)](){return!0}[ht(405)](){const t=ht,{editor:e}=this;e[t(391)][t(425)](t(410),t(415)),e[t(391)][t(425)](t(478),1),e[t(421)][t(471)](t(474),new ct(e)),e[t(421)][t(471)](t(460),new dt(e)),this[t(426)](),this[t(470)](),this[t(436)](),this[t(386)]()}[ht(426)](){const t=ht,{editor:e}=this,{schema:o}=e[t(465)];o[t(387)](t(388),{allowAttributes:[t(400),t(479)]})}[ht(470)](){const t=ht,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(480)](t(401))[t(471)](e=>{const o=t;e.on(o(444),(t,e,n)=>{const s=o,r=e[s(384)],a=e[s(473)]?.[s(447)];r[s(413)](s(420))&&a?.is(s(438),s(388))&&(function(t,e,o,n){const i=s;if(!n[i(417)](e,i(479)))return;let r=1;const a=o[i(450)][i(485)](t,{attributes:i(446)});if(a){const e=Number[i(409)](t[i(476)](i(446)),10);Number[i(411)](e)||(r=e)}!a&&e[i(419)](i(479))||o[i(452)][i(407)](i(479),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(417)](e,i(400)))return;let r=i(415),a=!1;if(o[i(450)][i(485)](t,{attributes:i(482)})){const e={1:i(415),a:i(454),A:i(462),i:i(390),I:i(423)}[t[i(476)](i(482))];e&&(r=e),a=!0}o[i(450)][i(485)](t,{styles:i(464)})&&(r=function(t){const e=i;switch(t){case e(454):return e(429);case e(462):return e(463);default:return t}}(t[i(451)](i(464))),a=!0),!a&&e[i(419)](i(400))||o[i(452)][i(407)](i(400),r,e)}(r,a,n,i))})}),o[t(480)](t(483))[t(471)](e=>{const o=t;e.on(o(467),(t,e,n)=>{const i=o;if(!n[i(450)][i(485)](e[i(468)],t[i(441)]))return;const s=wt(e[i(468)],n[i(477)]),{attributeNewValue:r}=e;null==r||1===r?n[i(452)][i(406)](i(446),s):n[i(452)][i(407)](i(446),String(r),s)}),e.on(o(399),(t,e,n)=>{const i=o;if(!n[i(450)][i(485)](e[i(468)],t[i(441)]))return;const s=wt(e[i(468)],n[i(477)]),{attributeNewValue:r}=e;r&&i(415)!==r?n[i(452)][i(392)](i(464),r,s):n[i(452)][i(445)](i(464),s)})})}[ht(386)](){const t=ht,{editor:e}=this,{model:o}=e,n=e[t(457)][t(472)](h),i=this[t(433)](),s=this[t(424)]();o[t(434)][t(459)](e=>{const r=t,a=o[r(434)][r(449)][r(469)]();let c=!1;for(const t of a){if(r(403)!==t[r(482)]||r(443)===t[r(441)])continue;const n=o[r(437)](t[r(394)][r(432)]);for(const t of n[r(481)]())t.is(r(438),r(388))&&(!t[r(419)](r(479))&&o[r(486)][r(417)](t,r(479))&&(e[r(407)](r(479),s,t),c=!0),!t[r(419)](r(400))&&o[r(486)][r(417)](t,r(400))&&(e[r(407)](r(400),i,t),c=!0))}return c&&n[r(435)](e),c})}[ht(436)](){const t=ht,{editor:e}=this;e[t(457)][t(472)](h)[t(398)](e=>this[t(395)](e))}[ht(433)](){const t=ht;return this[t(440)][t(391)][t(472)](t(410))}[ht(424)](){const t=ht;return this[t(440)][t(391)][t(472)](t(478))}[ht(395)]({container:t,value:e,digits:o}){const n=ht,i=t[n(476)](n(400)),s=t[n(476)](n(479)),r=Math[n(389)](e)+(s??1)-1;switch(i){case n(416):return function(t,e){const o=n;return String(t)[o(385)](e,"0")}(r,Math[n(397)](2,o));case n(454):case n(429):return yt(r,!1);case n(462):case n(463):return yt(r,!0);case n(390):return vt(r,!1);case n(423):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=ht,n=e[o(455)](t);return Array[o(439)](n[o(418)]())[o(466)](t=>t.is(o(438),"ol")&&t[o(413)](o(420)))}function yt(t,e){const o=ht;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(422)](97+t)+n,i=Math[o(389)]((i-1)/26)}return e?n[o(484)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=ht;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(442)]()}class It extends R.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new R.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new R.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,R.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new R.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof R.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new R.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new R.LabeledFieldView(this.locale,R.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=M(),Ct.insertStyleElement=X();K()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[R.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,R.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new R.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=R.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}function xt(){var t=["isPremiumPlugin","5472594KQNuaz","851662iMNQMb","319707eIMAOn","pluginName","276540bBVLJS","110bvCmaw","7jOomFL","isOfficialPlugin","2566473NAKkxj","23090400ISzXdX","112RZxrdK","requires","FootnotesProperties","338576kRRcbj"];return(xt=function(){return t})()}var Et=St;function St(t,e){var o=xt();return(St=function(t,e){return o[t-=411]})(t,e)}!function(t){for(var e=St,o=t();;)try{if(786810===parseInt(e(417))/1+parseInt(e(414))/2+-parseInt(e(424))/3+-parseInt(e(420))/4*(-parseInt(e(421))/5)+parseInt(e(416))/6*(parseInt(e(422))/7)+parseInt(e(411))/8*(parseInt(e(418))/9)+-parseInt(e(425))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(xt);class Pt extends t.Plugin{static get[Et(419)](){return Et(413)}static get[Et(412)](){return[gt,Ft]}static get[Et(423)](){return!0}static get[Et(415)](){return!0}}function At(){var t=["21976aeMhSe","745XnyuVU","18188203FawEmH","6aRkphn","38elfKlV","4473ESxWmC","1154363jlDMvh","845341UNzUuT","295794rdTwUQ","20zmpyIc","8588744QZJhyu"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=477]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(700813===parseInt(e(483))/1+parseInt(e(481))/2*(-parseInt(e(482))/3)+-parseInt(e(477))/4*(parseInt(e(478))/5)+parseInt(e(480))/6*(-parseInt(e(484))/7)+-parseInt(e(487))/8+parseInt(e(485))/9*(-parseInt(e(486))/10)+parseInt(e(479))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();
5
+ */(()=>{var t={102:t=>{"use strict";var e={};t.exports=function(t,o){var n=function(t){if(void 0===e[t]){var o=document.querySelector(t);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement)try{o=o.contentDocument.head}catch(t){o=null}e[t]=o}return e[t]}(t);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(o)}},106:t=>{"use strict";t.exports=function(t){return t[1]}},123:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(o){t.setAttribute(o,e[o])})}},237:t=>{"use strict";t.exports=CKEditor5.dll},291:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-footnotes-styles-list-style-button-size:44px}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list{column-gap:var(--ck-spacing-medium);display:grid;grid-template-columns:repeat(4,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button,.ck.ck-footnotes-definitions-properties>.ck-footnotes-definitions-styles-list .ck-button .ck-icon{height:var(--ck-footnotes-styles-list-style-button-size);width:var(--ck-footnotes-styles-list-style-button-size)}.ck.ck-footnotes-definitions-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-footnotes-definitions-properties>.ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{min-width:100%}",""]);const a=r},297:t=>{"use strict";var e,o=(e=[],function(t,o){return e[t]=o,e.filter(Boolean).join("\n")});function n(t,e,n,i){var s;if(n)s="";else{s="",i.supports&&(s+="@supports (".concat(i.supports,") {")),i.media&&(s+="@media ".concat(i.media," {"));var r=void 0!==i.layer;r&&(s+="@layer".concat(i.layer.length>0?" ".concat(i.layer):""," {")),s+=i.css,r&&(s+="}"),i.media&&(s+="}"),i.supports&&(s+="}")}if(t.styleSheet)t.styleSheet.cssText=o(e,s);else{var a=document.createTextNode(s),c=t.childNodes;c[e]&&t.removeChild(c[e]),c.length?t.insertBefore(a,c[e]):t.appendChild(a)}}var i={singleton:null,singletonCounter:0};t.exports=function(t){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var e=i.singletonCounter++,o=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){n(o,e,!1,t)},remove:function(t){n(o,e,!0,t)}}}},311:(t,e,o)=>{t.exports=o(237)("./src/ui.js")},331:(t,e,o)=>{t.exports=o(237)("./src/clipboard.js")},355:(t,e,o)=>{t.exports=o(237)("./src/icons.js")},584:(t,e,o)=>{t.exports=o(237)("./src/utils.js")},728:(t,e,o)=>{"use strict";o.d(e,{A:()=>a});var n=o(106),i=o.n(n),s=o(779),r=o.n(s)()(i());r.push([t.id,":root{--ck-content-footnotes-list-background-color:none;--ck-content-footnotes-list-separator-color:#000;--ck-content-footnote-font-size:var(--ck-content-font-size-small);--ck-footnotes-widget-label-background-color:#757575}.ck-content .footnote{margin-inline-end:.2em}.ck-content .footnotes{background-color:var(--ck-content-footnotes-list-background-color);font-size:var(--ck-content-footnote-font-size);margin:.9em 0 1.5em;position:relative}.ck-content .footnotes-divider{background:none;border:none;border-top:1px solid var(--ck-content-footnotes-list-separator-color);height:1px;margin:0 0 1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes-divider{margin-left:auto;margin-right:0}.ck-content .footnotes-list{margin:0;padding-inline-start:3em}.ck-content .footnote-backlink{display:inline-block;margin-inline-end:1ch;user-select:none;vertical-align:top;width:auto}.ck-content .footnote-content{display:inline-block;padding:0 4px;vertical-align:top;width:calc(100% - 2em)}.ck-content .footnote-content>p:first-of-type{margin-top:0}.ck-content .footnote-content>p:last-of-type{margin-bottom:0}.ck-content .footnote-content ol{list-style-type:decimal}.ck-content .footnote-content ol ol{list-style-type:lower-latin}.ck-content .footnote-content ol ol ol{list-style-type:lower-roman}.ck-content .footnote-content ol ol ol ol{list-style-type:upper-latin}.ck-content .footnote-content ol ol ol ol ol{list-style-type:upper-roman}.ck.ck-editor__editable .footnotes.ck-widget{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes.ck-widget:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-widget-label-background-color);color:#fff;content:attr(data-footnotes-list-label);font-family:var(--ck-font-face);font-size:10px;line-height:16px;padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);position:absolute;right:10px;top:-1px;white-space:nowrap}[dir=rtl] .ck.ck-editor__editable .footnotes.ck-widget[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-divider{margin-top:0}.ck.ck-editor__editable .footnotes-list{margin-bottom:.65em;margin-top:0}",""]);const a=r},741:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},779:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var o="",n=void 0!==e[5];return e[4]&&(o+="@supports (".concat(e[4],") {")),e[2]&&(o+="@media ".concat(e[2]," {")),n&&(o+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),o+=t(e),n&&(o+="}"),e[2]&&(o+="}"),e[4]&&(o+="}"),o}).join("")},e.i=function(t,o,n,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(n)for(var a=0;a<this.length;a++){var c=this[a][0];null!=c&&(r[c]=!0)}for(var l=0;l<t.length;l++){var 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:()=>tt,FootnotesClipboard:()=>_,FootnotesEditing:()=>v,FootnotesProperties:()=>Pt,FootnotesPropertiesEditing:()=>gt,FootnotesPropertiesUI:()=>Ft,FootnotesStartCommand:()=>dt,FootnotesStyleCommand:()=>ct,FootnotesTracker:()=>u,FootnotesUI:()=>X,InsertFootnoteCommand:()=>b});var t=o(782),e=o(901),i=o(584),s=o(783);const r=a;function a(t,e){const o=c();return(a=function(t,e){return o[t-=316]})(t,e)}function c(){const t=["_trackedElements","elementName","insert","_getElementKey","remove","type","name","28qQtljf","735498FdLONq","nodeAfter","delete","reset","clear","9LuhKqP","rootName","has","length","_elementName","_model","push","createRangeOn","get","element","8LJoblx","416792zSgYiu","add","getElementKey","flat","position","32315dyMLBS","slice","167629vEbPpk","$text","from","3096150wesgzZ","1266349fkdkzg","$graveyard","319671NgFKGy","attributes","root","getItems","getChanges","set","values"];return(c=function(){return t})()}!function(t){const e=a,o=t();for(;;)try{if(108208===-parseInt(e(316))/1+parseInt(e(353))/2+parseInt(e(322))/3+parseInt(e(336))/4*(-parseInt(e(358))/5)+-parseInt(e(337))/6+-parseInt(e(320))/7*(parseInt(e(352))/8)+parseInt(e(342))/9*(parseInt(e(319))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(c);class l{[r(347)];[r(346)];[r(332)];[r(329)]=new Map;constructor(t,e){const o=r;this[o(347)]=t,this[o(346)]=e[o(330)],this[o(332)]=e[o(355)]}[r(340)](){const t=r;this[t(329)][t(341)]()}[r(326)](t){const e=r,o=new Set,n=new Map;for(const i of t){if(e(331)===i[e(334)]&&e(317)!==i[e(335)]&&i[e(357)][e(338)]){const t=this[e(347)][e(349)](i[e(357)][e(338)]);for(const o of t[e(325)]()){if(!o.is(e(351),this[e(346)]))continue;const t=this[e(332)](o);n[e(344)](t)||n[e(327)](t,[]),n[e(350)](t)[e(348)](o)}}if(e(333)===i[e(334)]&&i[e(335)]===this[e(346)]){const t=this[e(332)]({getAttribute:t=>i[e(323)][e(350)](t)});o[e(354)](t)}}for(const[t,n]of this[e(329)])e(321)===n[e(324)][e(343)]&&o[e(354)](t);for(const t of o)this[e(329)][e(339)](t);for(const[t,o]of n)this[e(329)][e(327)](t,o[o[e(345)]-1]);const i=new Set;for(const[t,s]of n)o[e(344)](t)&&(i[e(354)](s[0]),s[e(345)]>1?n[e(327)](t,s[e(359)](1)):n[e(339)](t),o[e(339)](t));return{removed:Array[e(318)](o),inserted:Array[e(318)](n[e(328)]())[e(356)](),moved:Array[e(318)](i)}}}const f=d;!function(t){const e=d,o=t();for(;;)try{if(188644===-parseInt(e(350))/1+-parseInt(e(288))/2*(-parseInt(e(282))/3)+-parseInt(e(299))/4+-parseInt(e(337))/5*(-parseInt(e(357))/6)+-parseInt(e(290))/7+parseInt(e(307))/8*(-parseInt(e(338))/9)+parseInt(e(283))/10*(parseInt(e(353))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(h);class u extends t.Plugin{[f(301)]=[];[f(327)]=null;[f(317)]=null;[f(366)];[f(374)];[f(379)];static get[f(348)](){return f(346)}static get[f(330)](){return!0}static get[f(306)](){return!0}constructor(t){const e=f;super(t),this[e(366)]=new l(this[e(335)][e(296)],{elementName:e(323),getElementKey:()=>e(311)}),this[e(374)]=new l(this[e(335)][e(296)],{elementName:e(367),getElementKey:t=>t[e(305)](e(319))}),this[e(379)]=new l(this[e(335)][e(296)],{elementName:e(295),getElementKey:t=>t[e(305)](e(319))})}[f(285)](){const t=f,{editor:e}=this,{model:o,data:n}=e;o[t(380)][t(314)](e=>{const n=t,i=o[n(380)][n(332)][n(373)]();let s=!1;return this[n(358)](e,i)&&(s=!0),this[n(300)](e,i)&&(s=!0),this[n(341)](e,i)&&(s=!0),this[n(363)](e)&&(s=!0),this[n(309)](e)&&(s=!0),this[n(279)](e)&&(s=!0),s}),this[t(313)](o[t(380)],t(372),()=>{const e=t;o[e(325)]({isUndoable:!1},t=>{this[e(333)](t)})},{priority:t(312)}),this[t(313)](n,t(364),()=>{const e=t;this[e(301)]=[],this[e(366)][e(356)](),this[e(374)][e(356)](),this[e(379)][e(356)]()},{priority:t(329)})}[f(304)](){return this[f(327)]}[f(331)](t){const e=f;return this[e(301)][e(370)](e=>e.id===t)||null}[f(294)](){const t=f;return Array[t(369)](this[t(301)])}[f(324)](){return this[f(317)]}[f(280)](t){this[f(317)]=t}[f(354)](t,e=0){const o=f;let n=!1;for(let i=e;i<this[o(301)][o(292)];i++)this[o(344)](t,i)&&(n=!0);return n}[f(361)](t,e){const o=f,n=t[o(355)](o(323),{});return t[o(287)](n,e),this[o(327)]=n,n}[f(333)](t){const e=f;if(!this[e(301)][e(292)]||this[e(327)])return;const o=this[e(301)][0][e(298)][e(365)],n=this[e(361)](t,o);for(const o of this[e(301)])o[e(368)][e(284)]||t[e(320)](o[e(368)],n,e(342));this[e(354)](t)}[f(358)](t,e){const o=f;let n=!1;const{inserted:i,removed:s,moved:r}=this[o(366)][o(373)](e);if(r[o(292)]&&(this[o(327)]=r[0]),i[o(292)])if(i[o(292)]>1||this[o(327)]&&i[o(303)](t=>t!==this[o(327)])){const e=t[o(355)](o(323),{}),s=[];this[o(327)]&&s[o(286)](this[o(327)]),s[o(286)](...i),t[o(320)](e,s[0],o(343));for(const n of s)t[o(345)](t[o(359)](n),t[o(347)](e,o(342))),t[o(351)](n);this[o(327)]=e,this[o(354)](t),n=!0}else this[o(327)]=i[0];if(s[o(292)]&&o(349)===this[o(327)]?.[o(365)][o(377)]){for(const e of this[o(301)])t[o(351)](e[o(298)]),n=!0;this[o(301)]=[],this[o(327)]=null}return n}[f(300)](t,e){const o=f;let n=!1;const i=this[o(335)][o(310)][o(328)](o(371)),{inserted:s,moved:r}=this[o(379)][o(373)](e);for(const e of[...r,...s]){const s=e[o(305)](o(319)),r=this[o(331)](s);r&&(r[o(368)]=e),p(t,i,e)&&(n=!0)}return n}[f(341)](t,e){const o=f;let n=!1;const{removed:i,inserted:s,moved:r}=this[o(374)][o(373)](e);for(const e of i)this[o(321)](t,e)&&(n=!0);for(const e of s)this[o(362)](t,e)&&(n=!0);for(const e of r)this[o(308)](t,e)&&(n=!0);return n}[f(309)](t){const e=f;if(!this[e(327)])return!1;let o=!1;if(this[e(327)][e(334)]!==this[e(301)][e(292)]){const n=[];for(const t of this[e(327)][e(352)]()){const i=t[e(305)](e(319));this[e(331)](i)||(n[e(291)](t),o=!0)}for(const o of n)t[e(351)](o)}const n=new Set,i=[];for(const t of this[e(327)][e(352)]()){const s=t[e(305)](e(319));n[e(289)](s)?(i[e(291)](t),o=!0):n[e(378)](s)}for(const o of i)t[e(351)](o);return this[e(327)][e(334)]||(t[e(351)](this[e(327)]),this[e(327)]=null,o=!0),o}[f(362)](t,e){const o=f;if(this[o(301)][o(370)](t=>t[o(298)]===e))return!1;let n=!1;const i=e[o(305)](o(319)),s=this[o(301)][o(315)](t=>t.id===i);-1!==s&&(t[o(351)](this[o(301)][s][o(298)]),this[o(301)][o(326)](s,1),n=!0);let r=this[o(327)]?function(t,e){const n=o;for(const o of t[n(352)]())if(o[n(305)](n(319))===e)return o;return null}(this[o(327)],i):null;r||(r=t[o(355)](o(295),{footnoteId:i}),this[o(327)]&&(t[o(320)](r,this[o(327)],o(342)),n=!0));const a={id:i,reference:e,definition:r},c=m(this[o(335)][o(296)],this[o(301)],e);this[o(301)][o(326)](c,0,a);let l=c;return-1!==s&&(l=Math[o(340)](c,s)),this[o(354)](t,l)&&(n=!0),n}[f(321)](t,e){const o=f,n=this[o(301)][o(315)](t=>t.id===e);if(-1===n)return!1;let i=!1;const s=this[o(301)][n];return o(349)!==s[o(368)][o(365)][o(377)]&&(t[o(351)](s[o(368)]),i=!0),this[o(301)][o(326)](n,1),this[o(354)](t,n)&&(i=!0),i}[f(308)](t,e){const o=f,n=e[o(305)](o(319)),i=this[o(301)][o(315)](t=>t.id===n),s=this[o(301)][i];let r=!1;s[o(298)]=e,this[o(301)][o(326)](i,1);const a=m(this[o(335)][o(296)],this[o(301)],e);return this[o(301)][o(326)](a,0,s),this[o(354)](t,Math[o(340)](i,a))&&(r=!0),r}[f(344)](t,e){const o=f;if(!this[o(327)])return!1;const n=this[o(301)][e];let i;return i=this[o(317)]?this[o(317)]({footnote:n,container:this[o(327)],digits:String(this[o(301)][o(292)])[o(292)],value:e+1}):String(e+1),n[o(298)][o(305)](o(316))!=i&&(t[o(376)](o(316),i,n[o(298)]),!0)}[f(279)](t){const e=f;if(!this[e(327)]||this[e(301)][e(292)]<2)return!1;if(function(t,o){const n=e;if(t[n(292)]!==o[n(292)])return!1;for(let e=0;e<t[n(292)];e++)if(t[e]!==o[e])return!1;return!0}(this[e(301)][e(281)](t=>t.id),Array[e(369)](this[e(327)][e(352)]())[e(281)](t=>t[e(305)](e(319)))))return!1;let o=!1;for(let n=0;n<this[e(301)][e(292)];n++){const i=this[e(301)][n],s=t[e(375)](i[e(368)]),r=t[e(347)](this[e(327)],n);s[e(322)](r)||(t[e(345)](t[e(293)](i[e(368)]),r),o=!0)}return o}[f(363)](t){const e=f;if(!this[e(301)][e(292)])return!1;const{model:o}=this[e(335)];let n=!1;for(let i=0;i<this[e(301)][e(292)]-1;i++){const s=this[e(301)][i],r=this[e(301)][i+1],a=o[e(375)](s[e(298)]),c=o[e(375)](r[e(298)]);e(302)===a[e(336)](c)&&(this[e(308)](t,s[e(298)]),i=-1,n=!0)}return n}}function d(t,e){const o=h();return(d=function(t,e){return o[t-=279]})(t,e)}function p(t,e,o){const n=f;if(o[n(334)])return!1;const i=n(e?360:297);return t[n(320)](t[n(355)](i),o),!0}function h(){const t=["6UnGQnv","_handleFootnotesDefinitionsObjectChanges","createRangeIn","paragraph","_insertEmptyFootnotesDefinitionsContainer","_handleInsertedFootnoteReference","_ensureFootnotesReferencesHaveProperOrder","set","root","_footnoteDefsContainerTracker","footnoteRef","definition","from","find","footnotes.multiBlock","change:data","getChanges","_footnoteRefsTracker","createPositionBefore","setAttribute","rootName","add","_footnoteDefsTracker","document","_sortFootnoteDefinitions","setFootnoteFormatter","map","75585hjYEcq","70CQiyUU","parent","init","push","append","16ffnBob","has","2382254dStBEY","unshift","length","createRangeOn","getFootnotes","footnoteDefinition","model","footnoteInlineContent","reference","446928VHQADk","_handleFootnoteDefinitionsChanges","_footnotes","after","some","getFootnotesDefinitionsObjectElement","getAttribute","isPremiumPlugin","8CeCEAb","_handleMovedFootnoteReference","_handleFootnotesDefinitionsObjectSync","config","singleton","low","listenTo","registerPostFixer","findIndex","footnoteCounter","_footnoteFormatter","indexOf","footnoteId","insert","_handleRemoveFootnoteReferenceById","isEqual","footnotesDefinitions","getFootnotesFormatter","enqueueChange","splice","_footnotesDefinitions","get","high","isOfficialPlugin","getFootnote","differ","_ensureFootnotesDefinitionsContainerExists","childCount","editor","compareWith","606895DQWUDV","284067nvhfIN","getRootNames","min","_handleFootnoteReferencesChanges","end","before","_updateFootnoteRefCounter","move","FootnotesTracker","createPositionAt","pluginName","$graveyard","233771WFnkFE","remove","getChildren","916289qwJMFD","_updateFootnotesCounters","createElement","reset"];return(h=function(){return t})()}function m(t,e,o){const n=f;if(0===e[n(292)])return 0;const i=t[n(375)](o);for(let o=0;o<e[n(292)];o++){const s=e[o],r=t[n(375)](s[n(298)]);if(n(343)===i[n(336)](r))return o}const s=o[n(365)];let r=-1;for(let t=e[n(292)]-1;t>=0;t--)if(e[t][n(298)][n(365)]===s){r=t;break}if(-1!==r)return r+1;const a=t[n(380)][n(339)](),c=a[n(318)](s[n(377)]),l=a[c+1];if(l)for(let t=0;t<e[n(292)];t++)if(e[t][n(298)][n(365)][n(377)]===l)return t;return e[n(292)]}const g=y;function w(){const t=["42oFJGlF","isBlock","refresh","insert-footnote-command-executed-with-invalid-id","5053440fkMEiO","_moveSelectionToFootnoteDefinition","plugins","306995VlZVpB","isObject","createElement","181715zbzqea","checkChild","_getPositionToInsertFootnote","1719Qktpji","getItems","19492187cdsoOg","getFirstRange","model","513978bDWjDa","editor","execute","selection","insertObject","28216RHOlaq","change","326nfvxGe","end","get","test","footnoteRef","isEnabled","FootnotesEditing","footnoteId","44gckPYM","document","string","11844reVqXt","length"];return(w=function(){return t})()}function y(t,e){const o=w();return(y=function(t,e){return o[t-=494]})(t,e)}!function(t){const e=y,o=t();for(;;)try{if(353424===parseInt(e(515))/1+-parseInt(e(495))/2*(parseInt(e(506))/3)+-parseInt(e(503))/4*(parseInt(e(518))/5)+-parseInt(e(526))/6*(parseInt(e(508))/7)+parseInt(e(531))/8*(-parseInt(e(521))/9)+parseInt(e(512))/10+parseInt(e(523))/11)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(w);class b extends t.Command{[g(510)](){const t=g,e=this[t(527)][t(525)][t(504)][t(529)],o=this[t(520)](e);this[t(500)]=!!o}[g(528)](t){const e=g,{editor:o}=this,{model:n}=o,{selection:s}=n[e(504)],r=this[e(520)](s);if(!r)return;const a=o[e(514)][e(497)](e(501)),c=t?.[e(502)]??(0,i.uid)();!function(t){const o=e;return o(505)==typeof t&&t[o(507)]>0&&!/\s/[o(498)](t)&&!/^\d/[o(498)](t)}(c)?(0,i.logWarning)(e(511)):(n[e(494)](t=>{const o=e,i=t[o(517)](o(499),{footnoteId:c});n[o(530)](i,r,null)}),a[e(513)](c))}[g(520)](t){const e=g,{model:o}=this[e(527)],{schema:n}=o,i=t[e(524)]();for(const t of i[e(522)]())if(n[e(509)](t)||n[e(516)](t))return null;const s=i[e(496)];return n[e(519)](s,e(499))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[u]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=h([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),o=window[h([68,97,116,101])][h([110,111,119])](),n=t[h([101,100,105,116,111,114])],s=new(window[h([80,114,111,109,105,115,101])])(t=>{n[h([111,110,99,101])](h([114,101,97,100,121]),t)}),r={[h([107,116,121])]:h([69,67]),[h([117,115,101])]:h([115,105,103]),[h([99,114,118])]:h([80,45,50,53,54]),[h([120])]:h([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[h([121])]:h([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[h([97,108,103])]:h([69,83,50,53,54])},a=n[h([99,111,110,102,105,103])][h([103,101,116])](h([108,105,99,101,110,115,101,75,101,121]));function c(t){return t[h([115,116,97,114,116,115,87,105,116,104])](h([101,121]))?JSON[h([112,97,114,115,101])](l(t)):null}function l(t){return window[h([97,116,111,98])](t[h([114,101,112,108,97,99,101])](/-/g,h([43]))[h([114,101,112,108,97,99,101])](/_/g,h([47])))}function f(t){let e=5381;function o(t){for(let o=0;o<t[h([108,101,110,103,116,104])];o++){const n=t[h([99,104,97,114,67,111,100,101,65,116])](o);e=(e<<5)+e+n,e&=e}}return function t(e){Array[h([105,115,65,114,114,97,121])](e)?e[h([102,111,114,69,97,99,104])](t):e&&typeof e==h([111,98,106,101,99,116])?Object[h([101,110,116,114,105,101,115])](e)[h([115,111,114,116])]()[h([102,111,114,69,97,99,104])](([e,n])=>{o(e),t(n)}):o(window[h([83,116,114,105,110,103])](e))}(t),e>>>0}function u(t){return t[h([116,111,83,116,114,105,110,103])](16)[h([112,97,100,83,116,97,114,116])](8,h([48]))}function d(t){return t[h([115,112,108,105,116])]("")[h([114,101,118,101,114,115,101])]()[h([106,111,105,110])]("")}function p(){}function h(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const o=function(){const t=window[h([83,116,114,105,110,103])](window[h([112,101,114,102,111,114,109,97,110,99,101])][h([110,111,119])]())[h([114,101,112,108,97,99,101])](h([46]),"");let o=h([117]);for(let n=0;n<t[h([108,101,110,103,116,104])];n+=2){let i=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](n,n+2));i>=e[h([108,101,110,103,116,104])]&&(i-=e[h([108,101,110,103,116,104])]),o+=e[i]}return o}();n[o]=h([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=h([86,97,108,105,100])&&async function(){await s,n[h([109,111,100,101,108])][h([99,104,97,110,103,101])]=p,n[h([109,111,100,101,108])][h([101,110,113,117,101,117,101,67,104,97,110,103,101])]=p,n[h([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](h([109,111,100,101,108]))}()}(await async function(){let t,e=null,p=null;try{return a==h([71,80,76])?h([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[h([115,112,108,105,116])](h([46]));return 3!=t[h([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=c(t);return e&&o()?e:null;function o(){const t=e[h([106,116,105])],o=window[h([112,97,114,115,101,73,110,116])](t[h([115,117,98,115,116,114,105,110,103])](t[h([108,101,110,103,116,104])]-8),16),n={...e,[h([106,116,105])]:t[h([115,117,98,115,116,114,105,110,103])](0,t[h([108,101,110,103,116,104])]-8)};return delete n[h([118,99])],f(n)==o}}}(),t?(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(p=function(t,e){return new(window[h([80,114,111,109,105,115,101])])(c=>{if(r())return c(h([86,97,108,105,100]));a(),n[h([100,101,99,111,114,97,116,101])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const p=(0,i.uid)();function m(t){return!!t&&(typeof t===h([111,98,106,101,99,116])||typeof t===h([102,117,110,99,116,105,111,110]))&&typeof t[h([116,104,101,110])]===h([102,117,110,99,116,105,111,110])&&typeof t[h([99,97,116,99,104])]===h([102,117,110,99,116,105,111,110])}function g(n){a(n)[h([116,104,101,110])](t=>t&&t[h([115,116,97,116,117,115])]==h([111,107])?u(f(p+e))!=t[h([118,101,114,105,102,105,99,97,116,105,111,110])]?h([85,115,97,103,101,76,105,109,105,116]):h([86,97,108,105,100]):h([85,115,97,103,101,76,105,109,105,116]))[h([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),h([86,97,108,105,100])):h(o-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[h([116,104,101,110])](c)[h([99,97,116,99,104])](()=>{c(h([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=h([108,108,99,116,45])+u(f(t)),n=d(u(window[h([77,97,116,104])][h([99,101,105,108])](o/i)));window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([115,101,116,73,116,101,109])](e,n)}function r(){const e=h([108,108,99,116,45])+u(f(t)),o=window[h([108,111,99,97,108,83,116,111,114,97,103,101])][h([103,101,116,73,116,101,109])](e);return o?window[h([112,97,114,115,101,73,110,116])](d(o),16)*i:null}function a(t){return new(window[h([80,114,111,109,105,115,101])])((e,o)=>{t[h([116,104,101,110])](e,o),window[h([115,101,116,84,105,109,101,111,117,116])](o,12e4)})}}n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,o)=>{if(o[0]!=t)return c(h([85,115,97,103,101,76,105,109,105,116]));o[1]={...o[1],[h([114,101,113,117,101,115,116,73,100])]:p}},{[h([112,114,105,111,114,105,116,121])]:h([104,105,103,104])}),n[h([111,110])](h([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{m(t[h([114,101,116,117,114,110])])&&(l=!0,g(t[h([114,101,116,117,114,110])]))},{[h([112,114,105,111,114,105,116,121])]:h([108,111,119])}),s[h([116,104,101,110])](()=>{l||c(h([85,115,97,103,101,76,105,109,105,116]))})});function r(){return n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==h([97,117,116,111])}function a(){n[h([101,100,105,116,105,110,103])][h([118,105,101,119])][h([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=h([97,117,116,111])}}(t[h([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[h([106,116,105])])),await async function(){let t=!0;try{const n=a[h([115,112,108,105,116])](h([46])),[i,s,r]=n;return e(i),await o(i,s,r),t}catch{return!1}function e(e){const o=c(e);o&&o[h([97,108,103])]==h([69,83,50,53,54])||(t=!1)}async function o(e,o,n){const i=window[h([85,105,110,116,56,65,114,114,97,121])][h([102,114,111,109])](l(n),t=>t[h([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[h([84,101,120,116,69,110,99,111,100,101,114])]))[h([101,110,99,111,100,101])](e+h([46])+o),a=window[h([99,114,121,112,116,111])][h([115,117,98,116,108,101])];if(!a)return;const c=await a[h([105,109,112,111,114,116,75,101,121])](h([106,119,107]),r,{[h([110,97,109,101])]:h([69,67,68,83,65]),[h([110,97,109,101,100,67,117,114,118,101])]:h([80,45,50,53,54])},!1,[h([118,101,114,105,102,121])]);await a[h([118,101,114,105,102,121])]({[h([110,97,109,101])]:h([69,67,68,83,65]),[h([104,97,115,104])]:{[h([110,97,109,101])]:h([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[h([102,101,97,116,117,114,101,115])];return!(!e||!e[h([105,110,99,108,117,100,101,115])](h([42]))&&!e[h([105,110,99,108,117,100,101,115])](h([70,79,79])))}()?function(){const e=[h([101,118,97,108,117,97,116,105,111,110]),h([116,114,105,97,108])][h([105,110,99,108,117,100,101,115])](t[h([108,105,99,101,110,115,101,84,121,112,101])])?o/1e3:1775606400;return t[h([101,120,112])]<e}()?h([69,120,112,105,114,101,100]):function(){const e=t[h([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[h([108,101,110,103,116,104])])return!0;const{hostname:o}=new URL(window[h([108,111,99,97,116,105,111,110])].href);if(e[h([105,110,99,108,117,100,101,115])](o))return!0;const n=o[h([115,112,108,105,116])](h([46]));return e[h([102,105,108,116,101,114])](t=>t[h([105,110,99,108,117,100,101,115])](h([42])))[h([109,97,112])](t=>t[h([115,112,108,105,116])](h([46])))[h([102,105,108,116,101,114])](t=>t[h([108,101,110,103,116,104])]<=n[h([108,101,110,103,116,104])])[h([109,97,112])](t=>Array(n[h([108,101,110,103,116,104])]-t[h([108,101,110,103,116,104])])[h([102,105,108,108])](t[0]===h([42])?h([42]):"")[h([99,111,110,99,97,116])](t))[h([115,111,109,101])](t=>n[h([101,118,101,114,121])]((e,o)=>t[o]===e||t[o]===h([42])))}()?(t[h([108,105,99,101,110,115,101,84,121,112,101])]==h([101,118,97,108,117,97,116,105,111,110])&&(e=function(t){const e=[new(window[h([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[h([116,104,101,110])](()=>new(window[h([80,114,111,109,105,115,101])])(t=>{let e=0;n[h([109,111,100,101,108])][h([111,110])](h([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(o,n)=>{n[0][h([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,1512==e&&(t(),o[h([111,102,102])]())})}))];return window[h([80,114,111,109,105,115,101])][h([114,97,99,101])](e)[h([116,104,101,110])](()=>t)}(h([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),await(e&&p?new(window[h([80,114,111,109,105,115,101])])((t,o)=>{e[h([116,104,101,110])](t,o),p[h([116,104,101,110])](e=>{e!=h([86,97,108,105,100])&&t(e)},o)}):e||p||h([86,97,108,105,100]))):h([68,111,109,97,105,110,76,105,109,105,116]):h([78,111,116,65,108,108,111,119,101,100]):h([73,110,118,97,108,105,100])):h([73,110,118,97,108,105,100]))}catch{return h([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:o,model:n}=this.editor,i=e.get(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})=>x(t,e)}),o.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:o})=>{const n=t.getAttribute("footnoteCounter");return(0,e.toWidget)(x(t,o),o,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",n)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:o}=t.locale,{conversion:n}=t;n.for("upcast").elementToElement({view:{name:"div",classes:"footnotes"},model:"footnotesDefinitions"}),n.for("upcast").add(t=>{t.on("element:ol",(t,e,o)=>{const n=e.viewItem;if(!n.hasClass("footnotes-list")||!e.modelCursor.parent?.is("element","footnotesDefinitions"))return;if(!o.consumable.consume(n,{name:!0,classes:"footnotes-list"}))return;const{modelRange:i,modelCursor:s}=o.convertChildren(e.viewItem,e.modelCursor);e.modelRange=i,e.modelCursor=s}),t.on("element:hr",(t,e,o)=>{const n=e.viewItem;n.hasClass("footnotes-divider")&&e.modelCursor.parent?.is("element","footnotesDefinitions")&&o.consumable.consume(n,{name:!0,classes:"footnotes-divider"})})}),n.for("dataDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:e})=>E(e)}),n.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:n})=>{const i=E(n,{"data-footnotes-list-label":o("Footnotes")}),s=(0,e.toWidget)(i,n,{hasSelectionHandle:!0,label:o("Footnotes")});return n.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:o}=t,n=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,o)=>{const i=e.viewItem;if(!i.hasClass("footnote-definition")||!i.getAttribute("id"))return;const s=i.parent;if(!s.is("element","ol")||!s.hasClass("footnotes-list"))return;if(!o.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=o.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!o.safeInsert(r,e.modelCursor))return;o.consumable.consume(i,{name:!0,attributes:"id",classes:"footnote-definition"});const a=Array.from(i.getChildren()).find(t=>t.is("element")&&t.hasClass("footnote-content"));for(const t of i.getChildren())t.is("element")&&(o.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),o.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(n)o.convertChildren(a,r);else{const t=o.writer.createElement("footnoteInlineContent");o.writer.insert(t,r),o.convertChildren(a,t)}o.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>S(t,e,o)})}_defineBogusParagraphConverters(){const{editor:t}=this,{conversion:e}=t;t.config.get("footnotes.multiBlock")?(e.for("editingDowncast").elementToElement({model:"paragraph",view:I(),converterPriority:"high"}),e.for("dataDowncast").elementToElement({model:"paragraph",view:I({dataPipeline:!0}),converterPriority:"high"}),this.listenTo(t.model.document,"change:data",()=>{!function(t,e){const o=t.document.differ,n=new Set;for(const t of o.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&n.add(e)}for(const t of n.values()){const o=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of o)e.reconvertItem(t)}}(t.model,t.editing)})):(e.for("editingDowncast").elementToElement({model:"footnoteInlineContent",view:I()}),e.for("dataDowncast").elementToElement({model:"footnoteInlineContent",view:(t,{writer:e})=>{const o=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:o,t:n}=t,i=t.model.document.selection;t.keystrokes.set("Ctrl+Alt+F","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:n("Insert footnote"),keystroke:"Ctrl+Alt+F"}]}),this.listenTo(o.view.document,"enter",(t,e)=>{const o=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(o){const n=o.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(n),e.preventDefault(),t.stop()}},{context:e.isWidget})}_defineClickHandlers(){const{editor:t}=this,{editing:e}=t;t.editing.view.addObserver(s.PointerObserver),t.editing.view.addObserver(s.ClickObserver);let o=!1;this.listenTo(e.view.document,"pointerdown",(t,n)=>{const{target:i}=n,s=e.view.document.selection;o=!!(i?.is("element","a")&&i.parent?.is("element","sup")&&i.parent.hasClass("footnote"))&&s.getSelectedElement()===i.parent},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n?.is("element","a"))return;if(n.parent?.is("element","sup")&&n.parent.hasClass("footnote")&&!o)return void e.preventDefault();let i=n.getAttribute("href");if(!i?.startsWith("#"))return;i=i.slice(1);let s=!1;(i.startsWith("ref-")&&this._moveSelectionToFootnoteReference(i.slice(4))||this._moveSelectionToFootnoteDefinition(i))&&(s=!0),s&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:o})=>{if(!k(e))return null;if(!t)return o.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const n=o.createContainerElement("p");return o.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}function k(t){const{parent:e}=t;if(!e?.is("element","footnoteDefinition"))return!1;if(1!=e.childCount)return!1;for(const e of t.getAttributeKeys())if(!e.startsWith("selection:")&&"htmlEmptyBlock"!=e)return!1;return!0}function C(t,e){if(!t.is("element","paragraph"))return!1;const o=e.toViewElement(t);return!!o&&k(t)!==o.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function E(t,e={}){const o=t.createEmptyElement("hr",{class:"footnotes-divider"}),n=t.createContainerElement("ol",{class:"footnotes-list"},t.createSlot());return t.createContainerElement("div",{class:"footnotes",...e},[o,n])}function x(t,e){const o=t.getAttribute("footnoteId"),n=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{href:"#"+o},function(t){const e=this.toDomElement(t);return e.textContent=n,e}),s=e.createContainerElement("sup",{id:"ref-"+o,class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function S(t,o,n,{dataPipeline:i}={}){const{t:s}=n,r=t.getAttribute("footnoteId"),a=o.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?o.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(o.createEditableElement("div",{class:"footnote-content"}),o,{label:s("Footnote content.")});return o.insert(o.createPositionAt(c,0),o.createSlot()),o.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var P=o(331);function A(t,e){const o=T();return(A=function(t,e){return o[t-=368]})(t,e)}const D=A;function T(){const t=["length","entries","definition","editing","_handlePasteFootnotesDefinitions","8232eVqWdG","footnoteDefinition","isOfficialPlugin","getFootnotes","from","footnotesDefinitions","create","pluginName","getSelectedBlocks","7275RWwGOp","contentInsertion","toView","getFootnote","data","method","flatMap","footnoteId","selection","_insertEmptyFootnotesDefinitionsContainer","3506100fEVgSU","string","535942jvdjzT","footnoteRef","getRanges","config","1054823tlrWiF","852YbbTYV","keys","20547iLwrig","_handleCopyFootnotesDefinitions","remove","listenTo","footnotes.multiBlock","1398usgTuh","getFootnotesDefinitionsObjectElement","10NxMwfJ","change","end","setData","append","512BQRMFj","FootnotesClipboard","find","outputTransformation","parse","root","getChildren","dataTransfer","hasAttribute","element","add","sourceEditorId","_defineClipboardIntegration","toModel","content","2669830uQdwnL","requires","includes","footnoteInlineContent","stringify","push","clipboardInput","cloneElement","htmlProcessor","createElement","insert","getAttribute","editor","getFirstRange","drop","createRangeIn","init","toData","reduce","setAttribute","get","application/ckeditor5-footnotes","getData","isPremiumPlugin","document"];return(T=function(){return t})()}!function(t){const e=A,o=t();for(;;)try{if(598208===parseInt(e(393))/1+parseInt(e(394))/2*(parseInt(e(377))/3)+-parseInt(e(387))/4+-parseInt(e(423))/5+-parseInt(e(401))/6*(parseInt(e(368))/7)+-parseInt(e(408))/8*(-parseInt(e(396))/9)+parseInt(e(403))/10*(parseInt(e(389))/11))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(T);class _ extends t.Plugin{static get[D(375)](){return D(409)}static get[D(424)](){return[v,P.ClipboardPipeline]}static get[D(370)](){return!0}static get[D(446)](){return!0}[D(439)](){this[D(420)]()}[D(420)](){const t=D;this[t(397)](),this[t(452)]()}[D(397)](){const t=D,{editor:e}=this,{plugins:o,model:n}=e,i=o[t(443)](P.ClipboardPipeline),s=o[t(443)](u);this[t(399)](i,t(411),(o,i)=>{const r=t,a=V(n[r(438)](i[r(422)]));if(!a[r(448)])return;const c=s[r(371)](),l=a[r(441)]((t,o)=>{const n=r,i=c[n(410)](t=>t.id===o);if(i){const o=e[n(381)][n(379)](i[n(450)],{isClipboardPipeline:!0}),s=e[n(381)][n(431)][n(440)](o);t[i.id]=s}return t},Object[r(374)](null));i[r(415)][r(406)](r(444),JSON[r(427)](l))})}[D(452)](){const t=D,{editor:e}=this,{model:o,plugins:n}=e,{view:s}=e[t(451)],r=n[t(443)](P.ClipboardPipeline),a=n[t(443)](u),c=e[t(392)][t(443)](t(400));let l=null;this[t(399)](s[t(447)],t(429),(e,o)=>{const n=t,i=o[n(415)][n(445)](n(444));l=i?JSON[n(412)](i):null}),this[t(399)](r,t(378),(n,s)=>{const r=t,f=s[r(419)]===this[r(435)].id;f&&r(437)===s[r(382)]||o[r(404)](t=>{const n=r;let u=a[n(402)]();const d=!!u&&Array[n(372)](o[n(447)][n(385)][n(376)]())[n(425)](u);if(!l&&function(t){const e=n;for(const{item:o}of t)if(o.is(e(417),e(390)))return!0;return!1}(o[n(438)](s[n(422)]))&&(l=function(t,e){const o=n,i=L(t,e);if(!i)return null;const s=Object[o(374)](null);for(const e of i[o(414)]())e.is(o(417),o(369))&&e[o(416)](o(384))&&(s[e[o(434)](o(384))]=t[o(430)](e,!0));return Object[o(395)](s)[o(448)]?s:null}(t,s[n(422)])),(u&&!d||!u&&!l)&&function(t,e){const o=n,i=[];for(const{item:n}of t[o(438)](e))n.is(o(417),o(373))&&i[o(428)](n);for(const e of i)t[o(398)](e)}(t,s[n(422)]),!l)return;const{selection:p}=o[n(447)],h=p[n(436)]()[n(413)];u&&!d||(u=L(t,s[n(422)]),u||=a[n(386)](t,h));const m=Array[n(372)](p[n(391)]())[n(383)](V),g=function(t,e,o){const s=n,r=Object[s(374)](null);for(const{item:n}of t[s(438)](e))if(n.is(s(417),s(390))){const e=n[s(434)](s(384));if(!o(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(442)](s(384),r[e],n)}return r}(t,s[n(422)],t=>{const e=n;return!f||!!a[e(380)](t)&&!m[e(425)](t)});for(const[o,i]of Object[n(449)](l)){const s=g[o]||o;let r;if(n(388)!=typeof i)r=i,s!==o&&t[n(442)](n(384),s,r);else{r=t[n(432)](n(369),{footnoteId:s});const o=e[n(381)][n(431)][n(379)](i);let a;if(c)a=e[n(381)][n(421)](o,r);else{a=t[n(432)](n(426));const i=e[n(381)][n(421)](o,a);t[n(433)](i,a)}t[n(407)](a,r)}t[n(433)](r,u,n(405))}l=null})})}}function L(t,e){const o=D;for(const{item:n}of t[o(438)](e))if(n.is(o(417),o(373)))return n;return null}function V(t){const e=D,o=new Set;for(const{item:n}of t)n.is(e(417),e(390))&&o[e(418)](n[e(434)](e(384)));return Array[e(372)](o)}var N=o(311),O=o(355),R=o(929),j=o.n(R),M=o(297),B=o.n(M),K=o(102),U=o.n(K),z=o(123),W=o.n(z),q=o(741),H=o.n(q),G=o(728),Q={attributes:{"data-cke":!0}};Q.setAttributes=W(),Q.insert=U().bind(null,"head"),Q.domAPI=B(),Q.insertStyleElement=H();j()(G.A,Q);G.A&&G.A.locals&&G.A.locals;class X extends t.Plugin{licenseKey;_licenseKeyCheckInterval;static get pluginName(){return"FootnotesUI"}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;e.add("insertFootnote",Y(t,N.ButtonView)),e.add("menuBar:insertFootnote",Y(t,N.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const o=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in o){const n=e,i=o[n];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete o[n],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&o._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&o._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&o._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&o._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&o._showLicenseError("evaluationLimit"),"footnotesLicenseKeyUsageLimit"==t&&o._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function Y(t,e){const o=t.commands.get("insertFootnote");return n=>{const{t:i}=n,s=new e(n),r=s instanceof N.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(o,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:O.IconFootnote,tooltip:!0}),s.on("execute",()=>{o.execute(),t.editing.view.focus()}),s}}var J=$;function Z(){var t=["isOfficialPlugin","isPremiumPlugin","requires","16vWpRtv","10KvYbmW","150269AnTRmI","pluginName","186100PilIdL","334872FMQJOM","3808017CgXjIH","5bHBQrH","22824JKZzlb","183207euqAUU","Footnotes","233514SZZLen"];return(Z=function(){return t})()}function $(t,e){var o=Z();return($=function(t,e){return o[t-=134]})(t,e)}!function(t){for(var e=$,o=t();;)try{if(132169===parseInt(e(137))/1+parseInt(e(146))/2+parseInt(e(135))/3+parseInt(e(145))/4*(parseInt(e(148))/5)+parseInt(e(134))/6+parseInt(e(143))/7*(parseInt(e(141))/8)+-parseInt(e(147))/9*(parseInt(e(142))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(Z);class tt extends t.Plugin{static get[J(144)](){return J(136)}static get[J(140)](){return[v,_,X]}static get[J(138)](){return!0}static get[J(139)](){return!0}}function et(t,e){const o=nt();return(et=function(t,e){return o[t-=259]})(t,e)}const ot=et;function nt(){const t=["1526690NBafSU","upper-latin","252iWCrdi","20ereuhZ","32034eiBARs","568598fSoiBs","1045524EYssVi","lower-alpha","7805331mBpCgH","decimal","lower-roman","15960XjkeBj","lower-latin","8CTjzHQ","upper-roman","upper-alpha","4191300wTAgFT","decimal-leading-zero"];return(nt=function(){return t})()}!function(t){const e=et,o=t();for(;;)try{if(537024===parseInt(e(273))/1+parseInt(e(268))/2+-parseInt(e(261))/3+-parseInt(e(274))/4*(parseInt(e(271))/5)+-parseInt(e(272))/6*(parseInt(e(270))/7)+parseInt(e(263))/8*(parseInt(e(276))/9)+-parseInt(e(266))/10)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(nt);const it=[ot(259),ot(267),ot(262),ot(269),ot(275),ot(265),ot(260),ot(264)];function st(t,e){const o=at();return(st=function(t,e){return o[t-=461]})(t,e)}const rt=st;function at(){const t=["348289GubIBH","execute","4403214xEYVoP","4VPsDwH","isEnabled","getAttribute","value","change","7011taPLFn","23032VBNCCo","59277NLoCpJ","1057wZLLuP","setAttribute","3010065wHORaf","getFootnotesDefinitionsObjectElement","plugins","1560826PFgFsc","footnotesListStyle","refresh","_updateFootnotesCounters","model","includes","get","33110noyUvA"];return(at=function(){return t})()}!function(t){const e=st,o=t();for(;;)try{if(396293===parseInt(e(477))/1+-parseInt(e(469))/2+-parseInt(e(463))/3*(-parseInt(e(480))/4)+-parseInt(e(466))/5+-parseInt(e(479))/6+parseInt(e(464))/7*(-parseInt(e(462))/8)+-parseInt(e(461))/9*(-parseInt(e(476))/10))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(at);class ct extends t.Command{[rt(471)](){const t=rt,{editor:e}=this,o=e[t(468)][t(475)](u)[t(467)]();this[t(481)]=!!o,this[t(483)]=o?.[t(482)](t(470))??null}[rt(478)]({value:t}){const e=rt,{editor:o}=this,n=o[e(468)][e(475)](u),i=n[e(467)]();i&&it[e(474)](t)&&o[e(473)][e(484)](o=>{const s=e;o[s(465)](s(470),t,i),n[s(472)](o)})}}const lt=ft;function ft(t,e){const o=ut();return(ft=function(t,e){return o[t-=209]})(t,e)}function ut(){const t=["3343668DCLCCk","83461iQdXYl","1990672GpYCXI","3VQDuyq","footnotesListStart","isInteger","execute","value","47891PMxagu","1806392RpWDzj","get","getAttribute","change","10QyiBQS","model","setAttribute","2376830odaHqo","isEnabled","refresh","9tsiLDM","getFootnotesDefinitionsObjectElement","_updateFootnotesCounters","10hjLAGO","982883ZGaEat","plugins","24fHhAXV"];return(ut=function(){return t})()}!function(t){const e=ft,o=t();for(;;)try{if(334689===parseInt(e(231))/1*(parseInt(e(210))/2)+-parseInt(e(226))/3*(parseInt(e(232))/4)+parseInt(e(213))/5+parseInt(e(222))/6*(-parseInt(e(224))/7)+parseInt(e(225))/8*(-parseInt(e(216))/9)+-parseInt(e(219))/10*(-parseInt(e(220))/11)+parseInt(e(223))/12)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(ut);class dt extends t.Command{[lt(215)](){const t=lt,{editor:e}=this,o=e[t(221)][t(233)](u)[t(217)]();this[t(214)]=!!o,this[t(230)]=o?.[t(234)](t(227))??null}[lt(229)]({value:t}){const e=lt,{editor:o}=this,n=o[e(221)][e(233)](u),i=n[e(217)]();i&&Number[e(228)](t)&&o[e(211)][e(209)](o=>{const s=e;o[s(212)](s(227),t,i),n[s(218)](o)})}}const pt=ht;function ht(t,e){const o=mt();return(ht=function(t,e){return o[t-=485]})(t,e)}function mt(){const t=["decimal","differ","toUpperCase","writer","removeAttribute","_defineSchema","document","upper-roman","floor","config","_defineFormatter","attribute:footnotesListStart:footnotesDefinitions","24RFWYjV","210683iQYuwz","removeStyle","from","footnotesDefinitions","90606twJgdq","getItems","3232632JAUdCb","element:ol","hasClass","commands","add","item","891832ALAGUB","modelCursor","find","padStart","_formatFootnoteListValue","hasAttribute","133dPFApf","plugins","downcast","createRangeOn","getAttribute","setFootnoteFormatter","list-style-type","9HXGXsM","isNaN","2482vXBRVq","$text","consumable","_updateFootnotesCounters","_getDefaultListStyle","for","isPremiumPlugin","element","footnotesListStart","init","footnotes.footnotesProperties.defaultStartIndex","upper-latin","max","toViewElement","pluginName","define","lower-alpha","isOfficialPlugin","schema","start","lower-latin","3204jtBKVC","requires","decimal-leading-zero","consume","footnotes.footnotesProperties.defaultListStyle","checkAttribute","setStyle","_getDefaultStartIndex","footnotesStyle","_defineConverters","FootnotesPropertiesEditing","14253620ijCgSg","footnotesStart","_definePostfixer","lower-roman","nodeAfter","get","footnotesListStyle","getStyle","upcast","name","extend","fromCharCode","parseInt","position","model","insert","registerPostFixer","getChildren","getChanges","6437900URgtPT","setAttribute","footnotes-list","parent","attribute:footnotesListStyle:footnotesDefinitions","mapper","143Acjqfa","toLowerCase","upper-alpha","viewItem","editor","type"];return(mt=function(){return t})()}!function(t){const e=ht,o=t();for(;;)try{if(911868===-parseInt(e(489))/1*(-parseInt(e(535))/2)+parseInt(e(507))/3*(-parseInt(e(520))/4)+-parseInt(e(586))/5+parseInt(e(512))/6*(-parseInt(e(526))/7)+-parseInt(e(514))/8*(-parseInt(e(533))/9)+-parseInt(e(567))/10+parseInt(e(508))/11*(parseInt(e(556))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(mt);class gt extends t.Plugin{static get[pt(549)](){return pt(566)}static get[pt(557)](){return[v,u]}static get[pt(552)](){return!0}static get[pt(541)](){return!0}[pt(544)](){const t=pt,{editor:e}=this;e[t(504)][t(550)](t(560),t(495)),e[t(504)][t(550)](t(545),1),e[t(517)][t(518)](t(564),new ct(e)),e[t(517)][t(518)](t(568),new dt(e)),this[t(500)](),this[t(565)](),this[t(505)](),this[t(569)]()}[pt(500)](){const t=pt,{editor:e}=this,{schema:o}=e[t(581)];o[t(577)](t(511),{allowAttributes:[t(573),t(543)]})}[pt(565)](){const t=pt,{editor:e}=this,{conversion:o,model:n}=e,{schema:i}=n;o[t(540)](t(575))[t(518)](e=>{const o=t;e.on(o(515),(t,e,n)=>{const s=o,r=e[s(492)],a=e[s(521)]?.[s(486)];r[s(516)](s(485))&&a?.is(s(542),s(511))&&(function(t,e,o,n){const i=s;if(!n[i(561)](e,i(543)))return;let r=1;const a=o[i(537)][i(559)](t,{attributes:i(554)});if(a){const e=Number[i(579)](t[i(530)](i(554)),10);Number[i(534)](e)||(r=e)}!a&&e[i(525)](i(543))||o[i(498)][i(587)](i(543),r,e)}(r,a,n,i),function(t,e,o,n){const i=s;if(!n[i(561)](e,i(573)))return;let r=i(495),a=!1;if(o[i(537)][i(559)](t,{attributes:i(494)})){const e={1:i(495),a:i(551),A:i(491),i:i(570),I:i(502)}[t[i(530)](i(494))];e&&(r=e),a=!0}o[i(537)][i(559)](t,{styles:i(532)})&&(r=function(t){const e=i;switch(t){case e(551):return e(555);case e(491):return e(546);default:return t}}(t[i(574)](i(532))),a=!0),!a&&e[i(525)](i(573))||o[i(498)][i(587)](i(573),r,e)}(r,a,n,i))})}),o[t(540)](t(528))[t(518)](e=>{const o=t;e.on(o(506),(t,e,n)=>{const i=o;if(!n[i(537)][i(559)](e[i(519)],t[i(576)]))return;const s=wt(e[i(519)],n[i(488)]),{attributeNewValue:r}=e;null==r||1===r?n[i(498)][i(499)](i(554),s):n[i(498)][i(587)](i(554),String(r),s)}),e.on(o(487),(t,e,n)=>{const i=o;if(!n[i(537)][i(559)](e[i(519)],t[i(576)]))return;const s=wt(e[i(519)],n[i(488)]),{attributeNewValue:r}=e;r&&i(495)!==r?n[i(498)][i(562)](i(532),r,s):n[i(498)][i(509)](i(532),s)})})}[pt(569)](){const t=pt,{editor:e}=this,{model:o}=e,n=e[t(527)][t(572)](u),i=this[t(539)](),s=this[t(563)]();o[t(501)][t(583)](e=>{const r=t,a=o[r(501)][r(496)][r(585)]();let c=!1;for(const t of a){if(r(582)!==t[r(494)]||r(536)===t[r(576)])continue;const n=o[r(529)](t[r(580)][r(571)]);for(const t of n[r(513)]())t.is(r(542),r(511))&&(!t[r(525)](r(543))&&o[r(553)][r(561)](t,r(543))&&(e[r(587)](r(543),s,t),c=!0),!t[r(525)](r(573))&&o[r(553)][r(561)](t,r(573))&&(e[r(587)](r(573),i,t),c=!0))}return c&&n[r(538)](e),c})}[pt(505)](){const t=pt,{editor:e}=this;e[t(527)][t(572)](u)[t(531)](e=>this[t(524)](e))}[pt(539)](){const t=pt;return this[t(493)][t(504)][t(572)](t(560))}[pt(563)](){const t=pt;return this[t(493)][t(504)][t(572)](t(545))}[pt(524)]({container:t,value:e,digits:o}){const n=pt,i=t[n(530)](n(573)),s=t[n(530)](n(543)),r=Math[n(503)](e)+(s??1)-1;switch(i){case n(558):return function(t,e){const o=n;return String(t)[o(523)](e,"0")}(r,Math[n(547)](2,o));case n(551):case n(555):return yt(r,!1);case n(491):case n(546):return yt(r,!0);case n(570):return vt(r,!1);case n(502):return vt(r,!0);default:return String(r)}}}function wt(t,e){const o=pt,n=e[o(548)](t);return Array[o(510)](n[o(584)]())[o(522)](t=>t.is(o(542),"ol")&&t[o(516)](o(485)))}function yt(t,e){const o=pt;let n="",i=t;for(;i>0;){const t=(i-1)%26;n=String[o(578)](97+t)+n,i=Math[o(503)]((i-1)/26)}return e?n[o(497)]():n}const bt=[{value:1e3,numeral:"M"},{value:900,numeral:"CM"},{value:500,numeral:"D"},{value:400,numeral:"CD"},{value:100,numeral:"C"},{value:90,numeral:"XC"},{value:50,numeral:"L"},{value:40,numeral:"XL"},{value:10,numeral:"X"},{value:9,numeral:"IX"},{value:5,numeral:"V"},{value:4,numeral:"IV"},{value:1,numeral:"I"}];function vt(t,e){const o=pt;let n="",i=t;for(const{value:t,numeral:e}of bt)for(;i>=t;)n+=e,i-=t;return e?n:n[o(490)]()}class It extends N.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new N.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:o}){super(t),this.focusCycler=new N.FocusCycler({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.children=this.createCollection(),this.stylesView=this._appendStylesView(e,o),[this.startIndexFieldView,this.additionalProperties]=this._appendAdditionalPropertiesCollapsibleView(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-footnotes-definitions-properties"]},children:this.children})}render(){if(super.render(),this.stylesView){this.focusables.add(this.stylesView),this.focusTracker.add(this.stylesView.element);for(const t of this.stylesView.children)this.stylesView.focusTracker.add(t.element);(0,N.addKeyboardHandlingForGrid)({keystrokeHandler:this.stylesView.keystrokes,focusTracker:this.stylesView.focusTracker,gridItems:this.stylesView.children,numberOfColumns:()=>i.global.window.getComputedStyle(this.stylesView.element).getPropertyValue("grid-template-columns").split(" ").length,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection})}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element);const t=t=>t.stopPropagation();this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t)}this.keystrokes.listenTo(this.element)}focus(){this.focusCycler.focusFirst()}focusLast(){this.focusCycler.focusLast()}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_appendStylesView(t,e){const o=new N.View(this.locale);return o.children=o.createCollection(),o.children.addMany(t),o.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:o.children}),o.children.delegate("execute").to(this),o.focus=function(){for(const t of this.children)if(t instanceof N.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},o.focusTracker=new i.FocusTracker,o.keystrokes=new i.KeystrokeHandler,o.render(),o.keystrokes.listenTo(o.element),this.children.add(o),o}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),o=[e],n=new N.CollapsibleView(this.locale,o);return n.set({label:t("Footnotes properties"),isCollapsed:!0}),n.buttonView.bind("isEnabled").toMany(o,"isEnabled",(...t)=>t.some(t=>t)),n.buttonView.on("change:isEnabled",(t,e,o)=>{o||(n.isCollapsed=!0)}),this.children.add(n),[e,n]}_createStartIndexPropertyView(){const{t}=this.locale,e=new N.LabeledFieldView(this.locale,N.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,max:Math.pow(2,30),step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const o=e.fieldView.element,n=o.valueAsNumber;Number.isNaN(n)?e.errorText=t("Invalid footnotes start index value."):o.checkValidity()?this.fire("footnotesListStart",{startIndex:n}):e.errorText=t(n<0?"Footnotes start index must be greater than 0.":"Footnotes start index is too large.")}),e}}var kt=o(291),Ct={attributes:{"data-cke":!0}};Ct.setAttributes=W(),Ct.insert=U().bind(null,"head"),Ct.domAPI=B(),Ct.insertStyleElement=H();j()(kt.A,Ct);kt.A&&kt.A.locals&&kt.A.locals;class Ft extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[N.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var o;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(o=t,t=>{const{t:e}=t,n=o.commands.get("footnotesStyle"),i=(0,N.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(n,"isEnabled"),s.set({label:e("Footnotes style"),icon:O.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:o}=t.locale,n=o("Footnotes definitions styles"),i=function(t){const e=t.locale.t;return[{label:e("Toggle the decimal footnotes style"),tooltip:e("Decimal footnotes"),style:"decimal",icon:O.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:O.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:O.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:O.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:O.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:O.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:o,icon:n,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new N.ButtonView(e);return a.set({label:o,icon:n,tooltip:i}),a.bind("isOn").to(r,"value",t=>t===s),a.bind("isEnabled").to(r,"isEnabled"),a.on("execute",()=>{t.execute("footnotesStyle",{value:s}),t.editing.view.focus()}),a}}(t))}(t),s=new It(t.locale,{styleGridAriaLabel:n,styleButtonViews:i}),r=t.commands.get("footnotesStart");return s.startIndexFieldView.bind("isEnabled").to(r),s.startIndexFieldView.fieldView.bind("value").to(r),s.on("footnotesListStart",(e,o)=>{t.execute("footnotesStart",{value:o.startIndex})}),s.delegate("execute").to(e),s}({editor:o,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:o}=t.locale,n=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=N.BalloonPanelView;n.register("footnotesDefinitions",{ariaLabel:o("Footnotes definitions toolbar"),items:t.config.get("footnotes.footnotesProperties.toolbar"),balloonClassName:"ck-footnotes-style-balloon ck-toolbar-container",getRelatedElement:t=>{let e=t.getFirstPosition()?.parent;return e?.is("$text")&&(e=e.parent),e?.is("element")?e.findAncestor(F):null},positions:[i.southArrowNorth,i.southArrowNorthMiddleWest,i.southArrowNorthMiddleEast,i.southArrowNorthWest,i.southArrowNorthEast,i.northArrowSouth,i.northArrowSouthMiddleWest,i.northArrowSouthMiddleEast,i.northArrowSouthWest,i.northArrowSouthEast,i.viewportStickyNorth]})}}var Et=xt;function xt(t,e){var o=St();return(xt=function(t,e){return o[t-=232]})(t,e)}function St(){var t=["isPremiumPlugin","3034431zLrPvE","2908445uSNflb","2VbauUP","302895tGeMhZ","FootnotesProperties","3666736LIBZIf","245238lkCMbN","pluginName","1051516cINxCG","168EEJMib","isOfficialPlugin","2947161zpBSgp","requires"];return(St=function(){return t})()}!function(t){for(var e=xt,o=t();;)try{if(741453===parseInt(e(244))/1+parseInt(e(243))/2*(-parseInt(e(238))/3)+-parseInt(e(235))/4+parseInt(e(242))/5+parseInt(e(236))/6*(parseInt(e(233))/7)+parseInt(e(232))/8+-parseInt(e(241))/9)break;o.push(o.shift())}catch(t){o.push(o.shift())}}(St);class Pt extends t.Plugin{static get[Et(234)](){return Et(245)}static get[Et(239)](){return[gt,Ft]}static get[Et(237)](){return!0}static get[Et(240)](){return!0}}function At(){var t=["12vpzvvX","92ckJDvl","20447lqdAYk","560CPtwsk","100205donFUD","72837bpNbyr","1344051kyQKYu","5385544yyynFT","63274cuFRnU","828cQXpQe","1844711LspSGq","2MSGXfC"];return(At=function(){return t})()}function Dt(t,e){var o=At();return(Dt=function(t,e){return o[t-=327]})(t,e)}!function(t){for(var e=Dt,o=t();;)try{if(389564===-parseInt(e(335))/1*(parseInt(e(332))/2)+-parseInt(e(330))/3+parseInt(e(337))/4*(-parseInt(e(328))/5)+parseInt(e(333))/6*(parseInt(e(338))/7)+parseInt(e(331))/8+-parseInt(e(329))/9*(-parseInt(e(327))/10)+-parseInt(e(334))/11*(parseInt(e(336))/12))break;o.push(o.shift())}catch(t){o.push(o.shift())}}(At)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=n})();