]> _ Git - psq.git/commitdiff
add colors to ckeditor
authorLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 8 Sep 2020 17:24:57 +0000 (19:24 +0200)
committerLouis Jeckel <louis.jeckel@outlook.cm>
Tue, 8 Sep 2020 17:24:57 +0000 (19:24 +0200)
public/assets/admin/css/main-form.75fc3c48.css [new file with mode: 0644]
public/assets/admin/js/main-form.79eea971.js [new file with mode: 0644]
public/assets/admin/twill-manifest.json
resources/assets/js/components/BlockCkeditor.vue
resources/sass/_colors.scss

diff --git a/public/assets/admin/css/main-form.75fc3c48.css b/public/assets/admin/css/main-form.75fc3c48.css
new file mode 100644 (file)
index 0000000..3e46e73
--- /dev/null
@@ -0,0 +1 @@
+.icon--add[data-v-1a811cfe],.icon--add svg[data-v-1a811cfe]{width:10px;height:10px}.icon--arrow-external[data-v-1a811cfe],.icon--arrow-external svg[data-v-1a811cfe]{width:8px;height:8px}.icon--arrow-sort[data-v-1a811cfe],.icon--arrow-sort svg[data-v-1a811cfe]{width:9px;height:11px}.icon--check[data-v-1a811cfe],.icon--check svg[data-v-1a811cfe]{width:11px;height:11px}.icon--close_icon[data-v-1a811cfe],.icon--close_icon svg[data-v-1a811cfe]{width:10px;height:10px}.icon--close_modal[data-v-1a811cfe],.icon--close_modal svg[data-v-1a811cfe]{width:16px;height:16px}.icon--colors[data-v-1a811cfe],.icon--colors svg[data-v-1a811cfe]{width:17px;height:17px}.icon--content-editor[data-v-1a811cfe],.icon--content-editor svg[data-v-1a811cfe]{width:14px;height:13px}.icon--crop[data-v-1a811cfe],.icon--crop svg[data-v-1a811cfe]{width:16px;height:18px}.icon--download[data-v-1a811cfe],.icon--download svg[data-v-1a811cfe]{width:12px;height:16px}.icon--drag[data-v-1a811cfe],.icon--drag svg[data-v-1a811cfe]{width:8px;height:17px}.icon--dropdown_default[data-v-1a811cfe],.icon--dropdown_default svg[data-v-1a811cfe]{width:9px;height:5px}.icon--dropdown_module[data-v-1a811cfe],.icon--dropdown_module svg[data-v-1a811cfe]{width:10px;height:6px}.icon--edit[data-v-1a811cfe],.icon--edit svg[data-v-1a811cfe]{width:13px;height:13px}.icon--edit_large[data-v-1a811cfe],.icon--edit_large svg[data-v-1a811cfe]{width:14px;height:14px}.icon--editor[data-v-1a811cfe],.icon--editor svg[data-v-1a811cfe]{width:14px;height:13px}.icon--expand[data-v-1a811cfe],.icon--expand svg[data-v-1a811cfe]{width:10px;height:10px}.icon--fix-grid[data-v-1a811cfe],.icon--fix-grid svg[data-v-1a811cfe]{width:18px;height:14px}.icon--flex-grid[data-v-1a811cfe],.icon--flex-grid svg[data-v-1a811cfe]{width:18px;height:17px}.icon--google-sign-in[data-v-1a811cfe],.icon--google-sign-in svg[data-v-1a811cfe]{width:23px;height:24px}.icon--image-text[data-v-1a811cfe],.icon--image-text svg[data-v-1a811cfe]{width:30px;height:13px}.icon--image[data-v-1a811cfe],.icon--image svg[data-v-1a811cfe]{width:19px;height:15px}.icon--info[data-v-1a811cfe],.icon--info svg[data-v-1a811cfe]{width:21px;height:21px}.icon--location[data-v-1a811cfe],.icon--location svg[data-v-1a811cfe]{width:12px;height:16px}.icon--media-grid[data-v-1a811cfe],.icon--media-grid svg[data-v-1a811cfe]{width:12px;height:12px}.icon--media-list[data-v-1a811cfe],.icon--media-list svg[data-v-1a811cfe]{width:16px;height:10px}.icon--more-dots[data-v-1a811cfe],.icon--more-dots svg[data-v-1a811cfe]{width:14px;height:4px}.icon--pagination_left[data-v-1a811cfe],.icon--pagination_left svg[data-v-1a811cfe],.icon--pagination_right[data-v-1a811cfe],.icon--pagination_right svg[data-v-1a811cfe]{width:9px;height:15px}.icon--preferences[data-v-1a811cfe],.icon--preferences svg[data-v-1a811cfe]{width:26px;height:16px}.icon--preview-desktop[data-v-1a811cfe],.icon--preview-desktop svg[data-v-1a811cfe]{width:39px;height:30px}.icon--preview-mobile[data-v-1a811cfe],.icon--preview-mobile svg[data-v-1a811cfe]{width:12px;height:18px}.icon--preview-tablet-h[data-v-1a811cfe],.icon--preview-tablet-h svg[data-v-1a811cfe]{width:27px;height:20px}.icon--preview-tablet-v[data-v-1a811cfe],.icon--preview-tablet-v svg[data-v-1a811cfe]{width:20px;height:27px}.icon--preview[data-v-1a811cfe],.icon--preview svg[data-v-1a811cfe]{width:22px;height:14px}.icon--publish[data-v-1a811cfe],.icon--publish svg[data-v-1a811cfe]{width:22px;height:15px}.icon--quote[data-v-1a811cfe],.icon--quote svg[data-v-1a811cfe]{width:16px;height:13px}.icon--revision-compare[data-v-1a811cfe],.icon--revision-compare svg[data-v-1a811cfe],.icon--revision-single[data-v-1a811cfe],.icon--revision-single svg[data-v-1a811cfe]{width:23px;height:16px}.icon--search[data-v-1a811cfe],.icon--search svg[data-v-1a811cfe]{width:20px;height:20px}.icon--slideshow[data-v-1a811cfe],.icon--slideshow svg[data-v-1a811cfe]{width:20px;height:16px}.icon--star-feature[data-v-1a811cfe],.icon--star-feature_active[data-v-1a811cfe],.icon--star-feature_active svg[data-v-1a811cfe],.icon--star-feature svg[data-v-1a811cfe]{width:20px;height:19px}.icon--text-2col[data-v-1a811cfe],.icon--text-2col svg[data-v-1a811cfe]{width:26px;height:13px}.icon--text[data-v-1a811cfe],.icon--text svg[data-v-1a811cfe]{width:17px;height:13px}.icon--trash[data-v-1a811cfe],.icon--trash svg[data-v-1a811cfe]{width:15px;height:17px}.icon--video[data-v-1a811cfe],.icon--video svg[data-v-1a811cfe]{width:23px;height:23px}.icon--website[data-v-1a811cfe],.icon--website svg[data-v-1a811cfe]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-1a811cfe],.icon--wysiwyg_anchor svg[data-v-1a811cfe]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-1a811cfe],.icon--wysiwyg_bold svg[data-v-1a811cfe]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-1a811cfe],.icon--wysiwyg_header-2[data-v-1a811cfe],.icon--wysiwyg_header-3 svg[data-v-1a811cfe],.icon--wysiwyg_header-3[data-v-1a811cfe],.icon--wysiwyg_header-4 svg[data-v-1a811cfe],.icon--wysiwyg_header-4[data-v-1a811cfe],.icon--wysiwyg_header-5 svg[data-v-1a811cfe],.icon--wysiwyg_header-5[data-v-1a811cfe],.icon--wysiwyg_header-6 svg[data-v-1a811cfe],.icon--wysiwyg_header-6[data-v-1a811cfe],.icon--wysiwyg_header[data-v-1a811cfe],.icon--wysiwyg_header svg[data-v-1a811cfe]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-1a811cfe],.icon--wysiwyg_italic svg[data-v-1a811cfe]{width:10px;height:13px}.icon--wysiwyg_link[data-v-1a811cfe],.icon--wysiwyg_link svg[data-v-1a811cfe]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-1a811cfe],.icon--wysiwyg_underline svg[data-v-1a811cfe]{width:12px;height:13px}.icon--ae[data-v-1a811cfe],.icon--ae svg[data-v-1a811cfe],.icon--ai[data-v-1a811cfe],.icon--ai svg[data-v-1a811cfe],.icon--ase[data-v-1a811cfe],.icon--ase svg[data-v-1a811cfe]{width:20px;height:26px}.icon--cut[data-v-1a811cfe],.icon--cut svg[data-v-1a811cfe],.icon--dir[data-v-1a811cfe],.icon--dir_protected[data-v-1a811cfe],.icon--dir_protected svg[data-v-1a811cfe],.icon--dir_shared[data-v-1a811cfe],.icon--dir_shared svg[data-v-1a811cfe],.icon--dir svg[data-v-1a811cfe]{width:26px;height:21px}.icon--dmg[data-v-1a811cfe],.icon--dmg svg[data-v-1a811cfe],.icon--doc[data-v-1a811cfe],.icon--doc svg[data-v-1a811cfe],.icon--eps[data-v-1a811cfe],.icon--eps svg[data-v-1a811cfe],.icon--fla[data-v-1a811cfe],.icon--fla svg[data-v-1a811cfe],.icon--fnt[data-v-1a811cfe],.icon--fnt svg[data-v-1a811cfe],.icon--gen[data-v-1a811cfe],.icon--gen svg[data-v-1a811cfe],.icon--html[data-v-1a811cfe],.icon--html svg[data-v-1a811cfe],.icon--img[data-v-1a811cfe],.icon--img svg[data-v-1a811cfe],.icon--indd[data-v-1a811cfe],.icon--indd svg[data-v-1a811cfe],.icon--key[data-v-1a811cfe],.icon--key svg[data-v-1a811cfe],.icon--merlin[data-v-1a811cfe],.icon--merlin svg[data-v-1a811cfe]{width:20px;height:26px}.icon--net[data-v-1a811cfe],.icon--net svg[data-v-1a811cfe]{width:26px;height:21px}.icon--numbers[data-v-1a811cfe],.icon--numbers svg[data-v-1a811cfe],.icon--pages[data-v-1a811cfe],.icon--pages svg[data-v-1a811cfe],.icon--pdf[data-v-1a811cfe],.icon--pdf svg[data-v-1a811cfe],.icon--ppt[data-v-1a811cfe],.icon--ppt svg[data-v-1a811cfe],.icon--psd[data-v-1a811cfe],.icon--psd svg[data-v-1a811cfe]{width:20px;height:26px}.icon--site[data-v-1a811cfe],.icon--site svg[data-v-1a811cfe]{width:26px;height:21px}.icon--slide[data-v-1a811cfe],.icon--slide svg[data-v-1a811cfe],.icon--snd[data-v-1a811cfe],.icon--snd svg[data-v-1a811cfe],.icon--sql[data-v-1a811cfe],.icon--sql svg[data-v-1a811cfe],.icon--swf[data-v-1a811cfe],.icon--swf svg[data-v-1a811cfe],.icon--txt[data-v-1a811cfe],.icon--txt svg[data-v-1a811cfe],.icon--vid[data-v-1a811cfe],.icon--vid svg[data-v-1a811cfe],.icon--xls[data-v-1a811cfe],.icon--xls svg[data-v-1a811cfe],.icon--zip[data-v-1a811cfe],.icon--zip svg[data-v-1a811cfe]{width:20px;height:26px}.container[data-v-1a811cfe]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-1a811cfe]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-1a811cfe]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-1a811cfe]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-1a811cfe]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-1a811cfe]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-1a811cfe]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-1a811cfe]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-1a811cfe]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-1a811cfe]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-1a811cfe]{width:auto}}.stickyNav[data-v-1a811cfe]{background-color:hsla(0,0%,94.9%,.95);border-bottom:1px solid rgba(0,0,0,.05);background-clip:padding-box}@media screen and (min-width:850px){.stickyNav[data-v-1a811cfe]{height:90px;z-index:10;overflow:hidden}.stickyNav.sticky__fixed[data-v-1a811cfe],.stickyNav.sticky__fixedBottom[data-v-1a811cfe],.stickyNav.sticky__fixedTop[data-v-1a811cfe]{height:60px}.stickyNav.sticky__fixed .container[data-v-1a811cfe],.stickyNav.sticky__fixedBottom .container[data-v-1a811cfe],.stickyNav.sticky__fixedTop .container[data-v-1a811cfe]{padding-top:14px}.stickyNav.sticky__fixed .stickyNav__links[data-v-1a811cfe],.stickyNav.sticky__fixedBottom .stickyNav__links[data-v-1a811cfe],.stickyNav.sticky__fixedTop .stickyNav__links[data-v-1a811cfe]{opacity:1;visibility:visible;-webkit-transition:opacity .25s;transition:opacity .25s}.stickyNav.sticky__fixed .titleEditor[data-v-1a811cfe],.stickyNav.sticky__fixedBottom .titleEditor[data-v-1a811cfe],.stickyNav.sticky__fixedTop .titleEditor[data-v-1a811cfe]{opacity:0;visibility:hidden;-webkit-transition:opacity .25s ease,visibility 0s .25s;transition:opacity .25s ease,visibility 0s .25s}.stickyNav.sticky__fixed .titleEditor[data-v-1a811cfe]:first-child,.stickyNav.sticky__fixedBottom .titleEditor[data-v-1a811cfe]:first-child,.stickyNav.sticky__fixedTop .titleEditor[data-v-1a811cfe]:first-child{opacity:1;visibility:visible;-webkit-transition:opacity .25s;transition:opacity .25s}}.titleEditor[data-v-1a811cfe]{opacity:1;visibility:visible;-webkit-transition:opacity .25s;transition:opacity .25s}.stickyNav__links[data-v-1a811cfe]{opacity:0;visibility:hidden;-webkit-transition:opacity .25s ease,visibility 0s .25s;transition:opacity .25s ease,visibility 0s .25s;display:-webkit-box;display:-ms-flexbox;display:flex}.stickyNav__links a[data-v-1a811cfe]{display:block;height:35px;line-height:35px;border-radius:17px;padding:0 17px;text-decoration:none;color:#8c8c8c;background-color:hsla(0,0%,100%,0);-webkit-transition:background-color .25s linear;transition:background-color .25s linear}.stickyNav__links a[data-v-1a811cfe]:hover{color:#262626}.stickyNav__links a.s--on[data-v-1a811cfe]{background-color:#fff;color:#262626}.stickyNav__nav[data-v-1a811cfe]{position:relative}.stickyNav__nav .stickyNav__links[data-v-1a811cfe]{position:absolute}.stickyNav__actions>div[data-v-1a811cfe]{display:-webkit-box;display:-ms-flexbox;display:flex}.stickyNav__actions>div .button[data-v-1a811cfe]{margin-left:20px}@media screen and (max-width:849px){.stickyNav__actions>div .button[data-v-1a811cfe]{margin-left:0;margin-top:20px}}@media screen and (max-width:849px){.stickyNav__actions>div[data-v-1a811cfe]{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.stickyNav .container[data-v-1a811cfe]{display:block;padding-top:26px;padding-bottom:26px}@media screen and (min-width:850px){.stickyNav .container[data-v-1a811cfe]{display:-webkit-box;display:-ms-flexbox;display:flex}}@media screen and (min-width:850px){.stickyNav__nav[data-v-1a811cfe]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}}.icon--add[data-v-4e050f8e],.icon--add svg[data-v-4e050f8e]{width:10px;height:10px}.icon--arrow-external[data-v-4e050f8e],.icon--arrow-external svg[data-v-4e050f8e]{width:8px;height:8px}.icon--arrow-sort[data-v-4e050f8e],.icon--arrow-sort svg[data-v-4e050f8e]{width:9px;height:11px}.icon--check[data-v-4e050f8e],.icon--check svg[data-v-4e050f8e]{width:11px;height:11px}.icon--close_icon[data-v-4e050f8e],.icon--close_icon svg[data-v-4e050f8e]{width:10px;height:10px}.icon--close_modal[data-v-4e050f8e],.icon--close_modal svg[data-v-4e050f8e]{width:16px;height:16px}.icon--colors[data-v-4e050f8e],.icon--colors svg[data-v-4e050f8e]{width:17px;height:17px}.icon--content-editor[data-v-4e050f8e],.icon--content-editor svg[data-v-4e050f8e]{width:14px;height:13px}.icon--crop[data-v-4e050f8e],.icon--crop svg[data-v-4e050f8e]{width:16px;height:18px}.icon--download[data-v-4e050f8e],.icon--download svg[data-v-4e050f8e]{width:12px;height:16px}.icon--drag[data-v-4e050f8e],.icon--drag svg[data-v-4e050f8e]{width:8px;height:17px}.icon--dropdown_default[data-v-4e050f8e],.icon--dropdown_default svg[data-v-4e050f8e]{width:9px;height:5px}.icon--dropdown_module[data-v-4e050f8e],.icon--dropdown_module svg[data-v-4e050f8e]{width:10px;height:6px}.icon--edit[data-v-4e050f8e],.icon--edit svg[data-v-4e050f8e]{width:13px;height:13px}.icon--edit_large[data-v-4e050f8e],.icon--edit_large svg[data-v-4e050f8e]{width:14px;height:14px}.icon--editor[data-v-4e050f8e],.icon--editor svg[data-v-4e050f8e]{width:14px;height:13px}.icon--expand[data-v-4e050f8e],.icon--expand svg[data-v-4e050f8e]{width:10px;height:10px}.icon--fix-grid[data-v-4e050f8e],.icon--fix-grid svg[data-v-4e050f8e]{width:18px;height:14px}.icon--flex-grid[data-v-4e050f8e],.icon--flex-grid svg[data-v-4e050f8e]{width:18px;height:17px}.icon--google-sign-in[data-v-4e050f8e],.icon--google-sign-in svg[data-v-4e050f8e]{width:23px;height:24px}.icon--image-text[data-v-4e050f8e],.icon--image-text svg[data-v-4e050f8e]{width:30px;height:13px}.icon--image[data-v-4e050f8e],.icon--image svg[data-v-4e050f8e]{width:19px;height:15px}.icon--info[data-v-4e050f8e],.icon--info svg[data-v-4e050f8e]{width:21px;height:21px}.icon--location[data-v-4e050f8e],.icon--location svg[data-v-4e050f8e]{width:12px;height:16px}.icon--media-grid[data-v-4e050f8e],.icon--media-grid svg[data-v-4e050f8e]{width:12px;height:12px}.icon--media-list[data-v-4e050f8e],.icon--media-list svg[data-v-4e050f8e]{width:16px;height:10px}.icon--more-dots[data-v-4e050f8e],.icon--more-dots svg[data-v-4e050f8e]{width:14px;height:4px}.icon--pagination_left[data-v-4e050f8e],.icon--pagination_left svg[data-v-4e050f8e],.icon--pagination_right[data-v-4e050f8e],.icon--pagination_right svg[data-v-4e050f8e]{width:9px;height:15px}.icon--preferences[data-v-4e050f8e],.icon--preferences svg[data-v-4e050f8e]{width:26px;height:16px}.icon--preview-desktop[data-v-4e050f8e],.icon--preview-desktop svg[data-v-4e050f8e]{width:39px;height:30px}.icon--preview-mobile[data-v-4e050f8e],.icon--preview-mobile svg[data-v-4e050f8e]{width:12px;height:18px}.icon--preview-tablet-h[data-v-4e050f8e],.icon--preview-tablet-h svg[data-v-4e050f8e]{width:27px;height:20px}.icon--preview-tablet-v[data-v-4e050f8e],.icon--preview-tablet-v svg[data-v-4e050f8e]{width:20px;height:27px}.icon--preview[data-v-4e050f8e],.icon--preview svg[data-v-4e050f8e]{width:22px;height:14px}.icon--publish[data-v-4e050f8e],.icon--publish svg[data-v-4e050f8e]{width:22px;height:15px}.icon--quote[data-v-4e050f8e],.icon--quote svg[data-v-4e050f8e]{width:16px;height:13px}.icon--revision-compare[data-v-4e050f8e],.icon--revision-compare svg[data-v-4e050f8e],.icon--revision-single[data-v-4e050f8e],.icon--revision-single svg[data-v-4e050f8e]{width:23px;height:16px}.icon--search[data-v-4e050f8e],.icon--search svg[data-v-4e050f8e]{width:20px;height:20px}.icon--slideshow[data-v-4e050f8e],.icon--slideshow svg[data-v-4e050f8e]{width:20px;height:16px}.icon--star-feature[data-v-4e050f8e],.icon--star-feature_active[data-v-4e050f8e],.icon--star-feature_active svg[data-v-4e050f8e],.icon--star-feature svg[data-v-4e050f8e]{width:20px;height:19px}.icon--text-2col[data-v-4e050f8e],.icon--text-2col svg[data-v-4e050f8e]{width:26px;height:13px}.icon--text[data-v-4e050f8e],.icon--text svg[data-v-4e050f8e]{width:17px;height:13px}.icon--trash[data-v-4e050f8e],.icon--trash svg[data-v-4e050f8e]{width:15px;height:17px}.icon--video[data-v-4e050f8e],.icon--video svg[data-v-4e050f8e]{width:23px;height:23px}.icon--website[data-v-4e050f8e],.icon--website svg[data-v-4e050f8e]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-4e050f8e],.icon--wysiwyg_anchor svg[data-v-4e050f8e]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-4e050f8e],.icon--wysiwyg_bold svg[data-v-4e050f8e]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-4e050f8e],.icon--wysiwyg_header-2[data-v-4e050f8e],.icon--wysiwyg_header-3 svg[data-v-4e050f8e],.icon--wysiwyg_header-3[data-v-4e050f8e],.icon--wysiwyg_header-4 svg[data-v-4e050f8e],.icon--wysiwyg_header-4[data-v-4e050f8e],.icon--wysiwyg_header-5 svg[data-v-4e050f8e],.icon--wysiwyg_header-5[data-v-4e050f8e],.icon--wysiwyg_header-6 svg[data-v-4e050f8e],.icon--wysiwyg_header-6[data-v-4e050f8e],.icon--wysiwyg_header[data-v-4e050f8e],.icon--wysiwyg_header svg[data-v-4e050f8e]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-4e050f8e],.icon--wysiwyg_italic svg[data-v-4e050f8e]{width:10px;height:13px}.icon--wysiwyg_link[data-v-4e050f8e],.icon--wysiwyg_link svg[data-v-4e050f8e]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-4e050f8e],.icon--wysiwyg_underline svg[data-v-4e050f8e]{width:12px;height:13px}.icon--ae[data-v-4e050f8e],.icon--ae svg[data-v-4e050f8e],.icon--ai[data-v-4e050f8e],.icon--ai svg[data-v-4e050f8e],.icon--ase[data-v-4e050f8e],.icon--ase svg[data-v-4e050f8e]{width:20px;height:26px}.icon--cut[data-v-4e050f8e],.icon--cut svg[data-v-4e050f8e],.icon--dir[data-v-4e050f8e],.icon--dir_protected[data-v-4e050f8e],.icon--dir_protected svg[data-v-4e050f8e],.icon--dir_shared[data-v-4e050f8e],.icon--dir_shared svg[data-v-4e050f8e],.icon--dir svg[data-v-4e050f8e]{width:26px;height:21px}.icon--dmg[data-v-4e050f8e],.icon--dmg svg[data-v-4e050f8e],.icon--doc[data-v-4e050f8e],.icon--doc svg[data-v-4e050f8e],.icon--eps[data-v-4e050f8e],.icon--eps svg[data-v-4e050f8e],.icon--fla[data-v-4e050f8e],.icon--fla svg[data-v-4e050f8e],.icon--fnt[data-v-4e050f8e],.icon--fnt svg[data-v-4e050f8e],.icon--gen[data-v-4e050f8e],.icon--gen svg[data-v-4e050f8e],.icon--html[data-v-4e050f8e],.icon--html svg[data-v-4e050f8e],.icon--img[data-v-4e050f8e],.icon--img svg[data-v-4e050f8e],.icon--indd[data-v-4e050f8e],.icon--indd svg[data-v-4e050f8e],.icon--key[data-v-4e050f8e],.icon--key svg[data-v-4e050f8e],.icon--merlin[data-v-4e050f8e],.icon--merlin svg[data-v-4e050f8e]{width:20px;height:26px}.icon--net[data-v-4e050f8e],.icon--net svg[data-v-4e050f8e]{width:26px;height:21px}.icon--numbers[data-v-4e050f8e],.icon--numbers svg[data-v-4e050f8e],.icon--pages[data-v-4e050f8e],.icon--pages svg[data-v-4e050f8e],.icon--pdf[data-v-4e050f8e],.icon--pdf svg[data-v-4e050f8e],.icon--ppt[data-v-4e050f8e],.icon--ppt svg[data-v-4e050f8e],.icon--psd[data-v-4e050f8e],.icon--psd svg[data-v-4e050f8e]{width:20px;height:26px}.icon--site[data-v-4e050f8e],.icon--site svg[data-v-4e050f8e]{width:26px;height:21px}.icon--slide[data-v-4e050f8e],.icon--slide svg[data-v-4e050f8e],.icon--snd[data-v-4e050f8e],.icon--snd svg[data-v-4e050f8e],.icon--sql[data-v-4e050f8e],.icon--sql svg[data-v-4e050f8e],.icon--swf[data-v-4e050f8e],.icon--swf svg[data-v-4e050f8e],.icon--txt[data-v-4e050f8e],.icon--txt svg[data-v-4e050f8e],.icon--vid[data-v-4e050f8e],.icon--vid svg[data-v-4e050f8e],.icon--xls[data-v-4e050f8e],.icon--xls svg[data-v-4e050f8e],.icon--zip[data-v-4e050f8e],.icon--zip svg[data-v-4e050f8e]{width:20px;height:26px}.container[data-v-4e050f8e]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-4e050f8e]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-4e050f8e]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-4e050f8e]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-4e050f8e]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-4e050f8e]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-4e050f8e]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-4e050f8e]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-4e050f8e]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-4e050f8e]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-4e050f8e]{width:auto}}.titleEditor[data-v-4e050f8e]{margin-bottom:20px}@media screen and (min-width:850px){.titleEditor[data-v-4e050f8e]{margin-bottom:0}}.titleEditor__title[data-v-4e050f8e]{font-weight:600}.titleEditor__title a[data-v-4e050f8e]{text-decoration:none}.titleEditor__title .icon[data-v-4e050f8e]{color:#a6a6a6;margin-left:7px}.titleEditor__title a:hover .icon[data-v-4e050f8e]{color:#262626}.stickyNav.sticky__fixedTop .titleEditor__title[data-v-4e050f8e]{line-height:35px}.titleEditor--error .titleEditor__title .f--underlined--o[data-v-4e050f8e],.titleEditor--error .titleEditor__title .icon[data-v-4e050f8e],.titleEditor--error .titleEditor__title:hover .f--underlined--o[data-v-4e050f8e],.titleEditor--error .titleEditor__title:hover .icon[data-v-4e050f8e]{color:#e61414}.titleEditor--error .titleEditor__title:hover .f--underlined--o[data-v-4e050f8e]{text-decoration:none;background-image:-webkit-gradient(linear,left top,left bottom,color-stop(75%,rgba(230,20,20,.5)),color-stop(75%,rgba(230,20,20,.5)));background-image:linear-gradient(180deg,rgba(230,20,20,.5) 75%,rgba(230,20,20,.5) 0);background-repeat:repeat-x;background-size:1px 1px;background-position:0 98%}.titleEditor__title-only[data-v-4e050f8e]{line-height:35px}.titleEditor__permalink[data-v-4e050f8e]{text-decoration:none;display:inline-block;white-space:nowrap}.stickyNav.sticky__fixedTop .titleEditor__permalink[data-v-4e050f8e]{display:none}.icon--add[data-v-2e81738b],.icon--add svg[data-v-2e81738b]{width:10px;height:10px}.icon--arrow-external[data-v-2e81738b],.icon--arrow-external svg[data-v-2e81738b]{width:8px;height:8px}.icon--arrow-sort[data-v-2e81738b],.icon--arrow-sort svg[data-v-2e81738b]{width:9px;height:11px}.icon--check[data-v-2e81738b],.icon--check svg[data-v-2e81738b]{width:11px;height:11px}.icon--close_icon[data-v-2e81738b],.icon--close_icon svg[data-v-2e81738b]{width:10px;height:10px}.icon--close_modal[data-v-2e81738b],.icon--close_modal svg[data-v-2e81738b]{width:16px;height:16px}.icon--colors[data-v-2e81738b],.icon--colors svg[data-v-2e81738b]{width:17px;height:17px}.icon--content-editor[data-v-2e81738b],.icon--content-editor svg[data-v-2e81738b]{width:14px;height:13px}.icon--crop[data-v-2e81738b],.icon--crop svg[data-v-2e81738b]{width:16px;height:18px}.icon--download[data-v-2e81738b],.icon--download svg[data-v-2e81738b]{width:12px;height:16px}.icon--drag[data-v-2e81738b],.icon--drag svg[data-v-2e81738b]{width:8px;height:17px}.icon--dropdown_default[data-v-2e81738b],.icon--dropdown_default svg[data-v-2e81738b]{width:9px;height:5px}.icon--dropdown_module[data-v-2e81738b],.icon--dropdown_module svg[data-v-2e81738b]{width:10px;height:6px}.icon--edit[data-v-2e81738b],.icon--edit svg[data-v-2e81738b]{width:13px;height:13px}.icon--edit_large[data-v-2e81738b],.icon--edit_large svg[data-v-2e81738b]{width:14px;height:14px}.icon--editor[data-v-2e81738b],.icon--editor svg[data-v-2e81738b]{width:14px;height:13px}.icon--expand[data-v-2e81738b],.icon--expand svg[data-v-2e81738b]{width:10px;height:10px}.icon--fix-grid[data-v-2e81738b],.icon--fix-grid svg[data-v-2e81738b]{width:18px;height:14px}.icon--flex-grid[data-v-2e81738b],.icon--flex-grid svg[data-v-2e81738b]{width:18px;height:17px}.icon--google-sign-in[data-v-2e81738b],.icon--google-sign-in svg[data-v-2e81738b]{width:23px;height:24px}.icon--image-text[data-v-2e81738b],.icon--image-text svg[data-v-2e81738b]{width:30px;height:13px}.icon--image[data-v-2e81738b],.icon--image svg[data-v-2e81738b]{width:19px;height:15px}.icon--info[data-v-2e81738b],.icon--info svg[data-v-2e81738b]{width:21px;height:21px}.icon--location[data-v-2e81738b],.icon--location svg[data-v-2e81738b]{width:12px;height:16px}.icon--media-grid[data-v-2e81738b],.icon--media-grid svg[data-v-2e81738b]{width:12px;height:12px}.icon--media-list[data-v-2e81738b],.icon--media-list svg[data-v-2e81738b]{width:16px;height:10px}.icon--more-dots[data-v-2e81738b],.icon--more-dots svg[data-v-2e81738b]{width:14px;height:4px}.icon--pagination_left[data-v-2e81738b],.icon--pagination_left svg[data-v-2e81738b],.icon--pagination_right[data-v-2e81738b],.icon--pagination_right svg[data-v-2e81738b]{width:9px;height:15px}.icon--preferences[data-v-2e81738b],.icon--preferences svg[data-v-2e81738b]{width:26px;height:16px}.icon--preview-desktop[data-v-2e81738b],.icon--preview-desktop svg[data-v-2e81738b]{width:39px;height:30px}.icon--preview-mobile[data-v-2e81738b],.icon--preview-mobile svg[data-v-2e81738b]{width:12px;height:18px}.icon--preview-tablet-h[data-v-2e81738b],.icon--preview-tablet-h svg[data-v-2e81738b]{width:27px;height:20px}.icon--preview-tablet-v[data-v-2e81738b],.icon--preview-tablet-v svg[data-v-2e81738b]{width:20px;height:27px}.icon--preview[data-v-2e81738b],.icon--preview svg[data-v-2e81738b]{width:22px;height:14px}.icon--publish[data-v-2e81738b],.icon--publish svg[data-v-2e81738b]{width:22px;height:15px}.icon--quote[data-v-2e81738b],.icon--quote svg[data-v-2e81738b]{width:16px;height:13px}.icon--revision-compare[data-v-2e81738b],.icon--revision-compare svg[data-v-2e81738b],.icon--revision-single[data-v-2e81738b],.icon--revision-single svg[data-v-2e81738b]{width:23px;height:16px}.icon--search[data-v-2e81738b],.icon--search svg[data-v-2e81738b]{width:20px;height:20px}.icon--slideshow[data-v-2e81738b],.icon--slideshow svg[data-v-2e81738b]{width:20px;height:16px}.icon--star-feature[data-v-2e81738b],.icon--star-feature_active[data-v-2e81738b],.icon--star-feature_active svg[data-v-2e81738b],.icon--star-feature svg[data-v-2e81738b]{width:20px;height:19px}.icon--text-2col[data-v-2e81738b],.icon--text-2col svg[data-v-2e81738b]{width:26px;height:13px}.icon--text[data-v-2e81738b],.icon--text svg[data-v-2e81738b]{width:17px;height:13px}.icon--trash[data-v-2e81738b],.icon--trash svg[data-v-2e81738b]{width:15px;height:17px}.icon--video[data-v-2e81738b],.icon--video svg[data-v-2e81738b]{width:23px;height:23px}.icon--website[data-v-2e81738b],.icon--website svg[data-v-2e81738b]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-2e81738b],.icon--wysiwyg_anchor svg[data-v-2e81738b]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-2e81738b],.icon--wysiwyg_bold svg[data-v-2e81738b]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-2e81738b],.icon--wysiwyg_header-2[data-v-2e81738b],.icon--wysiwyg_header-3 svg[data-v-2e81738b],.icon--wysiwyg_header-3[data-v-2e81738b],.icon--wysiwyg_header-4 svg[data-v-2e81738b],.icon--wysiwyg_header-4[data-v-2e81738b],.icon--wysiwyg_header-5 svg[data-v-2e81738b],.icon--wysiwyg_header-5[data-v-2e81738b],.icon--wysiwyg_header-6 svg[data-v-2e81738b],.icon--wysiwyg_header-6[data-v-2e81738b],.icon--wysiwyg_header[data-v-2e81738b],.icon--wysiwyg_header svg[data-v-2e81738b]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-2e81738b],.icon--wysiwyg_italic svg[data-v-2e81738b]{width:10px;height:13px}.icon--wysiwyg_link[data-v-2e81738b],.icon--wysiwyg_link svg[data-v-2e81738b]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-2e81738b],.icon--wysiwyg_underline svg[data-v-2e81738b]{width:12px;height:13px}.icon--ae[data-v-2e81738b],.icon--ae svg[data-v-2e81738b],.icon--ai[data-v-2e81738b],.icon--ai svg[data-v-2e81738b],.icon--ase[data-v-2e81738b],.icon--ase svg[data-v-2e81738b]{width:20px;height:26px}.icon--cut[data-v-2e81738b],.icon--cut svg[data-v-2e81738b],.icon--dir[data-v-2e81738b],.icon--dir_protected[data-v-2e81738b],.icon--dir_protected svg[data-v-2e81738b],.icon--dir_shared[data-v-2e81738b],.icon--dir_shared svg[data-v-2e81738b],.icon--dir svg[data-v-2e81738b]{width:26px;height:21px}.icon--dmg[data-v-2e81738b],.icon--dmg svg[data-v-2e81738b],.icon--doc[data-v-2e81738b],.icon--doc svg[data-v-2e81738b],.icon--eps[data-v-2e81738b],.icon--eps svg[data-v-2e81738b],.icon--fla[data-v-2e81738b],.icon--fla svg[data-v-2e81738b],.icon--fnt[data-v-2e81738b],.icon--fnt svg[data-v-2e81738b],.icon--gen[data-v-2e81738b],.icon--gen svg[data-v-2e81738b],.icon--html[data-v-2e81738b],.icon--html svg[data-v-2e81738b],.icon--img[data-v-2e81738b],.icon--img svg[data-v-2e81738b],.icon--indd[data-v-2e81738b],.icon--indd svg[data-v-2e81738b],.icon--key[data-v-2e81738b],.icon--key svg[data-v-2e81738b],.icon--merlin[data-v-2e81738b],.icon--merlin svg[data-v-2e81738b]{width:20px;height:26px}.icon--net[data-v-2e81738b],.icon--net svg[data-v-2e81738b]{width:26px;height:21px}.icon--numbers[data-v-2e81738b],.icon--numbers svg[data-v-2e81738b],.icon--pages[data-v-2e81738b],.icon--pages svg[data-v-2e81738b],.icon--pdf[data-v-2e81738b],.icon--pdf svg[data-v-2e81738b],.icon--ppt[data-v-2e81738b],.icon--ppt svg[data-v-2e81738b],.icon--psd[data-v-2e81738b],.icon--psd svg[data-v-2e81738b]{width:20px;height:26px}.icon--site[data-v-2e81738b],.icon--site svg[data-v-2e81738b]{width:26px;height:21px}.icon--slide[data-v-2e81738b],.icon--slide svg[data-v-2e81738b],.icon--snd[data-v-2e81738b],.icon--snd svg[data-v-2e81738b],.icon--sql[data-v-2e81738b],.icon--sql svg[data-v-2e81738b],.icon--swf[data-v-2e81738b],.icon--swf svg[data-v-2e81738b],.icon--txt[data-v-2e81738b],.icon--txt svg[data-v-2e81738b],.icon--vid[data-v-2e81738b],.icon--vid svg[data-v-2e81738b],.icon--xls[data-v-2e81738b],.icon--xls svg[data-v-2e81738b],.icon--zip[data-v-2e81738b],.icon--zip svg[data-v-2e81738b]{width:20px;height:26px}.container[data-v-2e81738b]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-2e81738b]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-2e81738b]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-2e81738b]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-2e81738b]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-2e81738b]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-2e81738b]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-2e81738b]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-2e81738b]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-2e81738b]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-2e81738b]{width:auto}}.switcher[data-v-2e81738b]{height:50px;line-height:50px;background:#a6a6a6;color:#fff;padding:0 20px;margin:-1px -1px 0 -1px;padding:0 21px;border-top-left-radius:2px;border-top-right-radius:2px;-webkit-transition:background-color .25s linear;transition:background-color .25s linear}.switcher__title[data-v-2e81738b]{display:inline;font-weight:600;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.switcher__button[data-v-2e81738b]{float:right;position:relative;top:16px;cursor:pointer}.switcher__button input[data-v-2e81738b]{position:absolute;opacity:0}.switcher__label[data-v-2e81738b]{margin-right:15px}.switcher__switcher[data-v-2e81738b]{display:inline-block;height:12px;border-radius:6px;width:40px;background:#4d4d4d;-webkit-box-shadow:inset 0 0 1px #000;box-shadow:inset 0 0 1px #000;position:relative}.switcher__switcher[data-v-2e81738b]:after,.switcher__switcher[data-v-2e81738b]:before{content:"";position:absolute;display:block;height:18px;width:18px;border-radius:50%;left:0;top:-3px;-webkit-transform:translateX(0);transform:translateX(0);-webkit-transition:all .25s cubic-bezier(.5,-.6,.5,1.6);transition:all .25s cubic-bezier(.5,-.6,.5,1.6)}.switcher__switcher[data-v-2e81738b]:after{background:#fff;-webkit-box-shadow:0 0 1px #666;box-shadow:0 0 1px #666}.switcher__switcher[data-v-2e81738b]:before{background:#fff;-webkit-box-shadow:0 0 0 3px rgba(0,0,0,.1);box-shadow:0 0 0 3px rgba(0,0,0,.1);opacity:0}.switcher--active[data-v-2e81738b]{background:#d3ecd9;color:#1d9f3c}.switcher--active .switcher__switcher[data-v-2e81738b]{background:#1d9f3c;-webkit-box-shadow:inset 0 0 1px rgba(0,0,0,.4);box-shadow:inset 0 0 1px rgba(0,0,0,.4)}.switcher--active .switcher__switcher[data-v-2e81738b]:after,.switcher--active .switcher__switcher[data-v-2e81738b]:before{-webkit-transform:translateX(22px);transform:translateX(22px)}.switcher__button:focus .switcher__switcher[data-v-2e81738b]:before,.switcher__button:hover .switcher__switcher[data-v-2e81738b]:before,.switcher__button input:focus+.switcher__switcher[data-v-2e81738b]:before{opacity:1}.switcher--expired[data-v-2e81738b]{background:#a6a6a6;color:#fff}.switcher--expired .switcher__switcher[data-v-2e81738b]{background:#4d4d4d;-webkit-box-shadow:inset 0 0 1px #000;box-shadow:inset 0 0 1px #000}.icon--add[data-v-0dd10376],.icon--add svg[data-v-0dd10376]{width:10px;height:10px}.icon--arrow-external[data-v-0dd10376],.icon--arrow-external svg[data-v-0dd10376]{width:8px;height:8px}.icon--arrow-sort[data-v-0dd10376],.icon--arrow-sort svg[data-v-0dd10376]{width:9px;height:11px}.icon--check[data-v-0dd10376],.icon--check svg[data-v-0dd10376]{width:11px;height:11px}.icon--close_icon[data-v-0dd10376],.icon--close_icon svg[data-v-0dd10376]{width:10px;height:10px}.icon--close_modal[data-v-0dd10376],.icon--close_modal svg[data-v-0dd10376]{width:16px;height:16px}.icon--colors[data-v-0dd10376],.icon--colors svg[data-v-0dd10376]{width:17px;height:17px}.icon--content-editor[data-v-0dd10376],.icon--content-editor svg[data-v-0dd10376]{width:14px;height:13px}.icon--crop[data-v-0dd10376],.icon--crop svg[data-v-0dd10376]{width:16px;height:18px}.icon--download[data-v-0dd10376],.icon--download svg[data-v-0dd10376]{width:12px;height:16px}.icon--drag[data-v-0dd10376],.icon--drag svg[data-v-0dd10376]{width:8px;height:17px}.icon--dropdown_default[data-v-0dd10376],.icon--dropdown_default svg[data-v-0dd10376]{width:9px;height:5px}.icon--dropdown_module[data-v-0dd10376],.icon--dropdown_module svg[data-v-0dd10376]{width:10px;height:6px}.icon--edit[data-v-0dd10376],.icon--edit svg[data-v-0dd10376]{width:13px;height:13px}.icon--edit_large[data-v-0dd10376],.icon--edit_large svg[data-v-0dd10376]{width:14px;height:14px}.icon--editor[data-v-0dd10376],.icon--editor svg[data-v-0dd10376]{width:14px;height:13px}.icon--expand[data-v-0dd10376],.icon--expand svg[data-v-0dd10376]{width:10px;height:10px}.icon--fix-grid[data-v-0dd10376],.icon--fix-grid svg[data-v-0dd10376]{width:18px;height:14px}.icon--flex-grid[data-v-0dd10376],.icon--flex-grid svg[data-v-0dd10376]{width:18px;height:17px}.icon--google-sign-in[data-v-0dd10376],.icon--google-sign-in svg[data-v-0dd10376]{width:23px;height:24px}.icon--image-text[data-v-0dd10376],.icon--image-text svg[data-v-0dd10376]{width:30px;height:13px}.icon--image[data-v-0dd10376],.icon--image svg[data-v-0dd10376]{width:19px;height:15px}.icon--info[data-v-0dd10376],.icon--info svg[data-v-0dd10376]{width:21px;height:21px}.icon--location[data-v-0dd10376],.icon--location svg[data-v-0dd10376]{width:12px;height:16px}.icon--media-grid[data-v-0dd10376],.icon--media-grid svg[data-v-0dd10376]{width:12px;height:12px}.icon--media-list[data-v-0dd10376],.icon--media-list svg[data-v-0dd10376]{width:16px;height:10px}.icon--more-dots[data-v-0dd10376],.icon--more-dots svg[data-v-0dd10376]{width:14px;height:4px}.icon--pagination_left[data-v-0dd10376],.icon--pagination_left svg[data-v-0dd10376],.icon--pagination_right[data-v-0dd10376],.icon--pagination_right svg[data-v-0dd10376]{width:9px;height:15px}.icon--preferences[data-v-0dd10376],.icon--preferences svg[data-v-0dd10376]{width:26px;height:16px}.icon--preview-desktop[data-v-0dd10376],.icon--preview-desktop svg[data-v-0dd10376]{width:39px;height:30px}.icon--preview-mobile[data-v-0dd10376],.icon--preview-mobile svg[data-v-0dd10376]{width:12px;height:18px}.icon--preview-tablet-h[data-v-0dd10376],.icon--preview-tablet-h svg[data-v-0dd10376]{width:27px;height:20px}.icon--preview-tablet-v[data-v-0dd10376],.icon--preview-tablet-v svg[data-v-0dd10376]{width:20px;height:27px}.icon--preview[data-v-0dd10376],.icon--preview svg[data-v-0dd10376]{width:22px;height:14px}.icon--publish[data-v-0dd10376],.icon--publish svg[data-v-0dd10376]{width:22px;height:15px}.icon--quote[data-v-0dd10376],.icon--quote svg[data-v-0dd10376]{width:16px;height:13px}.icon--revision-compare[data-v-0dd10376],.icon--revision-compare svg[data-v-0dd10376],.icon--revision-single[data-v-0dd10376],.icon--revision-single svg[data-v-0dd10376]{width:23px;height:16px}.icon--search[data-v-0dd10376],.icon--search svg[data-v-0dd10376]{width:20px;height:20px}.icon--slideshow[data-v-0dd10376],.icon--slideshow svg[data-v-0dd10376]{width:20px;height:16px}.icon--star-feature[data-v-0dd10376],.icon--star-feature_active[data-v-0dd10376],.icon--star-feature_active svg[data-v-0dd10376],.icon--star-feature svg[data-v-0dd10376]{width:20px;height:19px}.icon--text-2col[data-v-0dd10376],.icon--text-2col svg[data-v-0dd10376]{width:26px;height:13px}.icon--text[data-v-0dd10376],.icon--text svg[data-v-0dd10376]{width:17px;height:13px}.icon--trash[data-v-0dd10376],.icon--trash svg[data-v-0dd10376]{width:15px;height:17px}.icon--video[data-v-0dd10376],.icon--video svg[data-v-0dd10376]{width:23px;height:23px}.icon--website[data-v-0dd10376],.icon--website svg[data-v-0dd10376]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-0dd10376],.icon--wysiwyg_anchor svg[data-v-0dd10376]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-0dd10376],.icon--wysiwyg_bold svg[data-v-0dd10376]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-0dd10376],.icon--wysiwyg_header-2[data-v-0dd10376],.icon--wysiwyg_header-3 svg[data-v-0dd10376],.icon--wysiwyg_header-3[data-v-0dd10376],.icon--wysiwyg_header-4 svg[data-v-0dd10376],.icon--wysiwyg_header-4[data-v-0dd10376],.icon--wysiwyg_header-5 svg[data-v-0dd10376],.icon--wysiwyg_header-5[data-v-0dd10376],.icon--wysiwyg_header-6 svg[data-v-0dd10376],.icon--wysiwyg_header-6[data-v-0dd10376],.icon--wysiwyg_header[data-v-0dd10376],.icon--wysiwyg_header svg[data-v-0dd10376]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-0dd10376],.icon--wysiwyg_italic svg[data-v-0dd10376]{width:10px;height:13px}.icon--wysiwyg_link[data-v-0dd10376],.icon--wysiwyg_link svg[data-v-0dd10376]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-0dd10376],.icon--wysiwyg_underline svg[data-v-0dd10376]{width:12px;height:13px}.icon--ae[data-v-0dd10376],.icon--ae svg[data-v-0dd10376],.icon--ai[data-v-0dd10376],.icon--ai svg[data-v-0dd10376],.icon--ase[data-v-0dd10376],.icon--ase svg[data-v-0dd10376]{width:20px;height:26px}.icon--cut[data-v-0dd10376],.icon--cut svg[data-v-0dd10376],.icon--dir[data-v-0dd10376],.icon--dir_protected[data-v-0dd10376],.icon--dir_protected svg[data-v-0dd10376],.icon--dir_shared[data-v-0dd10376],.icon--dir_shared svg[data-v-0dd10376],.icon--dir svg[data-v-0dd10376]{width:26px;height:21px}.icon--dmg[data-v-0dd10376],.icon--dmg svg[data-v-0dd10376],.icon--doc[data-v-0dd10376],.icon--doc svg[data-v-0dd10376],.icon--eps[data-v-0dd10376],.icon--eps svg[data-v-0dd10376],.icon--fla[data-v-0dd10376],.icon--fla svg[data-v-0dd10376],.icon--fnt[data-v-0dd10376],.icon--fnt svg[data-v-0dd10376],.icon--gen[data-v-0dd10376],.icon--gen svg[data-v-0dd10376],.icon--html[data-v-0dd10376],.icon--html svg[data-v-0dd10376],.icon--img[data-v-0dd10376],.icon--img svg[data-v-0dd10376],.icon--indd[data-v-0dd10376],.icon--indd svg[data-v-0dd10376],.icon--key[data-v-0dd10376],.icon--key svg[data-v-0dd10376],.icon--merlin[data-v-0dd10376],.icon--merlin svg[data-v-0dd10376]{width:20px;height:26px}.icon--net[data-v-0dd10376],.icon--net svg[data-v-0dd10376]{width:26px;height:21px}.icon--numbers[data-v-0dd10376],.icon--numbers svg[data-v-0dd10376],.icon--pages[data-v-0dd10376],.icon--pages svg[data-v-0dd10376],.icon--pdf[data-v-0dd10376],.icon--pdf svg[data-v-0dd10376],.icon--ppt[data-v-0dd10376],.icon--ppt svg[data-v-0dd10376],.icon--psd[data-v-0dd10376],.icon--psd svg[data-v-0dd10376]{width:20px;height:26px}.icon--site[data-v-0dd10376],.icon--site svg[data-v-0dd10376]{width:26px;height:21px}.icon--slide[data-v-0dd10376],.icon--slide svg[data-v-0dd10376],.icon--snd[data-v-0dd10376],.icon--snd svg[data-v-0dd10376],.icon--sql[data-v-0dd10376],.icon--sql svg[data-v-0dd10376],.icon--swf[data-v-0dd10376],.icon--swf svg[data-v-0dd10376],.icon--txt[data-v-0dd10376],.icon--txt svg[data-v-0dd10376],.icon--vid[data-v-0dd10376],.icon--vid svg[data-v-0dd10376],.icon--xls[data-v-0dd10376],.icon--xls svg[data-v-0dd10376],.icon--zip[data-v-0dd10376],.icon--zip svg[data-v-0dd10376]{width:20px;height:26px}.container[data-v-0dd10376]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-0dd10376]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-0dd10376]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-0dd10376]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-0dd10376]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-0dd10376]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-0dd10376]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-0dd10376]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-0dd10376]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-0dd10376]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-0dd10376]{width:auto}}.accordion[data-v-0dd10376]{border-bottom:1px solid #f2f2f2;background-color:#fff;-webkit-transition:background-color .25s linear;transition:background-color .25s linear;overflow:hidden}.accordion__trigger[data-v-0dd10376]{padding:0 40px 0 20px;display:block;background-color:transparent;-webkit-appearance:none;cursor:pointer;font-size:1em;outline:none;margin:0;border:0 none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:inherit;background:transparent;height:55px;width:100%;text-align:left;position:relative;color:#262626;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.accordion__trigger .icon[data-v-0dd10376]{display:block;-webkit-transform-origin:50% 50%;transform-origin:50% 50%;position:absolute;right:20px;top:50%;margin-top:-4px;-webkit-transition:-webkit-transform .25s linear;transition:-webkit-transform .25s linear;transition:transform .25s linear;transition:transform .25s linear,-webkit-transform .25s linear}.accordion__trigger[data-v-0dd10376]:focus,.accordion__trigger[data-v-0dd10376]:hover{background:#fbfbfb}.accordion__trigger .icon[data-v-0dd10376]{color:#8c8c8c}.accordion__value[data-v-0dd10376]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;text-align:right;color:#8c8c8c;padding-left:10px;overflow:hidden}.accordion__value>[data-v-0dd10376]{overflow:hidden;text-overflow:ellipsis}.accordion__dropdown[data-v-0dd10376]{overflow:hidden;max-height:0;height:auto;-webkit-transition:max-height .275s ease;transition:max-height .275s ease}.accordion__list[data-v-0dd10376]{border-top:1px solid #f2f2f2;padding:12px 20px}.accordion__fields[data-v-0dd10376]{border-top:1px solid #f2f2f2;padding:20px}.accordion__list .accordion__fields[data-v-0dd10376]{border-top:0 none;padding:8px 0}.s--open[data-v-0dd10376]{background-color:#fbfbfb}.s--open .accordion__dropdown[data-v-0dd10376]{max-height:250px;overflow-y:auto}.s--open .icon[data-v-0dd10376]{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.accordion .accordion__list .input{margin-top:0}.accordion .accordion__list .input+.input{margin-top:10px}.icon--add[data-v-042fcdcb],.icon--add svg[data-v-042fcdcb]{width:10px;height:10px}.icon--arrow-external[data-v-042fcdcb],.icon--arrow-external svg[data-v-042fcdcb]{width:8px;height:8px}.icon--arrow-sort[data-v-042fcdcb],.icon--arrow-sort svg[data-v-042fcdcb]{width:9px;height:11px}.icon--check[data-v-042fcdcb],.icon--check svg[data-v-042fcdcb]{width:11px;height:11px}.icon--close_icon[data-v-042fcdcb],.icon--close_icon svg[data-v-042fcdcb]{width:10px;height:10px}.icon--close_modal[data-v-042fcdcb],.icon--close_modal svg[data-v-042fcdcb]{width:16px;height:16px}.icon--colors[data-v-042fcdcb],.icon--colors svg[data-v-042fcdcb]{width:17px;height:17px}.icon--content-editor[data-v-042fcdcb],.icon--content-editor svg[data-v-042fcdcb]{width:14px;height:13px}.icon--crop[data-v-042fcdcb],.icon--crop svg[data-v-042fcdcb]{width:16px;height:18px}.icon--download[data-v-042fcdcb],.icon--download svg[data-v-042fcdcb]{width:12px;height:16px}.icon--drag[data-v-042fcdcb],.icon--drag svg[data-v-042fcdcb]{width:8px;height:17px}.icon--dropdown_default[data-v-042fcdcb],.icon--dropdown_default svg[data-v-042fcdcb]{width:9px;height:5px}.icon--dropdown_module[data-v-042fcdcb],.icon--dropdown_module svg[data-v-042fcdcb]{width:10px;height:6px}.icon--edit[data-v-042fcdcb],.icon--edit svg[data-v-042fcdcb]{width:13px;height:13px}.icon--edit_large[data-v-042fcdcb],.icon--edit_large svg[data-v-042fcdcb]{width:14px;height:14px}.icon--editor[data-v-042fcdcb],.icon--editor svg[data-v-042fcdcb]{width:14px;height:13px}.icon--expand[data-v-042fcdcb],.icon--expand svg[data-v-042fcdcb]{width:10px;height:10px}.icon--fix-grid[data-v-042fcdcb],.icon--fix-grid svg[data-v-042fcdcb]{width:18px;height:14px}.icon--flex-grid[data-v-042fcdcb],.icon--flex-grid svg[data-v-042fcdcb]{width:18px;height:17px}.icon--google-sign-in[data-v-042fcdcb],.icon--google-sign-in svg[data-v-042fcdcb]{width:23px;height:24px}.icon--image-text[data-v-042fcdcb],.icon--image-text svg[data-v-042fcdcb]{width:30px;height:13px}.icon--image[data-v-042fcdcb],.icon--image svg[data-v-042fcdcb]{width:19px;height:15px}.icon--info[data-v-042fcdcb],.icon--info svg[data-v-042fcdcb]{width:21px;height:21px}.icon--location[data-v-042fcdcb],.icon--location svg[data-v-042fcdcb]{width:12px;height:16px}.icon--media-grid[data-v-042fcdcb],.icon--media-grid svg[data-v-042fcdcb]{width:12px;height:12px}.icon--media-list[data-v-042fcdcb],.icon--media-list svg[data-v-042fcdcb]{width:16px;height:10px}.icon--more-dots[data-v-042fcdcb],.icon--more-dots svg[data-v-042fcdcb]{width:14px;height:4px}.icon--pagination_left[data-v-042fcdcb],.icon--pagination_left svg[data-v-042fcdcb],.icon--pagination_right[data-v-042fcdcb],.icon--pagination_right svg[data-v-042fcdcb]{width:9px;height:15px}.icon--preferences[data-v-042fcdcb],.icon--preferences svg[data-v-042fcdcb]{width:26px;height:16px}.icon--preview-desktop[data-v-042fcdcb],.icon--preview-desktop svg[data-v-042fcdcb]{width:39px;height:30px}.icon--preview-mobile[data-v-042fcdcb],.icon--preview-mobile svg[data-v-042fcdcb]{width:12px;height:18px}.icon--preview-tablet-h[data-v-042fcdcb],.icon--preview-tablet-h svg[data-v-042fcdcb]{width:27px;height:20px}.icon--preview-tablet-v[data-v-042fcdcb],.icon--preview-tablet-v svg[data-v-042fcdcb]{width:20px;height:27px}.icon--preview[data-v-042fcdcb],.icon--preview svg[data-v-042fcdcb]{width:22px;height:14px}.icon--publish[data-v-042fcdcb],.icon--publish svg[data-v-042fcdcb]{width:22px;height:15px}.icon--quote[data-v-042fcdcb],.icon--quote svg[data-v-042fcdcb]{width:16px;height:13px}.icon--revision-compare[data-v-042fcdcb],.icon--revision-compare svg[data-v-042fcdcb],.icon--revision-single[data-v-042fcdcb],.icon--revision-single svg[data-v-042fcdcb]{width:23px;height:16px}.icon--search[data-v-042fcdcb],.icon--search svg[data-v-042fcdcb]{width:20px;height:20px}.icon--slideshow[data-v-042fcdcb],.icon--slideshow svg[data-v-042fcdcb]{width:20px;height:16px}.icon--star-feature[data-v-042fcdcb],.icon--star-feature_active[data-v-042fcdcb],.icon--star-feature_active svg[data-v-042fcdcb],.icon--star-feature svg[data-v-042fcdcb]{width:20px;height:19px}.icon--text-2col[data-v-042fcdcb],.icon--text-2col svg[data-v-042fcdcb]{width:26px;height:13px}.icon--text[data-v-042fcdcb],.icon--text svg[data-v-042fcdcb]{width:17px;height:13px}.icon--trash[data-v-042fcdcb],.icon--trash svg[data-v-042fcdcb]{width:15px;height:17px}.icon--video[data-v-042fcdcb],.icon--video svg[data-v-042fcdcb]{width:23px;height:23px}.icon--website[data-v-042fcdcb],.icon--website svg[data-v-042fcdcb]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-042fcdcb],.icon--wysiwyg_anchor svg[data-v-042fcdcb]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-042fcdcb],.icon--wysiwyg_bold svg[data-v-042fcdcb]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-042fcdcb],.icon--wysiwyg_header-2[data-v-042fcdcb],.icon--wysiwyg_header-3 svg[data-v-042fcdcb],.icon--wysiwyg_header-3[data-v-042fcdcb],.icon--wysiwyg_header-4 svg[data-v-042fcdcb],.icon--wysiwyg_header-4[data-v-042fcdcb],.icon--wysiwyg_header-5 svg[data-v-042fcdcb],.icon--wysiwyg_header-5[data-v-042fcdcb],.icon--wysiwyg_header-6 svg[data-v-042fcdcb],.icon--wysiwyg_header-6[data-v-042fcdcb],.icon--wysiwyg_header[data-v-042fcdcb],.icon--wysiwyg_header svg[data-v-042fcdcb]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-042fcdcb],.icon--wysiwyg_italic svg[data-v-042fcdcb]{width:10px;height:13px}.icon--wysiwyg_link[data-v-042fcdcb],.icon--wysiwyg_link svg[data-v-042fcdcb]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-042fcdcb],.icon--wysiwyg_underline svg[data-v-042fcdcb]{width:12px;height:13px}.icon--ae[data-v-042fcdcb],.icon--ae svg[data-v-042fcdcb],.icon--ai[data-v-042fcdcb],.icon--ai svg[data-v-042fcdcb],.icon--ase[data-v-042fcdcb],.icon--ase svg[data-v-042fcdcb]{width:20px;height:26px}.icon--cut[data-v-042fcdcb],.icon--cut svg[data-v-042fcdcb],.icon--dir[data-v-042fcdcb],.icon--dir_protected[data-v-042fcdcb],.icon--dir_protected svg[data-v-042fcdcb],.icon--dir_shared[data-v-042fcdcb],.icon--dir_shared svg[data-v-042fcdcb],.icon--dir svg[data-v-042fcdcb]{width:26px;height:21px}.icon--dmg[data-v-042fcdcb],.icon--dmg svg[data-v-042fcdcb],.icon--doc[data-v-042fcdcb],.icon--doc svg[data-v-042fcdcb],.icon--eps[data-v-042fcdcb],.icon--eps svg[data-v-042fcdcb],.icon--fla[data-v-042fcdcb],.icon--fla svg[data-v-042fcdcb],.icon--fnt[data-v-042fcdcb],.icon--fnt svg[data-v-042fcdcb],.icon--gen[data-v-042fcdcb],.icon--gen svg[data-v-042fcdcb],.icon--html[data-v-042fcdcb],.icon--html svg[data-v-042fcdcb],.icon--img[data-v-042fcdcb],.icon--img svg[data-v-042fcdcb],.icon--indd[data-v-042fcdcb],.icon--indd svg[data-v-042fcdcb],.icon--key[data-v-042fcdcb],.icon--key svg[data-v-042fcdcb],.icon--merlin[data-v-042fcdcb],.icon--merlin svg[data-v-042fcdcb]{width:20px;height:26px}.icon--net[data-v-042fcdcb],.icon--net svg[data-v-042fcdcb]{width:26px;height:21px}.icon--numbers[data-v-042fcdcb],.icon--numbers svg[data-v-042fcdcb],.icon--pages[data-v-042fcdcb],.icon--pages svg[data-v-042fcdcb],.icon--pdf[data-v-042fcdcb],.icon--pdf svg[data-v-042fcdcb],.icon--ppt[data-v-042fcdcb],.icon--ppt svg[data-v-042fcdcb],.icon--psd[data-v-042fcdcb],.icon--psd svg[data-v-042fcdcb]{width:20px;height:26px}.icon--site[data-v-042fcdcb],.icon--site svg[data-v-042fcdcb]{width:26px;height:21px}.icon--slide[data-v-042fcdcb],.icon--slide svg[data-v-042fcdcb],.icon--snd[data-v-042fcdcb],.icon--snd svg[data-v-042fcdcb],.icon--sql[data-v-042fcdcb],.icon--sql svg[data-v-042fcdcb],.icon--swf[data-v-042fcdcb],.icon--swf svg[data-v-042fcdcb],.icon--txt[data-v-042fcdcb],.icon--txt svg[data-v-042fcdcb],.icon--vid[data-v-042fcdcb],.icon--vid svg[data-v-042fcdcb],.icon--xls[data-v-042fcdcb],.icon--xls svg[data-v-042fcdcb],.icon--zip[data-v-042fcdcb],.icon--zip svg[data-v-042fcdcb]{width:20px;height:26px}.container[data-v-042fcdcb]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-042fcdcb]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-042fcdcb]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-042fcdcb]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-042fcdcb]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-042fcdcb]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-042fcdcb]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-042fcdcb]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-042fcdcb]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-042fcdcb]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-042fcdcb]{width:auto}}.revaccordion__scroller[data-v-042fcdcb]{height:100%;overflow:hidden;overflow-y:auto;max-height:165px;margin:-12px -20px}.revaccordion__list[data-v-042fcdcb]{padding:12px 20px}.revaccordion__item a[data-v-042fcdcb]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:no-wrap;flex-wrap:no-wrap;color:#8c8c8c;padding:7.5px 20px;margin-left:-20px;margin-right:-20px;text-decoration:none}.revaccordion__item a[data-v-042fcdcb]:focus,.revaccordion__item a[data-v-042fcdcb]:hover{color:#262626;background:#f2f2f2}.revaccordion__author[data-v-042fcdcb]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;white-space:nowrap}.revaccordion__datetime[data-v-042fcdcb]{padding-left:10px;color:#3278b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon--add[data-v-5a88e420],.icon--add svg[data-v-5a88e420]{width:10px;height:10px}.icon--arrow-external[data-v-5a88e420],.icon--arrow-external svg[data-v-5a88e420]{width:8px;height:8px}.icon--arrow-sort[data-v-5a88e420],.icon--arrow-sort svg[data-v-5a88e420]{width:9px;height:11px}.icon--check[data-v-5a88e420],.icon--check svg[data-v-5a88e420]{width:11px;height:11px}.icon--close_icon[data-v-5a88e420],.icon--close_icon svg[data-v-5a88e420]{width:10px;height:10px}.icon--close_modal[data-v-5a88e420],.icon--close_modal svg[data-v-5a88e420]{width:16px;height:16px}.icon--colors[data-v-5a88e420],.icon--colors svg[data-v-5a88e420]{width:17px;height:17px}.icon--content-editor[data-v-5a88e420],.icon--content-editor svg[data-v-5a88e420]{width:14px;height:13px}.icon--crop[data-v-5a88e420],.icon--crop svg[data-v-5a88e420]{width:16px;height:18px}.icon--download[data-v-5a88e420],.icon--download svg[data-v-5a88e420]{width:12px;height:16px}.icon--drag[data-v-5a88e420],.icon--drag svg[data-v-5a88e420]{width:8px;height:17px}.icon--dropdown_default[data-v-5a88e420],.icon--dropdown_default svg[data-v-5a88e420]{width:9px;height:5px}.icon--dropdown_module[data-v-5a88e420],.icon--dropdown_module svg[data-v-5a88e420]{width:10px;height:6px}.icon--edit[data-v-5a88e420],.icon--edit svg[data-v-5a88e420]{width:13px;height:13px}.icon--edit_large[data-v-5a88e420],.icon--edit_large svg[data-v-5a88e420]{width:14px;height:14px}.icon--editor[data-v-5a88e420],.icon--editor svg[data-v-5a88e420]{width:14px;height:13px}.icon--expand[data-v-5a88e420],.icon--expand svg[data-v-5a88e420]{width:10px;height:10px}.icon--fix-grid[data-v-5a88e420],.icon--fix-grid svg[data-v-5a88e420]{width:18px;height:14px}.icon--flex-grid[data-v-5a88e420],.icon--flex-grid svg[data-v-5a88e420]{width:18px;height:17px}.icon--google-sign-in[data-v-5a88e420],.icon--google-sign-in svg[data-v-5a88e420]{width:23px;height:24px}.icon--image-text[data-v-5a88e420],.icon--image-text svg[data-v-5a88e420]{width:30px;height:13px}.icon--image[data-v-5a88e420],.icon--image svg[data-v-5a88e420]{width:19px;height:15px}.icon--info[data-v-5a88e420],.icon--info svg[data-v-5a88e420]{width:21px;height:21px}.icon--location[data-v-5a88e420],.icon--location svg[data-v-5a88e420]{width:12px;height:16px}.icon--media-grid[data-v-5a88e420],.icon--media-grid svg[data-v-5a88e420]{width:12px;height:12px}.icon--media-list[data-v-5a88e420],.icon--media-list svg[data-v-5a88e420]{width:16px;height:10px}.icon--more-dots[data-v-5a88e420],.icon--more-dots svg[data-v-5a88e420]{width:14px;height:4px}.icon--pagination_left[data-v-5a88e420],.icon--pagination_left svg[data-v-5a88e420],.icon--pagination_right[data-v-5a88e420],.icon--pagination_right svg[data-v-5a88e420]{width:9px;height:15px}.icon--preferences[data-v-5a88e420],.icon--preferences svg[data-v-5a88e420]{width:26px;height:16px}.icon--preview-desktop[data-v-5a88e420],.icon--preview-desktop svg[data-v-5a88e420]{width:39px;height:30px}.icon--preview-mobile[data-v-5a88e420],.icon--preview-mobile svg[data-v-5a88e420]{width:12px;height:18px}.icon--preview-tablet-h[data-v-5a88e420],.icon--preview-tablet-h svg[data-v-5a88e420]{width:27px;height:20px}.icon--preview-tablet-v[data-v-5a88e420],.icon--preview-tablet-v svg[data-v-5a88e420]{width:20px;height:27px}.icon--preview[data-v-5a88e420],.icon--preview svg[data-v-5a88e420]{width:22px;height:14px}.icon--publish[data-v-5a88e420],.icon--publish svg[data-v-5a88e420]{width:22px;height:15px}.icon--quote[data-v-5a88e420],.icon--quote svg[data-v-5a88e420]{width:16px;height:13px}.icon--revision-compare[data-v-5a88e420],.icon--revision-compare svg[data-v-5a88e420],.icon--revision-single[data-v-5a88e420],.icon--revision-single svg[data-v-5a88e420]{width:23px;height:16px}.icon--search[data-v-5a88e420],.icon--search svg[data-v-5a88e420]{width:20px;height:20px}.icon--slideshow[data-v-5a88e420],.icon--slideshow svg[data-v-5a88e420]{width:20px;height:16px}.icon--star-feature[data-v-5a88e420],.icon--star-feature_active[data-v-5a88e420],.icon--star-feature_active svg[data-v-5a88e420],.icon--star-feature svg[data-v-5a88e420]{width:20px;height:19px}.icon--text-2col[data-v-5a88e420],.icon--text-2col svg[data-v-5a88e420]{width:26px;height:13px}.icon--text[data-v-5a88e420],.icon--text svg[data-v-5a88e420]{width:17px;height:13px}.icon--trash[data-v-5a88e420],.icon--trash svg[data-v-5a88e420]{width:15px;height:17px}.icon--video[data-v-5a88e420],.icon--video svg[data-v-5a88e420]{width:23px;height:23px}.icon--website[data-v-5a88e420],.icon--website svg[data-v-5a88e420]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-5a88e420],.icon--wysiwyg_anchor svg[data-v-5a88e420]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-5a88e420],.icon--wysiwyg_bold svg[data-v-5a88e420]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-5a88e420],.icon--wysiwyg_header-2[data-v-5a88e420],.icon--wysiwyg_header-3 svg[data-v-5a88e420],.icon--wysiwyg_header-3[data-v-5a88e420],.icon--wysiwyg_header-4 svg[data-v-5a88e420],.icon--wysiwyg_header-4[data-v-5a88e420],.icon--wysiwyg_header-5 svg[data-v-5a88e420],.icon--wysiwyg_header-5[data-v-5a88e420],.icon--wysiwyg_header-6 svg[data-v-5a88e420],.icon--wysiwyg_header-6[data-v-5a88e420],.icon--wysiwyg_header[data-v-5a88e420],.icon--wysiwyg_header svg[data-v-5a88e420]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-5a88e420],.icon--wysiwyg_italic svg[data-v-5a88e420]{width:10px;height:13px}.icon--wysiwyg_link[data-v-5a88e420],.icon--wysiwyg_link svg[data-v-5a88e420]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-5a88e420],.icon--wysiwyg_underline svg[data-v-5a88e420]{width:12px;height:13px}.icon--ae[data-v-5a88e420],.icon--ae svg[data-v-5a88e420],.icon--ai[data-v-5a88e420],.icon--ai svg[data-v-5a88e420],.icon--ase[data-v-5a88e420],.icon--ase svg[data-v-5a88e420]{width:20px;height:26px}.icon--cut[data-v-5a88e420],.icon--cut svg[data-v-5a88e420],.icon--dir[data-v-5a88e420],.icon--dir_protected[data-v-5a88e420],.icon--dir_protected svg[data-v-5a88e420],.icon--dir_shared[data-v-5a88e420],.icon--dir_shared svg[data-v-5a88e420],.icon--dir svg[data-v-5a88e420]{width:26px;height:21px}.icon--dmg[data-v-5a88e420],.icon--dmg svg[data-v-5a88e420],.icon--doc[data-v-5a88e420],.icon--doc svg[data-v-5a88e420],.icon--eps[data-v-5a88e420],.icon--eps svg[data-v-5a88e420],.icon--fla[data-v-5a88e420],.icon--fla svg[data-v-5a88e420],.icon--fnt[data-v-5a88e420],.icon--fnt svg[data-v-5a88e420],.icon--gen[data-v-5a88e420],.icon--gen svg[data-v-5a88e420],.icon--html[data-v-5a88e420],.icon--html svg[data-v-5a88e420],.icon--img[data-v-5a88e420],.icon--img svg[data-v-5a88e420],.icon--indd[data-v-5a88e420],.icon--indd svg[data-v-5a88e420],.icon--key[data-v-5a88e420],.icon--key svg[data-v-5a88e420],.icon--merlin[data-v-5a88e420],.icon--merlin svg[data-v-5a88e420]{width:20px;height:26px}.icon--net[data-v-5a88e420],.icon--net svg[data-v-5a88e420]{width:26px;height:21px}.icon--numbers[data-v-5a88e420],.icon--numbers svg[data-v-5a88e420],.icon--pages[data-v-5a88e420],.icon--pages svg[data-v-5a88e420],.icon--pdf[data-v-5a88e420],.icon--pdf svg[data-v-5a88e420],.icon--ppt[data-v-5a88e420],.icon--ppt svg[data-v-5a88e420],.icon--psd[data-v-5a88e420],.icon--psd svg[data-v-5a88e420]{width:20px;height:26px}.icon--site[data-v-5a88e420],.icon--site svg[data-v-5a88e420]{width:26px;height:21px}.icon--slide[data-v-5a88e420],.icon--slide svg[data-v-5a88e420],.icon--snd[data-v-5a88e420],.icon--snd svg[data-v-5a88e420],.icon--sql[data-v-5a88e420],.icon--sql svg[data-v-5a88e420],.icon--swf[data-v-5a88e420],.icon--swf svg[data-v-5a88e420],.icon--txt[data-v-5a88e420],.icon--txt svg[data-v-5a88e420],.icon--vid[data-v-5a88e420],.icon--vid svg[data-v-5a88e420],.icon--xls[data-v-5a88e420],.icon--xls svg[data-v-5a88e420],.icon--zip[data-v-5a88e420],.icon--zip svg[data-v-5a88e420]{width:20px;height:26px}.container[data-v-5a88e420]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-5a88e420]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-5a88e420]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-5a88e420]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-5a88e420]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-5a88e420]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-5a88e420]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-5a88e420]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-5a88e420]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-5a88e420]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-5a88e420]{width:auto}}.revaccordion__scroller[data-v-5a88e420]{height:100%;overflow:hidden;overflow-y:auto;max-height:165px;margin:-12px -20px}.revaccordion__list[data-v-5a88e420]{padding:12px 20px}.revaccordion__item[data-v-5a88e420]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:no-wrap;flex-wrap:no-wrap;color:#8c8c8c;padding:7.5px 20px;cursor:pointer;margin-left:-20px;margin-right:-20px}.revaccordion__item[data-v-5a88e420]:hover{color:#262626;background:#f2f2f2}.revaccordion__author[data-v-5a88e420]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.revaccordion__datetime[data-v-5a88e420]{color:#3278b8;white-space:nowrap;overflow:hidden}.icon--add[data-v-40868c5c],.icon--add svg[data-v-40868c5c]{width:10px;height:10px}.icon--arrow-external[data-v-40868c5c],.icon--arrow-external svg[data-v-40868c5c]{width:8px;height:8px}.icon--arrow-sort[data-v-40868c5c],.icon--arrow-sort svg[data-v-40868c5c]{width:9px;height:11px}.icon--check[data-v-40868c5c],.icon--check svg[data-v-40868c5c]{width:11px;height:11px}.icon--close_icon[data-v-40868c5c],.icon--close_icon svg[data-v-40868c5c]{width:10px;height:10px}.icon--close_modal[data-v-40868c5c],.icon--close_modal svg[data-v-40868c5c]{width:16px;height:16px}.icon--colors[data-v-40868c5c],.icon--colors svg[data-v-40868c5c]{width:17px;height:17px}.icon--content-editor[data-v-40868c5c],.icon--content-editor svg[data-v-40868c5c]{width:14px;height:13px}.icon--crop[data-v-40868c5c],.icon--crop svg[data-v-40868c5c]{width:16px;height:18px}.icon--download[data-v-40868c5c],.icon--download svg[data-v-40868c5c]{width:12px;height:16px}.icon--drag[data-v-40868c5c],.icon--drag svg[data-v-40868c5c]{width:8px;height:17px}.icon--dropdown_default[data-v-40868c5c],.icon--dropdown_default svg[data-v-40868c5c]{width:9px;height:5px}.icon--dropdown_module[data-v-40868c5c],.icon--dropdown_module svg[data-v-40868c5c]{width:10px;height:6px}.icon--edit[data-v-40868c5c],.icon--edit svg[data-v-40868c5c]{width:13px;height:13px}.icon--edit_large[data-v-40868c5c],.icon--edit_large svg[data-v-40868c5c]{width:14px;height:14px}.icon--editor[data-v-40868c5c],.icon--editor svg[data-v-40868c5c]{width:14px;height:13px}.icon--expand[data-v-40868c5c],.icon--expand svg[data-v-40868c5c]{width:10px;height:10px}.icon--fix-grid[data-v-40868c5c],.icon--fix-grid svg[data-v-40868c5c]{width:18px;height:14px}.icon--flex-grid[data-v-40868c5c],.icon--flex-grid svg[data-v-40868c5c]{width:18px;height:17px}.icon--google-sign-in[data-v-40868c5c],.icon--google-sign-in svg[data-v-40868c5c]{width:23px;height:24px}.icon--image-text[data-v-40868c5c],.icon--image-text svg[data-v-40868c5c]{width:30px;height:13px}.icon--image[data-v-40868c5c],.icon--image svg[data-v-40868c5c]{width:19px;height:15px}.icon--info[data-v-40868c5c],.icon--info svg[data-v-40868c5c]{width:21px;height:21px}.icon--location[data-v-40868c5c],.icon--location svg[data-v-40868c5c]{width:12px;height:16px}.icon--media-grid[data-v-40868c5c],.icon--media-grid svg[data-v-40868c5c]{width:12px;height:12px}.icon--media-list[data-v-40868c5c],.icon--media-list svg[data-v-40868c5c]{width:16px;height:10px}.icon--more-dots[data-v-40868c5c],.icon--more-dots svg[data-v-40868c5c]{width:14px;height:4px}.icon--pagination_left[data-v-40868c5c],.icon--pagination_left svg[data-v-40868c5c],.icon--pagination_right[data-v-40868c5c],.icon--pagination_right svg[data-v-40868c5c]{width:9px;height:15px}.icon--preferences[data-v-40868c5c],.icon--preferences svg[data-v-40868c5c]{width:26px;height:16px}.icon--preview-desktop[data-v-40868c5c],.icon--preview-desktop svg[data-v-40868c5c]{width:39px;height:30px}.icon--preview-mobile[data-v-40868c5c],.icon--preview-mobile svg[data-v-40868c5c]{width:12px;height:18px}.icon--preview-tablet-h[data-v-40868c5c],.icon--preview-tablet-h svg[data-v-40868c5c]{width:27px;height:20px}.icon--preview-tablet-v[data-v-40868c5c],.icon--preview-tablet-v svg[data-v-40868c5c]{width:20px;height:27px}.icon--preview[data-v-40868c5c],.icon--preview svg[data-v-40868c5c]{width:22px;height:14px}.icon--publish[data-v-40868c5c],.icon--publish svg[data-v-40868c5c]{width:22px;height:15px}.icon--quote[data-v-40868c5c],.icon--quote svg[data-v-40868c5c]{width:16px;height:13px}.icon--revision-compare[data-v-40868c5c],.icon--revision-compare svg[data-v-40868c5c],.icon--revision-single[data-v-40868c5c],.icon--revision-single svg[data-v-40868c5c]{width:23px;height:16px}.icon--search[data-v-40868c5c],.icon--search svg[data-v-40868c5c]{width:20px;height:20px}.icon--slideshow[data-v-40868c5c],.icon--slideshow svg[data-v-40868c5c]{width:20px;height:16px}.icon--star-feature[data-v-40868c5c],.icon--star-feature_active[data-v-40868c5c],.icon--star-feature_active svg[data-v-40868c5c],.icon--star-feature svg[data-v-40868c5c]{width:20px;height:19px}.icon--text-2col[data-v-40868c5c],.icon--text-2col svg[data-v-40868c5c]{width:26px;height:13px}.icon--text[data-v-40868c5c],.icon--text svg[data-v-40868c5c]{width:17px;height:13px}.icon--trash[data-v-40868c5c],.icon--trash svg[data-v-40868c5c]{width:15px;height:17px}.icon--video[data-v-40868c5c],.icon--video svg[data-v-40868c5c]{width:23px;height:23px}.icon--website[data-v-40868c5c],.icon--website svg[data-v-40868c5c]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-40868c5c],.icon--wysiwyg_anchor svg[data-v-40868c5c]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-40868c5c],.icon--wysiwyg_bold svg[data-v-40868c5c]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-40868c5c],.icon--wysiwyg_header-2[data-v-40868c5c],.icon--wysiwyg_header-3 svg[data-v-40868c5c],.icon--wysiwyg_header-3[data-v-40868c5c],.icon--wysiwyg_header-4 svg[data-v-40868c5c],.icon--wysiwyg_header-4[data-v-40868c5c],.icon--wysiwyg_header-5 svg[data-v-40868c5c],.icon--wysiwyg_header-5[data-v-40868c5c],.icon--wysiwyg_header-6 svg[data-v-40868c5c],.icon--wysiwyg_header-6[data-v-40868c5c],.icon--wysiwyg_header[data-v-40868c5c],.icon--wysiwyg_header svg[data-v-40868c5c]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-40868c5c],.icon--wysiwyg_italic svg[data-v-40868c5c]{width:10px;height:13px}.icon--wysiwyg_link[data-v-40868c5c],.icon--wysiwyg_link svg[data-v-40868c5c]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-40868c5c],.icon--wysiwyg_underline svg[data-v-40868c5c]{width:12px;height:13px}.icon--ae[data-v-40868c5c],.icon--ae svg[data-v-40868c5c],.icon--ai[data-v-40868c5c],.icon--ai svg[data-v-40868c5c],.icon--ase[data-v-40868c5c],.icon--ase svg[data-v-40868c5c]{width:20px;height:26px}.icon--cut[data-v-40868c5c],.icon--cut svg[data-v-40868c5c],.icon--dir[data-v-40868c5c],.icon--dir_protected[data-v-40868c5c],.icon--dir_protected svg[data-v-40868c5c],.icon--dir_shared[data-v-40868c5c],.icon--dir_shared svg[data-v-40868c5c],.icon--dir svg[data-v-40868c5c]{width:26px;height:21px}.icon--dmg[data-v-40868c5c],.icon--dmg svg[data-v-40868c5c],.icon--doc[data-v-40868c5c],.icon--doc svg[data-v-40868c5c],.icon--eps[data-v-40868c5c],.icon--eps svg[data-v-40868c5c],.icon--fla[data-v-40868c5c],.icon--fla svg[data-v-40868c5c],.icon--fnt[data-v-40868c5c],.icon--fnt svg[data-v-40868c5c],.icon--gen[data-v-40868c5c],.icon--gen svg[data-v-40868c5c],.icon--html[data-v-40868c5c],.icon--html svg[data-v-40868c5c],.icon--img[data-v-40868c5c],.icon--img svg[data-v-40868c5c],.icon--indd[data-v-40868c5c],.icon--indd svg[data-v-40868c5c],.icon--key[data-v-40868c5c],.icon--key svg[data-v-40868c5c],.icon--merlin[data-v-40868c5c],.icon--merlin svg[data-v-40868c5c]{width:20px;height:26px}.icon--net[data-v-40868c5c],.icon--net svg[data-v-40868c5c]{width:26px;height:21px}.icon--numbers[data-v-40868c5c],.icon--numbers svg[data-v-40868c5c],.icon--pages[data-v-40868c5c],.icon--pages svg[data-v-40868c5c],.icon--pdf[data-v-40868c5c],.icon--pdf svg[data-v-40868c5c],.icon--ppt[data-v-40868c5c],.icon--ppt svg[data-v-40868c5c],.icon--psd[data-v-40868c5c],.icon--psd svg[data-v-40868c5c]{width:20px;height:26px}.icon--site[data-v-40868c5c],.icon--site svg[data-v-40868c5c]{width:26px;height:21px}.icon--slide[data-v-40868c5c],.icon--slide svg[data-v-40868c5c],.icon--snd[data-v-40868c5c],.icon--snd svg[data-v-40868c5c],.icon--sql[data-v-40868c5c],.icon--sql svg[data-v-40868c5c],.icon--swf[data-v-40868c5c],.icon--swf svg[data-v-40868c5c],.icon--txt[data-v-40868c5c],.icon--txt svg[data-v-40868c5c],.icon--vid[data-v-40868c5c],.icon--vid svg[data-v-40868c5c],.icon--xls[data-v-40868c5c],.icon--xls svg[data-v-40868c5c],.icon--zip[data-v-40868c5c],.icon--zip svg[data-v-40868c5c]{width:20px;height:26px}.container[data-v-40868c5c]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-40868c5c]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-40868c5c]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-40868c5c]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-40868c5c]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-40868c5c]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-40868c5c]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-40868c5c]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-40868c5c]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-40868c5c]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-40868c5c]{width:auto}}.multibutton[data-v-40868c5c]{height:40px;position:relative;display:block}.multibutton .dropdown[data-v-40868c5c]{display:-webkit-box;display:-ms-flexbox;display:flex}.multibutton .dropdown>button[data-v-40868c5c]:first-child{display:block;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.multibutton .dropdown__content[data-v-40868c5c]{max-width:100%;width:100%}.multibutton__trigger[data-v-40868c5c]{background-color:transparent;-webkit-appearance:none;cursor:pointer;font-size:1em;outline:none;margin:0;border:0 none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:inherit;height:40px;line-height:40px;text-align:center;border-top-right-radius:2px;border-bottom-right-radius:2px;border-top-left-radius:0;border-bottom-left-radius:0;background:#1d9f3c;color:#fff;margin-left:-2px;border-left:1px solid #1a8f36;padding:0 10px;-webkit-transition:color .2s linear,border-color .2s linear,background-color .2s linear;transition:color .2s linear,border-color .2s linear,background-color .2s linear}.multibutton__trigger[data-v-40868c5c]:focus,.multibutton__trigger[data-v-40868c5c]:hover{background:#1a8f36}.multibutton__trigger .icon[data-v-40868c5c]{color:#fff;position:relative;top:-3px}.icon--add[data-v-6d7750c6],.icon--add svg[data-v-6d7750c6]{width:10px;height:10px}.icon--arrow-external[data-v-6d7750c6],.icon--arrow-external svg[data-v-6d7750c6]{width:8px;height:8px}.icon--arrow-sort[data-v-6d7750c6],.icon--arrow-sort svg[data-v-6d7750c6]{width:9px;height:11px}.icon--check[data-v-6d7750c6],.icon--check svg[data-v-6d7750c6]{width:11px;height:11px}.icon--close_icon[data-v-6d7750c6],.icon--close_icon svg[data-v-6d7750c6]{width:10px;height:10px}.icon--close_modal[data-v-6d7750c6],.icon--close_modal svg[data-v-6d7750c6]{width:16px;height:16px}.icon--colors[data-v-6d7750c6],.icon--colors svg[data-v-6d7750c6]{width:17px;height:17px}.icon--content-editor[data-v-6d7750c6],.icon--content-editor svg[data-v-6d7750c6]{width:14px;height:13px}.icon--crop[data-v-6d7750c6],.icon--crop svg[data-v-6d7750c6]{width:16px;height:18px}.icon--download[data-v-6d7750c6],.icon--download svg[data-v-6d7750c6]{width:12px;height:16px}.icon--drag[data-v-6d7750c6],.icon--drag svg[data-v-6d7750c6]{width:8px;height:17px}.icon--dropdown_default[data-v-6d7750c6],.icon--dropdown_default svg[data-v-6d7750c6]{width:9px;height:5px}.icon--dropdown_module[data-v-6d7750c6],.icon--dropdown_module svg[data-v-6d7750c6]{width:10px;height:6px}.icon--edit[data-v-6d7750c6],.icon--edit svg[data-v-6d7750c6]{width:13px;height:13px}.icon--edit_large[data-v-6d7750c6],.icon--edit_large svg[data-v-6d7750c6]{width:14px;height:14px}.icon--editor[data-v-6d7750c6],.icon--editor svg[data-v-6d7750c6]{width:14px;height:13px}.icon--expand[data-v-6d7750c6],.icon--expand svg[data-v-6d7750c6]{width:10px;height:10px}.icon--fix-grid[data-v-6d7750c6],.icon--fix-grid svg[data-v-6d7750c6]{width:18px;height:14px}.icon--flex-grid[data-v-6d7750c6],.icon--flex-grid svg[data-v-6d7750c6]{width:18px;height:17px}.icon--google-sign-in[data-v-6d7750c6],.icon--google-sign-in svg[data-v-6d7750c6]{width:23px;height:24px}.icon--image-text[data-v-6d7750c6],.icon--image-text svg[data-v-6d7750c6]{width:30px;height:13px}.icon--image[data-v-6d7750c6],.icon--image svg[data-v-6d7750c6]{width:19px;height:15px}.icon--info[data-v-6d7750c6],.icon--info svg[data-v-6d7750c6]{width:21px;height:21px}.icon--location[data-v-6d7750c6],.icon--location svg[data-v-6d7750c6]{width:12px;height:16px}.icon--media-grid[data-v-6d7750c6],.icon--media-grid svg[data-v-6d7750c6]{width:12px;height:12px}.icon--media-list[data-v-6d7750c6],.icon--media-list svg[data-v-6d7750c6]{width:16px;height:10px}.icon--more-dots[data-v-6d7750c6],.icon--more-dots svg[data-v-6d7750c6]{width:14px;height:4px}.icon--pagination_left[data-v-6d7750c6],.icon--pagination_left svg[data-v-6d7750c6],.icon--pagination_right[data-v-6d7750c6],.icon--pagination_right svg[data-v-6d7750c6]{width:9px;height:15px}.icon--preferences[data-v-6d7750c6],.icon--preferences svg[data-v-6d7750c6]{width:26px;height:16px}.icon--preview-desktop[data-v-6d7750c6],.icon--preview-desktop svg[data-v-6d7750c6]{width:39px;height:30px}.icon--preview-mobile[data-v-6d7750c6],.icon--preview-mobile svg[data-v-6d7750c6]{width:12px;height:18px}.icon--preview-tablet-h[data-v-6d7750c6],.icon--preview-tablet-h svg[data-v-6d7750c6]{width:27px;height:20px}.icon--preview-tablet-v[data-v-6d7750c6],.icon--preview-tablet-v svg[data-v-6d7750c6]{width:20px;height:27px}.icon--preview[data-v-6d7750c6],.icon--preview svg[data-v-6d7750c6]{width:22px;height:14px}.icon--publish[data-v-6d7750c6],.icon--publish svg[data-v-6d7750c6]{width:22px;height:15px}.icon--quote[data-v-6d7750c6],.icon--quote svg[data-v-6d7750c6]{width:16px;height:13px}.icon--revision-compare[data-v-6d7750c6],.icon--revision-compare svg[data-v-6d7750c6],.icon--revision-single[data-v-6d7750c6],.icon--revision-single svg[data-v-6d7750c6]{width:23px;height:16px}.icon--search[data-v-6d7750c6],.icon--search svg[data-v-6d7750c6]{width:20px;height:20px}.icon--slideshow[data-v-6d7750c6],.icon--slideshow svg[data-v-6d7750c6]{width:20px;height:16px}.icon--star-feature[data-v-6d7750c6],.icon--star-feature_active[data-v-6d7750c6],.icon--star-feature_active svg[data-v-6d7750c6],.icon--star-feature svg[data-v-6d7750c6]{width:20px;height:19px}.icon--text-2col[data-v-6d7750c6],.icon--text-2col svg[data-v-6d7750c6]{width:26px;height:13px}.icon--text[data-v-6d7750c6],.icon--text svg[data-v-6d7750c6]{width:17px;height:13px}.icon--trash[data-v-6d7750c6],.icon--trash svg[data-v-6d7750c6]{width:15px;height:17px}.icon--video[data-v-6d7750c6],.icon--video svg[data-v-6d7750c6]{width:23px;height:23px}.icon--website[data-v-6d7750c6],.icon--website svg[data-v-6d7750c6]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-6d7750c6],.icon--wysiwyg_anchor svg[data-v-6d7750c6]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-6d7750c6],.icon--wysiwyg_bold svg[data-v-6d7750c6]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-6d7750c6],.icon--wysiwyg_header-2[data-v-6d7750c6],.icon--wysiwyg_header-3 svg[data-v-6d7750c6],.icon--wysiwyg_header-3[data-v-6d7750c6],.icon--wysiwyg_header-4 svg[data-v-6d7750c6],.icon--wysiwyg_header-4[data-v-6d7750c6],.icon--wysiwyg_header-5 svg[data-v-6d7750c6],.icon--wysiwyg_header-5[data-v-6d7750c6],.icon--wysiwyg_header-6 svg[data-v-6d7750c6],.icon--wysiwyg_header-6[data-v-6d7750c6],.icon--wysiwyg_header[data-v-6d7750c6],.icon--wysiwyg_header svg[data-v-6d7750c6]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-6d7750c6],.icon--wysiwyg_italic svg[data-v-6d7750c6]{width:10px;height:13px}.icon--wysiwyg_link[data-v-6d7750c6],.icon--wysiwyg_link svg[data-v-6d7750c6]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-6d7750c6],.icon--wysiwyg_underline svg[data-v-6d7750c6]{width:12px;height:13px}.icon--ae[data-v-6d7750c6],.icon--ae svg[data-v-6d7750c6],.icon--ai[data-v-6d7750c6],.icon--ai svg[data-v-6d7750c6],.icon--ase[data-v-6d7750c6],.icon--ase svg[data-v-6d7750c6]{width:20px;height:26px}.icon--cut[data-v-6d7750c6],.icon--cut svg[data-v-6d7750c6],.icon--dir[data-v-6d7750c6],.icon--dir_protected[data-v-6d7750c6],.icon--dir_protected svg[data-v-6d7750c6],.icon--dir_shared[data-v-6d7750c6],.icon--dir_shared svg[data-v-6d7750c6],.icon--dir svg[data-v-6d7750c6]{width:26px;height:21px}.icon--dmg[data-v-6d7750c6],.icon--dmg svg[data-v-6d7750c6],.icon--doc[data-v-6d7750c6],.icon--doc svg[data-v-6d7750c6],.icon--eps[data-v-6d7750c6],.icon--eps svg[data-v-6d7750c6],.icon--fla[data-v-6d7750c6],.icon--fla svg[data-v-6d7750c6],.icon--fnt[data-v-6d7750c6],.icon--fnt svg[data-v-6d7750c6],.icon--gen[data-v-6d7750c6],.icon--gen svg[data-v-6d7750c6],.icon--html[data-v-6d7750c6],.icon--html svg[data-v-6d7750c6],.icon--img[data-v-6d7750c6],.icon--img svg[data-v-6d7750c6],.icon--indd[data-v-6d7750c6],.icon--indd svg[data-v-6d7750c6],.icon--key[data-v-6d7750c6],.icon--key svg[data-v-6d7750c6],.icon--merlin[data-v-6d7750c6],.icon--merlin svg[data-v-6d7750c6]{width:20px;height:26px}.icon--net[data-v-6d7750c6],.icon--net svg[data-v-6d7750c6]{width:26px;height:21px}.icon--numbers[data-v-6d7750c6],.icon--numbers svg[data-v-6d7750c6],.icon--pages[data-v-6d7750c6],.icon--pages svg[data-v-6d7750c6],.icon--pdf[data-v-6d7750c6],.icon--pdf svg[data-v-6d7750c6],.icon--ppt[data-v-6d7750c6],.icon--ppt svg[data-v-6d7750c6],.icon--psd[data-v-6d7750c6],.icon--psd svg[data-v-6d7750c6]{width:20px;height:26px}.icon--site[data-v-6d7750c6],.icon--site svg[data-v-6d7750c6]{width:26px;height:21px}.icon--slide[data-v-6d7750c6],.icon--slide svg[data-v-6d7750c6],.icon--snd[data-v-6d7750c6],.icon--snd svg[data-v-6d7750c6],.icon--sql[data-v-6d7750c6],.icon--sql svg[data-v-6d7750c6],.icon--swf[data-v-6d7750c6],.icon--swf svg[data-v-6d7750c6],.icon--txt[data-v-6d7750c6],.icon--txt svg[data-v-6d7750c6],.icon--vid[data-v-6d7750c6],.icon--vid svg[data-v-6d7750c6],.icon--xls[data-v-6d7750c6],.icon--xls svg[data-v-6d7750c6],.icon--zip[data-v-6d7750c6],.icon--zip svg[data-v-6d7750c6]{width:20px;height:26px}.container[data-v-6d7750c6]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-6d7750c6]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-6d7750c6]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-6d7750c6]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-6d7750c6]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-6d7750c6]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-6d7750c6]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-6d7750c6]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-6d7750c6]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-6d7750c6]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-6d7750c6]{width:auto}}.publisher__wrapper[data-v-6d7750c6]{border-radius:2px;border:1px solid #e5e5e5;background:#fff;margin-bottom:20px}.publisher__trash[data-v-6d7750c6]{padding:0 10px;margin-bottom:20px}.publisher__item[data-v-6d7750c6]{border-bottom:1px solid #f2f2f2}.publisher__item[data-v-6d7750c6]:last-child{border-bottom:0 none}.publisher__item[data-v-6d7750c6]{color:#8c8c8c}.publisher__item a[data-v-6d7750c6]{color:#3278b8;text-decoration:none}.revisionaccordion__list[data-v-6d7750c6]{padding:20px}.publisher__link[data-v-6d7750c6]{height:55px;line-height:55px;padding:0 20px;display:block}.publisher__link .icon[data-v-6d7750c6]{margin-right:10px;color:#3278b8}.publisher__item--btns[data-v-6d7750c6]{padding:10px}.icon--add[data-v-761dbeaa],.icon--add svg[data-v-761dbeaa]{width:10px;height:10px}.icon--arrow-external[data-v-761dbeaa],.icon--arrow-external svg[data-v-761dbeaa]{width:8px;height:8px}.icon--arrow-sort[data-v-761dbeaa],.icon--arrow-sort svg[data-v-761dbeaa]{width:9px;height:11px}.icon--check[data-v-761dbeaa],.icon--check svg[data-v-761dbeaa]{width:11px;height:11px}.icon--close_icon[data-v-761dbeaa],.icon--close_icon svg[data-v-761dbeaa]{width:10px;height:10px}.icon--close_modal[data-v-761dbeaa],.icon--close_modal svg[data-v-761dbeaa]{width:16px;height:16px}.icon--colors[data-v-761dbeaa],.icon--colors svg[data-v-761dbeaa]{width:17px;height:17px}.icon--content-editor[data-v-761dbeaa],.icon--content-editor svg[data-v-761dbeaa]{width:14px;height:13px}.icon--crop[data-v-761dbeaa],.icon--crop svg[data-v-761dbeaa]{width:16px;height:18px}.icon--download[data-v-761dbeaa],.icon--download svg[data-v-761dbeaa]{width:12px;height:16px}.icon--drag[data-v-761dbeaa],.icon--drag svg[data-v-761dbeaa]{width:8px;height:17px}.icon--dropdown_default[data-v-761dbeaa],.icon--dropdown_default svg[data-v-761dbeaa]{width:9px;height:5px}.icon--dropdown_module[data-v-761dbeaa],.icon--dropdown_module svg[data-v-761dbeaa]{width:10px;height:6px}.icon--edit[data-v-761dbeaa],.icon--edit svg[data-v-761dbeaa]{width:13px;height:13px}.icon--edit_large[data-v-761dbeaa],.icon--edit_large svg[data-v-761dbeaa]{width:14px;height:14px}.icon--editor[data-v-761dbeaa],.icon--editor svg[data-v-761dbeaa]{width:14px;height:13px}.icon--expand[data-v-761dbeaa],.icon--expand svg[data-v-761dbeaa]{width:10px;height:10px}.icon--fix-grid[data-v-761dbeaa],.icon--fix-grid svg[data-v-761dbeaa]{width:18px;height:14px}.icon--flex-grid[data-v-761dbeaa],.icon--flex-grid svg[data-v-761dbeaa]{width:18px;height:17px}.icon--google-sign-in[data-v-761dbeaa],.icon--google-sign-in svg[data-v-761dbeaa]{width:23px;height:24px}.icon--image-text[data-v-761dbeaa],.icon--image-text svg[data-v-761dbeaa]{width:30px;height:13px}.icon--image[data-v-761dbeaa],.icon--image svg[data-v-761dbeaa]{width:19px;height:15px}.icon--info[data-v-761dbeaa],.icon--info svg[data-v-761dbeaa]{width:21px;height:21px}.icon--location[data-v-761dbeaa],.icon--location svg[data-v-761dbeaa]{width:12px;height:16px}.icon--media-grid[data-v-761dbeaa],.icon--media-grid svg[data-v-761dbeaa]{width:12px;height:12px}.icon--media-list[data-v-761dbeaa],.icon--media-list svg[data-v-761dbeaa]{width:16px;height:10px}.icon--more-dots[data-v-761dbeaa],.icon--more-dots svg[data-v-761dbeaa]{width:14px;height:4px}.icon--pagination_left[data-v-761dbeaa],.icon--pagination_left svg[data-v-761dbeaa],.icon--pagination_right[data-v-761dbeaa],.icon--pagination_right svg[data-v-761dbeaa]{width:9px;height:15px}.icon--preferences[data-v-761dbeaa],.icon--preferences svg[data-v-761dbeaa]{width:26px;height:16px}.icon--preview-desktop[data-v-761dbeaa],.icon--preview-desktop svg[data-v-761dbeaa]{width:39px;height:30px}.icon--preview-mobile[data-v-761dbeaa],.icon--preview-mobile svg[data-v-761dbeaa]{width:12px;height:18px}.icon--preview-tablet-h[data-v-761dbeaa],.icon--preview-tablet-h svg[data-v-761dbeaa]{width:27px;height:20px}.icon--preview-tablet-v[data-v-761dbeaa],.icon--preview-tablet-v svg[data-v-761dbeaa]{width:20px;height:27px}.icon--preview[data-v-761dbeaa],.icon--preview svg[data-v-761dbeaa]{width:22px;height:14px}.icon--publish[data-v-761dbeaa],.icon--publish svg[data-v-761dbeaa]{width:22px;height:15px}.icon--quote[data-v-761dbeaa],.icon--quote svg[data-v-761dbeaa]{width:16px;height:13px}.icon--revision-compare[data-v-761dbeaa],.icon--revision-compare svg[data-v-761dbeaa],.icon--revision-single[data-v-761dbeaa],.icon--revision-single svg[data-v-761dbeaa]{width:23px;height:16px}.icon--search[data-v-761dbeaa],.icon--search svg[data-v-761dbeaa]{width:20px;height:20px}.icon--slideshow[data-v-761dbeaa],.icon--slideshow svg[data-v-761dbeaa]{width:20px;height:16px}.icon--star-feature[data-v-761dbeaa],.icon--star-feature_active[data-v-761dbeaa],.icon--star-feature_active svg[data-v-761dbeaa],.icon--star-feature svg[data-v-761dbeaa]{width:20px;height:19px}.icon--text-2col[data-v-761dbeaa],.icon--text-2col svg[data-v-761dbeaa]{width:26px;height:13px}.icon--text[data-v-761dbeaa],.icon--text svg[data-v-761dbeaa]{width:17px;height:13px}.icon--trash[data-v-761dbeaa],.icon--trash svg[data-v-761dbeaa]{width:15px;height:17px}.icon--video[data-v-761dbeaa],.icon--video svg[data-v-761dbeaa]{width:23px;height:23px}.icon--website[data-v-761dbeaa],.icon--website svg[data-v-761dbeaa]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-761dbeaa],.icon--wysiwyg_anchor svg[data-v-761dbeaa]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-761dbeaa],.icon--wysiwyg_bold svg[data-v-761dbeaa]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-761dbeaa],.icon--wysiwyg_header-2[data-v-761dbeaa],.icon--wysiwyg_header-3 svg[data-v-761dbeaa],.icon--wysiwyg_header-3[data-v-761dbeaa],.icon--wysiwyg_header-4 svg[data-v-761dbeaa],.icon--wysiwyg_header-4[data-v-761dbeaa],.icon--wysiwyg_header-5 svg[data-v-761dbeaa],.icon--wysiwyg_header-5[data-v-761dbeaa],.icon--wysiwyg_header-6 svg[data-v-761dbeaa],.icon--wysiwyg_header-6[data-v-761dbeaa],.icon--wysiwyg_header[data-v-761dbeaa],.icon--wysiwyg_header svg[data-v-761dbeaa]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-761dbeaa],.icon--wysiwyg_italic svg[data-v-761dbeaa]{width:10px;height:13px}.icon--wysiwyg_link[data-v-761dbeaa],.icon--wysiwyg_link svg[data-v-761dbeaa]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-761dbeaa],.icon--wysiwyg_underline svg[data-v-761dbeaa]{width:12px;height:13px}.icon--ae[data-v-761dbeaa],.icon--ae svg[data-v-761dbeaa],.icon--ai[data-v-761dbeaa],.icon--ai svg[data-v-761dbeaa],.icon--ase[data-v-761dbeaa],.icon--ase svg[data-v-761dbeaa]{width:20px;height:26px}.icon--cut[data-v-761dbeaa],.icon--cut svg[data-v-761dbeaa],.icon--dir[data-v-761dbeaa],.icon--dir_protected[data-v-761dbeaa],.icon--dir_protected svg[data-v-761dbeaa],.icon--dir_shared[data-v-761dbeaa],.icon--dir_shared svg[data-v-761dbeaa],.icon--dir svg[data-v-761dbeaa]{width:26px;height:21px}.icon--dmg[data-v-761dbeaa],.icon--dmg svg[data-v-761dbeaa],.icon--doc[data-v-761dbeaa],.icon--doc svg[data-v-761dbeaa],.icon--eps[data-v-761dbeaa],.icon--eps svg[data-v-761dbeaa],.icon--fla[data-v-761dbeaa],.icon--fla svg[data-v-761dbeaa],.icon--fnt[data-v-761dbeaa],.icon--fnt svg[data-v-761dbeaa],.icon--gen[data-v-761dbeaa],.icon--gen svg[data-v-761dbeaa],.icon--html[data-v-761dbeaa],.icon--html svg[data-v-761dbeaa],.icon--img[data-v-761dbeaa],.icon--img svg[data-v-761dbeaa],.icon--indd[data-v-761dbeaa],.icon--indd svg[data-v-761dbeaa],.icon--key[data-v-761dbeaa],.icon--key svg[data-v-761dbeaa],.icon--merlin[data-v-761dbeaa],.icon--merlin svg[data-v-761dbeaa]{width:20px;height:26px}.icon--net[data-v-761dbeaa],.icon--net svg[data-v-761dbeaa]{width:26px;height:21px}.icon--numbers[data-v-761dbeaa],.icon--numbers svg[data-v-761dbeaa],.icon--pages[data-v-761dbeaa],.icon--pages svg[data-v-761dbeaa],.icon--pdf[data-v-761dbeaa],.icon--pdf svg[data-v-761dbeaa],.icon--ppt[data-v-761dbeaa],.icon--ppt svg[data-v-761dbeaa],.icon--psd[data-v-761dbeaa],.icon--psd svg[data-v-761dbeaa]{width:20px;height:26px}.icon--site[data-v-761dbeaa],.icon--site svg[data-v-761dbeaa]{width:26px;height:21px}.icon--slide[data-v-761dbeaa],.icon--slide svg[data-v-761dbeaa],.icon--snd[data-v-761dbeaa],.icon--snd svg[data-v-761dbeaa],.icon--sql[data-v-761dbeaa],.icon--sql svg[data-v-761dbeaa],.icon--swf[data-v-761dbeaa],.icon--swf svg[data-v-761dbeaa],.icon--txt[data-v-761dbeaa],.icon--txt svg[data-v-761dbeaa],.icon--vid[data-v-761dbeaa],.icon--vid svg[data-v-761dbeaa],.icon--xls[data-v-761dbeaa],.icon--xls svg[data-v-761dbeaa],.icon--zip[data-v-761dbeaa],.icon--zip svg[data-v-761dbeaa]{width:20px;height:26px}.container[data-v-761dbeaa]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-761dbeaa]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-761dbeaa]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-761dbeaa]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-761dbeaa]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-761dbeaa]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-761dbeaa]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-761dbeaa]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-761dbeaa]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-761dbeaa]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-761dbeaa]{width:auto}}.pagenav[data-v-761dbeaa]{border-radius:2px;border:1px solid #e5e5e5;background:#fff;margin-bottom:20px}.pagenav__form[data-v-761dbeaa]{padding:0 20px 20px 20px;margin-top:-15px}.pagenav__nav[data-v-761dbeaa]{display:-webkit-box;display:-ms-flexbox;display:flex}.pagenav__form+.pagenav__nav .pagenav__btn[data-v-761dbeaa]{border-top:1px solid #f2f2f2}.pagenav__btn[data-v-761dbeaa]{border-right:1px solid #f2f2f2;padding:0 20px;-webkit-box-flex:1;-ms-flex:1 0 0px;flex:1 0 0px;overflow:hidden;height:48px;line-height:48px;text-decoration:none;color:#8c8c8c;opacity:.5}.pagenav__btn[data-v-761dbeaa]:last-child{border-right:0 none}a.pagenav__btn[data-v-761dbeaa]{opacity:1}a.pagenav__btn[data-v-761dbeaa]:focus,a.pagenav__btn[data-v-761dbeaa]:hover{color:#262626;background:#fbfbfb}.pagenav__btn+.pagenav__btn[data-v-761dbeaa]{text-align:right}.icon--add[data-v-751399b0],.icon--add svg[data-v-751399b0]{width:10px;height:10px}.icon--arrow-external[data-v-751399b0],.icon--arrow-external svg[data-v-751399b0]{width:8px;height:8px}.icon--arrow-sort[data-v-751399b0],.icon--arrow-sort svg[data-v-751399b0]{width:9px;height:11px}.icon--check[data-v-751399b0],.icon--check svg[data-v-751399b0]{width:11px;height:11px}.icon--close_icon[data-v-751399b0],.icon--close_icon svg[data-v-751399b0]{width:10px;height:10px}.icon--close_modal[data-v-751399b0],.icon--close_modal svg[data-v-751399b0]{width:16px;height:16px}.icon--colors[data-v-751399b0],.icon--colors svg[data-v-751399b0]{width:17px;height:17px}.icon--content-editor[data-v-751399b0],.icon--content-editor svg[data-v-751399b0]{width:14px;height:13px}.icon--crop[data-v-751399b0],.icon--crop svg[data-v-751399b0]{width:16px;height:18px}.icon--download[data-v-751399b0],.icon--download svg[data-v-751399b0]{width:12px;height:16px}.icon--drag[data-v-751399b0],.icon--drag svg[data-v-751399b0]{width:8px;height:17px}.icon--dropdown_default[data-v-751399b0],.icon--dropdown_default svg[data-v-751399b0]{width:9px;height:5px}.icon--dropdown_module[data-v-751399b0],.icon--dropdown_module svg[data-v-751399b0]{width:10px;height:6px}.icon--edit[data-v-751399b0],.icon--edit svg[data-v-751399b0]{width:13px;height:13px}.icon--edit_large[data-v-751399b0],.icon--edit_large svg[data-v-751399b0]{width:14px;height:14px}.icon--editor[data-v-751399b0],.icon--editor svg[data-v-751399b0]{width:14px;height:13px}.icon--expand[data-v-751399b0],.icon--expand svg[data-v-751399b0]{width:10px;height:10px}.icon--fix-grid[data-v-751399b0],.icon--fix-grid svg[data-v-751399b0]{width:18px;height:14px}.icon--flex-grid[data-v-751399b0],.icon--flex-grid svg[data-v-751399b0]{width:18px;height:17px}.icon--google-sign-in[data-v-751399b0],.icon--google-sign-in svg[data-v-751399b0]{width:23px;height:24px}.icon--image-text[data-v-751399b0],.icon--image-text svg[data-v-751399b0]{width:30px;height:13px}.icon--image[data-v-751399b0],.icon--image svg[data-v-751399b0]{width:19px;height:15px}.icon--info[data-v-751399b0],.icon--info svg[data-v-751399b0]{width:21px;height:21px}.icon--location[data-v-751399b0],.icon--location svg[data-v-751399b0]{width:12px;height:16px}.icon--media-grid[data-v-751399b0],.icon--media-grid svg[data-v-751399b0]{width:12px;height:12px}.icon--media-list[data-v-751399b0],.icon--media-list svg[data-v-751399b0]{width:16px;height:10px}.icon--more-dots[data-v-751399b0],.icon--more-dots svg[data-v-751399b0]{width:14px;height:4px}.icon--pagination_left[data-v-751399b0],.icon--pagination_left svg[data-v-751399b0],.icon--pagination_right[data-v-751399b0],.icon--pagination_right svg[data-v-751399b0]{width:9px;height:15px}.icon--preferences[data-v-751399b0],.icon--preferences svg[data-v-751399b0]{width:26px;height:16px}.icon--preview-desktop[data-v-751399b0],.icon--preview-desktop svg[data-v-751399b0]{width:39px;height:30px}.icon--preview-mobile[data-v-751399b0],.icon--preview-mobile svg[data-v-751399b0]{width:12px;height:18px}.icon--preview-tablet-h[data-v-751399b0],.icon--preview-tablet-h svg[data-v-751399b0]{width:27px;height:20px}.icon--preview-tablet-v[data-v-751399b0],.icon--preview-tablet-v svg[data-v-751399b0]{width:20px;height:27px}.icon--preview[data-v-751399b0],.icon--preview svg[data-v-751399b0]{width:22px;height:14px}.icon--publish[data-v-751399b0],.icon--publish svg[data-v-751399b0]{width:22px;height:15px}.icon--quote[data-v-751399b0],.icon--quote svg[data-v-751399b0]{width:16px;height:13px}.icon--revision-compare[data-v-751399b0],.icon--revision-compare svg[data-v-751399b0],.icon--revision-single[data-v-751399b0],.icon--revision-single svg[data-v-751399b0]{width:23px;height:16px}.icon--search[data-v-751399b0],.icon--search svg[data-v-751399b0]{width:20px;height:20px}.icon--slideshow[data-v-751399b0],.icon--slideshow svg[data-v-751399b0]{width:20px;height:16px}.icon--star-feature[data-v-751399b0],.icon--star-feature_active[data-v-751399b0],.icon--star-feature_active svg[data-v-751399b0],.icon--star-feature svg[data-v-751399b0]{width:20px;height:19px}.icon--text-2col[data-v-751399b0],.icon--text-2col svg[data-v-751399b0]{width:26px;height:13px}.icon--text[data-v-751399b0],.icon--text svg[data-v-751399b0]{width:17px;height:13px}.icon--trash[data-v-751399b0],.icon--trash svg[data-v-751399b0]{width:15px;height:17px}.icon--video[data-v-751399b0],.icon--video svg[data-v-751399b0]{width:23px;height:23px}.icon--website[data-v-751399b0],.icon--website svg[data-v-751399b0]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-751399b0],.icon--wysiwyg_anchor svg[data-v-751399b0]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-751399b0],.icon--wysiwyg_bold svg[data-v-751399b0]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-751399b0],.icon--wysiwyg_header-2[data-v-751399b0],.icon--wysiwyg_header-3 svg[data-v-751399b0],.icon--wysiwyg_header-3[data-v-751399b0],.icon--wysiwyg_header-4 svg[data-v-751399b0],.icon--wysiwyg_header-4[data-v-751399b0],.icon--wysiwyg_header-5 svg[data-v-751399b0],.icon--wysiwyg_header-5[data-v-751399b0],.icon--wysiwyg_header-6 svg[data-v-751399b0],.icon--wysiwyg_header-6[data-v-751399b0],.icon--wysiwyg_header[data-v-751399b0],.icon--wysiwyg_header svg[data-v-751399b0]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-751399b0],.icon--wysiwyg_italic svg[data-v-751399b0]{width:10px;height:13px}.icon--wysiwyg_link[data-v-751399b0],.icon--wysiwyg_link svg[data-v-751399b0]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-751399b0],.icon--wysiwyg_underline svg[data-v-751399b0]{width:12px;height:13px}.icon--ae[data-v-751399b0],.icon--ae svg[data-v-751399b0],.icon--ai[data-v-751399b0],.icon--ai svg[data-v-751399b0],.icon--ase[data-v-751399b0],.icon--ase svg[data-v-751399b0]{width:20px;height:26px}.icon--cut[data-v-751399b0],.icon--cut svg[data-v-751399b0],.icon--dir[data-v-751399b0],.icon--dir_protected[data-v-751399b0],.icon--dir_protected svg[data-v-751399b0],.icon--dir_shared[data-v-751399b0],.icon--dir_shared svg[data-v-751399b0],.icon--dir svg[data-v-751399b0]{width:26px;height:21px}.icon--dmg[data-v-751399b0],.icon--dmg svg[data-v-751399b0],.icon--doc[data-v-751399b0],.icon--doc svg[data-v-751399b0],.icon--eps[data-v-751399b0],.icon--eps svg[data-v-751399b0],.icon--fla[data-v-751399b0],.icon--fla svg[data-v-751399b0],.icon--fnt[data-v-751399b0],.icon--fnt svg[data-v-751399b0],.icon--gen[data-v-751399b0],.icon--gen svg[data-v-751399b0],.icon--html[data-v-751399b0],.icon--html svg[data-v-751399b0],.icon--img[data-v-751399b0],.icon--img svg[data-v-751399b0],.icon--indd[data-v-751399b0],.icon--indd svg[data-v-751399b0],.icon--key[data-v-751399b0],.icon--key svg[data-v-751399b0],.icon--merlin[data-v-751399b0],.icon--merlin svg[data-v-751399b0]{width:20px;height:26px}.icon--net[data-v-751399b0],.icon--net svg[data-v-751399b0]{width:26px;height:21px}.icon--numbers[data-v-751399b0],.icon--numbers svg[data-v-751399b0],.icon--pages[data-v-751399b0],.icon--pages svg[data-v-751399b0],.icon--pdf[data-v-751399b0],.icon--pdf svg[data-v-751399b0],.icon--ppt[data-v-751399b0],.icon--ppt svg[data-v-751399b0],.icon--psd[data-v-751399b0],.icon--psd svg[data-v-751399b0]{width:20px;height:26px}.icon--site[data-v-751399b0],.icon--site svg[data-v-751399b0]{width:26px;height:21px}.icon--slide[data-v-751399b0],.icon--slide svg[data-v-751399b0],.icon--snd[data-v-751399b0],.icon--snd svg[data-v-751399b0],.icon--sql[data-v-751399b0],.icon--sql svg[data-v-751399b0],.icon--swf[data-v-751399b0],.icon--swf svg[data-v-751399b0],.icon--txt[data-v-751399b0],.icon--txt svg[data-v-751399b0],.icon--vid[data-v-751399b0],.icon--vid svg[data-v-751399b0],.icon--xls[data-v-751399b0],.icon--xls svg[data-v-751399b0],.icon--zip[data-v-751399b0],.icon--zip svg[data-v-751399b0]{width:20px;height:26px}.container[data-v-751399b0]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-751399b0]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-751399b0]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-751399b0]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-751399b0]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-751399b0]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-751399b0]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-751399b0]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-751399b0]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-751399b0]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-751399b0]{width:auto}}.block__content[data-v-751399b0]{display:none;padding:35px 15px;background:#fff}.block--open>.block__content[data-v-751399b0]{display:block}.block--open>.block__header[data-v-751399b0]{border-bottom:1px solid #f2f2f2}.block__header[data-v-751399b0]{height:50px;line-height:50px;background:#f4f9fd;padding:0 15px;position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;background-clip:padding-box}.block__handle[data-v-751399b0]{position:absolute;height:10px;width:40px;left:50%;top:50%;margin-left:-20px;margin-top:-5px;cursor:move;background:repeating-linear-gradient(180deg,#bfbfbf,#bfbfbf 2px,transparent 0,transparent 4px)}.block__handle[data-v-751399b0]:before{position:absolute;display:block;content:"";background:repeating-linear-gradient(90deg,#f4f9fd,#f4f9fd 2px,transparent 0,transparent 4px);width:100%;height:100%}.block__counter[data-v-751399b0]{border:1px solid #e5e5e5;border-radius:50%;height:26px;width:26px;text-align:center;display:inline-block;line-height:25px;margin-right:10px;background:#fff;color:#8c8c8c;-webkit-font-feature-settings:"kern";font-feature-settings:"kern";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default;margin-top:12px}.dropdown .block__counter[data-v-751399b0]{cursor:pointer}.dropdown--active .block__counter[data-v-751399b0],.dropdown .block__counter[data-v-751399b0]:hover{color:#262626;border-color:#262626}.block__title[data-v-751399b0]{font-weight:600;height:50px;line-height:50px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.block__toggle[data-v-751399b0]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.block__toggle .dropdown[data-v-751399b0]{display:inline-block}.block__actions[data-v-751399b0]{text-align:right;font-size:0;padding-top:12px;padding-bottom:12px}.block__actions>[data-v-751399b0]{margin-left:10px;font-size:15px}.block__actions .dropdown>button[data-v-751399b0],.block__actions .dropdown[data-v-751399b0],.block__actions>button[data-v-751399b0]{display:inline-block;vertical-align:top;height:26px}.block__actions button[data-action][data-v-751399b0]{display:none}.block__actions .dropdown--active button[data-action][data-v-751399b0]{display:inline-block}.block__header[data-v-751399b0]:hover{background:#eaf4fa}.block__header:hover .block__handle[data-v-751399b0]:before{background:repeating-linear-gradient(90deg,#eaf4fa,#eaf4fa 2px,transparent 0,transparent 4px)}.block--focus .block__header button[data-action][data-v-751399b0],.block__header:hover button[data-action][data-v-751399b0]{display:inline-block}.block__content>.browserField[data-v-751399b0],.block__content>.media[data-v-751399b0],.block__content>.slideshow[data-v-751399b0]{margin:-35px;border:0 none}.block--small .block__header[data-v-751399b0]{background:#fbfbfb}.block--small .block__header .block__handle[data-v-751399b0]{background:repeating-linear-gradient(180deg,#bfbfbf,#bfbfbf 2px,transparent 0,transparent 4px)}.block--small .block__header .block__handle[data-v-751399b0]:before{background:repeating-linear-gradient(90deg,#fbfbfb,#fbfbfb 2px,transparent 0,transparent 4px)}.block--small .block__header[data-v-751399b0]:hover{background:#f2f2f2}.block--small .block__header:hover .block__handle[data-v-751399b0]:before{background:repeating-linear-gradient(90deg,#f2f2f2,#f2f2f2 2px,transparent 0,transparent 4px)}.block--small .block__counter[data-v-751399b0]{display:none}.block .block__content .block__body>.browserField,.block .block__content .block__body>.media,.block .block__content .block__body>.slideshow{margin-left:-15px;margin-right:-15px;border:0 none}.block .block__content .block__body>.browserField:last-child,.block .block__content .block__body>.media:last-child,.block .block__content .block__body>.slideshow:last-child{margin-bottom:-15px}.icon--add[data-v-4165f148],.icon--add svg[data-v-4165f148]{width:10px;height:10px}.icon--arrow-external[data-v-4165f148],.icon--arrow-external svg[data-v-4165f148]{width:8px;height:8px}.icon--arrow-sort[data-v-4165f148],.icon--arrow-sort svg[data-v-4165f148]{width:9px;height:11px}.icon--check[data-v-4165f148],.icon--check svg[data-v-4165f148]{width:11px;height:11px}.icon--close_icon[data-v-4165f148],.icon--close_icon svg[data-v-4165f148]{width:10px;height:10px}.icon--close_modal[data-v-4165f148],.icon--close_modal svg[data-v-4165f148]{width:16px;height:16px}.icon--colors[data-v-4165f148],.icon--colors svg[data-v-4165f148]{width:17px;height:17px}.icon--content-editor[data-v-4165f148],.icon--content-editor svg[data-v-4165f148]{width:14px;height:13px}.icon--crop[data-v-4165f148],.icon--crop svg[data-v-4165f148]{width:16px;height:18px}.icon--download[data-v-4165f148],.icon--download svg[data-v-4165f148]{width:12px;height:16px}.icon--drag[data-v-4165f148],.icon--drag svg[data-v-4165f148]{width:8px;height:17px}.icon--dropdown_default[data-v-4165f148],.icon--dropdown_default svg[data-v-4165f148]{width:9px;height:5px}.icon--dropdown_module[data-v-4165f148],.icon--dropdown_module svg[data-v-4165f148]{width:10px;height:6px}.icon--edit[data-v-4165f148],.icon--edit svg[data-v-4165f148]{width:13px;height:13px}.icon--edit_large[data-v-4165f148],.icon--edit_large svg[data-v-4165f148]{width:14px;height:14px}.icon--editor[data-v-4165f148],.icon--editor svg[data-v-4165f148]{width:14px;height:13px}.icon--expand[data-v-4165f148],.icon--expand svg[data-v-4165f148]{width:10px;height:10px}.icon--fix-grid[data-v-4165f148],.icon--fix-grid svg[data-v-4165f148]{width:18px;height:14px}.icon--flex-grid[data-v-4165f148],.icon--flex-grid svg[data-v-4165f148]{width:18px;height:17px}.icon--google-sign-in[data-v-4165f148],.icon--google-sign-in svg[data-v-4165f148]{width:23px;height:24px}.icon--image-text[data-v-4165f148],.icon--image-text svg[data-v-4165f148]{width:30px;height:13px}.icon--image[data-v-4165f148],.icon--image svg[data-v-4165f148]{width:19px;height:15px}.icon--info[data-v-4165f148],.icon--info svg[data-v-4165f148]{width:21px;height:21px}.icon--location[data-v-4165f148],.icon--location svg[data-v-4165f148]{width:12px;height:16px}.icon--media-grid[data-v-4165f148],.icon--media-grid svg[data-v-4165f148]{width:12px;height:12px}.icon--media-list[data-v-4165f148],.icon--media-list svg[data-v-4165f148]{width:16px;height:10px}.icon--more-dots[data-v-4165f148],.icon--more-dots svg[data-v-4165f148]{width:14px;height:4px}.icon--pagination_left[data-v-4165f148],.icon--pagination_left svg[data-v-4165f148],.icon--pagination_right[data-v-4165f148],.icon--pagination_right svg[data-v-4165f148]{width:9px;height:15px}.icon--preferences[data-v-4165f148],.icon--preferences svg[data-v-4165f148]{width:26px;height:16px}.icon--preview-desktop[data-v-4165f148],.icon--preview-desktop svg[data-v-4165f148]{width:39px;height:30px}.icon--preview-mobile[data-v-4165f148],.icon--preview-mobile svg[data-v-4165f148]{width:12px;height:18px}.icon--preview-tablet-h[data-v-4165f148],.icon--preview-tablet-h svg[data-v-4165f148]{width:27px;height:20px}.icon--preview-tablet-v[data-v-4165f148],.icon--preview-tablet-v svg[data-v-4165f148]{width:20px;height:27px}.icon--preview[data-v-4165f148],.icon--preview svg[data-v-4165f148]{width:22px;height:14px}.icon--publish[data-v-4165f148],.icon--publish svg[data-v-4165f148]{width:22px;height:15px}.icon--quote[data-v-4165f148],.icon--quote svg[data-v-4165f148]{width:16px;height:13px}.icon--revision-compare[data-v-4165f148],.icon--revision-compare svg[data-v-4165f148],.icon--revision-single[data-v-4165f148],.icon--revision-single svg[data-v-4165f148]{width:23px;height:16px}.icon--search[data-v-4165f148],.icon--search svg[data-v-4165f148]{width:20px;height:20px}.icon--slideshow[data-v-4165f148],.icon--slideshow svg[data-v-4165f148]{width:20px;height:16px}.icon--star-feature[data-v-4165f148],.icon--star-feature_active[data-v-4165f148],.icon--star-feature_active svg[data-v-4165f148],.icon--star-feature svg[data-v-4165f148]{width:20px;height:19px}.icon--text-2col[data-v-4165f148],.icon--text-2col svg[data-v-4165f148]{width:26px;height:13px}.icon--text[data-v-4165f148],.icon--text svg[data-v-4165f148]{width:17px;height:13px}.icon--trash[data-v-4165f148],.icon--trash svg[data-v-4165f148]{width:15px;height:17px}.icon--video[data-v-4165f148],.icon--video svg[data-v-4165f148]{width:23px;height:23px}.icon--website[data-v-4165f148],.icon--website svg[data-v-4165f148]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-4165f148],.icon--wysiwyg_anchor svg[data-v-4165f148]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-4165f148],.icon--wysiwyg_bold svg[data-v-4165f148]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-4165f148],.icon--wysiwyg_header-2[data-v-4165f148],.icon--wysiwyg_header-3 svg[data-v-4165f148],.icon--wysiwyg_header-3[data-v-4165f148],.icon--wysiwyg_header-4 svg[data-v-4165f148],.icon--wysiwyg_header-4[data-v-4165f148],.icon--wysiwyg_header-5 svg[data-v-4165f148],.icon--wysiwyg_header-5[data-v-4165f148],.icon--wysiwyg_header-6 svg[data-v-4165f148],.icon--wysiwyg_header-6[data-v-4165f148],.icon--wysiwyg_header[data-v-4165f148],.icon--wysiwyg_header svg[data-v-4165f148]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-4165f148],.icon--wysiwyg_italic svg[data-v-4165f148]{width:10px;height:13px}.icon--wysiwyg_link[data-v-4165f148],.icon--wysiwyg_link svg[data-v-4165f148]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-4165f148],.icon--wysiwyg_underline svg[data-v-4165f148]{width:12px;height:13px}.icon--ae[data-v-4165f148],.icon--ae svg[data-v-4165f148],.icon--ai[data-v-4165f148],.icon--ai svg[data-v-4165f148],.icon--ase[data-v-4165f148],.icon--ase svg[data-v-4165f148]{width:20px;height:26px}.icon--cut[data-v-4165f148],.icon--cut svg[data-v-4165f148],.icon--dir[data-v-4165f148],.icon--dir_protected[data-v-4165f148],.icon--dir_protected svg[data-v-4165f148],.icon--dir_shared[data-v-4165f148],.icon--dir_shared svg[data-v-4165f148],.icon--dir svg[data-v-4165f148]{width:26px;height:21px}.icon--dmg[data-v-4165f148],.icon--dmg svg[data-v-4165f148],.icon--doc[data-v-4165f148],.icon--doc svg[data-v-4165f148],.icon--eps[data-v-4165f148],.icon--eps svg[data-v-4165f148],.icon--fla[data-v-4165f148],.icon--fla svg[data-v-4165f148],.icon--fnt[data-v-4165f148],.icon--fnt svg[data-v-4165f148],.icon--gen[data-v-4165f148],.icon--gen svg[data-v-4165f148],.icon--html[data-v-4165f148],.icon--html svg[data-v-4165f148],.icon--img[data-v-4165f148],.icon--img svg[data-v-4165f148],.icon--indd[data-v-4165f148],.icon--indd svg[data-v-4165f148],.icon--key[data-v-4165f148],.icon--key svg[data-v-4165f148],.icon--merlin[data-v-4165f148],.icon--merlin svg[data-v-4165f148]{width:20px;height:26px}.icon--net[data-v-4165f148],.icon--net svg[data-v-4165f148]{width:26px;height:21px}.icon--numbers[data-v-4165f148],.icon--numbers svg[data-v-4165f148],.icon--pages[data-v-4165f148],.icon--pages svg[data-v-4165f148],.icon--pdf[data-v-4165f148],.icon--pdf svg[data-v-4165f148],.icon--ppt[data-v-4165f148],.icon--ppt svg[data-v-4165f148],.icon--psd[data-v-4165f148],.icon--psd svg[data-v-4165f148]{width:20px;height:26px}.icon--site[data-v-4165f148],.icon--site svg[data-v-4165f148]{width:26px;height:21px}.icon--slide[data-v-4165f148],.icon--slide svg[data-v-4165f148],.icon--snd[data-v-4165f148],.icon--snd svg[data-v-4165f148],.icon--sql[data-v-4165f148],.icon--sql svg[data-v-4165f148],.icon--swf[data-v-4165f148],.icon--swf svg[data-v-4165f148],.icon--txt[data-v-4165f148],.icon--txt svg[data-v-4165f148],.icon--vid[data-v-4165f148],.icon--vid svg[data-v-4165f148],.icon--xls[data-v-4165f148],.icon--xls svg[data-v-4165f148],.icon--zip[data-v-4165f148],.icon--zip svg[data-v-4165f148]{width:20px;height:26px}.container[data-v-4165f148]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-4165f148]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-4165f148]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-4165f148]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-4165f148]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-4165f148]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-4165f148]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-4165f148]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-4165f148]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-4165f148]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-4165f148]{width:auto}}.content[data-v-4165f148]{margin-top:20px}.content__container[data-v-4165f148]{margin-bottom:20px}.content__container+.dropdown[data-v-4165f148]{display:inline-block}.content__actions[data-v-4165f148]{display:-webkit-box;display:-ms-flexbox;display:flex}.content__secondaryActions[data-v-4165f148]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;text-align:right;margin-left:20px;padding-top:8px}.content__item[data-v-4165f148]{border:1px solid #e5e5e5;border-top:0 none}.content__item.sortable-ghost[data-v-4165f148]{opacity:.5}.content__actions button .content__icon[data-v-4165f148]{margin-right:0;margin-left:-15px;min-width:55px;text-align:center;height:40px}.content__item[data-v-4165f148]:first-child{border-top:1px solid #e5e5e5}.icon--add[data-v-f570ad32],.icon--add svg[data-v-f570ad32]{width:10px;height:10px}.icon--arrow-external[data-v-f570ad32],.icon--arrow-external svg[data-v-f570ad32]{width:8px;height:8px}.icon--arrow-sort[data-v-f570ad32],.icon--arrow-sort svg[data-v-f570ad32]{width:9px;height:11px}.icon--check[data-v-f570ad32],.icon--check svg[data-v-f570ad32]{width:11px;height:11px}.icon--close_icon[data-v-f570ad32],.icon--close_icon svg[data-v-f570ad32]{width:10px;height:10px}.icon--close_modal[data-v-f570ad32],.icon--close_modal svg[data-v-f570ad32]{width:16px;height:16px}.icon--colors[data-v-f570ad32],.icon--colors svg[data-v-f570ad32]{width:17px;height:17px}.icon--content-editor[data-v-f570ad32],.icon--content-editor svg[data-v-f570ad32]{width:14px;height:13px}.icon--crop[data-v-f570ad32],.icon--crop svg[data-v-f570ad32]{width:16px;height:18px}.icon--download[data-v-f570ad32],.icon--download svg[data-v-f570ad32]{width:12px;height:16px}.icon--drag[data-v-f570ad32],.icon--drag svg[data-v-f570ad32]{width:8px;height:17px}.icon--dropdown_default[data-v-f570ad32],.icon--dropdown_default svg[data-v-f570ad32]{width:9px;height:5px}.icon--dropdown_module[data-v-f570ad32],.icon--dropdown_module svg[data-v-f570ad32]{width:10px;height:6px}.icon--edit[data-v-f570ad32],.icon--edit svg[data-v-f570ad32]{width:13px;height:13px}.icon--edit_large[data-v-f570ad32],.icon--edit_large svg[data-v-f570ad32]{width:14px;height:14px}.icon--editor[data-v-f570ad32],.icon--editor svg[data-v-f570ad32]{width:14px;height:13px}.icon--expand[data-v-f570ad32],.icon--expand svg[data-v-f570ad32]{width:10px;height:10px}.icon--fix-grid[data-v-f570ad32],.icon--fix-grid svg[data-v-f570ad32]{width:18px;height:14px}.icon--flex-grid[data-v-f570ad32],.icon--flex-grid svg[data-v-f570ad32]{width:18px;height:17px}.icon--google-sign-in[data-v-f570ad32],.icon--google-sign-in svg[data-v-f570ad32]{width:23px;height:24px}.icon--image-text[data-v-f570ad32],.icon--image-text svg[data-v-f570ad32]{width:30px;height:13px}.icon--image[data-v-f570ad32],.icon--image svg[data-v-f570ad32]{width:19px;height:15px}.icon--info[data-v-f570ad32],.icon--info svg[data-v-f570ad32]{width:21px;height:21px}.icon--location[data-v-f570ad32],.icon--location svg[data-v-f570ad32]{width:12px;height:16px}.icon--media-grid[data-v-f570ad32],.icon--media-grid svg[data-v-f570ad32]{width:12px;height:12px}.icon--media-list[data-v-f570ad32],.icon--media-list svg[data-v-f570ad32]{width:16px;height:10px}.icon--more-dots[data-v-f570ad32],.icon--more-dots svg[data-v-f570ad32]{width:14px;height:4px}.icon--pagination_left[data-v-f570ad32],.icon--pagination_left svg[data-v-f570ad32],.icon--pagination_right[data-v-f570ad32],.icon--pagination_right svg[data-v-f570ad32]{width:9px;height:15px}.icon--preferences[data-v-f570ad32],.icon--preferences svg[data-v-f570ad32]{width:26px;height:16px}.icon--preview-desktop[data-v-f570ad32],.icon--preview-desktop svg[data-v-f570ad32]{width:39px;height:30px}.icon--preview-mobile[data-v-f570ad32],.icon--preview-mobile svg[data-v-f570ad32]{width:12px;height:18px}.icon--preview-tablet-h[data-v-f570ad32],.icon--preview-tablet-h svg[data-v-f570ad32]{width:27px;height:20px}.icon--preview-tablet-v[data-v-f570ad32],.icon--preview-tablet-v svg[data-v-f570ad32]{width:20px;height:27px}.icon--preview[data-v-f570ad32],.icon--preview svg[data-v-f570ad32]{width:22px;height:14px}.icon--publish[data-v-f570ad32],.icon--publish svg[data-v-f570ad32]{width:22px;height:15px}.icon--quote[data-v-f570ad32],.icon--quote svg[data-v-f570ad32]{width:16px;height:13px}.icon--revision-compare[data-v-f570ad32],.icon--revision-compare svg[data-v-f570ad32],.icon--revision-single[data-v-f570ad32],.icon--revision-single svg[data-v-f570ad32]{width:23px;height:16px}.icon--search[data-v-f570ad32],.icon--search svg[data-v-f570ad32]{width:20px;height:20px}.icon--slideshow[data-v-f570ad32],.icon--slideshow svg[data-v-f570ad32]{width:20px;height:16px}.icon--star-feature[data-v-f570ad32],.icon--star-feature_active[data-v-f570ad32],.icon--star-feature_active svg[data-v-f570ad32],.icon--star-feature svg[data-v-f570ad32]{width:20px;height:19px}.icon--text-2col[data-v-f570ad32],.icon--text-2col svg[data-v-f570ad32]{width:26px;height:13px}.icon--text[data-v-f570ad32],.icon--text svg[data-v-f570ad32]{width:17px;height:13px}.icon--trash[data-v-f570ad32],.icon--trash svg[data-v-f570ad32]{width:15px;height:17px}.icon--video[data-v-f570ad32],.icon--video svg[data-v-f570ad32]{width:23px;height:23px}.icon--website[data-v-f570ad32],.icon--website svg[data-v-f570ad32]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-f570ad32],.icon--wysiwyg_anchor svg[data-v-f570ad32]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-f570ad32],.icon--wysiwyg_bold svg[data-v-f570ad32]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-f570ad32],.icon--wysiwyg_header-2[data-v-f570ad32],.icon--wysiwyg_header-3 svg[data-v-f570ad32],.icon--wysiwyg_header-3[data-v-f570ad32],.icon--wysiwyg_header-4 svg[data-v-f570ad32],.icon--wysiwyg_header-4[data-v-f570ad32],.icon--wysiwyg_header-5 svg[data-v-f570ad32],.icon--wysiwyg_header-5[data-v-f570ad32],.icon--wysiwyg_header-6 svg[data-v-f570ad32],.icon--wysiwyg_header-6[data-v-f570ad32],.icon--wysiwyg_header[data-v-f570ad32],.icon--wysiwyg_header svg[data-v-f570ad32]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-f570ad32],.icon--wysiwyg_italic svg[data-v-f570ad32]{width:10px;height:13px}.icon--wysiwyg_link[data-v-f570ad32],.icon--wysiwyg_link svg[data-v-f570ad32]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-f570ad32],.icon--wysiwyg_underline svg[data-v-f570ad32]{width:12px;height:13px}.icon--ae[data-v-f570ad32],.icon--ae svg[data-v-f570ad32],.icon--ai[data-v-f570ad32],.icon--ai svg[data-v-f570ad32],.icon--ase[data-v-f570ad32],.icon--ase svg[data-v-f570ad32]{width:20px;height:26px}.icon--cut[data-v-f570ad32],.icon--cut svg[data-v-f570ad32],.icon--dir[data-v-f570ad32],.icon--dir_protected[data-v-f570ad32],.icon--dir_protected svg[data-v-f570ad32],.icon--dir_shared[data-v-f570ad32],.icon--dir_shared svg[data-v-f570ad32],.icon--dir svg[data-v-f570ad32]{width:26px;height:21px}.icon--dmg[data-v-f570ad32],.icon--dmg svg[data-v-f570ad32],.icon--doc[data-v-f570ad32],.icon--doc svg[data-v-f570ad32],.icon--eps[data-v-f570ad32],.icon--eps svg[data-v-f570ad32],.icon--fla[data-v-f570ad32],.icon--fla svg[data-v-f570ad32],.icon--fnt[data-v-f570ad32],.icon--fnt svg[data-v-f570ad32],.icon--gen[data-v-f570ad32],.icon--gen svg[data-v-f570ad32],.icon--html[data-v-f570ad32],.icon--html svg[data-v-f570ad32],.icon--img[data-v-f570ad32],.icon--img svg[data-v-f570ad32],.icon--indd[data-v-f570ad32],.icon--indd svg[data-v-f570ad32],.icon--key[data-v-f570ad32],.icon--key svg[data-v-f570ad32],.icon--merlin[data-v-f570ad32],.icon--merlin svg[data-v-f570ad32]{width:20px;height:26px}.icon--net[data-v-f570ad32],.icon--net svg[data-v-f570ad32]{width:26px;height:21px}.icon--numbers[data-v-f570ad32],.icon--numbers svg[data-v-f570ad32],.icon--pages[data-v-f570ad32],.icon--pages svg[data-v-f570ad32],.icon--pdf[data-v-f570ad32],.icon--pdf svg[data-v-f570ad32],.icon--ppt[data-v-f570ad32],.icon--ppt svg[data-v-f570ad32],.icon--psd[data-v-f570ad32],.icon--psd svg[data-v-f570ad32]{width:20px;height:26px}.icon--site[data-v-f570ad32],.icon--site svg[data-v-f570ad32]{width:26px;height:21px}.icon--slide[data-v-f570ad32],.icon--slide svg[data-v-f570ad32],.icon--snd[data-v-f570ad32],.icon--snd svg[data-v-f570ad32],.icon--sql[data-v-f570ad32],.icon--sql svg[data-v-f570ad32],.icon--swf[data-v-f570ad32],.icon--swf svg[data-v-f570ad32],.icon--txt[data-v-f570ad32],.icon--txt svg[data-v-f570ad32],.icon--vid[data-v-f570ad32],.icon--vid svg[data-v-f570ad32],.icon--xls[data-v-f570ad32],.icon--xls svg[data-v-f570ad32],.icon--zip[data-v-f570ad32],.icon--zip svg[data-v-f570ad32]{width:20px;height:26px}.container[data-v-f570ad32]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-f570ad32]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-f570ad32]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-f570ad32]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-f570ad32]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-f570ad32]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-f570ad32]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-f570ad32]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-f570ad32]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-f570ad32]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-f570ad32]{width:auto}}.content[data-v-f570ad32]{margin-top:20px}.content__content[data-v-f570ad32]{margin-bottom:20px}.content__content+.dropdown[data-v-f570ad32]{display:inline-block}.content__item[data-v-f570ad32]{border:1px solid #e5e5e5;border-top:0 none}.content__item.sortable-ghost[data-v-f570ad32]{opacity:.5}.content__item[data-v-f570ad32]:first-child{border-top:1px solid #e5e5e5}.content__trigger[data-v-f570ad32]{display:-webkit-box;display:-ms-flexbox;display:flex}.content__button[data-v-f570ad32]{display:block;width:100%;text-align:center;margin-top:-5px}.content__note[data-v-f570ad32]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;text-align:right}.icon--add[data-v-e145ff86],.icon--add svg[data-v-e145ff86]{width:10px;height:10px}.icon--arrow-external[data-v-e145ff86],.icon--arrow-external svg[data-v-e145ff86]{width:8px;height:8px}.icon--arrow-sort[data-v-e145ff86],.icon--arrow-sort svg[data-v-e145ff86]{width:9px;height:11px}.icon--check[data-v-e145ff86],.icon--check svg[data-v-e145ff86]{width:11px;height:11px}.icon--close_icon[data-v-e145ff86],.icon--close_icon svg[data-v-e145ff86]{width:10px;height:10px}.icon--close_modal[data-v-e145ff86],.icon--close_modal svg[data-v-e145ff86]{width:16px;height:16px}.icon--colors[data-v-e145ff86],.icon--colors svg[data-v-e145ff86]{width:17px;height:17px}.icon--content-editor[data-v-e145ff86],.icon--content-editor svg[data-v-e145ff86]{width:14px;height:13px}.icon--crop[data-v-e145ff86],.icon--crop svg[data-v-e145ff86]{width:16px;height:18px}.icon--download[data-v-e145ff86],.icon--download svg[data-v-e145ff86]{width:12px;height:16px}.icon--drag[data-v-e145ff86],.icon--drag svg[data-v-e145ff86]{width:8px;height:17px}.icon--dropdown_default[data-v-e145ff86],.icon--dropdown_default svg[data-v-e145ff86]{width:9px;height:5px}.icon--dropdown_module[data-v-e145ff86],.icon--dropdown_module svg[data-v-e145ff86]{width:10px;height:6px}.icon--edit[data-v-e145ff86],.icon--edit svg[data-v-e145ff86]{width:13px;height:13px}.icon--edit_large[data-v-e145ff86],.icon--edit_large svg[data-v-e145ff86]{width:14px;height:14px}.icon--editor[data-v-e145ff86],.icon--editor svg[data-v-e145ff86]{width:14px;height:13px}.icon--expand[data-v-e145ff86],.icon--expand svg[data-v-e145ff86]{width:10px;height:10px}.icon--fix-grid[data-v-e145ff86],.icon--fix-grid svg[data-v-e145ff86]{width:18px;height:14px}.icon--flex-grid[data-v-e145ff86],.icon--flex-grid svg[data-v-e145ff86]{width:18px;height:17px}.icon--google-sign-in[data-v-e145ff86],.icon--google-sign-in svg[data-v-e145ff86]{width:23px;height:24px}.icon--image-text[data-v-e145ff86],.icon--image-text svg[data-v-e145ff86]{width:30px;height:13px}.icon--image[data-v-e145ff86],.icon--image svg[data-v-e145ff86]{width:19px;height:15px}.icon--info[data-v-e145ff86],.icon--info svg[data-v-e145ff86]{width:21px;height:21px}.icon--location[data-v-e145ff86],.icon--location svg[data-v-e145ff86]{width:12px;height:16px}.icon--media-grid[data-v-e145ff86],.icon--media-grid svg[data-v-e145ff86]{width:12px;height:12px}.icon--media-list[data-v-e145ff86],.icon--media-list svg[data-v-e145ff86]{width:16px;height:10px}.icon--more-dots[data-v-e145ff86],.icon--more-dots svg[data-v-e145ff86]{width:14px;height:4px}.icon--pagination_left[data-v-e145ff86],.icon--pagination_left svg[data-v-e145ff86],.icon--pagination_right[data-v-e145ff86],.icon--pagination_right svg[data-v-e145ff86]{width:9px;height:15px}.icon--preferences[data-v-e145ff86],.icon--preferences svg[data-v-e145ff86]{width:26px;height:16px}.icon--preview-desktop[data-v-e145ff86],.icon--preview-desktop svg[data-v-e145ff86]{width:39px;height:30px}.icon--preview-mobile[data-v-e145ff86],.icon--preview-mobile svg[data-v-e145ff86]{width:12px;height:18px}.icon--preview-tablet-h[data-v-e145ff86],.icon--preview-tablet-h svg[data-v-e145ff86]{width:27px;height:20px}.icon--preview-tablet-v[data-v-e145ff86],.icon--preview-tablet-v svg[data-v-e145ff86]{width:20px;height:27px}.icon--preview[data-v-e145ff86],.icon--preview svg[data-v-e145ff86]{width:22px;height:14px}.icon--publish[data-v-e145ff86],.icon--publish svg[data-v-e145ff86]{width:22px;height:15px}.icon--quote[data-v-e145ff86],.icon--quote svg[data-v-e145ff86]{width:16px;height:13px}.icon--revision-compare[data-v-e145ff86],.icon--revision-compare svg[data-v-e145ff86],.icon--revision-single[data-v-e145ff86],.icon--revision-single svg[data-v-e145ff86]{width:23px;height:16px}.icon--search[data-v-e145ff86],.icon--search svg[data-v-e145ff86]{width:20px;height:20px}.icon--slideshow[data-v-e145ff86],.icon--slideshow svg[data-v-e145ff86]{width:20px;height:16px}.icon--star-feature[data-v-e145ff86],.icon--star-feature_active[data-v-e145ff86],.icon--star-feature_active svg[data-v-e145ff86],.icon--star-feature svg[data-v-e145ff86]{width:20px;height:19px}.icon--text-2col[data-v-e145ff86],.icon--text-2col svg[data-v-e145ff86]{width:26px;height:13px}.icon--text[data-v-e145ff86],.icon--text svg[data-v-e145ff86]{width:17px;height:13px}.icon--trash[data-v-e145ff86],.icon--trash svg[data-v-e145ff86]{width:15px;height:17px}.icon--video[data-v-e145ff86],.icon--video svg[data-v-e145ff86]{width:23px;height:23px}.icon--website[data-v-e145ff86],.icon--website svg[data-v-e145ff86]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-e145ff86],.icon--wysiwyg_anchor svg[data-v-e145ff86]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-e145ff86],.icon--wysiwyg_bold svg[data-v-e145ff86]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-e145ff86],.icon--wysiwyg_header-2[data-v-e145ff86],.icon--wysiwyg_header-3 svg[data-v-e145ff86],.icon--wysiwyg_header-3[data-v-e145ff86],.icon--wysiwyg_header-4 svg[data-v-e145ff86],.icon--wysiwyg_header-4[data-v-e145ff86],.icon--wysiwyg_header-5 svg[data-v-e145ff86],.icon--wysiwyg_header-5[data-v-e145ff86],.icon--wysiwyg_header-6 svg[data-v-e145ff86],.icon--wysiwyg_header-6[data-v-e145ff86],.icon--wysiwyg_header[data-v-e145ff86],.icon--wysiwyg_header svg[data-v-e145ff86]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-e145ff86],.icon--wysiwyg_italic svg[data-v-e145ff86]{width:10px;height:13px}.icon--wysiwyg_link[data-v-e145ff86],.icon--wysiwyg_link svg[data-v-e145ff86]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-e145ff86],.icon--wysiwyg_underline svg[data-v-e145ff86]{width:12px;height:13px}.icon--ae[data-v-e145ff86],.icon--ae svg[data-v-e145ff86],.icon--ai[data-v-e145ff86],.icon--ai svg[data-v-e145ff86],.icon--ase[data-v-e145ff86],.icon--ase svg[data-v-e145ff86]{width:20px;height:26px}.icon--cut[data-v-e145ff86],.icon--cut svg[data-v-e145ff86],.icon--dir[data-v-e145ff86],.icon--dir_protected[data-v-e145ff86],.icon--dir_protected svg[data-v-e145ff86],.icon--dir_shared[data-v-e145ff86],.icon--dir_shared svg[data-v-e145ff86],.icon--dir svg[data-v-e145ff86]{width:26px;height:21px}.icon--dmg[data-v-e145ff86],.icon--dmg svg[data-v-e145ff86],.icon--doc[data-v-e145ff86],.icon--doc svg[data-v-e145ff86],.icon--eps[data-v-e145ff86],.icon--eps svg[data-v-e145ff86],.icon--fla[data-v-e145ff86],.icon--fla svg[data-v-e145ff86],.icon--fnt[data-v-e145ff86],.icon--fnt svg[data-v-e145ff86],.icon--gen[data-v-e145ff86],.icon--gen svg[data-v-e145ff86],.icon--html[data-v-e145ff86],.icon--html svg[data-v-e145ff86],.icon--img[data-v-e145ff86],.icon--img svg[data-v-e145ff86],.icon--indd[data-v-e145ff86],.icon--indd svg[data-v-e145ff86],.icon--key[data-v-e145ff86],.icon--key svg[data-v-e145ff86],.icon--merlin[data-v-e145ff86],.icon--merlin svg[data-v-e145ff86]{width:20px;height:26px}.icon--net[data-v-e145ff86],.icon--net svg[data-v-e145ff86]{width:26px;height:21px}.icon--numbers[data-v-e145ff86],.icon--numbers svg[data-v-e145ff86],.icon--pages[data-v-e145ff86],.icon--pages svg[data-v-e145ff86],.icon--pdf[data-v-e145ff86],.icon--pdf svg[data-v-e145ff86],.icon--ppt[data-v-e145ff86],.icon--ppt svg[data-v-e145ff86],.icon--psd[data-v-e145ff86],.icon--psd svg[data-v-e145ff86]{width:20px;height:26px}.icon--site[data-v-e145ff86],.icon--site svg[data-v-e145ff86]{width:26px;height:21px}.icon--slide[data-v-e145ff86],.icon--slide svg[data-v-e145ff86],.icon--snd[data-v-e145ff86],.icon--snd svg[data-v-e145ff86],.icon--sql[data-v-e145ff86],.icon--sql svg[data-v-e145ff86],.icon--swf[data-v-e145ff86],.icon--swf svg[data-v-e145ff86],.icon--txt[data-v-e145ff86],.icon--txt svg[data-v-e145ff86],.icon--vid[data-v-e145ff86],.icon--vid svg[data-v-e145ff86],.icon--xls[data-v-e145ff86],.icon--xls svg[data-v-e145ff86],.icon--zip[data-v-e145ff86],.icon--zip svg[data-v-e145ff86]{width:20px;height:26px}.container[data-v-e145ff86]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-e145ff86]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-e145ff86]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-e145ff86]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-e145ff86]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-e145ff86]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-e145ff86]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-e145ff86]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-e145ff86]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-e145ff86]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-e145ff86]{width:auto}}.form__field[data-v-e145ff86]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0 15px}.form__field input[data-v-e145ff86]{padding:0}.form__field .form__field--showMap a[data-v-e145ff86]{font-size:11px;letter-spacing:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;text-decoration:none;color:#8c8c8c;-webkit-transition:color .25s;transition:color .25s}.form__field .form__field--showMap a[data-v-e145ff86]:hover{color:#666}.form__field .form__field--showMap a span[data-v-e145ff86]{margin-right:5px}.icon--add[data-v-b7b05f42],.icon--add svg[data-v-b7b05f42]{width:10px;height:10px}.icon--arrow-external[data-v-b7b05f42],.icon--arrow-external svg[data-v-b7b05f42]{width:8px;height:8px}.icon--arrow-sort[data-v-b7b05f42],.icon--arrow-sort svg[data-v-b7b05f42]{width:9px;height:11px}.icon--check[data-v-b7b05f42],.icon--check svg[data-v-b7b05f42]{width:11px;height:11px}.icon--close_icon[data-v-b7b05f42],.icon--close_icon svg[data-v-b7b05f42]{width:10px;height:10px}.icon--close_modal[data-v-b7b05f42],.icon--close_modal svg[data-v-b7b05f42]{width:16px;height:16px}.icon--colors[data-v-b7b05f42],.icon--colors svg[data-v-b7b05f42]{width:17px;height:17px}.icon--content-editor[data-v-b7b05f42],.icon--content-editor svg[data-v-b7b05f42]{width:14px;height:13px}.icon--crop[data-v-b7b05f42],.icon--crop svg[data-v-b7b05f42]{width:16px;height:18px}.icon--download[data-v-b7b05f42],.icon--download svg[data-v-b7b05f42]{width:12px;height:16px}.icon--drag[data-v-b7b05f42],.icon--drag svg[data-v-b7b05f42]{width:8px;height:17px}.icon--dropdown_default[data-v-b7b05f42],.icon--dropdown_default svg[data-v-b7b05f42]{width:9px;height:5px}.icon--dropdown_module[data-v-b7b05f42],.icon--dropdown_module svg[data-v-b7b05f42]{width:10px;height:6px}.icon--edit[data-v-b7b05f42],.icon--edit svg[data-v-b7b05f42]{width:13px;height:13px}.icon--edit_large[data-v-b7b05f42],.icon--edit_large svg[data-v-b7b05f42]{width:14px;height:14px}.icon--editor[data-v-b7b05f42],.icon--editor svg[data-v-b7b05f42]{width:14px;height:13px}.icon--expand[data-v-b7b05f42],.icon--expand svg[data-v-b7b05f42]{width:10px;height:10px}.icon--fix-grid[data-v-b7b05f42],.icon--fix-grid svg[data-v-b7b05f42]{width:18px;height:14px}.icon--flex-grid[data-v-b7b05f42],.icon--flex-grid svg[data-v-b7b05f42]{width:18px;height:17px}.icon--google-sign-in[data-v-b7b05f42],.icon--google-sign-in svg[data-v-b7b05f42]{width:23px;height:24px}.icon--image-text[data-v-b7b05f42],.icon--image-text svg[data-v-b7b05f42]{width:30px;height:13px}.icon--image[data-v-b7b05f42],.icon--image svg[data-v-b7b05f42]{width:19px;height:15px}.icon--info[data-v-b7b05f42],.icon--info svg[data-v-b7b05f42]{width:21px;height:21px}.icon--location[data-v-b7b05f42],.icon--location svg[data-v-b7b05f42]{width:12px;height:16px}.icon--media-grid[data-v-b7b05f42],.icon--media-grid svg[data-v-b7b05f42]{width:12px;height:12px}.icon--media-list[data-v-b7b05f42],.icon--media-list svg[data-v-b7b05f42]{width:16px;height:10px}.icon--more-dots[data-v-b7b05f42],.icon--more-dots svg[data-v-b7b05f42]{width:14px;height:4px}.icon--pagination_left[data-v-b7b05f42],.icon--pagination_left svg[data-v-b7b05f42],.icon--pagination_right[data-v-b7b05f42],.icon--pagination_right svg[data-v-b7b05f42]{width:9px;height:15px}.icon--preferences[data-v-b7b05f42],.icon--preferences svg[data-v-b7b05f42]{width:26px;height:16px}.icon--preview-desktop[data-v-b7b05f42],.icon--preview-desktop svg[data-v-b7b05f42]{width:39px;height:30px}.icon--preview-mobile[data-v-b7b05f42],.icon--preview-mobile svg[data-v-b7b05f42]{width:12px;height:18px}.icon--preview-tablet-h[data-v-b7b05f42],.icon--preview-tablet-h svg[data-v-b7b05f42]{width:27px;height:20px}.icon--preview-tablet-v[data-v-b7b05f42],.icon--preview-tablet-v svg[data-v-b7b05f42]{width:20px;height:27px}.icon--preview[data-v-b7b05f42],.icon--preview svg[data-v-b7b05f42]{width:22px;height:14px}.icon--publish[data-v-b7b05f42],.icon--publish svg[data-v-b7b05f42]{width:22px;height:15px}.icon--quote[data-v-b7b05f42],.icon--quote svg[data-v-b7b05f42]{width:16px;height:13px}.icon--revision-compare[data-v-b7b05f42],.icon--revision-compare svg[data-v-b7b05f42],.icon--revision-single[data-v-b7b05f42],.icon--revision-single svg[data-v-b7b05f42]{width:23px;height:16px}.icon--search[data-v-b7b05f42],.icon--search svg[data-v-b7b05f42]{width:20px;height:20px}.icon--slideshow[data-v-b7b05f42],.icon--slideshow svg[data-v-b7b05f42]{width:20px;height:16px}.icon--star-feature[data-v-b7b05f42],.icon--star-feature_active[data-v-b7b05f42],.icon--star-feature_active svg[data-v-b7b05f42],.icon--star-feature svg[data-v-b7b05f42]{width:20px;height:19px}.icon--text-2col[data-v-b7b05f42],.icon--text-2col svg[data-v-b7b05f42]{width:26px;height:13px}.icon--text[data-v-b7b05f42],.icon--text svg[data-v-b7b05f42]{width:17px;height:13px}.icon--trash[data-v-b7b05f42],.icon--trash svg[data-v-b7b05f42]{width:15px;height:17px}.icon--video[data-v-b7b05f42],.icon--video svg[data-v-b7b05f42]{width:23px;height:23px}.icon--website[data-v-b7b05f42],.icon--website svg[data-v-b7b05f42]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-b7b05f42],.icon--wysiwyg_anchor svg[data-v-b7b05f42]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-b7b05f42],.icon--wysiwyg_bold svg[data-v-b7b05f42]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-b7b05f42],.icon--wysiwyg_header-2[data-v-b7b05f42],.icon--wysiwyg_header-3 svg[data-v-b7b05f42],.icon--wysiwyg_header-3[data-v-b7b05f42],.icon--wysiwyg_header-4 svg[data-v-b7b05f42],.icon--wysiwyg_header-4[data-v-b7b05f42],.icon--wysiwyg_header-5 svg[data-v-b7b05f42],.icon--wysiwyg_header-5[data-v-b7b05f42],.icon--wysiwyg_header-6 svg[data-v-b7b05f42],.icon--wysiwyg_header-6[data-v-b7b05f42],.icon--wysiwyg_header[data-v-b7b05f42],.icon--wysiwyg_header svg[data-v-b7b05f42]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-b7b05f42],.icon--wysiwyg_italic svg[data-v-b7b05f42]{width:10px;height:13px}.icon--wysiwyg_link[data-v-b7b05f42],.icon--wysiwyg_link svg[data-v-b7b05f42]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-b7b05f42],.icon--wysiwyg_underline svg[data-v-b7b05f42]{width:12px;height:13px}.icon--ae[data-v-b7b05f42],.icon--ae svg[data-v-b7b05f42],.icon--ai[data-v-b7b05f42],.icon--ai svg[data-v-b7b05f42],.icon--ase[data-v-b7b05f42],.icon--ase svg[data-v-b7b05f42]{width:20px;height:26px}.icon--cut[data-v-b7b05f42],.icon--cut svg[data-v-b7b05f42],.icon--dir[data-v-b7b05f42],.icon--dir_protected[data-v-b7b05f42],.icon--dir_protected svg[data-v-b7b05f42],.icon--dir_shared[data-v-b7b05f42],.icon--dir_shared svg[data-v-b7b05f42],.icon--dir svg[data-v-b7b05f42]{width:26px;height:21px}.icon--dmg[data-v-b7b05f42],.icon--dmg svg[data-v-b7b05f42],.icon--doc[data-v-b7b05f42],.icon--doc svg[data-v-b7b05f42],.icon--eps[data-v-b7b05f42],.icon--eps svg[data-v-b7b05f42],.icon--fla[data-v-b7b05f42],.icon--fla svg[data-v-b7b05f42],.icon--fnt[data-v-b7b05f42],.icon--fnt svg[data-v-b7b05f42],.icon--gen[data-v-b7b05f42],.icon--gen svg[data-v-b7b05f42],.icon--html[data-v-b7b05f42],.icon--html svg[data-v-b7b05f42],.icon--img[data-v-b7b05f42],.icon--img svg[data-v-b7b05f42],.icon--indd[data-v-b7b05f42],.icon--indd svg[data-v-b7b05f42],.icon--key[data-v-b7b05f42],.icon--key svg[data-v-b7b05f42],.icon--merlin[data-v-b7b05f42],.icon--merlin svg[data-v-b7b05f42]{width:20px;height:26px}.icon--net[data-v-b7b05f42],.icon--net svg[data-v-b7b05f42]{width:26px;height:21px}.icon--numbers[data-v-b7b05f42],.icon--numbers svg[data-v-b7b05f42],.icon--pages[data-v-b7b05f42],.icon--pages svg[data-v-b7b05f42],.icon--pdf[data-v-b7b05f42],.icon--pdf svg[data-v-b7b05f42],.icon--ppt[data-v-b7b05f42],.icon--ppt svg[data-v-b7b05f42],.icon--psd[data-v-b7b05f42],.icon--psd svg[data-v-b7b05f42]{width:20px;height:26px}.icon--site[data-v-b7b05f42],.icon--site svg[data-v-b7b05f42]{width:26px;height:21px}.icon--slide[data-v-b7b05f42],.icon--slide svg[data-v-b7b05f42],.icon--snd[data-v-b7b05f42],.icon--snd svg[data-v-b7b05f42],.icon--sql[data-v-b7b05f42],.icon--sql svg[data-v-b7b05f42],.icon--swf[data-v-b7b05f42],.icon--swf svg[data-v-b7b05f42],.icon--txt[data-v-b7b05f42],.icon--txt svg[data-v-b7b05f42],.icon--vid[data-v-b7b05f42],.icon--vid svg[data-v-b7b05f42],.icon--xls[data-v-b7b05f42],.icon--xls svg[data-v-b7b05f42],.icon--zip[data-v-b7b05f42],.icon--zip svg[data-v-b7b05f42]{width:20px;height:26px}.container[data-v-b7b05f42]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-b7b05f42]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-b7b05f42]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-b7b05f42]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-b7b05f42]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-b7b05f42]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-b7b05f42]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-b7b05f42]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-b7b05f42]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-b7b05f42]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-b7b05f42]{width:auto}}.overlay[data-v-b7b05f42]{position:fixed;top:0;right:0;bottom:0;left:0;background:rgba(0,0,0,.4);z-index:400;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;opacity:0;visibility:hidden;-webkit-transition:opacity .35s ease,visibility 0s .35s;transition:opacity .35s ease,visibility 0s .35s;padding:0;background-color:#333}.overlay+.overlay[data-v-b7b05f42]{z-index:401}.overlay__window[data-v-b7b05f42]{background:#fff;min-width:50vw;position:relative;border-radius:2px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column nowrap;width:100%;height:100%;max-width:inherit}.overlay__content[data-v-b7b05f42]{overflow:hidden;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;height:100%}.overlay__header[data-v-b7b05f42]{background:#000;color:#fff;padding:0 20px;height:60px;line-height:60px;position:relative;font-weight:600;text-align:center;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.overlay__close[data-v-b7b05f42]{background-color:transparent;-webkit-appearance:none;cursor:pointer;font-size:1em;outline:none;margin:0;border:0 none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:inherit;position:absolute;left:0;top:0;background:transparent;height:60px;color:#8c8c8c;padding:22px 20px;text-align:left}.overlay__close[data-v-b7b05f42]:focus,.overlay__close[data-v-b7b05f42]:hover{color:#fff}.overlay__closeLabel[data-v-b7b05f42]{position:relative;margin-left:10px;top:-2px}.overlay__content[data-v-b7b05f42]{padding:0;display:-webkit-box;display:-ms-flexbox;display:flex}.overlay__content>button[data-v-b7b05f42]{margin-bottom:20px}.overlay--active[data-v-b7b05f42]{opacity:1;visibility:visible;-webkit-transition:opacity .35s;transition:opacity .35s}.overlay--hidden[data-v-b7b05f42]{display:none}.icon--add[data-v-7b1f8f6c],.icon--add svg[data-v-7b1f8f6c]{width:10px;height:10px}.icon--arrow-external[data-v-7b1f8f6c],.icon--arrow-external svg[data-v-7b1f8f6c]{width:8px;height:8px}.icon--arrow-sort[data-v-7b1f8f6c],.icon--arrow-sort svg[data-v-7b1f8f6c]{width:9px;height:11px}.icon--check[data-v-7b1f8f6c],.icon--check svg[data-v-7b1f8f6c]{width:11px;height:11px}.icon--close_icon[data-v-7b1f8f6c],.icon--close_icon svg[data-v-7b1f8f6c]{width:10px;height:10px}.icon--close_modal[data-v-7b1f8f6c],.icon--close_modal svg[data-v-7b1f8f6c]{width:16px;height:16px}.icon--colors[data-v-7b1f8f6c],.icon--colors svg[data-v-7b1f8f6c]{width:17px;height:17px}.icon--content-editor[data-v-7b1f8f6c],.icon--content-editor svg[data-v-7b1f8f6c]{width:14px;height:13px}.icon--crop[data-v-7b1f8f6c],.icon--crop svg[data-v-7b1f8f6c]{width:16px;height:18px}.icon--download[data-v-7b1f8f6c],.icon--download svg[data-v-7b1f8f6c]{width:12px;height:16px}.icon--drag[data-v-7b1f8f6c],.icon--drag svg[data-v-7b1f8f6c]{width:8px;height:17px}.icon--dropdown_default[data-v-7b1f8f6c],.icon--dropdown_default svg[data-v-7b1f8f6c]{width:9px;height:5px}.icon--dropdown_module[data-v-7b1f8f6c],.icon--dropdown_module svg[data-v-7b1f8f6c]{width:10px;height:6px}.icon--edit[data-v-7b1f8f6c],.icon--edit svg[data-v-7b1f8f6c]{width:13px;height:13px}.icon--edit_large[data-v-7b1f8f6c],.icon--edit_large svg[data-v-7b1f8f6c]{width:14px;height:14px}.icon--editor[data-v-7b1f8f6c],.icon--editor svg[data-v-7b1f8f6c]{width:14px;height:13px}.icon--expand[data-v-7b1f8f6c],.icon--expand svg[data-v-7b1f8f6c]{width:10px;height:10px}.icon--fix-grid[data-v-7b1f8f6c],.icon--fix-grid svg[data-v-7b1f8f6c]{width:18px;height:14px}.icon--flex-grid[data-v-7b1f8f6c],.icon--flex-grid svg[data-v-7b1f8f6c]{width:18px;height:17px}.icon--google-sign-in[data-v-7b1f8f6c],.icon--google-sign-in svg[data-v-7b1f8f6c]{width:23px;height:24px}.icon--image-text[data-v-7b1f8f6c],.icon--image-text svg[data-v-7b1f8f6c]{width:30px;height:13px}.icon--image[data-v-7b1f8f6c],.icon--image svg[data-v-7b1f8f6c]{width:19px;height:15px}.icon--info[data-v-7b1f8f6c],.icon--info svg[data-v-7b1f8f6c]{width:21px;height:21px}.icon--location[data-v-7b1f8f6c],.icon--location svg[data-v-7b1f8f6c]{width:12px;height:16px}.icon--media-grid[data-v-7b1f8f6c],.icon--media-grid svg[data-v-7b1f8f6c]{width:12px;height:12px}.icon--media-list[data-v-7b1f8f6c],.icon--media-list svg[data-v-7b1f8f6c]{width:16px;height:10px}.icon--more-dots[data-v-7b1f8f6c],.icon--more-dots svg[data-v-7b1f8f6c]{width:14px;height:4px}.icon--pagination_left[data-v-7b1f8f6c],.icon--pagination_left svg[data-v-7b1f8f6c],.icon--pagination_right[data-v-7b1f8f6c],.icon--pagination_right svg[data-v-7b1f8f6c]{width:9px;height:15px}.icon--preferences[data-v-7b1f8f6c],.icon--preferences svg[data-v-7b1f8f6c]{width:26px;height:16px}.icon--preview-desktop[data-v-7b1f8f6c],.icon--preview-desktop svg[data-v-7b1f8f6c]{width:39px;height:30px}.icon--preview-mobile[data-v-7b1f8f6c],.icon--preview-mobile svg[data-v-7b1f8f6c]{width:12px;height:18px}.icon--preview-tablet-h[data-v-7b1f8f6c],.icon--preview-tablet-h svg[data-v-7b1f8f6c]{width:27px;height:20px}.icon--preview-tablet-v[data-v-7b1f8f6c],.icon--preview-tablet-v svg[data-v-7b1f8f6c]{width:20px;height:27px}.icon--preview[data-v-7b1f8f6c],.icon--preview svg[data-v-7b1f8f6c]{width:22px;height:14px}.icon--publish[data-v-7b1f8f6c],.icon--publish svg[data-v-7b1f8f6c]{width:22px;height:15px}.icon--quote[data-v-7b1f8f6c],.icon--quote svg[data-v-7b1f8f6c]{width:16px;height:13px}.icon--revision-compare[data-v-7b1f8f6c],.icon--revision-compare svg[data-v-7b1f8f6c],.icon--revision-single[data-v-7b1f8f6c],.icon--revision-single svg[data-v-7b1f8f6c]{width:23px;height:16px}.icon--search[data-v-7b1f8f6c],.icon--search svg[data-v-7b1f8f6c]{width:20px;height:20px}.icon--slideshow[data-v-7b1f8f6c],.icon--slideshow svg[data-v-7b1f8f6c]{width:20px;height:16px}.icon--star-feature[data-v-7b1f8f6c],.icon--star-feature_active[data-v-7b1f8f6c],.icon--star-feature_active svg[data-v-7b1f8f6c],.icon--star-feature svg[data-v-7b1f8f6c]{width:20px;height:19px}.icon--text-2col[data-v-7b1f8f6c],.icon--text-2col svg[data-v-7b1f8f6c]{width:26px;height:13px}.icon--text[data-v-7b1f8f6c],.icon--text svg[data-v-7b1f8f6c]{width:17px;height:13px}.icon--trash[data-v-7b1f8f6c],.icon--trash svg[data-v-7b1f8f6c]{width:15px;height:17px}.icon--video[data-v-7b1f8f6c],.icon--video svg[data-v-7b1f8f6c]{width:23px;height:23px}.icon--website[data-v-7b1f8f6c],.icon--website svg[data-v-7b1f8f6c]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-7b1f8f6c],.icon--wysiwyg_anchor svg[data-v-7b1f8f6c]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-7b1f8f6c],.icon--wysiwyg_bold svg[data-v-7b1f8f6c]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-7b1f8f6c],.icon--wysiwyg_header-2[data-v-7b1f8f6c],.icon--wysiwyg_header-3 svg[data-v-7b1f8f6c],.icon--wysiwyg_header-3[data-v-7b1f8f6c],.icon--wysiwyg_header-4 svg[data-v-7b1f8f6c],.icon--wysiwyg_header-4[data-v-7b1f8f6c],.icon--wysiwyg_header-5 svg[data-v-7b1f8f6c],.icon--wysiwyg_header-5[data-v-7b1f8f6c],.icon--wysiwyg_header-6 svg[data-v-7b1f8f6c],.icon--wysiwyg_header-6[data-v-7b1f8f6c],.icon--wysiwyg_header[data-v-7b1f8f6c],.icon--wysiwyg_header svg[data-v-7b1f8f6c]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-7b1f8f6c],.icon--wysiwyg_italic svg[data-v-7b1f8f6c]{width:10px;height:13px}.icon--wysiwyg_link[data-v-7b1f8f6c],.icon--wysiwyg_link svg[data-v-7b1f8f6c]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-7b1f8f6c],.icon--wysiwyg_underline svg[data-v-7b1f8f6c]{width:12px;height:13px}.icon--ae[data-v-7b1f8f6c],.icon--ae svg[data-v-7b1f8f6c],.icon--ai[data-v-7b1f8f6c],.icon--ai svg[data-v-7b1f8f6c],.icon--ase[data-v-7b1f8f6c],.icon--ase svg[data-v-7b1f8f6c]{width:20px;height:26px}.icon--cut[data-v-7b1f8f6c],.icon--cut svg[data-v-7b1f8f6c],.icon--dir[data-v-7b1f8f6c],.icon--dir_protected[data-v-7b1f8f6c],.icon--dir_protected svg[data-v-7b1f8f6c],.icon--dir_shared[data-v-7b1f8f6c],.icon--dir_shared svg[data-v-7b1f8f6c],.icon--dir svg[data-v-7b1f8f6c]{width:26px;height:21px}.icon--dmg[data-v-7b1f8f6c],.icon--dmg svg[data-v-7b1f8f6c],.icon--doc[data-v-7b1f8f6c],.icon--doc svg[data-v-7b1f8f6c],.icon--eps[data-v-7b1f8f6c],.icon--eps svg[data-v-7b1f8f6c],.icon--fla[data-v-7b1f8f6c],.icon--fla svg[data-v-7b1f8f6c],.icon--fnt[data-v-7b1f8f6c],.icon--fnt svg[data-v-7b1f8f6c],.icon--gen[data-v-7b1f8f6c],.icon--gen svg[data-v-7b1f8f6c],.icon--html[data-v-7b1f8f6c],.icon--html svg[data-v-7b1f8f6c],.icon--img[data-v-7b1f8f6c],.icon--img svg[data-v-7b1f8f6c],.icon--indd[data-v-7b1f8f6c],.icon--indd svg[data-v-7b1f8f6c],.icon--key[data-v-7b1f8f6c],.icon--key svg[data-v-7b1f8f6c],.icon--merlin[data-v-7b1f8f6c],.icon--merlin svg[data-v-7b1f8f6c]{width:20px;height:26px}.icon--net[data-v-7b1f8f6c],.icon--net svg[data-v-7b1f8f6c]{width:26px;height:21px}.icon--numbers[data-v-7b1f8f6c],.icon--numbers svg[data-v-7b1f8f6c],.icon--pages[data-v-7b1f8f6c],.icon--pages svg[data-v-7b1f8f6c],.icon--pdf[data-v-7b1f8f6c],.icon--pdf svg[data-v-7b1f8f6c],.icon--ppt[data-v-7b1f8f6c],.icon--ppt svg[data-v-7b1f8f6c],.icon--psd[data-v-7b1f8f6c],.icon--psd svg[data-v-7b1f8f6c]{width:20px;height:26px}.icon--site[data-v-7b1f8f6c],.icon--site svg[data-v-7b1f8f6c]{width:26px;height:21px}.icon--slide[data-v-7b1f8f6c],.icon--slide svg[data-v-7b1f8f6c],.icon--snd[data-v-7b1f8f6c],.icon--snd svg[data-v-7b1f8f6c],.icon--sql[data-v-7b1f8f6c],.icon--sql svg[data-v-7b1f8f6c],.icon--swf[data-v-7b1f8f6c],.icon--swf svg[data-v-7b1f8f6c],.icon--txt[data-v-7b1f8f6c],.icon--txt svg[data-v-7b1f8f6c],.icon--vid[data-v-7b1f8f6c],.icon--vid svg[data-v-7b1f8f6c],.icon--xls[data-v-7b1f8f6c],.icon--xls svg[data-v-7b1f8f6c],.icon--zip[data-v-7b1f8f6c],.icon--zip svg[data-v-7b1f8f6c]{width:20px;height:26px}.container[data-v-7b1f8f6c]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-7b1f8f6c]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-7b1f8f6c]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-7b1f8f6c]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-7b1f8f6c]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-7b1f8f6c]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-7b1f8f6c]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-7b1f8f6c]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-7b1f8f6c]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-7b1f8f6c]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-7b1f8f6c]{width:auto}}.previewerframe[data-v-7b1f8f6c]{width:100%;height:100%;margin:0 auto;max-width:calc(100% - 20px);display:block;-webkit-transform:translateX(-50%);transform:translateX(-50%);-webkit-transition:width .3s ease;transition:width .3s ease;position:absolute;top:0;bottom:0;left:50%;background:#fff}.icon--add[data-v-617a3800],.icon--add svg[data-v-617a3800]{width:10px;height:10px}.icon--arrow-external[data-v-617a3800],.icon--arrow-external svg[data-v-617a3800]{width:8px;height:8px}.icon--arrow-sort[data-v-617a3800],.icon--arrow-sort svg[data-v-617a3800]{width:9px;height:11px}.icon--check[data-v-617a3800],.icon--check svg[data-v-617a3800]{width:11px;height:11px}.icon--close_icon[data-v-617a3800],.icon--close_icon svg[data-v-617a3800]{width:10px;height:10px}.icon--close_modal[data-v-617a3800],.icon--close_modal svg[data-v-617a3800]{width:16px;height:16px}.icon--colors[data-v-617a3800],.icon--colors svg[data-v-617a3800]{width:17px;height:17px}.icon--content-editor[data-v-617a3800],.icon--content-editor svg[data-v-617a3800]{width:14px;height:13px}.icon--crop[data-v-617a3800],.icon--crop svg[data-v-617a3800]{width:16px;height:18px}.icon--download[data-v-617a3800],.icon--download svg[data-v-617a3800]{width:12px;height:16px}.icon--drag[data-v-617a3800],.icon--drag svg[data-v-617a3800]{width:8px;height:17px}.icon--dropdown_default[data-v-617a3800],.icon--dropdown_default svg[data-v-617a3800]{width:9px;height:5px}.icon--dropdown_module[data-v-617a3800],.icon--dropdown_module svg[data-v-617a3800]{width:10px;height:6px}.icon--edit[data-v-617a3800],.icon--edit svg[data-v-617a3800]{width:13px;height:13px}.icon--edit_large[data-v-617a3800],.icon--edit_large svg[data-v-617a3800]{width:14px;height:14px}.icon--editor[data-v-617a3800],.icon--editor svg[data-v-617a3800]{width:14px;height:13px}.icon--expand[data-v-617a3800],.icon--expand svg[data-v-617a3800]{width:10px;height:10px}.icon--fix-grid[data-v-617a3800],.icon--fix-grid svg[data-v-617a3800]{width:18px;height:14px}.icon--flex-grid[data-v-617a3800],.icon--flex-grid svg[data-v-617a3800]{width:18px;height:17px}.icon--google-sign-in[data-v-617a3800],.icon--google-sign-in svg[data-v-617a3800]{width:23px;height:24px}.icon--image-text[data-v-617a3800],.icon--image-text svg[data-v-617a3800]{width:30px;height:13px}.icon--image[data-v-617a3800],.icon--image svg[data-v-617a3800]{width:19px;height:15px}.icon--info[data-v-617a3800],.icon--info svg[data-v-617a3800]{width:21px;height:21px}.icon--location[data-v-617a3800],.icon--location svg[data-v-617a3800]{width:12px;height:16px}.icon--media-grid[data-v-617a3800],.icon--media-grid svg[data-v-617a3800]{width:12px;height:12px}.icon--media-list[data-v-617a3800],.icon--media-list svg[data-v-617a3800]{width:16px;height:10px}.icon--more-dots[data-v-617a3800],.icon--more-dots svg[data-v-617a3800]{width:14px;height:4px}.icon--pagination_left[data-v-617a3800],.icon--pagination_left svg[data-v-617a3800],.icon--pagination_right[data-v-617a3800],.icon--pagination_right svg[data-v-617a3800]{width:9px;height:15px}.icon--preferences[data-v-617a3800],.icon--preferences svg[data-v-617a3800]{width:26px;height:16px}.icon--preview-desktop[data-v-617a3800],.icon--preview-desktop svg[data-v-617a3800]{width:39px;height:30px}.icon--preview-mobile[data-v-617a3800],.icon--preview-mobile svg[data-v-617a3800]{width:12px;height:18px}.icon--preview-tablet-h[data-v-617a3800],.icon--preview-tablet-h svg[data-v-617a3800]{width:27px;height:20px}.icon--preview-tablet-v[data-v-617a3800],.icon--preview-tablet-v svg[data-v-617a3800]{width:20px;height:27px}.icon--preview[data-v-617a3800],.icon--preview svg[data-v-617a3800]{width:22px;height:14px}.icon--publish[data-v-617a3800],.icon--publish svg[data-v-617a3800]{width:22px;height:15px}.icon--quote[data-v-617a3800],.icon--quote svg[data-v-617a3800]{width:16px;height:13px}.icon--revision-compare[data-v-617a3800],.icon--revision-compare svg[data-v-617a3800],.icon--revision-single[data-v-617a3800],.icon--revision-single svg[data-v-617a3800]{width:23px;height:16px}.icon--search[data-v-617a3800],.icon--search svg[data-v-617a3800]{width:20px;height:20px}.icon--slideshow[data-v-617a3800],.icon--slideshow svg[data-v-617a3800]{width:20px;height:16px}.icon--star-feature[data-v-617a3800],.icon--star-feature_active[data-v-617a3800],.icon--star-feature_active svg[data-v-617a3800],.icon--star-feature svg[data-v-617a3800]{width:20px;height:19px}.icon--text-2col[data-v-617a3800],.icon--text-2col svg[data-v-617a3800]{width:26px;height:13px}.icon--text[data-v-617a3800],.icon--text svg[data-v-617a3800]{width:17px;height:13px}.icon--trash[data-v-617a3800],.icon--trash svg[data-v-617a3800]{width:15px;height:17px}.icon--video[data-v-617a3800],.icon--video svg[data-v-617a3800]{width:23px;height:23px}.icon--website[data-v-617a3800],.icon--website svg[data-v-617a3800]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-617a3800],.icon--wysiwyg_anchor svg[data-v-617a3800]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-617a3800],.icon--wysiwyg_bold svg[data-v-617a3800]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-617a3800],.icon--wysiwyg_header-2[data-v-617a3800],.icon--wysiwyg_header-3 svg[data-v-617a3800],.icon--wysiwyg_header-3[data-v-617a3800],.icon--wysiwyg_header-4 svg[data-v-617a3800],.icon--wysiwyg_header-4[data-v-617a3800],.icon--wysiwyg_header-5 svg[data-v-617a3800],.icon--wysiwyg_header-5[data-v-617a3800],.icon--wysiwyg_header-6 svg[data-v-617a3800],.icon--wysiwyg_header-6[data-v-617a3800],.icon--wysiwyg_header[data-v-617a3800],.icon--wysiwyg_header svg[data-v-617a3800]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-617a3800],.icon--wysiwyg_italic svg[data-v-617a3800]{width:10px;height:13px}.icon--wysiwyg_link[data-v-617a3800],.icon--wysiwyg_link svg[data-v-617a3800]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-617a3800],.icon--wysiwyg_underline svg[data-v-617a3800]{width:12px;height:13px}.icon--ae[data-v-617a3800],.icon--ae svg[data-v-617a3800],.icon--ai[data-v-617a3800],.icon--ai svg[data-v-617a3800],.icon--ase[data-v-617a3800],.icon--ase svg[data-v-617a3800]{width:20px;height:26px}.icon--cut[data-v-617a3800],.icon--cut svg[data-v-617a3800],.icon--dir[data-v-617a3800],.icon--dir_protected[data-v-617a3800],.icon--dir_protected svg[data-v-617a3800],.icon--dir_shared[data-v-617a3800],.icon--dir_shared svg[data-v-617a3800],.icon--dir svg[data-v-617a3800]{width:26px;height:21px}.icon--dmg[data-v-617a3800],.icon--dmg svg[data-v-617a3800],.icon--doc[data-v-617a3800],.icon--doc svg[data-v-617a3800],.icon--eps[data-v-617a3800],.icon--eps svg[data-v-617a3800],.icon--fla[data-v-617a3800],.icon--fla svg[data-v-617a3800],.icon--fnt[data-v-617a3800],.icon--fnt svg[data-v-617a3800],.icon--gen[data-v-617a3800],.icon--gen svg[data-v-617a3800],.icon--html[data-v-617a3800],.icon--html svg[data-v-617a3800],.icon--img[data-v-617a3800],.icon--img svg[data-v-617a3800],.icon--indd[data-v-617a3800],.icon--indd svg[data-v-617a3800],.icon--key[data-v-617a3800],.icon--key svg[data-v-617a3800],.icon--merlin[data-v-617a3800],.icon--merlin svg[data-v-617a3800]{width:20px;height:26px}.icon--net[data-v-617a3800],.icon--net svg[data-v-617a3800]{width:26px;height:21px}.icon--numbers[data-v-617a3800],.icon--numbers svg[data-v-617a3800],.icon--pages[data-v-617a3800],.icon--pages svg[data-v-617a3800],.icon--pdf[data-v-617a3800],.icon--pdf svg[data-v-617a3800],.icon--ppt[data-v-617a3800],.icon--ppt svg[data-v-617a3800],.icon--psd[data-v-617a3800],.icon--psd svg[data-v-617a3800]{width:20px;height:26px}.icon--site[data-v-617a3800],.icon--site svg[data-v-617a3800]{width:26px;height:21px}.icon--slide[data-v-617a3800],.icon--slide svg[data-v-617a3800],.icon--snd[data-v-617a3800],.icon--snd svg[data-v-617a3800],.icon--sql[data-v-617a3800],.icon--sql svg[data-v-617a3800],.icon--swf[data-v-617a3800],.icon--swf svg[data-v-617a3800],.icon--txt[data-v-617a3800],.icon--txt svg[data-v-617a3800],.icon--vid[data-v-617a3800],.icon--vid svg[data-v-617a3800],.icon--xls[data-v-617a3800],.icon--xls svg[data-v-617a3800],.icon--zip[data-v-617a3800],.icon--zip svg[data-v-617a3800]{width:20px;height:26px}.container[data-v-617a3800]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-617a3800]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-617a3800]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-617a3800]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-617a3800]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-617a3800]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-617a3800]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-617a3800]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-617a3800]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-617a3800]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-617a3800]{width:auto}}.previewer[data-v-617a3800]{display:block;width:100%;padding:0;position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;background-color:#333}.previewer__restore[data-v-617a3800]{position:fixed;right:20px;top:13px;z-index:401}.tag--revision[data-v-617a3800]{color:#262626;position:absolute;top:17px;left:0;margin:0;opacity:.5}.previewer__nav[data-v-617a3800]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;height:80px;opacity:1;-webkit-transition:opacity .3s ease;transition:opacity .3s ease}.previewer__frame[data-v-617a3800]{position:absolute;top:0;left:0;right:0;bottom:0}.previewer__frame[data-v-617a3800],.previewer__inner[data-v-617a3800]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.previewer__inner[data-v-617a3800]{position:relative;width:100%;overflow:hidden;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.previewer__trigger[data-v-617a3800]{height:auto;line-height:inherit}.previewer__trigger .icon[data-v-617a3800]{margin-left:6px}.previewer__compare[data-v-617a3800],.previewer__trigger[data-v-617a3800]{color:#8c8c8c;padding-left:0;padding-right:0}.previewer__compare[data-v-617a3800]:focus,.previewer__compare[data-v-617a3800]:hover,.previewer__trigger[data-v-617a3800]:focus,.previewer__trigger[data-v-617a3800]:hover{color:#fff}.previewer__compare a[data-v-617a3800],.previewer__trigger a[data-v-617a3800]{white-space:nowrap;overflow:hidden;text-decoration:none}@media screen and (min-width:850px){.previewer__compare[data-v-617a3800]{margin-left:20px}}.previewer__compare .icon[data-v-617a3800]{position:relative;margin-left:9px;top:2px}.previewer__compareLabel[data-v-617a3800]{display:none}@media screen and (min-width:600px){.previewer__compareLabel[data-v-617a3800]{display:inline}}.previewer__compare[data-v-617a3800],.previewer__revisions[data-v-617a3800]{margin-right:20px;padding-top:40px}.previewer__revisions[data-v-617a3800]{margin-left:20px;padding-top:40px;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative}.previewer__breakpoints[data-v-617a3800]{display:none}@media screen and (min-width:850px){.previewer__breakpoints[data-v-617a3800]{display:block;margin:0 auto;position:absolute;top:0;left:50%;font-size:0;-webkit-transform:translateX(-50%);transform:translateX(-50%);height:80px;line-height:80px}}.previewer__breakpoint[data-v-617a3800]{display:inline-block;color:#8c8c8c;padding:25px 15px;vertical-align:bottom}.previewer__breakpoint a[data-v-617a3800]{display:block}.previewer__breakpoint a[data-v-617a3800]:focus,.previewer__breakpoint a[data-v-617a3800]:hover{color:#a6a6a6}.previewer__breakpoint .icon[data-v-617a3800]{display:block}.previewer__breakpoint.s--active[data-v-617a3800],.previewer__breakpoint.s--active a[data-v-617a3800]:focus,.previewer__breakpoint.s--active a[data-v-617a3800]:hover{color:#fff}.previewer__content[data-v-617a3800]{height:100%;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.previewer__content[data-v-617a3800],.previewer__iframe[data-v-617a3800]{width:100%;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.previewer__iframe[data-v-617a3800]{opacity:1;-webkit-transition:opacity .3s ease,width .3s ease;transition:opacity .3s ease,width .3s ease;position:relative}.previewer--loading .previewer__iframe[data-v-617a3800],.previewer--loading .previewer__nav[data-v-617a3800]{opacity:0;pointer-events:none}.previewer--loading .previewer__content[data-v-617a3800]:after{content:"Loading preview...";position:absolute;top:25%;left:50%;width:200px;margin-left:-100px;text-align:center;color:#8c8c8c}.previewer__iframeInfos[data-v-617a3800]{height:80px;margin-top:-80px;position:absolute;color:#8c8c8c;top:0;left:10px;padding-top:40px}button.previewerRevision[data-v-617a3800]{display:-webkit-box;display:-ms-flexbox;display:flex;padding:0 15px}button.previewerRevision--active[data-v-617a3800]{color:#262626;background:#f2f2f2}.previewerRevision__author[data-v-617a3800]{padding-right:10px;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;white-space:nowrap}@media screen and (min-width:600px){.previewerRevision__author[data-v-617a3800]{padding-right:30px}}.previewerRevision__datetime[data-v-617a3800]{color:#3278b8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.icon--add[data-v-0f6c2e43],.icon--add svg[data-v-0f6c2e43]{width:10px;height:10px}.icon--arrow-external[data-v-0f6c2e43],.icon--arrow-external svg[data-v-0f6c2e43]{width:8px;height:8px}.icon--arrow-sort[data-v-0f6c2e43],.icon--arrow-sort svg[data-v-0f6c2e43]{width:9px;height:11px}.icon--check[data-v-0f6c2e43],.icon--check svg[data-v-0f6c2e43]{width:11px;height:11px}.icon--close_icon[data-v-0f6c2e43],.icon--close_icon svg[data-v-0f6c2e43]{width:10px;height:10px}.icon--close_modal[data-v-0f6c2e43],.icon--close_modal svg[data-v-0f6c2e43]{width:16px;height:16px}.icon--colors[data-v-0f6c2e43],.icon--colors svg[data-v-0f6c2e43]{width:17px;height:17px}.icon--content-editor[data-v-0f6c2e43],.icon--content-editor svg[data-v-0f6c2e43]{width:14px;height:13px}.icon--crop[data-v-0f6c2e43],.icon--crop svg[data-v-0f6c2e43]{width:16px;height:18px}.icon--download[data-v-0f6c2e43],.icon--download svg[data-v-0f6c2e43]{width:12px;height:16px}.icon--drag[data-v-0f6c2e43],.icon--drag svg[data-v-0f6c2e43]{width:8px;height:17px}.icon--dropdown_default[data-v-0f6c2e43],.icon--dropdown_default svg[data-v-0f6c2e43]{width:9px;height:5px}.icon--dropdown_module[data-v-0f6c2e43],.icon--dropdown_module svg[data-v-0f6c2e43]{width:10px;height:6px}.icon--edit[data-v-0f6c2e43],.icon--edit svg[data-v-0f6c2e43]{width:13px;height:13px}.icon--edit_large[data-v-0f6c2e43],.icon--edit_large svg[data-v-0f6c2e43]{width:14px;height:14px}.icon--editor[data-v-0f6c2e43],.icon--editor svg[data-v-0f6c2e43]{width:14px;height:13px}.icon--expand[data-v-0f6c2e43],.icon--expand svg[data-v-0f6c2e43]{width:10px;height:10px}.icon--fix-grid[data-v-0f6c2e43],.icon--fix-grid svg[data-v-0f6c2e43]{width:18px;height:14px}.icon--flex-grid[data-v-0f6c2e43],.icon--flex-grid svg[data-v-0f6c2e43]{width:18px;height:17px}.icon--google-sign-in[data-v-0f6c2e43],.icon--google-sign-in svg[data-v-0f6c2e43]{width:23px;height:24px}.icon--image-text[data-v-0f6c2e43],.icon--image-text svg[data-v-0f6c2e43]{width:30px;height:13px}.icon--image[data-v-0f6c2e43],.icon--image svg[data-v-0f6c2e43]{width:19px;height:15px}.icon--info[data-v-0f6c2e43],.icon--info svg[data-v-0f6c2e43]{width:21px;height:21px}.icon--location[data-v-0f6c2e43],.icon--location svg[data-v-0f6c2e43]{width:12px;height:16px}.icon--media-grid[data-v-0f6c2e43],.icon--media-grid svg[data-v-0f6c2e43]{width:12px;height:12px}.icon--media-list[data-v-0f6c2e43],.icon--media-list svg[data-v-0f6c2e43]{width:16px;height:10px}.icon--more-dots[data-v-0f6c2e43],.icon--more-dots svg[data-v-0f6c2e43]{width:14px;height:4px}.icon--pagination_left[data-v-0f6c2e43],.icon--pagination_left svg[data-v-0f6c2e43],.icon--pagination_right[data-v-0f6c2e43],.icon--pagination_right svg[data-v-0f6c2e43]{width:9px;height:15px}.icon--preferences[data-v-0f6c2e43],.icon--preferences svg[data-v-0f6c2e43]{width:26px;height:16px}.icon--preview-desktop[data-v-0f6c2e43],.icon--preview-desktop svg[data-v-0f6c2e43]{width:39px;height:30px}.icon--preview-mobile[data-v-0f6c2e43],.icon--preview-mobile svg[data-v-0f6c2e43]{width:12px;height:18px}.icon--preview-tablet-h[data-v-0f6c2e43],.icon--preview-tablet-h svg[data-v-0f6c2e43]{width:27px;height:20px}.icon--preview-tablet-v[data-v-0f6c2e43],.icon--preview-tablet-v svg[data-v-0f6c2e43]{width:20px;height:27px}.icon--preview[data-v-0f6c2e43],.icon--preview svg[data-v-0f6c2e43]{width:22px;height:14px}.icon--publish[data-v-0f6c2e43],.icon--publish svg[data-v-0f6c2e43]{width:22px;height:15px}.icon--quote[data-v-0f6c2e43],.icon--quote svg[data-v-0f6c2e43]{width:16px;height:13px}.icon--revision-compare[data-v-0f6c2e43],.icon--revision-compare svg[data-v-0f6c2e43],.icon--revision-single[data-v-0f6c2e43],.icon--revision-single svg[data-v-0f6c2e43]{width:23px;height:16px}.icon--search[data-v-0f6c2e43],.icon--search svg[data-v-0f6c2e43]{width:20px;height:20px}.icon--slideshow[data-v-0f6c2e43],.icon--slideshow svg[data-v-0f6c2e43]{width:20px;height:16px}.icon--star-feature[data-v-0f6c2e43],.icon--star-feature_active[data-v-0f6c2e43],.icon--star-feature_active svg[data-v-0f6c2e43],.icon--star-feature svg[data-v-0f6c2e43]{width:20px;height:19px}.icon--text-2col[data-v-0f6c2e43],.icon--text-2col svg[data-v-0f6c2e43]{width:26px;height:13px}.icon--text[data-v-0f6c2e43],.icon--text svg[data-v-0f6c2e43]{width:17px;height:13px}.icon--trash[data-v-0f6c2e43],.icon--trash svg[data-v-0f6c2e43]{width:15px;height:17px}.icon--video[data-v-0f6c2e43],.icon--video svg[data-v-0f6c2e43]{width:23px;height:23px}.icon--website[data-v-0f6c2e43],.icon--website svg[data-v-0f6c2e43]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-0f6c2e43],.icon--wysiwyg_anchor svg[data-v-0f6c2e43]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-0f6c2e43],.icon--wysiwyg_bold svg[data-v-0f6c2e43]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-0f6c2e43],.icon--wysiwyg_header-2[data-v-0f6c2e43],.icon--wysiwyg_header-3 svg[data-v-0f6c2e43],.icon--wysiwyg_header-3[data-v-0f6c2e43],.icon--wysiwyg_header-4 svg[data-v-0f6c2e43],.icon--wysiwyg_header-4[data-v-0f6c2e43],.icon--wysiwyg_header-5 svg[data-v-0f6c2e43],.icon--wysiwyg_header-5[data-v-0f6c2e43],.icon--wysiwyg_header-6 svg[data-v-0f6c2e43],.icon--wysiwyg_header-6[data-v-0f6c2e43],.icon--wysiwyg_header[data-v-0f6c2e43],.icon--wysiwyg_header svg[data-v-0f6c2e43]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-0f6c2e43],.icon--wysiwyg_italic svg[data-v-0f6c2e43]{width:10px;height:13px}.icon--wysiwyg_link[data-v-0f6c2e43],.icon--wysiwyg_link svg[data-v-0f6c2e43]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-0f6c2e43],.icon--wysiwyg_underline svg[data-v-0f6c2e43]{width:12px;height:13px}.icon--ae[data-v-0f6c2e43],.icon--ae svg[data-v-0f6c2e43],.icon--ai[data-v-0f6c2e43],.icon--ai svg[data-v-0f6c2e43],.icon--ase[data-v-0f6c2e43],.icon--ase svg[data-v-0f6c2e43]{width:20px;height:26px}.icon--cut[data-v-0f6c2e43],.icon--cut svg[data-v-0f6c2e43],.icon--dir[data-v-0f6c2e43],.icon--dir_protected[data-v-0f6c2e43],.icon--dir_protected svg[data-v-0f6c2e43],.icon--dir_shared[data-v-0f6c2e43],.icon--dir_shared svg[data-v-0f6c2e43],.icon--dir svg[data-v-0f6c2e43]{width:26px;height:21px}.icon--dmg[data-v-0f6c2e43],.icon--dmg svg[data-v-0f6c2e43],.icon--doc[data-v-0f6c2e43],.icon--doc svg[data-v-0f6c2e43],.icon--eps[data-v-0f6c2e43],.icon--eps svg[data-v-0f6c2e43],.icon--fla[data-v-0f6c2e43],.icon--fla svg[data-v-0f6c2e43],.icon--fnt[data-v-0f6c2e43],.icon--fnt svg[data-v-0f6c2e43],.icon--gen[data-v-0f6c2e43],.icon--gen svg[data-v-0f6c2e43],.icon--html[data-v-0f6c2e43],.icon--html svg[data-v-0f6c2e43],.icon--img[data-v-0f6c2e43],.icon--img svg[data-v-0f6c2e43],.icon--indd[data-v-0f6c2e43],.icon--indd svg[data-v-0f6c2e43],.icon--key[data-v-0f6c2e43],.icon--key svg[data-v-0f6c2e43],.icon--merlin[data-v-0f6c2e43],.icon--merlin svg[data-v-0f6c2e43]{width:20px;height:26px}.icon--net[data-v-0f6c2e43],.icon--net svg[data-v-0f6c2e43]{width:26px;height:21px}.icon--numbers[data-v-0f6c2e43],.icon--numbers svg[data-v-0f6c2e43],.icon--pages[data-v-0f6c2e43],.icon--pages svg[data-v-0f6c2e43],.icon--pdf[data-v-0f6c2e43],.icon--pdf svg[data-v-0f6c2e43],.icon--ppt[data-v-0f6c2e43],.icon--ppt svg[data-v-0f6c2e43],.icon--psd[data-v-0f6c2e43],.icon--psd svg[data-v-0f6c2e43]{width:20px;height:26px}.icon--site[data-v-0f6c2e43],.icon--site svg[data-v-0f6c2e43]{width:26px;height:21px}.icon--slide[data-v-0f6c2e43],.icon--slide svg[data-v-0f6c2e43],.icon--snd[data-v-0f6c2e43],.icon--snd svg[data-v-0f6c2e43],.icon--sql[data-v-0f6c2e43],.icon--sql svg[data-v-0f6c2e43],.icon--swf[data-v-0f6c2e43],.icon--swf svg[data-v-0f6c2e43],.icon--txt[data-v-0f6c2e43],.icon--txt svg[data-v-0f6c2e43],.icon--vid[data-v-0f6c2e43],.icon--vid svg[data-v-0f6c2e43],.icon--xls[data-v-0f6c2e43],.icon--xls svg[data-v-0f6c2e43],.icon--zip[data-v-0f6c2e43],.icon--zip svg[data-v-0f6c2e43]{width:20px;height:26px}.container[data-v-0f6c2e43]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-0f6c2e43]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-0f6c2e43]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-0f6c2e43]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-0f6c2e43]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-0f6c2e43]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-0f6c2e43]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-0f6c2e43]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-0f6c2e43]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-0f6c2e43]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-0f6c2e43]{width:auto}}.editorSidebar[data-v-0f6c2e43]{margin:20px 0 20px 0;position:relative;overflow:hidden;height:calc(100% - 40px)}.editorSidebar__item[data-v-0f6c2e43],.editorSidebar__list[data-v-0f6c2e43]{padding:0 10px 0 20px;overflow-y:scroll;position:absolute;top:0;bottom:60px;left:0;right:0}.editorSidebar__list[data-v-0f6c2e43]{height:calc(100% - 60px)}.editorSidebar__title[data-v-0f6c2e43]{padding:15px 0 10px 0;display:-webkit-box;display:-ms-flexbox;display:flex}.editorSidebar__body[data-v-0f6c2e43]{border:1px solid #e5e5e5;border-radius:2px;background:#fff;padding:15px}.editorSidebar__counter[data-v-0f6c2e43]{border:1px solid #e5e5e5;border-radius:50%;height:26px;width:26px;text-align:center;display:inline-block;line-height:25px;margin-right:10px;background:#fff;color:#8c8c8c;-webkit-font-feature-settings:"kern";font-feature-settings:"kern";-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.dropdown .editorSidebar__counter[data-v-0f6c2e43]{cursor:pointer}.dropdown--active .editorSidebar__counter[data-v-0f6c2e43],.editorSidebar__counter[data-v-0f6c2e43]:hover{color:#262626;border-color:#262626}.editorSidebar__blockTitle[data-v-0f6c2e43],h4[data-v-0f6c2e43]{font-weight:600}.editorSidebar__blockTitle[data-v-0f6c2e43]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1}.editorSidebar__blockTitle .dropdown[data-v-0f6c2e43]{display:inline-block}.editorSidebar__actions[data-v-0f6c2e43]{position:absolute;width:100%;left:0;bottom:0;padding:20px 10px 0 20px;background:#f2f2f2;display:-webkit-box;display:-ms-flexbox;display:flex}.editorSidebar__actions button[data-v-0f6c2e43]{width:calc(50% - 10px)}.editorSidebar__actions button+button[data-v-0f6c2e43]{margin-left:20px}.editorSidebar__actions button.button--validate[data-v-0f6c2e43]:last-child{width:100%;margin-left:0}.editorSidebar__button[data-v-0f6c2e43]{background-color:transparent;-webkit-appearance:none;cursor:pointer;font-size:1em;outline:none;margin:0;border:0 none;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:inherit;cursor:move;display:block;width:100%;text-align:left;background:#fff;border-radius:2px;margin-bottom:10px;height:60px;line-height:60px;padding:0 20px;border:1px solid #e5e5e5;color:#8c8c8c}.editorSidebar__button .icon[data-v-0f6c2e43]{margin-left:-20px;min-width:65px;text-align:center;color:#a6a6a6;height:58px}.editorSidebar__button[data-v-0f6c2e43]:focus,.editorSidebar__button[data-v-0f6c2e43]:hover{color:#262626;border-color:#ccc}.editorSidebar__button:focus .icon[data-v-0f6c2e43],.editorSidebar__button:hover .icon[data-v-0f6c2e43]{color:#262626}.icon--add,.icon--add svg{width:10px;height:10px}.icon--arrow-external,.icon--arrow-external svg{width:8px;height:8px}.icon--arrow-sort,.icon--arrow-sort svg{width:9px;height:11px}.icon--check,.icon--check svg{width:11px;height:11px}.icon--close_icon,.icon--close_icon svg{width:10px;height:10px}.icon--close_modal,.icon--close_modal svg{width:16px;height:16px}.icon--colors,.icon--colors svg{width:17px;height:17px}.icon--content-editor,.icon--content-editor svg{width:14px;height:13px}.icon--crop,.icon--crop svg{width:16px;height:18px}.icon--download,.icon--download svg{width:12px;height:16px}.icon--drag,.icon--drag svg{width:8px;height:17px}.icon--dropdown_default,.icon--dropdown_default svg{width:9px;height:5px}.icon--dropdown_module,.icon--dropdown_module svg{width:10px;height:6px}.icon--edit,.icon--edit svg{width:13px;height:13px}.icon--edit_large,.icon--edit_large svg{width:14px;height:14px}.icon--editor,.icon--editor svg{width:14px;height:13px}.icon--expand,.icon--expand svg{width:10px;height:10px}.icon--fix-grid,.icon--fix-grid svg{width:18px;height:14px}.icon--flex-grid,.icon--flex-grid svg{width:18px;height:17px}.icon--google-sign-in,.icon--google-sign-in svg{width:23px;height:24px}.icon--image-text,.icon--image-text svg{width:30px;height:13px}.icon--image,.icon--image svg{width:19px;height:15px}.icon--info,.icon--info svg{width:21px;height:21px}.icon--location,.icon--location svg{width:12px;height:16px}.icon--media-grid,.icon--media-grid svg{width:12px;height:12px}.icon--media-list,.icon--media-list svg{width:16px;height:10px}.icon--more-dots,.icon--more-dots svg{width:14px;height:4px}.icon--pagination_left,.icon--pagination_left svg,.icon--pagination_right,.icon--pagination_right svg{width:9px;height:15px}.icon--preferences,.icon--preferences svg{width:26px;height:16px}.icon--preview-desktop,.icon--preview-desktop svg{width:39px;height:30px}.icon--preview-mobile,.icon--preview-mobile svg{width:12px;height:18px}.icon--preview-tablet-h,.icon--preview-tablet-h svg{width:27px;height:20px}.icon--preview-tablet-v,.icon--preview-tablet-v svg{width:20px;height:27px}.icon--preview,.icon--preview svg{width:22px;height:14px}.icon--publish,.icon--publish svg{width:22px;height:15px}.icon--quote,.icon--quote svg{width:16px;height:13px}.icon--revision-compare,.icon--revision-compare svg,.icon--revision-single,.icon--revision-single svg{width:23px;height:16px}.icon--search,.icon--search svg{width:20px;height:20px}.icon--slideshow,.icon--slideshow svg{width:20px;height:16px}.icon--star-feature,.icon--star-feature_active,.icon--star-feature_active svg,.icon--star-feature svg{width:20px;height:19px}.icon--text-2col,.icon--text-2col svg{width:26px;height:13px}.icon--text,.icon--text svg{width:17px;height:13px}.icon--trash,.icon--trash svg{width:15px;height:17px}.icon--video,.icon--video svg{width:23px;height:23px}.icon--website,.icon--website svg{width:26px;height:21px}.icon--wysiwyg_anchor,.icon--wysiwyg_anchor svg{width:18px;height:18px}.icon--wysiwyg_bold,.icon--wysiwyg_bold svg{width:12px;height:13px}.icon--wysiwyg_header,.icon--wysiwyg_header-2,.icon--wysiwyg_header-2 svg,.icon--wysiwyg_header-3,.icon--wysiwyg_header-3 svg,.icon--wysiwyg_header-4,.icon--wysiwyg_header-4 svg,.icon--wysiwyg_header-5,.icon--wysiwyg_header-5 svg,.icon--wysiwyg_header-6,.icon--wysiwyg_header-6 svg,.icon--wysiwyg_header svg{width:18px;height:18px}.icon--wysiwyg_italic,.icon--wysiwyg_italic svg{width:10px;height:13px}.icon--wysiwyg_link,.icon--wysiwyg_link svg{width:21px;height:10px}.icon--wysiwyg_underline,.icon--wysiwyg_underline svg{width:12px;height:13px}.icon--ae,.icon--ae svg,.icon--ai,.icon--ai svg,.icon--ase,.icon--ase svg{width:20px;height:26px}.icon--cut,.icon--cut svg,.icon--dir,.icon--dir_protected,.icon--dir_protected svg,.icon--dir_shared,.icon--dir_shared svg,.icon--dir svg{width:26px;height:21px}.icon--dmg,.icon--dmg svg,.icon--doc,.icon--doc svg,.icon--eps,.icon--eps svg,.icon--fla,.icon--fla svg,.icon--fnt,.icon--fnt svg,.icon--gen,.icon--gen svg,.icon--html,.icon--html svg,.icon--img,.icon--img svg,.icon--indd,.icon--indd svg,.icon--key,.icon--key svg,.icon--merlin,.icon--merlin svg{width:20px;height:26px}.icon--net,.icon--net svg{width:26px;height:21px}.icon--numbers,.icon--numbers svg,.icon--pages,.icon--pages svg,.icon--pdf,.icon--pdf svg,.icon--ppt,.icon--ppt svg,.icon--psd,.icon--psd svg{width:20px;height:26px}.icon--site,.icon--site svg{width:26px;height:21px}.icon--slide,.icon--slide svg,.icon--snd,.icon--snd svg,.icon--sql,.icon--sql svg,.icon--swf,.icon--swf svg,.icon--txt,.icon--txt svg,.icon--vid,.icon--vid svg,.icon--xls,.icon--xls svg,.icon--zip,.icon--zip svg{width:20px;height:26px}.container{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full{width:auto}}@media screen and (min-width:1540px){.container--full{width:auto}}.editorSidebar__body .block__body>.browserField,.editorSidebar__body .block__body>.media,.editorSidebar__body .block__body>.slideshow{margin-left:-15px;margin-right:-15px;border:0 none}.editorSidebar__body .block__body>.browserField:last-child,.editorSidebar__body .block__body>.media:last-child,.editorSidebar__body .block__body>.slideshow:last-child{margin-bottom:-15px}.icon--add[data-v-2fa81c14],.icon--add svg[data-v-2fa81c14]{width:10px;height:10px}.icon--arrow-external[data-v-2fa81c14],.icon--arrow-external svg[data-v-2fa81c14]{width:8px;height:8px}.icon--arrow-sort[data-v-2fa81c14],.icon--arrow-sort svg[data-v-2fa81c14]{width:9px;height:11px}.icon--check[data-v-2fa81c14],.icon--check svg[data-v-2fa81c14]{width:11px;height:11px}.icon--close_icon[data-v-2fa81c14],.icon--close_icon svg[data-v-2fa81c14]{width:10px;height:10px}.icon--close_modal[data-v-2fa81c14],.icon--close_modal svg[data-v-2fa81c14]{width:16px;height:16px}.icon--colors[data-v-2fa81c14],.icon--colors svg[data-v-2fa81c14]{width:17px;height:17px}.icon--content-editor[data-v-2fa81c14],.icon--content-editor svg[data-v-2fa81c14]{width:14px;height:13px}.icon--crop[data-v-2fa81c14],.icon--crop svg[data-v-2fa81c14]{width:16px;height:18px}.icon--download[data-v-2fa81c14],.icon--download svg[data-v-2fa81c14]{width:12px;height:16px}.icon--drag[data-v-2fa81c14],.icon--drag svg[data-v-2fa81c14]{width:8px;height:17px}.icon--dropdown_default[data-v-2fa81c14],.icon--dropdown_default svg[data-v-2fa81c14]{width:9px;height:5px}.icon--dropdown_module[data-v-2fa81c14],.icon--dropdown_module svg[data-v-2fa81c14]{width:10px;height:6px}.icon--edit[data-v-2fa81c14],.icon--edit svg[data-v-2fa81c14]{width:13px;height:13px}.icon--edit_large[data-v-2fa81c14],.icon--edit_large svg[data-v-2fa81c14]{width:14px;height:14px}.icon--editor[data-v-2fa81c14],.icon--editor svg[data-v-2fa81c14]{width:14px;height:13px}.icon--expand[data-v-2fa81c14],.icon--expand svg[data-v-2fa81c14]{width:10px;height:10px}.icon--fix-grid[data-v-2fa81c14],.icon--fix-grid svg[data-v-2fa81c14]{width:18px;height:14px}.icon--flex-grid[data-v-2fa81c14],.icon--flex-grid svg[data-v-2fa81c14]{width:18px;height:17px}.icon--google-sign-in[data-v-2fa81c14],.icon--google-sign-in svg[data-v-2fa81c14]{width:23px;height:24px}.icon--image-text[data-v-2fa81c14],.icon--image-text svg[data-v-2fa81c14]{width:30px;height:13px}.icon--image[data-v-2fa81c14],.icon--image svg[data-v-2fa81c14]{width:19px;height:15px}.icon--info[data-v-2fa81c14],.icon--info svg[data-v-2fa81c14]{width:21px;height:21px}.icon--location[data-v-2fa81c14],.icon--location svg[data-v-2fa81c14]{width:12px;height:16px}.icon--media-grid[data-v-2fa81c14],.icon--media-grid svg[data-v-2fa81c14]{width:12px;height:12px}.icon--media-list[data-v-2fa81c14],.icon--media-list svg[data-v-2fa81c14]{width:16px;height:10px}.icon--more-dots[data-v-2fa81c14],.icon--more-dots svg[data-v-2fa81c14]{width:14px;height:4px}.icon--pagination_left[data-v-2fa81c14],.icon--pagination_left svg[data-v-2fa81c14],.icon--pagination_right[data-v-2fa81c14],.icon--pagination_right svg[data-v-2fa81c14]{width:9px;height:15px}.icon--preferences[data-v-2fa81c14],.icon--preferences svg[data-v-2fa81c14]{width:26px;height:16px}.icon--preview-desktop[data-v-2fa81c14],.icon--preview-desktop svg[data-v-2fa81c14]{width:39px;height:30px}.icon--preview-mobile[data-v-2fa81c14],.icon--preview-mobile svg[data-v-2fa81c14]{width:12px;height:18px}.icon--preview-tablet-h[data-v-2fa81c14],.icon--preview-tablet-h svg[data-v-2fa81c14]{width:27px;height:20px}.icon--preview-tablet-v[data-v-2fa81c14],.icon--preview-tablet-v svg[data-v-2fa81c14]{width:20px;height:27px}.icon--preview[data-v-2fa81c14],.icon--preview svg[data-v-2fa81c14]{width:22px;height:14px}.icon--publish[data-v-2fa81c14],.icon--publish svg[data-v-2fa81c14]{width:22px;height:15px}.icon--quote[data-v-2fa81c14],.icon--quote svg[data-v-2fa81c14]{width:16px;height:13px}.icon--revision-compare[data-v-2fa81c14],.icon--revision-compare svg[data-v-2fa81c14],.icon--revision-single[data-v-2fa81c14],.icon--revision-single svg[data-v-2fa81c14]{width:23px;height:16px}.icon--search[data-v-2fa81c14],.icon--search svg[data-v-2fa81c14]{width:20px;height:20px}.icon--slideshow[data-v-2fa81c14],.icon--slideshow svg[data-v-2fa81c14]{width:20px;height:16px}.icon--star-feature[data-v-2fa81c14],.icon--star-feature_active[data-v-2fa81c14],.icon--star-feature_active svg[data-v-2fa81c14],.icon--star-feature svg[data-v-2fa81c14]{width:20px;height:19px}.icon--text-2col[data-v-2fa81c14],.icon--text-2col svg[data-v-2fa81c14]{width:26px;height:13px}.icon--text[data-v-2fa81c14],.icon--text svg[data-v-2fa81c14]{width:17px;height:13px}.icon--trash[data-v-2fa81c14],.icon--trash svg[data-v-2fa81c14]{width:15px;height:17px}.icon--video[data-v-2fa81c14],.icon--video svg[data-v-2fa81c14]{width:23px;height:23px}.icon--website[data-v-2fa81c14],.icon--website svg[data-v-2fa81c14]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-2fa81c14],.icon--wysiwyg_anchor svg[data-v-2fa81c14]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-2fa81c14],.icon--wysiwyg_bold svg[data-v-2fa81c14]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-2fa81c14],.icon--wysiwyg_header-2[data-v-2fa81c14],.icon--wysiwyg_header-3 svg[data-v-2fa81c14],.icon--wysiwyg_header-3[data-v-2fa81c14],.icon--wysiwyg_header-4 svg[data-v-2fa81c14],.icon--wysiwyg_header-4[data-v-2fa81c14],.icon--wysiwyg_header-5 svg[data-v-2fa81c14],.icon--wysiwyg_header-5[data-v-2fa81c14],.icon--wysiwyg_header-6 svg[data-v-2fa81c14],.icon--wysiwyg_header-6[data-v-2fa81c14],.icon--wysiwyg_header[data-v-2fa81c14],.icon--wysiwyg_header svg[data-v-2fa81c14]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-2fa81c14],.icon--wysiwyg_italic svg[data-v-2fa81c14]{width:10px;height:13px}.icon--wysiwyg_link[data-v-2fa81c14],.icon--wysiwyg_link svg[data-v-2fa81c14]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-2fa81c14],.icon--wysiwyg_underline svg[data-v-2fa81c14]{width:12px;height:13px}.icon--ae[data-v-2fa81c14],.icon--ae svg[data-v-2fa81c14],.icon--ai[data-v-2fa81c14],.icon--ai svg[data-v-2fa81c14],.icon--ase[data-v-2fa81c14],.icon--ase svg[data-v-2fa81c14]{width:20px;height:26px}.icon--cut[data-v-2fa81c14],.icon--cut svg[data-v-2fa81c14],.icon--dir[data-v-2fa81c14],.icon--dir_protected[data-v-2fa81c14],.icon--dir_protected svg[data-v-2fa81c14],.icon--dir_shared[data-v-2fa81c14],.icon--dir_shared svg[data-v-2fa81c14],.icon--dir svg[data-v-2fa81c14]{width:26px;height:21px}.icon--dmg[data-v-2fa81c14],.icon--dmg svg[data-v-2fa81c14],.icon--doc[data-v-2fa81c14],.icon--doc svg[data-v-2fa81c14],.icon--eps[data-v-2fa81c14],.icon--eps svg[data-v-2fa81c14],.icon--fla[data-v-2fa81c14],.icon--fla svg[data-v-2fa81c14],.icon--fnt[data-v-2fa81c14],.icon--fnt svg[data-v-2fa81c14],.icon--gen[data-v-2fa81c14],.icon--gen svg[data-v-2fa81c14],.icon--html[data-v-2fa81c14],.icon--html svg[data-v-2fa81c14],.icon--img[data-v-2fa81c14],.icon--img svg[data-v-2fa81c14],.icon--indd[data-v-2fa81c14],.icon--indd svg[data-v-2fa81c14],.icon--key[data-v-2fa81c14],.icon--key svg[data-v-2fa81c14],.icon--merlin[data-v-2fa81c14],.icon--merlin svg[data-v-2fa81c14]{width:20px;height:26px}.icon--net[data-v-2fa81c14],.icon--net svg[data-v-2fa81c14]{width:26px;height:21px}.icon--numbers[data-v-2fa81c14],.icon--numbers svg[data-v-2fa81c14],.icon--pages[data-v-2fa81c14],.icon--pages svg[data-v-2fa81c14],.icon--pdf[data-v-2fa81c14],.icon--pdf svg[data-v-2fa81c14],.icon--ppt[data-v-2fa81c14],.icon--ppt svg[data-v-2fa81c14],.icon--psd[data-v-2fa81c14],.icon--psd svg[data-v-2fa81c14]{width:20px;height:26px}.icon--site[data-v-2fa81c14],.icon--site svg[data-v-2fa81c14]{width:26px;height:21px}.icon--slide[data-v-2fa81c14],.icon--slide svg[data-v-2fa81c14],.icon--snd[data-v-2fa81c14],.icon--snd svg[data-v-2fa81c14],.icon--sql[data-v-2fa81c14],.icon--sql svg[data-v-2fa81c14],.icon--swf[data-v-2fa81c14],.icon--swf svg[data-v-2fa81c14],.icon--txt[data-v-2fa81c14],.icon--txt svg[data-v-2fa81c14],.icon--vid[data-v-2fa81c14],.icon--vid svg[data-v-2fa81c14],.icon--xls[data-v-2fa81c14],.icon--xls svg[data-v-2fa81c14],.icon--zip[data-v-2fa81c14],.icon--zip svg[data-v-2fa81c14]{width:20px;height:26px}.container[data-v-2fa81c14]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-2fa81c14]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-2fa81c14]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-2fa81c14]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-2fa81c14]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-2fa81c14]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-2fa81c14]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-2fa81c14]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-2fa81c14]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-2fa81c14]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-2fa81c14]{width:auto}}.editorIframe[data-v-2fa81c14]{cursor:pointer}.editorIframe iframe[data-v-2fa81c14]{width:100%;overflow:hidden;display:block}.editorIframe__empty[data-v-2fa81c14]{position:absolute;left:0;right:0;top:0;bottom:0;text-align:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:no-wrap;flex-wrap:no-wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:rgba(38,38,38,.5);background-color:rgba(20,141,219,.05);border:1px solid rgba(20,141,219,.33)}.editor__preview--dark .editorIframe__empty[data-v-2fa81c14]{color:hsla(0,0%,100%,.75);background-color:rgba(20,141,219,.2);border:1px solid rgba(20,141,219,.5)}.icon--add[data-v-3082648e],.icon--add svg[data-v-3082648e]{width:10px;height:10px}.icon--arrow-external[data-v-3082648e],.icon--arrow-external svg[data-v-3082648e]{width:8px;height:8px}.icon--arrow-sort[data-v-3082648e],.icon--arrow-sort svg[data-v-3082648e]{width:9px;height:11px}.icon--check[data-v-3082648e],.icon--check svg[data-v-3082648e]{width:11px;height:11px}.icon--close_icon[data-v-3082648e],.icon--close_icon svg[data-v-3082648e]{width:10px;height:10px}.icon--close_modal[data-v-3082648e],.icon--close_modal svg[data-v-3082648e]{width:16px;height:16px}.icon--colors[data-v-3082648e],.icon--colors svg[data-v-3082648e]{width:17px;height:17px}.icon--content-editor[data-v-3082648e],.icon--content-editor svg[data-v-3082648e]{width:14px;height:13px}.icon--crop[data-v-3082648e],.icon--crop svg[data-v-3082648e]{width:16px;height:18px}.icon--download[data-v-3082648e],.icon--download svg[data-v-3082648e]{width:12px;height:16px}.icon--drag[data-v-3082648e],.icon--drag svg[data-v-3082648e]{width:8px;height:17px}.icon--dropdown_default[data-v-3082648e],.icon--dropdown_default svg[data-v-3082648e]{width:9px;height:5px}.icon--dropdown_module[data-v-3082648e],.icon--dropdown_module svg[data-v-3082648e]{width:10px;height:6px}.icon--edit[data-v-3082648e],.icon--edit svg[data-v-3082648e]{width:13px;height:13px}.icon--edit_large[data-v-3082648e],.icon--edit_large svg[data-v-3082648e]{width:14px;height:14px}.icon--editor[data-v-3082648e],.icon--editor svg[data-v-3082648e]{width:14px;height:13px}.icon--expand[data-v-3082648e],.icon--expand svg[data-v-3082648e]{width:10px;height:10px}.icon--fix-grid[data-v-3082648e],.icon--fix-grid svg[data-v-3082648e]{width:18px;height:14px}.icon--flex-grid[data-v-3082648e],.icon--flex-grid svg[data-v-3082648e]{width:18px;height:17px}.icon--google-sign-in[data-v-3082648e],.icon--google-sign-in svg[data-v-3082648e]{width:23px;height:24px}.icon--image-text[data-v-3082648e],.icon--image-text svg[data-v-3082648e]{width:30px;height:13px}.icon--image[data-v-3082648e],.icon--image svg[data-v-3082648e]{width:19px;height:15px}.icon--info[data-v-3082648e],.icon--info svg[data-v-3082648e]{width:21px;height:21px}.icon--location[data-v-3082648e],.icon--location svg[data-v-3082648e]{width:12px;height:16px}.icon--media-grid[data-v-3082648e],.icon--media-grid svg[data-v-3082648e]{width:12px;height:12px}.icon--media-list[data-v-3082648e],.icon--media-list svg[data-v-3082648e]{width:16px;height:10px}.icon--more-dots[data-v-3082648e],.icon--more-dots svg[data-v-3082648e]{width:14px;height:4px}.icon--pagination_left[data-v-3082648e],.icon--pagination_left svg[data-v-3082648e],.icon--pagination_right[data-v-3082648e],.icon--pagination_right svg[data-v-3082648e]{width:9px;height:15px}.icon--preferences[data-v-3082648e],.icon--preferences svg[data-v-3082648e]{width:26px;height:16px}.icon--preview-desktop[data-v-3082648e],.icon--preview-desktop svg[data-v-3082648e]{width:39px;height:30px}.icon--preview-mobile[data-v-3082648e],.icon--preview-mobile svg[data-v-3082648e]{width:12px;height:18px}.icon--preview-tablet-h[data-v-3082648e],.icon--preview-tablet-h svg[data-v-3082648e]{width:27px;height:20px}.icon--preview-tablet-v[data-v-3082648e],.icon--preview-tablet-v svg[data-v-3082648e]{width:20px;height:27px}.icon--preview[data-v-3082648e],.icon--preview svg[data-v-3082648e]{width:22px;height:14px}.icon--publish[data-v-3082648e],.icon--publish svg[data-v-3082648e]{width:22px;height:15px}.icon--quote[data-v-3082648e],.icon--quote svg[data-v-3082648e]{width:16px;height:13px}.icon--revision-compare[data-v-3082648e],.icon--revision-compare svg[data-v-3082648e],.icon--revision-single[data-v-3082648e],.icon--revision-single svg[data-v-3082648e]{width:23px;height:16px}.icon--search[data-v-3082648e],.icon--search svg[data-v-3082648e]{width:20px;height:20px}.icon--slideshow[data-v-3082648e],.icon--slideshow svg[data-v-3082648e]{width:20px;height:16px}.icon--star-feature[data-v-3082648e],.icon--star-feature_active[data-v-3082648e],.icon--star-feature_active svg[data-v-3082648e],.icon--star-feature svg[data-v-3082648e]{width:20px;height:19px}.icon--text-2col[data-v-3082648e],.icon--text-2col svg[data-v-3082648e]{width:26px;height:13px}.icon--text[data-v-3082648e],.icon--text svg[data-v-3082648e]{width:17px;height:13px}.icon--trash[data-v-3082648e],.icon--trash svg[data-v-3082648e]{width:15px;height:17px}.icon--video[data-v-3082648e],.icon--video svg[data-v-3082648e]{width:23px;height:23px}.icon--website[data-v-3082648e],.icon--website svg[data-v-3082648e]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-3082648e],.icon--wysiwyg_anchor svg[data-v-3082648e]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-3082648e],.icon--wysiwyg_bold svg[data-v-3082648e]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-3082648e],.icon--wysiwyg_header-2[data-v-3082648e],.icon--wysiwyg_header-3 svg[data-v-3082648e],.icon--wysiwyg_header-3[data-v-3082648e],.icon--wysiwyg_header-4 svg[data-v-3082648e],.icon--wysiwyg_header-4[data-v-3082648e],.icon--wysiwyg_header-5 svg[data-v-3082648e],.icon--wysiwyg_header-5[data-v-3082648e],.icon--wysiwyg_header-6 svg[data-v-3082648e],.icon--wysiwyg_header-6[data-v-3082648e],.icon--wysiwyg_header[data-v-3082648e],.icon--wysiwyg_header svg[data-v-3082648e]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-3082648e],.icon--wysiwyg_italic svg[data-v-3082648e]{width:10px;height:13px}.icon--wysiwyg_link[data-v-3082648e],.icon--wysiwyg_link svg[data-v-3082648e]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-3082648e],.icon--wysiwyg_underline svg[data-v-3082648e]{width:12px;height:13px}.icon--ae[data-v-3082648e],.icon--ae svg[data-v-3082648e],.icon--ai[data-v-3082648e],.icon--ai svg[data-v-3082648e],.icon--ase[data-v-3082648e],.icon--ase svg[data-v-3082648e]{width:20px;height:26px}.icon--cut[data-v-3082648e],.icon--cut svg[data-v-3082648e],.icon--dir[data-v-3082648e],.icon--dir_protected[data-v-3082648e],.icon--dir_protected svg[data-v-3082648e],.icon--dir_shared[data-v-3082648e],.icon--dir_shared svg[data-v-3082648e],.icon--dir svg[data-v-3082648e]{width:26px;height:21px}.icon--dmg[data-v-3082648e],.icon--dmg svg[data-v-3082648e],.icon--doc[data-v-3082648e],.icon--doc svg[data-v-3082648e],.icon--eps[data-v-3082648e],.icon--eps svg[data-v-3082648e],.icon--fla[data-v-3082648e],.icon--fla svg[data-v-3082648e],.icon--fnt[data-v-3082648e],.icon--fnt svg[data-v-3082648e],.icon--gen[data-v-3082648e],.icon--gen svg[data-v-3082648e],.icon--html[data-v-3082648e],.icon--html svg[data-v-3082648e],.icon--img[data-v-3082648e],.icon--img svg[data-v-3082648e],.icon--indd[data-v-3082648e],.icon--indd svg[data-v-3082648e],.icon--key[data-v-3082648e],.icon--key svg[data-v-3082648e],.icon--merlin[data-v-3082648e],.icon--merlin svg[data-v-3082648e]{width:20px;height:26px}.icon--net[data-v-3082648e],.icon--net svg[data-v-3082648e]{width:26px;height:21px}.icon--numbers[data-v-3082648e],.icon--numbers svg[data-v-3082648e],.icon--pages[data-v-3082648e],.icon--pages svg[data-v-3082648e],.icon--pdf[data-v-3082648e],.icon--pdf svg[data-v-3082648e],.icon--ppt[data-v-3082648e],.icon--ppt svg[data-v-3082648e],.icon--psd[data-v-3082648e],.icon--psd svg[data-v-3082648e]{width:20px;height:26px}.icon--site[data-v-3082648e],.icon--site svg[data-v-3082648e]{width:26px;height:21px}.icon--slide[data-v-3082648e],.icon--slide svg[data-v-3082648e],.icon--snd[data-v-3082648e],.icon--snd svg[data-v-3082648e],.icon--sql[data-v-3082648e],.icon--sql svg[data-v-3082648e],.icon--swf[data-v-3082648e],.icon--swf svg[data-v-3082648e],.icon--txt[data-v-3082648e],.icon--txt svg[data-v-3082648e],.icon--vid[data-v-3082648e],.icon--vid svg[data-v-3082648e],.icon--xls[data-v-3082648e],.icon--xls svg[data-v-3082648e],.icon--zip[data-v-3082648e],.icon--zip svg[data-v-3082648e]{width:20px;height:26px}.container[data-v-3082648e]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-3082648e]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-3082648e]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-3082648e]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-3082648e]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-3082648e]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-3082648e]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-3082648e]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-3082648e]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-3082648e]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-3082648e]{width:auto}}.editorPreview[data-v-3082648e]{background-color:inherit;color:inherit}.editorPreview.editorPreview--loading[data-v-3082648e]{opacity:0}.editorPreview__content[data-v-3082648e]{position:absolute;top:0;bottom:0;right:0;left:0;padding:20px;overflow-y:scroll;background-color:inherit}.editorPreview__empty[data-v-3082648e]{position:absolute;top:0;bottom:0;right:0;left:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;color:inherit;background-color:inherit}.editorPreview__empty[data-v-3082648e]:after{display:block;content:"";position:absolute;top:20px;bottom:20px;right:20px;left:20px;border:1px dashed #d9d9d9}.editorPreview__empty>[data-v-3082648e]{padding:0 40px;font-size:18px;line-height:1.35em;text-align:center;font-weight:400}.editorPreview__empty+.editorPreview__content[data-v-3082648e]{background-color:transparent}.editorPreview__item[data-v-3082648e]{min-height:80px;position:relative;margin-bottom:1px;z-index:1}.editorPreview__item[data-v-3082648e]:after{content:"";border-radius:2px;position:absolute;top:0;right:0;left:0;bottom:0;border:1px solid #e5e5e5;z-index:0;opacity:0}.editorPreview__item[data-v-3082648e]:hover:after{border-color:#e5e5e5;opacity:1}.editorPreview__item--hover[data-v-3082648e]{z-index:2}.editorPreview__item--active[data-v-3082648e]:after,.editorPreview__item--active[data-v-3082648e]:hover:after{border-color:#148ddb;opacity:1}.editorPreview__protector[data-v-3082648e]{position:absolute;left:0;right:0;top:0;bottom:0;cursor:move;z-index:1}.editorPreview__header[data-v-3082648e]{position:absolute;top:20px;right:20px;padding:0;display:none;background-clip:padding-box;z-index:2}.editorPreview__handle[data-v-3082648e]{position:absolute;height:10px;width:40px;left:50%;top:50%;margin-left:-20px;margin-top:-5px;cursor:move;background:repeating-linear-gradient(180deg,#bfbfbf,#bfbfbf 2px,transparent 0,transparent 4px)}.editorPreview__handle[data-v-3082648e]:before{position:absolute;display:block;content:"";background:repeating-linear-gradient(90deg,#f4f9fd,#f4f9fd 2px,transparent 0,transparent 4px);width:100%;height:100%}.editorPreview__item--active .editorPreview__header[data-v-3082648e],.editorPreview__item--hover .editorPreview__header[data-v-3082648e],.editorPreview__item:hover .editorPreview__header[data-v-3082648e]{display:-webkit-box;display:-ms-flexbox;display:flex}.editorPreview__item.sortable-chosen[data-v-3082648e]{opacity:1}.editorPreview__item.sortable-ghost[data-v-3082648e]{opacity:.25}.icon--add[data-v-cc4b6c2e],.icon--add svg[data-v-cc4b6c2e]{width:10px;height:10px}.icon--arrow-external[data-v-cc4b6c2e],.icon--arrow-external svg[data-v-cc4b6c2e]{width:8px;height:8px}.icon--arrow-sort[data-v-cc4b6c2e],.icon--arrow-sort svg[data-v-cc4b6c2e]{width:9px;height:11px}.icon--check[data-v-cc4b6c2e],.icon--check svg[data-v-cc4b6c2e]{width:11px;height:11px}.icon--close_icon[data-v-cc4b6c2e],.icon--close_icon svg[data-v-cc4b6c2e]{width:10px;height:10px}.icon--close_modal[data-v-cc4b6c2e],.icon--close_modal svg[data-v-cc4b6c2e]{width:16px;height:16px}.icon--colors[data-v-cc4b6c2e],.icon--colors svg[data-v-cc4b6c2e]{width:17px;height:17px}.icon--content-editor[data-v-cc4b6c2e],.icon--content-editor svg[data-v-cc4b6c2e]{width:14px;height:13px}.icon--crop[data-v-cc4b6c2e],.icon--crop svg[data-v-cc4b6c2e]{width:16px;height:18px}.icon--download[data-v-cc4b6c2e],.icon--download svg[data-v-cc4b6c2e]{width:12px;height:16px}.icon--drag[data-v-cc4b6c2e],.icon--drag svg[data-v-cc4b6c2e]{width:8px;height:17px}.icon--dropdown_default[data-v-cc4b6c2e],.icon--dropdown_default svg[data-v-cc4b6c2e]{width:9px;height:5px}.icon--dropdown_module[data-v-cc4b6c2e],.icon--dropdown_module svg[data-v-cc4b6c2e]{width:10px;height:6px}.icon--edit[data-v-cc4b6c2e],.icon--edit svg[data-v-cc4b6c2e]{width:13px;height:13px}.icon--edit_large[data-v-cc4b6c2e],.icon--edit_large svg[data-v-cc4b6c2e]{width:14px;height:14px}.icon--editor[data-v-cc4b6c2e],.icon--editor svg[data-v-cc4b6c2e]{width:14px;height:13px}.icon--expand[data-v-cc4b6c2e],.icon--expand svg[data-v-cc4b6c2e]{width:10px;height:10px}.icon--fix-grid[data-v-cc4b6c2e],.icon--fix-grid svg[data-v-cc4b6c2e]{width:18px;height:14px}.icon--flex-grid[data-v-cc4b6c2e],.icon--flex-grid svg[data-v-cc4b6c2e]{width:18px;height:17px}.icon--google-sign-in[data-v-cc4b6c2e],.icon--google-sign-in svg[data-v-cc4b6c2e]{width:23px;height:24px}.icon--image-text[data-v-cc4b6c2e],.icon--image-text svg[data-v-cc4b6c2e]{width:30px;height:13px}.icon--image[data-v-cc4b6c2e],.icon--image svg[data-v-cc4b6c2e]{width:19px;height:15px}.icon--info[data-v-cc4b6c2e],.icon--info svg[data-v-cc4b6c2e]{width:21px;height:21px}.icon--location[data-v-cc4b6c2e],.icon--location svg[data-v-cc4b6c2e]{width:12px;height:16px}.icon--media-grid[data-v-cc4b6c2e],.icon--media-grid svg[data-v-cc4b6c2e]{width:12px;height:12px}.icon--media-list[data-v-cc4b6c2e],.icon--media-list svg[data-v-cc4b6c2e]{width:16px;height:10px}.icon--more-dots[data-v-cc4b6c2e],.icon--more-dots svg[data-v-cc4b6c2e]{width:14px;height:4px}.icon--pagination_left[data-v-cc4b6c2e],.icon--pagination_left svg[data-v-cc4b6c2e],.icon--pagination_right[data-v-cc4b6c2e],.icon--pagination_right svg[data-v-cc4b6c2e]{width:9px;height:15px}.icon--preferences[data-v-cc4b6c2e],.icon--preferences svg[data-v-cc4b6c2e]{width:26px;height:16px}.icon--preview-desktop[data-v-cc4b6c2e],.icon--preview-desktop svg[data-v-cc4b6c2e]{width:39px;height:30px}.icon--preview-mobile[data-v-cc4b6c2e],.icon--preview-mobile svg[data-v-cc4b6c2e]{width:12px;height:18px}.icon--preview-tablet-h[data-v-cc4b6c2e],.icon--preview-tablet-h svg[data-v-cc4b6c2e]{width:27px;height:20px}.icon--preview-tablet-v[data-v-cc4b6c2e],.icon--preview-tablet-v svg[data-v-cc4b6c2e]{width:20px;height:27px}.icon--preview[data-v-cc4b6c2e],.icon--preview svg[data-v-cc4b6c2e]{width:22px;height:14px}.icon--publish[data-v-cc4b6c2e],.icon--publish svg[data-v-cc4b6c2e]{width:22px;height:15px}.icon--quote[data-v-cc4b6c2e],.icon--quote svg[data-v-cc4b6c2e]{width:16px;height:13px}.icon--revision-compare[data-v-cc4b6c2e],.icon--revision-compare svg[data-v-cc4b6c2e],.icon--revision-single[data-v-cc4b6c2e],.icon--revision-single svg[data-v-cc4b6c2e]{width:23px;height:16px}.icon--search[data-v-cc4b6c2e],.icon--search svg[data-v-cc4b6c2e]{width:20px;height:20px}.icon--slideshow[data-v-cc4b6c2e],.icon--slideshow svg[data-v-cc4b6c2e]{width:20px;height:16px}.icon--star-feature[data-v-cc4b6c2e],.icon--star-feature_active[data-v-cc4b6c2e],.icon--star-feature_active svg[data-v-cc4b6c2e],.icon--star-feature svg[data-v-cc4b6c2e]{width:20px;height:19px}.icon--text-2col[data-v-cc4b6c2e],.icon--text-2col svg[data-v-cc4b6c2e]{width:26px;height:13px}.icon--text[data-v-cc4b6c2e],.icon--text svg[data-v-cc4b6c2e]{width:17px;height:13px}.icon--trash[data-v-cc4b6c2e],.icon--trash svg[data-v-cc4b6c2e]{width:15px;height:17px}.icon--video[data-v-cc4b6c2e],.icon--video svg[data-v-cc4b6c2e]{width:23px;height:23px}.icon--website[data-v-cc4b6c2e],.icon--website svg[data-v-cc4b6c2e]{width:26px;height:21px}.icon--wysiwyg_anchor[data-v-cc4b6c2e],.icon--wysiwyg_anchor svg[data-v-cc4b6c2e]{width:18px;height:18px}.icon--wysiwyg_bold[data-v-cc4b6c2e],.icon--wysiwyg_bold svg[data-v-cc4b6c2e]{width:12px;height:13px}.icon--wysiwyg_header-2 svg[data-v-cc4b6c2e],.icon--wysiwyg_header-2[data-v-cc4b6c2e],.icon--wysiwyg_header-3 svg[data-v-cc4b6c2e],.icon--wysiwyg_header-3[data-v-cc4b6c2e],.icon--wysiwyg_header-4 svg[data-v-cc4b6c2e],.icon--wysiwyg_header-4[data-v-cc4b6c2e],.icon--wysiwyg_header-5 svg[data-v-cc4b6c2e],.icon--wysiwyg_header-5[data-v-cc4b6c2e],.icon--wysiwyg_header-6 svg[data-v-cc4b6c2e],.icon--wysiwyg_header-6[data-v-cc4b6c2e],.icon--wysiwyg_header[data-v-cc4b6c2e],.icon--wysiwyg_header svg[data-v-cc4b6c2e]{width:18px;height:18px}.icon--wysiwyg_italic[data-v-cc4b6c2e],.icon--wysiwyg_italic svg[data-v-cc4b6c2e]{width:10px;height:13px}.icon--wysiwyg_link[data-v-cc4b6c2e],.icon--wysiwyg_link svg[data-v-cc4b6c2e]{width:21px;height:10px}.icon--wysiwyg_underline[data-v-cc4b6c2e],.icon--wysiwyg_underline svg[data-v-cc4b6c2e]{width:12px;height:13px}.icon--ae[data-v-cc4b6c2e],.icon--ae svg[data-v-cc4b6c2e],.icon--ai[data-v-cc4b6c2e],.icon--ai svg[data-v-cc4b6c2e],.icon--ase[data-v-cc4b6c2e],.icon--ase svg[data-v-cc4b6c2e]{width:20px;height:26px}.icon--cut[data-v-cc4b6c2e],.icon--cut svg[data-v-cc4b6c2e],.icon--dir[data-v-cc4b6c2e],.icon--dir_protected[data-v-cc4b6c2e],.icon--dir_protected svg[data-v-cc4b6c2e],.icon--dir_shared[data-v-cc4b6c2e],.icon--dir_shared svg[data-v-cc4b6c2e],.icon--dir svg[data-v-cc4b6c2e]{width:26px;height:21px}.icon--dmg[data-v-cc4b6c2e],.icon--dmg svg[data-v-cc4b6c2e],.icon--doc[data-v-cc4b6c2e],.icon--doc svg[data-v-cc4b6c2e],.icon--eps[data-v-cc4b6c2e],.icon--eps svg[data-v-cc4b6c2e],.icon--fla[data-v-cc4b6c2e],.icon--fla svg[data-v-cc4b6c2e],.icon--fnt[data-v-cc4b6c2e],.icon--fnt svg[data-v-cc4b6c2e],.icon--gen[data-v-cc4b6c2e],.icon--gen svg[data-v-cc4b6c2e],.icon--html[data-v-cc4b6c2e],.icon--html svg[data-v-cc4b6c2e],.icon--img[data-v-cc4b6c2e],.icon--img svg[data-v-cc4b6c2e],.icon--indd[data-v-cc4b6c2e],.icon--indd svg[data-v-cc4b6c2e],.icon--key[data-v-cc4b6c2e],.icon--key svg[data-v-cc4b6c2e],.icon--merlin[data-v-cc4b6c2e],.icon--merlin svg[data-v-cc4b6c2e]{width:20px;height:26px}.icon--net[data-v-cc4b6c2e],.icon--net svg[data-v-cc4b6c2e]{width:26px;height:21px}.icon--numbers[data-v-cc4b6c2e],.icon--numbers svg[data-v-cc4b6c2e],.icon--pages[data-v-cc4b6c2e],.icon--pages svg[data-v-cc4b6c2e],.icon--pdf[data-v-cc4b6c2e],.icon--pdf svg[data-v-cc4b6c2e],.icon--ppt[data-v-cc4b6c2e],.icon--ppt svg[data-v-cc4b6c2e],.icon--psd[data-v-cc4b6c2e],.icon--psd svg[data-v-cc4b6c2e]{width:20px;height:26px}.icon--site[data-v-cc4b6c2e],.icon--site svg[data-v-cc4b6c2e]{width:26px;height:21px}.icon--slide[data-v-cc4b6c2e],.icon--slide svg[data-v-cc4b6c2e],.icon--snd[data-v-cc4b6c2e],.icon--snd svg[data-v-cc4b6c2e],.icon--sql[data-v-cc4b6c2e],.icon--sql svg[data-v-cc4b6c2e],.icon--swf[data-v-cc4b6c2e],.icon--swf svg[data-v-cc4b6c2e],.icon--txt[data-v-cc4b6c2e],.icon--txt svg[data-v-cc4b6c2e],.icon--vid[data-v-cc4b6c2e],.icon--vid svg[data-v-cc4b6c2e],.icon--xls[data-v-cc4b6c2e],.icon--xls svg[data-v-cc4b6c2e],.icon--zip[data-v-cc4b6c2e],.icon--zip svg[data-v-cc4b6c2e]{width:20px;height:26px}@font-face{font-family:Inter;font-style:normal;font-weight:400;src:url(../../../assets/admin/fonts/Inter-Regular.bffaed79.woff2) format("woff2"),url(../../../assets/admin/fonts/Inter-Regular.aebfbb3c.woff) format("woff");font-display:swap}@font-face{font-family:Inter;font-style:italic;font-weight:400;src:url(../../../assets/admin/fonts/Inter-Italic.381444ec.woff2) format("woff2"),url(../../../assets/admin/fonts/Inter-Italic.35cf8109.woff) format("woff");font-display:swap}@font-face{font-family:Inter;font-style:normal;font-weight:600;src:url(../../../assets/admin/fonts/Inter-Medium.2e5e0884.woff2) format("woff2"),url(../../../assets/admin/fonts/Inter-Medium.c09fb389.woff) format("woff");font-display:swap}@font-face{font-family:Inter;font-style:italic;font-weight:600;src:url(../../../assets/admin/fonts/Inter-MediumItalic.7a7fd735.woff2) format("woff2"),url(../../../assets/admin/fonts/Inter-MediumItalic.ad6e093c.woff) format("woff");font-display:swap}@font-face{font-family:Inter;font-style:normal;font-weight:700;src:url(../../../assets/admin/fonts/Inter-Bold.34356f6b.woff2) format("woff2"),url(../../../assets/admin/fonts/Inter-Bold.61c493e3.woff) format("woff");font-display:swap}@font-face{font-family:Inter;font-style:italic;font-weight:700;src:url(../../../assets/admin/fonts/Inter-BoldItalic.57acb479.woff2) format("woff2"),url(../../../assets/admin/fonts/Inter-BoldItalic.6fbcf86a.woff) format("woff");font-display:swap}.container[data-v-cc4b6c2e]{margin-right:auto;margin-left:auto}@media screen and (max-width:599px){.container[data-v-cc4b6c2e]{width:auto;padding-right:20px;padding-left:20px}}@media screen and (min-width:600px)and (max-width:849px){.container[data-v-cc4b6c2e]{width:auto;padding-right:30px;padding-left:30px}}@media screen and (min-width:850px)and (max-width:1039px){.container[data-v-cc4b6c2e]{width:auto;padding-right:40px;padding-left:40px}}@media screen and (min-width:1040px)and (max-width:1539px){.container[data-v-cc4b6c2e]{width:auto;padding-right:50px;padding-left:50px}}@media screen and (min-width:1540px){.container[data-v-cc4b6c2e]{width:1540px;padding-right:50px;padding-left:50px}}@media screen and (max-width:599px){.container--full[data-v-cc4b6c2e]{width:auto}}@media screen and (min-width:600px)and (max-width:849px){.container--full[data-v-cc4b6c2e]{width:auto}}@media screen and (min-width:850px)and (max-width:1039px){.container--full[data-v-cc4b6c2e]{width:auto}}@media screen and (min-width:1040px)and (max-width:1539px){.container--full[data-v-cc4b6c2e]{width:auto}}@media screen and (min-width:1540px){.container--full[data-v-cc4b6c2e]{width:auto}}.editor[data-v-cc4b6c2e]{display:block;width:100%;padding:0;position:relative;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;background-color:#fff}.editor__leave[data-v-cc4b6c2e]{position:fixed;right:20px;top:13px;z-index:401}.editor__frame[data-v-cc4b6c2e]{position:absolute;top:0;left:0;right:0;bottom:0;-webkit-box-orient:vertical;-ms-flex-flow:column nowrap;flex-flow:column nowrap}.editor__frame[data-v-cc4b6c2e],.editor__inner[data-v-cc4b6c2e]{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-direction:normal}.editor__inner[data-v-cc4b6c2e]{position:relative;width:100%;overflow:hidden;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-orient:horizontal;-ms-flex-flow:row nowrap;flex-flow:row nowrap}.editor__sidebar[data-v-cc4b6c2e]{background:#f2f2f2;width:30vw;min-width:400px}@media screen and (max-width:849px){.editor__sidebar[data-v-cc4b6c2e]{display:none}}@media screen and (max-width:849px){.editor__sidebar--mobile[data-v-cc4b6c2e]{display:block}}.editor__resizer[data-v-cc4b6c2e]{width:10px;min-width:10px;cursor:col-resize;background:#f2f2f2;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.editor__resizer span[data-v-cc4b6c2e]{width:2px;height:20px;display:block;background:repeating-linear-gradient(180deg,#bfbfbf,#bfbfbf 2px,transparent 0,transparent 4px);overflow:hidden;margin-left:auto;margin-right:auto}.editor__preview[data-v-cc4b6c2e]{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;min-width:300px;color:#8c8c8c}.editor__preview--dark[data-v-cc4b6c2e]{color:#fff}
\ No newline at end of file
diff --git a/public/assets/admin/js/main-form.79eea971.js b/public/assets/admin/js/main-form.79eea971.js
new file mode 100644 (file)
index 0000000..f84e10e
--- /dev/null
@@ -0,0 +1,5 @@
+(function(e){function t(t){for(var i,a,s=t[0],l=t[1],c=t[2],d=0,h=[];d<s.length;d++)a=s[d],Object.prototype.hasOwnProperty.call(r,a)&&r[a]&&h.push(r[a][0]),r[a]=0;for(i in l)Object.prototype.hasOwnProperty.call(l,i)&&(e[i]=l[i]);u&&u(t);while(h.length)h.shift()();return o.push.apply(o,c||[]),n()}function n(){for(var e,t=0;t<o.length;t++){for(var n=o[t],i=!0,s=1;s<n.length;s++){var l=n[s];0!==r[l]&&(i=!1)}i&&(o.splice(t--,1),e=a(a.s=n[0]))}return e}var i={},r={"main-form":0},o=[];function a(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,a),n.l=!0,n.exports}a.m=e,a.c=i,a.d=function(e,t,n){a.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},a.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.t=function(e,t){if(1&t&&(e=a(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(a.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)a.d(n,i,function(t){return e[t]}.bind(null,i));return n},a.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return a.d(t,"a",t),t},a.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},a.p="/";var s=window["webpackJsonp"]=window["webpackJsonp"]||[],l=s.push.bind(s);s.push=t,s=s.slice();for(var c=0;c<s.length;c++)t(s[c]);var u=l;o.push([2,"chunk-vendors","chunk-common"]),n()})({"0bd3":function(e,t,n){"use strict";var i=n("a298"),r=n.n(i);r.a},"109f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block__body"},[n("a17-wysiwyg-tiptap",{attrs:{name:e.fieldName("html"),label:"Body",options:{modules:{toolbar:["table"],syntax:!1}},placeholder:"Insert your table",editSource:"true",inStore:"value"}})],1)},r=[],o=n("f0f8"),a={name:"A17Bodytable",mixins:[o["a"]]},s=a,l=n("2877"),c=Object(l["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},1322:function(e,t,n){},1591:function(e,t,n){var i={"./BlockCkeditor.vue":"5e39","./ckeditor.js":"c15a"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="1591"},2:function(e,t,n){e.exports=n("f618")},"25a5":function(e,t,n){},"25ba":function(e,t,n){},2741:function(e,t,n){},2774:function(e,t,n){"use strict";var i=n("e689"),r=n.n(i);r.a},"2d34":function(e,t,n){"use strict";var i=n("e718"),r=n.n(i);r.a},"2f7f":function(e,t,n){"use strict";var i=n("3d14"),r=n.n(i);r.a},"33d8":function(e,t,n){"use strict";var i=n("5886"),r=n.n(i);r.a},3565:function(e,t,n){"use strict";var i=n("d43d"),r=n.n(i);r.a},"3a97":function(e,t,n){},"3d14":function(e,t,n){},"3f1c":function(e,t,n){},"3fee":function(e,t,n){"use strict";var i=n("3f1c"),r=n.n(i);r.a},"548b":function(e,t,n){},"56bb":function(e,t,n){"use strict";var i=n("f9cc"),r=n.n(i);r.a},5886:function(e,t,n){},"5e39":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-inputframe",{attrs:{error:e.error,note:e.note,label:e.label,locale:e.locale,size:e.size,name:e.name,required:e.required},on:{localize:e.updateLocale}},[n("ckeditor",{attrs:{editor:e.editor,config:e.editorConfig},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)},r=[],o=n("4ea3"),a=n.n(o),s=n("c15a"),l=n.n(s),c=n("da6f"),u=n("67ff"),d=n("f03e"),h=n("7d9f"),f=n("b047"),v=n.n(f),p=n("2f62");function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var b={name:"BlockCkeditor",mixins:[c["a"],d["a"],h["a"],u["a"]],components:{ckeditor:a.a.component},props:["csrf"],data:function(){return{editor:l.a,value:this.initialValue,editorConfig:{toolbar:{items:["heading","|","alignment","fontColor","fontSize","|","bold","italic","|","link","bulletedList","numberedList","|","indent","outdent","|","imageUpload","insertTable","mediaEmbed","undo","redo"]},link:{addTargetToExternalLinks:!0,defaultProtocol:"http://"},fontSize:{options:[16,"default",18,22,24,28,34,38],supportAllValues:!0},language:"fr",image:{styles:["alignLeft","alignCenter","alignRight","full"],toolbar:["imageStyle:full","imageStyle:alignLeft","imageStyle:alignCenter","imageStyle:alignRight","|","imageResize","|","linkImage"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},fontColor:{colors:[{label:"psq_red",color:"#d04d4a"},{label:"psq_blue",color:"#074e9c"},{label:"psq_light_blue",color:"#cddceb"},{label:"psq_purple",color:"#AD5ED3"},{label:"psq_cyan",color:"#288ed7"},{label:"psq_magenta",color:"#ce317c"},{label:"psq_orange",color:"#e79817"},{label:"psq_grey",color:"#546983"},{label:"psq_denim",color:"#0c2c50"},{label:"psq_green",color:"#41BD53"},{label:"psq_mag_blue",color:"#2a6ba3"}]},heading:{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Titre 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Titre 2",class:"ck-heading_heading2"}]},resizeOptions:[{name:"imageResize:100",value:100,icon:"original"},{name:"imageResize:50",value:"50",icon:"medium"},{name:"imageResize:75",value:"75",icon:"large"}],simpleUpload:{uploadUrl:"/ckeditor/upload",headers:{"X-CSRF-TOKEN":this.csrf}}}}},watch:{value:function(e){this.textUpdate()}},methods:{updateFromStore:function(e){console.log("update from store"),"undefined"===typeof e&&(e=""),this.value!==e&&(this.value=e)},textUpdate:v()((function(){this.saveIntoStore(this.value)}),600)},computed:g({},Object(p["c"])({baseUrl:function(e){return e.form.baseUrl}})),mounted:function(){}},y=b,w=(n("56bb"),n("2877")),_=Object(w["a"])(y,i,r,!1,null,"7ce7aab8",null);t["default"]=_.exports},"611f":function(e,t,n){"use strict";var i=n("7de1"),r=n.n(i);r.a},"62c8":function(e,t,n){"use strict";var i=n("a8c7"),r=n.n(i);r.a},"6b23":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block__body"},[n("a17-locale",{attrs:{type:"a17-textfield",attributes:{label:"Title",name:e.fieldName("text"),type:"text",maxlength:250,inStore:"value"}}})],1)},r=[],o=n("f0f8"),a={name:"A17Title",mixins:[o["a"]]},s=a,l=n("2877"),c=Object(l["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},"6b9b":function(e,t,n){"use strict";var i=n("c830"),r=n.n(i);r.a},"7de1":function(e,t,n){},"7ebf":function(e,t,n){"use strict";var i=n("faa7"),r=n.n(i);r.a},"80d1":function(e,t,n){},"912f":function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block__body"},[n("a17-wysiwyg",{attrs:{name:e.fieldName("html"),inStore:"value"}})],1)},r=[],o=n("f0f8"),a={name:"A17Bodytext",mixins:[o["a"]]},s=a,l=n("2877"),c=Object(l["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},9748:function(e,t,n){var i={"./Block.vue":"ecec","./BlockImage.vue":"ac09","./BlockTable.vue":"109f","./BlockTitle.vue":"6b23","./BlockWysiwyg.vue":"912f"};function r(e){var t=o(e);return n(t)}function o(e){if(!n.o(i,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return i[e]}r.keys=function(){return Object.keys(i)},r.resolve=o,e.exports=r,r.id="9748"},9881:function(e,t,n){"use strict";var i=n("f3e7"),r=n.n(i);r.a},"98a8":function(e,t,n){},9922:function(e,t,n){"use strict";var i=n("98a8"),r=n.n(i);r.a},a298:function(e,t,n){},a70b:function(e,t,n){"use strict";var i=n("548b"),r=n.n(i);r.a},a8c7:function(e,t,n){},ac09:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block__body"},[n("a17-inputframe",{attrs:{label:"Image",name:"medias.image"}},[n("a17-mediafield",{attrs:{name:e.fieldName("image"),"crop-context":"image"}})],1)],1)},r=[],o=n("f0f8"),a={name:"A17Image",mixins:[o["a"]]},s=a,l=n("2877"),c=Object(l["a"])(s,i,r,!1,null,null,null);t["default"]=c.exports},ac28:function(e,t,n){},af57:function(e,t,n){"use strict";var i=n("25a5"),r=n.n(i);r.a},b0c8:function(e,t,n){"use strict";var i=n("80d1"),r=n.n(i);r.a},b62f:function(e,t,n){"use strict";var i=n("1322"),r=n.n(i);r.a},ba98:function(e,t,n){},c15a:function(e,t,n){(function(e){var i,r,o,a=n("a34a");function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t,n){return l="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var i=c(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(n):r.value}},l(e,t,n||e)}function c(e,t){while(!Object.prototype.hasOwnProperty.call(e,t))if(e=N(e),null===e)break;return e}function u(e){return f(e)||h(e)||b(e)||d()}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function h(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(e){if(Array.isArray(e))return y(e)}function v(e,t){return g(e)||m(e,t)||b(e,t)||p()}function p(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function m(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var n=[],i=!0,r=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(i=(a=s.next()).done);i=!0)if(n.push(a.value),t&&n.length===t)break}catch(l){r=!0,o=l}finally{try{i||null==s["return"]||s["return"]()}finally{if(r)throw o}}return n}}function g(e){if(Array.isArray(e))return e}function k(e){if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(e=b(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,r,o=!0,a=!1;return{s:function(){i=e[Symbol.iterator]()},n:function(){var e=i.next();return o=e.done,e},e:function(e){a=!0,r=e},f:function(){try{o||null==i.return||i.return()}finally{if(a)throw r}}}}function b(e,t){if(e){if("string"===typeof e)return y(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function x(e,t,n){return t&&_(e.prototype,t),n&&_(e,n),e}function C(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}function A(e){var t=O();return function(){var n,i=N(e);if(t){var r=N(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==R(t)&&"function"!==typeof t?P(e):t}function P(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function E(e){var t="function"===typeof Map?new Map:void 0;return E=function(e){if(null===e||!M(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return S(e,arguments,N(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),I(n,e)},E(e)}function S(e,t,n){return S=O()?Reflect.construct:function(e,t,n){var i=[null];i.push.apply(i,t);var r=Function.bind.apply(e,i),o=new r;return n&&I(o,n.prototype),o},S.apply(null,arguments)}function O(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function M(e){return-1!==Function.toString.call(e).indexOf("[native code]")}function I(e,t){return I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},I(e,t)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}function R(e){return R="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}
+/*!
+ * @license Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md.
+ */!function(e){var t=e.fr=e.fr||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 sur %1","Align center":"Centrer","Align left":"Aligner à gauche","Align right":"Aligner à droite",Aquamarine:"Bleu vert",Big:"Grand",Black:"Noir",Blue:"Bleu",Bold:"Gras","Bulleted List":"Liste à puces",Cancel:"Annuler","Cannot upload file:":"Envoi du fichier échoué :","Centered image":"Image centrée","Change image text alternative":"Changer le texte alternatif à l’image","Characters: %0":"Caractères : %0","Choose heading":"Choisir l'en-tête",Column:"Colonne","Could not insert image at the current position.":"Impossible d'insérer l'image à la position courante.","Could not obtain resized image URL.":"Impossible d'obtenir l'image redimensionnée","Decrease indent":"Diminuer le retrait",Default:"Par défaut","Delete column":"Supprimer la colonne","Delete row":"Supprimer la ligne","Dim grey":"Gris pâle","Document colors":"Couleurs du document",Downloadable:"Fichier téléchargeable","Dropdown toolbar":"Barre d'outils dans un menu déroulant","Edit link":"Modifier le lien","Editor toolbar":"Barre d'outils de l'éditeur","Enter image caption":"Saisir la légende de l’image","Font Color":"Couleur de police","Font Size":"Taille de police","Full size image":"Image taille réelle",Green:"Vert",Grey:"Gris","Header column":"Colonne d'entête","Header row":"Ligne d'entête",Heading:"En-tête","Heading 1":"Titre 1","Heading 2":"Titre 2","Heading 3":"Titre 3","Heading 4":"Titre 4","Heading 5":"Titre 5","Heading 6":"Titre 6","Horizontal line":"Ligne horizontale",Huge:"Enorme","Image resize list":"","Image toolbar":"Barre d'outils des images","image widget":"Objet image","Increase indent":"Augmenter le retrait",Insert:"","Insert column left":"Insérer une colonne à gauche","Insert column right":"Insérer une colonne à droite","Insert image":"Insérer une image","Insert image or file":"Insérer une image ou un fichier","Insert image via URL":"","Insert media":"Insérer un média","Insert paragraph after block":"","Insert paragraph before block":"","Insert row above":"Insérer une ligne au-dessus","Insert row below":"Insérer une ligne en-dessous","Insert table":"Insérer un tableau","Inserting image failed":"L'insertion d'image a échoué.",Italic:"Italique",Justify:"Justifier","Left aligned image":"Image alignée à gauche","Light blue":"Bleu clair","Light green":"Vert clair","Light grey":"Gris clair",Link:"Lien","Link image":"","Link URL":"URL du lien","Media URL":"URL de média","media widget":"widget média","Merge cell down":"Fusionner la cellule en-dessous","Merge cell left":"Fusionner la cellule à gauche","Merge cell right":"Fusionner la cellule à droite","Merge cell up":"Fusionner la cellule au-dessus","Merge cells":"Fusionner les cellules",Next:"Suivant","Numbered List":"Liste numérotée","Open in a new tab":"Ouvrir dans un nouvel onglet","Open link in new tab":"Ouvrir le lien dans un nouvel onglet",Orange:"Orange",Original:"",Paragraph:"Paragraphe","Paste the image source URL.":"","Paste the media URL in the input.":"Coller l'URL du média",Previous:"Précedent",Purple:"Violet",Red:"Rouge",Redo:"Restaurer","Remove color":"Enlever la couleur","Resize image":"","Resize image to %0":"","Resize image to the original size":"","Rich Text Editor":"Éditeur de texte enrichi","Rich Text Editor, %0":"Éditeur de texte enrichi, %0","Right aligned image":"Image alignée à droite",Row:"Ligne",Save:"Enregistrer","Select column":"","Select row":"","Selecting resized image failed":"La sélection de l'image redimensionnée a échoué.","Show more items":"Montrer plus d'éléments","Side image":"Image latérale",Small:"Petit","Split cell horizontally":"Scinder la cellule horizontalement","Split cell vertically":"Scinder la cellule verticalement","Table toolbar":"Barre d'outils des tableaux","Text alignment":"Alignement du texte","Text alignment toolbar":"Barre d'outils d'alignement du texte","Text alternative":"Texte alternatif","The URL must not be empty.":"L'URL ne doit pas être vide.","This link has no URL":"Ce lien n'a pas d'URL","This media URL is not supported.":"Cette URL de média n'est pas supportée.",Tiny:"Minuscule","Tip: Paste the URL into the content to embed faster.":"Astuce : Copier l'URL du média dans le contenu pour l'insérer plus rapidement",Turquoise:"Turquoise",Undo:"Annuler",Unlink:"Supprimer le lien",Update:"","Upload failed":"Échec de l'envoi","Upload in progress":"Téléchargement en cours",White:"Blanc","Widget toolbar":"Barre d'outils du widget","Words: %0":"Mots : %0",Yellow:"Jaune"}),t.getPluralForm=function(e){return e>1}}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),function(n,a){"object"==R(t)&&"object"==R(e)?e.exports=a():(r=[],i=a,o="function"===typeof i?i.apply(t,r):i,void 0===o||(e.exports=o))}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==R(e)&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=112)}([function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return r}));var i=function(e){C(n,e);var t=A(n);function n(e,i,o){var a;return w(this,n),e=r(e),o&&(e+=" "+JSON.stringify(o)),a=t.call(this,e),a.name="CKEditorError",a.context=i,a.data=o,a}return x(n,[{key:"is",value:function(e){return"CKEditorError"===e}}],[{key:"rethrowUnexpectedError",value:function(e,t){if(e.is&&e.is("CKEditorError"))throw e;var i=new n(e.message,t);throw i.stack=e.stack,i}}]),n}(E(Error));function r(e){var t=e.match(/^([^:]+):/);return t?e+" Read more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-".concat(t[1],"\n"):e}},function(e,t,n){"use strict";var i,r=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},o=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),a=[];function s(e){for(var t=-1,n=0;n<a.length;n++)if(a[n].identifier===e){t=n;break}return t}function l(e,t){for(var n={},i=[],r=0;r<e.length;r++){var o=e[r],l=t.base?o[0]+t.base:o[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),h={css:o[1],media:o[2],sourceMap:o[3]};-1!==d?(a[d].references++,a[d].updater(h)):a.push({identifier:u,updater:m(h,t),references:1}),i.push(u)}return i}function c(e){var t=document.createElement("style"),i=e.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}if(Object.keys(i).forEach((function(e){t.setAttribute(e,i[e])})),"function"==typeof e.insert)e.insert(t);else{var a=o(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(t)}return t}var u,d=(u=[],function(e,t){return u[e]=t,u.filter(Boolean).join("\n")});function h(e,t,n,i){var r=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(e.styleSheet)e.styleSheet.cssText=d(t,r);else{var o=document.createTextNode(r),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function f(e,t,n){var i=n.css,r=n.media,o=n.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),o&&btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleSheet)e.styleSheet.cssText=i;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(i))}}var v=null,p=0;function m(e,t){var n,i,r;if(t.singleton){var o=p++;n=v||(v=c(t)),i=h.bind(null,n,o,!1),r=h.bind(null,n,o,!0)}else n=c(t),i=f.bind(null,n,t),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(n)};return i(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;i(e=t)}else r()}}e.exports=function(e,t){(t=t||{}).singleton||"boolean"==typeof t.singleton||(t.singleton=r());var n=l(e=e||[],t);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var i=0;i<n.length;i++){var r=s(n[i]);a[r].references--}for(var o=l(e,t),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=o}}}},,function(e,t,n){"use strict";var i=n(7),r="object"==("undefined"===typeof self?"undefined":R(self))&&self&&self.Object===Object&&self,o=i.a||r||Function("return this")();t.a=o},function(e,n,i){"use strict";(function(e){var r=i(3),o=i(12),a="object"==R(t)&&t&&!t.nodeType&&t,s=a&&"object"==R(e)&&e&&!e.nodeType&&e,l=s&&s.exports===a?r.a.Buffer:void 0,c=(l?l.isBuffer:void 0)||o.a;n.a=c}).call(this,i(9)(e))},function(e,n,i){"use strict";(function(e){var r=i(7),o="object"==R(t)&&t&&!t.nodeType&&t,a=o&&"object"==R(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o&&r.a.process,l=function(){try{var e=a&&a.require&&a.require("util").types;return e||s&&s.binding&&s.binding("util")}catch(e){}}();n.a=l}).call(this,i(9)(e))},function(e,t,n){"use strict";(function(e){var t=n(0),i="object"==("undefined"===typeof window?"undefined":R(window))?window:e;if(i.CKEDITOR_VERSION)throw new t.b("ckeditor-duplicated-modules: Some CKEditor 5 modules are duplicated.",null);i.CKEDITOR_VERSION="22.0.0"}).call(this,n(10))},function(e,t,n){"use strict";(function(e){var n="object"==R(e)&&e&&e.Object===Object&&e;t.a=n}).call(this,n(10))},function(e,n,i){"use strict";(function(e){var r=i(3),o="object"==R(t)&&t&&!t.nodeType&&t,a=o&&"object"==R(e)&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.a.Buffer:void 0,l=s?s.allocUnsafe:void 0;n.a=function(e,t){if(t)return e.slice();var n=e.length,i=l?l(n):new e.constructor(n);return e.copy(i),i}}).call(this,i(9)(e))},function(e,t){e.exports=function(e){if(!e.webpackPolyfill){var t=Object.create(e);t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),Object.defineProperty(t,"exports",{enumerable:!0}),t.webpackPolyfill=1}return t}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==("undefined"===typeof window?"undefined":R(window))&&(n=window)}e.exports=n},function(e,t,n){var i=n(1),r=n(55);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t,n){"use strict";t.a=function(){return!1}},function(e,t,n){var i=n(1),r=n(14);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-placeholder:before,.ck .ck-placeholder:before{content:attr(data-placeholder);pointer-events:none}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-placeholder:before,.ck .ck-placeholder:before{cursor:text;color:var(--ck-color-engine-placeholder-text)}"},function(e,t,n){var i=n(1),r=n(16);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{box-sizing:border-box;width:auto;height:auto;position:static}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999);--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--ck-color-focus-disabled-shadow:rgba(119,186,248,0.3);--ck-color-focus-error-shadow:rgba(255,64,31,0.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,0.15);--ck-color-shadow-drop-active:rgba(0,0,0,0.2);--ck-color-shadow-inner:rgba(0,0,0,0.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,0.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:#c7c7c7;--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:#c7c7c7;--ck-color-input-disabled-text:#5c5c5c;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-foreground);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,177,255,0.1);--ck-color-link-fake-selection:rgba(31,177,255,0.3);--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck.ck-reset,.ck.ck-reset_all,.ck.ck-reset_all *{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none;word-wrap:break-word}.ck.ck-reset_all,.ck.ck-reset_all *{border-collapse:collapse;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);color:var(--ck-color-text);text-align:left;white-space:nowrap;cursor:auto;float:none}.ck.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{padding:10px;border:2px groove #dfdee3}.ck.ck-reset_all button::-moz-focus-inner{padding:0;border:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}"},function(e,t,n){var i=n(1),r=n(18);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0}.ck.ck-editor__editable_inline{overflow:auto;padding:0 var(--ck-spacing-standard);border:1px solid transparent}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}"},function(e,t,n){var i=n(1),r=n(20);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}"},function(e,t,n){var i=n(1),r=n(22);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{z-index:var(--ck-z-modal);position:fixed;top:0}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{top:auto;position:absolute}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{box-shadow:var(--ck-drop-shadow),0 0;border-width:0 1px 1px;border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var i=n(1),r=n(24);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:var(--ck-z-modal);position:absolute}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{top:100%;bottom:auto}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(0.5*var(--ck-icon-size))}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{box-shadow:var(--ck-drop-shadow),0 0;background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}"},function(e,t,n){var i=n(1),r=n(26);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{width:var(--ck-icon-size);height:var(--ck-icon-size);font-size:.8333350694em;will-change:transform}.ck.ck-icon,.ck.ck-icon *{color:inherit;cursor:inherit}.ck.ck-icon :not([fill]){fill:currentColor}"},function(e,t,n){var i=n(1),r=n(28);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports='.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{position:absolute;pointer-events:none;-webkit-backface-visibility:hidden}.ck.ck-tooltip{visibility:hidden;opacity:0;display:none;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";width:0;height:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{font-size:.9em;line-height:1.5;color:var(--ck-color-tooltip-text);padding:var(--ck-spacing-small) var(--ck-spacing-medium);background:var(--ck-color-tooltip-background);position:relative;left:-50%}.ck.ck-tooltip .ck-tooltip__text:after{transition:opacity .2s ease-in-out .2s;border-style:solid;left:50%}.ck.ck-tooltip.ck-tooltip_s{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:var(--ck-color-tooltip-background);border-right-color:transparent;border-top-color:transparent;border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:var(--ck-tooltip-arrow-size);border-right-width:var(--ck-tooltip-arrow-size);border-top-width:0}.ck.ck-tooltip.ck-tooltip_n{top:calc(-1*var(--ck-tooltip-arrow-size));transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{bottom:calc(-1*var(--ck-tooltip-arrow-size));transform:translateX(-50%);border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent;border-top-color:var(--ck-color-tooltip-background);border-left-width:var(--ck-tooltip-arrow-size);border-bottom-width:0;border-right-width:var(--ck-tooltip-arrow-size);border-top-width:var(--ck-tooltip-arrow-size)}'},function(e,t,n){var i=n(1),r=n(30);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{position:relative;display:inline-flex;align-items:center;justify-content:left}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{visibility:visible;opacity:1}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{white-space:nowrap;cursor:default;vertical-align:middle;padding:var(--ck-spacing-tiny);text-align:center;min-width:var(--ck-ui-component-min-height);min-height:var(--ck-ui-component-min-height);line-height:1;font-size:inherit;border:1px solid transparent;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;-webkit-appearance:none}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(-1*var(--ck-spacing-small));margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-right:calc(-1*var(--ck-spacing-small));margin-left:var(--ck-spacing-small)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}"},function(e,t,n){var i=n(1),r=n(32);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-direction:column}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{list-style-type:none;background:var(--ck-color-list-background)}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{min-height:unset;width:100%;text-align:left;border-radius:0;padding:calc(0.2*var(--ck-line-height-base)*var(--ck-font-size-base)) calc(0.4*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(1.2*var(--ck-line-height-base)*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{height:1px;width:100%;background:var(--ck-color-base-border)}"},function(e,t,n){var i=n(1),r=n(34);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2*var(--ck-switch-button-toggle-spacing))}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(2*var(--ck-spacing-large))}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(2*var(--ck-spacing-large))}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{transition:background .4s ease;width:var(--ck-switch-button-toggle-width);background:var(--ck-color-switch-button-off-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(0.5*var(--ck-border-radius))}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{margin:var(--ck-switch-button-toggle-spacing);width:var(--ck-switch-button-toggle-inner-size);height:var(--ck-switch-button-toggle-inner-size);background:var(--ck-color-switch-button-inner-background);transition:all .3s ease}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var(--ck-switch-button-translation))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(-1*var(--ck-switch-button-translation)))}"},function(e,t,n){var i=n(1),r=n(36);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-toolbar-dropdown .ck.ck-toolbar .ck.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar-dropdown .ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}"},function(e,t,n){var i=n(1),r=n(38);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}"},function(e,t,n){var i=n(1),r=n(40);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-toolbar{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;display:flex;flex-flow:row nowrap;align-items:center}.ck.ck-toolbar>.ck-toolbar__items{display:flex;flex-flow:row wrap;align-items:center;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);padding:0 var(--ck-spacing-small);border:1px solid var(--ck-color-toolbar-border)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;width:1px;min-width:1px;background:var(--ck-color-toolbar-border);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items>*{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>*,.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{width:100%;margin:0;border-radius:0;border:0}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=rtl].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-top-right-radius:0;border-bottom-right-radius:0}.ck.ck-toolbar[dir=ltr].ck-toolbar_compact>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-top-left-radius:0;border-bottom-left-radius:0}.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){margin-right:var(--ck-spacing-small)}"},function(e,t,n){var i=n(1),r=n(42);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}"},function(e,t,n){var i=n(1),r=n(44);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:var(--ck-balloon-arrow-height);border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:0}.ck.ck-balloon-panel[class*=arrow_n]:before{border-bottom-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-left-color:transparent;border-right-color:transparent;border-top-color:transparent}.ck.ck-balloon-panel[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background);margin-top:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-width:var(--ck-balloon-arrow-half-width);border-bottom-width:0;border-right-width:var(--ck-balloon-arrow-half-width);border-top-width:var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-top-color:var(--ck-color-panel-border)}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-left-color:transparent;border-bottom-color:transparent;border-right-color:transparent}.ck.ck-balloon-panel[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background);margin-bottom:var(--ck-balloon-arrow-offset)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:calc(-1*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));bottom:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{right:25%;margin-right:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(2*var(--ck-balloon-arrow-half-width));top:calc(-1*var(--ck-balloon-arrow-height))}'},function(e,t,n){var i=n(1),r=n(46);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{height:100%;border-right:1px solid var(--ck-color-base-text);margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}"},function(e,t,n){var i=n(1),r=n(48);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{margin:15px 0;height:4px;background:#dedede;border:0}"},function(e,t,n){var i=n(1),r=n(50);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{width:var(--ck-color-grid-tile-size);height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;border:0}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-table__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{display:none;color:var(--ck-color-color-grid-check-icon)}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}"},function(e,t,n){var i=n(1),r=n(52);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-button.ck-color-table__remove-color{display:flex;align-items:center;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}"},function(e,t,n){var i=n(1),r=n(54);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}"},function(e,t){e.exports=".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}"},function(e,t,n){var i=n(1),r=n(57);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports='.ck .ck-widget .ck-widget__type-around__button{display:block;position:absolute;overflow:hidden;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{position:absolute;top:50%;left:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{top:calc(-0.5*var(--ck-widget-outline-thickness));left:min(10%,30px);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(-0.5*var(--ck-widget-outline-thickness));right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;position:absolute;top:1px;left:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;position:absolute;left:0;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(-1*var(--ck-widget-outline-thickness));right:calc(-1*var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{top:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(-1*var(--ck-widget-outline-thickness) - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{width:var(--ck-widget-type-around-button-size);height:var(--ck-widget-type-around-button-size);background:var(--ck-color-widget-type-around-button);border-radius:100px;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);opacity:0;pointer-events:none}.ck .ck-widget .ck-widget__type-around__button svg{width:10px;height:8px;transform:translate(-50%,-50%);transition:transform .5s ease;margin-top:1px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{width:calc(var(--ck-widget-type-around-button-size) - 2px);height:calc(var(--ck-widget-type-around-button-size) - 2px);border-radius:100px;background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3))}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{pointer-events:none;height:1px;animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;outline:1px solid hsla(0,0%,100%,.5);background:var(--ck-color-base-text)}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{opacity:0}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}'},function(e,t,n){var i=n(1),r=n(59);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-resizer-size:10px;--ck-resizer-border-width:1px;--ck-resizer-border-radius:2px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-tooltip-offset:10px;--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);color:var(--ck-color-resizer-tooltip-text);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);font-size:var(--ck-font-size-tiny);display:block;padding:var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{top:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{top:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-width:var(--ck-widget-outline-thickness);outline-style:solid;outline-color:transparent;transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;background-color:var(--ck-color-widget-editable-focus-background)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{padding:4px;box-sizing:border-box;background-color:transparent;opacity:0;transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;transform:translateY(-100%);left:calc(0px - var(--ck-widget-outline-thickness))}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{width:var(--ck-widget-handler-icon-size);height:var(--ck-widget-handler-icon-size);color:var(--ck-color-widget-drag-handler-icon-color)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle{opacity:1;background-color:var(--ck-color-focus-border)}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle .ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}"},function(e,t,n){var i=n(1),r=n(61);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view>.ck.ck-label{width:100%;text-overflow:ellipsis;overflow:hidden}"},function(e,t,n){var i=n(1),r=n(63);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-input-text-width:18em}.ck.ck-input-text{border-radius:0}.ck-rounded-corners .ck.ck-input-text,.ck.ck-input-text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-text{box-shadow:var(--ck-inner-shadow),0 0;background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);min-width:var(--ck-input-text-width);min-height:var(--ck-ui-component-min-height);transition:box-shadow .2s ease-in-out,border .2s ease-in-out}.ck.ck-input-text:focus{outline:none;border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text[readonly]{border:1px solid var(--ck-color-input-disabled-border);background:var(--ck-color-input-disabled-background);color:var(--ck-color-input-disabled-text)}.ck.ck-input-text[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),var(--ck-inner-shadow)}.ck.ck-input-text.ck-error{border-color:var(--ck-color-input-error-border);animation:ck-text-input-shake .3s ease both}.ck.ck-input-text.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),var(--ck-inner-shadow)}@keyframes ck-text-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}"},function(e,t,n){var i=n(1),r=n(65);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}.ck.ck-text-alternative-form{padding:var(--ck-spacing-standard)}.ck.ck-text-alternative-form:focus{outline:none}[dir=ltr] .ck.ck-text-alternative-form>:not(:first-child),[dir=rtl] .ck.ck-text-alternative-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-text-alternative-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-text-alternative-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-text-alternative-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-text-alternative-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-text-alternative-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-text-alternative-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-text-alternative-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var i=n(1),r=n(67);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-balloon-rotator__navigation{display:flex;align-items:center;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);margin-bottom:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-right:var(--ck-spacing-standard);margin-left:var(--ck-spacing-small)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}"},function(e,t,n){var i=n(1),r=n(69);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{box-shadow:var(--ck-drop-shadow),0 0;min-height:15px;background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);width:100%;height:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}"},function(e,t,n){var i=n(1),r=n(71);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .image{display:table;clear:both;text-align:center;margin:1em auto}.ck-content .image img{display:block;margin:0 auto;max-width:100%;min-width:50px}"},function(e,t,n){var i=n(1),r=n(73);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .image>figcaption{display:table-caption;caption-side:bottom;word-break:break-word;color:#333;background-color:#f7f7f7;padding:.6em;font-size:.75em;outline-offset:-1px}"},function(e,t,n){var i=n(1),r=n(75);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;position:absolute;pointer-events:none;left:0;top:0;outline:1px solid var(--ck-color-resizer)}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{position:absolute;pointer-events:all;width:var(--ck-resizer-size);height:var(--ck-resizer-size);background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{top:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{top:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nesw-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset);cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset);cursor:nesw-resize}"},function(e,t,n){var i=n(1),r=n(77);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .image.image_resized{max-width:100%;display:block;box-sizing:border-box}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}"},function(e,t,n){var i=n(1),r=n(79);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-image-style-spacing:1.5em}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}"},function(e,t,n){var i=n(1),r=n(81);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-right-radius:unset;border-bottom-right-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__action{border-top-left-radius:unset;border-bottom-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-radius:0}.ck-rounded-corners [dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow,[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:unset;border-bottom-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-top-right-radius:unset;border-bottom-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-left-color:var(--ck-color-split-button-hover-border)}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled){border-right-color:var(--ck-color-split-button-hover-border)}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}"},function(e,t,n){var i=n(1),r=n(83);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-upload-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-upload-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-upload-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-upload-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}"},function(e,t,n){var i=n(1),r=n(85);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-image-upload__panel{padding:var(--ck-spacing-standard)}.ck.ck-image-upload__ck-finder-button{display:block;width:100%;margin:var(--ck-spacing-standard) auto;border:1px solid #ccc;border-radius:var(--ck-border-radius)}"},function(e,t,n){var i=n(1),r=n(87);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-editor__editable .image{position:relative}.ck.ck-editor__editable .image .ck-progress-bar{position:absolute;top:0;left:0}.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar{height:2px;width:0;background:var(--ck-color-upload-bar-background);transition:width .1s}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}"},function(e,t,n){var i=n(1),r=n(89);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports='.ck-image-upload-complete-icon{display:block;position:absolute;top:10px;right:10px;border-radius:50%}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20px;--ck-image-upload-icon-width:2px}.ck-image-upload-complete-icon{width:var(--ck-image-upload-icon-size);height:var(--ck-image-upload-icon-size);opacity:0;background:var(--ck-color-image-upload-icon-background);animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;animation-fill-mode:forwards,forwards;animation-duration:.5s,.5s;font-size:var(--ck-image-upload-icon-size);animation-delay:0ms,3s}.ck-image-upload-complete-icon:after{left:25%;top:50%;opacity:0;height:0;width:0;transform:scaleX(-1) rotate(135deg);transform-origin:left top;border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);animation-name:ck-upload-complete-icon-check;animation-duration:.5s;animation-delay:.5s;animation-fill-mode:forwards;box-sizing:border-box}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{opacity:1;width:0;height:0}33%{width:.3em;height:0}to{opacity:1;width:.3em;height:.45em}}'},function(e,t,n){var i=n(1),r=n(91);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports='.ck .ck-upload-placeholder-loader{position:absolute;display:flex;align-items:center;justify-content:center;top:0;left:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px}.ck .ck-image-upload-placeholder{width:100%;margin:0}.ck .ck-upload-placeholder-loader{width:100%;height:100%}.ck .ck-upload-placeholder-loader:before{width:var(--ck-upload-placeholder-loader-size);height:var(--ck-upload-placeholder-loader-size);border-radius:50%;border-top:3px solid var(--ck-color-upload-placeholder-loader);border-right:2px solid transparent;animation:ck-upload-placeholder-loader 1s linear infinite}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}'},function(e,t,n){var i=n(1),r=n(93);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form{padding:var(--ck-spacing-standard)}.ck.ck-link-form:focus{outline:none}[dir=ltr] .ck.ck-link-form>:not(:first-child),[dir=rtl] .ck.ck-link-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}.ck.ck-link-form_layout-vertical{padding:0;min-width:var(--ck-input-text-width)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical .ck-button{padding:var(--ck-spacing-standard);margin:0;border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border);width:50%}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=ltr] .ck.ck-link-form_layout-vertical .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin-left:0}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{border:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}"},function(e,t,n){var i=n(1),r=n(95);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions{padding:var(--ck-spacing-standard)}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{padding:0 var(--ck-spacing-medium);color:var(--ck-color-link-default);text-overflow:ellipsis;cursor:pointer;max-width:var(--ck-input-text-width);min-width:3em;text-align:center}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}.ck.ck-link-actions:focus{outline:none}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{min-width:0;max-width:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview):last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var i=n(1),r=n(97);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-link-image_icon{position:absolute;top:var(--ck-spacing-medium);right:var(--ck-spacing-medium);width:28px;height:28px;padding:4px;box-sizing:border-box;border-radius:var(--ck-border-radius)}.ck.ck-link-image_icon svg{fill:currentColor}.ck.ck-link-image_icon{color:#fff;background:rgba(0,0,0,.4)}"},function(e,t,n){var i=n(1),r=n(99);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports='.ck-media__wrapper .ck-media__placeholder{display:flex;flex-direction:column;align-items:center}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url:hover .ck-tooltip{visibility:visible;opacity:1}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{overflow:hidden;display:block}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{padding:calc(3*var(--ck-spacing-standard));background:var(--ck-color-base-foreground)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{min-width:var(--ck-media-embed-placeholder-icon-size);height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);background-position:50%;background-size:cover}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{width:100%;height:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);white-space:nowrap;text-align:center;font-style:italic;text-overflow:ellipsis}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-width:300px;max-height:380px}.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMDAzLjc4IDEuNjFoNDkuNjIxYzEuNjk0IDAgMy4xOS0uNzk4IDQuMTQ2LTIuMDM3eiIgZmlsbD0iIzVjODhjNSIvPjxwYXRoIGQ9Ik0yMjYuNzQyIDIyMi45ODhjLTkuMjY2IDAtMTYuNzc3IDcuMTctMTYuNzc3IDE2LjAxNC4wMDcgMi43NjIuNjYzIDUuNDc0IDIuMDkzIDcuODc1LjQzLjcwMy44MyAxLjQwOCAxLjE5IDIuMTA3LjMzMy41MDIuNjUgMS4wMDUuOTUgMS41MDguMzQzLjQ3Ny42NzMuOTU3Ljk4OCAxLjQ0IDEuMzEgMS43NjkgMi41IDMuNTAyIDMuNjM3IDUuMTY4Ljc5MyAxLjI3NSAxLjY4MyAyLjY0IDIuNDY2IDMuOTkgMi4zNjMgNC4wOTQgNC4wMDcgOC4wOTIgNC42IDEzLjkxNHYuMDEyYy4xODIuNDEyLjUxNi42NjYuODc5LjY2Ny40MDMtLjAwMS43NjgtLjMxNC45My0uNzk5LjYwMy01Ljc1NiAyLjIzOC05LjcyOSA0LjU4NS0xMy43OTQuNzgyLTEuMzUgMS42NzMtMi43MTUgMi40NjUtMy45OSAxLjEzNy0xLjY2NiAyLjMyOC0zLjQgMy42MzgtNS4xNjkuMzE1LS40ODIuNjQ1LS45NjIuOTg4LTEuNDM5LjMtLjUwMy42MTctMS4wMDYuOTUtMS41MDguMzU5LS43Ljc2LTEuNDA0IDEuMTktMi4xMDcgMS40MjYtMi40MDIgMi01LjExNCAyLjAwNC03Ljg3NSAwLTguODQ0LTcuNTExLTE2LjAxNC0xNi43NzYtMTYuMDE0eiIgZmlsbD0iI2RkNGIzZSIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48ZWxsaXBzZSByeT0iNS41NjQiIHJ4PSI1LjgyOCIgY3k9IjIzOS4wMDIiIGN4PSIyMjYuNzQyIiBmaWxsPSIjODAyZDI3IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0xOTAuMzAxIDIzNy4yODNjLTQuNjcgMC04LjQ1NyAzLjg1My04LjQ1NyA4LjYwNnMzLjc4NiA4LjYwNyA4LjQ1NyA4LjYwN2MzLjA0MyAwIDQuODA2LS45NTggNi4zMzctMi41MTYgMS41My0xLjU1NyAyLjA4Ny0zLjkxMyAyLjA4Ny02LjI5IDAtLjM2Mi0uMDIzLS43MjItLjA2NC0xLjA3OWgtOC4yNTd2My4wNDNoNC44NWMtLjE5Ny43NTktLjUzMSAxLjQ1LTEuMDU4IDEuOTg2LS45NDIuOTU4LTIuMDI4IDEuNTQ4LTMuOTAxIDEuNTQ4LTIuODc2IDAtNS4yMDgtMi4zNzItNS4yMDgtNS4yOTkgMC0yLjkyNiAyLjMzMi01LjI5OSA1LjIwOC01LjI5OSAxLjM5OSAwIDIuNjE4LjQwNyAzLjU4NCAxLjI5M2wyLjM4MS0yLjM4YzAtLjAwMi0uMDAzLS4wMDQtLjAwNC0uMDA1LTEuNTg4LTEuNTI0LTMuNjItMi4yMTUtNS45NTUtMi4yMTV6bTQuNDMgNS42NmwuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxNS4xODQgMjUxLjkyOWwtNy45OCA3Ljk3OSAyOC40NzcgMjguNDc1YTUuMjMzIDUuMjMzIDAgMDAuNDQ5LTIuMTIzdi0zMS4xNjVjLS40NjkuNjc1LS45MzQgMS4zNDktMS4zODIgMi4wMDUtLjc5MiAxLjI3NS0xLjY4MiAyLjY0LTIuNDY1IDMuOTktMi4zNDcgNC4wNjUtMy45ODIgOC4wMzgtNC41ODUgMTMuNzk0LS4xNjIuNDg1LS41MjcuNzk4LS45My43OTktLjM2My0uMDAxLS42OTctLjI1NS0uODc5LS42Njd2LS4wMTJjLS41OTMtNS44MjItMi4yMzctOS44Mi00LjYtMTMuOTE0LS43ODMtMS4zNS0xLjY3My0yLjcxNS0yLjQ2Ni0zLjk5LTEuMTM3LTEuNjY2LTIuMzI3LTMuNC0zLjYzNy01LjE2OWwtLjAwMi0uMDAzeiIgZmlsbD0iI2MzYzNjMyIvPjxwYXRoIGQ9Ik0yMTIuOTgzIDI0OC40OTVsLTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAwNS4yMzggNS4yMzhoMS4wMTVsMzUuNjY2LTM1LjY2NmExMzYuMjc1IDEzNi4yNzUgMCAwMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAwLS45ODktMS40NCAzNS4xMjcgMzUuMTI3IDAgMDAtLjk1LTEuNTA4Yy0uMDgzLS4xNjItLjE3Ni0uMzI2LS4yNjQtLjQ4OXoiIGZpbGw9IiNmZGRjNGYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTIxMS45OTggMjYxLjA4M2wtNi4xNTIgNi4xNTEgMjQuMjY0IDI0LjI2NGguNzgxYTUuMjI3IDUuMjI3IDAgMDA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OXptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OXoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzN6bTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1ek00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIGZpbGw9IiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}'},function(e,t,n){var i=n(1),r=n(101);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck.ck-media-form{display:flex;align-items:flex-start;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}.ck.ck-media-form{padding:var(--ck-spacing-standard)}.ck.ck-media-form:focus{outline:none}[dir=ltr] .ck.ck-media-form>:not(:first-child),[dir=rtl] .ck.ck-media-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-media-form{padding:0;width:calc(0.8*var(--ck-input-text-width))}.ck.ck-media-form .ck-labeled-field-view{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-media-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-media-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-media-form .ck-button{padding:var(--ck-spacing-standard);margin-top:var(--ck-spacing-standard);border-radius:0;border:0;border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-media-form .ck-button{margin-left:0}[dir=ltr] .ck.ck-media-form .ck-button:first-of-type{border-right:1px solid var(--ck-color-base-border)}[dir=rtl] .ck.ck-media-form .ck-button{margin-left:0}[dir=rtl] .ck.ck-media-form .ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}}"},function(e,t,n){var i=n(1),r=n(103);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .media{clear:both;margin:1em 0;display:block;min-width:15em}"},function(e,t,n){var i=n(1),r=n(105);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=":root{--ck-color-table-focused-cell-background:rgba(158,207,250,0.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-table-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}"},function(e,t,n){var i=n(1),r=n(107);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2);padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0}.ck .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{width:var(--ck-insert-table-dropdown-box-width);height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);border:1px solid var(--ck-color-base-border);border-radius:1px}.ck .ck-insert-table-dropdown-grid-box.ck-on{border-color:var(--ck-color-focus-border);background:var(--ck-color-focus-outer-shadow)}"},function(e,t,n){var i=n(1),r=n(109);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=':root{--ck-table-selected-cell-background:rgba(158,207,250,0.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{position:relative;caret-color:transparent;outline:unset;box-shadow:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{content:"";pointer-events:none;background-color:var(--ck-table-selected-cell-background);position:absolute;top:0;left:0;right:0;bottom:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget_selected{outline:unset}'},function(e,t,n){var i=n(1),r=n(111);"string"==typeof(r=r.__esModule?r.default:r)&&(r=[[e.i,r,""]]);var o={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};i(r,o),e.exports=r.locals||{}},function(e,t){e.exports=".ck-content .table{margin:1em auto;display:table}.ck-content .table table{border-collapse:collapse;border-spacing:0;width:100%;height:100%;border:1px double #b3b3b3}.ck-content .table table td,.ck-content .table table th{min-width:2em;padding:.4em;border:1px solid #bfbfbf}.ck-content .table table th{font-weight:700;background:hsla(0,0%,0%,5%)}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}"},function(e,t,n){"use strict";var i=a.mark(al),r=a.mark(sl),o=a.mark(lf);n.r(t);var c=n(3),d=c.a.Symbol,h=Object.prototype,f=h.hasOwnProperty,p=h.toString,m=d?d.toStringTag:void 0,g=function(e){var t=f.call(e,m),n=e[m];try{e[m]=void 0;var i=!0}catch(e){}var r=p.call(e);return i&&(t?e[m]=n:delete e[m]),r},b=Object.prototype.toString,y=function(e){return b.call(e)},_=d?d.toStringTag:void 0,E=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":_&&_ in Object(e)?g(e):y(e)},O=function(e,t){return function(n){return e(t(n))}},M=O(Object.getPrototypeOf,Object),I=function(e){return null!=e&&"object"==R(e)},D=Function.prototype,L=Object.prototype,z=D.toString,j=L.hasOwnProperty,V=z.call(Object),B=function(e){if(!I(e)||"[object Object]"!=E(e))return!1;var t=M(e);if(null===t)return!0;var n=j.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&z.call(n)==V},F=function(){this.__data__=[],this.size=0},U=function(e,t){return e===t||e!=e&&t!=t},H=function(e,t){for(var n=e.length;n--;)if(U(e[n][0],t))return n;return-1},$=Array.prototype.splice,W=function(e){var t=this.__data__,n=H(t,e);return!(n<0)&&(n==t.length-1?t.pop():$.call(t,n,1),--this.size,!0)},q=function(e){var t=this.__data__,n=H(t,e);return n<0?void 0:t[n][1]},Y=function(e){return H(this.__data__,e)>-1},G=function(e,t){var n=this.__data__,i=H(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this};function K(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}K.prototype.clear=F,K.prototype.delete=W,K.prototype.get=q,K.prototype.has=Y,K.prototype.set=G;var J,Q=K,Z=function(){this.__data__=new Q,this.size=0},X=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},ee=function(e){return this.__data__.get(e)},te=function(e){return this.__data__.has(e)},ne=function(e){var t=R(e);return null!=e&&("object"==t||"function"==t)},ie=function(e){if(!ne(e))return!1;var t=E(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},re=c.a["__core-js_shared__"],oe=(J=/[^.]+$/.exec(re&&re.keys&&re.keys.IE_PROTO||""))?"Symbol(src)_1."+J:"",ae=function(e){return!!oe&&oe in e},se=Function.prototype.toString,le=function(e){if(null!=e){try{return se.call(e)}catch(e){}try{return e+""}catch(e){}}return""},ce=/^\[object .+?Constructor\]$/,ue=Function.prototype,de=Object.prototype,he=ue.toString,fe=de.hasOwnProperty,ve=RegExp("^"+he.call(fe).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),pe=function(e){return!(!ne(e)||ae(e))&&(ie(e)?ve:ce).test(le(e))},me=function(e,t){return null==e?void 0:e[t]},ge=function(e,t){var n=me(e,t);return pe(n)?n:void 0},ke=ge(c.a,"Map"),be=ge(Object,"create"),ye=function(){this.__data__=be?be(null):{},this.size=0},we=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},_e=Object.prototype.hasOwnProperty,xe=function(e){var t=this.__data__;if(be){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return _e.call(t,e)?t[e]:void 0},Ce=Object.prototype.hasOwnProperty,Ae=function(e){var t=this.__data__;return be?void 0!==t[e]:Ce.call(t,e)},Te=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=be&&void 0===t?"__lodash_hash_undefined__":t,this};function Pe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Pe.prototype.clear=ye,Pe.prototype.delete=we,Pe.prototype.get=xe,Pe.prototype.has=Ae,Pe.prototype.set=Te;var Ee=Pe,Se=function(){this.size=0,this.__data__={hash:new Ee,map:new(ke||Q),string:new Ee}},Oe=function(e){var t=R(e);return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},Me=function(e,t){var n=e.__data__;return Oe(t)?n["string"==typeof t?"string":"hash"]:n.map},Ie=function(e){var t=Me(this,e).delete(e);return this.size-=t?1:0,t},Ne=function(e){return Me(this,e).get(e)},Re=function(e){return Me(this,e).has(e)},De=function(e,t){var n=Me(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this};function Le(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}Le.prototype.clear=Se,Le.prototype.delete=Ie,Le.prototype.get=Ne,Le.prototype.has=Re,Le.prototype.set=De;var ze=Le,je=function(e,t){var n=this.__data__;if(n instanceof Q){var i=n.__data__;if(!ke||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new ze(i)}return n.set(e,t),this.size=n.size,this};function Ve(e){var t=this.__data__=new Q(e);this.size=t.size}Ve.prototype.clear=Z,Ve.prototype.delete=X,Ve.prototype.get=ee,Ve.prototype.has=te,Ve.prototype.set=je;var Be=Ve,Fe=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e},Ue=function(){try{var e=ge(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),He=function(e,t,n){"__proto__"==t&&Ue?Ue(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n},$e=Object.prototype.hasOwnProperty,We=function(e,t,n){var i=e[t];$e.call(e,t)&&U(i,n)&&(void 0!==n||t in e)||He(e,t,n)},qe=function(e,t,n,i){var r=!n;n||(n={});for(var o=-1,a=t.length;++o<a;){var s=t[o],l=i?i(n[s],e[s],s,n,e):void 0;void 0===l&&(l=e[s]),r?He(n,s,l):We(n,s,l)}return n},Ye=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i},Ge=function(e){return I(e)&&"[object Arguments]"==E(e)},Ke=Object.prototype,Je=Ke.hasOwnProperty,Qe=Ke.propertyIsEnumerable,Ze=Ge(function(){return arguments}())?Ge:function(e){return I(e)&&Je.call(e,"callee")&&!Qe.call(e,"callee")},Xe=Array.isArray,et=n(4),tt=/^(?:0|[1-9]\d*)$/,nt=function(e,t){var n=R(e);return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&tt.test(e))&&e>-1&&e%1==0&&e<t},it=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},rt={};rt["[object Float32Array]"]=rt["[object Float64Array]"]=rt["[object Int8Array]"]=rt["[object Int16Array]"]=rt["[object Int32Array]"]=rt["[object Uint8Array]"]=rt["[object Uint8ClampedArray]"]=rt["[object Uint16Array]"]=rt["[object Uint32Array]"]=!0,rt["[object Arguments]"]=rt["[object Array]"]=rt["[object ArrayBuffer]"]=rt["[object Boolean]"]=rt["[object DataView]"]=rt["[object Date]"]=rt["[object Error]"]=rt["[object Function]"]=rt["[object Map]"]=rt["[object Number]"]=rt["[object Object]"]=rt["[object RegExp]"]=rt["[object Set]"]=rt["[object String]"]=rt["[object WeakMap]"]=!1;var ot=function(e){return I(e)&&it(e.length)&&!!rt[E(e)]},at=function(e){return function(t){return e(t)}},st=n(5),lt=st.a&&st.a.isTypedArray,ct=lt?at(lt):ot,ut=Object.prototype.hasOwnProperty,dt=function(e,t){var n=Xe(e),i=!n&&Ze(e),r=!n&&!i&&Object(et.a)(e),o=!n&&!i&&!r&&ct(e),a=n||i||r||o,s=a?Ye(e.length,String):[],l=s.length;for(var c in e)!t&&!ut.call(e,c)||a&&("length"==c||r&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||nt(c,l))||s.push(c);return s},ht=Object.prototype,ft=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ht)},vt=O(Object.keys,Object),pt=Object.prototype.hasOwnProperty,mt=function(e){if(!ft(e))return vt(e);var t=[];for(var n in Object(e))pt.call(e,n)&&"constructor"!=n&&t.push(n);return t},gt=function(e){return null!=e&&it(e.length)&&!ie(e)},kt=function(e){return gt(e)?dt(e):mt(e)},bt=function(e,t){return e&&qe(t,kt(t),e)},yt=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},wt=Object.prototype.hasOwnProperty,_t=function(e){if(!ne(e))return yt(e);var t=ft(e),n=[];for(var i in e)("constructor"!=i||!t&&wt.call(e,i))&&n.push(i);return n},xt=function(e){return gt(e)?dt(e,!0):_t(e)},Ct=function(e,t){return e&&qe(t,xt(t),e)},At=n(8),Tt=function(e,t){var n=-1,i=e.length;for(t||(t=Array(i));++n<i;)t[n]=e[n];return t},Pt=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,o=[];++n<i;){var a=e[n];t(a,n,e)&&(o[r++]=a)}return o},Et=function(){return[]},St=Object.prototype.propertyIsEnumerable,Ot=Object.getOwnPropertySymbols,Mt=Ot?function(e){return null==e?[]:(e=Object(e),Pt(Ot(e),(function(t){return St.call(e,t)})))}:Et,It=function(e,t){return qe(e,Mt(e),t)},Nt=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e},Rt=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)Nt(t,Mt(e)),e=M(e);return t}:Et,Dt=function(e,t){return qe(e,Rt(e),t)},Lt=function(e,t,n){var i=t(e);return Xe(e)?i:Nt(i,n(e))},zt=function(e){return Lt(e,kt,Mt)},jt=function(e){return Lt(e,xt,Rt)},Vt=ge(c.a,"DataView"),Bt=ge(c.a,"Promise"),Ft=ge(c.a,"Set"),Ut=ge(c.a,"WeakMap"),Ht="[object Map]",$t="[object Promise]",Wt="[object Set]",qt="[object WeakMap]",Yt="[object DataView]",Gt=le(Vt),Kt=le(ke),Jt=le(Bt),Qt=le(Ft),Zt=le(Ut),Xt=E;(Vt&&Xt(new Vt(new ArrayBuffer(1)))!=Yt||ke&&Xt(new ke)!=Ht||Bt&&Xt(Bt.resolve())!=$t||Ft&&Xt(new Ft)!=Wt||Ut&&Xt(new Ut)!=qt)&&(Xt=function(e){var t=E(e),n="[object Object]"==t?e.constructor:void 0,i=n?le(n):"";if(i)switch(i){case Gt:return Yt;case Kt:return Ht;case Jt:return $t;case Qt:return Wt;case Zt:return qt}return t});var en=Xt,tn=Object.prototype.hasOwnProperty,nn=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&tn.call(e,"index")&&(n.index=e.index,n.input=e.input),n},rn=c.a.Uint8Array,on=function(e){var t=new e.constructor(e.byteLength);return new rn(t).set(new rn(e)),t},an=function(e,t){var n=t?on(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)},sn=/\w*$/,ln=function(e){var t=new e.constructor(e.source,sn.exec(e));return t.lastIndex=e.lastIndex,t},cn=d?d.prototype:void 0,un=cn?cn.valueOf:void 0,dn=function(e){return un?Object(un.call(e)):{}},hn=function(e,t){var n=t?on(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)},fn=function(e,t,n){var i=e.constructor;switch(t){case"[object ArrayBuffer]":return on(e);case"[object Boolean]":case"[object Date]":return new i(+e);case"[object DataView]":return an(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return hn(e,n);case"[object Map]":return new i;case"[object Number]":case"[object String]":return new i(e);case"[object RegExp]":return ln(e);case"[object Set]":return new i;case"[object Symbol]":return dn(e)}},vn=Object.create,pn=function(){function e(){}return function(t){if(!ne(t))return{};if(vn)return vn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}(),mn=function(e){return"function"!=typeof e.constructor||ft(e)?{}:pn(M(e))},gn=function(e){return I(e)&&"[object Map]"==en(e)},kn=st.a&&st.a.isMap,bn=kn?at(kn):gn,yn=function(e){return I(e)&&"[object Set]"==en(e)},wn=st.a&&st.a.isSet,_n=wn?at(wn):yn,xn="[object Arguments]",Cn="[object Function]",An="[object Object]",Tn={};Tn[xn]=Tn["[object Array]"]=Tn["[object ArrayBuffer]"]=Tn["[object DataView]"]=Tn["[object Boolean]"]=Tn["[object Date]"]=Tn["[object Float32Array]"]=Tn["[object Float64Array]"]=Tn["[object Int8Array]"]=Tn["[object Int16Array]"]=Tn["[object Int32Array]"]=Tn["[object Map]"]=Tn["[object Number]"]=Tn["[object Object]"]=Tn["[object RegExp]"]=Tn["[object Set]"]=Tn["[object String]"]=Tn["[object Symbol]"]=Tn["[object Uint8Array]"]=Tn["[object Uint8ClampedArray]"]=Tn["[object Uint16Array]"]=Tn["[object Uint32Array]"]=!0,Tn["[object Error]"]=Tn[Cn]=Tn["[object WeakMap]"]=!1;var Pn=function e(t,n,i,r,o,a){var s,l=1&n,c=2&n,u=4&n;if(i&&(s=o?i(t,r,o,a):i(t)),void 0!==s)return s;if(!ne(t))return t;var d=Xe(t);if(d){if(s=nn(t),!l)return Tt(t,s)}else{var h=en(t),f=h==Cn||"[object GeneratorFunction]"==h;if(Object(et.a)(t))return Object(At.a)(t,l);if(h==An||h==xn||f&&!o){if(s=c||f?{}:mn(t),!l)return c?Dt(t,Ct(s,t)):It(t,bt(s,t))}else{if(!Tn[h])return o?t:{};s=fn(t,h,l)}}a||(a=new Be);var v=a.get(t);if(v)return v;a.set(t,s),_n(t)?t.forEach((function(r){s.add(e(r,n,i,r,t,a))})):bn(t)&&t.forEach((function(r,o){s.set(o,e(r,n,i,o,t,a))}));var p=u?c?jt:zt:c?keysIn:kt,m=d?void 0:p(t);return Fe(m||t,(function(r,o){m&&(r=t[o=r]),We(s,o,e(r,n,i,o,t,a))})),s},En=function(e,t){return Pn(e,5,t="function"==typeof t?t:void 0)},Sn=function(e){return I(e)&&1===e.nodeType&&!B(e)},On=function(){function e(t,n){w(this,e),this._config={},n&&this.define(Mn(n)),t&&this._setObjectToTarget(this._config,t)}return x(e,[{key:"set",value:function(e,t){this._setToTarget(this._config,e,t)}},{key:"define",value:function(e,t){this._setToTarget(this._config,e,t,!0)}},{key:"get",value:function(e){return this._getFromSource(this._config,e)}},{key:"names",value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=0,n=Object.keys(this._config);case 1:if(!(t<n.length)){e.next=8;break}return i=n[t],e.next=5,i;case 5:t++,e.next=1;break;case 8:case"end":return e.stop()}}),e,this)}))},{key:"_setToTarget",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(B(t))this._setObjectToTarget(e,t,i);else{var r=t.split(".");t=r.pop();var o,a=k(r);try{for(a.s();!(o=a.n()).done;){var s=o.value;B(e[s])||(e[s]={}),e=e[s]}}catch(l){a.e(l)}finally{a.f()}if(B(n))return B(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,i);i&&void 0!==e[t]||(e[t]=n)}}},{key:"_getFromSource",value:function(e,t){var n=t.split(".");t=n.pop();var i,r=k(n);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(!B(e[o])){e=null;break}e=e[o]}}catch(a){r.e(a)}finally{r.f()}return e?Mn(e[t]):void 0}},{key:"_setObjectToTarget",value:function(e,t,n){var i=this;Object.keys(t).forEach((function(r){i._setToTarget(e,r,t[r],n)}))}}]),e}();function Mn(e){return En(e,In)}function In(e){return Sn(e)?e:void 0}var Nn=function(){return function e(){e.called=!0}},Rn=function e(t,n){w(this,e),this.source=t,this.name=n,this.path=[],this.stop=Nn(),this.off=Nn()},Dn=new Array(256).fill().map((function(e,t){return("0"+t.toString(16)).slice(-2)}));function Ln(){var e=4294967296*Math.random()>>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0;return"e"+Dn[e>>0&255]+Dn[e>>8&255]+Dn[e>>16&255]+Dn[e>>24&255]+Dn[t>>0&255]+Dn[t>>8&255]+Dn[t>>16&255]+Dn[t>>24&255]+Dn[n>>0&255]+Dn[n>>8&255]+Dn[n>>16&255]+Dn[n>>24&255]+Dn[i>>0&255]+Dn[i>>8&255]+Dn[i>>16&255]+Dn[i>>24&255]}var zn={get:function(e){return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},jn=(n(6),n(0)),Vn=Symbol("listeningTo"),Bn=Symbol("emitterId"),Fn={on:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,e,t,n)},once:function(e,t,n){var i=!1;this.listenTo(this,e,(function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];i||(i=!0,e.off(),t.call.apply(t,[this,e].concat(r)))}),n)},off:function(e,t){this.stopListening(this,e,t)},listenTo:function(e,t,n){var i,r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[Vn]||(this[Vn]={});var a=this[Vn];Hn(e)||Un(e);var s=Hn(e);(i=a[s])||(i=a[s]={emitter:e,callbacks:{}}),(r=i.callbacks[t])||(r=i.callbacks[t]=[]),r.push(n),function(e,t){var n=$n(e);if(!n[t]){for(var i=t,r=null,o=[];""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},o.push(n[i]),r&&n[i].childEvents.push(r),r=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){var a,s=k(o);try{for(s.s();!(a=s.n()).done;){var l=a.value;l.callbacks=n[i].callbacks.slice()}}catch(c){s.e(c)}finally{s.f()}n[i].childEvents.push(r)}}}(e,t);var l,c=Wn(e,t),u=zn.get(o.priority),d={callback:n,priority:u},h=k(c);try{for(h.s();!(l=h.n()).done;){for(var f=l.value,v=!1,p=0;p<f.length;p++)if(f[p].priority<u){f.splice(p,0,d),v=!0;break}v||f.push(d)}}catch(m){h.e(m)}finally{h.f()}},stopListening:function(e,t,n){var i=this[Vn],r=e&&Hn(e),o=i&&r&&i[r],a=o&&t&&o.callbacks[t];if(!(!i||e&&!o||t&&!a))if(n)Yn(e,t,n);else if(a){for(;n=a.pop();)Yn(e,t,n);delete o.callbacks[t]}else if(o){for(t in o.callbacks)this.stopListening(e,t);delete i[r]}else{for(r in i)this.stopListening(i[r].emitter);delete this[Vn]}},fire:function(e){try{for(var t=e instanceof Rn?e:new Rn(this,e),n=t.name,i=function e(t,n){var i;return t._events&&(i=t._events[n])&&i.callbacks.length?i.callbacks:n.indexOf(":")>-1?e(t,n.substr(0,n.lastIndexOf(":"))):null}(this,n),r=arguments.length,o=new Array(r>1?r-1:0),a=1;a<r;a++)o[a-1]=arguments[a];if(t.path.push(this),i){var s=[t].concat(o);i=Array.from(i);for(var l=0;l<i.length&&(i[l].callback.apply(this,s),t.off.called&&(delete t.off.called,Yn(this,n,i[l].callback)),!t.stop.called);l++);}if(this._delegations){var c=this._delegations.get(n),u=this._delegations.get("*");c&&qn(c,t,o),u&&qn(u,t,o)}return t.return}catch(e){jn.b.rethrowUnexpectedError(e,this)}},delegate:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return{to:function(t,i){e._delegations||(e._delegations=new Map),n.forEach((function(n){var r=e._delegations.get(n);r?r.set(t,i):e._delegations.set(n,new Map([[t,i]]))}))}}},stopDelegating:function(e,t){if(this._delegations)if(e)if(t){var n=this._delegations.get(e);n&&n.delete(t)}else this._delegations.delete(e);else this._delegations.clear()}};function Un(e,t){e[Bn]||(e[Bn]=t||Ln())}function Hn(e){return e[Bn]}function $n(e){return e._events||Object.defineProperty(e,"_events",{value:{}}),e._events}function Wn(e,t){var n=$n(e)[t];if(!n)return[];for(var i=[n.callbacks],r=0;r<n.childEvents.length;r++){var o=Wn(e,n.childEvents[r]);i=i.concat(o)}return i}function qn(e,t,n){var i,r=k(e);try{for(r.s();!(i=r.n()).done;){var o=v(i.value,2),a=o[0],s=o[1];s?"function"==typeof s&&(s=s(t.name)):s=t.name;var l=new Rn(t.source,s);l.path=u(t.path),a.fire.apply(a,[l].concat(u(n)))}}catch(c){r.e(c)}finally{r.f()}}function Yn(e,t,n){var i,r=Wn(e,t),o=k(r);try{for(o.s();!(i=o.n()).done;)for(var a=i.value,s=0;s<a.length;s++)a[s].callback==n&&(a.splice(s,1),s--)}catch(l){o.e(l)}finally{o.f()}}function Gn(e){return!(!e||!e[Symbol.iterator])}function Kn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];n.forEach((function(t){Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t)).forEach((function(n){if(!(n in e.prototype)){var i=Object.getOwnPropertyDescriptor(t,n);i.enumerable=!1,Object.defineProperty(e.prototype,n,i)}}))}))}var Jn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(this,e);var i=Gn(t);if(i||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i){var r,o=k(t);try{for(o.s();!(r=o.n()).done;){var a=r.value;this._items.push(a),this._itemMap.set(this._getItemIdBeforeAdding(a),a)}}catch(s){o.e(s)}finally{o.f()}}}return x(e,[{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"addMany",value:function(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new jn.b("collection-add-item-invalid-index: The index passed to Collection#addMany() is invalid.",this);for(var n=0;n<e.length;n++){var i=e[n],r=this._getItemIdBeforeAdding(i),o=t+n;this._items.splice(o,0,i),this._itemMap.set(r,i),this.fire("add",i,o)}return this.fire("change",{added:e,removed:[],index:t}),this}},{key:"get",value:function(e){var t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new jn.b("collection-get-invalid-arg: Index or id must be given.",this);t=this._items[e]}return t||null}},{key:"has",value:function(e){if("string"==typeof e)return this._itemMap.has(e);var t=e[this._idProperty];return this._itemMap.has(t)}},{key:"getIndex",value:function(e){var t;return t="string"==typeof e?this._itemMap.get(e):e,this._items.indexOf(t)}},{key:"remove",value:function(e){var t=this._remove(e),n=v(t,2),i=n[0],r=n[1];return this.fire("change",{added:[],removed:[i],index:r}),i}},{key:"map",value:function(e,t){return this._items.map(e,t)}},{key:"find",value:function(e,t){return this._items.find(e,t)}},{key:"filter",value:function(e,t){return this._items.filter(e,t)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var e=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}},{key:"bindTo",value:function(e){var t=this;if(this._bindToCollection)throw new jn.b("collection-bind-to-rebind: The collection cannot be bound more than once.",this);return this._bindToCollection=e,{as:function(e){t._setUpBindToBinding((function(t){return new e(t)}))},using:function(e){"function"==typeof e?t._setUpBindToBinding((function(t){return e(t)})):t._setUpBindToBinding((function(t){return t[e]}))}}}},{key:"_setUpBindToBinding",value:function(e){var t,n=this,i=this._bindToCollection,r=function(t,r,o){var a=i._bindToCollection==n,s=i._bindToInternalToExternalMap.get(r);if(a&&s)n._bindToExternalToInternalMap.set(r,s),n._bindToInternalToExternalMap.set(s,r);else{var l=e(r);if(!l)return void n._skippedIndexesFromExternal.push(o);var c,u=o,d=k(n._skippedIndexesFromExternal);try{for(d.s();!(c=d.n()).done;){var h=c.value;o>h&&u--}}catch(g){d.e(g)}finally{d.f()}var f,v=k(i._skippedIndexesFromExternal);try{for(v.s();!(f=v.n()).done;){var p=f.value;u>=p&&u++}}catch(g){v.e(g)}finally{v.f()}n._bindToExternalToInternalMap.set(r,l),n._bindToInternalToExternalMap.set(l,r),n.add(l,u);for(var m=0;m<i._skippedIndexesFromExternal.length;m++)u<=i._skippedIndexesFromExternal[m]&&i._skippedIndexesFromExternal[m]++}},o=k(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;r(0,a,i.getIndex(a))}}catch(s){o.e(s)}finally{o.f()}this.listenTo(i,"add",r),this.listenTo(i,"remove",(function(e,t,i){var r=n._bindToExternalToInternalMap.get(t);r&&n.remove(r),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(e,t){return i<t&&e.push(t-1),i>t&&e.push(t),e}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(e){var t,n=this._idProperty;if(n in e){if(t=e[n],"string"!=typeof t)throw new jn.b("collection-add-invalid-id: This item's id should be a string.",this);if(this.get(t))throw new jn.b("collection-add-item-already-exists: This item already exists in the collection.",this)}else e[n]=t=Ln();return t}},{key:"_remove",value:function(e){var t,n,i,r=!1,o=this._idProperty;if("string"==typeof e?(n=e,i=this._itemMap.get(n),r=!i,i&&(t=this._items.indexOf(i))):"number"==typeof e?(t=e,i=this._items[t],r=!i,i&&(n=i[o])):(i=e,n=i[o],t=this._items.indexOf(i),r=-1==t||!this._itemMap.get(n)),r)throw new jn.b("collection-remove-404: Item not found.",this);this._items.splice(t,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,t),[i,t]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}}]),e}();Kn(Jn,Fn);var Qn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];w(this,e),this._context=t,this._plugins=new Map,this._availablePlugins=new Map;var r,o=k(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;a.pluginName&&this._availablePlugins.set(a.pluginName,a)}}catch(h){o.e(h)}finally{o.f()}this._contextPlugins=new Map;var s,l=k(i);try{for(l.s();!(s=l.n()).done;){var c=v(s.value,2),u=c[0],d=c[1];this._contextPlugins.set(u,d),this._contextPlugins.set(d,u),u.pluginName&&this._availablePlugins.set(u.pluginName,u)}}catch(h){l.e(h)}finally{l.f()}}return x(e,[{key:Symbol.iterator,value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=k(this._plugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(i=n.value,e.t0="function"==typeof i[0],!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"get",value:function(e){var t=this._plugins.get(e);if(!t){var n="plugincollection-plugin-not-loaded: The requested plugin is not loaded.",i=e;throw"function"==typeof e&&(i=e.pluginName||e.name),new jn.b(n,this._context,{plugin:i})}return t}},{key:"has",value:function(e){return this._plugins.has(e)}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=this,i=this._context,r=new Set,o=[],a=f(e),s=f(t),l=function(e){var t,n=[],i=k(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;h(r)||n.push(r)}}catch(o){i.e(o)}finally{i.f()}return n.length?n:null}(e);if(l){var c="plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.";return console.error(Object(jn.a)(c),{plugins:l}),Promise.reject(new jn.b(c,i,{plugins:l}))}return Promise.all(a.map(u)).then((function(){return d(o,"init")})).then((function(){return d(o,"afterInit")})).then((function(){return o}));function u(e){if(!s.includes(e)&&!n._plugins.has(e)&&!r.has(e))return function(e){return new Promise((function(a){r.add(e),e.requires&&e.requires.forEach((function(n){var r=h(n);if(e.isContextPlugin&&!r.isContextPlugin)throw new jn.b("plugincollection-context-required: Context plugin can not require plugin which is not a context plugin",null,{plugin:r.name,requiredBy:e.name});if(t.includes(r))throw new jn.b("plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.",i,{plugin:r.name,requiredBy:e.name});u(r)}));var s=n._contextPlugins.get(e)||new e(i);n._add(e,s),o.push(s),a()}))}(e).catch((function(t){throw console.error(Object(jn.a)("plugincollection-load: It was not possible to load the plugin."),{plugin:e}),t}))}function d(e,t){return e.reduce((function(e,i){return i[t]?n._contextPlugins.has(i)?e:e.then(i[t].bind(i)):e}),Promise.resolve())}function h(e){return"function"==typeof e?e:n._availablePlugins.get(e)}function f(e){return e.map((function(e){return h(e)})).filter((function(e){return!!e}))}}},{key:"destroy",value:function(){var e,t=[],n=k(this);try{for(n.s();!(e=n.n()).done;){var i=v(e.value,2),r=i[1];"function"!=typeof r.destroy||this._contextPlugins.has(r)||t.push(r.destroy())}}catch(o){n.e(o)}finally{n.f()}return Promise.all(t)}},{key:"_add",value:function(e,t){this._plugins.set(e,t);var n=e.pluginName;if(n){if(this._plugins.has(n))throw new jn.b("plugincollection-plugin-name-conflict: Two plugins with the same name were loaded.",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}]),e}();function Zn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new jn.b("translation-service-quantity-not-a-number: Expecting `quantity` to be a number.",null,{quantity:n});var i=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===i&&(e=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var r=t.id||t.string;if(0===i||!function(e,t){return!!window.CKEDITOR_TRANSLATIONS[e]&&!!window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,r))return 1!==n?t.plural:t.string;var o=window.CKEDITOR_TRANSLATIONS[e].dictionary,a=window.CKEDITOR_TRANSLATIONS[e].getPluralForm||function(e){return 1===e?0:1};if("string"==typeof o[r])return o[r];var s=Number(a(n));return o[r][s]}Kn(Qn,Fn),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var Xn=["ar","fa","he","ku","ug"],ei=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,e),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=ti(this.uiLanguage),this.contentLanguageDirection=ti(this.contentLanguage),this.t=function(e,n){return t._t(e,n)}}return x(e,[{key:"_t",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];Array.isArray(t)||(t=[t]),"string"==typeof e&&(e={string:e});var n=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,(function(e,n){return n<t.length?t[n]:e}))}(Zn(this.uiLanguage,e,n),t)}},{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}}]),e}();function ti(e){return Xn.includes(e)?"rtl":"ltr"}var ni=function(){function e(t){w(this,e),this.config=new On(t,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new Qn(this,n);var i=this.config.get("language")||{};this.locale=new ei({uiLanguage:"string"==typeof i?i:i.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Jn,this._contextOwner=null}return x(e,[{key:"initPlugins",value:function(){var e,t=this.config.get("plugins")||[],n=k(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("function"!=typeof i)throw new jn.b("context-initplugins-constructor-only: Only a constructor function is allowed as a context plugin.",null,{Plugin:i});if(!0!==i.isContextPlugin)throw new jn.b("context-initplugins-invalid-plugin: Only a plugin marked as a context plugin is allowed to be used with a context.",null,{Plugin:i})}}catch(r){n.e(r)}finally{n.f()}return this.plugins.init(t)}},{key:"destroy",value:function(){var e=this;return Promise.all(Array.from(this.editors,(function(e){return e.destroy()}))).then((function(){return e.plugins.destroy()}))}},{key:"_addEditor",value:function(e,t){if(this._contextOwner)throw new jn.b("context-addEditor-private-context: Cannot add multiple editors to the context which is created by the editor.");this.editors.add(e),t&&(this._contextOwner=e)}},{key:"_removeEditor",value:function(e){return this.editors.has(e)&&this.editors.remove(e),this._contextOwner===e?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var e,t={},n=k(this.config.names());try{for(n.s();!(e=n.n()).done;){var i=e.value;["plugins","removePlugins","extraPlugins"].includes(i)||(t[i]=this.config.get(i))}}catch(r){n.e(r)}finally{n.f()}return t}}],[{key:"create",value:function(e){var t=this;return new Promise((function(n){var i=new t(e);n(i.initPlugins().then((function(){return i})))}))}}]),e}();function ii(e,t){for(var n=Math.min(e.length,t.length),i=0;i<n;i++)if(e[i]!=t[i])return i;return e.length==t.length?"same":e.length<t.length?"prefix":"extension"}var ri=function(e){return Pn(e,4)},oi=function(){function e(t){w(this,e),this.document=t,this.parent=null}return x(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.index),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),i=e.getAncestors(t),r=0;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),i=ii(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]<n[i]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t),this.parent&&this.parent._fireChange(e,t)}},{key:"toJSON",value:function(){var e=ri(this);return delete e.parent,e}},{key:"is",value:function(e){return"node"===e||"view:node"===e}},{key:"index",get:function(){var e;if(!this.parent)return null;if(-1==(e=this.parent.getChildIndex(this)))throw new jn.b("view-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}();Kn(oi,Fn);var ai=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r._textData=i,r}return x(n,[{key:"is",value:function(e){return"$text"===e||"view:$text"===e||"text"===e||"view:text"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return e instanceof n&&(this===e||this.data===e.data)}},{key:"_clone",value:function(){return new n(this.document,this.data)}},{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(e){this._fireChange("text",this),this._textData=e}}]),n}(oi),si=function(){function e(t,n,i){if(w(this,e),this.textNode=t,n<0||n>t.data.length)throw new jn.b("view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(i<0||n+i>t.data.length)throw new jn.b("view-textproxy-wrong-length: Given length value is incorrect.",this);this.data=t.data.substring(n,n+i),this.offsetInText=n}return x(e,[{key:"is",value:function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this.textNode:this.parent;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}}]),e}();function li(e){return Gn(e)?new Map(e):function(e){var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e)}var ci=function(){function e(){w(this,e),this._patterns=[],this.add.apply(this,arguments)}return x(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];("string"==typeof o||o instanceof RegExp)&&(o={name:o}),o.classes&&("string"==typeof o.classes||o.classes instanceof RegExp)&&(o.classes=[o.classes]),this._patterns.push(o)}}},{key:"match",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o,a=r[i],s=k(this._patterns);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=ui(a,l);if(c)return{element:a,pattern:l,match:c}}}catch(u){s.e(u)}finally{s.f()}}return null}},{key:"matchAll",value:function(){for(var e=[],t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];for(var r=0,o=n;r<o.length;r++){var a,s=o[r],l=k(this._patterns);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=ui(s,c);u&&e.push({element:s,pattern:c,match:u})}}catch(d){l.e(d)}finally{l.f()}}return e.length>0?e:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}]),e}();function ui(e,t){if("function"==typeof t)return t(e);var n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?e.test(t):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){var n=[];for(var i in e){var r=e[i];if(!t.hasAttribute(i))return null;var o=t.getAttribute(i);if(!0===r)n.push(i);else if(r instanceof RegExp){if(!r.test(o))return null;n.push(i)}else{if(o!==r)return null;n.push(i)}}return n}(t.attributes,e),!n.attributes)?null:!(t.classes&&(n.classes=function(e,t){var n,i=[],r=k(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o instanceof RegExp){var a,s=t.getClassNames(),l=k(s);try{for(l.s();!(a=l.n()).done;){var c=a.value;o.test(c)&&i.push(c)}}catch(u){l.e(u)}finally{l.f()}if(0===i.length)return null}else{if(!t.hasClass(o))return null;i.push(o)}}}catch(u){r.e(u)}finally{r.f()}return i}(t.classes,e),!n.classes))&&!(t.styles&&(n.styles=function(e,t){var n=[];for(var i in e){var r=e[i];if(!t.hasStyle(i))return null;var o=t.getStyle(i);if(r instanceof RegExp){if(!r.test(o))return null;n.push(i)}else{if(o!==r)return null;n.push(i)}}return n}(t.styles,e),!n.styles))&&n}var di=function(e){return"symbol"==R(e)||I(e)&&"[object Symbol]"==E(e)},hi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,fi=/^\w*$/,vi=function(e,t){if(Xe(e))return!1;var n=R(e);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!di(e))||fi.test(e)||!hi.test(e)||null!=t&&e in Object(t)};function pi(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var i=arguments,r=t?t.apply(this,i):i[0],o=n.cache;if(o.has(r))return o.get(r);var a=e.apply(this,i);return n.cache=o.set(r,a)||o,a};return n.cache=new(pi.Cache||ze),n}pi.Cache=ze;var mi=pi,gi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ki=/\\(\\)?/g,bi=function(e){var t=mi(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(gi,(function(e,n,i,r){t.push(i?r.replace(ki,"$1"):n||e)})),t})),yi=function(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r},wi=d?d.prototype:void 0,_i=wi?wi.toString:void 0,xi=function e(t){if("string"==typeof t)return t;if(Xe(t))return yi(t,e)+"";if(di(t))return _i?_i.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n},Ci=function(e){return null==e?"":xi(e)},Ai=function(e,t){return Xe(e)?e:vi(e,t)?[e]:bi(Ci(e))},Ti=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0},Pi=function(e){if("string"==typeof e||di(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t},Ei=function(e,t){for(var n=0,i=(t=Ai(t,e)).length;null!=e&&n<i;)e=e[Pi(t[n++])];return n&&n==i?e:void 0},Si=function(e,t,n){var i=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(r);++i<r;)o[i]=e[i+t];return o},Oi=function(e,t){return t.length<2?e:Ei(e,Si(t,0,-1))},Mi=function(e,t){return t=Ai(t,e),null==(e=Oi(e,t))||delete e[Pi(Ti(t))]},Ii=function(e,t){return null==e||Mi(e,t)},Ni=function(e,t,n){var i=null==e?void 0:Ei(e,t);return void 0===i?n:i},Ri=function(e,t,n){(void 0!==n&&!U(e[t],n)||void 0===n&&!(t in e))&&He(e,t,n)},Di=function(e){return function(t,n,i){for(var r=-1,o=Object(t),a=i(t),s=a.length;s--;){var l=a[e?s:++r];if(!1===n(o[l],l,o))break}return t}}(),Li=function(e){return I(e)&&gt(e)},zi=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},ji=function(e){return qe(e,xt(e))},Vi=function(e,t,n,i,r,o,a){var s=zi(e,n),l=zi(t,n),c=a.get(l);if(c)Ri(e,n,c);else{var u=o?o(s,l,n+"",e,t,a):void 0,d=void 0===u;if(d){var h=Xe(l),f=!h&&Object(et.a)(l),v=!h&&!f&&ct(l);u=l,h||f||v?Xe(s)?u=s:Li(s)?u=Tt(s):f?(d=!1,u=Object(At.a)(l,!0)):v?(d=!1,u=hn(l,!0)):u=[]:B(l)||Ze(l)?(u=s,Ze(s)?u=ji(s):ne(s)&&!ie(s)||(u=mn(l))):d=!1}d&&(a.set(l,u),r(u,l,i,o,a),a.delete(l)),Ri(e,n,u)}},Bi=function e(t,n,i,r,o){t!==n&&Di(n,(function(a,s){if(o||(o=new Be),ne(a))Vi(t,n,s,i,e,r,o);else{var l=r?r(zi(t,s),a,s+"",t,n,o):void 0;void 0===l&&(l=a),Ri(t,s,l)}}),xt)},Fi=function(e){return e},Ui=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)},Hi=Math.max,$i=function(e,t,n){return t=Hi(void 0===t?e.length-1:t,0),function(){for(var i=arguments,r=-1,o=Hi(i.length-t,0),a=Array(o);++r<o;)a[r]=i[t+r];r=-1;for(var s=Array(t+1);++r<t;)s[r]=i[r];return s[t]=n(a),Ui(e,this,s)}},Wi=function(e){return function(){return e}},qi=Ue?function(e,t){return Ue(e,"toString",{configurable:!0,enumerable:!1,value:Wi(t),writable:!0})}:Fi,Yi=Date.now,Gi=function(e){var t=0,n=0;return function(){var i=Yi(),r=16-(i-n);if(n=i,r>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}(qi),Ki=function(e,t){return Gi($i(e,t,Fi),e+"")},Ji=function(e,t,n){if(!ne(n))return!1;var i=R(t);return!!("number"==i?gt(n)&&nt(t,n.length):"string"==i&&t in n)&&U(n[t],e)},Qi=function(e){return Ki((function(t,n){var i=-1,r=n.length,o=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(r--,o):void 0,a&&Ji(n[0],n[1],a)&&(o=r<3?void 0:o,r=1),t=Object(t);++i<r;){var s=n[i];s&&e(t,s,i,o)}return t}))},Zi=Qi((function(e,t,n){Bi(e,t,n)})),Xi=function(e,t,n,i){if(!ne(e))return e;for(var r=-1,o=(t=Ai(t,e)).length,a=o-1,s=e;null!=s&&++r<o;){var l=Pi(t[r]),c=n;if(r!=a){var u=s[l];void 0===(c=i?i(u,l,s):void 0)&&(c=ne(u)?u:nt(t[r+1])?[]:{})}We(s,l,c),s=s[l]}return e},er=function(e,t,n){return null==e?e:Xi(e,t,n)},tr=function(){function e(t){w(this,e),this._styles={},this._styleProcessor=t}return x(e,[{key:"setTo",value:function(e){this.clear();for(var t=Array.from(function(e){var t=null,n=0,i=0,r=null,o=new Map;if(""===e)return o;";"!=e.charAt(e.length-1)&&(e+=";");for(var a=0;a<e.length;a++){var s=e.charAt(a);if(null===t)switch(s){case":":r||(r=e.substr(n,a-n),i=a+1);break;case'"':case"'":t=s;break;case";":var l=e.substr(i,a-i);r&&o.set(r.trim(),l.trim()),r=null,n=a+1;break}else s===t&&(t=null)}return o}(e).entries()),n=0,i=t;n<i.length;n++){var r=v(i[n],2),o=r[0],a=r[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}}},{key:"has",value:function(e){if(this.isEmpty)return!1;var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){var n=v(t,1),i=n[0];return i===e}));return Array.isArray(t)}},{key:"set",value:function(e,t){if(ne(e))for(var n=0,i=Object.entries(e);n<i.length;n++){var r=v(i[n],2),o=r[0],a=r[1];this._styleProcessor.toNormalizedForm(o,a,this._styles)}else this._styleProcessor.toNormalizedForm(e,t,this._styles)}},{key:"remove",value:function(e){var t=ir(e);Ii(this._styles,t),delete this._styles[e],this._cleanEmptyObjectsOnPath(t)}},{key:"getNormalized",value:function(e){return this._styleProcessor.getNormalized(e,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(e){return e.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(e){if(!this.isEmpty){if(this._styles[e]&&!ne(this._styles[e]))return this._styles[e];var t=this._styleProcessor.getReducedForm(e,this._styles).find((function(t){var n=v(t,1),i=n[0];return i===e}));return Array.isArray(t)?t[1]:void 0}}},{key:"getStyleNames",value:function(){return this.isEmpty?[]:this._getStylesEntries().map((function(e){var t=v(e,1),n=t[0];return n}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var e=[],t=Object.keys(this._styles),n=0,i=t;n<i.length;n++){var r=i[n];e.push.apply(e,u(this._styleProcessor.getReducedForm(r,this._styles)))}return e}},{key:"_cleanEmptyObjectsOnPath",value:function(e){var t=e.split(".");if(t.length>1){var n=t.splice(0,t.length-1).join("."),i=Ni(this._styles,n);i&&!Array.from(Object.keys(i)).length&&this.remove(n)}}},{key:"isEmpty",get:function(){var e=Object.entries(this._styles);return!Array.from(e).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}}]),e}(),nr=function(){function e(){w(this,e),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return x(e,[{key:"toNormalizedForm",value:function(e,t,n){if(ne(t))rr(n,ir(e),t);else if(this._normalizers.has(e)){var i=this._normalizers.get(e),r=i(t),o=r.path,a=r.value;rr(n,o,a)}else rr(n,e,t)}},{key:"getNormalized",value:function(e,t){if(!e)return Zi({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){var n=this._extractors.get(e);if("string"==typeof n)return Ni(t,n);var i=n(e,t);if(i)return i}return Ni(t,ir(e))}},{key:"getReducedForm",value:function(e,t){var n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}},{key:"getRelatedStyles",value:function(e){return this._consumables.get(e)||[]}},{key:"setNormalizer",value:function(e,t){this._normalizers.set(e,t)}},{key:"setExtractor",value:function(e,t){this._extractors.set(e,t)}},{key:"setReducer",value:function(e,t){this._reducers.set(e,t)}},{key:"setStyleRelation",value:function(e,t){this._mapStyleNames(e,t);var n,i=k(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._mapStyleNames(r,[e])}}catch(o){i.e(o)}finally{i.f()}}},{key:"_mapStyleNames",value:function(e,t){var n;this._consumables.has(e)||this._consumables.set(e,[]),(n=this._consumables.get(e)).push.apply(n,u(t))}}]),e}();function ir(e){return e.replace("-",".")}function rr(e,t,n){var i=n;ne(n)&&(i=Zi({},Ni(e,t),n)),er(e,t,i)}var or=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;if(w(this,n),a=t.call(this,e),a.name=i,a._attrs=function(e){e=li(e);var t,n=k(e);try{for(n.s();!(t=n.n()).done;){var i=v(t.value,2),r=i[0],o=i[1];null===o?e.delete(r):"string"!=typeof o&&e.set(r,String(o))}}catch(a){n.e(a)}finally{n.f()}return e}(r),a._children=[],o&&a._insertChild(0,o),a._classes=new Set,a._attrs.has("class")){var s=a._attrs.get("class");ar(a._classes,s),a._attrs.delete("class")}return a._styles=new tr(a.document.stylesProcessor),a._attrs.has("style")&&(a._styles.setTo(a._attrs.get("style")),a._attrs.delete("style")),a._customProperties=new Map,T(a)}return x(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(e.t0=this._classes.size>0,!e.t0){e.next=4;break}return e.next=4,"class";case 4:if(e.t1=this._styles.isEmpty,e.t1){e.next=8;break}return e.next=8,"style";case 8:return e.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttributes",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._attrs.entries(),"t0",1);case 1:if(e.t1=this._classes.size>0,!e.t1){e.next=5;break}return e.next=5,["class",this.getAttribute("class")];case 5:if(e.t2=this._styles.isEmpty,e.t2){e.next=9;break}return e.next=9,["style",this.getAttribute("style")];case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttribute",value:function(e){if("class"==e)return this._classes.size>0?u(this._classes).join(" "):void 0;if("style"==e){var t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(e)}},{key:"hasAttribute",value:function(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}},{key:"isSimilar",value:function(e){if(!(e instanceof n))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;var t,i=k(this._attrs);try{for(i.s();!(t=i.n()).done;){var r=v(t.value,2),o=r[0],a=r[1];if(!e._attrs.has(o)||e._attrs.get(o)!==a)return!1}}catch(f){i.e(f)}finally{i.f()}var s,l=k(this._classes);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(!e._classes.has(c))return!1}}catch(f){l.e(f)}finally{l.f()}var u,d=k(this._styles.getStyleNames());try{for(d.s();!(u=d.n()).done;){var h=u.value;if(!e._styles.has(h)||e._styles.getAsString(h)!==this._styles.getAsString(h))return!1}}catch(f){d.e(f)}finally{d.f()}return!0}},{key:"hasClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];if(!this._classes.has(o))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(e){return this._styles.getAsString(e)}},{key:"getNormalizedStyle",value:function(e){return this._styles.getNormalized(e)}},{key:"getStyleNames",value:function(){return this._styles.getStyleNames()}},{key:"hasStyle",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=0,r=t;i<r.length;i++){var o=r[i];if(!this._styles.has(o))return!1}return!0}},{key:"findAncestor",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];for(var i=S(ci,t),r=this.parent;r;){if(i.match(r))return r;r=r.parent}return null}},{key:"getCustomProperty",value:function(e){return this._customProperties.get(e)}},{key:"getCustomProperties",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getIdentity",value:function(){var e=Array.from(this._classes).sort().join(","),t=this._styles.toString(),n=Array.from(this._attrs).map((function(e){return"".concat(e[0],'="').concat(e[1],'"')})).sort().join(" ");return this.name+(""==e?"":' class="'.concat(e,'"'))+(t?' style="'.concat(t,'"'):"")+(""==n?"":" "+n)}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=[];if(e){var n,i=k(this.getChildren());try{for(i.s();!(n=i.n()).done;){var r=n.value;t.push(r._clone(e))}}catch(a){i.e(a)}finally{i.f()}}var o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,i=0,r=function(e,t){return"string"==typeof t?[new ai(e,t)]:(Gn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new ai(e,t):t instanceof si?new ai(e,t.data):t})))}(this.document,t),o=k(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,a.document=this.document,this._children.splice(e,0,a),e++,i++}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_setAttribute",value:function(e,t){t=String(t),this._fireChange("attributes",this),"class"==e?ar(this._classes,t):"style"==e?this._styles.setTo(t):this._attrs.set(e,t)}},{key:"_removeAttribute",value:function(e){return this._fireChange("attributes",this),"class"==e?this._classes.size>0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}},{key:"_addClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.add(e)}))}},{key:"_removeClass",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._classes.delete(e)}))}},{key:"_setStyle",value:function(e,t){this._fireChange("attributes",this),this._styles.set(e,t)}},{key:"_removeStyle",value:function(e){var t=this;this._fireChange("attributes",this),(e=Array.isArray(e)?e:[e]).forEach((function(e){return t._styles.remove(e)}))}},{key:"_setCustomProperty",value:function(e,t){this._customProperties.set(e,t)}},{key:"_removeCustomProperty",value:function(e){return this._customProperties.delete(e)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}}]),n}(oi);function ar(e,t){var n=t.split(/\s+/);e.clear(),n.forEach((function(t){return e.add(t)}))}var sr=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=lr,a}return x(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}}]),n}(or);function lr(){var e=u(this.getChildren()),t=e[this.childCount-1];if(t&&t.is("element","br"))return this.childCount;var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(!r.is("uiElement"))return null}}catch(o){i.e(o)}finally{i.f()}return this.childCount}var cr=Qi((function(e,t){qe(t,xt(t),e)})),ur=Symbol("observableProperties"),dr=Symbol("boundObservables"),hr=Symbol("boundProperties"),fr={set:function(e,t){var n=this;if(ne(e))Object.keys(e).forEach((function(t){n.set(t,e[t])}),this);else{pr(this);var i=this[ur];if(e in this&&!i.has(e))throw new jn.b("observable-set-cannot-override: Cannot override an existing property.",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function(){return i.get(e)},set:function(t){var n=i.get(e),r=this.fire("set:"+e,e,t,n);void 0===r&&(r=t),n===r&&i.has(e)||(i.set(e,r),this.fire("change:"+e,e,r,n))}}),this[e]=t}},bind:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(!n.length||!kr(n))throw new jn.b("observable-bind-wrong-properties: All properties must be strings.",this);if(new Set(n).size!==n.length)throw new jn.b("observable-bind-duplicate-properties: Properties must be unique.",this);pr(this);var r=this[hr];n.forEach((function(t){if(r.has(t))throw new jn.b("observable-bind-rebind: Cannot bind the same property more than once.",e)}));var o=new Map;return n.forEach((function(e){var t={property:e,to:[]};r.set(e,t),o.set(e,t)})),{to:mr,toMany:gr,_observable:this,_bindProperties:n,_to:[],_bindings:o}},unbind:function(){var e=this;if(this[ur]){for(var t=this[hr],n=this[dr],i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];if(r.length){if(!kr(r))throw new jn.b("observable-unbind-wrong-properties: Properties must be strings.",this);r.forEach((function(i){var r,o,a,s,l=t.get(i);l&&(l.to.forEach((function(t){r=t[0],o=t[1],a=n.get(r),s=a[o],s.delete(l),s.size||delete a[o],Object.keys(a).length||(n.delete(r),e.stopListening(r,"change"))})),t.delete(i))}))}else n.forEach((function(t,n){e.stopListening(n,"change")})),n.clear(),t.clear()}},decorate:function(e){var t=this,n=this[e];if(!n)throw new jn.b("observablemixin-cannot-decorate-undefined: Cannot decorate an undefined method.",this,{object:this,methodName:e});this.on(e,(function(e,i){e.return=n.apply(t,i)})),this[e]=function(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.fire(e,n)}}};cr(fr,Fn);var vr=fr;function pr(e){e[ur]||(Object.defineProperty(e,ur,{value:new Map}),Object.defineProperty(e,dr,{value:new Map}),Object.defineProperty(e,hr,{value:new Map}))}function mr(){var e,t=this,n=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!t.length)throw new jn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);var i,r={to:[]};return"function"==typeof t[t.length-1]&&(r.callback=t.pop()),t.forEach((function(e){if("string"==typeof e)i.properties.push(e);else{if("object"!=R(e))throw new jn.b("observable-bind-to-parse-error: Invalid argument syntax in `to()`.",null);i={observable:e,properties:[]},r.to.push(i)}})),r}.apply(void 0,arguments),i=Array.from(this._bindings.keys()),r=i.length;if(!n.callback&&n.to.length>1)throw new jn.b("observable-bind-to-no-callback: Binding multiple observables only possible with callback.",this);if(r>1&&n.callback)throw new jn.b("observable-bind-to-extra-callback: Cannot bind multiple properties and use a callback in one binding.",this);n.to.forEach((function(e){if(e.properties.length&&e.properties.length!==r)throw new jn.b("observable-bind-to-properties-length: The number of properties must match.",t);e.properties.length||(e.properties=t._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(i[0]).callback=n.callback),e=this._observable,this._to.forEach((function(t){var n,i=e[dr];i.get(t.observable)||e.listenTo(t.observable,"change",(function(r,o){n=i.get(t.observable)[o],n&&n.forEach((function(t){br(e,t.property)}))}))})),function(e){var t;e._bindings.forEach((function(n,i){e._to.forEach((function(r){t=r.properties[n.callback?0:e._bindProperties.indexOf(i)],n.to.push([r.observable,t]),function(e,t,n,i){var r=e[dr],o=r.get(n),a=o||{};a[i]||(a[i]=new Set),a[i].add(t),o||r.set(n,a)}(e._observable,n,r.observable,t)}))}))}(this),this._bindProperties.forEach((function(e){br(t._observable,e)}))}function gr(e,t,n){if(this._bindings.size>1)throw new jn.b("observable-bind-to-many-not-one-binding: Cannot bind multiple properties with toMany().",this);this.to.apply(this,u(function(e,t){var n=e.map((function(e){return[e,t]}));return Array.prototype.concat.apply([],n)}(e,t)).concat([n]))}function kr(e){return e.every((function(e){return"string"==typeof e}))}function br(e,t){var n,i=e[hr].get(t);i.callback?n=i.callback.apply(e,i.to.map((function(e){return e[0][e[1]]}))):(n=i.to[0],n=n[0][n[1]]),Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}var yr=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(e),a.bind("isFocused").to(e,"isFocused",(function(t){return t&&e.selection.editableElement==P(a)})),a.listenTo(e.selection,"change",(function(){a.isFocused=e.isFocused&&e.selection.editableElement==P(a)})),a}return x(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"destroy",value:function(){this.stopListening()}}]),n}(sr);Kn(yr,vr);var wr=Symbol("rootName"),_r=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e,i),r.rootName="main",r}return x(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e):"rootElement"===e||"view:rootElement"===e||"editableElement"===e||"view:editableElement"===e||"containerElement"===e||"view:containerElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"rootName",get:function(){return this.getCustomProperty(wr)},set:function(e){this._setCustomProperty(wr,e)}},{key:"_name",set:function(e){this.name=e}}]),n}(yr),xr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(w(this,e),!t.boundaries&&!t.startPosition)throw new jn.b("view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new jn.b("view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=Cr._createAt(t.startPosition):this.position=Cr._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}return x(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,i;do{var r;i=this.position,r=this.next(),t=r.done,n=r.value}while(!t&&e(n));t||(this.position=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e,t=this.position.clone(),n=this.position,i=t.parent;if(null===i.parent&&t.offset===i.childCount)return{done:!0};if(i===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};if(i instanceof ai){if(t.isAtEnd)return this.position=Cr._createAfter(i),this._next();e=i.data[t.offset]}else e=i.getChild(t.offset);if(e instanceof or)return this.shallow?t.offset++:t=new Cr(e,0),this.position=t,this._formatReturnValue("elementStart",e,n,t,1);if(e instanceof ai){if(this.singleCharacters)return t=new Cr(e,0),this.position=t,this._next();var r,o=e.data.length;return e==this._boundaryEndParent?(o=this.boundaries.end.offset,r=new si(e,0,o),t=Cr._createAfter(r)):(r=new si(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",r,n,t,o)}if("string"==typeof e){var a;a=this.singleCharacters?1:(i===this._boundaryEndParent?this.boundaries.end.offset:i.data.length)-t.offset;var s=new si(i,t.offset,a);return t.offset+=a,this.position=t,this._formatReturnValue("text",s,n,t,a)}return t=Cr._createAfter(i),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",i,n,t)}},{key:"_previous",value:function(){var e,t=this.position.clone(),n=this.position,i=t.parent;if(null===i.parent&&0===t.offset)return{done:!0};if(i==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};if(i instanceof ai){if(t.isAtStart)return this.position=Cr._createBefore(i),this._previous();e=i.data[t.offset-1]}else e=i.getChild(t.offset-1);if(e instanceof or)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new Cr(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof ai){if(this.singleCharacters)return t=new Cr(e,e.data.length),this.position=t,this._previous();var r,o=e.data.length;if(e==this._boundaryStartParent){var a=this.boundaries.start.offset;r=new si(e,a,e.data.length-a),o=r.data.length,t=Cr._createBefore(r)}else r=new si(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",r,n,t,o)}if("string"==typeof e){var s;if(this.singleCharacters)s=1;else{var l=i===this._boundaryStartParent?this.boundaries.start.offset:0;s=t.offset-l}t.offset-=s;var c=new si(i,t.offset,s);return this.position=t,this._formatReturnValue("text",c,n,t,s)}return t=Cr._createBefore(i),this.position=t,this._formatReturnValue("elementStart",i,n,t,1)}},{key:"_formatReturnValue",value:function(e,t,n,i,r){return t instanceof si&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=Cr._createAfter(t.textNode):(i=Cr._createAfter(t.textNode),this.position=i)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=Cr._createBefore(t.textNode):(i=Cr._createBefore(t.textNode),this.position=i))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:r}}}}]),e}(),Cr=function(){function e(t,n){w(this,e),this.parent=t,this.offset=n}return x(e,[{key:"getShiftedBy",value:function(t){var n=e._createAt(this),i=n.offset+t;return n.offset=i<0?0:i,n}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new xr(t);return n.skip(e),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),i=0;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}},{key:"is",value:function(e){return"position"===e||"view:position"===e}},{key:"isEqual",value:function(e){return this.parent==e.parent&&this.offset==e.offset}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"compareWith",value:function(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";var t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);var i=ii(t,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return t[i]<n[i]?"before":"after"}}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new xr(e)}},{key:"clone",value:function(){return new e(this.parent,this.offset)}},{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var e=this.parent;!(e instanceof yr);){if(!e.parent)return null;e=e.parent}return e}}],[{key:"_createAt",value:function(t,n){if(t instanceof e)return new this(t.parent,t.offset);var i=t;if("end"==n)n=i.is("$text")?i.data.length:i.childCount;else{if("before"==n)return this._createBefore(i);if("after"==n)return this._createAfter(i);if(0!==n&&!n)throw new jn.b("view-createPositionAt-offset-required: View#createPositionAt() requires the offset when the first parameter is a view item.",i)}return new e(i,n)}},{key:"_createAfter",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new jn.b("view-position-after-root: You can not make position after root.",t,{root:t});return new e(t.parent,t.index+1)}},{key:"_createBefore",value:function(t){if(t.is("$textProxy"))return new e(t.textNode,t.offsetInText);if(!t.parent)throw new jn.b("view-position-before-root: You can not make position before root.",t,{root:t});return new e(t.parent,t.index)}}]),e}(),Ar=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;w(this,e),this.start=t.clone(),this.end=n?n.clone():t.clone()}return x(e,[{key:Symbol.iterator,value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(new xr({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(Tr,{direction:"backward"}),n=this.end.getLastMatchingPosition(Tr);return t.parent.is("$text")&&t.isAtStart&&(t=Cr._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=Cr._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(Tr);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(Tr,{direction:"backward"}),i=t.nodeAfter,r=n.nodeBefore;return i&&i.is("$text")&&(t=new Cr(i,0)),r&&r.is("$text")&&(n=new Cr(r,r.data.length)),new e(t,n)}},{key:"isEqual",value:function(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new xr(e)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}},{key:"clone",value:function(){return new e(this.start,this.end)}},{key:"getItems",value:a.mark((function e(){var t,n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=s.length>0&&void 0!==s[0]?s[0]:{},t.boundaries=this,t.ignoreElementEnd=!0,n=new xr(t),i=k(n),e.prev=4,i.s();case 6:if((r=i.n()).done){e.next=12;break}return o=r.value,e.next=10,o.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](4),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:a.mark((function e(){var t,n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},t.boundaries=this,n=new xr(t),e.next=5,n.position;case 5:i=k(n),e.prev=6,i.s();case 8:if((r=i.n()).done){e.next=14;break}return o=r.value,e.next=12,o.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](6),i.e(e.t0);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"is",value:function(e){return"range"===e||"view:range"===e}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromParentsAndOffsets",value:function(e,t,n,i){return new this(new Cr(e,t),new Cr(n,i))}},{key:"_createFromPositionAndShift",value:function(e,t){var n=e,i=e.getShiftedBy(t);return t>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}},{key:"_createOn",value:function(e){var t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(Cr._createBefore(e),t)}}]),e}();function Tr(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function Pr(e){var t,n=0,i=k(e);try{for(i.s();!(t=i.n()).done;){t.value;n++}}catch(r){i.e(r)}finally{i.f()}return n}var Er=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;w(this,e),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(t,n,i)}return x(e,[{key:"getRanges",value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=k(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.clone();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=k(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.start.isBefore(t.start)||(t=i)}}catch(r){n.e(r)}finally{n.f()}return t?t.clone():null}},{key:"getLastRange",value:function(){var e,t=null,n=k(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.end.isAfter(t.end)||(t=i)}}catch(r){n.e(r)}finally{n.f()}return t?t.clone():null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"isEqual",value:function(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=k(this._ranges);try{for(n.s();!(t=n.n()).done;){var i,r=t.value,o=!1,a=k(e._ranges);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(r.isEqual(s)){o=!0;break}}}catch(l){a.e(l)}finally{a.f()}if(!o)return!1}}catch(l){n.e(l)}finally{n.f()}return!0}},{key:"isSimilar",value:function(e){if(this.isBackward!=e.isBackward)return!1;var t=Pr(this.getRanges());if(t!=Pr(e.getRanges()))return!1;if(0==t)return!0;var n,i=k(this.getRanges());try{for(i.s();!(n=i.n()).done;){var r=n.value;r=r.getTrimmed();var o,a=!1,s=k(e.getRanges());try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l=l.getTrimmed(),r.start.isEqual(l.start)&&r.end.isEqual(l.end)){a=!0;break}}}catch(c){s.e(c)}finally{s.f()}if(!a)return!1}}catch(c){i.e(c)}finally{i.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(t,n,i){if(null===t)this._setRanges([]),this._setFakeOptions(n);else if(t instanceof e||t instanceof Sr)this._setRanges(t.getRanges(),t.isBackward),this._setFakeOptions({fake:t.isFake,label:t.fakeSelectionLabel});else if(t instanceof Ar)this._setRanges([t],n&&n.backward),this._setFakeOptions(n);else if(t instanceof Cr)this._setRanges([new Ar(t)]),this._setFakeOptions(n);else if(t instanceof oi){var r,o=!!i&&!!i.backward;if(void 0===n)throw new jn.b("view-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",this);r="in"==n?Ar._createIn(t):"on"==n?Ar._createOn(t):new Ar(Cr._createAt(t,n)),this._setRanges([r],o),this._setFakeOptions(i)}else{if(!Gn(t))throw new jn.b("view-selection-setTo-not-selectable: Cannot set selection to given place.",this);this._setRanges(t,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new jn.b("view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",this);var n=Cr._createAt(e,t);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new Ar(n,i),!0):this._addRange(new Ar(i,n)),this.fire("change")}}},{key:"is",value:function(e){return"selection"===e||"view:selection"===e}},{key:"_setRanges",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._addRange(r)}}catch(o){i.e(o)}finally{i.f()}this._lastRangeBackward=!!t}},{key:"_setFakeOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}},{key:"_addRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof Ar))throw new jn.b("view-selection-add-range-not-range: Selection range set to an object that is not an instance of view.Range",this);this._pushRange(e),this._lastRangeBackward=!!t}},{key:"_pushRange",value:function(e){var t,n=k(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(e.isIntersecting(i))throw new jn.b("view-selection-range-intersects: Trying to add a range that intersects with another range from selection.",this,{addedRange:e,intersectingRange:i})}}catch(r){n.e(r)}finally{n.f()}this._ranges.push(new Ar(e.start,e.end))}},{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}}]),e}();Kn(Er,Fn);var Sr=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;w(this,e),this._selection=new Er,this._selection.delegate("change").to(this),this._selection.setTo(t,n,i)}return x(e,[{key:"getRanges",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(e){return this._selection.isEqual(e)}},{key:"isSimilar",value:function(e){return this._selection.isSimilar(e)}},{key:"is",value:function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}}]),e}();Kn(Sr,Fn);var Or=function(){function e(t){w(this,e),this.selection=new Sr,this.roots=new Jn({idProperty:"rootName"}),this.stylesProcessor=t,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isComposing",!1),this._postFixers=new Set}return x(e,[{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"destroy",value:function(){this.roots.map((function(e){return e.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,i=k(this._postFixers);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(t=r(e),t)break}}catch(o){i.e(o)}finally{i.f()}}while(t)}}]),e}();Kn(Or,vr);var Mr=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=Ir,a._priority=10,a._id=null,a._clonesGroup=null,a}return x(n,[{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new jn.b("attribute-element-get-elements-with-same-id-no-id: Cannot get elements with the same id for an attribute element without id.",this);return new Set(this._clonesGroup)}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"isSimilar",value:function(e){return null!==this.id||null!==e.id?this.id===e.id:l(N(n.prototype),"isSimilar",this).call(this,e)&&this.priority==e.priority}},{key:"_clone",value:function(e){var t=l(N(n.prototype),"_clone",this).call(this,e);return t._priority=this._priority,t._id=this._id,t}},{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}}]),n}(or);function Ir(){if(Nr(this))return null;for(var e=this.parent;e&&e.is("attributeElement");){if(Nr(e)>1)return null;e=e.parent}return!e||Nr(e)>1?null:this.childCount}function Nr(e){return Array.from(e.getChildren()).filter((function(e){return!e.is("uiElement")})).length}Mr.DEFAULT_PRIORITY=10;var Rr=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=Dr,a}return x(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof oi||Array.from(t).length>0))throw new jn.b("view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.",[this,t])}}]),n}(or);function Dr(){return null}var Lr=navigator.userAgent.toLowerCase(),zr={isMac:function(e){return e.indexOf("macintosh")>-1}(Lr),isGecko:function(e){return!!e.match(/gecko\/\d+/)}(Lr),isSafari:function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(Lr),isAndroid:function(e){return e.indexOf("android")>-1}(Lr),features:{isRegExpUnicodePropertySupported:function(){var e=!1;try{e=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}()}},jr={"⌘":"ctrl","⇧":"shift","⌥":"alt"},Vr={ctrl:"⌘",shift:"⇧",alt:"⌥"},Br=function(){for(var e={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448},t=65;t<=90;t++){var n=String.fromCharCode(t);e[n.toLowerCase()]=t}for(var i=48;i<=57;i++)e[i-48]=i;for(var r=112;r<=123;r++)e["f"+(r-111)]=r;return e}();function Fr(e){var t;if("string"==typeof e){if(t=Br[e.toLowerCase()],!t)throw new jn.b("keyboard-unknown-key: Unknown key name.",null,{key:e})}else t=e.keyCode+(e.altKey?Br.alt:0)+(e.ctrlKey?Br.ctrl:0)+(e.shiftKey?Br.shift:0);return t}function Ur(e){return"string"==typeof e&&(e=Yr(e)),e.map((function(e){return"string"==typeof e?Fr(e):e})).reduce((function(e,t){return t+e}),0)}function Hr(e){return zr.isMac?Yr(e).map((function(e){return Vr[e.toLowerCase()]||e})).reduce((function(e,t){return e.slice(-1)in jr?e+t:e+"+"+t})):e}function $r(e){return e==Br.arrowright||e==Br.arrowleft||e==Br.arrowup||e==Br.arrowdown}function Wr(e,t){var n="ltr"===t;switch(e){case Br.arrowleft:return n?"left":"right";case Br.arrowright:return n?"right":"left";case Br.arrowup:return"up";case Br.arrowdown:return"down"}}function qr(e,t){var n=Wr(e,t);return"down"===n||"right"===n}function Yr(e){return e.split(/\s*\+\s*/)}var Gr=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=Jr,a}return x(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof oi||Array.from(t).length>0))throw new jn.b("view-uielement-cannot-add: Cannot add child nodes to UIElement instance.",this)}},{key:"render",value:function(e){return this.toDomElement(e)}},{key:"toDomElement",value:function(e){var t,n=e.createElement(this.name),i=k(this.getAttributeKeys());try{for(i.s();!(t=i.n()).done;){var r=t.value;n.setAttribute(r,this.getAttribute(r))}}catch(o){i.e(o)}finally{i.f()}return n}}]),n}(or);function Kr(e){e.document.on("keydown",(function(t,n){return function(e,t,n){if(t.keyCode==Br.arrowright){var i=t.domTarget.ownerDocument.defaultView.getSelection(),r=1==i.rangeCount&&i.getRangeAt(0).collapsed;if(r||t.shiftKey){var o=i.focusNode,a=i.focusOffset,s=n.domPositionToView(o,a);if(null===s)return;var l=!1,c=s.getLastMatchingPosition((function(e){return e.item.is("uiElement")&&(l=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))}));if(l){var u=n.viewPositionToDom(c);r?i.collapse(u.parent,u.offset):i.extend(u.parent,u.offset)}}}}(0,n,e.domConverter)}))}function Jr(){return null}var Qr=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,e,i,r,o),a.getFillerOffset=Zr,a}return x(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e}},{key:"_insertChild",value:function(e,t){if(t&&(t instanceof oi||Array.from(t).length>0))throw new jn.b("view-rawelement-cannot-add: Cannot add child nodes to a RawElement instance.",[this,t])}}]),n}(or);function Zr(){return null}var Xr=function(){function e(t,n){w(this,e),this.document=t,this._children=[],n&&this._insertChild(0,n)}return x(e,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"is",value:function(e){return"documentFragment"===e||"view:documentFragment"===e}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,i=0,r=function(e,t){return"string"==typeof t?[new ai(e,t)]:(Gn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new ai(e,t):t instanceof si?new ai(e,t.data):t})))}(this.document,t),o=k(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,this._children.splice(e,0,a),e++,i++}}catch(s){o.e(s)}finally{o.f()}return i}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n<e+t;n++)this._children[n].parent=null;return this._children.splice(e,t)}},{key:"_fireChange",value:function(e,t){this.fire("change:"+e,t)}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}]),e}();Kn(Xr,Fn);var eo=function(){function e(t){w(this,e),this.document=t,this._cloneGroups=new Map}return x(e,[{key:"setSelection",value:function(e,t,n){this.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this.document.selection._setFocus(e,t)}},{key:"createText",value:function(e){return new ai(this.document,e)}},{key:"createAttributeElement",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new Mr(this.document,e,t);return n.priority&&(i._priority=n.priority),n.id&&(i._id=n.id),i}},{key:"createContainerElement",value:function(e,t){return new sr(this.document,e,t)}},{key:"createEditableElement",value:function(e,t){var n=new yr(this.document,e,t);return n._document=this.document,n}},{key:"createEmptyElement",value:function(e,t){return new Rr(this.document,e,t)}},{key:"createUIElement",value:function(e,t,n){var i=new Gr(this.document,e,t);return n&&(i.render=n),i}},{key:"createRawElement",value:function(e,t,n){var i=new Qr(this.document,e,t);return i.render=n||function(){},i}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){B(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"breakAttributes",value:function(e){return e instanceof Cr?this._breakAttributes(e):this._breakAttributesRange(e)}},{key:"breakContainer",value:function(e){var t=e.parent;if(!t.is("containerElement"))throw new jn.b("view-writer-break-non-container-element: Trying to break an element which is not a container element.",this.document);if(!t.parent)throw new jn.b("view-writer-break-root: Trying to break root element.",this.document);if(e.isAtStart)return Cr._createBefore(t);if(!e.isAtEnd){var n=t._clone(!1);this.insert(Cr._createAfter(t),n);var i=new Ar(e,Cr._createAt(t,"end")),r=new Cr(n,0);this.move(i,r)}return Cr._createAfter(t)}},{key:"mergeAttributes",value:function(e){var t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){var i=n.parent,r=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new Cr(i,r))}var o=n.getChild(t-1),a=n.getChild(t);if(!o||!a)return e;if(o.is("$text")&&a.is("$text"))return oo(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new Cr(o,s))}return e}},{key:"mergeContainers",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new jn.b("view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.",this.document);var i=t.getChild(t.childCount-1),r=i instanceof ai?Cr._createAt(i,"end"):Cr._createAt(t,"end");return this.move(Ar._createIn(n),Cr._createAt(t,"end")),this.remove(Ar._createOn(n)),r}},{key:"insert",value:function(e,t){(function e(t,n){var i,r=k(t);try{var o=function(){var t=i.value;if(!ao.some((function(e){return t instanceof e})))throw new jn.b("view-writer-insert-invalid-node-type: One of the nodes to be inserted is of invalid type.",n);t.is("$text")||e(t.getChildren(),n)};for(r.s();!(i=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}})(t=Gn(t)?u(t):[t],this.document);var n=to(e);if(!n)throw new jn.b("view-writer-invalid-position-container: Position's parent container cannot be found.",this.document);var i,r=this._breakAttributes(e,!0),o=n._insertChild(r.offset,t),a=k(t);try{for(a.s();!(i=a.n()).done;){var s=i.value;this._addToClonedElementsGroup(s)}}catch(h){a.e(h)}finally{a.f()}var l=r.getShiftedBy(o),c=this.mergeAttributes(r);if(0===o)return new Ar(c,c);c.isEqual(r)||l.offset--;var d=this.mergeAttributes(l);return new Ar(c,d)}},{key:"remove",value:function(e){var t=e instanceof Ar?e:Ar._createOn(e);if(lo(t,this.document),t.isCollapsed)return new Xr(this.document);var n,i=this._breakAttributesRange(t,!0),r=i.start,o=i.end,a=r.parent,s=o.offset-r.offset,l=a._removeChildren(r.offset,s),c=k(l);try{for(c.s();!(n=c.n()).done;){var u=n.value;this._removeFromClonedElementsGroup(u)}}catch(h){c.e(h)}finally{c.f()}var d=this.mergeAttributes(r);return t.start=d,t.end=d.clone(),new Xr(this.document,l)}},{key:"clear",value:function(e,t){lo(e,this.document);var n,i=e.getWalker({direction:"backward",ignoreElementEnd:!0}),r=k(i);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=o.item,s=void 0;if(a.is("element")&&t.isSimilar(a))s=Ar._createOn(a);else if(!o.nextPosition.isAfter(e.start)&&a.is("$textProxy")){var l=a.getAncestors().find((function(e){return e.is("element")&&t.isSimilar(e)}));l&&(s=Ar._createIn(l))}s&&(s.end.isAfter(e.end)&&(s.end=e.end),s.start.isBefore(e.start)&&(s.start=e.start),this.remove(s))}}catch(c){r.e(c)}finally{r.f()}}},{key:"move",value:function(e,t){var n;if(t.isAfter(e.end)){var i=(t=this._breakAttributes(t,!0)).parent,r=i.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=i.childCount-r}else n=this.remove(e);return this.insert(t,n)}},{key:"wrap",value:function(e,t){if(!(t instanceof Mr))throw new jn.b("view-writer-wrap-invalid-attribute: DowncastWriter#wrap() must be called with an attribute element.",this.document);if(lo(e,this.document),e.isCollapsed){var n=e.start;n.parent.is("element")&&(r=n.parent,!Array.from(r.getChildren()).some((function(e){return!e.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))),n=this._wrapPosition(n,t);var i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new Ar(n)}return this._wrapRange(e,t);var r}},{key:"unwrap",value:function(e,t){if(!(t instanceof Mr))throw new jn.b("view-writer-unwrap-invalid-attribute: DowncastWriter#unwrap() must be called with an attribute element.",this.document);if(lo(e,this.document),e.isCollapsed)return e;var n=this._breakAttributesRange(e,!0),i=n.start,r=n.end,o=i.parent,a=this._unwrapChildren(o,i.offset,r.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var l=this.mergeAttributes(a.end);return new Ar(s,l)}},{key:"rename",value:function(e,t){var n=new sr(this.document,e,t.getAttributes());return this.insert(Cr._createAfter(t),n),this.move(Ar._createIn(t),Cr._createAt(n,0)),this.remove(Ar._createOn(t)),n}},{key:"clearClonedElementsGroup",value:function(e){this._cloneGroups.delete(e)}},{key:"createPositionAt",value:function(e,t){return Cr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Cr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Cr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Ar(e,t)}},{key:"createRangeOn",value:function(e){return Ar._createOn(e)}},{key:"createRangeIn",value:function(e){return Ar._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Er(e,t,n)}},{key:"_wrapChildren",value:function(e,t,n,i){for(var r=t,o=[];r<n;){var a=e.getChild(r),s=a.is("$text"),l=a.is("attributeElement"),c=a.is("emptyElement"),u=a.is("uiElement"),d=a.is("rawElement");if(l&&this._wrapAttributeElement(i,a))o.push(new Cr(e,r));else if(s||c||u||d||l&&no(i,a)){var h=i._clone();a._remove(),h._appendChild(a),e._insertChild(r,h),this._addToClonedElementsGroup(h),o.push(new Cr(e,r))}else l&&this._wrapChildren(a,0,a.childCount,i);r++}for(var f=0,v=0,p=o;v<p.length;v++){var m=p[v];(m.offset-=f,m.offset!=t)&&(this.mergeAttributes(m).isEqual(m)||(f++,n--))}return Ar._createFromParentsAndOffsets(e,t,e,n)}},{key:"_unwrapChildren",value:function(e,t,n,i){for(var r=t,o=[];r<n;){var a=e.getChild(r);if(a.is("attributeElement"))if(a.isSimilar(i)){var s=a.getChildren(),l=a.childCount;a._remove(),e._insertChild(r,s),this._removeFromClonedElementsGroup(a),o.push(new Cr(e,r),new Cr(e,r+l)),r+=l,n+=l-1}else this._unwrapAttributeElement(i,a)?(o.push(new Cr(e,r),new Cr(e,r+1)),r++):(this._unwrapChildren(a,0,a.childCount,i),r++);else r++}for(var c=0,u=0,d=o;u<d.length;u++){var h=d[u];(h.offset-=c,h.offset!=t&&h.offset!=n)&&(this.mergeAttributes(h).isEqual(h)||(c++,n--))}return Ar._createFromParentsAndOffsets(e,t,e,n)}},{key:"_wrapRange",value:function(e,t){var n=this._breakAttributesRange(e,!0),i=n.start,r=n.end,o=i.parent,a=this._wrapChildren(o,i.offset,r.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var l=this.mergeAttributes(a.end);return new Ar(s,l)}},{key:"_wrapPosition",value:function(e,t){if(t.isSimilar(e.parent))return io(e.clone());e.parent.is("$text")&&(e=ro(e));var n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},e.parent._insertChild(e.offset,n);var i=new Ar(e,e.getShiftedBy(1));this.wrap(i,t);var r=new Cr(n.parent,n.index);n._remove();var o=r.nodeBefore,a=r.nodeAfter;return o instanceof ai&&a instanceof ai?oo(o,a):io(r)}},{key:"_wrapAttributeElement",value:function(e,t){if(!co(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,i=k(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var r=n.value;if("class"!==r&&"style"!==r&&t.hasAttribute(r)&&t.getAttribute(r)!==e.getAttribute(r))return!1}}catch(g){i.e(g)}finally{i.f()}var o,a=k(e.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(t.hasStyle(s)&&t.getStyle(s)!==e.getStyle(s))return!1}}catch(g){a.e(g)}finally{a.f()}var l,c=k(e.getAttributeKeys());try{for(c.s();!(l=c.n()).done;){var u=l.value;"class"!==u&&"style"!==u&&(t.hasAttribute(u)||this.setAttribute(u,e.getAttribute(u),t))}}catch(g){c.e(g)}finally{c.f()}var d,h=k(e.getStyleNames());try{for(h.s();!(d=h.n()).done;){var f=d.value;t.hasStyle(f)||this.setStyle(f,e.getStyle(f),t)}}catch(g){h.e(g)}finally{h.f()}var v,p=k(e.getClassNames());try{for(p.s();!(v=p.n()).done;){var m=v.value;t.hasClass(m)||this.addClass(m,t)}}catch(g){p.e(g)}finally{p.f()}return!0}},{key:"_unwrapAttributeElement",value:function(e,t){if(!co(e,t))return!1;if(e.name!==t.name||e.priority!==t.priority)return!1;var n,i=k(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var r=n.value;if("class"!==r&&"style"!==r&&(!t.hasAttribute(r)||t.getAttribute(r)!==e.getAttribute(r)))return!1}}catch(h){i.e(h)}finally{i.f()}if(!t.hasClass.apply(t,u(e.getClassNames())))return!1;var o,a=k(e.getStyleNames());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(!t.hasStyle(s)||t.getStyle(s)!==e.getStyle(s))return!1}}catch(h){a.e(h)}finally{a.f()}var l,c=k(e.getAttributeKeys());try{for(c.s();!(l=c.n()).done;){var d=l.value;"class"!==d&&"style"!==d&&this.removeAttribute(d,t)}}catch(h){c.e(h)}finally{c.f()}return this.removeClass(Array.from(e.getClassNames()),t),this.removeStyle(Array.from(e.getStyleNames()),t),!0}},{key:"_breakAttributesRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.start,i=e.end;if(lo(e,this.document),e.isCollapsed){var r=this._breakAttributes(e.start,t);return new Ar(r,r)}var o=this._breakAttributes(i,t),a=o.parent.childCount,s=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-a,new Ar(s,o)}},{key:"_breakAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offset,i=e.parent;if(e.parent.is("emptyElement"))throw new jn.b("view-writer-cannot-break-empty-element: Cannot break an EmptyElement instance.",this.document);if(e.parent.is("uiElement"))throw new jn.b("view-writer-cannot-break-ui-element: Cannot break a UIElement instance.",this.document);if(e.parent.is("rawElement"))throw new jn.b("view-writer-cannot-break-raw-element: Cannot break a RawElement instance.",this.document);if(!t&&i.is("$text")&&so(i.parent))return e.clone();if(so(i))return e.clone();if(i.is("$text"))return this._breakAttributes(ro(e),t);if(n==i.childCount){var r=new Cr(i.parent,i.index+1);return this._breakAttributes(r,t)}if(0===n){var o=new Cr(i.parent,i.index);return this._breakAttributes(o,t)}var a=i.index+1,s=i._clone();i.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var l=i.childCount-n,c=i._removeChildren(n,l);s._appendChild(c);var u=new Cr(i.parent,a);return this._breakAttributes(u,t)}},{key:"_addToClonedElementsGroup",value:function(e){if(e.root.is("rootElement")){if(e.is("element")){var t,n=k(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._addToClonedElementsGroup(i)}}catch(a){n.e(a)}finally{n.f()}}var r=e.id;if(r){var o=this._cloneGroups.get(r);o||(o=new Set,this._cloneGroups.set(r,o)),o.add(e),e._clonesGroup=o}}}},{key:"_removeFromClonedElementsGroup",value:function(e){if(e.is("element")){var t,n=k(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._removeFromClonedElementsGroup(i)}}catch(a){n.e(a)}finally{n.f()}}var r=e.id;if(r){var o=this._cloneGroups.get(r);o&&o.delete(e)}}}]),e}();function to(e){for(var t=e.parent;!so(t);){if(!t)return;t=t.parent}return t}function no(e,t){return e.priority<t.priority||!(e.priority>t.priority)&&e.getIdentity()<t.getIdentity()}function io(e){var t=e.nodeBefore;if(t&&t.is("$text"))return new Cr(t,t.data.length);var n=e.nodeAfter;return n&&n.is("$text")?new Cr(n,0):e}function ro(e){if(e.offset==e.parent.data.length)return new Cr(e.parent.parent,e.parent.index+1);if(0===e.offset)return new Cr(e.parent.parent,e.parent.index);var t=e.parent.data.slice(e.offset);return e.parent._data=e.parent.data.slice(0,e.offset),e.parent.parent._insertChild(e.parent.index+1,new ai(e.root.document,t)),new Cr(e.parent.parent,e.parent.index+1)}function oo(e,t){var n=e.data.length;return e._data+=t.data,t._remove(),new Cr(e,n)}var ao=[ai,Mr,sr,Rr,Qr,Gr];function so(e){return e&&(e.is("containerElement")||e.is("documentFragment"))}function lo(e,t){var n=to(e.start),i=to(e.end);if(!n||!i||n!==i)throw new jn.b("view-writer-invalid-range-container: The container of the given range is invalid.",t)}function co(e,t){return null===e.id&&null===t.id}function uo(e){return"[object Text]"==Object.prototype.toString.call(e)}var ho=function(e){return e.createTextNode(" ")},fo=function(e){var t=e.createElement("br");return t.dataset.ckeFiller=!0,t},vo=function(){for(var e="",t=0;t<7;t++)e+="​";return e}();function po(e){return uo(e)&&e.data.substr(0,7)===vo}function mo(e){return 7==e.data.length&&po(e)}function go(e){return po(e)?e.data.slice(7):e.data}function ko(e,t){if(t.keyCode==Br.arrowleft){var n=t.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var i=n.getRangeAt(0).startContainer,r=n.getRangeAt(0).startOffset;po(i)&&r<=7&&n.collapse(i,0)}}}function bo(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t},Array.isArray(e)||(e=Array.prototype.slice.call(e)),Array.isArray(t)||(t=Array.prototype.slice.call(t));var r=function(e,t,n){var i=yo(e,t,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var r=wo(e,i),o=wo(t,i),a=yo(r,o,n),s=e.length-a,l=t.length-a;return{firstIndex:i,lastIndexOld:s,lastIndexNew:l}}(e,t,n);return i?function(e,t){var n=e.firstIndex,i=e.lastIndexOld,r=e.lastIndexNew;if(-1===n)return Array(t).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),r-n>0&&(o=o.concat(Array(r-n).fill("insert"))),i-n>0&&(o=o.concat(Array(i-n).fill("delete"))),r<t&&(o=o.concat(Array(t-r).fill("equal"))),o}(r,t.length):function(e,t){var n=[],i=t.firstIndex,r=t.lastIndexOld,o=t.lastIndexNew;return o-i>0&&n.push({index:i,type:"insert",values:e.slice(i,o)}),r-i>0&&n.push({index:i+(o-i),type:"delete",howMany:r-i}),n}(t,r)}function yo(e,t,n){for(var i=0;i<Math.max(e.length,t.length);i++)if(void 0===e[i]||void 0===t[i]||!n(e[i],t[i]))return i;return-1}function wo(e,t){return e.slice(t).reverse()}function _o(e,t,n){n=n||function(e,t){return e===t};var i,r,o=e.length,a=t.length;if(o>200||a>200||o+a>300)return _o.fastDiff(e,t,n,!0);if(a<o){var s=e;e=t,t=s,i="delete",r="insert"}else i="insert",r="delete";var l=e.length,c=t.length,u=c-l,d={},h={};function f(o){var a=(void 0!==h[o-1]?h[o-1]:-1)+1,s=void 0!==h[o+1]?h[o+1]:-1,u=a>s?-1:1;d[o+u]&&(d[o]=d[o+u].slice(0)),d[o]||(d[o]=[]),d[o].push(a>s?i:r);for(var f=Math.max(a,s),v=f-o;v<l&&f<c&&n(e[v],t[f]);)v++,f++,d[o].push("equal");return f}var v,p=0;do{for(v=-p;v<u;v++)h[v]=f(v);for(v=u+p;v>u;v--)h[v]=f(v);h[u]=f(u),p++}while(h[u]!==c);return d[u].slice(1)}function xo(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function Co(e){var t=e.parentNode;t&&t.removeChild(e)}function Ao(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}_o.fastDiff=bo;var To=function(){function e(t,n){w(this,e),this.domDocuments=new Set,this.domConverter=t,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.isFocused=!1,this._inlineFiller=null,this._fakeSelectionContainer=null}return x(e,[{key:"markToSync",value:function(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new jn.b("view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.",this);this.markedChildren.add(t)}}}},{key:"render",value:function(){var e,t,n=k(this.markedChildren);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._updateChildrenMappings(i)}}catch(p){n.e(p)}finally{n.f()}this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?e=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(e=this.selection.getFirstPosition(),this.markedChildren.add(e.parent));var r,o=k(this.markedAttributes);try{for(o.s();!(r=o.n()).done;){var a=r.value;this._updateAttrs(a)}}catch(p){o.e(p)}finally{o.f()}var s,l=k(this.markedChildren);try{for(l.s();!(s=l.n()).done;){var c=s.value;this._updateChildren(c,{inlineFillerPosition:e})}}catch(p){l.e(p)}finally{l.f()}var u,d=k(this.markedTexts);try{for(d.s();!(u=d.n()).done;){var h=u.value;!this.markedChildren.has(h.parent)&&this.domConverter.mapViewToDom(h.parent)&&this._updateText(h,{inlineFillerPosition:e})}}catch(p){d.e(p)}finally{d.f()}if(e){var f=this.domConverter.viewPositionToDom(e),v=f.parent.ownerDocument;po(f.parent)?this._inlineFiller=f.parent:this._inlineFiller=Po(v,f.parent,f.offset)}else this._inlineFiller=null;this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n=this.domConverter.mapViewToDom(e).childNodes,i=Array.from(this.domConverter.viewChildrenToDom(e,t.ownerDocument,{withChildren:!1})),r=this._diffNodeLists(n,i),o=this._findReplaceActions(r,n,i);if(-1!==o.indexOf("replace")){var a,s={equal:0,insert:0,delete:0},l=k(o);try{for(l.s();!(a=l.n()).done;){var c=a.value;if("replace"===c){var u=s.equal+s.insert,d=s.equal+s.delete,h=e.getChild(u);!h||h.is("uiElement")||h.is("rawElement")||this._updateElementMappings(h,n[d]),Co(i[u]),s.equal++}else s[c]++}}catch(f){l.e(f)}finally{l.f()}}}}},{key:"_updateElementMappings",value:function(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}},{key:"_getInlineFillerPosition",value:function(){var e=this.selection.getFirstPosition();return e.parent.is("$text")?Cr._createBefore(this.selection.getFirstPosition().parent):e}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&uo(t.parent)&&po(t.parent))}},{key:"_removeInlineFiller",value:function(){var e=this._inlineFiller;if(!po(e))throw new jn.b("view-renderer-filler-was-lost: The inline filler node was lost.",this);mo(e)?e.parentNode.removeChild(e):e.data=e.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;var t=e.findAncestor((function(e){return e.hasAttribute("contenteditable")}));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(n===t.getFillerOffset())return!1;var i=e.nodeBefore,r=e.nodeAfter;return!(i instanceof ai||r instanceof ai)}},{key:"_updateText",value:function(e,t){var n=this.domConverter.findCorrespondingDomText(e),i=this.domConverter.viewToDom(e,n.ownerDocument),r=n.data,o=i.data,a=t.inlineFillerPosition;if(a&&a.parent==e.parent&&a.offset==e.index&&(o=vo+o),r!=o){var s,l=bo(r,o),c=k(l);try{for(c.s();!(s=c.n()).done;){var u=s.value;"insert"===u.type?n.insertData(u.index,u.values.join("")):n.deleteData(u.index,u.howMany)}}catch(d){c.e(d)}finally{c.f()}}}},{key:"_updateAttrs",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n,i=Array.from(t.attributes).map((function(e){return e.name})),r=e.getAttributeKeys(),o=k(r);try{for(o.s();!(n=o.n()).done;){var a=n.value;t.setAttribute(a,e.getAttribute(a))}}catch(u){o.e(u)}finally{o.f()}var s,l=k(i);try{for(l.s();!(s=l.n()).done;){var c=s.value;e.hasAttribute(c)||t.removeAttribute(c)}}catch(u){l.e(u)}finally{l.f()}}}},{key:"_updateChildren",value:function(e,t){var n=this.domConverter.mapViewToDom(e);if(n){var i=t.inlineFillerPosition,r=this.domConverter.mapViewToDom(e).childNodes,o=Array.from(this.domConverter.viewChildrenToDom(e,n.ownerDocument,{bind:!0,inlineFillerPosition:i}));i&&i.parent===e&&Po(n.ownerDocument,o,i.offset);var a,s=this._diffNodeLists(r,o),l=0,c=new Set,u=k(s);try{for(u.s();!(a=u.n()).done;){var d=a.value;"delete"===d?(c.add(r[l]),Co(r[l])):"equal"===d&&l++}}catch(b){u.e(b)}finally{u.f()}l=0;var h,f=k(s);try{for(f.s();!(h=f.n()).done;){var v=h.value;"insert"===v?(xo(n,l,o[l]),l++):"equal"===v&&(this._markDescendantTextToSync(this.domConverter.domToView(o[l])),l++)}}catch(b){f.e(b)}finally{f.f()}var p,m=k(c);try{for(m.s();!(p=m.n()).done;){var g=p.value;g.parentNode||this.domConverter.unbindDomElement(g)}}catch(b){m.e(b)}finally{m.f()}}}},{key:"_diffNodeLists",value:function(e,t){return _o(e=function(e,t){var n=Array.from(e);return 0!=n.length&&t?(n[n.length-1]==t&&n.pop(),n):n}(e,this._fakeSelectionContainer),t,So.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(e,t,n){if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;var i,r=[],o=[],a=[],s={equal:0,insert:0,delete:0},l=k(e);try{for(l.s();!(i=l.n()).done;){var c=i.value;"insert"===c?a.push(n[s.equal+s.insert]):"delete"===c?o.push(t[s.equal+s.delete]):(r=r.concat(_o(o,a,Eo).map((function(e){return"equal"===e?"replace":e}))),r.push("equal"),o=[],a=[]),s[c]++}}catch(u){l.e(u)}finally{l.f()}return r.concat(_o(o,a,Eo).map((function(e){return"equal"===e?"replace":e})))}},{key:"_markDescendantTextToSync",value:function(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element")){var t,n=k(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;this._markDescendantTextToSync(i)}}catch(r){n.e(r)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):(this._removeFakeSelection(),this._updateDomSelection(e)))}},{key:"_updateFakeSelection",value:function(e){var t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){var t=e.createElement("div");return Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent=" ",t}(t));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(e)){n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var i=t.getSelection(),r=t.createRange();i.removeAllRanges(),r.selectNodeContents(n),i.addRange(r)}}},{key:"_updateDomSelection",value:function(e){var t=e.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(t)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.focus(),t.collapse(n.parent,n.offset),t.extend(i.parent,i.offset),zr.isGecko&&function(e,t){var n=e.parent;if(n.nodeType==Node.ELEMENT_NODE&&e.offset==n.childNodes.length-1){var i=n.childNodes[e.offset];i&&"BR"==i.tagName&&t.addRange(t.getRangeAt(0))}}(i,t)}}},{key:"_domSelectionNeedsUpdate",value:function(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;var t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}},{key:"_fakeSelectionNeedsUpdate",value:function(e){var t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var e,t=k(this.domDocuments);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n.getSelection().rangeCount){var i=n.activeElement,r=this.domConverter.mapDomToView(i);i&&r&&n.getSelection().removeAllRanges()}}}catch(o){t.e(o)}finally{t.f()}}},{key:"_removeFakeSelection",value:function(){var e=this._fakeSelectionContainer;e&&e.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}]),e}();function Po(e,t,n){var i=t instanceof Array?t:t.childNodes,r=i[n];if(uo(r))return r.data=vo+r.data,r;var o=e.createTextNode(vo);return Array.isArray(t)?i.splice(n,0,o):xo(t,n,o),o}function Eo(e,t){return Ao(e)&&Ao(t)&&!uo(e)&&!uo(t)&&e.nodeType!==Node.COMMENT_NODE&&t.nodeType!==Node.COMMENT_NODE&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function So(e,t,n){return t===n||(uo(t)&&uo(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}Kn(To,vr);var Oo={window:window,document:document};function Mo(e){for(var t=0;e.previousSibling;)e=e.previousSibling,t++;return t}function Io(e){for(var t=[];e&&e.nodeType!=Node.DOCUMENT_NODE;)t.unshift(e),e=e.parentNode;return t}var No=fo(document),Ro=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(this,e),this.document=t,this.blockFillerMode=n.blockFillerMode||"br",this.preElements=["pre"],this.blockElements=["p","div","h1","h2","h3","h4","h5","h6","li","dd","dt","figcaption","td","th"],this._blockFiller="br"==this.blockFillerMode?fo:ho,this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}return x(e,[{key:"bindFakeSelection",value:function(e,t){this._fakeSelectionMapping.set(e,new Er(t))}},{key:"fakeSelectionToView",value:function(e){return this._fakeSelectionMapping.get(e)}},{key:"bindElements",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"unbindDomElement",value:function(e){var t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);var n,i=k(e.childNodes);try{for(i.s();!(n=i.n()).done;){var r=n.value;this.unbindDomElement(r)}}catch(o){i.e(o)}finally{i.f()}}}},{key:"bindDocumentFragments",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"viewToDom",value:function(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.is("$text")){var r=this._processDataFromViewText(e);return t.createTextNode(r)}if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))n=t.createDocumentFragment(),i.bind&&this.bindDocumentFragments(n,e);else{if(e.is("uiElement"))return n=e.render(t),i.bind&&this.bindElements(n,e),n;n=e.hasAttribute("xmlns")?t.createElementNS(e.getAttribute("xmlns"),e.name):t.createElement(e.name),e.is("rawElement")&&e.render(n),i.bind&&this.bindElements(n,e);var o,a=k(e.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.setAttribute(s,e.getAttribute(s))}}catch(d){a.e(d)}finally{a.f()}}if(i.withChildren||void 0===i.withChildren){var l,c=k(this.viewChildrenToDom(e,t,i));try{for(c.s();!(l=c.n()).done;){var u=l.value;n.appendChild(u)}}catch(d){c.e(d)}finally{c.f()}}return n}},{key:"viewChildrenToDom",value:a.mark((function e(t,n){var i,r,o,s,l,c,u=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=u.length>2&&void 0!==u[2]?u[2]:{},r=t.getFillerOffset&&t.getFillerOffset(),o=0,s=k(t.getChildren()),e.prev=4,s.s();case 6:if((l=s.n()).done){e.next=17;break}if(c=l.value,e.t0=r===o,!e.t0){e.next=12;break}return e.next=12,this._blockFiller(n);case 12:return e.next=14,this.viewToDom(c,n,i);case 14:o++;case 15:e.next=6;break;case 17:e.next=22;break;case 19:e.prev=19,e.t1=e["catch"](4),s.e(e.t1);case 22:return e.prev=22,s.f(),e.finish(22);case 25:if(e.t2=r===o,!e.t2){e.next=29;break}return e.next=29,this._blockFiller(n);case 29:case"end":return e.stop()}}),e,this,[[4,19,22,25]])}))},{key:"viewRangeToDom",value:function(e){var t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),i=document.createRange();return i.setStart(t.parent,t.offset),i.setEnd(n.parent,n.offset),i}},{key:"viewPositionToDom",value:function(e){var t,n,i,r=e.parent;if(r.is("$text")){var o=this.findCorrespondingDomText(r);if(!o)return null;var a=e.offset;return po(o)&&(a+=7),{parent:o,offset:a}}if(0===e.offset){if(t=this.mapViewToDom(r),!t)return null;i=t.childNodes[0]}else{var s=e.nodeBefore;if(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(e.nodeBefore),!n)return null;t=n.parentNode,i=n.nextSibling}return uo(i)&&po(i)?{parent:i,offset:7}:{parent:t,offset:n?Mo(n)+1:0}}},{key:"domToView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e,this.blockFillerMode))return null;var n,i=this.getHostViewElement(e,this._domToViewMapping);if(i)return i;if(uo(e)){if(mo(e))return null;var r=this._processDataFromDomText(e);return""===r?null:new ai(this.document,r)}if(this.isComment(e))return null;if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))n=new Xr(this.document),t.bind&&this.bindDocumentFragments(e,n);else{var o=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();n=new or(this.document,o),t.bind&&this.bindElements(e,n);for(var a=e.attributes,s=a.length-1;s>=0;s--)n._setAttribute(a[s].name,a[s].value)}if(t.withChildren||void 0===t.withChildren){var l,c=k(this.domChildrenToView(e,t));try{for(c.s();!(l=c.n()).done;){var u=l.value;n._appendChild(u)}}catch(d){c.e(d)}finally{c.f()}}return n}},{key:"domChildrenToView",value:a.mark((function e(t){var n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=s.length>1&&void 0!==s[1]?s[1]:{},i=0;case 2:if(!(i<t.childNodes.length)){e.next=11;break}if(r=t.childNodes[i],o=this.domToView(r,n),e.t0=null!==o,!e.t0){e.next=8;break}return e.next=8,o;case 8:i++,e.next=2;break;case 11:case"end":return e.stop()}}),e,this)}))},{key:"domSelectionToView",value:function(e){if(1===e.rangeCount){var t=e.getRangeAt(0).startContainer;uo(t)&&(t=t.parentNode);var n=this.fakeSelectionToView(t);if(n)return n}for(var i=this.isDomSelectionBackward(e),r=[],o=0;o<e.rangeCount;o++){var a=e.getRangeAt(o),s=this.domRangeToView(a);s&&r.push(s)}return new Er(r,{backward:i})}},{key:"domRangeToView",value:function(e){var t=this.domPositionToView(e.startContainer,e.startOffset),n=this.domPositionToView(e.endContainer,e.endOffset);return t&&n?new Ar(t,n):null}},{key:"domPositionToView",value:function(e,t){if(this.isBlockFiller(e,this.blockFillerMode))return this.domPositionToView(e.parentNode,Mo(e));var n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return Cr._createBefore(n);if(uo(e)){if(mo(e))return this.domPositionToView(e.parentNode,Mo(e));var i=this.findCorrespondingViewText(e),r=t;return i?(po(e)&&(r-=7,r=r<0?0:r),new Cr(i,r)):null}if(0===t){var o=this.mapDomToView(e);if(o)return new Cr(o,0)}else{var a=e.childNodes[t-1],s=uo(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new Cr(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}},{key:"findCorrespondingViewText",value:function(e){if(mo(e))return null;var t=this.getHostViewElement(e);if(t)return t;var n=e.previousSibling;if(n){if(!this.isElement(n))return null;var i=this.mapDomToView(n);if(i)return i.nextSibling instanceof ai?i.nextSibling:null}else{var r=this.mapDomToView(e.parentNode);if(r){var o=r.getChild(0);return o instanceof ai?o:null}}return null}},{key:"mapViewToDom",value:function(e){return this._viewToDomMapping.get(e)}},{key:"findCorrespondingDomText",value:function(e){var t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}},{key:"focus",value:function(e){var t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){var n=Oo.window,i=n.scrollX,r=n.scrollY,o=[];Lo(t,(function(e){var t=e.scrollLeft,n=e.scrollTop;o.push([t,n])})),t.focus(),Lo(t,(function(e){var t=o.shift(),n=v(t,2),i=n[0],r=n[1];e.scrollLeft=i,e.scrollTop=r})),Oo.window.scrollTo(i,r)}}},{key:"isElement",value:function(e){return e&&e.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isComment",value:function(e){return e&&e.nodeType==Node.COMMENT_NODE}},{key:"isBlockFiller",value:function(e){return"br"==this.blockFillerMode?e.isEqualNode(No):!("BR"!==e.tagName||!zo(e,this.blockElements)||1!==e.parentNode.childNodes.length)||function(e,t){return uo(e)&&" "==e.data&&zo(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}},{key:"isDomSelectionBackward",value:function(e){if(e.isCollapsed)return!1;var t=document.createRange();t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset);var n=t.collapsed;return t.detach(),n}},{key:"getHostViewElement",value:function(e){var t=Io(e);for(t.pop();t.length;){var n=t.pop(),i=this._domToViewMapping.get(n);if(i&&(i.is("uiElement")||i.is("rawElement")))return i}return null}},{key:"isDomSelectionCorrect",value:function(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}},{key:"_isDomSelectionPositionCorrect",value:function(e,t){if(uo(e)&&po(e)&&t<7)return!1;if(this.isElement(e)&&po(e.childNodes[t]))return!1;var n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(e){var t=this,n=e.data;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return n;if(" "==n.charAt(0)){var i=this._getTouchingViewTextNode(e,!1);(!i||!this._nodeEndsWithSpace(i))&&i||(n=" "+n.substr(1))}if(" "==n.charAt(n.length-1)){var r=this._getTouchingViewTextNode(e,!0);" "!=n.charAt(n.length-2)&&r&&" "!=r.data.charAt(0)||(n=n.substr(0,n.length-1)+" ")}return n.replace(/ {2}/g,"  ")}},{key:"_nodeEndsWithSpace",value:function(e){var t=this;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return!1;var n=this._processDataFromViewText(e);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(e){var t=e.data;if(Do(e,this.preElements))return go(e);t=t.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(e,!1),i=this._getTouchingInlineDomNode(e,!0),r=this._checkShouldLeftTrimDomText(n),o=this._checkShouldRightTrimDomText(e,i);return r&&(t=t.replace(/^ /,"")),o&&(t=t.replace(/ $/,"")),t=go(new Text(t)),t=t.replace(/ \u00A0/g,"  "),(/( |\u00A0)\u00A0$/.test(t)||!i||i.data&&" "==i.data.charAt(0))&&(t=t.replace(/\u00A0$/," ")),r&&(t=t.replace(/^\u00A0/," ")),t}},{key:"_checkShouldLeftTrimDomText",value:function(e){return!e||!!Sn(e)||/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1))}},{key:"_checkShouldRightTrimDomText",value:function(e,t){return!t&&!po(e)}},{key:"_getTouchingViewTextNode",value:function(e,t){var n,i=new xr({startPosition:t?Cr._createAfter(e):Cr._createBefore(e),direction:t?"forward":"backward"}),r=k(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.item.is("containerElement"))return null;if(o.item.is("element","br"))return null;if(o.item.is("$textProxy"))return o.item}}catch(a){r.e(a)}finally{r.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(e,t){if(!e.parentNode)return null;var n=t?"nextNode":"previousNode",i=e.ownerDocument,r=Io(e)[0],o=i.createTreeWalker(r,NodeFilter.SHOW_TEXT|NodeFilter.SHOW_ELEMENT,{acceptNode:function(e){return uo(e)||"BR"==e.tagName?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});o.currentNode=e;var a=o[n]();if(null!==a){var s=function(e,t){for(var n=Io(e),i=Io(t),r=0;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}(e,a);if(s&&!Do(e,this.blockElements,s)&&!Do(a,this.blockElements,s))return a}return null}}]),e}();function Do(e,t,n){var i=Io(e);return n&&(i=i.slice(i.indexOf(n)+1)),i.some((function(e){return e.tagName&&t.includes(e.tagName.toLowerCase())}))}function Lo(e,t){for(;e&&e!=Oo.document;)t(e),e=e.parentNode}function zo(e,t){var n=e.parentNode;return n&&n.tagName&&t.includes(n.tagName.toLowerCase())}function jo(e){var t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}var Vo=cr({},Fn,{listenTo:function(e){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(Ao(e)||jo(e)){var o=this._getProxyEmitter(e)||new Bo(e);o.attach.apply(o,i),e=o}(t=Fn.listenTo).call.apply(t,[this,e].concat(i))},stopListening:function(e,t,n){if(Ao(e)||jo(e)){var i=this._getProxyEmitter(e);if(!i)return;e=i}Fn.stopListening.call(this,e,t,n),e instanceof Bo&&e.detach(t)},_getProxyEmitter:function(e){return t=this,n=Fo(e),t[Vn]&&t[Vn][n]?t[Vn][n].emitter:null;var t,n}}),Bo=function e(t){w(this,e),Un(this,Fo(t)),this._domNode=t};function Fo(e){return e["data-ck-expando"]||(e["data-ck-expando"]=Ln())}cr(Bo.prototype,Fn,{attach:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!this._domListeners||!this._domListeners[e]){var i={capture:!!n.useCapture,passive:!!n.usePassive},r=this._createDomListener(e,i);this._domNode.addEventListener(e,r,i),this._domListeners||(this._domListeners={}),this._domListeners[e]=r}},detach:function(e){var t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()},_createDomListener:function(e,t){var n=this,i=function(t){n.fire(e,t)};return i.removeListener=function(){n._domNode.removeEventListener(e,i,t),delete n._domListeners[e]},i}});var Uo=function(){function e(t){w(this,e),this.view=t,this.document=t.document,this.isEnabled=!1}return x(e,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}}]),e}();Kn(Uo,Vo);var Ho=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},$o=function(e){return this.__data__.has(e)};function Wo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new ze;++t<n;)this.add(e[t])}Wo.prototype.add=Wo.prototype.push=Ho,Wo.prototype.has=$o;var qo=Wo,Yo=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1},Go=function(e,t){return e.has(t)},Ko=function(e,t,n,i,r,o){var a=1&n,s=e.length,l=t.length;if(s!=l&&!(a&&l>s))return!1;var c=o.get(e);if(c&&o.get(t))return c==t;var u=-1,d=!0,h=2&n?new qo:void 0;for(o.set(e,t),o.set(t,e);++u<s;){var f=e[u],v=t[u];if(i)var p=a?i(v,f,u,t,e,o):i(f,v,u,e,t,o);if(void 0!==p){if(p)continue;d=!1;break}if(h){if(!Yo(t,(function(e,t){if(!Go(h,t)&&(f===e||r(f,e,n,i,o)))return h.push(t)}))){d=!1;break}}else if(f!==v&&!r(f,v,n,i,o)){d=!1;break}}return o.delete(e),o.delete(t),d},Jo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n},Qo=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n},Zo=d?d.prototype:void 0,Xo=Zo?Zo.valueOf:void 0,ea=function(e,t,n,i,r,o,a){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!o(new rn(e),new rn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return U(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var s=Jo;case"[object Set]":var l=1&i;if(s||(s=Qo),e.size!=t.size&&!l)return!1;var c=a.get(e);if(c)return c==t;i|=2,a.set(e,t);var u=Ko(s(e),s(t),i,r,o,a);return a.delete(e),u;case"[object Symbol]":if(Xo)return Xo.call(e)==Xo.call(t)}return!1},ta=Object.prototype.hasOwnProperty,na=function(e,t,n,i,r,o){var a=1&n,s=zt(e),l=s.length;if(l!=zt(t).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in t:ta.call(t,u)))return!1}var d=o.get(e);if(d&&o.get(t))return d==t;var h=!0;o.set(e,t),o.set(t,e);for(var f=a;++c<l;){var v=e[u=s[c]],p=t[u];if(i)var m=a?i(p,v,u,t,e,o):i(v,p,u,e,t,o);if(!(void 0===m?v===p||r(v,p,n,i,o):m)){h=!1;break}f||(f="constructor"==u)}if(h&&!f){var g=e.constructor,k=t.constructor;g==k||!("constructor"in e)||!("constructor"in t)||"function"==typeof g&&g instanceof g&&"function"==typeof k&&k instanceof k||(h=!1)}return o.delete(e),o.delete(t),h},ia="[object Arguments]",ra="[object Array]",oa="[object Object]",aa=Object.prototype.hasOwnProperty,sa=function(e,t,n,i,r,o){var a=Xe(e),s=Xe(t),l=a?ra:en(e),c=s?ra:en(t),u=(l=l==ia?oa:l)==oa,d=(c=c==ia?oa:c)==oa,h=l==c;if(h&&Object(et.a)(e)){if(!Object(et.a)(t))return!1;a=!0,u=!1}if(h&&!u)return o||(o=new Be),a||ct(e)?Ko(e,t,n,i,r,o):ea(e,t,l,n,i,r,o);if(!(1&n)){var f=u&&aa.call(e,"__wrapped__"),v=d&&aa.call(t,"__wrapped__");if(f||v){var p=f?e.value():e,m=v?t.value():t;return o||(o=new Be),r(p,m,n,i,o)}}return!!h&&(o||(o=new Be),na(e,t,n,i,r,o))},la=function e(t,n,i,r,o){return t===n||(null==t||null==n||!I(t)&&!I(n)?t!=t&&n!=n:sa(t,n,i,r,e,o))},ca=function(e,t,n){var i=(n="function"==typeof n?n:void 0)?n(e,t):void 0;return void 0===i?la(e,t,void 0,n):!!i},ua=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},i.domConverter=e.domConverter,i.renderer=e._renderer,i._domElements=[],i._mutationObserver=new window.MutationObserver(i._onMutations.bind(P(i))),i}return x(n,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(e){this._domElements.push(e),this.isEnabled&&this._mutationObserver.observe(e,this._config)}},{key:"enable",value:function(){l(N(n.prototype),"enable",this).call(this);var e,t=k(this._domElements);try{for(t.s();!(e=t.n()).done;){var i=e.value;this._mutationObserver.observe(i,this._config)}}catch(r){t.e(r)}finally{t.f()}}},{key:"disable",value:function(){l(N(n.prototype),"disable",this).call(this),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){l(N(n.prototype),"destroy",this).call(this),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(e){if(0!==e.length){var t,n=this.domConverter,i=new Map,r=new Set,o=k(e);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("childList"===a.type){var s=n.mapDomToView(a.target);if(s&&(s.is("uiElement")||s.is("rawElement")))continue;s&&!this._isBogusBrMutation(a)&&r.add(s)}}}catch(S){o.e(S)}finally{o.f()}var l,c=k(e);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=n.mapDomToView(u.target);if((!d||!d.is("uiElement")&&!d.is("rawElement"))&&"characterData"===u.type){var h=n.findCorrespondingViewText(u.target);h&&!r.has(h.parent)?i.set(h,{type:"text",oldText:h.data,newText:go(u.target),node:h}):!h&&po(u.target)&&r.add(n.mapDomToView(u.target.parentNode))}}}catch(S){c.e(S)}finally{c.f()}var f,v=[],p=k(i.values());try{for(p.s();!(f=p.n()).done;){var m=f.value;this.renderer.markToSync("text",m.node),v.push(m)}}catch(S){p.e(S)}finally{p.f()}var g,b=k(r);try{for(b.s();!(g=b.n()).done;){var y=g.value,w=n.mapViewToDom(y),_=Array.from(y.getChildren()),x=Array.from(n.domChildrenToView(w,{withChildren:!1}));ca(_,x,E)||(this.renderer.markToSync("children",y),v.push({type:"children",oldChildren:_,newChildren:x,node:y}))}}catch(S){b.e(S)}finally{b.f()}var C=e[0].target.ownerDocument.getSelection(),A=null;if(C&&C.anchorNode){var T=n.domPositionToView(C.anchorNode,C.anchorOffset),P=n.domPositionToView(C.focusNode,C.focusOffset);T&&P&&(A=new Er(T),A.setFocus(P))}v.length&&(this.document.fire("mutations",v,A),this.view.forceRender())}function E(e,t){if(!Array.isArray(e))return e===t||!(!e.is("$text")||!t.is("$text"))&&e.data===t.data}}},{key:"_isBogusBrMutation",value:function(e){var t=null;return null===e.nextSibling&&0===e.removedNodes.length&&1==e.addedNodes.length&&(t=this.domConverter.domToView(e.addedNodes[0],{withChildren:!1})),t&&t.is("element","br")}}]),n}(Uo),da=function(){function e(t,n,i){w(this,e),this.view=t,this.document=t.document,this.domEvent=n,this.domTarget=n.target,cr(this,i)}return x(e,[{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}},{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}}]),e}(),ha=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.useCapture=!1,i}return x(n,[{key:"observe",value:function(e){var t=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){t.listenTo(e,n,(function(e,n){t.isEnabled&&t.onDomEvent(n)}),{useCapture:t.useCapture})}))}},{key:"fire",value:function(e,t,n){this.isEnabled&&this.document.fire(e,new da(this.view,t,n))}}]),n}(Uo),fa=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.domEventType=["keydown","keyup"],i}return x(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e,{keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey||e.metaKey,shiftKey:e.shiftKey,get keystroke(){return Fr(this)}})}}]),n}(ha),va=function(){return c.a.Date.now()},pa=/^\s+|\s+$/g,ma=/^[-+]0x[0-9a-f]+$/i,ga=/^0b[01]+$/i,ka=/^0o[0-7]+$/i,ba=parseInt,ya=function(e){if("number"==typeof e)return e;if(di(e))return NaN;if(ne(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ne(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(pa,"");var n=ga.test(e);return n||ka.test(e)?ba(e.slice(2),n?2:8):ma.test(e)?NaN:+e},wa=Math.max,_a=Math.min,xa=function(e,t,n){var i,r,o,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function f(t){var n=i,o=r;return i=r=void 0,c=t,a=e.apply(o,n)}function v(e){return c=e,s=setTimeout(m,t),u?f(e):a}function p(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-c>=o}function m(){var e=va();if(p(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?_a(n,o-(e-c)):n}(e))}function g(e){return s=void 0,h&&i?f(e):(i=r=void 0,a)}function k(){var e=va(),n=p(e);if(i=arguments,r=this,l=e,n){if(void 0===s)return v(l);if(d)return clearTimeout(s),s=setTimeout(m,t),f(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=ya(t)||0,ne(n)&&(u=!!n.leading,o=(d="maxWait"in n)?wa(ya(n.maxWait)||0,t):o,h="trailing"in n?!!n.trailing:h),k.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=r=s=void 0},k.flush=function(){return void 0===s?a:g(va())},k},Ca=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._fireSelectionChangeDoneDebounced=xa((function(e){return i.document.fire("selectionChangeDone",e)}),200),i}return x(n,[{key:"observe",value:function(){var e=this,t=this.document;t.on("keydown",(function(n,i){var r;t.selection.isFake&&((r=i.keyCode)==Br.arrowright||r==Br.arrowleft||r==Br.arrowup||r==Br.arrowdown)&&e.isEnabled&&(i.preventDefault(),e._handleSelectionMove(i.keyCode))}),{priority:"lowest"})}},{key:"destroy",value:function(){l(N(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(e){var t=this.document.selection,n=new Er(t.getRanges(),{backward:t.isBackward,fake:!1});e!=Br.arrowleft&&e!=Br.arrowup||n.setTo(n.getFirstPosition()),e!=Br.arrowright&&e!=Br.arrowdown||n.setTo(n.getLastPosition());var i={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}]),n}(Uo),Aa=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.mutationObserver=e.getObserver(ua),i.selection=i.document.selection,i.domConverter=e.domConverter,i._documents=new WeakSet,i._fireSelectionChangeDoneDebounced=xa((function(e){return i.document.fire("selectionChangeDone",e)}),200),i._clearInfiniteLoopInterval=setInterval((function(){return i._clearInfiniteLoop()}),1e3),i._loopbackCounter=0,i}return x(n,[{key:"observe",value:function(e){var t=this,n=e.ownerDocument;this._documents.has(n)||(this.listenTo(n,"selectionchange",(function(){t._handleSelectionChange(n)})),this._documents.add(n))}},{key:"destroy",value:function(){l(N(n.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionChange",value:function(e){if(this.isEnabled){this.mutationObserver.flush();var t=e.defaultView.getSelection(),n=this.domConverter.domSelectionToView(t);if(0!=n.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(n)&&this.domConverter.isDomSelectionCorrect(t)||++this._loopbackCounter>60))if(this.selection.isSimilar(n))this.view.forceRender();else{var i={oldSelection:this.selection,newSelection:n,domSelection:t};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}else this.view.hasDomSelection=!1}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),n}(Uo),Ta=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e),i.domEventType=["focus","blur"],i.useCapture=!0;var r=i.document;return r.on("focus",(function(){r.isFocused=!0,i._renderTimeoutId=setTimeout((function(){return e.forceRender()}),50)})),r.on("blur",(function(t,n){var i=r.selection.editableElement;null!==i&&i!==n.target||(r.isFocused=!1,e.forceRender())})),i}return x(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),l(N(n.prototype),"destroy",this).call(this)}}]),n}(ha),Pa=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e),i.domEventType=["compositionstart","compositionupdate","compositionend"];var r=i.document;return r.on("compositionstart",(function(){r.isComposing=!0})),r.on("compositionend",(function(){r.isComposing=!1})),i}return x(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(ha),Ea=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.domEventType=["beforeinput"],i}return x(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(ha);function Sa(e){return"[object Range]"==Object.prototype.toString.apply(e)}function Oa(e){var t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}var Ma=["top","right","bottom","left","width","height"],Ia=function(){function e(t){w(this,e);var n=Sa(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Sn(t)||n)if(n){var i=e.getDomRangeRects(t);Na(this,e.getBoundingRect(i))}else Na(this,t.getBoundingClientRect());else if(jo(t)){var r=t.innerWidth,o=t.innerHeight;Na(this,{top:0,right:r,bottom:o,left:0,width:r,height:o})}else Na(this,t)}return x(e,[{key:"clone",value:function(){return new e(this)}},{key:"moveTo",value:function(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}},{key:"moveBy",value:function(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}},{key:"getIntersection",value:function(t){var n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new e(n)}},{key:"getIntersectionArea",value:function(e){var t=this.getIntersection(e);return t?t.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var t=this._source,n=this.clone();if(!Ra(t))for(var i=t.parentNode||t.commonAncestorContainer;i&&!Ra(i);){var r=new e(i),o=n.getIntersection(r);if(!o)return null;o.getArea()<n.getArea()&&(n=o),i=i.parentNode}return n}},{key:"isEqual",value:function(e){var t,n=k(Ma);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(this[i]!==e[i])return!1}}catch(r){n.e(r)}finally{n.f()}return!0}},{key:"contains",value:function(e){var t=this.getIntersection(e);return!(!t||!t.isEqual(e))}},{key:"excludeScrollbarsAndBorders",value:function(){var e,t,n,i=this._source;if(jo(i))e=i.innerWidth-i.document.documentElement.clientWidth,t=i.innerHeight-i.document.documentElement.clientHeight,n=i.getComputedStyle(i.document.documentElement).direction;else{var r=Oa(this._source);e=i.offsetWidth-i.clientWidth-r.left-r.right,t=i.offsetHeight-i.clientHeight-r.top-r.bottom,n=i.ownerDocument.defaultView.getComputedStyle(i).direction,this.left+=r.left,this.top+=r.top,this.right-=r.right,this.bottom-=r.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=e,"ltr"===n?this.right-=e:this.left+=e,this.height-=t,this.bottom-=t,this}}],[{key:"getDomRangeRects",value:function(t){var n=[],i=Array.from(t.getClientRects());if(i.length){var r,o=k(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.push(new e(a))}}catch(c){o.e(c)}finally{o.f()}}else{var s=t.startContainer;uo(s)&&(s=s.parentNode);var l=new e(s.getBoundingClientRect());l.right=l.left,l.width=0,n.push(l)}return n}},{key:"getBoundingRect",value:function(t){var n,i={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},r=0,o=k(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;r++,i.left=Math.min(i.left,a.left),i.top=Math.min(i.top,a.top),i.right=Math.max(i.right,a.right),i.bottom=Math.max(i.bottom,a.bottom)}}catch(s){o.e(s)}finally{o.f()}return 0==r?null:(i.width=i.right-i.left,i.height=i.bottom-i.top,new e(i))}}]),e}();function Na(e,t){var n,i=k(Ma);try{for(i.s();!(n=i.n()).done;){var r=n.value;e[r]=t[r]}}catch(o){i.e(o)}finally{i.f()}}function Ra(e){return!!Sn(e)&&e===e.ownerDocument.body}function Da(e){for(var t=e.target,n=e.viewportOffset,i=void 0===n?0:n,r=Ua(t),o=r,a=null;o;){var s=void 0;s=Ha(o==r?t:a),za(s,(function(){return $a(t,o)}));var l=$a(t,o);if(La(o,l,i),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}function La(e,t,n){var i=t.clone().moveBy(0,n),r=t.clone().moveBy(0,-n),o=new Ia(e).excludeScrollbarsAndBorders();if(![r,i].every((function(e){return o.contains(e)}))){var a=e.scrollX,s=e.scrollY;Va(r,o)?s-=o.top-t.top+n:ja(i,o)&&(s+=t.bottom-o.bottom+n),Ba(t,o)?a-=o.left-t.left+n:Fa(t,o)&&(a+=t.right-o.right+n),e.scrollTo(a,s)}}function za(e,t){for(var n,i,r=Ua(e);e!=r.document.body;)i=t(),n=new Ia(e).excludeScrollbarsAndBorders(),n.contains(i)||(Va(i,n)?e.scrollTop-=n.top-i.top:ja(i,n)&&(e.scrollTop+=i.bottom-n.bottom),Ba(i,n)?e.scrollLeft-=n.left-i.left:Fa(i,n)&&(e.scrollLeft+=i.right-n.right)),e=e.parentNode}function ja(e,t){return e.bottom>t.bottom}function Va(e,t){return e.top<t.top}function Ba(e,t){return e.left<t.left}function Fa(e,t){return e.right>t.right}function Ua(e){return Sa(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function Ha(e){if(Sa(e)){var t=e.commonAncestorContainer;return uo(t)&&(t=t.parentNode),t}return e.parentNode}function $a(e,t){var n=Ua(e),i=new Ia(e);if(n===t)return i;for(var r=n;r!=t;){var o=r.frameElement,a=new Ia(o).excludeScrollbarsAndBorders();i.moveBy(a.left,a.top),r=r.parent}return i}Object.assign({},{scrollViewportToShowTarget:Da,scrollAncestorsToShowTarget:function(e){za(Ha(e),(function(){return new Ia(e)}))}});var Wa=function(){function e(t){var n=this;w(this,e),this.document=new Or(t),this.domConverter=new Ro(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new To(this.domConverter,this.document.selection),this._renderer.bind("isFocused").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new eo(this.document),this.addObserver(ua),this.addObserver(Aa),this.addObserver(Ta),this.addObserver(fa),this.addObserver(Ca),this.addObserver(Pa),zr.isAndroid&&this.addObserver(Ea),this.document.on("keydown",ko),Kr(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0}))}return x(e,[{key:"attachDomRoot",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",i=this.document.getRoot(n);i._name=e.tagName.toLowerCase();for(var r={},o=0,a=Array.from(e.attributes);o<a.length;o++){var s=a[o],l=s.name,c=s.value;r[l]=c,"class"===l?this._writer.addClass(c.split(" "),i):this._writer.setAttribute(l,c,i)}this._initialDomRootAttributes.set(e,r);var u=function(){t._writer.setAttribute("contenteditable",!i.isReadOnly,i),i.isReadOnly?t._writer.addClass("ck-read-only",i):t._writer.removeClass("ck-read-only",i)};u(),this.domRoots.set(n,e),this.domConverter.bindElements(e,i),this._renderer.markToSync("children",i),this._renderer.markToSync("attributes",i),this._renderer.domDocuments.add(e.ownerDocument),i.on("change:children",(function(e,n){return t._renderer.markToSync("children",n)})),i.on("change:attributes",(function(e,n){return t._renderer.markToSync("attributes",n)})),i.on("change:text",(function(e,n){return t._renderer.markToSync("text",n)})),i.on("change:isReadOnly",(function(){return t.change(u)})),i.on("change",(function(){t._hasChangedSinceTheLastRendering=!0}));var d,h=k(this._observers.values());try{for(h.s();!(d=h.n()).done;){var f=d.value;f.observe(e,n)}}catch(v){h.e(v)}finally{h.f()}}},{key:"detachDomRoot",value:function(e){var t=this.domRoots.get(e);Array.from(t.attributes).forEach((function(e){var n=e.name;return t.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(t);for(var i in n)t.setAttribute(i,n[i]);this.domRoots.delete(e),this.domConverter.unbindDomElement(t)}},{key:"getDomRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}},{key:"addObserver",value:function(e){var t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);var n,i=k(this.domRoots);try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],a=r[1];t.observe(a,o)}}catch(s){i.e(s)}finally{i.f()}return t.enable(),t}},{key:"getObserver",value:function(e){return this._observers.get(e)}},{key:"disableObservers",value:function(){var e,t=k(this._observers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.disable()}}catch(i){t.e(i)}finally{t.f()}}},{key:"enableObservers",value:function(){var e,t=k(this._observers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.enable()}}catch(i){t.e(i)}finally{t.f()}}},{key:"scrollToTheSelection",value:function(){var e=this.document.selection.getFirstRange();e&&Da({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}},{key:"change",value:function(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new jn.b("cannot-change-view-tree: Attempting to make changes to the view when it is in an incorrect state: rendering or post-fixers are in progress. This may cause some unexpected behavior and inconsistency between the DOM and the view.",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;var t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){jn.b.rethrowUnexpectedError(e,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var e,t=k(this._observers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.destroy()}}catch(i){t.e(i)}finally{t.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(e,t){return Cr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Cr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Cr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Ar(e,t)}},{key:"createRangeOn",value:function(e){return Ar._createOn(e)}},{key:"createRangeIn",value:function(e){return Ar._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Er(e,t,n)}},{key:"_disableRendering",value:function(e){this._renderingDisabled=e,0==e&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}]),e}();Kn(Wa,vr);var qa=function(){function e(t){w(this,e),this.parent=null,this._attrs=li(t)}return x(e,[{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var e=[],t=this;t.parent;)e.unshift(t.startOffset),t=t.parent;return e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),i=e.getAncestors(t),r=0;n[r]==i[r]&&n[r];)r++;return 0===r?null:n[r-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),i=ii(t,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return t[i]<n[i]}}},{key:"isAfter",value:function(e){return this!=e&&this.root===e.root&&!this.isBefore(e)}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){var e={};return this._attrs.size&&(e.attributes=Array.from(this._attrs).reduce((function(e,t){return e[t[0]]=t[1],e}),{})),e}},{key:"is",value:function(e){return"node"===e||"model:node"===e}},{key:"_clone",value:function(){return new e(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(e,t){this._attrs.set(e,t)}},{key:"_setAttributesTo",value:function(e){this._attrs=li(e)}},{key:"_removeAttribute",value:function(e){return this._attrs.delete(e)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}},{key:"index",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildIndex(this)))throw new jn.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}},{key:"startOffset",get:function(){var e;if(!this.parent)return null;if(null===(e=this.parent.getChildStartOffset(this)))throw new jn.b("model-node-not-found-in-parent: The node's parent does not contain this node.",this);return e}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e+1)||null}},{key:"previousSibling",get:function(){var e=this.index;return null!==e&&this.parent.getChild(e-1)||null}},{key:"root",get:function(){for(var e=this;e.parent;)e=e.parent;return e}}]),e}(),Ya=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,i),r._data=e||"",r}return x(n,[{key:"is",value:function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.data=this.data,e}},{key:"_clone",value:function(){return new n(this.data,this.getAttributes())}},{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}}],[{key:"fromJSON",value:function(e){return new n(e.data,e.attributes)}}]),n}(qa),Ga=function(){function e(t,n,i){if(w(this,e),this.textNode=t,n<0||n>t.offsetSize)throw new jn.b("model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.",this);if(i<0||n+i>t.offsetSize)throw new jn.b("model-textproxy-wrong-length: Given length value is incorrect.",this);this.data=t.data.substring(n,n+i),this.offsetInText=n}return x(e,[{key:"is",value:function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e}},{key:"getPath",value:function(){var e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"hasAttribute",value:function(e){return this.textNode.hasAttribute(e)}},{key:"getAttribute",value:function(e){return this.textNode.getAttribute(e)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}},{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}}]),e}(),Ka=function(){function e(t){w(this,e),this._nodes=[],t&&this._insertNodes(0,t)}return x(e,[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"getNode",value:function(e){return this._nodes[e]||null}},{key:"getNodeIndex",value:function(e){var t=this._nodes.indexOf(e);return-1==t?null:t}},{key:"getNodeStartOffset",value:function(e){var t=this.getNodeIndex(e);return null===t?null:this._nodes.slice(0,t).reduce((function(e,t){return e+t.offsetSize}),0)}},{key:"indexToOffset",value:function(e){if(e==this._nodes.length)return this.maxOffset;var t=this._nodes[e];if(!t)throw new jn.b("model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.",this);return this.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(e){var t,n=0,i=k(this._nodes);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(e>=n&&e<n+r.offsetSize)return this.getNodeIndex(r);n+=r.offsetSize}}catch(o){i.e(o)}finally{i.f()}if(n!=e)throw new jn.b("model-nodelist-offset-out-of-bounds: Given offset cannot be found in the node list.",this,{offset:e,nodeList:this});return this.length}},{key:"_insertNodes",value:function(e,t){var n,i,r=k(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;if(!(o instanceof qa))throw new jn.b("model-nodelist-insertNodes-not-node: Trying to insert an object which is not a Node instance.",this)}}catch(a){r.e(a)}finally{r.f()}(n=this._nodes).splice.apply(n,[e,0].concat(u(t)))}},{key:"_removeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}},{key:"toJSON",value:function(){return this._nodes.map((function(e){return e.toJSON()}))}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(e,t){return e+t.offsetSize}),0)}}]),e}(),Ja=function(e){C(n,e);var t=A(n);function n(e,i,r){var o;return w(this,n),o=t.call(this,i),o.name=e,o._children=new Ka,r&&o._insertChild(0,r),o}return x(n,[{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"getNodeByPath",value:function(e){var t,n=this,i=k(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n=n.getChild(n.offsetToIndex(r))}}catch(o){i.e(o)}finally{i.f()}return n}},{key:"findAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1},n=t.includeSelf?this:this.parent;n;){if(n.name===e)return n;n=n.parent}return null}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);if(e.name=this.name,this._children.length>0){e.children=[];var t,i=k(this._children);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.children.push(r.toJSON())}}catch(o){i.e(o)}finally{i.f()}}return e}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=e?Array.from(this._children).map((function(e){return e._clone(!0)})):null;return new n(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,i=function(e){return"string"==typeof e?[new Ya(e)]:(Gn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Ya(e):e instanceof Ga?new Ya(e.data,e.getAttributes()):e})))}(t),r=k(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(a){r.e(a)}finally{r.f()}this._children._insertNodes(e,i)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(e,n),r=k(i);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.parent=null}}catch(a){r.e(a)}finally{r.f()}return i}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}}],[{key:"fromJSON",value:function(e){var t=null;if(e.children){t=[];var i,r=k(e.children);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.name?t.push(n.fromJSON(o)):t.push(Ya.fromJSON(o))}}catch(a){r.e(a)}finally{r.f()}}return new n(e.name,e.attributes,t)}}]),n}(qa),Qa=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(w(this,e),!t.boundaries&&!t.startPosition)throw new jn.b("model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.",null);var n=t.direction||"forward";if("forward"!=n&&"backward"!=n)throw new jn.b("model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.",t,{direction:n});this.direction=n,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=Xa._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}return x(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(e){var t,n,i,r;do{var o;i=this.position,r=this._visitedParent,o=this.next(),t=o.done,n=o.value}while(!t&&e(n));t||(this.position=i,this._visitedParent=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0};var i=t.parent,r=es(t,i),o=r||ts(t,i,r);if(o instanceof Ja)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=o),this.position=t,Za("elementStart",o,e,t,1);if(o instanceof Ya){var a;if(this.singleCharacters)a=1;else{var s=o.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<s&&(s=this.boundaries.end.offset),a=s-t.offset}var l=t.offset-o.startOffset,c=new Ga(o,l,a);return t.offset+=a,this.position=t,Za("text",c,e,t,a)}return t.path.pop(),t.offset++,this.position=t,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():Za("elementEnd",n,e,t)}},{key:"_previous",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===t.offset)return{done:!0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0};var i=t.parent,r=es(t,i),o=r||ns(t,i,r);if(o instanceof Ja)return t.offset--,this.shallow?(this.position=t,Za("elementStart",o,e,t,1)):(t.path.push(o.maxOffset),this.position=t,this._visitedParent=o,this.ignoreElementEnd?this._previous():Za("elementEnd",o,e,t));if(o instanceof Ya){var a;if(this.singleCharacters)a=1;else{var s=o.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),a=t.offset-s}var l=t.offset-o.startOffset,c=new Ga(o,l-a,a);return t.offset-=a,this.position=t,Za("text",c,e,t,a)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,Za("elementStart",n,e,t,1)}}]),e}();function Za(e,t,n,i,r){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:i,length:r}}}var Xa=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(w(this,e),!t.is("element")&&!t.is("documentFragment"))throw new jn.b("model-position-root-invalid: Position root invalid.",t);if(!(n instanceof Array)||0===n.length)throw new jn.b("model-position-path-incorrect-format: Position path must be an array with at least one item.",t,{path:n});t.is("rootElement")?n=n.slice():(n=[].concat(u(t.getPath()),u(n)),t=t.root),this.root=t,this.path=n,this.stickiness=i}return x(e,[{key:"compareWith",value:function(e){if(this.root!=e.root)return"different";var t=ii(this.path,e.path);switch(t){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[t]<e.path[t]?"before":"after"}}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new Qa(t);return n.skip(e),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(e){var t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(e){if(this.root!=e.root)return[];var t=ii(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),i=0;t[i]==n[i]&&t[i];)i++;return 0===i?null:t[i-1]}},{key:"getShiftedBy",value:function(e){var t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isEqual",value:function(e){return"same"==this.compareWith(e)}},{key:"isTouching",value:function(t){var n=null,i=null;switch(this.compareWith(t)){case"same":return!0;case"before":n=e._createAt(this),i=e._createAt(t);break;case"after":n=e._createAt(t),i=e._createAt(this);break;default:return!1}for(var r=n.parent;n.path.length+i.path.length;){if(n.isEqual(i))return!0;if(n.path.length>i.path.length){if(n.offset!==r.maxOffset)return!1;n.path=n.path.slice(0,-1),r=r.parent,n.offset++}else{if(0!==i.offset)return!1;i.path=i.path.slice(0,-1)}}}},{key:"is",value:function(e){return"position"===e||"model:position"===e}},{key:"hasSameParentAs",value:function(e){return this.root===e.root&&"same"==ii(this.getParentPath(),e.getParentPath())}},{key:"getTransformedByOperation",value:function(t){var n;switch(t.type){case"insert":n=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(t);break;case"split":n=this._getTransformedBySplitOperation(t);break;case"merge":n=this._getTransformedByMergeOperation(t);break;default:n=e._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(e){return this._getTransformedByInsertion(e.position,e.howMany)}},{key:"_getTransformedByMoveOperation",value:function(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(t){var n,i=t.movedRange;return i.containsPosition(this)||i.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?e._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(t,n){var i=e._createAt(this);if(this.root!=t.root)return i;if("same"==ii(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+n>this.offset)return null;i.offset-=n}}else if("prefix"==ii(t.getParentPath(),this.getParentPath())){var r=t.path.length-1;if(t.offset<=this.path[r]){if(t.offset+n>this.path[r])return null;i.path[r]-=n}}return i}},{key:"_getTransformedByInsertion",value:function(t,n){var i=e._createAt(this);if(this.root!=t.root)return i;if("same"==ii(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(i.offset+=n);else if("prefix"==ii(t.getParentPath(),this.getParentPath())){var r=t.path.length-1;t.offset<=this.path[r]&&(i.path[r]+=n)}return i}},{key:"_getTransformedByMove",value:function(t,n,i){if(n=n._getTransformedByDeletion(t,i),t.isEqual(n))return e._createAt(this);var r=this._getTransformedByDeletion(t,i);return null===r||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(i).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,n):r._getTransformedByInsertion(n,i)}},{key:"_getCombined",value:function(t,n){var i=t.path.length-1,r=e._createAt(n);return r.stickiness=this.stickiness,r.offset=r.offset+this.path[i]-t.offset,r.path=[].concat(u(r.path),u(this.path.slice(i+1))),r}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}},{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(e){this.path[this.path.length-1]=e}},{key:"parent",get:function(){for(var e=this.root,t=0;t<this.path.length-1;t++)if(e=e.getChild(e.offsetToIndex(this.path[t])),!e)throw new jn.b("model-position-path-incorrect: The position's path is incorrect.",this,{position:this});if(e.is("$text"))throw new jn.b("model-position-path-incorrect: The position's path is incorrect.",this,{position:this});return e}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return es(this,this.parent)}},{key:"nodeAfter",get:function(){var e=this.parent;return ts(this,e,es(this,e))}},{key:"nodeBefore",get:function(){var e=this.parent;return ns(this,e,es(this,e))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}}],[{key:"_createAt",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(t instanceof e)return new e(t.root,t.path,t.stickiness);var r=t;if("end"==n)n=r.maxOffset;else{if("before"==n)return this._createBefore(r,i);if("after"==n)return this._createAfter(r,i);if(0!==n&&!n)throw new jn.b("model-createPositionAt-offset-required: Model#createPositionAt() requires the offset when the first parameter is a model item.",[this,t])}if(!r.is("element")&&!r.is("documentFragment"))throw new jn.b("model-position-parent-incorrect: Position parent have to be a element or document fragment.",[this,t]);var o=r.getPath();return o.push(n),new this(r.root,o,i)}},{key:"_createAfter",value:function(e,t){if(!e.parent)throw new jn.b("model-position-after-root: You cannot make a position after root.",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}},{key:"_createBefore",value:function(e,t){if(!e.parent)throw new jn.b("model-position-before-root: You cannot make a position before root.",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}},{key:"fromJSON",value:function(t,n){if("$graveyard"===t.root){var i=new e(n.graveyard,t.path);return i.stickiness=t.stickiness,i}if(!n.getRoot(t.root))throw new jn.b("model-position-fromjson-no-root: Cannot create position for document. Root with specified name does not exist.",n,{rootName:t.root});return new e(n.getRoot(t.root),t.path,t.stickiness)}}]),e}();function es(e,t){var n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset<e.offset?n:null}function ts(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset))}function ns(e,t,n){return null!==n?null:t.getChild(t.offsetToIndex(e.offset)-1)}var is=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;w(this,e),this.start=Xa._createAt(t),this.end=n?Xa._createAt(n):Xa._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return x(e,[{key:Symbol.iterator,value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(new Qa({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),i=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&i}},{key:"containsItem",value:function(e){var t=Xa._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}},{key:"is",value:function(e){return"range"===e||"model:range"===e}},{key:"isEqual",value:function(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.isIntersecting(t);if(i||(i=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start)),!i)return null;var r=this.start,o=this.end;return t.start.isBefore(r)&&(r=t.start),t.end.isAfter(o)&&(o=t.end),new e(r,o)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,i=Xa._createAt(this.start),r=i.parent;i.path.length>n+1;){var o=r.maxOffset-i.offset;0!==o&&t.push(new e(i,i.getShiftedBy(o))),i.path=i.path.slice(0,-1),i.offset++,r=r.parent}for(;i.path.length<=this.end.path.length;){var a=this.end.path[i.path.length-1],s=a-i.offset;0!==s&&t.push(new e(i,i.getShiftedBy(s))),i.offset=a,i.path.push(0)}return t}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new Qa(e)}},{key:"getItems",value:a.mark((function e(){var t,n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=s.length>0&&void 0!==s[0]?s[0]:{},t.boundaries=this,t.ignoreElementEnd=!0,n=new Qa(t),i=k(n),e.prev=4,i.s();case 6:if((r=i.n()).done){e.next=12;break}return o=r.value,e.next=10,o.item;case 10:e.next=6;break;case 12:e.next=17;break;case 14:e.prev=14,e.t0=e["catch"](4),i.e(e.t0);case 17:return e.prev=17,i.f(),e.finish(17);case 20:case"end":return e.stop()}}),e,this,[[4,14,17,20]])}))},{key:"getPositions",value:a.mark((function e(){var t,n,i,r,o,s=arguments;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return t=s.length>0&&void 0!==s[0]?s[0]:{},t.boundaries=this,n=new Qa(t),e.next=5,n.position;case 5:i=k(n),e.prev=6,i.s();case 8:if((r=i.n()).done){e.next=14;break}return o=r.value,e.next=12,o.nextPosition;case 12:e.next=8;break;case 14:e.next=19;break;case 16:e.prev=16,e.t0=e["catch"](6),i.e(e.t0);case 19:return e.prev=19,i.f(),e.finish(19);case 22:case"end":return e.stop()}}),e,this,[[6,16,19,22]])}))},{key:"getTransformedByOperation",value:function(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)]}return[new e(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(t){var n,i=[new e(this.start,this.end)],r=k(t);try{for(r.s();!(n=r.n()).done;)for(var o=n.value,a=0;a<i.length;a++){var s=i[a].getTransformedByOperation(o);i.splice.apply(i,[a,1].concat(u(s))),a+=s.length-1}}catch(f){r.e(f)}finally{r.f()}for(var l=0;l<i.length;l++)for(var c=i[l],d=l+1;d<i.length;d++){var h=i[d];(c.containsRange(h)||h.containsRange(c)||c.isEqual(h))&&i.splice(d,1)}return i}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return e&&e.is("element")&&e===t?e:null}},{key:"toJSON",value:function(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}},{key:"_getTransformedByMoveOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.sourcePosition,i=e.howMany,r=e.targetPosition;return this._getTransformedByMove(n,r,i,t)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),i=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(i=this.end.getShiftedBy(1)),n.root!=i.root&&(i=this.end.getShiftedBy(-1)),new e(n,i)}},{key:"_getTransformedByMergeOperation",value:function(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new e(this.start);var n=this.start._getTransformedByMergeOperation(t),i=this.end._getTransformedByMergeOperation(t);return n.root!=i.root&&(i=this.end.getShiftedBy(-1)),n.isAfter(i)?(t.sourcePosition.isBefore(t.targetPosition)?(n=Xa._createAt(i),n.offset=0):(t.deletionPosition.isEqual(n)||(i=t.deletionPosition),n=t.targetPosition),new e(n,i)):new e(n,i)}},{key:"_getTransformedByInsertion",value:function(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(i&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var r=new e(this.start,this.end);return r.start=r.start._getTransformedByInsertion(t,n),r.end=r.end._getTransformedByInsertion(t,n),[r]}},{key:"_getTransformedByMove",value:function(t,n,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed){var o=this.start._getTransformedByMove(t,n,i);return[new e(o)]}var a,s=e._createFromPositionAndShift(t,i),l=n._getTransformedByDeletion(t,i);if(this.containsPosition(n)&&!r&&(s.containsPosition(this.start)||s.containsPosition(this.end))){var c=this.start._getTransformedByMove(t,n,i),u=this.end._getTransformedByMove(t,n,i);return[new e(c,u)]}var d=this.getDifference(s),h=null,f=this.getIntersection(s);if(1==d.length?h=new e(d[0].start._getTransformedByDeletion(t,i),d[0].end._getTransformedByDeletion(t,i)):2==d.length&&(h=new e(this.start,this.end._getTransformedByDeletion(t,i))),a=h?h._getTransformedByInsertion(l,i,null!==f||r):[],f){var v=new e(f.start._getCombined(s.start,l),f.end._getCombined(s.start,l));2==a.length?a.splice(1,0,v):a.push(v)}return a}},{key:"_getTransformedByDeletion",value:function(t,n){var i=this.start._getTransformedByDeletion(t,n),r=this.end._getTransformedByDeletion(t,n);return null==i&&null==r?null:(null==i&&(i=t),null==r&&(r=t),new e(i,r))}},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==ii(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}}],[{key:"_createFromPositionAndShift",value:function(e,t){var n=e,i=e.getShiftedBy(t);return t>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(e){return new this(Xa._createAt(e,0),Xa._createAt(e,e.maxOffset))}},{key:"_createOn",value:function(e){return this._createFromPositionAndShift(Xa._createBefore(e),e.offsetSize)}},{key:"_createFromRanges",value:function(e){if(0===e.length)throw new jn.b("range-create-from-ranges-empty-array: At least one range has to be passed.",null);if(1==e.length)return e[0].clone();var t=e[0];e.sort((function(e,t){return e.start.isAfter(t.start)?1:-1}));var n=e.indexOf(t),i=new this(t.start,t.end);if(n>0)for(var r=n-1;e[r].end.isEqual(i.start);r++)i.start=Xa._createAt(e[r].start);for(var o=n+1;o<e.length&&e[o].start.isEqual(i.end);o++)i.end=Xa._createAt(e[o].end);return i}},{key:"fromJSON",value:function(e,t){return new this(Xa.fromJSON(e.start,t),Xa.fromJSON(e.end,t))}}]),e}(),rs=function(){function e(){var t=this;w(this,e),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(function(e,n){if(!n.viewPosition){var i=t._modelToViewMapping.get(n.modelPosition.parent);n.viewPosition=t.findPositionIn(i,n.modelPosition.offset)}}),{priority:"low"}),this.on("viewToModelPosition",(function(e,n){if(!n.modelPosition){var i=t.findMappedViewAncestor(n.viewPosition),r=t._viewToModelMapping.get(i),o=t._toModelOffset(n.viewPosition.parent,n.viewPosition.offset,i);n.modelPosition=Xa._createAt(r,o)}}),{priority:"low"})}return x(e,[{key:"bindElements",value:function(e,t){this._modelToViewMapping.set(e,t),this._viewToModelMapping.set(t,e)}},{key:"unbindViewElement",value:function(e){var t=this.toModelElement(e);if(this._viewToModelMapping.delete(e),this._elementToMarkerNames.has(e)){var n,i=k(this._elementToMarkerNames.get(e));try{for(i.s();!(n=i.n()).done;){var r=n.value;this._unboundMarkerNames.add(r)}}catch(o){i.e(o)}finally{i.f()}}this._modelToViewMapping.get(t)==e&&this._modelToViewMapping.delete(t)}},{key:"unbindModelElement",value:function(e){var t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}},{key:"bindElementToMarker",value:function(e,t){var n=this._markerNameToElements.get(t)||new Set;n.add(e);var i=this._elementToMarkerNames.get(e)||new Set;i.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,i)}},{key:"unbindElementFromMarkerName",value:function(e,t){var n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));var i=this._elementToMarkerNames.get(e);i&&(i.delete(t),0==i.size&&this._elementToMarkerNames.delete(e))}},{key:"flushUnboundMarkerNames",value:function(){var e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set}},{key:"toModelElement",value:function(e){return this._viewToModelMapping.get(e)}},{key:"toViewElement",value:function(e){return this._modelToViewMapping.get(e)}},{key:"toModelRange",value:function(e){return new is(this.toModelPosition(e.start),this.toModelPosition(e.end))}},{key:"toViewRange",value:function(e){return new Ar(this.toViewPosition(e.start),this.toViewPosition(e.end))}},{key:"toModelPosition",value:function(e){var t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}},{key:"toViewPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1},n={modelPosition:e,mapper:this,isPhantom:t.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition}},{key:"markerNameToElements",value:function(e){var t=this._markerNameToElements.get(e);if(!t)return null;var n,i=new Set,r=k(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is("attributeElement")){var a,s=k(o.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var l=a.value;i.add(l)}}catch(c){s.e(c)}finally{s.f()}}else i.add(o)}}catch(c){r.e(c)}finally{r.f()}return i}},{key:"registerViewToModelLength",value:function(e,t){this._viewToModelLengthCallbacks.set(e,t)}},{key:"findMappedViewAncestor",value:function(e){for(var t=e.parent;!this._viewToModelMapping.has(t);)t=t.parent;return t}},{key:"_toModelOffset",value:function(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;for(var i=0,r=0;r<t;r++)i+=this.getModelLength(e.getChild(r));return i}},{key:"getModelLength",value:function(e){if(this._viewToModelLengthCallbacks.get(e.name))return this._viewToModelLengthCallbacks.get(e.name)(e);if(this._viewToModelMapping.has(e))return 1;if(e.is("$text"))return e.data.length;if(e.is("uiElement"))return 0;var t,n=0,i=k(e.getChildren());try{for(i.s();!(t=i.n()).done;){var r=t.value;n+=this.getModelLength(r)}}catch(o){i.e(o)}finally{i.f()}return n}},{key:"findPositionIn",value:function(e,t){var n,i=0,r=0,o=0;if(e.is("$text"))return new Cr(e,t);for(;r<t;)n=e.getChild(o),i=this.getModelLength(n),r+=i,o++;return r==t?this._moveViewPositionToTextNode(new Cr(e,o)):this.findPositionIn(n,t-(r-i))}},{key:"_moveViewPositionToTextNode",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;return t instanceof ai?new Cr(t,t.data.length):n instanceof ai?new Cr(n,0):e}}]),e}();Kn(rs,Fn);var os=function(){function e(){w(this,e),this._consumable=new Map,this._textProxyRegistry=new Map}return x(e,[{key:"add",value:function(e,t){t=as(t),e instanceof Ga&&(e=this._getSymbolForTextProxy(e)),this._consumable.has(e)||this._consumable.set(e,new Map),this._consumable.get(e).set(t,!0)}},{key:"consume",value:function(e,t){return t=as(t),e instanceof Ga&&(e=this._getSymbolForTextProxy(e)),!!this.test(e,t)&&(this._consumable.get(e).set(t,!1),!0)}},{key:"test",value:function(e,t){t=as(t),e instanceof Ga&&(e=this._getSymbolForTextProxy(e));var n=this._consumable.get(e);if(void 0===n)return null;var i=n.get(t);return void 0===i?null:i}},{key:"revert",value:function(e,t){t=as(t),e instanceof Ga&&(e=this._getSymbolForTextProxy(e));var n=this.test(e,t);return!1===n?(this._consumable.get(e).set(t,!0),!0):!0!==n&&null}},{key:"_getSymbolForTextProxy",value:function(e){var t=null,n=this._textProxyRegistry.get(e.startOffset);if(n){var i=n.get(e.endOffset);i&&(t=i.get(e.parent))}return t||(t=this._addSymbolForTextProxy(e.startOffset,e.endOffset,e.parent)),t}},{key:"_addSymbolForTextProxy",value:function(e,t,n){var i,r,o=Symbol("textProxySymbol");return i=this._textProxyRegistry.get(e),i||(i=new Map,this._textProxyRegistry.set(e,i)),r=i.get(t),r||(r=new Map,i.set(t,r)),r.set(n,o),o}}]),e}();function as(e){var t=e.split(":");return t.length>1?t[0]+":"+t[1]:t[0]}var ss=function(){function e(t){w(this,e),this.conversionApi=Object.assign({dispatcher:this},t)}return x(e,[{key:"convertChanges",value:function(e,t,n){var i,r=k(e.getMarkersToRemove());try{for(r.s();!(i=r.n()).done;){var o=i.value;this.convertMarkerRemove(o.name,o.range,n)}}catch(m){r.e(m)}finally{r.f()}var a,s=k(e.getChanges());try{for(s.s();!(a=s.n()).done;){var l=a.value;"insert"==l.type?this.convertInsert(is._createFromPositionAndShift(l.position,l.length),n):"remove"==l.type?this.convertRemove(l.position,l.length,l.name,n):this.convertAttribute(l.range,l.attributeKey,l.attributeOldValue,l.attributeNewValue,n)}}catch(m){s.e(m)}finally{s.f()}var c,u=k(this.conversionApi.mapper.flushUnboundMarkerNames());try{for(u.s();!(c=u.n()).done;){var d=c.value,h=t.get(d).getRange();this.convertMarkerRemove(d,h,n),this.convertMarkerAdd(d,h,n)}}catch(m){u.e(m)}finally{u.f()}var f,v=k(e.getMarkersToAdd());try{for(v.s();!(f=v.n()).done;){var p=f.value;this.convertMarkerAdd(p.name,p.range,n)}}catch(m){v.e(m)}finally{v.f()}}},{key:"convertInsert",value:function(e,t){this.conversionApi.writer=t,this.conversionApi.consumable=this._createInsertConsumable(e);var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.item,a={item:o,range:is._createFromPositionAndShift(r.previousPosition,r.length)};this._testAndFire("insert",a);var s,l=k(o.getAttributeKeys());try{for(l.s();!(s=l.n()).done;){var c=s.value;a.attributeKey=c,a.attributeOldValue=null,a.attributeNewValue=o.getAttribute(c),this._testAndFire("attribute:"+c,a)}}catch(u){l.e(u)}finally{l.f()}}}catch(u){i.e(u)}finally{i.f()}this._clearConversionApi()}},{key:"convertRemove",value:function(e,t,n,i){this.conversionApi.writer=i,this.fire("remove:"+n,{position:e,length:t},this.conversionApi),this._clearConversionApi()}},{key:"convertAttribute",value:function(e,t,n,i,r){this.conversionApi.writer=r,this.conversionApi.consumable=this._createConsumableForRange(e,"attribute:"+t);var o,a=k(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,l={item:s.item,range:is._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:t,attributeOldValue:n,attributeNewValue:i};this._testAndFire("attribute:"+t,l)}}catch(c){a.e(c)}finally{a.f()}this._clearConversionApi()}},{key:"convertSelection",value:function(e,t,n){var i=Array.from(t.getMarkersAtPosition(e.getFirstPosition()));if(this.conversionApi.writer=n,this.conversionApi.consumable=this._createSelectionConsumable(e,i),this.fire("selection",{selection:e},this.conversionApi),e.isCollapsed){var r,o=k(i);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.getRange();if(ls(e.getFirstPosition(),a,this.conversionApi.mapper)){var l={item:e,markerName:a.name,markerRange:s};this.conversionApi.consumable.test(e,"addMarker:"+a.name)&&this.fire("addMarker:"+a.name,l,this.conversionApi)}}}catch(f){o.e(f)}finally{o.f()}var c,u=k(e.getAttributeKeys());try{for(u.s();!(c=u.n()).done;){var d=c.value,h={item:e,range:e.getFirstRange(),attributeKey:d,attributeOldValue:null,attributeNewValue:e.getAttribute(d)};this.conversionApi.consumable.test(e,"attribute:"+h.attributeKey)&&this.fire("attribute:"+h.attributeKey+":$text",h,this.conversionApi)}}catch(f){u.e(f)}finally{u.f()}this._clearConversionApi()}}},{key:"convertMarkerAdd",value:function(e,t,n){if(t.root.document&&"$graveyard"!=t.root.rootName){this.conversionApi.writer=n;var i="addMarker:"+e,r=new os;if(r.add(t,i),this.conversionApi.consumable=r,this.fire(i,{markerName:e,markerRange:t},this.conversionApi),r.test(t,i)){this.conversionApi.consumable=this._createConsumableForRange(t,i);var o,a=k(t.getItems());try{for(a.s();!(o=a.n()).done;){var s=o.value;if(this.conversionApi.consumable.test(s,i)){var l={item:s,range:is._createOn(s),markerName:e,markerRange:t};this.fire(i,l,this.conversionApi)}}}catch(c){a.e(c)}finally{a.f()}this._clearConversionApi()}}}},{key:"convertMarkerRemove",value:function(e,t,n){t.root.document&&"$graveyard"!=t.root.rootName&&(this.conversionApi.writer=n,this.fire("removeMarker:"+e,{markerName:e,markerRange:t},this.conversionApi),this._clearConversionApi())}},{key:"_createInsertConsumable",value:function(e){var t,n=new os,i=k(e);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.item;n.add(o,"insert");var a,s=k(o.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var l=a.value;n.add(o,"attribute:"+l)}}catch(c){s.e(c)}finally{s.f()}}}catch(c){i.e(c)}finally{i.f()}return n}},{key:"_createConsumableForRange",value:function(e,t){var n,i=new os,r=k(e.getItems());try{for(r.s();!(n=r.n()).done;){var o=n.value;i.add(o,t)}}catch(a){r.e(a)}finally{r.f()}return i}},{key:"_createSelectionConsumable",value:function(e,t){var n=new os;n.add(e,"selection");var i,r=k(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;n.add(e,"addMarker:"+o.name)}}catch(c){r.e(c)}finally{r.f()}var a,s=k(e.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var l=a.value;n.add(e,"attribute:"+l)}}catch(c){s.e(c)}finally{s.f()}return n}},{key:"_testAndFire",value:function(e,t){if(this.conversionApi.consumable.test(t.item,e)){var n=t.item.name||"$text";this.fire(e+":"+n,t,this.conversionApi)}}},{key:"_clearConversionApi",value:function(){delete this.conversionApi.writer,delete this.conversionApi.consumable}}]),e}();function ls(e,t,n){var i=t.getRange(),r=Array.from(e.getAncestors());return r.shift(),r.reverse(),!r.some((function(e){if(i.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}Kn(ss,Fn);var cs=function(){function e(t,n,i){w(this,e),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,t&&this.setTo(t,n,i)}return x(e,[{key:"isEqual",value:function(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=k(this._ranges);try{for(n.s();!(t=n.n()).done;){var i,r=t.value,o=!1,a=k(e._ranges);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(r.isEqual(s)){o=!0;break}}}catch(l){a.e(l)}finally{a.f()}if(!o)return!1}}catch(l){n.e(l)}finally{n.f()}return!0}},{key:"getRanges",value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=k(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,new is(i.start,i.end);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=k(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.start.isBefore(t.start)||(t=i)}}catch(r){n.e(r)}finally{n.f()}return t?new is(t.start,t.end):null}},{key:"getLastRange",value:function(){var e,t=null,n=k(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;t&&!i.end.isAfter(t.end)||(t=i)}}catch(r){n.e(r)}finally{n.f()}return t?new is(t.start,t.end):null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"setTo",value:function(t,n,i){if(null===t)this._setRanges([]);else if(t instanceof e)this._setRanges(t.getRanges(),t.isBackward);else if(t&&"function"==typeof t.getRanges)this._setRanges(t.getRanges(),t.isBackward);else if(t instanceof is)this._setRanges([t],!!n&&!!n.backward);else if(t instanceof Xa)this._setRanges([new is(t)]);else if(t instanceof qa){var r,o=!!i&&!!i.backward;if("in"==n)r=is._createIn(t);else if("on"==n)r=is._createOn(t);else{if(void 0===n)throw new jn.b("model-selection-setTo-required-second-parameter: selection.setTo requires the second parameter when the first parameter is a node.",[this,t]);r=new is(Xa._createAt(t,n))}this._setRanges([r],o)}else{if(!Gn(t))throw new jn.b("model-selection-setTo-not-selectable: Cannot set the selection to the given place.",[this,t]);this._setRanges(t,n&&!!n.backward)}}},{key:"_setRanges",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(e=Array.from(e)).some((function(n){if(!(n instanceof is))throw new jn.b("model-selection-set-ranges-not-range: Selection range set to an object that is not an instance of model.Range.",[t,e]);return t._ranges.every((function(e){return!e.isEqual(n)}))}));if(e.length!==this._ranges.length||i){this._removeAllRanges();var r,o=k(e);try{for(o.s();!(r=o.n()).done;){var a=r.value;this._pushRange(a)}}catch(s){o.e(s)}finally{o.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new jn.b("model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.",[this,e]);var n=Xa._createAt(e,t);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new is(n,i)),this._lastRangeBackward=!0):(this._pushRange(new is(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"removeAttribute",value:function(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"setAttribute",value:function(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(e){return"selection"===e||"model:selection"===e}},{key:"getSelectedBlocks",value:a.mark((function e(){var t,n,i,r,o,s,l,c,u,d;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=new WeakSet,n=k(this.getRanges()),e.prev=2,n.s();case 4:if((i=n.n()).done){e.next=38;break}if(r=i.value,o=hs(r.start,t),e.t0=o&&fs(o,r),!e.t0){e.next=11;break}return e.next=11,o;case 11:s=k(r.getWalker()),e.prev=12,s.s();case 14:if((l=s.n()).done){e.next=23;break}if(c=l.value,u=c.item,e.t1="elementEnd"==c.type&&ds(u,t,r),!e.t1){e.next=21;break}return e.next=21,u;case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t2=e["catch"](12),s.e(e.t2);case 28:return e.prev=28,s.f(),e.finish(28);case 31:if(d=hs(r.end,t),e.t3=d&&!r.end.isTouching(Xa._createAt(d,0))&&fs(d,r),!e.t3){e.next=36;break}return e.next=36,d;case 36:e.next=4;break;case 38:e.next=43;break;case 40:e.prev=40,e.t4=e["catch"](2),n.e(e.t4);case 43:return e.prev=43,n.f(),e.finish(43);case 46:case"end":return e.stop()}}),e,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,t=Xa._createAt(e,0),n=Xa._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(e){this._checkRange(e),this._ranges.push(new is(e.start,e.end))}},{key:"_checkRange",value:function(e){for(var t=0;t<this._ranges.length;t++)if(e.isIntersecting(this._ranges[t]))throw new jn.b("model-selection-range-intersects: Trying to add a range that intersects with another range in the selection.",[this,e],{addedRange:e,intersectingRange:this._ranges[t]})}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}},{key:"anchor",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}}]),e}();function us(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&e.parent)}function ds(e,t,n){return us(e,t)&&fs(e,n)}function hs(e,t){var n=e.parent.root.document.model.schema,i=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),r=!1,o=i.find((function(e){return!r&&(r=n.isLimit(e),!r&&us(e,t))}));return i.forEach((function(e){return t.add(e)})),o}function fs(e,t){var n=function(e){for(var t=e.root.document.model.schema,n=e.parent;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(is._createOn(n),!0)}Kn(cs,Fn);var vs=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e,i),ps.call(P(r)),r}return x(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e}},{key:"toRange",value:function(){return new is(this.start,this.end)}}],[{key:"fromRange",value:function(e){return new n(e.start,e.end)}}]),n}(is);function ps(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var i=n[0];i.isDocumentOperation&&ms.call(e,i)}),{priority:"low"})}function ms(e){var t=this.getTransformedByOperation(e),n=is._createFromRanges(t),i=!n.isEqual(this),r=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),o=null;if(i){"$graveyard"==n.root.rootName&&(o="remove"==e.type?e.sourcePosition:e.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else r&&this.fire("change:content",this.toRange(),{deletionPosition:o})}Kn(vs,Fn);var gs="selection:",ks=function(){function e(t){w(this,e),this._selection=new bs(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}return x(e,[{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(e){return this._selection.containsEntireContent(e)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(e){return this._selection.getAttribute(e)}},{key:"hasAttribute",value:function(e){return this._selection.hasAttribute(e)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"is",value:function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"_setTo",value:function(e,t,n){this._selection.setTo(e,t,n)}},{key:"_setAttribute",value:function(e,t){this._selection.setAttribute(e,t)}},{key:"_removeAttribute",value:function(e){this._selection.removeAttribute(e)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(e){this._selection.restoreGravity(e)}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}}],[{key:"_getStoreAttributeKey",value:function(e){return gs+e}},{key:"_isStoreAttributeKey",value:function(e){return e.startsWith(gs)}}]),e}();Kn(ks,Fn);var bs=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this),i.markers=new Jn({idProperty:"name"}),i._model=e.model,i._document=e,i._attributePriority=new Map,i._selectionRestorePosition=null,i._hasChangedRange=!1,i._overriddenGravityRegister=new Set,i.listenTo(i._model,"applyOperation",(function(e,t){var n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==i._ranges.length&&i._selectionRestorePosition&&i._fixGraveyardSelection(i._selectionRestorePosition),i._selectionRestorePosition=null,i._hasChangedRange&&(i._hasChangedRange=!1,i.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),i.on("change:range",(function(){var e,t=k(i.getRanges());try{for(t.s();!(e=t.n()).done;){var n=e.value;if(!i._document._validateSelectionRange(n))throw new jn.b("document-selection-wrong-position: Range from document selection starts or ends at incorrect position.",P(i),{range:n})}}catch(r){t.e(r)}finally{t.f()}})),i.listenTo(i._model.markers,"update",(function(){return i._updateMarkers()})),i.listenTo(i._document,"change",(function(e,t){!function(e,t){var n,i=e.document.differ,r=k(i.getChanges());try{var o=function(){var i=n.value;if("insert"!=i.type)return"continue";var r=i.position.parent;i.length===r.maxOffset&&e.enqueueChange(t,(function(e){var t,n=Array.from(r.getAttributeKeys()).filter((function(e){return e.startsWith(gs)})),i=k(n);try{for(i.s();!(t=i.n()).done;){var o=t.value;e.removeAttribute(o,r)}}catch(a){i.e(a)}finally{i.f()}}))};for(r.s();!(n=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}}(i._model,t)})),i}return x(n,[{key:"destroy",value:function(){for(var e=0;e<this._ranges.length;e++)this._ranges[e].detach();this.stopListening()}},{key:"getRanges",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(!this._ranges.length){e.next=4;break}return e.delegateYield(l(N(n.prototype),"getRanges",this).call(this),"t0",2);case 2:e.next=6;break;case 4:return e.next=6,this._document._getDefaultRange();case 6:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return l(N(n.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return l(N(n.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange()}},{key:"setTo",value:function(e,t,i){l(N(n.prototype),"setTo",this).call(this,e,t,i),this._updateAttributes(!0),this._updateMarkers()}},{key:"setFocus",value:function(e,t){l(N(n.prototype),"setFocus",this).call(this,e,t),this._updateAttributes(!0),this._updateMarkers()}},{key:"setAttribute",value:function(e,t){if(this._setAttribute(e,t)){var n=[e];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}},{key:"removeAttribute",value:function(e){if(this._removeAttribute(e)){var t=[e];this.fire("change:attribute",{attributeKeys:t,directChange:!0})}}},{key:"overrideGravity",value:function(){var e=Ln();return this._overriddenGravityRegister.add(e),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),e}},{key:"restoreGravity",value:function(e){if(!this._overriddenGravityRegister.has(e))throw new jn.b("document-selection-gravity-wrong-restore: Attempting to restore the selection gravity for an unknown UID.",this,{uid:e});this._overriddenGravityRegister.delete(e),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(e){var t=this._prepareRange(e);t&&this._ranges.push(t)}},{key:"_prepareRange",value:function(e){var t=this;if(this._checkRange(e),e.root!=this._document.graveyard){var n=vs.fromRange(e);return n.on("change:range",(function(e,i,r){if(t._hasChangedRange=!0,n.root==t._document.graveyard){t._selectionRestorePosition=r.deletionPosition;var o=t._ranges.indexOf(n);t._ranges.splice(o,1),n.detach()}})),n}}},{key:"_updateMarkers",value:function(){var e,t=[],n=!1,i=k(this._model.markers);try{for(i.s();!(e=i.n()).done;){var r,o=e.value,a=o.getRange(),s=k(this.getRanges());try{for(s.s();!(r=s.n()).done;){var l=r.value;a.containsRange(l,!l.isCollapsed)&&t.push(o)}}catch(m){s.e(m)}finally{s.f()}}}catch(m){i.e(m)}finally{i.f()}for(var c=Array.from(this.markers),u=0,d=t;u<d.length;u++){var h=d[u];this.markers.has(h)||(this.markers.add(h),n=!0)}for(var f=0,v=Array.from(this.markers);f<v.length;f++){var p=v[f];t.includes(p)||(this.markers.remove(p),n=!0)}n&&this.fire("change:marker",{oldMarkers:c,directChange:!1})}},{key:"_updateAttributes",value:function(e){var t=li(this._getSurroundingAttributes()),n=li(this.getAttributes());if(e)this._attributePriority=new Map,this._attrs=new Map;else{var i,r=k(this._attributePriority);try{for(r.s();!(i=r.n()).done;){var o=v(i.value,2),a=o[0],s=o[1];"low"==s&&(this._attrs.delete(a),this._attributePriority.delete(a))}}catch(y){r.e(y)}finally{r.f()}}this._setAttributesTo(t);var l,c=[],u=k(this.getAttributes());try{for(u.s();!(l=u.n()).done;){var d=v(l.value,2),h=d[0],f=d[1];n.has(h)&&n.get(h)===f||c.push(h)}}catch(y){u.e(y)}finally{u.f()}var p,m=k(n);try{for(m.s();!(p=m.n()).done;){var g=v(p.value,1),b=g[0];this.hasAttribute(b)||c.push(b)}}catch(y){m.e(y)}finally{m.f()}c.length>0&&this.fire("change:attribute",{attributeKeys:c,directChange:!1})}},{key:"_setAttribute",value:function(e,t){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=i?"normal":"low";return("low"!=r||"normal"!=this._attributePriority.get(e))&&(l(N(n.prototype),"getAttribute",this).call(this,e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,r),!0))}},{key:"_removeAttribute",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=t?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,i),!!l(N(n.prototype),"hasAttribute",this).call(this,e)&&(this._attrs.delete(e),!0))}},{key:"_setAttributesTo",value:function(e){var t,n=new Set,i=k(this.getAttributes());try{for(i.s();!(t=i.n()).done;){var r=v(t.value,2),o=r[0],a=r[1];e.get(o)!==a&&this._removeAttribute(o,!1)}}catch(h){i.e(h)}finally{i.f()}var s,l=k(e);try{for(l.s();!(s=l.n()).done;){var c=v(s.value,2),u=c[0],d=c[1];this._setAttribute(u,d,!1)&&n.add(u)}}catch(h){l.e(h)}finally{l.f()}return n}},{key:"_getStoredAttributes",value:a.mark((function e(){var t,n,i,r,o;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=this.getFirstPosition().parent,!this.isCollapsed||!t.isEmpty){e.next=21;break}n=k(t.getAttributeKeys()),e.prev=3,n.s();case 5:if((i=n.n()).done){e.next=13;break}if(r=i.value,!r.startsWith(gs)){e.next=11;break}return o=r.substr(gs.length),e.next=11,[o,t.getAttribute(r)];case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e["catch"](3),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var e=this.getFirstPosition(),t=this._model.schema,n=null;if(this.isCollapsed){var i=e.textNode?e.textNode:e.nodeBefore,r=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=ys(i)),n||(n=ys(r)),!this.isGravityOverridden&&!n)for(var o=i;o&&!t.isInline(o)&&!n;)o=o.previousSibling,n=ys(o);if(!n)for(var a=r;a&&!t.isInline(a)&&!n;)a=a.nextSibling,n=ys(a);n||(n=this._getStoredAttributes())}else{var s,l=this.getFirstRange(),c=k(l);try{for(c.s();!(s=c.n()).done;){var u=s.value;if(u.item.is("element")&&t.isObject(u.item))break;if("text"==u.type){n=u.item.getAttributes();break}}}catch(d){c.e(d)}finally{c.f()}}return n}},{key:"_fixGraveyardSelection",value:function(e){var t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}},{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:l(N(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return l(N(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return l(N(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}}]),n}(cs);function ys(e){return e instanceof Ga||e instanceof Ya?e.getAttributes():null}var ws=function(){function e(t){w(this,e),this._dispatchers=t}return x(e,[{key:"add",value:function(e){var t,n=k(this._dispatchers);try{for(n.s();!(t=n.n()).done;){var i=t.value;e(i)}}catch(r){n.e(r)}finally{n.f()}return this}}]),e}(),_s=function(e){return Pn(e,5)},xs=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"elementToElement",value:function(e){return this.add(function(e){return(e=_s(e)).view=Ts(e.view,"container"),function(t){var n;t.on("insert:"+e.model,(n=e.view,function(e,t,i){var r=n(t.item,i);if(r&&i.consumable.consume(t.item,"insert")){var o=i.mapper.toViewPosition(t.range.start);i.mapper.bindElements(t.item,r),i.writer.insert(o,r)}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToElement",value:function(e){return this.add(function(e){e=_s(e);var t="attribute:"+(e.model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,i=k(e.model.values);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.view[r]=Ts(e.view[r],"attribute")}}catch(a){i.e(a)}finally{i.f()}}else e.view=Ts(e.view,"attribute");var o=Ps(e);return function(n){n.on(t,function(e){return function(t,n,i){var r=e(n.attributeOldValue,i),o=e(n.attributeNewValue,i);if((r||o)&&i.consumable.consume(n.item,t.name)){var a=i.writer,s=a.document.selection;if(n.item instanceof cs||n.item instanceof ks)a.wrap(s.getFirstRange(),o);else{var l=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&r&&(l=a.unwrap(l,r)),null!==n.attributeNewValue&&o&&a.wrap(l,o)}}}}(o),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){e=_s(e);var t="attribute:"+(e.model.key?e.model.key:e.model);if(e.model.name&&(t+=":"+e.model.name),e.model.values){var n,i=k(e.model.values);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.view[r]=Es(e.view[r])}}catch(a){i.e(a)}finally{i.f()}}else e.view=Es(e.view);var o=Ps(e);return function(n){var i;n.on(t,(i=o,function(e,t,n){var r=i(t.attributeOldValue,n),o=i(t.attributeNewValue,n);if((r||o)&&n.consumable.consume(t.item,e.name)){var s=n.mapper.toViewElement(t.item),l=n.writer;if(!s)throw new jn.b("conversion-attribute-to-attribute-on-text: Trying to convert text node's attribute with attribute-to-attribute converter.",[t,n]);if(null!==t.attributeOldValue&&r)if("class"==r.key){var c,u=Array.isArray(r.value)?r.value:[r.value],d=k(u);try{for(d.s();!(c=d.n()).done;){var h=c.value;l.removeClass(h,s)}}catch(a){d.e(a)}finally{d.f()}}else if("style"==r.key)for(var f=Object.keys(r.value),v=0,p=f;v<p.length;v++){var m=p[v];l.removeStyle(m,s)}else l.removeAttribute(r.key,s);if(null!==t.attributeNewValue&&o)if("class"==o.key){var g,b=Array.isArray(o.value)?o.value:[o.value],y=k(b);try{for(y.s();!(g=y.n()).done;){var w=g.value;l.addClass(w,s)}}catch(a){y.e(a)}finally{y.f()}}else if("style"==o.key)for(var _=Object.keys(o.value),x=0,C=_;x<C.length;x++){var A=C[x];l.setStyle(A,o.value[A],s)}else l.setAttribute(o.key,o.value,s)}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToElement",value:function(e){return this.add(function(e){return(e=_s(e)).view=Ts(e.view,"ui"),function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,i){t.isOpening=!0;var r=n(t,i);t.isOpening=!1;var o=n(t,i);if(r&&o){var a=t.markerRange;if(!a.isCollapsed||i.consumable.consume(a,e.name)){var s,l=k(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(!i.consumable.consume(c.item,e.name))return}}catch(h){l.e(h)}finally{l.f()}var u=i.mapper,d=i.writer;d.insert(u.toViewPosition(a.start),r),i.mapper.bindElementToMarker(r,t.markerName),a.isCollapsed||(d.insert(u.toViewPosition(a.end),o),i.mapper.bindElementToMarker(o,t.markerName)),e.stop()}}}),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,(e.view,function(e,t,n){var i=n.mapper.markerNameToElements(t.markerName);if(i){var r,o=k(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;n.mapper.unbindElementFromMarkerName(a,t.markerName),n.writer.clear(n.writer.createRangeOn(a),a)}}catch(s){o.e(s)}finally{o.f()}n.writer.clearClonedElementsGroup(t.markerName),e.stop()}}),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToHighlight",value:function(e){return this.add(function(e){return function(t){var n;t.on("addMarker:"+e.model,(n=e.view,function(e,t,i){if(t.item&&(t.item instanceof cs||t.item instanceof ks||t.item.is("$textProxy"))){var r=Ss(n,t,i);if(r&&i.consumable.consume(t.item,e.name)){var o=i.writer,a=Cs(o,r),s=o.document.selection;if(t.item instanceof cs||t.item instanceof ks)o.wrap(s.getFirstRange(),a,s);else{var l,c=i.mapper.toViewRange(t.range),u=o.wrap(c,a),d=k(u.getItems());try{for(d.s();!(l=d.n()).done;){var h=l.value;if(h.is("attributeElement")&&h.isSimilar(a)){i.mapper.bindElementToMarker(h,t.markerName);break}}}catch(f){d.e(f)}finally{d.f()}}}}}),{priority:e.converterPriority||"normal"}),t.on("addMarker:"+e.model,function(e){return function(t,n,i){if(n.item&&n.item instanceof Ja){var r=Ss(e,n,i);if(r&&i.consumable.test(n.item,t.name)){var o=i.mapper.toViewElement(n.item);if(o&&o.getCustomProperty("addHighlight")){i.consumable.consume(n.item,t.name);var a,s=k(is._createIn(n.item));try{for(s.s();!(a=s.n()).done;){var l=a.value;i.consumable.consume(l.item,t.name)}}catch(c){s.e(c)}finally{s.f()}o.getCustomProperty("addHighlight")(o,r,i.writer),i.mapper.bindElementToMarker(o,n.markerName)}}}}}(e.view),{priority:e.converterPriority||"normal"}),t.on("removeMarker:"+e.model,function(e){return function(t,n,i){if(!n.markerRange.isCollapsed){var r=Ss(e,n,i);if(r){var o=Cs(i.writer,r),a=i.mapper.markerNameToElements(n.markerName);if(a){var s,l=k(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;i.mapper.unbindElementFromMarkerName(c,n.markerName),c.is("attributeElement")?i.writer.unwrap(i.writer.createRangeOn(c),o):c.getCustomProperty("removeHighlight")(c,r.id,i.writer)}}catch(u){l.e(u)}finally{l.f()}i.writer.clearClonedElementsGroup(n.markerName),t.stop()}}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}},{key:"markerToData",value:function(e){return this.add(function(e){var t=(e=_s(e)).model;return e.view||(e.view=function(n){return{group:t,name:n.substr(e.model.length+1)}}),function(n){var i;n.on("addMarker:"+t,(i=e.view,function(e,t,n){var r=i(t.markerName,n);if(r){var o=t.markerRange;n.consumable.consume(o,e.name)&&(As(o,!1,n,t,r),As(o,!0,n,t,r),e.stop())}}),{priority:e.converterPriority||"normal"}),n.on("removeMarker:"+t,function(e){return function(t,n,i){var r=e(n.markerName,i);if(r){var o=i.mapper.markerNameToElements(n.markerName);if(o){var a,s=k(o);try{for(s.s();!(a=s.n()).done;){var l=a.value;i.mapper.unbindElementFromMarkerName(l,n.markerName),l.is("containerElement")?(c("data-".concat(r.group,"-start-before"),l),c("data-".concat(r.group,"-start-after"),l),c("data-".concat(r.group,"-end-before"),l),c("data-".concat(r.group,"-end-after"),l)):i.writer.clear(i.writer.createRangeOn(l),l)}}catch(u){s.e(u)}finally{s.f()}i.writer.clearClonedElementsGroup(n.markerName),t.stop()}}function c(e,t){if(t.hasAttribute(e)){var n=new Set(t.getAttribute(e).split(","));n.delete(r.name),0==n.size?i.writer.removeAttribute(e,t):i.writer.setAttribute(e,Array.from(n).join(","),t)}}}}(e.view),{priority:e.converterPriority||"normal"})}}(e))}}]),n}(ws);function Cs(e,t){var n=e.createAttributeElement("span",t.attributes);return t.classes&&n._addClass(t.classes),t.priority&&(n._priority=t.priority),n._id=t.id,n}function As(e,t,n,i,r){var o,a,s=t?e.start:e.end;n.schema.checkChild(s,"$text")?function(e,t,n,i,r){var o="".concat(r.group,"-").concat(t?"start":"end"),a=r.name?{name:r.name}:null,s=n.writer.createUIElement(o,a);n.writer.insert(e,s),n.mapper.bindElementToMarker(s,i.markerName)}(n.mapper.toViewPosition(s),t,n,i,r):(t&&s.nodeAfter||!t&&!s.nodeBefore?(o=s.nodeAfter,a=!0):(o=s.nodeBefore,a=!1),function(e,t,n,i,r,o){var a="data-".concat(o.group,"-").concat(t?"start":"end","-").concat(n?"before":"after"),s=e.hasAttribute(a)?e.getAttribute(a).split(","):[];s.unshift(o.name),i.writer.setAttribute(a,s.join(","),e),i.mapper.bindElementToMarker(e,r.markerName)}(n.mapper.toViewElement(o),t,a,n,i,r))}function Ts(e,t){return"function"==typeof e?e:function(n,i){return function(e,t,n){var i;"string"==typeof e&&(e={name:e});var r=t.writer,o=Object.assign({},e.attributes);if("container"==n)i=r.createContainerElement(e.name,o);else if("attribute"==n){var a={priority:e.priority||Mr.DEFAULT_PRIORITY};i=r.createAttributeElement(e.name,o,a)}else i=r.createUIElement(e.name,o);if(e.styles)for(var s=Object.keys(e.styles),l=0,c=s;l<c.length;l++){var u=c[l];r.setStyle(u,e.styles[u],i)}if(e.classes){var d=e.classes;if("string"==typeof d)r.addClass(d,i);else{var h,f=k(d);try{for(f.s();!(h=f.n()).done;){var v=h.value;r.addClass(v,i)}}catch(p){f.e(p)}finally{f.f()}}}return i}(e,i,t)}}function Ps(e){return e.model.values?function(t,n){var i=e.view[t];return i?i(t,n):null}:e.view}function Es(e){return"string"==typeof e?function(t){return{key:e,value:t}}:"object"==R(e)?e.value?function(){return e}:function(t){return{key:e.key,value:t}}:e}function Ss(e,t,n){var i="function"==typeof e?e(t,n):e;return i?(i.priority||(i.priority=10),i.id||(i.id=t.markerName),i):null}function Os(e){var t,n=e.model,i=n.schema,r=n.document,o=k(r.getRootNames());try{for(o.s();!(t=o.n()).done;){var a=t.value,s=r.getRoot(a);if(s.isEmpty&&!i.checkChild(s,"$text")&&i.checkChild(s,"paragraph"))return e.insertElement("paragraph",s),!0}}catch(l){o.e(l)}finally{o.f()}return!1}function Ms(e,t,n){var i=n.createContext(e);return!!n.checkChild(i,"paragraph")&&!!n.checkChild(i.push("paragraph"),t)}function Is(e,t){var n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}var Ns=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"elementToElement",value:function(e){return this.add(Rs(e))}},{key:"elementToAttribute",value:function(e){return this.add(function(e){zs(e=_s(e));var t=js(e,!1),n=Ds(e.view),i=n?"element:"+n:"element";return function(n){n.on(i,t,{priority:e.converterPriority||"low"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){e=_s(e);var t=null;("string"==typeof e.view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});var t,n=e.view.key;return t="class"==n||"style"==n?s({},"class"==n?"classes":"styles",e.view.value):{attributes:s({},n,void 0===e.view.value?/[\s\S]*/:e.view.value)},e.view.name&&(t.name=e.view.name),e.view=t,n}(e)),zs(e,t);var n=js(e,!0);return function(t){t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}},{key:"elementToMarker",value:function(e){return console.warn(Object(jn.a)("upcast-helpers-element-to-marker-deprecated: The UpcastHelpers#elementToMarker() method was deprecated and will be removed in the near future. Please use UpcastHelpers#dataToMarker() instead.")),this.add(function(e){return function(e){var t=e.model;e.model=function(e,n){var i="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":i})}}(e=_s(e)),Rs(e)}(e))}},{key:"dataToMarker",value:function(e){return this.add(function(e){(e=_s(e)).model||(e.model=function(t){return t?e.view+":"+t:e.view});var t=Ls(Vs(e,"start")),n=Ls(Vs(e,"end"));return function(i){i.on("element:"+e.view+"-start",t,{priority:e.converterPriority||"normal"}),i.on("element:"+e.view+"-end",n,{priority:e.converterPriority||"normal"});var r=zn.get("low"),o=zn.get("highest"),a=zn.get(e.converterPriority)/o;i.on("element",function(e){return function(t,n,i){var r="data-"+e.view;function o(t,r){var o,a=k(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=e.model(s,i),c=i.writer.createElement("$marker",{"data-name":l});i.writer.insert(c,t),n.modelCursor.isEqual(t)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}catch(u){a.e(u)}finally{a.f()}}n.modelRange||(n=Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor))),i.consumable.consume(n.viewItem,{attributes:r+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(r+"-end-after").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(r+"-start-after").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(r+"-end-before").split(",")),i.consumable.consume(n.viewItem,{attributes:r+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(r+"-start-before").split(","))}}(e),{priority:r+a})}}(e))}}]),n}(ws);function Rs(e){var t=Ls(e=_s(e)),n=Ds(e.view),i=n?"element:"+n:"element";return function(n){n.on(i,t,{priority:e.converterPriority||"normal"})}}function Ds(e){return"string"==typeof e?e:"object"==R(e)&&"string"==typeof e.name?e.name:null}function Ls(e){var t=new ci(e.view);return function(n,i,r){var o=t.match(i.viewItem);if(o){var a=o.match;if(a.name=!0,r.consumable.test(i.viewItem,a)){var s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,i.viewItem,r);s&&r.safeInsert(s,i.modelCursor)&&(r.consumable.consume(i.viewItem,a),r.convertChildren(i.viewItem,s),r.updateConversionResult(s,i))}}}}function zs(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===t||function(e){return e.getAttribute(t)},i="object"!=R(e.model)?e.model:e.model.key,r="object"!=R(e.model)||void 0===e.model.value?n:e.model.value;e.model={key:i,value:r}}function js(e,t){var n=new ci(e.view);return function(i,r,o){var a=n.match(r.viewItem);if(a){var s=e.model.key,l="function"==typeof e.model.value?e.model.value(r.viewItem,o):e.model.value;null!==l&&(function(e,t){var n="function"==typeof e?e(t):e;return!("object"==R(n)&&!Ds(n))&&(!n.classes&&!n.attributes&&!n.styles)}(e.view,r.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(r.viewItem,a.match)&&(r.modelRange||(r=Object.assign(r,o.convertChildren(r.viewItem,r.modelCursor))),function(e,t,n,i){for(var r=!1,o=0,a=Array.from(e.getItems({shallow:n}));o<a.length;o++){var s=a[o];i.schema.checkAttribute(s,t.key)&&(i.writer.setAttribute(t.key,t.value,s),r=!0)}return r}(r.modelRange,{key:s,value:l},t,o)&&o.consumable.consume(r.viewItem,a.match)))}}}function Vs(e,t){var n={};return n.view=e.view+"-"+t,n.model=function(t,n){var i=t.getAttribute("name"),r=e.model(i,n);return n.writer.createElement("$marker",{"data-name":r})},n}var Bs=function(){function e(t,n){var i=this;w(this,e),this.model=t,this.view=new Wa(n),this.mapper=new rs,this.downcastDispatcher=new ss({mapper:this.mapper,schema:t.schema});var r=this.model.document,o=r.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",(function(){i.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(function(){i.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(r,"change",(function(){i.view.change((function(e){i.downcastDispatcher.convertChanges(r.differ,a,e),i.downcastDispatcher.convertSelection(o,a,e)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(e,t){return function(n,i){var r,o=i.newSelection,a=[],s=k(o.getRanges());try{for(s.s();!(r=s.n()).done;){var l=r.value;a.push(t.toModelRange(l))}}catch(u){s.e(u)}finally{s.f()}var c=e.createSelection(a,{backward:o.isBackward});c.isEqual(e.document.selection)||e.change((function(e){e.setSelection(c)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var i=n.writer,r=n.mapper.toViewPosition(t.range.start),o=i.createText(t.item.data);i.insert(r,o)}}),{priority:"lowest"}),this.downcastDispatcher.on("remove",(function(e,t,n){var i,r=n.mapper.toViewPosition(t.position),o=t.position.getShiftedBy(t.length),a=n.mapper.toViewPosition(o,{isPhantom:!0}),s=n.writer.createRange(r,a),l=n.writer.remove(s.getTrimmed()),c=k(n.writer.createRangeIn(l).getItems());try{for(c.s();!(i=c.n()).done;){var u=i.value;n.mapper.unbindViewElement(u)}}catch(d){c.e(d)}finally{c.f()}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var i,r=n.writer,o=r.document.selection,a=k(o.getRanges());try{for(a.s();!(i=a.n()).done;){var s=i.value;s.isCollapsed&&s.end.parent.isAttached()&&n.writer.mergeAttributes(s.start)}}catch(l){a.e(l)}finally{a.f()}r.setSelection(null)}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var i=t.selection;if(!i.isCollapsed&&n.consumable.consume(i,"selection")){var r,o=[],a=k(i.getRanges());try{for(a.s();!(r=a.n()).done;){var s=r.value,l=n.mapper.toViewRange(s);o.push(l)}}catch(c){a.e(c)}finally{a.f()}n.writer.setSelection(o,{backward:i.isBackward})}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(e,t,n){var i=t.selection;if(i.isCollapsed&&n.consumable.consume(i,"selection")){var r=n.writer,o=i.getFirstPosition(),a=n.mapper.toViewPosition(o),s=r.breakAttributes(a);r.setSelection(s)}}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((function(e){if("$graveyard"==e.rootName)return null;var t=new _r(i.view.document,e.name);return t.rootName=e.rootName,i.mapper.bindElements(e,t),t}))}return x(e,[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}}]),e}();Kn(Bs,vr);var Fs=function(){function e(){w(this,e),this._commands=new Map}return x(e,[{key:"add",value:function(e,t){this._commands.set(e,t)}},{key:"get",value:function(e){return this._commands.get(e)}},{key:"execute",value:function(e){var t=this.get(e);if(!t)throw new jn.b("commandcollection-command-not-found: Command does not exist.",this,{commandName:e});for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t.execute.apply(t,i)}},{key:"names",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"commands",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:Symbol.iterator,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var e,t=k(this.commands());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.destroy()}}catch(i){t.e(i)}finally{t.f()}}}]),e}(),Us=function(){function e(){w(this,e),this._consumables=new Map}return x(e,[{key:"add",value:function(e,t){var n;e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):(this._consumables.has(e)?n=this._consumables.get(e):(n=new Hs(e),this._consumables.set(e,n)),n.add(t))}},{key:"test",value:function(e,t){var n=this._consumables.get(e);return void 0===n?null:e.is("$text")||e.is("documentFragment")?n:n.test(t)}},{key:"consume",value:function(e,t){return!!this.test(e,t)&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!1):this._consumables.get(e).consume(t),!0)}},{key:"revert",value:function(e,t){var n=this._consumables.get(e);void 0!==n&&(e.is("$text")||e.is("documentFragment")?this._consumables.set(e,!0):n.revert(t))}}],[{key:"consumablesFromElement",value:function(e){var t,n={element:e,name:!0,attributes:[],classes:[],styles:[]},i=e.getAttributeKeys(),r=k(i);try{for(r.s();!(t=r.n()).done;){var o=t.value;"style"!=o&&"class"!=o&&n.attributes.push(o)}}catch(v){r.e(v)}finally{r.f()}var a,s=e.getClassNames(),l=k(s);try{for(l.s();!(a=l.n()).done;){var c=a.value;n.classes.push(c)}}catch(v){l.e(v)}finally{l.f()}var u,d=e.getStyleNames(),h=k(d);try{for(h.s();!(u=h.n()).done;){var f=u.value;n.styles.push(f)}}catch(v){h.e(v)}finally{h.f()}return n}},{key:"createFrom",value:function(t,n){if(n||(n=new e(t)),t.is("$text"))return n.add(t),n;t.is("element")&&n.add(t,e.consumablesFromElement(t)),t.is("documentFragment")&&n.add(t);var i,r=k(t.getChildren());try{for(r.s();!(i=r.n()).done;){var o=i.value;n=e.createFrom(o,n)}}catch(a){r.e(a)}finally{r.f()}return n}}]),e}(),Hs=function(){function e(t){w(this,e),this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}return x(e,[{key:"add",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._add(t,e[t])}},{key:"test",value:function(e){if(e.name&&!this._canConsumeName)return this._canConsumeName;for(var t in this._consumables)if(t in e){var n=this._test(t,e[t]);if(!0!==n)return n}return!0}},{key:"consume",value:function(e){for(var t in e.name&&(this._canConsumeName=!1),this._consumables)t in e&&this._consume(t,e[t])}},{key:"revert",value:function(e){for(var t in e.name&&(this._canConsumeName=!0),this._consumables)t in e&&this._revert(t,e[t])}},{key:"_add",value:function(e,t){var n,i=Xe(t)?t:[t],r=this._consumables[e],o=k(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"===e&&("class"===a||"style"===a))throw new jn.b("viewconsumable-invalid-attribute: Classes and styles should be handled separately.",this);if(r.set(a,!0),"styles"===e){var s,l=k(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(l.s();!(s=l.n()).done;){var c=s.value;r.set(c,!0)}}catch(u){l.e(u)}finally{l.f()}}}}catch(u){o.e(u)}finally{o.f()}}},{key:"_test",value:function(e,t){var n,i=Xe(t)?t:[t],r=this._consumables[e],o=k(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a){var s=r.get(a);if(void 0===s)return null;if(!s)return!1}else{var l="class"==a?"classes":"styles",c=this._test(l,u(this._consumables[l].keys()));if(!0!==c)return c}}}catch(d){o.e(d)}finally{o.f()}return!0}},{key:"_consume",value:function(e,t){var n,i=Xe(t)?t:[t],r=this._consumables[e],o=k(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a){if(r.set(a,!1),"styles"==e){var s,l=k(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(l.s();!(s=l.n()).done;){var c=s.value;r.set(c,!1)}}catch(h){l.e(h)}finally{l.f()}}}else{var d="class"==a?"classes":"styles";this._consume(d,u(this._consumables[d].keys()))}}}catch(h){o.e(h)}finally{o.f()}}},{key:"_revert",value:function(e,t){var n,i=Xe(t)?t:[t],r=this._consumables[e],o=k(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if("attributes"!==e||"class"!==a&&"style"!==a)!1===r.get(a)&&r.set(a,!0);else{var s="class"==a?"classes":"styles";this._revert(s,u(this._consumables[s].keys()))}}}catch(l){o.e(l)}finally{o.f()}}}]),e}(),$s=function(){function e(){var t=this;w(this,e),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(function(e,t){t[0]=new Ws(t[0])}),{priority:"highest"}),this.on("checkChild",(function(e,n){n[0]=new Ws(n[0]),n[1]=t.getDefinition(n[1])}),{priority:"highest"})}return x(e,[{key:"register",value:function(e,t){if(this._sourceDefinitions[e])throw new jn.b("schema-cannot-register-item-twice: A single item cannot be registered twice in the schema.",this,{itemName:e});this._sourceDefinitions[e]=[Object.assign({},t)],this._clearCache()}},{key:"extend",value:function(e,t){if(!this._sourceDefinitions[e])throw new jn.b("schema-cannot-extend-missing-item: Cannot extend an item which was not registered yet.",this,{itemName:e});this._sourceDefinitions[e].push(Object.assign({},t)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(e){var t;return t="string"==typeof e?e:e.is&&(e.is("$text")||e.is("$textProxy"))?"$text":e.name,this.getDefinitions()[t]}},{key:"isRegistered",value:function(e){return!!this.getDefinition(e)}},{key:"isBlock",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isBlock)}},{key:"isLimit",value:function(e){var t=this.getDefinition(e);return!!t&&!(!t.isLimit&&!t.isObject)}},{key:"isObject",value:function(e){var t=this.getDefinition(e);return!!t&&!!(t.isObject||t.isLimit&&t.isSelectable&&t.isContent)}},{key:"isInline",value:function(e){var t=this.getDefinition(e);return!(!t||!t.isInline)}},{key:"isSelectable",value:function(e){var t=this.getDefinition(e);return!!t&&!(!t.isSelectable&&!t.isObject)}},{key:"isContent",value:function(e){var t=this.getDefinition(e);return!!t&&!(!t.isContent&&!t.isObject)}},{key:"checkChild",value:function(e,t){return!!t&&this._checkContextMatch(t,e)}},{key:"checkAttribute",value:function(e,t){var n=this.getDefinition(e.last);return!!n&&n.allowAttributes.includes(t)}},{key:"checkMerge",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(e instanceof Xa){var n=e.nodeBefore,i=e.nodeAfter;if(!(n instanceof Ja))throw new jn.b("schema-check-merge-no-element-before: The node before the merge position must be an element.",this);if(!(i instanceof Ja))throw new jn.b("schema-check-merge-no-element-after: The node after the merge position must be an element.",this);return this.checkMerge(n,i)}var r,o=k(t.getChildren());try{for(o.s();!(r=o.n()).done;){var a=r.value;if(!this.checkChild(e,a))return!1}}catch(s){o.e(s)}finally{o.f()}return!0}},{key:"addChildCheck",value:function(e){this.on("checkChild",(function(t,n){var i=v(n,2),r=i[0],o=i[1];if(o){var a=e(r,o);"boolean"==typeof a&&(t.stop(),t.return=a)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(e){this.on("checkAttribute",(function(t,n){var i=v(n,2),r=i[0],o=i[1],a=e(r,o);"boolean"==typeof a&&(t.stop(),t.return=a)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(e,t){this._attributeProperties[e]=Object.assign(this.getAttributeProperties(e),t)}},{key:"getAttributeProperties",value:function(e){return this._attributeProperties[e]||{}}},{key:"getLimitElement",value:function(e){var t;for(t=e instanceof Xa?e.parent:(e instanceof is?[e]:Array.from(e.getRanges())).reduce((function(e,t){var n=t.getCommonAncestor();return e?e.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(t)&&t.parent;)t=t.parent;return t}},{key:"checkAttributeInSelection",value:function(e,t){if(e.isCollapsed){var n=[].concat(u(e.getFirstPosition().getAncestors()),[new Ya("",e.getAttributes())]);return this.checkAttribute(n,t)}var i,r=e.getRanges(),o=k(r);try{for(o.s();!(i=o.n()).done;){var a,s=i.value,l=k(s);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(this.checkAttribute(c.item,t))return!0}}catch(d){l.e(d)}finally{l.f()}}}catch(d){o.e(d)}finally{o.f()}return!1}},{key:"getValidRanges",value:a.mark((function e(t,n){var i,r,o;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=a.mark((function e(t){var n,i,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=k(t),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=8;break}return r=i.value,e.delegateYield(r.getMinimalFlatRanges(),"t0",6);case 6:e.next=3;break;case 8:e.next=13;break;case 10:e.prev=10,e.t1=e["catch"](1),n.e(e.t1);case 13:return e.prev=13,n.f(),e.finish(13);case 16:case"end":return e.stop()}}),e,null,[[1,10,13,16]])}))(t),i=k(t),e.prev=2,i.s();case 4:if((r=i.n()).done){e.next=9;break}return o=r.value,e.delegateYield(this._getValidRangesForRange(o,n),"t0",7);case 7:e.next=4;break;case 9:e.next=14;break;case 11:e.prev=11,e.t1=e["catch"](2),i.e(e.t1);case 14:return e.prev=14,i.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(e){var t,n,i=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new is(e);var o=e.getAncestors().reverse().find((function(e){return i.isLimit(e)}))||e.root;"both"!=r&&"backward"!=r||(t=new Qa({boundaries:is._createIn(o),startPosition:e,direction:"backward"})),"both"!=r&&"forward"!=r||(n=new Qa({boundaries:is._createIn(o),startPosition:e}));var s,l=k(a.mark((function e(t,n){var i,r,o;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=!1;case 1:if(i){e.next=18;break}if(i=!0,!t){e.next=9;break}if(r=t.next(),e.t0=r.done,e.t0){e.next=9;break}return i=!1,e.next=9,{walker:t,value:r.value};case 9:if(!n){e.next=16;break}if(o=n.next(),e.t1=o.done,e.t1){e.next=16;break}return i=!1,e.next=16,{walker:n,value:o.value};case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e)}))(t,n));try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c.walker==t?"elementEnd":"elementStart",d=c.value;if(d.type==u&&this.isObject(d.item))return is._createOn(d.item);if(this.checkChild(d.nextPosition,"$text"))return new is(d.nextPosition)}}catch(h){l.e(h)}finally{l.f()}return null}},{key:"findAllowedParent",value:function(e,t){for(var n=e.parent;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(e,t){var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.is("$text"))nl(this,r,t);else{var o,a=is._createIn(r).getPositions(),s=k(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;nl(this,l.nodeBefore||l.parent,t)}}catch(c){s.e(c)}finally{s.f()}}}}catch(c){i.e(c)}finally{i.f()}}},{key:"createContext",value:function(e){return new Ws(e)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var e={},t=this._sourceDefinitions,n=Object.keys(t),i=0,r=n;i<r.length;i++){var o=r[i];e[o]=qs(t[o],o)}for(var a=0,s=n;a<s.length;a++){var l=s[a];Ys(e,l)}for(var c=0,u=n;c<u.length;c++){var d=u[c];Gs(e,d)}for(var h=0,f=n;h<f.length;h++){var v=f[h];Ks(e,v),Js(e,v)}for(var p=0,m=n;p<m.length;p++){var g=m[p];Qs(e,g),Zs(e,g)}this._compiledDefinitions=e}},{key:"_checkContextMatch",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t.length-1,i=t.getItem(n);if(e.allowIn.includes(i.name)){if(0==n)return!0;var r=this.getDefinition(i);return this._checkContextMatch(r,t,n-1)}return!1}},{key:"_getValidRangesForRange",value:a.mark((function e(t,n){var i,r,o,s,l;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:i=t.start,r=t.start,o=k(t.getItems({shallow:!0})),e.prev=2,o.s();case 4:if((s=o.n()).done){e.next=19;break}if(l=s.value,e.t0=l.is("element"),!e.t0){e.next=9;break}return e.delegateYield(this._getValidRangesForRange(is._createIn(l),n),"t1",9);case 9:if(e.t2=this.checkAttribute(l,n),e.t2){e.next=16;break}if(e.t3=i.isEqual(r),e.t3){e.next=15;break}return e.next=15,new is(i,r);case 15:i=Xa._createAfter(l);case 16:r=Xa._createAfter(l);case 17:e.next=4;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e["catch"](2),o.e(e.t4);case 24:return e.prev=24,o.f(),e.finish(24);case 27:if(e.t5=i.isEqual(r),e.t5){e.next=31;break}return e.next=31,new is(i,r);case 31:case"end":return e.stop()}}),e,this,[[2,21,24,27]])}))}]),e}();Kn($s,vr);var Ws=function(){function e(t){if(w(this,e),t instanceof e)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),t[0]&&"string"!=typeof t[0]&&t[0].is("documentFragment")&&t.shift(),this._items=t.map(tl)}return x(e,[{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(t){var n=new e([t]);return n._items=[].concat(u(this._items),u(n._items)),n}},{key:"getItem",value:function(e){return this._items[e]}},{key:"getNames",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(this._items.map((function(e){return e.name})),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"endsWith",value:function(e){return Array.from(this.getNames()).join(" ").endsWith(e)}},{key:"startsWith",value:function(e){return Array.from(this.getNames()).join(" ").startsWith(e)}},{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}}]),e}();function qs(e,t){var n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],inheritTypesFrom:[]};return function(e,t){var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r,o=n.value,a=Object.keys(o).filter((function(e){return e.startsWith("is")})),s=k(a);try{for(s.s();!(r=s.n()).done;){var l=r.value;t[l]=o[l]}}catch(c){s.e(c)}finally{s.f()}}}catch(c){i.e(c)}finally{i.f()}}(e,n),Xs(e,n,"allowIn"),Xs(e,n,"allowContentOf"),Xs(e,n,"allowWhere"),Xs(e,n,"allowAttributes"),Xs(e,n,"allowAttributesOf"),Xs(e,n,"inheritTypesFrom"),function(e,t){var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=r.inheritAllFrom;o&&(t.allowContentOf.push(o),t.allowWhere.push(o),t.allowAttributesOf.push(o),t.inheritTypesFrom.push(o))}}catch(a){i.e(a)}finally{i.f()}}(e,n),n}function Ys(e,t){var n,i=k(e[t].allowContentOf);try{for(i.s();!(n=i.n()).done;){var r=n.value;e[r]&&el(e,r).forEach((function(e){e.allowIn.push(t)}))}}catch(o){i.e(o)}finally{i.f()}delete e[t].allowContentOf}function Gs(e,t){var n,i=k(e[t].allowWhere);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=e[r];if(o){var a,s=o.allowIn;(a=e[t].allowIn).push.apply(a,u(s))}}}catch(l){i.e(l)}finally{i.f()}delete e[t].allowWhere}function Ks(e,t){var n,i=k(e[t].allowAttributesOf);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=e[r];if(o){var a,s=o.allowAttributes;(a=e[t].allowAttributes).push.apply(a,u(s))}}}catch(l){i.e(l)}finally{i.f()}delete e[t].allowAttributesOf}function Js(e,t){var n,i=e[t],r=k(i.inheritTypesFrom);try{for(r.s();!(n=r.n()).done;){var o=n.value,a=e[o];if(a){var s,l=Object.keys(a).filter((function(e){return e.startsWith("is")})),c=k(l);try{for(c.s();!(s=c.n()).done;){var u=s.value;u in i||(i[u]=a[u])}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){r.e(d)}finally{r.f()}delete i.inheritTypesFrom}function Qs(e,t){var n=e[t],i=n.allowIn.filter((function(t){return e[t]}));n.allowIn=Array.from(new Set(i))}function Zs(e,t){var n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function Xs(e,t,n){var i,r=k(e);try{for(r.s();!(i=r.n()).done;){var o,a=i.value;"string"==typeof a[n]?t[n].push(a[n]):Array.isArray(a[n])&&(o=t[n]).push.apply(o,u(a[n]))}}catch(s){r.e(s)}finally{r.f()}}function el(e,t){var n,i=e[t];return(n=e,Object.keys(n).map((function(e){return n[e]}))).filter((function(e){return e.allowIn.includes(i.name)}))}function tl(e){return"string"==typeof e?{name:e,getAttributeKeys:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),getAttribute:function(){}}:{name:e.is("element")?e.name:"$text",getAttributeKeys:a.mark((function t(){return a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.delegateYield(e.getAttributeKeys(),"t0",1);case 1:case"end":return t.stop()}}),t)})),getAttribute:function(t){return e.getAttribute(t)}}}function nl(e,t,n){var i,r=k(t.getAttributeKeys());try{for(r.s();!(i=r.n()).done;){var o=i.value;e.checkAttribute(t,o)||n.removeAttribute(o,t)}}catch(a){r.e(a)}finally{r.f()}}var il=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,e),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},t),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}return x(e,[{key:"convert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){var n,i,r=k(new Ws(e));try{for(r.s();!(i=r.n()).done;){var o,a=i.value,s={},l=k(a.getAttributeKeys());try{for(l.s();!(o=l.n()).done;){var c=o.value;s[c]=a.getAttribute(c)}}catch(d){l.e(d)}finally{l.f()}var u=t.createElement(a.name,s);n&&t.append(u,n),n=Xa._createAt(u,0)}}catch(d){r.e(d)}finally{r.f()}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=Us.createFrom(e),this.conversionApi.store={};var i=this._convertItem(e,this._modelCursor),r=i.modelRange,o=t.createDocumentFragment();if(r){this._removeEmptyElements();for(var a=0,s=Array.from(this._modelCursor.parent.getChildren());a<s.length;a++){var l=s[a];t.append(l,o)}o.markers=function(e,t){var n,i=new Set,r=new Map,o=is._createIn(e).getItems(),a=k(o);try{for(a.s();!(n=a.n()).done;){var s=n.value;"$marker"==s.name&&i.add(s)}}catch(f){a.e(f)}finally{a.f()}var l,c=k(i);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=u.getAttribute("data-name"),h=t.createPositionBefore(u);r.has(d)?r.get(d).end=h.clone():r.set(d,new is(h.clone())),t.remove(u)}}catch(f){c.e(f)}finally{c.f()}return r}(o,t)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}},{key:"_convertItem",value:function(e,t){var n=Object.assign({viewItem:e,modelCursor:t,modelRange:null});if(e.is("element")?this.fire("element:"+e.name,n,this.conversionApi):e.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof is))throw new jn.b("view-conversion-dispatcher-incorrect-result: Incorrect conversion result was dropped.",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(e,t){for(var n=t.is("position")?t:Xa._createAt(t,0),i=new is(n),r=0,o=Array.from(e.getChildren());r<o.length;r++){var a=o[r],s=this._convertItem(a,n);s.modelRange instanceof is&&(i.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:i,modelCursor:n}}},{key:"_safeInsert",value:function(e,t){var n=this._splitToAllowedParent(e,t);return!!n&&(this.conversionApi.writer.insert(e,n.position),!0)}},{key:"_updateConversionResult",value:function(e,t){var n=this._getSplitParts(e),i=this.conversionApi.writer;t.modelRange||(t.modelRange=i.createRange(i.createPositionBefore(e),i.createPositionAfter(n[n.length-1])));var r=this._cursorParents.get(e);t.modelCursor=r?i.createPositionAt(r,0):t.modelRange.end}},{key:"_splitToAllowedParent",value:function(e,t){var n=this.conversionApi,i=n.schema,r=n.writer,o=i.findAllowedParent(t,e);if(o){if(o===t.parent)return{position:t};this._modelCursor.parent.getAncestors().includes(o)&&(o=null)}if(!o)return Ms(t,e,i)?{position:Is(t,r)}:null;var a,s=this.conversionApi.writer.split(t,o),l=[],c=k(s.range.getWalker());try{for(c.s();!(a=c.n()).done;){var u=a.value;if("elementEnd"==u.type)l.push(u.item);else{var d=l.pop(),h=u.item;this._registerSplitPair(d,h)}}}catch(v){c.e(v)}finally{c.f()}var f=s.range.end.parent;return this._cursorParents.set(e,f),{position:s.position,cursorParent:f}}},{key:"_registerSplitPair",value:function(e,t){this._splitParts.has(e)||this._splitParts.set(e,[e]);var n=this._splitParts.get(e);this._splitParts.set(t,n),n.push(t)}},{key:"_getSplitParts",value:function(e){var t;return t=this._splitParts.has(e)?this._splitParts.get(e):[e],t}},{key:"_removeEmptyElements",value:function(){var e,t=!1,n=k(this._splitParts.keys());try{for(n.s();!(e=n.n()).done;){var i=e.value;i.isEmpty&&(this.conversionApi.writer.remove(i),this._splitParts.delete(i),t=!0)}}catch(r){n.e(r)}finally{n.f()}t&&this._removeEmptyElements()}}]),e}();Kn(il,Fn);var rl=function(){function e(t,n){var i=this;w(this,e),this.model=t,this.stylesProcessor=n,this.processor,this.mapper=new rs,this.downcastDispatcher=new ss({mapper:this.mapper,schema:t.schema}),this.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,"insert")){var i=n.writer,r=n.mapper.toViewPosition(t.range.start),o=i.createText(t.item.data);i.insert(r,o)}}),{priority:"lowest"}),this.upcastDispatcher=new il({schema:t.schema}),this.viewDocument=new Or(n),this._viewWriter=new eo(this.viewDocument),this.upcastDispatcher.on("text",(function(e,t,n){var i=n.schema,r=n.consumable,o=n.writer,a=t.modelCursor;if(r.test(t.viewItem)){if(!i.checkChild(a,"$text")){if(!Ms(a,"$text",i))return;a=Is(a,o)}r.consume(t.viewItem);var s=o.createText(t.viewItem.data);o.insert(s,a),t.modelRange=o.createRange(a,a.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}),{priority:"lowest"}),this.upcastDispatcher.on("element",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var i=n.convertChildren(t.viewItem,t.modelCursor),r=i.modelRange,o=i.modelCursor;t.modelRange=r,t.modelCursor=o}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var i=n.convertChildren(t.viewItem,t.modelCursor),r=i.modelRange,o=i.modelCursor;t.modelRange=r,t.modelCursor=o}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.on("init",(function(){i.fire("ready")}),{priority:"lowest"}),this.on("ready",(function(){i.model.enqueueChange("transparent",Os)}),{priority:"lowest"})}return x(e,[{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootName,n=void 0===t?"main":t,i=e.trim,r=void 0===i?"empty":i;if(!this._checkIfRootsExists([n]))throw new jn.b("datacontroller-get-non-existent-root: Attempting to get data from a non-existing root.",this);var o=this.model.document.getRoot(n);return"empty"!==r||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}},{key:"stringify",value:function(e,t){var n=this.toView(e,t);return this.processor.toData(n)}},{key:"toView",value:function(e,t){var n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();var r=is._createIn(e),o=new Xr(n);if(this.mapper.bindElements(e,o),this.downcastDispatcher.conversionApi.options=t,this.downcastDispatcher.convertInsert(r,i),!e.is("documentFragment")){var a,s=function(e){var t=[],n=e.root.document;if(!n)return[];var i,r=is._createIn(e),o=k(n.model.markers);try{for(o.s();!(i=o.n()).done;){var a=i.value,s=r.getIntersection(a.getRange());s&&t.push([a.name,s])}}catch(l){o.e(l)}finally{o.f()}return t}(e),l=k(s);try{for(l.s();!(a=l.n()).done;){var c=v(a.value,2),u=c[0],d=c[1];this.downcastDispatcher.convertMarkerAdd(u,d,i)}}catch(h){l.e(h)}finally{l.f()}}return delete this.downcastDispatcher.conversionApi.options,o}},{key:"init",value:function(e){var t=this;if(this.model.document.version)throw new jn.b("datacontroller-init-document-not-empty: Trying to set initial data to not empty document.",this);var n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new jn.b("datacontroller-init-non-existent-root: Attempting to init data on a non-existing root.",this);return this.model.enqueueChange("transparent",(function(e){for(var i=0,r=Object.keys(n);i<r.length;i++){var o=r[i],a=t.model.document.getRoot(o);e.insert(t.parse(n[o],a),a,0)}})),Promise.resolve()}},{key:"set",value:function(e){var t=this,n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new jn.b("datacontroller-set-non-existent-root: Attempting to set data on a non-existing root.",this);this.model.enqueueChange("transparent",(function(e){e.setSelection(null),e.removeSelectionAttribute(t.model.document.selection.getAttributeKeys());for(var i=0,r=Object.keys(n);i<r.length;i++){var o=r[i],a=t.model.document.getRoot(o);e.remove(e.createRangeIn(a)),e.insert(t.parse(n[o],a),a,0)}}))}},{key:"parse",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(e);return this.toModel(n,t)}},{key:"toModel",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(i){return t.upcastDispatcher.convert(e,i,n)}))}},{key:"addStyleProcessorRules",value:function(e){e(this.stylesProcessor)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(e){var t,n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if(!this.model.document.getRootNames().includes(i))return!1}}catch(r){n.e(r)}finally{n.f()}return!0}}]),e}();Kn(rl,vr);var ol=function(){function e(t,n){w(this,e),this._helpers=new Map,this._downcast=Array.isArray(t)?t:[t],this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Array.isArray(n)?n:[n],this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}return x(e,[{key:"addAlias",value:function(e,t){var n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new jn.b("conversion-add-alias-dispatcher-not-registered: Trying to register and alias for a dispatcher that nas not been registered.",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}},{key:"for",value:function(e){if(!this._helpers.has(e))throw new jn.b("conversion-for-unknown-group: Trying to add a converter to an unknown dispatchers group.",this);return this._helpers.get(e)}},{key:"elementToElement",value:function(e){this.for("downcast").elementToElement(e);var t,n=k(al(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.model,o=i.view;this.for("upcast").elementToElement({model:r,view:o,converterPriority:e.converterPriority})}}catch(a){n.e(a)}finally{n.f()}}},{key:"attributeToElement",value:function(e){this.for("downcast").attributeToElement(e);var t,n=k(al(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.model,o=i.view;this.for("upcast").elementToAttribute({view:o,model:r,converterPriority:e.converterPriority})}}catch(a){n.e(a)}finally{n.f()}}},{key:"attributeToAttribute",value:function(e){this.for("downcast").attributeToAttribute(e);var t,n=k(al(e));try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.model,o=i.view;this.for("upcast").attributeToAttribute({view:o,model:r})}}catch(a){n.e(a)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(e){var t=e.name,n=e.dispatchers,i=e.isDowncast;if(this._helpers.has(t))throw new jn.b("conversion-group-exists: Trying to register a group name that has already been registered.",this);var r=i?new xs(n):new Ns(n);this._helpers.set(t,r)}}]),e}();function al(e){var t,n,r,o,s,l;return a.wrap((function(i){while(1)switch(i.prev=i.next){case 0:if(!e.model.values){i.next=20;break}t=k(e.model.values),i.prev=2,t.s();case 4:if((n=t.n()).done){i.next=10;break}return r=n.value,o={key:e.model.key,value:r},s=e.view[r],l=e.upcastAlso?e.upcastAlso[r]:void 0,i.delegateYield(sl(o,s,l),"t0",8);case 8:i.next=4;break;case 10:i.next=15;break;case 12:i.prev=12,i.t1=i["catch"](2),t.e(i.t1);case 15:return i.prev=15,t.f(),i.finish(15);case 18:i.next=21;break;case 20:return i.delegateYield(sl(e.model,e.view,e.upcastAlso),"t2",21);case 21:case"end":return i.stop()}}),i,null,[[2,12,15,18]])}function sl(e,t,n){var i,o,s;return a.wrap((function(r){while(1)switch(r.prev=r.next){case 0:return r.next=2,{model:e,view:t};case 2:if(!n){r.next=21;break}n=Array.isArray(n)?n:[n],i=k(n),r.prev=5,i.s();case 7:if((o=i.n()).done){r.next=13;break}return s=o.value,r.next=11,{model:e,view:s};case 11:r.next=7;break;case 13:r.next=18;break;case 15:r.prev=15,r.t0=r["catch"](5),i.e(r.t0);case 18:return r.prev=18,i.f(),r.finish(18);case 21:case"end":return r.stop()}}),r,null,[[5,15,18,21]])}var ll=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";w(this,e),this.operations=[],this.type=t}return x(e,[{key:"addOperation",value:function(e){return e.batch=this,this.operations.push(e),e}},{key:"baseVersion",get:function(){var e,t=k(this.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.baseVersion)return n.baseVersion}}catch(i){t.e(i)}finally{t.f()}return null}}]),e}(),cl=function(){function e(t){w(this,e),this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return x(e,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}}],[{key:"fromJSON",value:function(e){return new this(e.baseVersion)}},{key:"className",get:function(){return"Operation"}}]),e}(),ul=function(){function e(t){w(this,e),this.markers=new Map,this._children=new Ka,t&&this._insertChild(0,t)}return x(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"is",value:function(e){return"documentFragment"===e||"model:documentFragment"===e}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(e){var t,n=this,i=k(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n=n.getChild(n.offsetToIndex(r))}}catch(o){i.e(o)}finally{i.f()}return n}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"toJSON",value:function(){var e,t=[],n=k(this._children);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push(i.toJSON())}}catch(r){n.e(r)}finally{n.f()}return t}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,i=function(e){return"string"==typeof e?[new Ya(e)]:(Gn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new Ya(e):e instanceof Ga?new Ya(e.data,e.getAttributes()):e})))}(t),r=k(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(a){r.e(a)}finally{r.f()}this._children._insertNodes(e,i)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(e,n),r=k(i);try{for(r.s();!(t=r.n()).done;){var o=t.value;o.parent=null}}catch(a){r.e(a)}finally{r.f()}return i}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}}],[{key:"fromJSON",value:function(t){var n,i=[],r=k(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;o.name?i.push(Ja.fromJSON(o)):i.push(Ya.fromJSON(o))}}catch(a){r.e(a)}finally{r.f()}return new e(i)}}]),e}();function dl(e,t){var n=(t=vl(t)).reduce((function(e,t){return e+t.offsetSize}),0),i=e.parent;ml(e);var r=e.index;return i._insertChild(r,t),pl(i,r+t.length),pl(i,r),new is(e,e.getShiftedBy(n))}function hl(e){if(!e.isFlat)throw new jn.b("operation-utils-remove-range-not-flat: Trying to remove a range which starts and ends in different element.",this);var t=e.start.parent;ml(e.start),ml(e.end);var n=t._removeChildren(e.start.index,e.end.index-e.start.index);return pl(t,e.start.index),n}function fl(e,t){if(!e.isFlat)throw new jn.b("operation-utils-move-range-not-flat: Trying to move a range which starts and ends in different element.",this);var n=hl(e);return dl(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function vl(e){var t=[];e instanceof Array||(e=[e]);for(var n=0;n<e.length;n++)if("string"==typeof e[n])t.push(new Ya(e[n]));else if(e[n]instanceof Ga)t.push(new Ya(e[n].data,e[n].getAttributes()));else if(e[n]instanceof ul||e[n]instanceof Ka){var i,r=k(e[n]);try{for(r.s();!(i=r.n()).done;){var o=i.value;t.push(o)}}catch(c){r.e(c)}finally{r.f()}}else e[n]instanceof qa&&t.push(e[n]);for(var a=1;a<t.length;a++){var s=t[a],l=t[a-1];s instanceof Ya&&l instanceof Ya&&gl(s,l)&&(t.splice(a-1,2,new Ya(l.data+s.data,l.getAttributes())),a--)}return t}function pl(e,t){var n=e.getChild(t-1),i=e.getChild(t);if(n&&i&&n.is("$text")&&i.is("$text")&&gl(n,i)){var r=new Ya(n.data+i.data,n.getAttributes());e._removeChildren(t-1,2),e._insertChild(t-1,r)}}function ml(e){var t=e.textNode,n=e.parent;if(t){var i=e.offset-t.startOffset,r=t.index;n._removeChildren(r,1);var o=new Ya(t.data.substr(0,i),t.getAttributes()),a=new Ya(t.data.substr(i),t.getAttributes());n._insertChild(r,[o,a])}}function gl(e,t){var n,i=e.getAttributes(),r=t.getAttributes(),o=k(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(a[1]!==t.getAttribute(a[0]))return!1;r.next()}}catch(s){o.e(s)}finally{o.f()}return r.next().done}var kl=function(e,t){return la(e,t)},bl=function(e){C(n,e);var t=A(n);function n(e,i,r,o,a){var s;return w(this,n),s=t.call(this,a),s.range=e.clone(),s.key=i,s.oldValue=void 0===r?null:r,s.newValue=void 0===o?null:o,s}return x(n,[{key:"clone",value:function(){return new n(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.range=this.range.toJSON(),e}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new jn.b("attribute-operation-range-not-flat: The range to change is not flat.",this);var e,t=k(this.range.getItems({shallow:!0}));try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==this.oldValue&&!kl(n.getAttribute(this.key),this.oldValue))throw new jn.b("attribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new jn.b("attribute-operation-attribute-exists: The attribute with given key already exists.",this,{node:n,key:this.key})}}catch(i){t.e(i)}finally{t.f()}}},{key:"_execute",value:function(){kl(this.oldValue,this.newValue)||function(e,t,n){ml(e.start),ml(e.end);var i,r=k(e.getItems({shallow:!0}));try{for(r.s();!(i=r.n()).done;){var o=i.value,a=o.is("$textProxy")?o.textNode:o;null!==n?a._setAttribute(t,n):a._removeAttribute(t),pl(a.parent,a.index)}}catch(s){r.e(s)}finally{r.f()}pl(e.end.parent,e.end.index)}(this.range,this.key,this.newValue)}},{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}}],[{key:"fromJSON",value:function(e,t){return new n(is.fromJSON(e.range,t),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"AttributeOperation"}}]),n}(cl),yl=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,null),r.sourcePosition=e.clone(),r.howMany=i,r}return x(n,[{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new jn.b("detach-operation-on-document-node: Cannot detach document node.",this)}},{key:"_execute",value:function(){hl(is._createFromPositionAndShift(this.sourcePosition,this.howMany))}},{key:"type",get:function(){return"detach"}}],[{key:"className",get:function(){return"DetachOperation"}}]),n}(cl),wl=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,o),a.sourcePosition=e.clone(),a.sourcePosition.stickiness="toNext",a.howMany=i,a.targetPosition=r.clone(),a.targetPosition.stickiness="toNone",a}return x(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var e=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,e,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>e.maxOffset)throw new jn.b("move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.",this);if(e===t&&n<i&&i<n+this.howMany)throw new jn.b("move-operation-range-into-itself: Trying to move a range of nodes to the inside of that range.",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==ii(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var r=this.sourcePosition.path.length-1;if(this.targetPosition.path[r]>=n&&this.targetPosition.path[r]<n+this.howMany)throw new jn.b("move-operation-node-into-itself: Trying to move a range of nodes into one of nodes from that range.",this)}}},{key:"_execute",value:function(){fl(is._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.sourcePosition=this.sourcePosition.toJSON(),e.targetPosition=this.targetPosition.toJSON(),e}},{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}}],[{key:"fromJSON",value:function(e,t){var n=Xa.fromJSON(e.sourcePosition,t),i=Xa.fromJSON(e.targetPosition,t);return new this(n,e.howMany,i,e.baseVersion)}},{key:"className",get:function(){return"MoveOperation"}}]),n}(cl),_l=function(e){C(n,e);var t=A(n);function n(e,i,r){var o;return w(this,n),o=t.call(this,r),o.position=e.clone(),o.position.stickiness="toNone",o.nodes=new Ka(vl(i)),o.shouldReceiveAttributes=!1,o}return x(n,[{key:"clone",value:function(){var e=new Ka(u(this.nodes).map((function(e){return e._clone(!0)}))),t=new n(this.position,e,this.baseVersion);return t.shouldReceiveAttributes=this.shouldReceiveAttributes,t}},{key:"getReversed",value:function(){var e=this.position.root.document.graveyard,t=new Xa(e,[0]);return new wl(this.position,this.nodes.maxOffset,t,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.parent;if(!e||e.maxOffset<this.position.offset)throw new jn.b("insert-operation-position-invalid: Insertion position is invalid.",this)}},{key:"_execute",value:function(){var e=this.nodes;this.nodes=new Ka(u(e).map((function(e){return e._clone(!0)}))),dl(this.position,e)}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e.nodes=this.nodes.toJSON(),e}},{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}}],[{key:"fromJSON",value:function(e,t){var i,r=[],o=k(e.nodes);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.name?r.push(Ja.fromJSON(a)):r.push(Ya.fromJSON(a))}}catch(l){o.e(l)}finally{o.f()}var s=new n(Xa.fromJSON(e.position,t),r,e.baseVersion);return s.shouldReceiveAttributes=e.shouldReceiveAttributes,s}},{key:"className",get:function(){return"InsertOperation"}}]),n}(cl),xl=function(e){C(n,e);var t=A(n);function n(e,i,r,o,a,s){var l;return w(this,n),l=t.call(this,s),l.name=e,l.oldRange=i?i.clone():null,l.newRange=r?r.clone():null,l.affectsData=a,l._markers=o,l}return x(n,[{key:"clone",value:function(){return new n(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){var e=this.newRange?"_set":"_remove";this._markers[e](this.name,this.newRange,!0,this.affectsData)}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return this.oldRange&&(e.oldRange=this.oldRange.toJSON()),this.newRange&&(e.newRange=this.newRange.toJSON()),delete e._markers,e}},{key:"type",get:function(){return"marker"}}],[{key:"fromJSON",value:function(e,t){return new n(e.name,e.oldRange?is.fromJSON(e.oldRange,t):null,e.newRange?is.fromJSON(e.newRange,t):null,t.model.markers,e.affectsData,e.baseVersion)}},{key:"className",get:function(){return"MarkerOperation"}}]),n}(cl),Cl=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,o),a.position=e,a.position.stickiness="toNext",a.oldName=i,a.newName=r,a}return x(n,[{key:"clone",value:function(){return new n(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.position.nodeAfter;if(!(e instanceof Ja))throw new jn.b("rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.",this);if(e.name!==this.oldName)throw new jn.b("rename-operation-wrong-name: Element to change has different name than operation's old name.",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.position=this.position.toJSON(),e}},{key:"type",get:function(){return"rename"}}],[{key:"fromJSON",value:function(e,t){return new n(Xa.fromJSON(e.position,t),e.oldName,e.newName,e.baseVersion)}},{key:"className",get:function(){return"RenameOperation"}}]),n}(cl),Al=function(e){C(n,e);var t=A(n);function n(e,i,r,o,a){var s;return w(this,n),s=t.call(this,a),s.root=e,s.key=i,s.oldValue=r,s.newValue=o,s}return x(n,[{key:"clone",value:function(){return new n(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new jn.b("rootattribute-operation-not-a-root: The element to change is not a root element.",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new jn.b("rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation's old attribute value.",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new jn.b("rootattribute-operation-attribute-exists: The attribute with given key already exists.",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.root=this.root.toJSON(),e}},{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}}],[{key:"fromJSON",value:function(e,t){if(!t.getRoot(e.root))throw new jn.b("rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.",this,{rootName:e.root});return new n(t.getRoot(e.root),e.key,e.oldValue,e.newValue,e.baseVersion)}},{key:"className",get:function(){return"RootAttributeOperation"}}]),n}(cl),Tl=function(e){C(n,e);var t=A(n);function n(e,i,r,o,a){var s;return w(this,n),s=t.call(this,a),s.sourcePosition=e.clone(),s.sourcePosition.stickiness="toPrevious",s.howMany=i,s.targetPosition=r.clone(),s.targetPosition.stickiness="toNext",s.graveyardPosition=o.clone(),s}return x(n,[{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var e=this.targetPosition._getTransformedByMergeOperation(this),t=this.sourcePosition.path.slice(0,-1),n=new Xa(this.sourcePosition.root,t)._getTransformedByMergeOperation(this),i=new Pl(e,this.howMany,this.graveyardPosition,this.baseVersion+1);return i.insertionPosition=n,i}},{key:"_validate",value:function(){var e=this.sourcePosition.parent,t=this.targetPosition.parent;if(!e.parent)throw new jn.b("merge-operation-source-position-invalid: Merge source position is invalid.",this);if(!t.parent)throw new jn.b("merge-operation-target-position-invalid: Merge target position is invalid.",this);if(this.howMany!=e.maxOffset)throw new jn.b("merge-operation-how-many-invalid: Merge operation specifies wrong number of nodes to move.",this)}},{key:"_execute",value:function(){var e=this.sourcePosition.parent;fl(is._createIn(e),this.targetPosition),fl(is._createOn(e),this.graveyardPosition)}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.sourcePosition=e.sourcePosition.toJSON(),e.targetPosition=e.targetPosition.toJSON(),e.graveyardPosition=e.graveyardPosition.toJSON(),e}},{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new Xa(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var e=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new is(this.sourcePosition,e)}}],[{key:"fromJSON",value:function(e,t){var n=Xa.fromJSON(e.sourcePosition,t),i=Xa.fromJSON(e.targetPosition,t),r=Xa.fromJSON(e.graveyardPosition,t);return new this(n,e.howMany,i,r,e.baseVersion)}},{key:"className",get:function(){return"MergeOperation"}}]),n}(cl),Pl=function(e){C(n,e);var t=A(n);function n(e,i,r,o){var a;return w(this,n),a=t.call(this,o),a.splitPosition=e.clone(),a.splitPosition.stickiness="toNext",a.howMany=i,a.insertionPosition=n.getInsertionPosition(e),a.insertionPosition.stickiness="toNone",a.graveyardPosition=r?r.clone():null,a.graveyardPosition&&(a.graveyardPosition.stickiness="toNext"),a}return x(n,[{key:"clone",value:function(){var e=new this.constructor(this.splitPosition,this.howMany,this.graveyardPosition,this.baseVersion);return e.insertionPosition=this.insertionPosition,e}},{key:"getReversed",value:function(){var e=this.splitPosition.root.document.graveyard,t=new Xa(e,[0]);return new Tl(this.moveTargetPosition,this.howMany,this.splitPosition,t,this.baseVersion+1)}},{key:"_validate",value:function(){var e=this.splitPosition.parent,t=this.splitPosition.offset;if(!e||e.maxOffset<t)throw new jn.b("split-operation-position-invalid: Split position is invalid.",this);if(!e.parent)throw new jn.b("split-operation-split-in-root: Cannot split root element.",this);if(this.howMany!=e.maxOffset-this.splitPosition.offset)throw new jn.b("split-operation-how-many-invalid: Split operation specifies wrong number of nodes to move.",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new jn.b("split-operation-graveyard-position-invalid: Graveyard position invalid.",this)}},{key:"_execute",value:function(){var e=this.splitPosition.parent;if(this.graveyardPosition)fl(is._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var t=e._clone();dl(this.insertionPosition,t)}fl(new is(Xa._createAt(e,this.splitPosition.offset),Xa._createAt(e,e.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var e=l(N(n.prototype),"toJSON",this).call(this);return e.splitPosition=this.splitPosition.toJSON(),e.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(e.graveyardPosition=this.graveyardPosition.toJSON()),e}},{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var e=this.insertionPosition.path.slice();return e.push(0),new Xa(this.insertionPosition.root,e)}},{key:"movedRange",get:function(){var e=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new is(this.splitPosition,e)}}],[{key:"getInsertionPosition",value:function(e){var t=e.path.slice(0,-1);return t[t.length-1]++,new Xa(e.root,t)}},{key:"fromJSON",value:function(e,t){var n=Xa.fromJSON(e.splitPosition,t),i=Xa.fromJSON(e.insertionPosition,t),r=e.graveyardPosition?Xa.fromJSON(e.graveyardPosition,t):null,o=new this(n,e.howMany,r,e.baseVersion);return o.insertionPosition=i,o}},{key:"className",get:function(){return"SplitOperation"}}]),n}(cl),El=function(e){C(n,e);var t=A(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return w(this,n),r=t.call(this,i),r._document=e,r.rootName=o,r}return x(n,[{key:"is",value:function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e}},{key:"toJSON",value:function(){return this.rootName}},{key:"document",get:function(){return this._document}}]),n}(Ja),Sl=function(){function e(t,n){w(this,e),this.model=t,this.batch=n}return x(e,[{key:"createText",value:function(e,t){return new Ya(e,t)}},{key:"createElement",value:function(e,t){return new Ja(e,t)}},{key:"createDocumentFragment",value:function(){return new ul}},{key:"cloneElement",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(e instanceof Ya&&""==e.data)){var i=Xa._createAt(t,n);if(e.parent){if(Rl(e.root,i.root))return void this.move(is._createOn(e),i);if(e.root.document)throw new jn.b("model-writer-insert-forbidden-move: Cannot move a node from a document to a different tree. It is forbidden to move a node that was already in a document outside of it.",this);this.remove(e)}var r=i.root.document?i.root.document.version:null,o=new _l(i,e,r);if(e instanceof Ya&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),e instanceof ul){var a,s=k(e.markers);try{for(s.s();!(a=s.n()).done;){var l=v(a.value,2),c=l[0],u=l[1],d=Xa._createAt(u.root,0),h={range:new is(u.start._getCombined(d,i),u.end._getCombined(d,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(c)?this.updateMarker(c,h):this.addMarker(c,h)}}catch(f){s.e(f)}finally{s.f()}}}}},{key:"insertText",value:function(e,t,n,i){t instanceof ul||t instanceof Ja||t instanceof Xa?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,i)}},{key:"insertElement",value:function(e,t,n,i){t instanceof ul||t instanceof Ja||t instanceof Xa?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,i)}},{key:"append",value:function(e,t){this.insert(e,t,"end")}},{key:"appendText",value:function(e,t,n){t instanceof ul||t instanceof Ja?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}},{key:"appendElement",value:function(e,t,n){t instanceof ul||t instanceof Ja?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}},{key:"setAttribute",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof is){var i,r=n.getMinimalFlatRanges(),o=k(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;Ol(this,e,t,a)}}catch(s){o.e(s)}finally{o.f()}}else Ml(this,e,t,n)}},{key:"setAttributes",value:function(e,t){var n,i=k(li(e));try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],a=r[1];this.setAttribute(o,a,t)}}catch(s){i.e(s)}finally{i.f()}}},{key:"removeAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),t instanceof is){var n,i=t.getMinimalFlatRanges(),r=k(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;Ol(this,e,null,o)}}catch(a){r.e(a)}finally{r.f()}}else Ml(this,e,null,t)}},{key:"clearAttributes",value:function(e){var t=this;this._assertWriterUsedCorrectly();var n=function(e){var n,i=k(e.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var r=n.value;t.removeAttribute(r,e)}}catch(o){i.e(o)}finally{i.f()}};if(e instanceof is){var i,r=k(e.getItems());try{for(r.s();!(i=r.n()).done;){var o=i.value;n(o)}}catch(a){r.e(a)}finally{r.f()}}else n(e)}},{key:"move",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof is))throw new jn.b("writer-move-invalid-range: Invalid range to move.",this);if(!e.isFlat)throw new jn.b("writer-move-range-not-flat: Range to move is not flat.",this);var i=Xa._createAt(t,n);if(!i.isEqual(e.start)){if(this._addOperationForAffectedMarkers("move",e),!Rl(e.root,i.root))throw new jn.b("writer-move-different-document: Range is going to be moved between different documents.",this);var r=e.root.document?e.root.document.version:null,o=new wl(e.start,e.end.offset-e.start.offset,i,r);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(e){this._assertWriterUsedCorrectly();var t,n=(e instanceof is?e:is._createOn(e)).getMinimalFlatRanges().reverse(),i=k(n);try{for(i.s();!(t=i.n()).done;){var r=t.value;this._addOperationForAffectedMarkers("move",r),Nl(r.start,r.end.offset-r.start.offset,this.batch,this.model)}}catch(o){i.e(o)}finally{i.f()}}},{key:"merge",value:function(e){this._assertWriterUsedCorrectly();var t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof Ja))throw new jn.b("writer-merge-no-element-before: Node before merge position must be an element.",this);if(!(n instanceof Ja))throw new jn.b("writer-merge-no-element-after: Node after merge position must be an element.",this);e.root.document?this._merge(e):this._mergeDetached(e)}},{key:"createPositionFromPath",value:function(e,t,n){return this.model.createPositionFromPath(e,t,n)}},{key:"createPositionAt",value:function(e,t){return this.model.createPositionAt(e,t)}},{key:"createPositionAfter",value:function(e){return this.model.createPositionAfter(e)}},{key:"createPositionBefore",value:function(e){return this.model.createPositionBefore(e)}},{key:"createRange",value:function(e,t){return this.model.createRange(e,t)}},{key:"createRangeIn",value:function(e){return this.model.createRangeIn(e)}},{key:"createRangeOn",value:function(e){return this.model.createRangeOn(e)}},{key:"createSelection",value:function(e,t,n){return this.model.createSelection(e,t,n)}},{key:"_mergeDetached",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;this.move(is._createIn(n),Xa._createAt(t,"end")),this.remove(n)}},{key:"_merge",value:function(e){var t=Xa._createAt(e.nodeBefore,"end"),n=Xa._createAt(e.nodeAfter,0),i=e.root.document.graveyard,r=new Xa(i,[0]),o=e.root.document.version,a=new Tl(n,e.nodeAfter.maxOffset,t,r,o);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof Ja))throw new jn.b("writer-rename-not-element-instance: Trying to rename an object which is not an instance of Element.",this);var n=e.root.document?e.root.document.version:null,i=new Cl(Xa._createBefore(e),e.name,t,n);this.batch.addOperation(i),this.model.applyOperation(i)}},{key:"split",value:function(e,t){this._assertWriterUsedCorrectly();var n,i,r=e.parent;if(!r.parent)throw new jn.b("writer-split-element-no-parent: Element with no parent can not be split.",this);if(t||(t=r.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new jn.b("writer-split-invalid-limit-element: Limit element is not a position ancestor.",this);do{var o=r.root.document?r.root.document.version:null,a=r.maxOffset-e.offset,s=new Pl(e,a,null,o);this.batch.addOperation(s),this.model.applyOperation(s),n||i||(n=r,i=e.parent.nextSibling),r=(e=this.createPositionAfter(e.parent)).parent}while(r!==t);return{position:e,range:new is(Xa._createAt(n,"end"),Xa._createAt(i,0))}}},{key:"wrap",value:function(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new jn.b("writer-wrap-range-not-flat: Range to wrap is not flat.",this);var n=t instanceof Ja?t:new Ja(t);if(n.childCount>0)throw new jn.b("writer-wrap-element-not-empty: Element to wrap with is not empty.",this);if(null!==n.parent)throw new jn.b("writer-wrap-element-attached: Element to wrap with is already attached to tree model.",this);this.insert(n,e.start);var i=new is(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(i,Xa._createAt(n,0))}},{key:"unwrap",value:function(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new jn.b("writer-unwrap-element-no-parent: Trying to unwrap an element which has no parent.",this);this.move(is._createIn(e),this.createPositionAfter(e)),this.remove(e)}},{key:"addMarker",value:function(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new jn.b("writer-addMarker-no-usingOperation: The options.usingOperation parameter is required when adding a new marker.",this);var n=t.usingOperation,i=t.range,r=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new jn.b("writer-addMarker-marker-exists: Marker with provided name already exists.",this);if(!i)throw new jn.b("writer-addMarker-no-range: Range parameter is required when adding a new marker.",this);return n?(Il(this,e,null,i,r),this.model.markers.get(e)):this.model.markers._set(e,i,n,r)}},{key:"updateMarker",value:function(e,t){this._assertWriterUsedCorrectly();var n="string"==typeof e?e:e.name,i=this.model.markers.get(n);if(!i)throw new jn.b("writer-updateMarker-marker-not-exists: Marker with provided name does not exists.",this);if(t){var r="boolean"==typeof t.usingOperation,o="boolean"==typeof t.affectsData,a=o?t.affectsData:i.affectsData;if(!r&&!t.range&&!o)throw new jn.b("writer-updateMarker-wrong-options: One of the options is required - provide range, usingOperations or affectsData.",this);var s=i.getRange(),l=t.range?t.range:s;r&&t.usingOperation!==i.managedUsingOperations?t.usingOperation?Il(this,n,null,l,a):(Il(this,n,s,null,a),this.model.markers._set(n,l,void 0,a)):i.managedUsingOperations?Il(this,n,s,l,a):this.model.markers._set(n,l,void 0,a)}else this.model.markers._refresh(i)}},{key:"removeMarker",value:function(e){this._assertWriterUsedCorrectly();var t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new jn.b("writer-removeMarker-no-marker: Trying to remove marker which does not exist.",this);var n=this.model.markers.get(t);n.managedUsingOperations?Il(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}},{key:"setSelection",value:function(e,t,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(e,t,n)}},{key:"setSelectionFocus",value:function(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}},{key:"setSelectionAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else{var n,i=k(li(e));try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],a=r[1];this._setSelectionAttribute(o,a)}}catch(s){i.e(s)}finally{i.f()}}}},{key:"removeSelectionAttribute",value:function(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else{var t,n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._removeSelectionAttribute(i)}}catch(r){n.e(r)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(e){this.model.document.selection._restoreGravity(e)}},{key:"_setSelectionAttribute",value:function(e,t){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var i=ks._getStoreAttributeKey(e);this.setAttribute(i,t,n.anchor.parent)}n._setAttribute(e,t)}},{key:"_removeSelectionAttribute",value:function(e){var t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){var n=ks._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new jn.b("writer-incorrect-use: Trying to use a writer outside the change() block.",this)}},{key:"_addOperationForAffectedMarkers",value:function(e,t){var n,i=k(this.model.markers);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.managedUsingOperations){var o=r.getRange(),a=!1;if("move"===e)a=t.containsPosition(o.start)||t.start.isEqual(o.start)||t.containsPosition(o.end)||t.end.isEqual(o.end);else{var s=t.nodeBefore,l=t.nodeAfter,c=o.start.parent==s&&o.start.isAtEnd,u=o.end.parent==l&&0==o.end.offset,d=o.end.nodeAfter==l,h=o.start.nodeAfter==l;a=c||u||d||h}a&&this.updateMarker(r.name,{range:o})}}}catch(f){i.e(f)}finally{i.f()}}}]),e}();function Ol(e,t,n,i){var r,o,a,s,l=e.model,c=l.document,u=i.start,d=k(i.getWalker({shallow:!0}));try{for(d.s();!(s=d.n()).done;){var h=s.value;a=h.item.getAttribute(t),r&&o!=a&&(o!=n&&f(),u=r),r=h.nextPosition,o=a}}catch(v){d.e(v)}finally{d.f()}function f(){var i=new is(u,r),a=i.root.document?c.version:null,s=new bl(i,t,o,n,a);e.batch.addOperation(s),l.applyOperation(s)}r instanceof Xa&&r!=u&&o!=n&&f()}function Ml(e,t,n,i){var r,o,a=e.model,s=a.document,l=i.getAttribute(t);if(l!=n){if(i.root===i){var c=i.document?s.version:null;o=new Al(i,t,l,n,c)}else{r=new is(Xa._createBefore(i),e.createPositionAfter(i));var u=r.root.document?s.version:null;o=new bl(r,t,l,n,u)}e.batch.addOperation(o),a.applyOperation(o)}}function Il(e,t,n,i,r){var o=e.model,a=o.document,s=new xl(t,n,i,o.markers,r,a.version);e.batch.addOperation(s),o.applyOperation(s)}function Nl(e,t,n,i){var r;if(e.root.document){var o=i.document,a=new Xa(o.graveyard,[0]);r=new wl(e,t,a,o.version)}else r=new yl(e,t);n.addOperation(r),i.applyOperation(r)}function Rl(e,t){return e===t||e instanceof El&&t instanceof El}var Dl=function(){function e(t){w(this,e),this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null}return x(e,[{key:"refreshItem",value:function(e){if(!this._isInInsertedElement(e.parent)){this._markRemove(e.parent,e.startOffset,e.offsetSize),this._markInsert(e.parent,e.startOffset,e.offsetSize);var t,n=is._createOn(e),i=k(this._markerCollection.getMarkersIntersectingRange(n));try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.getRange();this.bufferMarkerChange(r.name,o,o,r.affectsData)}}catch(a){i.e(a)}finally{i.f()}this._cachedChanges=null}}},{key:"bufferOperation",value:function(e){switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var t,n=k(e.range.getItems({shallow:!0}));try{for(n.s();!(t=n.n()).done;){var i=t.value;this._isInInsertedElement(i.parent)||this._markAttribute(i)}}catch(p){n.e(p)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var r=this._isInInsertedElement(e.sourcePosition.parent),o=this._isInInsertedElement(e.targetPosition.parent);r||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),o||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;case"rename":if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var a,s=is._createFromPositionAndShift(e.position,1),l=k(this._markerCollection.getMarkersIntersectingRange(s));try{for(l.s();!(a=l.n()).done;){var c=a.value,u=c.getRange();this.bufferMarkerChange(c.name,u,u,c.affectsData)}}catch(p){l.e(p)}finally{l.f()}break;case"split":var d=e.splitPosition.parent;this._isInInsertedElement(d)||this._markRemove(d,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;case"merge":var h=e.sourcePosition.parent;this._isInInsertedElement(h.parent)||this._markRemove(h.parent,h.startOffset,1);var f=e.graveyardPosition.parent;this._markInsert(f,e.graveyardPosition.offset,1);var v=e.targetPosition.parent;this._isInInsertedElement(v)||this._markInsert(v,e.targetPosition.offset,h.maxOffset);break}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(e,t,n,i){var r=this._changedMarkers.get(e);r?(r.newRange=n,r.affectsData=i,null==r.oldRange&&null==r.newRange&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{oldRange:t,newRange:n,affectsData:i})}},{key:"getMarkersToRemove",value:function(){var e,t=[],n=k(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var i=v(e.value,2),r=i[0],o=i[1];null!=o.oldRange&&t.push({name:r,range:o.oldRange})}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"getMarkersToAdd",value:function(){var e,t=[],n=k(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var i=v(e.value,2),r=i[0],o=i[1];null!=o.newRange&&t.push({name:r,range:o.newRange})}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(e){return{name:e[0],data:{oldRange:e[1].oldRange,newRange:e[1].newRange}}}))}},{key:"hasDataChanges",value:function(){var e,t=k(this._changedMarkers);try{for(t.s();!(e=t.n()).done;){var n=v(e.value,2),i=n[1];if(i.affectsData)return!0}}catch(r){t.e(r)}finally{t.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var t,n=[],i=k(this._changesInElement.keys());try{for(i.s();!(t=i.n()).done;){var r,o=t.value,a=this._changesInElement.get(o).sort((function(e,t){return e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offset<t.offset?-1:1})),s=this._elementSnapshots.get(o),l=Ll(o.getChildren()),c=zl(s.length,a),d=0,h=0,f=k(c);try{for(f.s();!(r=f.n()).done;){var v=r.value;if("i"===v)n.push(this._getInsertDiff(o,d,l[d].name)),d++;else if("r"===v)n.push(this._getRemoveDiff(o,d,s[h].name)),h++;else if("a"===v){var p=l[d].attributes,m=s[h].attributes,g=void 0;if("$text"==l[d].name)g=new is(Xa._createAt(o,d),Xa._createAt(o,d+1));else{var b=o.offsetToIndex(d);g=new is(Xa._createAt(o,d),Xa._createAt(o.getChild(b),0))}n.push.apply(n,u(this._getAttributesDiff(g,m,p))),d++,h++}else d++,h++}}catch(S){f.e(S)}finally{f.f()}}}catch(S){i.e(S)}finally{i.f()}n.sort((function(e,t){return e.position.root!=t.position.root?e.position.root.rootName<t.position.root.rootName?-1:1:e.position.isEqual(t.position)?e.changeCount-t.changeCount:e.position.isBefore(t.position)?-1:1}));for(var y=1;y<n.length;y++){var w=n[y-1],_=n[y],x="remove"==w.type&&"remove"==_.type&&"$text"==w.name&&"$text"==_.name&&w.position.isEqual(_.position),C="insert"==w.type&&"insert"==_.type&&"$text"==w.name&&"$text"==_.name&&w.position.parent==_.position.parent&&w.position.offset+w.length==_.position.offset,A="attribute"==w.type&&"attribute"==_.type&&w.position.parent==_.position.parent&&w.range.isFlat&&_.range.isFlat&&w.position.offset+w.length==_.position.offset&&w.attributeKey==_.attributeKey&&w.attributeOldValue==_.attributeOldValue&&w.attributeNewValue==_.attributeNewValue;(x||C||A)&&(n[y-1].length++,A&&(n[y-1].range.end=n[y-1].range.end.getShiftedBy(1)),n.splice(y,1),y--)}for(var T=0,P=n;T<P.length;T++){var E=P[T];delete E.changeCount,"attribute"==E.type&&(delete E.position,delete E.length)}return this._changeCount=0,this._cachedChangesWithGraveyard=n.slice(),this._cachedChanges=n.slice().filter(jl),e.includeChangesInGraveyard?this._cachedChangesWithGraveyard:this._cachedChanges}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._cachedChanges=null}},{key:"_markInsert",value:function(e,t,n){var i={type:"insert",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,i)}},{key:"_markRemove",value:function(e,t,n){var i={type:"remove",offset:t,howMany:n,count:this._changeCount++};this._markChange(e,i),this._removeAllNestedChanges(e,t,n)}},{key:"_markAttribute",value:function(e){var t={type:"attribute",offset:e.startOffset,howMany:e.offsetSize,count:this._changeCount++};this._markChange(e.parent,t)}},{key:"_markChange",value:function(e,t){this._makeSnapshot(e);var n=this._getChangesForElement(e);this._handleChange(t,n),n.push(t);for(var i=0;i<n.length;i++)n[i].howMany<1&&(n.splice(i,1),i--)}},{key:"_getChangesForElement",value:function(e){var t;return this._changesInElement.has(e)?t=this._changesInElement.get(e):(t=[],this._changesInElement.set(e,t)),t}},{key:"_makeSnapshot",value:function(e){this._elementSnapshots.has(e)||this._elementSnapshots.set(e,Ll(e.getChildren()))}},{key:"_handleChange",value:function(e,t){e.nodesToHandle=e.howMany;var n,i=k(t);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=e.offset+e.howMany,a=r.offset+r.howMany;if("insert"==e.type&&("insert"==r.type&&(e.offset<=r.offset?r.offset+=e.howMany:e.offset<a&&(r.howMany+=e.nodesToHandle,e.nodesToHandle=0)),"remove"==r.type&&e.offset<r.offset&&(r.offset+=e.howMany),"attribute"==r.type))if(e.offset<=r.offset)r.offset+=e.howMany;else if(e.offset<a){var s=r.howMany;r.howMany=e.offset-r.offset,t.unshift({type:"attribute",offset:o,howMany:s-r.howMany,count:this._changeCount++})}if("remove"==e.type){if("insert"==r.type)if(o<=r.offset)r.offset-=e.howMany;else if(o<=a)if(e.offset<r.offset){var l=o-r.offset;r.offset=e.offset,r.howMany-=l,e.nodesToHandle-=l}else r.howMany-=e.nodesToHandle,e.nodesToHandle=0;else if(e.offset<=r.offset)e.nodesToHandle-=r.howMany,r.howMany=0;else if(e.offset<a){var c=a-e.offset;r.howMany-=c,e.nodesToHandle-=c}if("remove"==r.type&&(o<=r.offset?r.offset-=e.howMany:e.offset<r.offset&&(e.nodesToHandle+=r.howMany,r.howMany=0)),"attribute"==r.type)if(o<=r.offset)r.offset-=e.howMany;else if(e.offset<r.offset){var u=o-r.offset;r.offset=e.offset,r.howMany-=u}else if(e.offset<a)if(o<=a){var d=r.howMany;r.howMany=e.offset-r.offset;var h=d-r.howMany-e.nodesToHandle;t.unshift({type:"attribute",offset:e.offset,howMany:h,count:this._changeCount++})}else r.howMany-=a-e.offset}if("attribute"==e.type){if("insert"==r.type)if(e.offset<r.offset&&o>r.offset){if(o>a){var f={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(f,t),t.push(f)}e.nodesToHandle=r.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=r.offset&&e.offset<a&&(o>a?(e.nodesToHandle=o-a,e.offset=a):e.nodesToHandle=0);if("remove"==r.type&&e.offset<r.offset&&o>r.offset){var v={type:"attribute",offset:r.offset,howMany:o-r.offset,count:this._changeCount++};this._handleChange(v,t),t.push(v),e.nodesToHandle=r.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==r.type&&(e.offset>=r.offset&&o<=a?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=r.offset&&o>=a&&(r.howMany=0))}}}catch(p){i.e(p)}finally{i.f()}e.howMany=e.nodesToHandle,delete e.nodesToHandle}},{key:"_getInsertDiff",value:function(e,t,n){return{type:"insert",position:Xa._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(e,t,n){return{type:"remove",position:Xa._createAt(e,t),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(e,t,n){var i=[];n=new Map(n);var r,o=k(t);try{for(o.s();!(r=o.n()).done;){var a=v(r.value,2),s=a[0],l=a[1],c=n.has(s)?n.get(s):null;c!==l&&i.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:s,attributeOldValue:l,attributeNewValue:c,changeCount:this._changeCount++}),n.delete(s)}}catch(m){o.e(m)}finally{o.f()}var u,d=k(n);try{for(d.s();!(u=d.n()).done;){var h=v(u.value,2),f=h[0],p=h[1];i.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:f,attributeOldValue:null,attributeNewValue:p,changeCount:this._changeCount++})}}catch(m){d.e(m)}finally{d.f()}return i}},{key:"_isInInsertedElement",value:function(e){var t=e.parent;if(!t)return!1;var n=this._changesInElement.get(t),i=e.startOffset;if(n){var r,o=k(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;if("insert"==a.type&&i>=a.offset&&i<a.offset+a.howMany)return!0}}catch(s){o.e(s)}finally{o.f()}}return this._isInInsertedElement(t)}},{key:"_removeAllNestedChanges",value:function(e,t,n){var i,r=new is(Xa._createAt(e,t),Xa._createAt(e,t+n)),o=k(r.getItems({shallow:!0}));try{for(o.s();!(i=o.n()).done;){var a=i.value;a.is("element")&&(this._elementSnapshots.delete(a),this._changesInElement.delete(a),this._removeAllNestedChanges(a,0,a.maxOffset))}}catch(s){o.e(s)}finally{o.f()}}},{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}}]),e}();function Ll(e){var t,n=[],i=k(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;if(r.is("$text"))for(var o=0;o<r.data.length;o++)n.push({name:"$text",attributes:new Map(r.getAttributes())});else n.push({name:r.name,attributes:new Map(r.getAttributes())})}}catch(a){i.e(a)}finally{i.f()}return n}function zl(e,t){var n,i=[],r=0,o=0,a=k(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.offset>r){for(var l=0;l<s.offset-r;l++)i.push("e");o+=s.offset-r}if("insert"==s.type){for(var c=0;c<s.howMany;c++)i.push("i");r=s.offset+s.howMany}else if("remove"==s.type){for(var d=0;d<s.howMany;d++)i.push("r");r=s.offset,o+=s.howMany}else i.push.apply(i,u("a".repeat(s.howMany).split(""))),r=s.offset+s.howMany,o+=s.howMany}}catch(f){a.e(f)}finally{a.f()}if(o<e)for(var h=0;h<e-o-r;h++)i.push("e");return i}function jl(e){var t=e.position&&"$graveyard"==e.position.root.rootName,n=e.range&&"$graveyard"==e.range.root.rootName;return!t&&!n}var Vl=function(){function e(){w(this,e),this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set}return x(e,[{key:"addOperation",value:function(e){this._operations.includes(e)||this._operations.push(e)}},{key:"getOperations",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;return e<0?[]:this._operations.slice(e,t)}},{key:"getOperation",value:function(e){return this._operations[e]}},{key:"setOperationAsUndone",value:function(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}},{key:"isUndoingOperation",value:function(e){return this._undoPairs.has(e)}},{key:"isUndoneOperation",value:function(e){return this._undoneOperations.has(e)}},{key:"getUndoneOperation",value:function(e){return this._undoPairs.get(e)}}]),e}();function Bl(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function Fl(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}var Ul="$graveyard",Hl=function(){function e(t){var n=this;w(this,e),this.model=t,this.version=0,this.history=new Vl(this),this.selection=new ks(this),this.roots=new Jn({idProperty:"rootName"}),this.differ=new Dl(t.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",Ul),this.listenTo(t,"applyOperation",(function(e,t){var i=t[0];if(i.isDocumentOperation&&i.baseVersion!==n.version)throw new jn.b("model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.",n,{operation:i})}),{priority:"highest"}),this.listenTo(t,"applyOperation",(function(e,t){var i=t[0];i.isDocumentOperation&&n.differ.bufferOperation(i)}),{priority:"high"}),this.listenTo(t,"applyOperation",(function(e,t){var i=t[0];i.isDocumentOperation&&(n.version++,n.history.addOperation(i))}),{priority:"low"}),this.listenTo(this.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0})),this.listenTo(t.markers,"update",(function(e,t,i,r){n.differ.bufferMarkerChange(t.name,i,r,t.affectsData),null===i&&t.on("change",(function(e,i){n.differ.bufferMarkerChange(t.name,i,t.getRange(),t.affectsData)}))}))}return x(e,[{key:"createRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new jn.b("model-document-createRoot-name-exists: Root with specified name already exists.",this,{name:t});var n=new El(this,e,t);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(e){return e.rootName})).filter((function(e){return e!=Ul}))}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"toJSON",value:function(){var e=ri(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}},{key:"_handleChangeBlock",value:function(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var e,t=k(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n!==this.graveyard)return n}}catch(i){t.e(i)}finally{t.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var e=this._getDefaultRoot(),t=this.model,n=t.schema,i=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(i)||t.createRange(i)}},{key:"_validateSelectionRange",value:function(e){return $l(e.start)&&$l(e.end)}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,i=k(this._postFixers);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(this.selection.refresh(),t=r(e),t)break}}catch(o){i.e(o)}finally{i.f()}}while(t)}},{key:"graveyard",get:function(){return this.getRoot(Ul)}}]),e}();function $l(e){var t=e.textNode;if(t){var n=t.data,i=e.offset-t.startOffset;return!Bl(n,i)&&!Fl(n,i)}return!0}Kn(Hl,Fn);var Wl=function(){function e(){w(this,e),this._markers=new Map}return x(e,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(e){return this._markers.has(e)}},{key:"get",value:function(e){return this._markers.get(e)||null}},{key:"_set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r=e instanceof ql?e.name:e;if(r.includes(","))throw new jn.b('markercollection-incorrect-marker-name: Marker name cannot contain the "," character.',this);var o=this._markers.get(r);if(o){var a=o.getRange(),s=!1;return a.isEqual(t)||(o._attachLiveRange(vs.fromRange(t)),s=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,s=!0),"boolean"==typeof i&&i!=o.affectsData&&(o._affectsData=i,s=!0),s&&this.fire("update:"+r,o,a,t),o}var l=vs.fromRange(t),c=new ql(r,l,n,i);return this._markers.set(r,c),this.fire("update:"+r,c,null,t),c}},{key:"_remove",value:function(e){var t=e instanceof ql?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:"+t,n,n.getRange(),null),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(e){var t=e instanceof ql?e.name:e,n=this._markers.get(t);if(!n)throw new jn.b("markercollection-refresh-marker-not-exists: Marker with provided name does not exists.",this);var i=n.getRange();this.fire("update:"+t,n,i,i,n.managedUsingOperations,n.affectsData)}},{key:"getMarkersAtPosition",value:a.mark((function e(t){var n,i,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=k(this),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=r.getRange().containsPosition(t),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:a.mark((function e(t){var n,i,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=k(this),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=null!==r.getRange().getIntersection(t),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var e,t=k(this._markers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._destroyMarker(n)}}catch(i){t.e(i)}finally{t.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:a.mark((function e(t){var n,i,r;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:n=k(this._markers.values()),e.prev=1,n.s();case 3:if((i=n.n()).done){e.next=11;break}if(r=i.value,e.t0=r.name.startsWith(t+":"),!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e["catch"](1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(e){e.stopListening(),e._detachLiveRange()}}]),e}();Kn(Wl,Fn);var ql=function(){function e(t,n,i,r){w(this,e),this.name=t,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=i,this._affectsData=r}return x(e,[{key:"getStart",value:function(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._liveRange.toRange()}},{key:"is",value:function(e){return"marker"===e||"model:marker"===e}},{key:"_attachLiveRange",value:function(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}},{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new jn.b("marker-destroyed: Cannot use a destroyed marker instance.",this);return this._affectsData}}]),e}();Kn(ql,Fn);var Yl=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"clone",value:function(){return new n(this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.baseVersion+1)}},{key:"_execute",value:function(){}},{key:"type",get:function(){return"noop"}}],[{key:"className",get:function(){return"NoOperation"}}]),n}(cl),Gl={};Gl[bl.className]=bl,Gl[_l.className]=_l,Gl[xl.className]=xl,Gl[wl.className]=wl,Gl[Yl.className]=Yl,Gl[cl.className]=cl,Gl[Cl.className]=Cl,Gl[Al.className]=Al,Gl[Pl.className]=Pl,Gl[Tl.className]=Tl;var Kl=function(e){C(n,e);var t=A(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(w(this,n),r=t.call(this,e,i,o),!r.root.is("rootElement"))throw new jn.b("model-liveposition-root-not-rootelement: LivePosition's root has to be an instance of RootElement.",e);return Jl.call(P(r)),T(r)}return x(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e}},{key:"toPosition",value:function(){return new Xa(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}]),n}(Xa);function Jl(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var i=n[0];i.isDocumentOperation&&Ql.call(e,i)}),{priority:"low"})}function Ql(e){var t=this.getTransformedByOperation(e);if(!this.isEqual(t)){var n=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",n)}}Kn(Kl,Fn);var Zl=function(){function e(t,n,i){w(this,e),this.model=t,this.writer=n,this.position=i,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}return x(e,[{key:"handleNodes",value:function(e,t){e=Array.from(e);for(var n=0;n<e.length;n++){var i=e[n];this._handleNode(i,{isFirst:0===n&&t.isFirst,isLast:n===e.length-1&&t.isLast})}this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"getSelectionRange",value:function(){return this.nodeToSelect?is._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new is(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(e,t){this.schema.isObject(e)?this._handleObject(e,t):this._checkAndSplitToAllowedPosition(e,t)?(this._insert(e),this._mergeSiblingsOf(e,t)):this._handleDisallowedNode(e,t)}},{key:"_handleObject",value:function(e,t){this._checkAndSplitToAllowedPosition(e)?this._insert(e):this._tryAutoparagraphing(e,t)}},{key:"_handleDisallowedNode",value:function(e,t){e.is("element")?this.handleNodes(e.getChildren(),t):this._tryAutoparagraphing(e,t)}},{key:"_insert",value:function(e){if(!this.schema.checkChild(this.position,e))throw new jn.b("insertcontent-wrong-position: Given node cannot be inserted on the given position.",this,{node:e,position:this.position});var t=Kl.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this.writer.insert(e,this.position),this.position=t.toPosition(),t.detach(),this.schema.isObject(e)&&!this.schema.checkChild(this.position,"$text")?this.nodeToSelect=e:this.nodeToSelect=null,this._filterAttributesOf.push(e)}},{key:"_setAffectedBoundaries",value:function(e){this._affectedStart||(this._affectedStart=Kl.fromPosition(e,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(e)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Kl.fromPosition(e,"toNext"))}},{key:"_mergeSiblingsOf",value:function(e,t){if(e instanceof Ja){var n=this._canMergeLeft(e,t),i=this._canMergeRight(e,t),r=Kl._createBefore(e);r.stickiness="toNext";var o=Kl._createAfter(e);if(o.stickiness="toNext",n){var a=Kl.fromPosition(this.position);a.stickiness="toNext",this._affectedStart.isEqual(r)&&(this._affectedStart.detach(),this._affectedStart=Kl._createAt(r.nodeBefore,"end","toPrevious")),this.writer.merge(r),r.isEqual(this._affectedEnd)&&t.isLast&&(this._affectedEnd.detach(),this._affectedEnd=Kl._createAt(r.nodeBefore,"end","toNext")),this.position=a.toPosition(),a.detach()}if(i){if(!this.position.isEqual(o))throw new jn.b("insertcontent-invalid-insertion-position: An internal error occurred during insertContent().",this);this.position=Xa._createAt(o.nodeBefore,"end");var s=Kl.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(o)&&(this._affectedEnd.detach(),this._affectedEnd=Kl._createAt(o.nodeBefore,"end","toNext")),this.writer.merge(o),o.getShiftedBy(-1).isEqual(this._affectedStart)&&t.isFirst&&(this._affectedStart.detach(),this._affectedStart=Kl._createAt(o.nodeBefore,0,"toPrevious")),this.position=s.toPosition(),s.detach()}(n||i)&&this._filterAttributesOf.push(this.position.parent),r.detach(),o.detach()}}},{key:"_canMergeLeft",value:function(e,t){var n=e.previousSibling;return t.isFirst&&n instanceof Ja&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(n,e)}},{key:"_canMergeRight",value:function(e,t){var n=e.nextSibling;return t.isLast&&n instanceof Ja&&this.canMergeWith.has(n)&&this.model.schema.checkMerge(e,n)}},{key:"_tryAutoparagraphing",value:function(e,t){var n=this.writer.createElement("paragraph");this._getAllowedIn(n,this.position.parent)&&this.schema.checkChild(n,e)&&(n._appendChild(e),this._handleNode(n,t))}},{key:"_checkAndSplitToAllowedPosition",value:function(e){var t=this._getAllowedIn(e,this.position.parent);if(!t)return!1;for(;t!=this.position.parent;){if(this.schema.isLimit(this.position.parent))return!1;if(this.position.isAtStart){var n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===t&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var i=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=i,this.canMergeWith.add(this.position.nodeAfter)}}return!0}},{key:"_getAllowedIn",value:function(e,t){return this.schema.checkChild(t,e)?t:t.parent?this._getAllowedIn(e,t.parent):null}}]),e}();function Xl(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){var i=t.getFirstRange();if("$graveyard"!=i.root.rootName){var r=e.schema;e.change((function(e){if(n.doNotResetEntireContent||!function(e,t){var n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;var i=t.getFirstRange();return i.start.parent!=i.end.parent&&e.checkChild(n,"paragraph")}(r,t)){var o=function(e){var t=e.root.document.model,n=e.start,i=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){var r=function(e){var t,n=e.parent,i=n.root.document.model.schema,r=n.getAncestors({parentFirst:!0,includeSelf:!0}),o=k(r);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(i.isLimit(a))return null;if(i.isBlock(a))return a}}catch(s){o.e(s)}finally{o.f()}}(i);if(r&&i.isTouching(t.createPositionAt(r,0))){var o=t.createSelection(e);t.modifySelection(o,{direction:"backward"}),i=o.getLastPosition()}}return[Kl.fromPosition(n,"toPrevious"),Kl.fromPosition(i,"toNext")]}(i),a=v(o,2),s=a[0],l=a[1];i.start.isTouching(i.end)||e.remove(i),n.leaveUnmerged||(function(e,t,n){var i=e.model;if(ec(e.model.schema,t,n)){var r=function(e,t){for(var n=e.getAncestors(),i=t.getAncestors(),r=0;n[r]&&n[r]==i[r];)r++;return[n[r],i[r]]}(t,n),o=v(r,2),a=o[0],s=o[1];!i.hasContent(a,{ignoreMarkers:!0})&&i.hasContent(s,{ignoreMarkers:!0})?function e(t,n,i,r){var o=n.parent,a=i.parent;if(o!=r&&a!=r){for(n=t.createPositionAfter(o),(i=t.createPositionBefore(a)).isEqual(n)||t.insert(o,i);n.parent.isEmpty;){var s=n.parent;n=t.createPositionBefore(s),t.remove(s)}i=t.createPositionBefore(a),function(e,t){var n=t.nodeBefore,i=t.nodeAfter;n.name!=i.name&&e.rename(n,i.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(i.getAttributes()),n),e.merge(t)}(t,i),ec(t.model.schema,n,i)&&e(t,n,i,r)}}(e,t,n,a.parent):function e(t,n,i,r){var o=n.parent,a=i.parent;if(o!=r&&a!=r){for(n=t.createPositionAfter(o),(i=t.createPositionBefore(a)).isEqual(n)||t.insert(a,n),t.merge(n);i.parent.isEmpty;){var s=i.parent;i=t.createPositionBefore(s),t.remove(s)}ec(t.model.schema,n,i)&&e(t,n,i,r)}}(e,t,n,a.parent)}}(e,s,l),r.removeDisallowedAttributes(s.parent.getChildren(),e)),nc(e,t,s),!n.doNotAutoparagraph&&function(e,t){var n=e.checkChild(t,"$text"),i=e.checkChild(t,"paragraph");return!n&&i}(r,s)&&tc(e,s,t),s.detach(),l.detach()}else(function(e,t){var n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),tc(e,e.createPositionAt(n,0),t)})(e,t)}))}}}function ec(e,t,n){var i=t.parent,r=n.parent;return i!=r&&!e.isLimit(i)&&!e.isLimit(r)&&function(e,t,n){var i,r=new is(e,t),o=k(r.getWalker());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(n.isLimit(a.item))return!1}}catch(s){o.e(s)}finally{o.f()}return!0}(t,n,e)}function tc(e,t,n){var i=e.createElement("paragraph");e.insert(i,t),nc(e,n,e.createPositionAt(i,0))}function nc(e,t,n){t instanceof ks?e.setSelection(n):t.setTo(n)}var ic=' ,.?!:;"-()';function rc(e,t){var n=e.isForward,i=e.walker,r=e.unit,o=e.schema,a=t.type,s=t.item,l=t.nextPosition;if("text"==a)return"word"===e.unit?function(e,t){var n=e.position.textNode;if(n)for(var i=e.position.offset-n.startOffset;!ac(n.data,i,t)&&!sc(n,i,t);){e.next();var r=t?e.position.nodeAfter:e.position.nodeBefore;if(r&&r.is("$text")){var o=r.data.charAt(t?0:r.data.length-1);ic.includes(o)||(e.next(),n=e.position.textNode)}i=e.position.offset-n.startOffset}return e.position}(i,n):function(e,t){var n=e.position.textNode;if(n)for(var i=n.data,r=e.position.offset-n.startOffset;Bl(i,r)||"character"==t&&Fl(i,r);)e.next(),r=e.position.offset-n.startOffset;return e.position}(i,r);if(a==(n?"elementStart":"elementEnd")){if(o.isSelectable(s))return Xa._createAt(s,n?"after":"before");if(o.checkChild(l,"$text"))return l}else{if(o.isLimit(s))return void i.skip((function(){return!0}));if(o.checkChild(l,"$text"))return l}}function oc(e,t){var n=e.root,i=Xa._createAt(n,t?"end":0);return t?new is(e,i):new is(i,e)}function ac(e,t,n){var i=t+(n?0:-1);return ic.includes(e.charAt(i))}function sc(e,t,n){return t===(n?e.endOffset:0)}function lc(e,t){var n=[];Array.from(e.getItems({direction:"backward"})).map((function(e){return t.createRangeOn(e)})).filter((function(t){return(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))})).forEach((function(e){n.push(e.start.parent),t.remove(e)})),n.forEach((function(e){for(var n=e;n.parent&&n.isEmpty;){var i=t.createRangeOn(n);n=n.parent,t.remove(i)}}))}function cc(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=t.document.selection,r=t.schema,o=[],a=!1,s=k(i.getRanges());try{for(s.s();!(n=s.n()).done;){var l=n.value,c=uc(l,r);c&&!c.isEqual(l)?(o.push(c),a=!0):o.push(l)}}catch(u){s.e(u)}finally{s.f()}a&&e.setSelection(function(e){var t=[];t.push(e.shift());var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=t.pop();if(r.isIntersecting(o)){var a=o.start.isAfter(r.start)?r.start:o.start,s=o.end.isAfter(r.end)?o.end:r.end,l=new is(a,s);t.push(l)}else t.push(o),t.push(r)}}catch(u){i.e(u)}finally{i.f()}return t}(o),{backward:i.isBackward})}(t,e)}))}function uc(e,t){return e.isCollapsed?function(e,t){var n=e.start,i=t.getNearestSelectionRange(n);if(!i)return null;if(!i.isCollapsed)return i;var r=i.start;return n.isEqual(r)?null:new is(r)}(e,t):function(e,t){var n=e.start,i=e.end,r=t.checkChild(n,"$text"),o=t.checkChild(i,"$text"),a=t.getLimitElement(n),s=t.getLimitElement(i);if(a===s){if(r&&o)return null;if(function(e,t,n){var i=e.nodeAfter&&!n.isLimit(e.nodeAfter)||n.checkChild(e,"$text"),r=t.nodeBefore&&!n.isLimit(t.nodeBefore)||n.checkChild(t,"$text");return i||r}(n,i,t)){var l=n.nodeAfter&&t.isSelectable(n.nodeAfter)?null:t.getNearestSelectionRange(n,"forward"),c=i.nodeBefore&&t.isSelectable(i.nodeBefore)?null:t.getNearestSelectionRange(i,"backward"),u=l?l.start:n,d=c?c.start:i;return new is(u,d)}}var h=a&&!a.is("rootElement"),f=s&&!s.is("rootElement");if(h||f){var v=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,p=h&&(!v||!hc(n.nodeAfter,t)),m=f&&(!v||!hc(i.nodeBefore,t)),g=n,k=i;return p&&(g=Xa._createBefore(dc(a,t))),m&&(k=Xa._createAfter(dc(s,t))),new is(g,k)}return null}(e,t)}function dc(e,t){for(var n=e,i=n;t.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function hc(e,t){return e&&t.isSelectable(e)}var fc=function(){function e(){var t=this;w(this,e),this.markers=new Wl,this.document=new Hl(this),this.schema=new $s,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(e){return t.decorate(e)})),this.on("applyOperation",(function(e,t){t[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",isLimit:!0}),this.schema.extend("$text",{allowIn:"$clipboardHolder"}),this.schema.register("$marker"),this.schema.addChildCheck((function(e,t){if("$marker"===t.name)return!0})),cc(this),this.document.registerPostFixer(Os)}return x(e,[{key:"change",value:function(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new ll,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){jn.b.rethrowUnexpectedError(e,this)}}},{key:"enqueueChange",value:function(e,t){try{"string"==typeof e?e=new ll(e):"function"==typeof e&&(t=e,e=new ll),this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){jn.b.rethrowUnexpectedError(e,this)}}},{key:"applyOperation",value:function(e){e._execute()}},{key:"insertContent",value:function(e,t,n){return function(e,t,n,i){return e.change((function(r){var o;o=n?n instanceof cs||n instanceof ks?n:r.createSelection(n,i):e.document.selection,o.isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new Zl(e,r,o.anchor);a=t.is("documentFragment")?t.getChildren():[t],s.handleNodes(a,{isFirst:!0,isLast:!0});var l=s.getSelectionRange();l&&(o instanceof ks?r.setSelection(l):o.setTo(l));var c=s.getAffectedRange()||e.createRange(o.anchor);return s.destroy(),c}))}(this,e,t,n)}},{key:"deleteContent",value:function(e,t){Xl(this,e,t)}},{key:"modifySelection",value:function(e,t){!function(e,t){for(var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.schema,o="backward"!=i.direction,a=i.unit?i.unit:"character",s=t.focus,l=new Qa({boundaries:oc(s,o),singleCharacters:!0,direction:o?"forward":"backward"}),c={walker:l,schema:r,isForward:o,unit:a},u=function(){if(n.done)return{v:void 0};var i=rc(c,n.value);return i?{v:void(t instanceof ks?e.change((function(e){e.setSelectionFocus(i)})):t.setFocus(i))}:void 0};n=l.next();){var d=u();if("object"===R(d))return d.v}}(this,e,t)}},{key:"getSelectedContent",value:function(e){return function(e,t){return e.change((function(e){var n=e.createDocumentFragment(),i=t.getFirstRange();if(!i||i.isCollapsed)return n;var r,o=i.start.root,a=i.start.getCommonPath(i.end),s=o.getNodeByPath(a);r=i.start.parent==i.end.parent?i:e.createRange(e.createPositionAt(s,i.start.path[a.length]),e.createPositionAt(s,i.end.path[a.length]+1));var l,c=r.end.offset-r.start.offset,u=k(r.getItems({shallow:!0}));try{for(u.s();!(l=u.n()).done;){var d=l.value;d.is("$textProxy")?e.appendText(d.data,d.getAttributes(),n):e.append(e.cloneElement(d,!0),n)}}catch(v){u.e(v)}finally{u.f()}if(r!=i){var h=i._getTransformedByMove(r.start,e.createPositionAt(n,0),c)[0],f=e.createRange(e.createPositionAt(n,0),h.start);lc(e.createRange(h.end,e.createPositionAt(n,"end")),e),lc(f,e)}return n}))}(this,e)}},{key:"hasContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof Ja?is._createIn(e):e;if(n.isCollapsed)return!1;var i=t.ignoreWhitespaces,r=void 0!==i&&i,o=t.ignoreMarkers,a=void 0!==o&&o;if(!a){var s,l=k(this.markers.getMarkersIntersectingRange(n));try{for(l.s();!(s=l.n()).done;){var c=s.value;if(c.affectsData)return!0}}catch(f){l.e(f)}finally{l.f()}}var u,d=k(n.getItems());try{for(d.s();!(u=d.n()).done;){var h=u.value;if(this.schema.isContent(h)){if(!h.is("$textProxy"))return!0;if(!r)return!0;if(-1!==h.data.search(/\S/))return!0}}}catch(f){d.e(f)}finally{d.f()}return!1}},{key:"createPositionFromPath",value:function(e,t,n){return new Xa(e,t,n)}},{key:"createPositionAt",value:function(e,t){return Xa._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Xa._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Xa._createBefore(e)}},{key:"createRange",value:function(e,t){return new is(e,t)}},{key:"createRangeIn",value:function(e){return is._createIn(e)}},{key:"createRangeOn",value:function(e){return is._createOn(e)}},{key:"createSelection",value:function(e,t,n){return new cs(e,t,n)}},{key:"createBatch",value:function(e){return new ll(e)}},{key:"createOperationFromJSON",value:function(e){return function(){function e(){w(this,e)}return x(e,null,[{key:"fromJSON",value:function(e,t){return Gl[e.__className].fromJSON(e,t)}}]),e}().fromJSON(e,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var e=[];for(this.fire("_beforeChanges");this._pendingChanges.length;){var t=this._pendingChanges[0].batch;this._currentWriter=new Sl(this,t);var n=this._pendingChanges[0].callback(this._currentWriter);e.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),e}}]),e}();Kn(fc,vr);var vc=function(){function e(){w(this,e),this._listener=Object.create(Vo)}return x(e,[{key:"listenTo",value:function(e){var t=this;this._listener.listenTo(e,"keydown",(function(e,n){t._listener.fire("_keydown:"+Fr(n),n)}))}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Ur(e),r=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(function(e,n){t(n,(function(){n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:r})}},{key:"press",value:function(e){return!!this._listener.fire("_keydown:"+Fr(e),e)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),e}(),pc=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this),i.editor=e,i}return x(n,[{key:"set",value:function(e,t){var i=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){var o=t;t=function(e,t){i.editor.execute(o),t()}}l(N(n.prototype),"set",this).call(this,e,t,r)}}]),n}(vc),mc=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};w(this,t),this._context=n.context||new ni({language:n.language}),this._context._addEditor(this,!n.context);var i=Array.from(this.constructor.builtinPlugins||[]);this.config=new On(n,this.constructor.defaultConfig),this.config.define("plugins",i),this.config.define(this._context._getEditorConfig()),this.plugins=new Qn(this,i,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Fs,this.set("state","initializing"),this.once("ready",(function(){return e.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return e.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new fc;var r=new nr;this.data=new rl(this.model,r),this.editing=new Bs(this.model,r),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new ol([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new pc(this),this.keystrokes.listenTo(this.editing.view.document)}return x(t,[{key:"initPlugins",value:function(){var e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],i=e.get("extraPlugins")||[];return this.plugins.init(t.concat(i),n)}},{key:"destroy",value:function(){var e=this,t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((function(t){return e.once("ready",t)}))),t.then((function(){e.fire("destroy"),e.stopListening(),e.commands.destroy()})).then((function(){return e.plugins.destroy()})).then((function(){e.model.destroy(),e.data.destroy(),e.editing.destroy(),e.keystrokes.destroy()})).then((function(){return e._context._removeEditor(e)}))}},{key:"execute",value:function(){try{var t;return(t=this.commands).execute.apply(t,arguments)}catch(e){jn.b.rethrowUnexpectedError(e,this)}}}]),t}();Kn(mc,vr);var gc={setData:function(e){this.data.set(e)},getData:function(e){return this.data.get(e)}},kc={updateSourceElement:function(){if(!this.sourceElement)throw new jn.b("editor-missing-sourceelement: Cannot update the source element of a detached editor.",this);var e,t;e=this.sourceElement,t=this.data.get(),e instanceof HTMLTextAreaElement&&(e.value=t),e.innerHTML=t}},bc=function(){function e(){w(this,e)}return x(e,[{key:"getHtml",value:function(e){var t=document.implementation.createHTMLDocument("").createElement("div");return t.appendChild(e),t.innerHTML}}]),e}(),yc=function(){function e(t){w(this,e),this._domParser=new DOMParser,this._domConverter=new Ro(t,{blockFillerMode:"nbsp"}),this._htmlWriter=new bc}return x(e,[{key:"toData",value:function(e){var t=this._domConverter.viewToDom(e,document);return this._htmlWriter.getHtml(t)}},{key:"toView",value:function(e){var t=this._toDom(e);return this._domConverter.domToView(t)}},{key:"_toDom",value:function(e){for(var t=this._domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),i=t.body.childNodes;i.length>0;)n.appendChild(i[0]);return n}}]),e}(),wc=function(){function e(t){w(this,e),this.editor=t,this._components=new Map}return x(e,[{key:"names",value:a.mark((function e(){var t,n,i;return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:t=k(this._components.values()),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return i=n.value,e.next=7,i.originalName;case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e["catch"](1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"add",value:function(e,t){this._components.set(_c(e),{callback:t,originalName:e})}},{key:"create",value:function(e){if(!this.has(e))throw new jn.b("componentfactory-item-missing: The required component is not registered in the factory.",this,{name:e});return this._components.get(_c(e)).callback(this.editor.locale)}},{key:"has",value:function(e){return this._components.has(_c(e))}}]),e}();function _c(e){return String(e).toLowerCase()}var xc=function(){function e(){w(this,e),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}return x(e,[{key:"add",value:function(e){var t=this;if(this._elements.has(e))throw new jn.b("focusTracker-add-element-already-exist: This element is already tracked by FocusTracker.",this);this.listenTo(e,"focus",(function(){return t._focus(e)}),{useCapture:!0}),this.listenTo(e,"blur",(function(){return t._blur()}),{useCapture:!0}),this._elements.add(e)}},{key:"remove",value:function(e){e===this.focusedElement&&this._blur(e),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}},{key:"_blur",value:function(){var e=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){e.focusedElement=null,e.isFocused=!1}),0)}}]),e}();Kn(xc,Vo),Kn(xc,vr);var Cc=function(){function e(t){var n=this;w(this,e),this.editor=t,this.componentFactory=new wc(t),this.focusTracker=new xc,this._editableElementsMap=new Map,this.listenTo(t.editing.view.document,"layoutChanged",(function(){return n.update()}))}return x(e,[{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var e,t=k(this._editableElementsMap.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.ckeditorInstance=null}}catch(i){t.e(i)}finally{t.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(e,t){this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"element",get:function(){return null}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}}]),e}();Kn(Cc,Fn),n(13);var Ac=new WeakMap;function Tc(e){var t=e.view,n=e.element,i=e.text,r=e.isDirectHost,o=void 0===r||r,a=t.document;Ac.has(a)||(Ac.set(a,new Map),a.registerPostFixer((function(e){return Ec(a,e)}))),Ac.get(a).set(n,{text:i,isDirectHost:o}),t.change((function(e){return Ec(a,e)}))}function Pc(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function Ec(e,t){var n,i=Ac.get(e),r=!1,o=k(i);try{for(o.s();!(n=o.n()).done;){var a=v(n.value,2),s=a[0],l=a[1];Sc(t,s,l)&&(r=!0)}}catch(c){o.e(c)}finally{o.f()}return r}function Sc(e,t,n){var i=n.text,r=n.isDirectHost,o=r?t:function(e){if(1===e.childCount){var t=e.getChild(0);if(t.is("element")&&!t.is("uiElement"))return t}return null}(t),a=!1;return!!o&&(n.hostElement=o,o.getAttribute("data-placeholder")!==i&&(e.setAttribute("data-placeholder",i,o),a=!0),function(e){if(!e.isAttached())return!1;var t=!Array.from(e.getChildren()).some((function(e){return!e.is("uiElement")})),n=e.document;if(!n.isFocused&&t)return!0;var i=n.selection.anchor;return!(!t||!i||i.parent===e)}(o)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,o)&&(a=!0):Pc(e,o)&&(a=!0),a)}var Oc=function(){function e(){w(this,e),this._replacedElements=[]}return x(e,[{key:"replace",value:function(e,t){this._replacedElements.push({element:e,newElement:t}),e.style.display="none",t&&e.parentNode.insertBefore(t,e.nextSibling)}},{key:"restore",value:function(){this._replacedElements.forEach((function(e){var t=e.element,n=e.newElement;t.style.display="",n&&n.remove()})),this._replacedElements=[]}}]),e}(),Mc=function(e){C(n,e);var t=A(n);function n(e,i){var r,o;return w(this,n),r=t.call(this,e),r.view=i,r._toolbarConfig=(o=e.config.get("toolbar"),Array.isArray(o)?{items:o}:o?Object.assign({items:[]},o):{items:[]}),r._elementReplacer=new Oc,r}return x(n,[{key:"init",value:function(e){var t=this.editor,n=this.view,i=t.editing.view,r=n.editable,o=i.document.getRoot();r.name=o.rootName,n.render();var a=r.element;this.setEditableElement(r.name,a),this.focusTracker.add(a),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(a),e&&this._elementReplacer.replace(e,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var e=this.view,t=this.editor.editing.view;this._elementReplacer.restore(),t.detachDomRoot(e.editable.name),e.destroy(),l(N(n.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var e=this.editor,t=this.view,n=e.editing.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,this._toolbarConfig.viewportTopOffset&&(t.stickyPanel.viewportTopOffset=this._toolbarConfig.viewportTopOffset),t.toolbar.fillFromConfig(this._toolbarConfig.items,this.componentFactory),function(e){var t=e.origin,n=e.originKeystrokeHandler,i=e.originFocusTracker,r=e.toolbar,o=e.beforeFocus,a=e.afterBlur;i.add(r.element),n.set("Alt+F10",(function(e,t){i.isFocused&&!r.focusTracker.isFocused&&(o&&o(),r.focus(),t())})),r.keystrokes.set("Esc",(function(e,n){r.focusTracker.isFocused&&(t.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:e.keystrokes,toolbar:t.toolbar})}},{key:"_initPlaceholder",value:function(){var e=this.editor,t=e.editing.view,n=t.document.getRoot(),i=e.sourceElement,r=e.config.get("placeholder")||i&&"textarea"===i.tagName.toLowerCase()&&i.getAttribute("placeholder");r&&Tc({view:t,element:n,text:r,isDirectHost:!1})}},{key:"element",get:function(){return this.view.element}}]),n}(Cc),Ic=function(e){C(n,e);var t=A(n);function n(){var e,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return w(this,n),e=t.call(this,i,{idProperty:"viewUid"}),e.on("add",(function(t,n,i){e._renderViewIntoCollectionParent(n,i)})),e.on("remove",(function(t,n){n.element&&e._parentElement&&n.element.remove()})),e._parentElement=null,e}return x(n,[{key:"destroy",value:function(){this.map((function(e){return e.destroy()}))}},{key:"setParent",value:function(e){this._parentElement=e;var t,n=k(this);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._renderViewIntoCollectionParent(i)}}catch(r){n.e(r)}finally{n.f()}}},{key:"delegate",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];if(!n.length||!n.every((function(e){return"string"==typeof e})))throw new jn.b("ui-viewcollection-delegate-wrong-events: All event names must be strings.",this);return{to:function(t){var i,r=k(e);try{for(r.s();!(i=r.n()).done;){var o,a=i.value,s=k(n);try{for(s.s();!(o=s.n()).done;){var l=o.value;a.delegate(l).to(t)}}catch(c){s.e(c)}finally{s.f()}}}catch(c){r.e(c)}finally{r.f()}e.on("add",(function(e,i){var r,o=k(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.delegate(a).to(t)}}catch(c){o.e(c)}finally{o.f()}})),e.on("remove",(function(e,i){var r,o=k(n);try{for(o.s();!(r=o.n()).done;){var a=r.value;i.stopDelegating(a,t)}}catch(c){o.e(c)}finally{o.f()}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(e,t){e.isRendered||e.render(),e.element&&this._parentElement&&this._parentElement.insertBefore(e.element,this._parentElement.children[t])}}]),n}(Jn),Nc=function(){function e(t){w(this,e),Object.assign(this,Hc(Uc(t))),this._isRendered=!1,this._revertData=null}return x(e,[{key:"render",value:function(){var e=this._renderNode({intoFragment:!0});return this._isRendered=!0,e}},{key:"apply",value:function(e){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:e,isApplying:!0,revertData:this._revertData}),e}},{key:"revert",value:function(e){if(!this._revertData)throw new jn.b("ui-template-revert-not-applied: Attempting to revert a template which has not been applied yet.",[this,e]);this._revertTemplateFromNode(e,this._revertData)}},{key:"getViews",value:a.mark((function e(){return a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.delegateYield(a.mark((function e(t){var n,i,r;return a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:if(!t.children){o.next=24;break}n=k(t.children),o.prev=2,n.s();case 4:if((i=n.n()).done){o.next=16;break}if(r=i.value,!Gc(r)){o.next=11;break}return o.next=9,r;case 9:o.next=14;break;case 11:if(o.t0=Kc(r),!o.t0){o.next=14;break}return o.delegateYield(e(r),"t1",14);case 14:o.next=4;break;case 16:o.next=21;break;case 18:o.prev=18,o.t2=o["catch"](2),n.e(o.t2);case 21:return o.prev=21,n.f(),o.finish(21);case 24:case"end":return o.stop()}}),e,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"_renderNode",value:function(e){var t;if(t=e.node?this.tag&&this.text:this.tag?this.text:!this.text,t)throw new jn.b('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering a new Node.',this);return this.text?this._renderText(e):this._renderElement(e)}},{key:"_renderElement",value:function(e){var t=e.node;return t||(t=e.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(e),this._renderElementChildren(e),this._setUpListeners(e),t}},{key:"_renderText",value:function(e){var t=e.node;return t?e.revertData.text=t.textContent:t=e.node=document.createTextNode(""),zc(this.text)?this._bindToObservable({schema:this.text,updater:Vc(t),data:e}):t.textContent=this.text.join(""),t}},{key:"_renderAttributes",value:function(e){var t,n,i,r;if(this.attributes){var o=e.node,a=e.revertData;for(t in this.attributes)if(i=o.getAttribute(t),n=this.attributes[t],a&&(a.attributes[t]=i),r=ne(n[0])&&n[0].ns?n[0].ns:null,zc(n)){var s=r?n[0].value:n;a&&Qc(t)&&s.unshift(i),this._bindToObservable({schema:s,updater:Bc(o,t,r),data:e})}else"style"==t&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],e):(a&&i&&Qc(t)&&n.unshift(i),n=n.map((function(e){return e&&e.value||e})).reduce((function(e,t){return e.concat(t)}),[]).reduce(Wc,""),Yc(n)||o.setAttributeNS(r,t,n))}}},{key:"_renderStyleAttribute",value:function(e,t){var n=t.node;for(var i in e){var r=e[i];zc(r)?this._bindToObservable({schema:[r],updater:Fc(n,i),data:t}):n.style[i]=r}}},{key:"_renderElementChildren",value:function(e){var t,n=e.node,i=e.intoFragment?document.createDocumentFragment():n,r=e.isApplying,o=0,a=k(this.children);try{for(a.s();!(t=a.n()).done;){var s=t.value;if(Jc(s)){if(!r){s.setParent(n);var l,c=k(s);try{for(c.s();!(l=c.n()).done;){var u=l.value;i.appendChild(u.element)}}catch(h){c.e(h)}finally{c.f()}}}else if(Gc(s))r||(s.isRendered||s.render(),i.appendChild(s.element));else if(Ao(s))i.appendChild(s);else if(r){var d={children:[],bindings:[],attributes:{}};e.revertData.children.push(d),s._renderNode({node:i.childNodes[o++],isApplying:!0,revertData:d})}else i.appendChild(s.render())}}catch(h){a.e(h)}finally{a.f()}e.intoFragment&&n.appendChild(i)}},{key:"_setUpListeners",value:function(e){var t=this;if(this.eventListeners){var n=function(n){var i=t.eventListeners[n].map((function(t){var i=n.split("@"),r=v(i,2),o=r[0],a=r[1];return t.activateDomEventListener(o,a,e)}));e.revertData&&e.revertData.bindings.push(i)};for(var i in this.eventListeners)n(i)}}},{key:"_bindToObservable",value:function(e){var t=e.schema,n=e.updater,i=e.data,r=i.revertData;jc(t,n,i);var o=t.filter((function(e){return!Yc(e)})).filter((function(e){return e.observable})).map((function(e){return e.activateAttributeListener(t,n,i)}));r&&r.bindings.push(o)}},{key:"_revertTemplateFromNode",value:function(e,t){var n,i=k(t.bindings);try{for(i.s();!(n=i.n()).done;){var r,o=n.value,a=k(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;s()}}catch(d){a.e(d)}finally{a.f()}}}catch(d){i.e(d)}finally{i.f()}if(t.text)e.textContent=t.text;else{for(var l in t.attributes){var c=t.attributes[l];null===c?e.removeAttribute(l):e.setAttribute(l,c)}for(var u=0;u<t.children.length;++u)this._revertTemplateFromNode(e.childNodes[u],t.children[u])}}}],[{key:"bind",value:function(e,t){return{to:function(n,i){return new Dc({eventNameOrFunction:n,attribute:n,observable:e,emitter:t,callback:i})},if:function(n,i,r){return new Lc({observable:e,emitter:t,attribute:n,valueIfTrue:i,callback:r})}}}},{key:"extend",value:function(e,t){if(e._isRendered)throw new jn.b("template-extend-render: Attempting to extend a template which has already been rendered.",[this,e]);!function e(t,n){var i;if(n.attributes&&(t.attributes||(t.attributes={}),qc(t.attributes,n.attributes)),n.eventListeners&&(t.eventListeners||(t.eventListeners={}),qc(t.eventListeners,n.eventListeners)),n.text&&(i=t.text).push.apply(i,u(n.text)),n.children&&n.children.length){if(t.children.length!=n.children.length)throw new jn.b("ui-template-extend-children-mismatch: The number of children in extended definition does not match.",t);var r,o=0,a=k(n.children);try{for(a.s();!(r=a.n()).done;){var s=r.value;e(t.children[o++],s)}}catch(l){a.e(l)}finally{a.f()}}}(e,Hc(Uc(t)))}}]),e}();Kn(Nc,Fn);var Rc=function(){function e(t){w(this,e),Object.assign(this,t)}return x(e,[{key:"getValue",value:function(e){var t=this.observable[this.attribute];return this.callback?this.callback(t,e):t}},{key:"activateAttributeListener",value:function(e,t,n){var i=this,r=function(){return jc(e,t,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,r),function(){i.emitter.stopListening(i.observable,"change:"+i.attribute,r)}}}]),e}(),Dc=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"activateDomEventListener",value:function(e,t,n){var i=this,r=function(e,n){t&&!n.target.matches(t)||("function"==typeof i.eventNameOrFunction?i.eventNameOrFunction(n):i.observable.fire(i.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,e,r),function(){i.emitter.stopListening(n.node,e,r)}}}]),n}(Rc),Lc=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"getValue",value:function(e){return!Yc(l(N(n.prototype),"getValue",this).call(this,e))&&(this.valueIfTrue||!0)}}]),n}(Rc);function zc(e){return!!e&&(e.value&&(e=e.value),Array.isArray(e)?e.some(zc):e instanceof Rc)}function jc(e,t,n){var i=n.node,r=function(e,t){return e.map((function(e){return e instanceof Rc?e.getValue(t):e}))}(e,i);r=1==e.length&&e[0]instanceof Lc?r[0]:r.reduce(Wc,""),Yc(r)?t.remove():t.set(r)}function Vc(e){return{set:function(t){e.textContent=t},remove:function(){e.textContent=""}}}function Bc(e,t,n){return{set:function(i){e.setAttributeNS(n,t,i)},remove:function(){e.removeAttributeNS(n,t)}}}function Fc(e,t){return{set:function(n){e.style[t]=n},remove:function(){e.style[t]=null}}}function Uc(e){return En(e,(function(e){if(e&&(e instanceof Rc||Kc(e)||Gc(e)||Jc(e)))return e}))}function Hc(e){if("string"==typeof e?e=function(e){return{text:[e]}}(e):e.text&&function(e){Array.isArray(e.text)||(e.text=[e.text])}(e),e.on&&(e.eventListeners=function(e){for(var t in e)$c(e,t);return e}(e.on),delete e.on),!e.text){e.attributes&&function(e){for(var t in e)e[t].value&&(e[t].value=[].concat(e[t].value)),$c(e,t)}(e.attributes);var t=[];if(e.children)if(Jc(e.children))t.push(e.children);else{var n,i=k(e.children);try{for(i.s();!(n=i.n()).done;){var r=n.value;Kc(r)||Gc(r)||Ao(r)?t.push(r):t.push(new Nc(r))}}catch(o){i.e(o)}finally{i.f()}}e.children=t}return e}function $c(e,t){Array.isArray(e[t])||(e[t]=[e[t]])}function Wc(e,t){return Yc(t)?e:Yc(e)?t:"".concat(e," ").concat(t)}function qc(e,t){for(var n in t){var i;e[n]?(i=e[n]).push.apply(i,u(t[n])):e[n]=t[n]}}function Yc(e){return!e&&0!==e}function Gc(e){return e instanceof Zc}function Kc(e){return e instanceof Nc}function Jc(e){return e instanceof Ic}function Qc(e){return"class"==e||"style"==e}n(15);var Zc=function(){function e(t){w(this,e),this.element=null,this.isRendered=!1,this.locale=t,this.t=t&&t.t,this._viewCollections=new Jn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(e,n){n.locale=t})),this.decorate("render")}return x(e,[{key:"createCollection",value:function(e){var t=new Ic(e);return this._viewCollections.add(t),t}},{key:"registerChild",value:function(e){Gn(e)||(e=[e]);var t,n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._unboundChildren.add(i)}}catch(r){n.e(r)}finally{n.f()}}},{key:"deregisterChild",value:function(e){Gn(e)||(e=[e]);var t,n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._unboundChildren.remove(i)}}catch(r){n.e(r)}finally{n.f()}}},{key:"setTemplate",value:function(e){this.template=new Nc(e)}},{key:"extendTemplate",value:function(e){Nc.extend(this.template,e)}},{key:"render",value:function(){if(this.isRendered)throw new jn.b("ui-view-render-already-rendered: This View has already been rendered.",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}},{key:"destroy",value:function(){this.stopListening(),this._viewCollections.map((function(e){return e.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}},{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Nc.bind(this,this)}}]),e}();Kn(Zc,Vo),Kn(Zc,vr);var Xc=function(e){return"string"==typeof e||!Xe(e)&&I(e)&&"[object String]"==E(e)},eu=function(e){C(n,e);var t=A(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return w(this,n),i=t.call(this,r),i.locale=e,i}return x(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Nc({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var e=document.querySelector(".ck-body-wrapper");e||(e=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],r=n&&n.xmlns,o=r?e.createElementNS(r,t):e.createElement(t);for(var a in n)o.setAttribute(a,n[a]);!Xc(i)&&Gn(i)||(i=[i]);var s,l=k(i);try{for(l.s();!(s=l.n()).done;){var c=s.value;Xc(c)&&(c=e.createTextNode(c)),o.appendChild(c)}}catch(u){l.e(u)}finally{l.f()}return o}(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){l(N(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}]),n}(Ic);n(17);var tu=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.body=new eu(e),i}return x(n,[{key:"render",value:function(){l(N(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),l(N(n.prototype),"destroy",this).call(this)}}]),n}(Zc);n(19);var nu=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e),i.set("text"),i.set("for"),i.id="ck-editor__label_"+Ln();var r=i.bindTemplate;return i.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:i.id,for:r.to("for")},children:[{text:r.to("text")}]}),i}return n}(Zc),iu=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.top=i.createCollection(),i.main=i.createCollection(),i._voiceLabelView=i._createVoiceLabel(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":i._voiceLabelView.id},children:[i._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:i.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:i.main}]}),i}return x(n,[{key:"_createVoiceLabel",value:function(){var e=this.t,t=new nu;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}]),n}(tu),ru=function(e){C(n,e);var t=A(n);function n(e,i,r){var o;return w(this,n),o=t.call(this,e),o.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=r,o._hasExternalElement=!!o._editableElement,o._editingView=i,o}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return e._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),l(N(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var e=this._editingView;function t(t){e.change((function(n){var i=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",i)}))}e.isRenderingInProgress?function n(i){e.once("change:isRenderingInProgress",(function(e,r,o){o?n(i):t(i)}))}(this):t(this)}}]),n}(Zc),ou=function(e){C(n,e);var t=A(n);function n(e,i,r){var o;return w(this,n),o=t.call(this,e,i,r),o.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this);var t=this._editingView,i=this.t;t.change((function(n){var r=t.document.getRoot(e.name);n.setAttribute("aria-label",i("Rich Text Editor, %0",[e.name]),r)}))}}]),n}(ru);function au(e){return function(t){return t+e}}n(21);var su=au("px"),lu=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("isActive",!1),i.set("isSticky",!1),i.set("limiterElement",null),i.set("limiterBottomOffset",50),i.set("viewportTopOffset",0),i.set("_marginLeft",null),i.set("_isStickyToTheLimiter",!1),i.set("_hasViewportTopOffset",!1),i.content=i.createCollection(),i._contentPanelPlaceholder=new Nc({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:r.to("isSticky",(function(e){return e?"block":"none"})),height:r.to("isSticky",(function(e){return e?su(i._panelRect.height):null}))}}}).render(),i._contentPanel=new Nc({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",r.if("isSticky","ck-sticky-panel__content_sticky"),r.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:r.to("isSticky",(function(e){return e?su(i._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:r.to("_hasViewportTopOffset",(function(e){return e?su(i.viewportTopOffset):null})),bottom:r.to("_isStickyToTheLimiter",(function(e){return e?su(i.limiterBottomOffset):null})),marginLeft:r.to("_marginLeft")}},children:i.content}).render(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[i._contentPanelPlaceholder,i._contentPanel]}),i}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Oo.window,"scroll",(function(){e._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){e._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var e,t=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:su(-Oo.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}]),n}(Zc),cu=function(){function e(t){var n=this;if(w(this,e),Object.assign(this,t),t.actions&&t.keystrokeHandler){var i=function(e){var i=t.actions[e];"string"==typeof i&&(i=[i]);var r,o=k(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;t.keystrokeHandler.set(a,(function(t,i){n[e](),i()}))}}catch(s){o.e(s)}finally{o.f()}};for(var r in t.actions)i(r)}}return x(e,[{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(e){e&&e.focus()}},{key:"_getFocusableItem",value:function(e){var t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];var i=(t+n+e)%n;do{var r=this.focusables.get(i);if(uu(r))return r;i=(i+n+e)%n}while(i!==t);return null}},{key:"first",get:function(){return this.focusables.find(uu)||null}},{key:"last",get:function(){return this.focusables.filter(uu).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var e=this,t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,i){var r=n.element===e.focusTracker.focusedElement;return r&&(t=i),r})),t)}}]),e}();function uu(e){return!(!e.focus||"none"==Oo.window.getComputedStyle(e.element).display)}var du=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),i}return n}(Zc),hu=function(){function e(t,n){w(this,e),e._observerInstance||e._createObserver(),this._element=t,this._callback=n,e._addElementCallback(t,n),e._observerInstance.observe(t)}return x(e,[{key:"destroy",value:function(){e._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(t,n){e._elementCallbacks||(e._elementCallbacks=new Map);var i=e._elementCallbacks.get(t);i||(i=new Set,e._elementCallbacks.set(t,i)),i.add(n)}},{key:"_deleteElementCallback",value:function(t,n){var i=e._getElementCallbacks(t);i&&(i.delete(n),i.size||(e._elementCallbacks.delete(t),e._observerInstance.unobserve(t))),e._elementCallbacks&&!e._elementCallbacks.size&&(e._observerInstance=null,e._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(t){return e._elementCallbacks?e._elementCallbacks.get(t):null}},{key:"_createObserver",value:function(){var t;t="function"==typeof Oo.window.ResizeObserver?Oo.window.ResizeObserver:fu,e._observerInstance=new t((function(t){var n,i=k(t);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=e._getElementCallbacks(r.target);if(o){var a,s=k(o);try{for(s.s();!(a=s.n()).done;){var l=a.value;l(r)}}catch(c){s.e(c)}finally{s.f()}}}}catch(c){i.e(c)}finally{i.f()}}))}}]),e}();hu._observerInstance=null,hu._elementCallbacks=null;var fu=function(){function e(t){w(this,e),this._callback=t,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}return x(e,[{key:"observe",value:function(e){this._elements.add(e),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}},{key:"unobserve",value:function(e){this._elements.delete(e),this._previousRects.delete(e),this._elements.size||this._stopPeriodicCheck()}},{key:"_startPeriodicCheck",value:function(){var e=this,t=function t(){e._checkElementRectsAndExecuteCallback(),e._periodicCheckTimeout=setTimeout(t,100)};this.listenTo(Oo.window,"resize",(function(){e._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout(t,100)}},{key:"_stopPeriodicCheck",value:function(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}},{key:"_checkElementRectsAndExecuteCallback",value:function(){var e,t=[],n=k(this._elements);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._hasRectChanged(i)&&t.push({target:i,contentRect:this._previousRects.get(i)})}}catch(r){n.e(r)}finally{n.f()}t.length&&this._callback(t)}},{key:"_hasRectChanged",value:function(e){if(!e.ownerDocument.body.contains(e))return!1;var t=new Ia(e),n=this._previousRects.get(e),i=!n||!n.isEqual(t);return this._previousRects.set(e,t),i}}]),e}();Kn(fu,Vo);var vu=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("isVisible",!1),i.set("position","se"),i.children=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",r.to("position",(function(e){return"ck-dropdown__panel_"+e})),r.if("isVisible","ck-dropdown__panel-visible")]},children:i.children,on:{selectstart:r.to((function(e){return e.preventDefault()}))}}),i}return x(n,[{key:"focus",value:function(){this.children.length&&this.children.first.focus()}},{key:"focusLast",value:function(){if(this.children.length){var e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}]),n}(Zc);function pu(e){var t=e.element,n=e.target,i=e.positions,r=e.limiter,o=e.fitInViewport;ie(n)&&(n=n()),ie(r)&&(r=r());var a,s,l=function(e){return e&&e.parentNode?e.offsetParent===Oo.document.body?null:e.offsetParent:null}(t),c=new Ia(t),u=new Ia(n);if(r||o){var d=function(e,t){var n=t.elementRect,i=t.viewportRect,r=n.getArea(),o=function(e,t){var n,i=t.targetRect,r=t.elementRect,o=t.limiterRect,a=t.viewportRect,s=[],l=r.getArea(),c=k(e);try{for(c.s();!(n=c.n()).done;){var u=n.value,d=mu(u,i,r);if(d){var h=v(d,2),f=h[0],p=h[1],m=0,g=0;if(o)if(a){var b=o.getIntersection(a);b&&(m=b.getIntersectionArea(p))}else m=o.getIntersectionArea(p);a&&(g=a.getIntersectionArea(p));var y={positionName:f,positionRect:p,limiterIntersectArea:m,viewportIntersectArea:g};if(m===l)return[y];s.push(y)}}}catch(w){c.e(w)}finally{c.f()}return s}(e,t);if(i){var a=gu(o.filter((function(e){var t=e.viewportIntersectArea;return t===r})),r);if(a)return a}return gu(o,r)}(i,{targetRect:u,elementRect:c,limiterRect:r&&new Ia(r).getVisible(),viewportRect:o&&new Ia(Oo.window)}),h=d||mu(i[0],u,c),f=v(h,2);s=f[0],a=f[1]}else{var p=mu(i[0],u,c),m=v(p,2);s=m[0],a=m[1]}var g=ku(a);return l&&(g=function(e,t){var n=e.left,i=e.top,r=ku(new Ia(t)),o=Oa(t);return n-=r.left,i-=r.top,n+=t.scrollLeft,i+=t.scrollTop,n-=o.left,i-=o.top,{left:n,top:i}}(g,l)),{left:g.left,top:g.top,name:s}}function mu(e,t,n){var i=e(t,n);if(!i)return null;var r=i.left,o=i.top,a=i.name;return[a,n.clone().moveTo(r,o)]}function gu(e,t){var n,i,r,o=0,a=k(e);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=s.positionName,c=s.positionRect,u=s.limiterIntersectArea,d=s.viewportIntersectArea;if(u===t)return[l,c];var h=Math.pow(d,2)+Math.pow(u,2);h>o&&(o=h,n=c,i=l)}}catch(f){a.e(f)}finally{a.f()}return n?[i,n]:null}function ku(e){var t=e.left,n=e.top,i=Oo.window,r=i.scrollX,o=i.scrollY;return{left:t+r,top:n+o}}n(23);var bu=function(e){C(n,e);var t=A(n);function n(e,i,r){var o;w(this,n),o=t.call(this,e);var a=o.bindTemplate;return o.buttonView=i,o.panelView=r,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class"),o.set("id"),o.set("panelPosition","auto"),o.keystrokes=new vc,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(e){return!e}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[i,r]}),i.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),o}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){e.isOpen=!e.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){e.isOpen&&("auto"===e.panelPosition?e.panelView.position=n._getOptimalPosition({element:e.panelView.element,target:e.buttonView.element,fitInViewport:!0,positions:e._panelPositions}).name:e.panelView.position=e.panelPosition)})),this.keystrokes.listenTo(this.element);var t=function(t,n){e.isOpen&&(e.buttonView.focus(),e.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(t,n){e.buttonView.isEnabled&&!e.isOpen&&(e.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(t,n){e.isOpen&&n()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var e=n.defaultPanelPositions,t=e.southEast,i=e.southWest,r=e.northEast,o=e.northWest;return"ltr"===this.locale.uiLanguageDirection?[t,i,r,o]:[i,t,o,r]}}]),n}(Zc);bu.defaultPanelPositions={southEast:function(e){return{top:e.bottom,left:e.left,name:"se"}},southWest:function(e,t){return{top:e.bottom,left:e.left-t.width+e.width,name:"sw"}},northEast:function(e,t){return{top:e.top-t.height,left:e.left,name:"ne"}},northWest:function(e,t){return{top:e.bottom-t.height,left:e.left-t.width+e.width,name:"nw"}}},bu._getOptimalPosition=pu,n(25);var yu=function(e){C(n,e);var t=A(n);function n(){var e;w(this,n),e=t.call(this);var i=e.bindTemplate;return e.set("content",""),e.set("viewBox","0 0 20 20"),e.set("fillColor",""),e.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:i.to("viewBox")}}),e}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){e._updateXMLContent(),e._colorFillPaths()})),this.on("change:fillColor",(function(){e._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");for(t&&(this.viewBox=t),this.element.innerHTML="";e.childNodes.length>0;)this.element.appendChild(e.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var e=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(t){t.style.fill=e.fillColor}))}}]),n}(Zc);n(27);var wu=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e),i.set("text",""),i.set("position","s");var r=i.bindTemplate;return i.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",r.to("position",(function(e){return"ck-tooltip_"+e})),r.if("text","ck-hidden",(function(e){return!e.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:r.to("text")}]}]}),i}return n}(Zc);n(29);var _u=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate,o=Ln();return i.set("class"),i.set("labelStyle"),i.set("icon"),i.set("isEnabled",!0),i.set("isOn",!1),i.set("isVisible",!0),i.set("isToggleable",!1),i.set("keystroke"),i.set("label"),i.set("tabindex",-1),i.set("tooltip"),i.set("tooltipPosition","s"),i.set("type","button"),i.set("withText",!1),i.set("withKeystroke",!1),i.children=i.createCollection(),i.tooltipView=i._createTooltipView(),i.labelView=i._createLabelView(o),i.iconView=new yu,i.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),i.keystrokeView=i._createKeystrokeView(),i.bind("_tooltipString").to(P(i),"tooltip",P(i),"label",P(i),"keystroke",i._getTooltipString.bind(P(i))),i.setTemplate({tag:"button",attributes:{class:["ck","ck-button",r.to("class"),r.if("isEnabled","ck-disabled",(function(e){return!e})),r.if("isVisible","ck-hidden",(function(e){return!e})),r.to("isOn",(function(e){return e?"ck-on":"ck-off"})),r.if("withText","ck-button_with-text"),r.if("withKeystroke","ck-button_with-keystroke")],type:r.to("type",(function(e){return e||"button"})),tabindex:r.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_"+o,"aria-disabled":r.if("isEnabled",!0,(function(e){return!e})),"aria-pressed":r.to("isOn",(function(e){return!!i.isToggleable&&String(e)}))},children:i.children,on:{mousedown:r.to((function(e){e.preventDefault()})),click:r.to((function(e){i.isEnabled?i.fire("execute"):e.preventDefault()}))}}),i}return x(n,[{key:"render",value:function(){l(N(n.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var e=new wu;return e.bind("text").to(this,"_tooltipString"),e.bind("position").to(this,"tooltipPosition"),e}},{key:"_createLabelView",value:function(e){var t=new Zc,n=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_"+e},children:[{text:this.bindTemplate.to("label")}]}),t}},{key:"_createKeystrokeView",value:function(){var e=new Zc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(e){return Hr(e)}))}]}),e}},{key:"_getTooltipString",value:function(e,t,n){return e?"string"==typeof e?e:(n&&(n=Hr(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}]),n}(Zc),xu='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>',Cu=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.arrowView=i._createArrowView(),i.extendTemplate({attributes:{"aria-haspopup":!0}}),i.delegate("execute").to(P(i),"open"),i}return x(n,[{key:"render",value:function(){l(N(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var e=new yu;return e.content=xu,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}]),n}(_u);n(31);var Au=function(e){C(n,e);var t=A(n);function n(){var e;return w(this,n),e=t.call(this),e.items=e.createCollection(),e.focusTracker=new xc,e.keystrokes=new vc,e._focusCycler=new cu({focusables:e.items,focusTracker:e.focusTracker,keystrokeHandler:e.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),e.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:e.items}),e}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this);var t,i=k(this.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.focusTracker.add(r.element)}}catch(o){i.e(o)}finally{i.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}]),n}(Zc),Tu=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.children=i.createCollection(),i.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:i.children}),i}return x(n,[{key:"focus",value:function(){this.children.first.focus()}}]),n}(Zc),Pu=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),i}return n}(Zc);n(33);var Eu=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.isToggleable=!0,i.toggleSwitchView=i._createToggleView(),i.extendTemplate({attributes:{class:"ck-switchbutton"}}),i}return x(n,[{key:"render",value:function(){l(N(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var e=new Zc;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}]),n}(_u);function Su(e){var t=e.emitter,n=e.activator,i=e.callback,r=e.contextElements;t.listenTo(document,"mousedown",(function(e,t){if(n()){var o,a="function"==typeof t.composedPath?t.composedPath():[],s=k(r);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l.contains(t.target)||a.includes(l))return}}catch(c){s.e(c)}finally{s.f()}i()}}))}function Ou(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Cu,n=new t(e),i=new vu(e),r=new bu(e,n,i);return n.bind("isEnabled").to(r),n instanceof Cu?n.bind("isOn").to(r,"isOpen"):n.arrowView.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",(function(){Su({emitter:e,activator:function(){return e.isOpen},callback:function(){e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(function(t){t.source instanceof Eu||(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",(function(t,n){e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",(function(t,n){e.isOpen&&(e.panelView.focusLast(),n())}))}(e)}(r),r}function Mu(e,t){var n=e.locale,i=n.t,r=e.toolbarView=new Nu(n);r.set("ariaLabel",i("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((function(e){return r.items.add(e)})),e.panelView.children.add(r),r.items.delegate("execute").to(e)}function Iu(e,t){var n=e.locale,i=e.listView=new Au(n);i.items.bindTo(t).using((function(e){var t=e.type,i=e.model;if("separator"===t)return new Pu(n);if("button"===t||"switchbutton"===t){var r,o,a=new Tu(n);return o="button"===t?new _u(n):new Eu(n),(r=o).bind.apply(r,u(Object.keys(i))).to(i),o.delegate("execute").to(a),a.children.add(o),a}})),e.panelView.children.add(i),i.items.delegate("execute").to(e)}n(35),n(37),n(39);var Nu=function(e){C(n,e);var t=A(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o,a=r.bindTemplate,s=r.t;return r.options=i||{},r.set("ariaLabel",s("Editor toolbar")),r.set("maxWidth","auto"),r.items=r.createCollection(),r.focusTracker=new xc,r.keystrokes=new vc,r.set("class"),r.set("isCompact",!1),r.itemsView=new Ru(e),r.children=r.createCollection(),r.children.add(r.itemsView),r.focusables=r.createCollection(),r._focusCycler=new cu({focusables:r.focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:["arrowleft","arrowup"],focusNext:["arrowright","arrowdown"]}}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar",a.to("class"),a.if("isCompact","ck-toolbar_compact")],role:"toolbar","aria-label":a.to("ariaLabel"),style:{maxWidth:a.to("maxWidth")}},children:r.children,on:{mousedown:(o=P(r),o.bindTemplate.to((function(e){e.target===o.element&&e.preventDefault()})))}}),r._behavior=r.options.shouldGroupWhenFull?new Lu(P(r)):new Du(P(r)),r}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this);var t,i=k(this.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.focusTracker.add(r.element)}}catch(o){i.e(o)}finally{i.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),l(N(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(e,t){this.items.addMany(e.map((function(e){return"|"==e?new du:t.has(e)?t.create(e):void console.warn(Object(jn.a)("toolbarview-item-unavailable: The requested toolbar item is unavailable."),{name:e})})).filter((function(e){return void 0!==e})))}}]),n}(Zc),Ru=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.children=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:i.children}),i}return n}(Zc),Du=function(){function e(t){w(this,e);var n=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((function(e){return e})),t.focusables.bindTo(t.items).using((function(e){return e})),t.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}return x(e,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),e}(),Lu=function(){function e(t){var n=this;w(this,e),this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((function(e){return e})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(function(e,t){var i,r=t.index,o=k(t.removed);try{for(o.s();!(i=o.n()).done;){var a=i.value;r>=n.ungroupedItems.length?n.groupedItems.remove(a):n.ungroupedItems.remove(a)}}catch(c){o.e(c)}finally{o.f()}for(var s=r;s<r+t.added.length;s++){var l=t.added[s-r];s>n.ungroupedItems.length?n.groupedItems.add(l,s-n.ungroupedItems.length):n.ungroupedItems.add(l,s)}n._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return x(e,[{key:"render",value:function(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(this.viewElement.offsetParent){for(var e,t=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_enableGroupingOnResize",value:function(){var e,t=this;this.resizeObserver=new hu(this.viewElement,(function(n){e&&e===n.contentRect.width&&!t.shouldUpdateGroupingOnNextResize||(t.shouldUpdateGroupingOnNextResize=!1,t._updateGrouping(),e=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(e){var t=this;e.on("change:maxWidth",(function(){t._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new du),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}},{key:"_ungroupFirstItem",value:function(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}},{key:"_createGroupedItemsDropdown",value:function(){var e=this.viewLocale,t=e.t,n=Ou(e);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===e.uiLanguageDirection?"sw":"se",Mu(n,[]),n.buttonView.set({label:t("Show more items"),tooltip:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'}),n.toolbarView.items.bindTo(this.groupedItems).using((function(e){return e})),n}},{key:"_updateFocusCycleableItems",value:function(){var e=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(t){e.viewFocusables.add(t)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new Ia(e.lastChild),i=new Ia(e);if(!this.cachedPadding){var r=Oo.window.getComputedStyle(e),o="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(r[o])}return"ltr"===t?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}}]),e}();n(41);var zu=function(e){C(n,e);var t=A(n);function n(e,i){var r,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return w(this,n),r=t.call(this,e),r.stickyPanel=new lu(e),r.toolbar=new Nu(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),r.editable=new ou(e,i),r}return x(n,[{key:"render",value:function(){l(N(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),n}(iu),ju=function(e){C(n,e);var t=A(n);function n(e,i){var r;w(this,n),r=t.call(this,i),Sn(e)&&(r.sourceElement=e),r.data.processor=new yc(r.data.viewDocument),r.model.document.createRoot();var o=!r.config.get("toolbar.shouldNotGroupWhenFull"),a=new zu(r.locale,r.editing.view,{shouldToolbarGroupWhenFull:o});return r.ui=new Mc(P(r),a),function(e){if(!ie(e.updateSourceElement))throw new jn.b("attachtoform-missing-elementapi-interface: Editor passed to attachToForm() must implement ElementApi.",e);var t=e.sourceElement;if(t&&"textarea"===t.tagName.toLowerCase()&&t.form){var n,i=t.form,r=function(){return e.updateSourceElement()};ie(i.submit)&&(n=i.submit,i.submit=function(){r(),n.apply(i)}),i.addEventListener("submit",r),e.on("destroy",(function(){i.removeEventListener("submit",r),n&&(i.submit=n)}))}}(P(r)),r}return x(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),l(N(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i){var r=new t(e,n);i(r.initPlugins().then((function(){return r.ui.init(Sn(e)?e:null)})).then((function(){if(!Sn(e)&&n.initialData)throw new jn.b("editor-create-initial-data: The config.initialData option cannot be used together with initial data passed in Editor.create().",null);var t=n.initialData||function(e){return Sn(e)?(t=e,t instanceof HTMLTextAreaElement?t.value:t.innerHTML):e;var t}(e);return r.data.init(t)})).then((function(){return r.fire("ready")})).then((function(){return r})))}))}}]),n}(mc);Kn(ju,gc),Kn(ju,kc);var Vu=function(){function e(t){w(this,e),this.editor=t,this.set("isEnabled",!0),this._disableStack=new Set}return x(e,[{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Bu,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Bu),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),e}();function Bu(e){e.return=!1,e.stop()}Kn(Vu,vr);var Fu=function(){function e(t){var n=this;w(this,e),this.editor=t,this.set("value",void 0),this.set("isEnabled",!1),this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(e){n.isEnabled||e.stop()}),{priority:"high"}),this.listenTo(t,"change:isReadOnly",(function(e,t,i){i?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}return x(e,[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",Uu,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",Uu),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),e}();function Uu(e){e.return=!1,e.stop()}function Hu(e){var t=e.next();return t.done?null:t.value}Kn(Fu,vr);var $u=["left","right","center","justify"];function Wu(e){return $u.includes(e)}function qu(e,t){return"rtl"==t.contentLanguageDirection?"right"===e:"left"===e}var Yu="alignment",Gu=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this.editor.locale,t=Hu(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!t&&this._canBeAligned(t),this.isEnabled&&t.hasAttribute("alignment")?this.value=t.getAttribute("alignment"):this.value="rtl"===e.contentLanguageDirection?"right":"left"}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,i=n.locale,r=n.model,o=r.document,a=t.value;r.change((function(t){var n=Array.from(o.selection.getSelectedBlocks()).filter((function(t){return e._canBeAligned(t)})),r=n[0].getAttribute("alignment");qu(a,i)||r===a||!a?function(e,t){var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t.removeAttribute(Yu,r)}}catch(o){i.e(o)}finally{i.f()}}(n,t):function(e,t,n){var i,r=k(e);try{for(r.s();!(i=r.n()).done;){var o=i.value;t.setAttribute(Yu,n,o)}}catch(a){r.e(a)}finally{r.f()}}(n,t,a)}))}},{key:"_canBeAligned",value:function(e){return this.editor.model.schema.checkAttribute(e,Yu)}}]),n}(Fu),Ku=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("alignment",{options:[].concat($u)}),i}return x(n,null,[{key:"pluginName",get:function(){return"AlignmentEditing"}}]),x(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.model.schema,i=e.config.get("alignment.options").filter(Wu);n.extend("$block",{allowAttributes:"alignment"}),e.model.schema.setAttributeProperties("alignment",{isFormatting:!0});var r=function(e){var t,n={model:{key:"alignment",values:e.slice()},view:{}},i=k(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;n.view[r]={key:"style",value:{"text-align":r}}}}catch(o){i.e(o)}finally{i.f()}return n}(i.filter((function(e){return!qu(e,t)})));e.conversion.attributeToAttribute(r),e.commands.add("alignment",new Gu(e))}}]),n}(Vu),Ju='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',Qu='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',Zu=new Map([["left",Ju],["right",Qu],["center",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>'],["justify",'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>']]),Xu=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.ui.componentFactory,i=t.t,r=t.config.get("alignment.options");r.filter(Wu).forEach((function(t){return e._addButton(t)})),n.add("alignment",(function(e){var t=Ou(e),o=r.map((function(e){return n.create("alignment:"+e)}));Mu(t,o),t.buttonView.set({label:i("Text alignment"),tooltip:!0}),t.toolbarView.isVertical=!0,t.toolbarView.ariaLabel=i("Text alignment toolbar"),t.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var a="rtl"===e.contentLanguageDirection?Qu:Ju;return t.buttonView.bind("icon").toMany(o,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.findIndex((function(e){return e}));return i<0?a:o[i].icon})),t.bind("isEnabled").toMany(o,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),t}))}},{key:"_addButton",value:function(e){var t=this,n=this.editor;n.ui.componentFactory.add("alignment:"+e,(function(i){var r=n.commands.get("alignment"),o=new _u(i);return o.set({label:t.localizedOptionTitles[e],icon:Zu.get(e),tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(r),o.bind("isOn").to(r,"value",(function(t){return t===e})),t.listenTo(o,"execute",(function(){n.execute("alignment",{value:e}),n.editing.view.focus()})),o}))}},{key:"localizedOptionTitles",get:function(){var e=this.editor.t;return{left:e("Align left"),right:e("Align right"),center:e("Align center"),justify:e("Justify")}}}],[{key:"pluginName",get:function(){return"AlignmentUI"}}]),n}(Vu);function ed(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,i){return i.is("$text")||i.is("$textProxy")?e+i.data:(n=t.createPositionAfter(i),"")}),""),range:t.createRange(n,e.end)}}var td=function(){function e(t,n){var i=this;w(this,e),this.model=t,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){i.isEnabled?i._startListening():(i.stopListening(t.document.selection),i.stopListening(t.document))})),this._startListening()}return x(e,[{key:"_startListening",value:function(){var e=this,t=this.model.document;this.listenTo(t.selection,"change:range",(function(n,i){var r=i.directChange;r&&(t.selection.isCollapsed?e._evaluateTextBeforeSelection("selection"):e.hasMatch&&(e.fire("unmatched"),e.hasMatch=!1))})),this.listenTo(t,"change:data",(function(t,n){"transparent"!=n.type&&e._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,i=n.document.selection,r=n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),o=ed(r,n),a=o.text,s=o.range,l=this.testCallback(a);if(!l&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!l,l){var c=Object.assign(t,{text:a,range:s});"object"==R(l)&&Object.assign(c,l),this.fire("matched:"+e,c)}}}]),e}();Kn(td,vr);var nd=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.)+(?:[a-z\\u00a1-\\uffff]{2,}))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-\\w\\u00a1-\\uffff]{0,63}[^-_]\\.))+(?:[a-z\\u00a1-\\uffff]{2,})))$","i"),id=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i;function rd(e){var t=nd.exec(e);return t?t[2]:null}var od=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.attributeKey=i,r}return x(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,r=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(i.isCollapsed)r?t.setSelectionAttribute(e.attributeKey,!0):t.removeSelectionAttribute(e.attributeKey);else{var o,a=n.schema.getValidRanges(i.getRanges(),e.attributeKey),s=k(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;r?t.setAttribute(e.attributeKey,r,l):t.removeAttribute(e.attributeKey,l)}}catch(c){s.e(c)}finally{s.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var i,r=k(n.getRanges());try{for(r.s();!(i=r.n()).done;){var o,a=i.value,s=k(a.getItems());try{for(s.s();!(o=s.n()).done;){var l=o.value;if(t.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey)}}catch(c){s.e(c)}finally{s.f()}}}catch(c){r.e(c)}finally{r.f()}return!1}}]),n}(Fu),ad="bold",sd=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:ad}),e.model.schema.setAttributeProperties(ad,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:ad,view:"strong",upcastAlso:["b",function(e){var t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add(ad,new od(e,ad)),e.keystrokes.set("CTRL+B",ad)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(Vu),ld="bold",cd=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(ld,(function(i){var r=t.commands.get(ld),o=new _u(i);return o.set({label:n("Bold"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(ld),t.editing.view.focus()})),o}))}}]),n}(Vu),ud=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.ui.componentFactory,n=e.t;t.add("ckfinder",(function(t){var i=e.commands.get("ckfinder"),r=new _u(t);return r.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),r.bind("isEnabled").to(i),r.on("execute",(function(){e.execute("ckfinder"),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"CKFinderUI"}}]),n}(Vu),dd=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"observe",value:function(e){var t=this;this.listenTo(e,"load",(function(e,n){"IMG"==n.target.tagName&&t._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}]),n}(Uo),hd=function(){function e(){w(this,e),this._stack=[]}return x(e,[{key:"add",value:function(e,t){var n=this._stack,i=n[0];this._insertDescriptor(e);var r=n[0];i===r||fd(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:t})}},{key:"remove",value:function(e,t){var n=this._stack,i=n[0];this._removeDescriptor(e);var r=n[0];i===r||fd(i,r)||this.fire("change:top",{oldDescriptor:i,newDescriptor:r,writer:t})}},{key:"_insertDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e.id}));if(!fd(e,t[n])){n>-1&&t.splice(n,1);for(var i=0;t[i]&&vd(t[i],e);)i++;t.splice(i,0,e)}}},{key:"_removeDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e}));n>-1&&t.splice(n,1)}}]),e}();function fd(e,t){return e&&t&&e.priority==t.priority&&pd(e.classes)==pd(t.classes)}function vd(e,t){return e.priority>t.priority||!(e.priority<t.priority)&&pd(e.classes)>pd(t.classes)}function pd(e){return Array.isArray(e)?e.sort().join(","):e}Kn(hd,Fn),n(43);var md=au("px"),gd=Oo.document.body,kd=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("top",0),i.set("left",0),i.set("position","arrow_nw"),i.set("isVisible",!1),i.set("withArrow",!0),i.set("class"),i.content=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",r.to("position",(function(e){return"ck-balloon-panel_"+e})),r.if("isVisible","ck-balloon-panel_visible"),r.if("withArrow","ck-balloon-panel_with-arrow"),r.to("class")],style:{top:r.to("top",md),left:r.to("left",md)}},children:i.content}),i}return x(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(e){this.show();var t=n.defaultPositions,i=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast],limiter:gd,fitInViewport:!0},e),r=n._getOptimalPosition(i),o=parseInt(r.left),a=parseInt(r.top),s=r.name;Object.assign(this,{top:a,left:o,position:s})}},{key:"pin",value:function(e){var t=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){t.isVisible?t._startPinning(e):t._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(e){var t=this;this.attachTo(e);var n=bd(e.target),i=e.limiter?bd(e.limiter):gd;this.listenTo(Oo.document,"scroll",(function(r,o){var a=o.target,s=n&&a.contains(n),l=i&&a.contains(i);!s&&!l&&n&&i||t.attachTo(e)}),{useCapture:!0}),this.listenTo(Oo.window,"resize",(function(){t.attachTo(e)}))}},{key:"_stopPinning",value:function(){this.stopListening(Oo.document,"scroll"),this.stopListening(Oo.window,"resize")}}]),n}(Zc);function bd(e){return Sn(e)?e:Sa(e)?e.commonAncestorContainer:"function"==typeof e?bd(e()):null}function yd(e,t){return e.top-t.height-kd.arrowVerticalOffset}function wd(e){return e.bottom+kd.arrowVerticalOffset}kd.arrowHorizontalOffset=25,kd.arrowVerticalOffset=10,kd._getOptimalPosition=pu,kd.defaultPositions={northWestArrowSouthWest:function(e,t){return{top:yd(e,t),left:e.left-kd.arrowHorizontalOffset,name:"arrow_sw"}},northWestArrowSouthMiddleWest:function(e,t){return{top:yd(e,t),left:e.left-.25*t.width-kd.arrowHorizontalOffset,name:"arrow_smw"}},northWestArrowSouth:function(e,t){return{top:yd(e,t),left:e.left-t.width/2,name:"arrow_s"}},northWestArrowSouthMiddleEast:function(e,t){return{top:yd(e,t),left:e.left-.75*t.width+kd.arrowHorizontalOffset,name:"arrow_sme"}},northWestArrowSouthEast:function(e,t){return{top:yd(e,t),left:e.left-t.width+kd.arrowHorizontalOffset,name:"arrow_se"}},northArrowSouthWest:function(e,t){return{top:yd(e,t),left:e.left+e.width/2-kd.arrowHorizontalOffset,name:"arrow_sw"}},northArrowSouthMiddleWest:function(e,t){return{top:yd(e,t),left:e.left+e.width/2-.25*t.width-kd.arrowHorizontalOffset,name:"arrow_smw"}},northArrowSouth:function(e,t){return{top:yd(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"}},northArrowSouthMiddleEast:function(e,t){return{top:yd(e,t),left:e.left+e.width/2-.75*t.width+kd.arrowHorizontalOffset,name:"arrow_sme"}},northArrowSouthEast:function(e,t){return{top:yd(e,t),left:e.left+e.width/2-t.width+kd.arrowHorizontalOffset,name:"arrow_se"}},northEastArrowSouthWest:function(e,t){return{top:yd(e,t),left:e.right-kd.arrowHorizontalOffset,name:"arrow_sw"}},northEastArrowSouthMiddleWest:function(e,t){return{top:yd(e,t),left:e.right-.25*t.width-kd.arrowHorizontalOffset,name:"arrow_smw"}},northEastArrowSouth:function(e,t){return{top:yd(e,t),left:e.right-t.width/2,name:"arrow_s"}},northEastArrowSouthMiddleEast:function(e,t){return{top:yd(e,t),left:e.right-.75*t.width+kd.arrowHorizontalOffset,name:"arrow_sme"}},northEastArrowSouthEast:function(e,t){return{top:yd(e,t),left:e.right-t.width+kd.arrowHorizontalOffset,name:"arrow_se"}},southWestArrowNorthWest:function(e,t){return{top:wd(e),left:e.left-kd.arrowHorizontalOffset,name:"arrow_nw"}},southWestArrowNorthMiddleWest:function(e,t){return{top:wd(e),left:e.left-.25*t.width-kd.arrowHorizontalOffset,name:"arrow_nmw"}},southWestArrowNorth:function(e,t){return{top:wd(e),left:e.left-t.width/2,name:"arrow_n"}},southWestArrowNorthMiddleEast:function(e,t){return{top:wd(e),left:e.left-.75*t.width+kd.arrowHorizontalOffset,name:"arrow_nme"}},southWestArrowNorthEast:function(e,t){return{top:wd(e),left:e.left-t.width+kd.arrowHorizontalOffset,name:"arrow_ne"}},southArrowNorthWest:function(e,t){return{top:wd(e),left:e.left+e.width/2-kd.arrowHorizontalOffset,name:"arrow_nw"}},southArrowNorthMiddleWest:function(e,t){return{top:wd(e),left:e.left+e.width/2-.25*t.width-kd.arrowHorizontalOffset,name:"arrow_nmw"}},southArrowNorth:function(e,t){return{top:wd(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"}},southArrowNorthMiddleEast:function(e,t){return{top:wd(e),left:e.left+e.width/2-.75*t.width+kd.arrowHorizontalOffset,name:"arrow_nme"}},southArrowNorthEast:function(e,t){return{top:wd(e),left:e.left+e.width/2-t.width+kd.arrowHorizontalOffset,name:"arrow_ne"}},southEastArrowNorthWest:function(e,t){return{top:wd(e),left:e.right-kd.arrowHorizontalOffset,name:"arrow_nw"}},southEastArrowNorthMiddleWest:function(e,t){return{top:wd(e),left:e.right-.25*t.width-kd.arrowHorizontalOffset,name:"arrow_nmw"}},southEastArrowNorth:function(e,t){return{top:wd(e),left:e.right-t.width/2,name:"arrow_n"}},southEastArrowNorthMiddleEast:function(e,t){return{top:wd(e),left:e.right-.75*t.width+kd.arrowHorizontalOffset,name:"arrow_nme"}},southEastArrowNorthEast:function(e,t){return{top:wd(e),left:e.right-t.width+kd.arrowHorizontalOffset,name:"arrow_ne"}}};var _d='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',xd="widget-type-around";function Cd(e,t,n){return e&&Pd(e)&&!n.isInline(t)}function Ad(e){return e.getAttribute(xd)}var Td="ck-widget_selected";function Pd(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Ed(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new jn.b("widget-to-widget-wrong-element-type: The element passed to toWidget() must be a container element instance.",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Rd,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){var n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){var t=this.toDomElement(e),n=new yu;return n.set("content",_d),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),Sd(e,t,(function(e,t,n){return n.addClass(i(t.classes),e)}),(function(e,t,n){return n.removeClass(i(t.classes),e)})),e;function i(e){return Array.isArray(e)?e:[e]}}function Sd(e,t,n,i){var r=new hd;r.on("change:top",(function(t,r){r.oldDescriptor&&i(e,r.oldDescriptor,r.writer),r.newDescriptor&&n(e,r.newDescriptor,r.writer)})),t.setCustomProperty("addHighlight",(function(e,t,n){return r.add(t,n)}),e),t.setCustomProperty("removeHighlight",(function(e,t,n){return r.remove(t,n)}),e)}function Od(e){var t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function Md(e,t){return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(function(n,i,r){t.setAttribute("contenteditable",r?"false":"true",e)})),e.on("change:isFocused",(function(n,i,r){r?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),e}function Id(e,t){var n=e.getSelectedElement();if(n){var i=Ad(e);if(i)return t.createPositionAt(n,i);if(t.schema.isBlock(n))return t.createPositionAfter(n)}var r=e.getSelectedBlocks().next().value;if(r){if(r.isEmpty)return t.createPositionAt(r,0);var o=t.createPositionAfter(r);return e.focus.isTouching(o)?o:t.createPositionBefore(r)}return e.focus}function Nd(e,t){var n=new Ia(Oo.window),i=n.getIntersection(e),r=t.height+kd.arrowVerticalOffset;if(e.top-r>n.top||e.bottom+r<n.bottom)return null;var o=i||e,a=o.left+o.width/2-t.width/2;return{top:Math.max(e.top,0)+kd.arrowVerticalOffset,left:a,name:"arrow_n"}}function Rd(){return null}function Dd(e){return!!e.getCustomProperty("image")&&Pd(e)}function Ld(e){var t=e.getSelectedElement();return t&&Dd(t)?t:null}function zd(e){return!!e&&e.is("element","image")}function jd(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.createElement("image",n),r=Id(t.document.selection,t);t.insertContent(i,r),i.parent&&e.setSelection(i,"on")}function Vd(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var i=function(e,t){var n=Id(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(i,"image")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)&&function(e){return u(e.focus.getAncestors()).every((function(e){return!e.is("element","image")}))}(n)}function Bd(e){var t,n=[],i=k(e.getChildren());try{for(i.s();!(t=i.n()).done;){var r=t.value;n.push(r),r.is("element")&&n.push.apply(n,u(r.getChildren()))}}catch(o){i.e(o)}finally{i.f()}return n.find((function(e){return e.is("element","img")}))}function Fd(e){return function(n){n.on("attribute:".concat(e,":image"),t)};function t(e,t,n){if(n.consumable.consume(t.item,e.name)){var i=n.writer,r=Bd(n.mapper.toViewElement(t.item));i.setAttribute(t.attributeKey,t.attributeNewValue||"",r)}}}var Ud=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){this.isEnabled=Vd(this.editor.model)}},{key:"execute",value:function(e){var t=this.editor.model;t.change((function(n){var i,r=Array.isArray(e.source)?e.source:[e.source],o=k(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;jd(n,t,{src:a})}}catch(s){o.e(s)}finally{o.f()}}))}}]),n}(Fu),Hd=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,i=e.conversion;e.editing.view.addObserver(dd),t.register("image",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),i.for("dataDowncast").elementToElement({model:"image",view:function(e,t){var n=t.writer;return $d(n)}}),i.for("editingDowncast").elementToElement({model:"image",view:function(e,t){var i=t.writer;return function(e,t,n){return t.setCustomProperty("image",!0,e),Ed(e,t,{label:function(){var t=Bd(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}($d(i),i,n("image widget"))}}),i.for("downcast").add(Fd("src")).add(Fd("alt")).add(function(){return function(t){t.on("attribute:srcset:image",e)};function e(e,t,n){if(n.consumable.consume(t.item,e.name)){var i=n.writer,r=Bd(n.mapper.toViewElement(t.item));if(null===t.attributeNewValue){var o=t.attributeOldValue;o.data&&(i.removeAttribute("srcset",r),i.removeAttribute("sizes",r),o.width&&i.removeAttribute("width",r))}else{var a=t.attributeNewValue;a.data&&(i.setAttribute("srcset",a.data,r),i.setAttribute("sizes","100vw",r),a.width&&i.setAttribute("width",a.width,r))}}}}()),i.for("upcast").elementToElement({view:{name:"img",attributes:{src:!0}},model:function(e,t){var n=t.writer;return n.createElement("image",{src:e.getAttribute("src")})}}).attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(e){var t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}}).add(function(){return function(t){t.on("element:figure",e)};function e(e,t,n){if(n.consumable.test(t.viewItem,{name:!0,classes:"image"})){var i=Bd(t.viewItem);if(i&&i.hasAttribute("src")&&n.consumable.test(i,{name:!0})){var r=Hu(n.convertItem(i,t.modelCursor).modelRange.getItems());r&&(n.convertChildren(t.viewItem,r),n.updateConversionResult(r,t))}}}}()),e.commands.add("imageInsert",new Ud(e))}}],[{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(Vu);function $d(e){var t=e.createEmptyElement("img"),n=e.createContainerElement("figure",{class:"image"});return e.insert(e.createPositionAt(n,0),t),n}var Wd=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.domEventType="mousedown",i}return x(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(ha),qd=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.attributes=new Set,i._overrideUid=null,i}return x(n,null,[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model,i=t.editing.view,r=t.locale,o=n.document.selection;this.listenTo(i.document,"keydown",(function(t,n){if(o.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var i=n.keyCode==Br.arrowright,a=n.keyCode==Br.arrowleft;if(i||a){var s=r.contentLanguageDirection,l=!1;l="ltr"===s&&i||"rtl"===s&&a?e._handleForwardMovement(n):e._handleBackwardMovement(n),!0===l&&t.stop()}}}),{priority:zn.get("high")+1}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(function(t,n){e._isNextGravityRestorationSkipped?e._isNextGravityRestorationSkipped=!1:e._isGravityOverridden&&(!n.directChange&&Jd(o.getFirstPosition(),e.attributes)||e._restoreGravity())}))}},{key:"registerAttribute",value:function(e){this.attributes.add(e)}},{key:"_handleForwardMovement",value:function(e){var t=this.attributes,n=this.editor.model.document.selection,i=n.getFirstPosition();return!this._isGravityOverridden&&(!i.isAtStart||!Yd(n,t))&&(Jd(i,t)?(Kd(e),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(e){var t=this.attributes,n=this.editor.model,i=n.document.selection,r=i.getFirstPosition();return this._isGravityOverridden?(Kd(e),this._restoreGravity(),Gd(n,t,r),!0):r.isAtStart?!!Yd(i,t)&&(Kd(e),Gd(n,t,r),!0):function(e,t){return Jd(e.getShiftedBy(-1),t)}(r,t)?r.isAtEnd&&!Yd(i,t)&&Jd(r,t)?(Kd(e),Gd(n,t,r),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(e){return e.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var e=this;this.editor.model.change((function(t){t.restoreSelectionGravity(e._overrideUid),e._overrideUid=null}))}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}}]),n}(Vu);function Yd(e,t){var n,i=k(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(e.hasAttribute(r))return!0}}catch(o){i.e(o)}finally{i.f()}return!1}function Gd(e,t,n){var i=n.nodeBefore;e.change((function(e){i?e.setSelectionAttribute(i.getAttributes()):e.removeSelectionAttribute(t)}))}function Kd(e){e.preventDefault()}function Jd(e,t){var n,i=e.nodeBefore,r=e.nodeAfter,o=k(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=i?i.getAttribute(a):void 0;if((r?r.getAttribute(a):void 0)!==s)return!0}}catch(l){o.e(l)}finally{o.f()}return!1}function Qd(e,t,n,i){return i.createRange(Zd(e,t,n,!0,i),Zd(e,t,n,!1,i))}function Zd(e,t,n,i,r){for(var o=e.textNode||(i?e.nodeBefore:e.nodeAfter),a=null;o&&o.getAttribute(t)==n;)a=o,o=i?o.previousSibling:o.nextSibling;return a?r.createPositionAt(a,i?"before":"after"):e}for(var Xd=function(){function e(t){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;w(this,e),this.model=t,this.size=0,this.limit=i,this.isLocked=!1,this._changeCallback=function(e,t){"transparent"!=t.type&&t!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}return x(e,[{key:"input",value:function(e){this.size+=e,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(e){this.isLocked&&!e||(this._batch=null,this.size=0)}},{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch()),this._batch}}]),e}(),eh=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r._buffer=new Xd(e.model,i),r._batches=new WeakSet,r}return x(n,[{key:"destroy",value:function(){l(N(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document,r=t.text||"",o=r.length,a=t.range?n.createSelection(t.range):i.selection,s=t.resultRange;n.enqueueChange(this._buffer.batch,(function(t){e._buffer.lock(),e._batches.add(e._buffer.batch),n.deleteContent(a),r&&n.insertContent(t.createText(r,i.selection.getAttributes()),a),s?t.setSelection(s):a.is("documentSelection")||t.setSelection(a),e._buffer.unlock(),e._buffer.input(o)}))}},{key:"buffer",get:function(){return this._buffer}}]),n}(Fu),th=[Fr("arrowUp"),Fr("arrowRight"),Fr("arrowDown"),Fr("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],nh=112;nh<=135;nh++)th.push(nh);function ih(e){return!!e.ctrlKey||th.includes(e.keyCode)}function rh(e){if(e.newChildren.length-e.oldChildren.length==1){var t=function(e,t){var n,i=[],r=0;return e.forEach((function(e){"equal"==e?(o(),r++):"insert"==e?(a("insert")?n.values.push(t[r]):(o(),n={type:"insert",index:r,values:[t[r]]}),r++):a("delete")?n.howMany++:(o(),n={type:"delete",index:r,howMany:1})})),o(),i;function o(){n&&(i.push(n),n=null)}function a(e){return n&&n.type==e}}(_o(e.oldChildren,e.newChildren,oh),e.newChildren);if(!(t.length>1)){var n=t[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function oh(e,t){return e&&e.is("$text")&&t&&t.is("$text")?e.data===t.data:e===t}var ah=function(){function e(t){w(this,e),this.editor=t,this.editing=this.editor.editing}return x(e,[{key:"handle",value:function(e,t){if(function(e){if(0==e.length)return!1;var t,n=k(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;if("children"===i.type&&!rh(i))return!0}}catch(r){n.e(r)}finally{n.f()}return!1}(e))this._handleContainerChildrenMutations(e,t);else{var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;this._handleTextMutation(r,t),this._handleTextNodeInsertion(r)}}catch(o){i.e(o)}finally{i.f()}}}},{key:"_handleContainerChildrenMutations",value:function(e,t){var n=function(e){var t=e.map((function(e){return e.node})).reduce((function(e,t){return e.getCommonAncestor(t,{includeSelf:!0})}));if(t)return t.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(e){return e.is("containerElement")||e.is("rootElement")}))}(e);if(n){var i=this.editor.editing.view.domConverter.mapViewToDom(n),r=new Ro(this.editor.editing.view.document),o=this.editor.data.toModel(r.domToView(i)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(o.getChildren()),l=Array.from(a.getChildren()),c=s[s.length-1],u=l[l.length-1],d=c&&c.is("element","softBreak"),h=u&&!u.is("element","softBreak");d&&h&&s.pop();var f=this.editor.model.schema;if(sh(s,f)&&sh(l,f)){var v=s.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," "),p=l.map((function(e){return e.is("$text")?e.data:"@"})).join("").replace(/\u00A0/g," ");if(p!==v){var m=_o(p,v),g=lh(m),k=g.firstChangeAt,b=g.insertions,y=g.deletions,w=null;t&&(w=this.editing.mapper.toModelRange(t.getFirstRange()));var _=v.substr(k,b),x=this.editor.model.createRange(this.editor.model.createPositionAt(a,k),this.editor.model.createPositionAt(a,k+y));this.editor.execute("input",{text:_,range:x,resultRange:w})}}}}}},{key:"_handleTextMutation",value:function(e,t){if("text"==e.type){var n=e.newText.replace(/\u00A0/g," "),i=e.oldText.replace(/\u00A0/g," ");if(i!==n){var r=_o(i,n),o=lh(r),a=o.firstChangeAt,s=o.insertions,l=o.deletions,c=null;t&&(c=this.editing.mapper.toModelRange(t.getFirstRange()));var u=this.editing.view.createPositionAt(e.node,a),d=this.editing.mapper.toModelPosition(u),h=this.editor.model.createRange(d,d.getShiftedBy(l)),f=n.substr(a,s);this.editor.execute("input",{text:f,range:h,resultRange:c})}}}},{key:"_handleTextNodeInsertion",value:function(e){if("children"==e.type){var t=rh(e),n=this.editing.view.createPositionAt(e.node,t.index),i=this.editing.mapper.toModelPosition(n),r=t.values[0].data;this.editor.execute("input",{text:r.replace(/\u00A0/g," "),range:this.editor.model.createRange(i)})}}}]),e}();function sh(e,t){return e.every((function(e){return t.isInline(e)}))}function lh(e){for(var t=null,n=null,i=0;i<e.length;i++)"equal"!=e[i]&&(t=null===t?i:t,n=i);for(var r=0,o=0,a=t;a<=n;a++)"insert"!=e[a]&&r++,"delete"!=e[a]&&o++;return{insertions:o,deletions:r,firstChangeAt:t}}var ch=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=new eh(e,e.config.get("typing.undoStep")||20);e.commands.add("input",t),function(e){var t=null,n=e.model,i=e.editing.view,r=e.commands.get("input");function o(e){var o=n.document,s=i.document.isComposing,l=t&&t.isEqual(o.selection);t=null,r.isEnabled&&(ih(e)||o.selection.isCollapsed||s&&229===e.keyCode||!s&&229===e.keyCode&&l||a())}function a(){var e=r.buffer;e.lock();var t=e.batch;r._batches.add(t),n.enqueueChange(t,(function(){n.deleteContent(n.document.selection)})),e.unlock()}zr.isAndroid?i.document.on("beforeinput",(function(e,t){return o(t)}),{priority:"lowest"}):i.document.on("keydown",(function(e,t){return o(t)}),{priority:"lowest"}),i.document.on("compositionstart",(function(){var e=n.document,t=1!==e.selection.rangeCount||e.selection.getFirstRange().isFlat;e.selection.isCollapsed||t||a()}),{priority:"lowest"}),i.document.on("compositionend",(function(){t=n.createSelection(n.document.selection)}),{priority:"lowest"})}(e),function(e){e.editing.view.document.on("mutations",(function(t,n,i){new ah(e).handle(n,i)}))}(e)}},{key:"isInput",value:function(e){return this.editor.commands.get("input")._batches.has(e)}}],[{key:"pluginName",get:function(){return"Input"}}]),n}(Vu),uh=function(){function e(t){w(this,e),this.files=function(e){var t=e.files?Array.from(e.files):[],n=e.items?Array.from(e.items):[];return t.length?t:n.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()}))}(t),this._native=t}return x(e,[{key:"getData",value:function(e){return this._native.getData(e)}},{key:"setData",value:function(e,t){this._native.setData(e,t)}},{key:"types",get:function(){return this._native.types}}]),e}(),dh=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.document;function o(e,t){t.preventDefault();var n=t.dropRange?[t.dropRange]:Array.from(r.selection.getRanges()),i=new Rn(r,"clipboardInput");r.fire(i,{dataTransfer:t.dataTransfer,targetRanges:n}),i.stop.called&&t.stopPropagation()}return i.domEventType=["paste","copy","cut","drop","dragover"],i.listenTo(r,"paste",o,{priority:"low"}),i.listenTo(r,"drop",o,{priority:"low"}),i}return x(n,[{key:"onDomEvent",value:function(e){var t={dataTransfer:new uh(e.clipboardData?e.clipboardData:e.dataTransfer)};"drop"==e.type&&(t.dropRange=function(e,t){var n,i=t.target.ownerDocument,r=t.clientX,o=t.clientY;return i.caretRangeFromPoint&&i.caretRangeFromPoint(r,o)?n=i.caretRangeFromPoint(r,o):t.rangeParent&&(n=i.createRange(),n.setStart(t.rangeParent,t.rangeOffset),n.collapse(!0)),n?e.domConverter.domRangeToView(n):e.document.selection.getFirstRange()}(this.view,e)),this.fire(e.type,e,t)}}]),n}(ha),hh=["figcaption","li"],fh=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,i=t.editing.view,r=i.document;function o(e,i){var o=i.dataTransfer;i.preventDefault();var a=t.data.toView(t.model.getSelectedContent(n.selection));r.fire("clipboardOutput",{dataTransfer:o,content:a,method:e.name})}this._htmlDataProcessor=new yc(r),i.addObserver(dh),this.listenTo(r,"clipboardInput",(function(e){t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(r,"clipboardInput",(function(t,n){var r,o=n.dataTransfer,a="";o.getData("text/html")?a=function(e){return e.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,(function(e,t){return 1==t.length?" ":t}))}(o.getData("text/html")):o.getData("text/plain")&&((r=(r=o.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"</p><p>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).indexOf("</p><p>")>-1&&(r="<p>".concat(r,"</p>")),a=r),a=e._htmlDataProcessor.toView(a);var s=new Rn(e,"inputTransformation");e.fire(s,{content:a,dataTransfer:o}),s.stop.called&&t.stop(),i.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(t,i){if(!i.content.isEmpty){var r=e.editor.data,o=e.editor.model,a=r.toModel(i.content,"$clipboardHolder");if(0==a.childCount)return;if(function(e){return!(e.childCount>1)&&0==u(e.getChild(0).getAttributeKeys()).length}(a)){var s=a.getChild(0);o.change((function(e){e.setAttributes(n.selection.getAttributes(),s)}))}o.insertContent(a),t.stop()}}),{priority:"low"}),this.listenTo(r,"copy",o,{priority:"low"}),this.listenTo(r,"cut",(function(e,n){t.isReadOnly?n.preventDefault():o(e,n)}),{priority:"low"}),this.listenTo(r,"clipboardOutput",(function(i,r){r.content.isEmpty||(r.dataTransfer.setData("text/html",e._htmlDataProcessor.toData(r.content)),r.dataTransfer.setData("text/plain",function e(t){var n="";if(t.is("$text")||t.is("$textProxy"))n=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))n=t.getAttribute("alt");else{var i,r=null,o=k(t.getChildren());try{for(o.s();!(i=o.n()).done;){var a=i.value,s=e(a);r&&(r.is("containerElement")||a.is("containerElement"))&&(hh.includes(r.name)||hh.includes(a.name)?n+="\n":n+="\n\n"),n+=s,r=a}}catch(l){o.e(l)}finally{o.f()}}return n}(r.content))),"cut"==r.method&&t.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Clipboard"}}]),n}(Vu),vh=function(){function e(){w(this,e),this._definitions=new Set}return x(e,[{key:"add",value:function(e){var t=this;Array.isArray(e)?e.forEach((function(e){return t._definitions.add(e)})):this._definitions.add(e)}},{key:"getDispatcher",value:function(){var e=this;return function(t){t.on("attribute:linkHref",(function(t,n,i){if(i.consumable.test(n.item,"attribute:linkHref")){var r,o=i.writer,a=o.document.selection,s=k(e._definitions);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=o.createAttributeElement("a",l.attributes,{priority:5});o.setCustomProperty("link",!0,c),l.callback(n.attributeNewValue)?n.item.is("selection")?o.wrap(a.getFirstRange(),c):o.wrap(i.mapper.toViewRange(n.range),c):o.unwrap(i.mapper.toViewRange(n.range),c)}}catch(u){s.e(u)}finally{s.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var e=this;return function(t){t.on("attribute:linkHref:image",(function(t,n,i){var r,o=i.mapper.toViewElement(n.item),a=Array.from(o.getChildren()).find((function(e){return"a"===e.name})),s=k(e._definitions);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=li(l.attributes);if(l.callback(n.attributeNewValue)){var u,d=k(c);try{for(d.s();!(u=d.n()).done;){var h=v(u.value,2),f=h[0],p=h[1];"class"===f?i.writer.addClass(p,a):i.writer.setAttribute(f,p,a)}}catch(_){d.e(_)}finally{d.f()}}else{var m,g=k(c);try{for(g.s();!(m=g.n()).done;){var b=v(m.value,2),y=b[0],w=b[1];"class"===y?i.writer.removeClass(w,a):i.writer.removeAttribute(y,a)}}catch(_){g.e(_)}finally{g.f()}}}}catch(_){s.e(_)}finally{s.f()}}))}}},{key:"length",get:function(){return this._definitions.size}}]),e}(),ph=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:Si(e,t,n)},mh=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),gh=function(e){return mh.test(e)},kh=function(e){return e.split("")},bh="[\\ud800-\\udfff]",yh="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",wh="\\ud83c[\\udffb-\\udfff]",_h="[^\\ud800-\\udfff]",xh="(?:\\ud83c[\\udde6-\\uddff]){2}",Ch="[\\ud800-\\udbff][\\udc00-\\udfff]",Ah="(?:"+yh+"|"+wh+")?",Th="[\\ufe0e\\ufe0f]?",Ph=Th+Ah+"(?:\\u200d(?:"+[_h,xh,Ch].join("|")+")"+Th+Ah+")*",Eh="(?:"+[_h+yh+"?",yh,xh,Ch,bh].join("|")+")",Sh=RegExp(wh+"(?="+wh+")|"+Eh+Ph,"g"),Oh=function(e){return e.match(Sh)||[]},Mh=function(e){return gh(e)?Oh(e):kh(e)},Ih=function(e){return function(t){t=Ci(t);var n=gh(t)?Mh(t):void 0,i=n?n[0]:t.charAt(0),r=n?ph(n,1).join(""):t.slice(1);return i[e]()+r}}("toUpperCase"),Nh=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Rh=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,Dh="Ctrl+K";function Lh(e,t){var n=t.writer,i=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,i),i}function zh(e){return function(e){return e.replace(Nh,"").match(Rh)}(e=String(e))?e:"#"}function jh(e,t){return!!e&&e.is("element","image")&&t.checkAttribute("image","linkHref")}var Vh=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.manualDecorators=new Jn,i.automaticDecorators=new vh,i}return x(n,[{key:"restoreManualDecoratorStates",value:function(){var e,t=k(this.manualDecorators);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(i){t.e(i)}finally{t.f()}}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Hu(t.selection.getSelectedBlocks());jh(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.selection.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref"));var i,r=k(this.manualDecorators);try{for(r.s();!(i=r.n()).done;){var o=i.value;o.value=this._getDecoratorStateFromModel(o.id)}}catch(a){r.e(a)}finally{r.f()}}},{key:"execute",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,r=i.document.selection,o=[],a=[];for(var s in n)n[s]?o.push(s):a.push(s);i.change((function(n){if(r.isCollapsed){var s=r.getFirstPosition();if(r.hasAttribute("linkHref")){var l=Qd(s,"linkHref",r.getAttribute("linkHref"),i);n.setAttribute("linkHref",e,l),o.forEach((function(e){n.setAttribute(e,!0,l)})),a.forEach((function(e){n.removeAttribute(e,l)})),n.setSelection(n.createPositionAfter(l.end.nodeBefore))}else if(""!==e){var c=li(r.getAttributes());c.set("linkHref",e),o.forEach((function(e){c.set(e,!0)}));var u=n.createText(e,c);i.insertContent(u,s),n.setSelection(n.createPositionAfter(u))}["linkHref"].concat(o,a).forEach((function(e){n.removeSelectionAttribute(e)}))}else{var d,h=i.schema.getValidRanges(r.getRanges(),"linkHref"),f=[],v=k(r.getSelectedBlocks());try{for(v.s();!(d=v.n()).done;){var p=d.value;i.schema.checkAttribute(p,"linkHref")&&f.push(n.createRangeOn(p))}}catch(C){v.e(C)}finally{v.f()}var m,g=f.slice(),b=k(h);try{for(b.s();!(m=b.n()).done;){var y=m.value;t._isRangeToUpdate(y,f)&&g.push(y)}}catch(C){b.e(C)}finally{b.f()}var w,_=k(g);try{var x=function(){var t=w.value;n.setAttribute("linkHref",e,t),o.forEach((function(e){n.setAttribute(e,!0,t)})),a.forEach((function(e){n.removeAttribute(e,t)}))};for(_.s();!(w=_.n()).done;)x()}catch(C){_.e(C)}finally{_.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(e){var t=this.editor.model,n=t.document,i=Hu(n.selection.getSelectedBlocks());return jh(i,t.schema)?i.getAttribute(e):n.selection.getAttribute(e)}},{key:"_isRangeToUpdate",value:function(e,t){var n,i=k(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.containsRange(e))return!1}}catch(o){i.e(o)}finally{i.f()}return!0}}]),n}(Fu),Bh=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document,n=Hu(t.selection.getSelectedBlocks());jh(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t.selection,"linkHref")}},{key:"execute",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection,i=e.commands.get("link");t.change((function(e){var r,o=n.isCollapsed?[Qd(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:n.getRanges(),a=k(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(e.removeAttribute("linkHref",s),i){var l,c=k(i.manualDecorators);try{for(c.s();!(l=c.n()).done;){var u=l.value;e.removeAttribute(u.id,s)}}catch(d){c.e(d)}finally{c.f()}}}}catch(d){a.e(d)}finally{a.f()}}))}}]),n}(Fu),Fh=function e(t){var n=t.id,i=t.label,r=t.attributes,o=t.defaultValue;w(this,e),this.id=n,this.set("value"),this.defaultValue=o,this.label=i,this.attributes=r};Kn(Fh,vr),n(45);var Uh="automatic",Hh=/^(https?:)?\/\//,$h=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("link",{addTargetToExternalLinks:!1}),i}return x(n,null,[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[qd,ch,fh]}}]),x(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:Lh}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(e,t){return Lh(zh(e),t)}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(e){return e.getAttribute("href")}}}),e.commands.add("link",new Vh(e)),e.commands.add("unlink",new Bh(e));var t=function(e,t){var n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((function(e){return e.label&&n[e.label]&&(e.label=n[e.label]),e})),t}(e.t,function(e){var t=[];if(e)for(var n=0,i=Object.entries(e);n<i.length;n++){var r=v(i[n],2),o=r[0],a=r[1],s=Object.assign({},a,{id:"link"+Ih(o)});t.push(s)}return t}(e.config.get("link.decorators")));this._enableAutomaticDecorators(t.filter((function(e){return e.mode===Uh}))),this._enableManualDecorators(t.filter((function(e){return"manual"===e.mode}))),e.plugins.get(qd).registerAttribute("linkHref"),function(e,t,n,i){var r=e.editing.view,o=new Set;r.document.registerPostFixer((function(r){var a=e.model.document.selection,s=!1;if(a.hasAttribute(t)){var l,c=Qd(a.getFirstPosition(),t,a.getAttribute(t),e.model),u=e.editing.mapper.toViewRange(c),d=k(u.getItems());try{for(d.s();!(l=d.n()).done;){var h=l.value;h.is("element",n)&&!h.hasClass(i)&&(r.addClass(i,h),o.add(h),s=!0)}}catch(f){d.e(f)}finally{d.f()}}return s})),e.conversion.for("editingDowncast").add((function(e){function t(){r.change((function(e){var t,n=k(o.values());try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeClass(i,r),o.delete(r)}}catch(a){n.e(a)}finally{n.f()}}))}e.on("insert",t,{priority:"highest"}),e.on("remove",t,{priority:"highest"}),e.on("attribute",t,{priority:"highest"}),e.on("selection",t,{priority:"highest"})}))}(e,"linkHref","a","ck-link_selected"),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(e){var t=this.editor,n=t.commands.get("link").automaticDecorators;t.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Uh,callback:function(e){return Hh.test(e)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(e),n.length&&t.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(e){if(e.length){var t=this.editor,n=t.commands.get("link").manualDecorators;e.forEach((function(e){t.model.schema.extend("$text",{allowAttributes:e.id}),n.add(new Fh(e)),t.conversion.for("downcast").attributeToElement({model:e.id,view:function(t,i){var r=i.writer;if(t){var o=n.get(e.id).attributes,a=r.createAttributeElement("a",o,{priority:5});return r.setCustomProperty("link",!0,a),a}}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:n.get(e.id).attributes},model:{key:e.id}})}))}}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var e=this.editor,t=e.model,n=t.document.selection,i=e.commands.get("link");this.listenTo(t,"insertContent",(function(){var e=n.anchor.nodeBefore,r=n.anchor.nodeAfter;n.hasAttribute("linkHref")&&e&&e.hasAttribute("linkHref")&&(r&&r.hasAttribute("linkHref")||t.change((function(e){Wh(e,i.manualDecorators)})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var e=this.editor,t=e.commands.get("link");e.editing.view.addObserver(Wd);var n=!1;this.listenTo(e.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(e.editing.view.document,"selectionChange",(function(){if(n){n=!1;var i=e.model.document.selection;if(i.isCollapsed&&i.hasAttribute("linkHref")){var r=i.getFirstPosition(),o=Qd(r,"linkHref",i.getAttribute("linkHref"),e.model);(r.isTouching(o.start)||r.isTouching(o.end))&&e.model.change((function(e){Wh(e,t.manualDecorators)}))}}}))}},{key:"_enableTypingOverLink",value:function(){var e,t,n=this.editor,i=n.editing.view;this.listenTo(i.document,"delete",(function(){t=!0}),{priority:"high"}),this.listenTo(n.model,"deleteContent",(function(){var i=n.model.document.selection;i.isCollapsed||(t?t=!1:qh(n)&&function(e){var t=e.document.selection,n=t.getFirstPosition(),i=t.getLastPosition(),r=n.nodeAfter;if(!r)return!1;if(!r.is("$text"))return!1;if(!r.hasAttribute("linkHref"))return!1;var o=i.textNode||i.nodeBefore;return r===o||Qd(n,"linkHref",r.getAttribute("linkHref"),e).containsRange(e.createRange(n,i),!0)}(n.model)&&(e=i.getAttributes()))}),{priority:"high"}),this.listenTo(n.model,"insertContent",(function(i,r){var o=v(r,1),a=o[0];t=!1,qh(n)&&e&&(n.model.change((function(t){var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=v(n.value,2),o=r[0],s=r[1];t.setAttribute(o,s,a)}}catch(l){i.e(l)}finally{i.f()}})),e=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var e=this.editor,t=e.model,n=t.document.selection,i=e.editing.view,r=e.commands.get("link"),o=!1,a=!1;this.listenTo(i.document,"delete",(function(e,t){a=t.domEvent.keyCode===Br.backspace}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){o=!1;var e=n.getFirstPosition(),i=n.getAttribute("linkHref");if(i){var r=Qd(e,"linkHref",i,t);o=r.containsPosition(e)||r.end.isEqual(e)}}),{priority:"high"}),this.listenTo(t,"deleteContent",(function(){a&&(a=!1,o||e.model.enqueueChange((function(e){Wh(e,r.manualDecorators)})))}),{priority:"low"})}}]),n}(Vu);function Wh(e,t){e.removeSelectionAttribute("linkHref");var n,i=k(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;e.removeSelectionAttribute(r.id)}}catch(o){i.e(o)}finally{i.f()}}function qh(e){return e.plugins.get("Input").isInput(e.model.change((function(e){return e.batch})))}var Yh=function(){function e(t){w(this,e),this.context=t}return x(e,[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}]),e}();Kn(Yh,vr);var Gh=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){this.on("show:warning",(function(e,t){window.alert(t.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}},{key:"showInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}},{key:"_showNotification",value:function(e){var t="show:"+e.type+(e.namespace?":"+e.namespace:"");this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(Yh),Kh=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.stopListening(i.editor.model.document,"change"),i.listenTo(i.editor.model.document,"change",(function(){return i.refresh()}),{priority:"low"}),i}return x(n,[{key:"refresh",value:function(){var e=this.editor.commands.get("imageInsert"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}},{key:"execute",value:function(){var e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new jn.b('ckfinder-unknown-openerMethod: The openerMethod config option must by "popup" or "modal".',e);var n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;var i=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=function(t){i&&i(t),t.on("files:choose",(function(n){var i,r=n.data.files.toArray(),o=r.filter((function(e){return!e.isImage()})),a=r.filter((function(e){return e.isImage()})),s=k(o);try{for(s.s();!(i=s.n()).done;){var l=i.value;e.execute("link",l.getUrl())}}catch(v){s.e(v)}finally{s.f()}var c,u=[],d=k(a);try{for(d.s();!(c=d.n()).done;){var h=c.value,f=h.getUrl();u.push(f||t.request("file:getProxyUrl",{file:h}))}}catch(v){d.e(v)}finally{d.f()}u.length&&Jh(e,u)})),t.on("file:choose:resizedImage",(function(t){var n=t.data.resizedUrl;if(n)Jh(e,[n]);else{var i=e.plugins.get("Notification"),r=e.locale.t;i.showWarning(r("Could not obtain resized image URL."),{title:r("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[t](n)}}]),n}(Fu);function Jh(e,t){if(e.commands.get("imageInsert").isEnabled)e.execute("imageInsert",{source:t});else{var n=e.plugins.get("Notification"),i=e.locale.t;n.showWarning(i("Could not insert image at the current position."),{title:i("Inserting image failed"),namespace:"ckfinder"})}}var Qh=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("ckfinder",new Kh(e))}}],[{key:"pluginName",get:function(){return"CKFinderEditing"}},{key:"requires",get:function(){return[Gh,Hd,$h]}}]),n}(Vu),Zh=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new Jn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(e){if("string"!=typeof e)throw new jn.b("pendingactions-add-invalid-message: The message must be a string.",this);var t=Object.create(vr);return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}},{key:"remove",value:function(e){this._actions.remove(e),this.hasAny=!!this._actions.length}},{key:Symbol.iterator,value:function(){return this._actions[Symbol.iterator]()}},{key:"first",get:function(){return this._actions.get(0)}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),n}(Yh),Xh=function(){function e(){var t=this;w(this,e);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(e){t.loaded=e.loaded}}return x(e,[{key:"read",value:function(e){var t=this,n=this._reader;return this.total=e.size,new Promise((function(i,r){n.onload=function(){var e=n.result;t._data=e,i(e)},n.onerror=function(){r("error")},n.onabort=function(){r("aborted")},t._reader.readAsDataURL(e)}))}},{key:"abort",value:function(){this._reader.abort()}},{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}}]),e}();Kn(Xh,vr);var ef=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this;this.loaders=new Jn,this.loaders.on("add",(function(){return e._updatePendingAction()})),this.loaders.on("remove",(function(){return e._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0}))}},{key:"getLoader",value:function(e){return this._loadersMap.get(e)||null}},{key:"createLoader",value:function(e){var t=this;if(!this.createUploadAdapter)return console.warn(Object(jn.a)("filerepository-no-upload-adapter: Upload adapter is not defined.")),null;var n=new tf(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(e,n),e instanceof Promise&&n.file.then((function(e){t._loadersMap.set(e,n)})).catch((function(){})),n.on("change:uploaded",(function(){var e,n=0,i=k(t.loaders);try{for(i.s();!(e=i.n()).done;){var r=e.value;n+=r.uploaded}}catch(o){i.e(o)}finally{i.f()}t.uploaded=n})),n.on("change:uploadTotal",(function(){var e,n=0,i=k(t.loaders);try{for(i.s();!(e=i.n()).done;){var r=e.value;r.uploadTotal&&(n+=r.uploadTotal)}}catch(o){i.e(o)}finally{i.f()}t.uploadTotal=n})),n}},{key:"destroyLoader",value:function(e){var t=this,n=e instanceof tf?e:this.getLoader(e);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(e,i){e===n&&t._loadersMap.delete(i)}))}},{key:"_updatePendingAction",value:function(){var e=this.editor.plugins.get(Zh);if(this.loaders.length){if(!this._pendingAction){var t=this.editor.t,n=function(e){return"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.")};this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[Zh]}}]),n}(Vu);Kn(ef,vr);var tf=function(){function e(t,n){w(this,e),this.id=Ln(),this._filePromiseWrapper=this._createFilePromiseWrapper(t),this._adapter=n(this),this._reader=new Xh,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0})),this.set("uploadResponse",null)}return x(e,[{key:"read",value:function(){var e=this;if("idle"!=this.status)throw new jn.b("filerepository-read-wrong-status: You cannot call read if the status is different than idle.",this);return this.status="reading",this.file.then((function(t){return e._reader.read(t)})).then((function(t){if("reading"!==e.status)throw e.status;return e.status="idle",t})).catch((function(t){if("aborted"===t)throw e.status="aborted","aborted";throw e.status="error",e._reader.error?e._reader.error:t}))}},{key:"upload",value:function(){var e=this;if("idle"!=this.status)throw new jn.b("filerepository-upload-wrong-status: You cannot call upload if the status is different than idle.",this);return this.status="uploading",this.file.then((function(){return e._adapter.upload()})).then((function(t){return e.uploadResponse=t,e.status="idle",t})).catch((function(t){if("aborted"===e.status)throw"aborted";throw e.status="error",t}))}},{key:"abort",value:function(){var e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(e){var t={};return t.promise=new Promise((function(n,i){t.rejecter=i,t.isFulfilled=!1,e.then((function(e){t.isFulfilled=!0,n(e)})).catch((function(e){t.isFulfilled=!0,i(e)}))})),t}},{key:"file",get:function(){var e=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(t){return e._filePromiseWrapper?t:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}}]),e}();Kn(tf,vr);var nf="ckCsrfToken",rf="abcdefghijklmnopqrstuvwxyz0123456789";function of(){var e,t,n=function(e){e=e.toLowerCase();var t,n=document.cookie.split(";"),i=k(n);try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.split("=");if(decodeURIComponent(o[0].trim().toLowerCase())===e)return decodeURIComponent(o[1])}}catch(a){i.e(a)}finally{i.f()}return null}(nf);return n&&40==n.length||(n=function(e){var t="",n=new Uint8Array(e);window.crypto.getRandomValues(n);for(var i=0;i<n.length;i++){var r=rf.charAt(n[i]%rf.length);t+=Math.random()>.5?r.toUpperCase():r}return t}(40),e=nf,t=n,document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/"),n}var af=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(ef).createUploadAdapter=function(n){return new sf(n,t,e.editor.t)})}}],[{key:"requires",get:function(){return[ef]}},{key:"pluginName",get:function(){return"CKFinderUploadAdapter"}}]),n}(Vu),sf=function(){function e(t,n,i){w(this,e),this.loader=t,this.url=n,this.t=i}return x(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,i){e._initRequest(),e._initListeners(n,i,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var i=this.xhr,r=this.loader,o=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");i.addEventListener("error",(function(){return t(o)})),i.addEventListener("abort",(function(){return t()})),i.addEventListener("load",(function(){var n=i.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:o);e({default:n.url})})),i.upload&&i.upload.addEventListener("progress",(function(e){e.lengthComputable&&(r.uploadTotal=e.total,r.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){var t=new FormData;t.append("upload",e),t.append("ckCsrfToken",of()),this.xhr.send(t)}}]),e}();function lf(e,t){var n,i,r;return a.wrap((function(o){while(1)switch(o.prev=o.next){case 0:n=k(t),o.prev=1,n.s();case 3:if((i=n.n()).done){o.next=11;break}if(r=i.value,o.t0=r&&e.getAttributeProperties(r[0]).copyOnEnter,!o.t0){o.next=9;break}return o.next=9,r;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o["catch"](1),n.e(o.t1);case 16:return o.prev=16,n.f(),o.finish(16);case 19:case"end":return o.stop()}}),o,null,[[1,13,16,19]])}var cf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(i){!function(e,t,n,i){var r=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(i.isLimit(a)||i.isLimit(s))r||a!=s||e.deleteContent(n);else if(r){var l=lf(t.model.schema,n.getAttributes());uf(t,o.start),t.setSelectionAttribute(l)}else{var c=!(o.start.isAtStart&&o.end.isAtEnd),u=a==s;e.deleteContent(n,{leaveUnmerged:c}),c&&(u?uf(t,n.focus):t.setSelection(s,0))}}(e.editor.model,i,n.selection,t.schema),e.fire("afterExecute",{writer:i})}))}}]),n}(Fu);function uf(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var df=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.document;return r.on("keydown",(function(e,t){var n;i.isEnabled&&t.keyCode==Br.enter&&(r.once("enter",(function(e){return n=e}),{priority:"highest"}),r.fire("enter",new da(r,t.domEvent,{isSoft:t.shiftKey})),n&&n.stop.called&&e.stop())})),i}return x(n,[{key:"observe",value:function(){}}]),n}(Uo),hf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(df),e.commands.add("enter",new cf(e)),this.listenTo(n,"enter",(function(n,i){i.preventDefault(),i.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(Vu),ff=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(i){!function(e,t,n){var i=n.isCollapsed,r=n.getFirstRange(),o=r.start.parent,a=r.end.parent,s=o==a;if(i){var l=lf(e.schema,n.getAttributes());vf(e,t,r.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(l)}else{var c=!(r.start.isAtStart&&r.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:c}),s?vf(e,t,n.focus):c&&t.setSelection(a,0)}}(t,i,n.selection),e.fire("afterExecute",{writer:i})}))}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;var n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;var i=t.getFirstRange(),r=i.start.parent,o=i.end.parent;return!pf(r,e)&&!pf(o,e)||r===o}(e.schema,t.selection)}}]),n}(Fu);function vf(e,t,n){var i=t.createElement("softBreak");e.insertContent(i,n),t.setSelection(i,"after")}function pf(e,t){return!e.is("rootElement")&&(t.isLimit(e)||pf(e.parent,t))}var mf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.conversion,i=e.editing.view,r=i.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(e,t){var n=t.writer;return n.createEmptyElement("br")}}),i.addObserver(df),e.commands.add("shiftEnter",new ff(e)),this.listenTo(r,"enter",(function(t,n){n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),i.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(Vu),gf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!kf(e.schema,n))do{if(n=n.parent,!n)return}while(!kf(e.schema,n));e.change((function(e){e.setSelection(n,"in")}))}}]),n}(Fu);function kf(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}var bf=Ur("Ctrl+A"),yf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new gf(e)),this.listenTo(t,"keydown",(function(t,n){Fr(n)===bf&&(e.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(Vu),wf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor;t.ui.componentFactory.add("selectAll",(function(n){var i=t.commands.get("selectAll"),r=new _u(n),o=n.t;return r.set({label:o("Select all"),icon:'<svg width="20" height="20" xmlns="http://www.w3.org/2000/svg"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(r,"execute",(function(){t.execute("selectAll"),t.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(Vu),_f=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[yf,wf]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(Vu),xf=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.direction=i,r._buffer=new Xd(e.model,e.config.get("typing.undoStep")),r}return x(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document;n.enqueueChange(this._buffer.batch,(function(r){e._buffer.lock();var o=r.createSelection(t.selection||i.selection),a=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:e.direction,unit:t.unit}),e._shouldEntireContentBeReplacedWithParagraph(t.sequence||1))e._replaceEntireContentWithParagraph(r);else if(!o.isCollapsed){var s=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(e){s+=Pr(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:a,direction:e.direction}),e._buffer.input(s),r.setSelection(o),e._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(e){if(e>1)return!1;var t=this.editor.model,n=t.document.selection,i=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(i))return!1;if(!t.schema.checkChild(i,"paragraph"))return!1;var r=i.getChild(0);return!r||"paragraph"!==r.name}},{key:"_replaceEntireContentWithParagraph",value:function(e){var t=this.editor.model,n=t.document.selection,i=t.schema.getLimitElement(n),r=e.createElement("paragraph");e.remove(e.createRangeIn(i)),e.insert(r,i),e.setSelection(r,0)}},{key:"buffer",get:function(){return this._buffer}}]),n}(Fu),Cf=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=e.document,o=0;function a(e,t,n){var i;r.once("delete",(function(e){return i=e}),{priority:Number.POSITIVE_INFINITY}),r.fire("delete",new da(r,t,n)),i&&i.stop.called&&e.stop()}return r.on("keyup",(function(e,t){t.keyCode!=Br.delete&&t.keyCode!=Br.backspace||(o=0)})),r.on("keydown",(function(e,t){var n={};if(t.keyCode==Br.delete)n.direction="forward",n.unit="character";else{if(t.keyCode!=Br.backspace)return;n.direction="backward",n.unit="codePoint"}var i=zr.isMac?t.altKey:t.ctrlKey;n.unit=i?"word":n.unit,n.sequence=++o,a(e,t.domEvent,n)})),zr.isAndroid&&r.on("beforeinput",(function(t,n){if("deleteContentBackward"==n.domEvent.inputType){var i={unit:"codepoint",direction:"backward",sequence:1},r=n.domTarget.ownerDocument.defaultView.getSelection();r.anchorNode==r.focusNode&&r.anchorOffset+1!=r.focusOffset&&(i.selectionToRemove=e.domConverter.domSelectionToView(r)),a(t,n.domEvent,i)}})),i}return x(n,[{key:"observe",value:function(){}}]),n}(Uo),Af=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;if(t.addObserver(Cf),e.commands.add("forwardDelete",new xf(e,"forward")),e.commands.add("delete",new xf(e,"backward")),this.listenTo(n,"delete",(function(n,i){var r={unit:i.unit,sequence:i.sequence};if(i.selectionToRemove){var o,a=e.model.createSelection(),s=[],l=k(i.selectionToRemove.getRanges());try{for(l.s();!(o=l.n()).done;){var c=o.value;s.push(e.editing.mapper.toModelRange(c))}}catch(u){l.e(u)}finally{l.f()}a.setTo(s),r.selection=a}e.execute("forward"==i.direction?"forwardDelete":"delete",r),i.preventDefault(),t.scrollToTheSelection()})),zr.isAndroid){var i=null;this.listenTo(n,"delete",(function(e,t){var n=t.domTarget.ownerDocument.defaultView.getSelection();i={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(n,"keyup",(function(e,t){if(i){var n=t.domTarget.ownerDocument.defaultView.getSelection();n.collapse(i.anchorNode,i.anchorOffset),n.extend(i.focusNode,i.focusOffset),i=null}}))}}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(Vu),Tf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[ch,Af]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(Vu),Pf=new Map;function Ef(e,t,n){var i=Pf.get(e);i||(i=new Map,Pf.set(e,i)),i.set(t,n)}function Sf(e){return[e]}function Of(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(e,t){var n=Pf.get(e);return n&&n.has(t)?n.get(t):Sf}(e.constructor,t.constructor);try{return i(e=e.clone(),t,n)}catch(e){throw e}}function Mf(e,t,n){e=e.slice(),t=t.slice();var i=new If(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(e),i.setOriginalOperations(t);var r=i.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:r};var o,a=new WeakMap,s=k(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;a.set(l,0)}}catch(A){s.e(A)}finally{s.f()}for(var c={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},d=0;d<e.length;){var h,f,v=e[d],p=a.get(v);if(p!=t.length){var m=t[p],g=Of(v,m,i.getContext(v,m,!0)),b=Of(m,v,i.getContext(m,v,!1));i.updateRelation(v,m),i.setOriginalOperations(g,v),i.setOriginalOperations(b,m);var y,w=k(g);try{for(w.s();!(y=w.n()).done;){var _=y.value;a.set(_,p+b.length)}}catch(A){w.e(A)}finally{w.f()}(h=e).splice.apply(h,[d,1].concat(u(g))),(f=t).splice.apply(f,[p,1].concat(u(b)))}else d++}if(n.padWithNoOps){var x=e.length-c.originalOperationsACount,C=t.length-c.originalOperationsBCount;Rf(e,C-x),Rf(t,x-C)}return Nf(e,c.nextBaseVersionB),Nf(t,c.nextBaseVersionA),{operationsA:e,operationsB:t,originalOperations:r}}var If=function(){function e(t,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];w(this,e),this.originalOperations=new Map,this._history=t.history,this._useRelations=n,this._forceWeakRemove=!!i,this._relations=new Map}return x(e,[{key:"setOriginalOperations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=n?this.originalOperations.get(n):null,r=k(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;this.originalOperations.set(o,i||o)}}catch(a){r.e(a)}finally{r.f()}}},{key:"updateRelation",value:function(e,t){switch(e.constructor){case wl:switch(t.constructor){case Tl:e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter");break;case wl:e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter")}break;case Pl:switch(t.constructor){case Tl:e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");break;case wl:(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))&&this._setRelation(e,t,"splitBefore")}break;case Tl:switch(t.constructor){case Tl:e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement");break;case Pl:e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource")}break;case xl:var n=e.newRange;if(!n)return;switch(t.constructor){case wl:var i=is._createFromPositionAndShift(t.sourcePosition,t.howMany),r=i.containsPosition(n.start)||i.start.isEqual(n.start),o=i.containsPosition(n.end)||i.end.isEqual(n.end);!r&&!o||i.containsRange(n)||this._setRelation(e,t,{side:r?"left":"right",path:r?n.start.path.slice():n.end.path.slice()});break;case Tl:var a=n.start.isEqual(t.targetPosition),s=n.start.isEqual(t.deletionPosition),l=n.end.isEqual(t.deletionPosition),c=n.end.isEqual(t.sourcePosition);(a||s||l||c)&&this._setRelation(e,t,{wasInLeftElement:a,wasStartBeforeMergedElement:s,wasEndBeforeMergedElement:l,wasInRightElement:c});break}break}}},{key:"getContext",value:function(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(e){var t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}},{key:"_getRelation",value:function(e,t){var n=this.originalOperations.get(t),i=this._history.getUndoneOperation(n);if(!i)return null;var r=this.originalOperations.get(e),o=this._relations.get(r);return o&&o.get(i)||null}},{key:"_setRelation",value:function(e,t,n){var i=this.originalOperations.get(e),r=this.originalOperations.get(t),o=this._relations.get(i);o||(o=new Map,this._relations.set(i,o)),o.set(r,n)}}]),e}();function Nf(e,t){var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;r.baseVersion=t++}}catch(o){i.e(o)}finally{i.f()}}function Rf(e,t){for(var n=0;n<t;n++)e.push(new Yl(0))}function Df(e,t,n){var i=e.nodes.getNode(0).getAttribute(t);if(i==n)return null;var r=new is(e.position,e.position.getShiftedBy(e.howMany));return new bl(r,t,i,n,0)}function Lf(e,t){return null===e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany)}function zf(e,t){for(var n=[],i=0;i<e.length;i++){var r=e[i],o=new wl(r.start,r.end.offset-r.start.offset,t,0);n.push(o);for(var a=i+1;a<e.length;a++)e[a]=e[a]._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)[0];t=t._getTransformedByMove(o.sourcePosition,o.targetPosition,o.howMany)}return n}Ef(bl,bl,(function(e,t,n){if(e.key===t.key&&e.range.start.hasSameParentAs(t.range.start)){var i=e.range.getDifference(t.range).map((function(t){return new bl(t,e.key,e.oldValue,e.newValue,0)})),r=e.range.getIntersection(t.range);return r&&n.aIsStrong&&i.push(new bl(r,t.key,t.newValue,e.newValue,0)),0==i.length?[new Yl(0)]:i}return[e]})),Ef(bl,_l,(function(e,t){if(e.range.start.hasSameParentAs(t.position)&&e.range.containsPosition(t.position)){var n=e.range._getTransformedByInsertion(t.position,t.howMany,!t.shouldReceiveAttributes).map((function(t){return new bl(t,e.key,e.oldValue,e.newValue,e.baseVersion)}));if(t.shouldReceiveAttributes){var i=Df(t,e.key,e.oldValue);i&&n.unshift(i)}return n}return e.range=e.range._getTransformedByInsertion(t.position,t.howMany,!1)[0],[e]})),Ef(bl,Tl,(function(e,t){var n=[];e.range.start.hasSameParentAs(t.deletionPosition)&&(e.range.containsPosition(t.deletionPosition)||e.range.start.isEqual(t.deletionPosition))&&n.push(is._createFromPositionAndShift(t.graveyardPosition,1));var i=e.range._getTransformedByMergeOperation(t);return i.isCollapsed||n.push(i),n.map((function(t){return new bl(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),Ef(bl,wl,(function(e,t){return function(e,t){var n=is._createFromPositionAndShift(t.sourcePosition,t.howMany),i=null,r=[];n.containsRange(e,!0)?i=e:e.start.hasSameParentAs(n.start)?(r=e.getDifference(n),i=e.getIntersection(n)):r=[e];var o,a=[],s=k(r);try{for(s.s();!(o=s.n()).done;){var l=o.value;l=l._getTransformedByDeletion(t.sourcePosition,t.howMany);var c=t.getMovedRangeStart(),d=l.start.hasSameParentAs(c);l=l._getTransformedByInsertion(c,t.howMany,d),a.push.apply(a,u(l))}}catch(h){s.e(h)}finally{s.f()}return i&&a.push(i._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany,!1)[0]),a}(e.range,t).map((function(t){return new bl(t,e.key,e.oldValue,e.newValue,e.baseVersion)}))})),Ef(bl,Pl,(function(e,t){if(e.range.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.range.end.offset++,[e];if(e.range.start.hasSameParentAs(t.splitPosition)&&e.range.containsPosition(t.splitPosition)){var n=e.clone();return n.range=new is(t.moveTargetPosition.clone(),e.range.end._getCombined(t.splitPosition,t.moveTargetPosition)),e.range.end=t.splitPosition.clone(),e.range.end.stickiness="toPrevious",[e,n]}return e.range=e.range._getTransformedBySplitOperation(t),[e]})),Ef(_l,bl,(function(e,t){var n=[e];if(e.shouldReceiveAttributes&&e.position.hasSameParentAs(t.range.start)&&t.range.containsPosition(e.position)){var i=Df(e,t.key,t.newValue);i&&n.push(i)}return n})),Ef(_l,_l,(function(e,t,n){return e.position.isEqual(t.position)&&n.aIsStrong||(e.position=e.position._getTransformedByInsertOperation(t)),[e]})),Ef(_l,wl,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),Ef(_l,Pl,(function(e,t){return e.position=e.position._getTransformedBySplitOperation(t),[e]})),Ef(_l,Tl,(function(e,t){return e.position=e.position._getTransformedByMergeOperation(t),[e]})),Ef(xl,_l,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByInsertOperation(t)[0]),e.newRange&&(e.newRange=e.newRange._getTransformedByInsertOperation(t)[0]),[e]})),Ef(xl,xl,(function(e,t,n){if(e.name==t.name){if(!n.aIsStrong)return[new Yl(0)];e.oldRange=t.newRange?t.newRange.clone():null}return[e]})),Ef(xl,Tl,(function(e,t){return e.oldRange&&(e.oldRange=e.oldRange._getTransformedByMergeOperation(t)),e.newRange&&(e.newRange=e.newRange._getTransformedByMergeOperation(t)),[e]})),Ef(xl,wl,(function(e,t,n){if(e.oldRange&&(e.oldRange=is._createFromRanges(e.oldRange._getTransformedByMoveOperation(t))),e.newRange){if(n.abRelation){var i=is._createFromRanges(e.newRange._getTransformedByMoveOperation(t));if("left"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.start))return e.newRange.start.path=n.abRelation.path,e.newRange.end=i.end,[e];if("right"==n.abRelation.side&&t.targetPosition.isEqual(e.newRange.end))return e.newRange.start=i.start,e.newRange.end.path=n.abRelation.path,[e]}e.newRange=is._createFromRanges(e.newRange._getTransformedByMoveOperation(t))}return[e]})),Ef(xl,Pl,(function(e,t,n){if(e.oldRange&&(e.oldRange=e.oldRange._getTransformedBySplitOperation(t)),e.newRange){if(n.abRelation){var i=e.newRange._getTransformedBySplitOperation(t);return e.newRange.start.isEqual(t.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?e.newRange.start=Xa._createAt(t.insertionPosition):e.newRange.start.isEqual(t.splitPosition)&&!n.abRelation.wasInLeftElement&&(e.newRange.start=Xa._createAt(t.moveTargetPosition)),e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasInRightElement?e.newRange.end=Xa._createAt(t.moveTargetPosition):e.newRange.end.isEqual(t.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?e.newRange.end=Xa._createAt(t.insertionPosition):e.newRange.end=i.end,[e]}e.newRange=e.newRange._getTransformedBySplitOperation(t)}return[e]})),Ef(Tl,_l,(function(e,t){return e.sourcePosition.hasSameParentAs(t.position)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByInsertOperation(t),e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t),[e]})),Ef(Tl,Tl,(function(e,t,n){if(e.sourcePosition.isEqual(t.sourcePosition)&&e.targetPosition.isEqual(t.targetPosition)){if(n.bWasUndone){var i=t.graveyardPosition.path.slice();return i.push(0),e.sourcePosition=new Xa(t.graveyardPosition.root,i),e.howMany=0,[e]}return[new Yl(0)]}if(e.sourcePosition.isEqual(t.sourcePosition)&&!e.targetPosition.isEqual(t.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var r="$graveyard"==e.targetPosition.root.rootName,o="$graveyard"==t.targetPosition.root.rootName,a=r&&!o;if(o&&!r||!a&&n.aIsStrong){var s=t.targetPosition._getTransformedByMergeOperation(t),l=e.targetPosition._getTransformedByMergeOperation(t);return[new wl(s,e.howMany,l,0)]}return[new Yl(0)]}return e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMergeOperation(t),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),e.graveyardPosition.isEqual(t.graveyardPosition)&&n.aIsStrong||(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),Ef(Tl,wl,(function(e,t,n){var i=is._createFromPositionAndShift(t.sourcePosition,t.howMany);return"remove"==t.type&&!n.bWasUndone&&!n.forceWeakRemove&&e.deletionPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.sourcePosition)?[new Yl(0)]:(e.sourcePosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.sourcePosition.hasSameParentAs(t.sourcePosition)&&(e.howMany-=t.howMany),e.sourcePosition=e.sourcePosition._getTransformedByMoveOperation(t),e.targetPosition=e.targetPosition._getTransformedByMoveOperation(t),e.graveyardPosition.isEqual(t.targetPosition)||(e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)),[e])})),Ef(Tl,Pl,(function(e,t,n){if(t.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByDeletion(t.graveyardPosition,1),e.deletionPosition.isEqual(t.graveyardPosition)&&(e.howMany=t.howMany)),e.targetPosition.isEqual(t.splitPosition)){var i=0!=t.howMany,r=t.graveyardPosition&&e.deletionPosition.isEqual(t.graveyardPosition);if(i||r||"mergeTargetNotMoved"==n.abRelation)return e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),[e]}if(e.sourcePosition.isEqual(t.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return e.howMany=0,e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e];if("mergeSameElement"==n.abRelation||e.sourcePosition.offset>0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),Ef(wl,_l,(function(e,t){var n=is._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),Ef(wl,wl,(function(e,t,n){var i,r=is._createFromPositionAndShift(e.sourcePosition,e.howMany),o=is._createFromPositionAndShift(t.sourcePosition,t.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),i=e.targetPosition.isEqual(t.targetPosition)&&s?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),Lf(e,t)&&Lf(t,e))return[t.getReversed()];if(r.containsPosition(t.targetPosition)&&r.containsRange(o,!0))return r.start=r.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),r.end=r.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),zf([r],i);if(o.containsPosition(e.targetPosition)&&o.containsRange(r,!0))return r.start=r.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),r.end=r.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),zf([r],i);var l=ii(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return r.start=r.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),r.end=r.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),zf([r],i);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var c,d=[],h=r.getDifference(o),f=k(h);try{for(f.s();!(c=f.n()).done;){var v=c.value;v.start=v.start._getTransformedByDeletion(t.sourcePosition,t.howMany),v.end=v.end._getTransformedByDeletion(t.sourcePosition,t.howMany);var p="same"==ii(v.start.getParentPath(),t.getMovedRangeStart().getParentPath()),m=v._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,p);d.push.apply(d,u(m))}}catch(b){f.e(b)}finally{f.f()}var g=r.getIntersection(o);return null!==g&&a&&(g.start=g.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),g.end=g.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===d.length?d.push(g):1==d.length?o.start.isBefore(r.start)||o.start.isEqual(r.start)?d.unshift(g):d.push(g):d.splice(1,0,g)),0===d.length?[new Yl(e.baseVersion)]:zf(d,i)})),Ef(wl,Pl,(function(e,t,n){var i=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=e.targetPosition._getTransformedBySplitOperation(t));var r=is._createFromPositionAndShift(e.sourcePosition,e.howMany);if(r.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=i,[e];if(r.start.hasSameParentAs(t.splitPosition)&&r.containsPosition(t.splitPosition)){var o=new is(t.splitPosition,r.end);return o=o._getTransformedBySplitOperation(t),zf([new is(r.start,t.splitPosition),o],i)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(i=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(i=e.targetPosition);var a=[r._getTransformedBySplitOperation(t)];if(t.graveyardPosition){var s=r.start.isEqual(t.graveyardPosition)||r.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!n.aWasUndone&&a.push(is._createFromPositionAndShift(t.insertionPosition,1))}return zf(a,i)})),Ef(wl,Tl,(function(e,t,n){var i=is._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new Yl(0)]}else if(!n.aWasUndone){var r=[],o=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(r.push(new wl(e.sourcePosition,e.howMany-1,e.targetPosition,0)),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));var s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),l=new wl(o,1,s,0),c=l.getMovedRangeStart().path.slice();c.push(0);var u=new Xa(l.targetPosition.root,c);a=a._getTransformedByMove(o,s,1);var d=new wl(a,t.howMany,u,0);return r.push(l),r.push(d),r}var h=is._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=h.start,e.howMany=h.end.offset-h.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),Ef(Cl,_l,(function(e,t){return e.position=e.position._getTransformedByInsertOperation(t),[e]})),Ef(Cl,Tl,(function(e,t){return e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])})),Ef(Cl,wl,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),Ef(Cl,Cl,(function(e,t,n){if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new Yl(0)];e.oldName=t.newName}return[e]})),Ef(Cl,Pl,(function(e,t){if("same"==ii(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){var n=new Cl(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,n]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),Ef(Al,Al,(function(e,t,n){if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new Yl(0)];e.oldValue=t.newValue}return[e]})),Ef(Pl,_l,(function(e,t){return e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset<t.position.offset&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByInsertOperation(t),e.insertionPosition=Pl.getInsertionPosition(e.splitPosition),[e]})),Ef(Pl,Tl,(function(e,t,n){if(!e.graveyardPosition&&!n.bWasUndone&&e.splitPosition.hasSameParentAs(t.sourcePosition)){var i=t.graveyardPosition.path.slice();i.push(0);var r=new Xa(t.graveyardPosition.root,i),o=Pl.getInsertionPosition(new Xa(t.graveyardPosition.root,i)),a=new Pl(r,0,null,0);return a.insertionPosition=o,e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Pl.getInsertionPosition(e.splitPosition),e.graveyardPosition=a.insertionPosition.clone(),e.graveyardPosition.stickiness="toNext",[a,e]}return e.splitPosition.hasSameParentAs(t.deletionPosition)&&!e.splitPosition.isAfter(t.deletionPosition)&&e.howMany--,e.splitPosition.hasSameParentAs(t.targetPosition)&&(e.howMany+=t.howMany),e.splitPosition=e.splitPosition._getTransformedByMergeOperation(t),e.insertionPosition=Pl.getInsertionPosition(e.splitPosition),e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedByMergeOperation(t)),[e]})),Ef(Pl,wl,(function(e,t,n){var i=is._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.graveyardPosition){var r=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);if(!n.bWasUndone&&r){var o=e.splitPosition._getTransformedByMoveOperation(t),a=e.graveyardPosition._getTransformedByMoveOperation(t),s=a.path.slice();s.push(0);var l=new Xa(a.root,s);return[new wl(o,e.howMany,l,0)]}e.graveyardPosition=e.graveyardPosition._getTransformedByMoveOperation(t)}if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&i.containsPosition(e.splitPosition)){var c=t.howMany-(e.splitPosition.offset-t.sourcePosition.offset);return e.howMany-=c,e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany),e.splitPosition=t.sourcePosition.clone(),e.insertionPosition=Pl.getInsertionPosition(e.splitPosition),[e]}return!e.splitPosition.isEqual(t.targetPosition)||"insertAtSource"!=n.baRelation&&"splitBefore"!=n.abRelation?(t.sourcePosition.isEqual(t.targetPosition)||(e.splitPosition.hasSameParentAs(t.sourcePosition)&&e.splitPosition.offset<=t.sourcePosition.offset&&(e.howMany-=t.howMany),e.splitPosition.hasSameParentAs(t.targetPosition)&&e.splitPosition.offset<t.targetPosition.offset&&(e.howMany+=t.howMany)),e.splitPosition.stickiness="toNone",e.splitPosition=e.splitPosition._getTransformedByMoveOperation(t),e.splitPosition.stickiness="toNext",e.graveyardPosition?e.insertionPosition=e.insertionPosition._getTransformedByMoveOperation(t):e.insertionPosition=Pl.getInsertionPosition(e.splitPosition),[e]):(e.howMany+=t.howMany,e.splitPosition=e.splitPosition._getTransformedByDeletion(t.sourcePosition,t.howMany),e.insertionPosition=Pl.getInsertionPosition(e.splitPosition),[e])})),Ef(Pl,Pl,(function(e,t,n){if(e.splitPosition.isEqual(t.splitPosition)){if(!e.graveyardPosition&&!t.graveyardPosition)return[new Yl(0)];if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition))return[new Yl(0)];if("splitBefore"==n.abRelation)return e.howMany=0,e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t),[e]}if(e.graveyardPosition&&t.graveyardPosition&&e.graveyardPosition.isEqual(t.graveyardPosition)){var i="$graveyard"==e.splitPosition.root.rootName,r="$graveyard"==t.splitPosition.root.rootName,o=i&&!r;if(r&&!i||!o&&n.aIsStrong){var a=[];return t.howMany&&a.push(new wl(t.moveTargetPosition,t.howMany,t.splitPosition,0)),e.howMany&&a.push(new wl(e.splitPosition,e.howMany,e.moveTargetPosition,0)),a}return[new Yl(0)]}if(e.graveyardPosition&&(e.graveyardPosition=e.graveyardPosition._getTransformedBySplitOperation(t)),e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.abRelation)return e.howMany++,[e];if(t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.baRelation){var s=t.insertionPosition.path.slice();s.push(0);var l=new Xa(t.insertionPosition.root,s);return[e,new wl(e.insertionPosition,1,l,0)]}return e.splitPosition.hasSameParentAs(t.splitPosition)&&e.splitPosition.offset<t.splitPosition.offset&&(e.howMany-=t.howMany),e.splitPosition=e.splitPosition._getTransformedBySplitOperation(t),e.insertionPosition=Pl.getInsertionPosition(e.splitPosition),[e]}));var jf=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._stack=[],i._createdBatches=new WeakSet,i.refresh(),i.listenTo(e.data,"set",(function(){return i.clearStack()})),i}return x(n,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(e){var t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(e,t,n){var i,r=this.editor.model,o=r.document,a=[],s=e.map((function(e){return e.getTransformedByOperations(n)})),l=s.flat(),c=k(s);try{for(c.s();!(i=c.n()).done;){var u=i.value,d=u.filter((function(e){return!Bf(e,l)}));Vf(d);var h=d.find((function(e){return e.root!=o.graveyard}));h&&a.push(h)}}catch(f){c.e(f)}finally{c.f()}a.length&&r.change((function(e){e.setSelection(a,{backward:t})}))}},{key:"_undo",value:function(e,t){var n=this.editor.model,i=n.document;this._createdBatches.add(t);var r=e.operations.slice().filter((function(e){return e.isDocumentOperation}));r.reverse();var o,a=k(r);try{for(a.s();!(o=a.n()).done;){var s,l=o.value,c=l.baseVersion+1,u=Array.from(i.history.getOperations(c)),d=Mf([l.getReversed()],u,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA,h=k(d);try{for(h.s();!(s=h.n()).done;){var f=s.value;t.addOperation(f),n.applyOperation(f),i.history.setOperationAsUndone(l,f)}}catch(v){h.e(v)}finally{h.f()}}}catch(v){a.e(v)}finally{a.f()}}}]),n}(Fu);function Vf(e){e.sort((function(e,t){return e.start.isBefore(t.start)?-1:1}));for(var t=1;t<e.length;t++){var n=e[t-1].getJoined(e[t],!0);n&&(t--,e.splice(t,2,n))}}function Bf(e,t){return t.some((function(t){return t!==e&&t.containsRange(e,!0)}))}var Ff=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=t?this._stack.findIndex((function(e){return e.batch==t})):this._stack.length-1,i=this._stack.splice(n,1)[0],r=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(r,(function(){e._undo(i.batch,r);var t=e.editor.model.document.history.getOperations(i.batch.baseVersion);e._restoreSelection(i.selection.ranges,i.selection.isBackward,t),e.fire("revert",i.batch,r)})),this.refresh()}}]),n}(jf),Uf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"execute",value:function(){var e=this,t=this._stack.pop(),n=this.editor.model.createBatch("transparent");this.editor.model.enqueueChange(n,(function(){var i=t.batch.operations[t.batch.operations.length-1].baseVersion+1,r=e.editor.model.document.history.getOperations(i);e._restoreSelection(t.selection.ranges,t.selection.isBackward,r),e._undo(t.batch,n)})),this.refresh()}}]),n}(jf),Hf=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._batchRegistry=new WeakSet,i}return x(n,null,[{key:"pluginName",get:function(){return"UndoEditing"}}]),x(n,[{key:"init",value:function(){var e=this,t=this.editor;this._undoCommand=new Ff(t),this._redoCommand=new Uf(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(function(t,n){var i=n[0];if(i.isDocumentOperation){var r=i.batch,o=e._redoCommand._createdBatches.has(r),a=e._undoCommand._createdBatches.has(r);e._batchRegistry.has(r)||"transparent"==r.type&&!o&&!a||(o?e._undoCommand.addBatch(r):a||(e._undoCommand.addBatch(r),e._redoCommand.clearStack()),e._batchRegistry.add(r))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(t,n,i){e._redoCommand.addBatch(i)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}]),n}(Vu),$f='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.042 9.367l2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',Wf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M14.958 9.367l-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>',qf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?$f:Wf,r="ltr"==t.uiLanguageDirection?Wf:$f;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",r)}},{key:"_addButton",value:function(e,t,n,i){var r=this,o=this.editor;o.ui.componentFactory.add(e,(function(a){var s=o.commands.get(e),l=new _u(a);return l.set({label:t,icon:i,keystroke:n,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),r.listenTo(l,"execute",(function(){o.execute(e),o.editing.view.focus()})),l}))}}]),n}(Vu),Yf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[Hf,qf]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(Vu),Gf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){this.isEnabled=function(e){var t=e.schema,n=e.document.selection;return function(e,t,n){var i=function(e,t){var n=Id(e,t).parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,n);return t.checkChild(i,"horizontalLine")}(n,t,e)&&!function(e,t){var n=e.getSelectedElement();return n&&t.isObject(n)}(n,t)}(this.editor.model)}},{key:"execute",value:function(){var e=this.editor.model;e.change((function(t){var n=t.createElement("horizontalLine");e.insertContent(n);var i=n.nextSibling;!(i&&e.schema.checkChild(i,"$text"))&&e.schema.checkChild(n.parent,"paragraph")&&(i=t.createElement("paragraph"),e.insertContent(i,t.createPositionAfter(n))),i&&t.setSelection(i,0)}))}}]),n}(Fu);n(47);var Kf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,i=e.conversion;t.register("horizontalLine",{isObject:!0,allowWhere:"$block"}),i.for("dataDowncast").elementToElement({model:"horizontalLine",view:function(e,t){var n=t.writer;return n.createEmptyElement("hr")}}),i.for("editingDowncast").elementToElement({model:"horizontalLine",view:function(e,t){var i=t.writer,r=n("Horizontal line"),o=i.createContainerElement("div"),a=i.createEmptyElement("hr");return i.addClass("ck-horizontal-line",o),i.setCustomProperty("hr",!0,o),i.insert(i.createPositionAt(o,0),a),function(e,t,n){return t.setCustomProperty("horizontalLine",!0,e),Ed(e,t,{label:n})}(o,i,r)}}),i.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),e.commands.add("horizontalLine",new Gf(e))}}],[{key:"pluginName",get:function(){return"HorizontalLineEditing"}}]),n}(Vu),Jf=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("horizontalLine",(function(i){var r=t.commands.get("horizontalLine"),o=new _u(i);return o.set({label:n("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(r,"isEnabled"),e.listenTo(o,"execute",(function(){t.execute("horizontalLine"),t.editing.view.focus()})),o}))}}]),n}(Vu),Qf=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.attributeKey=i,r}return x(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=t.selection.getAttribute(this.attributeKey),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,r=t.value;n.change((function(t){if(i.isCollapsed)r?t.setSelectionAttribute(e.attributeKey,r):t.removeSelectionAttribute(e.attributeKey);else{var o,a=n.schema.getValidRanges(i.getRanges(),e.attributeKey),s=k(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;r?t.setAttribute(e.attributeKey,r,l):t.removeAttribute(e.attributeKey,l)}}catch(c){s.e(c)}finally{s.f()}}}))}}]),n}(Fu),Zf=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("color"),i.set("hasBorder"),i.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035L8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',i.extendTemplate({attributes:{style:{backgroundColor:r.to("color")},class:["ck","ck-color-grid__tile",r.if("hasBorder","ck-color-table__color-tile_bordered")]}}),i}return x(n,[{key:"render",value:function(){l(N(n.prototype),"render",this).call(this),this.iconView.fillColor="hsl(0, 0%, 100%)"}}]),n}(_u);n(49);var Xf=function(e){C(n,e);var t=A(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o=i&&i.colorDefinitions||[],a={};return i&&i.columns&&(a.gridTemplateColumns="repeat( ".concat(i.columns,", 1fr)")),r.set("selectedColor"),r.items=r.createCollection(),r.focusTracker=new xc,r.keystrokes=new vc,r._focusCycler=new cu({focusables:r.items,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),r.items.on("add",(function(e,t){t.isOn=t.color===r.selectedColor})),o.forEach((function(e){var t=new Zf;t.set({color:e.color,label:e.label,tooltip:!0,hasBorder:e.options.hasBorder}),t.on("execute",(function(){r.fire("execute",{value:e.color,hasBorder:e.options.hasBorder,label:e.label})})),r.items.add(t)})),r.setTemplate({tag:"div",children:r.items,attributes:{class:["ck","ck-color-grid"],style:a}}),r.on("change:selectedColor",(function(e,t,n){var i,o=k(r.items);try{for(o.s();!(i=o.n()).done;){var a=i.value;a.isOn=a.color===n}}catch(s){o.e(s)}finally{o.f()}})),r}return x(n,[{key:"focus",value:function(){this.items.length&&this.items.first.focus()}},{key:"focusLast",value:function(){this.items.length&&this.items.last.focus()}},{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this);var t,i=k(this.items);try{for(i.s();!(t=i.n()).done;){var r=t.value;this.focusTracker.add(r.element)}}catch(o){i.e(o)}finally{i.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}}]),n}(Zc),ev=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.set("isEmpty",!0),i.on("change",(function(){i.set("isEmpty",0===i.length)})),i}return x(n,[{key:"add",value:function(e,t){this.find((function(t){return t.color===e.color}))||l(N(n.prototype),"add",this).call(this,e,t)}},{key:"hasColor",value:function(e){return!!this.find((function(t){return t.color===e}))}}]),n}(Jn);Kn(ev,vr),n(51);var tv=function(e){C(n,e);var t=A(n);function n(e,i){var r,o=i.colors,a=i.columns,s=i.removeButtonLabel,l=i.documentColorsLabel,c=i.documentColorsCount;return w(this,n),r=t.call(this,e),r.items=r.createCollection(),r.colorDefinitions=o,r.focusTracker=new xc,r.keystrokes=new vc,r.set("selectedColor"),r.removeButtonLabel=s,r.columns=a,r.documentColors=new ev,r.documentColorsCount=c,r._focusCycler=new cu({focusables:r.items,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),r._documentColorsLabel=l,r.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:r.items}),r.items.add(r._removeColorButton()),r}return x(n,[{key:"updateDocumentColors",value:function(e,t){var n=e.document,i=this.documentColorsCount;this.documentColors.clear();var r,o=k(n.getRootNames());try{for(o.s();!(r=o.n()).done;){var a,s=r.value,l=n.getRoot(s),c=e.createRangeIn(l),u=k(c.getItems());try{for(u.s();!(a=u.n()).done;){var d=a.value;if(d.is("$textProxy")&&d.hasAttribute(t)&&(this._addColorToDocumentColors(d.getAttribute(t)),this.documentColors.length>=i))return}}catch(h){u.e(h)}finally{u.f()}}}catch(h){o.e(h)}finally{o.f()}}},{key:"updateSelectedColors",value:function(){var e=this.documentColorsGrid,t=this.staticColorsGrid,n=this.selectedColor;t.selectedColor=n,e&&(e.selectedColor=n)}},{key:"render",value:function(){l(N(n.prototype),"render",this).call(this);var e,t=k(this.items);try{for(t.s();!(e=t.n()).done;){var i=e.value;this.focusTracker.add(i.element)}}catch(r){t.e(r)}finally{t.f()}this.keystrokes.listenTo(this.element)}},{key:"appendGrids",value:function(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){var e=Nc.bind(this.documentColors,this.documentColors),t=new nu(this.locale);t.text=this._documentColorsLabel,t.extendTemplate({attributes:{class:["ck","ck-color-grid__label",e.if("isEmpty","ck-hidden")]}}),this.items.add(t),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"_removeColorButton",value:function(){var e=this,t=new _u;return t.set({withText:!0,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.636 9.531l-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',tooltip:!0,label:this.removeButtonLabel}),t.class="ck-color-table__remove-color",t.on("execute",(function(){e.fire("execute",{value:null})})),t}},{key:"_createStaticColorsGrid",value:function(){var e=new Xf(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return e.delegate("execute").to(this),e}},{key:"_createDocumentColorsGrid",value:function(){var e=this,t=Nc.bind(this.documentColors,this.documentColors),n=new Xf(this.locale,{columns:this.columns});return n.delegate("execute").to(this),n.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),n.items.bindTo(this.documentColors).using((function(t){var n=new Zf;return n.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&n.set({label:t.label,tooltip:!0}),n.on("execute",(function(){e.fire("execute",{value:t.color})})),n})),this.documentColors.on("change:isEmpty",(function(e,t,i){i&&(n.selectedColor=null)})),n}},{key:"_addColorToDocumentColors",value:function(e){var t=this.colorDefinitions.find((function(t){return t.color===e}));t?this.documentColors.add(Object.assign({},t)):this.documentColors.add({color:e,label:e,options:{hasBorder:!1}})}}]),n}(Zc),nv="fontSize",iv="fontColor";function rv(e){return function(t,n){var i=n.writer;return i.createAttributeElement("span",{style:"".concat(e,":").concat(t)},{priority:7})}}var ov=function(e){C(n,e);var t=A(n);function n(e){return w(this,n),t.call(this,e,iv)}return n}(Qf),av=function(e){C(n,e);var t=A(n);function n(e){var i,r;return w(this,n),i=t.call(this,e),e.config.define(iv,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),e.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:iv,value:(r="color",function(e){return e.getStyle(r).replace(/\s/g,"")})}}),e.conversion.for("downcast").attributeToElement({model:iv,view:rv("color")}),e.commands.add(iv,new ov(e)),e.model.schema.extend("$text",{allowAttributes:iv}),e.model.schema.setAttributeProperties(iv,{isFormatting:!0,copyOnEnter:!0}),i}return x(n,null,[{key:"pluginName",get:function(){return"FontColorEditing"}}]),n}(Vu);function sv(e){return"string"==typeof e?{model:e,label:e,hasBorder:!1,view:{name:"span",styles:{color:e}}}:{model:e.color,label:e.label||e.color,hasBorder:void 0!==e.hasBorder&&e.hasBorder,view:{name:"span",styles:{color:""+e.color}}}}var lv=function(e){C(n,e);var t=A(n);function n(e,i){var r,o=i.commandName,a=i.icon,s=i.componentName,l=i.dropdownLabel;return w(this,n),r=t.call(this,e),r.commandName=o,r.componentName=s,r.icon=a,r.dropdownLabel=l,r.columns=e.config.get(r.componentName+".columns"),r.colorTableView,r}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.locale,i=n.t,r=t.commands.get(this.commandName),o=function(e,t){var n=e.t,i={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return t.map((function(e){var t=i[e.label];return t&&t!=e.label&&(e.label=t),e}))}(n,t.config.get(this.componentName).colors.map(sv).filter((function(e){return!!e}))),a=t.config.get(this.componentName+".documentColors");t.ui.componentFactory.add(this.componentName,(function(n){var s=Ou(n);return e.colorTableView=function(e){var t=e.dropdownView,n=e.colors,i=e.columns,r=e.removeButtonLabel,o=e.documentColorsLabel,a=e.documentColorsCount,s=t.locale,l=new tv(s,{colors:n,columns:i,removeButtonLabel:r,documentColorsLabel:o,documentColorsCount:a});return t.colorTableView=l,t.panelView.children.add(l),l.delegate("execute").to(t,"execute"),l}({dropdownView:s,colors:o.map((function(e){return{label:e.label,color:e.model,options:{hasBorder:e.hasBorder}}})),columns:e.columns,removeButtonLabel:i("Remove color"),documentColorsLabel:0!==a?i("Document colors"):void 0,documentColorsCount:void 0===a?e.columns:a}),e.colorTableView.bind("selectedColor").to(r,"value"),s.buttonView.set({label:e.dropdownLabel,icon:e.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(r),s.on("execute",(function(n,i){t.execute(e.commandName,i),t.editing.view.focus()})),s.on("change:isOpen",(function(n,i,r){s.colorTableView.appendGrids(),r&&(0!==a&&e.colorTableView.updateDocumentColors(t.model,e.componentName),e.colorTableView.updateSelectedColors())})),s}))}}]),n}(Vu),cv=function(e){C(n,e);var t=A(n);function n(e){w(this,n);var i=e.locale.t;return t.call(this,e,{commandName:iv,componentName:iv,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3L10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:i("Font Color")})}return x(n,null,[{key:"pluginName",get:function(){return"FontColorUI"}}]),n}(lv),uv=function(e){C(n,e);var t=A(n);function n(e){return w(this,n),t.call(this,e,nv)}return n}(Qf);function dv(e){return e.map((function(e){return function(e){if(t=e,"object"==R(t)&&t.title&&t.model&&t.view)return fv(e);var t,n=function(e){return hv[e]||hv[e.model]}(e);return n?fv(n):"default"===e?{model:void 0,title:"Default"}:function(e){var t;if("object"==R(e)){if(!e.model)throw new jn.b("font-size-invalid-definition: Provided font size definition is invalid.",null,e);t=parseFloat(e.model)}else t=parseFloat(e);return isNaN(t)}(e)?void 0:function(e){return"number"!=typeof e&&"string"!=typeof e||(e={title:String(e),model:parseFloat(e)+"px"}),e.view={name:"span",styles:{"font-size":e.model}},fv(e)}(e)}(e)})).filter((function(e){return!!e}))}var hv={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}}},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}}},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}}},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}}}};function fv(e){return e.view.priority||(e.view.priority=7),e}var vv=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define(nv,{options:["tiny","small","default","big","huge"],supportAllValues:!1}),i}return x(n,null,[{key:"pluginName",get:function(){return"FontSizeEditing"}}]),x(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:nv}),e.model.schema.setAttributeProperties(nv,{isFormatting:!0,copyOnEnter:!0});var t=e.config.get("fontSize.supportAllValues"),n=dv(this.editor.config.get("fontSize.options")).filter((function(e){return e.model})),i=function(e,t){var n,i={model:{key:e,values:[]},view:{},upcastAlso:{}},r=k(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;i.model.values.push(o.model),i.view[o.model]=o.view,o.upcastAlso&&(i.upcastAlso[o.model]=o.upcastAlso)}}catch(a){r.e(a)}finally{r.f()}return i}(nv,n);t?this._prepareAnyValueConverters(i):e.conversion.attributeToElement(i),e.commands.add(nv,new uv(e))}},{key:"_prepareAnyValueConverters",value:function(e){var t=this.editor,n=e.model.values.filter((function(e){return!String(e).match(/[\d.]+[\w%]+/)}));if(n.length)throw new jn.b("font-size-invalid-use-of-named-presets: If config.fontSize.supportAllValues is set to true, you need to use numerical values as font size options.",null,{presets:n});t.conversion.for("downcast").attributeToElement({model:nv,view:function(e,t){var n=t.writer;if(e)return n.createAttributeElement("span",{style:"font-size:"+e},{priority:7})}}),t.conversion.for("upcast").attributeToAttribute({model:{key:nv,value:function(e){return e.getStyle("font-size")}},view:{name:"span"}})}}]),n}(Vu),pv=function e(t,n){w(this,e),n&&cr(this,n),t&&this.set(t)};Kn(pv,vr),n(53);var mv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,i=this._getLocalizedOptions(),r=t.commands.get(nv);t.ui.componentFactory.add(nv,(function(o){var a=Ou(o);return Iu(a,function(e,t){var n,i=new Jn,r=k(e);try{var o=function(){var e=n.value,r={type:"button",model:new pv({commandName:nv,commandParam:e.model,label:e.title,class:"ck-fontsize-option",withText:!0})};e.view&&e.view.styles&&r.model.set("labelStyle","font-size:"+e.view.styles["font-size"]),e.view&&e.view.classes&&r.model.set("class","".concat(r.model.class," ").concat(e.view.classes)),r.model.bind("isOn").to(t,"value",(function(t){return t===e.model})),i.add(r)};for(r.s();!(n=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}return i}(i,r)),a.buttonView.set({label:n("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5L7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279l.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),a.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),a.bind("isEnabled").to(r),e.listenTo(a,"execute",(function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var e=this.editor,t=e.t,n={Default:t("Default"),Tiny:t("Tiny"),Small:t("Small"),Big:t("Big"),Huge:t("Huge")};return dv(e.config.get(nv).options).map((function(e){var t=n[e.title];return t&&t!=e.title&&(e=Object.assign({},e,{title:t})),e}))}}]),n}(Vu),gv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this.editor.model,t=Hu(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&kv(t,e.schema)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document;t.change((function(i){var r,o=(e.selection||n.selection).getSelectedBlocks(),a=k(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;!s.is("element","paragraph")&&kv(s,t.schema)&&i.rename(s,"paragraph")}}catch(l){a.e(l)}finally{a.f()}}))}}]),n}(Fu);function kv(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}var bv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"execute",value:function(e){var t=this.editor.model,n=e.position;t.change((function(e){var i=e.createElement("paragraph");if(!t.schema.checkChild(n.parent,i)){var r=t.schema.findAllowedParent(n,i);if(!r)return;n=e.split(n,r).position}t.insertContent(i,n),e.setSelection(i,"in")}))}}]),n}(Fu),yv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.model;e.commands.add("paragraph",new gv(e)),e.commands.add("insertParagraph",new bv(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:function(e,t){var i=t.writer;return n.paragraphLikeElements.has(e.name)?e.isEmpty?null:i.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(Vu);yv.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var wv=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.modelElements=i,r}return x(n,[{key:"refresh",value:function(){var e=this,t=Hu(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((function(n){return _v(t,n,e.editor.model.schema)}))}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document,i=e.value;t.change((function(e){var r,o=Array.from(n.selection.getSelectedBlocks()).filter((function(e){return _v(e,i,t.schema)})),a=k(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;s.is("element",i)||e.rename(s,i)}}catch(l){a.e(l)}finally{a.f()}}))}}]),n}(Fu);function _v(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var xv="paragraph",Cv=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]}),i}return x(n,null,[{key:"pluginName",get:function(){return"HeadingEditing"}}]),x(n,[{key:"init",value:function(){var e,t=this.editor,n=t.config.get("heading.options"),i=[],r=k(n);try{for(r.s();!(e=r.n()).done;){var o=e.value;o.model!==xv&&(t.model.schema.register(o.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(o),i.push(o.model))}}catch(a){r.e(a)}finally{r.f()}this._addDefaultH1Conversion(t),t.commands.add("heading",new wv(t,i))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(function(t,i){var r=e.model.document.selection.getFirstPosition().parent;n.some((function(e){return r.is("element",e.model)}))&&!r.is("element",xv)&&0===r.childCount&&i.writer.rename(r,xv)}))}},{key:"_addDefaultH1Conversion",value:function(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:zn.get("low")+1})}}],[{key:"requires",get:function(){return[yv]}}]),n}(Vu);n(11);var Av=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,i=function(e){var t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((function(e){var t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(t),r=n("Choose heading"),o=n("Heading");t.ui.componentFactory.add("heading",(function(n){var a,s={},l=new Jn,c=t.commands.get("heading"),u=t.commands.get("paragraph"),d=[c],h=k(i);try{var f=function(){var e=a.value,t={type:"button",model:new pv({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(u,"value"),t.model.set("commandName","paragraph"),d.push(u)):(t.model.bind("isOn").to(c,"value",(function(t){return t===e.model})),t.model.set({commandName:"heading",commandValue:e.model})),l.add(t),s[e.model]=e.title};for(h.s();!(a=h.n()).done;)f()}catch(p){h.e(p)}finally{h.f()}var v=Ou(n);return Iu(v,l),v.buttonView.set({isOn:!1,withText:!0,tooltip:o}),v.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),v.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),v.buttonView.bind("label").to(c,"value",u,"value",(function(e,t){var n=e||t&&"paragraph";return s[n]?s[n]:r})),e.listenTo(v,"execute",(function(e){t.execute(e.source.commandName,e.source.commandValue?{value:e.source.commandValue}:void 0),t.editing.view.focus()})),v}))}}]),n}(Vu);n(56);var Tv=["before","after"],Pv=(new DOMParser).parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><polyline points="8.05541992 0.263427734 8.05541992 4.23461914 1.28417969 4.23461914" transform="translate(1,0)"></polyline><line x1="0" y1="4.21581031" x2="2" y2="2.17810059" transform="translate(1, 0)"></line><line x1="0" y1="6.21581031" x2="2" y2="4.17810059" transform="translate(2, 5.196955) scale(1, -1) translate(-1, -5.196955)"></line></svg>\n',"image/svg+xml").firstChild,Ev="ck-widget__type-around_disabled",Sv=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._currentFakeCaretModelElement=null,i}return x(n,null,[{key:"pluginName",get:function(){return"WidgetTypeAround"}}]),x(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view;this.on("change:isEnabled",(function(n,i,r){t.change((function(e){var n,i=k(t.document.roots);try{for(i.s();!(n=i.n()).done;){var o=n.value;r?e.removeClass(Ev,o):e.addClass(Ev,o)}}catch(a){i.e(a)}finally{i.f()}})),r||e.model.change((function(e){e.removeSelectionAttribute(xd)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(e,t){var n=this.editor,i=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(e,t)}),i.focus(),i.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(e,t,n,i){var r=this;this.listenTo(e,t,(function(){r.isEnabled&&n.apply(void 0,arguments)}),i)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var e=this.editor.model.document.selection,t=Ad(e);if(!t)return!1;var n=e.getSelectedElement();return this._insertParagraph(n,t),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var e=this.editor,t=e.model.schema,n=e.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(function(e,n,r){var o=r.mapper.toViewElement(n.item);Cd(o,n.item,t)&&function(e,t,n){var i=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){var n=this.toDomElement(e);return function(e,t){var n,i=k(Tv);try{for(i.s();!(n=i.n()).done;){var r=n.value,o=new Nc({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_"+r],title:t[r]},children:[e.ownerDocument.importNode(Pv,!0)]});e.appendChild(o.render())}}catch(a){i.e(a)}finally{i.f()}}(n,t),function(e){var t=new Nc({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),i)}(r.writer,i,o)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var e=this,t=this.editor,n=t.model,i=n.document.selection,r=n.schema,o=t.editing.view;function a(e){return"ck-widget_type-around_show-fake-caret_"+e}this._listenToIfEnabled(o.document,"keydown",(function(t,n){$r(n.keyCode)&&e._handleArrowKeyPress(t,n)}),{priority:zn.get("high")+10}),this._listenToIfEnabled(i,"change:range",(function(e,n){n.directChange&&t.model.change((function(e){e.removeSelectionAttribute(xd)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var e=i.getSelectedElement();e&&Cd(t.editing.mapper.toViewElement(e),e,r)||t.model.change((function(e){e.removeSelectionAttribute(xd)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(function(t,n,i){var o=i.writer;if(e._currentFakeCaretModelElement){var s=i.mapper.toViewElement(e._currentFakeCaretModelElement);s&&(o.removeClass(Tv.map(a),s),e._currentFakeCaretModelElement=null)}var l=n.selection.getSelectedElement();if(l){var c=i.mapper.toViewElement(l);if(Cd(c,l,r)){var u=Ad(n.selection);u&&(o.addClass(a(u),c),e._currentFakeCaretModelElement=l)}}})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(function(e,n,i){i||t.model.change((function(e){e.removeSelectionAttribute(xd)}))}))}},{key:"_handleArrowKeyPress",value:function(e,t){var n,i=this.editor,r=i.model,o=r.document.selection,a=r.schema,s=i.editing.view,l=qr(t.keyCode,i.locale.contentLanguageDirection),c=s.document.selection.getSelectedElement();Cd(c,i.editing.mapper.toModelElement(c),a)?n=this._handleArrowKeyPressOnSelectedWidget(l):o.isCollapsed&&(n=this._handleArrowKeyPressWhenSelectionNextToAWidget(l)),n&&(t.preventDefault(),e.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(e){var t=this.editor.model,n=Ad(t.document.selection);return t.change((function(t){return n?n!==(e?"after":"before")&&(t.removeSelectionAttribute(xd),!0):(t.setSelectionAttribute(xd,e?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(e){var t=this.editor,n=t.model,i=n.schema,r=t.plugins.get("Widget"),o=r._getObjectElementNextToSelection(e);return!!Cd(t.editing.mapper.toViewElement(o),o,i)&&(n.change((function(t){r._setSelectionOverElement(o),t.setSelectionAttribute(xd,e?"before":"after")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(i,r){var o=r.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(e,t){var n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,n.domConverter),l=t.editing.mapper.toModelElement(s);e._insertParagraph(l,a),r.preventDefault(),i.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",(function(i,r){var o,a=n.document.selection.getSelectedElement(),s=t.editing.mapper.toModelElement(a),l=t.model.schema;e._insertParagraphAccordingToFakeCaretPosition()?o=!0:Cd(a,s,l)&&(e._insertParagraph(s,r.isSoft?"before":"after"),o=!0),o&&(r.preventDefault(),i.stop())}))}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var e=this,t=this.editor.editing.view,n=[Br.enter,Br.delete,Br.backspace];this._listenToIfEnabled(t.document,"keydown",(function(t,i){n.includes(i.keyCode)||ih(i)||e._insertParagraphAccordingToFakeCaretPosition()}),{priority:zn.get("high")+1})}},{key:"_enableDeleteIntegration",value:function(){var e=this.editor,t=e.editing.view,n=e.model,i=n.schema;this._listenToIfEnabled(t.document,"delete",(function(t,r){var o=Ad(n.document.selection);if(o){var a=r.direction,s=n.document.selection.getSelectedElement(),l="forward"==a;if("before"===o===l)e.execute("delete",{selection:n.createSelection(s,"on")});else{var c=i.getNearestSelectionRange(n.createPositionAt(s,o),a);if(c)if(c.isCollapsed){var u=n.createSelection(c.start);if(n.modifySelection(u,{direction:a}),u.focus.isEqual(c.start)){var d=function(e,t){var n,i=t,r=k(t.getAncestors({parentFirst:!0}));try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.childCount>1||e.isLimit(o))break;i=o}}catch(a){r.e(a)}finally{r.f()}return i}(i,c.start.parent);n.deleteContent(n.createSelection(d,"on"),{doNotAutoparagraph:!0})}else n.change((function(t){t.setSelection(c),e.execute(l?"forwardDelete":"delete")}))}else n.change((function(t){t.setSelection(c),e.execute(l?"forwardDelete":"delete")}))}r.preventDefault(),t.stop()}}),{priority:zn.get("high")+1})}},{key:"_enableInsertContentIntegration",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(function(e,i){var r=v(i,2),o=r[0],a=r[1];if(!a||a.is("documentSelection")){var s=Ad(n);return s?(e.stop(),t.change((function(e){var i=n.getSelectedElement(),r=t.createPositionAt(i,s),a=e.createSelection(r),l=t.insertContent(o,a);return e.setSelection(a),l}))):void 0}}),{priority:"high"})}}]),n}(Vu);function Ov(e){var t=e.model;return function(n,i){var r=i.keyCode==Br.arrowup,o=i.keyCode==Br.arrowdown,a=i.shiftKey,s=t.document.selection;if(r||o){var l=o;if(!a||!function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,l)){var c=function(e,t,n){var i=e.model;if(n){var r=t.isCollapsed?t.focus:t.getLastPosition(),o=Mv(i,r,"forward");if(!o)return null;var a=i.createRange(r,o),s=Iv(i.schema,a,"backward");return s&&r.isBefore(s)?i.createRange(r,s):null}var l=t.isCollapsed?t.focus:t.getFirstPosition(),c=Mv(i,l,"backward");if(!c)return null;var u=i.createRange(c,l),d=Iv(i.schema,u,"forward");return d&&l.isAfter(d)?i.createRange(d,l):null}(e,s,l);c&&!c.isCollapsed&&function(e,t,n){var i=e.model,r=e.view.domConverter;if(n){var o=i.createSelection(t.start);i.modifySelection(o),o.focus.isAtEnd||t.start.isEqual(o.focus)||(t=i.createRange(o.focus,t.end))}var a,s,l=e.mapper.toViewRange(t),c=r.viewRangeToDom(l),u=Ia.getDomRangeRects(c),d=k(u);try{for(d.s();!(s=d.n()).done;){var h=s.value;if(void 0!==a){if(Math.round(h.top)>=a)return!1;a=Math.max(a,Math.round(h.bottom))}else a=Math.round(h.bottom)}}catch(f){d.e(f)}finally{d.f()}return!0}(e,c,l)&&(t.change((function(e){var n=l?c.end:c.start;if(a){var i=t.createSelection(s.anchor);i.setFocus(n),e.setSelection(i)}else e.setSelection(n)})),n.stop(),i.preventDefault(),i.stopPropagation())}}}}function Mv(e,t,n){var i,r=e.schema,o=e.createRangeIn(t.root),a="forward"==n?"elementStart":"elementEnd",s=k(o.getWalker({startPosition:t,direction:n}));try{for(s.s();!(i=s.n()).done;){var l=i.value,c=l.previousPosition,u=l.item,d=l.type;if(r.isLimit(u)&&!r.isInline(u))return c;if(d==a&&r.isBlock(u))return null}}catch(h){s.e(h)}finally{s.f()}return null}function Iv(e,t,n){var i="backward"==n?t.end:t.start;if(e.checkChild(i,"$text"))return i;var r,o=k(t.getWalker({direction:n}));try{for(o.s();!(r=o.n()).done;){var a=r.value.nextPosition;if(e.checkChild(a,"$text"))return a}}catch(s){o.e(s)}finally{o.f()}}n(58);var Nv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view,n=t.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,i){e._clearPreviouslySelectedWidgets(i.writer);var r,o=i.writer,a=o.document.selection,s=a.getSelectedElement(),l=null,c=k(a.getRanges());try{for(c.s();!(r=c.n()).done;){var u,d=r.value,h=k(d);try{for(h.s();!(u=h.n()).done;){var f=u.value,v=f.item;Pd(v)&&!Rv(v,l)&&(o.addClass(Td,v),e._previouslySelected.add(v),l=v,v==s&&o.setSelection(a.getRanges(),{fake:!0,label:Od(s)}))}}catch(p){h.e(p)}finally{h.f()}}}catch(p){c.e(p)}finally{c.f()}}),{priority:"low"}),t.addObserver(Wd),this.listenTo(n,"mousedown",(function(){return e._onMousedown.apply(e,arguments)})),this.listenTo(n,"keydown",(function(){e._handleSelectionChangeOnArrowKeyPress.apply(e,arguments)}),{priority:"high"}),this.listenTo(n,"keydown",(function(){e._preventDefaultOnArrowKeyPress.apply(e,arguments)}),{priority:zn.get("high")-20}),this.listenTo(n,"keydown",Ov(this.editor.editing)),this.listenTo(n,"delete",(function(t,n){e._handleDelete("forward"==n.direction)&&(n.preventDefault(),t.stop())}),{priority:"high"})}},{key:"_onMousedown",value:function(e,t){var n=this.editor,i=n.editing.view,r=i.document,o=t.target;if(function(e){for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Pd(e))return!1;e=e.parent}return!1}(o)){if((zr.isSafari||zr.isGecko)&&t.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(e){return!e.is("attributeElement")})):o,l=a.toModelElement(s);t.preventDefault(),this.editor.model.change((function(e){e.setSelection(l,"in")}))}}else if(Pd(o)||(o=o.findAncestor(Pd),o)){t.preventDefault(),r.isFocused||i.focus();var c=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(c)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(e,t){var n=t.keyCode;if($r(n)){var i=this.editor.model,r=i.schema,o=i.document.selection,a=o.getSelectedElement(),s=qr(n,this.editor.locale.contentLanguageDirection);if(a&&r.isObject(a)){var l=s?o.getLastPosition():o.getFirstPosition(),c=r.getNearestSelectionRange(l,s?"forward":"backward");c&&(i.change((function(e){e.setSelection(c)})),t.preventDefault(),e.stop())}else if(o.isCollapsed){var u=this._getObjectElementNextToSelection(s);u&&r.isObject(u)&&(this._setSelectionOverElement(u),t.preventDefault(),e.stop())}}}},{key:"_preventDefaultOnArrowKeyPress",value:function(e,t){if($r(t.keyCode)){var n=this.editor.model,i=n.schema,r=n.document.selection.getSelectedElement();r&&i.isObject(r)&&(t.preventDefault(),e.stop())}}},{key:"_handleDelete",value:function(e){var t=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var i=this._getObjectElementNextToSelection(e);return i?(this.editor.model.change((function(e){for(var r=n.anchor.parent;r.isEmpty;){var o=r;r=o.parent,e.remove(o)}t._setSelectionOverElement(i)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(e){this.editor.model.change((function(t){t.setSelection(t.createRangeOn(e))}))}},{key:"_getObjectElementNextToSelection",value:function(e){var t=this.editor.model,n=t.schema,i=t.document.selection,r=t.createSelection(i);t.modifySelection(r,{direction:e?"forward":"backward"});var o=e?r.focus.nodeBefore:r.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(e){var t,n=k(this._previouslySelected);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.removeClass(Td,i)}}catch(r){n.e(r)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[Sv]}}]),n}(Vu);function Rv(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var Dv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=zd(e),zd(e)&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();t.change((function(t){t.setAttribute("alt",e.newValue,n)}))}}]),n}(Fu),Lv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new Dv(this.editor))}}],[{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(Vu);n(60);var zv=function(e){C(n,e);var t=A(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o="ck-labeled-field-view-"+Ln(),a="ck-labeled-field-view-status-"+Ln();r.fieldView=i(P(r),o,a),r.set("label"),r.set("isEnabled",!0),r.set("errorText",null),r.set("infoText",null),r.set("class"),r.labelView=r._createLabelView(o),r.statusView=r._createStatusView(a),r.bind("_statusText").to(P(r),"errorText",P(r),"infoText",(function(e,t){return e||t}));var s=r.bindTemplate;return r.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",s.to("class"),s.if("isEnabled","ck-disabled",(function(e){return!e}))]},children:[r.labelView,r.fieldView,r.statusView]}),r}return x(n,[{key:"_createLabelView",value:function(e){var t=new nu(this.locale);return t.for=e,t.bind("text").to(this,"label"),t}},{key:"_createStatusView",value:function(e){var t=new Zc(this.locale),n=this.bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",(function(e){return!e}))],id:e,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),t}},{key:"focus",value:function(){this.fieldView.focus()}}]),n}(Zc);n(62);var jv=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e),i.set("value"),i.set("id"),i.set("placeholder"),i.set("isReadOnly",!1),i.set("hasError",!1),i.set("ariaDescribedById");var r=i.bindTemplate;return i.setTemplate({tag:"input",attributes:{type:"text",class:["ck","ck-input","ck-input-text",r.if("hasError","ck-error")],id:r.to("id"),placeholder:r.to("placeholder"),readonly:r.to("isReadOnly"),"aria-invalid":r.if("hasError",!0),"aria-describedby":r.to("ariaDescribedById")},on:{input:r.to("input")}}),i}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this);var t=function(t){e.element.value=t||0===t?t:""};t(this.value),this.on("change:value",(function(e,n,i){t(i)}))}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}}]),n}(Zc);function Vv(e,t,n){var i=new jv(e.locale);return i.set({id:t,ariaDescribedById:n}),i.bind("isReadOnly").to(e,"isEnabled",(function(e){return!e})),i.bind("hasError").to(e,"errorText",(function(e){return!!e})),i.on("input",(function(){e.errorText=null})),i}function Bv(e){var t=e.view;t.listenTo(t.element,"submit",(function(e,n){n.preventDefault(),t.fire("submit")}),{useCapture:!0})}var Fv='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',Uv='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.591 10.177l4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>';n(64);var Hv=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.locale.t;return i.focusTracker=new xc,i.keystrokes=new vc,i.labeledInput=i._createLabeledInputView(),i.saveButtonView=i._createButton(r("Save"),Fv,"ck-button-save"),i.saveButtonView.type="submit",i.cancelButtonView=i._createButton(r("Cancel"),Uv,"ck-button-cancel","cancel"),i._focusables=new Ic,i._focusCycler=new cu({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form"],tabindex:"-1"},children:[i.labeledInput,i.saveButtonView,i.cancelButtonView]}),i}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),Bv({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)}))}},{key:"_createButton",value:function(e,t,n,i){var r=new _u(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}},{key:"_createLabeledInputView",value:function(){var e=this.locale.t,t=new zv(this.locale,Vv);return t.label=e("Text alternative"),t.fieldView.placeholder=e("Text alternative"),t}}]),n}(Zc);n(66),n(68);var $v=au("px"),Wv=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.positionLimiter=function(){var e=i.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},i.set("visibleView",null),i.view=new kd(e.locale),e.ui.view.body.add(i.view),e.ui.focusTracker.add(i.view.element),i._viewToStack=new Map,i._idToStack=new Map,i.set("_numberOfStacks",0),i.set("_singleViewMode",!1),i._rotatorView=i._createRotatorView(),i._fakePanelsView=i._createFakePanelsView(),i}return x(n,null,[{key:"pluginName",get:function(){return"ContextualBalloon"}}]),x(n,[{key:"hasView",value:function(e){return Array.from(this._viewToStack.keys()).includes(e)}},{key:"add",value:function(e){if(this.hasView(e.view))throw new jn.b("contextualballoon-add-view-exist: Cannot add configuration of the same view twice.",[this,e]);var t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));var n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}},{key:"remove",value:function(e){if(!this.hasView(e))throw new jn.b("contextualballoon-remove-view-not-exist: Cannot remove the configuration of a non-existent view.",[this,e]);var t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}},{key:"updatePosition",value:function(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(e){this.visibleStack=e;var t=this._idToStack.get(e);if(!t)throw new jn.b("contextualballoon-showstack-stack-not-exist: Cannot show a stack that does not exist.",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}},{key:"_getStackId",value:function(e){return Array.from(this._idToStack.entries()).find((function(t){return t[1]===e}))[0]}},{key:"_showNextStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}},{key:"_showPrevStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}},{key:"_createRotatorView",value:function(){var e=this,t=new qv(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>1})),t.on("change:isNavigationVisible",(function(){return e.updatePosition()}),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(t,i){if(i<2)return"";var r=Array.from(e._idToStack.values()).indexOf(e._visibleStack)+1;return n("%0 of %1",[r,i])})),t.buttonNextView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showNextStack()})),t.buttonPrevView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showPrevStack()})),t}},{key:"_createFakePanelsView",value:function(){var e=new Yv(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>=2?Math.min(e-1,2):0})),e.listenTo(this.view,"change:top",(function(){return e.updatePosition()})),e.listenTo(this.view,"change:left",(function(){return e.updatePosition()})),this.editor.ui.view.body.add(e),e}},{key:"_showView",value:function(e){var t=e.view,n=e.balloonClassName,i=void 0===n?"":n,r=e.withArrow,o=void 0===r||r,a=e.singleViewMode,s=void 0!==a&&a;this.view.class=i,this.view.withArrow=o,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var e=Array.from(this._visibleStack.values()).pop().position;return e&&!e.limiter&&(e=Object.assign({},e,{limiter:this.positionLimiter})),e}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}}]),n}(Vu),qv=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=e.t,o=i.bindTemplate;return i.set("isNavigationVisible",!0),i.focusTracker=new xc,i.buttonPrevView=i._createButtonView(r("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),i.buttonNextView=i._createButtonView(r("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),i.content=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(e){return e?"":"ck-hidden"}))]},children:[i.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},i.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:i.content}]}),i}return x(n,[{key:"render",value:function(){l(N(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"showView",value:function(e){this.hideView(),this.content.add(e)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(e,t){var n=new _u(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}]),n}(Zc),Yv=function(e){C(n,e);var t=A(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o=r.bindTemplate;return r.set("top",0),r.set("left",0),r.set("height",0),r.set("width",0),r.set("numberOfPanels",0),r.content=r.createCollection(),r._balloonPanelView=i,r.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(e){return e?"":"ck-hidden"}))],style:{top:o.to("top",$v),left:o.to("left",$v),width:o.to("width",$v),height:o.to("height",$v)}},children:r.content}),r.on("change:numberOfPanels",(function(e,t,n,i){n>i?r._addPanels(n-i):r._removePanels(i-n),r.updatePosition()})),r}return x(n,[{key:"_addPanels",value:function(e){for(;e--;){var t=new Zc;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}},{key:"_removePanels",value:function(e){for(;e--;){var t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var e=this._balloonPanelView,t=e.top,n=e.left,i=new Ia(this._balloonPanelView.element),r=i.width,o=i.height;Object.assign(this,{top:t,left:n,width:r,height:o})}}}]),n}(Zc);function Gv(e){var t=e.editing.view,n=kd.defaultPositions;return{target:t.domConverter.viewToDom(t.document.selection.getSelectedElement()),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast]}}var Kv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){l(N(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("imageTextAlternative",(function(i){var r=t.commands.get("imageTextAlternative"),o=new _u(i);return o.set({label:n("Change image text alternative"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22L2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21l-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',tooltip:!0}),o.bind("isEnabled").to(r,"isEnabled"),e.listenTo(o,"execute",(function(){e._showForm()})),o}))}},{key:"_createForm",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Hv(t.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){t.execute("imageTextAlternative",{newValue:e._form.labeledInput.fieldView.element.value}),e._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){e._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(t,n){e._hideForm(!0),n()})),this.listenTo(t.ui,"update",(function(){Ld(n.selection)?e._isVisible&&function(e){var t=e.plugins.get("ContextualBalloon");if(Ld(e.editing.view.document.selection)){var n=Gv(e);t.updatePosition(n)}}(t):e._hideForm(!0)})),Su({emitter:this._form,activator:function(){return e._isVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._isInBalloon||this._balloon.add({view:this._form,position:Gv(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select()}}},{key:"_hideForm",value:function(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[Wv]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),n}(Vu),Jv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[Lv,Kv]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(Vu);n(70);var Qv=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[Hd,Nv,Jv]}},{key:"pluginName",get:function(){return"Image"}}]),n}(Vu);function Zv(e){var t,n=k(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i&&i.is("element","caption"))return i}}catch(r){n.e(r)}finally{n.f()}return null}function Xv(e){var t=e.parent;return"figcaption"==e.name&&t&&"figure"==t.name&&t.hasClass("image")?{name:!0}:null}var ep=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,i=t.model.schema,r=t.data,o=t.editing,a=t.t;i.register("caption",{allowIn:"image",allowContentOf:"$block",isLimit:!0}),t.model.document.registerPostFixer((function(t){return e._insertMissingModelCaptionElement(t)})),t.conversion.for("upcast").elementToElement({view:Xv,model:"caption"}),r.downcastDispatcher.on("insert:caption",tp((function(e){return e.createContainerElement("figcaption")}),!1));var s=function(e,t){return function(n){var i=n.createEditableElement("figcaption");return n.setCustomProperty("imageCaption",!0,i),Tc({view:e,element:i,text:t}),Md(i,n)}}(n,a("Enter image caption"));o.downcastDispatcher.on("insert:caption",tp(s)),o.downcastDispatcher.on("insert",this._fixCaptionVisibility((function(e){return e.item})),{priority:"high"}),o.downcastDispatcher.on("remove",this._fixCaptionVisibility((function(e){return e.position.parent})),{priority:"high"}),n.document.registerPostFixer((function(t){return e._updateCaptionVisibility(t)}))}},{key:"_updateCaptionVisibility",value:function(e){var t,n=this.editor.editing.mapper,i=this._lastSelectedCaption,r=this.editor.model.document.selection,o=r.getSelectedElement();if(o&&o.is("element","image")){var a=Zv(o);t=n.toViewElement(a)}var s=np(r.getFirstPosition().parent);if(s&&(t=n.toViewElement(s)),t)return i?(i===t||(ip(i,e),this._lastSelectedCaption=t),rp(t,e)):(this._lastSelectedCaption=t,rp(t,e));if(i){var l=ip(i,e);return this._lastSelectedCaption=null,l}return!1}},{key:"_fixCaptionVisibility",value:function(e){var t=this;return function(n,i,r){var o=np(e(i)),a=t.editor.editing.mapper,s=r.writer;if(o){var l=a.toViewElement(o);l&&(o.childCount?s.removeClass("ck-hidden",l):s.addClass("ck-hidden",l))}}}},{key:"_insertMissingModelCaptionElement",value:function(e){var t,n=this.editor.model,i=n.document.differ.getChanges(),r=[],o=k(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;if("insert"==a.type&&"$text"!=a.name){var s=a.position.nodeAfter;if(s.is("element","image")&&!Zv(s)&&r.push(s),!s.is("element","image")&&s.childCount){var l,c=k(n.createRangeIn(s).getItems());try{for(c.s();!(l=c.n()).done;){var u=l.value;u.is("element","image")&&!Zv(u)&&r.push(u)}}catch(v){c.e(v)}finally{c.f()}}}}}catch(v){o.e(v)}finally{o.f()}for(var d=0,h=r;d<h.length;d++){var f=h[d];e.appendElement("caption",f)}return!!r.length}}],[{key:"pluginName",get:function(){return"ImageCaptionEditing"}}]),n}(Vu);function tp(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return function(n,i,r){var o=i.item;if((o.childCount||t)&&zd(o.parent)){if(!r.consumable.consume(i.item,"insert"))return;var a=r.mapper.toViewElement(i.range.start.parent),s=e(r.writer),l=r.writer;o.childCount||l.addClass("ck-hidden",s),function(e,t,n,i){var r=i.writer.createPositionAt(n,"end");i.writer.insert(r,e),i.mapper.bindElements(t,e)}(s,i.item,a,r)}}}function np(e){var t=e.getAncestors({includeSelf:!0}).find((function(e){return"caption"==e.name}));return t&&t.parent&&"image"==t.parent.name?t:null}function ip(e,t){return!e.childCount&&!e.hasClass("ck-hidden")&&(t.addClass("ck-hidden",e),!0)}function rp(e,t){return!!e.hasClass("ck-hidden")&&(t.removeClass("ck-hidden",e),!0)}n(72);var op=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=zd(e),e&&e.hasAttribute("width")?this.value={width:e.getAttribute("width"),height:null}:this.value=null}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection.getSelectedElement();this.value={width:e.width,height:null},n&&t.change((function(t){t.setAttribute("width",e.width,n)}))}}]),n}(Fu),ap=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"imageResize:original",value:null,icon:"original"},{name:"imageResize:25",value:"25",icon:"small"},{name:"imageResize:50",value:"50",icon:"medium"},{name:"imageResize:75",value:"75",icon:"large"}]}),i}return x(n,null,[{key:"pluginName",get:function(){return"ImageResizeEditing"}}]),x(n,[{key:"init",value:function(){var e=this.editor,t=new op(e);this._registerSchema(),this._registerConverters(),e.commands.add("imageResize",t)}},{key:"_registerSchema",value:function(){this.editor.model.schema.extend("image",{allowAttributes:"width"}),this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0})}},{key:"_registerConverters",value:function(){var e=this.editor;e.conversion.for("downcast").add((function(e){return e.on("attribute:width:image",(function(e,t,n){if(n.consumable.consume(t.item,e.name)){var i=n.writer,r=n.mapper.toViewElement(t.item);null!==t.attributeNewValue?(i.setStyle("width",t.attributeNewValue,r),i.addClass("image_resized",r)):(i.removeStyle("width",r),i.removeClass("image_resized",r))}}))})),e.conversion.for("upcast").attributeToAttribute({view:{name:"figure",styles:{width:/.+/}},model:{key:"width",value:function(e){return e.getStyle("width")}}})}}]),n}(Vu),sp='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',lp={small:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',medium:sp,large:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',original:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>'},cp=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._resizeUnit=e.config.get("image.resizeUnit"),i}return x(n,null,[{key:"requires",get:function(){return[ap]}},{key:"pluginName",get:function(){return"ImageResizeButtons"}}]),x(n,[{key:"init",value:function(){var e=this.editor,t=e.config.get("image.resizeOptions"),n=e.commands.get("imageResize");this.bind("isEnabled").to(n);var i,r=k(t);try{for(r.s();!(i=r.n()).done;){var o=i.value;this._registerImageResizeButton(o)}}catch(a){r.e(a)}finally{r.f()}this._registerImageResizeDropdown(t)}},{key:"_registerImageResizeButton",value:function(e){var t=this,n=this.editor,i=e.name,r=e.value,o=e.icon,a=r?r+this._resizeUnit:null;n.ui.componentFactory.add(i,(function(r){var s=new _u(r),l=n.commands.get("imageResize"),c=t._getOptionLabelValue(e,!0);if(!lp[o])throw new jn.b('imageresizebuttons-missing-icon: The resize option "'+i+'" misses the "icon" property or the property value doesn\'t match any of the available icons.',n,e);return s.set({label:c,icon:lp[o],tooltip:c,isToggleable:!0}),s.bind("isEnabled").to(t),s.bind("isOn").to(l,"value",up(a)),t.listenTo(s,"execute",(function(){n.execute("imageResize",{width:a})})),s}))}},{key:"_registerImageResizeDropdown",value:function(e){var t=this,n=this.editor,i=n.t,r=e.find((function(e){return!e.value}));n.ui.componentFactory.add("imageResize",(function(o){var a=n.commands.get("imageResize"),s=Ou(o,Cu),l=s.buttonView;return l.set({tooltip:i("Resize image"),commandValue:r.value,icon:sp,isToggleable:!0,label:t._getOptionLabelValue(r),withText:!0,class:"ck-resize-image-button"}),l.bind("label").to(a,"value",(function(e){return e&&e.width?e.width:t._getOptionLabelValue(r)})),s.bind("isOn").to(a),s.bind("isEnabled").to(t),Iu(s,t._getResizeDropdownListItemDefinitions(e,a)),s.listView.ariaLabel=i("Image resize list"),t.listenTo(s,"execute",(function(e){n.execute(e.source.commandName,{width:e.source.commandValue}),n.editing.view.focus()})),s}))}},{key:"_getOptionLabelValue",value:function(e,t){var n=this.editor.t;return e.label?e.label:t?e.value?n("Resize image to %0",e.value+this._resizeUnit):n("Resize image to the original size"):e.value?e.value+this._resizeUnit:n("Original")}},{key:"_getResizeDropdownListItemDefinitions",value:function(e,t){var n=this,i=new Jn;return e.map((function(e){var r=e.value?e.value+n._resizeUnit:null,o={type:"button",model:new pv({commandName:"imageResize",commandValue:r,label:n._getOptionLabelValue(e),withText:!0,icon:null})};o.model.bind("isOn").to(t,"value",up(r)),i.add(o)})),i}}]),n}(Vu);function up(e){return function(t){return null===e&&t===e||t&&t.width===e}}var dp=function(){function e(t){w(this,e),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=t,this._referenceCoordinates=null}return x(e,[{key:"begin",value:function(e,t,n){var i=new Ia(t);this.activeHandlePosition=function(e){for(var t=["top-left","top-right","bottom-right","bottom-left"],n=0,i=t;n<i.length;n++){var r=i[n];if(e.classList.contains(hp(r)))return r}}(e),this._referenceCoordinates=function(e,t){var n=new Ia(e),i=t.split("-"),r={x:"right"==i[1]?n.right:n.left,y:"bottom"==i[0]?n.bottom:n.top};return r.x+=e.ownerDocument.defaultView.scrollX,r.y+=e.ownerDocument.defaultView.scrollY,r}(t,function(e){var t=e.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[t[0]],"-").concat(n[t[1]])}(this.activeHandlePosition)),this.originalWidth=i.width,this.originalHeight=i.height,this.aspectRatio=i.width/i.height;var r=n.style.width;r&&r.match(/^\d+\.?\d*%$/)?this.originalWidthPercents=parseFloat(r):this.originalWidthPercents=function(e,t){var n=e.parentElement,i=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return t.width/i*100}(n,i)}},{key:"update",value:function(e){this.proposedWidth=e.width,this.proposedHeight=e.height,this.proposedWidthPercents=e.widthPercents,this.proposedHandleHostWidth=e.handleHostWidth,this.proposedHandleHostHeight=e.handleHostHeight}}]),e}();function hp(e){return"ck-widget__resizer__handle-"+e}Kn(dp,vr);var fp=function(){function e(t){var n=this;w(this,e),this._options=t,this._domResizerWrapper=null,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(function(e){n.state.proposedWidth||n.state.proposedWidthPercents||(n._cleanup(),e.stop())}),{priority:"high"}),this.on("change:isEnabled",(function(){n.isEnabled&&n.redraw()}))}return x(e,[{key:"attach",value:function(){var e=this,t=this,n=this._options.viewElement;this._options.editor.editing.view.change((function(i){var r=i.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(e){var n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),t._domResizerWrapper=n,t.on("change:isEnabled",(function(e,t,i){n.style.display=i?"":"none"})),n.style.display=t.isEnabled?"":"none",n}));i.insert(i.createPositionAt(n,"end"),r),i.addClass("ck-widget_with-resizer",n),e._viewResizerWrapper=r}))}},{key:"begin",value:function(e){this.state=new dp(this._options),this._sizeUI.bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(e,this._getHandleHost(),this._getResizeHost())}},{key:"updateSize",value:function(e){var t=this,n=this._proposeNewSize(e);this._options.editor.editing.view.change((function(e){var i=t._options.unit||"%",r=("%"===i?n.widthPercents:n.width)+i;e.setStyle("width",r,t._options.viewElement)}));var i=this._getHandleHost(),r=new Ia(i);n.handleHostWidth=Math.round(r.width),n.handleHostHeight=Math.round(r.height);var o=new Ia(i);n.width=Math.round(o.width),n.height=Math.round(o.height),this.redraw(r),this.state.update(n)}},{key:"commit",value:function(){var e=this,t=this._options.unit||"%",n=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change((function(){e._cleanup(),e._options.onCommit(n)}))}},{key:"cancel",value:function(){this._cleanup()}},{key:"destroy",value:function(){this.cancel()}},{key:"redraw",value:function(e){var t=this._domResizerWrapper;if((n=t)&&n.ownerDocument&&n.ownerDocument.contains(n)){var n,i,r=t.parentElement,o=this._getHandleHost(),a=this._viewResizerWrapper,s=[a.getStyle("width"),a.getStyle("height"),a.getStyle("left"),a.getStyle("top")];if(r.isSameNode(o)){var l=e||new Ia(o);i=[l.width+"px",l.height+"px",void 0,void 0]}else i=[o.offsetWidth+"px",o.offsetHeight+"px",o.offsetLeft+"px",o.offsetTop+"px"];"same"!==ii(s,i)&&this._options.editor.editing.view.change((function(e){e.setStyle({width:i[0],height:i[1],left:i[2],top:i[3]},a)}))}}},{key:"containsHandle",value:function(e){return this._domResizerWrapper.contains(e)}},{key:"_cleanup",value:function(){var e=this;this._sizeUI.dismiss(),this._sizeUI.isVisible=!1,this._options.editor.editing.view.change((function(t){t.setStyle("width",e._initialViewWidth,e._options.viewElement)}))}},{key:"_proposeNewSize",value:function(e){var t,n=this.state,i={x:(t=e).pageX,y:t.pageY},r=!this._options.isCentered||this._options.isCentered(this),o={x:n._referenceCoordinates.x-(i.x+n.originalWidth),y:i.y-n.originalHeight-n._referenceCoordinates.y};r&&n.activeHandlePosition.endsWith("-right")&&(o.x=i.x-(n._referenceCoordinates.x+n.originalWidth)),r&&(o.x*=2);var a={width:Math.abs(n.originalWidth+o.x),height:Math.abs(n.originalHeight+o.y)};a.dominant=a.width/n.aspectRatio>a.height?"width":"height",a.max=a[a.dominant];var s={width:a.width,height:a.height};return"width"==a.dominant?s.height=s.width/n.aspectRatio:s.width=s.height*n.aspectRatio,{width:Math.round(s.width),height:Math.round(s.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*s.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getResizeHost(e)}},{key:"_getHandleHost",value:function(){var e=this._domResizerWrapper.parentElement;return this._options.getHandleHost(e)}},{key:"_appendHandles",value:function(e){for(var t,n=["top-left","top-right","bottom-right","bottom-left"],i=0,r=n;i<r.length;i++){var o=r[i];e.appendChild(new Nc({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(t=o,"ck-widget__resizer__handle-"+t)}}).render())}}},{key:"_appendSizeUI",value:function(e){var t=new vp;t.render(),this._sizeUI=t,e.appendChild(t.element)}}],[{key:"isResizeHandle",value:function(e){return e.classList.contains("ck-widget__resizer__handle")}}]),e}();Kn(fp,vr);var vp=function(e){C(n,e);var t=A(n);function n(){var e;w(this,n),e=t.call(this);var i=e.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",i.to("activeHandlePosition",(function(e){return e?"ck-orientation-"+e:""}))],style:{display:i.if("isVisible","none",(function(e){return!e}))}},children:[{text:i.to("label")}]}),e}return x(n,[{key:"bindToState",value:function(e,t){this.bind("isVisible").to(t,"proposedWidth",t,"proposedHeight",(function(e,t){return null!==e&&null!==t})),this.bind("label").to(t,"proposedHandleHostWidth",t,"proposedHandleHostHeight",t,"proposedWidthPercents",(function(t,n,i){return"px"===e.unit?"".concat(t,"×").concat(n):i+"%"})),this.bind("activeHandlePosition").to(t)}},{key:"dismiss",value:function(){this.unbind(),this.isVisible=!1}}]),n}(Zc),pp=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return ne(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),xa(e,t,{leading:i,maxWait:t,trailing:r})};n(74);var mp=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this;this.set("_visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map;var t=Oo.window.document;this.editor.model.schema.setAttributeProperties("width",{isFormatting:!0}),this.editor.editing.view.addObserver(Wd),this._observer=Object.create(Vo),this.listenTo(this.editor.editing.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(t,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(t,"mouseup",this._mouseUpListener.bind(this));var n=function(){e._visibleResizer&&e._visibleResizer.redraw()},i=pp(n,200);this.on("change:_visibleResizer",n),this.editor.ui.on("update",i),this._observer.listenTo(Oo.window,"resize",i);var r=this.editor.editing.view.document.selection;r.on("change",(function(){var t=r.getSelectedElement();e._visibleResizer=e._getResizerByViewElement(t)||null}))}},{key:"destroy",value:function(){this._observer.stopListening();var e,t=k(this._resizers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;n.destroy()}}catch(i){t.e(i)}finally{t.f()}}},{key:"attachTo",value:function(e){var t=new fp(e),n=this.editor.plugins;if(t.attach(),n.has("WidgetToolbarRepository")){var i=n.get("WidgetToolbarRepository");t.on("begin",(function(){i.forceDisabled("resize")}),{priority:"lowest"}),t.on("cancel",(function(){i.clearForceDisabled("resize")}),{priority:"highest"}),t.on("commit",(function(){i.clearForceDisabled("resize")}),{priority:"highest"})}return this._resizers.set(e.viewElement,t),t}},{key:"_getResizerByHandle",value:function(e){var t,n=k(this._resizers.values());try{for(n.s();!(t=n.n()).done;){var i=t.value;if(i.containsHandle(e))return i}}catch(r){n.e(r)}finally{n.f()}}},{key:"_getResizerByViewElement",value:function(e){return this._resizers.get(e)}},{key:"_mouseDownListener",value:function(e,t){var n=t.domTarget;fp.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),e.stop(),t.preventDefault()))}},{key:"_mouseMoveListener",value:function(e,t){this._activeResizer&&this._activeResizer.updateSize(t)}},{key:"_mouseUpListener",value:function(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}],[{key:"pluginName",get:function(){return"WidgetResize"}}]),n}(Vu);Kn(mp,vr);var gp=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("imageResize");this.bind("isEnabled").to(n),t.editing.downcastDispatcher.on("insert:image",(function(n,i,r){var o=r.mapper.toViewElement(i.item),a=t.plugins.get(mp).attachTo({unit:t.config.get("image.resizeUnit"),modelElement:i.item,viewElement:o,editor:t,getHandleHost:function(e){return e.querySelector("img")},getResizeHost:function(e){return e},isCentered:function(){var e=i.item.getAttribute("imageStyle");return!e||"full"==e||"alignCenter"==e},onCommit:function(e){t.execute("imageResize",{width:e})}});a.on("updateSize",(function(){o.hasClass("image_resized")||t.editing.view.change((function(e){e.addClass("image_resized",o)}))})),a.bind("isEnabled").to(e)}),{priority:"low"})}}],[{key:"requires",get:function(){return[mp]}},{key:"pluginName",get:function(){return"ImageResizeHandles"}}]),n}(Vu);n(76);var kp=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.defaultStyle=!1,r.styles=i.reduce((function(e,t){return e[t.name]=t,t.isDefault&&(r.defaultStyle=t.name),e}),{}),r}return x(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement();if(this.isEnabled=zd(e),e)if(e.hasAttribute("imageStyle")){var t=e.getAttribute("imageStyle");this.value=!!this.styles[t]&&t}else this.value=this.defaultStyle;else this.value=!1}},{key:"execute",value:function(e){var t=this,n=e.value,i=this.editor.model,r=i.document.selection.getSelectedElement();i.change((function(e){t.styles[n].isDefault?e.removeAttribute("imageStyle",r):e.setAttribute("imageStyle",n,r)}))}}]),n}(Fu);function bp(e,t){var n,i=k(t);try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.name===e)return r}}catch(o){i.e(o)}finally{i.f()}}var yp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm2.5 3V12h11V7.5h-11zM4.061 6H15.94c.586 0 1.061.407 1.061.91v5.68c0 .503-.475.91-1.061.91H4.06c-.585 0-1.06-.407-1.06-.91V6.91C3 6.406 3.475 6 4.061 6zM2 16.5V15h16v1.5z"/></svg>',wp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path d="M18 4.5V3H2v1.5h16zm0 3V6h-5.674v1.5H18zm0 3V9h-5.674v1.5H18zm0 3V12h-5.674v1.5H18zm-8.5-6V12h-6V7.5h6zm.818-1.5H2.682C2.305 6 2 6.407 2 6.91v5.68c0 .503.305.91.682.91h7.636c.377 0 .682-.407.682-.91V6.91c0-.503-.305-.91-.682-.91zM18 16.5V15H2v1.5h16z"/></svg>',_p='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm4.5 3V12h7V7.5h-7zM5.758 6h8.484c.419 0 .758.407.758.91v5.681c0 .502-.34.909-.758.909H5.758c-.419 0-.758-.407-.758-.91V6.91c0-.503.34-.91.758-.91zM2 16.5V15h16v1.5z"/></svg>',xp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 4.5V3h16v1.5zm0 3V6h5.674v1.5zm0 3V9h5.674v1.5zm0 3V12h5.674v1.5zm8.5-6V12h6V7.5h-6zM9.682 6h7.636c.377 0 .682.407.682.91v5.68c0 .503-.305.91-.682.91H9.682c-.377 0-.682-.407-.682-.91V6.91c0-.503.305-.91.682-.91zM2 16.5V15h16v1.5z"/></svg>',Cp={full:{name:"full",title:"Full size image",icon:yp,isDefault:!0},side:{name:"side",title:"Side image",icon:xp,className:"image-style-side"},alignLeft:{name:"alignLeft",title:"Left aligned image",icon:wp,className:"image-style-align-left"},alignCenter:{name:"alignCenter",title:"Centered image",icon:_p,className:"image-style-align-center"},alignRight:{name:"alignRight",title:"Right aligned image",icon:xp,className:"image-style-align-right"}},Ap={full:yp,left:wp,right:xp,center:_p};function Tp(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return e.map(Pp)}function Pp(e){if("string"==typeof e){var t=e;Cp[t]?e=Object.assign({},Cp[t]):(console.warn(Object(jn.a)("image-style-not-found: There is no such image style of given name."),{name:t}),e={name:t})}else if(Cp[e.name]){var n=Cp[e.name],i=Object.assign({},e);for(var r in n)Object.prototype.hasOwnProperty.call(e,r)||(i[r]=n[r]);e=i}return"string"==typeof e.icon&&Ap[e.icon]&&(e.icon=Ap[e.icon]),e}var Ep=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.data,i=e.editing;e.config.define("image.styles",["full","side"]);var r=Tp(e.config.get("image.styles"));t.extend("image",{allowAttributes:"imageStyle"});var o=function(e){return function(t,n,i){if(i.consumable.consume(n.item,t.name)){var r=bp(n.attributeNewValue,e),o=bp(n.attributeOldValue,e),a=i.mapper.toViewElement(n.item),s=i.writer;o&&s.removeClass(o.className,a),r&&s.addClass(r.className,a)}}}(r);i.downcastDispatcher.on("attribute:imageStyle:image",o),n.downcastDispatcher.on("attribute:imageStyle:image",o),n.upcastDispatcher.on("element:figure",function(e){var t=e.filter((function(e){return!e.isDefault}));return function(e,n,i){if(n.modelRange){var r=n.viewItem,o=Hu(n.modelRange.getItems());if(i.schema.checkAttribute(o,"imageStyle")){var a,s=k(t);try{for(s.s();!(a=s.n()).done;){var l=a.value;i.consumable.consume(r,{classes:l.className})&&i.writer.setAttribute("imageStyle",l.name,o)}}catch(c){s.e(c)}finally{s.f()}}}}}(r),{priority:"low"}),e.commands.add("imageStyle",new kp(e,r))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}}]),n}(Vu);n(78);var Sp=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e,t=function(e,t){var n,i=k(e);try{for(i.s();!(n=i.n()).done;){var r=n.value;t[r.title]&&(r.title=t[r.title])}}catch(o){i.e(o)}finally{i.f()}return e}(Tp(this.editor.config.get("image.styles")),this.localizedDefaultStylesTitles),n=k(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._createButton(i)}}catch(r){n.e(r)}finally{n.f()}}},{key:"_createButton",value:function(e){var t=this,n=this.editor,i="imageStyle:"+e.name;n.ui.componentFactory.add(i,(function(i){var r=n.commands.get("imageStyle"),o=new _u(i);return o.set({label:e.title,icon:e.icon,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(r,"isEnabled"),o.bind("isOn").to(r,"value",(function(t){return t===e.name})),t.listenTo(o,"execute",(function(){n.execute("imageStyle",{value:e.name}),n.editing.view.focus()})),o}))}},{key:"localizedDefaultStylesTitles",get:function(){var e=this.editor.t;return{"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}}],[{key:"pluginName",get:function(){return"ImageStyleUI"}}]),n}(Vu),Op=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor;if(t.plugins.has("BalloonToolbar")){var n=t.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(e){(function(e){var t=e.getSelectedElement();return!(!t||!Pd(t))})(t.editing.view.document.selection)&&e.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui,"update",(function(){e._updateToolbarsVisibility()})),this.listenTo(t.ui.focusTracker,"change:isFocused",(function(){e._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){l(N(n.prototype),"destroy",this).call(this);var e,t=k(this._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var i=e.value;i.view.destroy()}}catch(r){t.e(r)}finally{t.f()}}},{key:"register",value:function(e,t){var n=t.ariaLabel,i=t.items,r=t.getRelatedElement,o=t.balloonClassName,a=void 0===o?"ck-toolbar-container":o;if(i.length){var s=this.editor,l=s.t,c=new Nu(s.locale);if(c.ariaLabel=n||l("Widget toolbar"),this._toolbarDefinitions.has(e))throw new jn.b("widget-toolbar-duplicated: Toolbar with the given id was already added.",this,{toolbarId:e});c.fillFromConfig(i,s.ui.componentFactory),this._toolbarDefinitions.set(e,{view:c,getRelatedElement:r,balloonClassName:a})}else console.warn(Object(jn.a)("widget-toolbar-no-items: Trying to register a toolbar without items."),{toolbarId:e})}},{key:"_updateToolbarsVisibility",value:function(){var e,t=0,n=null,i=null,r=k(this._toolbarDefinitions.values());try{for(r.s();!(e=r.n()).done;){var o=e.value,a=o.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){var s=a.getAncestors().length;s>t&&(t=s,n=a,i=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}}catch(l){r.e(l)}finally{r.f()}i&&this._showToolbar(i,n)}},{key:"_hideToolbar",value:function(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(e,t){var n=this;this._isToolbarVisible(e)?Mp(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:Ip(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var e,t=k(n._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var i=e.value;if(n._isToolbarVisible(i)){var r=i.getRelatedElement(n.editor.editing.view.document.selection);Mp(n.editor,r)}}}catch(o){t.e(o)}finally{t.f()}})))}},{key:"_isToolbarVisible",value:function(e){return this._balloon.visibleView===e.view}},{key:"_isToolbarInBalloon",value:function(e){return this._balloon.hasView(e.view)}}],[{key:"requires",get:function(){return[Wv]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),n}(Vu);function Mp(e,t){var n=e.plugins.get("ContextualBalloon"),i=Ip(e,t);n.updatePosition(i)}function Ip(e,t){var n=e.editing.view,i=kd.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,Nd]}}n(80);var Np=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.set("icon"),i.set("isEnabled",!0),i.set("isOn",!1),i.set("isToggleable",!1),i.set("isVisible",!0),i.set("keystroke"),i.set("label"),i.set("tabindex",-1),i.set("tooltip"),i.set("tooltipPosition","s"),i.set("type","button"),i.set("withText",!1),i.children=i.createCollection(),i.actionView=i._createActionView(),i.arrowView=i._createArrowView(),i.keystrokes=new vc,i.focusTracker=new xc,i.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",r.if("isVisible","ck-hidden",(function(e){return!e})),i.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:i.children}),i}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(t,n){e.focusTracker.focusedElement===e.actionView.element&&(e.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(t,n){e.focusTracker.focusedElement===e.arrowView.element&&(e.actionView.focus(),n())}))}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var e=new _u;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}},{key:"_createArrowView",value:function(){var e=new _u,t=e.bindTemplate;return e.icon=xu,e.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":t.to("isOn",(function(e){return String(e)}))}}),e.bind("isEnabled").to(this),e.delegate("execute").to(this,"open"),e}}]),n}(Zc);n(82);var Rp=function(e){C(n,e);var t=A(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(this,n),i=t.call(this,e);var o=i.bindTemplate;return i.set("class",r.class||null),i.children=i.createCollection(),r.children&&r.children.forEach((function(e){return i.children.add(e)})),i.set("_role",null),i.set("_ariaLabelledBy",null),r.labelView&&i.set({_role:"group",_ariaLabelledBy:r.labelView.id}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",o.to("class")],role:o.to("_role"),"aria-labelledby":o.to("_ariaLabelledBy")},children:i.children}),i}return n}(Zc),Dp='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>';n(84);var Lp=function(e){C(n,e);var t=A(n);function n(e,i){var r;w(this,n),r=t.call(this,e);var o=r._createActionButtons(e),a=o.insertButtonView,s=o.cancelButtonView;if(r.insertButtonView=a,r.cancelButtonView=s,r.dropdownView=r._createDropdownView(e),r.set("imageURLInputValue",""),r.focusTracker=new xc,r.keystrokes=new vc,r._focusables=new Ic,r._focusCycler=new cu({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.set("_integrations",new Jn),i)for(var l=function(){var e=v(d[c],2),t=e[0],n=e[1];"insertImageViaUrl"===t&&(n.fieldView.bind("value").to(P(r),"imageURLInputValue",(function(e){return e||""})),n.fieldView.on("input",(function(){r.imageURLInputValue=n.fieldView.element.value}))),r._integrations.add(n)},c=0,d=Object.entries(i);c<d.length;c++)l();return r.setTemplate({tag:"form",attributes:{class:["ck","ck-image-upload-form"],tabindex:"-1"},children:[].concat(u(r._integrations),[new Rp(e,{children:[r.insertButtonView,r.cancelButtonView],class:"ck-image-upload-form__action-row"})])}),r}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),Bv({view:this});var t=[].concat(u(this._integrations),[this.insertButtonView,this.cancelButtonView]);t.forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var i=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",i),this.keystrokes.set("arrowleft",i),this.keystrokes.set("arrowup",i),this.keystrokes.set("arrowdown",i),this.listenTo(t[0].element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"_createDropdownView",value:function(e){var t=e.t,n=Ou(e,Np),i=n.buttonView,r=n.panelView;return i.set({label:t("Insert image"),icon:Dp,tooltip:!0}),r.extendTemplate({attributes:{class:"ck-image-upload__panel"}}),n}},{key:"_createActionButtons",value:function(e){var t=e.t,n=new _u(e),i=new _u(e);return n.set({label:t("Insert"),icon:Fv,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),i.set({label:t("Cancel"),icon:Uv,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this,"imageURLInputValue"),n.delegate("execute").to(this,"submit"),i.delegate("execute").to(this,"cancel"),{insertButtonView:n,cancelButtonView:i}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}}]),n}(Zc),zp=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.buttonView=new _u(e),i._fileInputView=new jp(e),i._fileInputView.bind("acceptedType").to(P(i)),i._fileInputView.bind("allowMultipleFiles").to(P(i)),i._fileInputView.delegate("done").to(P(i)),i.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[i.buttonView,i._fileInputView]}),i.buttonView.on("execute",(function(){i._fileInputView.open()})),i}return x(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(Zc),jp=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e),i.set("acceptedType"),i.set("allowMultipleFiles",!1);var r=i.bindTemplate;return i.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:r.to("acceptedType"),multiple:r.to("allowMultipleFiles")},on:{change:r.to((function(){i.element&&i.element.files&&i.element.files.length&&i.fire("done",i.element.files),i.element.value=""}))}}),i}return x(n,[{key:"open",value:function(){this.element.click()}}]),n}(Zc);function Vp(e){var t=e.map((function(e){return e.replace("+","\\+")}));return new RegExp("^image\\/(".concat(t.join("|"),")$"))}function Bp(e){var t=e.t,n=new zv(e,Vv);return n.set({label:t("Insert image via URL")}),n.fieldView.placeholder="https://example.com/src/image.png",n.infoText=t("Paste the image source URL."),n}var Fp=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=!!t.config.get("image.upload.panel.items");t.ui.componentFactory.add("imageUpload",(function(t){return n?e._createDropdownView(t):e._createFileDialogButtonView(t)}))}},{key:"_setUpDropdown",value:function(e,t,n){var i=this.editor,r=i.t,o=t.insertButtonView;function a(){i.editing.view.focus(),e.isOpen=!1}return e.bind("isEnabled").to(n),e.on("change:isOpen",(function(){var n=i.model.document.selection.getSelectedElement();e.isOpen&&(t.focus(),zd(n)?(t.imageURLInputValue=n.getAttribute("src"),o.label=r("Update")):(t.imageURLInputValue="",o.label=r("Insert")))})),t.delegate("submit","cancel").to(e),this.delegate("cancel").to(e),e.on("submit",(function(){a(),function(){var e=i.model.document.selection.getSelectedElement();zd(e)?i.model.change((function(n){n.setAttribute("src",t.imageURLInputValue,e),n.removeAttribute("srcset",e),n.removeAttribute("sizes",e)})):i.execute("imageInsert",{source:t.imageURLInputValue})}()})),e.on("cancel",(function(){a()})),e}},{key:"_createDropdownView",value:function(e){var t=this.editor,n=new Lp(e,function(e){var t=e.config.get("image.upload.panel.items"),n=e.plugins.get("ImageUploadUI"),i={insertImageViaUrl:Bp(e.locale)};if(!t)return i;if(t.find((function(e){return"openCKFinder"===e}))&&e.ui.componentFactory.has("ckfinder")){var r=e.ui.componentFactory.create("ckfinder");r.set({withText:!0,class:"ck-image-upload__ck-finder-button"}),r.delegate("execute").to(n,"cancel"),i.openCKFinder=r}return t.reduce((function(t,n){return i[n]?t[n]=i[n]:e.ui.componentFactory.has(n)&&(t[n]=e.ui.componentFactory.create(n)),t}),{})}(t)),i=t.commands.get("imageUpload"),r=n.dropdownView,o=r.panelView;return r.buttonView.actionView=this._createFileDialogButtonView(e),o.children.add(n),this._setUpDropdown(r,n,i)}},{key:"_createFileDialogButtonView",value:function(e){var t=this.editor,n=e.t,i=t.config.get("image.upload.types"),r=new zp(e),o=Vp(i),a=t.commands.get("imageUpload");return r.set({acceptedType:i.map((function(e){return"image/"+e})).join(","),allowMultipleFiles:!0}),r.buttonView.set({label:n("Insert image"),icon:Dp,tooltip:!0}),r.buttonView.bind("isEnabled").to(a),r.on("done",(function(e,n){var i=Array.from(n).filter((function(e){return o.test(e.type)}));i.length&&t.execute("imageUpload",{file:i})})),r}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}]),n}(Vu);n(86),n(88),n(90);var Up=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.placeholder="data:image/svg+xml;utf8,"+encodeURIComponent('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 700 250"><rect rx="4"/></svg>'),i}return x(n,[{key:"init",value:function(){var e=this;this.editor.editing.downcastDispatcher.on("attribute:uploadStatus:image",(function(){return e.uploadStatusChange.apply(e,arguments)}))}},{key:"uploadStatusChange",value:function(e,t,n){var i=this.editor,r=t.item,o=r.getAttribute("uploadId");if(n.consumable.consume(t.item,e.name)){var a=i.plugins.get(ef),s=o?t.attributeNewValue:null,l=this.placeholder,c=i.editing.mapper.toViewElement(r),u=n.writer;if("reading"==s)return Hp(c,u),void $p(l,c,u);if("uploading"==s){var d=a.loaders.get(o);return Hp(c,u),void(d?(Wp(c,u),function(e,t,n,i){var r=function(e){var t=e.createUIElement("div",{class:"ck-progress-bar"});return e.setCustomProperty("progressBar",!0,t),t}(t);t.insert(t.createPositionAt(e,"end"),r),n.on("change:uploadedPercent",(function(e,t,n){i.change((function(e){e.setStyle("width",n+"%",r)}))}))}(c,u,d,i.editing.view),function(e,t,n){if(n.data){var i=Bd(e);t.setAttribute("src",n.data,i)}}(c,u,d)):$p(l,c,u))}"complete"==s&&a.loaders.get(o)&&function(e,t,n){var i=t.createUIElement("div",{class:"ck-image-upload-complete-icon"});t.insert(t.createPositionAt(e,"end"),i),setTimeout((function(){n.change((function(e){return e.remove(e.createRangeOn(i))}))}),3e3)}(c,u,i.editing.view),function(e,t){Yp(e,t,"progressBar")}(c,u),Wp(c,u),function(e,t){t.removeClass("ck-appear",e)}(c,u)}}}]),n}(Vu);function Hp(e,t){e.hasClass("ck-appear")||t.addClass("ck-appear",e)}function $p(e,t,n){t.hasClass("ck-image-upload-placeholder")||n.addClass("ck-image-upload-placeholder",t);var i=Bd(t);i.getAttribute("src")!==e&&n.setAttribute("src",e,i),qp(t,"placeholder")||n.insert(n.createPositionAfter(i),function(e){var t=e.createUIElement("div",{class:"ck-upload-placeholder-loader"});return e.setCustomProperty("placeholder",!0,t),t}(n))}function Wp(e,t){e.hasClass("ck-image-upload-placeholder")&&t.removeClass("ck-image-upload-placeholder",e),Yp(e,t,"placeholder")}function qp(e,t){var n,i=k(e.getChildren());try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.getCustomProperty(t))return r}}catch(o){i.e(o)}finally{i.f()}}function Yp(e,t,n){var i=qp(e,n);i&&t.remove(t.createRangeOn(i))}var Gp=function(){function e(t){w(this,e),this.document=t}return x(e,[{key:"createDocumentFragment",value:function(e){return new Xr(this.document,e)}},{key:"createElement",value:function(e,t,n){return new or(this.document,e,t,n)}},{key:"createText",value:function(e){return new ai(this.document,e)}},{key:"clone",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}},{key:"appendChild",value:function(e,t){return t._appendChild(e)}},{key:"insertChild",value:function(e,t,n){return n._insertChild(e,t)}},{key:"removeChildren",value:function(e,t,n){return n._removeChildren(e,t)}},{key:"remove",value:function(e){var t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}},{key:"replace",value:function(e,t){var n=e.parent;if(n){var i=n.getChildIndex(e);return this.removeChildren(i,1,n),this.insertChild(i,t,n),!0}return!1}},{key:"unwrapElement",value:function(e){var t=e.parent;if(t){var n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}},{key:"rename",value:function(e,t){var n=new or(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){B(e)&&void 0===n&&(n=t),n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"createPositionAt",value:function(e,t){return Cr._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return Cr._createAfter(e)}},{key:"createPositionBefore",value:function(e){return Cr._createBefore(e)}},{key:"createRange",value:function(e,t){return new Ar(e,t)}},{key:"createRangeOn",value:function(e){return Ar._createOn(e)}},{key:"createRangeIn",value:function(e){return Ar._createIn(e)}},{key:"createSelection",value:function(e,t,n){return new Er(e,t,n)}}]),e}(),Kp=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getSelectedElement(),t=e&&"image"===e.name||!1;this.isEnabled=Vd(this.editor.model)||t}},{key:"execute",value:function(e){var t=this.editor,n=t.model,i=t.plugins.get(ef);n.change((function(t){var r,o=Array.isArray(e.file)?e.file:[e.file],a=k(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;Jp(t,n,i,s)}}catch(l){a.e(l)}finally{a.f()}}))}}]),n}(Fu);function Jp(e,t,n,i){var r=n.createLoader(i);r&&jd(e,t,{uploadId:r.id})}var Qp=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),i}return x(n,null,[{key:"requires",get:function(){return[ef,Gh,fh]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}]),x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document,i=t.model.schema,r=t.conversion,o=t.plugins.get(ef),a=Vp(t.config.get("image.upload.types"));i.extend("image",{allowAttributes:["uploadId","uploadStatus"]}),t.commands.add("imageUpload",new Kp(t)),r.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",(function(e,n){if(i=n.dataTransfer,!Array.from(i.types).includes("text/html")||""===i.getData("text/html")){var i,r=Array.from(n.dataTransfer.files).filter((function(e){return!!e&&a.test(e.type)})),o=n.targetRanges.map((function(e){return t.editing.mapper.toModelRange(e)}));t.model.change((function(n){n.setSelection(o),r.length&&(e.stop(),t.model.enqueueChange("default",(function(){t.execute("imageUpload",{file:r})})))}))}})),this.listenTo(t.plugins.get(fh),"inputTransformation",(function(e,n){var i=Array.from(t.editing.view.createRangeIn(n.content)).filter((function(e){return!(!(t=e.item).is("element","img")||!t.getAttribute("src"))&&(t.getAttribute("src").match(/^data:image\/\w+;base64,/g)||t.getAttribute("src").match(/^blob:/g))&&!e.item.getAttribute("uploadProcessed");var t})).map((function(e){return{promise:(t=e.item,new Promise((function(e,n){var i=t.getAttribute("src");fetch(i).then((function(e){return e.blob()})).then((function(t){var n=function(e,t){return e.type?e.type:t.match(/data:(image\/\w+);base64/)?t.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}(t,i),r=n.replace("image/",""),o=new File([t],"image."+r,{type:n});e(o)})).catch(n)}))),imageElement:e.item};var t}));if(i.length){var r,a=new Gp(t.editing.view.document),s=k(i);try{for(s.s();!(r=s.n()).done;){var l=r.value;a.setAttribute("uploadProcessed",!0,l.imageElement);var c=o.createLoader(l.promise);c&&(a.setAttribute("src","",l.imageElement),a.setAttribute("uploadId",c.id,l.imageElement))}}catch(u){s.e(u)}finally{s.f()}}})),t.editing.view.document.on("dragover",(function(e,t){t.preventDefault()})),n.on("change",(function(){var i,r=n.differ.getChanges({includeChangesInGraveyard:!0}),a=k(r);try{for(a.s();!(i=a.n()).done;){var s=i.value;if("insert"==s.type&&"$text"!=s.name){var l,c=s.position.nodeAfter,u="$graveyard"==s.position.root.rootName,d=k(Zp(t,c));try{for(d.s();!(l=d.n()).done;){var h=l.value,f=h.getAttribute("uploadId");if(f){var v=o.loaders.get(f);v&&(u?v.abort():"idle"==v.status&&e._readAndUpload(v,h))}}}catch(p){d.e(p)}finally{d.f()}}}}catch(p){a.e(p)}finally{a.f()}}))}},{key:"_readAndUpload",value:function(e,t){var n=this,i=this.editor,r=i.model,o=i.locale.t,a=i.plugins.get(ef),s=i.plugins.get(Gh);return r.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","reading",t)})),e.read().then((function(){var n=e.upload();if(zr.isSafari){var o=Bd(i.editing.mapper.toViewElement(t));i.editing.view.once("render",(function(){if(o.parent){var e=i.editing.view.domConverter.mapViewToDom(o.parent);if(e){var t=e.style.display;e.style.display="none",e._ckHack=e.offsetHeight,e.style.display=t}}}))}return r.enqueueChange("transparent",(function(e){e.setAttribute("uploadStatus","uploading",t)})),n})).then((function(e){r.enqueueChange("transparent",(function(i){i.setAttributes({uploadStatus:"complete",src:e.default},t),n._parseAndSetSrcsetAttributeOnImage(e,t,i)})),l()})).catch((function(n){if("error"!==e.status&&"aborted"!==e.status)throw n;"error"==e.status&&n&&s.showWarning(n,{title:o("Upload failed"),namespace:"upload"}),l(),r.enqueueChange("transparent",(function(e){e.remove(t)}))}));function l(){r.enqueueChange("transparent",(function(e){e.removeAttribute("uploadId",t),e.removeAttribute("uploadStatus",t)})),a.destroyLoader(e)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(e,t,n){var i=0,r=Object.keys(e).filter((function(e){var t=parseInt(e,10);if(!isNaN(t))return i=Math.max(i,t),!0})).map((function(t){return"".concat(e[t]," ").concat(t,"w")})).join(", ");""!=r&&n.setAttribute("srcset",{data:r,width:i},t)}}]),n}(Vu);function Zp(e,t){return Array.from(e.model.createRangeOn(t)).filter((function(e){return e.item.is("element","image")})).map((function(e){return e.item}))}var Xp=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._childCommands=[],i}return x(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._getFirstEnabledCommand().execute(t)}},{key:"registerChildCommand",value:function(e){var t=this;this._childCommands.push(e),e.on("change:isEnabled",(function(){return t._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){return this._childCommands.find((function(e){return e.isEnabled}))}}]),n}(Fu),em=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor;e.commands.add("indent",new Xp(e)),e.commands.add("outdent",new Xp(e))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}]),n}(Vu),tm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95L5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',nm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>',im=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,i="ltr"==t.uiLanguageDirection?tm:nm,r="ltr"==t.uiLanguageDirection?nm:tm;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),r)}},{key:"_defineButton",value:function(e,t,n){var i=this,r=this.editor;r.ui.componentFactory.add(e,(function(o){var a=r.commands.get(e),s=new _u(o);return s.set({label:t,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),i.listenTo(s,"execute",(function(){r.execute(e),r.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}]),n}(Vu),rm="italic",om=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:rm}),e.model.schema.setAttributeProperties(rm,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:rm,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(rm,new od(e,rm)),e.keystrokes.set("CTRL+I",rm)}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}]),n}(Vu),am="italic",sm=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(am,(function(i){var r=t.commands.get(am),o=new _u(i);return o.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.586 14.633l.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(r,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(am),t.editing.view.focus()})),o}))}}]),n}(Vu),lm=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.domEventType="click",i}return x(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(ha);n(92);var cm=function(e){C(n,e);var t=A(n);function n(e,i,r){var o;w(this,n),o=t.call(this,e);var a=e.t;o.focusTracker=new xc,o.keystrokes=new vc,o.urlInputView=o._createUrlInput(r),o.saveButtonView=o._createButton(a("Save"),Fv,"ck-button-save"),o.saveButtonView.type="submit",o.cancelButtonView=o._createButton(a("Cancel"),Uv,"ck-button-cancel","cancel"),o._manualDecoratorSwitches=o._createManualDecoratorSwitches(i),o.children=o._createFormChildren(i.manualDecorators),o._focusables=new Ic,o._focusCycler=new cu({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var s=["ck","ck-link-form"];return i.manualDecorators.length&&s.push("ck-link-form_layout-vertical"),o.setTemplate({tag:"form",attributes:{class:s,tabindex:"-1"},children:o.children}),o}return x(n,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(e,t){return e[t.name]=t.isOn,e}),{})}},{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),Bv({view:this}),[this.urlInputView].concat(u(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"https://",t=this.locale.t,n=new zv(this.locale,Vv);return n.label=t("Link URL"),n.fieldView.placeholder=e+"example.com",n}},{key:"_createButton",value:function(e,t,n,i){var r=new _u(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}},{key:"_createManualDecoratorSwitches",value:function(e){var t,n=this,i=this.createCollection(),r=k(e.manualDecorators);try{var o=function(){var r=t.value,o=new Eu(n.locale);o.set({name:r.id,label:r.label,withText:!0}),o.bind("isOn").toMany([r,e],"value",(function(e,t){return void 0===t&&void 0===e?r.defaultValue:e})),o.on("execute",(function(){r.set("value",!o.isOn)})),i.add(o)};for(r.s();!(t=r.n()).done;)o()}catch(a){r.e(a)}finally{r.f()}return i}},{key:"_createFormChildren",value:function(e){var t=this.createCollection();if(t.add(this.urlInputView),e.length){var n=new Zc;n.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map((function(e){return{tag:"li",children:[e],attributes:{class:["ck","ck-list__item"]}}})),attributes:{class:["ck","ck-reset","ck-list"]}}),t.add(n)}return t.add(this.saveButtonView),t.add(this.cancelButtonView),t}}]),n}(Zc);n(94);var um=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=e.t;return i.focusTracker=new xc,i.keystrokes=new vc,i.previewButtonView=i._createPreviewButton(),i.unlinkButtonView=i._createButton(r("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562l-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),i.editButtonView=i._createButton(r("Edit link"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7.3 17.37l-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506L13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5L9.375 17H19v1.5H8z"/></svg>',"edit"),i.set("href"),i._focusables=new Ic,i._focusCycler=new cu({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions"],tabindex:"-1"},children:[i.previewButtonView,i.editButtonView,i.unlinkButtonView]}),i}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(e,t,n){var i=new _u(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.delegate("execute").to(this,n),i}},{key:"_createPreviewButton",value:function(){var e=new _u(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(function(e){return e&&zh(e)})),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(function(e){return e||n("This link has no URL")})),e.bind("isEnabled").to(this,"href",(function(e){return!!e})),e.template.tag="a",e.template.eventListeners={},e}}]),n}(Zc),dm='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.077 15l.991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',hm=/^((\w+:(\/{2,})?)|(\W))/i,fm=/[\w-]+@[\w-]+\.+[\w-]+/i,vm="link-ui",pm=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor;e.editing.view.addObserver(lm),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(Wv),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:vm,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:vm,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){l(N(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var e=this,t=this.editor,n=new um(t.locale),i=t.commands.get("link"),r=t.commands.get("unlink");return n.bind("href").to(i,"value"),n.editButtonView.bind("isEnabled").to(i),n.unlinkButtonView.bind("isEnabled").to(r),this.listenTo(n,"edit",(function(){e._addFormView()})),this.listenTo(n,"unlink",(function(){t.execute("unlink"),e._hideUI()})),n.keystrokes.set("Esc",(function(t,n){e._hideUI(),n()})),n.keystrokes.set(Dh,(function(t,n){e._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),i=t.config.get("link.defaultProtocol"),r=new cm(t.locale,n,i);return r.urlInputView.fieldView.bind("value").to(n,"value"),r.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),r.saveButtonView.bind("isEnabled").to(n),this.listenTo(r,"submit",(function(){var n=r.urlInputView.fieldView.element.value,o=!!i&&!hm.test(n),a=fm.test(n),s=n&&o?(a?"mailto:":i)+n:n;t.execute("link",s,r.getDecoratorSwitchesState()),e._closeFormView()})),this.listenTo(r,"cancel",(function(){e._closeFormView()})),r.keystrokes.set("Esc",(function(t,n){e._closeFormView(),n()})),r}},{key:"_createToolbarLinkButton",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),i=t.t;t.keystrokes.set(Dh,(function(t,n){n(),e._showUI(!0)})),t.ui.componentFactory.add("link",(function(t){var r=new _u(t);return r.isEnabled=!0,r.label=i("Link"),r.icon=dm,r.keystroke=Dh,r.tooltip=!0,r.isToggleable=!0,r.bind("isEnabled").to(n,"isEnabled"),r.bind("isOn").to(n,"value",(function(e){return!!e})),e.listenTo(r,"execute",(function(){return e._showUI(!0)})),r}))}},{key:"_enableUserBalloonInteractions",value:function(){var e=this,t=this.editor.editing.view.document;this.listenTo(t,"click",(function(){e._getSelectedLinkElement()&&e._showUI()})),this.editor.keystrokes.set("Tab",(function(t,n){e._areActionsVisible&&!e.actionsView.focusTracker.isFocused&&(e.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(t,n){e._isUIVisible&&(e._hideUI(),n())})),Su({emitter:this.formView,activator:function(){return e._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return e._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var e=this.editor.commands.get("link");this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.urlInputView.fieldView.element.value=e.value||""}}},{key:"_closeFormView",value:function(){var e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var e=this,t=this.editor,n=t.editing.view.document,i=this._getSelectedLinkElement(),r=a(),o=function(){var t=e._getSelectedLinkElement(),n=a();i&&!t||!i&&n!==r?e._hideUI():e._isUIVisible&&e._balloon.updatePosition(e._getBalloonPositionData()),i=t,r=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(e){return e.is("element")}))}this.listenTo(t.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_getBalloonPositionData",value:function(){var e=this.editor.editing.view,t=this.editor.model,n=e.document,i=this._getSelectedLinkElement(),r=t.markers.has(vm)?this.editor.editing.mapper.toViewRange(t.markers.get(vm).getRange()):n.selection.getFirstRange();return{target:i?e.domConverter.mapViewToDom(i):e.domConverter.viewRangeToDom(r)}}},{key:"_getSelectedLinkElement",value:function(){var e=this.editor.editing.view,t=e.document.selection;if(t.isCollapsed)return mm(t.getFirstPosition());var n=t.getFirstRange().getTrimmed(),i=mm(n.start),r=mm(n.end);return i&&i==r&&e.createRangeIn(i).getTrimmed().isEqual(n)?i:null}},{key:"_showFakeVisualSelection",value:function(){var e=this.editor.model;e.change((function(t){e.markers.has(vm)?t.updateMarker(vm,{range:e.document.selection.getFirstRange()}):t.addMarker(vm,{usingOperation:!1,affectsData:!1,range:e.document.selection.getFirstRange()})}))}},{key:"_hideFakeVisualSelection",value:function(){var e=this.editor.model;e.markers.has(vm)&&e.change((function(e){e.removeMarker(vm)}))}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}}],[{key:"requires",get:function(){return[Wv]}},{key:"pluginName",get:function(){return"LinkUI"}}]),n}(Vu);function mm(e){return e.getAncestors().find((function(e){return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}var gm=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("image",{allowAttributes:["linkHref"]}),e.conversion.for("upcast").add((function(e){e.on("element:a",(function(e,t,n){var i=t.viewItem,r=Array.from(i.getChildren()).find((function(e){return"img"===e.name}));if(r){var o={attributes:["href"]};if(n.consumable.consume(i,o)){var a=i.getAttribute("href");if(a){var s=t.modelCursor.parent;if(!s.is("element","image")){var l=n.convertItem(r,t.modelCursor);t.modelRange=l.modelRange,t.modelCursor=l.modelCursor,s=t.modelCursor.nodeBefore}s&&s.is("element","image")&&n.writer.setAttribute("linkHref",a,s)}}}}),{priority:"high"})})),e.conversion.for("editingDowncast").add(km({attachIconIndicator:!0})),e.conversion.for("dataDowncast").add(km({attachIconIndicator:!1})),this._enableAutomaticDecorators(),this._enableManualDecorators()}},{key:"_enableAutomaticDecorators",value:function(){var e=this.editor,t=e.commands.get("link").automaticDecorators;t.length&&e.conversion.for("downcast").add(t.getDispatcherForLinkedImage())}},{key:"_enableManualDecorators",value:function(){var e,t=this.editor,n=t.commands.get("link"),i=n.manualDecorators,r=k(n.manualDecorators);try{for(r.s();!(e=r.n()).done;){var o=e.value;t.model.schema.extend("image",{allowAttributes:o.id}),t.conversion.for("downcast").add(bm(i,o)),t.conversion.for("upcast").add(ym(i,o))}}catch(a){r.e(a)}finally{r.f()}}}],[{key:"requires",get:function(){return[Hd,$h]}},{key:"pluginName",get:function(){return"LinkImageEditing"}}]),n}(Vu);function km(e){return function(t){t.on("attribute:linkHref:image",(function(t,n,i){var r,o=i.mapper.toViewElement(n.item),a=i.writer,s=Array.from(o.getChildren()).find((function(e){return"a"===e.name}));if(e.attachIconIndicator&&(r=a.createUIElement("span",{class:"ck ck-link-image_icon"},(function(e){var t=this.toDomElement(e);return t.innerHTML=dm,t}))),s)if(n.attributeNewValue)a.setAttribute("href",n.attributeNewValue,s);else{var l=Array.from(s.getChildren()).find((function(e){return"img"===e.name}));a.move(a.createRangeOn(l),a.createPositionAt(o,0)),a.remove(s)}else{var c=a.createContainerElement("a",{href:n.attributeNewValue});a.insert(a.createPositionAt(o,0),c),a.move(a.createRangeOn(o.getChild(1)),a.createPositionAt(c,0)),r&&a.insert(a.createPositionAt(c,"end"),r)}}))}}function bm(e,t){return function(n){n.on("attribute:".concat(t.id,":image"),(function(n,i,r){var o,a=e.get(t.id).attributes,s=r.mapper.toViewElement(i.item),l=Array.from(s.getChildren()).find((function(e){return"a"===e.name})),c=k(li(a));try{for(c.s();!(o=c.n()).done;){var u=v(o.value,2),d=u[0],h=u[1];r.writer.setAttribute(d,h,l)}}catch(f){c.e(f)}finally{c.f()}}))}}function ym(e,t){return function(n){n.on("element:a",(function(n,i,r){var o=i.viewItem,a={attributes:e.get(t.id).attributes},s=new ci(a).match(o);if(s&&r.consumable.consume(o,s.match)){var l=i.modelCursor.parent;r.writer.setAttribute(t.id,!0,l)}}),{priority:"high"})}}var wm=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor.editing.view.document;this.listenTo(e,"click",(function(t,n){_m(e.selection.getSelectedElement())&&n.preventDefault()})),this._createToolbarLinkImageButton()}},{key:"_createToolbarLinkImageButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("linkImage",(function(i){var r=new _u(i),o=t.plugins.get("LinkUI"),a=t.commands.get("link");return r.set({isEnabled:!0,label:n("Link image"),icon:dm,keystroke:Dh,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(a,"isEnabled"),r.bind("isOn").to(a,"value",(function(e){return!!e})),e.listenTo(r,"execute",(function(){_m(t.editing.view.document.selection.getSelectedElement())?o._addActionsView():o._showUI(!0)})),r}))}}],[{key:"requires",get:function(){return[Qv,$h,pm]}},{key:"pluginName",get:function(){return"LinkImageUI"}}]),n}(Vu);function _m(e){return!(!e||!Dd(e))&&e.getChild(0).is("element","a")}n(96);var xm=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.type=i,r}return x(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,i=Array.from(n.selection.getSelectedBlocks()).filter((function(e){return Am(e,t.schema)})),r=!0===this.value;t.change((function(t){if(r){for(var n=i[i.length-1].nextSibling,o=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s<o&&(o=s);var l=s-o;a.push({element:n,listIndent:l}),n=n.nextSibling}a=a.reverse();var c,u=k(a);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.setAttribute("listIndent",d.listIndent,d.element)}}catch(y){u.e(y)}finally{u.f()}}if(!r){var h,f=Number.POSITIVE_INFINITY,v=k(i);try{for(v.s();!(h=v.n()).done;){var p=h.value;p.is("element","listItem")&&p.getAttribute("listIndent")<f&&(f=p.getAttribute("listIndent"))}}catch(y){v.e(y)}finally{v.f()}f=0===f?1:f,Cm(i,!0,f),Cm(i,!1,f)}var m,g=k(i.reverse());try{for(g.s();!(m=g.n()).done;){var b=m.value;r&&"listItem"==b.name?t.rename(b,"paragraph"):r||"listItem"==b.name?r||"listItem"!=b.name||b.getAttribute("listType")==e.type||t.setAttribute("listType",e.type,b):(t.setAttributes({listType:e.type,listIndent:0},b),t.rename(b,"listItem"))}}catch(y){g.e(y)}finally{g.f()}e.fire("_executeCleanup",i)}))}},{key:"_getValue",value:function(){var e=Hu(this.editor.model.document.selection.getSelectedBlocks());return!!e&&e.is("element","listItem")&&e.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.document.selection,t=this.editor.model.schema,n=Hu(e.getSelectedBlocks());return!!n&&Am(n,t)}}]),n}(Fu);function Cm(e,t,n){var i=t?e[0]:e[e.length-1];if(i.is("element","listItem"))for(var r=i[t?"previousSibling":"nextSibling"],o=i.getAttribute("listIndent");r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=n;)o>r.getAttribute("listIndent")&&(o=r.getAttribute("listIndent")),r.getAttribute("listIndent")==o&&e[t?"unshift":"push"](r),r=r[t?"previousSibling":"nextSibling"]}function Am(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}var Tm=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r._indentBy="forward"==i?1:-1,r}return x(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,i=Array.from(n.selection.getSelectedBlocks());t.change((function(t){for(var n=i[i.length-1],r=n.nextSibling;r&&"listItem"==r.name&&r.getAttribute("listIndent")>n.getAttribute("listIndent");)i.push(r),r=r.nextSibling;e._indentBy<0&&(i=i.reverse());var o,a=k(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.getAttribute("listIndent")+e._indentBy;l<0?t.rename(s,"paragraph"):t.setAttribute("listIndent",l,s)}}catch(c){a.e(c)}finally{a.f()}e.fire("_executeCleanup",i)}))}},{key:"_checkEnabled",value:function(){var e=Hu(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){for(var t=e.getAttribute("listIndent"),n=e.getAttribute("listType"),i=e.previousSibling;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=t;){if(i.getAttribute("listIndent")==t)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}]),n}(Fu);function Pm(e,t){var n=t.mapper,i=t.writer,r="numbered"==e.getAttribute("listType")?"ol":"ul",o=function(e){var t=e.createContainerElement("li");return t.getFillerOffset=Nm,t}(i),a=i.createContainerElement(r,null);return i.insert(i.createPositionAt(a,0),o),n.bindElements(e,o),o}function Em(e,t,n,i){var r=t.parent,o=n.mapper,a=n.writer,s=o.toViewPosition(i.createPositionBefore(e)),l=Mm(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),c=e.previousSibling;if(l&&l.getAttribute("listIndent")==e.getAttribute("listIndent")){var u=o.toViewElement(l);s=a.breakContainer(a.createPositionAfter(u))}else if(c&&"listItem"==c.name){s=o.toViewPosition(i.createPositionAt(c,"end"));var d=o.findMappedViewAncestor(s),h=function(e){var t,n=k(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if("ul"==i.name||"ol"==i.name)return i}}catch(r){n.e(r)}finally{n.f()}return null}(d);s=h?a.createPositionBefore(h):a.createPositionAt(d,"end")}else s=o.toViewPosition(i.createPositionBefore(e));if(s=Om(s),a.insert(s,r),c&&"listItem"==c.name){var f,v=o.toViewElement(c),p=a.createRange(a.createPositionAt(v,0),s).getWalker({ignoreElementEnd:!0}),m=k(p);try{for(m.s();!(f=m.n()).done;){var g=f.value;if(g.item.is("element","li")){var b=a.breakContainer(a.createPositionBefore(g.item)),y=g.item.parent,w=a.createPositionAt(t,"end");Sm(a,w.nodeBefore,w.nodeAfter),a.move(a.createRangeOn(y),w),p.position=b}}}catch(E){m.e(E)}finally{m.f()}}else{var _=r.nextSibling;if(_&&(_.is("element","ul")||_.is("element","ol"))){var x,C=null,A=k(_.getChildren());try{for(A.s();!(x=A.n()).done;){var T=x.value,P=o.toModelElement(T);if(!(P&&P.getAttribute("listIndent")>e.getAttribute("listIndent")))break;C=T}}catch(E){A.e(E)}finally{A.f()}C&&(a.breakContainer(a.createPositionAfter(C)),a.move(a.createRangeOn(C.parent),a.createPositionAt(t,"end")))}}Sm(a,r,r.nextSibling),Sm(a,r.previousSibling,r)}function Sm(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function Om(e){return e.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))}function Mm(e,t){for(var n=!!t.sameIndent,i=!!t.smallerIndent,r=t.listIndent,o=e;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&r==a||i&&r>a)return o;o=o.previousSibling}return null}function Im(e,t,n,i){e.ui.componentFactory.add(t,(function(r){var o=e.commands.get(t),a=new _u(r);return a.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){e.execute(t),e.editing.view.focus()})),a}))}function Nm(){var e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:lr.call(this)}function Rm(e){return function(t,n,i){var r=i.consumable;if(r.test(n.item,"insert")&&r.test(n.item,"attribute:listType")&&r.test(n.item,"attribute:listIndent")){r.consume(n.item,"insert"),r.consume(n.item,"attribute:listType"),r.consume(n.item,"attribute:listIndent");var o=n.item;Em(o,Pm(o,i),i,e)}}}function Dm(e,t,n){if(n.consumable.consume(t.item,"attribute:listType")){var i=n.mapper.toViewElement(t.item),r=n.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));var o=i.parent,a="numbered"==t.attributeNewValue?"ol":"ul";r.rename(a,o)}}function Lm(e,t,n){var i=n.mapper.toViewElement(t.item).parent,r=n.writer;Sm(r,i,i.nextSibling),Sm(r,i.previousSibling,i);var o,a=k(t.item.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;n.consumable.consume(s,"insert")}}catch(l){a.e(l)}finally{a.f()}}function zm(e,t,n){if("listItem"!=t.item.name){for(var i=n.mapper.toViewPosition(t.range.start),r=n.writer,o=[];("ul"==i.parent.name||"ol"==i.parent.name)&&(i=r.breakContainer(i),"li"==i.parent.name);){var a=i,s=r.createPositionAt(i.parent,"end");if(!a.isEqual(s)){var l=r.remove(r.createRange(a,s));o.push(l)}i=r.createPositionAfter(i.parent)}if(o.length>0){for(var c=0;c<o.length;c++){var u=i.nodeBefore;if(i=r.insert(i,o[c]).end,c>0){var d=Sm(r,u,u.nextSibling);d&&d.parent==u&&i.offset--}}Sm(r,i.nodeBefore,i.nodeAfter)}}}function jm(e,t,n){var i=n.mapper.toViewPosition(t.position),r=i.nodeBefore,o=i.nodeAfter;Sm(n.writer,r,o)}function Vm(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){var i=n.writer,r=i.createElement("listItem"),o=function(e){for(var t=0,n=e.parent;n;){if(n.is("element","li"))t++;else{var i=n.previousSibling;i&&i.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);i.setAttribute("listIndent",o,r);var a=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(i.setAttribute("listType",a,r),!n.safeInsert(r,t.modelCursor))return;var s=function(e,t,n){var i,r=n.writer,o=n.schema,a=r.createPositionAfter(e),s=k(t);try{for(s.s();!(i=s.n()).done;){var l=i.value;if("ul"==l.name||"ol"==l.name)a=n.convertItem(l,a).modelCursor;else{var c=n.convertItem(l,r.createPositionAt(e,"end")),u=c.modelRange.start.nodeAfter;u&&u.is("element")&&!o.checkChild(e,u.name)&&(e=c.modelCursor.parent.is("element","listItem")?c.modelCursor.parent:$m(c.modelCursor),a=r.createPositionAfter(e))}}}catch(d){s.e(d)}finally{s.f()}return a}(r,t.viewItem.getChildren(),n);t.modelRange=i.createRange(t.modelCursor,s),n.updateConversionResult(r,t)}}function Bm(e,t,n){if(n.consumable.test(t.viewItem,{name:!0}))for(var i=Array.from(t.viewItem.getChildren()),r=0,o=i;r<o.length;r++){var a=o[r];!a.is("element","li")&&!qm(a)&&a._remove()}}function Fm(e,t,n){if(n.consumable.test(t.viewItem,{name:!0})){if(0===t.viewItem.childCount)return;var i,r=u(t.viewItem.getChildren()),o=!1,a=!0,s=k(r);try{for(s.s();!(i=s.n()).done;){var l=i.value;o&&!qm(l)&&l._remove(),l.is("$text")?(a&&(l._data=l.data.replace(/^\s+/,"")),l.nextSibling&&!qm(l.nextSibling)||(l._data=l.data.replace(/\s+$/,""))):qm(l)&&(o=!0),a=!1}}catch(c){s.e(c)}finally{s.f()}}}function Um(e){return function(t,n){if(!n.isPhantom){var i=n.modelPosition.nodeBefore;if(i&&i.is("element","listItem")){var r,o=n.mapper.toViewElement(i),a=o.getAncestors().find(qm),s=e.createPositionAt(o,0).getWalker(),l=k(s);try{for(l.s();!(r=l.n()).done;){var c=r.value;if("elementStart"==c.type&&c.item.is("element","li")){n.viewPosition=c.previousPosition;break}if("elementEnd"==c.type&&c.item==a){n.viewPosition=c.nextPosition;break}}}catch(u){l.e(u)}finally{l.f()}}}}}function Hm(e,t){var n,i=v(t,2),r=i[0],o=i[1],a=r.is("documentFragment")?r.getChild(0):r;if(n=o?this.createSelection(o):this.document.selection,a&&a.is("element","listItem")){var s=n.getFirstPosition(),l=null;if(s.parent.is("element","listItem")?l=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(l=s.nodeBefore),l){var c=l.getAttribute("listIndent");if(c>0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+c),a=a.nextSibling}}}function $m(e){var t,n=new Qa({startPosition:e});do{t=n.next()}while(!t.value.item.is("element","listItem"));return t.value.item}function Wm(e,t,n,i,r,o){var a,s=Mm(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),l=r.mapper,c=r.writer,d=s?s.getAttribute("listIndent"):null;if(s)if(d==e){var h=l.toViewElement(s).parent;a=c.createPositionAfter(h)}else{var f=o.createPositionAt(s,"end");a=l.toViewPosition(f)}else a=n;a=Om(a);for(var v=0,p=u(i.getChildren());v<p.length;v++){var m=p[v];qm(m)&&(a=c.move(c.createRangeOn(m),a).end,Sm(c,m,m.nextSibling),Sm(c,m.previousSibling,m))}}function qm(e){return e.is("element","ol")||e.is("element","ul")}var Ym=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,i=t.data,r=t.editing;t.model.document.registerPostFixer((function(e){return function(e,t){var n,i=e.document.differ.getChanges(),r=new Map,o=!1,a=k(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("insert"==s.type&&"listItem"==s.name)p(s.position);else if("insert"==s.type&&"listItem"!=s.name){if("$text"!=s.name){var l=s.position.nodeAfter;l.hasAttribute("listIndent")&&(t.removeAttribute("listIndent",l),o=!0),l.hasAttribute("listType")&&(t.removeAttribute("listType",l),o=!0),l.hasAttribute("listStyle")&&(t.removeAttribute("listStyle",l),o=!0);var c,u=k(Array.from(e.createRangeIn(l)).filter((function(e){return e.item.is("element","listItem")})));try{for(u.s();!(c=u.n()).done;){var d=c.value;p(d.previousPosition)}}catch(b){u.e(b)}finally{u.f()}}p(s.position.getShiftedBy(s.length))}else"remove"==s.type&&"listItem"==s.name?p(s.position):("attribute"==s.type&&"listIndent"==s.attributeKey||"attribute"==s.type&&"listType"==s.attributeKey)&&p(s.range.start)}}catch(b){a.e(b)}finally{a.f()}var h,f=k(r.values());try{for(f.s();!(h=f.n()).done;){var v=h.value;m(v),g(v)}}catch(b){f.e(b)}finally{f.f()}return o;function p(e){var t=e.nodeBefore;if(t&&t.is("element","listItem")){var n=t;if(r.has(n))return;for(var i=n.previousSibling;i&&i.is("element","listItem");i=n.previousSibling)if(n=i,r.has(n))return;r.set(t,n)}else{var o=e.nodeAfter;o&&o.is("element","listItem")&&r.set(o,o)}}function m(e){for(var n=0,i=null;e&&e.is("element","listItem");){var r=e.getAttribute("listIndent");if(r>n){var a=void 0;null===i?(i=r-n,a=n):(i>r&&(i=r),a=r-i),t.setAttribute("listIndent",a,e),o=!0}else i=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function g(e){for(var n=[],i=null;e&&e.is("element","listItem");){var r=e.getAttribute("listIndent");if(i&&i.getAttribute("listIndent")>r&&(n=n.slice(0,r+1)),0!=r)if(n[r]){var a=n[r];e.getAttribute("listType")!=a&&(t.setAttribute("listType",a,e),o=!0)}else n[r]=e.getAttribute("listType");i=e,e=e.nextSibling}}}(t.model,e)})),r.mapper.registerViewToModelLength("li",Gm),i.mapper.registerViewToModelLength("li",Gm),r.mapper.on("modelToViewPosition",Um(r.view)),r.mapper.on("viewToModelPosition",(n=t.model,function(e,t){var i=t.viewPosition,r=i.parent,o=t.mapper;if("ul"==r.name||"ol"==r.name){if(i.isAtEnd){var a=o.toModelElement(i.nodeBefore),s=o.getModelLength(i.nodeBefore);t.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var l=o.toModelElement(i.nodeAfter);t.modelPosition=n.createPositionBefore(l)}e.stop()}else if("li"==r.name&&i.nodeBefore&&("ul"==i.nodeBefore.name||"ol"==i.nodeBefore.name)){for(var c=o.toModelElement(r),u=1,d=i.nodeBefore;d&&qm(d);)u+=o.getModelLength(d),d=d.previousSibling;t.modelPosition=n.createPositionBefore(c).getShiftedBy(u),e.stop()}})),i.mapper.on("modelToViewPosition",Um(r.view)),t.conversion.for("editingDowncast").add((function(e){e.on("insert",zm,{priority:"high"}),e.on("insert:listItem",Rm(t.model)),e.on("attribute:listType:listItem",Dm,{priority:"high"}),e.on("attribute:listType:listItem",Lm,{priority:"low"}),e.on("attribute:listIndent:listItem",function(e){return function(t,n,i){if(i.consumable.consume(n.item,"attribute:listIndent")){var r=i.mapper.toViewElement(n.item),o=i.writer;o.breakContainer(o.createPositionBefore(r)),o.breakContainer(o.createPositionAfter(r));var a=r.parent,s=a.previousSibling,l=o.createRangeOn(a);o.remove(l),s&&s.nextSibling&&Sm(o,s,s.nextSibling),Wm(n.attributeOldValue+1,n.range.start,l.start,r,i,e),Em(n.item,r,i,e);var c,u=k(n.item.getChildren());try{for(u.s();!(c=u.n()).done;){var d=c.value;i.consumable.consume(d,"insert")}}catch(h){u.e(h)}finally{u.f()}}}}(t.model)),e.on("remove:listItem",function(e){return function(t,n,i){var r=i.mapper.toViewPosition(n.position).getLastMatchingPosition((function(e){return!e.item.is("element","li")})).nodeAfter,o=i.writer;o.breakContainer(o.createPositionBefore(r)),o.breakContainer(o.createPositionAfter(r));var a=r.parent,s=a.previousSibling,l=o.createRangeOn(a),c=o.remove(l);s&&s.nextSibling&&Sm(o,s,s.nextSibling),Wm(i.mapper.toModelElement(r).getAttribute("listIndent")+1,n.position,l.start,r,i,e);var u,d=k(o.createRangeIn(c).getItems());try{for(d.s();!(u=d.n()).done;){var h=u.value;i.mapper.unbindViewElement(h)}}catch(f){d.e(f)}finally{d.f()}t.stop()}}(t.model)),e.on("remove",jm,{priority:"low"})})),t.conversion.for("dataDowncast").add((function(e){e.on("insert",zm,{priority:"high"}),e.on("insert:listItem",Rm(t.model))})),t.conversion.for("upcast").add((function(e){e.on("element:ul",Bm,{priority:"high"}),e.on("element:ol",Bm,{priority:"high"}),e.on("element:li",Fm,{priority:"high"}),e.on("element:li",Vm)})),t.model.on("insertContent",Hm,{priority:"high"}),t.commands.add("numberedList",new xm(t,"numbered")),t.commands.add("bulletedList",new xm(t,"bulleted")),t.commands.add("indentList",new Tm(t,"forward")),t.commands.add("outdentList",new Tm(t,"backward"));var o=r.view.document;this.listenTo(o,"enter",(function(t,n){var i=e.editor.model.document,r=i.selection.getLastPosition().parent;i.selection.isCollapsed&&"listItem"==r.name&&r.isEmpty&&(e.editor.execute("outdentList"),n.preventDefault(),t.stop())})),this.listenTo(o,"delete",(function(t,n){if("backward"===n.direction){var i=e.editor.model.document.selection;if(i.isCollapsed){var r=i.getFirstPosition();if(r.isAtStart){var o=r.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(e.editor.execute("outdentList"),n.preventDefault(),t.stop()))}}}}),{priority:"high"});var a=function(t){return function(n,i){e.editor.commands.get(t).isEnabled&&(e.editor.execute(t),i())}};t.keystrokes.set("Tab",a("indentList")),t.keystrokes.set("Shift+Tab",a("outdentList"))}},{key:"afterInit",value:function(){var e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[yv]}}]),n}(Vu);function Gm(e){var t,n=1,i=k(e.getChildren());try{for(i.s();!(t=i.n()).done;){var r=t.value;if("ul"==r.name||"ol"==r.name){var o,a=k(r.getChildren());try{for(a.s();!(o=a.n()).done;){var s=o.value;n+=Gm(s)}}catch(l){a.e(l)}finally{a.f()}}}}catch(l){i.e(l)}finally{i.f()}return n}var Km=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor.t;Im(this.editor,"numberedList",e("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),Im(this.editor,"bulletedList",e("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>')}}]),n}(Vu);function Jm(e,t){return function(e){e.on("attribute:url:media",n)};function n(n,i,r){if(r.consumable.consume(i.item,n.name)){var o=i.attributeNewValue,a=r.writer,s=r.mapper.toViewElement(i.item),l=u(s.getChildren()).find((function(e){return e.getCustomProperty("media-content")}));a.remove(l);var c=e.getMediaViewElement(a,o,t);a.insert(a.createPositionAt(s,0),c)}}}function Qm(e,t,n,i){var r=e.createContainerElement("figure",{class:"media"});return e.insert(e.createPositionAt(r,0),t.getMediaViewElement(e,n,i)),r}function Zm(e){var t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function Xm(e,t,n){e.change((function(i){var r=i.createElement("media",{url:t});e.insertContent(r,n),i.setSelection(r,"on")}))}var eg=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,i=t.getFirstPosition(),r=Zm(t),o=i.parent;o!=o.root&&(o=o.parent),this.value=r?r.getAttribute("url"):null,this.isEnabled=n.checkChild(o,"media")}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection,i=Zm(n);if(i)t.change((function(t){t.setAttribute("url",e,i)}));else{var r=Id(n,t);Xm(t,e,r)}}}]),n}(Fu),tg=function(){function e(t,n){w(this,e);var i=n.providers,r=n.extraProviders||[],o=new Set(n.removeProviders),a=i.concat(r).filter((function(e){var t=e.name;return t?!o.has(t):(console.warn(Object(jn.a)("media-embed-no-provider-name: The configured media provider has no name and cannot be used."),{provider:e}),!1)}));this.locale=t,this.providerDefinitions=a}return x(e,[{key:"hasMedia",value:function(e){return!!this._getMedia(e)}},{key:"getMediaViewElement",value:function(e,t,n){return this._getMedia(t).getViewElement(e,n)}},{key:"_getMedia",value:function(e){if(!e)return new ng(this.locale);e=e.trim();var t,n=k(this.providerDefinitions);try{for(n.s();!(t=n.n()).done;){var i=t.value,r=i.html,o=i.url;Array.isArray(o)||(o=[o]);var a,s=k(o);try{for(s.s();!(a=s.n()).done;){var l=a.value,c=this._getUrlMatches(e,l);if(c)return new ng(this.locale,e,c,r)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){n.e(u)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(e,t){var n=e.match(t);if(n)return n;var i=e.replace(/^https?:\/\//,"");return n=i.match(t),n||(i=i.replace(/^www\./,""),n=i.match(t),n||null)}}]),e}(),ng=function(){function e(t,n,i,r){w(this,e),this.url=this._getValidUrl(n),this._t=t.t,this._match=i,this._previewRenderer=r}return x(e,[{key:"getViewElement",value:function(e,t){var n,i={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(i["data-oembed-url"]=this.url),t.renderForEditingView&&(i.class="ck-media__wrapper");var r=this._getPreviewHtml(t);n=e.createRawElement("div",i,(function(e){e.innerHTML=r}))}else this.url&&(i.url=this.url),n=e.createEmptyElement("oembed",i);return e.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var e=new wu,t=new yu;return e.text=this._t("Open media in new tab"),t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42",new Nc({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},e]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(e){return e?e.match(/^https?/)?e:"https://"+e:null}}]),e}();n(98);var ig=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("mediaEmbed",{providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" width="480" height="270" allowfullscreen allow="autoplay"></iframe></div>')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')}},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^youtube\.com\/embed\/([\w-]+)/,/^youtu\.be\/([\w-]+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>')}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:function(e){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/'.concat(e[1],'" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>')}},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:/^google\.com\/maps/},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),i.registry=new tg(e.locale,e.config.get("mediaEmbed")),i}return x(n,null,[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}]),x(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,i=e.conversion,r=e.config.get("mediaEmbed.previewsInData"),o=this.registry;e.commands.add("mediaEmbed",new eg(e)),t.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}),i.for("dataDowncast").elementToElement({model:"media",view:function(e,t){var n=t.writer,i=e.getAttribute("url");return Qm(n,o,i,{renderMediaPreview:i&&r})}}),i.for("dataDowncast").add(Jm(o,{renderMediaPreview:r})),i.for("editingDowncast").elementToElement({model:"media",view:function(e,t){var i=t.writer,r=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),Ed(e,t,{label:n})}(Qm(i,o,r,{renderForEditingView:!0}),i,n("media widget"))}}),i.for("editingDowncast").add(Jm(o,{renderForEditingView:!0})),i.for("upcast").elementToElement({view:{name:"oembed",attributes:{url:!0}},model:function(e,t){var n=t.writer,i=e.getAttribute("url");if(o.hasMedia(i))return n.createElement("media",{url:i})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(e,t){var n=t.writer,i=e.getAttribute("data-oembed-url");if(o.hasMedia(i))return n.createElement("media",{url:i})}})}}]),n}(Vu),rg=/^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/,og=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i._timeoutId=null,i._positionToInsert=null,i}return x(n,null,[{key:"requires",get:function(){return[fh,Yf]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}]),x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document;this.listenTo(t.plugins.get(fh),"inputTransformation",(function(){var t=n.selection.getFirstRange(),i=Kl.fromPosition(t.start);i.stickiness="toPrevious";var r=Kl.fromPosition(t.end);r.stickiness="toNext",n.once("change:data",(function(){e._embedMediaBetweenPositions(i,r),i.detach(),r.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(function(){e._timeoutId&&(Oo.window.clearTimeout(e._timeoutId),e._positionToInsert.detach(),e._timeoutId=null,e._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(e,t){var n,i=this,r=this.editor,o=r.plugins.get(ig).registry,a=new vs(e,t),s=a.getWalker({ignoreElementEnd:!0}),l="",c=k(s);try{for(c.s();!(n=c.n()).done;){var u=n.value;u.item.is("$textProxy")&&(l+=u.item.data)}}catch(d){c.e(d)}finally{c.f()}l=l.trim(),l.match(rg)&&o.hasMedia(l)&&r.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Kl.fromPosition(e),this._timeoutId=Oo.window.setTimeout((function(){r.model.change((function(e){var t;i._timeoutId=null,e.remove(a),a.detach(),"$graveyard"!==i._positionToInsert.root.rootName&&(t=i._positionToInsert),Xm(r.model,l,t),i._positionToInsert.detach(),i._positionToInsert=null}))}),100)):a.detach()}}]),n}(Vu);n(100);var ag=function(e){C(n,e);var t=A(n);function n(e,i){var r;w(this,n),r=t.call(this,i);var o=i.t;return r.focusTracker=new xc,r.keystrokes=new vc,r.urlInputView=r._createUrlInput(),r.saveButtonView=r._createButton(o("Save"),Fv,"ck-button-save"),r.saveButtonView.type="submit",r.cancelButtonView=r._createButton(o("Cancel"),Uv,"ck-button-cancel","cancel"),r._focusables=new Ic,r._focusCycler=new cu({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r._validators=e,r.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form"],tabindex:"-1"},children:[r.urlInputView,r.saveButtonView,r.cancelButtonView]}),r}return x(n,[{key:"render",value:function(){var e=this;l(N(n.prototype),"render",this).call(this),Bv({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var t=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"isValid",value:function(){this.resetFormStatus();var e,t=k(this._validators);try{for(t.s();!(e=t.n()).done;){var n=e.value,i=n(this);if(i)return this.urlInputView.errorText=i,!1}}catch(r){t.e(r)}finally{t.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var e=this,t=this.locale.t,n=new zv(this.locale,Vv),i=n.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),n.label=t("Media URL"),n.infoText=this._urlInputViewInfoDefault,i.placeholder="https://example.com",i.on("input",(function(){n.infoText=i.element.value?e._urlInputViewInfoTip:e._urlInputViewInfoDefault})),n}},{key:"_createButton",value:function(e,t,n,i){var r=new _u(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.extendTemplate({attributes:{class:n}}),i&&r.delegate("execute").to(this,i),r}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(e){this.urlInputView.fieldView.element.value=e.trim()}}]),n}(Zc),sg=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("mediaEmbed"),i=t.plugins.get(ig).registry;t.ui.componentFactory.add("mediaEmbed",(function(r){var o=Ou(r),a=new ag(function(e,t){return[function(t){if(!t.url.length)return e("The URL must not be empty.")},function(n){if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(t.t,i),t.locale);return e._setUpDropdown(o,a,n,t),e._setUpForm(o,a,n),o}))}},{key:"_setUpDropdown",value:function(e,t,n){var i=this.editor,r=i.t,o=e.buttonView;function a(){i.editing.view.focus(),e.isOpen=!1}e.bind("isEnabled").to(n),e.panelView.children.add(t),o.set({label:r("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0}),o.on("open",(function(){t.url=n.value||"",t.urlInputView.fieldView.select(),t.focus()}),{priority:"low"}),e.on("submit",(function(){t.isValid()&&(i.execute("mediaEmbed",t.url),a())})),e.on("change:isOpen",(function(){return t.resetFormStatus()})),e.on("cancel",(function(){return a()}))}},{key:"_setUpForm",value:function(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),t.saveButtonView.bind("isEnabled").to(n)}}],[{key:"requires",get:function(){return[ig]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}]),n}(Vu);function lg(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;t>r?i.setAttribute(e,t,n):i.removeAttribute(e,n)}function cg(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.createElement("tableCell",n);return e.insertElement("paragraph",i),e.insert(i,t),i}function ug(e,t){var n=t.parent.parent,i=parseInt(n.getAttribute("headingColumns")||0),r=e.getCellLocation(t),o=r.column;return!!i&&o<i}function dg(){return function(e){e.on("element:table",(function(e,t,n){var i=t.viewItem;if(n.consumable.test(i,{name:!0})){var r=function(e){for(var t,n={headingRows:0,headingColumns:0},i=[],r=[],o=0,a=Array.from(e.getChildren());o<a.length;o++){var s=a[o];if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name){"thead"!==s.name||t||(t=s);var l,c=Array.from(s.getChildren()).filter((function(e){return e.is("element","tr")})),u=k(c);try{for(u.s();!(l=u.n()).done;){var d=l.value;if("thead"===d.parent.name&&d.parent===t)n.headingRows++,i.push(d);else{r.push(d);var h=fg(d);h>n.headingColumns&&(n.headingColumns=h)}}}catch(f){u.e(f)}finally{u.f()}}}return n.rows=[].concat(i,r),n}(i),o=r.rows,a=r.headingRows,s=r.headingColumns,l={};s&&(l.headingColumns=s),a&&(l.headingRows=a);var c=n.writer.createElement("table",l);if(n.safeInsert(c,t.modelCursor)){if(n.consumable.consume(i,{name:!0}),o.forEach((function(e){return n.convertItem(e,n.writer.createPositionAt(c,"end"))})),c.isEmpty){var u=n.writer.createElement("tableRow");n.writer.insert(u,n.writer.createPositionAt(c,"end")),cg(n.writer,n.writer.createPositionAt(u,"end"))}n.updateConversionResult(c,t)}}}))}}function hg(e){return function(t){t.on("element:"+e,(function(e,t,n){if(t.modelRange){var i=t.modelRange.start.nodeAfter;if(!i.childCount){var r=n.writer.createPositionAt(i,0);n.writer.insertElement("paragraph",r)}}}),{priority:"low"})}}function fg(e){for(var t=0,n=0,i=Array.from(e.getChildren()).filter((function(e){return"th"===e.name||"td"===e.name}));n<i.length&&"th"===i[n].name;){var r=i[n];t+=parseInt(r.getAttribute("colspan")||1),n++}return t}n(102);var vg=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};w(this,e),this._table=t,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}return x(e,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var e=this._table.getChild(this._row);if(!e||this._isOverEndRow())return{done:!0};if(this._isOverEndColumn())return this._advanceToNextRow();var t=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(t=this._formatOutValue(n.cell,n.row,n.column));else{var i=e.getChild(this._cellIndex);if(!i)return this._advanceToNextRow();var r=parseInt(i.getAttribute("colspan")||1),o=parseInt(i.getAttribute("rowspan")||1);(r>1||o>1)&&this._recordSpans(i,o,r),this._shouldSkipSlot()||(t=this._formatOutValue(i)),this._nextCellAtColumn=this._column+r}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,t||this.next()}},{key:"skipRow",value:function(e){this._skipRows.add(e)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new pg(this,e,t,n)}}},{key:"_shouldSkipSlot",value:function(){var e=this._skipRows.has(this._row),t=this._row<this._startRow,n=this._column<this._startColumn,i=void 0!==this._endColumn&&this._column>this._endColumn;return e||t||n||i}},{key:"_getSpanned",value:function(){var e=this._spannedCells.get(this._row);return e&&e.get(this._column)||null}},{key:"_recordSpans",value:function(e,t,n){for(var i={cell:e,row:this._row,column:this._column},r=this._row;r<this._row+t;r++)for(var o=this._column;o<this._column+n;o++)r==this._row&&o==this._column||this._markSpannedCell(r,o,i)}},{key:"_markSpannedCell",value:function(e,t,n){this._spannedCells.has(e)||this._spannedCells.set(e,new Map),this._spannedCells.get(e).set(t,n)}}]),e}(),pg=function(){function e(t,n,i,r){w(this,e),this.cell=n,this.row=t._row,this.column=t._column,this.cellAnchorRow=i,this.cellAnchorColumn=r,this._cellIndex=t._cellIndex,this._table=t._table}return x(e,[{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}},{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}}]),e}();function mg(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){return t.on("insert:table",(function(t,n,i){var r=n.item;if(i.consumable.consume(r,"insert")){i.consumable.consume(r,"attribute:headingRows:table"),i.consumable.consume(r,"attribute:headingColumns:table");var o,a,s,l=e&&e.asWidget,c=i.writer.createContainerElement("figure",{class:"table"}),u=i.writer.createContainerElement("table");i.writer.insert(i.writer.createPositionAt(c,0),u),l&&(a=c,(s=i.writer).setCustomProperty("table",!0,a),o=Ed(a,s,{hasSelectionHandle:!0}));var d,h=new vg(r),f={headingRows:r.getAttribute("headingRows")||0,headingColumns:r.getAttribute("headingColumns")||0},v=new Map,p=k(h);try{for(p.s();!(d=p.n()).done;){var m=d.value,g=m.row,b=m.cell,y=r.getChild(g),w=v.get(g)||bg(u,y,g,f,i);v.set(g,w),i.consumable.consume(b,"insert"),kg(m,f,i.writer.createPositionAt(w,"end"),i,e)}}catch(P){p.e(P)}finally{p.f()}var _,x=k(r.getChildren());try{for(x.s();!(_=x.n()).done;){var C=_.value,A=C.index;v.has(A)||v.set(A,bg(u,C,A,f,i))}}catch(P){x.e(P)}finally{x.f()}var T=i.mapper.toViewPosition(n.range.start);i.mapper.bindElements(r,l?o:c),i.writer.insert(T,l?o:c)}}))}}function gg(e,t,n){var i=e.cell,r=yg(e,t),o=n.mapper.toViewElement(i);o&&o.name!==r&&function(e,t,n){var i=n.writer,r=n.mapper.toViewElement(e),o=Md(i.createEditableElement(t,r.getAttributes()),i);Sd(o,i,(function(e,t,n){return n.addClass(xg(t.classes),e)}),(function(e,t,n){return n.removeClass(xg(t.classes),e)})),i.insert(i.createPositionAfter(r),o),i.move(i.createRangeIn(r),i.createPositionAt(o,0)),i.remove(i.createRangeOn(r)),n.mapper.unbindViewElement(r),n.mapper.bindElements(e,o)}(i,r,n)}function kg(e,t,n,i,r){var o=r&&r.asWidget,a=yg(e,t),s=o?Md(i.writer.createEditableElement(a),i.writer):i.writer.createContainerElement(a);o&&Sd(s,i.writer,(function(e,t,n){return n.addClass(xg(t.classes),e)}),(function(e,t,n){return n.removeClass(xg(t.classes),e)}));var l=e.cell,c=l.getChild(0),d=1===l.childCount&&"paragraph"===c.name;if(i.writer.insert(n,s),d&&!u(c.getAttributeKeys()).length){var h=l.getChild(0),f=i.writer.createPositionAt(s,"end");if(i.consumable.consume(h,"insert"),o){var v=i.writer.createContainerElement("span",{style:"display:inline-block"});i.mapper.bindElements(h,v),i.writer.insert(f,v),i.mapper.bindElements(l,s)}else i.mapper.bindElements(l,s),i.mapper.bindElements(h,s)}else i.mapper.bindElements(l,s)}function bg(e,t,n,i,r){r.consumable.consume(t,"insert");var o=t.isEmpty?r.writer.createEmptyElement("tr"):r.writer.createContainerElement("tr");r.mapper.bindElements(t,o);var a=i.headingRows,s=function(e,t,n){var i=wg(e,t);return i||function(e,t,n){var i=n.writer.createContainerElement(e),r=n.writer.createPositionAt(t,"tbody"==e?"end":0);return n.writer.insert(r,i),i}(e,t,n)}(function(e,t){return e<t.headingRows?"thead":"tbody"}(n,i),e,r),l=a>0&&n>=a?n-a:n,c=r.writer.createPositionAt(s,l);return r.writer.insert(c,o),o}function yg(e,t){var n=e.row,i=e.column,r=t.headingColumns,o=t.headingRows;return o&&o>n||r&&r>i?"th":"td"}function wg(e,t){var n,i=k(t.getChildren());try{for(i.s();!(n=i.n()).done;){var r=n.value;if(r.name==e)return r}}catch(o){i.e(o)}finally{i.f()}}function _g(e,t,n){var i=wg(e,t);i&&0===i.childCount&&n.writer.remove(n.writer.createRangeOn(i))}function xg(e){return Array.isArray(e)?e:[e]}var Cg=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema,i=function(e){var t=e.parent;return t===t.root?t:t.parent}(t.getFirstPosition());this.isEnabled=n.checkChild(i,"table")}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document.selection,i=this.editor.plugins.get("TableUtils"),r=Id(n,t);t.change((function(n){var o=i.createTable(n,e);t.insertContent(o,r),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}]),n}(Fu);function Ag(e){var t,n=[],i=k(Mg(e.getRanges()));try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.getContainedElement();o&&o.is("element","tableCell")&&n.push(o)}}catch(a){i.e(a)}finally{i.f()}return n}function Tg(e){var t,n=[],i=k(e.getRanges());try{for(i.s();!(t=i.n()).done;){var r=t.value,o=r.start.findAncestor("tableCell");o&&n.push(o)}}catch(a){i.e(a)}finally{i.f()}return n}function Pg(e){var t=Ag(e);return t.length?t:Tg(e)}function Eg(e){return Ig(e.map((function(e){return e.parent.index})))}function Sg(e){var t=e[0].findAncestor("table");return Ig(u(new vg(t)).filter((function(t){return e.includes(t.cell)})).map((function(e){return e.column})))}function Og(e,t){if(e.length<2||!function(e){var t=e[0].findAncestor("table"),n=Eg(e),i=parseInt(t.getAttribute("headingRows")||0);if(!Rg(n,i))return!1;var r=parseInt(t.getAttribute("headingColumns")||0);return Rg(Sg(e),r)}(e))return!1;var n,i=new Set,r=new Set,o=0,a=k(e);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=t.getCellLocation(s),c=l.row,d=l.column,h=parseInt(s.getAttribute("rowspan")||1),f=parseInt(s.getAttribute("colspan")||1);i.add(c),r.add(d),h>1&&i.add(c+h-1),f>1&&r.add(d+f-1),o+=h*f}}catch(v){a.e(v)}finally{a.f()}return function(e,t){var n=Array.from(e.values()),i=Array.from(t.values()),r=Math.max.apply(Math,u(n)),o=Math.min.apply(Math,u(n)),a=Math.max.apply(Math,u(i)),s=Math.min.apply(Math,u(i));return(r-o+1)*(a-s+1)}(i,r)==o}function Mg(e){return Array.from(e).sort(Ng)}function Ig(e){var t=e.sort((function(e,t){return e-t}));return{first:t[0],last:t[t.length-1]}}function Ng(e,t){var n=e.start,i=t.start;return n.isBefore(i)?-1:1}function Rg(e,t){var n=e.first,i=e.last;return n<t===i<t}var Dg=function(e){C(n,e);var t=A(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w(this,n),i=t.call(this,e),i.order=r.order||"below",i}return x(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),i="above"===this.order,r=Pg(t),o=Eg(r),a=i?o.first:o.last,s=r[0].findAncestor("table");n.insertRows(s,{at:i?a:a+1,copyStructureFromAbove:!i})}}]),n}(Fu),Lg=function(e){C(n,e);var t=A(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w(this,n),i=t.call(this,e),i.order=r.order||"right",i}return x(n,[{key:"refresh",value:function(){var e=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!e}},{key:"execute",value:function(){var e=this.editor,t=e.model.document.selection,n=e.plugins.get("TableUtils"),i="left"===this.order,r=Pg(t),o=Sg(r),a=i?o.first:o.last,s=r[0].findAncestor("table");n.insertColumns(s,{columns:1,at:i?a:a+1})}}]),n}(Fu),zg=function(e){C(n,e);var t=A(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return w(this,n),i=t.call(this,e),i.direction=r.direction||"horizontally",i}return x(n,[{key:"refresh",value:function(){var e=Pg(this.editor.model.document.selection);this.isEnabled=1===e.length}},{key:"execute",value:function(){var e=Pg(this.editor.model.document.selection)[0],t="horizontally"===this.direction,n=this.editor.plugins.get("TableUtils");t?n.splitCellHorizontally(e,2):n.splitCellVertically(e,2)}}]),n}(Fu);function jg(e,t,n){for(var i=t.startRow,r=t.startColumn,o=t.endRow,a=t.endColumn,s=n.createElement("table"),l=o-i+1,c=0;c<l;c++)n.insertElement("tableRow",s,"end");var d,h=u(new vg(e,{startRow:i,endRow:o,startColumn:r,endColumn:a,includeAllSlots:!0})),f=k(h);try{for(f.s();!(d=f.n()).done;){var v=d.value,p=v.row,m=v.column,g=v.cell,b=v.isAnchor,y=v.cellAnchorRow,w=v.cellAnchorColumn,_=p-i,x=s.getChild(_);if(b){var C=n.cloneElement(g);n.append(C,x),Hg(C,p,m,o,a,n)}else(y<i||w<r)&&cg(n,n.createPositionAt(x,"end"))}}catch(A){f.e(A)}finally{f.f()}return function(e,t,n,i,r){var o=parseInt(t.getAttribute("headingRows")||0);o>0&&lg("headingRows",o-n,e,r,0);var a=parseInt(t.getAttribute("headingColumns")||0);a>0&&lg("headingColumns",a-i,e,r,0)}(s,e,i,r,n),s}function Vg(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=[],o=new vg(e,{startRow:i,endRow:t-1}),a=k(o);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.row,c=s.cellHeight,u=l+c-1;l<t&&t<=u&&r.push(s)}}catch(d){a.e(d)}finally{a.f()}return r}function Bg(e,t,n){var i=e.parent,r=i.parent,o=i.index,a=t-o,s={},l=parseInt(e.getAttribute("rowspan"))-a;l>1&&(s.rowspan=l);var c=parseInt(e.getAttribute("colspan")||1);c>1&&(s.colspan=c);var d,h,f=o+a,v=u(new vg(r,{startRow:o,endRow:f,includeAllSlots:!0})),p=null,m=k(v);try{for(m.s();!(h=m.n()).done;){var g=h.value,b=g.row,y=g.column,w=g.cell;w===e&&void 0===d&&(d=y),void 0!==d&&d===y&&b===f&&(p=cg(n,g.getPositionBefore(),s))}}catch(_){m.e(_)}finally{m.f()}return lg("rowspan",a,e,n),p}function Fg(e,t){var n,i=[],r=new vg(e),o=k(r);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=a.column,l=a.cellWidth,c=s+l-1;s<t&&t<=c&&i.push(a)}}catch(u){o.e(u)}finally{o.f()}return i}function Ug(e,t,n,i){var r=n-t,o={},a=parseInt(e.getAttribute("colspan"))-r;a>1&&(o.colspan=a);var s=parseInt(e.getAttribute("rowspan")||1);s>1&&(o.rowspan=s);var l=cg(i,i.createPositionAfter(e),o);return lg("colspan",r,e,i),l}function Hg(e,t,n,i,r,o){var a=parseInt(e.getAttribute("colspan")||1),s=parseInt(e.getAttribute("rowspan")||1);n+a-1>r&&lg("colspan",r-n+1,e,o,1),t+s-1>i&&lg("rowspan",i-t+1,e,o,1)}function $g(e,t){var n,i=t.getColumns(e),r=new Array(i).fill(0),o=k(new vg(e));try{for(o.s();!(n=o.n()).done;){var a=n.value.column;r[a]++}}catch(c){o.e(c)}finally{o.f()}var s=r.reduce((function(e,t,n){return t?e:[].concat(u(e),[n])}),[]);if(s.length>0){var l=s[s.length-1];return t.removeColumns(e,{at:l}),!0}return!1}function Wg(e,t){for(var n=[],i=0;i<e.childCount;i++)e.getChild(i).isEmpty&&n.push(i);if(n.length>0){var r=n[n.length-1];return t.removeRows(e,{at:r}),!0}return!1}function qg(e,t){$g(e,t)||Wg(e,t)}function Yg(e,t){var n=Array.from(new vg(e,{startColumn:t.firstColumn,endColumn:t.lastColumn,row:t.lastRow}));if(n.every((function(e){var t=e.cellHeight;return 1===t})))return t.lastRow;var i=n[0].cellHeight-1;return t.lastRow+i}function Gg(e,t){var n=Array.from(new vg(e,{startRow:t.firstRow,endRow:t.lastRow,column:t.lastColumn}));if(n.every((function(e){var t=e.cellWidth;return 1===t})))return t.lastColumn;var i=n[0].cellWidth-1;return t.lastColumn+i}var Kg=function(e){C(n,e);var t=A(n);function n(e,i){var r;return w(this,n),r=t.call(this,e),r.direction=i.direction,r.isHorizontal="right"==r.direction||"left"==r.direction,r}return x(n,[{key:"refresh",value:function(){var e=this._getMergeableCell();this.value=e,this.isEnabled=!!e}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=Tg(t.document.selection)[0],i=this.value,r=this.direction;t.change((function(t){var o="right"==r||"down"==r,a=o?n:i,s=o?i:n,l=s.parent;!function(e,t,n){Jg(e)||(Jg(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}(s,a,t);var c=e.isHorizontal?"colspan":"rowspan",u=parseInt(n.getAttribute(c)||1),d=parseInt(i.getAttribute(c)||1);t.setAttribute(c,u+d,a),t.setSelection(t.createRangeIn(a));var h=e.editor.plugins.get("TableUtils");qg(l.findAncestor("table"),h)}))}},{key:"_getMergeableCell",value:function(){var e=Tg(this.editor.model.document.selection)[0];if(e){var t=this.editor.plugins.get("TableUtils"),n=this.isHorizontal?function(e,t,n){var i=e.parent.parent,r="right"==t?e.nextSibling:e.previousSibling,o=(i.getAttribute("headingColumns")||0)>0;if(r){var a="right"==t?e:r,s="right"==t?r:e,l=n.getCellLocation(a),c=l.column,u=n.getCellLocation(s),d=u.column,h=parseInt(a.getAttribute("colspan")||1),f=ug(n,a),v=ug(n,s);if(!o||f==v)return c+h===d?r:void 0}}(e,this.direction,t):function(e,t){var n=e.parent,i=n.parent,r=i.getChildIndex(n);if(!("down"==t&&r===i.childCount-1||"up"==t&&0===r)){var o=parseInt(e.getAttribute("rowspan")||1),a=i.getAttribute("headingRows")||0,s="down"==t&&r+o===a,l="up"==t&&r===a;if(!a||!s&&!l){var c=parseInt(e.getAttribute("rowspan")||1),d="down"==t?r+c:r,h=u(new vg(i,{endRow:d})),f=h.find((function(t){return t.cell===e})).column,v=h.find((function(e){var n=e.row,i=e.cellHeight,r=e.column;return r===f&&("down"==t?n===d:d===n+i)}));return v&&v.cell}}}(e,this.direction);if(n){var i=this.isHorizontal?"rowspan":"colspan",r=parseInt(e.getAttribute(i)||1);return parseInt(n.getAttribute(i)||1)===r?n:void 0}}}}]),n}(Fu);function Jg(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}var Qg=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=Pg(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),i=this.editor.plugins.get("TableUtils").getRows(n)-1,r=Eg(e),o=0===r.first&&r.last===i;this.isEnabled=!o}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=Pg(t.document.selection),i=Eg(n),r=n[0],o=r.findAncestor("table"),a=this.editor.plugins.get("TableUtils").getCellLocation(r).column;t.change((function(t){var n=i.last-i.first+1;e.editor.plugins.get("TableUtils").removeRows(o,{at:i.first,rows:n});var r=function(e,t,n){var i,r=e.getChild(t)||e.getChild(e.childCount-1),o=r.getChild(0),a=0,s=k(r.getChildren());try{for(s.s();!(i=s.n()).done;){var l=i.value;if(a>n)return o;o=l,a+=parseInt(l.getAttribute("colspan")||1)}}catch(c){s.e(c)}finally{s.f()}return o}(o,i.first,a);t.setSelection(t.createPositionAt(r,0))}))}}]),n}(Fu),Zg=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=Pg(this.editor.model.document.selection),t=e[0];if(t){var n=t.findAncestor("table"),i=this.editor.plugins.get("TableUtils").getColumns(n),r=Sg(e),o=r.first,a=r.last;this.isEnabled=a-o<i-1}else this.isEnabled=!1}},{key:"execute",value:function(){var e=this,t=function(e){var t=Pg(e),n=t[0],i=t.pop(),r=[n,i];return n.isBefore(i)?r:r.reverse()}(this.editor.model.document.selection),n=v(t,2),i=n[0],r=n[1],o=i.parent.parent,a=u(new vg(o)),s={first:a.find((function(e){return e.cell===i})).column,last:a.find((function(e){return e.cell===r})).column},l=function(e,t,n,i){return parseInt(n.getAttribute("colspan")||1)>1?n:t.previousSibling||n.nextSibling?n.nextSibling||t.previousSibling:i.first?e.reverse().find((function(e){var t=e.column;return t<i.first})).cell:e.reverse().find((function(e){var t=e.column;return t>i.last})).cell}(a,i,r,s);this.editor.model.change((function(t){var n=s.last-s.first+1;e.editor.plugins.get("TableUtils").removeColumns(o,{at:s.first,columns:n}),t.setSelection(t.createPositionAt(l,0))}))}}]),n}(Fu),Xg=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=this,t=Pg(this.editor.model.document.selection),n=t.length>0;this.isEnabled=n,this.value=n&&t.every((function(t){return e._isInHeading(t,t.parent.parent)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=Pg(t.document.selection),i=n[0].findAncestor("table"),r=Eg(n),o=r.first,a=r.last,s=this.value?o:a+1,l=i.getAttribute("headingRows")||0;t.change((function(e){if(s){var t,n=Vg(i,s,s>l?l:0),r=k(n);try{for(r.s();!(t=r.n()).done;){var o=t.value.cell;Bg(o,s,e)}}catch(a){r.e(a)}finally{r.f()}}lg("headingRows",s,i,e,0)}))}}},{key:"_isInHeading",value:function(e,t){var n=parseInt(t.getAttribute("headingRows")||0);return!!n&&e.parent.index<n}}]),n}(Fu),ek=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=Pg(this.editor.model.document.selection),t=this.editor.plugins.get("TableUtils"),n=e.length>0;this.isEnabled=n,this.value=n&&e.every((function(e){return ug(t,e)}))}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(e.forceValue!==this.value){var t=this.editor.model,n=Pg(t.document.selection),i=n[0].findAncestor("table"),r=Sg(n),o=r.first,a=r.last,s=this.value?o:a+1;t.change((function(e){if(s){var t,n=Fg(i,s),r=k(n);try{for(r.s();!(t=r.n()).done;){var o=t.value,a=o.cell,l=o.column;Ug(a,l,s,e)}}catch(c){r.e(c)}finally{r.f()}}lg("headingColumns",s,i,e,0)}))}}}]),n}(Fu),tk=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"getCellLocation",value:function(e){var t,n=e.parent,i=n.parent,r=i.getChildIndex(n),o=new vg(i,{row:r}),a=k(o);try{for(a.s();!(t=a.n()).done;){var s=t.value,l=s.cell,c=s.row,u=s.column;if(l===e)return{row:c,column:u}}}catch(d){a.e(d)}finally{a.f()}}},{key:"createTable",value:function(e,t){var n=e.createElement("table");return nk(e,n,0,parseInt(t.rows)||2,parseInt(t.columns)||2),t.headingRows&&lg("headingRows",t.headingRows,n,e,0),t.headingColumns&&lg("headingColumns",t.headingColumns,n,e,0),n}},{key:"insertRows",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,i=t.at||0,r=t.rows||1,o=void 0!==t.copyStructureFromAbove,a=t.copyStructureFromAbove?i-1:i,s=this.getRows(e),l=this.getColumns(e);n.change((function(t){var n=e.getAttribute("headingRows")||0;if(n>i&&lg("headingRows",n+r,e,t,0),o||0!==i&&i!==s){var c,u=o?Math.max(i,a):i,d=new vg(e,{endRow:u}),h=new Array(l).fill(1),f=k(d);try{for(f.s();!(c=f.n()).done;){var v=c.value,p=v.row,m=v.column,g=v.cellHeight,b=v.cellWidth,y=v.cell,w=p+g-1,_=p<=a&&a<=w;p<i&&i<=w?(t.setAttribute("rowspan",g+r,y),h[m]=-b):o&&_&&(h[m]=b)}}catch(E){f.e(E)}finally{f.f()}for(var x=0;x<r;x++){var C=t.createElement("tableRow");t.insert(C,e,i);for(var A=0;A<h.length;A++){var T=h[A],P=t.createPositionAt(C,"end");T>0&&cg(t,P,T>1?{colspan:T}:null),A+=Math.abs(T)-1}}}else nk(t,e,i,r,l)}))}},{key:"insertColumns",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,r=n.at||0,o=n.columns||1;i.change((function(n){var i=e.getAttribute("headingColumns");r<i&&n.setAttribute("headingColumns",i+o,e);var a=t.getColumns(e);if(0!==r&&a!==r){var s,l=new vg(e,{column:r,includeAllSlots:!0}),c=k(l);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.row,h=u.cell,f=u.cellAnchorColumn,v=u.cellAnchorRow,p=u.cellWidth,m=u.cellHeight;if(f<r){n.setAttribute("colspan",p+o,h);for(var g=v+m-1,b=d;b<=g;b++)l.skipRow(b)}else ik(o,n,u.getPositionBefore())}}catch(x){c.e(x)}finally{c.f()}}else{var y,w=k(e.getChildren());try{for(w.s();!(y=w.n()).done;){var _=y.value;ik(o,n,n.createPositionAt(_,r?"end":0))}}catch(x){w.e(x)}finally{w.f()}}}))}},{key:"removeRows",value:function(e,t){var n=this,i=this.editor.model,r=t.rows||1,o=t.at,a=o+r-1;i.change((function(t){var i=function(e,t,n){var i,r=new Map,o=[],a=k(new vg(e,{endRow:n}));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=s.row,c=s.column,u=s.cellHeight,d=s.cell,h=l+u-1;if(l>=t&&l<=n&&h>n){var f=u-(n-l+1);r.set(c,{cell:d,rowspan:f})}if(l<t&&h>=t){var v=void 0;v=h>=n?n-t+1:h-t+1,o.push({cell:d,rowspan:u-v})}}}catch(p){a.e(p)}finally{a.f()}return{cellsToMove:r,cellsToTrim:o}}(e,o,a),r=i.cellsToMove,s=i.cellsToTrim;r.size&&function(e,t,n,i){var r,o,a=u(new vg(e,{includeAllSlots:!0,row:t})),s=e.getChild(t),l=k(a);try{for(l.s();!(o=l.n()).done;){var c=o.value,d=c.column,h=c.cell,f=c.isAnchor;if(n.has(d)){var v=n.get(d),p=v.cell,m=v.rowspan,g=r?i.createPositionAfter(r):i.createPositionAt(s,0);i.move(i.createRangeOn(p),g),lg("rowspan",m,p,i),r=p}else f&&(r=h)}}catch(b){l.e(b)}finally{l.f()}}(e,a+1,r,t);for(var l=a;l>=o;l--)t.remove(e.getChild(l));var c,d=k(s);try{for(d.s();!(c=d.n()).done;){var h=c.value,f=h.rowspan,v=h.cell;lg("rowspan",f,v,t)}}catch(p){d.e(p)}finally{d.f()}!function(e,t,n,i){var r=e.getAttribute("headingRows")||0;t<r&&lg("headingRows",n<r?r-(n-t+1):t,e,i,0)}(e,o,a,t),$g(e,n)||Wg(e,n)}))}},{key:"removeColumns",value:function(e,t){var n=this,i=this.editor.model,r=t.at,o=t.columns||1,a=t.at+o-1;i.change((function(t){!function(e,t,n){var i=e.getAttribute("headingColumns")||0;if(i&&t.first<i){var r=Math.min(i-1,t.last)-t.first+1;n.setAttribute("headingColumns",i-r,e)}}(e,{first:r,last:a},t);for(var i=a;i>=r;i--)for(var o=0,s=u(new vg(e));o<s.length;o++){var l=s[o],c=l.cell,d=l.column,h=l.cellWidth;d<=i&&h>1&&d+h>i?lg("colspan",h-1,c,t):d===i&&t.remove(c)}Wg(e,n)||$g(e,n)}))}},{key:"splitCellVertically",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,i=e.parent.parent,r=parseInt(e.getAttribute("rowspan")||1),o=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(o>1){var a=rk(o,t),s=a.newCellsSpan,l=a.updatedSpan;lg("colspan",l,e,n);var c={};s>1&&(c.colspan=s),r>1&&(c.rowspan=r),ik(o>t?t-1:o-1,n,n.createPositionAfter(e),c)}if(o<t){var d,h=t-o,f=u(new vg(i)),v=f.find((function(t){var n=t.cell;return n===e})),p=v.column,m=f.filter((function(t){var n=t.cell,i=t.cellWidth,r=t.column;return n!==e&&r===p||r<p&&r+i>p})),g=k(m);try{for(g.s();!(d=g.n()).done;){var b=d.value,y=b.cell,w=b.cellWidth;n.setAttribute("colspan",w+h,y)}}catch(C){g.e(C)}finally{g.f()}var _={};r>1&&(_.rowspan=r),ik(h,n,n.createPositionAfter(e),_);var x=i.getAttribute("headingColumns")||0;x>p&&lg("headingColumns",x+h,i,n)}}))}},{key:"splitCellHorizontally",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,i=e.parent,r=i.parent,o=r.getChildIndex(i),a=parseInt(e.getAttribute("rowspan")||1),s=parseInt(e.getAttribute("colspan")||1);n.change((function(n){if(a>1){var i=u(new vg(r,{startRow:o,endRow:o+a-1,includeAllSlots:!0})),l=rk(a,t),c=l.newCellsSpan,d=l.updatedSpan;lg("rowspan",d,e,n);var h=i.find((function(t){var n=t.cell;return n===e})),f=h.column,v={};c>1&&(v.rowspan=c),s>1&&(v.colspan=s);for(var p=0,m=i;p<m.length;p++){var g=m[p],b=g.column,y=g.row,w=b===f,_=(y+o+d)%c==0;y>=o+d&&w&&_&&ik(1,n,g.getPositionBefore(),v)}}if(a<t){var x,C=t-a,A=u(new vg(r,{startRow:0,endRow:o})),T=k(A);try{for(T.s();!(x=T.n()).done;){var P=x.value,E=P.cell,S=P.cellHeight,O=P.row;if(E!==e&&O+S>o){var M=S+C;n.setAttribute("rowspan",M,E)}}}catch(R){T.e(R)}finally{T.f()}var I={};s>1&&(I.colspan=s),nk(n,r,o+1,C,1,I);var N=r.getAttribute("headingRows")||0;N>o&&lg("headingRows",N+C,r,n)}}))}},{key:"getColumns",value:function(e){return u(e.getChild(0).getChildren()).reduce((function(e,t){return e+parseInt(t.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(e){return e.childCount}}],[{key:"pluginName",get:function(){return"TableUtils"}}]),n}(Vu);function nk(e,t,n,i,r){for(var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=0;a<i;a++){var s=e.createElement("tableRow");e.insert(s,t,n),ik(r,e,e.createPositionAt(s,"end"),o)}}function ik(e,t,n){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=0;r<e;r++)cg(t,n,i)}function rk(e,t){if(e<t)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(e/t);return{newCellsSpan:n,updatedSpan:e-n*t+n}}var ok=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=Ag(this.editor.model.document.selection);this.isEnabled=Og(e,this.editor.plugins.get(tk))}},{key:"execute",value:function(){var e=this.editor.model,t=this.editor.plugins.get(tk);e.change((function(n){var i=Ag(e.document.selection),r=i.shift(),o=function(e,t,n){var i,r=0,o=0,a=k(t);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=n.getCellLocation(s),c=l.row,u=l.column;r=lk(s,u,r,"colspan"),o=lk(s,c,o,"rowspan")}}catch(v){a.e(v)}finally{a.f()}var d=n.getCellLocation(e),h=d.row,f=d.column;return{mergeWidth:r-f,mergeHeight:o-h}}(r,i,t),a=o.mergeWidth,s=o.mergeHeight;lg("colspan",a,r,n),lg("rowspan",s,r,n);var l,c=k(i);try{for(c.s();!(l=c.n()).done;){var u=l.value;ak(u,r,n)}}catch(d){c.e(d)}finally{c.f()}qg(r.findAncestor("table"),t),n.setSelection(r,"in")}))}}]),n}(Fu);function ak(e,t,n){sk(e)||(sk(t)&&n.remove(n.createRangeIn(t)),n.move(n.createRangeIn(e),n.createPositionAt(t,"end"))),n.remove(e)}function sk(e){return 1==e.childCount&&e.getChild(0).is("element","paragraph")&&e.getChild(0).isEmpty}function lk(e,t,n,i){var r=parseInt(e.getAttribute(i)||1);return Math.max(n,t+r)}var ck=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=Pg(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){for(var e=this.editor.model,t=Pg(e.document.selection),n=Eg(t),i=t[0].findAncestor("table"),r=[],o=n.first;o<=n.last;o++){var a,s=k(i.getChild(o).getChildren());try{for(s.s();!(a=s.n()).done;){var l=a.value;r.push(e.createRangeOn(l))}}catch(c){s.e(c)}finally{s.f()}}e.change((function(e){e.setSelection(r)}))}}]),n}(Fu),uk=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"refresh",value:function(){var e=Pg(this.editor.model.document.selection);this.isEnabled=e.length>0}},{key:"execute",value:function(){var e,t=this.editor.model,n=Pg(t.document.selection),i=n[0],r=n.pop(),o=i.findAncestor("table"),a=this.editor.plugins.get("TableUtils"),s=a.getCellLocation(i),l=a.getCellLocation(r),c=Math.min(s.column,l.column),u=Math.max(s.column,l.column),d=[],h=k(new vg(o,{startColumn:c,endColumn:u}));try{for(h.s();!(e=h.n()).done;){var f=e.value;d.push(t.createRangeOn(f.cell))}}catch(v){h.e(v)}finally{h.f()}t.change((function(e){e.setSelection(d)}))}}]),n}(Fu);function dk(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=t.document.differ.getChanges(),r=!1,o=new Set,a=k(i);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=void 0;"table"==s.name&&"insert"==s.type&&(l=s.position.nodeAfter),"tableRow"!=s.name&&"tableCell"!=s.name||(l=s.position.findAncestor("table")),vk(s)&&(l=s.range.start.findAncestor("table")),l&&!o.has(l)&&(r=hk(l,e)||r,r=fk(l,e)||r,o.add(l))}}catch(c){a.e(c)}finally{a.f()}return r}(t,e)}))}function hk(e,t){var n=!1,i=function(e){var t,n=parseInt(e.getAttribute("headingRows")||0),i=e.childCount,r=[],o=k(new vg(e));try{for(o.s();!(t=o.n()).done;){var a=t.value,s=a.row,l=a.cell,c=a.cellHeight;if(!(c<2)){var u=s<n?n:i;if(s+c>u){var d=u-s;r.push({cell:l,rowspan:d})}}}}catch(h){o.e(h)}finally{o.f()}return r}(e);if(i.length){n=!0;var r,o=k(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;lg("rowspan",a.rowspan,a.cell,t,1)}}catch(s){o.e(s)}finally{o.f()}}return n}function fk(e,t){var n,i=!1,r=function(e){var t,n=new Array(e.childCount).fill(0),i=k(new vg(e,{includeAllSlots:!0}));try{for(i.s();!(t=i.n()).done;){var r=t.value.row;n[r]++}}catch(o){i.e(o)}finally{i.f()}return n}(e),o=[],a=k(r.entries());try{for(a.s();!(n=a.n()).done;){var s=v(n.value,2),l=s[0],c=s[1];c||o.push(l)}}catch(C){a.e(C)}finally{a.f()}if(o.length){i=!0;var u,d=k(o.reverse());try{for(d.s();!(u=d.n()).done;){var h=u.value;t.remove(e.getChild(h)),r.splice(h,1)}}catch(C){d.e(C)}finally{d.f()}}var f=r[0];if(!r.every((function(e){return e===f}))){var p,m=r.reduce((function(e,t){return t>e?t:e}),0),g=k(r.entries());try{for(g.s();!(p=g.n()).done;){var b=v(p.value,2),y=b[0],w=b[1],_=m-w;if(_){for(var x=0;x<_;x++)cg(t,t.createPositionAt(e.getChild(y),"end"));i=!0}}}catch(C){g.e(C)}finally{g.f()}}return i}function vk(e){var t="attribute"===e.type,n=e.attributeKey;return t&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function pk(e){e.document.registerPostFixer((function(t){return function(e,t){var n,i=t.document.differ.getChanges(),r=!1,o=k(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;"insert"==a.type&&"table"==a.name&&(r=mk(a.position.nodeAfter,e)||r),"insert"==a.type&&"tableRow"==a.name&&(r=gk(a.position.nodeAfter,e)||r),"insert"==a.type&&"tableCell"==a.name&&(r=kk(a.position.nodeAfter,e)||r),bk(a)&&(r=kk(a.position.parent,e)||r)}}catch(s){o.e(s)}finally{o.f()}return r}(t,e)}))}function mk(e,t){var n,i=!1,r=k(e.getChildren());try{for(r.s();!(n=r.n()).done;){var o=n.value;i=gk(o,t)||i}}catch(a){r.e(a)}finally{r.f()}return i}function gk(e,t){var n,i=!1,r=k(e.getChildren());try{for(r.s();!(n=r.n()).done;){var o=n.value;i=kk(o,t)||i}}catch(a){r.e(a)}finally{r.f()}return i}function kk(e,t){if(0==e.childCount)return t.insertElement("paragraph",e),!0;var n,i=Array.from(e.getChildren()).filter((function(e){return e.is("$text")})),r=k(i);try{for(r.s();!(n=r.n()).done;){var o=n.value;t.wrap(t.createRangeOn(o),"paragraph")}}catch(a){r.e(a)}finally{r.f()}return!!i.length}function bk(e){return!(!e.position||!e.position.parent.is("element","tableCell"))&&("insert"==e.type&&"$text"==e.name||"remove"==e.type)}function yk(e){e.document.registerPostFixer((function(){return function(e){var t,n=e.document.differ,i=new Set,r=0,o=k(n.getChanges());try{for(o.s();!(t=o.n()).done;){var a=t.value,s="insert"==a.type||"remove"==a.type?a.position.parent:a.range.start.parent;s.is("element","tableCell")&&("insert"==a.type&&r++,wk(s,a.type,r)&&i.add(s))}}catch(d){o.e(d)}finally{o.f()}if(i.size){var l,c=k(i.values());try{for(c.s();!(l=c.n()).done;){var u=l.value;n.refreshItem(u)}}catch(d){c.e(d)}finally{c.f()}return!0}return!1}(e)}))}function wk(e,t,n){if(!Array.from(e.getChildren()).some((function(e){return e.is("element","paragraph")})))return!1;if("attribute"==t){var i=Array.from(e.getChild(0).getAttributeKeys()).length;return 1===e.childCount&&i<2}return e.childCount<=("insert"==t?n+1:1)}function _k(e){e.document.registerPostFixer((function(){return function(e){var t,n=e.document.differ,i=new Set,r=k(n.getChanges());try{for(r.s();!(t=r.n()).done;){var o=t.value;if("attribute"==o.type){var a=o.range.start.nodeAfter;a&&a.is("element","table")&&"headingRows"==o.attributeKey&&i.add(a)}}}catch(u){r.e(u)}finally{r.f()}if(i.size){var s,l=k(i.values());try{for(l.s();!(s=l.n()).done;){var c=s.value;n.refreshItem(c)}}catch(u){l.e(u)}finally{l.f()}return!0}return!1}(e)}))}n(104);var xk=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor,t=e.model,n=t.schema,i=e.conversion;n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),n.extend("$block",{allowIn:"tableCell"}),n.addChildCheck((function(e,t){if("table"==t.name&&Array.from(e.getNames()).includes("table"))return!1})),i.for("upcast").add(dg()),i.for("editingDowncast").add(mg({asWidget:!0})),i.for("dataDowncast").add(mg()),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add((function(e){e.on("element:tr",(function(e,t){t.viewItem.isEmpty&&0==t.modelCursor.index&&e.stop()}),{priority:"high"})})),i.for("editingDowncast").add((function(e){return e.on("insert:tableRow",(function(e,t,n){var i=t.item;if(n.consumable.consume(i,"insert")){var r,o=i.parent,a=function(e){var t,n=k(e.getChildren());try{for(n.s();!(t=n.n()).done;){var i=t.value;if("table"===i.name)return i}}catch(r){n.e(r)}finally{n.f()}}(n.mapper.toViewElement(o)),s=o.getChildIndex(i),l=new vg(o,{row:s}),c={headingRows:o.getAttribute("headingRows")||0,headingColumns:o.getAttribute("headingColumns")||0},u=new Map,d=k(l);try{for(d.s();!(r=d.n()).done;){var h=r.value,f=u.get(s)||bg(a,i,s,c,n);u.set(s,f),n.consumable.consume(h.cell,"insert"),kg(h,c,n.writer.createPositionAt(f,"end"),n,{asWidget:!0})}}catch(v){d.e(v)}finally{d.f()}}}))})),i.for("editingDowncast").add((function(e){return e.on("remove:tableRow",(function(e,t,n){e.stop();var i,r=n.writer,o=n.mapper,a=o.toViewPosition(t.position).getLastMatchingPosition((function(e){return!e.item.is("element","tr")})).nodeAfter,s=a.parent.parent,l=r.createRangeOn(a),c=r.remove(l),u=k(r.createRangeIn(c).getItems());try{for(u.s();!(i=u.n()).done;){var d=i.value;o.unbindViewElement(d)}}catch(h){u.e(h)}finally{u.f()}_g("thead",s,n),_g("tbody",s,n)}),{priority:"higher"})})),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(hg("td")),i.for("upcast").add(hg("th")),i.for("editingDowncast").add((function(e){return e.on("insert:tableCell",(function(e,t,n){var i=t.item;if(n.consumable.consume(i,"insert")){var r,o=i.parent,a=o.parent,s=a.getChildIndex(o),l=new vg(a,{row:s}),c={headingRows:a.getAttribute("headingRows")||0,headingColumns:a.getAttribute("headingColumns")||0},u=k(l);try{for(u.s();!(r=u.n()).done;){var d=r.value;if(d.cell===i){var h=n.mapper.toViewElement(o);return void kg(d,c,n.writer.createPositionAt(h,o.getChildIndex(i)),n,{asWidget:!0})}}}catch(f){u.e(f)}finally{u.f()}}}))})),i.attributeToAttribute({model:"colspan",view:"colspan"}),i.attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("editingDowncast").add((function(e){return e.on("attribute:headingColumns:table",(function(e,t,n){var i=t.item;if(n.consumable.consume(t.item,e.name)){var r,o={headingRows:i.getAttribute("headingRows")||0,headingColumns:i.getAttribute("headingColumns")||0},a=t.attributeOldValue,s=t.attributeNewValue,l=(a>s?a:s)-1,c=k(new vg(i,{endColumn:l}));try{for(c.s();!(r=c.n()).done;){var u=r.value;gg(u,o,n)}}catch(d){c.e(d)}finally{c.f()}}}))})),e.commands.add("insertTable",new Cg(e)),e.commands.add("insertTableRowAbove",new Dg(e,{order:"above"})),e.commands.add("insertTableRowBelow",new Dg(e,{order:"below"})),e.commands.add("insertTableColumnLeft",new Lg(e,{order:"left"})),e.commands.add("insertTableColumnRight",new Lg(e,{order:"right"})),e.commands.add("removeTableRow",new Qg(e)),e.commands.add("removeTableColumn",new Zg(e)),e.commands.add("splitTableCellVertically",new zg(e,{direction:"vertically"})),e.commands.add("splitTableCellHorizontally",new zg(e,{direction:"horizontally"})),e.commands.add("mergeTableCells",new ok(e)),e.commands.add("mergeTableCellRight",new Kg(e,{direction:"right"})),e.commands.add("mergeTableCellLeft",new Kg(e,{direction:"left"})),e.commands.add("mergeTableCellDown",new Kg(e,{direction:"down"})),e.commands.add("mergeTableCellUp",new Kg(e,{direction:"up"})),e.commands.add("setTableColumnHeader",new ek(e)),e.commands.add("setTableRowHeader",new Xg(e)),e.commands.add("selectTableRow",new ck(e)),e.commands.add("selectTableColumn",new uk(e)),_k(t),dk(t),yk(t),pk(t)}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[tk]}}]),n}(Vu);n(106);var Ck=function(e){C(n,e);var t=A(n);function n(e){var i;w(this,n),i=t.call(this,e);var r=i.bindTemplate;return i.items=i._createGridCollection(),i.set("rows",0),i.set("columns",0),i.bind("label").to(P(i),"columns",P(i),"rows",(function(e,t){return"".concat(t," × ").concat(e)})),i.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":r.to("boxover")},children:i.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:r.to("label")}]}],on:{mousedown:r.to((function(e){e.preventDefault()})),click:r.to((function(){i.fire("execute")}))}}),i.on("boxover",(function(e,t){var n=t.target.dataset,r=n.row,o=n.column;i.set({rows:parseInt(r),columns:parseInt(o)})})),i.on("change:columns",(function(){i._highlightGridBoxes()})),i.on("change:rows",(function(){i._highlightGridBoxes()})),i}return x(n,[{key:"focus",value:function(){}},{key:"focusLast",value:function(){}},{key:"_highlightGridBoxes",value:function(){var e=this.rows,t=this.columns;this.items.map((function(n,i){var r=Math.floor(i/10)<e&&i%10<t;n.set("isOn",r)}))}},{key:"_createGridCollection",value:function(){for(var e=[],t=0;t<100;t++){var n=Math.floor(t/10),i=t%10;e.push(new Ak(this.locale,n+1,i+1))}return this.createCollection(e)}}]),n}(Zc),Ak=function(e){C(n,e);var t=A(n);function n(e,i,r){var o;w(this,n),o=t.call(this,e);var a=o.bindTemplate;return o.set("isOn",!1),o.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":i,"data-column":r}}),o}return n}(Zc),Tk=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=this.editor.t,i="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",(function(e){var i,r=t.commands.get("insertTable"),o=Ou(e);return o.bind("isEnabled").to(r),o.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:n("Insert table"),tooltip:!0}),o.on("change:isOpen",(function(){i||(i=new Ck(e),o.panelView.children.add(i),i.delegate("execute").to(o),o.buttonView.on("open",(function(){i.rows=0,i.columns=0})),o.on("execute",(function(){t.execute("insertTable",{rows:i.rows,columns:i.columns}),t.editing.view.focus()})))})),o})),t.ui.componentFactory.add("tableColumn",(function(t){var r=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:i?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:i?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return e._prepareDropdown(n("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',r,t)})),t.ui.componentFactory.add("tableRow",(function(t){var i=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return e._prepareDropdown(n("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',i,t)})),t.ui.componentFactory.add("mergeTableCells",(function(t){var r=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:i?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:i?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return e._prepareMergeSplitButtonDropdown(n("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',r,t)}))}},{key:"_prepareDropdown",value:function(e,t,n,i){var r=this.editor,o=Ou(i),a=this._fillDropdownWithListOptions(o,n);return o.buttonView.set({label:e,icon:t,tooltip:!0}),o.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.some((function(e){return e}))})),this.listenTo(o,"execute",(function(e){r.execute(e.source.commandName),r.editing.view.focus()})),o}},{key:"_prepareMergeSplitButtonDropdown",value:function(e,t,n,i){var r=this.editor,o=Ou(i,Np);return this._fillDropdownWithListOptions(o,n),o.buttonView.set({label:e,icon:t,tooltip:!0,isEnabled:!0}),this.listenTo(o.buttonView,"execute",(function(){r.execute("mergeTableCells"),r.editing.view.focus()})),this.listenTo(o,"execute",(function(e){r.execute(e.source.commandName),r.editing.view.focus()})),o}},{key:"_fillDropdownWithListOptions",value:function(e,t){var n,i=this.editor,r=[],o=new Jn,a=k(t);try{for(a.s();!(n=a.n()).done;){var s=n.value;Pk(s,i,r,o)}}catch(l){a.e(l)}finally{a.f()}return Iu(e,o,i.ui.componentFactory),r}}]),n}(Vu);function Pk(e,t,n,i){var r=e.model=new pv(e.model),o=e.model,a=o.commandName,s=o.bindIsOn;if("button"===e.type||"switchbutton"===e.type){var l=t.commands.get(a);n.push(l),r.set({commandName:a}),r.bind("isEnabled").to(l),s&&r.bind("isOn").to(l,"value")}r.set({withText:!0}),i.add(e)}n(108);var Ek=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor.model;this.listenTo(t,"deleteContent",(function(t,n){return e._handleDeleteContent(t,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var e=Ag(this.editor.model.document.selection);return 0==e.length?null:e}},{key:"getSelectionAsFragment",value:function(){var e=this,t=this.getSelectedTableCells();return t?this.editor.model.change((function(n){var i=n.createDocumentFragment(),r=e.editor.plugins.get("TableUtils"),o=Sg(t),a=o.first,s=o.last,l=Eg(t),c=l.first,u=l.last,d=t[0].findAncestor("table"),h=u,f=s;if(Og(t,r)){var v={firstColumn:a,lastColumn:s,firstRow:c,lastRow:u};h=Yg(d,v),f=Gg(d,v)}var p=jg(d,{startRow:c,startColumn:a,endRow:h,endColumn:f},n);return n.insert(p,i,0),i})):null}},{key:"setCellSelection",value:function(e,t){var n=this._getCellsToSelect(e,t);this.editor.model.change((function(e){e.setSelection(n.cells.map((function(t){return e.createRangeOn(t)})),{backward:n.backward})}))}},{key:"getFocusCell",value:function(){var e=u(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"getAnchorCell",value:function(){var e=Hu(this.editor.model.document.selection.getRanges()).getContainedElement();return e&&e.is("element","tableCell")?e:null}},{key:"_defineSelectionConverter",value:function(){var e=this,t=this.editor,n=new Set;t.conversion.for("editingDowncast").add((function(t){return t.on("selection",(function(t,i,r){var o=r.writer;!function(e){var t,i=k(n);try{for(i.s();!(t=i.n()).done;){var r=t.value;e.removeClass("ck-editor__editable_selected",r)}}catch(o){i.e(o)}finally{i.f()}n.clear()}(o);var a=e.getSelectedTableCells();if(a){var s,l=k(a);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=r.mapper.toViewElement(c);o.addClass("ck-editor__editable_selected",u),n.add(u)}}catch(h){l.e(h)}finally{l.f()}var d=r.mapper.toViewElement(a[a.length-1]);o.setSelection(d,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var e=this,t=this.editor;this.on("change:isEnabled",(function(){if(!e.isEnabled){var n=e.getSelectedTableCells();if(!n)return;t.model.change((function(e){var i=e.createPositionAt(n[0],0),r=t.model.schema.getNearestSelectionRange(i);e.setSelection(r)}))}}))}},{key:"_handleDeleteContent",value:function(e,t){var n=v(t,2),i=n[0],r=n[1],o=this.editor.model,a=!r||"backward"==r.direction,s=Ag(i);s.length&&(e.stop(),o.change((function(e){var t=s[a?s.length-1:0];o.change((function(e){var t,n=k(s);try{for(n.s();!(t=n.n()).done;){var i=t.value;o.deleteContent(e.createSelection(i,"in"))}}catch(r){n.e(r)}finally{n.f()}}));var n=o.schema.getNearestSelectionRange(e.createPositionAt(t,0));i.is("documentSelection")?e.setSelection(n):i.setTo(n)})))}},{key:"_getCellsToSelect",value:function(e,t){var n,i=this.editor.plugins.get("TableUtils"),r=i.getCellLocation(e),o=i.getCellLocation(t),a=Math.min(r.row,o.row),s=Math.max(r.row,o.row),l=Math.min(r.column,o.column),c=Math.max(r.column,o.column),u=new Array(s-a+1).fill(null).map((function(){return[]})),d={startRow:a,endRow:s,startColumn:l,endColumn:c},h=k(new vg(e.findAncestor("table"),d));try{for(h.s();!(n=h.n()).done;){var f=n.value,v=f.row,p=f.cell;u[v-a].push(p)}}catch(b){h.e(b)}finally{h.f()}var m=o.row<r.row,g=o.column<r.column;return m&&u.reverse(),g&&u.forEach((function(e){return e.reverse()})),{cells:u.flat(),backward:m||g}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[tk]}}]),n}(Vu),Sk=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this.listenTo(n,"copy",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(n,"cut",(function(t,n){return e._onCopyCut(t,n)})),this.listenTo(t.model,"insertContent",(function(t,n){return e._onInsertContent.apply(e,[t].concat(u(n)))}),{priority:"high"})}},{key:"_onCopyCut",value:function(e,t){var n=this.editor.plugins.get(Ek);if(n.getSelectedTableCells()&&("cut"!=e.name||!this.editor.isReadOnly)){t.preventDefault(),e.stop();var i=this.editor.data,r=this.editor.editing.view.document,o=i.toView(n.getSelectionAsFragment());r.fire("clipboardOutput",{dataTransfer:t.dataTransfer,content:o,method:e.name})}}},{key:"_onInsertContent",value:function(e,t,n){var i=this;if(!n||n.is("documentSelection")){var r=this.editor.model,o=this.editor.plugins.get(tk),a=function(e,t){if(!e.is("documentFragment")&&!e.is("element"))return null;if(e.is("element","table"))return e;if(1==e.childCount&&e.getChild(0).is("element","table"))return e.getChild(0);var n,i=t.createRangeIn(e),r=k(i.getItems());try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.is("element","table")){var a=t.createRange(i.start,t.createPositionBefore(o));if(t.hasContent(a,{ignoreWhitespaces:!0}))return null;var s=t.createRange(t.createPositionAfter(o),i.end);return t.hasContent(s,{ignoreWhitespaces:!0})?null:o}}}catch(l){r.e(l)}finally{r.f()}return null}(t,r);if(a){var s=Pg(r.document.selection);s.length?(e.stop(),r.change((function(e){var t={width:o.getColumns(a),height:o.getRows(a)},n=function(e,t,n,i){var r=e[0].findAncestor("table"),o=Sg(e),a=Eg(e),s={firstColumn:o.first,lastColumn:o.last,firstRow:a.first,lastRow:a.last},l=1===e.length;return l&&(s.lastRow+=t.height-1,s.lastColumn+=t.width-1,function(e,t,n,i){var r=i.getColumns(e),o=i.getRows(e);n>r&&i.insertColumns(e,{at:r,columns:n-r}),t>o&&i.insertRows(e,{at:o,rows:t-o})}(r,s.lastRow+1,s.lastColumn+1,i)),l||!Og(e,i)?function(e,t,n){var i=t.firstRow,r=t.lastRow,o=t.firstColumn,a=t.lastColumn,s={first:i,last:r},l={first:o,last:a};Mk(e,o,s,n),Mk(e,a+1,s,n),Ok(e,i,l,n),Ok(e,r+1,l,n,i)}(r,s,n):(s.lastRow=Yg(r,s),s.lastColumn=Gg(r,s)),s}(s,t,e,o),r=n.lastRow-n.firstRow+1,l=n.lastColumn-n.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(r,t.height)-1,endColumn:Math.min(l,t.width)-1};a=jg(a,c,e);var d=s[0].findAncestor("table"),h=function(e,t,n,i,r){for(var o,a=t.width,s=t.height,l=function(e,t,n){var i,r=new Array(n).fill(null).map((function(){return new Array(t).fill(null)})),o=k(new vg(e));try{for(o.s();!(i=o.n()).done;){var a=i.value,s=a.column,l=a.row,c=a.cell;r[l][s]=c}}catch(u){o.e(u)}finally{o.f()}return r}(e,a,s),c=u(new vg(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})),d=[],h=0,f=c;h<f.length;h++){var v=f[h],p=v.row,m=v.column,g=v.cell,b=v.isAnchor;m===i.firstColumn&&(o=v.getPositionBefore()),b&&r.remove(g);var y=p-i.firstRow,w=m-i.firstColumn,_=l[y%s][w%a];if(_){var x=r.cloneElement(_);Hg(x,p,m,i.lastRow,i.lastColumn,r),r.insert(x,o),d.push(x),o=r.createPositionAfter(x)}}var C=parseInt(n.getAttribute("headingRows")||0),A=parseInt(n.getAttribute("headingColumns")||0),T=i.firstRow<C&&C<=i.lastRow,P=i.firstColumn<A&&A<=i.lastColumn;if(T){var E=Ok(n,C,{first:i.firstColumn,last:i.lastColumn},r,i.firstRow);d.push.apply(d,u(E))}if(P){var S=Mk(n,A,{first:i.firstRow,last:i.lastRow},r);d.push.apply(d,u(S))}return d}(a,t,d,n,e);if(i.editor.plugins.get("TableSelection").isEnabled){var f=Mg(h.map((function(t){return e.createRangeOn(t)})));e.setSelection(f)}else e.setSelection(h[0],0)}))):qg(a,o)}}}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[Ek,tk]}}]),n}(Vu);function Ok(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0;if(!(t<1))return Vg(e,t,r).filter((function(e){var t=e.column,i=e.cellWidth;return Ik(t,i,n)})).map((function(e){var n=e.cell;return Bg(n,t,i)}))}function Mk(e,t,n,i){if(!(t<1))return Fg(e,t).filter((function(e){var t=e.row,i=e.cellHeight;return Ik(t,i,n)})).map((function(e){var n=e.cell,r=e.column;return Ug(n,r,t,i)}))}function Ik(e,t,n){var i=e+t-1,r=n.first,o=n.last;return e>=r&&e<=o||e<r&&i>=r}var Nk=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return e._handleTabOnSelectedTable.apply(e,arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(t,"keydown",(function(){return e._onKeydown.apply(e,arguments)}),{priority:zn.get("high")-10})}},{key:"_handleTabOnSelectedTable",value:function(e,t){var n=this.editor,i=n.model.document.selection.getSelectedElement();i&&i.is("element","table")&&(t(),n.model.change((function(e){e.setSelection(e.createRangeIn(i.getChild(0).getChild(0)))})))}},{key:"_getTabHandler",value:function(e){var t=this,n=this.editor;return function(i,r){var o=Tg(n.model.document.selection)[0];if(o||(o=t.editor.plugins.get("TableSelection").getFocusCell()),o){r();var a=o.parent,s=a.parent,l=s.getChildIndex(a),c=a.getChildIndex(o),u=0===c;if(e||!u||0!==l){var d=c===a.childCount-1,h=l===s.childCount-1;if(e&&h&&d&&(n.execute("insertTableRowBelow"),l===s.childCount-1))n.model.change((function(e){e.setSelection(e.createRangeOn(s))}));else{var f;if(e&&d){var v=s.getChild(l+1);f=v.getChild(0)}else if(!e&&u){var p=s.getChild(l-1);f=p.getChild(p.childCount-1)}else f=a.getChild(c+(e?1:-1));n.model.change((function(e){e.setSelection(e.createRangeIn(f))}))}}else n.model.change((function(e){e.setSelection(e.createRangeOn(s))}))}}}},{key:"_onKeydown",value:function(e,t){var n=this.editor,i=t.keyCode;if($r(i)){var r=Wr(i,n.locale.contentLanguageDirection);this._handleArrowKeys(r,t.shiftKey)&&(t.preventDefault(),t.stopPropagation(),e.stop())}}},{key:"_handleArrowKeys",value:function(e,t){var n,i=this.editor.model.document.selection,r=["right","down"].includes(e),o=Ag(i);if(o.length)return n=t?this.editor.plugins.get("TableSelection").getFocusCell():r?o[o.length-1]:o[0],this._navigateFromCellInDirection(n,e,t),!0;var a=i.focus.findAncestor("tableCell");return!!a&&!(t&&!i.isCollapsed&&i.isBackward==r)&&!!this._isSelectionAtCellEdge(i,a,r)&&(this._navigateFromCellInDirection(a,e,t),!0)}},{key:"_isSelectionAtCellEdge",value:function(e,t,n){var i=this.editor.model,r=this.editor.model.schema,o=n?e.getLastPosition():e.getFirstPosition();if(!r.getLimitElement(o).is("element","tableCell"))return i.createPositionAt(t,n?"end":0).isTouching(o);var a=i.createSelection(o);return i.modifySelection(a,{direction:n?"forward":"backward"}),o.isEqual(a.focus)}},{key:"_navigateFromCellInDirection",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.editor.model,r=e.findAncestor("table"),o=u(new vg(r,{includeAllSlots:!0})),a=o[o.length-1],s=a.row,l=a.column,c=o.find((function(t){var n=t.cell;return n==e})),d=c.row,h=c.column;switch(t){case"left":h--;break;case"up":d--;break;case"right":h+=c.cellWidth;break;case"down":d+=c.cellHeight}if(d<0||d>s||h<0&&d<=0||h>l&&d>=s)i.change((function(e){e.setSelection(e.createRangeOn(r))}));else{h<0?(h=n?0:l,d--):h>l&&(h=n?l:0,d++);var f=o.find((function(e){return e.row==d&&e.column==h})).cell,v=["right","down"].includes(t),p=this.editor.plugins.get("TableSelection");if(n&&p.isEnabled){var m=p.getAnchorCell()||e;p.setCellSelection(m,f)}else{var g=i.createPositionAt(f,v?0:"end");i.change((function(e){e.setSelection(g)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[Ek]}}]),n}(Vu),Rk=function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.domEventType=["mousemove","mouseup","mouseleave"],i}return x(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}}]),n}(ha),Dk=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(Rk),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var e=this,t=this.editor,n=!1,i=t.plugins.get(Ek);this.listenTo(t.editing.view.document,"mousedown",(function(r,o){if(e.isEnabled&&i.isEnabled&&o.domEvent.shiftKey){var a=i.getAnchorCell()||Tg(t.model.document.selection)[0];if(a){var s=e._getModelTableCellFromDomEvent(o);s&&Lk(a,s)&&(n=!0,i.setCellSelection(a,s),o.preventDefault())}}})),this.listenTo(t.editing.view.document,"mouseup",(function(){n=!1})),this.listenTo(t.editing.view.document,"selectionChange",(function(e){n&&e.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var e,t,n=this,i=this.editor,r=!1,o=!1,a=i.plugins.get(Ek);this.listenTo(i.editing.view.document,"mousedown",(function(t,i){n.isEnabled&&a.isEnabled&&(i.domEvent.shiftKey||i.domEvent.ctrlKey||i.domEvent.altKey||(e=n._getModelTableCellFromDomEvent(i)))})),this.listenTo(i.editing.view.document,"mousemove",(function(i,s){if(s.domEvent.buttons&&e){var l=n._getModelTableCellFromDomEvent(s);l&&Lk(e,l)&&(t=l,r||t==e||(r=!0)),r&&(o=!0,a.setCellSelection(e,t),s.preventDefault())}})),this.listenTo(i.editing.view.document,"mouseup",(function(){r=!1,o=!1,e=null,t=null})),this.listenTo(i.editing.view.document,"selectionChange",(function(e){o&&e.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(e){var t=e.target,n=this.editor.editing.view.createPositionAt(t,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0})}}],[{key:"pluginName",get:function(){return"TableMouse"}},{key:"requires",get:function(){return[Ek]}}]),n}(Vu);function Lk(e,t){return e.parent.parent==t.parent.parent}function zk(e){var t=e.getSelectedElement();return t&&Vk(t)?t:null}function jk(e){var t=function(e,t){for(var n=t.parent;n;){if(n.name===e)return n;n=n.parent}}("table",e.getFirstPosition());return t&&Vk(t.parent)?t.parent:null}function Vk(e){return!!e.getCustomProperty("table")&&Pd(e)}n(110);var Bk=/[\\^$.*+?()[\]{}|]/g,Fk=RegExp(Bk.source),Uk=function(e){return(e=Ci(e))&&Fk.test(e)?e.replace(Bk,"\\$&"):e},Hk={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:"1/2",to:"½"},oneThird:{from:"1/3",to:"⅓"},twoThirds:{from:"2/3",to:"⅔"},oneForth:{from:"1/4",to:"¼"},threeQuarters:{from:"3/4",to:"¾"},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:Kk('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Kk("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Kk("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Kk('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Kk('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Kk("'"),to:[null,"‚",null,"’"]}},$k={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Wk=["symbols","mathematical","typography","quotes"];function qk(e){return"string"==typeof e?new RegExp("(".concat(Uk(e),")$")):e}function Yk(e){return"string"==typeof e?function(){return[e]}:e instanceof Array?function(){return e}:e}function Gk(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Kk(e){return new RegExp("(^|\\s)(".concat(e,")([^").concat(e,"]*)(").concat(e,")$"))}function Jk(e){if(e.is("$text")||e.is("$textProxy"))return e.data;var t,n="",i=null,r=k(e.getChildren());try{for(r.s();!(t=r.n()).done;){var o=t.value,a=Jk(o);i&&i.is("element")&&(n+="\n"),n+=a,i=o}}catch(s){r.e(s)}finally{r.f()}return n}var Qk=function(){function e(t,n){w(this,e),this.loader=t,this.options=n}return x(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,i){e._initRequest(),e._initListeners(n,i,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.options.uploadUrl,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var i=this.xhr,r=this.loader,o="Couldn't upload file: ".concat(n.name,".");i.addEventListener("error",(function(){return t(o)})),i.addEventListener("abort",(function(){return t()})),i.addEventListener("load",(function(){var n=i.response;if(!n||n.error)return t(n&&n.error&&n.error.message?n.error.message:o);e(n.url?{default:n.url}:n.urls)})),i.upload&&i.upload.addEventListener("progress",(function(e){e.lengthComputable&&(r.uploadTotal=e.total,r.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){for(var t=this.options.headers||{},n=this.options.withCredentials||!1,i=0,r=Object.keys(t);i<r.length;i++){var o=r[i];this.xhr.setRequestHeader(o,t[o])}this.xhr.withCredentials=n;var a=new FormData;a.append("upload",e),this.xhr.send(a)}}]),e}(),Zk=function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return n}(ju);Zk.builtinPlugins=[function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[Ku,Xu]}},{key:"pluginName",get:function(){return"Alignment"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var e=this,t=this.editor,n=new td(t.model,(function(e){if(function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e)){var t=rd(e.substr(0,e.length-1));return t?{url:t}:void 0}})),i=t.plugins.get("Input");n.on("matched:data",(function(n,r){var o=r.batch,a=r.range,s=r.url;if(i.isInput(o)){var l=a.end.getShiftedBy(-1),c=l.getShiftedBy(-s.length),u=t.model.createRange(c,l);e._applyAutoLink(s,u)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,i=t.commands.get("enter");i&&i.on("execute",(function(){var t=n.document.selection.getFirstPosition(),i=n.createRange(n.createPositionAt(t.parent.previousSibling,0),n.createPositionAt(t.parent.previousSibling,"end"));e._checkAndApplyAutoLinkOnRange(i)}))}},{key:"_enableShiftEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,i=t.commands.get("shiftEnter");i&&i.on("execute",(function(){var t=n.document.selection.getFirstPosition(),i=n.createRange(n.createPositionAt(t.parent,0),t.getShiftedBy(-1));e._checkAndApplyAutoLinkOnRange(i)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(e){var t=this.editor.model,n=ed(e,t),i=n.text,r=n.range,o=rd(i);if(o){var a=t.createRange(r.end.getShiftedBy(-o.length),r.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(e,t){var n=this.editor.model;this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,n)&&n.enqueueChange((function(n){var i,r=(i=e,id.exec(i)?"mailto:"+e:e);n.setAttribute("linkHref",r,t)}))}}],[{key:"pluginName",get:function(){return"AutoLink"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[sd,cd]}},{key:"pluginName",get:function(){return"Bold"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"pluginName",get:function(){return"CKFinder"}},{key:"requires",get:function(){return[Qh,ud,af]}}]),n}(Vu),af,function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[fh,hf,_f,mf,Tf,Yf]}},{key:"pluginName",get:function(){return"Essentials"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[av,cv]}},{key:"pluginName",get:function(){return"FontColor"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[vv,mv]}},{key:"pluginName",get:function(){return"FontSize"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[Cv,Av]}},{key:"pluginName",get:function(){return"Heading"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[Kf,Jf]}},{key:"pluginName",get:function(){return"HorizontalLine"}}]),n}(Vu),Qv,function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[ep]}},{key:"pluginName",get:function(){return"ImageCaption"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[ap,gp,cp]}},{key:"pluginName",get:function(){return"ImageResize"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[Ep,Sp]}},{key:"pluginName",get:function(){return"ImageStyle"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t;e.plugins.get(Op).register("image",{ariaLabel:t("Image toolbar"),items:e.config.get("image.toolbar")||[],getRelatedElement:Ld})}}],[{key:"requires",get:function(){return[Op]}},{key:"pluginName",get:function(){return"ImageToolbar"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[Qp,Fp,Up]}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[em,im]}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[om,sm]}},{key:"pluginName",get:function(){return"Italic"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[$h,pm]}},{key:"pluginName",get:function(){return"Link"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[gm,wm]}},{key:"pluginName",get:function(){return"LinkImage"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[Ym,Km]}},{key:"pluginName",get:function(){return"List"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[ig,sg,og,Nv]}},{key:"pluginName",get:function(){return"MediaEmbed"}}]),n}(Vu),yv,function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"init",value:function(){var e=this.editor.config.get("simpleUpload");e&&(e.uploadUrl?this.editor.plugins.get(ef).createUploadAdapter=function(t){return new Qk(t,e)}:console.warn(Object(jn.a)('simple-upload-adapter-missing-uploadUrl: Missing the "uploadUrl" property in the "simpleUpload" editor configuration.')))}}],[{key:"requires",get:function(){return[ef]}},{key:"pluginName",get:function(){return"SimpleUploadAdapter"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,null,[{key:"requires",get:function(){return[xk,Tk,Ek,Dk,Nk,Sk,Nv]}},{key:"pluginName",get:function(){return"Table"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(){return w(this,n),t.apply(this,arguments)}return x(n,[{key:"afterInit",value:function(){var e=this.editor,t=e.t,n=e.plugins.get(Op),i=e.config.get("table.contentToolbar"),r=e.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:t("Table toolbar"),items:i,getRelatedElement:jk}),r&&n.register("table",{ariaLabel:t("Table toolbar"),items:r,getRelatedElement:zk})}}],[{key:"requires",get:function(){return[Op]}},{key:"pluginName",get:function(){return"TableToolbar"}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),e.config.define("typing",{transformations:{include:Wk}}),i}return x(n,null,[{key:"pluginName",get:function(){return"TextTransformation"}}]),x(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var e=this.editor,t=e.model,n=e.plugins.get("Input"),i=function(e){var t=e.extra||[],n=e.remove||[],i=function(e){return!n.includes(e)};return function(e){var t,n=new Set,i=k(e);try{for(i.s();!(t=i.n()).done;){var r=t.value;if($k[r]){var o,a=k($k[r]);try{for(a.s();!(o=a.n()).done;){var s=o.value;n.add(s)}}catch(l){a.e(l)}finally{a.f()}}else n.add(r)}}catch(l){i.e(l)}finally{i.f()}return Array.from(n)}(e.include.concat(t).filter(i)).filter(i).map((function(e){return Hk[e]||e})).map((function(e){return{from:qk(e.from),to:Yk(e.to)}}))}(e.config.get("typing.transformations")),r=new td(e.model,(function(e){var t,n=k(i);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.from.test(e))return{normalizedTransformation:r}}}catch(o){n.e(o)}finally{n.f()}}));r.on("matched:data",(function(e,i){if(n.isInput(i.batch)){var r=i.normalizedTransformation,o=r.from,a=r.to,s=o.exec(i.text),l=a(s.slice(1)),c=i.range,u=s.index;t.enqueueChange((function(e){for(var n=1;n<s.length;n++){var i=s[n],r=l[n-1];if(null!=r){var o=c.start.getShiftedBy(u),a=t.createRange(o,o.getShiftedBy(i.length)),d=Gk(o);t.insertContent(e.createText(r,d),a),u+=r.length}else u+=i.length}}))}})),r.bind("isEnabled").to(this)}}]),n}(Vu),function(e){C(n,e);var t=A(n);function n(e){var i;return w(this,n),i=t.call(this,e),i.set("characters",0),i.set("words",0),Object.defineProperties(P(i),{characters:{get:function(){return this.characters=this._getCharacters()}},words:{get:function(){return this.words=this._getWords()}}}),i.set("_wordsLabel"),i.set("_charactersLabel"),i._config=e.config.get("wordCount")||{},i._outputView,i._wordsMatchRegExp=zr.features.isRegExpUnicodePropertySupported?new RegExp("[\\p{L}\\p{N}\\p{M}\\p{Pd}\\p{Pc}]+","gu"):/[\x2D0-9A-Z_a-z\xC0-\u017E]+/g,i}return x(n,[{key:"init",value:function(){var e=this;this.editor.model.document.on("change:data",pp(this._refreshStats.bind(this),250)),"function"==typeof this._config.onUpdate&&this.on("update",(function(t,n){e._config.onUpdate(n)})),Sn(this._config.container)&&this._config.container.appendChild(this.wordCountContainer)}},{key:"destroy",value:function(){this._outputView&&(this._outputView.element.remove(),this._outputView.destroy()),l(N(n.prototype),"destroy",this).call(this)}},{key:"_getCharacters",value:function(){return Jk(this.editor.model.document.getRoot()).replace(/\n/g,"").length}},{key:"_getWords",value:function(){return(Jk(this.editor.model.document.getRoot()).match(this._wordsMatchRegExp)||[]).length}},{key:"_refreshStats",value:function(){var e=this.words=this._getWords(),t=this.characters=this._getCharacters();this.fire("update",{words:e,characters:t})}},{key:"wordCountContainer",get:function(){var e=this.editor,t=e.t,n=e.config.get("wordCount.displayWords"),i=e.config.get("wordCount.displayCharacters"),r=Nc.bind(this,this),o=[];return this._outputView||(this._outputView=new Zc,(n||void 0===n)&&(this.bind("_wordsLabel").to(this,"words",(function(e){return t("Words: %0",[e])})),o.push({tag:"div",children:[{text:[r.to("_wordsLabel")]}],attributes:{class:"ck-word-count__words"}})),(i||void 0===i)&&(this.bind("_charactersLabel").to(this,"characters",(function(e){return t("Characters: %0",[e])})),o.push({tag:"div",children:[{text:[r.to("_charactersLabel")]}],attributes:{class:"ck-word-count__characters"}})),this._outputView.setTemplate({tag:"div",attributes:{class:["ck","ck-word-count"]},children:o}),this._outputView.render()),this._outputView.element}}],[{key:"pluginName",get:function(){return"WordCount"}}]),n}(Vu)],t.default=Zk}]).default}))}).call(this,n("62e4")(e))},c830:function(e,t,n){},d43d:function(e,t,n){},d5be:function(e,t,n){"use strict";var i=n("fdff"),r=n.n(i);r.a},da0c:function(e,t,n){"use strict";var i=n("ac28"),r=n.n(i);r.a},e005:function(e,t,n){"use strict";var i=n("3a97"),r=n.n(i);r.a},e431:function(e,t,n){"use strict";var i=n("ba98"),r=n.n(i);r.a},e689:function(e,t,n){},e718:function(e,t,n){},e8f1:function(e,t,n){"use strict";var i=n("25ba"),r=n.n(i);r.a},ecec:function(e,t,n){"use strict";n.r(t);var i=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"block",class:e.blockClasses},[n("div",{staticClass:"block__header",on:{dblclick:function(t){return t.preventDefault(),e.toggleExpand()}}},[n("span",{staticClass:"block__handle"}),n("div",{staticClass:"block__toggle"},[e.withMoveDropdown?n("a17-dropdown",{ref:e.moveDropdown,staticClass:"f--small",attrs:{position:"bottom-left",maxHeight:270}},[n("span",{staticClass:"block__counter f--tiny",on:{click:function(t){return e.$refs[e.moveDropdown].toggle()}}},[e._v(e._s(e.index+1))]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[e._t("dropdown-numbers")],2)]):n("span",{staticClass:"block__counter f--tiny"},[e._v(e._s(e.index+1))]),n("span",{staticClass:"block__title"},[e._v(e._s(e.block.title))])],1),n("div",{staticClass:"block__actions"},[e._t("block-actions"),e.withAddDropdown?n("a17-dropdown",{ref:e.addDropdown,attrs:{position:"bottom-right"},on:{open:function(t){e.hover=!0},close:function(t){e.hover=!1}}},[n("a17-button",{attrs:{variant:"icon","data-action":""},on:{click:function(t){return e.$refs[e.addDropdown].toggle()}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"add"}})]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[e._t("dropdown-add")],2)],1):e._e(),n("a17-button",{attrs:{variant:"icon","data-action":"","aria-expanded":e.visible?"true":"false"},on:{click:function(t){return e.toggleExpand()}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"expand"}})]),n("a17-dropdown",{ref:e.actionsDropdown,attrs:{position:"bottom-right"},on:{open:function(t){e.hover=!0},close:function(t){e.hover=!1}}},[n("a17-button",{attrs:{variant:"icon"},on:{click:function(t){return e.$refs[e.actionsDropdown].toggle()}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"more-dots"}})]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[e._t("dropdown-action")],2)],1)],2)]),n("div",{staticClass:"block__content",attrs:{"aria-hidden":!e.visible||null}},[n(""+e.block.type,e._b({key:"`form_${block.type}_${block.id}`",tag:"component",attrs:{name:e.componentName(e.block.id)}},"component",e.block.attributes,!1)),n("a17-inputframe",{attrs:{size:"small",label:"",name:"block."+e.block.id}})],1)])},r=[],o=n("4e53"),a={name:"A17Block",props:{index:{type:Number,default:0},opened:{type:Boolean,default:!0},closed:{type:Boolean,default:!1},size:{type:String,default:""},block:{type:Object,default:function(){return{}}}},data:function(){return{visible:!0,hover:!1,withMoveDropdown:!0,withAddDropdown:!0}},filters:o["a"],computed:{blockClasses:function(){return[this.visible?"block--open":"",this.hover?"block--focus":"",this.size?"block--".concat(this.size):""]},moveDropdown:function(){return"moveBlock".concat(this.index,"Dropdown")},actionsDropdown:function(){return"action".concat(this.block.id,"Dropdown")},addDropdown:function(){return"add".concat(this.block.id,"Dropdown")}},watch:{opened:function(){this.opened||(this.visible=!1)},closed:function(){this.closed||(this.visible=!0)}},methods:{toggleExpand:function(){this.visible=!this.visible,this.$emit("expand",this.visible)},componentName:function(e){return"blocks["+e+"]"}},beforeMount:function(){this.$slots["dropdown-numbers"]||(this.withMoveDropdown=!1),this.$slots["dropdown-add"]||(this.withAddDropdown=!1)}},s=a,l=(n("2d34"),n("3fee"),n("2877")),c=Object(l["a"])(s,i,r,!1,null,"751399b0",null);t["default"]=c.exports},f3e7:function(e,t,n){},f618:function(e,t,n){"use strict";n.r(t);var i=n("a026"),r=n("2f62"),o=n("1539"),a=n("0429"),s=n("f1af"),l=n("f99e"),c=n("b171"),u=(n("878a"),n("16f9")),d=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"stickyNav"},[n("div",{staticClass:"container"},[n("div",{staticClass:"stickyNav__nav"},[e.navItems.length>1?n("div",{staticClass:"stickyNav__links"},e._l(e.navItems,(function(t,i){return n("a",{key:t.fieldset,class:{"s--on":t.active},attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.scrollToFieldset(i)}}},[e._v(e._s(t.label))])})),0):e._e(),e._t("title")],2),n("div",{staticClass:"stickyNav__actions"},[e._t("actions")],2)])])},h=[],f=n("b047"),v=n.n(f),p=n("2c83"),m={name:"A17StickyNav",props:{items:{type:Array,default:function(){return[]}}},data:function(){return{lastScrollPos:0,topOffset:70,ticking:!1,navItems:this.items,clickedFieldset:-1,fieldset:[]}},methods:{getFieldsetPosition:function(){var e=this;this.lastScrollPos=window.pageYOffset,this.navItems.forEach((function(t,n){var r=e.fieldset[n],o=r?r.getBoundingClientRect().top+e.lastScrollPos:0;i["a"].set(t,"position",o)}))},setActiveItems:function(){var e=this,t=0;this.navItems.forEach((function(n,r){var o=n.position-e.topOffset<e.lastScrollPos;i["a"].set(n,"active",!1),o&&r>0&&(t=r)})),this.clickedFieldset>=0?i["a"].set(e.navItems[e.clickedFieldset],"active",!0):i["a"].set(e.navItems[t],"active",!0)},refresh:function(){var e=this;e.clickedFieldset=-1,this.getFieldsetPosition(),this.setActiveItems(),e.ticking=!1},_resize:v()((function(){this.lastScrollPos=window.pageYOffset,this.refresh()}),200),_scroll:function(){var e=this;this.lastScrollPos=window.pageYOffset,e.ticking||window.requestAnimationFrame((function(){e.refresh(),e.ticking=!1})),e.ticking=!0},scrollToFieldset:function(e){var t=this,n=this.navItems[e].position-this.topOffset+1;this.dispose(),this.clickedFieldset=e,this.getFieldsetPosition(),this.setActiveItems(),Object(p["a"])({offset:n,easing:"easeOut",onComplete:function(){t.init()}})},init:function(){window.addEventListener("scroll",this._scroll),window.addEventListener("resize",this._resize)},dispose:function(){window.removeEventListener("scroll",this._scroll),window.removeEventListener("resize",this._resize)}},mounted:function(){var e=this;this.navItems.forEach((function(t,n){var i=document.querySelector("#"+t.fieldset);i?e.fieldset.push(i):e.fieldset.push(null)})),this.refresh(),this.init()},beforeDestroy:function(){this.dispose()}},g=m,k=(n("7ebf"),n("2877")),b=Object(k["a"])(g,d,h,!1,null,"1a811cfe",null),y=b.exports,w=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"titleEditor",class:e.titleEditorClasses},[n("div",{staticClass:"titleEditor__preview"},[n("h2",{staticClass:"titleEditor__title",class:{"titleEditor__title-only":!e.permalink}},[e.editableTitle?n("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.$refs.editModal.open()}}},[n("span",{staticClass:"f--underlined--o"},[e._v(e._s(e.title))]),e._v(" "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"edit"}})]):n("span",[e._v(e._s(e.customTitle?e.customTitle:e.title))])]),!e.permalink&&!e.customPermalink||e.showModal?e._e():n("a",{staticClass:"titleEditor__permalink f--small",attrs:{href:e.fullUrl,target:"_blank"}},[n("span",{staticClass:"f--note f--external f--underlined--o"},[e._v(e._s(e._f("prettierUrl")(e.visibleUrl)))])]),e.showModal?n("span",{staticClass:"titleEditor__permalink f--small f--note f--external f--underlined--o"},[e._v(e._s(e._f("prettierUrl")(e.visibleUrl)))]):e._e(),n("a17-modal",{ref:"editModal",staticClass:"modal--form",attrs:{title:e.modalTitle,forceLock:e.disabled}},[n("a17-langmanager"),n("form",{ref:"modalForm",attrs:{action:"#"},on:{submit:function(t){return t.preventDefault(),e.update(t)}}},[e._t("modal-form"),n("a17-modal-validation",{attrs:{mode:e.mode},on:{disable:e.lockModal}})],2)],1)],1),e._t("default")],2)},_=[],x=n("4e53"),C=n("3b37"),A=n("6d94"),T=n("f03e"),P=n("7d9f");function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var M={name:"A17TitleEditor",mixins:[T["a"],P["a"]],components:{"a17-modal-validation":A["a"],"a17-langmanager":C["a"]},props:{modalTitle:{type:String,default:function(){return this.$trans("modal.update.title")}},warningMessage:{type:String,default:"Missing title"},showModal:{type:Boolean,default:!1},name:{default:"title"},editableTitle:{type:Boolean,default:!0},customTitle:{type:String,default:""},customPermalink:{type:String,default:""}},data:function(){return{disabled:!1}},mounted:function(){this.showModal&&this.$refs.editModal.open()},computed:S(S({titleEditorClasses:function(){return{"titleEditor--error":this.error||this.title===this.warningMessage}},mode:function(){return this.showModal?"done":this.title.length>0?"update":"create"},fullUrl:function(){return this.customPermalink||this.baseUrl.replace("{language}",this.currentLocale.value).replace("{preview}/",this.published?"":"admin-preview/")+this.permalink},visibleUrl:function(){return this.customPermalink||this.baseUrl.replace("{language}",this.currentLocale.value).replace("{preview}/","")+this.permalink},title:function(){var e=this.fieldValueByName(this.name)?this.fieldValueByName(this.name):"",t="string"===typeof e?e:e[this.currentLocale.value];return t||this.warningMessage},permalink:function(){return this.fieldValueByName("slug")[this.currentLocale.value]}},Object(r["c"])({baseUrl:function(e){return e.form.baseUrl},currentLocale:function(e){return e.language.active},languages:function(e){return e.language.all},fields:function(e){return e.form.fields},published:function(e){return e.publication.published}})),Object(r["b"])(["fieldValueByName"])),filters:x["a"],methods:{update:function(){this.$refs.editModal.hide()},lockModal:function(e){this.disabled=e}}},I=M,N=(n("33d8"),Object(k["a"])(I,w,_,!1,null,"4e050f8e",null)),R=N.exports,D=n("4168"),L=n("75fb"),z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"publisher__wrapper"},[e.withPublicationToggle?n("a17-switcher",{attrs:{title:e.$trans("publisher.switcher-title","Status"),name:"publish_state",textEnabled:e.textEnabled,textDisabled:e.textDisabled}}):e._e(),e._t("default"),e.reviewProcess&&e.reviewProcess.length?n("a17-reviewaccordion",{attrs:{options:e.reviewProcess,name:"review_process",value:e.reviewProcessCompleteValues,open:e.openStates["A17Reviewaccordion"]},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.review-status")))]):e._e(),e.visibility&&e.visibilityOptions&&e.visibilityOptions.length?n("a17-radioaccordion",{attrs:{radios:e.visibilityOptions,name:"visibility",value:e.visibility,open:e.openStates["A17Radioaccordion"]},on:{open:e.openCloseAccordion,change:e.updateVisibility}},[e._v(e._s(e.$trans("publisher.visibility")))]):e._e(),e.languages&&e.showLanguages&&e.languages.length>1?n("a17-checkboxaccordion",{attrs:{options:e.languages,name:"active_languages",value:e.publishedLanguagesValues,open:e.openStates["A17Checkboxaccordion"]},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.languages")))]):e._e(),e.withPublicationTimeframe?n("a17-pubaccordion",{attrs:{"date-display-format":e.dateDisplayFormat,"date-format":e.dateFormat,date_24h:e.date_24h,open:e.openStates["A17Pubaccordion"]},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.published-on")))]):e._e(),e.revisions.length?n("a17-revaccordion",{attrs:{open:e.openStates["A17Revisions"],revisions:e.revisions},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.revisions")))]):e._e(),e.parents.length?n("a17-parentaccordion",{attrs:{open:e.openStates["A17Parents"],parents:e.parents,value:e.parentId},on:{open:e.openCloseAccordion}},[e._v(e._s(e.$trans("publisher.parent-page")))]):e._e(),e.revisions.length?n("div",{staticClass:"publisher__item"},[n("a",{staticClass:"publisher__link",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.openPreview(t)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"preview"}}),n("span",{staticClass:"f--link-underlined--o"},[e._v(e._s(e.$trans("publisher.preview")))])])]):e._e(),n("div",{staticClass:"publisher__item publisher__item--btns"},[n("a17-multibutton",{attrs:{options:e.submitOptions,type:"submit",message:e.submitDisableMessage},on:{"button-clicked":e.buttonClicked}})],1)],2)},j=[],V=n("2569"),B=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"switcher",class:e.switcherClasses},[n("h4",{staticClass:"switcher__title"},[e._v(e._s(e.title))]),n("label",{staticClass:"switcher__button",attrs:{for:e.name+"_live"}},[e.isChecked?n("span",{staticClass:"switcher__label"},[e._v(e._s(e.formatTextEnabled))]):e._e(),e.isChecked?e._e():n("span",{staticClass:"switcher__label"},[e._v(e._s(e.formatTextDisabled))]),n("input",{directives:[{name:"model",rawName:"v-model",value:e.checkedValue,expression:"checkedValue"}],attrs:{type:"checkbox",disabled:e.disabled,name:e.name,id:e.name+"_live",value:"live"},domProps:{checked:Array.isArray(e.checkedValue)?e._i(e.checkedValue,"live")>-1:e.checkedValue},on:{change:function(t){var n=e.checkedValue,i=t.target,r=!!i.checked;if(Array.isArray(n)){var o="live",a=e._i(n,o);i.checked?a<0&&(e.checkedValue=n.concat([o])):a>-1&&(e.checkedValue=n.slice(0,a).concat(n.slice(a+1)))}else e.checkedValue=r}}}),n("span",{staticClass:"switcher__switcher"})])])},F=[],U=n("0d3e"),H=n.n(U);function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Y={name:"A17Toggle",props:{name:{type:String,default:""},title:{default:"Status"},disabled:{type:Boolean,default:!1},textEnabled:{type:String,default:"Live"},textDisabled:{type:String,default:"Draft"},textExpired:{type:String,default:"Expired"},textScheduled:{type:String,default:"Scheduled"}},filters:x["a"],computed:W({switcherClasses:function(){return[this.isChecked?"switcher--active":"",this.formatTextEnabled?"switcher--".concat(this.$options.filters.lowercase(this.formatTextEnabled)):""]},isChecked:function(){return this.published},formatTextEnabled:function(){var e=H()(this.startDate,new Date),t=H()(this.endDate,new Date);return this.endDate&&t<0?this.textExpired:this.startDate&&e>0?this.textScheduled:this.textEnabled},formatTextDisabled:function(){return this.textDisabled},checkedValue:{get:function(){return this.published},set:function(e){this.$store.commit(a["m"].UPDATE_PUBLISH_STATE,e),this.$emit("change",e)}}},Object(r["c"])({startDate:function(e){return e.publication.startDate},endDate:function(e){return e.publication.endDate},published:function(e){return e.publication.published}}))},G=Y,K=(n("9922"),Object(k["a"])(G,B,F,!1,null,"2e81738b",null)),J=K.exports,Q=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e._v(e._s(e.currentLabel))]),n("a17-radiogroup",{attrs:{name:e.name,radios:e.radios,initialValue:e.currentValue},on:{change:e.changeValue}})],1)},Z=[],X=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"accordion",class:e.visibilityClasses},[n("button",{staticClass:"accordion__trigger",attrs:{type:"button","aria-expanded":e.visible?"true":"false"},on:{click:e.onClickVisibility}},[e._t("accordion__title"),n("span",{staticClass:"accordion__value"},[e._t("accordion__value")],2),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})],2),n("transition",{attrs:{css:!1,duration:275},on:{"before-enter":e.beforeEnter,"before-leave":e.beforeLeave,enter:e.enter,leave:e.leave}},[n("div",{directives:[{name:"show",rawName:"v-show",value:e.visible,expression:"visible"}],staticClass:"accordion__dropdown",attrs:{"aria-hidden":!e.visible}},[n("div",{staticClass:"accordion__list"},[e._t("default")],2)])])],1)},ee=[],te=n("5a57"),ne={name:"A17Accordion",mixins:[te["a"]],watch:{open:function(){this.visible!==this.open&&(this.visible=this.open)}},methods:{getMaxHeight:function(){return Math.min(250,this.$el.querySelector(".accordion__list").clientHeight+1)},beforeEnter:function(e){e.style.maxHeight="0px"},enter:function(e,t){e.style.maxHeight=this.getMaxHeight()+"px"},beforeLeave:function(e,t){e.style.maxHeight=this.getMaxHeight()+"px"},leave:function(e,t){e.style.maxHeight="0px"}}},ie=ne,re=(n("e005"),n("62c8"),Object(k["a"])(ie,X,ee,!1,null,"0dd10376",null)),oe=re.exports,ae={name:"A17Radioaccordion",components:{"a17-accordion":oe},mixins:[te["a"]],props:{value:{default:""},title:{default:""},name:{default:""},radios:{default:function(){return[]}}},data:function(){return{currentValue:this.value}},computed:{currentLabel:function(){var e=this.radios.filter(this.isSameValue);return e.length?e[0].label:""}},methods:{isSameValue:function(e){return e.value===this.currentValue},changeValue:function(e){this.currentValue=e,this.$emit("change",e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)}}},se=ae,le=Object(k["a"])(se,Q,Z,!1,null,null,null),ce=le.exports,ue=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e._v(e._s(e.currentLabel))]),n("a17-checkboxgroup",{attrs:{name:e.name,options:e.currentOptions,selected:e.currentValue},on:{change:e.changeValue}})],1)},de=[],he={name:"A17Reviewaccordion",components:{"a17-accordion":oe},mixins:[te["a"]],props:{value:{default:function(){return[]}},title:{type:String,default:""},name:{type:String,default:""},options:{default:function(){return[]}}},data:function(){return{currentOptions:this.options,currentValue:this.value}},computed:{currentLabel:function(){var e="Pending approval",t=this.currentValue[this.currentValue.length-1];return this.currentValue.length&&this.options.forEach((function(n){n.value===t&&(e=n.display)})),e}},methods:{changeValue:function(e){this.currentValue=e,this.$store.commit(a["m"].UPDATE_REVIEW_PROCESS,e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)}}},fe=he,ve=Object(k["a"])(fe,ue,de,!1,null,null,null),pe=ve.exports,me=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e._v(e._s(e.currentLabel))]),n("a17-checkboxgroup",{attrs:{name:e.name,options:e.options,selected:e.currentValue,min:1},on:{change:e.changeValue}})],1)},ge=[],ke={name:"A17Checkboxaccordion",components:{"a17-accordion":oe},mixins:[te["a"]],props:{value:{default:function(){return[]}},title:{type:String,default:""},name:{type:String,default:""},options:{default:function(){return[]}}},data:function(){return{currentValue:this.value}},watch:{value:function(e){this.currentValue=e}},computed:{currentLabel:function(){return this.currentValue.length+" "+this.$trans("publisher.languages-published")}},methods:{changeValue:function(e){this.currentValue=e,this.$store.commit(a["g"].PUBLISH_LANG,e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)}}},be=ke,ye=Object(k["a"])(be,me,ge,!1,null,null,null),we=ye.exports,_e=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default"),e._v(" "),n("span",{staticClass:"f--small f--note"},[e._v("("+e._s(e.revisions.length)+")")])],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e._v(e._s(e.$trans("publisher.last-edit"))+" "),n("timeago",{attrs:{"auto-update":1,datetime:new Date(e.revisions[0].datetime)}})],1),n("div",{staticClass:"revaccordion__scroller"},[n("ul",{staticClass:"revaccordion__list"},e._l(e.revisions,(function(t,i){return n("li",{key:t.id,staticClass:"revaccordion__item"},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e.openPreview(t.id)}}},[n("span",{staticClass:"revaccordion__author"},[e._v(e._s(t.author))]),n("span",{staticClass:"revaccordion__datetime"},[0===i?n("span",{staticClass:"tag"},[e._v(e._s(e.$trans("publisher.current")))]):e._e(),e._v(" "+e._s(e._f("formatDate")(t.datetime)))])])])})),0)])])},xe=[],Ce={name:"A17Revisions",components:{"a17-accordion":oe},mixins:[te["a"]],props:{revisions:{default:function(){return[]}}},filters:x["a"],methods:{notifyOpen:function(e){this.$emit("open",e,this.$options.name)},openPreview:function(e){this.$root.$refs.preview&&this.$root.$refs.preview.open(parseInt(e))}}},Ae=Ce,Te=(n("6b9b"),Object(k["a"])(Ae,_e,xe,!1,null,"042fcdcb",null)),Pe=Te.exports,Ee=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},slot:"accordion__value"},[e.startDate?[e._v(" "+e._s(e._f("formatDateWithFormat")(e.startDate,e.dateDisplayFormat))+" ")]:[e._v(" "+e._s(e.defaultStartDate)+" ")]],2),n("div",{staticClass:"accordion__fields"},[n("a17-datepicker",{attrs:{name:"publish_date","place-holder":e.$trans("publisher.start-date"),time_24hr:e.date_24h,altFormat:e.dateFormat,initialValue:e.startDate,maxDate:e.endDate,enableTime:!0,allowInput:!0,staticMode:!0,clear:!0},on:{open:e.openStartCalendar,close:e.closeCalendar,input:e.updateStartDate}}),n("a17-datepicker",{attrs:{name:"end_date","place-holder":e.$trans("publisher.end-date"),time_24hr:e.date_24h,altFormat:e.dateFormat,initialValue:e.endDate,minDate:e.startDate,enableTime:!0,allowInput:!0,staticMode:!0,clear:!0},on:{open:e.openEndCalendar,close:e.closeCalendar,input:e.updateEndDate}})],1)])},Se=[];function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){Ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ie(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ne={name:"A17Pubaccordion",components:{"a17-accordion":oe},mixins:[te["a"]],props:{defaultStartDate:{type:String,default:function(){return this.$trans("publisher.immediate")}},defaultEndDate:{type:String,default:""},dateDisplayFormat:{type:String,default:"MMM, DD, YYYY, "+Object(V["b"])()},dateFormat:{type:String,default:null},date_24h:{type:Boolean,default:Object(V["c"])()}},filters:x["a"],computed:Me({},Object(r["c"])({startDate:function(e){return e.publication.startDate},endDate:function(e){return e.publication.endDate}})),methods:{updateStartDate:function(e){this.$store.commit(a["m"].UPDATE_PUBLISH_START_DATE,e)},updateEndDate:function(e){this.$store.commit(a["m"].UPDATE_PUBLISH_END_DATE,e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)},openCalendar:function(){setTimeout((function(){var e=document.querySelectorAll(".accordion.s--open, .accordion.s--open .accordion__dropdown");e.forEach((function(e){e.style.overflow="visible"}))}),10)},openStartCalendar:function(){this.openCalendar()},openEndCalendar:function(){this.openCalendar()},closeCalendar:function(){var e=document.querySelectorAll(".accordion.s--open, .accordion.s--open .accordion__dropdown");e.forEach((function(e){e.style.overflow=""}))}}},Re=Ne,De=Object(k["a"])(Re,Ee,Se,!1,null,null,null),Le=De.exports,ze=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-accordion",{attrs:{open:e.open},on:{toggleVisibility:e.notifyOpen}},[n("span",{attrs:{slot:"accordion__title"},slot:"accordion__title"},[e._t("default")],2),n("div",{attrs:{slot:"accordion__value"},domProps:{innerHTML:e._s(e.currentLabel)},slot:"accordion__value"}),n("div",{staticClass:"accordion__fields"},[n("a17-select",{attrs:{name:"parent_id",options:e.options,selected:e.currentValue,size:"small"},on:{change:e.updateSelected}})],1)])},je=[],Ve=function(e,t){var n=[];function i(e){return Array(e+1).join(t)+" "}function r(e,t){e.forEach((function(e){var o={};if(o.value=e.id,e.edit&&(o.edit=e.edit),o.label=i(t)+e.name,n.push(o),e.children&&e.children.length){var a=t+1;r(e.children,a)}}))}return r(e,0),n};function Be(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Fe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Be(Object(n),!0).forEach((function(t){Ue(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Be(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var He={name:"A17Parents",components:{"a17-accordion":oe},mixins:[te["a"]],props:{value:{default:0},parents:{default:function(){return[]}}},computed:Fe({currentLabel:function(){var e=this.options.filter(this.isSameValue);return e.length?e[0].label:""},options:function(){var e=Ve(this.parents,"&nbsp;&nbsp;&nbsp;"),t={value:0,label:"(No parent)"};return e.unshift(t),e}},Object(r["c"])({currentValue:function(e){return e.parents.active}})),methods:{isSameValue:function(e){return e.value===this.currentValue},updateSelected:function(e){this.$store.commit(a["k"].UPDATE_PARENT,e)},notifyOpen:function(e){this.$emit("open",e,this.$options.name)}}},$e=He,We=(n("2774"),Object(k["a"])($e,ze,je,!1,null,"5a88e420",null)),qe=We.exports,Ye=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"multibutton"},[n("a17-dropdown",{ref:"submitDown",attrs:{position:"bottom-right",width:"full",offset:0}},[e.isDisabled(e.options[0])?n("a17-button",{attrs:{type:"button",variant:"validate",disabled:!0}},[e._v(e._s(e.options[0].text))]):n("a17-button",{attrs:{type:e.type,name:e.options[0].name,variant:"validate"},on:{click:function(t){return e.buttonClicked(e.options[0].name)}}},[e._v(e._s(e.options[0].text))]),e.hasValidOptions?n("button",{staticClass:"multibutton__trigger",attrs:{type:"button"},on:{click:function(t){return e.$refs.submitDown.toggle()}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]):e._e(),e.otherOptions.length?n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},[n("ul",e._l(e.otherOptions,(function(t){return n("li",{key:t.name},[e.isDisabled(t)?n("button",{attrs:{type:"button",disabled:""}},[e._v(e._s(t.text))]):n("button",{attrs:{type:e.type,name:t.name},on:{click:function(n){return e.buttonClicked(t.name)}}},[e._v(e._s(t.text))])])})),0)]):e._e()],1)],1)},Ge=[],Ke={name:"A17Multibutton",props:{type:{default:"button"},message:{type:String,default:""},options:{default:function(){return[]}}},data:function(){return{}},computed:{otherOptions:function(){return this.options.length?this.options.slice(1):[]},hasValidOptions:function(){var e=this.options.filter((function(e){return!e.hasOwnProperty("disabled")||!1===e.disabled})),t=Boolean(e.length>0);return!t&&this.message&&this.$store.commit(a["j"].SET_NOTIF,{message:this.message,variant:"success"}),t}},methods:{isDisabled:function(e){return!!e.hasOwnProperty("disabled")&&!0===e.disabled},buttonClicked:function(e){this.$emit("button-clicked",e)}}},Je=Ke,Qe=(n("b0c8"),Object(k["a"])(Je,Ye,Ge,!1,null,"40868c5c",null)),Ze=Qe.exports;function Xe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xe(Object(n),!0).forEach((function(t){tt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function tt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var nt={name:"A17Publisher",components:{"a17-switcher":J,"a17-radioaccordion":ce,"a17-checkboxaccordion":we,"a17-reviewaccordion":pe,"a17-revaccordion":Pe,"a17-parentaccordion":qe,"a17-pubaccordion":Le,"a17-multibutton":Ze},props:{showLanguages:{type:Boolean,default:!0},dateFormat:{type:String,default:null},dateDisplayFormat:{type:String,default:"MMM, DD, YYYY, "+Object(V["b"])()},date_24h:{type:Boolean,default:Object(V["c"])()}},data:function(){return{singleOpen:!0,openStates:{A17Reviewaccordion:!1,A17Radioaccordion:!1,A17Checkboxaccordion:!1,A17Revisions:!1,A17Pubaccordion:!1,A17Parents:!1}}},filters:x["a"],computed:et(et({reviewProcessCompleteValues:function(){var e=[];return this.reviewProcessComplete.length&&this.reviewProcessComplete.forEach((function(t){e.push(t.value)})),e},submitOptions:function(){return this.$store.getters.getSubmitOptions},publishedLanguagesValues:function(){var e=[];return this.publishedLanguages.length&&this.publishedLanguages.forEach((function(t){e.push(t.value)})),e}},Object(r["c"])({languages:function(e){return e.language.all},revisions:function(e){return e.revision.all},parentId:function(e){return e.parents.active},parents:function(e){return e.parents.all},published:function(e){return e.publication.published},publishSubmit:function(e){return e.publication.publishSubmit},textEnabled:function(e){return e.publication.publishedLabel},textDisabled:function(e){return e.publication.draftLabel},withPublicationToggle:function(e){return e.publication.withPublicationToggle},withPublicationTimeframe:function(e){return e.publication.withPublicationTimeframe},visibility:function(e){return e.publication.visibility},visibilityOptions:function(e){return e.publication.visibilityOptions},reviewProcess:function(e){return e.publication.reviewProcess},submitDisableMessage:function(e){return e.publication.submitDisableMessage}})),Object(r["b"])(["publishedLanguages","reviewProcessComplete"])),methods:{buttonClicked:function(e){this.$store.commit(a["m"].UPDATE_SAVE_TYPE,e)},openCloseAccordion:function(e,t){if(this.singleOpen)if(e)for(var n in this.openStates)this.openStates[n]=n===t;else this.openStates[t]=!1},openPreview:function(){this.$root.$refs.preview&&this.$root.$refs.preview.open(0)},updateVisibility:function(e){this.$store.commit(a["m"].UPDATE_PUBLISH_VISIBILITY,e)},openMoveToTrashModal:function(){this.$parent.$refs.moveToTrashModal.open()}}},it=nt,rt=(n("e8f1"),Object(k["a"])(it,z,j,!1,null,"6d7750c6",null)),ot=rt.exports,at=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.parents.length||e.hasUrl?n("div",{staticClass:"pagenav"},[e.parents.length?n("div",{staticClass:"pagenav__form"},[n("a17-vselect",{attrs:{name:"parents_sources",placeholder:e.placeholder,size:"large",searchable:!0,options:e.options},on:{change:e.gotoUrl}})],1):e._e(),e.hasUrl?n("nav",{staticClass:"pagenav__nav"},[e.previousUrl?n("a",{staticClass:"pagenav__btn",attrs:{href:e.previousUrl}},[e._v("← "+e._s(e.previousLabel))]):n("span",{staticClass:"pagenav__btn"},[e._v("← "+e._s(e.previousLabel))]),e.nextUrl?n("a",{staticClass:"pagenav__btn",attrs:{href:e.nextUrl}},[e._v(e._s(e.nextLabel)+" →")]):n("span",{staticClass:"pagenav__btn"},[e._v(e._s(e.nextLabel)+" →")])]):e._e()]):e._e()},st=[];function lt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ct(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?lt(Object(n),!0).forEach((function(t){ut(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ut(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var dt={name:"A17PageNav",props:{previousLabel:{type:String,default:"Previous page"},nextLabel:{type:String,default:"Next page"},previousUrl:{type:String,default:""},nextUrl:{type:String,default:""},placeholder:{type:String,default:""}},data:function(){return{}},computed:ct({hasUrl:function(){return this.previousUrl||this.nextUrl},options:function(){return Ve(this.parents,"–")}},Object(r["c"])({parents:function(e){return e.parents.all}})),methods:{gotoUrl:function(e){e.edit&&(window.location.href=e.edit)}},beforeMount:function(){}},ht=dt,ft=(n("ffdb"),Object(k["a"])(ht,at,st,!1,null,"761dbeaa",null)),vt=ft.exports,pt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"content"},[n("draggable",{staticClass:"content__container",attrs:{options:e.dragOptions},model:{value:e.blocks,callback:function(t){e.blocks=t},expression:"blocks"}},[n("transition-group",{attrs:{name:"draggable_list",tag:"div"}},e._l(e.blocks,(function(t,i){return n("div",{key:t.id,staticClass:"content__item"},[n("a17-block",{ref:"blockList",refInFor:!0,attrs:{block:t,index:i,opened:e.opened,closed:e.closed},on:{expand:e.setOpened}},[e._l(e.availableBlocks,(function(t){return[e.availableBlocks.length?n("button",{key:t.component,attrs:{slot:"dropdown-add",type:"button"},on:{click:function(n){return e.addBlock(t,i+1)}},slot:"dropdown-add"},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:t.icon}}),e._v(" "+e._s(t.title))]):e._e()]})),n("div",{attrs:{slot:"dropdown-action"},slot:"dropdown-action"},[e.opened?n("button",{attrs:{type:"button"},on:{click:function(t){return e.collapseAllBlocks()}}},[e._v(e._s(e.$trans("fields.block-editor.collapse-all","Collapse all")))]):n("button",{attrs:{type:"button"},on:{click:function(t){return e.expandAllBlocks()}}},[e._v(e._s(e.$trans("fields.block-editor.expand-all","Expand all")))]),e.editor?n("button",{attrs:{type:"button"},on:{click:function(t){return e.openEditor(i)}}},[e._v(e._s(e.$trans("fields.block-editor.open-in-editor","Open in editor")))]):e._e(),n("button",{attrs:{type:"button"},on:{click:function(t){return e.duplicateBlock(i)}}},[e._v(e._s(e.$trans("fields.block-editor.create-another","Create another")))]),n("button",{attrs:{type:"button"},on:{click:function(t){return e.deleteBlock(i)}}},[e._v(e._s(e.$trans("fields.block-editor.delete","Delete")))])]),e._l(e.blocks.length,(function(t){return n("button",{key:t,attrs:{slot:"dropdown-numbers",type:"button"},on:{click:function(n){return e.moveBlock(i,t-1)}},slot:"dropdown-numbers"},[e._v(e._s(t))])}))],2)],1)})),0)],1),n("div",{staticClass:"content__actions"},[e.availableBlocks.length?n("a17-dropdown",{ref:"blocksDropdown",attrs:{position:"top-center",arrow:!0,offset:10,maxHeight:430}},[n("a17-button",{attrs:{size:"small",variant:"action"},on:{click:function(t){return e.$refs.blocksDropdown.toggle()}}},[e._v(e._s(e.title))]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.availableBlocks,(function(t){return n("button",{key:t.component,attrs:{type:"button"},on:{click:function(n){return e.addBlock(t,-1)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"content__icon",attrs:{symbol:t.icon}}),e._v(e._s(t.title))])})),0)],1):e._e(),n("div",{staticClass:"content__secondaryActions"},[e.editor?n("a",{staticClass:"f--link f--link-underlined--o",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.openEditor(-1)}}},[e._v(e._s(e.$trans("fields.block-editor.open-in-editor","Open in editor")))]):e._e()])],1)],1)},mt=[],gt=n("1980"),kt=n.n(gt),bt=n("5420"),yt=n("159c"),wt=n("ecec");function _t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xt(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_t(Object(n),!0).forEach((function(t){Ct(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_t(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ct(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var At={name:"A17Content",components:{"a17-block":wt["default"],draggable:kt.a},mixins:[bt["a"],yt["a"]],props:{title:{type:String,default:""}},data:function(){return{opened:!0,closed:!1,handle:".block__handle"}},computed:xt({blocks:{get:function(){return this.savedBlocks},set:function(e){this.$store.commit(a["d"].REORDER_BLOCKS,e)}}},Object(r["c"])({editor:function(e){return e.content.editor},savedBlocks:function(e){return e.content.blocks},availableBlocks:function(e){return e.content.available}})),methods:{setOpened:function(e){var t=this.$refs.blockList.every((function(e){return!e.visible}));t&&(this.opened=!1,this.closed=!0),e&&(this.opened=!0)},addDropdownId:function(e){return"addBlock".concat(e,"Dropdown")},toggleDropdown:function(e){var t=this.addDropdownId(e),n=this.$refs[t][0];n&&n.toggle()},moveBlock:function(e,t){e!==t&&this.$store.commit(a["d"].MOVE_BLOCK,{oldIndex:e,newIndex:t})},addBlock:function(e,t){this.opened=!0;var n={title:e.title,type:e.component,icon:e.icon,attributes:e.attributes};this.$store.commit(a["d"].ADD_BLOCK,{block:n,index:t})},duplicateBlock:function(e){this.opened=!0,this.$store.commit(a["d"].DUPLICATE_BLOCK,e)},deleteBlock:function(e){var t=this;this.$root.$refs.warningContentEditor?this.$root.$refs.warningContentEditor.open((function(){t.$store.commit(a["d"].DELETE_BLOCK,e)})):this.$store.commit(a["d"].DELETE_BLOCK,e)},collapseAllBlocks:function(){this.opened=!1,this.closed=!0},expandAllBlocks:function(){this.opened=!0,this.closed=!1}},mounted:function(){var e=this;this.$nextTick((function(){e.savedBlocks.length>3&&e.collapseAllBlocks()}))}},Tt=At,Pt=(n("b62f"),Object(k["a"])(Tt,pt,mt,!1,null,"4165f148",null)),Et=Pt.exports,St=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"content"},[n("draggable",{staticClass:"content__content",attrs:{options:e.dragOptions},model:{value:e.blocks,callback:function(t){e.blocks=t},expression:"blocks"}},[n("transition-group",{attrs:{name:"draggable_list",tag:"div"}},e._l(e.blocks,(function(t,i){return n("div",{key:t.id,staticClass:"content__item"},[n("a17-block",{attrs:{block:t,index:i,size:e.blockSize,opened:e.opened},on:{open:e.setOpened}},[e.hasRemainingBlocks?n("a17-button",{attrs:{slot:"block-actions",variant:"icon","data-action":""},on:{click:function(t){return e.duplicateBlock(i)}},slot:"block-actions"},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"add"}})]):e._e(),n("div",{attrs:{slot:"dropdown-action"},slot:"dropdown-action"},[n("button",{attrs:{type:"button"},on:{click:function(t){return e.collapseAllBlocks()}}},[e._v("Collapse All")]),n("button",{attrs:{type:"button"},on:{click:function(t){return e.deleteBlock(i)}}},[e._v("Delete")]),e.hasRemainingBlocks?n("button",{attrs:{type:"button"},on:{click:function(t){return e.duplicateBlock(i)}}},[e._v("Duplicate")]):e._e()])],1)],1)})),0)],1),n("div",{staticClass:"content__trigger"},[e.hasRemainingBlocks&&e.blockType.trigger?n("a17-button",{class:e.triggerClass,attrs:{variant:e.triggerVariant,size:e.triggerSize},on:{click:function(t){return e.addBlock()}}},[e._v(e._s(e.blockType.trigger))]):e._e(),n("div",{staticClass:"content__note f--note f--small"},[e._t("default")],2)],1)],1)},Ot=[];function Mt(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function It(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mt(Object(n),!0).forEach((function(t){Nt(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mt(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nt(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rt={name:"A17Repeater",components:{"a17-block":wt["default"],draggable:kt.a},mixins:[bt["a"]],props:{type:{type:String,required:!0},name:{type:String,required:!0}},data:function(){return{opened:!0,handle:".block__handle"}},computed:It({triggerVariant:function(){return this.inContentEditor?"aslink":"action"},triggerSize:function(){return this.inContentEditor?"small":""},triggerClass:function(){return this.inContentEditor?"content__button":""},blockSize:function(){return this.inContentEditor?"small":""},inContentEditor:function(){return"undefined"!==typeof this.$parent.repeaterName},hasRemainingBlocks:function(){return!this.blockType.hasOwnProperty("max")||this.blockType.max>this.blocks.length},blockType:function(){return this.availableBlocks[this.type]?this.availableBlocks[this.type]:{}},blocks:{get:function(){return this.savedBlocks.hasOwnProperty(this.name)&&this.savedBlocks[this.name]||[]},set:function(e){this.$store.commit(a["f"].REORDER_FORM_BLOCKS,{type:this.type,name:this.name,blocks:e})}}},Object(r["c"])({savedBlocks:function(e){return e.repeaters.repeaters},availableBlocks:function(e){return e.repeaters.availableRepeaters}})),methods:{setOpened:function(e){this.opened=e},addBlock:function(){this.opened=!0,this.$store.commit(a["f"].ADD_FORM_BLOCK,{type:this.type,name:this.name})},duplicateBlock:function(e){this.opened=!0,this.$store.commit(a["f"].DUPLICATE_FORM_BLOCK,{type:this.type,name:this.name,index:e})},deleteBlock:function(e){this.$store.commit(a["f"].DELETE_FORM_BLOCK,{type:this.type,name:this.name,index:e})},collapseAllBlocks:function(){this.opened=!1}},mounted:function(){var e=this;this.$nextTick((function(){e.savedBlocks.length>0&&e.collapseAllBlocks()}))}},Dt=Rt,Lt=(n("af57"),Object(k["a"])(Dt,St,Ot,!1,null,"f570ad32",null)),zt=Lt.exports,jt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-inputframe",{attrs:{error:e.error,note:e.note,locale:e.locale,label:e.label,name:e.name,required:e.required},on:{localize:e.updateLocale}},[n("div",{staticClass:"form__field",class:e.textfieldClasses},[n("input",{attrs:{type:"search",placeholder:e.placeholder,name:e.name,id:e.name,disabled:e.disabled,required:e.required,readonly:e.readonly,autofocus:e.autofocus,autocomplete:e.autocomplete},domProps:{value:e.address},on:{focus:e.onFocus,blur:e.onBlur,input:e.onInput}}),e.showMap?n("div",{staticClass:"form__field--showMap"},[n("a",{attrs:{href:"#",type:"button"},on:{click:function(t){return t.preventDefault(),e.toggleMap(t)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"location"}}),n("span",{domProps:{innerHTML:e._s(e.mapMessage)}})])]):e._e(),n("input",{attrs:{type:"hidden",name:e.name+"__lat"},domProps:{value:e.lat}}),n("input",{attrs:{type:"hidden",name:e.name+"__lng"},domProps:{value:e.lng}})]),e.showMap?n("div",{directives:[{name:"show",rawName:"v-show",value:e.isMapOpen,expression:"isMapOpen"}],staticClass:"form__mapContainer"}):e._e()])},Vt=[],Bt=n("63ea"),Ft=n.n(Bt),Ut=n("da6f"),Ht=n("67ff"),$t=n("7a77"),Wt={show:window.$trans("fields.map.show"),hide:window.$trans("fields.map.hide")},qt="https://maps.googleapis.com/maps/api/js?libraries=places&key=",Yt=window["TWILL"].hasOwnProperty("APIKEYS")&&window["TWILL"].APIKEYS.hasOwnProperty("googleMapApi")?window["TWILL"].APIKEYS.googleMapApi:null,Gt={name:"A17Locationfield",mixins:[Ut["a"],T["a"],P["a"],Ht["a"]],props:{type:{type:String,default:"text"},zoom:{type:Number,default:15},showMap:{type:Boolean,default:!0},openMap:{type:Boolean,default:!1},initialLat:{type:Number,default:null},initialLng:{type:Number,default:null}},data:function(){return{map:null,autocompletePlace:null,markers:[],address:"",beforeFocusAddress:"",lat:this.initialLat,lng:this.initialLng,focused:!1,isMapOpen:this.openMap,mapMessage:this.openMap?Wt.hide:Wt.show}},computed:{value:{get:function(){return{latlng:this.lat+"|"+this.lng,address:this.address}},set:function(e){var t=e.latlng.split("|");this.lat=parseFloat(t[0]),this.lng=parseFloat(t[t.length-1]),this.address=e.address}},textfieldClasses:function(){return{"s--focus":this.focused,"s--disabled":this.disabled}}},methods:{updateFromStore:function(e){if(!Ft()(e,this.value)&&(this.value=e,this.clearMarkers(),""===this.address&&(this.lat=this.initialLat,this.lng=this.initialLng),this.lat&&this.lng&&this.map)){var t={lat:this.lat,lng:this.lng};this.addMarker(t),this.map.panTo(t)}},onFocus:function(e){this.focused=!0,this.beforeFocusAddress=this.address,this.$emit("focus")},onBlur:function(e){this.focused=!1,""===this.address&&(this.clearMarkers(),this.lat=this.initialLat,this.lng=this.initialLng),this.beforeFocusAddress!==this.address&&this.saveIntoStore(),this.$emit("blur")},onInput:function(e){var t=e.target.value;this.address=t,this.$emit("change",t)},onPlaceChanged:function(){var e=this.autocompletePlace.getPlace();if(this.clearMarkers(),this.clearLatLng(),e.geometry){var t=e.geometry.location;this.address=e.formatted_address,this.setLatLng(t),this.map&&(this.addMarker(t),this.map.panTo(t),this.map.setZoom(this.zoom))}this.beforeFocusAddress=this.address,this.saveIntoStore()},clearMarkers:function(){for(var e=0;e<this.markers.length;e++)this.markers[e]&&this.markers[e].setMap(null);this.markers=[]},clearLatLng:function(){this.lat=0,this.lng=0},addMarker:function(e){var t=new google.maps.Marker({position:e,map:this.map});this.markers.push(t)},setLatLng:function(e){this.lat=e.lat(),this.lng=e.lng()},toggleMap:function(){this.isMapOpen=!this.isMapOpen,this.mapMessage=this.isMapOpen?Wt.hide:Wt.show,this.map||"undefined"===typeof google||this.$nextTick((function(){this.initMap()}))},initMap:function(){var e=this.lat+this.lng,t={zoom:e?this.zoom:1,center:new google.maps.LatLng(this.lat,this.lng),mapTypeControl:!1,panControl:!1,zoomControl:!1,streetViewControl:!1},n=document.createElement("div");n.className="form__map",this.$el.querySelector(".form__mapContainer").appendChild(n),this.map=new google.maps.Map(n,t),e&&this.addMarker(new google.maps.LatLng(this.lat,this.lng))},initGeocoder:function(){var e=this;if(this.autocompletePlace=new google.maps.places.Autocomplete(this.$el.querySelector('input[type="search"]')),google.maps.event.addListener(this.autocompletePlace,"place_changed",this.onPlaceChanged),""===this.address&&this.lat&&this.lng){var t=new google.maps.Geocoder,n={lat:this.lat,lng:this.lng};t.geocode({location:n},(function(t,n){"OK"===n?t[1]?e.address=t[1].formatted_address:console.error("Geocoding - No results found"):console.error("Geocoding - Geocoder failed due to: "+n)}))}},initGoogleApi:function(){this.initGeocoder(),this.showMap&&this.isMapOpen&&this.initMap()}},mounted:function(){var e=this;if("undefined"!==typeof google)this.initGoogleApi();else{var t="google-map-api-script",n=qt+Yt;Object($t["a"])(t,n,"text/javascript").then((function(){e.initGoogleApi()}))}},beforeDestroy:function(){"undefined"!==typeof google&&google.maps.event.clearListeners(this.autocompletePlace,"place_changed",this.onPlaceChanged)}},Kt=Gt,Jt=(n("3565"),Object(k["a"])(Kt,jt,Vt,!1,null,"e145ff86",null)),Qt=Jt.exports,Zt=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[e.keepAlive?[n("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}]},[e._t("default")],2)]:[e.open?n("div",[e._t("default")],2):e._e()]],2)},Xt=[],en=n("b8ce"),tn=n.n(en);function nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nn(Object(n),!0).forEach((function(t){on(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function on(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var an={name:"A17ConnectorField",props:{fieldName:{type:String,required:!0},requiredFieldValues:{default:""},inModal:{type:Boolean,default:!1},keepAlive:{type:Boolean,default:!1},isValueEqual:{type:Boolean,default:!0}},computed:rn(rn({storedValue:function(){return this.inModal?this.modalFieldValueByName(this.fieldName):this.fieldValueByName(this.fieldName)}},Object(r["b"])(["fieldValueByName","modalFieldValueByName"])),Object(r["c"])({fields:function(e){return e.form.fields},modalFields:function(e){return e.form.modalFields}})),data:function(){return{open:!1}},watch:{storedValue:function(e){this.toggleVisibility(e)}},methods:{toggleVisibility:function(e){var t=tn()(e),n=tn()(this.requiredFieldValues);Array.isArray(n)&&n.sort(),Array.isArray(t)&&t.sort(),this.isValueEqual?this.open=Ft()(t,n):this.open=!Ft()(t,n)}},mounted:function(){var e=this;this.$nextTick((function(){e.toggleVisibility(this.storedValue)}))}},sn=an,ln=Object(k["a"])(sn,Zt,Xt,!1,null,null,null),cn=ln.exports,un=n("f389"),dn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"overlay",class:e.overlayClasses},[n("div",{staticClass:"overlay__window"},[e.overlayTitle?n("header",{staticClass:"overlay__header"},[e._v(" "+e._s(e.overlayTitle)+" "),n("button",{staticClass:"overlay__close",attrs:{type:"button"},on:{click:e.hide}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"close_modal"}}),n("span",{staticClass:"overlay__closeLabel"},[e._v(e._s(e.$trans("overlay.close")))])])]):e._e(),e.active?n("div",{directives:[{name:"show",rawName:"v-show",value:!e.hidden,expression:"!hidden"}],staticClass:"overlay__content"},[e._t("default")],2):e._e()])])},hn=[],fn=n("0a8f");function vn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?vn(Object(n),!0).forEach((function(t){mn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function mn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gn=document.documentElement,kn=fn["a"].overlay,bn=fn["a"].modal,yn={name:"A17Overlay",props:{title:{type:String,default:""},revisionTitle:{type:String,default:function(){return this.$trans("previewer.revision-history")}},forceClose:{type:Boolean,default:!1},forceLock:{type:Boolean,default:!1},mode:{type:String,default:""}},data:function(){return{active:!1,hidden:!0,locked:!1}},computed:pn({activeRevision:function(){return Object.keys(this.currentRevision).length},overlayTitle:function(){return this.activeRevision?this.revisionTitle:this.title},overlayClasses:function(){return{"overlay--active":this.active,"overlay--hidden":this.hidden}}},Object(r["c"])({currentRevision:function(e){return e.revision.active}})),methods:{open:function(e){this.active&&!this.hidden||(this.active=!0,this.hidden=!1,gn.classList.add(kn),window.addEventListener("keyup",this.keyPressed),this.$emit("open"))},mask:function(){gn.classList.remove(kn),window.removeEventListener("keyup",this.keyPressed),this.$emit("close")},hide:function(){this.active&&(this.locked||(this.forceClose?this.close():(this.hidden=!0,this.mask())))},close:function(e){this.active&&(this.locked||(this.active=!1,this.mask()))},keyPressed:function(e){if(27===e.which||27===e.keyCode){if(gn.classList.contains(bn))return;this.hide(),this.$emit("esc-key")}}},beforeDestroy:function(){this.$el.parentNode&&(this.active&&window.removeEventListener("keyup",this.keyPressed),this.$el.parentNode.removeChild(this.$el))}},wn=yn,_n=(n("d5be"),Object(k["a"])(wn,dn,hn,!1,null,"b7b05f42",null)),xn=_n.exports,Cn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-overlay",{ref:"overlay",attrs:{title:e.$trans("previewer.title")}},[e.revisions.length?n("div",{staticClass:"previewer",class:{"previewer--loading":e.loading}},[e.activeRevision?n("a17-button",{staticClass:"previewer__restore",attrs:{variant:"warning",size:"small"},on:{click:e.restoreRevision}},[e._v(e._s(e.$trans("previewer.restore")))]):e._e(),!e.activeRevision&&e.editor?n("a17-button",{staticClass:"previewer__restore",attrs:{variant:"editor",size:"small"},on:{click:e.openEditor}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"hide--xsmall",attrs:{symbol:"editor"}}),e._v(e._s(e.$trans("previewer.editor")))]):e._e(),n("div",{staticClass:"previewer__frame"},[n("div",{staticClass:"previewer__inner"},[n("div",{staticClass:"previewer__nav"},[n("div",{staticClass:"previewer__revisions"},[e.slipScreen?n("span",{staticClass:"tag tag--revision"},[e._v(e._s(e.$trans("previewer.past-revision")))]):e._e(),n("a17-dropdown",{ref:"previewRevisionsDropdown",attrs:{position:"bottom-left",maxWidth:400,maxHeight:300}},[n("a17-button",{staticClass:"previewer__trigger",on:{click:function(t){return e.$refs.previewRevisionsDropdown.toggle()}}},[e.activeRevision?[e._v(" "+e._s(e._f("formatDate")(e.currentRevision.datetime))+" ("+e._s(e.currentRevision.author)+") "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]:[e._v(" "+e._s(e.$trans("previewer.last-edit"))+" "),n("timeago",{attrs:{"auto-update":1,datetime:new Date(e.revisions[0].datetime)}}),e._v(" "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"dropdown_module"}})]],2),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.revisions,(function(t,i){return n("button",{key:t.id,staticClass:"previewerRevision",class:{"previewerRevision--active":e.currentRevision.id===t.id},attrs:{type:"button"},on:{click:function(n){return e.toggleRevision(t.id)}}},[n("span",{staticClass:"previewerRevision__author"},[e._v(e._s(t.author))]),n("span",{staticClass:"previewerRevision__datetime"},[0===i?n("span",{staticClass:"tag"},[e._v(e._s(e.$trans("previewer.current-revision")))]):e._e(),e._v(" "+e._s(e._f("formatDate")(t.datetime)))])])})),0)],1)],1),e.slipScreen?e._e():n("ul",{staticClass:"previewer__breakpoints"},e._l(e.breakpoints,(function(t){return n("li",{key:t.size,staticClass:"previewer__breakpoint",class:{"s--active":e.activeBreakpoint===t.size}},[n("a",{attrs:{href:"#"},on:{click:function(n){return n.preventDefault(),e.resizePreview(t.size)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:t.name}})])])})),0),e.activeRevision?n("div",{staticClass:"previewer__compare"},[e.slipScreen?n("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.singleView(t)}}},[n("span",{staticClass:"previewer__compareLabel"},[e._v(e._s(e.$trans("previewer.single-view")))]),e._v(" "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"revision-single"}})]):n("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.compareView(t)}}},[n("span",{staticClass:"previewer__compareLabel"},[e._v(e._s(e.$trans("previewer.compare-view")))]),e._v(" "),n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"revision-compare"}})])]):e._e()]),n("div",{staticClass:"previewer__content"},[n("div",{staticClass:"previewer__iframe"},[n("a17-iframe",{attrs:{content:e.activeRevision?e.activeContent:e.currentContent,size:e.activeBreakpoint,scrollPosition:e.scrollPosition},on:{scrollDoc:e.setIframeScroll}})],1),e.slipScreen?n("div",{staticClass:"previewer__iframe"},[n("div",{staticClass:"previewer__iframeInfos"},[n("span",{staticClass:"tag tag--revision"},[e._v(e._s(e.$trans("previewer.current-revision")))]),e._v(e._s(e.$trans("previewer.unsaved")))]),n("a17-iframe",{attrs:{content:e.currentContent,scrollPosition:e.scrollPosition},on:{scrollDoc:e.setIframeScroll}})],1):e._e()])])])],1):e._e()])},An=[],Tn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("iframe",{staticClass:"previewerframe",style:{width:e.size>0?e.size+"px":""},attrs:{srcdoc:e.content,frameborder:"0"},on:{load:e.loadPreview}})},Pn=[],En={name:"A17previewerFrame",props:{size:{type:Number,default:0},content:{type:String,default:""},scrollPosition:{type:Number,default:0}},data:function(){return{currentScroll:this.scrollPosition}},watch:{scrollPosition:function(e){this.$el.contentWindow.scrollTo(0,e)}},methods:{loadPreview:function(e){for(var t=this,n=e.target,i=n.contentDocument.querySelectorAll("a:not(.sf-dump-toggle),button"),r=0;r<i.length;r++)i[r].setAttribute("disabled","disabled"),i[r].style.pointerEvents="none",i[r].onclick=function(){return!1};n.contentDocument.addEventListener("scroll",(function(e){var i=n.contentWindow.pageYOffset;i!==t.currentScroll&&(t.$emit("scrollDoc",i),t.currentScroll=i)})),this.$el.contentWindow.scrollTo(0,this.currentScroll)}}},Sn=En,On=(n("a70b"),Object(k["a"])(Sn,Tn,Pn,!1,null,"7b1f8f6c",null)),Mn=On.exports;function In(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Nn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?In(Object(n),!0).forEach((function(t){Rn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):In(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Dn={name:"A17Previewer",components:{"a17-iframe":Mn},data:function(){return{loadedCurrent:!1,slipScreen:!1,activeBreakpoint:1280,lastActiveBreakpoint:1280,scrollPosition:0,breakpoints:[{size:1280,name:"preview-desktop"},{size:1024,name:"preview-tablet-h"},{size:768,name:"preview-tablet-v"},{size:320,name:"preview-mobile"}]}},filters:x["a"],computed:Nn({activeRevision:function(){return Object.keys(this.currentRevision).length}},Object(r["c"])({editor:function(e){return e.content.editor},loading:function(e){return e.revision.loading},currentRevision:function(e){return e.revision.active},activeContent:function(e){return e.revision.activeContent},currentContent:function(e){return e.revision.currentContent},revisions:function(e){return e.revision.all},restoreRevisionUrl:function(e){return e.form.restoreUrl}})),methods:{open:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=this;function n(){t.$refs.overlay&&t.$refs.overlay.open(),t.singleView()}this.loadedCurrent=!1,this.activeBreakpoint=1280,this.lastActiveBreakpoint=1280,e?this.previewRevision(e,(function(){n()})):this.previewCurrent((function(){n()}))},close:function(){this.$refs.overlay.close()},openEditor:function(){var e=this.$root.$refs;e.preview&&e.preview.close(),e.editor&&e.editor.open()},restoreRevision:function(){window.location.href=this.restoreRevisionUrl+"?revisionId="+this.currentRevision.id},resizePreview:function(e){this.activeBreakpoint=parseInt(e),this.lastActiveBreakpoint=parseInt(e)},previewCurrent:function(e){this.$store.commit(a["n"].UPDATE_REV,0),this.loadCurrent(e)},loadCurrent:function(e){var t=this;this.loadedCurrent?e&&"function"===typeof e&&e():(this.loadedCurrent=!0,this.$store.dispatch(s["a"].GET_CURRENT).then((function(){e&&"function"===typeof e&&e()}),(function(e){t.$store.commit(a["f"].SET_FORM_ERRORS,e.response.data),t.$store.commit(a["j"].SET_NOTIF,{message:"Your submission could not be validated, please fix and retry",variant:"error"})})))},toggleRevision:function(e){if(this.activeRevision&&this.currentRevision.id===e)return this.singleView(),void this.previewCurrent();this.previewRevision(e)},previewRevision:function(e,t){var n=this;this.$store.commit(a["n"].UPDATE_REV,e),this.$store.dispatch(s["a"].GET_REVISION).then((function(){t&&"function"===typeof t&&t()}),(function(e){n.$store.commit(a["j"].SET_NOTIF,{message:"Invalid revision.",variant:"error"})}))},compareView:function(){this.activeBreakpoint=0,this.slipScreen=!0,this.activeRevision&&this.loadCurrent()},singleView:function(){this.activeBreakpoint=this.lastActiveBreakpoint,this.slipScreen=!1},setIframeScroll:function(e){this.scrollPosition=e}}},Ln=Dn,zn=(n("0bd3"),Object(k["a"])(Ln,Cn,An,!1,null,"617a3800",null)),jn=zn.exports,Vn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-overlay",{ref:"overlay",attrs:{title:e.$trans("editor.title")},on:{close:e.closeEditor,open:e.openEditor}},[n("div",{staticClass:"editor"},[e.revisions.length?n("a17-button",{staticClass:"editor__leave",attrs:{variant:"editor",size:"small"},on:{click:e.openPreview}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],staticClass:"hide--xsmall",attrs:{symbol:"preview"}}),e._v(e._s(e.$trans("fields.block-editor.preview","Preview")))]):e._e(),n("div",{staticClass:"editor__frame"},[n("div",{staticClass:"editor__inner"},[n("div",{ref:"sidebar",staticClass:"editor__sidebar",class:e.sidebarClass},[n("a17-editorsidebar",{on:{delete:e.deleteBlock,save:e.saveBlock,cancel:e.cancelBlock}},[e._v(e._s(e.$trans("fields.block-editor.add-content","Add content")))])],1),n("div",{staticClass:"editor__resizer",on:{mousedown:e.resize}},[n("span")]),n("div",{staticClass:"editor__preview",class:e.previewClass,style:e.previewStyle},[n("a17-editorpreview",{ref:"previews",on:{select:e.selectBlock,delete:e.deleteBlock,unselect:e.unselectBlock,add:e.addBlock}}),e.loading?n("a17-spinner",{attrs:{visible:!0}},[e._v(e._s(e.$trans("fields.block-editor.loading","Loading"))+"…")]):e._e()],1)])])],1)])},Bn=[],Fn=n("66cb"),Un=n.n(Fn),Hn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"editorSidebar"},[e._l(e.blocks,(function(t,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.isBlockActive(t.id),expression:"isBlockActive(block.id)"}],key:t.id,staticClass:"editorSidebar__item"},[n("div",{staticClass:"editorSidebar__title"},[n("div",{staticClass:"editorSidebar__blockTitle"},[n("a17-dropdown",{ref:e.moveDropdown(i),refInFor:!0,staticClass:"f--small",attrs:{position:"bottom-left",maxHeight:270}},[n("span",{staticClass:"editorSidebar__counter f--tiny",on:{click:function(t){return e.toggleDropdown(i)}}},[e._v(e._s(i+1))]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.blocks.length,(function(t){return n("button",{key:t,attrs:{type:"button"},on:{click:function(n){return e.moveBlock(i,t-1)}}},[e._v(e._s(t))])})),0)]),e._v(e._s(e.activeBlock.title)+" ")],1),n("span",[n("a",{staticClass:"f--small f--note f--underlined",attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),e.deleteBlock(i)}}},[e._v(e._s(e.$trans("editor.delete")))])])]),n("div",{staticClass:"editorSidebar__body"},[n("a17-inputframe",{attrs:{label:"",name:"block."+t.id}}),n(""+t.type,e._b({key:"`editor_${block.type}_${block.id}`",tag:"component",attrs:{name:e.componentName(t.id)}},"component",t.attributes,!1))],1)])})),e.hasBlockActive?[n("div",{staticClass:"editorSidebar__actions"},[n("a17-button",{attrs:{variant:"action"},on:{click:function(t){return e.saveBlock()}}},[e._v(e._s(e.$trans("editor.done")))]),n("a17-button",{attrs:{variant:"secondary"},on:{click:function(t){return e.cancelBlock()}}},[e._v(e._s(e.$trans("editor.cancel")))])],1)]:[n("div",{staticClass:"editorSidebar__list"},[n("h4",{staticClass:"editorSidebar__title"},[e._t("default")],2),e.availableBlocks.length?n("draggable",{attrs:{options:{group:{name:"editorBlocks",pull:"clone",put:!1},handle:".editorSidebar__button"}},model:{value:e.availableBlocks,callback:function(t){e.availableBlocks=t},expression:"availableBlocks"}},e._l(e.availableBlocks,(function(t){return n("div",{key:t.component,staticClass:"editorSidebar__button",attrs:{"data-title":t.title,"data-icon":t.icon,"data-component":t.component}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:t.icon}}),e._v(e._s(t.title)+" ")])})),0):e._e()],1),n("div",{staticClass:"editorSidebar__actions"},[e.isSubmitDisabled(e.submitOptions[0])?n("a17-button",{attrs:{variant:"validate",disabled:!0}},[e._v(e._s(e.submitOptions[0].text))]):n("a17-button",{attrs:{name:e.submitOptions[0].name,variant:"validate"},on:{click:function(t){return e.saveForm(e.submitOptions[0].name)}}},[e._v(e._s(e.submitOptions[0].text))])],1)]],2)},$n=[];function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function qn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(n),!0).forEach((function(t){Yn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Yn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Gn={name:"A17editorsidebar",components:{draggable:kt.a},mixins:[bt["a"]],data:function(){return{}},computed:qn({hasBlockActive:function(){return Object.keys(this.activeBlock).length>0},submitOptions:function(){return this.$store.getters.getSubmitOptions}},Object(r["c"])({activeBlock:function(e){return e.content.active},availableBlocks:function(e){return e.content.available},blocks:function(e){return e.content.blocks}})),methods:{isSubmitDisabled:function(e){return!!e.hasOwnProperty("disabled")&&!0===e.disabled},toggleDropdown:function(e){if(this.blocks.length>1){var t=this.moveDropdown(e);this.$refs[t].length&&this.$refs[t][0].toggle()}},moveDropdown:function(e){return"move".concat(e,"Dropdown")},isBlockActive:function(e){return!!this.hasBlockActive&&e===this.activeBlock.id},componentName:function(e){return"blocks["+e+"]"},moveBlock:function(e,t){e!==t&&this.$store.commit(a["d"].MOVE_BLOCK,{oldIndex:e,newIndex:t})},saveBlock:function(){this.$emit("save")},cancelBlock:function(){this.$emit("cancel")},deleteBlock:function(e){this.$emit("delete",e)},saveForm:function(e){this.$store.commit(a["m"].UPDATE_SAVE_TYPE,e),this.$root.submitForm&&this.$root.submitForm()}},mounted:function(){}},Kn=Gn,Jn=(n("611f"),n("e431"),Object(k["a"])(Kn,Hn,$n,!1,null,"0f6c2e43",null)),Qn=Jn.exports,Zn=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"editorPreview",attrs:{editorPreviewClass:e.editorPreviewClass},on:{mousedown:e.unselectBlock}},[e.blocks.length?e._e():n("div",{staticClass:"editorPreview__empty"},[n("b",[e._v("Drag and drop content from the left navigation")])]),n("draggable",{staticClass:"editorPreview__content",attrs:{options:{group:"editorBlocks",handle:e.handle}},on:{add:e.onAdd,update:e.onUpdate},model:{value:e.blocks,callback:function(t){e.blocks=t},expression:"blocks"}},e._l(e.blocks,(function(t,i){return n("div",{key:t.id,ref:t.id,refInFor:!0,staticClass:"editorPreview__item",class:{"editorPreview__item--active":e.isBlockActive(t.id),"editorPreview__item--hover":e.activeItem===i},on:{mousedown:function(e){e.stopPropagation()}}},[n("div",{staticClass:"editorPreview__frame"},[n("a17-editor-iframe",{attrs:{block:t},on:{loaded:e.resizeIframe}})],1),n("div",{staticClass:"editorPreview__protector editorPreview__dragger",on:{click:function(t){return t.preventDefault(),e.selectBlock(i)}}}),n("div",{staticClass:"editorPreview__header"},[n("a17-buttonbar",{attrs:{variant:"visible"}},[e.blocks.length>1?n("a17-dropdown",{ref:e.moveDropdown(i),refInFor:!0,staticClass:"f--small",attrs:{position:"bottom-left",maxHeight:270},on:{open:function(t){e.activeItem=i},close:function(t){e.activeItem=-1}}},[n("button",{attrs:{type:"button"},on:{click:function(t){return e.toggleDropdown(i)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"drag"}})]),n("div",{attrs:{slot:"dropdown__content"},slot:"dropdown__content"},e._l(e.blocks.length,(function(t){return n("button",{key:t,attrs:{type:"button"},on:{click:function(n){return e.moveBlock(i,t-1)}}},[e._v(e._s(t))])})),0)]):e._e(),n("button",{attrs:{type:"button"},on:{click:function(t){return e.deleteBlock(i)}}},[n("span",{directives:[{name:"svg",rawName:"v-svg"}],attrs:{symbol:"trash"}})])],1)],1)])})),0)],1)},Xn=[],ei=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"editorIframe"},[""===e.preview?n("div",{staticClass:"editorIframe__empty"},[e._v(" "+e._s(e.title)+" ")]):e._e(),n("iframe",{ref:"frame",attrs:{srcdoc:e.preview},on:{load:e.loadedPreview}})])},ti=[];function ni(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ii(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ni(Object(n),!0).forEach((function(t){ri(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ni(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ri(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var oi={name:"A17editoriframe",props:{block:{type:Object,default:function(){return{}}}},computed:ii(ii({preview:function(){return this.previewsById(this.block.id)||""},title:function(){return this.block.title||""}},Object(r["b"])(["previewsById"])),Object(r["c"])({savedBlocks:function(e){return e.content.blocks}})),methods:{setIframeHeight:function(){var e=this;this.$refs.frame&&window.requestAnimationFrame((function(){e.$refs.frame.style.height=e.$refs.frame.contentWindow.document.body.scrollHeight+"px"}))},loadedPreview:function(e){this.$refs.frame&&this.$refs.frame.srcdoc&&(this.$emit("loaded",this.$refs.frame),this.setIframeHeight())},handleResize:function(){this.setIframeHeight()}},mounted:function(){window.addEventListener("resize",this.handleResize)},beforeDestroy:function(){window.removeEventListener("resize",this.handleResize)}},ai=oi,si=(n("da0c"),Object(k["a"])(ai,ei,ti,!1,null,"2fa81c14",null)),li=si.exports;function ci(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function ui(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ci(Object(n),!0).forEach((function(t){di(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ci(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function di(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var hi={name:"A17editorpreview",components:{draggable:kt.a,"a17-editor-iframe":li},mixins:[bt["a"]],data:function(){return{activeItem:-1,blocksLoaded:0,handle:".editorPreview__dragger"}},computed:ui({blocks:{get:function(){return this.savedBlocks},set:function(e){}},hasBlockActive:function(){return Object.keys(this.activeBlock).length},editorPreviewClass:function(){return{"editorPreview--loading":this.loading}}},Object(r["c"])({loading:function(e){return e.content.loading},activeBlock:function(e){return e.content.active},savedBlocks:function(e){return e.content.blocks}})),methods:{toggleDropdown:function(e){if(this.blocks.length>1){var t=this.moveDropdown(e);this.$refs[t].length&&this.$refs[t][0].toggle()}},moveDropdown:function(e){return"movePreview".concat(e,"Dropdown")},moveBlock:function(e,t){e!==t&&this.$store.commit(a["d"].MOVE_BLOCK,{oldIndex:e,newIndex:t})},onAdd:function(e){var t=e.item,n={};n.title=t.getAttribute("data-title"),n.component=t.getAttribute("data-component"),n.icon=t.getAttribute("data-icon"),this.addBlock(n,Math.max(0,e.newIndex))},onUpdate:function(e){this.$store.commit(a["d"].MOVE_BLOCK,{oldIndex:e.oldIndex,newIndex:e.newIndex})},isBlockActive:function(e){return!!this.hasBlockActive&&e===this.activeBlock.id},addBlock:function(e,t){var n={title:e.title,type:e.component,icon:e.icon,attributes:e.attributes};this.$store.commit(a["d"].ADD_BLOCK,{block:n,index:t}),this.$emit("add",t)},deleteBlock:function(e){this.$emit("delete",e)},selectBlock:function(e){this.$emit("select",e)},unselectBlock:function(){this.$emit("unselect")},resizeIframe:function(e){var t=e.contentWindow.document.body;t.style.overflow="hidden";var n=window.getComputedStyle(t),i=n.getPropertyValue("margin-top"),r=n.getPropertyValue("margin-bottom"),o=t.scrollHeight+parseInt(i)+parseInt(r);e.height=o+"px"},resizeAllIframes:function(){var e=this,t=this.$el.querySelectorAll("iframe");t.forEach((function(t){e.resizeIframe(t)}))},_resize:v()((function(){this.resizeAllIframes()}),200),init:function(){window.addEventListener("resize",this._resize)},dispose:function(){window.removeEventListener("resize",this._resize)}},mounted:function(){this.init()},beforeDestroy:function(){this.dispose()}},fi=hi,vi=(n("2f7f"),Object(k["a"])(fi,Zn,Xn,!1,null,"3082648e",null)),pi=vi.exports,mi=n("64e5"),gi=n("0644"),ki=n.n(gi);function bi(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function yi(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?bi(Object(n),!0).forEach((function(t){wi(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bi(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function wi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _i,xi=document.documentElement,Ci=fn["a"].editor,Ai={name:"A17Editor",components:{"a17-editorsidebar":Qn,"a17-editorpreview":pi,"a17-spinner":mi["a"]},props:{bgColor:{type:String,default:"#FFFFFF"}},data:function(){return{isWatching:!1,unSubscribe:function(){return null}}},computed:yi({blocks:{get:function(){return this.savedBlocks},set:function(e){this.$store.commit(a["d"].REORDER_BLOCKS,e)}},hasBlockActive:function(){return Object.keys(this.activeBlock).length>0},previewClass:function(){var e=Un()(this.bgColor);return{"editor__preview--dark":e.getBrightness()<180,"editor__preview--loading":this.loading}},sidebarClass:function(){return{"editor__sidebar--mobile":this.hasBlockActive}},previewStyle:function(){return{"background-color":this.bgColor}}},Object(r["c"])({loading:function(e){return e.content.loading},activeBlock:function(e){return e.content.active},savedBlocks:function(e){return e.content.blocks},availableBlocks:function(e){return e.content.available},revisions:function(e){return e.revision.all}})),watch:{loading:function(e){var t=this;e||t.$nextTick((function(){setTimeout((function(){t.scrollToActive()}),250)}))}},methods:{open:function(e){this.getAllPreviews(),e>=0&&(this.selectBlock(e),this.scrollToActive()),this.$refs.overlay.open()},close:function(e){this.$refs.overlay.close()},openEditor:function(){xi.classList.add(Ci)},closeEditor:function(){this.unselectBlock(),xi.classList.remove(Ci)},scrollToActive:function(){if(this.hasBlockActive){var e=this.$refs.previews.$refs[this.activeBlock.id];if(e){var t=e[0].offsetTop,n=this.$el.querySelector(".editorPreview__content");n.scrollTop=Math.max(0,t-20)}}},isBlockActive:function(e){return!!this.hasBlockActive&&e===this.activeBlock.id},openPreview:function(){this.$root.$refs.preview&&this.$root.$refs.preview.open()},resize:function(){var e=this;window.addEventListener("mousemove",e.resizeSidebar,!1),window.addEventListener("mouseup",e.stopResizeSidebar,!1)},resizeSidebar:function(e){var t=this.$refs.sidebar,n=window.innerWidth;t&&(t.style.width=(e.clientX-t.offsetLeft)/n*100+"%")},stopResizeSidebar:function(){var e=this;window.removeEventListener("mousemove",e.resizeSidebar,!1),window.removeEventListener("mouseup",e.stopResizeSidebar,!1),this.$refs.previews.resizeAllIframes()},saveBlock:function(){this.hasBlockActive&&this.getPreview(),this.unselectBlock()},addBlock:function(e){this.selectBlock(e),this.getPreview(e)},deleteBlock:function(e){var t=this;this.$root.$refs.warningContentEditor?this.$root.$refs.warningContentEditor.open((function(){t.unselectBlock(),t.$store.commit(a["d"].DELETE_BLOCK,e)})):(this.unselectBlock(),this.$store.commit(a["d"].DELETE_BLOCK,e))},cancelBlock:function(){this.hasBlockActive&&(window["TWILL"].hasOwnProperty("PREVSTATE")&&this.$store.replaceState(window["TWILL"].PREVSTATE),this.getPreview()),this.unselectBlock()},getBlockId:function(e){return"undefined"===typeof this.blocks[e]?0:this.blocks[e].id},getAllPreviews:function(){this.$store.dispatch(s["a"].GET_ALL_PREVIEWS)},getPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1;this.$store.dispatch(s["a"].GET_PREVIEW,e)},selectBlock:function(e){var t=this,n=this.getBlockId(e);n&&(this.isBlockActive(n)?this.unselectBlock():(window["TWILL"].PREVSTATE=ki()(this.$store.state),this.$store.commit(a["d"].ACTIVATE_BLOCK,e),this.isWatching||(this.isWatching=!0,this.unSubscribe=this.$store.subscribe((function(e,n){a["l"].REFRESH_BLOCK_PREVIEW.includes(e.type)&&(a["l"].REFRESH_BLOCK_PREVIEW_ALL.includes(e.type)?t.getAllPreviews():t.getPreview())})))))},unselectBlock:function(){this.unSubscribe(),this.isWatching=!1,window["TWILL"].hasOwnProperty("PREVSTATE")&&delete window["TWILL"].PREVSTATE,this.hasBlockActive&&this.$store.commit(a["d"].ACTIVATE_BLOCK,-1)}},mounted:function(){}},Ti=Ai,Pi=(n("9881"),Object(k["a"])(Ti,Vn,Bn,!1,null,"cc4b6c2e",null)),Ei=Pi.exports,Si=n("2e01"),Oi=n("54d3"),Mi=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a17-modal",{ref:"modal",staticClass:"modal--form",attrs:{title:e.modalTitle,forceClose:!0}},[n("form",{attrs:{action:e.formCreate},on:{submit:function(t){return t.preventDefault(),e.submit(t)}}},[e._t("default"),n("a17-modal-validation",{attrs:{"is-disable":!0}})],2)])},Ii=[],Ni={name:"A17ModalAdd",props:{name:{type:String,default:""},modalTitle:{type:String,default:"Add new"},formCreate:{type:String,default:"#"}},components:{"a17-modal-validation":A["a"]},methods:{open:function(){this.$refs.modal&&this.$refs.modal.open()},submit:function(e){var t=this;this.$store.commit(a["f"].UPDATE_FORM_LOADING,!0);var n=document.activeElement.name;this.$nextTick((function(){this.$store.dispatch(s["a"].CREATE_FORM_IN_MODAL,{name:this.name,endpoint:this.formCreate,method:"post"}).then((function(){t.$refs.modal&&t.$refs.modal.close(),t.$nextTick((function(){t.$store.commit(a["j"].SET_NOTIF,{message:"Your content has been added",variant:"success"}),"create-another"===n&&t.$refs.modal&&t.$refs.modal.open()}))}),(function(e){t.$store.commit(a["j"].SET_NOTIF,{message:"Your content can not be added, please retry",variant:"error"})}))}))}}},Ri=Ni,Di=Object(k["a"])(Ri,Mi,Ii,!1,null,null,null),Li=Di.exports,zi=n("ce72");function ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Vi,Bi,Fi={withPublicationToggle:window["TWILL"].STORE.publication.withPublicationToggle||!1,published:window["TWILL"].STORE.publication.published||!1,publishSubmit:window["TWILL"].STORE.publication.published||!window["TWILL"].STORE.publication.withPublicationToggle?"update":"live",publishedLabel:window["TWILL"].STORE.publication.publishedLabel||"Live",draftLabel:window["TWILL"].STORE.publication.draftLabel||"Draft",withPublicationTimeframe:window["TWILL"].STORE.publication.withPublicationTimeframe||!1,startDate:window["TWILL"].STORE.publication.startDate||null,endDate:window["TWILL"].STORE.publication.endDate||null,visibility:window["TWILL"].STORE.publication.visibility||!1,reviewProcess:window["TWILL"].STORE.publication.reviewProcess||[],createWithoutModal:window["TWILL"].STORE.publication.createWithoutModal||!1,saveType:void 0,visibilityOptions:[{value:"public",label:"Public"},{value:"private",label:"Private"}],submitDisableMessage:window["TWILL"].STORE.publication.submitDisableMessage||"",submitOptions:window["TWILL"].STORE.publication.submitOptions||{draft:[{name:"save",text:window.$trans("publisher.save","Save as draft"),disabled:!1},{name:"save-close",text:window.$trans("publisher.save-close","Save as draft and close"),disabled:!1},{name:"save-new",text:window.$trans("publisher.save-new","Save as draft and create new"),disabled:!1},{name:"cancel",text:window.$trans("publisher.cancel","Cancel"),disabled:!1}],live:[{name:"publish",text:window.$trans("publisher.publish","Publish"),disabled:!1},{name:"publish-close",text:window.$trans("publisher.publish-close","Publish and close"),disabled:!1},{name:"publish-new",text:window.$trans("publisher.publish-new","Publish and create new"),disabled:!1},{name:"cancel",text:window.$trans("publisher.cancel","Cancel"),disabled:!1}],update:[{name:"update",text:window.$trans("publisher.update","Update"),disabled:!1},{name:"update-close",text:window.$trans("publisher.update-close","Update and close"),disabled:!1},{name:"update-new",text:window.$trans("publisher.update-new","Update and create new"),disabled:!1},{name:"cancel",text:window.$trans("publisher.cancel","Cancel"),disabled:!1}]}},Ui={reviewProcessComplete:function(e){return e.reviewProcess.filter((function(e){return e.checked}))},getSubmitOptions:function(e){return e.createWithoutModal?e.submitOptions.draft:e.published||!e.withPublicationToggle?e.submitOptions[e.publishSubmit]:e.submitOptions.draft},isEnabledSubmitOption:function(e,t){return function(e){var n=!0,i={},r=t.getSubmitOptions.filter((function(t){return t.name===e}));return r.length&&(i=r[0]),i.hasOwnProperty("disabled")&&(n=!i.disabled),n}},getSaveType:function(e,t){return e.saveType||t.getSubmitOptions[0].name}},Hi=(_i={},ji(_i,a["m"].UPDATE_PUBLISH_START_DATE,(function(e,t){e.startDate=t})),ji(_i,a["m"].UPDATE_PUBLISH_END_DATE,(function(e,t){e.endDate=t})),ji(_i,a["m"].UPDATE_PUBLISH_STATE,(function(e,t){e.published=t})),ji(_i,a["m"].UPDATE_PUBLISH_SUBMIT,(function(e){e.publishSubmit=e.published||!e.withPublicationToggle?"update":"live"})),ji(_i,a["m"].UPDATE_PUBLISH_VISIBILITY,(function(e,t){e.visibility=t})),ji(_i,a["m"].UPDATE_REVIEW_PROCESS,(function(e,t){var n="",i=-1;t.length&&(n=t[t.length-1],e.reviewProcess.forEach((function(e,t){e.value===n&&(i=t)}))),e.reviewProcess.forEach((function(e,t){e.checked=t<=i,e.disabled=!(t===i||t===i+1)}))})),ji(_i,a["m"].UPDATE_SAVE_TYPE,(function(e,t){e.saveType=t})),_i),$i={state:Fi,getters:Ui,mutations:Hi},Wi=n("bc3a"),qi=n.n(Wi),Yi=n("727d"),Gi={getBlockPreview:function(e,t,n,i){qi.a.post(e,t).then((function(e){n&&"function"===typeof n&&n(e.data)}),(function(e){var t={message:"Block preview request error.",value:e};Object(Yi["a"])("CONTENT",t),i&&"function"===typeof i&&i(e)}))}},Ki=n("9170");function Ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Qi={loading:!1,editor:window["TWILL"].STORE.form.editor||!1,available:window["TWILL"].STORE.form.content||{},blocks:window["TWILL"].STORE.form.blocks||[],previews:window["TWILL"].STORE.form.previews||{},active:{}},Zi={previewsById:function(e){return function(t){return e.previews[t]?e.previews[t]:""}}};function Xi(){return Date.now()}var er=(Vi={},Ji(Vi,a["d"].ADD_BLOCK,(function(e,t){var n=t.block;n.id=Xi(),t.index>-1?e.blocks.splice(t.index,0,n):e.blocks.push(n)})),Ji(Vi,a["d"].MOVE_BLOCK,(function(e,t){if(t.newIndex>=e.blocks.length){var n=t.newIndex-e.blocks.length;while(1+n--)e.blocks.push(void 0)}e.blocks.splice(t.newIndex,0,e.blocks.splice(t.oldIndex,1)[0])})),Ji(Vi,a["d"].DELETE_BLOCK,(function(e,t){var n=e.blocks[t].id;n&&i["a"].delete(e.previews,n),e.blocks.splice(t,1)})),Ji(Vi,a["d"].DUPLICATE_BLOCK,(function(e,t){var n=Object.assign({},e.blocks[t]);n.id=Xi(),e.blocks.splice(t+1,0,n)})),Ji(Vi,a["d"].REORDER_BLOCKS,(function(e,t){e.blocks=t})),Ji(Vi,a["d"].ACTIVATE_BLOCK,(function(e,t){e.blocks[t]?e.active=e.blocks[t]:e.active={}})),Ji(Vi,a["d"].ADD_BLOCK_PREVIEW,(function(e,t){i["a"].set(e.previews,t.id,t.html)})),Ji(Vi,a["d"].UPDATE_PREVIEW_LOADING,(function(e,t){e.loading=!e.loading})),Vi);function tr(e,t,n,i){if(e.hasOwnProperty("id")){var r=Object(Ki["a"])(e,n);n.language.all.length>1&&(r.activeLanguage=n.language.active.value),Object(Ki["e"])(r)?(t(a["d"].ADD_BLOCK_PREVIEW,{id:e.id,html:""}),i&&"function"===typeof i&&i()):Gi.getBlockPreview(n.form.blockPreviewUrl,r,(function(n){t(a["d"].ADD_BLOCK_PREVIEW,{id:e.id,html:n}),i&&"function"===typeof i&&i()}),(function(e){}))}}var nr,ir,rr=(Bi={},Ji(Bi,s["a"].GET_PREVIEW,(function(e){var t=e.commit,n=e.state,i=e.rootState,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,o=r>=0?n.blocks[r]:{};n.active.hasOwnProperty("id")&&-1===r&&(o=n.active),tr(o,t,i)})),Ji(Bi,s["a"].GET_ALL_PREVIEWS,(function(e){var t=e.commit,n=e.state,i=e.rootState;if(n.blocks.length&&!n.loading){t(a["d"].UPDATE_PREVIEW_LOADING,!0);var r=0;n.blocks.forEach((function(e){tr(e,t,i,(function(){r++,r===n.blocks.length&&t(a["d"].UPDATE_PREVIEW_LOADING,!0)}))}))}})),Bi),or={state:Qi,getters:Zi,mutations:er,actions:rr},ar=n("c5ec"),sr={getRevisionContent:function(e,t,n,i){qi.a.put(e,t).then((function(e){n&&"function"===typeof n&&n(e.data)}),(function(e){var t={message:"Preview request error.",value:e};Object(Yi["a"])("REVISION",t),i&&"function"===typeof i&&i(e)}))}};function lr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var cr,ur={loading:!1,active:{},activeContent:"",currentContent:"",all:window["TWILL"].STORE.revisions||[]},dr={},hr=(nr={},lr(nr,a["n"].LOADING_REV,(function(e){e.loading=!0})),lr(nr,a["n"].UPDATE_REV,(function(e,t){function n(e){return e.id===t}var i=e.all.findIndex(n);e.active=-1!==i?e.all[i]:{}})),lr(nr,a["n"].UPDATE_REV_CONTENT,(function(e,t){e.loading=!1,e.activeContent=t})),lr(nr,a["n"].UPDATE_REV_CURRENT_CONTENT,(function(e,t){e.loading=!1,e.currentContent=t})),lr(nr,a["n"].UPDATE_REV_ALL,(function(e,t){e.all=t})),nr),fr=(ir={},lr(ir,s["a"].GET_CURRENT,(function(e){var t=e.commit,n=e.rootState;return new Promise((function(e,i){t(a["n"].LOADING_REV);var r=Object(Ki["b"])(n);n.language.all.length>1&&(r.activeLanguage=n.language.active.value),sr.getRevisionContent(n.form.previewUrl,r,(function(n){t(a["n"].UPDATE_REV_CURRENT_CONTENT,n),e()}),(function(e){i(e)}))}))})),lr(ir,s["a"].GET_REVISION,(function(e){var t=e.commit,n=e.state,i=e.rootState;return new Promise((function(e,r){t(a["n"].LOADING_REV);var o=0;o=0===Object.keys(n.active).length?n.all[0].id:n.active.id;var s={revisionId:o};i.language.all.length>1&&(s.activeLanguage=i.language.active.value),sr.getRevisionContent(i.form.previewUrl,s,(function(n){t(a["n"].UPDATE_REV_CONTENT,n),e()}),(function(e){r(e)}))}))})),ir),vr={state:ur,getters:dr,actions:fr,mutations:hr},pr=n("38c2");function mr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var gr={repeaters:window["TWILL"].STORE.form.repeaters||{},availableRepeaters:window["TWILL"].STORE.form.availableRepeaters||{}},kr={};function br(){return Date.now()}var yr=(cr={},mr(cr,a["f"].ADD_FORM_BLOCK,(function(e,t){var n=t.name,i=t.type,r={},o=e.availableRepeaters[i],a=!e.repeaters[n];if(o)if(r.id=br(),r.type=o.component,r.title=o.title,a){var s={};s[n]=[],s[n].push(r),e.repeaters=Object.assign({},e.repeaters,s)}else e.repeaters[n].push(r)})),mr(cr,a["f"].DELETE_FORM_BLOCK,(function(e,t){e.repeaters[t.name].splice(t.index,1)})),mr(cr,a["f"].DUPLICATE_FORM_BLOCK,(function(e,t){var n=Object.assign({},e.repeaters[t.name][t.index]);n.id=br(),e.repeaters[t.name].splice(t.index+1,0,n)})),mr(cr,a["f"].REORDER_FORM_BLOCKS,(function(e,t){var n={};n[t.name]=t.blocks,e.repeaters=Object.assign({},e.repeaters,n)})),cr),wr={state:gr,getters:kr,mutations:yr};function _r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var xr={active:window["TWILL"].STORE.parentId||0,all:window["TWILL"].STORE.parents||[]},Cr={},Ar=_r({},a["k"].UPDATE_PARENT,(function(e,t){e.active=t||0})),Tr={state:xr,getters:Cr,mutations:Ar},Pr=n("f451"),Er=n("4868"),Sr=n("f0f8");function Or(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function Mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Or(Object(n),!0).forEach((function(t){Ir(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Or(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}i["a"].use(Si["a"]),i["a"].use(Oi["a"]),o["a"].registerModule("form",zi["a"]),o["a"].registerModule("publication",$i),o["a"].registerModule("content",or),o["a"].registerModule("language",ar["a"]),o["a"].registerModule("revision",vr),o["a"].registerModule("browser",pr["a"]),o["a"].registerModule("repeaters",wr),o["a"].registerModule("parents",Tr),o["a"].registerModule("attributes",Pr["a"]),i["a"].component("a17-fieldset",L["a"]),i["a"].component("a17-publisher",ot),i["a"].component("a17-title-editor",R),i["a"].component("a17-content",Et),i["a"].component("a17-page-nav",vt),i["a"].component("a17-langswitcher",D["a"]),i["a"].component("a17-sticky-nav",y),i["a"].component("a17-spinner",mi["a"]),i["a"].component("a17-repeater",zt),i["a"].component("a17-browser",un["a"]),i["a"].component("a17-connectorfield",cn),i["a"].component("a17-locationfield",Qt),i["a"].component("a17-overlay",xn),i["a"].component("a17-previewer",jn),i["a"].component("a17-editor",Ei),i["a"].component("a17-modal-add",Li);var Nr=n("9748");Nr.keys().map((function(e){var t=e.replace(/customs\//,""),n=t.match(/\w+/)[0].replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();if("block"!==n)return i["a"].component("a17-"+n,Nr(e).default)})),"undefined"!==typeof window["TWILL"].TWILL_BLOCKS_COMPONENTS&&window["TWILL"].TWILL_BLOCKS_COMPONENTS.map((function(e){return i["a"].component("a17-block-"+e,{template:"#a17-block-"+e,mixins:[Sr["a"]]})}));var Rr=n("1591");Rr.keys().map((function(e){var t=e.match(/\w+/)[0].replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase();return i["a"].component("a17-"+t,Rr(e).default)})),window["TWILL"].vm=window.vm=new i["a"]({store:o["a"],el:"#app",mixins:[Er["a"],yt["a"]],data:function(){return{unSubscribe:function(){return null},isFormUpdated:!1}},computed:Mr(Mr({},Object(r["c"])({loading:function(e){return e.form.loading},editor:function(e){return e.content.editor},isCustom:function(e){return e.form.isCustom}})),Object(r["b"])(["getSaveType","isEnabledSubmitOption"])),methods:{submitForm:function(e){var t=this;this.loading||(this.isFormUpdated=!1,this.$store.commit(a["f"].UPDATE_FORM_LOADING,!0),this.unSubscribe(),this.$nextTick((function(){var e=t.getSaveType||document.activeElement.name;t.isEnabledSubmitOption(e)?t.$store.dispatch(s["a"].SAVE_FORM,e).then((function(){t.mutationsSubscribe()})):(t.$store.commit(a["f"].UPDATE_FORM_LOADING,!1),t.mutationsSubscribe())})))},confirmExit:function(e){if(this.isFormUpdated&&!this.isCustom)return"message";void 0!==window.event?window.event.cancelBubble=!0:e.cancelBubble=!0},mutationsSubscribe:function(){var e=this;this.unSubscribe=this.$store.subscribe((function(t,n){l["a"].includes(t.type)&&(e.isFormUpdated=!0,e.unSubscribe())}))}},mounted:function(){var e=this;this.$nextTick((function(){window.onbeforeunload=e.confirmExit,e.mutationsSubscribe()}))},beforeDestroy:function(){this.unSubscribe()},created:function(){Object(u["a"])()}}),document.addEventListener("DOMContentLoaded",c["a"])},f9cc:function(e,t,n){},faa7:function(e,t,n){},fdff:function(e,t,n){},ffdb:function(e,t,n){"use strict";var i=n("2741"),r=n.n(i);r.a}});
\ No newline at end of file
index 512ee3f82e08a618b4051d136016de032c640200..2cbe39e88c61cecc151d741f2fc56d738523e1ad 100644 (file)
@@ -22,8 +22,8 @@
   "main-buckets.js": "/assets/admin/js/main-buckets.db3a7486.js",
   "main-dashboard.css": "/assets/admin/css/main-dashboard.27f5455a.css",
   "main-dashboard.js": "/assets/admin/js/main-dashboard.d56e8d52.js",
-  "main-form.css": "/assets/admin/css/main-form.9825424d.css",
-  "main-form.js": "/assets/admin/js/main-form.40fc23b0.js",
+  "main-form.css": "/assets/admin/css/main-form.75fc3c48.css",
+  "main-form.js": "/assets/admin/js/main-form.79eea971.js",
   "main-free.js": "/assets/admin/js/main-free.6761fc8a.js",
   "main-listing.css": "/assets/admin/css/main-listing.77e7845a.css",
   "main-listing.js": "/assets/admin/js/main-listing.43833228.js"
index f1767c628c1fe9b56ee2f62ecd35561288245d07..4e55cbef6161b520b6488abe686bca61835b40e8 100644 (file)
@@ -99,6 +99,56 @@ export default {
                         'mergeTableCells'
                     ]
                 },
+                fontColor: {
+                    colors: [
+                        {
+                            label: 'psq_red',
+                            color: '#d04d4a',
+                        },
+                        {
+                            label: 'psq_blue',
+                            color: '#074e9c',
+                        },
+                        {
+                            label: 'psq_light_blue',
+                            color: '#cddceb',
+                        },
+                        {
+                            label: 'psq_purple',
+                            color: '#AD5ED3',
+                        },
+                        {
+                            label: 'psq_cyan',
+                            color: '#288ed7',
+                        },
+                        {
+                            label: 'psq_magenta',
+                            color: '#ce317c',
+                        },
+                        {
+                            label: 'psq_orange',
+                            color: '#e79817',
+                        },
+                        {
+                            label: 'psq_grey',
+                            color: '#546983',
+                        },
+                        {
+                            label: 'psq_denim',
+                            color: '#0c2c50',
+                        },
+                        {
+                            label: 'psq_green',
+                            color: '#41BD53',
+                        },
+                        {
+                            label: 'psq_mag_blue',
+                            color: '#2a6ba3',
+                        },
+
+                    ]
+
+                },
                 heading: {
                     options: [
                         { model: 'paragraph', title: 'Paragraph', class: 'ck-heading_paragraph' },
index bf50c20fa415a0fe526c4f21a00b77721594d7e9..3fcdeb9bad9e446439f48f2989466121ed24afec 100644 (file)
@@ -2,7 +2,7 @@
 // PSQ COLORS
 $psq_red: #d04d4a;
 $psq_blue: #074e9c;
-$psq_light_blue: #cddceb; //$psq_blue, opacity 0.3 white bg
+$psq_light_blue: #cddceb;
 $psq_purple: #AD5ED3;
 $psq_cyan: #288ed7;
 $psq_magenta: #ce317c;