@ckeditor/ckeditor5-footnotes 0.0.0-nightly-20260127.0 → 0.0.0-nightly-next-20260127.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/ckeditor5-metadata.json +2 -2
- package/{src → dist}/commands/insertfootnotecommand.d.ts +1 -1
- package/{src → dist}/footnotes.d.ts +1 -1
- package/{src → dist}/footnotesclipboard.d.ts +2 -2
- package/{src → dist}/footnotesediting.d.ts +2 -2
- package/{src → dist}/footnotesproperties/commands/footnotesstartcommand.d.ts +1 -1
- package/{src → dist}/footnotesproperties/commands/footnotesstylecommand.d.ts +1 -1
- package/{src → dist}/footnotesproperties/footnotespropertiesediting.d.ts +1 -1
- package/{src → dist}/footnotesproperties/footnotespropertiesui.d.ts +3 -3
- package/{src → dist}/footnotesproperties.d.ts +1 -1
- package/{src → dist}/footnotestracker.d.ts +2 -2
- package/{src → dist}/footnotesui.d.ts +1 -1
- package/dist/index.js +1 -1
- package/{src → dist}/modelelementtracker.d.ts +1 -1
- package/dist/translations/af.js +1 -1
- package/dist/translations/af.umd.js +1 -1
- package/dist/translations/ar.js +1 -1
- package/dist/translations/ar.umd.js +1 -1
- package/dist/translations/ast.js +1 -1
- package/dist/translations/ast.umd.js +1 -1
- package/dist/translations/az.js +1 -1
- package/dist/translations/az.umd.js +1 -1
- package/dist/translations/be.js +1 -1
- package/dist/translations/be.umd.js +1 -1
- package/dist/translations/bg.js +1 -1
- package/dist/translations/bg.umd.js +1 -1
- package/dist/translations/bn.js +1 -1
- package/dist/translations/bn.umd.js +1 -1
- package/dist/translations/bs.js +1 -1
- package/dist/translations/bs.umd.js +1 -1
- package/dist/translations/ca.js +1 -1
- package/dist/translations/ca.umd.js +1 -1
- package/dist/translations/cs.js +1 -1
- package/dist/translations/cs.umd.js +1 -1
- package/dist/translations/da.js +1 -1
- package/dist/translations/da.umd.js +1 -1
- package/dist/translations/de-ch.js +1 -1
- package/dist/translations/de-ch.umd.js +1 -1
- package/dist/translations/de.js +1 -1
- package/dist/translations/de.umd.js +1 -1
- package/dist/translations/el.js +1 -1
- package/dist/translations/el.umd.js +1 -1
- package/dist/translations/en-au.js +1 -1
- package/dist/translations/en-au.umd.js +1 -1
- package/dist/translations/en-gb.js +1 -1
- package/dist/translations/en-gb.umd.js +1 -1
- package/dist/translations/en.js +1 -1
- package/dist/translations/en.umd.js +1 -1
- package/dist/translations/eo.js +1 -1
- package/dist/translations/eo.umd.js +1 -1
- package/dist/translations/es-co.js +1 -1
- package/dist/translations/es-co.umd.js +1 -1
- package/dist/translations/es.js +1 -1
- package/dist/translations/es.umd.js +1 -1
- package/dist/translations/et.js +1 -1
- package/dist/translations/et.umd.js +1 -1
- package/dist/translations/eu.js +1 -1
- package/dist/translations/eu.umd.js +1 -1
- package/dist/translations/fa.js +1 -1
- package/dist/translations/fa.umd.js +1 -1
- package/dist/translations/fi.js +1 -1
- package/dist/translations/fi.umd.js +1 -1
- package/dist/translations/fr.js +1 -1
- package/dist/translations/fr.umd.js +1 -1
- package/dist/translations/gl.js +1 -1
- package/dist/translations/gl.umd.js +1 -1
- package/dist/translations/gu.js +1 -1
- package/dist/translations/gu.umd.js +1 -1
- package/dist/translations/he.js +1 -1
- package/dist/translations/he.umd.js +1 -1
- package/dist/translations/hi.js +1 -1
- package/dist/translations/hi.umd.js +1 -1
- package/dist/translations/hr.js +1 -1
- package/dist/translations/hr.umd.js +1 -1
- package/dist/translations/hu.js +1 -1
- package/dist/translations/hu.umd.js +1 -1
- package/dist/translations/hy.js +1 -1
- package/dist/translations/hy.umd.js +1 -1
- package/dist/translations/id.js +1 -1
- package/dist/translations/id.umd.js +1 -1
- package/dist/translations/it.js +1 -1
- package/dist/translations/it.umd.js +1 -1
- package/dist/translations/ja.js +1 -1
- package/dist/translations/ja.umd.js +1 -1
- package/dist/translations/jv.js +1 -1
- package/dist/translations/jv.umd.js +1 -1
- package/dist/translations/kk.js +1 -1
- package/dist/translations/kk.umd.js +1 -1
- package/dist/translations/km.js +1 -1
- package/dist/translations/km.umd.js +1 -1
- package/dist/translations/kn.js +1 -1
- package/dist/translations/kn.umd.js +1 -1
- package/dist/translations/ko.js +1 -1
- package/dist/translations/ko.umd.js +1 -1
- package/dist/translations/ku.js +1 -1
- package/dist/translations/ku.umd.js +1 -1
- package/dist/translations/lt.js +1 -1
- package/dist/translations/lt.umd.js +1 -1
- package/dist/translations/lv.js +1 -1
- package/dist/translations/lv.umd.js +1 -1
- package/dist/translations/ms.js +1 -1
- package/dist/translations/ms.umd.js +1 -1
- package/dist/translations/nb.js +1 -1
- package/dist/translations/nb.umd.js +1 -1
- package/dist/translations/ne.js +1 -1
- package/dist/translations/ne.umd.js +1 -1
- package/dist/translations/nl.js +1 -1
- package/dist/translations/nl.umd.js +1 -1
- package/dist/translations/no.js +1 -1
- package/dist/translations/no.umd.js +1 -1
- package/dist/translations/oc.js +1 -1
- package/dist/translations/oc.umd.js +1 -1
- package/dist/translations/pl.js +1 -1
- package/dist/translations/pl.umd.js +1 -1
- package/dist/translations/pt-br.js +1 -1
- package/dist/translations/pt-br.umd.js +1 -1
- package/dist/translations/pt.js +1 -1
- package/dist/translations/pt.umd.js +1 -1
- package/dist/translations/ro.js +1 -1
- package/dist/translations/ro.umd.js +1 -1
- package/dist/translations/ru.js +1 -1
- package/dist/translations/ru.umd.js +1 -1
- package/dist/translations/si.js +1 -1
- package/dist/translations/si.umd.js +1 -1
- package/dist/translations/sk.js +1 -1
- package/dist/translations/sk.umd.js +1 -1
- package/dist/translations/sl.js +1 -1
- package/dist/translations/sl.umd.js +1 -1
- package/dist/translations/sq.js +1 -1
- package/dist/translations/sq.umd.js +1 -1
- package/dist/translations/sr-latn.js +1 -1
- package/dist/translations/sr-latn.umd.js +1 -1
- package/dist/translations/sr.js +1 -1
- package/dist/translations/sr.umd.js +1 -1
- package/dist/translations/sv.js +1 -1
- package/dist/translations/sv.umd.js +1 -1
- package/dist/translations/th.js +1 -1
- package/dist/translations/th.umd.js +1 -1
- package/dist/translations/ti.js +1 -1
- package/dist/translations/ti.umd.js +1 -1
- package/dist/translations/tk.js +1 -1
- package/dist/translations/tk.umd.js +1 -1
- package/dist/translations/tr.js +1 -1
- package/dist/translations/tr.umd.js +1 -1
- package/dist/translations/tt.js +1 -1
- package/dist/translations/tt.umd.js +1 -1
- package/dist/translations/ug.js +1 -1
- package/dist/translations/ug.umd.js +1 -1
- package/dist/translations/uk.js +1 -1
- package/dist/translations/uk.umd.js +1 -1
- package/dist/translations/ur.js +1 -1
- package/dist/translations/ur.umd.js +1 -1
- package/dist/translations/uz.js +1 -1
- package/dist/translations/uz.umd.js +1 -1
- package/dist/translations/vi.js +1 -1
- package/dist/translations/vi.umd.js +1 -1
- package/dist/translations/zh-cn.js +1 -1
- package/dist/translations/zh-cn.umd.js +1 -1
- package/dist/translations/zh.js +1 -1
- package/dist/translations/zh.umd.js +1 -1
- package/package.json +20 -42
- package/build/footnotes.js +0 -5
- package/build/translations/af.js +0 -1
- package/build/translations/ar.js +0 -1
- package/build/translations/ast.js +0 -1
- package/build/translations/az.js +0 -1
- package/build/translations/be.js +0 -1
- package/build/translations/bg.js +0 -1
- package/build/translations/bn.js +0 -1
- package/build/translations/bs.js +0 -1
- package/build/translations/ca.js +0 -1
- package/build/translations/cs.js +0 -1
- package/build/translations/da.js +0 -1
- package/build/translations/de-ch.js +0 -1
- package/build/translations/de.js +0 -1
- package/build/translations/el.js +0 -1
- package/build/translations/en-au.js +0 -1
- package/build/translations/en-gb.js +0 -1
- package/build/translations/eo.js +0 -1
- package/build/translations/es-co.js +0 -1
- package/build/translations/es.js +0 -1
- package/build/translations/et.js +0 -1
- package/build/translations/eu.js +0 -1
- package/build/translations/fa.js +0 -1
- package/build/translations/fi.js +0 -1
- package/build/translations/fr.js +0 -1
- package/build/translations/gl.js +0 -1
- package/build/translations/gu.js +0 -1
- package/build/translations/he.js +0 -1
- package/build/translations/hi.js +0 -1
- package/build/translations/hr.js +0 -1
- package/build/translations/hu.js +0 -1
- package/build/translations/hy.js +0 -1
- package/build/translations/id.js +0 -1
- package/build/translations/it.js +0 -1
- package/build/translations/ja.js +0 -1
- package/build/translations/jv.js +0 -1
- package/build/translations/kk.js +0 -1
- package/build/translations/km.js +0 -1
- package/build/translations/kn.js +0 -1
- package/build/translations/ko.js +0 -1
- package/build/translations/ku.js +0 -1
- package/build/translations/lt.js +0 -1
- package/build/translations/lv.js +0 -1
- package/build/translations/ms.js +0 -1
- package/build/translations/nb.js +0 -1
- package/build/translations/ne.js +0 -1
- package/build/translations/nl.js +0 -1
- package/build/translations/no.js +0 -1
- package/build/translations/oc.js +0 -1
- package/build/translations/pl.js +0 -1
- package/build/translations/pt-br.js +0 -1
- package/build/translations/pt.js +0 -1
- package/build/translations/ro.js +0 -1
- package/build/translations/ru.js +0 -1
- package/build/translations/si.js +0 -1
- package/build/translations/sk.js +0 -1
- package/build/translations/sl.js +0 -1
- package/build/translations/sq.js +0 -1
- package/build/translations/sr-latn.js +0 -1
- package/build/translations/sr.js +0 -1
- package/build/translations/sv.js +0 -1
- package/build/translations/th.js +0 -1
- package/build/translations/ti.js +0 -1
- package/build/translations/tk.js +0 -1
- package/build/translations/tr.js +0 -1
- package/build/translations/tt.js +0 -1
- package/build/translations/ug.js +0 -1
- package/build/translations/uk.js +0 -1
- package/build/translations/ur.js +0 -1
- package/build/translations/uz.js +0 -1
- package/build/translations/vi.js +0 -1
- package/build/translations/zh-cn.js +0 -1
- package/build/translations/zh.js +0 -1
- package/lang/contexts.json +0 -27
- package/lang/translations/af.po +0 -112
- package/lang/translations/ar.po +0 -112
- package/lang/translations/ast.po +0 -112
- package/lang/translations/az.po +0 -112
- package/lang/translations/be.po +0 -112
- package/lang/translations/bg.po +0 -112
- package/lang/translations/bn.po +0 -112
- package/lang/translations/bs.po +0 -112
- package/lang/translations/ca.po +0 -112
- package/lang/translations/cs.po +0 -112
- package/lang/translations/da.po +0 -112
- package/lang/translations/de-ch.po +0 -112
- package/lang/translations/de.po +0 -112
- package/lang/translations/el.po +0 -112
- package/lang/translations/en-au.po +0 -112
- package/lang/translations/en-gb.po +0 -112
- package/lang/translations/en.po +0 -112
- package/lang/translations/eo.po +0 -112
- package/lang/translations/es-co.po +0 -112
- package/lang/translations/es.po +0 -112
- package/lang/translations/et.po +0 -112
- package/lang/translations/eu.po +0 -112
- package/lang/translations/fa.po +0 -112
- package/lang/translations/fi.po +0 -112
- package/lang/translations/fr.po +0 -112
- package/lang/translations/gl.po +0 -112
- package/lang/translations/gu.po +0 -112
- package/lang/translations/he.po +0 -112
- package/lang/translations/hi.po +0 -112
- package/lang/translations/hr.po +0 -112
- package/lang/translations/hu.po +0 -112
- package/lang/translations/hy.po +0 -112
- package/lang/translations/id.po +0 -112
- package/lang/translations/it.po +0 -112
- package/lang/translations/ja.po +0 -112
- package/lang/translations/jv.po +0 -112
- package/lang/translations/kk.po +0 -112
- package/lang/translations/km.po +0 -112
- package/lang/translations/kn.po +0 -112
- package/lang/translations/ko.po +0 -112
- package/lang/translations/ku.po +0 -112
- package/lang/translations/lt.po +0 -112
- package/lang/translations/lv.po +0 -112
- package/lang/translations/ms.po +0 -112
- package/lang/translations/nb.po +0 -112
- package/lang/translations/ne.po +0 -112
- package/lang/translations/nl.po +0 -112
- package/lang/translations/no.po +0 -112
- package/lang/translations/oc.po +0 -112
- package/lang/translations/pl.po +0 -112
- package/lang/translations/pt-br.po +0 -112
- package/lang/translations/pt.po +0 -112
- package/lang/translations/ro.po +0 -112
- package/lang/translations/ru.po +0 -112
- package/lang/translations/si.po +0 -112
- package/lang/translations/sk.po +0 -112
- package/lang/translations/sl.po +0 -112
- package/lang/translations/sq.po +0 -112
- package/lang/translations/sr-latn.po +0 -112
- package/lang/translations/sr.po +0 -112
- package/lang/translations/sv.po +0 -112
- package/lang/translations/th.po +0 -112
- package/lang/translations/ti.po +0 -112
- package/lang/translations/tk.po +0 -112
- package/lang/translations/tr.po +0 -112
- package/lang/translations/tt.po +0 -112
- package/lang/translations/ug.po +0 -112
- package/lang/translations/uk.po +0 -112
- package/lang/translations/ur.po +0 -112
- package/lang/translations/uz.po +0 -112
- package/lang/translations/vi.po +0 -112
- package/lang/translations/zh-cn.po +0 -112
- package/lang/translations/zh.po +0 -112
- package/src/augmentation.js +0 -23
- package/src/commands/insertfootnotecommand.js +0 -23
- package/src/footnotes.js +0 -23
- package/src/footnotesclipboard.js +0 -23
- package/src/footnotesconfig.js +0 -23
- package/src/footnotesediting.js +0 -23
- package/src/footnotesproperties/commands/footnotesstartcommand.js +0 -23
- package/src/footnotesproperties/commands/footnotesstylecommand.js +0 -23
- package/src/footnotesproperties/footnotespropertiesconfig.js +0 -23
- package/src/footnotesproperties/footnotespropertiesediting.js +0 -23
- package/src/footnotesproperties/footnotespropertiesui.js +0 -23
- package/src/footnotesproperties/ui/footnotesdefinitionspropertiesview.js +0 -23
- package/src/footnotesproperties.js +0 -23
- package/src/footnotestracker.js +0 -23
- package/src/footnotesui.js +0 -23
- package/src/index.js +0 -23
- package/src/modelelementtracker.js +0 -23
- package/theme/footnotes.css +0 -143
- package/theme/footnotesproperties.css +0 -54
- /package/{src → dist}/augmentation.d.ts +0 -0
- /package/{src → dist}/footnotesconfig.d.ts +0 -0
- /package/{src → dist}/footnotesproperties/footnotespropertiesconfig.d.ts +0 -0
- /package/{src → dist}/footnotesproperties/ui/footnotesdefinitionspropertiesview.d.ts +0 -0
- /package/{src → dist}/index.d.ts +0 -0
package/ckeditor5-metadata.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"className": "Footnotes",
|
|
6
6
|
"description": "Introduces footnotes functionality for adding references and notes.",
|
|
7
7
|
"docs": "features/footnotes.html",
|
|
8
|
-
"path": "src/footnotes.
|
|
8
|
+
"path": "src/footnotes.ts",
|
|
9
9
|
"uiComponents": [
|
|
10
10
|
{
|
|
11
11
|
"name": "insertFootnote",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"className": "FootnotesProperties",
|
|
44
44
|
"description": "Provides the ability to customize footnote properties such as numbering style.",
|
|
45
45
|
"docs": "features/footnotes.html#footnote-properties",
|
|
46
|
-
"path": "src/footnotesproperties.
|
|
46
|
+
"path": "src/footnotesproperties.ts",
|
|
47
47
|
"uiComponents": [
|
|
48
48
|
{
|
|
49
49
|
"type": "Button",
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Command } from 'ckeditor5
|
|
5
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
/**
|
|
7
7
|
* The insert footnote command.
|
|
8
8
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module footnotes/footnotes
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { FootnotesEditing } from './footnotesediting.js';
|
|
11
11
|
import { FootnotesClipboard } from './footnotesclipboard.js';
|
|
12
12
|
import { FootnotesUI } from './footnotesui.js';
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module footnotes/footnotesclipboard
|
|
7
7
|
*/
|
|
8
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
-
import { ClipboardPipeline } from 'ckeditor5
|
|
8
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
9
|
+
import { ClipboardPipeline } from '@ckeditor/ckeditor5-clipboard';
|
|
10
10
|
import { FootnotesEditing } from './footnotesediting.js';
|
|
11
11
|
/**
|
|
12
12
|
* The footnotes clipboard integration plugin.
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module footnotes/footnotesediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
10
|
-
import { type ViewNode } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import { type ViewNode } from '@ckeditor/ckeditor5-engine';
|
|
11
11
|
import { FootnotesTracker } from './footnotestracker.js';
|
|
12
12
|
/**
|
|
13
13
|
* The footnotes editing plugin.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module footnotes/footnotesproperties/commands/footnotesstylecommand
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Command } from 'ckeditor5
|
|
9
|
+
import { Command } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { type FootnotesDefinitionsStyle } from '../footnotespropertiesconfig.js';
|
|
11
11
|
/**
|
|
12
12
|
* Change footnotes definitions style command.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module footnotes/footnotesproperties/footnotespropertiesediting
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { FootnotesTracker } from '../footnotestracker.js';
|
|
11
11
|
import { FootnotesEditing } from '../footnotesediting.js';
|
|
12
12
|
/**
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
* @module footnotes/footnotesproperties/footnotespropertiesui
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { ContextualBalloon } from 'ckeditor5
|
|
10
|
-
import { WidgetToolbarRepository } from 'ckeditor5
|
|
11
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { ContextualBalloon } from '@ckeditor/ckeditor5-ui';
|
|
10
|
+
import { WidgetToolbarRepository } from '@ckeditor/ckeditor5-widget';
|
|
11
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
12
12
|
import '../../theme/footnotesproperties.css';
|
|
13
13
|
/**
|
|
14
14
|
* A plugin that provides footnotes properties UI.
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @module footnotes/footnotesproperties
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin } from 'ckeditor5
|
|
9
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
10
10
|
import { FootnotesPropertiesEditing } from './footnotesproperties/footnotespropertiesediting.js';
|
|
11
11
|
import { FootnotesPropertiesUI } from './footnotesproperties/footnotespropertiesui.js';
|
|
12
12
|
/**
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* @module footnotes/footnotestracker
|
|
7
7
|
* @publicApi
|
|
8
8
|
*/
|
|
9
|
-
import { Plugin, type Editor } from 'ckeditor5
|
|
10
|
-
import type { ModelElement } from 'ckeditor5
|
|
9
|
+
import { Plugin, type Editor } from '@ckeditor/ckeditor5-core';
|
|
10
|
+
import type { ModelElement } from '@ckeditor/ckeditor5-engine';
|
|
11
11
|
/**
|
|
12
12
|
* The footnotes tracker. It keeps track of all footnotes in the editor.
|
|
13
13
|
*
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @license Copyright (c) 2003-2026, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
3
|
* For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-licensing-options
|
|
4
4
|
*/
|
|
5
|
-
import { Plugin } from 'ckeditor5
|
|
5
|
+
import { Plugin } from '@ckeditor/ckeditor5-core';
|
|
6
6
|
import '../theme/footnotes.css';
|
|
7
7
|
/**
|
|
8
8
|
* The footnotes UI plugin.
|
package/dist/index.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
import{Plugin as _0x228b4b,Command as _0x28f868}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x4d67c2,isWidget as _0x5853f6,toWidgetEditable as _0x5ad520,WidgetToolbarRepository as _0x2d5feb}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x1da73a,logWarning as _0x25dade,FocusTracker as rt,KeystrokeHandler as nt,global as at}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x156beb,ClickObserver as _0x3c1fe7}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x421ee3}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x1a3d94,ButtonView as _0x5d9a08,View as _0x4ea473,ViewCollection as _0x1fc5a8,FocusCycler as tt,addKeyboardHandlingForGrid as st,CollapsibleView as it,LabeledFieldView as et,createLabeledInputNumber as ot,ContextualBalloon as _0x2e7bd6,BalloonPanelView as _0x4706a4,createDropdown as _0x3e8b49}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x48e6cb,IconListStyleDecimal as _0x17a16c,IconListStyleDecimalLeadingZero as _0x582eb4,IconListStyleLowerRoman as _0x396a03,IconListStyleUpperRoman as _0x3b82af,IconListStyleLowerLatin as _0x17b960,IconListStyleUpperLatin as _0x56627b}from'@ckeditor/ckeditor5-icons/dist/index.js';class F{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x34a448,_0x3a6872){this['_model']=_0x34a448,this['_elementName']=_0x3a6872['elementName'],this['_getElementKey']=_0x3a6872['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x3d9bf9){const _0x29124a=new Set(),_0x25e11e=new Map();for(const _0xcaeaa3 of _0x3d9bf9){if('insert'===_0xcaeaa3['type']&&'$text'!==_0xcaeaa3['name']&&_0xcaeaa3['position']['nodeAfter']){const _0x1a1ae0=this['_model']['createRangeOn'](_0xcaeaa3['position']['nodeAfter']);for(const _0x1c894b of _0x1a1ae0['getItems']()){if(!_0x1c894b['is']('element',this['_elementName']))continue;const _0x188d7e=this['_getElementKey'](_0x1c894b);_0x25e11e['has'](_0x188d7e)||_0x25e11e['set'](_0x188d7e,[]),_0x25e11e['get'](_0x188d7e)['push'](_0x1c894b);}}if('remove'===_0xcaeaa3['type']&&_0xcaeaa3['name']===this['_elementName']){const _0x2b356b=this['_getElementKey']({'getAttribute':_0xe2bdc2=>_0xcaeaa3['attributes']['get'](_0xe2bdc2)});_0x29124a['add'](_0x2b356b);}}for(const [_0x25e1e4,_0x35bd26]of this['_trackedElements'])'$graveyard'===_0x35bd26['root']['rootName']&&_0x29124a['add'](_0x25e1e4);for(const _0x143de6 of _0x29124a)this['_trackedElements']['delete'](_0x143de6);for(const [_0x24c4de,_0x1f9e23]of _0x25e11e)this['_trackedElements']['set'](_0x24c4de,_0x1f9e23[_0x1f9e23['length']-0x1]);const _0x1a4dba=new Set();for(const [_0x3bc97d,_0x3ba2d9]of _0x25e11e)_0x29124a['has'](_0x3bc97d)&&(_0x1a4dba['add'](_0x3ba2d9[0x0]),_0x3ba2d9['length']>0x1?_0x25e11e['set'](_0x3bc97d,_0x3ba2d9['slice'](0x1)):_0x25e11e['delete'](_0x3bc97d),_0x29124a['delete'](_0x3bc97d));return{'removed':Array['from'](_0x29124a),'inserted':Array['from'](_0x25e11e['values']())['flat'](),'moved':Array['from'](_0x1a4dba)};}}class f extends _0x228b4b{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x39e962){super(_0x39e962),this['_footnoteDefsContainerTracker']=new F(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x629742=>_0x629742['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new F(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x4311f5=>_0x4311f5['getAttribute']('footnoteId')});}['init'](){const {editor:_0x4b25ab}=this,{model:_0x4d17c3,data:_0x3bb143}=_0x4b25ab;_0x4d17c3['document']['registerPostFixer'](_0x36b299=>{const _0x511e30=_0x4d17c3['document']['differ']['getChanges']();let _0x232728=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x36b299,_0x511e30)&&(_0x232728=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x36b299,_0x511e30)&&(_0x232728=!0x0),this['_handleFootnoteReferencesChanges'](_0x36b299,_0x511e30)&&(_0x232728=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x36b299)&&(_0x232728=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x36b299)&&(_0x232728=!0x0),this['_sortFootnoteDefinitions'](_0x36b299)&&(_0x232728=!0x0),_0x232728;}),this['listenTo'](_0x4d17c3['document'],'change:data',()=>{_0x4d17c3['enqueueChange']({'isUndoable':!0x1},_0x5a6e1e=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x5a6e1e);});},{'priority':'low'}),this['listenTo'](_0x3bb143,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x52e09e){return this['_footnotes']['find'](_0x30c8f4=>_0x30c8f4['id']===_0x52e09e)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x1f61c6){this['_footnoteFormatter']=_0x1f61c6;}['_updateFootnotesCounters'](_0x1b3d01,_0x5ae51f=0x0){let _0x159605=!0x1;for(let _0xf39781=_0x5ae51f;_0xf39781<this['_footnotes']['length'];_0xf39781++)this['_updateFootnoteRefCounter'](_0x1b3d01,_0xf39781)&&(_0x159605=!0x0);return _0x159605;}['_insertEmptyFootnotesDefinitionsContainer'](_0x425524,_0x38de09){const _0x5c8903=_0x425524['createElement']('footnotesDefinitions',{});return _0x425524['append'](_0x5c8903,_0x38de09),this['_footnotesDefinitions']=_0x5c8903,_0x5c8903;}['_ensureFootnotesDefinitionsContainerExists'](_0x8e28cf){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4e4087=this['_footnotes'][0x0]['reference']['root'],_0x15043e=this['_insertEmptyFootnotesDefinitionsContainer'](_0x8e28cf,_0x4e4087);for(const _0x59989a of this['_footnotes'])_0x59989a['definition']['parent']||_0x8e28cf['insert'](_0x59989a['definition'],_0x15043e,'end');this['_updateFootnotesCounters'](_0x8e28cf);}['_handleFootnotesDefinitionsObjectChanges'](_0x25e4e1,_0x224f5e){let _0x1b10a6=!0x1;const {inserted:_0x228851,removed:_0x40b1cf,moved:_0x3f44d6}=this['_footnoteDefsContainerTracker']['getChanges'](_0x224f5e);if(_0x3f44d6['length']&&(this['_footnotesDefinitions']=_0x3f44d6[0x0]),_0x228851['length']){if(_0x228851['length']>0x1||this['_footnotesDefinitions']&&_0x228851['some'](_0x352d1e=>_0x352d1e!==this['_footnotesDefinitions'])){const _0x4d871b=_0x25e4e1['createElement']('footnotesDefinitions',{}),_0x3ed050=[];this['_footnotesDefinitions']&&_0x3ed050['push'](this['_footnotesDefinitions']),_0x3ed050['push'](..._0x228851),_0x25e4e1['insert'](_0x4d871b,_0x3ed050[0x0],'before');for(const _0x6dcdf8 of _0x3ed050)_0x25e4e1['move'](_0x25e4e1['createRangeIn'](_0x6dcdf8),_0x25e4e1['createPositionAt'](_0x4d871b,'end')),_0x25e4e1['remove'](_0x6dcdf8);this['_footnotesDefinitions']=_0x4d871b,this['_updateFootnotesCounters'](_0x25e4e1),_0x1b10a6=!0x0;}else this['_footnotesDefinitions']=_0x228851[0x0];}if(_0x40b1cf['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1e5595 of this['_footnotes'])_0x25e4e1['remove'](_0x1e5595['reference']),_0x1b10a6=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x1b10a6;}['_handleFootnoteDefinitionsChanges'](_0x448a88,_0x34ee85){let _0x469cc9=!0x1;const _0x20785a=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x6f8dde,moved:_0x5aec0e}=this['_footnoteDefsTracker']['getChanges'](_0x34ee85);for(const _0x30cb87 of[..._0x5aec0e,..._0x6f8dde]){const _0x14c543=_0x30cb87['getAttribute']('footnoteId'),_0x11a6cd=this['getFootnote'](_0x14c543);_0x11a6cd&&(_0x11a6cd['definition']=_0x30cb87),_(_0x448a88,_0x20785a,_0x30cb87)&&(_0x469cc9=!0x0);}return _0x469cc9;}['_handleFootnoteReferencesChanges'](_0x360fcb,_0x3fadce){let _0x589ac7=!0x1;const {removed:_0x2e2940,inserted:_0x5d044d,moved:_0x174ae5}=this['_footnoteRefsTracker']['getChanges'](_0x3fadce);for(const _0x425348 of _0x2e2940)this['_handleRemoveFootnoteReferenceById'](_0x360fcb,_0x425348)&&(_0x589ac7=!0x0);for(const _0x3c6372 of _0x5d044d)this['_handleInsertedFootnoteReference'](_0x360fcb,_0x3c6372)&&(_0x589ac7=!0x0);for(const _0x98fbba of _0x174ae5)this['_handleMovedFootnoteReference'](_0x360fcb,_0x98fbba)&&(_0x589ac7=!0x0);return _0x589ac7;}['_handleFootnotesDefinitionsObjectSync'](_0x49ca2a){if(!this['_footnotesDefinitions'])return!0x1;let _0xf6dae4=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0xae0206=[];for(const _0xf3e554 of this['_footnotesDefinitions']['getChildren']()){const _0x552f98=_0xf3e554['getAttribute']('footnoteId');this['getFootnote'](_0x552f98)||(_0xae0206['unshift'](_0xf3e554),_0xf6dae4=!0x0);}for(const _0x363c06 of _0xae0206)_0x49ca2a['remove'](_0x363c06);}const _0x54d6c7=new Set(),_0x442f4b=[];for(const _0x3c49a2 of this['_footnotesDefinitions']['getChildren']()){const _0x4ffca3=_0x3c49a2['getAttribute']('footnoteId');_0x54d6c7['has'](_0x4ffca3)?(_0x442f4b['unshift'](_0x3c49a2),_0xf6dae4=!0x0):_0x54d6c7['add'](_0x4ffca3);}for(const _0x260dc6 of _0x442f4b)_0x49ca2a['remove'](_0x260dc6);return this['_footnotesDefinitions']['childCount']||(_0x49ca2a['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0xf6dae4=!0x0),_0xf6dae4;}['_handleInsertedFootnoteReference'](_0x265bb2,_0x4714ad){if(this['_footnotes']['find'](_0x1728c1=>_0x1728c1['reference']===_0x4714ad))return!0x1;let _0x170f05=!0x1;const _0x461788=_0x4714ad['getAttribute']('footnoteId'),_0x202538=this['_footnotes']['findIndex'](_0x1e1777=>_0x1e1777['id']===_0x461788);-0x1!==_0x202538&&(_0x265bb2['remove'](this['_footnotes'][_0x202538]['reference']),this['_footnotes']['splice'](_0x202538,0x1),_0x170f05=!0x0);let _0x2d5b7c=this['_footnotesDefinitions']?function(_0x5ad85e,_0x59ec90){for(const _0x1524ff of _0x5ad85e['getChildren']())if(_0x1524ff['getAttribute']('footnoteId')===_0x59ec90)return _0x1524ff;return null;}(this['_footnotesDefinitions'],_0x461788):null;_0x2d5b7c||(_0x2d5b7c=_0x265bb2['createElement']('footnoteDefinition',{'footnoteId':_0x461788}),this['_footnotesDefinitions']&&(_0x265bb2['insert'](_0x2d5b7c,this['_footnotesDefinitions'],'end'),_0x170f05=!0x0));const _0x2ba99e={'id':_0x461788,'reference':_0x4714ad,'definition':_0x2d5b7c},_0x56a24e=I(this['editor']['model'],this['_footnotes'],_0x4714ad);this['_footnotes']['splice'](_0x56a24e,0x0,_0x2ba99e);let _0x1f728d=_0x56a24e;return-0x1!==_0x202538&&(_0x1f728d=Math['min'](_0x56a24e,_0x202538)),this['_updateFootnotesCounters'](_0x265bb2,_0x1f728d)&&(_0x170f05=!0x0),_0x170f05;}['_handleRemoveFootnoteReferenceById'](_0x3fce0d,_0x35885c){const _0x1898c7=this['_footnotes']['findIndex'](_0x33d8ae=>_0x33d8ae['id']===_0x35885c);if(-0x1===_0x1898c7)return!0x1;let _0xd33309=!0x1;const _0x36ae43=this['_footnotes'][_0x1898c7];return'$graveyard'!==_0x36ae43['definition']['root']['rootName']&&(_0x3fce0d['remove'](_0x36ae43['definition']),_0xd33309=!0x0),this['_footnotes']['splice'](_0x1898c7,0x1),this['_updateFootnotesCounters'](_0x3fce0d,_0x1898c7)&&(_0xd33309=!0x0),_0xd33309;}['_handleMovedFootnoteReference'](_0x3bc33c,_0x328289){const _0x36a1f6=_0x328289['getAttribute']('footnoteId'),_0x167e77=this['_footnotes']['findIndex'](_0x4dec3a=>_0x4dec3a['id']===_0x36a1f6),_0x56a052=this['_footnotes'][_0x167e77];let _0x28048c=!0x1;_0x56a052['reference']=_0x328289,this['_footnotes']['splice'](_0x167e77,0x1);const _0x13969d=I(this['editor']['model'],this['_footnotes'],_0x328289);return this['_footnotes']['splice'](_0x13969d,0x0,_0x56a052),this['_updateFootnotesCounters'](_0x3bc33c,Math['min'](_0x167e77,_0x13969d))&&(_0x28048c=!0x0),_0x28048c;}['_updateFootnoteRefCounter'](_0x1a90d5,_0x51443d){if(!this['_footnotesDefinitions'])return!0x1;const _0x2c7394=this['_footnotes'][_0x51443d];let _0x3daa80;return _0x3daa80=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x2c7394,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x51443d+0x1}):String(_0x51443d+0x1),_0x2c7394['reference']['getAttribute']('footnoteCounter')!=_0x3daa80&&(_0x1a90d5['setAttribute']('footnoteCounter',_0x3daa80,_0x2c7394['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x3cf0f2){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x9fc5e,_0x1e5f20){if(_0x9fc5e['length']!==_0x1e5f20['length'])return!0x1;for(let _0x47c24f=0x0;_0x47c24f<_0x9fc5e['length'];_0x47c24f++)if(_0x9fc5e[_0x47c24f]!==_0x1e5f20[_0x47c24f])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x145b4f=>_0x145b4f['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x9051a0=>_0x9051a0['getAttribute']('footnoteId'))))return!0x1;let _0x3c6f38=!0x1;for(let _0x2852ea=0x0;_0x2852ea<this['_footnotes']['length'];_0x2852ea++){const _0x4f089f=this['_footnotes'][_0x2852ea],_0x254232=_0x3cf0f2['createPositionBefore'](_0x4f089f['definition']),_0x2fd71f=_0x3cf0f2['createPositionAt'](this['_footnotesDefinitions'],_0x2852ea);_0x254232['isEqual'](_0x2fd71f)||(_0x3cf0f2['move'](_0x3cf0f2['createRangeOn'](_0x4f089f['definition']),_0x2fd71f),_0x3c6f38=!0x0);}return _0x3c6f38;}['_ensureFootnotesReferencesHaveProperOrder'](_0xa03d25){if(!this['_footnotes']['length'])return!0x1;const {model:_0x142752}=this['editor'];let _0x1d4764=!0x1;for(let _0x2959d7=0x0;_0x2959d7<this['_footnotes']['length']-0x1;_0x2959d7++){const _0x1bf26d=this['_footnotes'][_0x2959d7],_0x4b22f5=this['_footnotes'][_0x2959d7+0x1],_0x275d72=_0x142752['createPositionBefore'](_0x1bf26d['reference']),_0x53691d=_0x142752['createPositionBefore'](_0x4b22f5['reference']);'after'===_0x275d72['compareWith'](_0x53691d)&&(this['_handleMovedFootnoteReference'](_0xa03d25,_0x1bf26d['reference']),_0x2959d7=-0x1,_0x1d4764=!0x0);}return _0x1d4764;}}function _(_0x30b4e5,_0x3baf48,_0x2565e9){if(_0x2565e9['childCount'])return!0x1;const _0x28fbc5=_0x3baf48?'paragraph':'footnoteInlineContent';return _0x30b4e5['insert'](_0x30b4e5['createElement'](_0x28fbc5),_0x2565e9),!0x0;}function I(_0x826314,_0x4f5d4b,_0x334157){if(0x0===_0x4f5d4b['length'])return 0x0;const _0x44f4d6=_0x826314['createPositionBefore'](_0x334157);for(let _0x45b10b=0x0;_0x45b10b<_0x4f5d4b['length'];_0x45b10b++){const _0x5322ec=_0x4f5d4b[_0x45b10b],_0x4dbb72=_0x826314['createPositionBefore'](_0x5322ec['reference']);if('before'===_0x44f4d6['compareWith'](_0x4dbb72))return _0x45b10b;}const _0x117e4d=_0x334157['root'];let _0x13faf7=-0x1;for(let _0x55af0c=_0x4f5d4b['length']-0x1;_0x55af0c>=0x0;_0x55af0c--)if(_0x4f5d4b[_0x55af0c]['reference']['root']===_0x117e4d){_0x13faf7=_0x55af0c;break;}if(-0x1!==_0x13faf7)return _0x13faf7+0x1;const _0x14e2b5=_0x826314['document']['getRootNames'](),_0x5af9ee=_0x14e2b5['indexOf'](_0x117e4d['rootName']),_0x287241=_0x14e2b5[_0x5af9ee+0x1];if(_0x287241){for(let _0x3fb052=0x0;_0x3fb052<_0x4f5d4b['length'];_0x3fb052++)if(_0x4f5d4b[_0x3fb052]['reference']['root']['rootName']===_0x287241)return _0x3fb052;}return _0x4f5d4b['length'];}class h extends _0x28f868{['refresh'](){const _0x627c51=this['editor']['model']['document']['selection'],_0xcbbb23=this['_getPositionToInsertFootnote'](_0x627c51);this['isEnabled']=!!_0xcbbb23;}['execute'](_0x29c50a){const {editor:_0x39b9af}=this,{model:_0x50d0ba}=_0x39b9af,{selection:_0x1bb50a}=_0x50d0ba['document'],_0x473150=this['_getPositionToInsertFootnote'](_0x1bb50a);if(!_0x473150)return;const _0x46a821=_0x39b9af['plugins']['get']('FootnotesEditing'),_0x5006f0=_0x29c50a?.['footnoteId']??_0x1da73a();!function(_0x36fca6){return'string'==typeof _0x36fca6&&_0x36fca6['length']>0x0&&!/\s/['test'](_0x36fca6)&&!/^\d/['test'](_0x36fca6);}(_0x5006f0)?_0x25dade('insert-footnote-command-executed-with-invalid-id'):(_0x50d0ba['change'](_0x1645f3=>{const _0x38d331=_0x1645f3['createElement']('footnoteRef',{'footnoteId':_0x5006f0});_0x50d0ba['insertObject'](_0x38d331,_0x473150,null);}),_0x46a821['_moveSelectionToFootnoteDefinition'](_0x5006f0));}['_getPositionToInsertFootnote'](_0x3a1bab){const {model:_0x3f7046}=this['editor'],{schema:_0x252b9c}=_0x3f7046,_0x251ccc=_0x3a1bab['getFirstRange']();for(const _0x1938b9 of _0x251ccc['getItems']())if(_0x252b9c['isBlock'](_0x1938b9)||_0x252b9c['isObject'](_0x1938b9))return null;const _0x1ebeb0=_0x251ccc['end'];return _0x252b9c['checkChild'](_0x1ebeb0,'footnoteRef')?_0x1ebeb0:null;}}class r extends _0x228b4b{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x253ef1}=this;_0x253ef1['config']['define']('footnotes.multiBlock',!0x0),_0x253ef1['commands']['add']('insertFootnote',new h(_0x253ef1)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x486ab1){const _0xc37acf=_0xd8b62d([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x508572=0x47a28506,_0x257207=0x47a50506^_0x508572,_0x16a904=window[_0xd8b62d([0x44,0x61,0x74,0x65])][_0xd8b62d([0x6e,0x6f,0x77])](),_0x534f1f=_0x486ab1[_0xd8b62d([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x55bd0b=new window[(_0xd8b62d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x3bf4d1=>{_0x534f1f[_0xd8b62d([0x6f,0x6e,0x63,0x65])](_0xd8b62d([0x72,0x65,0x61,0x64,0x79]),_0x3bf4d1);}),_0x594d68={[_0xd8b62d([0x6b,0x74,0x79])]:_0xd8b62d([0x45,0x43]),[_0xd8b62d([0x75,0x73,0x65])]:_0xd8b62d([0x73,0x69,0x67]),[_0xd8b62d([0x63,0x72,0x76])]:_0xd8b62d([0x50,0x2d,0x32,0x35,0x36]),[_0xd8b62d([0x78])]:_0xd8b62d([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0xd8b62d([0x79])]:_0xd8b62d([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0xd8b62d([0x61,0x6c,0x67])]:_0xd8b62d([0x45,0x53,0x32,0x35,0x36])},_0x5169b3=_0x534f1f[_0xd8b62d([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0xd8b62d([0x67,0x65,0x74])](_0xd8b62d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5716c8(){let _0x43e5b4,_0x5eddd3=null,_0x1c1662=null;try{if(_0x5169b3==_0xd8b62d([0x47,0x50,0x4c]))return _0xd8b62d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x43e5b4=_0x3a119f(),!_0x43e5b4)return _0xd8b62d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x43e5b4[_0xd8b62d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x1c1662=_0x3699f0(_0x43e5b4[_0xd8b62d([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x43e5b4[_0xd8b62d([0x6a,0x74,0x69])])),await _0x5d700f()?_0x2603ab()?_0x29c811()?_0xd8b62d([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x1dcecc()?(_0x43e5b4[_0xd8b62d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0xd8b62d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x5eddd3=_0x26a04b(_0xd8b62d([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x1649b9()):_0xd8b62d([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0xd8b62d([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0xd8b62d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0xd8b62d([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x29c811(){const _0x3ece41=[_0xd8b62d([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0xd8b62d([0x74,0x72,0x69,0x61,0x6c])][_0xd8b62d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x43e5b4[_0xd8b62d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x16a904/0x3e8:0xe10*_0x257207;return _0x43e5b4[_0xd8b62d([0x65,0x78,0x70])]<_0x3ece41;}function _0x2603ab(){const _0x3e0b4e=_0x43e5b4[_0xd8b62d([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x3e0b4e&&(!!_0x3e0b4e[_0xd8b62d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd8b62d([0x2a]))||!!_0x3e0b4e[_0xd8b62d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd8b62d([0x46,0x4f,0x4f])));}function _0x1dcecc(){const _0x1dd496=_0x43e5b4[_0xd8b62d([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x1dd496||0x0==_0x1dd496[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x3f7e49}=new URL(window[_0xd8b62d([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x1dd496[_0xd8b62d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x3f7e49))return!0x0;const _0x22cb68=_0x3f7e49[_0xd8b62d([0x73,0x70,0x6c,0x69,0x74])](_0xd8b62d([0x2e]));return _0x1dd496[_0xd8b62d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0xc3330d=>_0xc3330d[_0xd8b62d([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0xd8b62d([0x2a])))[_0xd8b62d([0x6d,0x61,0x70])](_0x32c42f=>_0x32c42f[_0xd8b62d([0x73,0x70,0x6c,0x69,0x74])](_0xd8b62d([0x2e])))[_0xd8b62d([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x26a601=>_0x26a601[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x22cb68[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd8b62d([0x6d,0x61,0x70])](_0x323d92=>Array(_0x22cb68[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x323d92[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0xd8b62d([0x66,0x69,0x6c,0x6c])](_0x323d92[0x0]===_0xd8b62d([0x2a])?_0xd8b62d([0x2a]):'')[_0xd8b62d([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x323d92))[_0xd8b62d([0x73,0x6f,0x6d,0x65])](_0x347175=>_0x22cb68[_0xd8b62d([0x65,0x76,0x65,0x72,0x79])]((_0x3fa614,_0x162fde)=>_0x347175[_0x162fde]===_0x3fa614||_0x347175[_0x162fde]===_0xd8b62d([0x2a])));}function _0x1649b9(){return _0x5eddd3&&_0x1c1662?new window[(_0xd8b62d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0xe8cea4,_0x53a278)=>{_0x5eddd3[_0xd8b62d([0x74,0x68,0x65,0x6e])](_0xe8cea4,_0x53a278),_0x1c1662[_0xd8b62d([0x74,0x68,0x65,0x6e])](_0x2352f5=>{_0x2352f5!=_0xd8b62d([0x56,0x61,0x6c,0x69,0x64])&&_0xe8cea4(_0x2352f5);},_0x53a278);}):_0x5eddd3||_0x1c1662||_0xd8b62d([0x56,0x61,0x6c,0x69,0x64]);}}function _0x3699f0(_0x5c345d,_0x3bf991){return new window[(_0xd8b62d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x48a702=>{if(_0x50e0e9())return _0x48a702(_0xd8b62d([0x56,0x61,0x6c,0x69,0x64]));_0x36ce80(),_0x534f1f[_0xd8b62d([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0xd8b62d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x1be273=!0x1;const _0x701f8c=_0x1da73a();function _0x11b9d2(_0x50dd5b){return!!_0x50dd5b&&(typeof _0x50dd5b===_0xd8b62d([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x50dd5b===_0xd8b62d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x50dd5b[_0xd8b62d([0x74,0x68,0x65,0x6e])]===_0xd8b62d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x50dd5b[_0xd8b62d([0x63,0x61,0x74,0x63,0x68])]===_0xd8b62d([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x34fc07(_0x321779){_0x2d4519(_0x321779)[_0xd8b62d([0x74,0x68,0x65,0x6e])](_0xef982c=>{if(!_0xef982c||_0xef982c[_0xd8b62d([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0xd8b62d([0x6f,0x6b]))return _0xd8b62d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x4d0a23(_0x5920dd(_0x701f8c+_0x3bf991))!=_0xef982c[_0xd8b62d([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0xd8b62d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0xd8b62d([0x56,0x61,0x6c,0x69,0x64]);})[_0xd8b62d([0x74,0x68,0x65,0x6e])](_0x1c1378=>(_0xa6218f(),_0x1c1378),()=>{const _0x3ca3cb=_0x18d355();return null==_0x3ca3cb?(_0xa6218f(),_0xd8b62d([0x56,0x61,0x6c,0x69,0x64])):_0xd8b62d(_0x16a904-_0x3ca3cb>(0x63ae0106^_0x508572)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0xd8b62d([0x74,0x68,0x65,0x6e])](_0x48a702)[_0xd8b62d([0x63,0x61,0x74,0x63,0x68])](()=>{_0x48a702(_0xd8b62d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x53834c=0x47946b86^_0x508572;function _0xa6218f(){const _0x101411=_0xd8b62d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d0a23(_0x5920dd(_0x5c345d)),_0x25264b=_0x48f2d5(_0x4d0a23(window[_0xd8b62d([0x4d,0x61,0x74,0x68])][_0xd8b62d([0x63,0x65,0x69,0x6c])](_0x16a904/_0x53834c)));window[_0xd8b62d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd8b62d([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x101411,_0x25264b);}function _0x18d355(){const _0xc446ea=_0xd8b62d([0x6c,0x6c,0x63,0x74,0x2d])+_0x4d0a23(_0x5920dd(_0x5c345d)),_0x5306f4=window[_0xd8b62d([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0xd8b62d([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0xc446ea);return _0x5306f4?window[_0xd8b62d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x48f2d5(_0x5306f4),0x10)*_0x53834c:null;}function _0x2d4519(_0x7ffe95){return new window[(_0xd8b62d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x2558e5,_0x4da757)=>{_0x7ffe95[_0xd8b62d([0x74,0x68,0x65,0x6e])](_0x2558e5,_0x4da757),window[_0xd8b62d([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x4da757,0x47a351c6^_0x508572);});}}_0x534f1f[_0xd8b62d([0x6f,0x6e])](_0xd8b62d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x9c085e,_0x3ab053)=>{if(_0x3ab053[0x0]!=_0x5c345d)return _0x48a702(_0xd8b62d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0x3ab053[0x1]={..._0x3ab053[0x1],[_0xd8b62d([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x701f8c};},{[_0xd8b62d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd8b62d([0x68,0x69,0x67,0x68])}),_0x534f1f[_0xd8b62d([0x6f,0x6e])](_0xd8b62d([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5584a4=>{_0x11b9d2(_0x5584a4[_0xd8b62d([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x1be273=!0x0,_0x34fc07(_0x5584a4[_0xd8b62d([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0xd8b62d([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0xd8b62d([0x6c,0x6f,0x77])}),_0x55bd0b[_0xd8b62d([0x74,0x68,0x65,0x6e])](()=>{_0x1be273||_0x48a702(_0xd8b62d([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x50e0e9(){return _0x534f1f[_0xd8b62d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd8b62d([0x76,0x69,0x65,0x77])][_0xd8b62d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0xd8b62d([0x61,0x75,0x74,0x6f]);}function _0x36ce80(){_0x534f1f[_0xd8b62d([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0xd8b62d([0x76,0x69,0x65,0x77])][_0xd8b62d([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0xd8b62d([0x61,0x75,0x74,0x6f]);}}function _0x26a04b(_0x1353fa){const _0xcccbb4=[new window[(_0xd8b62d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xa11ff2=>setTimeout(_0xa11ff2,0x47abbbca^_0x508572)),_0x55bd0b[_0xd8b62d([0x74,0x68,0x65,0x6e])](()=>new window[(_0xd8b62d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x217081=>{let _0x43a6d4=0x0;_0x534f1f[_0xd8b62d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd8b62d([0x6f,0x6e])](_0xd8b62d([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x287f7a,_0x3637c4)=>{_0x3637c4[0x0][_0xd8b62d([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x43a6d4++,_0x43a6d4==(0x47a280ee^_0x508572)&&(_0x217081(),_0x287f7a[_0xd8b62d([0x6f,0x66,0x66])]());});}))];return window[_0xd8b62d([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0xd8b62d([0x72,0x61,0x63,0x65])](_0xcccbb4)[_0xd8b62d([0x74,0x68,0x65,0x6e])](()=>_0x1353fa);}async function _0x88886(){await _0x55bd0b,_0x534f1f[_0xd8b62d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd8b62d([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0xbcf0c4,_0x534f1f[_0xd8b62d([0x6d,0x6f,0x64,0x65,0x6c])][_0xd8b62d([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0xbcf0c4,_0x534f1f[_0xd8b62d([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0xd8b62d([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x1efb73(_0x39b07b){const _0x134c54=_0x5296a1();_0x534f1f[_0x134c54]=_0xd8b62d([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x39b07b,_0x39b07b!=_0xd8b62d([0x56,0x61,0x6c,0x69,0x64])&&_0x88886();}function _0x5296a1(){const _0x468058=window[_0xd8b62d([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0xd8b62d([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0xd8b62d([0x6e,0x6f,0x77])]())[_0xd8b62d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0xd8b62d([0x2e]),'');let _0xeef8ff=_0xd8b62d([0x75]);for(let _0x42d5b8=0x0;_0x42d5b8<_0x468058[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x42d5b8+=0x2){let _0x3dc770=window[_0xd8b62d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x468058[_0xd8b62d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x42d5b8,_0x42d5b8+0x2));_0x3dc770>=_0xc37acf[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x3dc770-=_0xc37acf[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0xeef8ff+=_0xc37acf[_0x3dc770];}return _0xeef8ff;}function _0x3a119f(){const _0x56f077=_0x5169b3[_0xd8b62d([0x73,0x70,0x6c,0x69,0x74])](_0xd8b62d([0x2e]));if(0x3!=_0x56f077[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x326dc5(_0x56f077[0x1]);function _0x326dc5(_0x42382b){const _0x3a68df=_0x39ea93(_0x42382b);return _0x3a68df&&_0x1f8bab()?_0x3a68df:null;function _0x1f8bab(){const _0x577cdc=_0x3a68df[_0xd8b62d([0x6a,0x74,0x69])],_0x1918da=window[_0xd8b62d([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x577cdc[_0xd8b62d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x577cdc[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x282fc8={..._0x3a68df,[_0xd8b62d([0x6a,0x74,0x69])]:_0x577cdc[_0xd8b62d([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x577cdc[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x282fc8[_0xd8b62d([0x76,0x63])],_0x5920dd(_0x282fc8)==_0x1918da;}}}async function _0x5d700f(){let _0xeee7b7=!0x0;try{const _0x204e1f=_0x5169b3[_0xd8b62d([0x73,0x70,0x6c,0x69,0x74])](_0xd8b62d([0x2e])),[_0x32ce26,_0x10510b,_0x499ed3]=_0x204e1f;return _0x210bd8(_0x32ce26),await _0x2715f1(_0x32ce26,_0x10510b,_0x499ed3),_0xeee7b7;}catch{return!0x1;}function _0x210bd8(_0x5441ef){const _0x24ab9a=_0x39ea93(_0x5441ef);_0x24ab9a&&_0x24ab9a[_0xd8b62d([0x61,0x6c,0x67])]==_0xd8b62d([0x45,0x53,0x32,0x35,0x36])||(_0xeee7b7=!0x1);}async function _0x2715f1(_0x3cb1cd,_0x3e92e9,_0x4fb2ab){const _0x320fbc=window[_0xd8b62d([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0xd8b62d([0x66,0x72,0x6f,0x6d])](_0x1ac4bd(_0x4fb2ab),_0x3b5c3c=>_0x3b5c3c[_0xd8b62d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x33255b=new window[(_0xd8b62d([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0xd8b62d([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x3cb1cd+_0xd8b62d([0x2e])+_0x3e92e9),_0x4e8fc9=window[_0xd8b62d([0x63,0x72,0x79,0x70,0x74,0x6f])][_0xd8b62d([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x4e8fc9)return;const _0x40e9dc=await _0x4e8fc9[_0xd8b62d([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0xd8b62d([0x6a,0x77,0x6b]),_0x594d68,{[_0xd8b62d([0x6e,0x61,0x6d,0x65])]:_0xd8b62d([0x45,0x43,0x44,0x53,0x41]),[_0xd8b62d([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0xd8b62d([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0xd8b62d([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x4e8fc9[_0xd8b62d([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0xd8b62d([0x6e,0x61,0x6d,0x65])]:_0xd8b62d([0x45,0x43,0x44,0x53,0x41]),[_0xd8b62d([0x68,0x61,0x73,0x68])]:{[_0xd8b62d([0x6e,0x61,0x6d,0x65])]:_0xd8b62d([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x40e9dc,_0x320fbc,_0x33255b)||(_0xeee7b7=!0x1);}}function _0x39ea93(_0x53d97f){return _0x53d97f[_0xd8b62d([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0xd8b62d([0x65,0x79]))?JSON[_0xd8b62d([0x70,0x61,0x72,0x73,0x65])](_0x1ac4bd(_0x53d97f)):null;}function _0x1ac4bd(_0x5b5648){return window[_0xd8b62d([0x61,0x74,0x6f,0x62])](_0x5b5648[_0xd8b62d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0xd8b62d([0x2b]))[_0xd8b62d([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0xd8b62d([0x2f])));}function _0x5920dd(_0x50cf83){let _0x56ee98=0x1505;function _0x56cbf1(_0x14f42f){for(let _0x3165b0=0x0;_0x3165b0<_0x14f42f[_0xd8b62d([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x3165b0++){const _0x2ffc0d=_0x14f42f[_0xd8b62d([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x3165b0);_0x56ee98=(_0x56ee98<<0x5)+_0x56ee98+_0x2ffc0d,_0x56ee98&=_0x56ee98;}}function _0x3196e7(_0x6d160b){Array[_0xd8b62d([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x6d160b)?_0x6d160b[_0xd8b62d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x3196e7):_0x6d160b&&typeof _0x6d160b==_0xd8b62d([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0xd8b62d([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x6d160b)[_0xd8b62d([0x73,0x6f,0x72,0x74])]()[_0xd8b62d([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x4a804a,_0x19fae4])=>{_0x56cbf1(_0x4a804a),_0x3196e7(_0x19fae4);}):_0x56cbf1(window[_0xd8b62d([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x6d160b));}return _0x3196e7(_0x50cf83),_0x56ee98>>>0x0;}function _0x4d0a23(_0x14443c){return _0x14443c[_0xd8b62d([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0xd8b62d([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0xd8b62d([0x30]));}function _0x48f2d5(_0x47c085){return _0x47c085[_0xd8b62d([0x73,0x70,0x6c,0x69,0x74])]('')[_0xd8b62d([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0xd8b62d([0x6a,0x6f,0x69,0x6e])]('');}function _0xbcf0c4(){}function _0xd8b62d(_0x4dc58d){return _0x4dc58d['map'](_0x2b5416=>String['fromCharCode'](_0x2b5416))['join']('');}_0x1efb73(await _0x5716c8());}(this);}['_moveSelectionToFootnoteDefinition'](_0x22ba14){const {plugins:_0x3f36b9,editing:_0x24fa8b,model:_0x42e04a}=this['editor'],_0x12fbc7=_0x3f36b9['get'](f)['getFootnote'](_0x22ba14);return!!_0x12fbc7&&(_0x42e04a['change'](_0x484a8b=>{_0x484a8b['setSelection'](_0x484a8b['createPositionAt'](_0x12fbc7['definition'],'end'));}),_0x24fa8b['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x13d93c){const {plugins:_0x1ecdc8,editing:_0x892015,model:_0x426301}=this['editor'],_0x27435b=_0x1ecdc8['get'](f)['getFootnote'](_0x13d93c);return!!_0x27435b&&(_0x426301['change'](_0xf9b9ba=>{_0xf9b9ba['setSelection'](_0x27435b['reference'],'on');}),_0x892015['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0x3bea5a}=this['editor']['model'],_0x1e84d2=this['editor']['config']['get']('footnotes.multiBlock');_0x3bea5a['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0x3bea5a['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0x3bea5a['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x1e84d2?_0x3bea5a['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0x3bea5a['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0x3bea5a['addChildCheck'](_0x124f04=>{for(const _0x337ed2 of _0x124f04)if('footnoteDefinition'===_0x337ed2['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0x51fd17}=this,{conversion:_0x590dbe,editing:_0x3d1e43}=_0x51fd17,{t:t}=_0x51fd17['locale'];_0x590dbe['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0xe50679,{writer:_0x30593b,consumable:_0xbfbaab})=>{const _0x561fb4=_0xe50679['getChild'](0x0);if(!_0x561fb4||!_0x561fb4['is']('element','a'))return null;const _0x1353d8=_0x561fb4['getAttribute']('href')||'';if(!_0x1353d8['startsWith']('#'))return null;const _0x522883=_0x1353d8['replace'](/^#/,'');if(!_0x522883)return null;_0xbfbaab['consume'](_0x561fb4,{'name':!0x0,'attributes':['href']});for(const {item:_0x185e4a}of _0x3d1e43['view']['createRangeIn'](_0x561fb4))_0x185e4a['is']('$textProxy')?_0xbfbaab['consume'](_0x185e4a['textNode'],{'name':!0x0}):_0x185e4a['is']('element')&&_0xbfbaab['consume'](_0x185e4a,{'name':!0x0});return _0x30593b['createElement']('footnoteRef',{'footnoteId':_0x522883});}}),_0x590dbe['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x44d034,{writer:_0xa0ecea})=>b(_0x44d034,_0xa0ecea)}),_0x590dbe['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0xec800c,{writer:_0x6c7e03})=>{const _0x4ce74a=_0xec800c['getAttribute']('footnoteCounter');return _0x4d67c2(b(_0xec800c,_0x6c7e03),_0x6c7e03,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x4ce74a)});}});}['_defineDefinitionsConverters'](){const {editor:_0x2d4735}=this,{t:t}=_0x2d4735['locale'],{conversion:_0x52d54f}=_0x2d4735;_0x52d54f['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x52d54f['for']('upcast')['add'](_0x44bd26=>{_0x44bd26['on']('element:ol',(_0xa89023,_0x205d1b,_0x3a4ddb)=>{const _0x5575df=_0x205d1b['viewItem'];if(!_0x5575df['hasClass']('footnotes-list')||!_0x205d1b['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x3a4ddb['consumable']['consume'](_0x5575df,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x17b388,modelCursor:_0x260506}=_0x3a4ddb['convertChildren'](_0x205d1b['viewItem'],_0x205d1b['modelCursor']);_0x205d1b['modelRange']=_0x17b388,_0x205d1b['modelCursor']=_0x260506;}),_0x44bd26['on']('element:hr',(_0x56c242,_0x5360d5,_0x207d04)=>{const _0x25f0a9=_0x5360d5['viewItem'];_0x25f0a9['hasClass']('footnotes-divider')&&_0x5360d5['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x207d04['consumable']['consume'](_0x25f0a9,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x52d54f['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x20aec2,{writer:_0x1d67fa})=>D(_0x1d67fa)}),_0x52d54f['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x4ce3d3,{writer:_0x3dfd93})=>{const _0x41c9ca=D(_0x3dfd93,{'data-footnotes-list-label':t('Footnotes')}),_0x2d3230=_0x4d67c2(_0x41c9ca,_0x3dfd93,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x3dfd93['setCustomProperty']('footnotesDefinitions',!0x0,_0x2d3230),_0x2d3230;}});}['_defineDefinitionConverters'](){const {editor:_0x524471}=this,{conversion:_0x7b6c3d,locale:_0x3d52f3}=_0x524471,_0x1c3183=_0x524471['config']['get']('footnotes.multiBlock');_0x7b6c3d['for']('upcast')['add'](_0x19d49b=>{_0x19d49b['on']('element:li',(_0x2ab434,_0x469db6,_0x3f2ec3)=>{const _0x9bf768=_0x469db6['viewItem'];if(!_0x9bf768['hasClass']('footnote-definition')||!_0x9bf768['getAttribute']('id'))return;const _0x568dad=_0x9bf768['parent'];if(!_0x568dad['is']('element','ol')||!_0x568dad['hasClass']('footnotes-list'))return;if(!_0x3f2ec3['consumable']['test'](_0x9bf768,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x1b9a8e=_0x3f2ec3['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x9bf768['getAttribute']('id')});if(!_0x3f2ec3['safeInsert'](_0x1b9a8e,_0x469db6['modelCursor']))return;_0x3f2ec3['consumable']['consume'](_0x9bf768,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x2bb852=Array['from'](_0x9bf768['getChildren']())['find'](_0x235fc7=>_0x235fc7['is']('element')&&_0x235fc7['hasClass']('footnote-content'));for(const _0x34f838 of _0x9bf768['getChildren']())_0x34f838['is']('element')&&(_0x3f2ec3['consumable']['consume'](_0x34f838,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x3f2ec3['consumable']['consume'](_0x34f838,{'name':!0x0,'classes':'footnote-content'}));if(_0x2bb852){if(_0x1c3183)_0x3f2ec3['convertChildren'](_0x2bb852,_0x1b9a8e);else{const _0x2b903b=_0x3f2ec3['writer']['createElement']('footnoteInlineContent');_0x3f2ec3['writer']['insert'](_0x2b903b,_0x1b9a8e),_0x3f2ec3['convertChildren'](_0x2bb852,_0x2b903b);}}_0x3f2ec3['updateConversionResult'](_0x1b9a8e,_0x469db6);});}),_0x7b6c3d['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x360f34,{writer:_0x1e0929})=>y(_0x360f34,_0x1e0929,_0x3d52f3,{'dataPipeline':!0x0})}),_0x7b6c3d['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x49f2b7,{writer:_0x358c22})=>y(_0x49f2b7,_0x358c22,_0x3d52f3)});}['_defineBogusParagraphConverters'](){const {editor:_0x19740d}=this,{conversion:_0x1f9c49}=_0x19740d;_0x19740d['config']['get']('footnotes.multiBlock')?(_0x1f9c49['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':p(),'converterPriority':'high'}),_0x1f9c49['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':p({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x19740d['model']['document'],'change:data',()=>{!function(_0x56ccf2,_0x4dac85){const _0x22ff1d=_0x56ccf2['document']['differ'],_0x3491c2=new Set();for(const _0x53c630 of _0x22ff1d['getChanges']()){const _0x7b46a3='attribute'==_0x53c630['type']?_0x53c630['range']['start']['parent']:_0x53c630['position']['parent'];_0x7b46a3['is']('element','footnoteDefinition')&&_0x3491c2['add'](_0x7b46a3);}for(const _0x316f76 of _0x3491c2['values']()){const _0x12aad6=Array['from'](_0x316f76['getChildren']())['filter'](_0x38b6ba=>v(_0x38b6ba,_0x4dac85['mapper']));for(const _0x374663 of _0x12aad6)_0x4dac85['reconvertItem'](_0x374663);}}(_0x19740d['model'],_0x19740d['editing']);})):(_0x1f9c49['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':p()}),_0x1f9c49['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x5d5d34,{writer:_0x4731c4})=>{const _0x28db5b=_0x4731c4['createContainerElement']('span');return _0x4731c4['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x28db5b),_0x28db5b;}}));}['_defineKeyboardHandlers'](){const {editor:_0x334c18}=this,{editing:_0x22f390,t:t}=_0x334c18,_0x4fd3cb=_0x334c18['model']['document']['selection'];_0x334c18['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x334c18['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x22f390['view']['document'],'enter',(_0x2a1f9f,_0x4368d5)=>{const _0x4eb1af=function(_0x2efd38){const _0x443f81=_0x2efd38['getSelectedElement']();if(_0x443f81?.['is']('element','footnoteRef'))return _0x443f81;return null;}(_0x4fd3cb);if(_0x4eb1af){const _0x2909bf=_0x4eb1af['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x2909bf),_0x4368d5['preventDefault'](),_0x2a1f9f['stop']();}},{'context':_0x5853f6});}['_defineClickHandlers'](){const {editor:_0x15eae9}=this,{editing:_0x2a0990}=_0x15eae9;_0x15eae9['editing']['view']['addObserver'](_0x156beb),_0x15eae9['editing']['view']['addObserver'](_0x3c1fe7);let _0xa6f4f3=!0x1;this['listenTo'](_0x2a0990['view']['document'],'pointerdown',(_0x29057d,_0x2bb688)=>{const {target:_0x4a64ba}=_0x2bb688,_0x36df23=_0x2a0990['view']['document']['selection'];_0xa6f4f3=!!(_0x4a64ba?.['is']('element','a')&&_0x4a64ba['parent']?.['is']('element','sup')&&_0x4a64ba['parent']['hasClass']('footnote'))&&_0x36df23['getSelectedElement']()===_0x4a64ba['parent'];},{'priority':'high'}),this['listenTo'](_0x2a0990['view']['document'],'click',(_0x2c6796,_0x130288)=>{const {target:_0x51cca2}=_0x130288;if(!_0x51cca2?.['is']('element','a'))return;if(_0x51cca2['parent']?.['is']('element','sup')&&_0x51cca2['parent']['hasClass']('footnote')&&!_0xa6f4f3)return void _0x130288['preventDefault']();let _0x85e9a0=_0x51cca2['getAttribute']('href');if(!_0x85e9a0?.['startsWith']('#'))return;_0x85e9a0=_0x85e9a0['slice'](0x1);let _0x26b047=!0x1;(_0x85e9a0['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x85e9a0['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x85e9a0))&&(_0x26b047=!0x0),_0x26b047&&(_0x130288['preventDefault'](),_0x2c6796['stop']());},{'priority':'high','context':'$capture'});}}function p({dataPipeline:_0x42a569}={}){return(_0x477c9d,{writer:_0x2e3247})=>{if(!g(_0x477c9d))return null;if(!_0x42a569)return _0x2e3247['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x4c9b13=_0x2e3247['createContainerElement']('p');return _0x2e3247['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x4c9b13),_0x4c9b13;};}function g(_0x1225b5){const {parent:_0x2a5026}=_0x1225b5;if(!_0x2a5026?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x2a5026['childCount'])return!0x1;for(const _0xf18f9f of _0x1225b5['getAttributeKeys']())if(!_0xf18f9f['startsWith']('selection:')&&'htmlEmptyBlock'!=_0xf18f9f)return!0x1;return!0x0;}function v(_0x1824f8,_0x349140){if(!_0x1824f8['is']('element','paragraph'))return!0x1;const _0x1b85f7=_0x349140['toViewElement'](_0x1824f8);return!!_0x1b85f7&&g(_0x1824f8)!==_0x1b85f7['is']('element','span');}function Q(_0x29d759){return _0x5853f6(_0x29d759)&&_0x29d759['is']('containerElement')&&!!_0x29d759['getCustomProperty']('footnotesDefinitions');}function D(_0x23b905,_0x27f9e3={}){const _0x41bee2=_0x23b905['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0x470a5e=_0x23b905['createContainerElement']('ol',{'class':'footnotes-list'},_0x23b905['createSlot']());return _0x23b905['createContainerElement']('div',{'class':'footnotes',..._0x27f9e3},[_0x41bee2,_0x470a5e]);}function b(_0x41ca29,_0x34f31d){const _0x28cae7=_0x41ca29['getAttribute']('footnoteId'),_0x335a9c=_0x41ca29['getAttribute']('footnoteCounter'),_0x5dceb3=_0x34f31d['createUIElement']('a',{'href':'#'+_0x28cae7},function(_0x30cb94){const _0xda8ca3=this['toDomElement'](_0x30cb94);return _0xda8ca3['textContent']=_0x335a9c,_0xda8ca3;}),_0x4fefe8=_0x34f31d['createContainerElement']('sup',{'id':'ref-'+_0x28cae7,'class':'footnote'},[_0x5dceb3]);return _0x4fefe8['getFillerOffset']=()=>null,_0x4fefe8;}function y(_0x53e273,_0x4008b5,_0x1199cc,{dataPipeline:_0x215ca2}={}){const {t:t}=_0x1199cc,_0x143fb2=_0x53e273['getAttribute']('footnoteId'),_0x315b2c=_0x4008b5['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x143fb2},function(_0x338254){const _0x48a2d4=this['toDomElement'](_0x338254);return _0x48a2d4['innerText']='^',_0x48a2d4;}),_0x266810=_0x215ca2?_0x4008b5['createContainerElement']('div',{'class':'footnote-content'}):_0x5ad520(_0x4008b5['createEditableElement']('div',{'class':'footnote-content'}),_0x4008b5,{'label':t('Footnote\x20content.')});return _0x4008b5['insert'](_0x4008b5['createPositionAt'](_0x266810,0x0),_0x4008b5['createSlot']()),_0x4008b5['createContainerElement']('li',{'class':'footnote-definition','id':_0x143fb2},[_0x315b2c,_0x266810]);}class e extends _0x228b4b{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[r,_0x421ee3];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x5b19b5}=this,{plugins:_0x2bbca0,model:_0x5adadc}=_0x5b19b5,_0x32ba6a=_0x2bbca0['get'](_0x421ee3),_0x3f255e=_0x2bbca0['get'](f);this['listenTo'](_0x32ba6a,'outputTransformation',(_0x4600f3,_0x1b0188)=>{const _0x4a1a45=l(_0x5adadc['createRangeIn'](_0x1b0188['content']));if(!_0x4a1a45['length'])return;const _0x42ab4d=_0x3f255e['getFootnotes'](),_0x465286=_0x4a1a45['reduce']((_0x5ac518,_0x4437a5)=>{const _0x495410=_0x42ab4d['find'](_0x5cef2b=>_0x5cef2b['id']===_0x4437a5);if(_0x495410){const _0x3d0e55=_0x5b19b5['data']['toView'](_0x495410['definition'],{'isClipboardPipeline':!0x0}),_0x4f864c=_0x5b19b5['data']['htmlProcessor']['toData'](_0x3d0e55);_0x5ac518[_0x495410['id']]=_0x4f864c;}return _0x5ac518;},Object['create'](null));_0x1b0188['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x465286));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0xe31404}=this,{model:_0x51b8bc,plugins:_0x599c46}=_0xe31404,{view:_0x577a93}=_0xe31404['editing'],_0x2810df=_0x599c46['get'](_0x421ee3),_0x50ae45=_0x599c46['get'](f),_0x51d789=_0xe31404['config']['get']('footnotes.multiBlock');let _0x102bf1=null;this['listenTo'](_0x577a93['document'],'clipboardInput',(_0x4177d9,_0x34c196)=>{const _0x17a907=_0x34c196['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x102bf1=_0x17a907?JSON['parse'](_0x17a907):null;}),this['listenTo'](_0x2810df,'contentInsertion',(_0x1ff696,_0x1ea9f7)=>{const _0x9284d1=_0x1ea9f7['sourceEditorId']===this['editor']['id'];_0x9284d1&&'drop'===_0x1ea9f7['method']||_0x51b8bc['change'](_0x162840=>{let _0x54b74f=_0x50ae45['getFootnotesDefinitionsObjectElement']();const _0x1e3abb=!!_0x54b74f&&Array['from'](_0x51b8bc['document']['selection']['getSelectedBlocks']())['includes'](_0x54b74f);if(!_0x102bf1&&function(_0x157122){for(const {item:_0xf97776}of _0x157122)if(_0xf97776['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x51b8bc['createRangeIn'](_0x1ea9f7['content']))&&(_0x102bf1=function(_0x234cd5,_0x5a47ed){const _0x14bd12=c(_0x234cd5,_0x5a47ed);if(!_0x14bd12)return null;const _0x2e9c8f=Object['create'](null);for(const _0x4a828a of _0x14bd12['getChildren']())_0x4a828a['is']('element','footnoteDefinition')&&_0x4a828a['hasAttribute']('footnoteId')&&(_0x2e9c8f[_0x4a828a['getAttribute']('footnoteId')]=_0x234cd5['cloneElement'](_0x4a828a,!0x0));return Object['keys'](_0x2e9c8f)['length']?_0x2e9c8f:null;}(_0x162840,_0x1ea9f7['content'])),(_0x54b74f&&!_0x1e3abb||!_0x54b74f&&!_0x102bf1)&&function(_0x3bc67f,_0x424e6f){const _0x270ed5=[];for(const {item:_0x123fbd}of _0x3bc67f['createRangeIn'](_0x424e6f))_0x123fbd['is']('element','footnotesDefinitions')&&_0x270ed5['push'](_0x123fbd);for(const _0x3d23c6 of _0x270ed5)_0x3bc67f['remove'](_0x3d23c6);}(_0x162840,_0x1ea9f7['content']),!_0x102bf1)return;const {selection:_0x2a0879}=_0x51b8bc['document'],_0x4b1512=_0x2a0879['getFirstRange']()['root'];_0x54b74f&&!_0x1e3abb||(_0x54b74f=c(_0x162840,_0x1ea9f7['content']),_0x54b74f||=_0x50ae45['_insertEmptyFootnotesDefinitionsContainer'](_0x162840,_0x4b1512));const _0x1cce1f=Array['from'](_0x2a0879['getRanges']())['flatMap'](l),_0x39a17c=function(_0xa6f607,_0x153667,_0x5c92d8){const _0x3567f8=Object['create'](null);for(const {item:_0x2b3224}of _0xa6f607['createRangeIn'](_0x153667))if(_0x2b3224['is']('element','footnoteRef')){const _0x2a95ce=_0x2b3224['getAttribute']('footnoteId');if(!_0x5c92d8(_0x2a95ce))continue;_0x3567f8[_0x2a95ce]||(_0x3567f8[_0x2a95ce]=_0x1da73a()),_0xa6f607['setAttribute']('footnoteId',_0x3567f8[_0x2a95ce],_0x2b3224);}return _0x3567f8;}(_0x162840,_0x1ea9f7['content'],_0x5a18aa=>{if(!_0x9284d1)return!0x0;return!!_0x50ae45['getFootnote'](_0x5a18aa)&&!_0x1cce1f['includes'](_0x5a18aa);});for(const [_0x4ca59e,_0x24c603]of Object['entries'](_0x102bf1)){const _0x5f1228=_0x39a17c[_0x4ca59e]||_0x4ca59e;let _0x569727;if('string'!=typeof _0x24c603)_0x569727=_0x24c603,_0x5f1228!==_0x4ca59e&&_0x162840['setAttribute']('footnoteId',_0x5f1228,_0x569727);else{_0x569727=_0x162840['createElement']('footnoteDefinition',{'footnoteId':_0x5f1228});const _0xc540aa=_0xe31404['data']['htmlProcessor']['toView'](_0x24c603);let _0x370d81;if(_0x51d789)_0x370d81=_0xe31404['data']['toModel'](_0xc540aa,_0x569727);else{_0x370d81=_0x162840['createElement']('footnoteInlineContent');const _0x2d2fc7=_0xe31404['data']['toModel'](_0xc540aa,_0x370d81);_0x162840['insert'](_0x2d2fc7,_0x370d81);}_0x162840['append'](_0x370d81,_0x569727);}_0x162840['insert'](_0x569727,_0x54b74f,'end');}_0x102bf1=null;});});}}function c(_0x38ee72,_0xc7ca6f){for(const {item:_0x58a99d}of _0x38ee72['createRangeIn'](_0xc7ca6f))if(_0x58a99d['is']('element','footnotesDefinitions'))return _0x58a99d;return null;}function l(_0x33c517){const _0xeee622=new Set();for(const {item:_0x3bcc79}of _0x33c517)_0x3bcc79['is']('element','footnoteRef')&&_0xeee622['add'](_0x3bcc79['getAttribute']('footnoteId'));return Array['from'](_0xeee622);}class i extends _0x228b4b{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x3dd721}=this,{componentFactory:_0x3fe337}=_0x3dd721['ui'];_0x3fe337['add']('insertFootnote',E(_0x3dd721,_0x5d9a08)),_0x3fe337['add']('menuBar:insertFootnote',E(_0x3dd721,_0x1a3d94)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x3aec25=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x496b17;for(const _0x98d048 in _0x3aec25){const _0x2ccb32=_0x98d048,_0x3da7be=_0x3aec25[_0x2ccb32];if('footnotesLicenseKeyValid'==_0x3da7be||'footnotesLicenseKeyInvalid'==_0x3da7be||'footnotesLicenseKeyExpired'==_0x3da7be||'footnotesLicenseKeyDomainLimit'==_0x3da7be||'footnotesLicenseKeyNotAllowed'==_0x3da7be||'footnotesLicenseKeyEvaluationLimit'==_0x3da7be||'footnotesLicenseKeyUsageLimit'==_0x3da7be){delete _0x3aec25[_0x2ccb32],_0x496b17=_0x3da7be,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x496b17&&_0x3aec25['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x496b17&&_0x3aec25['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x496b17&&_0x3aec25['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x496b17&&_0x3aec25['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x496b17&&_0x3aec25['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x496b17&&_0x3aec25['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function E(_0x53ccb3,_0x5c8e39){const _0x4ff1e9=_0x53ccb3['commands']['get']('insertFootnote');return _0x467373=>{const {t:t}=_0x467373,_0x5b5467=new _0x5c8e39(_0x467373),_0x1c69f8=_0x5b5467 instanceof _0x1a3d94;return _0x5b5467['bind']('isEnabled')['to'](_0x4ff1e9,'isEnabled'),_0x5b5467['set']({'label':t(_0x1c69f8?'Footnote':'Insert\x20footnote'),'icon':_0x48e6cb,'tooltip':!0x0}),_0x5b5467['on']('execute',()=>{_0x4ff1e9['execute'](),_0x53ccb3['editing']['view']['focus']();}),_0x5b5467;};}class lt extends _0x228b4b{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[r,e,i];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const W=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class S extends _0x28f868{['refresh'](){const {editor:_0x26ee18}=this,_0x37f572=_0x26ee18['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x37f572,this['value']=_0x37f572?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x357ccd}){const {editor:_0x40b99d}=this,_0x47ab0e=_0x40b99d['plugins']['get'](f),_0x3d9393=_0x47ab0e['getFootnotesDefinitionsObjectElement']();_0x3d9393&&W['includes'](_0x357ccd)&&_0x40b99d['model']['change'](_0xd1d4f9=>{_0xd1d4f9['setAttribute']('footnotesListStyle',_0x357ccd,_0x3d9393),_0x47ab0e['_updateFootnotesCounters'](_0xd1d4f9);});}}class C extends _0x28f868{['refresh'](){const {editor:_0x2543ac}=this,_0x5ec228=_0x2543ac['plugins']['get'](f)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x5ec228,this['value']=_0x5ec228?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x94ea48}){const {editor:_0x1d7352}=this,_0x58c0be=_0x1d7352['plugins']['get'](f),_0x5e1f8d=_0x58c0be['getFootnotesDefinitionsObjectElement']();_0x5e1f8d&&Number['isInteger'](_0x94ea48)&&_0x1d7352['model']['change'](_0x401ae4=>{_0x401ae4['setAttribute']('footnotesListStart',_0x94ea48,_0x5e1f8d),_0x58c0be['_updateFootnotesCounters'](_0x401ae4);});}}class P extends _0x228b4b{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[r,f];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x591f2e}=this;_0x591f2e['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x591f2e['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x591f2e['commands']['add']('footnotesStyle',new S(_0x591f2e)),_0x591f2e['commands']['add']('footnotesStart',new C(_0x591f2e)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x25121f}=this,{schema:_0x35b24f}=_0x25121f['model'];_0x35b24f['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x27a26d}=this,{conversion:_0x16a960,model:_0x2025ba}=_0x27a26d,{schema:_0x2debc7}=_0x2025ba;_0x16a960['for']('upcast')['add'](_0x5e740f=>{_0x5e740f['on']('element:ol',(_0x3fb35f,_0x500e4d,_0x478eb2)=>{const _0x4c381e=_0x500e4d['viewItem'],_0xf30985=_0x500e4d['modelCursor']?.['parent'];_0x4c381e['hasClass']('footnotes-list')&&_0xf30985?.['is']('element','footnotesDefinitions')&&(function(_0x158197,_0x1510c9,_0x5c5e64,_0x32f45b){if(!_0x32f45b['checkAttribute'](_0x1510c9,'footnotesListStart'))return;let _0x4e840f=0x1;const _0x35f60f=_0x5c5e64['consumable']['consume'](_0x158197,{'attributes':'start'});if(_0x35f60f){const _0x8d6be2=Number['parseInt'](_0x158197['getAttribute']('start'),0xa);Number['isNaN'](_0x8d6be2)||(_0x4e840f=_0x8d6be2);}!_0x35f60f&&_0x1510c9['hasAttribute']('footnotesListStart')||_0x5c5e64['writer']['setAttribute']('footnotesListStart',_0x4e840f,_0x1510c9);}(_0x4c381e,_0xf30985,_0x478eb2,_0x2debc7),function(_0x574535,_0x5844b7,_0xa6f269,_0x4c9f8e){if(!_0x4c9f8e['checkAttribute'](_0x5844b7,'footnotesListStyle'))return;let _0x43c679='decimal',_0x171296=!0x1;if(_0xa6f269['consumable']['consume'](_0x574535,{'attributes':'type'})){const _0x57279c={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x574535['getAttribute']('type')];_0x57279c&&(_0x43c679=_0x57279c),_0x171296=!0x0;}_0xa6f269['consumable']['consume'](_0x574535,{'styles':'list-style-type'})&&(_0x43c679=function(_0x5bd56b){switch(_0x5bd56b){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x5bd56b;}}(_0x574535['getStyle']('list-style-type')),_0x171296=!0x0),!_0x171296&&_0x5844b7['hasAttribute']('footnotesListStyle')||_0xa6f269['writer']['setAttribute']('footnotesListStyle',_0x43c679,_0x5844b7);}(_0x4c381e,_0xf30985,_0x478eb2,_0x2debc7));});}),_0x16a960['for']('downcast')['add'](_0x2e906f=>{_0x2e906f['on']('attribute:footnotesListStart:footnotesDefinitions',(_0x182290,_0x8570fe,_0x53ce3c)=>{if(!_0x53ce3c['consumable']['consume'](_0x8570fe['item'],_0x182290['name']))return;const _0xe397f=M(_0x8570fe['item'],_0x53ce3c['mapper']),{attributeNewValue:_0x311a9d}=_0x8570fe;null==_0x311a9d||0x1===_0x311a9d?_0x53ce3c['writer']['removeAttribute']('start',_0xe397f):_0x53ce3c['writer']['setAttribute']('start',String(_0x311a9d),_0xe397f);}),_0x2e906f['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x20fb0d,_0x239f1a,_0x1a048d)=>{if(!_0x1a048d['consumable']['consume'](_0x239f1a['item'],_0x20fb0d['name']))return;const _0x2a33eb=M(_0x239f1a['item'],_0x1a048d['mapper']),{attributeNewValue:_0x14a370}=_0x239f1a;_0x14a370&&'decimal'!==_0x14a370?_0x1a048d['writer']['setStyle']('list-style-type',_0x14a370,_0x2a33eb):_0x1a048d['writer']['removeStyle']('list-style-type',_0x2a33eb);});});}['_definePostfixer'](){const {editor:_0x1bb81c}=this,{model:_0x422920}=_0x1bb81c,_0x4edfb5=_0x1bb81c['plugins']['get'](f),_0x42ebc1=this['_getDefaultListStyle'](),_0x3d55a3=this['_getDefaultStartIndex']();_0x422920['document']['registerPostFixer'](_0xc88cbb=>{const _0x1429c2=_0x422920['document']['differ']['getChanges']();let _0x4e33f6=!0x1;for(const _0x7b549b of _0x1429c2){if('insert'!==_0x7b549b['type']||'$text'===_0x7b549b['name'])continue;const _0x27217b=_0x422920['createRangeOn'](_0x7b549b['position']['nodeAfter']);for(const _0x45287f of _0x27217b['getItems']())_0x45287f['is']('element','footnotesDefinitions')&&(!_0x45287f['hasAttribute']('footnotesListStart')&&_0x422920['schema']['checkAttribute'](_0x45287f,'footnotesListStart')&&(_0xc88cbb['setAttribute']('footnotesListStart',_0x3d55a3,_0x45287f),_0x4e33f6=!0x0),!_0x45287f['hasAttribute']('footnotesListStyle')&&_0x422920['schema']['checkAttribute'](_0x45287f,'footnotesListStyle')&&(_0xc88cbb['setAttribute']('footnotesListStyle',_0x42ebc1,_0x45287f),_0x4e33f6=!0x0));}return _0x4e33f6&&_0x4edfb5['_updateFootnotesCounters'](_0xc88cbb),_0x4e33f6;});}['_defineFormatter'](){const {editor:_0x394393}=this;_0x394393['plugins']['get'](f)['setFootnoteFormatter'](_0x450e6e=>this['_formatFootnoteListValue'](_0x450e6e));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x5945a8,value:_0x108184,digits:_0x1c53ec}){const _0x25c92a=_0x5945a8['getAttribute']('footnotesListStyle'),_0x307181=_0x5945a8['getAttribute']('footnotesListStart'),_0x2fc125=Math['floor'](_0x108184)+(_0x307181??0x1)-0x1;switch(_0x25c92a){case'decimal-leading-zero':return function(_0x3de5d9,_0x404fe5){return String(_0x3de5d9)['padStart'](_0x404fe5,'0');}(_0x2fc125,Math['max'](0x2,_0x1c53ec));case'lower-alpha':case'lower-latin':return N(_0x2fc125,!0x1);case'upper-alpha':case'upper-latin':return N(_0x2fc125,!0x0);case'lower-roman':return X(_0x2fc125,!0x1);case'upper-roman':return X(_0x2fc125,!0x0);default:return String(_0x2fc125);}}}function M(_0x4f030e,_0x5e8859){const _0x4f24cb=_0x5e8859['toViewElement'](_0x4f030e);return Array['from'](_0x4f24cb['getChildren']())['find'](_0x488b51=>_0x488b51['is']('element','ol')&&_0x488b51['hasClass']('footnotes-list'));}function N(_0x2e7d32,_0x4ba8a9){let _0x2449f9='',_0x5451e5=_0x2e7d32;for(;_0x5451e5>0x0;){const _0x2bdc95=(_0x5451e5-0x1)%0x1a;_0x2449f9=String['fromCharCode'](0x61+_0x2bdc95)+_0x2449f9,_0x5451e5=Math['floor']((_0x5451e5-0x1)/0x1a);}return _0x4ba8a9?_0x2449f9['toUpperCase']():_0x2449f9;}const V=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function X(_0xc4d212,_0x3e4cfc){let _0x1c2490='',_0x36fe5e=_0xc4d212;for(const {value:_0x183298,numeral:_0x2098a8}of V)for(;_0x36fe5e>=_0x183298;)_0x1c2490+=_0x2098a8,_0x36fe5e-=_0x183298;return _0x3e4cfc?_0x1c2490:_0x1c2490['toLowerCase']();}class J extends _0x4ea473{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new rt();['keystrokes']=new nt();['focusables']=new _0x1fc5a8();['focusCycler'];constructor(_0x10941f,{styleButtonViews:_0x22a811,styleGridAriaLabel:_0x26b578}){super(_0x10941f),(this['focusCycler']=new tt({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x22a811,_0x26b578),[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 _0x3f7479 of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x3f7479['element']);st({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>at['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x3b03f9=_0x3813be=>_0x3813be['stopPropagation']();this['keystrokes']['set']('arrowright',_0x3b03f9),this['keystrokes']['set']('arrowleft',_0x3b03f9),this['keystrokes']['set']('arrowup',_0x3b03f9),this['keystrokes']['set']('arrowdown',_0x3b03f9);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3b3dc9,_0x455ca2){const _0x2a6dc1=new _0x4ea473(this['locale']);return _0x2a6dc1['children']=_0x2a6dc1['createCollection'](),_0x2a6dc1['children']['addMany'](_0x3b3dc9),_0x2a6dc1['setTemplate']({'tag':'div','attributes':{'aria-label':_0x455ca2,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0x2a6dc1['children']}),_0x2a6dc1['children']['delegate']('execute')['to'](this),_0x2a6dc1['focus']=function(){for(const _0x432a10 of this['children'])if(_0x432a10 instanceof _0x5d9a08&&_0x432a10['isOn'])return void _0x432a10['focus']();this['children']['first']['focus']();},_0x2a6dc1['focusTracker']=new rt(),_0x2a6dc1['keystrokes']=new nt(),_0x2a6dc1['render'](),_0x2a6dc1['keystrokes']['listenTo'](_0x2a6dc1['element']),this['children']['add'](_0x2a6dc1),_0x2a6dc1;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x2b773a=this['_createStartIndexPropertyView'](),_0x4a0b12=[_0x2b773a],_0x40c0f3=new it(this['locale'],_0x4a0b12);return _0x40c0f3['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x40c0f3['buttonView']['bind']('isEnabled')['toMany'](_0x4a0b12,'isEnabled',(..._0x244abe)=>_0x244abe['some'](_0x28c58d=>_0x28c58d)),_0x40c0f3['buttonView']['on']('change:isEnabled',(_0x4946d0,_0x15383d,_0x57afbb)=>{_0x57afbb||(_0x40c0f3['isCollapsed']=!0x0);}),this['children']['add'](_0x40c0f3),[_0x2b773a,_0x40c0f3];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x5a1b90=new et(this['locale'],ot);return _0x5a1b90['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x5a1b90['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x5a1b90['fieldView']['on']('input',()=>{const _0x48dbc0=_0x5a1b90['fieldView']['element'],_0x570a85=_0x48dbc0['valueAsNumber'];Number['isNaN'](_0x570a85)?_0x5a1b90['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x48dbc0['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x570a85}):_0x5a1b90['errorText']=t(_0x570a85<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x5a1b90;}}class j extends _0x228b4b{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x2e7bd6,_0x2d5feb];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x5745f5}=this,{componentFactory:_0x3a68b9}=_0x5745f5['ui'];_0x5745f5['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x3a68b9['add']('footnotesStyle',function(_0x2463bd){return _0x1cca25=>{const {t:t}=_0x1cca25,_0xb2bcf7=_0x2463bd['commands']['get']('footnotesStyle'),_0x3031e3=_0x3e8b49(_0x1cca25),{buttonView:_0x41e1e4}=_0x3031e3;return _0x3031e3['class']='ck-footnotes-styles-dropdown',_0x3031e3['bind']('isEnabled')['to'](_0xb2bcf7,'isEnabled'),_0x41e1e4['set']({'label':t('Footnotes\x20style'),'icon':_0x48e6cb,'tooltip':!0x0}),_0x3031e3['once']('change:isOpen',()=>{const _0x3cfa38=function({editor:_0x5aff90,dropdownView:_0x2719cf}){const {t:t}=_0x5aff90['locale'],_0x42d3e2=t('Footnotes\x20definitions\x20styles'),_0x2a03a0=function(_0x585a4f){const t=_0x585a4f['locale']['t'],_0x1834bb=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x17a16c},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x582eb4},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x396a03},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x3b82af},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x17b960},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0x56627b}];return _0x1834bb['map'](function(_0x2933d5){const _0x590973=_0x2933d5['locale'];return({label:_0x1324c6,icon:_0x3b8429,tooltip:_0x31c328,style:_0x331c41})=>{const _0x53f7a6=_0x2933d5['commands']['get']('footnotesStyle'),_0x4be5d5=new _0x5d9a08(_0x590973);return _0x4be5d5['set']({'label':_0x1324c6,'icon':_0x3b8429,'tooltip':_0x31c328}),_0x4be5d5['bind']('isOn')['to'](_0x53f7a6,'value',_0x5c271d=>_0x5c271d===_0x331c41),_0x4be5d5['bind']('isEnabled')['to'](_0x53f7a6,'isEnabled'),_0x4be5d5['on']('execute',()=>{_0x2933d5['execute']('footnotesStyle',{'value':_0x331c41}),_0x2933d5['editing']['view']['focus']();}),_0x4be5d5;};}(_0x585a4f));}(_0x5aff90),_0x48dcfe=new J(_0x5aff90['locale'],{'styleGridAriaLabel':_0x42d3e2,'styleButtonViews':_0x2a03a0}),_0x2eae95=_0x5aff90['commands']['get']('footnotesStart');return _0x48dcfe['startIndexFieldView']['bind']('isEnabled')['to'](_0x2eae95),_0x48dcfe['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x2eae95),_0x48dcfe['on']('footnotesListStart',(_0x146cdb,_0x2e1857)=>{_0x5aff90['execute']('footnotesStart',{'value':_0x2e1857['startIndex']});}),_0x48dcfe['delegate']('execute')['to'](_0x2719cf),_0x48dcfe;}({'editor':_0x2463bd,'dropdownView':_0x3031e3});_0x3031e3['panelView']['children']['add'](_0x3cfa38);}),_0x3031e3;};}(_0x5745f5));}['afterInit'](){const {editor:_0x1854a5}=this,{t:t}=_0x1854a5['locale'],_0x326d16=_0x1854a5['plugins']['get'](_0x2d5feb),{defaultPositions:_0xeab0b6}=_0x4706a4;_0x326d16['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x1854a5['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x39586e=>{let _0x52649f=_0x39586e['getFirstPosition']()?.['parent'];return _0x52649f?.['is']('$text')&&(_0x52649f=_0x52649f['parent']),_0x52649f?.['is']('element')?_0x52649f['findAncestor'](Q):null;},'positions':[_0xeab0b6['southArrowNorth'],_0xeab0b6['southArrowNorthMiddleWest'],_0xeab0b6['southArrowNorthMiddleEast'],_0xeab0b6['southArrowNorthWest'],_0xeab0b6['southArrowNorthEast'],_0xeab0b6['northArrowSouth'],_0xeab0b6['northArrowSouthMiddleWest'],_0xeab0b6['northArrowSouthMiddleEast'],_0xeab0b6['northArrowSouthWest'],_0xeab0b6['northArrowSouthEast'],_0xeab0b6['viewportStickyNorth']]});}}class ft extends _0x228b4b{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[P,j];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{lt as Footnotes,e as FootnotesClipboard,r as FootnotesEditing,ft as FootnotesProperties,P as FootnotesPropertiesEditing,j as FootnotesPropertiesUI,C as FootnotesStartCommand,S as FootnotesStyleCommand,f as FootnotesTracker,i as FootnotesUI,h as InsertFootnoteCommand};
|
|
23
|
+
import{Plugin as _0x6ec3d0,Command as _0x333d63}from'@ckeditor/ckeditor5-core/dist/index.js';import{toWidget as _0x532e20,isWidget as _0xee11d4,toWidgetEditable as _0x966645,WidgetToolbarRepository as _0x491f9c}from'@ckeditor/ckeditor5-widget/dist/index.js';import{uid as _0x27d014,logWarning as _0x56f869,FocusTracker as _0x4dff86,KeystrokeHandler as _0x5192cd,global as _0x152450}from'@ckeditor/ckeditor5-utils/dist/index.js';import{PointerObserver as _0x175168,ClickObserver as _0xc2eeb2}from'@ckeditor/ckeditor5-engine/dist/index.js';import{ClipboardPipeline as _0x15128e}from'@ckeditor/ckeditor5-clipboard/dist/index.js';import{MenuBarMenuListItemButtonView as _0x57e232,ButtonView as _0x2399ae,View as _0x2957dc,ViewCollection as _0x37f686,FocusCycler as _0x46301b,addKeyboardHandlingForGrid as _0x2e4918,CollapsibleView as _0x1a9851,LabeledFieldView as _0x1fd24c,createLabeledInputNumber as _0x5e8500,ContextualBalloon as _0x33b1fd,BalloonPanelView as _0x3e67a4,createDropdown as _0x4494d6}from'@ckeditor/ckeditor5-ui/dist/index.js';import{IconFootnote as _0x516d0c,IconListStyleDecimal as _0x213009,IconListStyleDecimalLeadingZero as _0x4a805b,IconListStyleLowerRoman as _0x4dd842,IconListStyleUpperRoman as _0x4c78a1,IconListStyleLowerLatin as _0x2adf34,IconListStyleUpperLatin as _0xabb660}from'@ckeditor/ckeditor5-icons/dist/index.js';class R{['_model'];['_elementName'];['_getElementKey'];['_trackedElements']=new Map();constructor(_0x203e42,_0x5b560f){this['_model']=_0x203e42,this['_elementName']=_0x5b560f['elementName'],this['_getElementKey']=_0x5b560f['getElementKey'];}['reset'](){this['_trackedElements']['clear']();}['getChanges'](_0x5dc26c){const _0x104a03=new Set(),_0x908a6d=new Map();for(const _0x17169b of _0x5dc26c){if('insert'===_0x17169b['type']&&'$text'!==_0x17169b['name']&&_0x17169b['position']['nodeAfter']){const _0x4ba72d=this['_model']['createRangeOn'](_0x17169b['position']['nodeAfter']);for(const _0xd0761d of _0x4ba72d['getItems']()){if(!_0xd0761d['is']('element',this['_elementName']))continue;const _0x33ad79=this['_getElementKey'](_0xd0761d);_0x908a6d['has'](_0x33ad79)||_0x908a6d['set'](_0x33ad79,[]),_0x908a6d['get'](_0x33ad79)['push'](_0xd0761d);}}if('remove'===_0x17169b['type']&&_0x17169b['name']===this['_elementName']){const _0x4467fb=this['_getElementKey']({'getAttribute':_0x2e1fa9=>_0x17169b['attributes']['get'](_0x2e1fa9)});_0x104a03['add'](_0x4467fb);}}for(const [_0xa76582,_0x1565b7]of this['_trackedElements'])'$graveyard'===_0x1565b7['root']['rootName']&&_0x104a03['add'](_0xa76582);for(const _0x24fbdd of _0x104a03)this['_trackedElements']['delete'](_0x24fbdd);for(const [_0x389fb3,_0x2b52a4]of _0x908a6d)this['_trackedElements']['set'](_0x389fb3,_0x2b52a4[_0x2b52a4['length']-0x1]);const _0x49eee0=new Set();for(const [_0x3d8244,_0x303770]of _0x908a6d)_0x104a03['has'](_0x3d8244)&&(_0x49eee0['add'](_0x303770[0x0]),_0x303770['length']>0x1?_0x908a6d['set'](_0x3d8244,_0x303770['slice'](0x1)):_0x908a6d['delete'](_0x3d8244),_0x104a03['delete'](_0x3d8244));return{'removed':Array['from'](_0x104a03),'inserted':Array['from'](_0x908a6d['values']())['flat'](),'moved':Array['from'](_0x49eee0)};}}class N extends _0x6ec3d0{['_footnotes']=[];['_footnotesDefinitions']=null;['_footnoteFormatter']=null;['_footnoteDefsContainerTracker'];['_footnoteRefsTracker'];['_footnoteDefsTracker'];static get['pluginName'](){return'FootnotesTracker';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}constructor(_0x36560c){super(_0x36560c),this['_footnoteDefsContainerTracker']=new R(this['editor']['model'],{'elementName':'footnotesDefinitions','getElementKey':()=>'singleton'}),this['_footnoteRefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteRef','getElementKey':_0x507d82=>_0x507d82['getAttribute']('footnoteId')}),this['_footnoteDefsTracker']=new R(this['editor']['model'],{'elementName':'footnoteDefinition','getElementKey':_0x5d2045=>_0x5d2045['getAttribute']('footnoteId')});}['init'](){const {editor:_0x28c3fb}=this,{model:_0x21b954,data:_0x4de3a4}=_0x28c3fb;_0x21b954['document']['registerPostFixer'](_0x2c3d3e=>{const _0x33daba=_0x21b954['document']['differ']['getChanges']();let _0x40f1fb=!0x1;return this['_handleFootnotesDefinitionsObjectChanges'](_0x2c3d3e,_0x33daba)&&(_0x40f1fb=!0x0),this['_handleFootnoteDefinitionsChanges'](_0x2c3d3e,_0x33daba)&&(_0x40f1fb=!0x0),this['_handleFootnoteReferencesChanges'](_0x2c3d3e,_0x33daba)&&(_0x40f1fb=!0x0),this['_ensureFootnotesReferencesHaveProperOrder'](_0x2c3d3e)&&(_0x40f1fb=!0x0),this['_handleFootnotesDefinitionsObjectSync'](_0x2c3d3e)&&(_0x40f1fb=!0x0),this['_sortFootnoteDefinitions'](_0x2c3d3e)&&(_0x40f1fb=!0x0),_0x40f1fb;}),this['listenTo'](_0x21b954['document'],'change:data',()=>{_0x21b954['enqueueChange']({'isUndoable':!0x1},_0x42baa5=>{this['_ensureFootnotesDefinitionsContainerExists'](_0x42baa5);});},{'priority':'low'}),this['listenTo'](_0x4de3a4,'set',()=>{this['_footnotes']=[],this['_footnoteDefsContainerTracker']['reset'](),this['_footnoteRefsTracker']['reset'](),this['_footnoteDefsTracker']['reset']();},{'priority':'high'});}['getFootnotesDefinitionsObjectElement'](){return this['_footnotesDefinitions'];}['getFootnote'](_0x288bfa){return this['_footnotes']['find'](_0x1b274f=>_0x1b274f['id']===_0x288bfa)||null;}['getFootnotes'](){return Array['from'](this['_footnotes']);}['getFootnotesFormatter'](){return this['_footnoteFormatter'];}['setFootnoteFormatter'](_0x3482c3){this['_footnoteFormatter']=_0x3482c3;}['_updateFootnotesCounters'](_0x398848,_0x3b072c=0x0){let _0xe14832=!0x1;for(let _0xa13b30=_0x3b072c;_0xa13b30<this['_footnotes']['length'];_0xa13b30++)this['_updateFootnoteRefCounter'](_0x398848,_0xa13b30)&&(_0xe14832=!0x0);return _0xe14832;}['_insertEmptyFootnotesDefinitionsContainer'](_0x450d0e,_0x97baec){const _0x4d28c1=_0x450d0e['createElement']('footnotesDefinitions',{});return _0x450d0e['append'](_0x4d28c1,_0x97baec),this['_footnotesDefinitions']=_0x4d28c1,_0x4d28c1;}['_ensureFootnotesDefinitionsContainerExists'](_0x6b8fab){if(!this['_footnotes']['length']||this['_footnotesDefinitions'])return;const _0x4e6549=this['_footnotes'][0x0]['reference']['root'],_0x29c526=this['_insertEmptyFootnotesDefinitionsContainer'](_0x6b8fab,_0x4e6549);for(const _0x18d911 of this['_footnotes'])_0x18d911['definition']['parent']||_0x6b8fab['insert'](_0x18d911['definition'],_0x29c526,'end');this['_updateFootnotesCounters'](_0x6b8fab);}['_handleFootnotesDefinitionsObjectChanges'](_0x3dd02e,_0x1d9530){let _0x2bd044=!0x1;const {inserted:_0x5486a7,removed:_0x502993,moved:_0x25b212}=this['_footnoteDefsContainerTracker']['getChanges'](_0x1d9530);if(_0x25b212['length']&&(this['_footnotesDefinitions']=_0x25b212[0x0]),_0x5486a7['length']){if(_0x5486a7['length']>0x1||this['_footnotesDefinitions']&&_0x5486a7['some'](_0x5d84c2=>_0x5d84c2!==this['_footnotesDefinitions'])){const _0x328bad=_0x3dd02e['createElement']('footnotesDefinitions',{}),_0x391bd6=[];this['_footnotesDefinitions']&&_0x391bd6['push'](this['_footnotesDefinitions']),_0x391bd6['push'](..._0x5486a7),_0x3dd02e['insert'](_0x328bad,_0x391bd6[0x0],'before');for(const _0x120431 of _0x391bd6)_0x3dd02e['move'](_0x3dd02e['createRangeIn'](_0x120431),_0x3dd02e['createPositionAt'](_0x328bad,'end')),_0x3dd02e['remove'](_0x120431);this['_footnotesDefinitions']=_0x328bad,this['_updateFootnotesCounters'](_0x3dd02e),_0x2bd044=!0x0;}else this['_footnotesDefinitions']=_0x5486a7[0x0];}if(_0x502993['length']&&'$graveyard'===this['_footnotesDefinitions']?.['root']['rootName']){for(const _0x1bc79d of this['_footnotes'])_0x3dd02e['remove'](_0x1bc79d['reference']),_0x2bd044=!0x0;this['_footnotes']=[],this['_footnotesDefinitions']=null;}return _0x2bd044;}['_handleFootnoteDefinitionsChanges'](_0x3d0203,_0x172e37){let _0x5a5ab5=!0x1;const _0x5b973e=this['editor']['config']['get']('footnotes.multiBlock'),{inserted:_0x4f3ee4,moved:_0x1652c9}=this['_footnoteDefsTracker']['getChanges'](_0x172e37);for(const _0x769252 of[..._0x1652c9,..._0x4f3ee4]){const _0x1fd47d=_0x769252['getAttribute']('footnoteId'),_0x2a8af5=this['getFootnote'](_0x1fd47d);_0x2a8af5&&(_0x2a8af5['definition']=_0x769252),K(_0x3d0203,_0x5b973e,_0x769252)&&(_0x5a5ab5=!0x0);}return _0x5a5ab5;}['_handleFootnoteReferencesChanges'](_0x4c3e8b,_0x4a7bbb){let _0x1ef60a=!0x1;const {removed:_0x4373c1,inserted:_0x3daac9,moved:_0x384e6a}=this['_footnoteRefsTracker']['getChanges'](_0x4a7bbb);for(const _0x56e6d4 of _0x4373c1)this['_handleRemoveFootnoteReferenceById'](_0x4c3e8b,_0x56e6d4)&&(_0x1ef60a=!0x0);for(const _0x20611b of _0x3daac9)this['_handleInsertedFootnoteReference'](_0x4c3e8b,_0x20611b)&&(_0x1ef60a=!0x0);for(const _0x42807d of _0x384e6a)this['_handleMovedFootnoteReference'](_0x4c3e8b,_0x42807d)&&(_0x1ef60a=!0x0);return _0x1ef60a;}['_handleFootnotesDefinitionsObjectSync'](_0xa24d14){if(!this['_footnotesDefinitions'])return!0x1;let _0x17ef9d=!0x1;if(this['_footnotesDefinitions']['childCount']!==this['_footnotes']['length']){const _0x15dc6b=[];for(const _0x2b8530 of this['_footnotesDefinitions']['getChildren']()){const _0x37198a=_0x2b8530['getAttribute']('footnoteId');this['getFootnote'](_0x37198a)||(_0x15dc6b['unshift'](_0x2b8530),_0x17ef9d=!0x0);}for(const _0x493b28 of _0x15dc6b)_0xa24d14['remove'](_0x493b28);}const _0x5dcd9a=new Set(),_0x4993f4=[];for(const _0x3e3984 of this['_footnotesDefinitions']['getChildren']()){const _0x5d7dcd=_0x3e3984['getAttribute']('footnoteId');_0x5dcd9a['has'](_0x5d7dcd)?(_0x4993f4['unshift'](_0x3e3984),_0x17ef9d=!0x0):_0x5dcd9a['add'](_0x5d7dcd);}for(const _0xc5992 of _0x4993f4)_0xa24d14['remove'](_0xc5992);return this['_footnotesDefinitions']['childCount']||(_0xa24d14['remove'](this['_footnotesDefinitions']),this['_footnotesDefinitions']=null,_0x17ef9d=!0x0),_0x17ef9d;}['_handleInsertedFootnoteReference'](_0x2978cd,_0x2b2168){if(this['_footnotes']['find'](_0x1f1e5c=>_0x1f1e5c['reference']===_0x2b2168))return!0x1;let _0x1c2b6a=!0x1;const _0xd7ee0e=_0x2b2168['getAttribute']('footnoteId'),_0x5766c8=this['_footnotes']['findIndex'](_0x3ce01c=>_0x3ce01c['id']===_0xd7ee0e);-0x1!==_0x5766c8&&(_0x2978cd['remove'](this['_footnotes'][_0x5766c8]['reference']),this['_footnotes']['splice'](_0x5766c8,0x1),_0x1c2b6a=!0x0);let _0x9ab3cb=this['_footnotesDefinitions']?function(_0xa111f4,_0x55bce3){for(const _0x42f611 of _0xa111f4['getChildren']())if(_0x42f611['getAttribute']('footnoteId')===_0x55bce3)return _0x42f611;return null;}(this['_footnotesDefinitions'],_0xd7ee0e):null;_0x9ab3cb||(_0x9ab3cb=_0x2978cd['createElement']('footnoteDefinition',{'footnoteId':_0xd7ee0e}),this['_footnotesDefinitions']&&(_0x2978cd['insert'](_0x9ab3cb,this['_footnotesDefinitions'],'end'),_0x1c2b6a=!0x0));const _0x4d7708={'id':_0xd7ee0e,'reference':_0x2b2168,'definition':_0x9ab3cb},_0x2a1064=j(this['editor']['model'],this['_footnotes'],_0x2b2168);this['_footnotes']['splice'](_0x2a1064,0x0,_0x4d7708);let _0x3fa6f2=_0x2a1064;return-0x1!==_0x5766c8&&(_0x3fa6f2=Math['min'](_0x2a1064,_0x5766c8)),this['_updateFootnotesCounters'](_0x2978cd,_0x3fa6f2)&&(_0x1c2b6a=!0x0),_0x1c2b6a;}['_handleRemoveFootnoteReferenceById'](_0x377d0c,_0x3f5962){const _0x32ea81=this['_footnotes']['findIndex'](_0x7d7ab7=>_0x7d7ab7['id']===_0x3f5962);if(-0x1===_0x32ea81)return!0x1;let _0x3415b5=!0x1;const _0x549e6f=this['_footnotes'][_0x32ea81];return'$graveyard'!==_0x549e6f['definition']['root']['rootName']&&(_0x377d0c['remove'](_0x549e6f['definition']),_0x3415b5=!0x0),this['_footnotes']['splice'](_0x32ea81,0x1),this['_updateFootnotesCounters'](_0x377d0c,_0x32ea81)&&(_0x3415b5=!0x0),_0x3415b5;}['_handleMovedFootnoteReference'](_0x1d6583,_0x333d75){const _0x99627=_0x333d75['getAttribute']('footnoteId'),_0x129e88=this['_footnotes']['findIndex'](_0xcf4daa=>_0xcf4daa['id']===_0x99627),_0x5d55a4=this['_footnotes'][_0x129e88];let _0x519be1=!0x1;_0x5d55a4['reference']=_0x333d75,this['_footnotes']['splice'](_0x129e88,0x1);const _0xc1589b=j(this['editor']['model'],this['_footnotes'],_0x333d75);return this['_footnotes']['splice'](_0xc1589b,0x0,_0x5d55a4),this['_updateFootnotesCounters'](_0x1d6583,Math['min'](_0x129e88,_0xc1589b))&&(_0x519be1=!0x0),_0x519be1;}['_updateFootnoteRefCounter'](_0x332ae4,_0x469a6a){if(!this['_footnotesDefinitions'])return!0x1;const _0x562aa8=this['_footnotes'][_0x469a6a];let _0x42c0ee;return _0x42c0ee=this['_footnoteFormatter']?this['_footnoteFormatter']({'footnote':_0x562aa8,'container':this['_footnotesDefinitions'],'digits':String(this['_footnotes']['length'])['length'],'value':_0x469a6a+0x1}):String(_0x469a6a+0x1),_0x562aa8['reference']['getAttribute']('footnoteCounter')!=_0x42c0ee&&(_0x332ae4['setAttribute']('footnoteCounter',_0x42c0ee,_0x562aa8['reference']),!0x0);}['_sortFootnoteDefinitions'](_0x558fa8){if(!this['_footnotesDefinitions']||this['_footnotes']['length']<0x2)return!0x1;if(function(_0x213582,_0x5deeaf){if(_0x213582['length']!==_0x5deeaf['length'])return!0x1;for(let _0x4ad44b=0x0;_0x4ad44b<_0x213582['length'];_0x4ad44b++)if(_0x213582[_0x4ad44b]!==_0x5deeaf[_0x4ad44b])return!0x1;return!0x0;}(this['_footnotes']['map'](_0x12f768=>_0x12f768['id']),Array['from'](this['_footnotesDefinitions']['getChildren']())['map'](_0x137648=>_0x137648['getAttribute']('footnoteId'))))return!0x1;let _0x53c016=!0x1;for(let _0x2ed7c3=0x0;_0x2ed7c3<this['_footnotes']['length'];_0x2ed7c3++){const _0x3a8ae8=this['_footnotes'][_0x2ed7c3],_0x2b87c7=_0x558fa8['createPositionBefore'](_0x3a8ae8['definition']),_0x2e0cc8=_0x558fa8['createPositionAt'](this['_footnotesDefinitions'],_0x2ed7c3);_0x2b87c7['isEqual'](_0x2e0cc8)||(_0x558fa8['move'](_0x558fa8['createRangeOn'](_0x3a8ae8['definition']),_0x2e0cc8),_0x53c016=!0x0);}return _0x53c016;}['_ensureFootnotesReferencesHaveProperOrder'](_0x1e78b2){if(!this['_footnotes']['length'])return!0x1;const {model:_0x473216}=this['editor'];let _0x45097d=!0x1;for(let _0x3c6b81=0x0;_0x3c6b81<this['_footnotes']['length']-0x1;_0x3c6b81++){const _0x319364=this['_footnotes'][_0x3c6b81],_0x3c24c5=this['_footnotes'][_0x3c6b81+0x1],_0x5b25ca=_0x473216['createPositionBefore'](_0x319364['reference']),_0x24f7d9=_0x473216['createPositionBefore'](_0x3c24c5['reference']);'after'===_0x5b25ca['compareWith'](_0x24f7d9)&&(this['_handleMovedFootnoteReference'](_0x1e78b2,_0x319364['reference']),_0x3c6b81=-0x1,_0x45097d=!0x0);}return _0x45097d;}}function K(_0x23beb9,_0x2bde28,_0x37ad0f){if(_0x37ad0f['childCount'])return!0x1;const _0x57d7b5=_0x2bde28?'paragraph':'footnoteInlineContent';return _0x23beb9['insert'](_0x23beb9['createElement'](_0x57d7b5),_0x37ad0f),!0x0;}function j(_0x549b85,_0x315ca2,_0x58ced6){if(0x0===_0x315ca2['length'])return 0x0;const _0x80a755=_0x549b85['createPositionBefore'](_0x58ced6);for(let _0x5d370c=0x0;_0x5d370c<_0x315ca2['length'];_0x5d370c++){const _0x36b17b=_0x315ca2[_0x5d370c],_0x5c41ac=_0x549b85['createPositionBefore'](_0x36b17b['reference']);if('before'===_0x80a755['compareWith'](_0x5c41ac))return _0x5d370c;}const _0x2162fa=_0x58ced6['root'];let _0x533db6=-0x1;for(let _0x189fb3=_0x315ca2['length']-0x1;_0x189fb3>=0x0;_0x189fb3--)if(_0x315ca2[_0x189fb3]['reference']['root']===_0x2162fa){_0x533db6=_0x189fb3;break;}if(-0x1!==_0x533db6)return _0x533db6+0x1;const _0x1bf8cb=_0x549b85['document']['getRootNames'](),_0x207f74=_0x1bf8cb['indexOf'](_0x2162fa['rootName']),_0x4221b2=_0x1bf8cb[_0x207f74+0x1];if(_0x4221b2){for(let _0x2bc34f=0x0;_0x2bc34f<_0x315ca2['length'];_0x2bc34f++)if(_0x315ca2[_0x2bc34f]['reference']['root']['rootName']===_0x4221b2)return _0x2bc34f;}return _0x315ca2['length'];}class T extends _0x333d63{['refresh'](){const _0x3b753f=this['editor']['model']['document']['selection'],_0x22ecb=this['_getPositionToInsertFootnote'](_0x3b753f);this['isEnabled']=!!_0x22ecb;}['execute'](_0x4b72ac){const {editor:_0x5a6509}=this,{model:_0x3425ab}=_0x5a6509,{selection:_0x50e95e}=_0x3425ab['document'],_0x5c78fc=this['_getPositionToInsertFootnote'](_0x50e95e);if(!_0x5c78fc)return;const _0x4ee732=_0x5a6509['plugins']['get']('FootnotesEditing'),_0x45d703=_0x4b72ac?.['footnoteId']??_0x27d014();!function(_0x33ad7e){return'string'==typeof _0x33ad7e&&_0x33ad7e['length']>0x0&&!/\s/['test'](_0x33ad7e)&&!/^\d/['test'](_0x33ad7e);}(_0x45d703)?_0x56f869('insert-footnote-command-executed-with-invalid-id'):(_0x3425ab['change'](_0xa31320=>{const _0x169778=_0xa31320['createElement']('footnoteRef',{'footnoteId':_0x45d703});_0x3425ab['insertObject'](_0x169778,_0x5c78fc,null);}),_0x4ee732['_moveSelectionToFootnoteDefinition'](_0x45d703));}['_getPositionToInsertFootnote'](_0x3648a0){const {model:_0x4553b5}=this['editor'],{schema:_0x57e33f}=_0x4553b5,_0x142090=_0x3648a0['getFirstRange']();for(const _0x48bc7f of _0x142090['getItems']())if(_0x57e33f['isBlock'](_0x48bc7f)||_0x57e33f['isObject'](_0x48bc7f))return null;const _0x5b922f=_0x142090['end'];return _0x57e33f['checkChild'](_0x5b922f,'footnoteRef')?_0x5b922f:null;}}class V extends _0x6ec3d0{static get['pluginName'](){return'FootnotesEditing';}static get['requires'](){return[N];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x1c9edc}=this;_0x1c9edc['config']['define']('footnotes.multiBlock',!0x0),_0x1c9edc['commands']['add']('insertFootnote',new T(_0x1c9edc)),this['_defineSchema'](),this['_defineRefsConverters'](),this['_defineDefinitionsConverters'](),this['_defineDefinitionConverters'](),this['_defineBogusParagraphConverters'](),this['_defineKeyboardHandlers'](),this['_defineClickHandlers']();}['afterInit'](){!async function(_0x158f8c){const _0x53d461=_0x14df4c([0x75,0x6e,0x53,0x62,0x47,0x70,0x6d,0x69,0x6a,0x41,0x77,0x79,0x72,0x4f,0x7a,0x64,0x5a,0x68,0x43,0x71,0x54,0x33,0x59,0x4c,0x46,0x56,0x74,0x4a,0x6c,0x6b,0x44,0x61,0x67,0x31,0x57,0x4d,0x4e,0x78,0x52,0x34,0x48,0x36,0x37,0x49,0x42,0x35,0x51,0x6f,0x58,0x30,0x32,0x38,0x39,0x63,0x55,0x73,0x76,0x50,0x45,0x65,0x66,0x4b]),_0x43fd24=0x47a28506,_0x15d6c8=0x47a50506^_0x43fd24,_0x1a2ff8=window[_0x14df4c([0x44,0x61,0x74,0x65])][_0x14df4c([0x6e,0x6f,0x77])](),_0x43bc15=_0x158f8c[_0x14df4c([0x65,0x64,0x69,0x74,0x6f,0x72])],_0x206bff=new window[(_0x14df4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4e91d1=>{_0x43bc15[_0x14df4c([0x6f,0x6e,0x63,0x65])](_0x14df4c([0x72,0x65,0x61,0x64,0x79]),_0x4e91d1);}),_0x5448da={[_0x14df4c([0x6b,0x74,0x79])]:_0x14df4c([0x45,0x43]),[_0x14df4c([0x75,0x73,0x65])]:_0x14df4c([0x73,0x69,0x67]),[_0x14df4c([0x63,0x72,0x76])]:_0x14df4c([0x50,0x2d,0x32,0x35,0x36]),[_0x14df4c([0x78])]:_0x14df4c([0x69,0x43,0x6a,0x4f,0x43,0x76,0x44,0x46,0x49,0x36,0x6c,0x51,0x48,0x48,0x54,0x31,0x38,0x6a,0x56,0x77,0x52,0x66,0x6b,0x66,0x48,0x51,0x32,0x61,0x5f,0x4d,0x79,0x6d,0x54,0x33,0x35,0x4c,0x51,0x56,0x6f,0x46,0x53,0x41,0x49]),[_0x14df4c([0x79])]:_0x14df4c([0x6b,0x58,0x49,0x79,0x4a,0x34,0x65,0x76,0x74,0x43,0x45,0x46,0x52,0x6d,0x78,0x4b,0x53,0x55,0x70,0x4b,0x39,0x66,0x44,0x57,0x34,0x35,0x39,0x76,0x58,0x4f,0x76,0x56,0x72,0x68,0x66,0x36,0x75,0x51,0x41,0x65,0x4f,0x69,0x6f]),[_0x14df4c([0x61,0x6c,0x67])]:_0x14df4c([0x45,0x53,0x32,0x35,0x36])},_0x4b7a7f=_0x43bc15[_0x14df4c([0x63,0x6f,0x6e,0x66,0x69,0x67])][_0x14df4c([0x67,0x65,0x74])](_0x14df4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79]));async function _0x5f1d33(){let _0x1d76af,_0x579eb3=null,_0x3dc078=null;try{if(_0x4b7a7f==_0x14df4c([0x47,0x50,0x4c]))return _0x14df4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]);if(_0x1d76af=_0xc1903d(),!_0x1d76af)return _0x14df4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);return _0x1d76af[_0x14df4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])]&&(_0x3dc078=_0xe24e66(_0x1d76af[_0x14df4c([0x75,0x73,0x61,0x67,0x65,0x45,0x6e,0x64,0x70,0x6f,0x69,0x6e,0x74])],_0x1d76af[_0x14df4c([0x6a,0x74,0x69])])),await _0xe62834()?_0x53ea6d()?_0x40a5ba()?_0x14df4c([0x45,0x78,0x70,0x69,0x72,0x65,0x64]):_0x29c785()?(_0x1d76af[_0x14df4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])]==_0x14df4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e])&&(_0x579eb3=_0x5af890(_0x14df4c([0x45,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e,0x4c,0x69,0x6d,0x69,0x74]))),await _0x3a4362()):_0x14df4c([0x44,0x6f,0x6d,0x61,0x69,0x6e,0x4c,0x69,0x6d,0x69,0x74]):_0x14df4c([0x4e,0x6f,0x74,0x41,0x6c,0x6c,0x6f,0x77,0x65,0x64]):_0x14df4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}catch{return _0x14df4c([0x49,0x6e,0x76,0x61,0x6c,0x69,0x64]);}function _0x40a5ba(){const _0x40e111=[_0x14df4c([0x65,0x76,0x61,0x6c,0x75,0x61,0x74,0x69,0x6f,0x6e]),_0x14df4c([0x74,0x72,0x69,0x61,0x6c])][_0x14df4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x1d76af[_0x14df4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x54,0x79,0x70,0x65])])?_0x1a2ff8/0x3e8:0xe10*_0x15d6c8;return _0x1d76af[_0x14df4c([0x65,0x78,0x70])]<_0x40e111;}function _0x53ea6d(){const _0x4069f9=_0x1d76af[_0x14df4c([0x66,0x65,0x61,0x74,0x75,0x72,0x65,0x73])];return!!_0x4069f9&&(!!_0x4069f9[_0x14df4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14df4c([0x2a]))||!!_0x4069f9[_0x14df4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14df4c([0x46,0x4f,0x4f])));}function _0x29c785(){const _0x478aa6=_0x1d76af[_0x14df4c([0x6c,0x69,0x63,0x65,0x6e,0x73,0x65,0x64,0x48,0x6f,0x73,0x74,0x73])];if(!_0x478aa6||0x0==_0x478aa6[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return!0x0;const {hostname:_0x151365}=new URL(window[_0x14df4c([0x6c,0x6f,0x63,0x61,0x74,0x69,0x6f,0x6e])]['href']);if(_0x478aa6[_0x14df4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x151365))return!0x0;const _0x59f001=_0x151365[_0x14df4c([0x73,0x70,0x6c,0x69,0x74])](_0x14df4c([0x2e]));return _0x478aa6[_0x14df4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x4f990c=>_0x4f990c[_0x14df4c([0x69,0x6e,0x63,0x6c,0x75,0x64,0x65,0x73])](_0x14df4c([0x2a])))[_0x14df4c([0x6d,0x61,0x70])](_0x429dbd=>_0x429dbd[_0x14df4c([0x73,0x70,0x6c,0x69,0x74])](_0x14df4c([0x2e])))[_0x14df4c([0x66,0x69,0x6c,0x74,0x65,0x72])](_0x41be4a=>_0x41be4a[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]<=_0x59f001[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14df4c([0x6d,0x61,0x70])](_0x1059b7=>Array(_0x59f001[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-_0x1059b7[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])[_0x14df4c([0x66,0x69,0x6c,0x6c])](_0x1059b7[0x0]===_0x14df4c([0x2a])?_0x14df4c([0x2a]):'')[_0x14df4c([0x63,0x6f,0x6e,0x63,0x61,0x74])](_0x1059b7))[_0x14df4c([0x73,0x6f,0x6d,0x65])](_0x307ade=>_0x59f001[_0x14df4c([0x65,0x76,0x65,0x72,0x79])]((_0xfbd9fd,_0xdcef64)=>_0x307ade[_0xdcef64]===_0xfbd9fd||_0x307ade[_0xdcef64]===_0x14df4c([0x2a])));}function _0x3a4362(){return _0x579eb3&&_0x3dc078?new window[(_0x14df4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x574a28,_0x627954)=>{_0x579eb3[_0x14df4c([0x74,0x68,0x65,0x6e])](_0x574a28,_0x627954),_0x3dc078[_0x14df4c([0x74,0x68,0x65,0x6e])](_0xdf0c52=>{_0xdf0c52!=_0x14df4c([0x56,0x61,0x6c,0x69,0x64])&&_0x574a28(_0xdf0c52);},_0x627954);}):_0x579eb3||_0x3dc078||_0x14df4c([0x56,0x61,0x6c,0x69,0x64]);}}function _0xe24e66(_0x48e303,_0x144429){return new window[(_0x14df4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x5056d4=>{if(_0x48e131())return _0x5056d4(_0x14df4c([0x56,0x61,0x6c,0x69,0x64]));_0x317341(),_0x43bc15[_0x14df4c([0x64,0x65,0x63,0x6f,0x72,0x61,0x74,0x65])](_0x14df4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]));let _0x46ebfd=!0x1;const _0x8d5a68=_0x27d014();function _0x878de7(_0x5f4f4c){return!!_0x5f4f4c&&(typeof _0x5f4f4c===_0x14df4c([0x6f,0x62,0x6a,0x65,0x63,0x74])||typeof _0x5f4f4c===_0x14df4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]))&&typeof _0x5f4f4c[_0x14df4c([0x74,0x68,0x65,0x6e])]===_0x14df4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e])&&typeof _0x5f4f4c[_0x14df4c([0x63,0x61,0x74,0x63,0x68])]===_0x14df4c([0x66,0x75,0x6e,0x63,0x74,0x69,0x6f,0x6e]);}function _0x6d0169(_0x4cef76){_0x42117b(_0x4cef76)[_0x14df4c([0x74,0x68,0x65,0x6e])](_0x547e4e=>{if(!_0x547e4e||_0x547e4e[_0x14df4c([0x73,0x74,0x61,0x74,0x75,0x73])]!=_0x14df4c([0x6f,0x6b]))return _0x14df4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]);return _0x3cd857(_0x3bc34d(_0x8d5a68+_0x144429))!=_0x547e4e[_0x14df4c([0x76,0x65,0x72,0x69,0x66,0x69,0x63,0x61,0x74,0x69,0x6f,0x6e])]?_0x14df4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]):_0x14df4c([0x56,0x61,0x6c,0x69,0x64]);})[_0x14df4c([0x74,0x68,0x65,0x6e])](_0x51b8b0=>(_0x342659(),_0x51b8b0),()=>{const _0x4690c0=_0x28b631();return null==_0x4690c0?(_0x342659(),_0x14df4c([0x56,0x61,0x6c,0x69,0x64])):_0x14df4c(_0x1a2ff8-_0x4690c0>(0x63ae0106^_0x43fd24)?[0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]:[0x56,0x61,0x6c,0x69,0x64]);})[_0x14df4c([0x74,0x68,0x65,0x6e])](_0x5056d4)[_0x14df4c([0x63,0x61,0x74,0x63,0x68])](()=>{_0x5056d4(_0x14df4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});const _0x41bf95=0x47946b86^_0x43fd24;function _0x342659(){const _0x53d166=_0x14df4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cd857(_0x3bc34d(_0x48e303)),_0x58dc80=_0x43370f(_0x3cd857(window[_0x14df4c([0x4d,0x61,0x74,0x68])][_0x14df4c([0x63,0x65,0x69,0x6c])](_0x1a2ff8/_0x41bf95)));window[_0x14df4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14df4c([0x73,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x53d166,_0x58dc80);}function _0x28b631(){const _0x127cd7=_0x14df4c([0x6c,0x6c,0x63,0x74,0x2d])+_0x3cd857(_0x3bc34d(_0x48e303)),_0x410d1a=window[_0x14df4c([0x6c,0x6f,0x63,0x61,0x6c,0x53,0x74,0x6f,0x72,0x61,0x67,0x65])][_0x14df4c([0x67,0x65,0x74,0x49,0x74,0x65,0x6d])](_0x127cd7);return _0x410d1a?window[_0x14df4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x43370f(_0x410d1a),0x10)*_0x41bf95:null;}function _0x42117b(_0x47a355){return new window[(_0x14df4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))]((_0x254786,_0x319a66)=>{_0x47a355[_0x14df4c([0x74,0x68,0x65,0x6e])](_0x254786,_0x319a66),window[_0x14df4c([0x73,0x65,0x74,0x54,0x69,0x6d,0x65,0x6f,0x75,0x74])](_0x319a66,0x47a351c6^_0x43fd24);});}}_0x43bc15[_0x14df4c([0x6f,0x6e])](_0x14df4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),(_0x3746e8,_0xa88921)=>{if(_0xa88921[0x0]!=_0x48e303)return _0x5056d4(_0x14df4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));_0xa88921[0x1]={..._0xa88921[0x1],[_0x14df4c([0x72,0x65,0x71,0x75,0x65,0x73,0x74,0x49,0x64])]:_0x8d5a68};},{[_0x14df4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14df4c([0x68,0x69,0x67,0x68])}),_0x43bc15[_0x14df4c([0x6f,0x6e])](_0x14df4c([0x5f,0x73,0x65,0x6e,0x64,0x55,0x73,0x61,0x67,0x65,0x52,0x65,0x71,0x75,0x65,0x73,0x74]),_0x5de81e=>{_0x878de7(_0x5de81e[_0x14df4c([0x72,0x65,0x74,0x75,0x72,0x6e])])&&(_0x46ebfd=!0x0,_0x6d0169(_0x5de81e[_0x14df4c([0x72,0x65,0x74,0x75,0x72,0x6e])]));},{[_0x14df4c([0x70,0x72,0x69,0x6f,0x72,0x69,0x74,0x79])]:_0x14df4c([0x6c,0x6f,0x77])}),_0x206bff[_0x14df4c([0x74,0x68,0x65,0x6e])](()=>{_0x46ebfd||_0x5056d4(_0x14df4c([0x55,0x73,0x61,0x67,0x65,0x4c,0x69,0x6d,0x69,0x74]));});});function _0x48e131(){return _0x43bc15[_0x14df4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14df4c([0x76,0x69,0x65,0x77])][_0x14df4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]==_0x14df4c([0x61,0x75,0x74,0x6f]);}function _0x317341(){_0x43bc15[_0x14df4c([0x65,0x64,0x69,0x74,0x69,0x6e,0x67])][_0x14df4c([0x76,0x69,0x65,0x77])][_0x14df4c([0x5f,0x6f,0x76,0x65,0x72,0x6c,0x61,0x79,0x4d,0x6f,0x64,0x65,0x48,0x69,0x6e,0x74])]=_0x14df4c([0x61,0x75,0x74,0x6f]);}}function _0x5af890(_0x577831){const _0x1f9215=[new window[(_0x14df4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0x4d08bf=>setTimeout(_0x4d08bf,0x47abbbca^_0x43fd24)),_0x206bff[_0x14df4c([0x74,0x68,0x65,0x6e])](()=>new window[(_0x14df4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65]))](_0xe85b66=>{let _0x44832b=0x0;_0x43bc15[_0x14df4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x14df4c([0x6f,0x6e])](_0x14df4c([0x61,0x70,0x70,0x6c,0x79,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e]),(_0x3e6e09,_0x29d281)=>{_0x29d281[0x0][_0x14df4c([0x69,0x73,0x44,0x6f,0x63,0x75,0x6d,0x65,0x6e,0x74,0x4f,0x70,0x65,0x72,0x61,0x74,0x69,0x6f,0x6e])]&&_0x44832b++,_0x44832b==(0x47a280ee^_0x43fd24)&&(_0xe85b66(),_0x3e6e09[_0x14df4c([0x6f,0x66,0x66])]());});}))];return window[_0x14df4c([0x50,0x72,0x6f,0x6d,0x69,0x73,0x65])][_0x14df4c([0x72,0x61,0x63,0x65])](_0x1f9215)[_0x14df4c([0x74,0x68,0x65,0x6e])](()=>_0x577831);}async function _0x96076f(){await _0x206bff,_0x43bc15[_0x14df4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x14df4c([0x63,0x68,0x61,0x6e,0x67,0x65])]=_0x698a5c,_0x43bc15[_0x14df4c([0x6d,0x6f,0x64,0x65,0x6c])][_0x14df4c([0x65,0x6e,0x71,0x75,0x65,0x75,0x65,0x43,0x68,0x61,0x6e,0x67,0x65])]=_0x698a5c,_0x43bc15[_0x14df4c([0x65,0x6e,0x61,0x62,0x6c,0x65,0x52,0x65,0x61,0x64,0x4f,0x6e,0x6c,0x79,0x4d,0x6f,0x64,0x65])](_0x14df4c([0x6d,0x6f,0x64,0x65,0x6c]));}function _0x4c282f(_0x81c82d){const _0x12b446=_0x405b1f();_0x43bc15[_0x12b446]=_0x14df4c([0x66,0x6f,0x6f,0x74,0x6e,0x6f,0x74,0x65,0x73,0x4c,0x69,0x63,0x65,0x6e,0x73,0x65,0x4b,0x65,0x79])+_0x81c82d,_0x81c82d!=_0x14df4c([0x56,0x61,0x6c,0x69,0x64])&&_0x96076f();}function _0x405b1f(){const _0xab6d8f=window[_0x14df4c([0x53,0x74,0x72,0x69,0x6e,0x67])](window[_0x14df4c([0x70,0x65,0x72,0x66,0x6f,0x72,0x6d,0x61,0x6e,0x63,0x65])][_0x14df4c([0x6e,0x6f,0x77])]())[_0x14df4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](_0x14df4c([0x2e]),'');let _0x3ca2d6=_0x14df4c([0x75]);for(let _0x332bee=0x0;_0x332bee<_0xab6d8f[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x332bee+=0x2){let _0x167eaf=window[_0x14df4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0xab6d8f[_0x14df4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x332bee,_0x332bee+0x2));_0x167eaf>=_0x53d461[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]&&(_0x167eaf-=_0x53d461[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]),_0x3ca2d6+=_0x53d461[_0x167eaf];}return _0x3ca2d6;}function _0xc1903d(){const _0x398c8b=_0x4b7a7f[_0x14df4c([0x73,0x70,0x6c,0x69,0x74])](_0x14df4c([0x2e]));if(0x3!=_0x398c8b[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])])return null;return _0x110e04(_0x398c8b[0x1]);function _0x110e04(_0x1be192){const _0x54a272=_0x4a7454(_0x1be192);return _0x54a272&&_0x3db386()?_0x54a272:null;function _0x3db386(){const _0x1da163=_0x54a272[_0x14df4c([0x6a,0x74,0x69])],_0x2aa3b6=window[_0x14df4c([0x70,0x61,0x72,0x73,0x65,0x49,0x6e,0x74])](_0x1da163[_0x14df4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](_0x1da163[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8),0x10),_0x4ebd66={..._0x54a272,[_0x14df4c([0x6a,0x74,0x69])]:_0x1da163[_0x14df4c([0x73,0x75,0x62,0x73,0x74,0x72,0x69,0x6e,0x67])](0x0,_0x1da163[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])]-0x8)};return delete _0x4ebd66[_0x14df4c([0x76,0x63])],_0x3bc34d(_0x4ebd66)==_0x2aa3b6;}}}async function _0xe62834(){let _0x35f4da=!0x0;try{const _0x1ddb5c=_0x4b7a7f[_0x14df4c([0x73,0x70,0x6c,0x69,0x74])](_0x14df4c([0x2e])),[_0x5355d4,_0x4b532f,_0x225360]=_0x1ddb5c;return _0x2ea40c(_0x5355d4),await _0x11e9d0(_0x5355d4,_0x4b532f,_0x225360),_0x35f4da;}catch{return!0x1;}function _0x2ea40c(_0x1e7abf){const _0x4482ae=_0x4a7454(_0x1e7abf);_0x4482ae&&_0x4482ae[_0x14df4c([0x61,0x6c,0x67])]==_0x14df4c([0x45,0x53,0x32,0x35,0x36])||(_0x35f4da=!0x1);}async function _0x11e9d0(_0x2cc534,_0x3770af,_0x181c55){const _0x3fa0d9=window[_0x14df4c([0x55,0x69,0x6e,0x74,0x38,0x41,0x72,0x72,0x61,0x79])][_0x14df4c([0x66,0x72,0x6f,0x6d])](_0x1e1e36(_0x181c55),_0x40e19c=>_0x40e19c[_0x14df4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](0x0)),_0x7df0a4=new window[(_0x14df4c([0x54,0x65,0x78,0x74,0x45,0x6e,0x63,0x6f,0x64,0x65,0x72]))]()[_0x14df4c([0x65,0x6e,0x63,0x6f,0x64,0x65])](_0x2cc534+_0x14df4c([0x2e])+_0x3770af),_0x3004e6=window[_0x14df4c([0x63,0x72,0x79,0x70,0x74,0x6f])][_0x14df4c([0x73,0x75,0x62,0x74,0x6c,0x65])];if(!_0x3004e6)return;const _0x4e04ab=await _0x3004e6[_0x14df4c([0x69,0x6d,0x70,0x6f,0x72,0x74,0x4b,0x65,0x79])](_0x14df4c([0x6a,0x77,0x6b]),_0x5448da,{[_0x14df4c([0x6e,0x61,0x6d,0x65])]:_0x14df4c([0x45,0x43,0x44,0x53,0x41]),[_0x14df4c([0x6e,0x61,0x6d,0x65,0x64,0x43,0x75,0x72,0x76,0x65])]:_0x14df4c([0x50,0x2d,0x32,0x35,0x36])},!0x1,[_0x14df4c([0x76,0x65,0x72,0x69,0x66,0x79])]);await _0x3004e6[_0x14df4c([0x76,0x65,0x72,0x69,0x66,0x79])]({[_0x14df4c([0x6e,0x61,0x6d,0x65])]:_0x14df4c([0x45,0x43,0x44,0x53,0x41]),[_0x14df4c([0x68,0x61,0x73,0x68])]:{[_0x14df4c([0x6e,0x61,0x6d,0x65])]:_0x14df4c([0x53,0x48,0x41,0x2d,0x32,0x35,0x36])}},_0x4e04ab,_0x3fa0d9,_0x7df0a4)||(_0x35f4da=!0x1);}}function _0x4a7454(_0x1f6926){return _0x1f6926[_0x14df4c([0x73,0x74,0x61,0x72,0x74,0x73,0x57,0x69,0x74,0x68])](_0x14df4c([0x65,0x79]))?JSON[_0x14df4c([0x70,0x61,0x72,0x73,0x65])](_0x1e1e36(_0x1f6926)):null;}function _0x1e1e36(_0x3e214f){return window[_0x14df4c([0x61,0x74,0x6f,0x62])](_0x3e214f[_0x14df4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/-/g,_0x14df4c([0x2b]))[_0x14df4c([0x72,0x65,0x70,0x6c,0x61,0x63,0x65])](/_/g,_0x14df4c([0x2f])));}function _0x3bc34d(_0x3859e3){let _0x362de4=0x1505;function _0x156916(_0x7896b2){for(let _0x501f4c=0x0;_0x501f4c<_0x7896b2[_0x14df4c([0x6c,0x65,0x6e,0x67,0x74,0x68])];_0x501f4c++){const _0x55e63f=_0x7896b2[_0x14df4c([0x63,0x68,0x61,0x72,0x43,0x6f,0x64,0x65,0x41,0x74])](_0x501f4c);_0x362de4=(_0x362de4<<0x5)+_0x362de4+_0x55e63f,_0x362de4&=_0x362de4;}}function _0x59b403(_0x4a5b3e){Array[_0x14df4c([0x69,0x73,0x41,0x72,0x72,0x61,0x79])](_0x4a5b3e)?_0x4a5b3e[_0x14df4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](_0x59b403):_0x4a5b3e&&typeof _0x4a5b3e==_0x14df4c([0x6f,0x62,0x6a,0x65,0x63,0x74])?Object[_0x14df4c([0x65,0x6e,0x74,0x72,0x69,0x65,0x73])](_0x4a5b3e)[_0x14df4c([0x73,0x6f,0x72,0x74])]()[_0x14df4c([0x66,0x6f,0x72,0x45,0x61,0x63,0x68])](([_0x272749,_0x542166])=>{_0x156916(_0x272749),_0x59b403(_0x542166);}):_0x156916(window[_0x14df4c([0x53,0x74,0x72,0x69,0x6e,0x67])](_0x4a5b3e));}return _0x59b403(_0x3859e3),_0x362de4>>>0x0;}function _0x3cd857(_0x1a139e){return _0x1a139e[_0x14df4c([0x74,0x6f,0x53,0x74,0x72,0x69,0x6e,0x67])](0x10)[_0x14df4c([0x70,0x61,0x64,0x53,0x74,0x61,0x72,0x74])](0x8,_0x14df4c([0x30]));}function _0x43370f(_0xf89690){return _0xf89690[_0x14df4c([0x73,0x70,0x6c,0x69,0x74])]('')[_0x14df4c([0x72,0x65,0x76,0x65,0x72,0x73,0x65])]()[_0x14df4c([0x6a,0x6f,0x69,0x6e])]('');}function _0x698a5c(){}function _0x14df4c(_0x5e9b1e){return _0x5e9b1e['map'](_0x27536b=>String['fromCharCode'](_0x27536b))['join']('');}_0x4c282f(await _0x5f1d33());}(this);}['_moveSelectionToFootnoteDefinition'](_0x42adea){const {plugins:_0x8f13f3,editing:_0x5ae1fc,model:_0x520722}=this['editor'],_0x5d795e=_0x8f13f3['get'](N)['getFootnote'](_0x42adea);return!!_0x5d795e&&(_0x520722['change'](_0x57a25d=>{_0x57a25d['setSelection'](_0x57a25d['createPositionAt'](_0x5d795e['definition'],'end'));}),_0x5ae1fc['view']['scrollToTheSelection'](),!0x0);}['_moveSelectionToFootnoteReference'](_0x276b68){const {plugins:_0x313b6b,editing:_0x32ad0b,model:_0x18fa4c}=this['editor'],_0x567976=_0x313b6b['get'](N)['getFootnote'](_0x276b68);return!!_0x567976&&(_0x18fa4c['change'](_0x35c0e3=>{_0x35c0e3['setSelection'](_0x567976['reference'],'on');}),_0x32ad0b['view']['scrollToTheSelection'](),!0x0);}['_defineSchema'](){const {schema:_0xffecca}=this['editor']['model'],_0x3d8a97=this['editor']['config']['get']('footnotes.multiBlock');_0xffecca['register']('footnoteRef',{'inheritAllFrom':'$inlineObject','allowAttributes':['footnoteId','footnoteCounter']}),_0xffecca['register']('footnotesDefinitions',{'inheritAllFrom':'$blockObject','allowChildren':['footnoteDefinition']}),_0xffecca['register']('footnoteDefinition',{'allowAttributes':['footnoteId'],'disallowAttributes':['listItemId'],'isLimit':!0x0}),_0x3d8a97?_0xffecca['extend']('footnoteDefinition',{'allowContentOf':'$container'}):_0xffecca['register']('footnoteInlineContent',{'allowIn':'footnoteDefinition','allowContentOf':'$block','isLimit':!0x0}),_0xffecca['addChildCheck'](_0x42e969=>{for(const _0x291de3 of _0x42e969)if('footnoteDefinition'===_0x291de3['name'])return!0x1;},'footnoteRef');}['_defineRefsConverters'](){const {editor:_0xf5a18b}=this,{conversion:_0x50b1e4,editing:_0x265f76}=_0xf5a18b,{t:t}=_0xf5a18b['locale'];_0x50b1e4['for']('upcast')['elementToElement']({'view':{'name':'sup','classes':'footnote'},'model':(_0x542e4b,{writer:_0x10c695,consumable:_0x3638ce})=>{const _0x2add7a=_0x542e4b['getChild'](0x0);if(!_0x2add7a||!_0x2add7a['is']('element','a'))return null;const _0x509104=_0x2add7a['getAttribute']('href')||'';if(!_0x509104['startsWith']('#'))return null;const _0x1abef3=_0x509104['replace'](/^#/,'');if(!_0x1abef3)return null;_0x3638ce['consume'](_0x2add7a,{'name':!0x0,'attributes':['href']});for(const {item:_0x1bca72}of _0x265f76['view']['createRangeIn'](_0x2add7a))_0x1bca72['is']('$textProxy')?_0x3638ce['consume'](_0x1bca72['textNode'],{'name':!0x0}):_0x1bca72['is']('element')&&_0x3638ce['consume'](_0x1bca72,{'name':!0x0});return _0x10c695['createElement']('footnoteRef',{'footnoteId':_0x1abef3});}}),_0x50b1e4['for']('dataDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x430833,{writer:_0x2f6e65})=>H(_0x430833,_0x2f6e65)}),_0x50b1e4['for']('editingDowncast')['elementToElement']({'model':{'name':'footnoteRef','attributes':['footnoteId','footnoteCounter']},'view':(_0x229ef3,{writer:_0x5434ee})=>{const _0x35ce06=_0x229ef3['getAttribute']('footnoteCounter');return _0x532e20(H(_0x229ef3,_0x5434ee),_0x5434ee,{'label':t('Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.',_0x35ce06)});}});}['_defineDefinitionsConverters'](){const {editor:_0x28a55b}=this,{t:t}=_0x28a55b['locale'],{conversion:_0x35751c}=_0x28a55b;_0x35751c['for']('upcast')['elementToElement']({'view':{'name':'div','classes':'footnotes'},'model':'footnotesDefinitions'}),_0x35751c['for']('upcast')['add'](_0x1e932e=>{_0x1e932e['on']('element:ol',(_0x52790b,_0x43f83d,_0x199a5e)=>{const _0x43581f=_0x43f83d['viewItem'];if(!_0x43581f['hasClass']('footnotes-list')||!_0x43f83d['modelCursor']['parent']?.['is']('element','footnotesDefinitions'))return;if(!_0x199a5e['consumable']['consume'](_0x43581f,{'name':!0x0,'classes':'footnotes-list'}))return;const {modelRange:_0x17d351,modelCursor:_0x406745}=_0x199a5e['convertChildren'](_0x43f83d['viewItem'],_0x43f83d['modelCursor']);_0x43f83d['modelRange']=_0x17d351,_0x43f83d['modelCursor']=_0x406745;}),_0x1e932e['on']('element:hr',(_0x134315,_0x1af146,_0x4a251)=>{const _0x21aef7=_0x1af146['viewItem'];_0x21aef7['hasClass']('footnotes-divider')&&_0x1af146['modelCursor']['parent']?.['is']('element','footnotesDefinitions')&&_0x4a251['consumable']['consume'](_0x21aef7,{'name':!0x0,'classes':'footnotes-divider'});});}),_0x35751c['for']('dataDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3cb908,{writer:_0x148c6a})=>q(_0x148c6a)}),_0x35751c['for']('editingDowncast')['elementToStructure']({'model':'footnotesDefinitions','view':(_0x3e62ba,{writer:_0x1b5652})=>{const _0x10c9eb=q(_0x1b5652,{'data-footnotes-list-label':t('Footnotes')}),_0x190684=_0x532e20(_0x10c9eb,_0x1b5652,{'hasSelectionHandle':!0x0,'label':t('Footnotes')});return _0x1b5652['setCustomProperty']('footnotesDefinitions',!0x0,_0x190684),_0x190684;}});}['_defineDefinitionConverters'](){const {editor:_0xd352a4}=this,{conversion:_0x3c6d86,locale:_0xfb6ecc}=_0xd352a4,_0x2adb66=_0xd352a4['config']['get']('footnotes.multiBlock');_0x3c6d86['for']('upcast')['add'](_0x70081e=>{_0x70081e['on']('element:li',(_0x37390e,_0x56ceb4,_0x1dd8ed)=>{const _0x3ba23f=_0x56ceb4['viewItem'];if(!_0x3ba23f['hasClass']('footnote-definition')||!_0x3ba23f['getAttribute']('id'))return;const _0x445997=_0x3ba23f['parent'];if(!_0x445997['is']('element','ol')||!_0x445997['hasClass']('footnotes-list'))return;if(!_0x1dd8ed['consumable']['test'](_0x3ba23f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'}))return;const _0x3ed974=_0x1dd8ed['writer']['createElement']('footnoteDefinition',{'footnoteId':_0x3ba23f['getAttribute']('id')});if(!_0x1dd8ed['safeInsert'](_0x3ed974,_0x56ceb4['modelCursor']))return;_0x1dd8ed['consumable']['consume'](_0x3ba23f,{'name':!0x0,'attributes':'id','classes':'footnote-definition'});const _0x58bf9c=Array['from'](_0x3ba23f['getChildren']())['find'](_0x880a85=>_0x880a85['is']('element')&&_0x880a85['hasClass']('footnote-content'));for(const _0x4596de of _0x3ba23f['getChildren']())_0x4596de['is']('element')&&(_0x1dd8ed['consumable']['consume'](_0x4596de,{'name':!0x0,'classes':'footnote-backlink','attributes':'href'}),_0x1dd8ed['consumable']['consume'](_0x4596de,{'name':!0x0,'classes':'footnote-content'}));if(_0x58bf9c){if(_0x2adb66)_0x1dd8ed['convertChildren'](_0x58bf9c,_0x3ed974);else{const _0x337a20=_0x1dd8ed['writer']['createElement']('footnoteInlineContent');_0x1dd8ed['writer']['insert'](_0x337a20,_0x3ed974),_0x1dd8ed['convertChildren'](_0x58bf9c,_0x337a20);}}_0x1dd8ed['updateConversionResult'](_0x3ed974,_0x56ceb4);});}),_0x3c6d86['for']('dataDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x496ea6,{writer:_0x45e244})=>z(_0x496ea6,_0x45e244,_0xfb6ecc,{'dataPipeline':!0x0})}),_0x3c6d86['for']('editingDowncast')['elementToStructure']({'model':{'name':'footnoteDefinition','attributes':['footnoteId']},'view':(_0x15386c,{writer:_0x5eb878})=>z(_0x15386c,_0x5eb878,_0xfb6ecc)});}['_defineBogusParagraphConverters'](){const {editor:_0x3b43a6}=this,{conversion:_0x23d399}=_0x3b43a6;_0x3b43a6['config']['get']('footnotes.multiBlock')?(_0x23d399['for']('editingDowncast')['elementToElement']({'model':'paragraph','view':$(),'converterPriority':'high'}),_0x23d399['for']('dataDowncast')['elementToElement']({'model':'paragraph','view':$({'dataPipeline':!0x0}),'converterPriority':'high'}),this['listenTo'](_0x3b43a6['model']['document'],'change:data',()=>{!function(_0x1d5bd8,_0x36469a){const _0x8c6379=_0x1d5bd8['document']['differ'],_0x57f714=new Set();for(const _0x35590f of _0x8c6379['getChanges']()){const _0x5a2568='attribute'==_0x35590f['type']?_0x35590f['range']['start']['parent']:_0x35590f['position']['parent'];_0x5a2568['is']('element','footnoteDefinition')&&_0x57f714['add'](_0x5a2568);}for(const _0x327039 of _0x57f714['values']()){const _0x54d2b7=Array['from'](_0x327039['getChildren']())['filter'](_0x117ff6=>M(_0x117ff6,_0x36469a['mapper']));for(const _0x548dd0 of _0x54d2b7)_0x36469a['reconvertItem'](_0x548dd0);}}(_0x3b43a6['model'],_0x3b43a6['editing']);})):(_0x23d399['for']('editingDowncast')['elementToElement']({'model':'footnoteInlineContent','view':$()}),_0x23d399['for']('dataDowncast')['elementToElement']({'model':'footnoteInlineContent','view':(_0x444eb8,{writer:_0x21c393})=>{const _0x2caab1=_0x21c393['createContainerElement']('span');return _0x21c393['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x2caab1),_0x2caab1;}}));}['_defineKeyboardHandlers'](){const {editor:_0x79a956}=this,{editing:_0x3f18cd,t:t}=_0x79a956,_0xc99db9=_0x79a956['model']['document']['selection'];_0x79a956['keystrokes']['set']('Ctrl+Alt+F','insertFootnote'),_0x79a956['accessibility']['addKeystrokeInfos']({'keystrokes':[{'label':t('Insert\x20footnote'),'keystroke':'Ctrl+Alt+F'}]}),this['listenTo'](_0x3f18cd['view']['document'],'enter',(_0xaccf3c,_0x4b8b78)=>{const _0x4f4793=function(_0x54b544){const _0x2bf357=_0x54b544['getSelectedElement']();if(_0x2bf357?.['is']('element','footnoteRef'))return _0x2bf357;return null;}(_0xc99db9);if(_0x4f4793){const _0x1446ce=_0x4f4793['getAttribute']('footnoteId');this['_moveSelectionToFootnoteDefinition'](_0x1446ce),_0x4b8b78['preventDefault'](),_0xaccf3c['stop']();}},{'context':_0xee11d4});}['_defineClickHandlers'](){const {editor:_0x1186d8}=this,{editing:_0x53bc3e}=_0x1186d8;_0x1186d8['editing']['view']['addObserver'](_0x175168),_0x1186d8['editing']['view']['addObserver'](_0xc2eeb2);let _0x30dc3f=!0x1;this['listenTo'](_0x53bc3e['view']['document'],'pointerdown',(_0x1d0041,_0x4a0f06)=>{const {target:_0x44cebf}=_0x4a0f06,_0x28e579=_0x53bc3e['view']['document']['selection'];_0x30dc3f=!!(_0x44cebf?.['is']('element','a')&&_0x44cebf['parent']?.['is']('element','sup')&&_0x44cebf['parent']['hasClass']('footnote'))&&_0x28e579['getSelectedElement']()===_0x44cebf['parent'];},{'priority':'high'}),this['listenTo'](_0x53bc3e['view']['document'],'click',(_0x5c50a8,_0x444dee)=>{const {target:_0x45d565}=_0x444dee;if(!_0x45d565?.['is']('element','a'))return;if(_0x45d565['parent']?.['is']('element','sup')&&_0x45d565['parent']['hasClass']('footnote')&&!_0x30dc3f)return void _0x444dee['preventDefault']();let _0x38a305=_0x45d565['getAttribute']('href');if(!_0x38a305?.['startsWith']('#'))return;_0x38a305=_0x38a305['slice'](0x1);let _0x1184bf=!0x1;(_0x38a305['startsWith']('ref-')&&this['_moveSelectionToFootnoteReference'](_0x38a305['slice'](0x4))||this['_moveSelectionToFootnoteDefinition'](_0x38a305))&&(_0x1184bf=!0x0),_0x1184bf&&(_0x444dee['preventDefault'](),_0x5c50a8['stop']());},{'priority':'high','context':'$capture'});}}function $({dataPipeline:_0x19078e}={}){return(_0x5476bf,{writer:_0x5c007a})=>{if(!B(_0x5476bf))return null;if(!_0x19078e)return _0x5c007a['createContainerElement']('span',{'class':'ck-footnote-bogus-paragraph'});const _0x3a3f86=_0x5c007a['createContainerElement']('p');return _0x5c007a['setCustomProperty']('dataPipeline:transparentRendering',!0x0,_0x3a3f86),_0x3a3f86;};}function B(_0x347bd4){const {parent:_0x58b39e}=_0x347bd4;if(!_0x58b39e?.['is']('element','footnoteDefinition'))return!0x1;if(0x1!=_0x58b39e['childCount'])return!0x1;for(const _0x174d64 of _0x347bd4['getAttributeKeys']())if(!_0x174d64['startsWith']('selection:')&&'htmlEmptyBlock'!=_0x174d64)return!0x1;return!0x0;}function M(_0x5836c8,_0x43efac){if(!_0x5836c8['is']('element','paragraph'))return!0x1;const _0x2b3368=_0x43efac['toViewElement'](_0x5836c8);return!!_0x2b3368&&B(_0x5836c8)!==_0x2b3368['is']('element','span');}function U(_0x2da30c){return _0xee11d4(_0x2da30c)&&_0x2da30c['is']('containerElement')&&!!_0x2da30c['getCustomProperty']('footnotesDefinitions');}function q(_0x625245,_0x409182={}){const _0x24a6bf=_0x625245['createEmptyElement']('hr',{'class':'footnotes-divider'}),_0xc7b19=_0x625245['createContainerElement']('ol',{'class':'footnotes-list'},_0x625245['createSlot']());return _0x625245['createContainerElement']('div',{'class':'footnotes',..._0x409182},[_0x24a6bf,_0xc7b19]);}function H(_0x398d39,_0x41af5c){const _0x4f9075=_0x398d39['getAttribute']('footnoteId'),_0x4822a5=_0x398d39['getAttribute']('footnoteCounter'),_0x15817a=_0x41af5c['createUIElement']('a',{'href':'#'+_0x4f9075},function(_0x1bfd98){const _0x424a17=this['toDomElement'](_0x1bfd98);return _0x424a17['textContent']=_0x4822a5,_0x424a17;}),_0x183460=_0x41af5c['createContainerElement']('sup',{'id':'ref-'+_0x4f9075,'class':'footnote'},[_0x15817a]);return _0x183460['getFillerOffset']=()=>null,_0x183460;}function z(_0x3a4a8b,_0x7af65a,_0x1015da,{dataPipeline:_0x51bb0a}={}){const {t:t}=_0x1015da,_0x251720=_0x3a4a8b['getAttribute']('footnoteId'),_0x179117=_0x7af65a['createUIElement']('a',{'class':'footnote-backlink','href':'#ref-'+_0x251720},function(_0x32efc1){const _0x5c4248=this['toDomElement'](_0x32efc1);return _0x5c4248['innerText']='^',_0x5c4248;}),_0x577653=_0x51bb0a?_0x7af65a['createContainerElement']('div',{'class':'footnote-content'}):_0x966645(_0x7af65a['createEditableElement']('div',{'class':'footnote-content'}),_0x7af65a,{'label':t('Footnote\x20content.')});return _0x7af65a['insert'](_0x7af65a['createPositionAt'](_0x577653,0x0),_0x7af65a['createSlot']()),_0x7af65a['createContainerElement']('li',{'class':'footnote-definition','id':_0x251720},[_0x179117,_0x577653]);}class X extends _0x6ec3d0{static get['pluginName'](){return'FootnotesClipboard';}static get['requires'](){return[V,_0x15128e];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){this['_defineClipboardIntegration']();}['_defineClipboardIntegration'](){this['_handleCopyFootnotesDefinitions'](),this['_handlePasteFootnotesDefinitions']();}['_handleCopyFootnotesDefinitions'](){const {editor:_0x405b25}=this,{plugins:_0x54987f,model:_0x2eb2a1}=_0x405b25,_0x57bc5f=_0x54987f['get'](_0x15128e),_0x9f5fd9=_0x54987f['get'](N);this['listenTo'](_0x57bc5f,'outputTransformation',(_0x2982c8,_0x25c2e7)=>{const _0x43d674=G(_0x2eb2a1['createRangeIn'](_0x25c2e7['content']));if(!_0x43d674['length'])return;const _0x2e66a0=_0x9f5fd9['getFootnotes'](),_0x18f31e=_0x43d674['reduce']((_0x211794,_0x4e7220)=>{const _0x35489f=_0x2e66a0['find'](_0x901f05=>_0x901f05['id']===_0x4e7220);if(_0x35489f){const _0x39e793=_0x405b25['data']['toView'](_0x35489f['definition'],{'isClipboardPipeline':!0x0}),_0x2ce0bb=_0x405b25['data']['htmlProcessor']['toData'](_0x39e793);_0x211794[_0x35489f['id']]=_0x2ce0bb;}return _0x211794;},Object['create'](null));_0x25c2e7['dataTransfer']['setData']('application/ckeditor5-footnotes',JSON['stringify'](_0x18f31e));});}['_handlePasteFootnotesDefinitions'](){const {editor:_0x4053ba}=this,{model:_0x4049b8,plugins:_0x4657bb}=_0x4053ba,{view:_0x1160e8}=_0x4053ba['editing'],_0x26d4d3=_0x4657bb['get'](_0x15128e),_0x5dc437=_0x4657bb['get'](N),_0x2a1c65=_0x4053ba['config']['get']('footnotes.multiBlock');let _0x47da77=null;this['listenTo'](_0x1160e8['document'],'clipboardInput',(_0x58d507,_0x594c5a)=>{const _0x16e057=_0x594c5a['dataTransfer']['getData']('application/ckeditor5-footnotes');_0x47da77=_0x16e057?JSON['parse'](_0x16e057):null;}),this['listenTo'](_0x26d4d3,'contentInsertion',(_0xd18ee,_0x54455d)=>{const _0x5385e2=_0x54455d['sourceEditorId']===this['editor']['id'];_0x5385e2&&'drop'===_0x54455d['method']||_0x4049b8['change'](_0x52fcf6=>{let _0x27420b=_0x5dc437['getFootnotesDefinitionsObjectElement']();const _0x9c10a2=!!_0x27420b&&Array['from'](_0x4049b8['document']['selection']['getSelectedBlocks']())['includes'](_0x27420b);if(!_0x47da77&&function(_0x2ebb6c){for(const {item:_0x3e9507}of _0x2ebb6c)if(_0x3e9507['is']('element','footnoteRef'))return!0x0;return!0x1;}(_0x4049b8['createRangeIn'](_0x54455d['content']))&&(_0x47da77=function(_0x1abbec,_0x1b3ded){const _0x424660=J(_0x1abbec,_0x1b3ded);if(!_0x424660)return null;const _0x2ed4c6=Object['create'](null);for(const _0x15ef45 of _0x424660['getChildren']())_0x15ef45['is']('element','footnoteDefinition')&&_0x15ef45['hasAttribute']('footnoteId')&&(_0x2ed4c6[_0x15ef45['getAttribute']('footnoteId')]=_0x1abbec['cloneElement'](_0x15ef45,!0x0));return Object['keys'](_0x2ed4c6)['length']?_0x2ed4c6:null;}(_0x52fcf6,_0x54455d['content'])),(_0x27420b&&!_0x9c10a2||!_0x27420b&&!_0x47da77)&&function(_0x29929d,_0x24516c){const _0x4e7956=[];for(const {item:_0x7d7f45}of _0x29929d['createRangeIn'](_0x24516c))_0x7d7f45['is']('element','footnotesDefinitions')&&_0x4e7956['push'](_0x7d7f45);for(const _0x1cd6a3 of _0x4e7956)_0x29929d['remove'](_0x1cd6a3);}(_0x52fcf6,_0x54455d['content']),!_0x47da77)return;const {selection:_0x48a4c0}=_0x4049b8['document'],_0x5e5796=_0x48a4c0['getFirstRange']()['root'];_0x27420b&&!_0x9c10a2||(_0x27420b=J(_0x52fcf6,_0x54455d['content']),_0x27420b||=_0x5dc437['_insertEmptyFootnotesDefinitionsContainer'](_0x52fcf6,_0x5e5796));const _0x216c8f=Array['from'](_0x48a4c0['getRanges']())['flatMap'](G),_0x2b47fc=function(_0x319a35,_0x895ab9,_0xe6aa81){const _0x1c9169=Object['create'](null);for(const {item:_0xfd1c34}of _0x319a35['createRangeIn'](_0x895ab9))if(_0xfd1c34['is']('element','footnoteRef')){const _0x2a6f71=_0xfd1c34['getAttribute']('footnoteId');if(!_0xe6aa81(_0x2a6f71))continue;_0x1c9169[_0x2a6f71]||(_0x1c9169[_0x2a6f71]=_0x27d014()),_0x319a35['setAttribute']('footnoteId',_0x1c9169[_0x2a6f71],_0xfd1c34);}return _0x1c9169;}(_0x52fcf6,_0x54455d['content'],_0x196740=>{if(!_0x5385e2)return!0x0;return!!_0x5dc437['getFootnote'](_0x196740)&&!_0x216c8f['includes'](_0x196740);});for(const [_0x1d3d7f,_0x5788e1]of Object['entries'](_0x47da77)){const _0x34a533=_0x2b47fc[_0x1d3d7f]||_0x1d3d7f;let _0x4d6cf9;if('string'!=typeof _0x5788e1)_0x4d6cf9=_0x5788e1,_0x34a533!==_0x1d3d7f&&_0x52fcf6['setAttribute']('footnoteId',_0x34a533,_0x4d6cf9);else{_0x4d6cf9=_0x52fcf6['createElement']('footnoteDefinition',{'footnoteId':_0x34a533});const _0x51cc1a=_0x4053ba['data']['htmlProcessor']['toView'](_0x5788e1);let _0x5ac9a2;if(_0x2a1c65)_0x5ac9a2=_0x4053ba['data']['toModel'](_0x51cc1a,_0x4d6cf9);else{_0x5ac9a2=_0x52fcf6['createElement']('footnoteInlineContent');const _0x47996f=_0x4053ba['data']['toModel'](_0x51cc1a,_0x5ac9a2);_0x52fcf6['insert'](_0x47996f,_0x5ac9a2);}_0x52fcf6['append'](_0x5ac9a2,_0x4d6cf9);}_0x52fcf6['insert'](_0x4d6cf9,_0x27420b,'end');}_0x47da77=null;});});}}function J(_0x12652e,_0x11cead){for(const {item:_0x3b3b32}of _0x12652e['createRangeIn'](_0x11cead))if(_0x3b3b32['is']('element','footnotesDefinitions'))return _0x3b3b32;return null;}function G(_0x5e1ab6){const _0x33498e=new Set();for(const {item:_0x13fd83}of _0x5e1ab6)_0x13fd83['is']('element','footnoteRef')&&_0x33498e['add'](_0x13fd83['getAttribute']('footnoteId'));return Array['from'](_0x33498e);}class Q extends _0x6ec3d0{['licenseKey'];['_licenseKeyCheckInterval'];static get['pluginName'](){return'FootnotesUI';}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x56ebfc}=this,{componentFactory:_0x37f8df}=_0x56ebfc['ui'];_0x37f8df['add']('insertFootnote',W(_0x56ebfc,_0x2399ae)),_0x37f8df['add']('menuBar:insertFootnote',W(_0x56ebfc,_0x57e232)),this['licenseKey']=this['editor']['config']['get']('licenseKey');const _0x5ab83c=this['editor'];this['_licenseKeyCheckInterval']=setInterval(()=>{let _0x4833a8;for(const _0x152b52 in _0x5ab83c){const _0x5703ea=_0x152b52,_0xfbcbdd=_0x5ab83c[_0x5703ea];if('footnotesLicenseKeyValid'==_0xfbcbdd||'footnotesLicenseKeyInvalid'==_0xfbcbdd||'footnotesLicenseKeyExpired'==_0xfbcbdd||'footnotesLicenseKeyDomainLimit'==_0xfbcbdd||'footnotesLicenseKeyNotAllowed'==_0xfbcbdd||'footnotesLicenseKeyEvaluationLimit'==_0xfbcbdd||'footnotesLicenseKeyUsageLimit'==_0xfbcbdd){delete _0x5ab83c[_0x5703ea],_0x4833a8=_0xfbcbdd,clearInterval(this['_licenseKeyCheckInterval']),this['_licenseKeyCheckInterval']=void 0x0;break;}}'footnotesLicenseKeyInvalid'==_0x4833a8&&_0x5ab83c['_showLicenseError']('invalid'),'footnotesLicenseKeyExpired'==_0x4833a8&&_0x5ab83c['_showLicenseError']('expired'),'footnotesLicenseKeyDomainLimit'==_0x4833a8&&_0x5ab83c['_showLicenseError']('domainLimit'),'footnotesLicenseKeyNotAllowed'==_0x4833a8&&_0x5ab83c['_showLicenseError']('featureNotAllowed','Footnotes'),'footnotesLicenseKeyEvaluationLimit'==_0x4833a8&&_0x5ab83c['_showLicenseError']('evaluationLimit'),'footnotesLicenseKeyUsageLimit'==_0x4833a8&&_0x5ab83c['_showLicenseError']('usageLimit');},0x3e8);}['destroy'](){super['destroy'](),this['_licenseKeyCheckInterval']&&clearInterval(this['_licenseKeyCheckInterval']);}}function W(_0x455826,_0x37c04d){const _0xae4bb7=_0x455826['commands']['get']('insertFootnote');return _0x62f3a3=>{const {t:t}=_0x62f3a3,_0x16c28a=new _0x37c04d(_0x62f3a3),_0x3cc5fa=_0x16c28a instanceof _0x57e232;return _0x16c28a['bind']('isEnabled')['to'](_0xae4bb7,'isEnabled'),_0x16c28a['set']({'label':t(_0x3cc5fa?'Footnote':'Insert\x20footnote'),'icon':_0x516d0c,'tooltip':!0x0}),_0x16c28a['on']('execute',()=>{_0xae4bb7['execute'](),_0x455826['editing']['view']['focus']();}),_0x16c28a;};}class Y extends _0x6ec3d0{static get['pluginName'](){return'Footnotes';}static get['requires'](){return[V,X,Q];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}const Z=['decimal','decimal-leading-zero','lower-latin','upper-latin','lower-alpha','upper-alpha','lower-roman','upper-roman'];class tt extends _0x333d63{['refresh'](){const {editor:_0x15dc41}=this,_0x37000d=_0x15dc41['plugins']['get'](N)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x37000d,this['value']=_0x37000d?.['getAttribute']('footnotesListStyle')??null;}['execute']({value:_0x4d105a}){const {editor:_0x458d0e}=this,_0x5cfbf9=_0x458d0e['plugins']['get'](N),_0x4af119=_0x5cfbf9['getFootnotesDefinitionsObjectElement']();_0x4af119&&Z['includes'](_0x4d105a)&&_0x458d0e['model']['change'](_0x21ab7c=>{_0x21ab7c['setAttribute']('footnotesListStyle',_0x4d105a,_0x4af119),_0x5cfbf9['_updateFootnotesCounters'](_0x21ab7c);});}}class et extends _0x333d63{['refresh'](){const {editor:_0x2200aa}=this,_0x3d2bd8=_0x2200aa['plugins']['get'](N)['getFootnotesDefinitionsObjectElement']();this['isEnabled']=!!_0x3d2bd8,this['value']=_0x3d2bd8?.['getAttribute']('footnotesListStart')??null;}['execute']({value:_0x4530e8}){const {editor:_0x25fddb}=this,_0x39be56=_0x25fddb['plugins']['get'](N),_0x191ef5=_0x39be56['getFootnotesDefinitionsObjectElement']();_0x191ef5&&Number['isInteger'](_0x4530e8)&&_0x25fddb['model']['change'](_0x2d1ee2=>{_0x2d1ee2['setAttribute']('footnotesListStart',_0x4530e8,_0x191ef5),_0x39be56['_updateFootnotesCounters'](_0x2d1ee2);});}}class ot extends _0x6ec3d0{static get['pluginName'](){return'FootnotesPropertiesEditing';}static get['requires'](){return[V,N];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x58bd2c}=this;_0x58bd2c['config']['define']('footnotes.footnotesProperties.defaultListStyle','decimal'),_0x58bd2c['config']['define']('footnotes.footnotesProperties.defaultStartIndex',0x1),_0x58bd2c['commands']['add']('footnotesStyle',new tt(_0x58bd2c)),_0x58bd2c['commands']['add']('footnotesStart',new et(_0x58bd2c)),this['_defineSchema'](),this['_defineConverters'](),this['_defineFormatter'](),this['_definePostfixer']();}['_defineSchema'](){const {editor:_0x3dcace}=this,{schema:_0x5c3ac9}=_0x3dcace['model'];_0x5c3ac9['extend']('footnotesDefinitions',{'allowAttributes':['footnotesListStyle','footnotesListStart']});}['_defineConverters'](){const {editor:_0x33293b}=this,{conversion:_0x345442,model:_0x5211e4}=_0x33293b,{schema:_0x382cd2}=_0x5211e4;_0x345442['for']('upcast')['add'](_0x228b42=>{_0x228b42['on']('element:ol',(_0x21e145,_0x2132d9,_0x5f2e24)=>{const _0x2302ca=_0x2132d9['viewItem'],_0x31c92a=_0x2132d9['modelCursor']?.['parent'];_0x2302ca['hasClass']('footnotes-list')&&_0x31c92a?.['is']('element','footnotesDefinitions')&&(function(_0x3c1807,_0x5d51f9,_0x1bd78e,_0xd98b88){if(!_0xd98b88['checkAttribute'](_0x5d51f9,'footnotesListStart'))return;let _0x5ada8d=0x1;const _0x3d33d0=_0x1bd78e['consumable']['consume'](_0x3c1807,{'attributes':'start'});if(_0x3d33d0){const _0x49aeab=Number['parseInt'](_0x3c1807['getAttribute']('start'),0xa);Number['isNaN'](_0x49aeab)||(_0x5ada8d=_0x49aeab);}!_0x3d33d0&&_0x5d51f9['hasAttribute']('footnotesListStart')||_0x1bd78e['writer']['setAttribute']('footnotesListStart',_0x5ada8d,_0x5d51f9);}(_0x2302ca,_0x31c92a,_0x5f2e24,_0x382cd2),function(_0x247b13,_0x5045a2,_0x4f0248,_0x1b5fa5){if(!_0x1b5fa5['checkAttribute'](_0x5045a2,'footnotesListStyle'))return;let _0x5dfaf2='decimal',_0x4d42c1=!0x1;if(_0x4f0248['consumable']['consume'](_0x247b13,{'attributes':'type'})){const _0x2021cc={0x1:'decimal','a':'lower-alpha','A':'upper-alpha','i':'lower-roman','I':'upper-roman'}[_0x247b13['getAttribute']('type')];_0x2021cc&&(_0x5dfaf2=_0x2021cc),_0x4d42c1=!0x0;}_0x4f0248['consumable']['consume'](_0x247b13,{'styles':'list-style-type'})&&(_0x5dfaf2=function(_0x277ce6){switch(_0x277ce6){case'lower-alpha':return'lower-latin';case'upper-alpha':return'upper-latin';default:return _0x277ce6;}}(_0x247b13['getStyle']('list-style-type')),_0x4d42c1=!0x0),!_0x4d42c1&&_0x5045a2['hasAttribute']('footnotesListStyle')||_0x4f0248['writer']['setAttribute']('footnotesListStyle',_0x5dfaf2,_0x5045a2);}(_0x2302ca,_0x31c92a,_0x5f2e24,_0x382cd2));});}),_0x345442['for']('downcast')['add'](_0x36c74b=>{_0x36c74b['on']('attribute:footnotesListStart:footnotesDefinitions',(_0xcc62d7,_0x57840c,_0xcb1d44)=>{if(!_0xcb1d44['consumable']['consume'](_0x57840c['item'],_0xcc62d7['name']))return;const _0x1495f6=nt(_0x57840c['item'],_0xcb1d44['mapper']),{attributeNewValue:_0x4d4ff4}=_0x57840c;null==_0x4d4ff4||0x1===_0x4d4ff4?_0xcb1d44['writer']['removeAttribute']('start',_0x1495f6):_0xcb1d44['writer']['setAttribute']('start',String(_0x4d4ff4),_0x1495f6);}),_0x36c74b['on']('attribute:footnotesListStyle:footnotesDefinitions',(_0x11cc14,_0x9dbec,_0xff9e55)=>{if(!_0xff9e55['consumable']['consume'](_0x9dbec['item'],_0x11cc14['name']))return;const _0x38bf45=nt(_0x9dbec['item'],_0xff9e55['mapper']),{attributeNewValue:_0x586230}=_0x9dbec;_0x586230&&'decimal'!==_0x586230?_0xff9e55['writer']['setStyle']('list-style-type',_0x586230,_0x38bf45):_0xff9e55['writer']['removeStyle']('list-style-type',_0x38bf45);});});}['_definePostfixer'](){const {editor:_0x3cb7e7}=this,{model:_0x595c41}=_0x3cb7e7,_0x360ec3=_0x3cb7e7['plugins']['get'](N),_0x5c5631=this['_getDefaultListStyle'](),_0x181bcc=this['_getDefaultStartIndex']();_0x595c41['document']['registerPostFixer'](_0x553a39=>{const _0x2dbd5a=_0x595c41['document']['differ']['getChanges']();let _0x20c863=!0x1;for(const _0xe246b0 of _0x2dbd5a){if('insert'!==_0xe246b0['type']||'$text'===_0xe246b0['name'])continue;const _0x4464fe=_0x595c41['createRangeOn'](_0xe246b0['position']['nodeAfter']);for(const _0x3b481e of _0x4464fe['getItems']())_0x3b481e['is']('element','footnotesDefinitions')&&(!_0x3b481e['hasAttribute']('footnotesListStart')&&_0x595c41['schema']['checkAttribute'](_0x3b481e,'footnotesListStart')&&(_0x553a39['setAttribute']('footnotesListStart',_0x181bcc,_0x3b481e),_0x20c863=!0x0),!_0x3b481e['hasAttribute']('footnotesListStyle')&&_0x595c41['schema']['checkAttribute'](_0x3b481e,'footnotesListStyle')&&(_0x553a39['setAttribute']('footnotesListStyle',_0x5c5631,_0x3b481e),_0x20c863=!0x0));}return _0x20c863&&_0x360ec3['_updateFootnotesCounters'](_0x553a39),_0x20c863;});}['_defineFormatter'](){const {editor:_0xc9116b}=this;_0xc9116b['plugins']['get'](N)['setFootnoteFormatter'](_0x50ae37=>this['_formatFootnoteListValue'](_0x50ae37));}['_getDefaultListStyle'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultListStyle');}['_getDefaultStartIndex'](){return this['editor']['config']['get']('footnotes.footnotesProperties.defaultStartIndex');}['_formatFootnoteListValue']({container:_0x2366c9,value:_0x3ac0ed,digits:_0x1296c6}){const _0x4f33cd=_0x2366c9['getAttribute']('footnotesListStyle'),_0x3b7886=_0x2366c9['getAttribute']('footnotesListStart'),_0x334375=Math['floor'](_0x3ac0ed)+(_0x3b7886??0x1)-0x1;switch(_0x4f33cd){case'decimal-leading-zero':return function(_0x4acf79,_0x44f67e){return String(_0x4acf79)['padStart'](_0x44f67e,'0');}(_0x334375,Math['max'](0x2,_0x1296c6));case'lower-alpha':case'lower-latin':return it(_0x334375,!0x1);case'upper-alpha':case'upper-latin':return it(_0x334375,!0x0);case'lower-roman':return rt(_0x334375,!0x1);case'upper-roman':return rt(_0x334375,!0x0);default:return String(_0x334375);}}}function nt(_0x4b5c15,_0x56578b){const _0x51240f=_0x56578b['toViewElement'](_0x4b5c15);return Array['from'](_0x51240f['getChildren']())['find'](_0x25a710=>_0x25a710['is']('element','ol')&&_0x25a710['hasClass']('footnotes-list'));}function it(_0x3c4a9c,_0xe00b3f){let _0x41a520='',_0x30985d=_0x3c4a9c;for(;_0x30985d>0x0;){const _0x1e48d6=(_0x30985d-0x1)%0x1a;_0x41a520=String['fromCharCode'](0x61+_0x1e48d6)+_0x41a520,_0x30985d=Math['floor']((_0x30985d-0x1)/0x1a);}return _0xe00b3f?_0x41a520['toUpperCase']():_0x41a520;}const st=[{'value':0x3e8,'numeral':'M'},{'value':0x384,'numeral':'CM'},{'value':0x1f4,'numeral':'D'},{'value':0x190,'numeral':'CD'},{'value':0x64,'numeral':'C'},{'value':0x5a,'numeral':'XC'},{'value':0x32,'numeral':'L'},{'value':0x28,'numeral':'XL'},{'value':0xa,'numeral':'X'},{'value':0x9,'numeral':'IX'},{'value':0x5,'numeral':'V'},{'value':0x4,'numeral':'IV'},{'value':0x1,'numeral':'I'}];function rt(_0x1a2320,_0x240fa1){let _0x526afc='',_0x34957b=_0x1a2320;for(const {value:_0x26c691,numeral:_0x2f3354}of st)for(;_0x34957b>=_0x26c691;)_0x526afc+=_0x2f3354,_0x34957b-=_0x26c691;return _0x240fa1?_0x526afc:_0x526afc['toLowerCase']();}class lt extends _0x2957dc{['children'];['stylesView']=null;['additionalProperties']=null;['startIndexFieldView']=null;['focusTracker']=new _0x4dff86();['keystrokes']=new _0x5192cd();['focusables']=new _0x37f686();['focusCycler'];constructor(_0x2592c4,{styleButtonViews:_0x225ea8,styleGridAriaLabel:_0x514054}){super(_0x2592c4),(this['focusCycler']=new _0x46301b({'focusables':this['focusables'],'focusTracker':this['focusTracker'],'keystrokeHandler':this['keystrokes'],'actions':{'focusPrevious':'shift\x20+\x20tab','focusNext':'tab'}}),this['children']=this['createCollection'](),this['stylesView']=this['_appendStylesView'](_0x225ea8,_0x514054),[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 _0x1c344c of this['stylesView']['children'])this['stylesView']['focusTracker']['add'](_0x1c344c['element']);_0x2e4918({'keystrokeHandler':this['stylesView']['keystrokes'],'focusTracker':this['stylesView']['focusTracker'],'gridItems':this['stylesView']['children'],'numberOfColumns':()=>_0x152450['window']['getComputedStyle'](this['stylesView']['element'])['getPropertyValue']('grid-template-columns')['split']('\x20')['length'],'uiLanguageDirection':this['locale']&&this['locale']['uiLanguageDirection']});}if(this['startIndexFieldView']){this['focusables']['add'](this['startIndexFieldView']),this['focusTracker']['add'](this['startIndexFieldView']['element']);const _0x1b7ed5=_0x374c3e=>_0x374c3e['stopPropagation']();this['keystrokes']['set']('arrowright',_0x1b7ed5),this['keystrokes']['set']('arrowleft',_0x1b7ed5),this['keystrokes']['set']('arrowup',_0x1b7ed5),this['keystrokes']['set']('arrowdown',_0x1b7ed5);}this['keystrokes']['listenTo'](this['element']);}['focus'](){this['focusCycler']['focusFirst']();}['focusLast'](){this['focusCycler']['focusLast']();}['destroy'](){super['destroy'](),this['focusTracker']['destroy'](),this['keystrokes']['destroy']();}['_appendStylesView'](_0x3eeb25,_0x1e35da){const _0xe102c6=new _0x2957dc(this['locale']);return _0xe102c6['children']=_0xe102c6['createCollection'](),_0xe102c6['children']['addMany'](_0x3eeb25),_0xe102c6['setTemplate']({'tag':'div','attributes':{'aria-label':_0x1e35da,'class':['ck','ck-footnotes-definitions-styles-list']},'children':_0xe102c6['children']}),_0xe102c6['children']['delegate']('execute')['to'](this),_0xe102c6['focus']=function(){for(const _0x17c10e of this['children'])if(_0x17c10e instanceof _0x2399ae&&_0x17c10e['isOn'])return void _0x17c10e['focus']();this['children']['first']['focus']();},_0xe102c6['focusTracker']=new _0x4dff86(),_0xe102c6['keystrokes']=new _0x5192cd(),_0xe102c6['render'](),_0xe102c6['keystrokes']['listenTo'](_0xe102c6['element']),this['children']['add'](_0xe102c6),_0xe102c6;}['_appendAdditionalPropertiesCollapsibleView'](){const {t:t}=this['locale'],_0x484b8d=this['_createStartIndexPropertyView'](),_0x1483ad=[_0x484b8d],_0x568832=new _0x1a9851(this['locale'],_0x1483ad);return _0x568832['set']({'label':t('Footnotes\x20properties'),'isCollapsed':!0x0}),_0x568832['buttonView']['bind']('isEnabled')['toMany'](_0x1483ad,'isEnabled',(..._0x4cb525)=>_0x4cb525['some'](_0x70d770=>_0x70d770)),_0x568832['buttonView']['on']('change:isEnabled',(_0x25b962,_0x219e80,_0x582945)=>{_0x582945||(_0x568832['isCollapsed']=!0x0);}),this['children']['add'](_0x568832),[_0x484b8d,_0x568832];}['_createStartIndexPropertyView'](){const {t:t}=this['locale'],_0x154c15=new _0x1fd24c(this['locale'],_0x5e8500);return _0x154c15['set']({'label':t('Footnotes\x20start\x20at'),'class':'ck-footnotes-definitions-properties__start-index'}),_0x154c15['fieldView']['set']({'min':0x0,'max':Math['pow'](0x2,0x1e),'step':0x1,'value':0x1,'inputMode':'numeric'}),_0x154c15['fieldView']['on']('input',()=>{const _0x3ca350=_0x154c15['fieldView']['element'],_0x308193=_0x3ca350['valueAsNumber'];Number['isNaN'](_0x308193)?_0x154c15['errorText']=t('Invalid\x20footnotes\x20start\x20index\x20value.'):_0x3ca350['checkValidity']()?this['fire']('footnotesListStart',{'startIndex':_0x308193}):_0x154c15['errorText']=t(_0x308193<0x0?'Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'Footnotes\x20start\x20index\x20is\x20too\x20large.');}),_0x154c15;}}class ft extends _0x6ec3d0{static get['pluginName'](){return'FootnotesPropertiesUI';}static get['requires'](){return[_0x33b1fd,_0x491f9c];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}['init'](){const {editor:_0x50c495}=this,{componentFactory:_0x322a49}=_0x50c495['ui'];_0x50c495['config']['define']('footnotes.footnotesProperties.toolbar',['footnotesStyle']),_0x322a49['add']('footnotesStyle',function(_0x1922ca){return _0x13ad26=>{const {t:t}=_0x13ad26,_0x42e466=_0x1922ca['commands']['get']('footnotesStyle'),_0xb9eec1=_0x4494d6(_0x13ad26),{buttonView:_0x3ed86f}=_0xb9eec1;return _0xb9eec1['class']='ck-footnotes-styles-dropdown',_0xb9eec1['bind']('isEnabled')['to'](_0x42e466,'isEnabled'),_0x3ed86f['set']({'label':t('Footnotes\x20style'),'icon':_0x516d0c,'tooltip':!0x0}),_0xb9eec1['once']('change:isOpen',()=>{const _0x338c4c=function({editor:_0x415d4d,dropdownView:_0x28de18}){const {t:t}=_0x415d4d['locale'],_0x592632=t('Footnotes\x20definitions\x20styles'),_0x2c4789=function(_0x869557){const t=_0x869557['locale']['t'],_0x1e5353=[{'label':t('Toggle\x20the\x20decimal\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes'),'style':'decimal','icon':_0x213009},{'label':t('Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style'),'tooltip':t('Decimal\x20footnotes\x20with\x20leading\x20zero'),'style':'decimal-leading-zero','icon':_0x4a805b},{'label':t('Toggle\x20the\x20lower–roman\x20footnotes\x20style'),'tooltip':t('Lower–roman\x20footnotes'),'style':'lower-roman','icon':_0x4dd842},{'label':t('Toggle\x20the\x20upper–roman\x20footnotes\x20style'),'tooltip':t('Upper-roman\x20footnotes'),'style':'upper-roman','icon':_0x4c78a1},{'label':t('Toggle\x20the\x20lower–latin\x20footnotes\x20style'),'tooltip':t('Lower-latin\x20footnotes'),'style':'lower-latin','icon':_0x2adf34},{'label':t('Toggle\x20the\x20upper–latin\x20footnotes\x20style'),'tooltip':t('Upper-latin\x20footnotes'),'style':'upper-latin','icon':_0xabb660}];return _0x1e5353['map'](function(_0xbcf6b9){const _0x5d6c5c=_0xbcf6b9['locale'];return({label:_0x3f3a0d,icon:_0x589473,tooltip:_0x5287c1,style:_0xb8006e})=>{const _0x51d1b2=_0xbcf6b9['commands']['get']('footnotesStyle'),_0x903556=new _0x2399ae(_0x5d6c5c);return _0x903556['set']({'label':_0x3f3a0d,'icon':_0x589473,'tooltip':_0x5287c1}),_0x903556['bind']('isOn')['to'](_0x51d1b2,'value',_0x2f6c90=>_0x2f6c90===_0xb8006e),_0x903556['bind']('isEnabled')['to'](_0x51d1b2,'isEnabled'),_0x903556['on']('execute',()=>{_0xbcf6b9['execute']('footnotesStyle',{'value':_0xb8006e}),_0xbcf6b9['editing']['view']['focus']();}),_0x903556;};}(_0x869557));}(_0x415d4d),_0x1dda5a=new lt(_0x415d4d['locale'],{'styleGridAriaLabel':_0x592632,'styleButtonViews':_0x2c4789}),_0x36f396=_0x415d4d['commands']['get']('footnotesStart');return _0x1dda5a['startIndexFieldView']['bind']('isEnabled')['to'](_0x36f396),_0x1dda5a['startIndexFieldView']['fieldView']['bind']('value')['to'](_0x36f396),_0x1dda5a['on']('footnotesListStart',(_0x449dff,_0x396480)=>{_0x415d4d['execute']('footnotesStart',{'value':_0x396480['startIndex']});}),_0x1dda5a['delegate']('execute')['to'](_0x28de18),_0x1dda5a;}({'editor':_0x1922ca,'dropdownView':_0xb9eec1});_0xb9eec1['panelView']['children']['add'](_0x338c4c);}),_0xb9eec1;};}(_0x50c495));}['afterInit'](){const {editor:_0x5e6274}=this,{t:t}=_0x5e6274['locale'],_0x2a28e8=_0x5e6274['plugins']['get'](_0x491f9c),{defaultPositions:_0x32a778}=_0x3e67a4;_0x2a28e8['register']('footnotesDefinitions',{'ariaLabel':t('Footnotes\x20definitions\x20toolbar'),'items':_0x5e6274['config']['get']('footnotes.footnotesProperties.toolbar'),'balloonClassName':'ck-footnotes-style-balloon\x20ck-toolbar-container','getRelatedElement':_0x54b389=>{let _0x308f04=_0x54b389['getFirstPosition']()?.['parent'];return _0x308f04?.['is']('$text')&&(_0x308f04=_0x308f04['parent']),_0x308f04?.['is']('element')?_0x308f04['findAncestor'](U):null;},'positions':[_0x32a778['southArrowNorth'],_0x32a778['southArrowNorthMiddleWest'],_0x32a778['southArrowNorthMiddleEast'],_0x32a778['southArrowNorthWest'],_0x32a778['southArrowNorthEast'],_0x32a778['northArrowSouth'],_0x32a778['northArrowSouthMiddleWest'],_0x32a778['northArrowSouthMiddleEast'],_0x32a778['northArrowSouthWest'],_0x32a778['northArrowSouthEast'],_0x32a778['viewportStickyNorth']]});}}class at extends _0x6ec3d0{static get['pluginName'](){return'FootnotesProperties';}static get['requires'](){return[ot,ft];}static get['isOfficialPlugin'](){return!0x0;}static get['isPremiumPlugin'](){return!0x0;}}export{Y as Footnotes,X as FootnotesClipboard,V as FootnotesEditing,at as FootnotesProperties,ot as FootnotesPropertiesEditing,ft as FootnotesPropertiesUI,et as FootnotesStartCommand,tt as FootnotesStyleCommand,N as FootnotesTracker,Q as FootnotesUI,T as InsertFootnoteCommand};
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
/**
|
|
6
6
|
* @module footnotes/modelelementtracker
|
|
7
7
|
*/
|
|
8
|
-
import type { ModelElement, Model, DifferItem } from 'ckeditor5
|
|
8
|
+
import type { ModelElement, Model, DifferItem } from '@ckeditor/ckeditor5-engine';
|
|
9
9
|
/**
|
|
10
10
|
* Tracks changes of specific elements in document changes.
|
|
11
11
|
*/
|
package/dist/translations/af.js
CHANGED
|
@@ -20,4 +20,4 @@
|
|
|
20
20
|
*
|
|
21
21
|
*
|
|
22
22
|
*/
|
|
23
|
-
export default{'af':{'dictionary':{'Footnote':'','Footnotes':'','Footnotes\x20properties':'','Footnotes\x20start\x20at':'','Invalid\x20footnotes\x20start\x20index\x20value.':'','Footnotes\x20start\x20index\x20is\x20too\x20large.':'','Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'','Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.':'','Footnote\x20content.':'','Footnotes\x20definitions\x20styles':'','Footnotes\x20definitions\x20toolbar':'','Insert\x20footnote':'','Footnotes\x20style':'','Toggle\x20the\x20decimal\x20footnotes\x20style':'','Decimal\x20footnotes':'','Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style':'','Decimal\x20footnotes\x20with\x20leading\x20zero':'','Lower–roman\x20footnotes':'','Upper-roman\x20footnotes':'','Lower-latin\x20footnotes':'','Upper-latin\x20footnotes':'','Toggle\x20the\x20lower–roman\x20footnotes\x20style':'','Toggle\x20the\x20upper–roman\x20footnotes\x20style':'','Toggle\x20the\x20lower–latin\x20footnotes\x20style':'','Toggle\x20the\x20upper–latin\x20footnotes\x20style':''},'getPluralForm':
|
|
23
|
+
export default{'af':{'dictionary':{'Footnote':'','Footnotes':'','Footnotes\x20properties':'','Footnotes\x20start\x20at':'','Invalid\x20footnotes\x20start\x20index\x20value.':'','Footnotes\x20start\x20index\x20is\x20too\x20large.':'','Footnotes\x20start\x20index\x20must\x20be\x20greater\x20than\x200.':'','Footnote\x20%0.\x20Press\x20ENTER\x20to\x20jump\x20to\x20footnote\x20definition.':'','Footnote\x20content.':'','Footnotes\x20definitions\x20styles':'','Footnotes\x20definitions\x20toolbar':'','Insert\x20footnote':'','Footnotes\x20style':'','Toggle\x20the\x20decimal\x20footnotes\x20style':'','Decimal\x20footnotes':'','Toggle\x20the\x20decimal\x20with\x20leading\x20zero\x20footnotes\x20style':'','Decimal\x20footnotes\x20with\x20leading\x20zero':'','Lower–roman\x20footnotes':'','Upper-roman\x20footnotes':'','Lower-latin\x20footnotes':'','Upper-latin\x20footnotes':'','Toggle\x20the\x20lower–roman\x20footnotes\x20style':'','Toggle\x20the\x20upper–roman\x20footnotes\x20style':'','Toggle\x20the\x20lower–latin\x20footnotes\x20style':'','Toggle\x20the\x20upper–latin\x20footnotes\x20style':''},'getPluralForm':_0x4e12a1=>0x1!=_0x4e12a1}};
|