@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20251015.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/LICENSE.md +18 -0
- package/README.md +45 -0
- package/build/footnotes.js +4 -0
- package/ckeditor5-metadata.json +65 -0
- package/dist/index-content.css +73 -0
- package/dist/index-editor.css +81 -0
- package/dist/index.css +184 -0
- package/dist/index.js +23 -0
- package/lang/contexts.json +26 -0
- package/package.json +73 -0
- package/src/augmentation.d.ts +34 -0
- package/src/augmentation.js +23 -0
- package/src/commands/insertfootnotecommand.d.ts +20 -0
- package/src/commands/insertfootnotecommand.js +23 -0
- package/src/footnotes.d.ts +33 -0
- package/src/footnotes.js +23 -0
- package/src/footnotesclipboard.d.ts +38 -0
- package/src/footnotesclipboard.js +23 -0
- package/src/footnotesconfig.d.ts +30 -0
- package/src/footnotesconfig.js +23 -0
- package/src/footnotesediting.d.ts +47 -0
- package/src/footnotesediting.js +23 -0
- package/src/footnotesproperties/commands/footnotesstartcommand.d.ts +28 -0
- package/src/footnotesproperties/commands/footnotesstartcommand.js +23 -0
- package/src/footnotesproperties/commands/footnotesstylecommand.d.ts +29 -0
- package/src/footnotesproperties/commands/footnotesstylecommand.js +23 -0
- package/src/footnotesproperties/footnotespropertiesconfig.d.ts +53 -0
- package/src/footnotesproperties/footnotespropertiesconfig.js +23 -0
- package/src/footnotesproperties/footnotespropertiesediting.d.ts +36 -0
- package/src/footnotesproperties/footnotespropertiesediting.js +23 -0
- package/src/footnotesproperties/footnotespropertiesui.d.ts +41 -0
- package/src/footnotesproperties/footnotespropertiesui.js +23 -0
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +15 -0
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +23 -0
- package/src/footnotesproperties.d.ts +32 -0
- package/src/footnotesproperties.js +23 -0
- package/src/footnotestracker.d.ts +102 -0
- package/src/footnotestracker.js +23 -0
- package/src/footnotesui.d.ts +31 -0
- package/src/footnotesui.js +23 -0
- package/src/index.d.ts +21 -0
- package/src/index.js +23 -0
- package/src/modelelementtracker.d.ts +56 -0
- package/src/modelelementtracker.js +23 -0
- package/theme/footnotes.css +149 -0
- package/theme/footnotesproperties.css +54 -0
package/CHANGELOG.md
ADDED
package/LICENSE.md
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Software License Agreement
|
|
2
|
+
==========================
|
|
3
|
+
|
|
4
|
+
**CKEditor 5 Footnotes feature** (https://ckeditor.com/ckeditor-5/)<br>
|
|
5
|
+
Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
6
|
+
|
|
7
|
+
CKEditor 5 Footnotes feature is licensed under a commercial license and is protected by copyright law.
|
|
8
|
+
For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
|
|
9
|
+
|
|
10
|
+
Sources of Intellectual Property Included in CKEditor 5 Footnotes feature
|
|
11
|
+
--------------------------------------------------------------------------------
|
|
12
|
+
|
|
13
|
+
Where not otherwise indicated, all CKEditor 5 Footnotes feature content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
14
|
+
|
|
15
|
+
Trademarks
|
|
16
|
+
----------
|
|
17
|
+
|
|
18
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
package/README.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
CKEditor 5 Footnotes
|
|
2
|
+
=====================================
|
|
3
|
+
|
|
4
|
+
[](https://www.npmjs.com/package/@ckeditor/ckeditor5-footnotes)
|
|
5
|
+
|
|
6
|
+
This package contains a Footnotes feature for CKEditor 5. It allows you to add footnotes to your editor content, making it easier to provide additional context or citations without cluttering the main text.
|
|
7
|
+
|
|
8
|
+
This is a premium feature. Sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/checkout?plan=free), or see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing) for more information.
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
|
|
12
|
+
This plugin is part of the `ckeditor5-premium-features` package. Install the whole package to use it.
|
|
13
|
+
|
|
14
|
+
```bash
|
|
15
|
+
npm install ckeditor5-premium-features
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
## Create free account
|
|
19
|
+
|
|
20
|
+
If you want to check full CKEditor 5 capabilities, sign up for a [free non-commitment 14-day trial](https://portal.ckeditor.com/checkout?plan=free).
|
|
21
|
+
|
|
22
|
+
## Demo
|
|
23
|
+
|
|
24
|
+
Check out the [demo in the Export with inline styles feature](https://ckeditor.com/docs/ckeditor5/latest/features/footnotes.html) guide.
|
|
25
|
+
|
|
26
|
+
## Documentation
|
|
27
|
+
|
|
28
|
+
See the [`@ckeditor/ckeditor5-footnotes` package](https://ckeditor.com/docs/ckeditor5/latest/api/footnotes.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/) as well as the [Footnotes](https://ckeditor.com/docs/ckeditor5/latest/features/footnotes.html) feature guide.
|
|
29
|
+
|
|
30
|
+
## Getting support
|
|
31
|
+
|
|
32
|
+
CKEditor 5 Footnotes feature comes with outstanding support from a dedicated team of customer care specialists, QA engineers and CKEditor 5 developers. The team will gladly assist you in all aspects from setting up your account to integrating CKEditor 5 Footnotes feature with your application.
|
|
33
|
+
|
|
34
|
+
As a licensed CKEditor 5 Footnotes feature user you can report bugs and request features directly through the CKEditor Ecosystem customer dashboard.
|
|
35
|
+
|
|
36
|
+
## License
|
|
37
|
+
|
|
38
|
+
**CKEditor 5 Footnotes feature** (https://ckeditor.com/ckeditor-5/)<br>
|
|
39
|
+
Copyright (c) 2003–2025, [CKSource Holding sp. z o.o.](https://cksource.com) All rights reserved.
|
|
40
|
+
|
|
41
|
+
CKEditor 5 Footnotes feature is licensed under a commercial license and is protected by copyright law. For more information, see: [https://ckeditor.com/pricing](https://ckeditor.com/pricing).
|
|
42
|
+
|
|
43
|
+
### Trademarks
|
|
44
|
+
|
|
45
|
+
**CKEditor** is a trademark of [CKSource Holding sp. z o.o.](https://cksource.com) All other brand and product names are trademarks, registered trademarks, or service marks of their respective holders.
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md.
|
|
4
|
+
*/(()=>{var t={1:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(369),i=n.n(o),s=n(242),r=n.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},62:(t,e,n)=>{"use strict";n.d(e,{A:()=>a});var o=n(369),i=n.n(o),s=n(242),r=n.n(s)()(i());r.push([t.id,':root{--ck-footnotes-list-widget-label-background-color:#757575;--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-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:1.9em 0 1.5em;padding-inline-start:3em;position:relative}.ck-content .footnotes:before{border-top:1px solid var(--ck-content-footnotes-list-separator-color);content:"";left:0;position:absolute;top:-1em;width:min(30%,350px)}[dir=rtl] .ck-content .footnotes:before{left:auto;right:0}.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-content .footnote-content ul{list-style-type:disc}.ck-content .footnote-content ul ul{list-style-type:circle}.ck-content .footnote-content ul ul ul,.ck-content .footnote-content ul ul ul ul{list-style-type:square}.ck.ck-editor__editable .footnote>a{pointer-events:none}.ck.ck-editor__editable .footnotes-wrapper{display:flow-root;margin:.9em 0 .85em;position:relative}.ck.ck-editor__editable .footnotes-wrapper:not(:hover):not(.ck-widget_selected){outline:1px solid var(--ck-color-base-border)}.ck.ck-editor__editable .footnotes-wrapper[data-footnotes-list-label]:after{background-color:var(--ck-footnotes-list-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-wrapper[data-footnotes-list-label]:after{left:10px;right:auto}.ck.ck-editor__editable .footnotes-wrapper>.footnotes{margin-bottom:.65em;margin-top:1em}',""]);const a=r},114:t=>{"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},162:t=>{"use strict";var e,n=(e=[],function(t,n){return e[t]=n,e.filter(Boolean).join("\n")});function o(t,e,o,i){var s;if(o)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=n(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++,n=i.singleton||(i.singleton=t.insertStyleElement(t));return{update:function(t){o(n,e,!1,t)},remove:function(t){o(n,e,!0,t)}}}},237:t=>{"use strict";t.exports=CKEditor5.dll},242:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",o=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),o&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),o&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,o,i,s){"string"==typeof t&&(t=[[null,t,void 0]]);var r={};if(o)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]);o&&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),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),i&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=i):u[4]="".concat(i)),e.push(u))}},e}},311:(t,e,n)=>{t.exports=n(237)("./src/ui.js")},331:(t,e,n)=>{t.exports=n(237)("./src/clipboard.js")},355:(t,e,n)=>{t.exports=n(237)("./src/icons.js")},369:t=>{"use strict";t.exports=function(t){return t[1]}},469:t=>{"use strict";var e={};t.exports=function(t,n){var o=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!o)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");o.appendChild(n)}},584:(t,e,n)=>{t.exports=n(237)("./src/utils.js")},606:t=>{"use strict";t.exports=function(t,e){Object.keys(e).forEach(function(n){t.setAttribute(n,e[n])})}},782:(t,e,n)=>{t.exports=n(237)("./src/core.js")},783:(t,e,n)=>{t.exports=n(237)("./src/engine.js")},901:(t,e,n)=>{t.exports=n(237)("./src/widget.js")},990:t=>{"use strict";var e=[];function n(t){for(var n=-1,o=0;o<e.length;o++)if(e[o].identifier===t){n=o;break}return n}function o(t,o){for(var s={},r=[],a=0;a<t.length;a++){var c=t[a],l=o.base?c[0]+o.base:c[0],u=s[l]||0,f="".concat(l," ").concat(u);s[l]=u+1;var d=n(f),p={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(p);else{var h=i(p,o);o.byIndex=a,e.splice(a,0,{identifier:f,updater:h,references:1})}r.push(f)}return r}function i(t,e){var n=e.domAPI(e);n.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;n.update(t=e)}else n.remove()}}t.exports=function(t,i){var s=o(t=t||[],i=i||{});return function(t){t=t||[];for(var r=0;r<s.length;r++){var a=n(s[r]);e[a].references--}for(var c=o(t,i),l=0;l<s.length;l++){var u=n(s[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}s=c}}}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var s=e[o]={id:o,exports:{}};return t[o](s,s.exports,n),s.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{Footnotes:()=>Z,FootnotesClipboard:()=>A,FootnotesEditing:()=>v,FootnotesProperties:()=>xt,FootnotesPropertiesEditing:()=>dt,FootnotesPropertiesUI:()=>It,FootnotesStartCommand:()=>lt,FootnotesStyleCommand:()=>st,FootnotesTracker:()=>d,FootnotesUI:()=>H,InsertFootnoteCommand:()=>b});var t=n(782),e=n(901),i=n(584),s=n(783);function r(t,e){const n=c();return(r=function(t,e){return n[t-=379]})(t,e)}const a=r;function c(){const t=["36vrcYVZ","getChanges","remove","2064537bqyjrc","element","position","slice","1590897UMdSCi","32CzHjpx","push","name","set","root","rootName","2737700ylPQYG","get","12WrUjsN","_trackedElements","646446YzqAda","_elementName","attributes","nodeAfter","from","_model","flat","4677080uCdGlT","830825DdkXSw","2uauVVi","$graveyard","248649RBvbJt","elementName","_getElementKey","createRangeOn","type","values","length","28HPBIzd","$text","insert","getItems","add","has","getElementKey","delete"];return(c=function(){return t})()}!function(t){const e=r,n=t();for(;;)try{if(470555===parseInt(e(408))/1*(parseInt(e(409))/2)+parseInt(e(411))/3*(parseInt(e(398))/4)+-parseInt(e(407))/5+parseInt(e(400))/6*(-parseInt(e(418))/7)+parseInt(e(390))/8*(parseInt(e(385))/9)+parseInt(e(396))/10+-parseInt(e(389))/11*(parseInt(e(382))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(c);class l{[a(405)];[a(401)];[a(413)];[a(399)]=new Map;constructor(t,e){const n=a;this[n(405)]=t,this[n(401)]=e[n(412)],this[n(413)]=e[n(380)]}[a(383)](t){const e=a,n=new Set,o=new Map;for(const i of t){if(e(420)===i[e(415)]&&e(419)!==i[e(392)]&&i[e(387)][e(403)]){const t=this[e(405)][e(414)](i[e(387)][e(403)]);for(const n of t[e(421)]()){if(!n.is(e(386),this[e(401)]))continue;const t=this[e(413)](n);o[e(379)](t)||o[e(393)](t,[]),o[e(397)](t)[e(391)](n)}}if(e(384)===i[e(415)]&&i[e(392)]===this[e(401)]){const t=this[e(413)]({getAttribute:t=>i[e(402)][e(397)](t)});n[e(422)](t)}}for(const[t,o]of this[e(399)])e(410)===o[e(394)][e(395)]&&n[e(422)](t);for(const t of n)this[e(399)][e(381)](t);for(const[t,n]of o)this[e(399)][e(393)](t,n[n[e(417)]-1]);const i=new Set;for(const[t,s]of o)n[e(379)](t)&&(i[e(422)](s[0]),s[e(417)]>1?o[e(393)](t,s[e(388)](1)):o[e(381)](t),n[e(381)](t));return{removed:Array[e(404)](n),inserted:Array[e(404)](o[e(416)]())[e(406)](),moved:Array[e(404)](i)}}}const u=h;function f(){const t=["push","_insertEmptyFootnotesDefinitionsContainer","footnoteCounter","$graveyard","_ensureFootnotesDefinitionsContainerExists","has","footnoteRef","unshift","filter","some","splice","model","createPositionBefore","end","footnoteId","insert","rootName","_handleInsertedFootnoteReference","_footnotesDefinitions","remove","document","parent","createRangeIn","setAttribute","createRangeOn","getFootnotes","get","901686oCllJm","_handleFootnoteReferencesChanges","enqueueChange","from","FootnotesTracker","_handleRemoveFootnoteReferenceById","definition","findIndex","setFootnoteFormatter","_footnoteDefsTracker","registerPostFixer","add","footnotes.multiBlock","_handleFootnoteDefinitionsChanges","pluginName","move","paragraph","before","root","footnoteDefinition","getChanges","_sortFootnoteDefinitions","footnotesDefinitions","createPositionAt","_footnoteDefsContainerTracker","append","createElement","childCount","2TByqJX","listenTo","_handleMovedFootnoteReference","getFootnotesDefinitionsObjectElement","indexOf","3164511PGOOGv","_handleFootnotesDefinitionsObjectChanges","getFootnotesFormatter","_footnotes","find","_handleFootnotesDefinitionsObjectSync","getRootNames","1866040khECtm","singleton","low","_footnoteRefsTracker","1229020crtzJl","length","footnoteInlineContent","1539576tmBgrJ","getAttribute","reference","getChildren","init","1566690FQntLk","isEqual","config","min","differ","_updateFootnoteRefCounter","editor","change:data","after","_ensureFootnotesReferencesHaveProperOrder","compareWith","_footnoteFormatter","302069GPwNes","getFootnote","isOfficialPlugin","_updateFootnotesCounters","map","isPremiumPlugin"];return(f=function(){return t})()}!function(t){const e=h,n=t();for(;;)try{if(288028===parseInt(e(488))/1*(parseInt(e(452))/2)+-parseInt(e(476))/3+parseInt(e(471))/4+-parseInt(e(468))/5+parseInt(e(424))/6+parseInt(e(457))/7+-parseInt(e(464))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(f);class d extends t.Plugin{[u(460)]=[];[u(415)]=null;[u(487)]=null;[u(448)];[u(467)];[u(433)];static get[u(438)](){return u(428)}static get[u(490)](){return!0}static get[u(493)](){return!0}constructor(t){const e=u;super(t),this[e(448)]=new l(this[e(482)][e(408)],{elementName:e(446),getElementKey:()=>e(465)}),this[e(467)]=new l(this[e(482)][e(408)],{elementName:e(403),getElementKey:t=>t[e(472)](e(411))}),this[e(433)]=new l(this[e(482)][e(408)],{elementName:e(443),getElementKey:t=>t[e(472)](e(411))})}[u(475)](){const t=u,{editor:e}=this,{model:n}=e;n[t(417)][t(434)](e=>{const o=t,i=n[o(417)][o(480)][o(444)]();let s=!1;return this[o(458)](e,i)&&(s=!0),this[o(437)](e,i)&&(s=!0),this[o(425)](e,i)&&(s=!0),this[o(485)](e)&&(s=!0),this[o(462)](e)&&(s=!0),this[o(445)](e)&&(s=!0),s}),this[t(453)](n[t(417)],t(483),()=>{const e=t;n[e(426)]({isUndoable:!1},t=>{this[e(401)](t)})},{priority:t(466)})}[u(455)](){return this[u(415)]}[u(489)](t){const e=u;return this[e(460)][e(461)](e=>e.id===t)||null}[u(422)](){const t=u;return Array[t(427)](this[t(460)])}[u(459)](){return this[u(487)]}[u(432)](t){this[u(487)]=t}[u(491)](t,e=0){const n=u;let o=!1;for(let i=e;i<this[n(460)][n(469)];i++)this[n(481)](t,i)&&(o=!0);return o}[u(398)](t,e){const n=u,o=t[n(450)](n(446),{});return t[n(449)](o,e),this[n(415)]=o,o}[u(401)](t){const e=u;if(!this[e(460)][e(469)]||this[e(415)])return;const n=this[e(460)][0][e(473)][e(442)],o=this[e(398)](t,n);for(const n of this[e(460)])n[e(430)][e(418)]||t[e(412)](n[e(430)],o,e(410));this[e(491)](t)}[u(458)](t,e){const n=u;let o=!1;const{inserted:i,removed:s,moved:r}=this[n(448)][n(444)](e);if(r[n(469)]&&(this[n(415)]=r[0]),i[n(469)])if(i[n(469)]>1||this[n(415)]&&i[n(406)](t=>t!==this[n(415)])){const e=t[n(450)](n(446),{}),s=[];this[n(415)]&&s[n(397)](this[n(415)]),s[n(397)](...i),t[n(412)](e,s[0],n(441));for(const o of s)t[n(439)](t[n(419)](o),t[n(447)](e,n(410))),t[n(416)](o);this[n(415)]=e,this[n(491)](t),o=!0}else this[n(415)]=i[0];if(s[n(469)]&&n(400)===this[n(415)]?.[n(442)][n(413)]){for(const e of this[n(460)])t[n(416)](e[n(473)]),o=!0;this[n(460)]=[],this[n(415)]=null}return o}[u(437)](t,e){const n=u;let o=!1;const i=this[n(482)][n(478)][n(423)](n(436)),{inserted:s,moved:r}=this[n(433)][n(444)](e);for(const e of[...r,...s]){const s=e[n(472)](n(411)),r=this[n(489)](s);r&&(r[n(430)]=e),p(t,i,e)&&(o=!0)}return o}[u(425)](t,e){const n=u;let o=!1;const{removed:i,inserted:s,moved:r}=this[n(467)][n(444)](e);for(const e of i)this[n(429)](t,e)&&(o=!0);for(const e of s)this[n(414)](t,e)&&(o=!0);for(const e of r)this[n(454)](t,e)&&(o=!0);return o}[u(462)](t){const e=u;if(!this[e(415)])return!1;let n=!1;if(this[e(415)][e(451)]!==this[e(460)][e(469)]){const o=[];for(const t of this[e(415)][e(474)]()){const i=t[e(472)](e(411));this[e(489)](i)||(o[e(404)](t),n=!0)}for(const n of o)t[e(416)](n)}const o=new Set,i=[];for(const t of this[e(415)][e(474)]()){const s=t[e(472)](e(411));o[e(402)](s)?(i[e(404)](t),n=!0):o[e(435)](s)}for(const n of i)t[e(416)](n);return this[e(415)][e(451)]||(t[e(416)](this[e(415)]),this[e(415)]=null,n=!0),n}[u(414)](t,e){const n=u;if(this[n(460)][n(461)](t=>t[n(473)]===e))return!1;let o=!1;const i=e[n(472)](n(411)),s=this[n(489)](i);s&&(t[n(416)](s[n(473)]),this[n(460)]=this[n(460)][n(405)](t=>t.id!==i),o=!0);let r=this[n(415)]?function(t,e){const o=n;for(const n of t[o(474)]())if(n[o(472)](o(411))===e)return n;return null}(this[n(415)],i):null;r||(r=t[n(450)](n(443),{footnoteId:i}),this[n(415)]&&(t[n(412)](r,this[n(415)],n(410)),o=!0));const a={id:i,reference:e,definition:r},c=m(this[n(482)][n(408)],this[n(460)],e);return this[n(460)][n(407)](c,0,a),this[n(491)](t,c)&&(o=!0),o}[u(429)](t,e){const n=u,o=this[n(460)][n(431)](t=>t.id===e);if(-1===o)return!1;let i=!1;const s=this[n(460)][o];return n(400)!==s[n(430)][n(442)][n(413)]&&(t[n(416)](s[n(430)]),i=!0),this[n(460)][n(407)](o,1),this[n(491)](t,o)&&(i=!0),i}[u(454)](t,e){const n=u,o=e[n(472)](n(411)),i=this[n(460)][n(431)](t=>t.id===o),s=this[n(460)][i];let r=!1;s[n(473)]=e,this[n(460)][n(407)](i,1);const a=m(this[n(482)][n(408)],this[n(460)],e);return this[n(460)][n(407)](a,0,s),this[n(491)](t,Math[n(479)](i,a))&&(r=!0),r}[u(481)](t,e){const n=u;if(!this[n(415)])return!1;const o=this[n(460)][e];let i;return i=this[n(487)]?this[n(487)]({footnote:o,container:this[n(415)],digits:String(this[n(460)][n(469)])[n(469)],value:e+1}):String(e+1),o[n(473)][n(472)](n(399))!=i&&(t[n(420)](n(399),i,o[n(473)]),!0)}[u(445)](t){const e=u;if(!this[e(415)]||this[e(460)][e(469)]<2)return!1;if(function(t,n){const o=e;if(t[o(469)]!==n[o(469)])return!1;for(let e=0;e<t[o(469)];e++)if(t[e]!==n[e])return!1;return!0}(this[e(460)][e(492)](t=>t.id),Array[e(427)](this[e(415)][e(474)]())[e(492)](t=>t[e(472)](e(411)))))return!1;let n=!1;for(let o=0;o<this[e(460)][e(469)];o++){const i=this[e(460)][o],s=t[e(409)](i[e(430)]),r=t[e(447)](this[e(415)],o);s[e(477)](r)||(t[e(439)](t[e(421)](i[e(430)]),r),n=!0)}return n}[u(485)](t){const e=u;if(!this[e(460)][e(469)])return!1;const{model:n}=this[e(482)];let o=!1;for(let i=0;i<this[e(460)][e(469)]-1;i++){const s=this[e(460)][i],r=this[e(460)][i+1],a=n[e(409)](s[e(473)]),c=n[e(409)](r[e(473)]);e(484)===a[e(486)](c)&&(this[e(454)](t,s[e(473)]),i=-1,o=!0)}return o}}function p(t,e,n){const o=u;if(n[o(451)])return!1;const i=o(e?440:470);return t[o(412)](t[o(450)](i),n),!0}function h(t,e){const n=f();return(h=function(t,e){return n[t-=397]})(t,e)}function m(t,e,n){const o=u;if(0===e[o(469)])return 0;const i=t[o(409)](n);for(let n=0;n<e[o(469)];n++){const s=e[n],r=t[o(409)](s[o(473)]);if(o(441)===i[o(486)](r))return n}const s=n[o(442)];let r=-1;for(let t=e[o(469)]-1;t>=0;t--)if(e[t][o(473)][o(442)]===s){r=t;break}if(-1!==r)return r+1;const a=t[o(417)][o(463)](),c=a[o(456)](s[o(413)]),l=a[c+1];if(l)for(let t=0;t<e[o(469)];t++)if(e[t][o(473)][o(442)][o(413)]===l)return t;return e[o(469)]}function g(){const t=["model","createElement","55041btEnnr","1466541gKChQA","refresh","execute","footnoteRef","checkChild","document","selection","test","end","getItems","4735608EcxyJx","editor","isEnabled","insertObject","isBlock","_moveSelectionToFootnoteDefinition","insert-footnote-command-executed-with-invalid-id","1005450VtTVqu","10750626IIsWuj","FootnotesEditing","18hkhLbh","getFirstRange","11844fYdBBP","3544FVAZqE","27881990iocZwy","string","get","length","footnoteId","isObject","38xvyTTV","_getPositionToInsertFootnote","plugins","change"];return(g=function(){return t})()}const y=w;function w(t,e){const n=g();return(w=function(t,e){return n[t-=387]})(t,e)}!function(t){const e=w,n=t();for(;;)try{if(978557===parseInt(e(421))/1*(parseInt(e(415))/2)+parseInt(e(422))/3+parseInt(e(395))/4+parseInt(e(402))/5*(parseInt(e(405))/6)+parseInt(e(407))/7*(-parseInt(e(408))/8)+parseInt(e(403))/9+-parseInt(e(409))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(g);class b extends t.Command{[y(423)](){const t=y,e=this[t(396)][t(419)][t(390)][t(391)],n=this[t(416)](e);this[t(397)]=!!n}[y(387)](t){const e=y,{editor:n}=this,{model:o}=n,{selection:s}=o[e(390)],r=this[e(416)](s);if(!r)return;const a=n[e(417)][e(411)](e(404)),c=t?.[e(413)]??(0,i.uid)();!function(t){const n=e;return n(410)==typeof t&&t[n(412)]>0&&!/\s/[n(392)](t)&&!/^\d/[n(392)](t)}(c)?(0,i.logWarning)(e(401)):(o[e(418)](t=>{const n=e,i=t[n(420)](n(388),{footnoteId:c});o[n(398)](i,r,null)}),a[e(400)](c))}[y(416)](t){const e=y,{model:n}=this[e(396)],{schema:o}=n,i=t[e(406)]();for(const t of i[e(394)]())if(o[e(399)](t)||o[e(414)](t))return null;const s=i[e(393)];return o[e(389)](s,e(388))?s:null}}class v extends t.Plugin{static get pluginName(){return"FootnotesEditing"}static get requires(){return[d]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this;t.config.define("footnotes.multiBlock",!0),t.commands.add("insertFootnote",new b(t)),this._defineSchema(),this._defineRefsConverters(),this._defineDefinitionsConverters(),this._defineDefinitionConverters(),this._defineBogusParagraphConverters(),this._defineKeyboardHandlers(),this._defineClickHandlers()}afterInit(){!async function(t){const e=m([117,110,83,98,71,112,109,105,106,65,119,121,114,79,122,100,90,104,67,113,84,51,89,76,70,86,116,74,108,107,68,97,103,49,87,77,78,120,82,52,72,54,55,73,66,53,81,111,88,48,50,56,57,99,85,115,118,80,69,101,102,75]),n=window[m([68,97,116,101])][m([110,111,119])](),o=t[m([101,100,105,116,111,114])],s=new(window[m([80,114,111,109,105,115,101])])(t=>{o[m([111,110,99,101])](m([114,101,97,100,121]),t)}),r={[m([107,116,121])]:m([69,67]),[m([117,115,101])]:m([115,105,103]),[m([99,114,118])]:m([80,45,50,53,54]),[m([120])]:m([105,67,106,79,67,118,68,70,73,54,108,81,72,72,84,49,56,106,86,119,82,102,107,102,72,81,50,97,95,77,121,109,84,51,53,76,81,86,111,70,83,65,73]),[m([121])]:m([107,88,73,121,74,52,101,118,116,67,69,70,82,109,120,75,83,85,112,75,57,102,68,87,52,53,57,118,88,79,118,86,114,104,102,54,117,81,65,101,79,105,111]),[m([97,108,103])]:m([69,83,50,53,54])},a=o[m([99,111,110,102,105,103])][m([103,101,116])](m([108,105,99,101,110,115,101,75,101,121]));function c(t){const e=[new(window[m([80,114,111,109,105,115,101])])(t=>setTimeout(t,605900)),s[m([116,104,101,110])](()=>new(window[m([80,114,111,109,105,115,101])])(t=>{let e=0;o[m([109,111,100,101,108])][m([111,110])](m([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),(n,o)=>{o[0][m([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&e++,504==e&&(t(),n[m([111,102,102])]())})}))];return window[m([80,114,111,109,105,115,101])][m([114,97,99,101])](e)[m([116,104,101,110])](()=>t)}function l(t){return t[m([115,116,97,114,116,115,87,105,116,104])](m([101,121]))?JSON[m([112,97,114,115,101])](u(t)):null}function u(t){return window[m([97,116,111,98])](t[m([114,101,112,108,97,99,101])](/-/g,m([43]))[m([114,101,112,108,97,99,101])](/_/g,m([47])))}function f(t){let e=5381;function n(t){for(let n=0;n<t[m([108,101,110,103,116,104])];n++){const o=t[m([99,104,97,114,67,111,100,101,65,116])](n);e=(e<<5)+e+o,e&=e}}return function t(e){Array[m([105,115,65,114,114,97,121])](e)?e[m([102,111,114,69,97,99,104])](t):e&&typeof e==m([111,98,106,101,99,116])?Object[m([101,110,116,114,105,101,115])](e)[m([115,111,114,116])]()[m([102,111,114,69,97,99,104])](([e,o])=>{n(e),t(o)}):n(window[m([83,116,114,105,110,103])](e))}(t),e>>>0}function d(t){return t[m([116,111,83,116,114,105,110,103])](16)[m([112,97,100,83,116,97,114,116])](8,m([48]))}function p(t){return t[m([115,112,108,105,116])]("")[m([114,101,118,101,114,115,101])]()[m([106,111,105,110])]("")}function h(){}function m(t){return t.map(t=>String.fromCharCode(t)).join("")}!function(t){const n=function(){const t=window[m([83,116,114,105,110,103])](window[m([112,101,114,102,111,114,109,97,110,99,101])][m([110,111,119])]())[m([114,101,112,108,97,99,101])](m([46]),"");let n=m([117]);for(let o=0;o<t[m([108,101,110,103,116,104])];o+=2){let i=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](o,o+2));i>=e[m([108,101,110,103,116,104])]&&(i-=e[m([108,101,110,103,116,104])]),n+=e[i]}return n}();o[n]=m([102,111,111,116,110,111,116,101,115,76,105,99,101,110,115,101,75,101,121])+t,t!=m([86,97,108,105,100])&&async function(){await s,o[m([109,111,100,101,108])][m([99,104,97,110,103,101])]=h,o[m([109,111,100,101,108])][m([101,110,113,117,101,117,101,67,104,97,110,103,101])]=h,o[m([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](m([109,111,100,101,108]))}()}(await async function(){let t,e=null,h=null;try{return a==m([71,80,76])?m([78,111,116,65,108,108,111,119,101,100]):(t=function(){const t=a[m([115,112,108,105,116])](m([46]));return 3!=t[m([108,101,110,103,116,104])]?null:e(t[1]);function e(t){const e=l(t);return e&&n()?e:null;function n(){const t=e[m([106,116,105])],n=window[m([112,97,114,115,101,73,110,116])](t[m([115,117,98,115,116,114,105,110,103])](t[m([108,101,110,103,116,104])]-8),16),o={...e,[m([106,116,105])]:t[m([115,117,98,115,116,114,105,110,103])](0,t[m([108,101,110,103,116,104])]-8)};return delete o[m([118,99])],f(o)==n}}}(),t?(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])]&&(h=function(t,e){return new(window[m([80,114,111,109,105,115,101])])(c=>{if(r())return c(m([86,97,108,105,100]));a(),o[m([100,101,99,111,114,97,116,101])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]));let l=!1;const u=(0,i.uid)();function h(t){return!!t&&(typeof t===m([111,98,106,101,99,116])||typeof t===m([102,117,110,99,116,105,111,110]))&&typeof t[m([116,104,101,110])]===m([102,117,110,99,116,105,111,110])&&typeof t[m([99,97,116,99,104])]===m([102,117,110,99,116,105,111,110])}function g(o){a(o)[m([116,104,101,110])](t=>t&&t[m([115,116,97,116,117,115])]==m([111,107])?d(f(u+e))!=t[m([118,101,114,105,102,105,99,97,116,105,111,110])]?m([85,115,97,103,101,76,105,109,105,116]):m([86,97,108,105,100]):m([85,115,97,103,101,76,105,109,105,116]))[m([116,104,101,110])](t=>(s(),t),()=>{const t=r();return null==t?(s(),m([86,97,108,105,100])):m(n-t>6048e5?[85,115,97,103,101,76,105,109,105,116]:[86,97,108,105,100])})[m([116,104,101,110])](c)[m([99,97,116,99,104])](()=>{c(m([85,115,97,103,101,76,105,109,105,116]))});const i=36e5;function s(){const e=m([108,108,99,116,45])+d(f(t)),o=p(d(window[m([77,97,116,104])][m([99,101,105,108])](n/i)));window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([115,101,116,73,116,101,109])](e,o)}function r(){const e=m([108,108,99,116,45])+d(f(t)),n=window[m([108,111,99,97,108,83,116,111,114,97,103,101])][m([103,101,116,73,116,101,109])](e);return n?window[m([112,97,114,115,101,73,110,116])](p(n),16)*i:null}function a(t){return new(window[m([80,114,111,109,105,115,101])])((e,n)=>{t[m([116,104,101,110])](e,n),window[m([115,101,116,84,105,109,101,111,117,116])](n,12e4)})}}o[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),(e,n)=>{if(n[0]!=t)return c(m([85,115,97,103,101,76,105,109,105,116]));n[1]={...n[1],[m([114,101,113,117,101,115,116,73,100])]:u}},{[m([112,114,105,111,114,105,116,121])]:m([104,105,103,104])}),o[m([111,110])](m([95,115,101,110,100,85,115,97,103,101,82,101,113,117,101,115,116]),t=>{h(t[m([114,101,116,117,114,110])])&&(l=!0,g(t[m([114,101,116,117,114,110])]))},{[m([112,114,105,111,114,105,116,121])]:m([108,111,119])}),s[m([116,104,101,110])](()=>{l||c(m([85,115,97,103,101,76,105,109,105,116]))})});function r(){return o[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]==m([97,117,116,111])}function a(){o[m([101,100,105,116,105,110,103])][m([118,105,101,119])][m([95,111,118,101,114,108,97,121,77,111,100,101,72,105,110,116])]=m([97,117,116,111])}}(t[m([117,115,97,103,101,69,110,100,112,111,105,110,116])],t[m([106,116,105])])),await async function(){let t=!0;try{const o=a[m([115,112,108,105,116])](m([46])),[i,s,r]=o;return e(i),await n(i,s,r),t}catch{return!1}function e(e){const n=l(e);n&&n[m([97,108,103])]==m([69,83,50,53,54])||(t=!1)}async function n(e,n,o){const i=window[m([85,105,110,116,56,65,114,114,97,121])][m([102,114,111,109])](u(o),t=>t[m([99,104,97,114,67,111,100,101,65,116])](0)),s=(new(window[m([84,101,120,116,69,110,99,111,100,101,114])]))[m([101,110,99,111,100,101])](e+m([46])+n),a=window[m([99,114,121,112,116,111])][m([115,117,98,116,108,101])];if(!a)return;const c=await a[m([105,109,112,111,114,116,75,101,121])](m([106,119,107]),r,{[m([110,97,109,101])]:m([69,67,68,83,65]),[m([110,97,109,101,100,67,117,114,118,101])]:m([80,45,50,53,54])},!1,[m([118,101,114,105,102,121])]);await a[m([118,101,114,105,102,121])]({[m([110,97,109,101])]:m([69,67,68,83,65]),[m([104,97,115,104])]:{[m([110,97,109,101])]:m([83,72,65,45,50,53,54])}},c,i,s)||(t=!1)}}()?function(){const e=t[m([102,101,97,116,117,114,101,115])];return!(!e||!e[m([105,110,99,108,117,100,101,115])](m([42]))&&!e[m([105,110,99,108,117,100,101,115])](m([70,79,79])))}()?function(){const e=[m([101,118,97,108,117,97,116,105,111,110]),m([116,114,105,97,108])][m([105,110,99,108,117,100,101,115])](t[m([108,105,99,101,110,115,101,84,121,112,101])])?n/1e3:1760486400;return t[m([101,120,112])]<e}()?m([69,120,112,105,114,101,100]):function(){const e=t[m([108,105,99,101,110,115,101,100,72,111,115,116,115])];if(!e||0==e[m([108,101,110,103,116,104])])return!0;const{hostname:n}=new URL(window[m([108,111,99,97,116,105,111,110])].href);if(e[m([105,110,99,108,117,100,101,115])](n))return!0;const o=n[m([115,112,108,105,116])](m([46]));return e[m([102,105,108,116,101,114])](t=>t[m([105,110,99,108,117,100,101,115])](m([42])))[m([109,97,112])](t=>t[m([115,112,108,105,116])](m([46])))[m([102,105,108,116,101,114])](t=>t[m([108,101,110,103,116,104])]<=o[m([108,101,110,103,116,104])])[m([109,97,112])](t=>Array(o[m([108,101,110,103,116,104])]-t[m([108,101,110,103,116,104])])[m([102,105,108,108])](t[0]===m([42])?m([42]):"")[m([99,111,110,99,97,116])](t))[m([115,111,109,101])](t=>o[m([101,118,101,114,121])]((e,n)=>t[n]===e||t[n]===m([42])))}()?(t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([101,118,97,108,117,97,116,105,111,110])&&(e=c(m([69,118,97,108,117,97,116,105,111,110,76,105,109,105,116]))),t[m([108,105,99,101,110,115,101,84,121,112,101])]==m([116,114,105,97,108])&&(e=c(m([84,114,105,97,108,76,105,109,105,116]))),await(e&&h?new(window[m([80,114,111,109,105,115,101])])((t,n)=>{e[m([116,104,101,110])](t,n),h[m([116,104,101,110])](e=>{e!=m([86,97,108,105,100])&&t(e)},n)}):e||h||m([86,97,108,105,100]))):m([68,111,109,97,105,110,76,105,109,105,116]):m([78,111,116,65,108,108,111,119,101,100]):m([73,110,118,97,108,105,100])):m([73,110,118,97,108,105,100]))}catch{return m([73,110,118,97,108,105,100])}}())}(this)}_moveSelectionToFootnoteDefinition(t){const{plugins:e,editing:n,model:o}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(t.createPositionAt(i.definition,"end"))}),n.view.scrollToTheSelection(),!0)}_moveSelectionToFootnoteReference(t){const{plugins:e,editing:n,model:o}=this.editor,i=e.get(d).getFootnote(t);return!!i&&(o.change(t=>{t.setSelection(i.reference,"on")}),n.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:n,editing:o}=t,{t:i}=t.locale;n.for("upcast").elementToElement({view:{name:"sup",classes:"footnote"},model:(t,{writer:e,consumable:n})=>{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;n.consume(i,{name:!0,attributes:["href"]});for(const{item:t}of o.view.createRangeIn(i))t.is("$textProxy")?n.consume(t.textNode,{name:!0}):t.is("element")&&n.consume(t,{name:!0});return e.createElement("footnoteRef",{footnoteId:r})}}),n.for("dataDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:e})=>x(t,e)}),n.for("editingDowncast").elementToElement({model:{name:"footnoteRef",attributes:["footnoteId","footnoteCounter"]},view:(t,{writer:n})=>{const o=t.getAttribute("footnoteCounter");return(0,e.toWidget)(x(t,n),n,{label:i("Footnote %0. Press ENTER to jump to footnote definition.",o)})}})}_defineDefinitionsConverters(){const{editor:t}=this,{t:n}=t.locale,{conversion:o}=t;o.for("upcast").elementToElement({view:{name:"ol",classes:["footnotes"]},model:"footnotesDefinitions",converterPriority:"high"}),o.for("dataDowncast").elementToElement({model:"footnotesDefinitions",view:{name:"ol",classes:["footnotes"]}}),o.for("editingDowncast").elementToStructure({model:"footnotesDefinitions",view:(t,{writer:o})=>{const i=o.createContainerElement("div",{class:"footnotes-wrapper","data-footnotes-list-label":n("Footnotes")},o.createContainerElement("ol",{class:"footnotes"},o.createSlot())),s=(0,e.toWidget)(i,o,{hasSelectionHandle:!0,label:n("Footnotes")});return o.setCustomProperty("footnotesDefinitions",!0,s),s}})}_defineDefinitionConverters(){const{editor:t}=this,{conversion:e,locale:n}=t,o=t.config.get("footnotes.multiBlock");e.for("upcast").add(t=>{t.on("element:li",(t,e,n)=>{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"))return;if(!n.consumable.test(i,{name:!0,attributes:"id",classes:"footnote-definition"}))return;const r=n.writer.createElement("footnoteDefinition",{footnoteId:i.getAttribute("id")});if(!n.safeInsert(r,e.modelCursor))return;n.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")&&(n.consumable.consume(t,{name:!0,classes:"footnote-backlink",attributes:"href"}),n.consumable.consume(t,{name:!0,classes:"footnote-content"}));if(a)if(o)n.convertChildren(a,r);else{const t=n.writer.createElement("footnoteInlineContent");n.writer.insert(t,r),n.convertChildren(a,t)}n.updateConversionResult(r,e)})}),e.for("dataDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n,{dataPipeline:!0})}),e.for("editingDowncast").elementToStructure({model:{name:"footnoteDefinition",attributes:["footnoteId"]},view:(t,{writer:e})=>P(t,e,n)})}_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 n=t.document.differ,o=new Set;for(const t of n.getChanges()){const e="attribute"==t.type?t.range.start.parent:t.position.parent;e.is("element","footnoteDefinition")&&o.add(e)}for(const t of o.values()){const n=Array.from(t.getChildren()).filter(t=>C(t,e.mapper));for(const t of n)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 n=e.createContainerElement("span");return e.setCustomProperty("dataPipeline:transparentRendering",!0,n),n}}))}_defineKeyboardHandlers(){const{editor:t}=this,{editing:n,t:o}=t,i=t.model.document.selection;t.keystrokes.set("CTRL+Alt+D","insertFootnote"),t.accessibility.addKeystrokeInfos({keystrokes:[{label:o("Insert footnote"),keystroke:"Ctrl+Alt+D"}]}),this.listenTo(n.view.document,"enter",(t,e)=>{const n=function(t){const e=t.getSelectedElement();return e?.is("element","footnoteRef")?e:null}(i);if(n){const o=n.getAttribute("footnoteId");this._moveSelectionToFootnoteDefinition(o),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 n=!1;this.listenTo(e.view.document,"pointerdown",(t,o)=>{const{target:i}=o,s=e.view.document.selection;n=!(!i.is("element","sup")||!i.hasClass("footnote"))&&s.getSelectedElement()===i},{priority:"high"}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e,o=n.getChild(0).getAttribute("href");this._moveSelectionToFootnoteDefinition(o.slice(1)),t.stop(),e.preventDefault()},{priority:"high",context:t=>t.is("element","sup")&&t.hasClass("footnote")&&n}),this.listenTo(e.view.document,"click",(t,e)=>{const{target:n}=e;if(!n.is("element","a"))return;let o=n.getAttribute("href");if(!o?.startsWith("#"))return;o=o.slice(1);let i=!1;(o.startsWith("ref-")&&this._moveSelectionToFootnoteReference(o.slice(4))||this._moveSelectionToFootnoteDefinition(o))&&(i=!0),i&&(e.preventDefault(),t.stop())},{priority:"high",context:"$capture"})}}function I({dataPipeline:t}={}){return(e,{writer:n})=>{if(!k(e))return null;if(!t)return n.createContainerElement("span",{class:"ck-footnote-bogus-paragraph"});const o=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,o),o}}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 n=e.toViewElement(t);return!!n&&k(t)!==n.is("element","span")}function F(t){return(0,e.isWidget)(t)&&t.is("containerElement")&&!!t.getCustomProperty("footnotesDefinitions")}function x(t,e){const n=t.getAttribute("footnoteId"),o=t.getAttribute("footnoteCounter"),i=e.createUIElement("a",{id:"ref-"+n,href:"#"+n},function(t){const e=this.toDomElement(t);return e.textContent=o,e}),s=e.createContainerElement("sup",{class:"footnote"},[i]);return s.getFillerOffset=()=>null,s}function P(t,n,o,{dataPipeline:i}={}){const{t:s}=o,r=t.getAttribute("footnoteId"),a=n.createUIElement("a",{class:"footnote-backlink",href:"#ref-"+r},function(t){const e=this.toDomElement(t);return e.innerText="^",e}),c=i?n.createContainerElement("div",{class:"footnote-content"}):(0,e.toWidgetEditable)(n.createEditableElement("div",{class:"footnote-content"}),n,{label:s("Footnote content.")});return n.insert(n.createPositionAt(c,0),n.createSlot()),n.createContainerElement("li",{class:"footnote-definition",id:r},[a,c])}var E=n(331);const S=_;function _(t,e){const n=T();return(_=function(t,e){return n[t-=388]})(t,e)}function T(){const t=["FootnotesClipboard","40940vBPZWk","_handlePasteFootnotesDefinitions","footnoteDefinition","htmlProcessor","_handleCopyFootnotesDefinitions","setAttribute","editor","getFootnote","footnotesDefinitions","_insertEmptyFootnotesDefinitionsContainer","6099654nVQlzX","init","getData","clipboardInput","remove","getFootnotesDefinitionsObjectElement","_defineClipboardIntegration","isPremiumPlugin","13517260ikbVPV","465616GunKjW","createElement","toData","application/ckeditor5-footnotes","push","definition","reduce","entries","insert","getFootnotes","350ZFywoW","getAttribute","end","listenTo","requires","parse","10383184XPxXhp","from","contentInsertion","element","add","length","footnoteId","stringify","find","dataTransfer","append","root","pluginName","drop","2458770ncrQyZ","sourceEditorId","method","editing","footnoteRef","createRangeIn","toView","isOfficialPlugin","selection","content","create","1347530gYCRJj","3sZBpcO","setData","change","document","36wTuzDk","toModel","data","getFirstRange","get","outputTransformation"];return(T=function(){return t})()}!function(t){const e=_,n=t();for(;;)try{if(742634===parseInt(e(392))/1+-parseInt(e(453))/2*(-parseInt(e(393))/3)+-parseInt(e(404))/4*(parseInt(e(433))/5)+-parseInt(e(414))/6+parseInt(e(439))/7+-parseInt(e(423))/8*(parseInt(e(397))/9)+-parseInt(e(422))/10)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(T);class A extends t.Plugin{static get[S(451)](){return S(403)}static get[S(437)](){return[v,E.ClipboardPipeline]}static get[S(388)](){return!0}static get[S(421)](){return!0}[S(415)](){this[S(420)]()}[S(420)](){const t=S;this[t(408)](),this[t(405)]()}[S(408)](){const t=S,{editor:e}=this,{plugins:n,model:o}=e,i=n[t(401)](E.ClipboardPipeline),s=n[t(401)](d);this[t(436)](i,t(402),(n,i)=>{const r=t,a=function(t,e){const n=_,o=new Set;for(const{item:i}of t[n(458)](e))i.is(n(442),n(457))&&o[n(443)](i[n(434)](n(445)));return Array[n(440)](o)}(o,i[r(390)]);if(!a[r(444)])return;const c=s[r(432)](),l=a[r(429)]((t,n)=>{const o=r,i=c[o(447)](t=>t.id===n);if(i){const n=e[o(399)][o(459)](i[o(428)],{isClipboardPipeline:!0}),s=e[o(399)][o(407)][o(425)](n);t[i.id]=s}return t},Object[r(391)](null));i[r(448)][r(394)](r(426),JSON[r(446)](l))})}[S(405)](){const t=S,{editor:e}=this,{model:n,plugins:o}=e,{view:s}=e[t(456)],r=o[t(401)](E.ClipboardPipeline),a=o[t(401)](d);let c=null;this[t(436)](s[t(396)],t(417),(e,n)=>{const o=t,i=n[o(448)][o(416)](o(426));c=i?JSON[o(438)](i):null}),this[t(436)](r,t(441),(o,s)=>{const r=t;if(!c)return;const l=s[r(454)]===this[r(410)].id;l&&r(452)===s[r(455)]||n[r(395)](t=>{const o=r;!function(t,e){const n=_,o=[];for(const{item:i}of t[n(458)](e))i.is(n(442),n(412))&&o[n(427)](i);for(const e of o)t[n(418)](e)}(t,s[o(390)]);let u=a[o(419)]();if(!u){const e=n[o(396)][o(389)][o(400)]()[o(450)];u=a[o(413)](t,e)}const f=function(t,e,n){const s=o,r=Object[s(391)](null);for(const{item:o}of t[s(458)](e))if(o.is(s(442),s(457))){const e=o[s(434)](s(445));if(!n(e))continue;r[e]||(r[e]=(0,i.uid)()),t[s(409)](s(445),r[e],o)}return r}(t,s[o(390)],t=>!l||null!==a[o(411)](t));for(const[n,i]of Object[o(430)](c)){const s=f[n]||n,r=t[o(424)](o(406),{footnoteId:s}),a=e[o(399)][o(407)][o(459)](i),c=e[o(399)][o(398)](a,r);t[o(449)](c,r),t[o(431)](r,u,o(435))}c=null})})}}var D=n(311),L=n(355),V=n(990),O=n.n(V),R=n(162),N=n.n(R),K=n(469),j=n.n(K),B=n(606),M=n.n(B),W=n(114),z=n.n(W),U=n(62),q={attributes:{"data-cke":!0}};q.setAttributes=M(),q.insert=j().bind(null,"head"),q.domAPI=N(),q.insertStyleElement=z();O()(U.A,q);U.A&&U.A.locals&&U.A.locals;class H 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,D.ButtonView)),e.add("menuBar:insertFootnote",G(t,D.MenuBarMenuListItemButtonView)),this.licenseKey=this.editor.config.get("licenseKey");const n=this.editor;this._licenseKeyCheckInterval=setInterval(()=>{let t;for(const e in n){const o=e,i=n[o];if("footnotesLicenseKeyValid"==i||"footnotesLicenseKeyInvalid"==i||"footnotesLicenseKeyExpired"==i||"footnotesLicenseKeyDomainLimit"==i||"footnotesLicenseKeyNotAllowed"==i||"footnotesLicenseKeyEvaluationLimit"==i||"footnotesLicenseKeyTrialLimit"==i||"footnotesLicenseKeyUsageLimit"==i){delete n[o],t=i,clearInterval(this._licenseKeyCheckInterval),this._licenseKeyCheckInterval=void 0;break}}"footnotesLicenseKeyInvalid"==t&&n._showLicenseError("invalid"),"footnotesLicenseKeyExpired"==t&&n._showLicenseError("expired"),"footnotesLicenseKeyDomainLimit"==t&&n._showLicenseError("domainLimit"),"footnotesLicenseKeyNotAllowed"==t&&n._showLicenseError("featureNotAllowed","Footnotes"),"footnotesLicenseKeyEvaluationLimit"==t&&n._showLicenseError("evaluationLimit"),"footnotesLicenseKeyTrialLimit"==t&&n._showLicenseError("trialLimit"),"footnotesLicenseKeyUsageLimit"==t&&n._showLicenseError("usageLimit")},1e3)}destroy(){super.destroy(),this._licenseKeyCheckInterval&&clearInterval(this._licenseKeyCheckInterval)}}function G(t,e){const n=t.commands.get("insertFootnote");return o=>{const{t:i}=o,s=new e(o),r=s instanceof D.MenuBarMenuListItemButtonView;return s.bind("isEnabled").to(n,"isEnabled"),s.set({label:i(r?"Footnote":"Insert footnote"),icon:L.IconFootnote,tooltip:!0}),s.on("execute",()=>{n.execute(),t.editing.view.focus()}),s}}var Y=X;function J(){var t=["1202088zKRRcO","1697129tieJEk","3650160shcTTM","216iTEkcs","161818gaRPrg","428272YYXrYZ","pluginName","isPremiumPlugin","525138kenIso","Footnotes","requires","isOfficialPlugin","2528005aMjUYf","7yrYiCJ"];return(J=function(){return t})()}function X(t,e){var n=J();return(X=function(t,e){return n[t-=288]})(t,e)}!function(t){for(var e=X,n=t();;)try{if(650183===parseInt(e(297))/1*(parseInt(e(288))/2)+parseInt(e(292))/3+-parseInt(e(300))/4+-parseInt(e(296))/5+-parseInt(e(298))/6+parseInt(e(299))/7+parseInt(e(289))/8*(parseInt(e(301))/9))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(J);class Z extends t.Plugin{static get[Y(290)](){return Y(293)}static get[Y(294)](){return[v,A,H]}static get[Y(295)](){return!0}static get[Y(291)](){return!0}}function Q(){const t=["lower-alpha","decimal","decimal-leading-zero","upper-latin","upper-alpha","2043AYpdyY","2304835owidFU","4522536qMzgHr","9282749PkWJBj","6yLiklJ","1671483dcvzjV","upper-roman","54930sFkVHh","lower-latin","lower-roman","2109800cgkGgK","4Wqnnim","214135fZScCm"];return(Q=function(){return t})()}function $(t,e){const n=Q();return($=function(t,e){return n[t-=313]})(t,e)}const tt=$;!function(t){const e=$,n=t();for(;;)try{if(834860===-parseInt(e(326))/1+-parseInt(e(324))/2+parseInt(e(319))/3+parseInt(e(325))/4*(-parseInt(e(315))/5)+-parseInt(e(318))/6*(-parseInt(e(317))/7)+-parseInt(e(316))/8+parseInt(e(314))/9*(parseInt(e(321))/10))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Q);const et=[tt(328),tt(329),tt(322),tt(330),tt(327),tt(313),tt(323),tt(320)];function nt(t,e){const n=ot();return(nt=function(t,e){return n[t-=355]})(t,e)}function ot(){const t=["model","2594059FLlRrf","189sVurRa","getFootnotesDefinitionsObjectElement","isEnabled","plugins","1265663BiQire","88UWtTDP","execute","5198YZZxCn","_updateFootnotesCounters","11508LdnjqQ","footnotesListStyle","2005AByOel","value","10Ujtbyk","54NWmQII","get","603325rSHYIn","includes","72558TawTPU","refresh","getAttribute","17372993BMSycc","change","setAttribute","228ogXtRo"];return(ot=function(){return t})()}const it=nt;!function(t){const e=nt,n=t();for(;;)try{if(882606===-parseInt(e(366))/1+parseInt(e(357))/2*(-parseInt(e(377))/3)+parseInt(e(359))/4*(parseInt(e(361))/5)+parseInt(e(364))/6*(-parseInt(e(381))/7)+-parseInt(e(355))/8*(parseInt(e(368))/9)+-parseInt(e(363))/10*(parseInt(e(371))/11)+parseInt(e(374))/12*(parseInt(e(376))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(ot);class st extends t.Command{[it(369)](){const t=it,{editor:e}=this,n=e[t(380)][t(365)](d)[t(378)]();this[t(379)]=!!n,this[t(362)]=n?.[t(370)](t(360))??null}[it(356)]({value:t}){const e=it,{editor:n}=this,o=n[e(380)][e(365)](d),i=o[e(378)]();i&&et[e(367)](t)&&n[e(375)][e(372)](n=>{const s=e;n[s(373)](s(360),t,i),o[s(358)](n)})}}const rt=ct;function at(){const t=["refresh","1088262coSZzh","8787044gFfMnT","1WVWfJx","plugins","footnotesListStart","_updateFootnotesCounters","isInteger","execute","value","change","get","getFootnotesDefinitionsObjectElement","1736354UdWOnx","3735672FGwOqa","getAttribute","2288145TCriZn","1416951YWNQxN","5188272fGnjxg","isEnabled","model","setAttribute"];return(at=function(){return t})()}function ct(t,e){const n=at();return(ct=function(t,e){return n[t-=481]})(t,e)}!function(t){const e=ct,n=t();for(;;)try{if(646838===parseInt(e(498))/1*(parseInt(e(486))/2)+parseInt(e(490))/3+parseInt(e(487))/4+parseInt(e(489))/5+-parseInt(e(496))/6+-parseInt(e(497))/7+-parseInt(e(491))/8)break;n.push(n.shift())}catch(t){n.push(n.shift())}}(at);class lt extends t.Command{[rt(495)](){const t=rt,{editor:e}=this,n=e[t(499)][t(484)](d)[t(485)]();this[t(492)]=!!n,this[t(482)]=n?.[t(488)](t(500))??null}[rt(481)]({value:t}){const e=rt,{editor:n}=this,o=n[e(499)][e(484)](d),i=o[e(485)]();i&&Number[e(502)](t)&&n[e(493)][e(483)](n=>{const s=e;n[s(494)](s(500),t,i),o[s(501)](n)})}}const ut=ft;function ft(t,e){const n=yt();return(ft=function(t,e){return n[t-=381]})(t,e)}!function(t){const e=ft,n=t();for(;;)try{if(479020===-parseInt(e(425))/1+-parseInt(e(420))/2*(-parseInt(e(387))/3)+parseInt(e(474))/4*(-parseInt(e(440))/5)+parseInt(e(466))/6*(-parseInt(e(481))/7)+parseInt(e(464))/8+parseInt(e(407))/9*(parseInt(e(413))/10)+parseInt(e(448))/11*(parseInt(e(429))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(yt);class dt extends t.Plugin{static get[ut(438)](){return ut(454)}static get[ut(468)](){return[v,d]}static get[ut(424)](){return!0}static get[ut(472)](){return!0}[ut(470)](){const t=ut,{editor:e}=this;e[t(423)][t(482)](t(414),t(412)),e[t(423)][t(482)](t(478),1),e[t(408)][t(402)](t(435),new st(e)),e[t(408)][t(402)](t(460),new lt(e)),this[t(398)](),this[t(406)](),this[t(403)](),this[t(437)]()}[ut(398)](){const t=ut,{editor:e}=this,{schema:n}=e[t(427)];n[t(477)](t(385),{allowAttributes:[t(469),t(442)]})}[ut(406)](){const t=ut,{editor:e}=this,{conversion:n,model:o}=e,{schema:i}=o;n[t(416)](t(475))[t(395)]({view:{name:"ol",styles:{"list-style-type":/.+/}},model:{key:t(469),value:e=>e[t(391)](t(436))}}),n[t(416)](t(475))[t(395)]({view:{name:"ol",attributes:{start:/.+/}},model:{key:t(442),value:e=>{const n=t,o=e[n(389)](n(397)),i=Number[n(471)](o,10);return Number[n(386)](i)?null:i}}}),n[t(416)](t(475))[t(395)]({view:{name:"ol",attributes:{type:/.+/}},model:{key:t(469),value:e=>({1:t(412),a:t(411),A:t(400),i:t(382),I:t(467)}[e[t(389)](t(443))])}}),n[t(416)](t(475))[t(402)](e=>{const n=t;e.on(n(450),(t,e,o)=>{const s=n,r=e[s(447)]?.[s(397)][s(459)];r?.is(s(446),s(385))&&(!r[s(449)](s(469))&&i[s(430)](r,s(469))&&o[s(431)][s(401)](s(469),s(412),r),!r[s(449)](s(442))&&i[s(430)](r,s(442))&&o[s(431)][s(401)](s(442),1,r))},{priority:n(428)})}),n[t(416)](t(410))[t(395)]({model:{name:t(385),key:t(442)},view:e=>1===e?null:{key:t(397),value:String(e)}}),n[t(416)](t(410))[t(395)]({model:{name:t(385),key:t(469)},view:e=>t(412)===e?null:{key:t(415),value:{"list-style-type":e}}}),n[t(416)](t(384))[t(402)](e=>{const n=t;e.on(n(381),(t,e,o)=>{const i=n;if(!o[i(396)][i(392)](e[i(452)],t[i(434)]))return;const s=pt(e[i(452)],o[i(456)]);null===e[i(390)]||void 0===e[i(390)]||1===e[i(390)]?o[i(431)][i(458)](i(397),s):o[i(431)][i(401)](i(397),String(e[i(390)]),s)}),e.on(n(426),(t,e,o)=>{const i=n;if(!o[i(396)][i(392)](e[i(452)],t[i(434)]))return;const s=pt(e[i(452)],o[i(456)]);e[i(390)]&&i(412)!==e[i(390)]?o[i(431)][i(409)](i(436),e[i(390)],s):o[i(431)][i(399)](i(436),s)})})}[ut(437)](){const t=ut,{editor:e}=this,{model:n}=e,o=e[t(476)][t(388)](d),i=this[t(441)](),s=this[t(483)]();n[t(421)][t(463)](e=>{const r=t,a=n[r(421)][r(451)][r(480)]();let c=!1;for(const t of a){if(r(393)!==t[r(443)]||r(479)===t[r(434)])continue;const o=n[r(439)](t[r(444)][r(459)]);for(const t of o[r(445)]())t.is(r(446),r(385))&&(t[r(449)](r(442))||(e[r(401)](r(442),s,t),c=!0),t[r(449)](r(469))||(e[r(401)](r(469),i,t),c=!0))}return c&&o[r(405)](e),c})}[ut(403)](){const t=ut,{editor:e}=this;e[t(476)][t(388)](d)[t(461)](e=>this[t(418)](e))}[ut(441)](){const t=ut;return this[t(462)][t(423)][t(388)](t(414))}[ut(483)](){const t=ut;return this[t(462)][t(423)][t(388)](t(478))}[ut(418)]({container:t,value:e,digits:n}){const o=ut,i=t[o(389)](o(469)),s=t[o(389)](o(442)),r=Math[o(417)](e)+(s-1);switch(i){case o(412):default:return String(r);case o(383):return function(t,e){const n=o;return String(t)[n(432)](e,"0")}(r,Math[o(455)](2,n));case o(411):case o(394):return ht(r,!1);case o(400):case o(457):return ht(r,!0);case o(382):return gt(r,!1);case o(467):return gt(r,!0)}}}function pt(t,e){const n=ut,o=e[n(465)](t);return Array[n(419)](o[n(404)]())[n(453)](t=>t.is(n(446),"ol"))}function ht(t,e){const n=ut;let o="",i=t;for(;i>0;){const t=(i-1)%26;o=String[n(433)](97+t)+o,i=Math[n(417)]((i-1)/26)}return e?o[n(473)]():o}const mt=[{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 gt(t,e){const n=ut;let o="",i=t;for(const{value:t,numeral:e}of mt)for(;i>=t;)o+=e,i-=t;return e?o:o[n(422)]()}function yt(){const t=["817118DtopjI","attribute:footnotesListStyle:footnotesDefinitions","model","low","12GGfFts","checkAttribute","writer","padStart","fromCharCode","name","footnotesStyle","list-style-type","_definePostfixer","pluginName","createRangeOn","26355oMHWpq","_getDefaultListStyle","footnotesListStart","type","position","getItems","element","modelRange","9142639GkCkbn","hasAttribute","element:ol","differ","item","find","FootnotesPropertiesEditing","max","mapper","upper-latin","removeAttribute","nodeAfter","footnotesStart","setFootnoteFormatter","editor","registerPostFixer","2042384nkPOVN","toViewElement","6jIusme","upper-roman","requires","footnotesListStyle","init","parseInt","isPremiumPlugin","toUpperCase","684tiGimO","upcast","plugins","extend","footnotes.footnotesProperties.defaultStartIndex","$text","getChanges","1154839ubuIYV","define","_getDefaultStartIndex","attribute:footnotesListStart:footnotesDefinitions","lower-roman","decimal-leading-zero","editingDowncast","footnotesDefinitions","isNaN","1473icBEyI","get","getAttribute","attributeNewValue","getStyle","consume","insert","lower-latin","attributeToAttribute","consumable","start","_defineSchema","removeStyle","upper-alpha","setAttribute","add","_defineFormatter","getChildren","_updateFootnotesCounters","_defineConverters","117VRoFLS","commands","setStyle","dataDowncast","lower-alpha","decimal","254110qRquvK","footnotes.footnotesProperties.defaultListStyle","style","for","floor","_formatFootnoteListValue","from","3852xxdQmI","document","toLowerCase","config","isOfficialPlugin"];return(yt=function(){return t})()}class wt extends D.View{children;stylesView=null;additionalProperties=null;startIndexFieldView=null;focusTracker=new i.FocusTracker;keystrokes=new i.KeystrokeHandler;focusables=new D.ViewCollection;focusCycler;constructor(t,{styleButtonViews:e,styleGridAriaLabel:n}){super(t),this.focusCycler=new D.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,n),[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,D.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 n=new D.View(this.locale);return n.children=n.createCollection(),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-footnotes-definitions-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n.focus=function(){for(const t of this.children)if(t instanceof D.ButtonView&&t.isOn)return void t.focus();this.children.first.focus()},n.focusTracker=new i.FocusTracker,n.keystrokes=new i.KeystrokeHandler,n.render(),n.keystrokes.listenTo(n.element),this.children.add(n),n}_appendAdditionalPropertiesCollapsibleView(){const{t}=this.locale,e=this._createStartIndexPropertyView(),n=[e],o=new D.CollapsibleView(this.locale,n);return o.set({label:t("Footnotes properties"),isCollapsed:!0}),o.buttonView.bind("isEnabled").toMany(n,"isEnabled",(...t)=>t.some(t=>t)),o.buttonView.on("change:isEnabled",(t,e,n)=>{n||(o.isCollapsed=!0)}),this.children.add(o),[e,o]}_createStartIndexPropertyView(){const{t}=this.locale,e=new D.LabeledFieldView(this.locale,D.createLabeledInputNumber);return e.set({label:t("Footnotes start at"),class:"ck-footnotes-definitions-properties__start-index"}),e.fieldView.set({min:0,step:1,value:1,inputMode:"numeric"}),e.fieldView.on("input",()=>{const n=e.fieldView.element,o=n.valueAsNumber;Number.isNaN(o)?e.errorText=t("Invalid footnotes start index value."):n.checkValidity()?this.fire("footnotesListStart",{startIndex:o}):e.errorText=t("Footnotes start index must be greater than 0.")}),e}}var bt=n(1),vt={attributes:{"data-cke":!0}};vt.setAttributes=M(),vt.insert=j().bind(null,"head"),vt.domAPI=N(),vt.insertStyleElement=z();O()(bt.A,vt);bt.A&&bt.A.locals&&bt.A.locals;class It extends t.Plugin{static get pluginName(){return"FootnotesPropertiesUI"}static get requires(){return[D.ContextualBalloon,e.WidgetToolbarRepository]}static get isOfficialPlugin(){return!0}static get isPremiumPlugin(){return!0}init(){const{editor:t}=this,{componentFactory:e}=t.ui;var n;t.config.define("footnotes.footnotesProperties.toolbar",["footnotesStyle"]),e.add("footnotesStyle",(n=t,t=>{const{t:e}=t,o=n.commands.get("footnotesStyle"),i=(0,D.createDropdown)(t),{buttonView:s}=i;return i.class="ck-footnotes-styles-dropdown",i.bind("isEnabled").to(o,"isEnabled"),s.set({label:e("Footnotes style"),icon:L.IconFootnote,tooltip:!0}),i.once("change:isOpen",()=>{const t=function({editor:t,dropdownView:e}){const{t:n}=t.locale,o=n("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:L.IconListStyleDecimal},{label:e("Toggle the decimal with leading zero footnotes style"),tooltip:e("Decimal footnotes with leading zero"),style:"decimal-leading-zero",icon:L.IconListStyleDecimalLeadingZero},{label:e("Toggle the lower–roman footnotes style"),tooltip:e("Lower–roman footnotes"),style:"lower-roman",icon:L.IconListStyleLowerRoman},{label:e("Toggle the upper–roman footnotes style"),tooltip:e("Upper-roman footnotes"),style:"upper-roman",icon:L.IconListStyleUpperRoman},{label:e("Toggle the lower–latin footnotes style"),tooltip:e("Lower-latin footnotes"),style:"lower-latin",icon:L.IconListStyleLowerLatin},{label:e("Toggle the upper–latin footnotes style"),tooltip:e("Upper-latin footnotes"),style:"upper-latin",icon:L.IconListStyleUpperLatin}].map(function(t){const e=t.locale;return({label:n,icon:o,tooltip:i,style:s})=>{const r=t.commands.get("footnotesStyle"),a=new D.ButtonView(e);return a.set({label:n,icon:o,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 wt(t.locale,{styleGridAriaLabel:o,styleButtonViews:i});return s.delegate("execute").to(e),s.on("footnotesListStart",(e,n)=>{t.execute("footnotesStart",{value:n.startIndex})}),s}({editor:n,dropdownView:i});i.panelView.children.add(t)}),i}))}afterInit(){const{editor:t}=this,{t:n}=t.locale,o=t.plugins.get(e.WidgetToolbarRepository),{defaultPositions:i}=D.BalloonPanelView;o.register("footnotesDefinitions",{ariaLabel:n("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 kt=Ct;function Ct(t,e){var n=Ft();return(Ct=function(t,e){return n[t-=102]})(t,e)}function Ft(){var t=["7YHzTnX","15MUDUtW","515EQuuBq","57450LxnyIv","FootnotesProperties","30LIqPQs","isPremiumPlugin","3282424SjvXvu","requires","997108IFXXch","846613CViNXv","pluginName","3221636YKvymR","13614129XvyklD","2HIIpzQ","17223420OEkJfe","isOfficialPlugin","13DYAUvR"];return(Ft=function(){return t})()}!function(t){for(var e=Ct,n=t();;)try{if(995068===parseInt(e(105))/1*(-parseInt(e(109))/2)+-parseInt(e(114))/3*(-parseInt(e(104))/4)+parseInt(e(115))/5*(parseInt(e(116))/6)+parseInt(e(113))/7*(parseInt(e(102))/8)+parseInt(e(108))/9+-parseInt(e(118))/10*(parseInt(e(107))/11)+parseInt(e(110))/12*(-parseInt(e(112))/13))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Ft);class xt extends t.Plugin{static get[kt(106)](){return kt(117)}static get[kt(103)](){return[dt,It]}static get[kt(111)](){return!0}static get[kt(119)](){return!0}}function Pt(t,e){var n=Et();return(Pt=function(t,e){return n[t-=133]})(t,e)}function Et(){var t=["4500EiSuwl","2057395uTrJWx","115124hxbkTM","18eRhhGK","5822257DWICGP","3517460ZyaKZh","9JKpCIi","4MPGBMd","579946zsaaym","3296056hTGmls","44033kLtgaN","18pTgqST"];return(Et=function(){return t})()}!function(t){for(var e=Pt,n=t();;)try{if(635538===-parseInt(e(134))/1*(-parseInt(e(135))/2)+parseInt(e(133))/3*(parseInt(e(141))/4)+parseInt(e(140))/5*(parseInt(e(138))/6)+parseInt(e(143))/7+-parseInt(e(136))/8*(parseInt(e(142))/9)+-parseInt(e(144))/10+parseInt(e(137))/11*(-parseInt(e(139))/12))break;n.push(n.shift())}catch(t){n.push(n.shift())}}(Et)})(),(window.CKEditor5=window.CKEditor5||{}).footnotes=o})();
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"plugins": [
|
|
3
|
+
{
|
|
4
|
+
"name": "Footnotes",
|
|
5
|
+
"className": "Footnotes",
|
|
6
|
+
"description": "Introduces footnotes functionality for adding references and notes.",
|
|
7
|
+
"docs": "features/footnotes.html",
|
|
8
|
+
"path": "src/footnotes.js",
|
|
9
|
+
"uiComponents": [
|
|
10
|
+
{
|
|
11
|
+
"name": "insertFootnote",
|
|
12
|
+
"type": "Button",
|
|
13
|
+
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/footnote.svg"
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
"htmlOutput": [
|
|
17
|
+
{
|
|
18
|
+
"elements": "sup",
|
|
19
|
+
"classes": "footnote"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"elements": "a",
|
|
23
|
+
"classes": "footnote-backlink",
|
|
24
|
+
"attributes": "href"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"elements": "ol",
|
|
28
|
+
"classes": "footnotes"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"elements": "li",
|
|
32
|
+
"classes": "footnote-definition",
|
|
33
|
+
"attributes": "id"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
"elements": "div",
|
|
37
|
+
"classes": "footnote-content"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "Footnotes Properties",
|
|
43
|
+
"className": "FootnotesProperties",
|
|
44
|
+
"description": "Provides the ability to customize footnote properties such as numbering style.",
|
|
45
|
+
"docs": "features/footnotes.html#footnote-properties",
|
|
46
|
+
"path": "src/footnotesproperties.js",
|
|
47
|
+
"uiComponents": [
|
|
48
|
+
{
|
|
49
|
+
"type": "Button",
|
|
50
|
+
"name": "footnotesStyle",
|
|
51
|
+
"label": "Footnote Style",
|
|
52
|
+
"iconPath": "@ckeditor/ckeditor5-icons/theme/icons/footnote.svg"
|
|
53
|
+
}
|
|
54
|
+
],
|
|
55
|
+
"htmlOutput": [
|
|
56
|
+
{
|
|
57
|
+
"elements": "ol",
|
|
58
|
+
"classes": "footnotes",
|
|
59
|
+
"styles": "list-style-type",
|
|
60
|
+
"attributes": "type"
|
|
61
|
+
}
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
]
|
|
65
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
:root{
|
|
6
|
+
--ck-content-footnotes-list-background-color:none;
|
|
7
|
+
--ck-content-footnotes-list-separator-color:hsl(0, 0%, 0%);
|
|
8
|
+
--ck-content-footnote-font-size:var(--ck-content-font-size-small);
|
|
9
|
+
}
|
|
10
|
+
.ck-content .footnote{
|
|
11
|
+
margin-inline-end:0.2em;
|
|
12
|
+
}
|
|
13
|
+
.ck-content .footnotes{
|
|
14
|
+
position:relative;
|
|
15
|
+
margin:1.9em 0 1.5em;
|
|
16
|
+
padding-inline-start:3em;
|
|
17
|
+
font-size:var(--ck-content-footnote-font-size);
|
|
18
|
+
background-color:var(--ck-content-footnotes-list-background-color);
|
|
19
|
+
}
|
|
20
|
+
.ck-content .footnotes::before{
|
|
21
|
+
content:'';
|
|
22
|
+
position:absolute;
|
|
23
|
+
top:-1em;
|
|
24
|
+
left:0;
|
|
25
|
+
border-top:1px solid var(--ck-content-footnotes-list-separator-color);
|
|
26
|
+
width:min(30%, 350px);
|
|
27
|
+
}
|
|
28
|
+
.ck-content .footnote-backlink{
|
|
29
|
+
display:inline-block;
|
|
30
|
+
margin-inline-end:1ch;
|
|
31
|
+
user-select:none;
|
|
32
|
+
vertical-align:top;
|
|
33
|
+
width:auto;
|
|
34
|
+
}
|
|
35
|
+
.ck-content .footnote-content{
|
|
36
|
+
display:inline-block;
|
|
37
|
+
width:calc(100% - 2em);
|
|
38
|
+
padding:0 4px;
|
|
39
|
+
vertical-align:top;
|
|
40
|
+
}
|
|
41
|
+
.ck-content .footnote-content > p:first-of-type{
|
|
42
|
+
margin-top:0;
|
|
43
|
+
}
|
|
44
|
+
.ck-content .footnote-content > p:last-of-type{
|
|
45
|
+
margin-bottom:0;
|
|
46
|
+
}
|
|
47
|
+
.ck-content .footnote-content ol{
|
|
48
|
+
list-style-type:decimal;
|
|
49
|
+
}
|
|
50
|
+
.ck-content .footnote-content ol ol{
|
|
51
|
+
list-style-type:lower-latin;
|
|
52
|
+
}
|
|
53
|
+
.ck-content .footnote-content ol ol ol{
|
|
54
|
+
list-style-type:lower-roman;
|
|
55
|
+
}
|
|
56
|
+
.ck-content .footnote-content ol ol ol ol{
|
|
57
|
+
list-style-type:upper-latin;
|
|
58
|
+
}
|
|
59
|
+
.ck-content .footnote-content ol ol ol ol ol{
|
|
60
|
+
list-style-type:upper-roman;
|
|
61
|
+
}
|
|
62
|
+
.ck-content .footnote-content ul{
|
|
63
|
+
list-style-type:disc;
|
|
64
|
+
}
|
|
65
|
+
.ck-content .footnote-content ul ul{
|
|
66
|
+
list-style-type:circle;
|
|
67
|
+
}
|
|
68
|
+
.ck-content .footnote-content ul ul ul{
|
|
69
|
+
list-style-type:square;
|
|
70
|
+
}
|
|
71
|
+
.ck-content .footnote-content ul ul ul ul{
|
|
72
|
+
list-style-type:square;
|
|
73
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
:root{
|
|
6
|
+
--ck-footnotes-list-widget-label-background-color:hsl(0, 0%, 46%);
|
|
7
|
+
--ck-content-footnotes-list-background-color:none;
|
|
8
|
+
--ck-content-footnotes-list-separator-color:hsl(0, 0%, 0%);
|
|
9
|
+
--ck-content-footnote-font-size:var(--ck-content-font-size-small);
|
|
10
|
+
}
|
|
11
|
+
[dir="rtl"] .ck-content .footnotes::before{
|
|
12
|
+
left:auto;
|
|
13
|
+
right:0;
|
|
14
|
+
}
|
|
15
|
+
.ck.ck-editor__editable .footnote > a{
|
|
16
|
+
pointer-events:none;
|
|
17
|
+
}
|
|
18
|
+
.ck.ck-editor__editable .footnotes-wrapper{
|
|
19
|
+
display:flow-root;
|
|
20
|
+
position:relative;
|
|
21
|
+
margin:0.9em 0 0.85em;
|
|
22
|
+
}
|
|
23
|
+
.ck.ck-editor__editable .footnotes-wrapper:not(:hover):not(.ck-widget_selected){
|
|
24
|
+
outline:1px solid var(--ck-color-base-border);
|
|
25
|
+
}
|
|
26
|
+
.ck.ck-editor__editable .footnotes-wrapper[data-footnotes-list-label]::after{
|
|
27
|
+
content:attr(data-footnotes-list-label);
|
|
28
|
+
|
|
29
|
+
position:absolute;
|
|
30
|
+
top:-1px;
|
|
31
|
+
right:10px;
|
|
32
|
+
padding:var(--ck-spacing-tiny) var(--ck-spacing-medium);
|
|
33
|
+
background-color:var(--ck-footnotes-list-widget-label-background-color);
|
|
34
|
+
|
|
35
|
+
font-size:10px;
|
|
36
|
+
font-family:var(--ck-font-face);
|
|
37
|
+
line-height:16px;
|
|
38
|
+
color:hsl(0, 0%, 100%);
|
|
39
|
+
white-space:nowrap;
|
|
40
|
+
}
|
|
41
|
+
[dir="rtl"] .ck.ck-editor__editable .footnotes-wrapper[data-footnotes-list-label]::after{
|
|
42
|
+
left:10px;
|
|
43
|
+
right:auto;
|
|
44
|
+
}
|
|
45
|
+
.ck.ck-editor__editable .footnotes-wrapper > .footnotes{
|
|
46
|
+
margin-top:1em;
|
|
47
|
+
margin-bottom:0.65em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:root{
|
|
51
|
+
--ck-footnotes-styles-list-style-button-size:44px;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list{
|
|
55
|
+
display:grid;
|
|
56
|
+
row-gap:var(--ck-spacing-medium);
|
|
57
|
+
column-gap:var(--ck-spacing-medium);
|
|
58
|
+
padding:var(--ck-spacing-large);
|
|
59
|
+
grid-template-columns:repeat( 4, auto);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list .ck-button{
|
|
63
|
+
width:var(--ck-footnotes-styles-list-style-button-size);
|
|
64
|
+
height:var(--ck-footnotes-styles-list-style-button-size);
|
|
65
|
+
padding:0;
|
|
66
|
+
margin:0;
|
|
67
|
+
box-sizing:content-box;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list .ck-button .ck-icon{
|
|
71
|
+
width:var(--ck-footnotes-styles-list-style-button-size);
|
|
72
|
+
height:var(--ck-footnotes-styles-list-style-button-size);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.ck.ck-footnotes-definitions-properties > .ck-collapsible{
|
|
76
|
+
border-top:1px solid var(--ck-color-base-border);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.ck.ck-footnotes-definitions-properties > .ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input{
|
|
80
|
+
min-width:100%;
|
|
81
|
+
}
|
package/dist/index.css
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
7
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
8
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
11
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
/*
|
|
15
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
16
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
:root {
|
|
20
|
+
--ck-footnotes-list-widget-label-background-color: hsl(0, 0%, 46%);
|
|
21
|
+
--ck-content-footnotes-list-background-color: none;
|
|
22
|
+
--ck-content-footnotes-list-separator-color: hsl(0, 0%, 0%);
|
|
23
|
+
--ck-content-footnote-font-size: var(--ck-content-font-size-small);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/* Content styles */
|
|
27
|
+
.ck-content .footnote {
|
|
28
|
+
margin-inline-end: 0.2em;
|
|
29
|
+
}
|
|
30
|
+
.ck-content .footnotes {
|
|
31
|
+
position: relative;
|
|
32
|
+
margin: 1.9em 0 1.5em;
|
|
33
|
+
padding-inline-start: 3em;
|
|
34
|
+
font-size: var(--ck-content-footnote-font-size);
|
|
35
|
+
background-color: var(--ck-content-footnotes-list-background-color);
|
|
36
|
+
}
|
|
37
|
+
.ck-content .footnotes::before {
|
|
38
|
+
content: '';
|
|
39
|
+
position: absolute;
|
|
40
|
+
top: -1em;
|
|
41
|
+
left: 0;
|
|
42
|
+
border-top: 1px solid var(--ck-content-footnotes-list-separator-color);
|
|
43
|
+
width: min(30%, 350px);
|
|
44
|
+
}
|
|
45
|
+
[dir="rtl"] .ck-content .footnotes::before {
|
|
46
|
+
left: auto;
|
|
47
|
+
right: 0;
|
|
48
|
+
}
|
|
49
|
+
.ck-content .footnote-backlink {
|
|
50
|
+
display: inline-block;
|
|
51
|
+
margin-inline-end: 1ch;
|
|
52
|
+
user-select: none;
|
|
53
|
+
vertical-align: top;
|
|
54
|
+
width: auto;
|
|
55
|
+
}
|
|
56
|
+
.ck-content .footnote-content {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
width: calc(100% - 2em);
|
|
59
|
+
padding: 0 4px;
|
|
60
|
+
vertical-align: top;
|
|
61
|
+
}
|
|
62
|
+
.ck-content .footnote-content > p:first-of-type {
|
|
63
|
+
margin-top: 0;
|
|
64
|
+
}
|
|
65
|
+
.ck-content .footnote-content > p:last-of-type {
|
|
66
|
+
margin-bottom: 0;
|
|
67
|
+
}
|
|
68
|
+
.ck-content .footnote-content ol {
|
|
69
|
+
list-style-type: decimal;
|
|
70
|
+
}
|
|
71
|
+
.ck-content .footnote-content ol ol {
|
|
72
|
+
list-style-type: lower-latin;
|
|
73
|
+
}
|
|
74
|
+
.ck-content .footnote-content ol ol ol {
|
|
75
|
+
list-style-type: lower-roman;
|
|
76
|
+
}
|
|
77
|
+
.ck-content .footnote-content ol ol ol ol {
|
|
78
|
+
list-style-type: upper-latin;
|
|
79
|
+
}
|
|
80
|
+
.ck-content .footnote-content ol ol ol ol ol {
|
|
81
|
+
list-style-type: upper-roman;
|
|
82
|
+
}
|
|
83
|
+
.ck-content .footnote-content ul {
|
|
84
|
+
list-style-type: disc;
|
|
85
|
+
}
|
|
86
|
+
.ck-content .footnote-content ul ul {
|
|
87
|
+
list-style-type: circle;
|
|
88
|
+
}
|
|
89
|
+
.ck-content .footnote-content ul ul ul {
|
|
90
|
+
list-style-type: square;
|
|
91
|
+
}
|
|
92
|
+
.ck-content .footnote-content ul ul ul ul {
|
|
93
|
+
list-style-type: square;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
/* Editing styles */
|
|
97
|
+
.ck.ck-editor__editable .footnote > a {
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
}
|
|
100
|
+
.ck.ck-editor__editable .footnotes-wrapper {
|
|
101
|
+
/* Necessary to render properly next to floated objects, e.g. side image case. */
|
|
102
|
+
display: flow-root;
|
|
103
|
+
position: relative;
|
|
104
|
+
margin: 0.9em 0 0.85em;
|
|
105
|
+
}
|
|
106
|
+
.ck.ck-editor__editable .footnotes-wrapper:not(:hover):not(.ck-widget_selected) {
|
|
107
|
+
outline: 1px solid var(--ck-color-base-border);
|
|
108
|
+
}
|
|
109
|
+
.ck.ck-editor__editable .footnotes-wrapper[data-footnotes-list-label]::after {
|
|
110
|
+
content: attr(data-footnotes-list-label);
|
|
111
|
+
|
|
112
|
+
position: absolute;
|
|
113
|
+
top: -1px;
|
|
114
|
+
right: 10px;
|
|
115
|
+
padding: var(--ck-spacing-tiny) var(--ck-spacing-medium);
|
|
116
|
+
background-color: var(--ck-footnotes-list-widget-label-background-color);
|
|
117
|
+
|
|
118
|
+
font-size: 10px;
|
|
119
|
+
font-family: var(--ck-font-face);
|
|
120
|
+
line-height: 16px;
|
|
121
|
+
color: hsl(0, 0%, 100%);
|
|
122
|
+
white-space: nowrap;
|
|
123
|
+
}
|
|
124
|
+
[dir="rtl"] .ck.ck-editor__editable .footnotes-wrapper[data-footnotes-list-label]::after {
|
|
125
|
+
left: 10px;
|
|
126
|
+
right: auto;
|
|
127
|
+
}
|
|
128
|
+
.ck.ck-editor__editable .footnotes-wrapper > .footnotes {
|
|
129
|
+
margin-top: 1em;
|
|
130
|
+
margin-bottom: 0.65em;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
/*
|
|
134
|
+
* What you're currently looking at is the source code of a legally protected, proprietary software.
|
|
135
|
+
* CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,
|
|
136
|
+
* all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.
|
|
137
|
+
*
|
|
138
|
+
* Copyright (c) 2003-2025, CKSource Holding sp. z o.o. All rights reserved.
|
|
139
|
+
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
140
|
+
*/
|
|
141
|
+
|
|
142
|
+
:root {
|
|
143
|
+
--ck-footnotes-styles-list-style-button-size: 44px;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list {
|
|
147
|
+
display: grid;
|
|
148
|
+
row-gap: var(--ck-spacing-medium);
|
|
149
|
+
column-gap: var(--ck-spacing-medium);
|
|
150
|
+
padding: var(--ck-spacing-large);
|
|
151
|
+
grid-template-columns: repeat( 4, auto );
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list .ck-button {
|
|
155
|
+
width: var(--ck-footnotes-styles-list-style-button-size);
|
|
156
|
+
height: var(--ck-footnotes-styles-list-style-button-size);
|
|
157
|
+
padding: 0;
|
|
158
|
+
|
|
159
|
+
/*
|
|
160
|
+
* Buttons are aligned by the grid so disable default button margins to not collide with the
|
|
161
|
+
* gaps in the grid.
|
|
162
|
+
*/
|
|
163
|
+
margin: 0;
|
|
164
|
+
|
|
165
|
+
/*
|
|
166
|
+
* Make sure the button border (which is displayed on focus, BTW) does not steal pixels
|
|
167
|
+
* from the button dimensions and, as a result, decrease the size of the icon
|
|
168
|
+
* (which becomes blurry as it scales down).
|
|
169
|
+
*/
|
|
170
|
+
box-sizing: content-box;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.ck.ck-footnotes-definitions-properties > .ck-footnotes-definitions-styles-list .ck-button .ck-icon {
|
|
174
|
+
width: var(--ck-footnotes-styles-list-style-button-size);
|
|
175
|
+
height: var(--ck-footnotes-styles-list-style-button-size);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.ck.ck-footnotes-definitions-properties > .ck-collapsible {
|
|
179
|
+
border-top: 1px solid var(--ck-color-base-border);
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
.ck.ck-footnotes-definitions-properties > .ck-collapsible .ck-footnotes-definitions-properties__start-index .ck-input {
|
|
183
|
+
min-width: 100%;
|
|
184
|
+
}
|