@ckeditor/ckeditor5-comments 36.0.0 → 36.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/build/comments.js +1 -1
  2. package/package.json +3 -3
  3. package/src/annotations/annotation.js +1 -1
  4. package/src/annotations/annotationcollection.js +1 -1
  5. package/src/annotations/annotations.js +1 -1
  6. package/src/annotations/annotationsuis.js +1 -1
  7. package/src/annotations/editorannotations.js +1 -1
  8. package/src/annotations/inlineannotations.js +1 -1
  9. package/src/annotations/narrowsidebar.js +1 -1
  10. package/src/annotations/sidebar.js +1 -1
  11. package/src/annotations/view/annotationcounterbuttonview.js +1 -1
  12. package/src/annotations/view/annotationview.js +1 -1
  13. package/src/annotations/view/sidebaritemview.js +1 -1
  14. package/src/annotations/view/sidebarview.js +1 -1
  15. package/src/annotations/widesidebar.js +1 -1
  16. package/src/comments/addcommentthreadcommand.js +1 -1
  17. package/src/comments/commentsediting.js +1 -1
  18. package/src/comments/commentsrepository.js +1 -1
  19. package/src/comments/commentsui.js +1 -1
  20. package/src/comments/integrations/commentsrestrictededitingmode.js +1 -1
  21. package/src/comments/integrations/importword.js +1 -1
  22. package/src/comments/ui/commenteditor/commenteditor.js +1 -1
  23. package/src/comments/ui/commenteditor/commenteditorui.js +1 -1
  24. package/src/comments/ui/commenteditor/commenteditoruiview.js +1 -1
  25. package/src/comments/ui/commentthreadcontroller.js +1 -1
  26. package/src/comments/ui/view/basecommentthreadview.js +1 -1
  27. package/src/comments/ui/view/basecommentview.js +1 -1
  28. package/src/comments/ui/view/collapsedcommentsview.js +1 -1
  29. package/src/comments/ui/view/commentcontentview.js +1 -1
  30. package/src/comments/ui/view/commentinputview.js +1 -1
  31. package/src/comments/ui/view/commentslistview.js +1 -1
  32. package/src/comments/ui/view/commentthreadinputview.js +1 -1
  33. package/src/comments/ui/view/commentthreadview.js +1 -1
  34. package/src/comments/ui/view/commentview.js +1 -1
  35. package/src/comments.js +1 -1
  36. package/src/commentsonly.js +1 -1
  37. package/src/utils/common-translations.js +1 -1
  38. package/src/utils/createmutationobserver.js +1 -1
package/build/comments.js CHANGED
@@ -2,4 +2,4 @@
2
2
  /*!
3
3
  * @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
4
4
  * For licensing, see LICENSE.md.
5
- */(()=>{var t={275:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,":root{--ck-inline-annotation-container-width:300px;--ck-inline-annotation-container-max-height:400px}.ck.ck-balloon-panel .ck-annotation-wrapper{max-height:var(--ck-inline-annotation-container-max-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;position:static;width:var(--ck-inline-annotation-container-width)}.ck.ck-balloon-panel .ck-annotation{animation:none}.ck.ck-balloon-panel .ck-annotation-wrapper *{white-space:normal}.ck.ck-balloon-panel .ck-annotation-wrapper strong{font-weight:700}.ck.ck-balloon-panel .ck-annotation-wrapper i{font-style:italic}",""]);const r=i},173:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,':root{--ck-color-annotation-icon:grey;--ck-color-annotation-info:#757575;--ck-annotation-button-size:0.85em}.ck .ck-annotation{--ck-user-avatar-size:28px;animation:fadeInLeft .3s;display:flex;font-size:var(--ck-font-size-base);padding:var(--ck-spacing-standard);position:relative;transition:background-color .3s ease}.ck .ck-annotation .ck-button{background-color:transparent;border-radius:var(--ck-border-radius);color:var(--ck-color-annotation-icon);cursor:pointer;font-size:var(--ck-annotation-button-size);min-height:unset;min-width:unset}.ck .ck-annotation__main{border-radius:var(--ck-border-radius);display:grid;grid-template-areas:"info actions" "content content";grid-template-columns:minmax(0,1fr) auto;padding-left:var(--ck-spacing-standard);transition:all .2s ease;width:calc(100% - var(--ck-user-avatar-size))}.ck .ck-annotation__main p{font-size:var(--ck-font-size-base);line-height:1.5em;margin:0;white-space:normal}.ck .ck-annotation__user{margin-top:var(--ck-spacing-small)}.ck .ck-annotation__info{align-items:center;color:var(--ck-color-annotation-info);display:flex;grid-area:info;min-height:2.4em}.ck .ck-annotation__info-name,.ck .ck-annotation__info-time{color:var(--ck-color-annotation-info);font-size:var(--ck-font-size-small);font-weight:700;overflow:hidden;white-space:nowrap}.ck .ck-annotation__info-name{text-overflow:ellipsis}.ck .ck-annotation__info-time{flex:0 0 auto;margin:0 var(--ck-spacing-large)}.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-name,.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-time{white-space:nowrap}.ck .ck-annotation__actions{grid-area:actions;opacity:.5;transition:opacity .2s ease}.ck .ck-annotation__content-wrapper{grid-area:content;width:100%}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-5%,0,0)}to{opacity:1;transform:translateZ(0)}}',""]);const r=i},490:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,':root{--ck-color-comment-background:#f3f7fb;--ck-color-comment-separator:#cddeef;--ck-color-comment-remove-background:#fcc;--ck-color-comment-input-background:var(--ck-color-comment-background)}.ck .ck-comment__wrapper{font-size:var(--ck-font-size-base);outline:0;position:relative;transition:all .3s linear}.ck .ck-comment__wrapper.ck-comment--remove-confirmation{transform:translate3d(-100%,0,0)}.ck .ck-comment__wrapper:first-of-type{border-top-left-radius:var(--ck-border-radius);border-top-right-radius:var(--ck-border-radius)}.ck .ck-comment:after{background-color:var(--ck-color-comment-separator);content:"";display:block;height:100%;left:calc(var(--ck-spacing-standard) + var(--ck-user-avatar-size)/2 - 2px);opacity:1;position:absolute;top:calc(var(--ck-user-avatar-size) + var(--ck-spacing-small));width:4px}.ck .ck-comment--remove{background-color:var(--ck-color-comment-remove-background)}.ck .ck-comment--remove:after{opacity:0}.ck .ck-comment--edit{background-color:var(--ck-color-comment-input-background)}.ck .ck-comment--edit:after{opacity:0}.ck .ck-comment__main .ck-comment__input-wrapper{display:flex;flex-direction:column;position:relative;transition:all .3s linear}.ck .ck-comment__main .ck-comment__input-wrapper .ck-comment__input{padding:0}.ck .ck-comment__content{word-break:break-word}.ck .ck-comment__user{z-index:var(--ck-z-default)}.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit{color:var(--ck-color-button-save)}.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel{color:var(--ck-color-button-cancel)}.ck .ck-comment p,.ck .ck-comment__input p{margin:0}.ck .ck-comment ol,.ck .ck-comment ul,.ck .ck-comment__input ol,.ck .ck-comment__input ul{margin-left:10px;padding-left:10px}.ck .ck-comment ul,.ck .ck-comment__input ul{list-style:disc;margin-bottom:5px;margin-top:0}.ck .ck-comment ul ul,.ck .ck-comment__input ul ul{list-style:circle}.ck .ck-comment ul ul ul,.ck .ck-comment__input ul ul ul{list-style:square}.ck .ck-comment__external{color:var(--ck-color-annotation-info);font-size:var(--ck-font-size-tiny);font-style:italic;margin-top:var(--ck-spacing-standard)}',""]);const r=i},424:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,".ck .ck-comment__input-container{--ck-user-avatar-size:28px;background:var(--ck-color-comment-background);display:none;font-size:var(--ck-font-size-base);padding:var(--ck-spacing-standard)}.ck .ck-comment__input-container--active{display:flex}.ck .ck-comment__input{background-color:transparent;border-width:0;color:var(--ck-color-base-text);padding:var(--ck-spacing-standard);padding-top:var(--ck-spacing-medium);resize:none;transition:color .3s ease-in-out}.ck .ck-comment__input:focus{outline:none}.ck .ck-comment__input .ck-editor__editable_inline{--ck-focus-ring:none;--ck-inner-shadow:none;background-color:transparent;border:0;overflow:visible;padding:0;word-break:break-word}.ck-comment__input-wrapper .ck.ck-editor__editable_inline :first-child{margin-top:0}.ck-comment__input-wrapper .ck.ck-editor__editable_inline :last-child{margin-bottom:0}.ck .ck-comment__input-actions{display:none;text-align:right;width:100%}.ck .ck-comment__input-actions.ck-comment__input-actions--active{display:block}.ck .ck-comment__input-actions .ck-button{background-color:transparent;border-radius:var(--ck-border-radius);color:var(--ck-color-annotations-icon);cursor:pointer;font-size:var(--ck-annotation-button-size);min-height:unset;min-width:unset}.ck .ck-comment__input-actions .ck-button.ck-disabled{opacity:.3}.ck .ck-comment__input-textarea{display:block}",""]);const r=i},446:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,":root{--ck-color-comment-marker:#fef7a9;--ck-color-comment-marker-active:#fdf05d}.ck-comment-marker{background:var(--ck-color-comment-marker);border-bottom:3px solid transparent;border-top:3px solid transparent}.ck-comment-marker.ck-widget{background-color:transparent;border:3px solid var(--ck-color-comment-marker)}.ck-comment-marker--active{background:var(--ck-color-comment-marker-active)}.ck-comment-marker--active.ck-widget{border-color:var(--ck-color-comment-marker-active)}.ck-comment-marker--active.ck-widget .ck-comment-marker{background-color:var(--ck-color-comment-marker)}.ck-comment-marker--active .ck-comment-marker{background:var(--ck-color-comment-marker-active)}",""]);const r=i},227:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,':root{--ck-color-thread-remove-background:var(--ck-color-comment-remove-background);--ck-color-comment-count:#5891ca}.ck .ck-thread{background-color:var(--ck-color-base-background);border-radius:var(--ck-border-radius);color:var(--ck-color-base-text);outline:0;overflow:hidden;transition:all .3s ease;width:100%}.ck .ck-thread__comments .ck-comment__wrapper:last-of-type .ck-comment:after{opacity:0}.ck .ck-thread__container{transition:transform .3s ease}.ck .ck-thread__comments{border-radius:var(--ck-border-radius);list-style:none;margin:0;overflow:hidden;padding:0;position:relative;z-index:var(--ck-z-default)}.ck .ck-thread__comment-count{--ck-user-avatar-size:28px;color:var(--ck-color-comment-count);cursor:pointer;font-size:var(--ck-font-size-base);font-weight:700;padding-left:calc(var(--ck-user-avatar-size) + var(--ck-spacing-standard)*2);transition:background-color .3s ease}.ck .ck-thread__comment-count:before{content:"\\25BC";margin-right:var(--ck-spacing-small)}.ck .ck-thread--active .ck-comment__options.ck-dropdown{display:block}.ck .ck-thread--active .ck-thread__input{background-color:var(--ck-color-comment-background);display:block}.ck .ck-thread--remove .ck-comment{background-color:var(--ck-color-comment-remove-background)}.ck .ck-thread--remove .ck-thread__input--active{background-color:var(--ck-color-base-background)}.ck .ck-thread--remove .ck-thread__comment-count,.ck .ck-thread--remove .ck-thread__input--active.ck-thread__input{background-color:var(--ck-color-comment-remove-background)}.ck .ck-thread--remove .ck-comment__wrapper .ck-comment:after{opacity:0}.ck .ck-thread--remove-confirmation .ck-thread__container{transform:translate3d(-100%,0,0)}.ck.ck-button.ck-thread__remove-confirm-submit{color:var(--ck-color-button-save)}.ck.ck-button.ck-thread__remove-confirm-cancel{color:var(--ck-color-button-cancel)}.ck .ck-thread__remove-confirm{background-color:var(--ck-color-comment-remove-background);display:flex;font-size:var(--ck-font-size-base);height:100%;justify-content:flex-start;left:100%;position:absolute;top:0;width:100%}.ck .ck-thread__remove-confirm .ck-thread__remove-confirm-inner{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;max-height:400px;padding-top:var(--ck-spacing-standard);width:100%}.ck .ck-thread__remove-confirm p{font-weight:700;margin:0}.ck .ck-thread__input{border-radius:var(--ck-border-radius);min-height:38px;transition:background-color .2s ease-in-out;width:calc(100% - var(--ck-user-avatar-size))}',""]);const r=i},28:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,":root{--ck-annotation-counter-icon-size:16px;--ck-annotation-counter-number-size:10px;--ck-color-annotation-counter-comment:#f2de02;--ck-color-annotation-counter-suggestion-insertion:#5ad86b;--ck-color-annotation-counter-suggestion-deletion:#d85a79;--ck-color-annotation-counter-suggestion-format:#5ac1d8}.ck.ck-sidebar--narrow .ck-sidebar-item{display:flex;justify-content:center}.ck.ck-sidebar--narrow .ck-annotation-counter{color:grey;cursor:pointer;font-size:var(--ck-annotation-counter-icon-size);min-height:unset;padding:0}.ck.ck-sidebar--narrow .ck-annotation-counter:focus,.ck.ck-sidebar--narrow .ck-annotation-counter:hover{background:transparent;box-shadow:none;color:#4d4d4d}.ck.ck-sidebar--narrow .ck-annotation-counter__badge{background:#333;border-radius:50%;color:#fff;display:flex;font-family:var(--ck-font-face);font-size:var(--ck-annotation-counter-number-size);font-weight:700;height:16px;justify-content:center;line-height:16px;position:absolute;right:0;text-shadow:-1px 0 2px #444,1px 0 2px #444;top:-6px;width:16px;z-index:1}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--edit-mode{line-height:1}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-insertion,.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-replace{background:var(--ck-color-annotation-counter-suggestion-insertion)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-deletion{background:var(--ck-color-annotation-counter-suggestion-deletion)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-format{background:var(--ck-color-annotation-counter-suggestion-format)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--comment{background:var(--ck-color-annotation-counter-comment)}",""]);const r=i},100:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,":root{--ck-color-annotation-wrapper-background:#fff;--ck-color-annotation-wrapper-drop-shadow:0 1px 1px 1px #e6e6e6}.ck.ck-sidebar{outline:0;position:relative;transition:min-height .25s ease}.ck-sidebar-item{position:absolute;transition:top .3s ease,box-shadow .3s ease;width:100%}.ck-sidebar-item--no-animation{transition:top 0s ease!important}.ck.ck-annotation-wrapper{background:var(--ck-color-annotation-wrapper-background);border-radius:var(--ck-border-radius);box-shadow:var(--ck-color-annotation-wrapper-drop-shadow);outline:0}.ck.ck-annotation-wrapper:not(.ck-annotation-wrapper--active):hover{box-shadow:var(--ck-drop-shadow)}.ck.ck-annotation-wrapper--active{box-shadow:var(--ck-drop-shadow-active)}.ck.ck-annotation-wrapper--active .ck-annotation__actions,.ck.ck-annotation-wrapper:hover .ck-annotation__actions{opacity:1}.ck.ck-annotation-wrapper--active .ck-suggestion--accept,.ck.ck-annotation-wrapper:hover .ck-suggestion--accept{color:var(--ck-color-button-save)}.ck.ck-annotation-wrapper--active .ck-suggestion--discard,.ck.ck-annotation-wrapper:hover .ck-suggestion--discard{color:var(--ck-color-button-cancel)}",""]);const r=i},758:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},278:(t,e,n)=>{"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},o=[],i=0;i<t.length;i++){var r=t[i],c=e.base?r[0]+e.base:r[0],x=n[c]||0,h="".concat(c," ").concat(x);n[c]=x+1;var d=a(h),l={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(s[d].references++,s[d].updater(l)):s.push({identifier:h,updater:p(l,e),references:1}),o.push(h)}return o}function x(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var h,d=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function l(t,e,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=d(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function u(t,e,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var m=null,f=0;function p(t,e){var n,o,i;if(e.singleton){var r=f++;n=m||(m=x(e)),o=l.bind(null,n,r,!1),i=l.bind(null,n,r,!0)}else n=x(e),o=u.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var i=a(n[o]);s[i].references--}for(var r=c(t,e),x=0;x<n.length;x++){var h=a(n[x]);0===s[h].references&&(s[h].updater(),s.splice(h,1))}n=r}}}},945:(t,e,n)=>{t.exports=n(79)("./src/clipboard.js")},417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},747:(t,e,n)=>{t.exports=n(79)("./src/paragraph.js")},468:(t,e,n)=>{t.exports=n(79)("./src/select-all.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},254:(t,e,n)=>{t.exports=n(79)("./src/undo.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={id:o,exports:{}};return t[o](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var o={};(()=>{"use strict";n.r(o),n.d(o,{Annotations:()=>Ir,AnnotationsUIs:()=>Os,BaseCommentThreadView:()=>di,BaseCommentView:()=>Ti,Comments:()=>Aa,CommentsOnly:()=>Aa,InlineAnnotations:()=>_a,NarrowSidebar:()=>ua,WideSidebar:()=>ea});var t=n(704),e=n(209),i=n(417);const r=function(){this.__data__=[],this.size=0};const s=function(t,e){return t===e||t!=t&&e!=e};const a=function(t,e){for(var n=t.length;n--;)if(s(t[n][0],e))return n;return-1};var c=Array.prototype.splice;const x=function(t){var e=this.__data__,n=a(e,t);return!(n<0)&&(n==e.length-1?e.pop():c.call(e,n,1),--this.size,!0)};const h=function(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]};const d=function(t){return a(this.__data__,t)>-1};const l=function(t,e){var n=this.__data__,o=a(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}u.prototype.clear=r,u.prototype.delete=x,u.prototype.get=h,u.prototype.has=d,u.prototype.set=l;const m=u;const f=function(){this.__data__=new m,this.size=0};const p=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const g=function(t){return this.__data__.get(t)};const b=function(t){return this.__data__.has(t)};const v="object"==typeof global&&global&&global.Object===Object&&global;var _="object"==typeof self&&self&&self.Object===Object&&self;const w=v||_||Function("return this")();const k=w.Symbol;var y=Object.prototype,C=y.hasOwnProperty,A=y.toString,T=k?k.toStringTag:void 0;const E=function(t){var e=C.call(t,T),n=t[T];try{t[T]=void 0;var o=!0}catch(t){}var i=A.call(t);return o&&(e?t[T]=n:delete t[T]),i};var I=Object.prototype.toString;const O=function(t){return I.call(t)};var j=k?k.toStringTag:void 0;const V=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":j&&j in Object(t)?E(t):O(t)};const M=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const S=function(t){if(!M(t))return!1;var e=V(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const R=w["__core-js_shared__"];var D,N=(D=/[^.]+$/.exec(R&&R.keys&&R.keys.IE_PROTO||""))?"Symbol(src)_1."+D:"";const P=function(t){return!!N&&N in t};var B=Function.prototype.toString;const L=function(t){if(null!=t){try{return B.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var z=/^\[object .+?Constructor\]$/,F=Function.prototype,K=Object.prototype,U=F.toString,W=K.hasOwnProperty,H=RegExp("^"+U.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Z=function(t){return!(!M(t)||P(t))&&(S(t)?H:z).test(L(t))};const q=function(t,e){return null==t?void 0:t[e]};const X=function(t,e){var n=q(t,e);return Z(n)?n:void 0};const $=X(w,"Map");const G=X(Object,"create");const J=function(){this.__data__=G?G(null):{},this.size=0};const Y=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Q=Object.prototype.hasOwnProperty;const tt=function(t){var e=this.__data__;if(G){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Q.call(e,t)?e[t]:void 0};var et=Object.prototype.hasOwnProperty;const nt=function(t){var e=this.__data__;return G?void 0!==e[t]:et.call(e,t)};const ot=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=G&&void 0===e?"__lodash_hash_undefined__":e,this};function it(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}it.prototype.clear=J,it.prototype.delete=Y,it.prototype.get=tt,it.prototype.has=nt,it.prototype.set=ot;const rt=it;const st=function(){this.size=0,this.__data__={hash:new rt,map:new($||m),string:new rt}};const at=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const ct=function(t,e){var n=t.__data__;return at(e)?n["string"==typeof e?"string":"hash"]:n.map};const xt=function(t){var e=ct(this,t).delete(t);return this.size-=e?1:0,e};const ht=function(t){return ct(this,t).get(t)};const dt=function(t){return ct(this,t).has(t)};const lt=function(t,e){var n=ct(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}ut.prototype.clear=st,ut.prototype.delete=xt,ut.prototype.get=ht,ut.prototype.has=dt,ut.prototype.set=lt;const mt=ut;const ft=function(t,e){var n=this.__data__;if(n instanceof m){var o=n.__data__;if(!$||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new mt(o)}return n.set(t,e),this.size=n.size,this};function pt(t){var e=this.__data__=new m(t);this.size=e.size}pt.prototype.clear=f,pt.prototype.delete=p,pt.prototype.get=g,pt.prototype.has=b,pt.prototype.set=ft;const gt=pt;const bt=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const vt=function(t){return this.__data__.has(t)};function _t(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new mt;++e<n;)this.add(t[e])}_t.prototype.add=_t.prototype.push=bt,_t.prototype.has=vt;const wt=_t;const kt=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const yt=function(t,e){return t.has(e)};const Ct=function(t,e,n,o,i,r){var s=1&n,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var x=r.get(t),h=r.get(e);if(x&&h)return x==e&&h==t;var d=-1,l=!0,u=2&n?new wt:void 0;for(r.set(t,e),r.set(e,t);++d<a;){var m=t[d],f=e[d];if(o)var p=s?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==p){if(p)continue;l=!1;break}if(u){if(!kt(e,(function(t,e){if(!yt(u,e)&&(m===t||i(m,t,n,o,r)))return u.push(e)}))){l=!1;break}}else if(m!==f&&!i(m,f,n,o,r)){l=!1;break}}return r.delete(t),r.delete(e),l};const At=w.Uint8Array;const Tt=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Et=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var It=k?k.prototype:void 0,Ot=It?It.valueOf:void 0;const jt=function(t,e,n,o,i,r,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new At(t),new At(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var c=Tt;case"[object Set]":var x=1&o;if(c||(c=Et),t.size!=e.size&&!x)return!1;var h=a.get(t);if(h)return h==e;o|=2,a.set(t,e);var d=Ct(c(t),c(e),o,i,r,a);return a.delete(t),d;case"[object Symbol]":if(Ot)return Ot.call(t)==Ot.call(e)}return!1};const Vt=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const Mt=Array.isArray;const St=function(t,e,n){var o=e(t);return Mt(t)?o:Vt(o,n(t))};const Rt=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};const Dt=function(){return[]};var Nt=Object.prototype.propertyIsEnumerable,Pt=Object.getOwnPropertySymbols;const Bt=Pt?function(t){return null==t?[]:(t=Object(t),Rt(Pt(t),(function(e){return Nt.call(t,e)})))}:Dt;const Lt=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const zt=function(t){return null!=t&&"object"==typeof t};const Ft=function(t){return zt(t)&&"[object Arguments]"==V(t)};var Kt=Object.prototype,Ut=Kt.hasOwnProperty,Wt=Kt.propertyIsEnumerable;const Ht=Ft(function(){return arguments}())?Ft:function(t){return zt(t)&&Ut.call(t,"callee")&&!Wt.call(t,"callee")};const Zt=function(){return!1};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,$t=Xt&&Xt.exports===qt?w.Buffer:void 0;const Gt=($t?$t.isBuffer:void 0)||Zt;var Jt=/^(?:0|[1-9]\d*)$/;const Yt=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Jt.test(t))&&t>-1&&t%1==0&&t<e};const Qt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var te={};te["[object Float32Array]"]=te["[object Float64Array]"]=te["[object Int8Array]"]=te["[object Int16Array]"]=te["[object Int32Array]"]=te["[object Uint8Array]"]=te["[object Uint8ClampedArray]"]=te["[object Uint16Array]"]=te["[object Uint32Array]"]=!0,te["[object Arguments]"]=te["[object Array]"]=te["[object ArrayBuffer]"]=te["[object Boolean]"]=te["[object DataView]"]=te["[object Date]"]=te["[object Error]"]=te["[object Function]"]=te["[object Map]"]=te["[object Number]"]=te["[object Object]"]=te["[object RegExp]"]=te["[object Set]"]=te["[object String]"]=te["[object WeakMap]"]=!1;const ee=function(t){return zt(t)&&Qt(t.length)&&!!te[V(t)]};const ne=function(t){return function(e){return t(e)}};var oe="object"==typeof exports&&exports&&!exports.nodeType&&exports,ie=oe&&"object"==typeof module&&module&&!module.nodeType&&module,re=ie&&ie.exports===oe&&v.process;const se=function(){try{var t=ie&&ie.require&&ie.require("util").types;return t||re&&re.binding&&re.binding("util")}catch(t){}}();var ae=se&&se.isTypedArray;const ce=ae?ne(ae):ee;var xe=Object.prototype.hasOwnProperty;const he=function(t,e){var n=Mt(t),o=!n&&Ht(t),i=!n&&!o&&Gt(t),r=!n&&!o&&!i&&ce(t),s=n||o||i||r,a=s?Lt(t.length,String):[],c=a.length;for(var x in t)!e&&!xe.call(t,x)||s&&("length"==x||i&&("offset"==x||"parent"==x)||r&&("buffer"==x||"byteLength"==x||"byteOffset"==x)||Yt(x,c))||a.push(x);return a};var de=Object.prototype;const le=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||de)};const ue=function(t,e){return function(n){return t(e(n))}};const me=ue(Object.keys,Object);var fe=Object.prototype.hasOwnProperty;const pe=function(t){if(!le(t))return me(t);var e=[];for(var n in Object(t))fe.call(t,n)&&"constructor"!=n&&e.push(n);return e};const ge=function(t){return null!=t&&Qt(t.length)&&!S(t)};const be=function(t){return ge(t)?he(t):pe(t)};const ve=function(t){return St(t,be,Bt)};var _e=Object.prototype.hasOwnProperty;const we=function(t,e,n,o,i,r){var s=1&n,a=ve(t),c=a.length;if(c!=ve(e).length&&!s)return!1;for(var x=c;x--;){var h=a[x];if(!(s?h in e:_e.call(e,h)))return!1}var d=r.get(t),l=r.get(e);if(d&&l)return d==e&&l==t;var u=!0;r.set(t,e),r.set(e,t);for(var m=s;++x<c;){var f=t[h=a[x]],p=e[h];if(o)var g=s?o(p,f,h,e,t,r):o(f,p,h,t,e,r);if(!(void 0===g?f===p||i(f,p,n,o,r):g)){u=!1;break}m||(m="constructor"==h)}if(u&&!m){var b=t.constructor,v=e.constructor;b==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(u=!1)}return r.delete(t),r.delete(e),u};const ke=X(w,"DataView");const ye=X(w,"Promise");const Ce=X(w,"Set");const Ae=X(w,"WeakMap");var Te="[object Map]",Ee="[object Promise]",Ie="[object Set]",Oe="[object WeakMap]",je="[object DataView]",Ve=L(ke),Me=L($),Se=L(ye),Re=L(Ce),De=L(Ae),Ne=V;(ke&&Ne(new ke(new ArrayBuffer(1)))!=je||$&&Ne(new $)!=Te||ye&&Ne(ye.resolve())!=Ee||Ce&&Ne(new Ce)!=Ie||Ae&&Ne(new Ae)!=Oe)&&(Ne=function(t){var e=V(t),n="[object Object]"==e?t.constructor:void 0,o=n?L(n):"";if(o)switch(o){case Ve:return je;case Me:return Te;case Se:return Ee;case Re:return Ie;case De:return Oe}return e});const Pe=Ne;var Be="[object Arguments]",Le="[object Array]",ze="[object Object]",Fe=Object.prototype.hasOwnProperty;const Ke=function(t,e,n,o,i,r){var s=Mt(t),a=Mt(e),c=s?Le:Pe(t),x=a?Le:Pe(e),h=(c=c==Be?ze:c)==ze,d=(x=x==Be?ze:x)==ze,l=c==x;if(l&&Gt(t)){if(!Gt(e))return!1;s=!0,h=!1}if(l&&!h)return r||(r=new gt),s||ce(t)?Ct(t,e,n,o,i,r):jt(t,e,c,n,o,i,r);if(!(1&n)){var u=h&&Fe.call(t,"__wrapped__"),m=d&&Fe.call(e,"__wrapped__");if(u||m){var f=u?t.value():t,p=m?e.value():e;return r||(r=new gt),i(f,p,n,o,r)}}return!!l&&(r||(r=new gt),we(t,e,n,o,i,r))};const Ue=function t(e,n,o,i,r){return e===n||(null==e||null==n||!zt(e)&&!zt(n)?e!=e&&n!=n:Ke(e,n,o,i,t,r))};const We=function(t,e){return Ue(t,e)};const He=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const Ze=function(){try{var t=X(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const qe=function(t,e,n){"__proto__"==e&&Ze?Ze(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Xe=Object.prototype.hasOwnProperty;const $e=function(t,e,n){var o=t[e];Xe.call(t,e)&&s(o,n)&&(void 0!==n||e in t)||qe(t,e,n)};const Ge=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],c=o?o(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),i?qe(n,a,c):$e(n,a,c)}return n};const Je=function(t,e){return t&&Ge(e,be(e),t)};const Ye=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var Qe=Object.prototype.hasOwnProperty;const tn=function(t){if(!M(t))return Ye(t);var e=le(t),n=[];for(var o in t)("constructor"!=o||!e&&Qe.call(t,o))&&n.push(o);return n};const en=function(t){return ge(t)?he(t,!0):tn(t)};const nn=function(t,e){return t&&Ge(e,en(e),t)};var on="object"==typeof exports&&exports&&!exports.nodeType&&exports,rn=on&&"object"==typeof module&&module&&!module.nodeType&&module,sn=rn&&rn.exports===on?w.Buffer:void 0,an=sn?sn.allocUnsafe:void 0;const cn=function(t,e){if(e)return t.slice();var n=t.length,o=an?an(n):new t.constructor(n);return t.copy(o),o};const xn=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const hn=function(t,e){return Ge(t,Bt(t),e)};const dn=ue(Object.getPrototypeOf,Object);const ln=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Vt(e,Bt(t)),t=dn(t);return e}:Dt;const un=function(t,e){return Ge(t,ln(t),e)};const mn=function(t){return St(t,en,ln)};var fn=Object.prototype.hasOwnProperty;const pn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&fn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const gn=function(t){var e=new t.constructor(t.byteLength);return new At(e).set(new At(t)),e};const bn=function(t,e){var n=e?gn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var vn=/\w*$/;const _n=function(t){var e=new t.constructor(t.source,vn.exec(t));return e.lastIndex=t.lastIndex,e};var wn=k?k.prototype:void 0,kn=wn?wn.valueOf:void 0;const yn=function(t){return kn?Object(kn.call(t)):{}};const Cn=function(t,e){var n=e?gn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const An=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return gn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return bn(t,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 Cn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return _n(t);case"[object Symbol]":return yn(t)}};var Tn=Object.create;const En=function(){function t(){}return function(e){if(!M(e))return{};if(Tn)return Tn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const In=function(t){return"function"!=typeof t.constructor||le(t)?{}:En(dn(t))};const On=function(t){return zt(t)&&"[object Map]"==Pe(t)};var jn=se&&se.isMap;const Vn=jn?ne(jn):On;const Mn=function(t){return zt(t)&&"[object Set]"==Pe(t)};var Sn=se&&se.isSet;const Rn=Sn?ne(Sn):Mn;var Dn="[object Arguments]",Nn="[object Function]",Pn="[object Object]",Bn={};Bn[Dn]=Bn["[object Array]"]=Bn["[object ArrayBuffer]"]=Bn["[object DataView]"]=Bn["[object Boolean]"]=Bn["[object Date]"]=Bn["[object Float32Array]"]=Bn["[object Float64Array]"]=Bn["[object Int8Array]"]=Bn["[object Int16Array]"]=Bn["[object Int32Array]"]=Bn["[object Map]"]=Bn["[object Number]"]=Bn[Pn]=Bn["[object RegExp]"]=Bn["[object Set]"]=Bn["[object String]"]=Bn["[object Symbol]"]=Bn["[object Uint8Array]"]=Bn["[object Uint8ClampedArray]"]=Bn["[object Uint16Array]"]=Bn["[object Uint32Array]"]=!0,Bn["[object Error]"]=Bn[Nn]=Bn["[object WeakMap]"]=!1;const Ln=function t(e,n,o,i,r,s){var a,c=1&n,x=2&n,h=4&n;if(o&&(a=r?o(e,i,r,s):o(e)),void 0!==a)return a;if(!M(e))return e;var d=Mt(e);if(d){if(a=pn(e),!c)return xn(e,a)}else{var l=Pe(e),u=l==Nn||"[object GeneratorFunction]"==l;if(Gt(e))return cn(e,c);if(l==Pn||l==Dn||u&&!r){if(a=x||u?{}:In(e),!c)return x?un(e,nn(a,e)):hn(e,Je(a,e))}else{if(!Bn[l])return r?e:{};a=An(e,l,c)}}s||(s=new gt);var m=s.get(e);if(m)return m;s.set(e,a),Rn(e)?e.forEach((function(i){a.add(t(i,n,o,i,e,s))})):Vn(e)&&e.forEach((function(i,r){a.set(r,t(i,n,o,r,e,s))}));var f=d?void 0:(h?x?mn:ve:x?en:be)(e);return He(f||e,(function(i,r){f&&(i=e[r=i]),$e(a,r,t(i,n,o,r,e,s))})),a};const zn=function(t){return Ln(t,5)};const Fn=function(t){return"symbol"==typeof t||zt(t)&&"[object Symbol]"==V(t)};var Kn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Un=/^\w*$/;const Wn=function(t,e){if(Mt(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Fn(t))||(Un.test(t)||!Kn.test(t)||null!=e&&t in Object(e))};function Hn(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(Hn.Cache||mt),n}Hn.Cache=mt;const Zn=Hn;var qn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Xn=/\\(\\)?/g;const $n=function(t){var e=Zn(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(qn,(function(t,n,o,i){e.push(o?i.replace(Xn,"$1"):n||t)})),e}));const Gn=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var Jn=k?k.prototype:void 0,Yn=Jn?Jn.toString:void 0;const Qn=function t(e){if("string"==typeof e)return e;if(Mt(e))return Gn(e,t)+"";if(Fn(e))return Yn?Yn.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const to=function(t){return null==t?"":Qn(t)};const eo=function(t,e){return Mt(t)?t:Wn(t,e)?[t]:$n(to(t))};const no=function(t){if("string"==typeof t||Fn(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const oo=function(t,e,n,o){if(!M(t))return t;for(var i=-1,r=(e=eo(e,t)).length,s=r-1,a=t;null!=a&&++i<r;){var c=no(e[i]),x=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=s){var h=a[c];void 0===(x=o?o(h,c,a):void 0)&&(x=M(h)?h:Yt(e[i+1])?[]:{})}$e(a,c,x),a=a[c]}return t};const io=function(t,e,n){return null==t?t:oo(t,e,n)};const ro=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const so=function(t,e){for(var n=0,o=(e=eo(e,t)).length;null!=t&&n<o;)t=t[no(e[n++])];return n&&n==o?t:void 0};const ao=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const co=function(t,e){return e.length<2?t:so(t,ao(e,0,-1))};const xo=function(t,e){return e=eo(e,t),null==(t=co(t,e))||delete t[no(ro(e))]};const ho=function(t,e){return null==t||xo(t,e)};var lo,uo,mo=["removeCommentThread","update","stopListening","model","remove","removeComment","view","getComment","listenTo","_isAttached","_localUser","addComment","updateComment"];lo=mo,uo=491,function(t){for(;--t;)lo.push(lo.shift())}(++uo);var fo=function(t,e){return mo[t-=0]};class po{constructor(t,e){this[fo("0x6")]=t,this[fo("0x6")]._isAttached=!0,this[fo("0x9")]=e,this[fo("0xb")](e,fo("0x3"),(()=>this[fo("0x7")]())),this[fo("0xb")](e,fo("0x1"),((t,e)=>this.addComment(e))),this.listenTo(e,fo("0x2"),((t,e,n)=>this.updateComment(e,n))),this[fo("0xb")](e,"removeComment",((t,e)=>this[fo("0x8")](e)))}[fo("0x7")](){this[fo("0x6")][fo("0x7")]()}[fo("0x1")](t){this[fo("0x6")][fo("0x1")]({content:t,authorId:this.view[fo("0x0")].id})}[fo("0x2")](t,e){this[fo("0x6")][fo("0xa")](t)[fo("0x4")]({content:e})}[fo("0x8")](t){this[fo("0x6")][fo("0xa")](t)[fo("0x7")]()}destroy(){this[fo("0x5")](),this[fo("0x6")][fo("0xc")]=!1}}(0,e.mix)(po,e.ObservableMixin);var go=n(273);function bo(t,e,n){const o=t.t;switch(e){case"PENDING_ACTION_COMMENT_THREAD":return o({string:"Unsaved change in comment thread.",id:"PENDING_ACTION_COMMENT_THREAD"});case"Comment":return o("Comment");case"Reply...":return o("Reply...");case"Write a comment...":return o("Write a comment...");case"Comment editor":return o("Comment editor");case"Delete comment thread?":return o("Delete comment thread?");case"Delete comment?":return o("Delete comment?");case"Cancel":return o("Cancel");case"Edit":return o("Edit");case"Remove":return o("Remove");case"Submit":return o("Submit");case"NUMBER_OF_COMMENTS":return o({string:"%0 Comment",plural:"%0 Comments",id:"NUMBER_OF_COMMENTS"},n);case"TOO_LONG_COMMENT_ALERT":return o({string:"Comment content is too long. Your comment has %0 characters but the limit is %1 characters.",id:"TOO_LONG_COMMENT_ALERT"},n);case"EXTERNAL_COMMENT":return o({string:"This comment comes from an external source.",id:"EXTERNAL_COMMENT"});case"EXTERNAL_IMPORT_WORD_COMMENT":return o({string:"This comment comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_COMMENT"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n)}}const vo=["_voiceLabelView","ck-editor__aria-label_","ck-editor","render","extendTemplate","ck-rounded-corners","editable","uiLanguageDirection","presentation","main","add","_createVoiceLabel","ck-voice-label","setTemplate","Comment editor","text","element","div","createCollection","ck-editor__main","cke-editor__aria-label_","ck-reset","ck-comment__input"];var _o,wo;_o=vo,wo=195,function(t){for(;--t;)_o.push(_o.shift())}(++wo);const ko=function(t,e){return vo[t-=0]};class yo extends go.EditorUIView{constructor(t,n){super(t);const o=(0,e.uid)();this[ko("0x15")]=this[ko("0x7")](),this[ko("0x12")]=new go.InlineEditableUIView(t,n),this[ko("0xc")]=this[ko("0x0")](o,t),this[ko("0x2")]({tag:ko("0x6"),attributes:{class:[ko("0xa"),ko("0xe"),ko("0x11"),ko("0xb")],role:"comment",dir:t[ko("0x13")],lang:t.uiLanguage,"aria-labelledby":ko("0x9")+o},children:[this[ko("0xc")],{tag:ko("0x6"),attributes:{class:ko("0x8"),role:ko("0x14")},children:this[ko("0x15")]}]})}[ko("0xf")](){super[ko("0xf")](),this[ko("0x15")][ko("0x16")](this[ko("0x12")])}focus(){this[ko("0x12")][ko("0x5")].focus()}[ko("0x0")](t,e){const n=new go.LabelView;return n[ko("0x4")]=bo(e,ko("0x3")),n[ko("0x10")]({attributes:{id:ko("0xd")+t,class:ko("0x1")}}),n}}const Co=["init","locale","setEditableElement","name","getRoot","editable","element","isFocused","fire","bind","editing","view","destroy","focusTracker","render"];var Ao,To;Ao=Co,To=473,function(t){for(;--t;)Ao.push(Ao.shift())}(++To);const Eo=function(t,e){return Co[t-=0]};class Io extends go.EditorUI{constructor(t){super(t),this[Eo("0x3")]=new yo(t[Eo("0x8")],t[Eo("0x2")][Eo("0x3")])}get[Eo("0xd")](){return this.view[Eo("0xd")]}[Eo("0x7")](){const t=this.editor.editing[Eo("0x3")],e=this[Eo("0x3")][Eo("0xc")],n=t.document[Eo("0xb")]();e[Eo("0xa")]=n.rootName,this.view[Eo("0x6")]();const o=e[Eo("0xd")];this[Eo("0x9")](e[Eo("0xa")],o),this[Eo("0x3")][Eo("0xc")][Eo("0x1")](Eo("0xe")).to(this[Eo("0x5")]),t.attachDomRoot(o),this[Eo("0x0")]("ready")}destroy(){super[Eo("0x4")](),this[Eo("0x3")][Eo("0x4")]()}}var Oo=n(492),jo=n(945),Vo=n(331),Mo=n(468),So=n(181),Ro=n(254),Do=n(747);const No=["placeholderElement","config","placeholder","data","assign","plugins","_updatePlaceholder","setSelection","destroy","childCount","model","get","getChild","getRoot","then","document","focus","fire","defaultPlugins","set","init","create","initialData","change","low","editing","name","initPlugins","view"];var Po,Bo;Po=No,Bo=235,function(t){for(;--t;)Po.push(Po.shift())}(++Bo);const Lo=function(t,e){return No[t-=0]};class zo extends t.Editor{constructor(t={}){(t=Object[Lo("0x1")]({},t))[Lo("0x2")]||(t.plugins=zo[Lo("0xf")]),super(t),this.ui=new Io(this),this[Lo("0x10")]("placeholder",""),this[Lo("0x7")][Lo("0xc")].on(Lo("0x14"),(()=>this[Lo("0x3")]()),{priority:Lo("0x15")}),this.on("change:placeholder",(()=>this[Lo("0x3")]())),this[Lo("0x7")][Lo("0xc")].createRoot()}[Lo("0x12")](){const t=this[Lo("0x1b")][Lo("0x8")](Lo("0x13"))||"";return this[Lo("0x18")]()[Lo("0xb")]((()=>this.ui[Lo("0x11")]()))[Lo("0xb")]((()=>this[Lo("0x0")].init(t))).then((()=>this[Lo("0xe")]("ready")))}[Lo("0x5")](){return super[Lo("0x5")]()[Lo("0xb")]((()=>this.ui[Lo("0x5")]()))}[Lo("0xd")](){this[Lo("0x7")][Lo("0x14")]((t=>{const e=this.model[Lo("0xc")].getRoot(),n=e[Lo("0x9")](e[Lo("0x6")]-1);t[Lo("0x4")](n,"end"),this[Lo("0x16")].view[Lo("0xd")]()}))}[Lo("0x3")](){const t=this.editing[Lo("0x19")],e=t[Lo("0xc")][Lo("0xa")](),n=e[Lo("0x9")](0);e[Lo("0x6")]>1||!n||"p"!=n[Lo("0x17")]?this[Lo("0x1a")]&&((0,Oo.disablePlaceholder)(t,this.placeholderElement),this[Lo("0x1a")]=void 0):((0,Oo.enablePlaceholder)({view:t,element:n,text:this[Lo("0x1c")],keepOnFocus:!0}),this[Lo("0x1a")]=n)}}(0,e.mix)(zo,e.ObservableMixin),(0,e.mix)(zo,t.DataApiMixin),zo[Lo("0xf")]=[jo.Clipboard,Vo.Enter,Vo.ShiftEnter,Mo.SelectAll,So.Typing,Ro.Undo,Do.Paragraph];const Fo=["isEnabled","createEditor","length","_editorConfig","_createCancelButton","listenTo","ck-comment__input-actions--active","fire","editor","TOO_LONG_COMMENT_ALERT","placeholder","getData","_editorCreationPromise","Submit","destroy","label","bindTemplate","focus","document","render","model","Esc","then","value","trim","initialData","stop","div","bind","_createSubmitButton","focusNext","create","extendTemplate","check","add","keystrokes","forEach","insertBefore","cancelButtonView","setData","icon","focusPrevious","element","low","set","_initializeFocusCycling","ck-comment__input-actions--cancel","focusTracker","execute","submit","submitButtonView","_isDestroyed","view","showButtons","ck-comment__input-wrapper","cancel","firstChild","disabledSubmit"];var Ko,Uo;Ko=Fo,Uo=246,function(t){for(;--t;)Ko.push(Ko.shift())}(++Uo);const Wo=function(t,e){return Fo[t-=0]};class Ho extends go.View{constructor(t,n={}){super(t),this[Wo("0x34")]=null,this[Wo("0x2f")]=n,this[Wo("0x15")]=new e.KeystrokeHandler,this[Wo("0x21")]=new e.FocusTracker,this.set("value",n[Wo("0xb")]||""),this[Wo("0x1e")](Wo("0x2b"),!1),this[Wo("0x1e")]("showButtons",!0),this[Wo("0x1e")](Wo("0x36"),bo(t,"Reply...")),this[Wo("0x24")]=this[Wo("0xf")](),this[Wo("0x18")]=this[Wo("0x30")](),this.setTemplate({tag:Wo("0xd"),attributes:{class:[Wo("0x28")]},children:[{tag:Wo("0xd"),attributes:{class:["ck-comment__input-actions",this[Wo("0x2")].if(Wo("0x27"),Wo("0x32"))]},children:[this[Wo("0x24")],this[Wo("0x18")]]}]}),this[Wo("0x15")][Wo("0x1e")](Wo("0x7"),((t,e)=>{this.cancelButtonView[Wo("0x33")](Wo("0x22")),e()})),this.on(Wo("0x23"),((e,n)=>{n.length>65e3?(alert(bo(t,Wo("0x35"),[n[Wo("0x2e")],65e3])),e[Wo("0xc")]()):this[Wo("0x34")][Wo("0x19")]("")}),{priority:"high"})}[Wo("0x5")](){super[Wo("0x5")](),this[Wo("0x15")][Wo("0x31")](this[Wo("0x1c")]),this[Wo("0x21")].add(this[Wo("0x1c")])}[Wo("0x2d")](){return this.editor||(this.editor=new zo(this[Wo("0x2f")]),this[Wo("0x38")]=this.editor[Wo("0x11")]()[Wo("0x8")]((()=>{this[Wo("0x25")]||(this[Wo("0x1c")][Wo("0x17")](this[Wo("0x34")].ui[Wo("0x1c")],this[Wo("0x1c")][Wo("0x2a")]),this[Wo("0x34")][Wo("0x6")][Wo("0x4")].on("change",(()=>this[Wo("0x9")]=this[Wo("0x34")][Wo("0x37")]())),this[Wo("0x34")][Wo("0xe")](Wo("0x36")).to(this),this[Wo("0x1f")](this[Wo("0x34")]),this[Wo("0x33")]("editorReady"))}))),this._editorCreationPromise}focus(){this[Wo("0x34")]&&this[Wo("0x34")][Wo("0x3")]()}async destroy(){this[Wo("0x25")]||(this[Wo("0x25")]=!0,this[Wo("0x34")]&&(await this[Wo("0x38")],await this[Wo("0x34")][Wo("0x0")]()),await super[Wo("0x0")]())}[Wo("0xf")](){const{locale:e}=this,n=new go.ButtonView(e);return n[Wo("0x12")]({attributes:{class:["ck-comment__input-actions--submit"]}}),n.label=bo(e,Wo("0x39")),n[Wo("0x1a")]=t.icons[Wo("0x13")],n.on(Wo("0x22"),(()=>{this.fire(Wo("0x23"),this.value)})),n[Wo("0xe")](Wo("0x2c")).to(this,Wo("0x9"),this,Wo("0x2b"),((t,e)=>!e&&!!t[Wo("0xa")]())),n}[Wo("0x30")](){const{locale:e}=this,n=new go.ButtonView(e);return n[Wo("0x12")]({attributes:{class:[Wo("0x20")]}}),n[Wo("0x1")]=bo(e,"Cancel"),n[Wo("0x1a")]=t.icons[Wo("0x29")],n.on("execute",(()=>{this[Wo("0x34")][Wo("0x19")](""),this.fire(Wo("0x29"))})),n}[Wo("0x1f")](t){const e=this[Wo("0x21")],n=new go.ViewCollection;[t.ui[Wo("0x26")],this[Wo("0x24")],this[Wo("0x18")]][Wo("0x16")]((t=>{n.add(t),e[Wo("0x14")](t.element)}));const o=new go.FocusCycler({focusables:n,focusTracker:e});this.keystrokes[Wo("0x1e")]("tab",((t,e)=>{o[Wo("0x10")](),e()}),{priority:Wo("0x1d")}),this[Wo("0x15")][Wo("0x1e")]("shift + tab",((t,e)=>{o[Wo("0x1b")](),e()}),{priority:Wo("0x1d")})}}var Zo,qo,Xo=["commentInputView","editor","userView","bind","ck-thread__input","extendTemplate","ck-comment__input-container","createEditor","set","change:showInput","showButtons","isFocused","value","then","showInput","div","setTemplate","destroy","bindTemplate","focusTracker"];Zo=Xo,qo=249,function(t){for(;--t;)Zo.push(Zo.shift())}(++qo);var $o=function(t,e){return Xo[t-=0]};class Go extends go.View{constructor(t,e,n){super(t),this[$o("0xb")]=new Ho(t,n),this.commentInputView[$o("0xe")]($o("0x1")).to(this.commentInputView[$o("0xa")],$o("0x2"),this[$o("0xb")],$o("0x3"),((t,e)=>t||!!e)),this[$o("0x13")]($o("0x5"),!1),this.on($o("0x0"),(()=>{this.showInput&&!this.commentInputView[$o("0xc")]&&this.commentInputView[$o("0x12")]()})),this[$o("0xd")]=new i.UserView(t,e),this.userView[$o("0x10")]({attributes:{class:"ck-thread__user"}}),this[$o("0xb")][$o("0x10")]({attributes:{class:$o("0xf")}}),this[$o("0x7")]({tag:$o("0x6"),attributes:{class:[$o("0x11"),this[$o("0x9")].if($o("0x5"),"ck-comment__input-container--active")]},children:[this.userView,this.commentInputView]})}destroy(){return this.commentInputView[$o("0x8")]()[$o("0x4")]((()=>super[$o("0x8")]()))}}const Jo=["setTemplate"];var Yo,Qo;Yo=Jo,Qo=485,function(t){for(;--t;)Yo.push(Yo.shift())}(++Qo);class ti extends go.View{constructor(t){super(t);const e=this.bindTemplate;this.set("count"),this[function(t,e){return Jo[t-=0]}("0x0")]({tag:"li",attributes:{class:"ck-thread__comment-count"},children:[{text:e.to("count",(e=>bo(t,"NUMBER_OF_COMMENTS",e)))}]})}}const ei=["from","formatDateTime","element","createCollection","_collapsedCommentsView","_config","render","maxCommentCharsWhenCollapsed","destroy","delete","stopListening","equal","removeComment","_handleRemoveCommentModel","comments","change:isActive","focus","count","set","commentViews","listenTo","refreshVisibleViews","get","length","updateComment","hasDirtyComment","remove","maxThreadTotalWeight","add","_shouldCollapse","insert","_rearrangeCollapse","_updateHasDirtyComment","_handleNewCommentModel","_model","visibleViews","setTemplate","ck-thread__comments","delegate","maxCommentsWhenCollapsed","expand","collapse","isEditMode","editorConfig"];var ni,oi;ni=ei,oi=482,function(t){for(;--t;)ni.push(ni.shift())}(++oi);const ii=function(t,e){return ei[t-=0]};class ri extends go.View{constructor(t,e,n){super(t),this.set("hasDirtyComment",!1),this[ii("0x14")](ii("0x19"),e[ii("0x10")][ii("0x19")]),this[ii("0x14")]("isActive",!1),this[ii("0x24")]=e,this[ii("0x7")]=n,this[ii("0x15")]=this[ii("0x5")](),this[ii("0x25")]=this.createCollection(),this._collapsedCommentsView=new ti(t),this[ii("0x6")].bind("count").to(this,ii("0x19"),(t=>t-this[ii("0x7")][ii("0x29")]));for(const t of e[ii("0x10")])this[ii("0x23")](t);this[ii("0x16")](e[ii("0x10")],ii("0x1e"),((t,e)=>{this[ii("0x19")]++,this[ii("0x23")](e),this.refreshVisibleViews()})),this.listenTo(e[ii("0x10")],"remove",((t,e)=>{this[ii("0x19")]--,this[ii("0xf")](e),this.refreshVisibleViews()})),this[ii("0x16")](e,"commentUpdated",(()=>this[ii("0x17")]())),this.on(ii("0x11"),(()=>this.refreshVisibleViews())),this.on("change:hasDirtyComment",(()=>this[ii("0x17")]())),this[ii("0x26")]({tag:"ul",attributes:{class:[ii("0x27")]},children:this[ii("0x25")]})}get[ii("0x1f")](){return this._model.weight>this[ii("0x7")][ii("0x1d")]&&!this.isActive&&!this[ii("0x1b")]}[ii("0x8")](){super[ii("0x8")](),this[ii("0x17")]()}[ii("0x12")](){this[ii("0x4")][ii("0x12")]()}[ii("0xa")](){this[ii("0x6")].destroy();for(const t of this.commentViews)t[ii("0xa")]();super[ii("0xa")]()}refreshVisibleViews(){this._shouldCollapse?this[ii("0x21")]():this._rearrangeExpand()}_handleNewCommentModel(t){const e=new(this[ii("0x7")].CommentView)(this.locale,t,{maxCommentCharsWhenCollapsed:this._config[ii("0x9")],formatDateTime:this[ii("0x7")][ii("0x3")],editorConfig:this._config[ii("0x1")]});e.viewUid=t.id,e.delegate(ii("0xe")).to(this),e[ii("0x28")](ii("0x1a")).to(this),this.listenTo(e,"change:isEditMode",(()=>this._updateHasDirtyComment())),this[ii("0x15")][ii("0x1e")](e)}_handleRemoveCommentModel(t){const e=this[ii("0x15")].remove(t.id);this[ii("0xc")](e),e[ii("0x0")]&&this[ii("0x22")](),e[ii("0xa")]()}[ii("0x22")](){this.hasDirtyComment=Array.from(this[ii("0x15")]).some((t=>t.isEditMode))}[ii("0x21")](){const t=function(t){const n=new e.Collection;for(const e of t)n[ii("0x1e")](e);return n}(this[ii("0x15")]),n=this[ii("0x6")][ii("0x13")];for(let e=1;e<=n;e++)t[ii("0x1c")](1);for(const e of t)e[ii("0x2b")]();n>0&&t[ii("0x1e")](this[ii("0x6")],1),si((0,e.diff)(Array[ii("0x2")](this.visibleViews),Array[ii("0x2")](t)),this.visibleViews,t)}_rearrangeExpand(){si((0,e.diff)(Array.from(this[ii("0x25")]),Array[ii("0x2")](this[ii("0x15")])),this[ii("0x25")],this[ii("0x15")]);for(const t of this[ii("0x25")])t[ii("0x2a")]()}}function si(t,e,n){let o=0;for(const i of t)switch(i){case ii("0x20"):e[ii("0x1e")](n[ii("0x18")](o),o),o++;break;case ii("0xb"):e[ii("0x1c")](o);break;case ii("0xd"):o++}}const ai=["change:isActive","Write a comment...","fire","locale","commentInputView","commentsListView","element","disabledSubmit","cancel","length","bind","hasDirtyComment","addComment","value","_createCommentThreadInputView","isDirty","delegate","placeholder","stop","_config","destroy","focus","commentThreadInputView","set","CommentView","isActive","isReadOnly","_model","showInput","removeCommentThread","updateComment","_localUser","Reply...","removeComment","assign"];var ci,xi;ci=ai,xi=210,function(t){for(;--t;)ci.push(ci.shift())}(++xi);const hi=function(t,e){return ai[t-=0]};class di extends go.View{constructor(t,e,n,o){super(t),this[hi("0x17")](hi("0x19"),!1),this[hi("0x17")](hi("0xf"),!1),this[hi("0x1b")]=e,this[hi("0x1f")]=n,this._config=o,this.commentsListView=new ri(t,e,Object[hi("0x22")]({CommentView:this[hi("0x13")][hi("0x18")]},o)),this[hi("0x5")][hi("0x10")](hi("0x21")).to(this),this.commentsListView[hi("0x10")](hi("0x1e")).to(this),this[hi("0x5")][hi("0xa")](hi("0x19")).to(this),this[hi("0x17")](hi("0x9"),this.commentsListView[hi("0x9")]),this[hi("0xa")](hi("0x9")).to(this[hi("0x5")],hi("0x9")),this[hi("0x16")]=this[hi("0xe")](),this.on(hi("0x21"),(()=>this[hi("0x15")]())),this[hi("0xa")](hi("0xf")).to(this[hi("0x5")],hi("0xb"),this[hi("0x16")][hi("0x4")],"value",((t,e)=>t||!!e))}[hi("0x15")](){this[hi("0x6")].focus()}destroy(){this[hi("0xf")]=!1,this.commentsListView[hi("0x14")](),this[hi("0x16")].destroy(),super[hi("0x14")]()}_createCommentThreadInputView(){const t=new Go(this.locale,this[hi("0x1f")],this[hi("0x13")].editorConfig),e=t[hi("0x4")];return t[hi("0xa")](hi("0x1c")).to(this,hi("0x19"),this._model,hi("0x1a"),e,hi("0xd"),((t,e,n)=>!!n||t&&!e)),e[hi("0xa")](hi("0x11")).to(this,hi("0x9"),(t=>bo(this[hi("0x3")],hi(t?"0x20":"0x1")))),e.on("submit",((t,e)=>{this.fire(hi("0xc"),e)})),e.on(hi("0x8"),(()=>{this.focus()})),e[hi("0xa")](hi("0x7")).to(this[hi("0x1b")],"isReadOnly"),e.on(hi("0x8"),(t=>{0==this[hi("0x9")]&&(this[hi("0x2")](hi("0x1d")),t[hi("0x12")]())})),this.on(hi("0x0"),((t,n,o)=>{o||this[hi("0x9")]||e.value||this[hi("0x2")]("removeCommentThread")})),t}}const li=["actionIndicator","ck-thread__container","commentsListView","remove","locale","unbind","_model","fire","ck-thread","commentViews","ck-thread--","execute","change:isActive","Write a comment...","cancelConfirm","placeholder","querySelector","containerElement","stop","element","_boundFirstCommentView","Delete comment thread?","_cancelAllConfirms","bindTemplate","change:isReadOnly","listenTo","set","then","getTemplate","get","ck-thread--remove-confirmation","removeButton","ck-thread--active","div","showConfirm","length","commentThreadInputView","_bindFirstCommentView","render","add","removeCommentThread"];var ui,mi;ui=li,mi=190,function(t){for(;--t;)ui.push(ui.shift())}(++mi);const fi=function(t,e){return li[t-=0]};class pi extends di{constructor(t,e,n,o){super(t,e,n,o),this[fi("0x0")](fi("0xf"),null),this[fi("0x20")]=null,this[fi("0x23")]=null,this[fi("0x13")]=t,this.setTemplate(this[fi("0x2")]()),this.on(fi("0x1b"),((t,e,n)=>{n||this._cancelAllConfirms()})),this[fi("0x28")](this[fi("0x15")],fi("0x27"),((t,e,n)=>{n&&this[fi("0x25")]()})),this[fi("0x9")]>0&&this[fi("0xb")](),this[fi("0x28")](this[fi("0x11")][fi("0x18")],fi("0xd"),(()=>{this._bindFirstCommentView()}))}getTemplate(){const t=this[fi("0x26")];return{tag:fi("0x7"),attributes:{class:[fi("0x17"),t.if("isActive",fi("0x6")),t.if("isConfirm",fi("0x4")),t.to(fi("0xf"),(t=>t?fi("0x19")+t:""))],"data-thread-id":this._model.id,tabindex:-1},children:[{tag:fi("0x7"),attributes:{class:fi("0x10")},children:[this.commentsListView,this[fi("0xa")]]}]}}[fi("0xc")](){super.render(),this.containerElement=this[fi("0x22")][fi("0x1f")](".ck-thread__container")}_cancelAllConfirms(){this.cancelConfirm();for(const t of this[fi("0x11")][fi("0x18")])t[fi("0x1d")]()}[fi("0xb")](){const{locale:t}=this,e=this[fi("0x11")][fi("0x18")][fi("0x3")](0);e!==this[fi("0x23")]&&(this[fi("0x23")]=e,this[fi("0x14")](fi("0xf")),this.bind(fi("0xf")).to(e,"actionIndicator",(t=>"remove"===t?fi("0x12"):null)),e[fi("0x1e")]=bo(t,fi("0x1c")),e[fi("0x5")].on(fi("0x1a"),(e=>{e[fi("0x21")](),this[fi("0x8")](bo(t,fi("0x24")),this[fi("0x20")])[fi("0x1")]((()=>{this[fi("0x16")](fi("0xe"))}))}),{priority:"high"}))}}(0,e.mix)(pi,i.ConfirmMixin);var gi,bi,vi=["ck-comment__content","setTemplate","ck-annotation__content","set","render","content","innerHTML","div","element","change:content"];gi=vi,bi=469,function(t){for(;--t;)gi.push(gi.shift())}(++bi);var _i=function(t,e){return vi[t-=0]};class wi extends go.View{constructor(t){super(t),this[_i("0x4")](_i("0x6"),""),this[_i("0x2")]({tag:_i("0x8"),attributes:{class:[_i("0x1"),_i("0x3")]}})}[_i("0x5")](){super[_i("0x5")](),this.on(_i("0x0"),((t,e,n)=>{this.element.innerHTML=n})),this[_i("0x9")][_i("0x7")]=this.content}}const ki=["add","maxCommentCharsWhenCollapsed","editorReady","submit","switchToEditMode","visibleView","_model","expand","createCollection","_config","locale","_createCommentInputView","switchToDisplayMode","isCollapsed","createEditor","focus","fire","bind","destroy","isEditMode","content","updateComment","collapse","editorConfig","remove","disabledSubmit"];var yi,Ci;yi=ki,Ci=123,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return ki[t-=0]};class Ti extends go.View{constructor(t,e,n){super(t),this[Ai("0xd")]=e,this[Ai("0x10")]=n,this.set(Ai("0x0"),!1),this.set(Ai("0x14"),!0),this[Ai("0xc")]=this[Ai("0xf")](),this[Ai("0xc")][Ai("0x7")](this._createCommentContentView())}[Ai("0xe")](){this[Ai("0x14")]=!1}[Ai("0x3")](){this.isEditMode||(this[Ai("0x14")]=!0)}[Ai("0x16")](){this.element[Ai("0x16")]()}async[Ai("0x19")](){await this[Ai("0xc")].get(0).destroy(),super[Ai("0x19")]()}[Ai("0xb")](){this[Ai("0x0")]||(this.isEditMode=!0,this[Ai("0xc")][Ai("0x5")](0)[Ai("0x19")](),this.visibleView[Ai("0x7")](this._createCommentInputView()))}[Ai("0x13")](){this.isEditMode&&(this.isEditMode=!1,this[Ai("0xc")][Ai("0x5")](0)[Ai("0x19")](),this[Ai("0xc")][Ai("0x7")](this._createCommentContentView()))}_createCommentContentView(){const t=new wi(this[Ai("0x11")]);return t[Ai("0x18")](Ai("0x1")).to(this[Ai("0xd")],"content",this,Ai("0x14"),((t,e)=>e?(0,i.trimHtml)(t,{limit:this._config[Ai("0x8")]}):t)),t}[Ai("0x12")](){this._config.editorConfig||(this[Ai("0x10")].editorConfig={}),this._config[Ai("0x4")].initialData=this[Ai("0xd")][Ai("0x1")];const t=new Ho(this[Ai("0x11")],this[Ai("0x10")][Ai("0x4")]);return t.value=this[Ai("0xd")][Ai("0x1")],t[Ai("0x18")](Ai("0x6")).to(this[Ai("0xd")],"isReadOnly"),t.on(Ai("0xa"),((t,e)=>{this[Ai("0x17")](Ai("0x2"),this._model.id,e),this[Ai("0x13")](),this[Ai("0x16")]()})),t.on("cancel",(()=>{this[Ai("0x13")](),this.focus()})),t.once(Ai("0x9"),(()=>{t[Ai("0x16")]()})),t[Ai("0x15")](),t}}const Ei=["ck-comment__info-time","isEditMode","editButton","ck-comment__actions--hidden","ck-annotation__content-wrapper","ck-annotation","ck-annotation__info","push","source","time","extendTemplate","isVisible","@external","_model","ck-comment--edit","locale","div","ck-comment--","EXTERNAL_IMPORT_WORD_AVATAR","removeButton","Reply...","_config","ck-annotation__main","Edit","listenTo","placeholder","bindTemplate","isRemovable","ck-annotation__actions--hidden","ck-comment__info","author","isExternal","pencil","_createCommentInputView","isEnabled","ck-comment--remove","focus","userView","element","Delete comment?","getTemplate","_createEditButton","formatDateTime","isReadOnly","creator","set","showConfirm","change:isRemovable","isEditable","getExternalCommentNote","_attachActions","actionIndicator","then","Remove","cancelConfirm","visibleView","remove","span","ck-comment__user","ck-comment--remove-confirmation","_createRemoveButton","execute","name","importWord","icon","isConfirm","ck-comment__external","ck-comment__wrapper","authoredAt","bind","label","attributes","fire"];var Ii,Oi;Ii=Ei,Oi=117,function(t){for(;--t;)Ii.push(Ii.shift())}(++Oi);const ji=function(t,e){return Ei[t-=0]};class Vi extends Ti{constructor(t,e,n){super(t,e,n),this.set(ji("0x7"),null),this[ji("0x1")](ji("0x36"),bo(t,ji("0x31"))),this.set(ji("0x18"),null),this[ji("0x19")](ji("0x18")).to(e),this[ji("0x1f")]=this[ji("0x46")](),this[ji("0x30")]=this[ji("0x10")](),this.userView=new i.UserView(t,e[ji("0x3b")],this.getUserViewNotificationText()),this[ji("0x42")][ji("0x27")]({attributes:{class:[ji("0xe"),"ck-annotation__user"]}}),this[ji("0x35")](e,ji("0x3"),(()=>this[ji("0xa")]())),this.setTemplate(this[ji("0x45")]())}getTemplate(){const t=this[ji("0x37")],e=[{tag:ji("0x2d"),attributes:{class:[ji("0x3a"),ji("0x23")]},children:[{tag:ji("0xd"),children:[{text:this.userView[ji("0x12")]}],attributes:{class:["ck-comment__info-name","ck-annotation__info-name"]}},{tag:ji("0x26"),attributes:{datetime:t.to(ji("0x18")),class:[ji("0x1d"),"ck-annotation__info-time"]},children:[{text:t.to(ji("0x18"),(t=>this[ji("0x32")][ji("0x47")](t)))}]}]},{tag:ji("0x2d"),attributes:{class:["ck-comment__actions","ck-annotation__actions",t.if(ji("0x1e"),ji("0x20")),t.if(ji("0x1e"),ji("0x39"))]},children:[this[ji("0x1f")],this[ji("0x30")]]},{tag:ji("0x2d"),attributes:{class:[ji("0x21")]},children:this[ji("0xb")]}];return this[ji("0x2a")].isExternal&&e[ji("0x24")]({tag:"div",attributes:{class:[ji("0x16")]},children:[{text:this[ji("0x5")]()}]}),{tag:"li",attributes:{class:[ji("0x17"),t.if(ji("0x15"),ji("0xf"))],tabindex:-1},children:[{tag:ji("0x2d"),attributes:{class:["ck-comment",ji("0x22"),t.if("isEditMode",ji("0x2b")),t.to(ji("0x7"),(t=>t?ji("0x2e")+t:""))],"data-author-id":this[ji("0x2a")][ji("0x3b")].id,"data-comment-id":this[ji("0x2a")].id},children:[this[ji("0x42")],{tag:ji("0x2d"),attributes:{class:["ck-comment__main",ji("0x33")]},children:e}]}]}}[ji("0x46")](){const e=new go.ButtonView(this[ji("0x2c")]);return e[ji("0x1a")]=bo(this[ji("0x2c")],ji("0x34")),e[ji("0x14")]=t.icons[ji("0x3d")],e[ji("0x27")]({attributes:{class:"ck-comment--edit"}}),e[ji("0x19")](ji("0x3f")).to(this[ji("0x2a")],"isReadOnly",(t=>!t)),e.bind(ji("0x28")).to(this[ji("0x2a")],ji("0x4")),e.on(ji("0x11"),(()=>this.switchToEditMode())),e}[ji("0x10")](){const t=new go.ButtonView(this[ji("0x2c")]);return t[ji("0x1a")]=bo(this[ji("0x2c")],ji("0x9")),t[ji("0x14")]='\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.2 7h9.2c.6 0 1 .4 1 1v9.9c0 .5-.4 1-1 1H5.2a1 1 0 0 1-1-1V8c0-.6.4-1 1-1zm1 1.5c-.3 0-.5.2-.5.5v8c0 .3.2.5.5.5h.5c.2 0 .5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5 3.6H3.8c-.5 0-.7.3-.7.8s.2.7.7.7h12c.6 0 .9-.2.9-.7 0-.5-.3-.8-1-.8h-2.4l-1.8-2.2z"/></svg>\n',t[ji("0x27")]({attributes:{class:ji("0x40")}}),t[ji("0x19")](ji("0x3f")).to(this[ji("0x2a")],ji("0x48"),(t=>!t)),t.bind(ji("0x28")).to(this._model,ji("0x38")),t.on(ji("0x11"),(()=>{this[ji("0x2")](bo(this[ji("0x2c")],ji("0x44")),this.element)[ji("0x8")]((()=>{this[ji("0x1c")]("removeComment",this[ji("0x2a")].id)}))})),t}[ji("0x6")](t,e){this[ji("0x35")](t,"mouseenter",(()=>this.actionIndicator=e)),this[ji("0x35")](t,ji("0x41"),(()=>this[ji("0x7")]=e)),this[ji("0x35")](t,"mouseleave",(()=>this[ji("0x7")]=null)),this[ji("0x35")](t,"blur",(()=>this.actionIndicator=null))}[ji("0x3e")](){const t=super._createCommentInputView();return t[ji("0x19")]("placeholder").to(this),t}[ji("0x5")](){return ji("0x13")===this[ji("0x2a")][ji("0x1b")]["@external"][ji("0x25")]?bo(this[ji("0x2c")],"EXTERNAL_IMPORT_WORD_COMMENT"):bo(this[ji("0x2c")],"EXTERNAL_COMMENT")}getUserViewNotificationText(){return this[ji("0x2a")][ji("0x3c")]?ji("0x13")===this[ji("0x2a")][ji("0x1b")][ji("0x29")].source?bo(this[ji("0x2c")],ji("0x2f"),this[ji("0x2a")].creator.name):bo(this[ji("0x2c")],"EXTERNAL_AVATAR",this[ji("0x2a")][ji("0x0")][ji("0x12")]):null}render(){super.render(),this[ji("0x6")](this[ji("0x1f")][ji("0x43")],"edit"),this[ji("0x6")](this[ji("0x30")][ji("0x43")],ji("0xc"))}}(0,e.mix)(Vi,i.ConfirmMixin);var Mi=n(278),Si=n.n(Mi),Ri=n(490),Di={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Si()(Ri.Z,Di);Ri.Z.locals;var Ni=n(227),Pi={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Si()(Ni.Z,Pi);Ni.Z.locals;var Bi=n(424),Li={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Si()(Bi.Z,Li);Bi.Z.locals;const zi=function(){return w.Date.now()};var Fi=/\s/;const Ki=function(t){for(var e=t.length;e--&&Fi.test(t.charAt(e)););return e};var Ui=/^\s+/;const Wi=function(t){return t?t.slice(0,Ki(t)+1).replace(Ui,""):t};var Hi=/^[-+]0x[0-9a-f]+$/i,Zi=/^0b[01]+$/i,qi=/^0o[0-7]+$/i,Xi=parseInt;const $i=function(t){if("number"==typeof t)return t;if(Fn(t))return NaN;if(M(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=M(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Wi(t);var n=Zi.test(t);return n||qi.test(t)?Xi(t.slice(2),n?2:8):Hi.test(t)?NaN:+t};var Gi=Math.max,Ji=Math.min;const Yi=function(t,e,n){var o,i,r,s,a,c,x=0,h=!1,d=!1,l=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function u(e){var n=o,r=i;return o=i=void 0,x=e,s=t.apply(r,n)}function m(t){return x=t,a=setTimeout(p,e),h?u(t):s}function f(t){var n=t-c;return void 0===c||n>=e||n<0||d&&t-x>=r}function p(){var t=zi();if(f(t))return g(t);a=setTimeout(p,function(t){var n=e-(t-c);return d?Ji(n,r-(t-x)):n}(t))}function g(t){return a=void 0,l&&o?u(t):(o=i=void 0,s)}function b(){var t=zi(),n=f(t);if(o=arguments,i=this,c=t,n){if(void 0===a)return m(c);if(d)return clearTimeout(a),a=setTimeout(p,e),u(c)}return void 0===a&&(a=setTimeout(p,e)),s}return e=$i(e)||0,M(n)&&(h=!!n.leading,r=(d="maxWait"in n)?Gi($i(n.maxWait)||0,e):r,l="trailing"in n?!!n.trailing:l),b.cancel=function(){void 0!==a&&clearTimeout(a),x=0,o=c=i=a=void 0},b.flush=function(){return void 0===a?s:g(zi())},b};const Qi=function(t,e,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return M(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Yi(t,e,{leading:o,maxWait:e,trailing:i})},tr=["observe","childList","cancel","attributeName"];var er,nr;er=tr,nr=231,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};function ir(t){const e=Qi(t,30),n=new MutationObserver((t=>{for(const n of t)("attributes"==n.type&&"class"==n[or("0x0")]||or("0x2")==n.type)&&e()}));return{attach(t){n[or("0x1")](t,{attributes:!0,childList:!0,subtree:!0})},detach(){n.disconnect(),e[or("0x3")]()}}}var rr=n(173),sr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Si()(rr.Z,sr);rr.Z.locals;const ar=["ck-annotation-wrapper","focusTracker","type","mainView","render","setTemplate","Esc","bindTemplate","keystrokes","div","_mutationObserver","isActive","detach","height","element","set","attach","content","length","add","focus","ck-rounded-corners","targetRect","ck-annotation-wrapper--active","destroy","_updateHeight","clientHeight","listenTo"];var cr,xr;cr=ar,xr=250,function(t){for(;--t;)cr.push(cr.shift())}(++xr);const hr=function(t,e){return ar[t-=0]};class dr extends go.View{constructor(t,n){super(t),this.id=(0,e.uid)(),this[hr("0x3")]=new e.FocusTracker,this[hr("0xa")]=new e.KeystrokeHandler,this[hr("0xa")][hr("0x11")](hr("0x8"),((t,e)=>this.fire("Esc",e))),this[hr("0x11")](hr("0x18"),{top:0,right:0,bottom:0,left:0}),this[hr("0x11")](hr("0xf"),0),this[hr("0x11")]("isActive",!1),this[hr("0x11")]("isDirty",!1),this.set(hr("0x14"),0),this[hr("0x11")](hr("0x4"),""),this[hr("0xc")]=ir((()=>this[hr("0x1b")]())),this[hr("0x13")]=this.createCollection(),this[hr("0x13")][hr("0x15")](n),this[hr("0x5")]=n;const o=this[hr("0x9")];this[hr("0x7")]({tag:hr("0xb"),attributes:{class:["ck",hr("0x2"),hr("0x17"),o.if(hr("0xd"),hr("0x19"))],tabindex:-1},children:this[hr("0x13")]})}render(){super[hr("0x6")](),this.focusTracker[hr("0x15")](this.element),this[hr("0xa")][hr("0x1")](this.element),this[hr("0xc")][hr("0x12")](this[hr("0x10")])}destroy(){this[hr("0x13")].clear(),this.keystrokes.destroy(),this[hr("0x3")][hr("0x1a")](),this._mutationObserver[hr("0xe")](),super[hr("0x1a")]()}focus(){this[hr("0x10")][hr("0x16")]()}[hr("0x1b")](){const t=this[hr("0x10")][hr("0x0")];t&&(this[hr("0xf")]=t)}}const lr=["render","focusTracker","_target","getClientRects","targetRect","isVisible","focusableElements","refreshVisibility","type","annotation-invalid-target","nodeType","isActive","remove","offsetParent","add","object","length","_assertCorrectTarget","view","destroy","target","stopListening","set","_getNormalizedTarget","innerView","item","filter","_type","function"];var ur,mr;ur=lr,mr=202,function(t){for(;--t;)ur.push(ur.shift())}(++mr);const fr=function(t,e){return lr[t-=0]};class pr{constructor({view:t,target:n,type:o,isVisible:i=!0}){this.view=t,this[fr("0x13")].element||this[fr("0x13")][fr("0x1")](),this._type=o,this[fr("0x3")]=n,pr._assertCorrectTarget(this[fr("0x18")]()),this.focusableElements=new e.Collection([this[fr("0x13")].element],{idProperty:"_id"}),this.focusableElements.on(fr("0xf"),((t,e)=>{this[fr("0x13")][fr("0x2")][fr("0xf")](e)})),this[fr("0x7")].on(fr("0xd"),((t,e)=>{this.view[fr("0x2")].remove(e)})),this[fr("0x17")]("isVisible",i)}get[fr("0x9")](){return fr("0x0")==typeof this[fr("0x1c")]?this[fr("0x1c")]():this[fr("0x1c")]}get[fr("0x19")](){return this[fr("0x13")].mainView}get[fr("0x15")](){const t=this[fr("0x18")]();return pr[fr("0x12")](t),t}get[fr("0x5")](){const t=this.target;if(null===t)return null;if(t instanceof e.Rect)return t;const n=t[fr("0x1b")]((t=>function(t){if(t[fr("0xe")])return!0;return!!t[fr("0x4")]()[fr("0x1a")](0)}(t)));return 0===n[fr("0x11")]?null:new e.Rect(n[0][fr("0x4")]()[fr("0x1a")](0))}get[fr("0xc")](){return this[fr("0x13")][fr("0xc")]}set[fr("0xc")](t){this[fr("0x13")][fr("0xc")]=t,this[fr("0x13")].mainView[fr("0xc")]=t}updateTargetRect(){this[fr("0x13")][fr("0x5")]=this[fr("0x5")]}[fr("0x14")](){this[fr("0x7")].stopListening(),this[fr("0x7")].clear(),this[fr("0x16")]()}[fr("0x8")](){this[fr("0x6")]=!!this.targetRect}static[fr("0x12")](t){if(!(null===t||t instanceof e.Rect||Array.isArray(t)&&t.every((t=>gr(t)))))throw new e.CKEditorError(fr("0xa"),null,{target:t})}[fr("0x18")](){let t=fr("0x0")==typeof this[fr("0x3")]?this._target():this[fr("0x3")];return t=gr(t)?[t]:t,t}}function gr(t){return null!==t&&fr("0x10")==typeof t&&1===t[fr("0xb")]}(0,e.mix)(pr,e.ObservableMixin);const br=["focusTracker","getByView","from","change:isFocused","updateTargetRect","focus","_viewToAnnotation","getIndex","annotationcollection-not-existing-item","view","destroy","_innerViewToAnnotation","getByInnerView","targetRect","get","add","_focusTracker","_getOrderInContent","fire","top","length","sort","refreshPositioning","delete","focusableElements","stopListening","set","left","isFocused","clear","has","innerView","listenTo","remove"];var vr,_r;vr=br,_r=493,function(t){for(;--t;)vr.push(vr.shift())}(++_r);const wr=function(t,e){return br[t-=0]};class kr extends e.Collection{constructor(t=[]){super(),this[wr("0x1c")]=new Map,this[wr("0x17")]=new Map,this[wr("0x21")]=new e.FocusTracker,this._focusTracker.on(wr("0x14"),((t,e,n)=>{n||this[wr("0x1")]("blur")}));for(const e of t)this[wr("0x20")](e)}get[wr("0xb")](){return this[wr("0x21")].isFocused}[wr("0x20")](t){if(this[wr("0xd")](t))throw new e.CKEditorError("annotationcollection-duplicated-item",null);this[wr("0x1c")][wr("0x9")](t[wr("0xe")],t),this[wr("0x17")][wr("0x9")](t.view,t);for(const e of t[wr("0x7")])this[wr("0x21")][wr("0x20")](e);this[wr("0xf")](t[wr("0x7")],"add",((t,e)=>{this[wr("0x21")][wr("0x20")](e)})),this.listenTo(t.focusableElements,wr("0x10"),((t,e)=>{this[wr("0x21")][wr("0x10")](e)})),this[wr("0xf")](t[wr("0x1a")].focusTracker,wr("0x14"),((e,n,o)=>{o&&this[wr("0x1")](wr("0x16"),t)})),t[wr("0x15")]();const n=this[wr("0x0")](t[wr("0x1a")][wr("0x1e")]);super[wr("0x20")](t,n)}[wr("0x10")](t){if(!this[wr("0xd")](t))throw new e.CKEditorError(wr("0x19"),null);this[wr("0x8")](t[wr("0x1a")][wr("0x11")]),this[wr("0x8")](t.focusableElements);for(const e of t[wr("0x7")])this[wr("0x21")][wr("0x10")](e);this[wr("0x17")].delete(t.view),this[wr("0x1c")][wr("0x6")](t[wr("0xe")]),super[wr("0x10")](t)}[wr("0x1d")](t){return this[wr("0x1c")][wr("0x1f")](t)}[wr("0x12")](t){return this[wr("0x17")][wr("0x1f")](t)}[wr("0x1b")](){super[wr("0xc")](),this.stopListening(),this[wr("0x1c")][wr("0xc")](),this[wr("0x17")][wr("0xc")](),this[wr("0x21")][wr("0x1b")]()}[wr("0x5")](){for(const t of this)t.updateTargetRect();this._sort()}_sort(){const t=Array[wr("0x13")](this)[wr("0x4")](((t,e)=>yr(t[wr("0x1a")][wr("0x1e")],e[wr("0x1a")][wr("0x1e")])));for(let e=t[wr("0x3")]-1;e>0;e--){const n=t[e];e!==this[wr("0x18")](n)&&(this[wr("0x10")](n),this[wr("0x20")](n,e))}}[wr("0x0")](t){let e=0;if(!t)return this._items[wr("0x3")];for(const n of this){const o=n[wr("0x1a")][wr("0x1e")];if(o){if(yr(t,o)<0)return e;e++}}return e}}function yr(t,e){if(null===t&&null===e)return 0;if(null===t)return-1;if(null===e)return 1;const n=t[wr("0x2")]-e[wr("0x2")];return 0==n?t[wr("0xa")]-e[wr("0xa")]:n}const Cr=["remove","deactivateAll","has","_visibleAnnotations","refreshVisibility","collection","destroy","pluginName","source","getByInnerView","_bindAnnotationsToVisibleAnnotations","delete","stopListening","set","fire","_addActiveAnnotation","activeAnnotations","refreshPositioning","change:isVisible","isVisible","createAnnotationView","_deactivateAllAnnotations","listenTo","add"];var Ar,Tr;Ar=Cr,Tr=482,function(t){for(;--t;)Ar.push(Ar.shift())}(++Tr);const Er=function(t,e){return Cr[t-=0]};class Ir extends t.ContextPlugin{static get[Er("0x5")](){return"Annotations"}constructor(t){super(t),this[Er("0x3")]=new kr,this[Er("0x1")]=new kr,this[Er("0xb")](Er("0xe"),new Set),this[Er("0x8")]()}add(t){this[Er("0x3")][Er("0x15")](t)}remove(t){this.collection[Er("0x16")](t),t[Er("0x4")]()}[Er("0x2")](){for(const t of this[Er("0x3")])t.refreshVisibility()}refreshPositioning(){this[Er("0x1")][Er("0xf")]()}[Er("0x7")](t){return this[Er("0x3")].getByInnerView(t)}[Er("0x17")](){this[Er("0xc")](Er("0x13"))}destroy(){for(const t of this[Er("0x3")])t[Er("0x4")]();this._visibleAnnotations.destroy(),this[Er("0x3")][Er("0x4")](),super[Er("0x4")]()}activate(t){this[Er("0xc")]("_activateAnnotation",t)}createAnnotation(t){return new pr(t)}[Er("0x12")](t,e){return new dr(t,e)}[Er("0xd")](t){const e=new Set(this[Er("0xe")]);e[Er("0x15")](t),this.activeAnnotations=e}_removeActiveAnnotation(t){const e=new Set(this.activeAnnotations);e[Er("0x9")](t),this[Er("0xe")]=e}[Er("0x8")](){const t=this[Er("0x3")],e=this[Er("0x1")];function n(t){const n=t[Er("0x6")];n[Er("0x11")]&&!e[Er("0x0")](n)?e.add(n):!n.isVisible&&e[Er("0x0")](n)&&e.remove(n)}this.listenTo(t,Er("0x15"),((t,o)=>{o.isVisible&&e[Er("0x15")](o),this[Er("0x14")](o,Er("0x10"),n)})),this[Er("0x14")](t,Er("0x16"),((t,o)=>{e[Er("0x0")](o)&&e[Er("0x16")](o),this[Er("0xa")](o,Er("0x10"),n)}))}}const Or=["commentsrepository-missing-target","has","once","max","commentsrepository-update-missing-comment","type","set","Users","_createCommentThreadView","createdAt","delete","map","isAttached","commentsrepository-invalid-comment-thread-id","change:activeAnnotations","_attachCommentThread","view","openNewCommentThread","fire","destroy","getCommentThread","@external","removeCommentThread","addCommentThread","Missing comments editor configuration (`comments.editorConfig`). Default configuration will be used instead.","innerView","hasCommentThread","commentsrepository-invalid-comment-authorid","_add","commentsrepository-remove-comment-internal-error","substring","locale","_nonAdminChannels","config","_updateComment","creator","resolve","length","updateComment","warn","filter","requires","threadId","removeComment","switchReadOnly","isActive","attachTo","trim","model","getTime","fetchCommentThread","join","content","_viewToController","isDirty","textContent","commentInputView","noChannel","commentsrepository-fetch-comment-thread","getUser","afterInit","activeCommentThread","addComment","bind","_getExternalAuthor","_findOptimalIndex","authoredAt","_threads","from","change:isDirty","innerHTML","focus","comments.maxCommentCharsWhenCollapsed","_remove","commentsrepository-update-comment-invalid-content","commentsrepository-add-comment-internal-error","pluginName","stopListening","comments.editorConfig","toJSON","commentsrepository-remove-missing-comment-thread","getIndex","error","define","comment","_addComment","push","comments.maxCommentsWhenCollapsed","div","isExternal","commentsrepository-add-comment-user-not-exists","PendingActions","isReadOnly","removeAttribute","charCodeAt","external:","add","pop","channelId","_removeComment","isRemovable","_readOnlyChannels","commentsrepository-missing-thread-and-adapter","getCommentThreads","get","weight","catch","commentsrepository-remove-comment-thread-internal-error","CommentThreadView","comments.CommentView","slice","commentsrepository-add-comment-to-missing-comment-thread","_detachCommentThread","_addCommentThread","_threadToController","adapter","PENDING_ACTION_COMMENT_THREAD","commentsrepository-remove-missing-comment","attributes","author","addUser","comments.maxThreadTotalWeight","getByInnerView","isEditable","commentsrepository-update-comment-missing-comment-thread","deactivateAll","remove","commentsrepository-invalid-commentid","values","createCommentThreadController","_adapter","commentsrepository-update-comment-internal-error","comments","_repository","CommentView","fromCharCode","parse","init","then","update","commentsrepository-duplicated-comment-thread-id","_removeCommentThread","listenTo","string","context","plugins","authorName","licenseKey","function","getComment","commentsrepository-get-comment-invalid-id","assign","_isAttached","commentThreadInputView","reduce"];var jr,Vr;jr=Or,Vr=401,function(t){for(;--t;)jr.push(jr.shift())}(++Vr);const Mr=function(t,e){return Or[t-=0]},Sr=Symbol(Mr("0x79"));class Rr extends t.ContextPlugin{static get[Mr("0x69")](){return[Ir,t.PendingActions,i.Users]}static get[Mr("0x8c")](){return"CommentsRepository"}constructor(t){super(t),this[Mr("0x83")]=new Map,this[Mr("0x17")]=new Map,this._viewToController=new Map,this[Mr("0xa")]=new Set,this[Mr("0x46")](Mr("0x60"),new Set),this.licenseKey=this[Mr("0x35")].config[Mr("0xd")](Mr("0x38"));const e=this[Mr("0x35")][Mr("0x61")];e[Mr("0x93")](Mr("0x97"),2),e.define(Mr("0x1e"),500),e[Mr("0x93")]("comments.maxCommentCharsWhenCollapsed",140),e[Mr("0x93")]("comments.CommentThreadView",pi),e[Mr("0x93")](Mr("0x12"),Vi),e.get(Mr("0x8e"))||console[Mr("0x67")](Mr("0x58"))}[Mr("0x2e")](){const t=this.context[Mr("0x36")][Mr("0xd")](Ir);this[Mr("0x46")]("activeCommentThread",null),this.on(Mr("0x57"),((t,e)=>this._addCommentThread(e))),this.on("removeCommentThread",((t,e)=>this[Mr("0x32")](e))),this.on("addComment",((t,e)=>this[Mr("0x95")](e))),this.on("updateComment",((t,e)=>this._updateComment(e))),this.on(Mr("0x6b"),((t,e)=>this[Mr("0x8")](e))),this.on("addComment",((t,{threadId:e,isFromAdapter:n})=>{if(n)return;const o=this[Mr("0x54")](e),i=this._threadToController[Mr("0xd")](o);i&&i[Mr("0x50")][Mr("0x87")]()}),{priority:"lowest"}),this[Mr("0x33")](t,Mr("0x4e"),((t,e,n)=>{const o=Array[Mr("0x84")](n)[Mr("0x4b")]((t=>this[Mr("0x75")][Mr("0xd")](t[Mr("0x59")])))[Mr("0x68")](Boolean)[0];this.activeCommentThread=o?o[Mr("0x70")]:null}))}[Mr("0x7c")](){!function(e){const n=e instanceof t.Context,o=[1,85,78,115,198,255,50,112,83,87,161],i=l([52,48,52,54,48,50,53,48]),r=[127,34,6,211,167,86,146,199,132,160,18],s=l([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),a=function(t){if(e[l([112,108,117,103,105,110,115])][l([104,97,115])](l([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&e[l([112,108,117,103,105,110,115])][l([103,101,116])](l([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[l([115,116,97,116,101])]==l([99,111,110,110,101,99,116,101,100]))return c(l([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));if(e[l([112,108,117,103,105,110,115])][l([104,97,115])](l([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))&&e[l([112,108,117,103,105,110,115])][l([103,101,116])](l([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[l([114,101,115,117,108,116])]==l([101,110,100]))return c(l([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));try{const n=function(t){const e=[29,221,175,90,231,133,239,240,75,180];return function(t,e){const n=atob(t),o=Array[Mr("0x84")](function(t){const e=new Uint8Array(t[Mr("0x65")]);for(let n=0;n<t[Mr("0x65")];n++)e[n]=t[Mr("0x3")](n);return e}(n)),i=o[Mr("0x6")](),r=o[Mr("0x6")]();return function(t){let e="";for(const n of t)e+=String.fromCharCode(n);return e}(function(t,e,n){const o={};o[l([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[l([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[l([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[l([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[l([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[l([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[l([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[l([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[l([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[l([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[l([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const i=new Uint8Array(16);for(let t=15;t>=0;--t)i[t]=n%256,n=parseInt(n/256);let r=null,s=16;const a=new Uint8Array(e),c=[],x=[];m();for(let e=0;e<t[Mr("0x65")];e++)16===s&&(r=u(i),s=0,d(i)),t[e]^=r[s++];return t;function h(t){const e=[];for(let n=0;n<t.length;n+=4)e[Mr("0x96")](t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);return e}function d(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function u(t){const e=c[Mr("0x65")]-1,n=[0,0,0,0];let i=h(t);for(let t=0;t<4;t++)i[t]^=c[0][t];for(let t=1;t<e;t++){for(let e=0;e<4;e++)n[e]=o[l([84,49])][i[e]>>24&255]^o[l([84,50])][i[(e+1)%4]>>16&255]^o[l([84,51])][i[(e+2)%4]>>8&255]^o[l([84,52])][255&i[(e+3)%4]]^c[t][e];i=n[Mr("0x13")]()}const r=new Uint8Array(16);let s;for(let t=0;t<4;t++)s=c[e][t],r[4*t]=255&(o[l([83])][i[t]>>24&255]^s>>24),r[4*t+1]=255&(o[l([83])][i[(t+1)%4]>>16&255]^s>>16),r[4*t+2]=255&(o[l([83])][i[(t+2)%4]>>8&255]^s>>8),r[4*t+3]=255&(o[l([83])][255&i[(t+3)%4]]^s);return r}function m(){const t=o[l([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][a.length];for(let e=0;e<=t;e++)c[Mr("0x96")]([0,0,0,0]),x[Mr("0x96")]([0,0,0,0]);const e=4*(t+1),n=a.length/4,i=h(a);let r;for(let e=0;e<n;e++)r=e>>2,c[r][e%4]=i[e],x[t-r][e%4]=i[e];let s,d=0,u=n;for(;u<e;){s=i[n-1],i[0]^=o[l([83])][s>>16&255]<<24^o[l([83])][s>>8&255]<<16^o[l([83])][255&s]<<8^o[l([83])][s>>24&255]^o[l([114,99,111,110])][d]<<24,d+=1;for(let t=1;t<n/2;t++)i[t]^=i[t-1];s=i[n/2-1],i[n/2]^=o[l([83])][255&s]^o[l([83])][s>>8&255]<<8^o[l([83])][s>>16&255]<<16^o[l([83])][s>>24&255]<<24;for(let t=n/2+1;t<n;t++)i[t]^=i[t-1];let r,a,h=0;for(;h<n&&u<e;)r=u>>2,a=u%4,c[r][a]=i[h],x[t-r][a]=i[h++],u++}for(let e=1;e<t;e++)for(let t=0;t<4;t++)s=x[e][t],x[e][t]=o[l([85,49])][s>>24&255]^o[l([85,50])][s>>16&255]^o[l([85,51])][s>>8&255]^o[l([85,52])][255&s]}}(o,e,r+256*i))}(t,new(window[l([85,105,110,116,56,65,114,114,97,121])])([...o,...e,...r]))}(t),s=JSON[Mr("0x2d")](n),a=parseInt(s[l([49])]),x=parseInt(s[l([51])]),h=parseInt(s[l([52])])||0,d=parseInt(s[l([53])])||0,u=2;if(!(1&h)||e[l([112,108,117,103,105,110,115])][l([104,97,115])](l([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&!(h&u))return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]));if(d&&!window[l([111,112,101,110])][l([99,108,111,115,101,100])])return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]));if(parseInt(i)/2>a)return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]));if(e[l([112,108,117,103,105,110,115])][l([104,97,115])](l([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))){const t=e[l([112,108,117,103,105,110,115])][l([103,101,116])](l([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]));if(parseInt(t[l([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])])/2>a)return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))}return c(l(x?[108,105,99,101,110,115,101,75,101,121,84,114,105,97,108]:[108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]))}catch(t){return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))}}(e[Mr("0x61")][Mr("0xd")](l([108,105,99,101,110,115,101,75,101,121])));function c(t){const n=function(){const t=String(window[l([112,101,114,102,111,114,109,97,110,99,101])][l([110,111,119])]()).replace(l([46]),"");let e="";for(let n=0;n<t.length;n+=2){let o=parseInt(t[Mr("0x5e")](n,n+2));o>=s.length&&(o-=s[Mr("0x65")]),e+=s[o]}return e}();return e[n]=t,t}function x(t){for(const e of t[l([101,100,105,116,111,114,115])])h(e);t[l([112,108,117,103,105,110,115])][l([103,101,116])](l([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[l([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),t[l([112,108,117,103,105,110,115])][l([103,101,116])](l([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[l([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=d}function h(t){function e(){t[l([109,111,100,101,108])][l([99,104,97,110,103,101])]=d,t[l([109,111,100,101,108])][l([101,110,113,117,101,117,101,67,104,97,110,103,101])]=d,t[l([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](l([109,111,100,101,108]))}t[l([115,116,97,116,101])]==l([114,101,97,100,121])?e():t[l([111,110,99,101])](l([114,101,97,100,121]),(()=>e()))}function d(){return null}function l(t){return t[Mr("0x4b")]((t=>String[Mr("0x2c")](t)))[Mr("0x73")]("")}n?(a==l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100])?x(e):a==l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108])&&window[l([115,101,116,84,105,109,101,111,117,116])]((()=>{x(e),c(l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),r[6]*o[8]*o[6]),e[l([101,100,105,116,111,114,115])][l([111,110])](l([97,100,100]),((t,e)=>{a!=l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100])&&a!=l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&a!=l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||h(e)}))):a==l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100])?h(e):a==l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108])&&e[l([111,110])](l([114,101,97,100,121]),(()=>{let t=0;e[l([109,111,100,101,108])][l([111,110])](l([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((n,o)=>{o[0][l([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(h(e),c(l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),n[l([111,102,102])]())}),{priority:l([104,105,103,104,101,115,116])})}))}(this[Mr("0x35")])}set[Mr("0x18")](t){if(this[Mr("0x27")])throw new e.CKEditorError("commentsrepository-adapter-already-set");this._adapter=t}get[Mr("0x18")](){return this._adapter}addCommentThread({channelId:t=Sr,threadId:n=(0,e.uid)(),comments:o=[],target:i,isFromAdapter:r}={}){return this[Mr("0x52")](Pr(Mr("0x57"),t),{channelId:t,threadId:n,comments:o,target:i,isFromAdapter:r}),this[Mr("0x54")](n)}[Mr("0x51")]({channelId:t=Sr,threadId:n=(0,e.uid)(),target:o}){if(this[Mr("0xa")][Mr("0x41")](t)||this[Mr("0xa")][Mr("0x41")](void 0))return;if(!o)throw new e.CKEditorError(Mr("0x40"));const i=this[Mr("0x57")]({channelId:t,threadId:n,target:o});if(!i)return null;const r=this[Mr("0x17")][Mr("0xd")](i),s=r[Mr("0x50")][Mr("0x3e")][Mr("0x78")],a=this[Mr("0x35")][Mr("0x36")][Mr("0xd")](Ir),c=a[Mr("0x1f")](r.view);return a.activate(c),s[Mr("0x42")]("editorReady",(()=>s[Mr("0x87")]())),i}[Mr("0x5a")](t){if(Mr("0x34")!=typeof t)throw new e.CKEditorError(Mr("0x4d"));return this._threads.has(t)}[Mr("0x54")](t){if(Mr("0x34")!=typeof t)throw new e.CKEditorError("commentsrepository-invalid-comment-thread-id");return this[Mr("0x83")][Mr("0xd")](t)}[Mr("0x72")]({channelId:t,threadId:n}={}){const o=this.getCommentThread(n);if(o)return Promise[Mr("0x64")](o);if(!this.adapter)throw new e.CKEditorError(Mr("0xb"),this[Mr("0x35")]);if(Mr("0x39")!=typeof this[Mr("0x18")][Mr("0x54")])throw new e.CKEditorError("commentsrepository-missing-thread-and-adapter-method",this[Mr("0x35")]);return this.adapter[Mr("0x54")]({channelId:t,threadId:n})[Mr("0x2f")]((e=>this[Mr("0x5a")](n)?this.getCommentThread(n):e?this[Mr("0x57")](Object[Mr("0x3c")]({isFromAdapter:!0,channelId:t},e)):void 0))[Mr("0xf")]((t=>{throw console[Mr("0x92")](t),new e.CKEditorError(Mr("0x7a"),this[Mr("0x35")])}))}getCommentThreads({channelId:t,skipNotAttached:e=!1,skipEmpty:n=!1,toJSON:o=!1}={}){const i=[];for(const o of this[Mr("0x83")][Mr("0x25")]())t&&o[Mr("0x7")]!==t||e&&!o[Mr("0x4c")]||n&&0===o.length||i[Mr("0x96")](o);return o?i[Mr("0x4b")]((t=>t.toJSON())):i}setActiveCommentThread(t){const n=this[Mr("0x35")][Mr("0x36")][Mr("0xd")](Ir);if(!t)return void(this[Mr("0x7d")]&&n[Mr("0x22")]());const o=this[Mr("0x54")](t);if(!o)throw new e.CKEditorError("commentsrepository-active-missing-comment-thread",null,{threadId:t});if(!this[Mr("0x17")].has(o))throw new e.CKEditorError("commentsrepository-active-not-attached",null,{threadId:t});const i=n[Mr("0x1f")](this[Mr("0x17")].get(o)[Mr("0x50")]);n.activate(i)}[Mr("0x6c")](t,e){t?this[Mr("0xa")][Mr("0x5")](e):this[Mr("0xa")][Mr("0x4a")](e);for(const n of this[Mr("0xc")]({channelId:e}))n[Mr("0x1")]=!!t}isReadOnly(t){return this[Mr("0xa")][Mr("0x41")](t)||this[Mr("0xa")][Mr("0x41")](void 0)}[Mr("0x26")](t,e){return new po(t,e)}setAdminPermissions(t,e=Sr){const n=!this[Mr("0x60")][Mr("0x41")](e),o=new Set(this[Mr("0x60")]);n&&!t&&(o[Mr("0x5")](e),this[Mr("0x60")]=o),!n&&t&&(o.delete(e),this._nonAdminChannels=o)}[Mr("0x16")]({channelId:t,threadId:n,comments:o,target:i,isFromAdapter:r}){if(Mr("0x34")!=typeof n)throw new e.CKEditorError(Mr("0x4d"),null,{threadId:n});if(this[Mr("0x5a")](n))throw new e.CKEditorError(Mr("0x31"),null,{threadId:n});const s=new Dr(this,{channelId:t,id:n});(this._readOnlyChannels[Mr("0x41")](t)||this[Mr("0xa")].has(void 0))&&(s[Mr("0x1")]=!0),this[Mr("0x83")][Mr("0x46")](n,s);for(const t of o)s[Mr("0x7e")](Object[Mr("0x3c")]({isFromAdapter:r},t));i&&s[Mr("0x6e")](i)}[Mr("0x4f")]({threadId:t,target:n}){const o=this[Mr("0x54")](t);if(!o)throw new e.CKEditorError("commentsrepository-attach-missing-comment-thread",this);const i=this[Mr("0x35")].plugins.get("PendingActions"),r=this[Mr("0x35")].plugins[Mr("0xd")](Ir),s=this._createCommentThreadView(o),a=new po(o,s);let c=null;s.on(Mr("0x85"),((t,e,n)=>{n?c=i.add(bo(this[Mr("0x35")].locale,Mr("0x19"))):(i.remove(c),c=null)})),this[Mr("0x17")][Mr("0x46")](o,a),this._viewToController[Mr("0x46")](s,a);const x=new dr(this.context[Mr("0x5f")],s);x[Mr("0x7f")](Mr("0x65")).to(s),x[Mr("0x7f")]("isDirty").to(s,Mr("0x76"),s,Mr("0x65"),((t,e)=>t||!e)),x.bind(Mr("0x6d")).to(s),x[Mr("0x45")]=Mr("0x94");const h=new pr({view:x,target:n,type:"comment"});return r[Mr("0x5")](h),h}[Mr("0x48")](t){const e=this[Mr("0x35")].plugins[Mr("0xd")](Mr("0x47")),{config:n,locale:o}=this.context,r=(0,i.getDateTimeFormatter)(n[Mr("0xd")](Mr("0x5f")));return new(0,n[Mr("0xd")](Mr("0x29"))[Mr("0x11")])(o,t,e.me,{editorConfig:n[Mr("0xd")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Mr("0xd")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Mr("0xd")](Mr("0x1e")),maxCommentCharsWhenCollapsed:n[Mr("0xd")](Mr("0x88")),formatDateTime:r,CommentView:n.get(Mr("0x29"))[Mr("0x2b")]})}[Mr("0x32")]({threadId:t,isFromAdapter:n}){const o=this[Mr("0x54")](t);if(!o)throw new e.CKEditorError(Mr("0x90"),this);if(this[Mr("0x15")](t),this[Mr("0x83")].delete(t),!o[Mr("0x65")]||n||!this[Mr("0x18")]||Mr("0x39")!=typeof this.adapter[Mr("0x56")])return Promise[Mr("0x64")]();const i=this[Mr("0x35")][Mr("0x36")].get(Mr("0x0")),{channelId:r}=o,s=i.add(bo(this.context.locale,Mr("0x19")));return this[Mr("0x18")][Mr("0x56")]({channelId:r,threadId:t})[Mr("0x2f")]((()=>i[Mr("0x23")](s)))[Mr("0xf")]((t=>{throw console[Mr("0x92")](t),new e.CKEditorError(Mr("0x10"),this)}))}[Mr("0x15")](t){const e=this[Mr("0x35")].plugins[Mr("0xd")](Ir),n=this.getCommentThread(t);if(this[Mr("0x17")].has(n)){const t=this[Mr("0x17")][Mr("0xd")](n),o=t.view,i=e[Mr("0x1f")](o);this[Mr("0x17")][Mr("0x4a")](n),this[Mr("0x75")][Mr("0x4a")](o),i&&e[Mr("0x23")](i),t.destroy(),o.destroy()}}[Mr("0x80")](t){const e=this[Mr("0x35")][Mr("0x36")][Mr("0xd")](i.Users),n=(0,i.hashObject)(Mr("0x4")+t);return e[Mr("0x7b")](n)||e[Mr("0x1d")]({id:n,name:t})}[Mr("0x95")]({threadId:t,commentId:n=(0,e.uid)(),content:o,authorId:r,createdAt:s,attributes:a,isFromAdapter:c}){if("string"!=typeof n)throw new e.CKEditorError(Mr("0x24"));if(Mr("0x34")!=typeof r)throw new e.CKEditorError(Mr("0x5b"));if("string"!=typeof o||!o[Mr("0x6f")]())throw new e.CKEditorError("commentsrepository-invalid-comment-content");const x=this[Mr("0x54")](t);if(!x)throw new e.CKEditorError(Mr("0x14"),this);const h=this[Mr("0x35")][Mr("0x36")][Mr("0xd")](i.Users).getUser(r);if(!h)throw new e.CKEditorError(Mr("0x9a"),null,{authorId:r});let d=null,l=s;a&&a[Mr("0x55")]&&(d=this._getExternalAuthor(a[Mr("0x55")][Mr("0x37")]),l=a[Mr("0x55")][Mr("0x49")]);const u=new Nr(this,{threadId:t,id:n,author:d||h,creator:h,content:o,createdAt:s,authoredAt:l,attributes:a});if(x._add(u),c||!this[Mr("0x18")]||Mr("0x39")!=typeof this.adapter[Mr("0x7e")])return Promise.resolve();const m=this[Mr("0x35")][Mr("0x36")].get(Mr("0x0")),{channelId:f}=x,p=m[Mr("0x5")](bo(this[Mr("0x35")].locale,Mr("0x19")));return a||(a={}),this.adapter[Mr("0x7e")]({channelId:f,threadId:t,commentId:n,content:o,attributes:a})[Mr("0x2f")]((e=>{if(m[Mr("0x23")](p),this[Mr("0x5a")](t))e&&e.createdAt&&this[Mr("0x62")]({threadId:t,commentId:n,createdAt:e.createdAt,isFromAdapter:!0});else{const i={threadId:t,commentId:n,content:o,attributes:a,createdAt:e&&e[Mr("0x49")]?e.createdAt:s,authorId:h.id};this[Mr("0x57")]({channelId:f,threadId:t,comments:[i],isFromAdapter:!0})}}))[Mr("0xf")]((t=>{throw console[Mr("0x92")](t),new e.CKEditorError(Mr("0x8b"),this)}))}[Mr("0x62")]({threadId:t,commentId:n,content:o,createdAt:i,attributes:r,isFromAdapter:s}){if(void 0!==o&&(Mr("0x34")!=typeof o||!o[Mr("0x6f")]().length))throw new e.CKEditorError(Mr("0x8a"));const a=this.getCommentThread(t),c=a[Mr("0x3a")](n);if(!c)throw new e.CKEditorError(Mr("0x44"),this);let x=!1;if(o&&o!==c[Mr("0x74")]&&(c[Mr("0x20")]||s)&&(c[Mr("0x74")]=o,x=!0),i&&i!==c[Mr("0x49")]&&(c.createdAt=i,c[Mr("0x1b")]&&c.attributes[Mr("0x55")]||(c[Mr("0x82")]=i),x=!0),r&&!We(r,c[Mr("0x1b")])&&(c[Mr("0x1b")]=r,x=!0),!x)return Promise[Mr("0x64")]();if(a.fire("commentUpdated"),s||!this[Mr("0x18")]||Mr("0x39")!=typeof this[Mr("0x18")][Mr("0x66")])return Promise.resolve();const h=this[Mr("0x35")][Mr("0x36")].get(Mr("0x0")),{channelId:d}=this[Mr("0x54")](c[Mr("0x6a")]),l=h[Mr("0x5")](bo(this.context[Mr("0x5f")],Mr("0x19")));return this.adapter[Mr("0x66")]({channelId:d,threadId:t,commentId:n,content:o,attributes:r})[Mr("0x2f")]((()=>h[Mr("0x23")](l))).catch((t=>{throw console[Mr("0x92")](t),new e.CKEditorError(Mr("0x28"),this)}))}[Mr("0x8")]({threadId:t,commentId:n,isFromAdapter:o}){const i=this[Mr("0x54")](t),r=i[Mr("0x3a")](n);if(!r)throw new e.CKEditorError(Mr("0x1a"),this);if(i[Mr("0x89")](r),o||!this[Mr("0x18")]||Mr("0x39")!=typeof this[Mr("0x18")].removeComment)return Promise[Mr("0x64")]();const s=this[Mr("0x35")][Mr("0x36")][Mr("0xd")](Mr("0x0")),{channelId:a}=i,c=s.add(bo(this[Mr("0x35")].locale,Mr("0x19")));return this[Mr("0x18")].removeComment({channelId:a,threadId:t,commentId:n})[Mr("0x2f")]((()=>s[Mr("0x23")](c)))[Mr("0xf")]((t=>{throw console.error(t),new e.CKEditorError(Mr("0x5d"),this)}))}}class Dr{constructor(t,n){this[Mr("0x7")]=n[Mr("0x7")],this.id=n.id,this[Mr("0x46")](Mr("0x1"),!1),this.bind(Mr("0x9")).to(t,Mr("0x60"),(t=>!t.has(this[Mr("0x7")]))),this[Mr("0x29")]=new e.Collection,this[Mr("0x2a")]=t,this[Mr("0x3d")]=!1}get[Mr("0xe")](){return Array[Mr("0x84")](this[Mr("0x29")])[Mr("0x3f")](((t,e)=>t+e[Mr("0xe")]),0)}get length(){return this[Mr("0x29")][Mr("0x65")]}get[Mr("0x4c")](){return this[Mr("0x3d")]}[Mr("0x23")]({isFromAdapter:t=!1}={}){const{channelId:e,id:n}=this;this._repository.fire(Pr(Mr("0x56"),e),{channelId:e,threadId:n,isFromAdapter:t})}[Mr("0x6e")](t){return this[Mr("0x2a")][Mr("0x4f")]({threadId:this.id,target:t})}[Mr("0x7e")](t){const{channelId:e,id:n}=this;this[Mr("0x2a")].fire(Pr(Mr("0x7e"),e,n),Object[Mr("0x3c")]({channelId:e,threadId:n},t))}[Mr("0x3a")](t){if(Mr("0x34")!=typeof t)throw new e.CKEditorError(Mr("0x3b"),null,{commentId:t});return this[Mr("0x29")][Mr("0xd")](t)}toJSON(){return{threadId:this.id,comments:this[Mr("0x29")][Mr("0x4b")]((t=>t[Mr("0x8f")]()))}}[Mr("0x5c")](t){return this[Mr("0x33")](t,"change:authoredAt",(()=>{const e=this[Mr("0x81")](t),n=this[Mr("0x29")];e-1!=n[Mr("0x91")](t)&&e+1!=n[Mr("0x91")](t)&&(this._remove(t),this._add(t))})),t[Mr("0x49")]?this.comments[Mr("0x5")](t,this[Mr("0x81")](t)):this[Mr("0x29")][Mr("0x5")](t)}[Mr("0x89")](t){return this[Mr("0x8d")](t),t[Mr("0x53")](),this.comments[Mr("0x23")](t)}[Mr("0x81")](t){const e=this[Mr("0x29")].find((e=>new Date(e[Mr("0x82")])[Mr("0x71")]()>new Date(t[Mr("0x82")])[Mr("0x71")]()));return e?this[Mr("0x29")][Mr("0x91")](e):this[Mr("0x65")]}}(0,e.mix)(Dr,e.ObservableMixin);class Nr{constructor(t,e){const n=t.context[Mr("0x36")].get(Mr("0x47")).me,o=t.getCommentThread(e.threadId),i=0===o[Mr("0x29")][Mr("0x65")],r=n===e[Mr("0x1c")];this.id=e.id,this[Mr("0x6a")]=e.threadId,this[Mr("0x1c")]=e[Mr("0x1c")],this.creator=e[Mr("0x63")],this[Mr("0x99")]=Boolean(e[Mr("0x1b")]&&e.attributes[Mr("0x55")]),this[Mr("0x46")](Mr("0x74"),e[Mr("0x74")]),this.createdAt=e[Mr("0x49")]||new Date,this.set(Mr("0x82"),e[Mr("0x82")]||new Date),this[Mr("0x46")](Mr("0x1b"),e[Mr("0x1b")]||{}),this[Mr("0x46")]("isEditable",r),this[Mr("0x7f")](Mr("0x9")).to(o,Mr("0x9"),(t=>t&&i||r)),this[Mr("0x7f")](Mr("0x1")).to(o,Mr("0x1")),this[Mr("0x2a")]=t}get weight(){return Math[Mr("0x43")](function(t){const e=document.createElement(Mr("0x98"));return e[Mr("0x86")]=t,e[Mr("0x77")].length}(this[Mr("0x74")]),200)}[Mr("0x30")](t){const{threadId:n,id:o}=this;if(!this._repository[Mr("0x5a")](n))throw new e.CKEditorError(Mr("0x21"),this);const{channelId:i}=this[Mr("0x2a")][Mr("0x54")](n);this[Mr("0x2a")][Mr("0x52")](Pr(Mr("0x66"),i,n),Object[Mr("0x3c")]({channelId:i,threadId:n,commentId:o},t))}setAttribute(t,e){const n=zn(this[Mr("0x1b")]);io(n,t,e),this[Mr("0x30")]({attributes:n})}[Mr("0x2")](t){const e=zn(this[Mr("0x1b")]);ho(e,t),this[Mr("0x30")]({attributes:e})}[Mr("0x23")](t={}){if(!t.isFromAdapter&&!this[Mr("0x9")])return;const{threadId:n,id:o}=this;if(!this[Mr("0x2a")].hasCommentThread(n))throw new e.CKEditorError("commentsrepository-remove-comment-missing-comment-thread",this);const{channelId:i}=this[Mr("0x2a")][Mr("0x54")](n);this[Mr("0x2a")][Mr("0x52")](Pr(Mr("0x6b"),i,n),Object.assign({channelId:i,threadId:n,commentId:o},t))}[Mr("0x8f")](){return{commentId:this.id,content:this[Mr("0x74")],createdAt:this[Mr("0x49")],authorId:this.creator.id,attributes:this[Mr("0x1b")]}}[Mr("0x53")](){this[Mr("0x8d")]()}}function Pr(t,...e){for(const n of e)void 0!==n&&(t+=":"+String(n));return t}(0,e.mix)(Nr,e.ObservableMixin);const Br=["getItems","push","backward","selection","tableCell","_hasContent","isEnabled","getLastMatchingPosition","document","createRange","getRanges","addMarker","isObject","_trimToContent","model","change","execute","element","substr","editor","item","_itemIsContent","comment:"];var Lr,zr;Lr=Br,zr=147,function(t){for(;--t;)Lr.push(Lr.shift())}(++zr);const Fr=function(t,e){return Br[t-=0]};class Kr extends t.Command{refresh(){const t=this[Fr("0xa")][Fr("0x5")][Fr("0x16")][Fr("0x11")];for(const e of t.getRanges())if(this[Fr("0x13")](e))return void(this[Fr("0x14")]=!0);this[Fr("0x14")]=!1}[Fr("0x7")]({threadId:t=(0,e.uid)()}={}){const n=this[Fr("0xa")][Fr("0x5")],o=[];for(const t of n[Fr("0x16")][Fr("0x11")][Fr("0x1")]())this._hasContent(t)&&o[Fr("0xf")](this[Fr("0x4")](t));n[Fr("0x6")]((n=>{for(const i of o){const o=(0,e.uid)()[Fr("0x9")](1,5),r=Fr("0xd")+t+":"+o;n[Fr("0x2")](r,{range:i,usingOperation:!1,affectData:!1})}}))}_hasContent(t){for(const e of t[Fr("0xe")]())if(this._itemIsContent(e))return!0;return!1}[Fr("0xc")](t){return t.is("textProxy")||this.editor[Fr("0x5")].schema[Fr("0x3")](t)&&!t.is(Fr("0x8"),Fr("0x12"))}[Fr("0x4")](t){const e=t=>!this._itemIsContent(t[Fr("0xb")]),n=t.start[Fr("0x15")](e),o=t.end[Fr("0x15")](e,{direction:Fr("0x10")});return this[Fr("0xa")].model[Fr("0x0")](n,o)}}const Ur=["update","refreshSelectedViews","registerAnnotation","listenTo","_editorAnnotations","refresh","view","editing","selection","add","_dataCollectors","getByInnerView","element","getRanges","editorannotations-invalid-source-callback","innerView","requires","has","getOrderedSelectedAnnotations","function","remove","push","_editorAnnotationsData","fire","isCollapsed","set","editor","range","model","document","get","blur","hasDomSelection","annotation","focusTracker","EditorAnnotations","isReadOnly","collection","delete","from","change:isFocused","pluginName"];var Wr,Hr;Wr=Ur,Hr=489,function(t){for(;--t;)Wr.push(Wr.shift())}(++Hr);const Zr=function(t,e){return Ur[t-=0]};class qr extends t.Plugin{static get[Zr("0x1f")](){return[Ir]}static get[Zr("0xe")](){return Zr("0x8")}constructor(t){super(t),this[Zr("0x19")]=new Set,this[Zr("0x13")]=new Set}init(){const t=this[Zr("0x29")],e=t[Zr("0x1")][Zr("0x2")][Zr("0x17")],n=Yi((()=>this.refreshSelectedViews()),10);e.on("change:range",((t,e)=>{e.directChange&&(n.cancel(),this[Zr("0x10")]())})),this[Zr("0x12")](t[Zr("0x16")][Zr("0x15")][Zr("0x2")],Zr("0xd"),((t,e,o)=>{o&&n()})),this[Zr("0x12")](t.ui[Zr("0x7")],Zr("0xd"),((e,n,o)=>{o||t[Zr("0x9")]||this[Zr("0x26")](Zr("0x4"),{isAnnotationTracked:t=>this[Zr("0x25")][Zr("0x20")](t[Zr("0x1e")])})})),this[Zr("0x12")](this[Zr("0x29")].ui,Zr("0xf"),(()=>this[Zr("0x26")]("uiUpdate")))}[Zr("0x11")](t){if(this[Zr("0x13")][Zr("0x20")](t))return;this[Zr("0x13")].add(t.view),this[Zr("0x29")].ui.focusTracker.add(t[Zr("0x15")][Zr("0x1b")]);const e=this[Zr("0x29")].plugins[Zr("0x3")](Ir);this.listenTo(e[Zr("0xa")],Zr("0x23"),((t,e)=>{this.editor.ui.focusTracker[Zr("0x23")](e[Zr("0x15")][Zr("0x1b")]),this[Zr("0x13")][Zr("0xb")](e[Zr("0x15")])}))}[Zr("0x5")](){return this[Zr("0x29")][Zr("0x16")][Zr("0x15")][Zr("0x5")]}addSourceCollector(t){if(Zr("0x22")!=typeof t)throw new e.CKEditorError(Zr("0x1d"));this[Zr("0x19")][Zr("0x18")](t)}refreshSelectedViews(){this[Zr("0x26")](Zr("0x14"))}[Zr("0x21")]({activeAnnotation:t,annotations:e}){const n=[],o=this.editor[Zr("0x1")].document.selection,i=Array[Zr("0xc")](o[Zr("0x1c")]());for(const[t,o]of this[Zr("0x25")]){const i=r(o),s=e[Zr("0x1a")](t);i&&s&&n[Zr("0x24")]({annotation:s,range:i})}function r(t){for(const e of t)for(const t of i)if(e.containsRange(t,!o[Zr("0x27")]))return e;return null}return n.sort(((e,n)=>{const o=e[Zr("0x0")],i=n[Zr("0x0")];if(!o.isEqual(i)){if(o.containsRange(i,!0))return 1;if(i.containsRange(o,!0))return-1}return e.annotation==t?-1:n.annotation==t?1:0})).map((t=>t[Zr("0x6")]))}get[Zr("0x25")](){const t=new Map;for(const e of Array[Zr("0xc")](this._dataCollectors))for(const[n,o]of e())t[Zr("0x28")](n,o);return t}}const Xr=["plugins","afterInit","RestrictedEditingModeEditing","get","editor"];var $r,Gr;$r=Xr,Gr=280,function(t){for(;--t;)$r.push($r.shift())}(++Gr);const Jr=function(t,e){return Xr[t-=0]};class Yr extends t.Plugin{[Jr("0x1")](){const t=this[Jr("0x4")];t[Jr("0x0")].has("RestrictedEditingModeEditing")&&t[Jr("0x0")][Jr("0x3")](Jr("0x2")).enableCommand("addCommentThread")}}var Qr=n(446),ts={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Si()(Qr.Z,ts);Qr.Z.locals;const es=["forEach","map","commands","editor","addCommentThread","importWord.commentsStyles","execute","plugins","collaboration.channelId","get","afterInit","basic","Users","high","define","config","listenTo","importWord","dataInsert"];var ns,os;ns=es,os=295,function(t){for(;--t;)ns.push(ns.shift())}(++os);const is=function(t,e){return es[t-=0]};class rs extends t.Plugin{constructor(t){super(t),this[is("0xc")].config[is("0x4")]("importWord.commentsStyles",is("0x1"))}[is("0x0")](){const t=this[is("0xc")],n=t[is("0xb")][is("0x12")]("importWord"),o=t.plugins.get(is("0x2"));n&&(n.on(is("0xf"),((t,[,e])=>{e.collaboration_features={comments:!0,user_id:o.me.id,comments_styles:this[is("0xc")].config[is("0x12")](is("0xe"))}}),{priority:e.priorities[is("0x3")]+10}),this[is("0x6")](n,is("0x8"),this._handleImportedData))}_handleImportedData(t,e){const{comment_threads:n}=e;n&&n[is("0x9")]((({thread_id:t,comments:e})=>{const n=e[is("0xa")]((({author:t,content:e,created_at:n})=>({content:e,authorId:this[is("0xc")][is("0x10")][is("0x12")]("Users").me.id,createdAt:new Date,attributes:{"@external":{authorName:t,createdAt:n?new Date(n):new Date,source:is("0x7")}}}))),o=this[is("0xc")][is("0x5")][is("0x12")](is("0x11"));this[is("0xc")][is("0x10")][is("0x12")](Rr)[is("0xd")]({channelId:o,threadId:t,comments:n})}))}}const ss=["change","once","markerToData","switchReadOnly","_attachedThreads","then","editor","activeMarker","get","CommentsEditing","reconvertMarker","dataDowncast","CommentsRepository","fetchCommentThread","registerAnnotation","has","addComment","_handleMarkerAddAndRemove","view","updateMarker","comment","split","config","_detachCommentThread","stop","affectsData","differ","editing","addCommentThread","getAllMarkersForId","isCollapsed","elementToElement","getCommentThread","change:activeMarker","editingDowncast","$marker","data","openNewCommentThread","change:isThreadsLoadingPaused","conversion","plugins","length","$graveyard","destroy","comment:","hasCommentThread","push","set","pluginName","start","upcast","document","destroyed","_attachMarkerToThread","_initializeMarkerConverters","update:comment","hasContent","getWalker","size","rootName","name","requires","delete","text","getByInnerView","listenTo","markerName","schema","for","init","hasMarkerForId","createRange","isEqual","state","_threadToController","model","collaboration.channelId","getCommentThreads","isThreadsLoadingPaused","add","commands","render","includes","managedUsingOperations","removeMarker","filter","getAttribute","Annotations","change:isReadOnly","markers","ready","createPositionBefore","high","newRange"];var as,cs;as=ss,cs=195,function(t){for(;--t;)as.push(as.shift())}(++cs);const xs=function(t,e){return ss[t-=0]};class hs extends t.Plugin{static get[xs("0x36")](){return[Rr,qr,Yr,rs]}static get[xs("0x29")](){return xs("0x2")}constructor(t){super(t),this.set("isThreadsLoadingPaused",!0),t[xs("0x1d")][xs("0x58")](xs("0x53"),(()=>this[xs("0x47")]=!1)),this[xs("0x28")](xs("0x0"),null),this.on(xs("0x1a"),((e,n,o,i)=>{t[xs("0x44")][xs("0x57")]((()=>{if(o){const{id:e}=ls(o),n=this[xs("0x16")](e);for(const e of n)t.editing.reconvertMarker(e)}if(i){const{id:e}=ls(i),n=this.getAllMarkersForId(e);for(const e of n)t[xs("0x14")][xs("0x3")](e)}}))})),this[xs("0x5b")]=new Map}[xs("0x3e")](){const t=this[xs("0x5d")],e=t[xs("0x21")][xs("0x1")](xs("0x5")),n=t.config.get(xs("0x45"));t[xs("0x49")][xs("0x48")](xs("0x15"),new Kr(t)),this[xs("0x3a")](t,xs("0x51"),((n,o,i)=>{e[xs("0x5a")](i,t[xs("0xf")][xs("0x1")]("collaboration.channelId"))})),this.listenTo(e,ds("removeCommentThread",n),((n,{threadId:o})=>{t[xs("0x44")].change((t=>{for(const e of this[xs("0x16")](o))t[xs("0x4d")](e)}));const i=e[xs("0x19")](o);e[xs("0x26")](o)&&!i.length||n[xs("0x11")]()}),{priority:xs("0x55")}),this.listenTo(e,ds(xs("0x9"),n),((n,{threadId:o,isFromAdapter:i})=>{const r=this[xs("0x16")](o);!i&&0!=r.length&&e[xs("0x26")](o)&&1===e[xs("0x19")](o)[xs("0x22")]&&t[xs("0x44")][xs("0x57")]((t=>{for(const e of r)t[xs("0xc")](e,{usingOperation:!0,affectsData:!0})}))}),{priority:"low"}),this[xs("0x2f")](),this[xs("0xa")]()}[xs("0x24")](){const t=this.editor[xs("0x21")][xs("0x1")](xs("0x5")),e=this.editor[xs("0xf")][xs("0x1")]("collaboration.channelId");for(const n of t[xs("0x46")]({channelId:e}))t._detachCommentThread(n.id),t._threads[xs("0x37")](n.id);super[xs("0x24")]()}[xs("0x3f")](t){return this[xs("0x16")](t)[xs("0x22")]>0}[xs("0x16")](t){return(this[xs("0x5b")].get(t)||[]).map((t=>this[xs("0x5d")][xs("0x44")][xs("0x52")][xs("0x1")](t)))[xs("0x4e")]((t=>t))}[xs("0x2f")](){const t=this[xs("0x5d")];t[xs("0x20")][xs("0x3d")](xs("0x1b")).markerToHighlight({model:xs("0xd"),view:t=>{const{id:e}=ls(t[xs("0x3b")]),n=["ck-comment-marker"];return this[xs("0x0")]&&ls(this[xs("0x0")]).id===e&&n[xs("0x27")]("ck-comment-marker--active"),{classes:n,attributes:{"data-comment":e}}}}),t[xs("0x20")].for(xs("0x4"))[xs("0x59")]({model:xs("0xd"),view:e=>{const n=t[xs("0x44")].markers[xs("0x1")](e),{id:o,part:i}=ls(e);return n&&!n[xs("0x12")]?null:{group:xs("0xd"),name:i?o+":"+i:o}}}),t[xs("0x20")][xs("0x3d")](xs("0x2b"))[xs("0x18")]({view:{name:xs("0xd"),attribute:{id:/^\w/}},model:(t,{writer:e})=>e.createElement(xs("0x1c"),{"data-name":xs("0x25")+t[xs("0x4f")]("id")})}),t[xs("0x20")][xs("0x3d")](xs("0x2b")).dataToMarker({view:xs("0xd")})}[xs("0xa")](){const t=this.editor,e=t[xs("0x21")][xs("0x1")]("CommentsRepository"),n=new Set;t[xs("0x44")].document.registerPostFixer((e=>{let o=!1;for(const{name:i,data:r}of t.model[xs("0x2c")][xs("0x13")].getChangedMarkers()){const{group:s,id:a}=ls(i);let c=r[xs("0x56")];if(xs("0xd")!==s||!c)continue;const x=xs("0x23")===c.root[xs("0x34")];x||(c=us(c,t[xs("0x44")]),!c||c[xs("0x41")](r.newRange))?!c||!t[xs("0x44")][xs("0x31")](c)||this[xs("0x5b")][xs("0x8")](a)&&x?(e.removeMarker(i),o=!0):x||(this[xs("0x47")]?n[xs("0x48")](i):this._attachMarkerToThread(i,a)):(e[xs("0xc")](i,{range:c}),o=!0)}return o})),this.on(xs("0x1f"),((e,o,i)=>{if(!i&&n[xs("0x33")])for(const e of n){const{id:o}=ls(e);n[xs("0x37")](o),t.model[xs("0x52")][xs("0x1")](e)&&this._attachMarkerToThread(e,o)}})),this[xs("0x3a")](t[xs("0x44")][xs("0x52")],xs("0x30"),((o,i,r,s)=>{if(s)return;const{id:a}=ls(i[xs("0x35")]),c=t.plugins[xs("0x1")](xs("0x5")).getCommentThread(a);n.delete(a),c&&!this[xs("0x3f")](a)&&(this[xs("0x5b")].delete(a),e[xs("0x10")](a))}))}[xs("0x2e")](t,e){if(this[xs("0x5b")].has(e)){const n=this[xs("0x5b")][xs("0x1")](e);return void(n[xs("0x4b")](t)||n[xs("0x27")](t))}this[xs("0x5b")][xs("0x28")](e,[t]);const n=this[xs("0x5d")],o=n[xs("0x21")].get(xs("0x5")),r=n[xs("0xf")][xs("0x1")](xs("0x45")),s=n[xs("0x21")][xs("0x1")]("EditorAnnotations"),a=()=>{const t=this[xs("0x16")](e);return(0,i.getAllMarkersDomElementsSorted)(n[xs("0x14")],t)};this[xs("0x16")](e)[0][xs("0x4c")]?o[xs("0x6")]({channelId:r,threadId:e})[xs("0x5c")]((t=>{if(xs("0x2d")!==n[xs("0x42")])if(t){const e=t.attachTo(a);s[xs("0x7")](e)}else{const t=this[xs("0x16")](e);n[xs("0x44")][xs("0x57")]((e=>{for(const n of t)e[xs("0x4d")](n)}))}})):n[xs("0x14")][xs("0xb")][xs("0x58")](xs("0x4a"),(()=>{const t=n[xs("0x21")][xs("0x1")](xs("0x50")),i=o[xs("0x1e")]({channelId:r,threadId:e,target:a}),c=o[xs("0x43")].get(i)[xs("0xb")],x=t[xs("0x39")](c);s.registerAnnotation(x)}),{priority:"low"})}}function ds(t,e){return e?t+":"+e:t}function ls(t){const e=t[xs("0xe")](":");return{group:e[0],id:e[1],part:e[2]}}function us(t,e){const n=e[xs("0x3c")],o=e[xs("0x40")](t[xs("0x2a")]);for(const i of t[xs("0x32")]()){const{type:t,item:r,nextPosition:s}=i;if(xs("0x38")===t||n.isObject(r)){const t=e[xs("0x54")](r);o[xs("0x17")]&&(o[xs("0x2a")]=t),o.end=s}}return o[xs("0x17")]?null:o}const ms='\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 1.5h12A3.5 3.5 0 0 1 19.5 5v8l-.005.192a3.501 3.501 0 0 1-2.927 3.262l-.062.008v1.813a1.5 1.5 0 0 1-2.193 1.33l-.371-.193-.38-.212a13.452 13.452 0 0 1-3.271-2.63l-.062-.07H4A3.5 3.5 0 0 1 .5 13V5A3.5 3.5 0 0 1 4 1.5ZM4 3a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6.924a11.916 11.916 0 0 0 3.71 3.081l.372.194v-3.268L14.962 15H16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4Zm1.55 5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.5 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.5 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z"/></svg>\n',fs=["init","CommentsListView","comment:","tooltip","push","activeMarker","pluginName","focusTracker","editing","_createUIButton","isEnabled","comment","innerView","map","componentFactory","_viewToController","icon","plugins","getCommentThread","get","has","getRange","bind","model","label","hasCommentThread","add","locale","hasMarkerForId","find","commands","from","highest","stop","addSourceCollector","focus","removeCommentThread","Comment","view","isFocused","listenTo","requires","CommentThreadInputView"];var ps,gs;ps=fs,gs=248,function(t){for(;--t;)ps.push(ps.shift())}(++gs);const bs=function(t,e){return fs[t-=0]};class vs extends t.Plugin{static get[bs("0x10")](){return"CommentsUI"}static get[bs("0x8")](){return[Rr,hs,qr,Ir]}get[bs("0xb")](){return ri}get[bs("0x9")](){return Go}[bs("0xa")](){const t=this.editor,e=t.plugins[bs("0x1d")](Rr),n=t[bs("0x1b")][bs("0x1d")](hs),o=t[bs("0x1b")][bs("0x1d")](Ir),i=t[bs("0x1b")][bs("0x1d")](qr);t.ui[bs("0x18")][bs("0x24")](bs("0x15"),(()=>this[bs("0x13")]())),i[bs("0x1")]((()=>{const t=[];for(const[o,i]of e._threadToController){const e=n.getAllMarkersForId(o.id),r=e.map((t=>t[bs("0x1f")]()));e.length>0&&t[bs("0xe")]([i[bs("0x5")],r])}return t})),this[bs("0x7")](o,"change:activeAnnotations",((t,o,i)=>{const r=Array[bs("0x29")](i)[bs("0x17")]((t=>t[bs("0x16")]))[bs("0x27")]((t=>e[bs("0x19")][bs("0x1e")](t)));if(!r)return void(n.activeMarker=null);const s=e._viewToController[bs("0x1d")](r)[bs("0x21")].id,a=bs("0xc")+s;n[bs("0x26")](s)?n.activeMarker=a:n[bs("0xf")]&&(n[bs("0xf")]=null)})),this[bs("0x7")](e,bs("0x3"),((e,{threadId:o,isFromAdapter:i})=>{!i&&t.ui[bs("0x11")][bs("0x6")]&&n.hasMarkerForId(o)&&t[bs("0x12")][bs("0x5")].focus()}),{priority:bs("0x2a")}),this[bs("0x7")](e,"addComment",((o,{threadId:i,isFromAdapter:r})=>{!r&&n.hasMarkerForId(i)&&e[bs("0x23")](i)&&1===e[bs("0x1c")](i).length&&(t[bs("0x12")][bs("0x5")][bs("0x2")](),o[bs("0x0")]())}),{priority:"low"})}[bs("0x13")](){const t=this.editor,e=new go.ButtonView(t[bs("0x25")]),n=t[bs("0x28")][bs("0x1d")]("addCommentThread");return e[bs("0x22")]=bo(t.locale,"Comment"),e[bs("0xd")]=bo(t[bs("0x25")],bs("0x4")),e[bs("0x1a")]=ms,e[bs("0x20")](bs("0x14")).to(n),this.listenTo(e,"execute",(()=>n.execute())),e}}const _s=["stop","document","_disableCommentsOnlyMode","DragDrop","forceDisabled","stopListening","_enableCommentsOnlyMode","plugins","addCommentThread","get","set","change:isEnabled","clearForceDisabled","view","isEnabled","affectsData","commentsOnly","cut","commentsOnlyMode","editing","highest","editor","delete","listenTo","requires","commands","CommentsOnly"];var ws,ks;ws=_s,ks=482,function(t){for(;--t;)ws.push(ws.shift())}(++ks);const ys=function(t,e){return _s[t-=0]};class Cs extends t.Plugin{static get pluginName(){return ys("0x3")}static get[ys("0x1")](){return[hs]}constructor(t){super(t),this[ys("0xe")](ys("0x12"),null),this.on(ys("0xf"),((t,e,n)=>{n?this[ys("0xa")]():this[ys("0x6")]()}))}afterInit(){null===this[ys("0x12")]&&(this[ys("0x12")]=!!this[ys("0x19")].config[ys("0xd")](ys("0x14")))}[ys("0xa")](){for(const[t,e]of this[ys("0x19")].commands)e[ys("0x13")]&&ys("0xc")!==t&&e.forceDisabled(ys("0x16"));this.editor.plugins.has(ys("0x7"))&&this[ys("0x19")][ys("0xb")][ys("0xd")](ys("0x7"))[ys("0x8")](ys("0x16"));const t=this[ys("0x19")][ys("0x17")].view[ys("0x5")];this.listenTo(t,ys("0x15"),(t=>t.stop()),{priority:ys("0x18")}),this.listenTo(t,"clipboardInput",(t=>t[ys("0x4")]()),{priority:ys("0x18")}),this[ys("0x0")](t,ys("0x1a"),(t=>t[ys("0x4")]()),{priority:ys("0x18")})}[ys("0x6")](){for(const[t,e]of this.editor[ys("0x2")])e[ys("0x13")]&&"addCommentThread"!==t&&e[ys("0x10")](ys("0x16"));this[ys("0x9")](this.editor[ys("0x17")][ys("0x11")][ys("0x5")])}}const As=["deactivateAll","detach","context","has","plugins","hasActive","annotationsuis-register-already-registered","activeUIs","stopListening","pluginName","init","remove","_removeActiveAnnotation","function","find","delete","_activateAnnotation","_assertAnnotationDoesNotBelongToMultipleUIs","from","length","activate","switchTo","annotationsuis-activate-missing-ui","collection","_deactivateAllAnnotations","_uisData","isActive","deactivate","listenTo","set","requires","push","filter","_uis","setActiveAnnotation","_addActiveAnnotation","add","_visibleAnnotations","register","destroy","_setSelectedAnnotations","attach","get","change:activeAnnotation"];var Ts,Es;Ts=As,Es=396,function(t){for(;--t;)Ts.push(Ts.shift())}(++Es);const Is=function(t,e){return As[t-=0]};class Os extends t.ContextPlugin{static get[Is("0x1e")](){return[Ir]}static get[Is("0x9")](){return"AnnotationsUIs"}constructor(t){super(t),this[Is("0x7")]=new Set,this[Is("0x21")]=new Map,this[Is("0x19")]=new Map}[Is("0xa")](){const t=this[Is("0x2")].plugins[Is("0x2a")](Ir);this[Is("0x1c")](t,Is("0x10"),((t,e)=>{for(const t of this[Is("0x7")]){const n=this._uis[Is("0x2a")](t);(0,this._uisData[Is("0x2a")](t)[Is("0x20")])(e)&&n[Is("0x22")](e)}})),this[Is("0x1c")](t,Is("0x18"),(()=>{for(const t of this[Is("0x7")])this[Is("0x21")][Is("0x2a")](t)[Is("0x22")](null)})),this[Is("0x1c")](t._visibleAnnotations,Is("0x24"),((t,e)=>{this[Is("0x11")](e)}))}[Is("0x5")](){return this[Is("0x7")].size>0}[Is("0x1a")](t){return this.activeUIs[Is("0x3")](t)}[Is("0x14")](t,n=(()=>!0)){const o=this[Is("0x2")][Is("0x4")].get(Ir);if(!this._uis[Is("0x3")](t))throw new e.CKEditorError(Is("0x16"),this,{uiName:t});this[Is("0x1a")](t)&&this.deactivate(t),this[Is("0x7")][Is("0x24")](t);const i=new kr;(function({source:t,target:e,filter:n}){for(const o of t)n(o)&&e.add(o);e[wr("0xf")](t,wr("0x20"),((t,o)=>{n(o)&&e.add(o)})),e[wr("0xf")](t,"remove",((t,n)=>{e[wr("0xd")](n)&&e[wr("0x10")](n)}))})({source:o[Is("0x25")],target:i,filter:n}),this[Is("0x19")].set(t,{collection:i,filter:n});const r=this._uis[Is("0x2a")](t);r[Is("0x29")](i),this[Is("0x1c")](r,Is("0x2b"),((t,e,n,i)=>{i&&o[Is("0xc")](i),n&&o[Is("0x23")](n)}))}[Is("0x1b")](t){this[Is("0x7")][Is("0xf")](t);const e=this[Is("0x21")][Is("0x2a")](t);e[Is("0x1")](),this[Is("0x8")](e),this[Is("0x19")][Is("0x2a")](t)[Is("0x17")][Is("0x27")](),this[Is("0x19")][Is("0xf")](t)}[Is("0x15")](t){const e=this.context[Is("0x4")][Is("0x2a")](Ir),n=Array[Is("0x12")](e.activeAnnotations)[0]||null;this[Is("0x0")](),this[Is("0x14")](t);const o=this[Is("0x21")].get(t);o[Is("0x22")](n),o[Is("0x28")]&&n&&o[Is("0x28")]([n])}[Is("0x0")](){for(const t of this[Is("0x7")])this[Is("0x1b")](t)}[Is("0x26")](t,n){if(this[Is("0x21")][Is("0x3")](t))throw new e.CKEditorError(Is("0x6"));if(Is("0xd")!=typeof n[Is("0x29")]||Is("0xd")!=typeof n[Is("0x1")]||Is("0xd")!=typeof n[Is("0x22")])throw new e.CKEditorError("annotationsuis-register-invalid-interface",null);this._uis.set(t,n)}refilterAnnotations(){const t=this[Is("0x2")][Is("0x4")].get(Ir)[Is("0x17")],e=new Map,n=Array[Is("0x12")](this[Is("0x7")]);for(const t of this[Is("0x7")]){const n=this[Is("0x19")].get(t)[Is("0x17")];for(const o of n)e[Is("0x1d")](o,t)}for(const o of t){const t=e[Is("0x2a")](o);this[Is("0x11")](o);const i=n[Is("0xe")]((t=>this[Is("0x19")][Is("0x2a")](t)[Is("0x20")](o)));t!==i&&(t&&this._uisData[Is("0x2a")](t)[Is("0x17")][Is("0xb")](o),i&&this[Is("0x19")].get(i)[Is("0x17")].add(o))}}[Is("0x27")](){this[Is("0x0")](),super[Is("0x27")]()}[Is("0x11")](t){const n=[];for(const e of this[Is("0x7")])(0,this[Is("0x19")][Is("0x2a")](e)[Is("0x20")])(t)&&n[Is("0x1f")](e);if(n[Is("0x13")]>1)throw new e.CKEditorError("annotationsuis-annotation-mismatch",null,{matchedUIs:n,annotationType:t.type})}}var js=n(100),Vs={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Si()(js.Z,Vs);js.Z.locals;const Ms=["class","div","minHeight","set","setTemplate","list","bindTemplate","createCollection","ck-sidebar"];var Ss,Rs;Ss=Ms,Rs=481,function(t){for(;--t;)Ss.push(Ss.shift())}(++Rs);const Ds=function(t,e){return Ms[t-=0]},Ns=(0,e.toUnit)("px");class Ps extends go.View{constructor(t){super(t);const e=this[Ds("0x2")];this[Ds("0x8")](Ds("0x7"),0),this[Ds("0x8")](Ds("0x5"),""),this[Ds("0x1")]=this[Ds("0x3")](),this[Ds("0x0")]({tag:Ds("0x6"),attributes:{class:["ck",Ds("0x4"),"ck-reset",e.to(Ds("0x5"))],style:{minHeight:e.to(Ds("0x7"),(t=>t?Ns(t+10):null))}},children:this[Ds("0x1")]})}}const Bs=["_targetTop","destroy","height","render","isAnimationDisabled","bottom","_mutationObserver","bind","element","setTemplate","clientHeight","attach","set","top","content","detach","updateHeight","div"];var Ls,zs;Ls=Bs,zs=482,function(t){for(;--t;)Ls.push(Ls.shift())}(++zs);const Fs=function(t,e){return Bs[t-=0]},Ks=(0,e.toUnit)("px");class Us extends go.View{constructor(t){super(t),this[Fs("0x10")](Fs("0x11")),this[Fs("0x10")](Fs("0x6"),0),this[Fs("0xb")](Fs("0x9")).to(this,Fs("0x11"),this,Fs("0x6"),((t,e)=>(t||0)+e)),this[Fs("0x10")]("isAnimationDisabled",!1),this[Fs("0xa")]=ir((()=>this[Fs("0x2")]())),this[Fs("0x4")]=null,this.content=this.createCollection();const e=this.bindTemplate;this[Fs("0xd")]({tag:Fs("0x3"),attributes:{class:["ck-sidebar-item",e.to(Fs("0x8"),(t=>t?"ck-sidebar-item--no-animation":""))],style:{top:e.to(Fs("0x11"),Ks)}},children:this[Fs("0x0")]})}[Fs("0x7")](){super.render(),this[Fs("0xa")][Fs("0xf")](this[Fs("0xc")])}[Fs("0x2")](){const t=this[Fs("0xc")][Fs("0xe")];t&&(this[Fs("0x6")]=t)}[Fs("0x5")](){this[Fs("0x0")].clear(),this[Fs("0xa")][Fs("0x1")](),super.destroy()}}const Ws=["_activeAnnotation","view","_updateLastItem","listenTo","bind","last","_recalculate","target","container","_getTargetTop","_targetTop","remove","locale","nodeType","_alignToTargetRect","set","destroy","rearrange","_destroySidebarItemView","_setItemTop","delete","sidebar-setcontainer-invalid-element","_alignAfterItem","init","minHeight","class","stopListening","sidebar.preventScrollOutOfView","_attachToContainer","max","render","getIndex","height","getSidebarItemView","element","isAnimationDisabled","_getItemBefore","_lastItem","updateHeight","change:targetRect","length","config","sidebar-attachtocontainer-missing-container","context","add","_getMaxAvailableTop","_alignForTopChange","_createSidebarView","list","top","change:_lastItem","get","_alignBeforeItem","isActive","_sidebarItemViewToAnnotation","push","bottom","_spaceBetweenItems","appendChild","_annotations","_alignForBottomChange","_recalculateBuffer","refresh","sidebar.container","object","targetRect","change:bottom","content","_annotationToSidebarItemView"];var Hs,Zs;Hs=Ws,Zs=361,function(t){for(;--t;)Hs.push(Hs.shift())}(++Zs);const qs=function(t,e){return Ws[t-=0]};class Xs extends t.ContextPlugin{static get pluginName(){return"Sidebar"}constructor(t){super(t),this[qs("0x44")](qs("0x15")),this[qs("0x36")]=this[qs("0x1f")](),this[qs("0x44")]("container",null),this[qs("0x29")]=25,this._sidebarItemViewToAnnotation=new Map,this._annotationToSidebarItemView=new Map,this[qs("0x1b")][qs("0x19")].define(qs("0xb"),!1),this[qs("0x2b")]=null,this._activeAnnotation=null,this._recalculateBuffer=[]}[qs("0x7")](){const t=this[qs("0x1b")].config[qs("0x23")](qs("0x2f"));t&&this.setContainer(t)}setContainer(t){if(!Gs(t))throw new e.CKEditorError(qs("0x5"));this[qs("0x3d")]=t}[qs("0xc")]({viewClass:t="",spaceBetweenItems:n=25}={}){if(!Gs(this[qs("0x3d")]))throw new e.CKEditorError(qs("0x1a"),this);this[qs("0x3d")][qs("0x2a")](this[qs("0x36")][qs("0x12")]),this[qs("0x36")][qs("0x9")]=t,this._spaceBetweenItems=n}[qs("0x1")]({removedAnnotation:t,previousAnnotation:e,nextAnnotation:n}){const o=this[qs("0x11")](t);this[qs("0x36")][qs("0x20")][qs("0x40")](o),this[qs("0x2")](t),e&&this[qs("0x43")](this.getSidebarItemView(e)),n&&this[qs("0x43")](this[qs("0x11")](n)),this[qs("0x37")]()}[qs("0x2e")]({blurredAnnotation:t,activatedAnnotation:e,disableAnimationOnActivatedAnnotation:n}){if(this[qs("0x35")]=e,t){t[qs("0x25")]=!1;const e=this.getSidebarItemView(t);e&&n&&(e[qs("0x13")]=!1)}if(e){const t=this[qs("0x11")](e);t&&(e[qs("0x25")]=!0,n&&(t[qs("0x13")]=!0,t[qs("0x21")]+=1),this[qs("0x43")](t))}}_detachFromContainer(t){this[qs("0xa")](),this[qs("0x36")][qs("0x12")][qs("0x40")]();for(const e of t)this[qs("0x2")](e);this[qs("0x36")][qs("0x20")].clear(),this[qs("0x36")][qs("0x9")]="",this[qs("0x15")]=null}addAnnotation(t,e){e||(e=t[qs("0x36")]);const n=new Us(this[qs("0x1b")][qs("0x41")]);this[qs("0x26")].set(n,t),this[qs("0x34")][qs("0x44")](t,n),n[qs("0x33")][qs("0x1c")](e),this[qs("0x38")](t.view,qs("0x17"),((e,o,i)=>{const r=this[qs("0x3e")](t,i);n[qs("0x3f")]!=r&&(n[qs("0x3f")]=r,this[qs("0x3")](n,r))})),this[qs("0x38")](n,"change:top",(()=>{this[qs("0x3b")](n,"top")})),this.listenTo(n,qs("0x32"),(()=>{this[qs("0x3b")](n,"bottom")})),this._alignToTargetRect(n);const o=this[qs("0x14")](n);return o?this[qs("0x6")](o,n)||this._alignToTargetRect(n):this[qs("0x43")](n),this[qs("0x37")](),this[qs("0x36")][qs("0x20")].add(n),n}[qs("0x1e")](t){if(!t[qs("0x33")][qs("0x18")])return;const e=this[qs("0x14")](t);if(!e)return;const n=this._sidebarItemViewToAnnotation[qs("0x23")](e),o=this[qs("0x35")];o&&o===n?this._alignAfterItem(e,t):this[qs("0x24")](t,e)}[qs("0x2c")](t){if(!t[qs("0x33")].length)return;const e=this._getItemAfter(t);if(!e)return;const n=this[qs("0x26")].get(e),o=this.context[qs("0x19")][qs("0x23")]("sidebar.preventScrollOutOfView"),i=this._activeAnnotation;i&&i===n&&o?(this[qs("0x24")](e,t),this[qs("0x6")](t,e)):i&&i===n?this[qs("0x24")](e,t):this[qs("0x6")](t,e)}_recalculate(t,e){0===this[qs("0x2d")][qs("0x18")]&&setTimeout((()=>{for(const{sidebarItemView:t,changedProp:e}of this[qs("0x2d")])qs("0x21")===e?this._alignForTopChange(t):this._alignForBottomChange(t);this[qs("0x2d")]=[]}),10),this[qs("0x2d")][qs("0x27")]({sidebarItemView:t,changedProp:e})}getSidebarItemView(t){return this._annotationToSidebarItemView[qs("0x23")](t)}destroy(){this.view[qs("0x0")]()}[qs("0x2")](t){const e=this[qs("0x11")](t);this.stopListening(e),this.stopListening(t[qs("0x36")]),e[qs("0x0")](),this._annotationToSidebarItemView[qs("0x4")](t),this._sidebarItemViewToAnnotation[qs("0x4")](e)}[qs("0x1f")](){const t=new Ps(this[qs("0x1b")][qs("0x41")]);return t[qs("0xe")](),this.on(qs("0x22"),((e,n,o,i)=>{i&&t.unbind(qs("0x8")),o?t[qs("0x39")](qs("0x8")).to(o,qs("0x28")):t.minHeight=null})),t}[qs("0x37")](){this[qs("0x15")]=this[qs("0x11")](this[qs("0x2b")][qs("0x3a")])}_getItemBefore(t){const e=this[qs("0x26")][qs("0x23")](t),n=this[qs("0x2b")][qs("0x23")](this[qs("0x2b")][qs("0xf")](e)-1);return n&&this.getSidebarItemView(n)}_getItemAfter(t){const e=this[qs("0x26")][qs("0x23")](t),n=this[qs("0x2b")][qs("0x23")](this[qs("0x2b")][qs("0xf")](e)+1);return n&&this[qs("0x11")](n)}[qs("0x24")](t,e){t[qs("0x16")]();const n=$s(e[qs("0x28")]+this._spaceBetweenItems,t[qs("0x21")]);return!!n&&(this[qs("0x3")](e,e[qs("0x21")]-n),!0)}_alignAfterItem(t,e){t.updateHeight();const n=$s(t[qs("0x28")]+this[qs("0x29")],e.top);return!!n&&(this[qs("0x3")](e,e[qs("0x21")]+n,!1),!0)}[qs("0x43")](t){const e=this._sidebarItemViewToAnnotation[qs("0x23")](t);if(!e||!e[qs("0x3c")])return;const n=this[qs("0x3e")](e,e[qs("0x31")]);this[qs("0x3")](t,n)}_getTargetTop(t,n){if(null===n)return 0;if(t[qs("0x3c")]instanceof e.Rect)return n.top;{const t=new e.Rect(this[qs("0x36")][qs("0x12")]).top;return n[qs("0x21")]-t}}[qs("0x3")](t,e,n=this.context[qs("0x19")][qs("0x23")](qs("0xb"))){n&&(e=Math.max(e,this[qs("0x1d")](t))),t[qs("0x21")]=e}_getMaxAvailableTop(t){let e=this._getItemBefore(t),n=0;for(;e;)e[qs("0x16")](),n+=this[qs("0x29")]+e[qs("0x10")],e=this[qs("0x14")](e);return n}}function $s(t,e){return Math[qs("0xd")](t-e,0)}function Gs(t){return null!==t&&qs("0x30")==typeof t&&1===t[qs("0x42")]}const Js=["EditorAnnotations","WideSidebar","blur","listenTo","removeEventListener","widesidebar-detach-not-attached","_refreshPositioningDebounced","pluginName","change:container","off","_destroyEditorAnnotationsIntegration","init","_integrateWithEditorAnnotations","register","add","switchTo","_detachFromContainer","annotations","stop","from","cancel","refreshPositioning","addEventListener","editors","_activeAnnotation","resize","setActiveAnnotation","get","addAnnotation","plugins","stopListening","refresh","activeAnnotation","isAttached","remove","_editorAnnotations","set","ready","container","Sidebar","detach","getOrderedSelectedAnnotations","high","attach","_attachToContainer","ck-sidebar--wide","context"];var Ys,Qs;Ys=Js,Qs=234,function(t){for(;--t;)Ys.push(Ys.shift())}(++Qs);const ta=function(t,e){return Js[t-=0]};class ea extends t.ContextPlugin{static get requires(){return[Xs,Os]}static get[ta("0x8")](){return ta("0x2")}constructor(t){super(t),this[ta("0x22")]=!1,this[ta("0x25")]("activeAnnotation",null),this[ta("0x12")]=null,this[ta("0x24")]=new e.Collection,this[ta("0x7")]=Yi((()=>{this[ta("0x12")][ta("0x16")]()}),250,{leading:!1})}[ta("0xc")](){const t=this[ta("0x0")][ta("0x1e")].get(Os),e=this[ta("0x0")][ta("0x1e")][ta("0x1c")](Xs);t[ta("0xe")]("wideSidebar",this),e[ta("0x27")]&&t[ta("0x10")]("wideSidebar")}[ta("0x1b")](t){if(t===this[ta("0x21")])return;const e=this[ta("0x0")][ta("0x1e")][ta("0x1c")](Xs);e[ta("0x19")]=t;const n=this[ta("0x21")];this[ta("0x21")]=t,e[ta("0x20")]({blurredAnnotation:n,activatedAnnotation:this[ta("0x21")]})}attach(t){this[ta("0x12")]=t;const n=this.context[ta("0x1e")].get(ta("0x28"));if(n._annotations=t,this[ta("0x22")])throw new e.CKEditorError("widesidebar-attach-already-attached",this);this[ta("0x22")]=!0,this[ta("0x4")](n,"set:container",(()=>{this[ta("0x29")](),this[ta("0x4")](n,ta("0x9"),(e=>{e[ta("0xa")](),this[ta("0x2c")](t)}))})),n[ta("0x2d")]({viewClass:ta("0x2e")});const o=t=>{t.updateTargetRect(),n[ta("0x1d")](t)};for(const e of t)o(e);this[ta("0x4")](t,ta("0xf"),((t,e)=>{o(e)})),this[ta("0x4")](t,"remove",((e,o,i)=>{n.rearrange({removedAnnotation:o,previousAnnotation:t[ta("0x1c")](i-1),nextAnnotation:t[ta("0x1c")](i+1)}),o===this[ta("0x21")]&&this[ta("0x1b")](null)}),{priority:ta("0x2b")}),this[ta("0x4")](t,"focus",((t,e)=>{this[ta("0x1b")](e)})),this[ta("0x4")](t,ta("0x3"),(()=>{this.setActiveAnnotation(null)}));const i=this.context.editors?this[ta("0x0")].editors:new e.Collection([this[ta("0x0")]]);for(const t of i)this[ta("0xd")](t);this.listenTo(i,ta("0xf"),((t,e)=>{this[ta("0x4")](e,ta("0x26"),(()=>{this[ta("0xd")](e)}))})),this[ta("0x4")](i,ta("0x23"),((t,e)=>{e[ta("0x1e")].has(ta("0x1"))&&this[ta("0xb")](e.plugins.get(ta("0x1")))})),window[ta("0x17")](ta("0x1a"),this._refreshPositioningDebounced),this.annotations.refreshPositioning()}[ta("0x29")](){if(!this[ta("0x22")])throw new e.CKEditorError(ta("0x6"),this);this[ta("0x1b")](null);const t=this[ta("0x0")][ta("0x1e")].get(Xs);t[ta("0x11")](this.annotations),this[ta("0x1f")](t),this[ta("0x1f")](this[ta("0x12")]),this[ta("0x1f")](this[ta("0x0")][ta("0x18")]);for(const t of Array[ta("0x14")](this._editorAnnotations))this[ta("0xb")](t);window[ta("0x5")](ta("0x1a"),this[ta("0x7")]),this._refreshPositioningDebounced[ta("0x15")](),this[ta("0x21")]=null,this[ta("0x22")]=!1,this[ta("0x12")]=null}destroy(){this[ta("0x22")]&&this.detach()}[ta("0xd")](t){const e=t[ta("0x1e")][ta("0x1c")]("EditorAnnotations");if(!e)return;const n=()=>{const t=e[ta("0x2a")]({annotations:this[ta("0x12")],activeAnnotation:this[ta("0x21")]});this[ta("0x1b")](t[0]||null)};this[ta("0x4")](e,ta("0x20"),n),this[ta("0x4")](e,ta("0x3"),((t,{isAnnotationTracked:e})=>{this[ta("0x21")]&&e(this.activeAnnotation)&&this[ta("0x1b")](null)})),this[ta("0x4")](e,"uiUpdate",(()=>{this._refreshPositioningDebounced()})),this[ta("0x4")](this[ta("0x12")],ta("0x3"),(t=>{e.hasDomSelection()&&(n(),t[ta("0x13")]())}),{priority:"high"}),this._editorAnnotations.add(e)}[ta("0xb")](t){t&&(this[ta("0x1f")](t),this._editorAnnotations.remove(t))}}const na=["ck-annotation-counter__badge--edit-mode","...","add","counterView","children","ck-annotation-counter__badge--","_badge","annotationType","icon","number","isDirty","extendTemplate","ck-annotation-counter","bind","set"];var oa,ia;oa=na,ia=333,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]};class sa extends go.ButtonView{constructor(t){super(t);const e=this.bindTemplate;this[ra("0xb")](ra("0x7"),!1),this.set(ra("0x6"),0),this[ra("0xa")](ra("0x3")).to(this,ra("0x7"),this,ra("0x6"),((t,e)=>t?ra("0xd"):e)),this[ra("0xb")](ra("0x4"),""),this[ra("0x5")]=ms,this[ra("0x8")]({attributes:{class:[ra("0x9")]}}),this[ra("0x0")]=new go.View,this[ra("0x0")].setTemplate({tag:"span",attributes:{class:["ck-annotation-counter__badge",e.to(ra("0x4"),(t=>ra("0x2")+t)),e.if(ra("0x7"),ra("0xc"))]},children:[{text:e.to("_badge")}]}),this[ra("0x1")][ra("0xe")](this[ra("0x0")])}}var aa=n(28),ca={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Si()(aa.Z,ca);aa.Z.locals;const xa=["context","change:height","activeAnnotation","contains","EditorAnnotations","first","keydown","uiUpdate","_editorAnnotations","content","_refreshPositioningDebounced","unpin","delete","keyCode","_detachListeners","narrowSidebar","editors","listenTo","annotations","off","element","ck-sidebar--narrow","type","narrowsidebar-attach-already-attached","set","init","annotationType","_hideBalloon","_refreshPositioning","rearrange","detachFromDom","getSidebarItemView","isAttached","get","preventClosingBalloon","getOrderedSelectedAnnotations","stopPropagation","southArrowNorthEast","_attachListeners","_destroyEditorAnnotationsIntegration","defaultPositions","NarrowSidebar","resize","_integrateWithEditorAnnotations","bind","addAnnotation","_annotationToNarrowView","balloonPanelView","has","length","stop","_setSelectedAnnotations","view","narrowsidebar-detach-not-attached","high","getByView","_detachFromContainer","plugins","attach","Esc","_showBalloon","bodyCollection","add","removeEventListener","focus","isDirty","execute","low","preventDefault","_selectedAnnotations","ready","change:container","stopListening","target","detach","pin","_manuallyClosedAnnotationViews","requires","cancel","number","includes","remove","Sidebar","_updateBalloonPosition","hasDomSelection","locale","destroy","clear","blur","create","isVisible","setActiveAnnotation","_domEmitter","refresh"];var ha,da;ha=xa,da=241,function(t){for(;--t;)ha.push(ha.shift())}(++da);const la=function(t,e){return xa[t-=0]};class ua extends t.ContextPlugin{static get[la("0x18")](){return[Xs,Os]}static get pluginName(){return la("0x52")}constructor(t){super(t),this[la("0x49")]=!1,this[la("0x17")]=new Set,this._domEmitter=Object[la("0x24")](e.DomEmitterMixin),this[la("0x57")]=new Map,this[la("0x41")](la("0x2b"),null),this[la("0x3b")]=null,this._selectedAnnotations=[],this[la("0x31")]=new e.Collection,this[la("0x33")]=Yi((()=>{this[la("0x45")]()}),250,{leading:!1})}[la("0x42")](){this.context[la("0x4")][la("0x4a")](Os).register(la("0x38"),this),this[la("0x8")]=new go.BodyCollection(this[la("0x29")][la("0x20")]),this.balloonPanelView=new go.BalloonPanelView(this.context[la("0x20")]),this[la("0x8")].attachToDom(),this[la("0x8")][la("0x9")](this[la("0x58")])}[la("0x5")](t){this[la("0x3b")]=t;const n=this[la("0x29")][la("0x4")][la("0x4a")](Xs),o=this[la("0x58")];if(n._annotations=t,this[la("0x49")])throw new e.CKEditorError(la("0x40"),this);this[la("0x49")]=!0,this[la("0x3a")](n,"set:container",(()=>{this[la("0x15")](),this[la("0x3a")](n,la("0x12"),(e=>{e[la("0x3c")](),this[la("0x5")](t)}))})),n._attachToContainer({viewClass:la("0x3e"),spaceBetweenItems:5});const i=t=>{const e=new sa(this[la("0x29")][la("0x20")]);n[la("0x56")](t,e),this[la("0x57")].set(t,e),e[la("0x55")]("isDirty",la("0x43"),la("0x1a")).to(t[la("0x5d")],la("0xc"),la("0x3f"),la("0x5a")),e.on(la("0xd"),(()=>{this[la("0x17")].clear(),o[la("0x32")][la("0x2e")]!==t[la("0x5d")]?(this._showBalloon(t),t[la("0x5d")][la("0x3d")][la("0xb")](),this[la("0x26")](t)):this[la("0x26")](null)}))};for(const e of t)i(e);this[la("0x3a")](t,la("0x9"),((t,e)=>{i(e)})),this[la("0x3a")](t,la("0x1c"),((e,o,i)=>{this[la("0x57")][la("0x4a")](o)[la("0x21")](),this[la("0x57")][la("0x35")](o),n[la("0x46")]({removedAnnotation:o,previousAnnotation:t[la("0x4a")](i-1),nextAnnotation:t[la("0x4a")](i+1)}),o===this[la("0x2b")]&&this[la("0x26")](null)}),{priority:la("0xe")}),this[la("0x3a")](t,la("0xb"),((t,e)=>{this[la("0x26")](e)})),this[la("0x3a")](t,la("0x23"),(()=>{this[la("0x26")](null)})),this[la("0x27")][la("0x3a")](document,la("0x2f"),((t,n)=>{n[la("0x36")]===e.keyCodes.esc&&o[la("0x25")]&&(this[la("0x17")].add(o.content[la("0x2e")]),this._hideBalloon(),n[la("0x4d")](),n[la("0xf")]())})),this[la("0x27")].listenTo(document,"mousedown",((t,e)=>{const i=e[la("0x14")];o[la("0x25")]&&o[la("0x3d")][la("0x2c")](i)||n[la("0x5d")][la("0x3d")][la("0x2c")](i)||t[la("0x4b")]||(this[la("0x17")][la("0x22")](),this[la("0x44")](),this[la("0x26")](null))}));const r=this[la("0x29")][la("0x39")]?this[la("0x29")][la("0x39")]:new e.Collection([this.context]);for(const t of r)this[la("0x54")](t);this[la("0x3a")](r,la("0x9"),((t,e)=>{this[la("0x3a")](e,la("0x11"),(()=>{this._integrateWithEditorAnnotations(e)}))})),this[la("0x3a")](r,la("0x1c"),((t,e)=>{e.plugins[la("0x59")](la("0x2d"))&&this[la("0x50")](e[la("0x4")][la("0x4a")]("EditorAnnotations"))})),window.addEventListener(la("0x53"),this[la("0x33")]),this._refreshPositioning()}[la("0x26")](t){if(t===this[la("0x2b")])return;const e=this[la("0x29")][la("0x4")][la("0x4a")](la("0x1d"));e[la("0x28")]({blurredAnnotation:this[la("0x2b")],activatedAnnotation:t,disableAnimationOnActivatedAnnotation:!0}),t&&e[la("0x48")](t)?this[la("0x7")](t):this._hideBalloon(),this[la("0x2b")]=t}[la("0x15")](){if(!this[la("0x49")])throw new e.CKEditorError(la("0x0"),this);this.setActiveAnnotation(null);const t=this[la("0x29")][la("0x4")][la("0x4a")](la("0x1d"));this[la("0x44")](),Array.from(this[la("0x57")].values(),(t=>t[la("0x21")]())),this[la("0x57")][la("0x22")](),t[la("0x3")](this[la("0x3b")]),this[la("0x13")](),this[la("0x27")][la("0x13")](),this.stopListening(this[la("0x29")][la("0x39")]);for(const t of Array.from(this[la("0x31")]))this[la("0x50")](t);window[la("0xa")]("resize",this._refreshPositioningDebounced),this[la("0x33")][la("0x19")](),this._selectedAnnotations=[],this[la("0x49")]=!1,this[la("0x3b")]=null}[la("0x21")](){this.isAttached&&this[la("0x15")](),this[la("0x8")][la("0x47")]()}[la("0x54")](t){const e=t[la("0x4")][la("0x4a")]("EditorAnnotations"),n=this[la("0x29")][la("0x4")][la("0x4a")](Xs),o=this[la("0x3b")],i=this[la("0x58")],r=()=>{const t=e[la("0x4c")]({activeAnnotation:this[la("0x2b")],annotations:this.annotations});this._setSelectedAnnotations(t),this[la("0x26")](t[0]||null)};this[la("0x3a")](e,la("0x28"),r),this.listenTo(e,"blur",((t,{isAnnotationTracked:e})=>{this[la("0x2b")]&&e(this[la("0x2b")])&&(this._setSelectedAnnotations([]),this[la("0x26")](null))})),this[la("0x3a")](e,la("0x30"),(()=>{this._refreshPositioningDebounced()})),this[la("0x3a")](o,"blur",(t=>{e[la("0x1f")]()&&t[la("0x5b")]()}),{priority:la("0x1")}),this._domEmitter[la("0x3a")](document,"mousedown",((t,o)=>{const s=o[la("0x14")];i[la("0x25")]&&i.element[la("0x2c")](s)||n[la("0x5d")].element[la("0x2c")](s)||this[la("0x2b")]&&e.hasDomSelection()&&(r(),t[la("0x4b")]=!0)}),{priority:la("0x1")}),this._editorAnnotations[la("0x9")](e)}[la("0x50")](t){t&&(this.stopListening(t),this[la("0x31")].remove(t))}[la("0x5c")](t){for(const e of this[la("0x10")])t[la("0x1b")](e)||this[la("0x17")].delete(e[la("0x5d")]);this._selectedAnnotations=t}[la("0x45")](){const t=this[la("0x58")];this[la("0x3b")].refreshPositioning(),t[la("0x25")]&&this._updateBalloonPosition()}[la("0x7")](t){if(this[la("0x17")].has(t[la("0x5d")]))return;const e=this.balloonPanelView[la("0x32")][la("0x2e")];e!==t[la("0x5d")]?(e&&this._detachListeners(e),this[la("0x4f")](t.view),this[la("0x58")].content[la("0x22")](),this.balloonPanelView[la("0x32")].add(t.view),this._updateBalloonPosition()):this[la("0x1e")]()}[la("0x1e")](){const t=this[la("0x58")][la("0x32")].first,e=this[la("0x3b")][la("0x2")](t);if(!this[la("0x57")][la("0x59")](e))return;const n=this._annotationToNarrowView.get(e)[la("0x3d")],o=function(){const t=go.BalloonPanelView[la("0x51")];return[t[la("0x4e")],t.northArrowSouthEast,t.southArrowNorth,t.northArrowSouth,t.southArrowNorthWest,t.northArrowSouthWest]}();this[la("0x58")][la("0x16")]({target:n,positions:o})}[la("0x44")](){const t=this[la("0x58")],e=t[la("0x32")].first;e&&(this[la("0x37")](e),t[la("0x34")](),t[la("0x32")][la("0x22")]())}[la("0x4f")](t){this[la("0x3a")](t,la("0x2a"),(()=>this[la("0x1e")]())),this[la("0x3a")](t,la("0x6"),((e,n)=>{this._manuallyClosedAnnotationViews[la("0x9")](t),this[la("0x44")](),n()}))}[la("0x37")](t){this[la("0x13")](t)}}var ma=n(275),fa={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Si()(ma.Z,fa);ma.Z.locals;const pa=["hasActive","left","has","_forceRefresh","_manuallyClosed","pluginName","editableElement","Esc","attach","get","width","hasView","getBoundingClientRect","editor","afterInit","focus","switchTo","_addAnnotationToBalloon","top","requires","inlineannotations-detach-not-attached","isFocused","focusTracker","updatePosition","context","change:height","_closeAnnotation","every","plugins","inlineannotations-not-allowed-with-context","_balloon","init","_getBalloonTargetForAnnotation","update","refresh","includes","_removeAnnotationFromBalloon","selection","getFirstRange","view","change:visibleView","_addedAnnotations","find","getClientRects","setActiveAnnotation","register","map","mousedown","inline","annotations","isAttached","editing","length","clear","domConverter","fromRect","showStack","_selectedAnnotations","viewRangeToDom","activeAnnotation","bottom","_setSelectedAnnotations","push","targetRect","remove","getByView","isActive","from","document","getOrderedSelectedAnnotations","add","detach","destroy","visibleView","right","inlineannotations-attach-already-attached","change:isFocused","target","keystrokes","listenTo"];var ga,ba;ga=pa,ba=405,function(t){for(;--t;)ga.push(ga.shift())}(++ba);const va=function(t,e){return pa[t-=0]};class _a extends t.Plugin{static get[va("0xe")](){return[qr,go.ContextualBalloon,Os]}static get[va("0x0")](){return"InlineAnnotations"}constructor(t){super(t),t[va("0x2e")][va("0x22")].addObserver(Oo.MouseObserver),this.isAttached=!1,this.set(va("0x36"),null),this.annotations=null,this._manuallyClosed=new Set,this[va("0x19")]=t.plugins[va("0x4")](go.ContextualBalloon),this[va("0x24")]=new Set,this._selectedAnnotations=[],this[va("0x4e")]=!1}[va("0x1a")](){const t=this[va("0x8")][va("0x17")][va("0x4")](Os);t[va("0x13")]===this[va("0x8")]&&(t[va("0x28")](va("0x2b"),this),this[va("0x8")][va("0x49")].set("Esc",((t,e)=>{const n=this[va("0x19")];if(this[va("0x2d")]&&n[va("0x44")]){const t=this[va("0x2c")][va("0x3c")](n.visibleView);this[va("0x15")](t),e()}})))}[va("0x9")](){const t=this[va("0x8")][va("0x17")].get(Os);t[va("0x13")]===this.editor&&(t[va("0x4b")]()||t[va("0xb")]("inline"))}[va("0x27")](t){t!==this[va("0x36")]&&(this[va("0x36")]&&(this.activeAnnotation[va("0x3d")]=!1),t&&this[va("0x8")].ui[va("0x11")][va("0x10")]&&(this[va("0xc")](t,!0),t.isActive=!0),t||this._setSelectedAnnotations([]),this[va("0x36")]=t)}[va("0x3")](t){this.annotations=t;const n=this[va("0x8")][va("0x17")][va("0x4")](Os),o=this._balloon;if(this[va("0x2d")])throw new e.CKEditorError(va("0x46"),this);if(n.context!==this[va("0x8")])throw new e.CKEditorError(va("0x18"),this);const i=this[va("0x8")][va("0x17")][va("0x4")]("EditorAnnotations");this[va("0x4a")](i,va("0x1d"),function(){const t=i[va("0x40")]({activeAnnotation:this.activeAnnotation,annotations:this[va("0x2c")]});var e,n;!this._forceRefresh&&(e=t,n=this[va("0x34")],e[va("0x2f")]===n[va("0x2f")]&&e[va("0x16")]((t=>n[va("0x1e")](t))))||(this[va("0x4e")]=!1,this[va("0x38")](t),this[va("0x27")](t[0]||null))}.bind(this)),this[va("0x4a")](i,"blur",((t,{isAnnotationTracked:e})=>{this[va("0x36")]&&e(this.activeAnnotation)&&(this[va("0x38")]([]),this[va("0x27")](null))})),this[va("0x4a")](this[va("0x8")].ui.focusTracker,va("0x47"),((t,e,n)=>{n||this.setActiveAnnotation(null)})),this[va("0x4a")](t,va("0x3b"),((t,e)=>{this[va("0x1f")](e),e===this[va("0x36")]&&this[va("0x27")](null)})),this.listenTo(o,va("0x23"),((e,n,i,r)=>{if(r&&this.stopListening(r),!i||!t.getByView(i))return;const s=t[va("0x3c")](i);this[va("0x4a")](i,va("0x14"),(()=>{o[va("0x12")]()})),this[va("0x4a")](i,va("0x2"),(()=>{this[va("0x15")](s),this.editor[va("0x2e")][va("0x22")][va("0xa")]()})),this.activeAnnotation!==s&&this[va("0x27")](s)})),this.listenTo(this[va("0x8")].ui,va("0x1c"),(()=>{o.visibleView&&t[va("0x3c")](o[va("0x44")])&&o[va("0x12")]()})),this[va("0x4a")](this[va("0x8")][va("0x2e")].view[va("0x3f")],va("0x2a"),(()=>{this[va("0x4e")]=!0,this[va("0x4f")][va("0x30")]()})),this.editor[va("0x2e")][va("0x22")].document[va("0x20")][va("0x1")]&&this[va("0x8")][va("0x2e")][va("0x22")][va("0xa")](),this[va("0x2d")]=!0}[va("0x42")](){if(!this[va("0x2d")])throw new e.CKEditorError(va("0xf"),this);this[va("0x27")](null);for(const t of this._addedAnnotations)this[va("0x1f")](t);this.stopListening(),this.isAttached=!1,this.annotations=null}[va("0x43")](){this.isAttached&&this[va("0x42")]()}[va("0x38")](t){for(const e of this[va("0x34")])t[va("0x1e")](e)||this._manuallyClosed.delete(e);for(const e of this[va("0x2c")])t[va("0x1e")](e)||this[va("0x1f")](e);if(this.editor.ui.focusTracker[va("0x10")])for(const e of t)this[va("0xc")](e);this[va("0x34")]=t}[va("0xc")](t,e){this[va("0x4f")][va("0x4d")](t)||(this._addedAnnotations[va("0x4d")](t)||this[va("0x19")][va("0x6")](t[va("0x22")])||(this[va("0x24")].add(t),this[va("0x19")].add({stackId:t[va("0x22")].id,view:t.view,position:{target:()=>this[va("0x1b")](t)}})),e&&this[va("0x19")][va("0x33")](t[va("0x22")].id))}_getBalloonTargetForAnnotation(t){const n=t[va("0x48")],o=this.editor[va("0x2e")][va("0x22")],i=o.document[va("0x20")][va("0x21")](),r=o[va("0x31")][va("0x35")](i);if(r.collapse(!0),n){if(n instanceof e.Rect)return n;let t=[];for(const e of n)t.push(...(s=e[va("0x26")](),Array[va("0x3e")](s)[va("0x29")](DOMRect[va("0x32")])));t=function(t){const e=[];let n=t[0];for(let r=1;r<t[va("0x2f")];r++)o=n,i=t[r],o[va("0xd")]===i.top&&o[va("0x37")]===i[va("0x37")]&&o[va("0x45")]===i[va("0x4c")]?n.width+=t[r][va("0x5")]:(e[va("0x39")](n),n=t[r]);var o,i;return e.push(n),e}(t);const o=r[va("0x7")]();return t[va("0x25")]((t=>t[va("0xd")]<=o[va("0xd")]&&t[va("0x37")]>=o[va("0x37")]&&t.left<=o[va("0x4c")]&&t[va("0x45")]>=o.right))||t[0]}var s;return t[va("0x3a")]||r}_removeAnnotationFromBalloon(t){this[va("0x24")][va("0x4d")](t)&&this[va("0x19")][va("0x6")](t[va("0x22")])&&(this[va("0x24")].delete(t),this[va("0x19")][va("0x3b")](t.view))}[va("0x15")](t){this[va("0x4f")][va("0x41")](t),this[va("0x1f")](t)}}var wa,ka,ya=["requires","pluginName"];wa=ya,ka=288,function(t){for(;--t;)wa.push(wa.shift())}(++ka);var Ca=function(t,e){return ya[t-=0]};class Aa extends t.Plugin{static get[Ca("0x0")](){return[Rr,hs,vs,Cs,ea,ua,_a]}static get[Ca("0x1")](){return"Comments"}}})(),(window.CKEditor5=window.CKEditor5||{}).comments=o})();
5
+ */(()=>{var t={275:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,":root{--ck-inline-annotation-container-width:300px;--ck-inline-annotation-container-max-height:400px}.ck.ck-balloon-panel .ck-annotation-wrapper{max-height:var(--ck-inline-annotation-container-max-height);overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;position:static;width:var(--ck-inline-annotation-container-width)}.ck.ck-balloon-panel .ck-annotation{animation:none}.ck.ck-balloon-panel .ck-annotation-wrapper *{white-space:normal}.ck.ck-balloon-panel .ck-annotation-wrapper strong{font-weight:700}.ck.ck-balloon-panel .ck-annotation-wrapper i{font-style:italic}",""]);const r=i},173:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,':root{--ck-color-annotation-icon:grey;--ck-color-annotation-info:#757575;--ck-annotation-button-size:0.85em}.ck .ck-annotation{--ck-user-avatar-size:28px;animation:fadeInLeft .3s;display:flex;font-size:var(--ck-font-size-base);padding:var(--ck-spacing-standard);position:relative;transition:background-color .3s ease}.ck .ck-annotation .ck-button{background-color:transparent;border-radius:var(--ck-border-radius);color:var(--ck-color-annotation-icon);cursor:pointer;font-size:var(--ck-annotation-button-size);min-height:unset;min-width:unset}.ck .ck-annotation__main{border-radius:var(--ck-border-radius);display:grid;grid-template-areas:"info actions" "content content";grid-template-columns:minmax(0,1fr) auto;padding-left:var(--ck-spacing-standard);transition:all .2s ease;width:calc(100% - var(--ck-user-avatar-size))}.ck .ck-annotation__main p{font-size:var(--ck-font-size-base);line-height:1.5em;margin:0;white-space:normal}.ck .ck-annotation__user{margin-top:var(--ck-spacing-small)}.ck .ck-annotation__info{align-items:center;color:var(--ck-color-annotation-info);display:flex;grid-area:info;min-height:2.4em}.ck .ck-annotation__info-name,.ck .ck-annotation__info-time{color:var(--ck-color-annotation-info);font-size:var(--ck-font-size-small);font-weight:700;overflow:hidden;white-space:nowrap}.ck .ck-annotation__info-name{text-overflow:ellipsis}.ck .ck-annotation__info-time{flex:0 0 auto;margin:0 var(--ck-spacing-large)}.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-name,.ck.ck-balloon-panel .ck-annotation-wrapper .ck-annotation__info-time{white-space:nowrap}.ck .ck-annotation__actions{grid-area:actions;opacity:.5;transition:opacity .2s ease}.ck .ck-annotation__content-wrapper{grid-area:content;width:100%}@keyframes fadeInLeft{0%{opacity:0;transform:translate3d(-5%,0,0)}to{opacity:1;transform:translateZ(0)}}',""]);const r=i},490:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,':root{--ck-color-comment-background:#f3f7fb;--ck-color-comment-separator:#cddeef;--ck-color-comment-remove-background:#fcc;--ck-color-comment-input-background:var(--ck-color-comment-background)}.ck .ck-comment__wrapper{font-size:var(--ck-font-size-base);outline:0;position:relative;transition:all .3s linear}.ck .ck-comment__wrapper.ck-comment--remove-confirmation{transform:translate3d(-100%,0,0)}.ck .ck-comment__wrapper:first-of-type{border-top-left-radius:var(--ck-border-radius);border-top-right-radius:var(--ck-border-radius)}.ck .ck-comment:after{background-color:var(--ck-color-comment-separator);content:"";display:block;height:100%;left:calc(var(--ck-spacing-standard) + var(--ck-user-avatar-size)/2 - 2px);opacity:1;position:absolute;top:calc(var(--ck-user-avatar-size) + var(--ck-spacing-small));width:4px}.ck .ck-comment--remove{background-color:var(--ck-color-comment-remove-background)}.ck .ck-comment--remove:after{opacity:0}.ck .ck-comment--edit{background-color:var(--ck-color-comment-input-background)}.ck .ck-comment--edit:after{opacity:0}.ck .ck-comment__main .ck-comment__input-wrapper{display:flex;flex-direction:column;position:relative;transition:all .3s linear}.ck .ck-comment__main .ck-comment__input-wrapper .ck-comment__input{padding:0}.ck .ck-comment__content{word-break:break-word}.ck .ck-comment__user{z-index:var(--ck-z-default)}.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--submit{color:var(--ck-color-button-save)}.ck-comment__input-actions .ck.ck-button.ck-comment__input-actions--cancel{color:var(--ck-color-button-cancel)}.ck .ck-comment p,.ck .ck-comment__input p{margin:0}.ck .ck-comment ol,.ck .ck-comment ul,.ck .ck-comment__input ol,.ck .ck-comment__input ul{margin-left:10px;padding-left:10px}.ck .ck-comment ul,.ck .ck-comment__input ul{list-style:disc;margin-bottom:5px;margin-top:0}.ck .ck-comment ul ul,.ck .ck-comment__input ul ul{list-style:circle}.ck .ck-comment ul ul ul,.ck .ck-comment__input ul ul ul{list-style:square}.ck .ck-comment__external{color:var(--ck-color-annotation-info);font-size:var(--ck-font-size-tiny);font-style:italic;margin-top:var(--ck-spacing-standard)}',""]);const r=i},424:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,".ck .ck-comment__input-container{--ck-user-avatar-size:28px;background:var(--ck-color-comment-background);display:none;font-size:var(--ck-font-size-base);padding:var(--ck-spacing-standard)}.ck .ck-comment__input-container--active{display:flex}.ck .ck-comment__input{background-color:transparent;border-width:0;color:var(--ck-color-base-text);padding:var(--ck-spacing-standard);padding-top:var(--ck-spacing-medium);resize:none;transition:color .3s ease-in-out}.ck .ck-comment__input:focus{outline:none}.ck .ck-comment__input .ck-editor__editable_inline{--ck-focus-ring:none;--ck-inner-shadow:none;background-color:transparent;border:0;overflow:visible;padding:0;word-break:break-word}.ck-comment__input-wrapper .ck.ck-editor__editable_inline :first-child{margin-top:0}.ck-comment__input-wrapper .ck.ck-editor__editable_inline :last-child{margin-bottom:0}.ck .ck-comment__input-actions{display:none;text-align:right;width:100%}.ck .ck-comment__input-actions.ck-comment__input-actions--active{display:block}.ck .ck-comment__input-actions .ck-button{background-color:transparent;border-radius:var(--ck-border-radius);color:var(--ck-color-annotations-icon);cursor:pointer;font-size:var(--ck-annotation-button-size);min-height:unset;min-width:unset}.ck .ck-comment__input-actions .ck-button.ck-disabled{opacity:.3}.ck .ck-comment__input-textarea{display:block}",""]);const r=i},446:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,":root{--ck-color-comment-marker:#fef7a9;--ck-color-comment-marker-active:#fdf05d}.ck-comment-marker{background:var(--ck-color-comment-marker);border-bottom:3px solid transparent;border-top:3px solid transparent}.ck-comment-marker.ck-widget{background-color:transparent;border:3px solid var(--ck-color-comment-marker)}.ck-comment-marker--active{background:var(--ck-color-comment-marker-active)}.ck-comment-marker--active.ck-widget{border-color:var(--ck-color-comment-marker-active)}.ck-comment-marker--active.ck-widget .ck-comment-marker{background-color:var(--ck-color-comment-marker)}.ck-comment-marker--active .ck-comment-marker{background:var(--ck-color-comment-marker-active)}",""]);const r=i},227:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,':root{--ck-color-thread-remove-background:var(--ck-color-comment-remove-background);--ck-color-comment-count:#5891ca}.ck .ck-thread{background-color:var(--ck-color-base-background);border-radius:var(--ck-border-radius);color:var(--ck-color-base-text);outline:0;overflow:hidden;transition:all .3s ease;width:100%}.ck .ck-thread__comments .ck-comment__wrapper:last-of-type .ck-comment:after{opacity:0}.ck .ck-thread__container{transition:transform .3s ease}.ck .ck-thread__comments{border-radius:var(--ck-border-radius);list-style:none;margin:0;overflow:hidden;padding:0;position:relative;z-index:var(--ck-z-default)}.ck .ck-thread__comment-count{--ck-user-avatar-size:28px;color:var(--ck-color-comment-count);cursor:pointer;font-size:var(--ck-font-size-base);font-weight:700;padding-left:calc(var(--ck-user-avatar-size) + var(--ck-spacing-standard)*2);transition:background-color .3s ease}.ck .ck-thread__comment-count:before{content:"\\25BC";margin-right:var(--ck-spacing-small)}.ck .ck-thread--active .ck-comment__options.ck-dropdown{display:block}.ck .ck-thread--active .ck-thread__input{background-color:var(--ck-color-comment-background);display:block}.ck .ck-thread--remove .ck-comment{background-color:var(--ck-color-comment-remove-background)}.ck .ck-thread--remove .ck-thread__input--active{background-color:var(--ck-color-base-background)}.ck .ck-thread--remove .ck-thread__comment-count,.ck .ck-thread--remove .ck-thread__input--active.ck-thread__input{background-color:var(--ck-color-comment-remove-background)}.ck .ck-thread--remove .ck-comment__wrapper .ck-comment:after{opacity:0}.ck .ck-thread--remove-confirmation .ck-thread__container{transform:translate3d(-100%,0,0)}.ck.ck-button.ck-thread__remove-confirm-submit{color:var(--ck-color-button-save)}.ck.ck-button.ck-thread__remove-confirm-cancel{color:var(--ck-color-button-cancel)}.ck .ck-thread__remove-confirm{background-color:var(--ck-color-comment-remove-background);display:flex;font-size:var(--ck-font-size-base);height:100%;justify-content:flex-start;left:100%;position:absolute;top:0;width:100%}.ck .ck-thread__remove-confirm .ck-thread__remove-confirm-inner{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;max-height:400px;padding-top:var(--ck-spacing-standard);width:100%}.ck .ck-thread__remove-confirm p{font-weight:700;margin:0}.ck .ck-thread__input{border-radius:var(--ck-border-radius);min-height:38px;transition:background-color .2s ease-in-out;width:calc(100% - var(--ck-user-avatar-size))}',""]);const r=i},28:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,":root{--ck-annotation-counter-icon-size:16px;--ck-annotation-counter-number-size:10px;--ck-color-annotation-counter-comment:#f2de02;--ck-color-annotation-counter-suggestion-insertion:#5ad86b;--ck-color-annotation-counter-suggestion-deletion:#d85a79;--ck-color-annotation-counter-suggestion-format:#5ac1d8}.ck.ck-sidebar--narrow .ck-sidebar-item{display:flex;justify-content:center}.ck.ck-sidebar--narrow .ck-annotation-counter{color:grey;cursor:pointer;font-size:var(--ck-annotation-counter-icon-size);min-height:unset;padding:0}.ck.ck-sidebar--narrow .ck-annotation-counter:focus,.ck.ck-sidebar--narrow .ck-annotation-counter:hover{background:transparent;box-shadow:none;color:#4d4d4d}.ck.ck-sidebar--narrow .ck-annotation-counter__badge{background:#333;border-radius:50%;color:#fff;display:flex;font-family:var(--ck-font-face);font-size:var(--ck-annotation-counter-number-size);font-weight:700;height:16px;justify-content:center;line-height:16px;position:absolute;right:0;text-shadow:-1px 0 2px #444,1px 0 2px #444;top:-6px;width:16px;z-index:1}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--edit-mode{line-height:1}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-insertion,.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-replace{background:var(--ck-color-annotation-counter-suggestion-insertion)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-deletion{background:var(--ck-color-annotation-counter-suggestion-deletion)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--suggestion-format{background:var(--ck-color-annotation-counter-suggestion-format)}.ck.ck-sidebar--narrow .ck-annotation-counter__badge--comment{background:var(--ck-color-annotation-counter-comment)}",""]);const r=i},100:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var o=n(758),i=n.n(o)()((function(t){return t[1]}));i.push([t.id,":root{--ck-color-annotation-wrapper-background:#fff;--ck-color-annotation-wrapper-drop-shadow:0 1px 1px 1px #e6e6e6}.ck.ck-sidebar{outline:0;position:relative;transition:min-height .25s ease}.ck-sidebar-item{position:absolute;transition:top .3s ease,box-shadow .3s ease;width:100%}.ck-sidebar-item--no-animation{transition:top 0s ease!important}.ck.ck-annotation-wrapper{background:var(--ck-color-annotation-wrapper-background);border-radius:var(--ck-border-radius);box-shadow:var(--ck-color-annotation-wrapper-drop-shadow);outline:0}.ck.ck-annotation-wrapper:not(.ck-annotation-wrapper--active):hover{box-shadow:var(--ck-drop-shadow)}.ck.ck-annotation-wrapper--active{box-shadow:var(--ck-drop-shadow-active)}.ck.ck-annotation-wrapper--active .ck-annotation__actions,.ck.ck-annotation-wrapper:hover .ck-annotation__actions{opacity:1}.ck.ck-annotation-wrapper--active .ck-suggestion--accept,.ck.ck-annotation-wrapper:hover .ck-suggestion--accept{color:var(--ck-color-button-save)}.ck.ck-annotation-wrapper--active .ck-suggestion--discard,.ck.ck-annotation-wrapper:hover .ck-suggestion--discard{color:var(--ck-color-button-cancel)}",""]);const r=i},758:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(i[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},278:(t,e,n)=>{"use strict";var o,i=function(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}t[e]=n}return t[e]}}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break}return e}function c(t,e){for(var n={},o=[],i=0;i<t.length;i++){var r=t[i],c=e.base?r[0]+e.base:r[0],x=n[c]||0,h="".concat(c," ").concat(x);n[c]=x+1;var d=a(h),l={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(s[d].references++,s[d].updater(l)):s.push({identifier:h,updater:p(l,e),references:1}),o.push(h)}return o}function x(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i)}if(Object.keys(o).forEach((function(t){e.setAttribute(t,o[t])})),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e)}return e}var h,d=(h=[],function(t,e){return h[t]=e,h.filter(Boolean).join("\n")});function l(t,e,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=d(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r)}}function u(t,e,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o))}}var m=null,f=0;function p(t,e){var n,o,i;if(e.singleton){var r=f++;n=m||(m=x(e)),o=l.bind(null,n,r,!1),i=l.bind(null,n,r,!0)}else n=x(e),o=u.bind(null,n,e),i=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e)}else i()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=c(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var i=a(n[o]);s[i].references--}for(var r=c(t,e),x=0;x<n.length;x++){var h=a(n[x]);0===s[h].references&&(s[h].updater(),s.splice(h,1))}n=r}}}},945:(t,e,n)=>{t.exports=n(79)("./src/clipboard.js")},417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},747:(t,e,n)=>{t.exports=n(79)("./src/paragraph.js")},468:(t,e,n)=>{t.exports=n(79)("./src/select-all.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},254:(t,e,n)=>{t.exports=n(79)("./src/undo.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={id:o,exports:{}};return t[o](r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nc=void 0;var o={};(()=>{"use strict";n.r(o),n.d(o,{Annotations:()=>zs,AnnotationsUIs:()=>Fa,BaseCommentThreadView:()=>_r,BaseCommentView:()=>Nr,Comments:()=>Pc,CommentsOnly:()=>Pc,InlineAnnotations:()=>Mc,NarrowSidebar:()=>Cc,WideSidebar:()=>uc});var t=n(704),e=n(209),i=n(417);const r=function(){this.__data__=[],this.size=0};const s=function(t,e){return t===e||t!=t&&e!=e};const a=function(t,e){for(var n=t.length;n--;)if(s(t[n][0],e))return n;return-1};var c=Array.prototype.splice;const x=function(t){var e=this.__data__,n=a(e,t);return!(n<0)&&(n==e.length-1?e.pop():c.call(e,n,1),--this.size,!0)};const h=function(t){var e=this.__data__,n=a(e,t);return n<0?void 0:e[n][1]};const d=function(t){return a(this.__data__,t)>-1};const l=function(t,e){var n=this.__data__,o=a(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function u(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}u.prototype.clear=r,u.prototype.delete=x,u.prototype.get=h,u.prototype.has=d,u.prototype.set=l;const m=u;const f=function(){this.__data__=new m,this.size=0};const p=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const g=function(t){return this.__data__.get(t)};const b=function(t){return this.__data__.has(t)};const v="object"==typeof global&&global&&global.Object===Object&&global;var _="object"==typeof self&&self&&self.Object===Object&&self;const w=v||_||Function("return this")();const k=w.Symbol;var y=Object.prototype,A=y.hasOwnProperty,C=y.toString,T=k?k.toStringTag:void 0;const E=function(t){var e=A.call(t,T),n=t[T];try{t[T]=void 0;var o=!0}catch(t){}var i=C.call(t);return o&&(e?t[T]=n:delete t[T]),i};var I=Object.prototype.toString;const O=function(t){return I.call(t)};var j="[object Null]",V="[object Undefined]",M=k?k.toStringTag:void 0;const R=function(t){return null==t?void 0===t?V:j:M&&M in Object(t)?E(t):O(t)};const S=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var N="[object AsyncFunction]",D="[object Function]",P="[object GeneratorFunction]",B="[object Proxy]";const L=function(t){if(!S(t))return!1;var e=R(t);return e==D||e==P||e==N||e==B};const z=w["__core-js_shared__"];var F,U=(F=/[^.]+$/.exec(z&&z.keys&&z.keys.IE_PROTO||""))?"Symbol(src)_1."+F:"";const K=function(t){return!!U&&U in t};var W=Function.prototype.toString;const H=function(t){if(null!=t){try{return W.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Z=/^\[object .+?Constructor\]$/,q=Function.prototype,X=Object.prototype,$=q.toString,G=X.hasOwnProperty,J=RegExp("^"+$.call(G).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Y=function(t){return!(!S(t)||K(t))&&(L(t)?J:Z).test(H(t))};const Q=function(t,e){return null==t?void 0:t[e]};const tt=function(t,e){var n=Q(t,e);return Y(n)?n:void 0};const et=tt(w,"Map");const nt=tt(Object,"create");const ot=function(){this.__data__=nt?nt(null):{},this.size=0};const it=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var rt="__lodash_hash_undefined__",st=Object.prototype.hasOwnProperty;const at=function(t){var e=this.__data__;if(nt){var n=e[t];return n===rt?void 0:n}return st.call(e,t)?e[t]:void 0};var ct=Object.prototype.hasOwnProperty;const xt=function(t){var e=this.__data__;return nt?void 0!==e[t]:ct.call(e,t)};var ht="__lodash_hash_undefined__";const dt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=nt&&void 0===e?ht:e,this};function lt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}lt.prototype.clear=ot,lt.prototype.delete=it,lt.prototype.get=at,lt.prototype.has=xt,lt.prototype.set=dt;const ut=lt;const mt=function(){this.size=0,this.__data__={hash:new ut,map:new(et||m),string:new ut}};const ft=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const pt=function(t,e){var n=t.__data__;return ft(e)?n["string"==typeof e?"string":"hash"]:n.map};const gt=function(t){var e=pt(this,t).delete(t);return this.size-=e?1:0,e};const bt=function(t){return pt(this,t).get(t)};const vt=function(t){return pt(this,t).has(t)};const _t=function(t,e){var n=pt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function wt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}wt.prototype.clear=mt,wt.prototype.delete=gt,wt.prototype.get=bt,wt.prototype.has=vt,wt.prototype.set=_t;const kt=wt;var yt=200;const At=function(t,e){var n=this.__data__;if(n instanceof m){var o=n.__data__;if(!et||o.length<yt-1)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new kt(o)}return n.set(t,e),this.size=n.size,this};function Ct(t){var e=this.__data__=new m(t);this.size=e.size}Ct.prototype.clear=f,Ct.prototype.delete=p,Ct.prototype.get=g,Ct.prototype.has=b,Ct.prototype.set=At;const Tt=Ct;var Et="__lodash_hash_undefined__";const It=function(t){return this.__data__.set(t,Et),this};const Ot=function(t){return this.__data__.has(t)};function jt(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new kt;++e<n;)this.add(t[e])}jt.prototype.add=jt.prototype.push=It,jt.prototype.has=Ot;const Vt=jt;const Mt=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const Rt=function(t,e){return t.has(e)};var St=1,Nt=2;const Dt=function(t,e,n,o,i,r){var s=n&St,a=t.length,c=e.length;if(a!=c&&!(s&&c>a))return!1;var x=r.get(t),h=r.get(e);if(x&&h)return x==e&&h==t;var d=-1,l=!0,u=n&Nt?new Vt:void 0;for(r.set(t,e),r.set(e,t);++d<a;){var m=t[d],f=e[d];if(o)var p=s?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==p){if(p)continue;l=!1;break}if(u){if(!Mt(e,(function(t,e){if(!Rt(u,e)&&(m===t||i(m,t,n,o,r)))return u.push(e)}))){l=!1;break}}else if(m!==f&&!i(m,f,n,o,r)){l=!1;break}}return r.delete(t),r.delete(e),l};const Pt=w.Uint8Array;const Bt=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Lt=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var zt=1,Ft=2,Ut="[object Boolean]",Kt="[object Date]",Wt="[object Error]",Ht="[object Map]",Zt="[object Number]",qt="[object RegExp]",Xt="[object Set]",$t="[object String]",Gt="[object Symbol]",Jt="[object ArrayBuffer]",Yt="[object DataView]",Qt=k?k.prototype:void 0,te=Qt?Qt.valueOf:void 0;const ee=function(t,e,n,o,i,r,a){switch(n){case Yt:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Jt:return!(t.byteLength!=e.byteLength||!r(new Pt(t),new Pt(e)));case Ut:case Kt:case Zt:return s(+t,+e);case Wt:return t.name==e.name&&t.message==e.message;case qt:case $t:return t==e+"";case Ht:var c=Bt;case Xt:var x=o&zt;if(c||(c=Lt),t.size!=e.size&&!x)return!1;var h=a.get(t);if(h)return h==e;o|=Ft,a.set(t,e);var d=Dt(c(t),c(e),o,i,r,a);return a.delete(t),d;case Gt:if(te)return te.call(t)==te.call(e)}return!1};const ne=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const oe=Array.isArray;const ie=function(t,e,n){var o=e(t);return oe(t)?o:ne(o,n(t))};const re=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r};const se=function(){return[]};var ae=Object.prototype.propertyIsEnumerable,ce=Object.getOwnPropertySymbols;const xe=ce?function(t){return null==t?[]:(t=Object(t),re(ce(t),(function(e){return ae.call(t,e)})))}:se;const he=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const de=function(t){return null!=t&&"object"==typeof t};var le="[object Arguments]";const ue=function(t){return de(t)&&R(t)==le};var me=Object.prototype,fe=me.hasOwnProperty,pe=me.propertyIsEnumerable;const ge=ue(function(){return arguments}())?ue:function(t){return de(t)&&fe.call(t,"callee")&&!pe.call(t,"callee")};const be=function(){return!1};var ve="object"==typeof exports&&exports&&!exports.nodeType&&exports,_e=ve&&"object"==typeof module&&module&&!module.nodeType&&module,we=_e&&_e.exports===ve?w.Buffer:void 0;const ke=(we?we.isBuffer:void 0)||be;var ye=9007199254740991,Ae=/^(?:0|[1-9]\d*)$/;const Ce=function(t,e){var n=typeof t;return!!(e=null==e?ye:e)&&("number"==n||"symbol"!=n&&Ae.test(t))&&t>-1&&t%1==0&&t<e};var Te=9007199254740991;const Ee=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=Te};var Ie={};Ie["[object Float32Array]"]=Ie["[object Float64Array]"]=Ie["[object Int8Array]"]=Ie["[object Int16Array]"]=Ie["[object Int32Array]"]=Ie["[object Uint8Array]"]=Ie["[object Uint8ClampedArray]"]=Ie["[object Uint16Array]"]=Ie["[object Uint32Array]"]=!0,Ie["[object Arguments]"]=Ie["[object Array]"]=Ie["[object ArrayBuffer]"]=Ie["[object Boolean]"]=Ie["[object DataView]"]=Ie["[object Date]"]=Ie["[object Error]"]=Ie["[object Function]"]=Ie["[object Map]"]=Ie["[object Number]"]=Ie["[object Object]"]=Ie["[object RegExp]"]=Ie["[object Set]"]=Ie["[object String]"]=Ie["[object WeakMap]"]=!1;const Oe=function(t){return de(t)&&Ee(t.length)&&!!Ie[R(t)]};const je=function(t){return function(e){return t(e)}};var Ve="object"==typeof exports&&exports&&!exports.nodeType&&exports,Me=Ve&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Me&&Me.exports===Ve&&v.process;const Se=function(){try{var t=Me&&Me.require&&Me.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ne=Se&&Se.isTypedArray;const De=Ne?je(Ne):Oe;var Pe=Object.prototype.hasOwnProperty;const Be=function(t,e){var n=oe(t),o=!n&&ge(t),i=!n&&!o&&ke(t),r=!n&&!o&&!i&&De(t),s=n||o||i||r,a=s?he(t.length,String):[],c=a.length;for(var x in t)!e&&!Pe.call(t,x)||s&&("length"==x||i&&("offset"==x||"parent"==x)||r&&("buffer"==x||"byteLength"==x||"byteOffset"==x)||Ce(x,c))||a.push(x);return a};var Le=Object.prototype;const ze=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Le)};const Fe=function(t,e){return function(n){return t(e(n))}};const Ue=Fe(Object.keys,Object);var Ke=Object.prototype.hasOwnProperty;const We=function(t){if(!ze(t))return Ue(t);var e=[];for(var n in Object(t))Ke.call(t,n)&&"constructor"!=n&&e.push(n);return e};const He=function(t){return null!=t&&Ee(t.length)&&!L(t)};const Ze=function(t){return He(t)?Be(t):We(t)};const qe=function(t){return ie(t,Ze,xe)};var Xe=1,$e=Object.prototype.hasOwnProperty;const Ge=function(t,e,n,o,i,r){var s=n&Xe,a=qe(t),c=a.length;if(c!=qe(e).length&&!s)return!1;for(var x=c;x--;){var h=a[x];if(!(s?h in e:$e.call(e,h)))return!1}var d=r.get(t),l=r.get(e);if(d&&l)return d==e&&l==t;var u=!0;r.set(t,e),r.set(e,t);for(var m=s;++x<c;){var f=t[h=a[x]],p=e[h];if(o)var g=s?o(p,f,h,e,t,r):o(f,p,h,t,e,r);if(!(void 0===g?f===p||i(f,p,n,o,r):g)){u=!1;break}m||(m="constructor"==h)}if(u&&!m){var b=t.constructor,v=e.constructor;b==v||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof v&&v instanceof v||(u=!1)}return r.delete(t),r.delete(e),u};const Je=tt(w,"DataView");const Ye=tt(w,"Promise");const Qe=tt(w,"Set");const tn=tt(w,"WeakMap");var en="[object Map]",nn="[object Promise]",on="[object Set]",rn="[object WeakMap]",sn="[object DataView]",an=H(Je),cn=H(et),xn=H(Ye),hn=H(Qe),dn=H(tn),ln=R;(Je&&ln(new Je(new ArrayBuffer(1)))!=sn||et&&ln(new et)!=en||Ye&&ln(Ye.resolve())!=nn||Qe&&ln(new Qe)!=on||tn&&ln(new tn)!=rn)&&(ln=function(t){var e=R(t),n="[object Object]"==e?t.constructor:void 0,o=n?H(n):"";if(o)switch(o){case an:return sn;case cn:return en;case xn:return nn;case hn:return on;case dn:return rn}return e});const un=ln;var mn=1,fn="[object Arguments]",pn="[object Array]",gn="[object Object]",bn=Object.prototype.hasOwnProperty;const vn=function(t,e,n,o,i,r){var s=oe(t),a=oe(e),c=s?pn:un(t),x=a?pn:un(e),h=(c=c==fn?gn:c)==gn,d=(x=x==fn?gn:x)==gn,l=c==x;if(l&&ke(t)){if(!ke(e))return!1;s=!0,h=!1}if(l&&!h)return r||(r=new Tt),s||De(t)?Dt(t,e,n,o,i,r):ee(t,e,c,n,o,i,r);if(!(n&mn)){var u=h&&bn.call(t,"__wrapped__"),m=d&&bn.call(e,"__wrapped__");if(u||m){var f=u?t.value():t,p=m?e.value():e;return r||(r=new Tt),i(f,p,n,o,r)}}return!!l&&(r||(r=new Tt),Ge(t,e,n,o,i,r))};const _n=function t(e,n,o,i,r){return e===n||(null==e||null==n||!de(e)&&!de(n)?e!=e&&n!=n:vn(e,n,o,i,t,r))};const wn=function(t,e){return _n(t,e)};const kn=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const yn=function(){try{var t=tt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const An=function(t,e,n){"__proto__"==e&&yn?yn(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var Cn=Object.prototype.hasOwnProperty;const Tn=function(t,e,n){var o=t[e];Cn.call(t,e)&&s(o,n)&&(void 0!==n||e in t)||An(t,e,n)};const En=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],c=o?o(n[a],t[a],a,n,t):void 0;void 0===c&&(c=t[a]),i?An(n,a,c):Tn(n,a,c)}return n};const In=function(t,e){return t&&En(e,Ze(e),t)};const On=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var jn=Object.prototype.hasOwnProperty;const Vn=function(t){if(!S(t))return On(t);var e=ze(t),n=[];for(var o in t)("constructor"!=o||!e&&jn.call(t,o))&&n.push(o);return n};const Mn=function(t){return He(t)?Be(t,!0):Vn(t)};const Rn=function(t,e){return t&&En(e,Mn(e),t)};var Sn="object"==typeof exports&&exports&&!exports.nodeType&&exports,Nn=Sn&&"object"==typeof module&&module&&!module.nodeType&&module,Dn=Nn&&Nn.exports===Sn?w.Buffer:void 0,Pn=Dn?Dn.allocUnsafe:void 0;const Bn=function(t,e){if(e)return t.slice();var n=t.length,o=Pn?Pn(n):new t.constructor(n);return t.copy(o),o};const Ln=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const zn=function(t,e){return En(t,xe(t),e)};const Fn=Fe(Object.getPrototypeOf,Object);const Un=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)ne(e,xe(t)),t=Fn(t);return e}:se;const Kn=function(t,e){return En(t,Un(t),e)};const Wn=function(t){return ie(t,Mn,Un)};var Hn=Object.prototype.hasOwnProperty;const Zn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Hn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const qn=function(t){var e=new t.constructor(t.byteLength);return new Pt(e).set(new Pt(t)),e};const Xn=function(t,e){var n=e?qn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var $n=/\w*$/;const Gn=function(t){var e=new t.constructor(t.source,$n.exec(t));return e.lastIndex=t.lastIndex,e};var Jn=k?k.prototype:void 0,Yn=Jn?Jn.valueOf:void 0;const Qn=function(t){return Yn?Object(Yn.call(t)):{}};const to=function(t,e){var n=e?qn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var eo="[object Boolean]",no="[object Date]",oo="[object Map]",io="[object Number]",ro="[object RegExp]",so="[object Set]",ao="[object String]",co="[object Symbol]",xo="[object ArrayBuffer]",ho="[object DataView]",lo="[object Float32Array]",uo="[object Float64Array]",mo="[object Int8Array]",fo="[object Int16Array]",po="[object Int32Array]",go="[object Uint8Array]",bo="[object Uint8ClampedArray]",vo="[object Uint16Array]",_o="[object Uint32Array]";const wo=function(t,e,n){var o=t.constructor;switch(e){case xo:return qn(t);case eo:case no:return new o(+t);case ho:return Xn(t,n);case lo:case uo:case mo:case fo:case po:case go:case bo:case vo:case _o:return to(t,n);case oo:return new o;case io:case ao:return new o(t);case ro:return Gn(t);case so:return new o;case co:return Qn(t)}};var ko=Object.create;const yo=function(){function t(){}return function(e){if(!S(e))return{};if(ko)return ko(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Ao=function(t){return"function"!=typeof t.constructor||ze(t)?{}:yo(Fn(t))};var Co="[object Map]";const To=function(t){return de(t)&&un(t)==Co};var Eo=Se&&Se.isMap;const Io=Eo?je(Eo):To;var Oo="[object Set]";const jo=function(t){return de(t)&&un(t)==Oo};var Vo=Se&&Se.isSet;const Mo=Vo?je(Vo):jo;var Ro=1,So=2,No=4,Do="[object Arguments]",Po="[object Function]",Bo="[object GeneratorFunction]",Lo="[object Object]",zo={};zo[Do]=zo["[object Array]"]=zo["[object ArrayBuffer]"]=zo["[object DataView]"]=zo["[object Boolean]"]=zo["[object Date]"]=zo["[object Float32Array]"]=zo["[object Float64Array]"]=zo["[object Int8Array]"]=zo["[object Int16Array]"]=zo["[object Int32Array]"]=zo["[object Map]"]=zo["[object Number]"]=zo[Lo]=zo["[object RegExp]"]=zo["[object Set]"]=zo["[object String]"]=zo["[object Symbol]"]=zo["[object Uint8Array]"]=zo["[object Uint8ClampedArray]"]=zo["[object Uint16Array]"]=zo["[object Uint32Array]"]=!0,zo["[object Error]"]=zo[Po]=zo["[object WeakMap]"]=!1;const Fo=function t(e,n,o,i,r,s){var a,c=n&Ro,x=n&So,h=n&No;if(o&&(a=r?o(e,i,r,s):o(e)),void 0!==a)return a;if(!S(e))return e;var d=oe(e);if(d){if(a=Zn(e),!c)return Ln(e,a)}else{var l=un(e),u=l==Po||l==Bo;if(ke(e))return Bn(e,c);if(l==Lo||l==Do||u&&!r){if(a=x||u?{}:Ao(e),!c)return x?Kn(e,Rn(a,e)):zn(e,In(a,e))}else{if(!zo[l])return r?e:{};a=wo(e,l,c)}}s||(s=new Tt);var m=s.get(e);if(m)return m;s.set(e,a),Mo(e)?e.forEach((function(i){a.add(t(i,n,o,i,e,s))})):Io(e)&&e.forEach((function(i,r){a.set(r,t(i,n,o,r,e,s))}));var f=d?void 0:(h?x?Wn:qe:x?Mn:Ze)(e);return kn(f||e,(function(i,r){f&&(i=e[r=i]),Tn(a,r,t(i,n,o,r,e,s))})),a};var Uo=1,Ko=4;const Wo=function(t){return Fo(t,Uo|Ko)};var Ho="[object Symbol]";const Zo=function(t){return"symbol"==typeof t||de(t)&&R(t)==Ho};var qo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Xo=/^\w*$/;const $o=function(t,e){if(oe(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!Zo(t))||(Xo.test(t)||!qo.test(t)||null!=e&&t in Object(e))};var Go="Expected a function";function Jo(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(Go);var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(Jo.Cache||kt),n}Jo.Cache=kt;const Yo=Jo;var Qo=500;var ti=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ei=/\\(\\)?/g;const ni=function(t){var e=Yo(t,(function(t){return n.size===Qo&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ti,(function(t,n,o,i){e.push(o?i.replace(ei,"$1"):n||t)})),e}));const oi=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var ii=1/0,ri=k?k.prototype:void 0,si=ri?ri.toString:void 0;const ai=function t(e){if("string"==typeof e)return e;if(oe(e))return oi(e,t)+"";if(Zo(e))return si?si.call(e):"";var n=e+"";return"0"==n&&1/e==-ii?"-0":n};const ci=function(t){return null==t?"":ai(t)};const xi=function(t,e){return oe(t)?t:$o(t,e)?[t]:ni(ci(t))};var hi=1/0;const di=function(t){if("string"==typeof t||Zo(t))return t;var e=t+"";return"0"==e&&1/t==-hi?"-0":e};const li=function(t,e,n,o){if(!S(t))return t;for(var i=-1,r=(e=xi(e,t)).length,s=r-1,a=t;null!=a&&++i<r;){var c=di(e[i]),x=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return t;if(i!=s){var h=a[c];void 0===(x=o?o(h,c,a):void 0)&&(x=S(h)?h:Ce(e[i+1])?[]:{})}Tn(a,c,x),a=a[c]}return t};const ui=function(t,e,n){return null==t?t:li(t,e,n)};const mi=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const fi=function(t,e){for(var n=0,o=(e=xi(e,t)).length;null!=t&&n<o;)t=t[di(e[n++])];return n&&n==o?t:void 0};const pi=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const gi=function(t,e){return e.length<2?t:fi(t,pi(e,0,-1))};const bi=function(t,e){return e=xi(e,t),null==(t=gi(t,e))||delete t[di(mi(e))]};const vi=function(t,e){return null==t||bi(t,e)};var _i,wi,ki=["remove","update","view","stopListening","addComment","getComment","removeComment","listenTo","destroy","removeCommentThread","model","updateComment"];_i=ki,wi=498,function(t){for(;--t;)_i.push(_i.shift())}(++wi);var yi=function(t,e){return ki[t-=0]};class Ai{constructor(t,e){this.model=t,this[yi("0x4")]._isAttached=!0,this[yi("0x8")]=e,this[yi("0x1")](e,yi("0x3"),(()=>this[yi("0x6")]())),this.listenTo(e,yi("0xa"),((t,e)=>this[yi("0xa")](e))),this.listenTo(e,"updateComment",((t,e,n)=>this[yi("0x5")](e,n))),this.listenTo(e,yi("0x0"),((t,e)=>this[yi("0x0")](e)))}[yi("0x6")](){this[yi("0x4")][yi("0x6")]()}[yi("0xa")](t){this[yi("0x4")].addComment({content:t,authorId:this[yi("0x8")]._localUser.id})}updateComment(t,e){this[yi("0x4")][yi("0xb")](t)[yi("0x7")]({content:e})}[yi("0x0")](t){this.model[yi("0xb")](t).remove()}[yi("0x2")](){this[yi("0x9")](),this[yi("0x4")]._isAttached=!1}}(0,e.mix)(Ai,e.ObservableMixin);var Ci=n(273);function Ti(t,e,n){const o=t.t;switch(e){case"PENDING_ACTION_COMMENT_THREAD":return o({string:"Unsaved change in comment thread.",id:"PENDING_ACTION_COMMENT_THREAD"});case"Comment":return o("Comment");case"Reply...":return o("Reply...");case"Write a comment...":return o("Write a comment...");case"Comment editor":return o("Comment editor");case"Delete comment thread?":return o("Delete comment thread?");case"Delete comment?":return o("Delete comment?");case"Cancel":return o("Cancel");case"Edit":return o("Edit");case"Remove":return o("Remove");case"Submit":return o("Submit");case"NUMBER_OF_COMMENTS":return o({string:"%0 Comment",plural:"%0 Comments",id:"NUMBER_OF_COMMENTS"},n);case"TOO_LONG_COMMENT_ALERT":return o({string:"Comment content is too long. Your comment has %0 characters but the limit is %1 characters.",id:"TOO_LONG_COMMENT_ALERT"},n);case"EXTERNAL_COMMENT":return o({string:"This comment comes from an external source.",id:"EXTERNAL_COMMENT"});case"EXTERNAL_IMPORT_WORD_COMMENT":return o({string:"This comment comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_COMMENT"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n)}}const Ei=["focus","createCollection","extendTemplate","ck-voice-label","setTemplate","editable","text","ck-editor__main","comment","ck-editor","ck-editor__aria-label_","cke-editor__aria-label_","main","element","Comment editor","add","render"];var Ii,Oi;Ii=Ei,Oi=464,function(t){for(;--t;)Ii.push(Ii.shift())}(++Oi);const ji=function(t,e){return Ei[t-=0]};class Vi extends Ci.EditorUIView{constructor(t,n){super(t);const o=(0,e.uid)();this[ji("0x7")]=this[ji("0xd")](),this[ji("0x0")]=new Ci.InlineEditableUIView(t,n),this._voiceLabelView=this._createVoiceLabel(o,t),this[ji("0x10")]({tag:"div",attributes:{class:["ck-reset",ji("0x4"),"ck-rounded-corners","ck-comment__input"],role:ji("0x3"),dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":ji("0x6")+o},children:[this._voiceLabelView,{tag:"div",attributes:{class:ji("0x2"),role:"presentation"},children:this[ji("0x7")]}]})}[ji("0xb")](){super[ji("0xb")](),this[ji("0x7")][ji("0xa")](this[ji("0x0")])}[ji("0xc")](){this[ji("0x0")][ji("0x8")][ji("0xc")]()}_createVoiceLabel(t,e){const n=new Ci.LabelView;return n[ji("0x1")]=Ti(e,ji("0x9")),n[ji("0xe")]({attributes:{id:ji("0x5")+t,class:ji("0xf")}}),n}}const Mi=["render","ready","init","document","name","fire","locale","view","isFocused","bind","getRoot","element","destroy","rootName","editable"];var Ri,Si;Ri=Mi,Si=188,function(t){for(;--t;)Ri.push(Ri.shift())}(++Si);const Ni=function(t,e){return Mi[t-=0]};class Di extends Ci.EditorUI{constructor(t){super(t),this[Ni("0xe")]=new Vi(t[Ni("0xd")],t.editing[Ni("0xe")])}get[Ni("0x3")](){return this[Ni("0xe")][Ni("0x3")]}[Ni("0x9")](){const t=this.editor.editing[Ni("0xe")],e=this.view[Ni("0x6")],n=t[Ni("0xa")][Ni("0x2")]();e[Ni("0xb")]=n[Ni("0x5")],this[Ni("0xe")][Ni("0x7")]();const o=e[Ni("0x3")];this.setEditableElement(e[Ni("0xb")],o),this.view[Ni("0x6")][Ni("0x1")](Ni("0x0")).to(this.focusTracker),t.attachDomRoot(o),this[Ni("0xc")](Ni("0x8"))}[Ni("0x4")](){super[Ni("0x4")](),this[Ni("0xe")][Ni("0x4")]()}}var Pi=n(492),Bi=n(945),Li=n(331),zi=n(468),Fi=n(181),Ui=n(254),Ki=n(747);const Wi=["create","placeholderElement","getRoot","init","fire","config","name","placeholder","document","view","childCount","plugins","assign","get","end","defaultPlugins","getChild","editing","initPlugins","initialData","model","then","_updatePlaceholder","change","data","focus","destroy","set","createRoot","low","change:placeholder"];var Hi,Zi;Hi=Wi,Zi=486,function(t){for(;--t;)Hi.push(Hi.shift())}(++Zi);const qi=function(t,e){return Wi[t-=0]};class Xi extends t.Editor{constructor(t={}){(t=Object[qi("0x16")]({},t))[qi("0x15")]||(t[qi("0x15")]=Xi[qi("0x19")]),super(t),this.ui=new Di(this),this[qi("0x6")](qi("0x11"),""),this[qi("0x1e")][qi("0x12")].on(qi("0x2"),(()=>this[qi("0x1")]()),{priority:qi("0x8")}),this.on(qi("0x9"),(()=>this[qi("0x1")]())),this[qi("0x1e")][qi("0x12")][qi("0x7")]()}[qi("0xa")](){const t=this[qi("0xf")][qi("0x17")](qi("0x1d"))||"";return this[qi("0x1c")]()[qi("0x0")]((()=>this.ui[qi("0xd")]()))[qi("0x0")]((()=>this[qi("0x3")][qi("0xd")](t))).then((()=>this[qi("0xe")]("ready")))}[qi("0x5")](){return super[qi("0x5")]().then((()=>this.ui[qi("0x5")]()))}[qi("0x4")](){this[qi("0x1e")][qi("0x2")]((t=>{const e=this.model[qi("0x12")].getRoot(),n=e.getChild(e[qi("0x14")]-1);t.setSelection(n,qi("0x18")),this.editing.view.focus()}))}[qi("0x1")](){const t=this[qi("0x1b")][qi("0x13")],e=t[qi("0x12")][qi("0xc")](),n=e[qi("0x1a")](0);e.childCount>1||!n||"p"!=n[qi("0x10")]?this[qi("0xb")]&&((0,Pi.disablePlaceholder)(t,this[qi("0xb")]),this[qi("0xb")]=void 0):((0,Pi.enablePlaceholder)({view:t,element:n,text:this.placeholder,keepOnFocus:!0}),this[qi("0xb")]=n)}}(0,e.mix)(Xi,e.ObservableMixin),(0,e.mix)(Xi,t.DataApiMixin),Xi.defaultPlugins=[Bi.Clipboard,Li.Enter,Li.ShiftEnter,zi.SelectAll,Fi.Typing,Ui.Undo,Ki.Paragraph];const $i=["Esc","insertBefore","focusTracker","cancel","set","getData","model","_initializeFocusCycling","execute","length","_createCancelButton","low","_isDestroyed","render","keystrokes","disabledSubmit","editorReady","ck-comment__input-wrapper","tab","firstChild","initialData","bindTemplate","createEditor","label","change","focus","_createSubmitButton","Reply...","ck-comment__input-actions--cancel","ck-comment__input-actions--active","stop","element","document","destroy","cancelButtonView","forEach","ck-comment__input-actions","submitButtonView","editor","_editorConfig","focusPrevious","bind","high","submit","fire","_editorCreationPromise","isEnabled","extendTemplate","setData","placeholder","then","setTemplate","showButtons","icon","value","add","div","trim"];var Gi,Ji;Gi=$i,Ji=375,function(t){for(;--t;)Gi.push(Gi.shift())}(++Ji);const Yi=function(t,e){return $i[t-=0]};class Qi extends Ci.View{constructor(t,n={}){super(t),this[Yi("0xb")]=null,this[Yi("0xc")]=n,this[Yi("0x2d")]=new e.KeystrokeHandler,this.focusTracker=new e.FocusTracker,this[Yi("0x23")](Yi("0x1b"),n[Yi("0x33")]||""),this.set(Yi("0x2e"),!1),this[Yi("0x23")]("showButtons",!0),this.set(Yi("0x16"),Ti(t,Yi("0x0"))),this[Yi("0xa")]=this[Yi("0x39")](),this[Yi("0x7")]=this[Yi("0x29")](),this[Yi("0x18")]({tag:Yi("0x1d"),attributes:{class:[Yi("0x30")]},children:[{tag:Yi("0x1d"),attributes:{class:[Yi("0x9"),this[Yi("0x34")].if(Yi("0x19"),Yi("0x2"))]},children:[this[Yi("0xa")],this[Yi("0x7")]]}]}),this.keystrokes[Yi("0x23")](Yi("0x1f"),((t,e)=>{this[Yi("0x7")][Yi("0x11")](Yi("0x27")),e()})),this.on(Yi("0x10"),((e,n)=>{n[Yi("0x28")]>65e3?(alert(Ti(t,"TOO_LONG_COMMENT_ALERT",[n.length,65e3])),e[Yi("0x3")]()):this[Yi("0xb")][Yi("0x15")]("")}),{priority:Yi("0xf")})}[Yi("0x2c")](){super[Yi("0x2c")](),this[Yi("0x2d")].listenTo(this.element),this[Yi("0x21")][Yi("0x1c")](this[Yi("0x4")])}[Yi("0x35")](){return this.editor||(this[Yi("0xb")]=new Xi(this._editorConfig),this[Yi("0x12")]=this[Yi("0xb")].create()[Yi("0x17")]((()=>{this[Yi("0x2b")]||(this.element[Yi("0x20")](this[Yi("0xb")].ui.element,this[Yi("0x4")][Yi("0x32")]),this[Yi("0xb")][Yi("0x25")][Yi("0x5")].on(Yi("0x37"),(()=>this[Yi("0x1b")]=this[Yi("0xb")][Yi("0x24")]())),this[Yi("0xb")][Yi("0xe")]("placeholder").to(this),this[Yi("0x26")](this.editor),this[Yi("0x11")](Yi("0x2f")))}))),this[Yi("0x12")]}focus(){this[Yi("0xb")]&&this.editor[Yi("0x38")]()}async destroy(){this[Yi("0x2b")]||(this._isDestroyed=!0,this[Yi("0xb")]&&(await this[Yi("0x12")],await this[Yi("0xb")][Yi("0x6")]()),await super.destroy())}[Yi("0x39")](){const{locale:e}=this,n=new Ci.ButtonView(e);return n[Yi("0x14")]({attributes:{class:["ck-comment__input-actions--submit"]}}),n.label=Ti(e,"Submit"),n[Yi("0x1a")]=t.icons.check,n.on("execute",(()=>{this.fire("submit",this[Yi("0x1b")])})),n.bind(Yi("0x13")).to(this,Yi("0x1b"),this,Yi("0x2e"),((t,e)=>!e&&!!t[Yi("0x1e")]())),n}_createCancelButton(){const{locale:e}=this,n=new Ci.ButtonView(e);return n[Yi("0x14")]({attributes:{class:[Yi("0x1")]}}),n[Yi("0x36")]=Ti(e,"Cancel"),n[Yi("0x1a")]=t.icons[Yi("0x22")],n.on(Yi("0x27"),(()=>{this[Yi("0xb")].setData(""),this[Yi("0x11")](Yi("0x22"))})),n}_initializeFocusCycling(t){const e=this.focusTracker,n=new Ci.ViewCollection;[t.ui.view,this[Yi("0xa")],this[Yi("0x7")]][Yi("0x8")]((t=>{n[Yi("0x1c")](t),e.add(t[Yi("0x4")])}));const o=new Ci.FocusCycler({focusables:n,focusTracker:e});this[Yi("0x2d")][Yi("0x23")](Yi("0x31"),((t,e)=>{o.focusNext(),e()}),{priority:Yi("0x2a")}),this[Yi("0x2d")][Yi("0x23")]("shift + tab",((t,e)=>{o[Yi("0xd")](),e()}),{priority:Yi("0x2a")})}}var tr,er,nr=["destroy","ck-thread__input","div","bind","then","value","userView","editor","ck-comment__input-container--active","set","commentInputView","createEditor","ck-thread__user","showInput"];tr=nr,er=338,function(t){for(;--t;)tr.push(tr.shift())}(++er);var or=function(t,e){return nr[t-=0]};class ir extends Ci.View{constructor(t,e,n){super(t),this[or("0x8")]=new Qi(t,n),this[or("0x8")][or("0x1")]("showButtons").to(this.commentInputView.focusTracker,"isFocused",this.commentInputView,or("0x3"),((t,e)=>t||!!e)),this[or("0x7")](or("0xb"),!1),this.on("change:showInput",(()=>{this[or("0xb")]&&!this[or("0x8")][or("0x5")]&&this[or("0x8")][or("0x9")]()})),this[or("0x4")]=new i.UserView(t,e),this[or("0x4")].extendTemplate({attributes:{class:or("0xa")}}),this[or("0x8")].extendTemplate({attributes:{class:or("0xd")}}),this.setTemplate({tag:or("0x0"),attributes:{class:["ck-comment__input-container",this.bindTemplate.if("showInput",or("0x6"))]},children:[this.userView,this[or("0x8")]]})}[or("0xc")](){return this[or("0x8")][or("0xc")]()[or("0x2")]((()=>super[or("0xc")]()))}}const rr=["count","setTemplate","bindTemplate","NUMBER_OF_COMMENTS"];var sr,ar;sr=rr,ar=449,function(t){for(;--t;)sr.push(sr.shift())}(++ar);const cr=function(t,e){return rr[t-=0]};class xr extends Ci.View{constructor(t){super(t);const e=this[cr("0x1")];this.set("count"),this[cr("0x0")]({tag:"li",attributes:{class:"ck-thread__comment-count"},children:[{text:e.to(cr("0x3"),(e=>Ti(t,cr("0x2"),e)))}]})}}const hr=["set","createCollection","_shouldCollapse","equal","setTemplate","length","delete","_handleNewCommentModel","listenTo","_model","add","render","refreshVisibleViews","change:isActive","isActive","maxThreadTotalWeight","some","change:isEditMode","maxCommentCharsWhenCollapsed","_collapsedCommentsView","commentViews","ck-thread__comments","CommentView","_updateHasDirtyComment","insert","_config","editorConfig","remove","delegate","from","hasDirtyComment","element","_handleRemoveCommentModel","stopListening","change:hasDirtyComment","destroy","formatDateTime","comments","visibleViews","removeComment","commentUpdated","_rearrangeCollapse","maxCommentsWhenCollapsed","isEditMode","count","weight"];var dr,lr;dr=hr,lr=434,function(t){for(;--t;)dr.push(dr.shift())}(++lr);const ur=function(t,e){return hr[t-=0]};class mr extends Ci.View{constructor(t,e,n){super(t),this.set(ur("0xa"),!1),this[ur("0x1a")](ur("0x1f"),e[ur("0x11")].length),this[ur("0x1a")]("isActive",!1),this[ur("0x23")]=e,this[ur("0x5")]=n,this[ur("0x0")]=this[ur("0x1b")](),this[ur("0x12")]=this[ur("0x1b")](),this[ur("0x2d")]=new xr(t),this[ur("0x2d")].bind(ur("0x18")).to(this,ur("0x1f"),(t=>t-this._config[ur("0x16")]));for(const t of e[ur("0x11")])this[ur("0x21")](t);this[ur("0x22")](e.comments,"add",((t,e)=>{this[ur("0x1f")]++,this[ur("0x21")](e),this[ur("0x26")]()})),this[ur("0x22")](e[ur("0x11")],ur("0x7"),((t,e)=>{this[ur("0x1f")]--,this[ur("0xc")](e),this[ur("0x26")]()})),this.listenTo(e,ur("0x14"),(()=>this[ur("0x26")]())),this.on(ur("0x27"),(()=>this.refreshVisibleViews())),this.on(ur("0xe"),(()=>this[ur("0x26")]())),this[ur("0x1e")]({tag:"ul",attributes:{class:[ur("0x1")]},children:this[ur("0x12")]})}get[ur("0x1c")](){return this[ur("0x23")][ur("0x19")]>this[ur("0x5")][ur("0x29")]&&!this[ur("0x28")]&&!this[ur("0xa")]}[ur("0x25")](){super.render(),this[ur("0x26")]()}focus(){this[ur("0xb")].focus()}[ur("0xf")](){this[ur("0x2d")].destroy();for(const t of this[ur("0x0")])t.destroy();super[ur("0xf")]()}[ur("0x26")](){this[ur("0x1c")]?this._rearrangeCollapse():this._rearrangeExpand()}_handleNewCommentModel(t){const e=new(this[ur("0x5")][ur("0x2")])(this.locale,t,{maxCommentCharsWhenCollapsed:this._config[ur("0x2c")],formatDateTime:this[ur("0x5")][ur("0x10")],editorConfig:this[ur("0x5")][ur("0x6")]});e.viewUid=t.id,e[ur("0x8")](ur("0x13")).to(this),e[ur("0x8")]("updateComment").to(this),this[ur("0x22")](e,ur("0x2b"),(()=>this[ur("0x3")]())),this[ur("0x0")][ur("0x24")](e)}[ur("0xc")](t){const e=this[ur("0x0")][ur("0x7")](t.id);this[ur("0xd")](e),e.isEditMode&&this[ur("0x3")](),e[ur("0xf")]()}_updateHasDirtyComment(){this.hasDirtyComment=Array[ur("0x9")](this[ur("0x0")])[ur("0x2a")]((t=>t[ur("0x17")]))}[ur("0x15")](){const t=function(t){const n=new e.Collection;for(const e of t)n[ur("0x24")](e);return n}(this[ur("0x0")]),n=this._collapsedCommentsView[ur("0x18")];for(let e=1;e<=n;e++)t[ur("0x7")](1);for(const e of t)e.collapse();n>0&&t.add(this._collapsedCommentsView,1),fr((0,e.diff)(Array.from(this[ur("0x12")]),Array[ur("0x9")](t)),this.visibleViews,t)}_rearrangeExpand(){fr((0,e.diff)(Array.from(this[ur("0x12")]),Array[ur("0x9")](this.commentViews)),this[ur("0x12")],this[ur("0x0")]);for(const t of this[ur("0x12")])t.expand()}}function fr(t,e,n){let o=0;for(const i of t)switch(i){case ur("0x4"):e[ur("0x24")](n.get(o),o),o++;break;case ur("0x20"):e[ur("0x7")](o);break;case ur("0x1d"):o++}}const pr=["cancel","placeholder","isReadOnly","_createCommentThreadInputView","set","focus","disabledSubmit","Reply...","assign","fire","element","length","commentThreadInputView","_config","addComment","stop","change:isActive","destroy","commentsListView","isDirty","removeComment","locale","value","_localUser","submit","hasDirtyComment","delegate","_model","commentInputView","updateComment","removeCommentThread","bind","isActive","Write a comment..."];var gr,br;gr=pr,br=485,function(t){for(;--t;)gr.push(gr.shift())}(++br);const vr=function(t,e){return pr[t-=0]};class _r extends Ci.View{constructor(t,e,n,o){super(t),this[vr("0x1d")](vr("0x17"),!1),this[vr("0x1d")]("isDirty",!1),this[vr("0x12")]=e,this[vr("0xe")]=n,this._config=o,this[vr("0x9")]=new mr(t,e,Object[vr("0x21")]({CommentView:this[vr("0x4")].CommentView},o)),this[vr("0x9")].delegate(vr("0xb")).to(this),this[vr("0x9")][vr("0x11")](vr("0x14")).to(this),this[vr("0x9")][vr("0x16")](vr("0x17")).to(this),this[vr("0x1d")](vr("0x2"),this.commentsListView[vr("0x2")]),this[vr("0x16")](vr("0x2")).to(this[vr("0x9")],"length"),this[vr("0x3")]=this._createCommentThreadInputView(),this.on(vr("0xb"),(()=>this.focus())),this[vr("0x16")](vr("0xa")).to(this[vr("0x9")],vr("0x10"),this[vr("0x3")].commentInputView,vr("0xd"),((t,e)=>t||!!e))}[vr("0x1e")](){this[vr("0x1")][vr("0x1e")]()}[vr("0x8")](){this.isDirty=!1,this.commentsListView.destroy(),this[vr("0x3")][vr("0x8")](),super[vr("0x8")]()}[vr("0x1c")](){const t=new ir(this[vr("0xc")],this[vr("0xe")],this._config.editorConfig),e=t[vr("0x13")];return t[vr("0x16")]("showInput").to(this,"isActive",this[vr("0x12")],vr("0x1b"),e,vr("0xd"),((t,e,n)=>!!n||t&&!e)),e[vr("0x16")](vr("0x1a")).to(this,"length",(t=>Ti(this[vr("0xc")],vr(t?"0x20":"0x18")))),e.on(vr("0xf"),((t,e)=>{this.fire(vr("0x5"),e)})),e.on(vr("0x19"),(()=>{this[vr("0x1e")]()})),e.bind(vr("0x1f")).to(this[vr("0x12")],"isReadOnly"),e.on(vr("0x19"),(t=>{0==this[vr("0x2")]&&(this[vr("0x0")](vr("0x15")),t[vr("0x6")]())})),this.on(vr("0x7"),((t,n,o)=>{o||this[vr("0x2")]||e.value||this[vr("0x0")](vr("0x15"))})),t}}const wr=["set","containerElement","isConfirm","isActive",".ck-thread__container","locale","ck-thread--","removeButton","getTemplate","showConfirm","fire","div","change:isActive","removeCommentThread","actionIndicator","placeholder","add","render","then","ck-thread","bindTemplate","ck-thread__container","change:isReadOnly","_boundFirstCommentView","bind","commentThreadInputView","high","element","commentViews","cancelConfirm","stop","remove","listenTo","ck-thread--active","_cancelAllConfirms","commentsListView","_bindFirstCommentView","setTemplate","_model","Write a comment..."];var kr,yr;kr=wr,yr=228,function(t){for(;--t;)kr.push(kr.shift())}(++yr);const Ar=function(t,e){return wr[t-=0]};class Cr extends _r{constructor(t,e,n,o){super(t,e,n,o),this[Ar("0xc")](Ar("0x1a"),null),this[Ar("0xd")]=null,this[Ar("0x23")]=null,this[Ar("0x11")]=t,this[Ar("0x9")](this.getTemplate()),this.on(Ar("0x18"),((t,e,n)=>{n||this._cancelAllConfirms()})),this[Ar("0x4")](this[Ar("0xa")],Ar("0x22"),((t,e,n)=>{n&&this[Ar("0x6")]()})),this.length>0&&this._bindFirstCommentView(),this.listenTo(this[Ar("0x7")][Ar("0x0")],Ar("0x1c"),(()=>{this[Ar("0x8")]()}))}[Ar("0x14")](){const t=this[Ar("0x20")];return{tag:Ar("0x17"),attributes:{class:[Ar("0x1f"),t.if(Ar("0xf"),Ar("0x5")),t.if(Ar("0xe"),"ck-thread--remove-confirmation"),t.to(Ar("0x1a"),(t=>t?Ar("0x12")+t:""))],"data-thread-id":this[Ar("0xa")].id,tabindex:-1},children:[{tag:"div",attributes:{class:Ar("0x21")},children:[this.commentsListView,this[Ar("0x25")]]}]}}[Ar("0x1d")](){super[Ar("0x1d")](),this[Ar("0xd")]=this[Ar("0x27")].querySelector(Ar("0x10"))}[Ar("0x6")](){this[Ar("0x1")]();for(const t of this.commentsListView[Ar("0x0")])t[Ar("0x1")]()}_bindFirstCommentView(){const{locale:t}=this,e=this[Ar("0x7")][Ar("0x0")].get(0);e!==this._boundFirstCommentView&&(this[Ar("0x23")]=e,this.unbind("actionIndicator"),this[Ar("0x24")](Ar("0x1a")).to(e,Ar("0x1a"),(t=>Ar("0x3")===t?"remove":null)),e[Ar("0x1b")]=Ti(t,Ar("0xb")),e[Ar("0x13")].on("execute",(e=>{e[Ar("0x2")](),this[Ar("0x15")](Ti(t,"Delete comment thread?"),this[Ar("0xd")])[Ar("0x1e")]((()=>{this[Ar("0x16")](Ar("0x19"))}))}),{priority:Ar("0x26")}))}}(0,e.mix)(Cr,i.ConfirmMixin);var Tr,Er,Ir=["innerHTML","setTemplate","div","ck-comment__content","render","element","content","set"];Tr=Ir,Er=309,function(t){for(;--t;)Tr.push(Tr.shift())}(++Er);var Or=function(t,e){return Ir[t-=0]};class jr extends Ci.View{constructor(t){super(t),this[Or("0x2")](Or("0x1"),""),this[Or("0x4")]({tag:Or("0x5"),attributes:{class:[Or("0x6"),"ck-annotation__content"]}})}[Or("0x7")](){super[Or("0x7")](),this.on("change:content",((t,e,n)=>{this[Or("0x0")].innerHTML=n})),this[Or("0x0")][Or("0x3")]=this.content}}const Vr=["set","editorConfig","element","createEditor","collapse","disabledSubmit","_createCommentContentView","_model","_config","maxCommentCharsWhenCollapsed","value","initialData","bind","content","focus","add","isReadOnly","switchToDisplayMode","locale","isCollapsed","get","visibleView","isEditMode","editorReady","switchToEditMode","expand","once","_createCommentInputView","destroy","fire","submit"];var Mr,Rr;Mr=Vr,Rr=104,function(t){for(;--t;)Mr.push(Mr.shift())}(++Rr);const Sr=function(t,e){return Vr[t-=0]};class Nr extends Ci.View{constructor(t,e,n){super(t),this[Sr("0x1b")]=e,this._config=n,this[Sr("0x14")](Sr("0xb"),!1),this[Sr("0x14")](Sr("0x8"),!0),this[Sr("0xa")]=this.createCollection(),this[Sr("0xa")][Sr("0x4")](this._createCommentContentView())}[Sr("0xe")](){this.isCollapsed=!1}[Sr("0x18")](){this.isEditMode||(this[Sr("0x8")]=!0)}[Sr("0x3")](){this[Sr("0x16")][Sr("0x3")]()}async[Sr("0x11")](){await this[Sr("0xa")][Sr("0x9")](0)[Sr("0x11")](),super.destroy()}[Sr("0xd")](){this[Sr("0xb")]||(this[Sr("0xb")]=!0,this[Sr("0xa")].remove(0)[Sr("0x11")](),this[Sr("0xa")].add(this._createCommentInputView()))}[Sr("0x6")](){this[Sr("0xb")]&&(this[Sr("0xb")]=!1,this.visibleView.remove(0)[Sr("0x11")](),this[Sr("0xa")][Sr("0x4")](this[Sr("0x1a")]()))}[Sr("0x1a")](){const t=new jr(this.locale);return t.bind(Sr("0x2")).to(this[Sr("0x1b")],"content",this,Sr("0x8"),((t,e)=>e?(0,i.trimHtml)(t,{limit:this[Sr("0x1c")][Sr("0x1d")]}):t)),t}[Sr("0x10")](){this._config[Sr("0x15")]||(this[Sr("0x1c")][Sr("0x15")]={}),this[Sr("0x1c")][Sr("0x15")][Sr("0x0")]=this[Sr("0x1b")][Sr("0x2")];const t=new Qi(this[Sr("0x7")],this._config[Sr("0x15")]);return t[Sr("0x1e")]=this[Sr("0x1b")][Sr("0x2")],t[Sr("0x1")](Sr("0x19")).to(this[Sr("0x1b")],Sr("0x5")),t.on(Sr("0x13"),((t,e)=>{this[Sr("0x12")]("updateComment",this[Sr("0x1b")].id,e),this[Sr("0x6")](),this[Sr("0x3")]()})),t.on("cancel",(()=>{this[Sr("0x6")](),this[Sr("0x3")]()})),t[Sr("0xf")](Sr("0xc"),(()=>{t[Sr("0x3")]()})),t[Sr("0x17")](),t}}const Dr=["extendTemplate","placeholder","ck-comment--remove","cancelConfirm","creator","ck-comment__user","ck-annotation__content-wrapper","ck-annotation__actions--hidden","locale","EXTERNAL_COMMENT","ck-comment__actions","isVisible","getExternalCommentNote","ck-comment__info-name","isRemovable","actionIndicator","_createRemoveButton","fire","ck-comment--","then","isReadOnly","ck-comment__actions--hidden","editButton","blur","removeButton","ck-annotation__info-name","ck-annotation__actions","Delete comment?","ck-comment__main","icon","change:isRemovable","mouseleave","render","isEditMode","Remove","_model","_createEditButton","formatDateTime","pencil","bindTemplate","execute","set","element","authoredAt","EXTERNAL_IMPORT_WORD_AVATAR","label","EXTERNAL_IMPORT_WORD_COMMENT","edit","Edit","bind","ck-comment__info-time","getTemplate","div","ck-comment__external","getUserViewNotificationText","ck-comment__wrapper","isEditable","visibleView","attributes","_createCommentInputView","push","focus","isExternal","mouseenter","switchToEditMode","showConfirm","remove","EXTERNAL_AVATAR","userView","_attachActions","_config","isConfirm","time","author","importWord","ck-annotation__info-time","ck-comment--edit","listenTo","ck-annotation"];var Pr,Br;Pr=Dr,Br=360,function(t){for(;--t;)Pr.push(Pr.shift())}(++Br);const Lr=function(t,e){return Dr[t-=0]};class zr extends Nr{constructor(t,e,n){super(t,e,n),this.set(Lr("0x32"),null),this[Lr("0x4c")](Lr("0x24"),Ti(t,"Reply...")),this[Lr("0x4c")](Lr("0x4e"),null),this.bind(Lr("0x4e")).to(e),this[Lr("0x39")]=this[Lr("0x47")](),this[Lr("0x3b")]=this._createRemoveButton(),this[Lr("0x18")]=new i.UserView(t,e[Lr("0x1d")],this[Lr("0xa")]()),this.userView.extendTemplate({attributes:{class:[Lr("0x28"),"ck-annotation__user"]}}),this[Lr("0x21")](e,Lr("0x41"),(()=>this[Lr("0x26")]())),this.setTemplate(this[Lr("0x7")]())}[Lr("0x7")](){const t=this[Lr("0x4a")],e=[{tag:Lr("0x8"),attributes:{class:["ck-comment__info","ck-annotation__info"]},children:[{tag:"span",children:[{text:this[Lr("0x18")].name}],attributes:{class:[Lr("0x30"),Lr("0x3c")]}},{tag:Lr("0x1c"),attributes:{datetime:t.to("authoredAt"),class:[Lr("0x6"),Lr("0x1f")]},children:[{text:t.to(Lr("0x4e"),(t=>this[Lr("0x1a")][Lr("0x48")](t)))}]}]},{tag:"div",attributes:{class:[Lr("0x2d"),Lr("0x3d"),t.if(Lr("0x44"),Lr("0x38")),t.if(Lr("0x44"),Lr("0x2a"))]},children:[this[Lr("0x39")],this[Lr("0x3b")]]},{tag:Lr("0x8"),attributes:{class:[Lr("0x29")]},children:this[Lr("0xd")]}];return this[Lr("0x46")][Lr("0x12")]&&e[Lr("0x10")]({tag:Lr("0x8"),attributes:{class:[Lr("0x9")]},children:[{text:this[Lr("0x2f")]()}]}),{tag:"li",attributes:{class:[Lr("0xb"),t.if(Lr("0x1b"),"ck-comment--remove-confirmation")],tabindex:-1},children:[{tag:Lr("0x8"),attributes:{class:["ck-comment",Lr("0x22"),t.if("isEditMode",Lr("0x20")),t.to(Lr("0x32"),(t=>t?Lr("0x35")+t:""))],"data-author-id":this[Lr("0x46")][Lr("0x1d")].id,"data-comment-id":this._model.id},children:[this.userView,{tag:"div",attributes:{class:[Lr("0x3f"),"ck-annotation__main"]},children:e}]}]}}[Lr("0x47")](){const e=new Ci.ButtonView(this[Lr("0x2b")]);return e.label=Ti(this[Lr("0x2b")],Lr("0x4")),e[Lr("0x40")]=t.icons[Lr("0x49")],e[Lr("0x23")]({attributes:{class:Lr("0x20")}}),e[Lr("0x5")]("isEnabled").to(this._model,Lr("0x37"),(t=>!t)),e[Lr("0x5")](Lr("0x2e")).to(this[Lr("0x46")],Lr("0xc")),e.on(Lr("0x4b"),(()=>this[Lr("0x14")]())),e}[Lr("0x33")](){const t=new Ci.ButtonView(this.locale);return t[Lr("0x1")]=Ti(this[Lr("0x2b")],Lr("0x45")),t[Lr("0x40")]='\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.2 7h9.2c.6 0 1 .4 1 1v9.9c0 .5-.4 1-1 1H5.2a1 1 0 0 1-1-1V8c0-.6.4-1 1-1zm1 1.5c-.3 0-.5.2-.5.5v8c0 .3.2.5.5.5h.5c.2 0 .5-.2.5-.5V9c0-.3-.3-.5-.5-.5h-.5zm3.2 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.4zm3.5 0c-.2 0-.5.2-.5.5v8c0 .3.3.5.5.5h.5c.3 0 .5-.2.5-.5V9c0-.3-.2-.5-.5-.5h-.5zm-1.4-7.1H8.3L6.5 3.6H3.8c-.5 0-.7.3-.7.8s.2.7.7.7h12c.6 0 .9-.2.9-.7 0-.5-.3-.8-1-.8h-2.4l-1.8-2.2z"/></svg>\n',t[Lr("0x23")]({attributes:{class:Lr("0x25")}}),t[Lr("0x5")]("isEnabled").to(this[Lr("0x46")],Lr("0x37"),(t=>!t)),t[Lr("0x5")](Lr("0x2e")).to(this[Lr("0x46")],Lr("0x31")),t.on(Lr("0x4b"),(()=>{this[Lr("0x15")](Ti(this.locale,Lr("0x3e")),this[Lr("0x4d")])[Lr("0x36")]((()=>{this[Lr("0x34")]("removeComment",this._model.id)}))})),t}_attachActions(t,e){this[Lr("0x21")](t,Lr("0x13"),(()=>this[Lr("0x32")]=e)),this.listenTo(t,Lr("0x11"),(()=>this[Lr("0x32")]=e)),this.listenTo(t,Lr("0x42"),(()=>this[Lr("0x32")]=null)),this.listenTo(t,Lr("0x3a"),(()=>this.actionIndicator=null))}[Lr("0xf")](){const t=super[Lr("0xf")]();return t[Lr("0x5")](Lr("0x24")).to(this),t}[Lr("0x2f")](){return"importWord"===this[Lr("0x46")][Lr("0xe")]["@external"].source?Ti(this.locale,Lr("0x2")):Ti(this[Lr("0x2b")],Lr("0x2c"))}[Lr("0xa")](){return this[Lr("0x46")][Lr("0x12")]?Lr("0x1e")===this[Lr("0x46")][Lr("0xe")]["@external"].source?Ti(this[Lr("0x2b")],Lr("0x0"),this[Lr("0x46")][Lr("0x27")].name):Ti(this.locale,Lr("0x17"),this._model[Lr("0x27")].name):null}[Lr("0x43")](){super.render(),this._attachActions(this.editButton[Lr("0x4d")],Lr("0x3")),this[Lr("0x19")](this.removeButton[Lr("0x4d")],Lr("0x16"))}}(0,e.mix)(zr,i.ConfirmMixin);var Fr=n(278),Ur=n.n(Fr),Kr=n(490),Wr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ur()(Kr.Z,Wr);Kr.Z.locals;var Hr=n(227),Zr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ur()(Hr.Z,Zr);Hr.Z.locals;var qr=n(424),Xr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ur()(qr.Z,Xr);qr.Z.locals;const $r=function(){return w.Date.now()};var Gr=/\s/;const Jr=function(t){for(var e=t.length;e--&&Gr.test(t.charAt(e)););return e};var Yr=/^\s+/;const Qr=function(t){return t?t.slice(0,Jr(t)+1).replace(Yr,""):t};var ts=NaN,es=/^[-+]0x[0-9a-f]+$/i,ns=/^0b[01]+$/i,os=/^0o[0-7]+$/i,is=parseInt;const rs=function(t){if("number"==typeof t)return t;if(Zo(t))return ts;if(S(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=S(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=Qr(t);var n=ns.test(t);return n||os.test(t)?is(t.slice(2),n?2:8):es.test(t)?ts:+t};var ss="Expected a function",as=Math.max,cs=Math.min;const xs=function(t,e,n){var o,i,r,s,a,c,x=0,h=!1,d=!1,l=!0;if("function"!=typeof t)throw new TypeError(ss);function u(e){var n=o,r=i;return o=i=void 0,x=e,s=t.apply(r,n)}function m(t){var n=t-c;return void 0===c||n>=e||n<0||d&&t-x>=r}function f(){var t=$r();if(m(t))return p(t);a=setTimeout(f,function(t){var n=e-(t-c);return d?cs(n,r-(t-x)):n}(t))}function p(t){return a=void 0,l&&o?u(t):(o=i=void 0,s)}function g(){var t=$r(),n=m(t);if(o=arguments,i=this,c=t,n){if(void 0===a)return function(t){return x=t,a=setTimeout(f,e),h?u(t):s}(c);if(d)return clearTimeout(a),a=setTimeout(f,e),u(c)}return void 0===a&&(a=setTimeout(f,e)),s}return e=rs(e)||0,S(n)&&(h=!!n.leading,r=(d="maxWait"in n)?as(rs(n.maxWait)||0,e):r,l="trailing"in n?!!n.trailing:l),g.cancel=function(){void 0!==a&&clearTimeout(a),x=0,o=c=i=a=void 0},g.flush=function(){return void 0===a?s:p($r())},g};var hs="Expected a function";const ds=function(t,e,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError(hs);return S(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),xs(t,e,{leading:o,maxWait:e,trailing:i})},ls=["disconnect","attributeName","attributes","type","observe","childList","cancel","class"];var us,ms;us=ls,ms=455,function(t){for(;--t;)us.push(us.shift())}(++ms);const fs=function(t,e){return ls[t-=0]};function ps(t){const e=ds(t,30),n=new MutationObserver((t=>{for(const n of t)(fs("0x3")==n[fs("0x4")]&&fs("0x0")==n[fs("0x2")]||fs("0x6")==n[fs("0x4")])&&e()}));return{attach(t){n[fs("0x5")](t,{attributes:!0,childList:!0,subtree:!0})},detach(){n[fs("0x1")](),e[fs("0x7")]()}}}var gs=n(173),bs={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ur()(gs.Z,bs);gs.Z.locals;const vs=["focus","div","_mutationObserver","focusTracker","isActive","fire","ck-rounded-corners","set","listenTo","height","ck-annotation-wrapper","mainView","setTemplate","type","bindTemplate","add","attach","content","clientHeight","keystrokes","_updateHeight","isDirty","element","targetRect","clear","destroy"];var _s,ws;_s=vs,ws=202,function(t){for(;--t;)_s.push(_s.shift())}(++ws);const ks=function(t,e){return vs[t-=0]};class ys extends Ci.View{constructor(t,n){super(t),this.id=(0,e.uid)(),this.focusTracker=new e.FocusTracker,this.keystrokes=new e.KeystrokeHandler,this[ks("0x19")].set("Esc",((t,e)=>this[ks("0xb")]("Esc",e))),this[ks("0xd")](ks("0x3"),{top:0,right:0,bottom:0,left:0}),this[ks("0xd")](ks("0xf"),0),this[ks("0xd")]("isActive",!1),this[ks("0xd")](ks("0x1"),!1),this.set("length",0),this[ks("0xd")](ks("0x13"),""),this[ks("0x8")]=ps((()=>this[ks("0x0")]())),this[ks("0x17")]=this.createCollection(),this[ks("0x17")][ks("0x15")](n),this[ks("0x11")]=n;const o=this[ks("0x14")];this[ks("0x12")]({tag:ks("0x7"),attributes:{class:["ck",ks("0x10"),ks("0xc"),o.if(ks("0xa"),"ck-annotation-wrapper--active")],tabindex:-1},children:this.content})}render(){super.render(),this.focusTracker[ks("0x15")](this[ks("0x2")]),this[ks("0x19")][ks("0xe")](this[ks("0x2")]),this[ks("0x8")][ks("0x16")](this.element)}[ks("0x5")](){this[ks("0x17")][ks("0x4")](),this[ks("0x19")][ks("0x5")](),this[ks("0x9")][ks("0x5")](),this[ks("0x8")].detach(),super[ks("0x5")]()}[ks("0x6")](){this[ks("0x2")][ks("0x6")]()}[ks("0x0")](){const t=this[ks("0x2")][ks("0x18")];t&&(this[ks("0xf")]=t)}}const As=["add","refreshVisibility","view","render","_getNormalizedTarget","remove","destroy","nodeType","mainView","innerView","function","target","focusTracker","_id","_type","every","type","filter","item","targetRect","getClientRects","isVisible","isActive","offsetParent","focusableElements","stopListening","_assertCorrectTarget","updateTargetRect","length","_target","element"];var Cs,Ts;Cs=As,Ts=413,function(t){for(;--t;)Cs.push(Cs.shift())}(++Ts);const Es=function(t,e){return As[t-=0]};class Is{constructor({view:t,target:n,type:o,isVisible:i=!0}){this[Es("0x17")]=t,this.view[Es("0x14")]||this.view[Es("0x18")](),this[Es("0x4")]=o,this[Es("0x13")]=n,Is[Es("0x10")](this._getNormalizedTarget()),this[Es("0xe")]=new e.Collection([this.view[Es("0x14")]],{idProperty:Es("0x3")}),this[Es("0xe")].on(Es("0x15"),((t,e)=>{this[Es("0x17")][Es("0x2")].add(e)})),this.focusableElements.on(Es("0x1a"),((t,e)=>{this[Es("0x17")].focusTracker[Es("0x1a")](e)})),this.set(Es("0xb"),i)}get[Es("0x6")](){return"function"==typeof this[Es("0x4")]?this._type():this[Es("0x4")]}get[Es("0x1e")](){return this[Es("0x17")][Es("0x1d")]}get[Es("0x1")](){const t=this[Es("0x19")]();return Is[Es("0x10")](t),t}get[Es("0x9")](){const t=this.target;if(null===t)return null;if(t instanceof e.Rect)return t;const n=t[Es("0x7")]((t=>function(t){if(t[Es("0xd")])return!0;return!!t[Es("0xa")]()[Es("0x8")](0)}(t)));return 0===n[Es("0x12")]?null:new e.Rect(n[0][Es("0xa")]().item(0))}get[Es("0xc")](){return this[Es("0x17")][Es("0xc")]}set[Es("0xc")](t){this[Es("0x17")][Es("0xc")]=t,this.view.mainView.isActive=t}[Es("0x11")](){this[Es("0x17")].targetRect=this[Es("0x9")]}[Es("0x1b")](){this[Es("0xe")].stopListening(),this[Es("0xe")].clear(),this[Es("0xf")]()}[Es("0x16")](){this.isVisible=!!this[Es("0x9")]}static[Es("0x10")](t){if(!(null===t||t instanceof e.Rect||Array.isArray(t)&&t[Es("0x5")]((t=>Os(t)))))throw new e.CKEditorError("annotation-invalid-target",null,{target:t})}_getNormalizedTarget(){let t=Es("0x0")==typeof this[Es("0x13")]?this[Es("0x13")]():this[Es("0x13")];return t=Os(t)?[t]:t,t}}function Os(t){return null!==t&&"object"==typeof t&&1===t[Es("0x1c")]}(0,e.mix)(Is,e.ObservableMixin);const js=["delete","get","_sort","innerView","_viewToAnnotation","blur","from","set","_focusTracker","targetRect","add","focusableElements","_items","focus","left","fire","getIndex","clear","_innerViewToAnnotation","stopListening","destroy","isFocused","remove","updateTargetRect","change:isFocused","view","has","listenTo","length","top","annotationcollection-not-existing-item","annotationcollection-duplicated-item","focusTracker","_getOrderInContent"];var Vs,Ms;Vs=js,Ms=272,function(t){for(;--t;)Vs.push(Vs.shift())}(++Ms);const Rs=function(t,e){return js[t-=0]};class Ss extends e.Collection{constructor(t=[]){super(),this[Rs("0x12")]=new Map,this[Rs("0x4")]=new Map,this[Rs("0x8")]=new e.FocusTracker,this[Rs("0x8")].on(Rs("0x18"),((t,e,n)=>{n||this[Rs("0xf")](Rs("0x5"))}));for(const e of t)this[Rs("0xa")](e)}get[Rs("0x15")](){return this[Rs("0x8")][Rs("0x15")]}[Rs("0xa")](t){if(this[Rs("0x1a")](t))throw new e.CKEditorError(Rs("0x1f"),null);this[Rs("0x12")][Rs("0x7")](t[Rs("0x3")],t),this[Rs("0x4")][Rs("0x7")](t[Rs("0x19")],t);for(const e of t[Rs("0xb")])this[Rs("0x8")][Rs("0xa")](e);this[Rs("0x1b")](t[Rs("0xb")],"add",((t,e)=>{this[Rs("0x8")][Rs("0xa")](e)})),this[Rs("0x1b")](t[Rs("0xb")],"remove",((t,e)=>{this[Rs("0x8")][Rs("0x16")](e)})),this[Rs("0x1b")](t.view[Rs("0x20")],Rs("0x18"),((e,n,o)=>{o&&this.fire(Rs("0xd"),t)})),t[Rs("0x17")]();const n=this[Rs("0x21")](t[Rs("0x19")][Rs("0x9")]);super[Rs("0xa")](t,n)}remove(t){if(!this[Rs("0x1a")](t))throw new e.CKEditorError(Rs("0x1e"),null);this[Rs("0x13")](t[Rs("0x19")][Rs("0x20")]),this.stopListening(t[Rs("0xb")]);for(const e of t[Rs("0xb")])this._focusTracker.remove(e);this[Rs("0x4")][Rs("0x0")](t[Rs("0x19")]),this[Rs("0x12")][Rs("0x0")](t[Rs("0x3")]),super[Rs("0x16")](t)}getByInnerView(t){return this[Rs("0x12")][Rs("0x1")](t)}getByView(t){return this._viewToAnnotation.get(t)}[Rs("0x14")](){super.clear(),this[Rs("0x13")](),this._innerViewToAnnotation[Rs("0x11")](),this[Rs("0x4")][Rs("0x11")](),this._focusTracker.destroy()}refreshPositioning(){for(const t of this)t.updateTargetRect();this[Rs("0x2")]()}[Rs("0x2")](){const t=Array[Rs("0x6")](this).sort(((t,e)=>Ns(t[Rs("0x19")][Rs("0x9")],e[Rs("0x19")].targetRect)));for(let e=t[Rs("0x1c")]-1;e>0;e--){const n=t[e];e!==this[Rs("0x10")](n)&&(this.remove(n),this[Rs("0xa")](n,e))}}[Rs("0x21")](t){let e=0;if(!t)return this[Rs("0xc")].length;for(const n of this){const o=n[Rs("0x19")].targetRect;if(o){if(Ns(t,o)<0)return e;e++}}return e}}function Ns(t,e){if(null===t&&null===e)return 0;if(null===t)return-1;if(null===e)return 1;const n=t[Rs("0x1d")]-e[Rs("0x1d")];return 0==n?t[Rs("0xe")]-e[Rs("0xe")]:n}const Ds=["_bindAnnotationsToVisibleAnnotations","_visibleAnnotations","add","getByInnerView","remove","activeAnnotations","_removeActiveAnnotation","_addActiveAnnotation","createAnnotationView","collection","refreshVisibility","fire","activate","destroy","_activateAnnotation","change:isVisible","isVisible","has","createAnnotation","_deactivateAllAnnotations","Annotations","deactivateAll","delete","listenTo","source","stopListening","pluginName","refreshPositioning"];var Ps,Bs;Ps=Ds,Bs=117,function(t){for(;--t;)Ps.push(Ps.shift())}(++Bs);const Ls=function(t,e){return Ds[t-=0]};class zs extends t.ContextPlugin{static get[Ls("0x15")](){return Ls("0xf")}constructor(t){super(t),this[Ls("0x4")]=new Ss,this[Ls("0x18")]=new Ss,this.set(Ls("0x0"),new Set),this[Ls("0x17")]()}add(t){this[Ls("0x4")][Ls("0x19")](t)}remove(t){this.collection.remove(t),t[Ls("0x8")]()}[Ls("0x5")](){for(const t of this.collection)t[Ls("0x5")]()}refreshPositioning(){this._visibleAnnotations[Ls("0x16")]()}[Ls("0x1a")](t){return this[Ls("0x4")][Ls("0x1a")](t)}[Ls("0x10")](){this[Ls("0x6")](Ls("0xe"))}[Ls("0x8")](){for(const t of this[Ls("0x4")])t[Ls("0x8")]();this[Ls("0x18")][Ls("0x8")](),this[Ls("0x4")][Ls("0x8")](),super[Ls("0x8")]()}[Ls("0x7")](t){this[Ls("0x6")](Ls("0x9"),t)}[Ls("0xd")](t){return new Is(t)}[Ls("0x3")](t,e){return new ys(t,e)}[Ls("0x2")](t){const e=new Set(this[Ls("0x0")]);e[Ls("0x19")](t),this.activeAnnotations=e}[Ls("0x1")](t){const e=new Set(this[Ls("0x0")]);e[Ls("0x11")](t),this.activeAnnotations=e}[Ls("0x17")](){const t=this[Ls("0x4")],e=this[Ls("0x18")];function n(t){const n=t[Ls("0x13")];n[Ls("0xb")]&&!e[Ls("0xc")](n)?e.add(n):!n[Ls("0xb")]&&e.has(n)&&e[Ls("0x1b")](n)}this.listenTo(t,"add",((t,o)=>{o.isVisible&&e.add(o),this[Ls("0x12")](o,Ls("0xa"),n)})),this.listenTo(t,Ls("0x1b"),((t,o)=>{e[Ls("0xc")](o)&&e[Ls("0x1b")](o),this[Ls("0x14")](o,Ls("0xa"),n)}))}}const Fs=["getCommentThread","@external","commentsrepository-missing-thread-and-adapter","commentThreadInputView","reduce","innerHTML","warn","_updateComment","channelId","comments.maxCommentCharsWhenCollapsed","values","afterInit","getIndex","assign","threadId","fromCharCode","commentsrepository-remove-comment-internal-error","creator","deactivateAll","replace","Users","comments.CommentView","activeCommentThread","destroy","adapter","fire","commentsrepository-update-comment-invalid-content","commentsrepository-invalid-comment-thread-id","get","licenseKey","getTime","removeAttribute","has","isDirty","listenTo","removeCommentThread","_getExternalAuthor","_nonAdminChannels","getUser","map","charCodeAt","string","_repository","_add","stopListening","updateComment","commentsrepository-remove-comment-thread-internal-error","isExternal","push","comments.maxThreadTotalWeight","CommentThreadView","hasCommentThread","editorReady","max","isRemovable","setActiveCommentThread","commentsrepository-active-not-attached","_addCommentThread","pluginName","isAttached","noChannel","init","_adapter","remove","PendingActions","getCommentThreads","comments.maxCommentsWhenCollapsed","CommentView","external:","_findOptimalIndex","_removeComment","isEditable","CommentsRepository","commentsrepository-invalid-comment-authorid","createCommentThreadController","_threads","addComment","locale","pop","commentsrepository-update-comment-missing-comment-thread","textContent","commentsrepository-add-comment-internal-error","join","delete","createElement","plugins","_addComment","isReadOnly","_threadToController","_readOnlyChannels","commentUpdated","_detachCommentThread","commentsrepository-fetch-comment-thread","commentsrepository-attach-missing-comment-thread","set","config","commentsrepository-add-comment-user-not-exists","addCommentThread","_isAttached","_remove","innerView","switchReadOnly","authoredAt","error","resolve","authorName","focus","requires","change:authoredAt","commentsrepository-duplicated-comment-thread-id","length","weight","model","function","toJSON","content","commentsrepository-update-comment-internal-error","commentInputView","commentsrepository-remove-missing-comment","div","setAttribute","context","commentsrepository-invalid-comment-content","attributes","_createCommentThreadView","getByInnerView","add","commentsrepository-get-comment-invalid-id","comments","comment","comments.editorConfig","_removeCommentThread","attachTo","commentsrepository-add-comment-to-missing-comment-thread","_viewToController","isActive","catch","lowest","update","getComment","commentsrepository-active-missing-comment-thread","define","createdAt","view","_attachCommentThread","setAdminPermissions","then","bind","from","activate","comments.CommentThreadView","commentsrepository-remove-missing-comment-thread","removeComment"];var Us,Ks;Us=Fs,Ks=438,function(t){for(;--t;)Us.push(Us.shift())}(++Ks);const Ws=function(t,e){return Fs[t-=0]},Hs=Symbol(Ws("0x51"));class Zs extends t.ContextPlugin{static get[Ws("0x80")](){return[zs,t.PendingActions,i.Users]}static get[Ws("0x4f")](){return Ws("0x5d")}constructor(t){super(t),this[Ws("0x60")]=new Map,this[Ws("0x6d")]=new Map,this[Ws("0x2")]=new Map,this._readOnlyChannels=new Set,this[Ws("0x73")](Ws("0x3a"),new Set),this[Ws("0x32")]=this[Ws("0x8e")].config.get(Ws("0x32"));const e=this[Ws("0x8e")][Ws("0x74")];e.define(Ws("0x57"),2),e[Ws("0x9")](Ws("0x46"),500),e[Ws("0x9")](Ws("0x1e"),140),e[Ws("0x9")](Ws("0x12"),Cr),e.define(Ws("0x2a"),zr),e[Ws("0x31")](Ws("0x97"))||console[Ws("0x1b")]("Missing comments editor configuration (`comments.editorConfig`). Default configuration will be used instead.")}[Ws("0x52")](){const t=this.context.plugins[Ws("0x31")](zs);this.set("activeCommentThread",null),this.on(Ws("0x76"),((t,e)=>this[Ws("0x4e")](e))),this.on(Ws("0x38"),((t,e)=>this._removeCommentThread(e))),this.on(Ws("0x61"),((t,e)=>this[Ws("0x6b")](e))),this.on(Ws("0x42"),((t,e)=>this._updateComment(e))),this.on(Ws("0x14"),((t,e)=>this[Ws("0x5b")](e))),this.on(Ws("0x61"),((t,{threadId:e,isFromAdapter:n})=>{if(n)return;const o=this[Ws("0x15")](e),i=this._threadToController[Ws("0x31")](o);i&&i[Ws("0xb")].focus()}),{priority:Ws("0x5")}),this[Ws("0x37")](t,"change:activeAnnotations",((t,e,n)=>{const o=Array[Ws("0x10")](n)[Ws("0x3c")]((t=>this[Ws("0x2")].get(t[Ws("0x79")]))).filter(Boolean)[0];this[Ws("0x2b")]=o?o[Ws("0x85")]:null}))}[Ws("0x20")](){!function(e){const n=e instanceof t.Context,o=[1,85,78,115,198,255,50,112,83,87,161],i=l([52,48,52,54,48,52,49,52]),r=[127,34,6,211,167,86,146,199,132,160,18],s=l([65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,48,49,50,51,52,53,54,55,56,57]),a=function(t){if(e[l([112,108,117,103,105,110,115])][l([104,97,115])](l([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))&&e[l([112,108,117,103,105,110,115])][l([103,101,116])](l([87,101,98,83,111,99,107,101,116,71,97,116,101,119,97,121]))[l([115,116,97,116,101])]==l([99,111,110,110,101,99,116,101,100]))return c(l([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));if(e[l([112,108,117,103,105,110,115])][l([104,97,115])](l([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))&&e[l([112,108,117,103,105,110,115])][l([103,101,116])](l([84,114,97,99,107,67,104,97,110,103,101,115,68,97,116,97,71,101,116,116,101,114]))[l([114,101,115,117,108,116])]==l([101,110,100]))return c(l([108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]));try{const n=function(t){const e=[29,221,175,90,231,133,239,240,75,180];return function(t,e){const n=atob(t),o=Array[Ws("0x10")](function(t){const e=new Uint8Array(t.length);for(let n=0;n<t.length;n++)e[n]=t[Ws("0x3d")](n);return e}(n)),i=o[Ws("0x63")](),r=o[Ws("0x63")]();return function(t){let e="";for(const n of t)e+=String.fromCharCode(n);return e}(function(t,e,n){const o={};o[l([110,117,109,98,101,114,79,102,82,111,117,110,100,115])]={16:10,24:12,32:14},o[l([114,99,111,110])]=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],o[l([83])]=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],o[l([84,49])]=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],o[l([84,50])]=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],o[l([84,51])]=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],o[l([84,52])]=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],o[l([85,49])]=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],o[l([85,50])]=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],o[l([85,51])]=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],o[l([85,52])]=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];const i=new Uint8Array(16);for(let t=15;t>=0;--t)i[t]=n%256,n=parseInt(n/256);let r=null,s=16;const a=new Uint8Array(e),c=[],x=[];m();for(let e=0;e<t[Ws("0x83")];e++)16===s&&(r=u(i),s=0,d(i)),t[e]^=r[s++];return t;function h(t){const e=[];for(let n=0;n<t.length;n+=4)e[Ws("0x45")](t[n]<<24|t[n+1]<<16|t[n+2]<<8|t[n+3]);return e}function d(t){for(let e=15;e>=0;e--){if(255!==t[e]){t[e]++;break}t[e]=0}}function u(t){const e=c.length-1,n=[0,0,0,0];let i=h(t);for(let t=0;t<4;t++)i[t]^=c[0][t];for(let t=1;t<e;t++){for(let e=0;e<4;e++)n[e]=o[l([84,49])][i[e]>>24&255]^o[l([84,50])][i[(e+1)%4]>>16&255]^o[l([84,51])][i[(e+2)%4]>>8&255]^o[l([84,52])][255&i[(e+3)%4]]^c[t][e];i=n.slice()}const r=new Uint8Array(16);let s;for(let t=0;t<4;t++)s=c[e][t],r[4*t]=255&(o[l([83])][i[t]>>24&255]^s>>24),r[4*t+1]=255&(o[l([83])][i[(t+1)%4]>>16&255]^s>>16),r[4*t+2]=255&(o[l([83])][i[(t+2)%4]>>8&255]^s>>8),r[4*t+3]=255&(o[l([83])][255&i[(t+3)%4]]^s);return r}function m(){const t=o[l([110,117,109,98,101,114,79,102,82,111,117,110,100,115])][a[Ws("0x83")]];for(let e=0;e<=t;e++)c.push([0,0,0,0]),x[Ws("0x45")]([0,0,0,0]);const e=4*(t+1),n=a[Ws("0x83")]/4,i=h(a);let r;for(let e=0;e<n;e++)r=e>>2,c[r][e%4]=i[e],x[t-r][e%4]=i[e];let s,d=0,u=n;for(;u<e;){s=i[n-1],i[0]^=o[l([83])][s>>16&255]<<24^o[l([83])][s>>8&255]<<16^o[l([83])][255&s]<<8^o[l([83])][s>>24&255]^o[l([114,99,111,110])][d]<<24,d+=1;for(let t=1;t<n/2;t++)i[t]^=i[t-1];s=i[n/2-1],i[n/2]^=o[l([83])][255&s]^o[l([83])][s>>8&255]<<8^o[l([83])][s>>16&255]<<16^o[l([83])][s>>24&255]<<24;for(let t=n/2+1;t<n;t++)i[t]^=i[t-1];let r,a,h=0;for(;h<n&&u<e;)r=u>>2,a=u%4,c[r][a]=i[h],x[t-r][a]=i[h++],u++}for(let e=1;e<t;e++)for(let t=0;t<4;t++)s=x[e][t],x[e][t]=o[l([85,49])][s>>24&255]^o[l([85,50])][s>>16&255]^o[l([85,51])][s>>8&255]^o[l([85,52])][255&s]}}(o,e,r+256*i))}(t,new(window[l([85,105,110,116,56,65,114,114,97,121])])([...o,...e,...r]))}(t),s=JSON.parse(n),a=parseInt(s[l([49])]),x=parseInt(s[l([51])]),h=parseInt(s[l([52])])||0,d=parseInt(s[l([53])])||0,u=2;if(!(1&h)||e[l([112,108,117,103,105,110,115])][l([104,97,115])](l([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))&&!(h&u))return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]));if(d&&!window[l([111,112,101,110])][l([99,108,111,115,101,100])])return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]));if(parseInt(i)/2>a)return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]));if(e[l([112,108,117,103,105,110,115])][l([104,97,115])](l([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]))){const t=e[l([112,108,117,103,105,110,115])][l([103,101,116])](l([84,114,97,99,107,67,104,97,110,103,101,115,69,100,105,116,105,110,103]));if(parseInt(t[l([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])])/2>a)return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))}return c(l(x?[108,105,99,101,110,115,101,75,101,121,84,114,105,97,108]:[108,105,99,101,110,115,101,75,101,121,86,97,108,105,100]))}catch(t){return c(l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100]))}}(e[Ws("0x74")].get(l([108,105,99,101,110,115,101,75,101,121])));function c(t){const n=function(){const t=String(window[l([112,101,114,102,111,114,109,97,110,99,101])][l([110,111,119])]())[Ws("0x28")](l([46]),"");let e="";for(let n=0;n<t[Ws("0x83")];n+=2){let o=parseInt(t.substring(n,n+2));o>=s[Ws("0x83")]&&(o-=s[Ws("0x83")]),e+=s[o]}return e}();return e[n]=t,t}function x(t){for(const e of t[l([101,100,105,116,111,114,115])])h(e);t[l([112,108,117,103,105,110,115])][l([103,101,116])](l([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[l([115,119,105,116,99,104,82,101,97,100,79,110,108,121])](!0),t[l([112,108,117,103,105,110,115])][l([103,101,116])](l([67,111,109,109,101,110,116,115,82,101,112,111,115,105,116,111,114,121]))[l([115,119,105,116,99,104,82,101,97,100,79,110,108,121])]=d}function h(t){function e(){t[l([109,111,100,101,108])][l([99,104,97,110,103,101])]=d,t[l([109,111,100,101,108])][l([101,110,113,117,101,117,101,67,104,97,110,103,101])]=d,t[l([101,110,97,98,108,101,82,101,97,100,79,110,108,121,77,111,100,101])](l([109,111,100,101,108]))}t[l([115,116,97,116,101])]==l([114,101,97,100,121])?e():t[l([111,110,99,101])](l([114,101,97,100,121]),(()=>e()))}function d(){return null}function l(t){return t[Ws("0x3c")]((t=>String[Ws("0x24")](t)))[Ws("0x67")]("")}n?(a==l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100])?x(e):a==l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108])&&window[l([115,101,116,84,105,109,101,111,117,116])]((()=>{x(e),c(l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58,116,105,109,101]))}),r[6]*o[8]*o[6]),e[l([101,100,105,116,111,114,115])][l([111,110])](l([97,100,100]),((t,e)=>{a!=l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100])&&a!=l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58,116,105,109,101])&&a!=l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])||h(e)}))):a==l([108,105,99,101,110,115,101,75,101,121,73,110,118,97,108,105,100])?h(e):a==l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108])&&e[l([111,110])](l([114,101,97,100,121]),(()=>{let t=0;e[l([109,111,100,101,108])][l([111,110])](l([97,112,112,108,121,79,112,101,114,97,116,105,111,110]),((n,o)=>{o[0][l([105,115,68,111,99,117,109,101,110,116,79,112,101,114,97,116,105,111,110])]&&t++,504===t&&(h(e),c(l([108,105,99,101,110,115,101,75,101,121,84,114,105,97,108,76,105,109,105,116,58,111,112,101,114,97,116,105,111,110,115])),n[l([111,102,102])]())}),{priority:l([104,105,103,104,101,115,116])})}))}(this.context)}set[Ws("0x2d")](t){if(this[Ws("0x53")])throw new e.CKEditorError("commentsrepository-adapter-already-set");this[Ws("0x53")]=t}get[Ws("0x2d")](){return this[Ws("0x53")]}[Ws("0x76")]({channelId:t=Hs,threadId:n=(0,e.uid)(),comments:o=[],target:i,isFromAdapter:r}={}){return this.fire($s("addCommentThread",t),{channelId:t,threadId:n,comments:o,target:i,isFromAdapter:r}),this[Ws("0x15")](n)}openNewCommentThread({channelId:t=Hs,threadId:n=(0,e.uid)(),target:o}){if(this[Ws("0x6e")].has(t)||this._readOnlyChannels[Ws("0x35")](void 0))return;if(!o)throw new e.CKEditorError("commentsrepository-missing-target");const i=this[Ws("0x76")]({channelId:t,threadId:n,target:o});if(!i)return null;const r=this[Ws("0x6d")][Ws("0x31")](i),s=r.view[Ws("0x18")][Ws("0x8a")],a=this[Ws("0x8e")][Ws("0x6a")][Ws("0x31")](zs),c=a[Ws("0x92")](r[Ws("0xb")]);return a[Ws("0x11")](c),s.once(Ws("0x49"),(()=>s[Ws("0x7f")]())),i}hasCommentThread(t){if(Ws("0x3e")!=typeof t)throw new e.CKEditorError(Ws("0x30"));return this[Ws("0x60")].has(t)}[Ws("0x15")](t){if(Ws("0x3e")!=typeof t)throw new e.CKEditorError(Ws("0x30"));return this[Ws("0x60")].get(t)}fetchCommentThread({channelId:t,threadId:n}={}){const o=this[Ws("0x15")](n);if(o)return Promise[Ws("0x7d")](o);if(!this[Ws("0x2d")])throw new e.CKEditorError(Ws("0x17"),this[Ws("0x8e")]);if(Ws("0x86")!=typeof this[Ws("0x2d")][Ws("0x15")])throw new e.CKEditorError("commentsrepository-missing-thread-and-adapter-method",this[Ws("0x8e")]);return this[Ws("0x2d")][Ws("0x15")]({channelId:t,threadId:n})[Ws("0xe")]((e=>this[Ws("0x48")](n)?this[Ws("0x15")](n):e?this[Ws("0x76")](Object[Ws("0x22")]({isFromAdapter:!0,channelId:t},e)):void 0))[Ws("0x4")]((t=>{throw console[Ws("0x7c")](t),new e.CKEditorError(Ws("0x71"),this.context)}))}getCommentThreads({channelId:t,skipNotAttached:e=!1,skipEmpty:n=!1,toJSON:o=!1}={}){const i=[];for(const o of this._threads[Ws("0x1f")]())t&&o.channelId!==t||e&&!o[Ws("0x50")]||n&&0===o[Ws("0x83")]||i[Ws("0x45")](o);return o?i[Ws("0x3c")]((t=>t[Ws("0x87")]())):i}[Ws("0x4c")](t){const n=this[Ws("0x8e")][Ws("0x6a")][Ws("0x31")](zs);if(!t)return void(this[Ws("0x2b")]&&n[Ws("0x27")]());const o=this[Ws("0x15")](t);if(!o)throw new e.CKEditorError(Ws("0x8"),null,{threadId:t});if(!this._threadToController.has(o))throw new e.CKEditorError(Ws("0x4d"),null,{threadId:t});const i=n[Ws("0x92")](this._threadToController[Ws("0x31")](o)[Ws("0xb")]);n[Ws("0x11")](i)}[Ws("0x7a")](t,e){t?this._readOnlyChannels.add(e):this._readOnlyChannels[Ws("0x68")](e);for(const n of this[Ws("0x56")]({channelId:e}))n[Ws("0x6c")]=!!t}[Ws("0x6c")](t){return this[Ws("0x6e")][Ws("0x35")](t)||this[Ws("0x6e")][Ws("0x35")](void 0)}[Ws("0x5f")](t,e){return new Ai(t,e)}[Ws("0xd")](t,e=Hs){const n=!this[Ws("0x3a")][Ws("0x35")](e),o=new Set(this[Ws("0x3a")]);n&&!t&&(o[Ws("0x93")](e),this[Ws("0x3a")]=o),!n&&t&&(o[Ws("0x68")](e),this[Ws("0x3a")]=o)}_addCommentThread({channelId:t,threadId:n,comments:o,target:i,isFromAdapter:r}){if(Ws("0x3e")!=typeof n)throw new e.CKEditorError("commentsrepository-invalid-comment-thread-id",null,{threadId:n});if(this.hasCommentThread(n))throw new e.CKEditorError(Ws("0x82"),null,{threadId:n});const s=new qs(this,{channelId:t,id:n});(this._readOnlyChannels[Ws("0x35")](t)||this[Ws("0x6e")].has(void 0))&&(s[Ws("0x6c")]=!0),this[Ws("0x60")][Ws("0x73")](n,s);for(const t of o)s[Ws("0x61")](Object[Ws("0x22")]({isFromAdapter:r},t));i&&s[Ws("0x0")](i)}[Ws("0xc")]({threadId:t,target:n}){const o=this[Ws("0x15")](t);if(!o)throw new e.CKEditorError(Ws("0x72"),this);const i=this[Ws("0x8e")][Ws("0x6a")][Ws("0x31")](Ws("0x55")),r=this[Ws("0x8e")][Ws("0x6a")][Ws("0x31")](zs),s=this[Ws("0x91")](o),a=new Ai(o,s);let c=null;s.on("change:isDirty",((t,e,n)=>{n?c=i[Ws("0x93")](Ti(this[Ws("0x8e")][Ws("0x62")],"PENDING_ACTION_COMMENT_THREAD")):(i.remove(c),c=null)})),this[Ws("0x6d")][Ws("0x73")](o,a),this[Ws("0x2")][Ws("0x73")](s,a);const x=new ys(this[Ws("0x8e")][Ws("0x62")],s);x[Ws("0xf")](Ws("0x83")).to(s),x[Ws("0xf")](Ws("0x36")).to(s,Ws("0x36"),s,"length",((t,e)=>t||!e)),x.bind(Ws("0x3")).to(s),x.type="comment";const h=new Is({view:x,target:n,type:Ws("0x96")});return r[Ws("0x93")](h),h}[Ws("0x91")](t){const e=this[Ws("0x8e")].plugins[Ws("0x31")](Ws("0x29")),{config:n,locale:o}=this[Ws("0x8e")],r=(0,i.getDateTimeFormatter)(n[Ws("0x31")](Ws("0x62")));return new(0,n[Ws("0x31")](Ws("0x95"))[Ws("0x47")])(o,t,e.me,{editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n.get(Ws("0x57")),maxThreadTotalWeight:n[Ws("0x31")](Ws("0x46")),maxCommentCharsWhenCollapsed:n[Ws("0x31")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:r,CommentView:n[Ws("0x31")](Ws("0x95"))[Ws("0x58")]})}[Ws("0x98")]({threadId:t,isFromAdapter:n}){const o=this[Ws("0x15")](t);if(!o)throw new e.CKEditorError(Ws("0x13"),this);if(this._detachCommentThread(t),this[Ws("0x60")][Ws("0x68")](t),!o[Ws("0x83")]||n||!this[Ws("0x2d")]||"function"!=typeof this[Ws("0x2d")][Ws("0x38")])return Promise[Ws("0x7d")]();const i=this[Ws("0x8e")].plugins[Ws("0x31")](Ws("0x55")),{channelId:r}=o,s=i[Ws("0x93")](Ti(this[Ws("0x8e")][Ws("0x62")],"PENDING_ACTION_COMMENT_THREAD"));return this[Ws("0x2d")][Ws("0x38")]({channelId:r,threadId:t})[Ws("0xe")]((()=>i.remove(s))).catch((t=>{throw console[Ws("0x7c")](t),new e.CKEditorError(Ws("0x43"),this)}))}[Ws("0x70")](t){const e=this[Ws("0x8e")][Ws("0x6a")][Ws("0x31")](zs),n=this[Ws("0x15")](t);if(this[Ws("0x6d")][Ws("0x35")](n)){const t=this[Ws("0x6d")][Ws("0x31")](n),o=t[Ws("0xb")],i=e[Ws("0x92")](o);this[Ws("0x6d")][Ws("0x68")](n),this._viewToController[Ws("0x68")](o),i&&e.remove(i),t.destroy(),o[Ws("0x2c")]()}}[Ws("0x39")](t){const e=this[Ws("0x8e")][Ws("0x6a")][Ws("0x31")](i.Users),n=(0,i.hashObject)(Ws("0x59")+t);return e[Ws("0x3b")](n)||e.addUser({id:n,name:t})}_addComment({threadId:t,commentId:n=(0,e.uid)(),content:o,authorId:r,createdAt:s,attributes:a,isFromAdapter:c}){if(Ws("0x3e")!=typeof n)throw new e.CKEditorError("commentsrepository-invalid-commentid");if(Ws("0x3e")!=typeof r)throw new e.CKEditorError(Ws("0x5e"));if("string"!=typeof o||!o.trim())throw new e.CKEditorError(Ws("0x8f"));const x=this[Ws("0x15")](t);if(!x)throw new e.CKEditorError(Ws("0x1"),this);const h=this[Ws("0x8e")][Ws("0x6a")][Ws("0x31")](i.Users)[Ws("0x3b")](r);if(!h)throw new e.CKEditorError(Ws("0x75"),null,{authorId:r});let d=null,l=s;a&&a["@external"]&&(d=this[Ws("0x39")](a[Ws("0x16")][Ws("0x7e")]),l=a[Ws("0x16")][Ws("0xa")]);const u=new Xs(this,{threadId:t,id:n,author:d||h,creator:h,content:o,createdAt:s,authoredAt:l,attributes:a});if(x[Ws("0x40")](u),c||!this[Ws("0x2d")]||"function"!=typeof this.adapter.addComment)return Promise[Ws("0x7d")]();const m=this[Ws("0x8e")][Ws("0x6a")][Ws("0x31")](Ws("0x55")),{channelId:f}=x,p=m[Ws("0x93")](Ti(this[Ws("0x8e")][Ws("0x62")],"PENDING_ACTION_COMMENT_THREAD"));return a||(a={}),this.adapter.addComment({channelId:f,threadId:t,commentId:n,content:o,attributes:a})[Ws("0xe")]((e=>{if(m[Ws("0x54")](p),this.hasCommentThread(t))e&&e.createdAt&&this._updateComment({threadId:t,commentId:n,createdAt:e[Ws("0xa")],isFromAdapter:!0});else{const i={threadId:t,commentId:n,content:o,attributes:a,createdAt:e&&e.createdAt?e[Ws("0xa")]:s,authorId:h.id};this.addCommentThread({channelId:f,threadId:t,comments:[i],isFromAdapter:!0})}})).catch((t=>{throw console[Ws("0x7c")](t),new e.CKEditorError(Ws("0x66"),this)}))}[Ws("0x1c")]({threadId:t,commentId:n,content:o,createdAt:i,attributes:r,isFromAdapter:s}){if(void 0!==o&&(Ws("0x3e")!=typeof o||!o.trim()[Ws("0x83")]))throw new e.CKEditorError(Ws("0x2f"));const a=this[Ws("0x15")](t),c=a[Ws("0x7")](n);if(!c)throw new e.CKEditorError("commentsrepository-update-missing-comment",this);let x=!1;if(o&&o!==c[Ws("0x88")]&&(c[Ws("0x5c")]||s)&&(c.content=o,x=!0),i&&i!==c[Ws("0xa")]&&(c[Ws("0xa")]=i,c[Ws("0x90")]&&c[Ws("0x90")]["@external"]||(c[Ws("0x7b")]=i),x=!0),r&&!wn(r,c[Ws("0x90")])&&(c[Ws("0x90")]=r,x=!0),!x)return Promise[Ws("0x7d")]();if(a[Ws("0x2e")](Ws("0x6f")),s||!this[Ws("0x2d")]||Ws("0x86")!=typeof this[Ws("0x2d")][Ws("0x42")])return Promise.resolve();const h=this.context.plugins[Ws("0x31")](Ws("0x55")),{channelId:d}=this.getCommentThread(c.threadId),l=h[Ws("0x93")](Ti(this[Ws("0x8e")][Ws("0x62")],"PENDING_ACTION_COMMENT_THREAD"));return this[Ws("0x2d")][Ws("0x42")]({channelId:d,threadId:t,commentId:n,content:o,attributes:r}).then((()=>h[Ws("0x54")](l))).catch((t=>{throw console[Ws("0x7c")](t),new e.CKEditorError(Ws("0x89"),this)}))}[Ws("0x5b")]({threadId:t,commentId:n,isFromAdapter:o}){const i=this[Ws("0x15")](t),r=i[Ws("0x7")](n);if(!r)throw new e.CKEditorError(Ws("0x8b"),this);if(i[Ws("0x78")](r),o||!this[Ws("0x2d")]||Ws("0x86")!=typeof this[Ws("0x2d")][Ws("0x14")])return Promise.resolve();const s=this[Ws("0x8e")][Ws("0x6a")].get("PendingActions"),{channelId:a}=i,c=s[Ws("0x93")](Ti(this.context[Ws("0x62")],"PENDING_ACTION_COMMENT_THREAD"));return this[Ws("0x2d")][Ws("0x14")]({channelId:a,threadId:t,commentId:n})[Ws("0xe")]((()=>s[Ws("0x54")](c)))[Ws("0x4")]((t=>{throw console[Ws("0x7c")](t),new e.CKEditorError(Ws("0x25"),this)}))}}class qs{constructor(t,n){this.channelId=n[Ws("0x1d")],this.id=n.id,this[Ws("0x73")](Ws("0x6c"),!1),this[Ws("0xf")](Ws("0x4b")).to(t,"_nonAdminChannels",(t=>!t[Ws("0x35")](this[Ws("0x1d")]))),this[Ws("0x95")]=new e.Collection,this[Ws("0x3f")]=t,this[Ws("0x77")]=!1}get[Ws("0x84")](){return Array.from(this.comments)[Ws("0x19")](((t,e)=>t+e[Ws("0x84")]),0)}get[Ws("0x83")](){return this[Ws("0x95")][Ws("0x83")]}get isAttached(){return this._isAttached}remove({isFromAdapter:t=!1}={}){const{channelId:e,id:n}=this;this[Ws("0x3f")].fire($s("removeCommentThread",e),{channelId:e,threadId:n,isFromAdapter:t})}[Ws("0x0")](t){return this[Ws("0x3f")][Ws("0xc")]({threadId:this.id,target:t})}[Ws("0x61")](t){const{channelId:e,id:n}=this;this._repository.fire($s(Ws("0x61"),e,n),Object[Ws("0x22")]({channelId:e,threadId:n},t))}[Ws("0x7")](t){if(Ws("0x3e")!=typeof t)throw new e.CKEditorError(Ws("0x94"),null,{commentId:t});return this[Ws("0x95")][Ws("0x31")](t)}toJSON(){return{threadId:this.id,comments:this[Ws("0x95")][Ws("0x3c")]((t=>t[Ws("0x87")]()))}}[Ws("0x40")](t){return this.listenTo(t,Ws("0x81"),(()=>{const e=this[Ws("0x5a")](t),n=this.comments;e-1!=n[Ws("0x21")](t)&&e+1!=n[Ws("0x21")](t)&&(this[Ws("0x78")](t),this[Ws("0x40")](t))})),t.createdAt?this[Ws("0x95")][Ws("0x93")](t,this._findOptimalIndex(t)):this[Ws("0x95")][Ws("0x93")](t)}[Ws("0x78")](t){return this[Ws("0x41")](t),t[Ws("0x2c")](),this[Ws("0x95")].remove(t)}_findOptimalIndex(t){const e=this.comments.find((e=>new Date(e[Ws("0x7b")])[Ws("0x33")]()>new Date(t.authoredAt).getTime()));return e?this.comments[Ws("0x21")](e):this[Ws("0x83")]}}(0,e.mix)(qs,e.ObservableMixin);class Xs{constructor(t,e){const n=t.context[Ws("0x6a")][Ws("0x31")](Ws("0x29")).me,o=t[Ws("0x15")](e.threadId),i=0===o[Ws("0x95")][Ws("0x83")],r=n===e.author;this.id=e.id,this[Ws("0x23")]=e[Ws("0x23")],this.author=e.author,this[Ws("0x26")]=e[Ws("0x26")],this[Ws("0x44")]=Boolean(e[Ws("0x90")]&&e[Ws("0x90")]["@external"]),this[Ws("0x73")](Ws("0x88"),e[Ws("0x88")]),this.createdAt=e[Ws("0xa")]||new Date,this[Ws("0x73")]("authoredAt",e.authoredAt||new Date),this[Ws("0x73")](Ws("0x90"),e[Ws("0x90")]||{}),this[Ws("0x73")](Ws("0x5c"),r),this[Ws("0xf")](Ws("0x4b")).to(o,Ws("0x4b"),(t=>t&&i||r)),this[Ws("0xf")](Ws("0x6c")).to(o,"isReadOnly"),this[Ws("0x3f")]=t}get weight(){return Math[Ws("0x4a")](function(t){const e=document[Ws("0x69")](Ws("0x8c"));return e[Ws("0x1a")]=t,e[Ws("0x65")][Ws("0x83")]}(this[Ws("0x88")]),200)}[Ws("0x6")](t){const{threadId:n,id:o}=this;if(!this[Ws("0x3f")].hasCommentThread(n))throw new e.CKEditorError(Ws("0x64"),this);const{channelId:i}=this[Ws("0x3f")][Ws("0x15")](n);this[Ws("0x3f")][Ws("0x2e")]($s("updateComment",i,n),Object[Ws("0x22")]({channelId:i,threadId:n,commentId:o},t))}[Ws("0x8d")](t,e){const n=Wo(this[Ws("0x90")]);ui(n,t,e),this[Ws("0x6")]({attributes:n})}[Ws("0x34")](t){const e=Wo(this.attributes);vi(e,t),this[Ws("0x6")]({attributes:e})}[Ws("0x54")](t={}){if(!t.isFromAdapter&&!this[Ws("0x4b")])return;const{threadId:n,id:o}=this;if(!this[Ws("0x3f")].hasCommentThread(n))throw new e.CKEditorError("commentsrepository-remove-comment-missing-comment-thread",this);const{channelId:i}=this._repository[Ws("0x15")](n);this[Ws("0x3f")][Ws("0x2e")]($s(Ws("0x14"),i,n),Object[Ws("0x22")]({channelId:i,threadId:n,commentId:o},t))}[Ws("0x87")](){return{commentId:this.id,content:this[Ws("0x88")],createdAt:this[Ws("0xa")],authorId:this[Ws("0x26")].id,attributes:this[Ws("0x90")]}}destroy(){this.stopListening()}}function $s(t,...e){for(const n of e)void 0!==n&&(t+=":"+String(n));return t}(0,e.mix)(Xs,e.ObservableMixin);const Gs=["model","editor","schema","push","getItems","_hasContent","backward","createRange","isEnabled","_trimToContent","change","_itemIsContent","document","selection","textProxy","substr","refresh","isObject","getLastMatchingPosition","tableCell","comment:"];var Js,Ys;Js=Gs,Ys=440,function(t){for(;--t;)Js.push(Js.shift())}(++Ys);const Qs=function(t,e){return Gs[t-=0]};class ta extends t.Command{[Qs("0x11")](){const t=this[Qs("0x2")][Qs("0x1")][Qs("0xd")][Qs("0xe")];for(const e of t.getRanges())if(this[Qs("0x6")](e))return void(this.isEnabled=!0);this[Qs("0x9")]=!1}execute({threadId:t=(0,e.uid)()}={}){const n=this[Qs("0x2")].model,o=[];for(const t of n[Qs("0xd")].selection.getRanges())this[Qs("0x6")](t)&&o[Qs("0x4")](this[Qs("0xa")](t));n[Qs("0xb")]((n=>{for(const i of o){const o=(0,e.uid)()[Qs("0x10")](1,5),r=Qs("0x0")+t+":"+o;n.addMarker(r,{range:i,usingOperation:!1,affectData:!1})}}))}[Qs("0x6")](t){for(const e of t[Qs("0x5")]())if(this[Qs("0xc")](e))return!0;return!1}[Qs("0xc")](t){return t.is(Qs("0xf"))||this[Qs("0x2")][Qs("0x1")][Qs("0x3")][Qs("0x12")](t)&&!t.is("element",Qs("0x14"))}[Qs("0xa")](t){const e=t=>!this[Qs("0xc")](t.item),n=t.start[Qs("0x13")](e),o=t.end[Qs("0x13")](e,{direction:Qs("0x7")});return this[Qs("0x2")][Qs("0x1")][Qs("0x8")](n,o)}}const ea=["editorannotations-invalid-source-callback","element","init","_dataCollectors","selection","change:isFocused","isCollapsed","listenTo","isReadOnly","delete","plugins","annotation","getRanges","editing","from","getByInnerView","focusTracker","directChange","model","document","hasDomSelection","uiUpdate","cancel","view","set","range","update","_editorAnnotationsData","editor","add","fire","has","addSourceCollector","isEqual","push","refresh","_editorAnnotations","getOrderedSelectedAnnotations","containsRange","innerView","sort"];var na,oa;na=ea,oa=385,function(t){for(;--t;)na.push(na.shift())}(++oa);const ia=function(t,e){return ea[t-=0]};class ra extends t.Plugin{static get requires(){return[zs]}static get pluginName(){return"EditorAnnotations"}constructor(t){super(t),this[ia("0x1c")]=new Set,this[ia("0x14")]=new Set}[ia("0x1b")](){const t=this[ia("0xc")],e=t[ia("0x2")][ia("0x3")][ia("0x1d")],n=xs((()=>this.refreshSelectedViews()),10);e.on("change:range",((t,e)=>{e[ia("0x1")]&&(n[ia("0x6")](),this.refreshSelectedViews())})),this[ia("0x20")](t[ia("0x26")].view[ia("0x3")],ia("0x1e"),((t,e,o)=>{o&&n()})),this[ia("0x20")](t.ui.focusTracker,ia("0x1e"),((e,n,o)=>{o||t[ia("0x21")]||this[ia("0xe")]("blur",{isAnnotationTracked:t=>this._editorAnnotationsData[ia("0xf")](t[ia("0x17")])})})),this[ia("0x20")](this[ia("0xc")].ui,ia("0xa"),(()=>this[ia("0xe")](ia("0x5"))))}registerAnnotation(t){if(this[ia("0x14")][ia("0xf")](t))return;this._editorAnnotations[ia("0xd")](t[ia("0x7")]),this[ia("0xc")].ui[ia("0x0")][ia("0xd")](t[ia("0x7")][ia("0x1a")]);const e=this[ia("0xc")][ia("0x23")].get(zs);this.listenTo(e.collection,"remove",((t,e)=>{this[ia("0xc")].ui[ia("0x0")].remove(e[ia("0x7")][ia("0x1a")]),this[ia("0x14")][ia("0x22")](e.view)}))}hasDomSelection(){return this[ia("0xc")][ia("0x26")][ia("0x7")][ia("0x4")]}[ia("0x10")](t){if("function"!=typeof t)throw new e.CKEditorError(ia("0x19"));this[ia("0x1c")][ia("0xd")](t)}refreshSelectedViews(){this[ia("0xe")](ia("0x13"))}[ia("0x15")]({activeAnnotation:t,annotations:e}){const n=[],o=this[ia("0xc")][ia("0x2")].document.selection,i=Array[ia("0x27")](o[ia("0x25")]());for(const[t,o]of this._editorAnnotationsData){const i=r(o),s=e[ia("0x28")](t);i&&s&&n[ia("0x12")]({annotation:s,range:i})}function r(t){for(const e of t)for(const t of i)if(e[ia("0x16")](t,!o[ia("0x1f")]))return e;return null}return n[ia("0x18")](((e,n)=>{const o=e[ia("0x9")],i=n[ia("0x9")];if(!o[ia("0x11")](i)){if(o[ia("0x16")](i,!0))return 1;if(i[ia("0x16")](o,!0))return-1}return e[ia("0x24")]==t?-1:n.annotation==t?1:0})).map((t=>t[ia("0x24")]))}get[ia("0xb")](){const t=new Map;for(const e of Array[ia("0x27")](this[ia("0x1c")]))for(const[n,o]of e())t[ia("0x8")](n,o);return t}}const sa=["enableCommand","editor","get","plugins","addCommentThread","RestrictedEditingModeEditing"];var aa,ca;aa=sa,ca=236,function(t){for(;--t;)aa.push(aa.shift())}(++ca);const xa=function(t,e){return sa[t-=0]};class ha extends t.Plugin{afterInit(){const t=this[xa("0x5")];t[xa("0x1")].has(xa("0x3"))&&t[xa("0x1")][xa("0x0")](xa("0x3"))[xa("0x4")](xa("0x2"))}}var da=n(446),la={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ur()(da.Z,la);da.Z.locals;const ua=["plugins","forEach","collaboration_features","map","get","dataInsert","_handleImportedData","Users","commands","execute","listenTo","basic","config","define","importWord.commentsStyles","importWord","editor","collaboration.channelId","afterInit"];var ma,fa;ma=ua,fa=345,function(t){for(;--t;)ma.push(ma.shift())}(++fa);const pa=function(t,e){return ua[t-=0]};class ga extends t.Plugin{constructor(t){super(t),this[pa("0xd")][pa("0x9")][pa("0xa")](pa("0xb"),pa("0x8"))}[pa("0xf")](){const t=this[pa("0xd")],n=t[pa("0x5")][pa("0x1")]("importWord"),o=t[pa("0x10")][pa("0x1")](pa("0x4"));n&&(n.on(pa("0x6"),((t,[,e])=>{e[pa("0x12")]={comments:!0,user_id:o.me.id,comments_styles:this[pa("0xd")].config[pa("0x1")](pa("0xb"))}}),{priority:e.priorities.high+10}),this[pa("0x7")](n,pa("0x2"),this[pa("0x3")]))}_handleImportedData(t,e){const{comment_threads:n}=e;n&&n[pa("0x11")]((({thread_id:t,comments:e})=>{const n=e[pa("0x0")]((({author:t,content:e,created_at:n})=>({content:e,authorId:this.editor.plugins[pa("0x1")](pa("0x4")).me.id,createdAt:new Date,attributes:{"@external":{authorName:t,createdAt:n?new Date(n):new Date,source:pa("0xc")}}}))),o=this.editor.config[pa("0x1")](pa("0xe"));this[pa("0xd")][pa("0x10")][pa("0x1")](Zs).addCommentThread({channelId:o,threadId:t,comments:n})}))}}const ba=["destroyed","document","plugins","hasMarkerForId","_detachCommentThread","activeMarker","openNewCommentThread","view","name","markerName","root","reconvertMarker","differ","markerToData","state","createElement","getAttribute","config","once","get","_attachMarkerToThread","$marker","_attachedThreads","editor","EditorAnnotations","CommentsEditing","change:isThreadsLoadingPaused","includes","ready","comment","add","createPositionBefore","upcast","init","removeMarker","getAllMarkersForId","hasContent","getCommentThread","isObject","rootName","map","getByInnerView","_threadToController","split","model","ck-comment-marker","for","change","filter","requires","addCommentThread","low","has","destroy","$graveyard","change:isReadOnly","high","dataDowncast","updateMarker","listenTo","hasCommentThread","text","end","getChangedMarkers","length","stop","isCollapsed","markers","addComment","update:comment","registerAnnotation","schema","_initializeMarkerConverters","getCommentThreads","size","editingDowncast","commands","set","push","newRange","isThreadsLoadingPaused","delete","editing","removeCommentThread","affectsData","start","dataToMarker","conversion","CommentsRepository","collaboration.channelId"];var va,_a;va=ba,_a=417,function(t){for(;--t;)va.push(va.shift())}(++_a);const wa=function(t,e){return ba[t-=0]};class ka extends t.Plugin{static get[wa("0x52")](){return[Zs,ra,ha,ga]}static get pluginName(){return wa("0x3a")}constructor(t){super(t),this.set(wa("0x17"),!0),t.data.once(wa("0x3d"),(()=>this[wa("0x17")]=!1)),this[wa("0x14")](wa("0x26"),null),this.on("change:activeMarker",((e,n,o,i)=>{t[wa("0x4d")][wa("0x50")]((()=>{if(o){const{id:e}=Aa(o),n=this[wa("0x44")](e);for(const e of n)t.editing[wa("0x2c")](e)}if(i){const{id:e}=Aa(i),n=this[wa("0x44")](e);for(const e of n)t.editing.reconvertMarker(e)}}))})),this[wa("0x37")]=new Map}[wa("0x42")](){const t=this[wa("0x38")],e=t[wa("0x23")][wa("0x34")](wa("0x1f")),n=t[wa("0x32")][wa("0x34")]("collaboration.channelId");t[wa("0x13")][wa("0x3f")](wa("0x53"),new ta(t)),this[wa("0x2")](t,wa("0x58"),((n,o,i)=>{e.switchReadOnly(i,t[wa("0x32")].get("collaboration.channelId"))})),this[wa("0x2")](e,ya(wa("0x1a"),n),((n,{threadId:o})=>{t[wa("0x4d")][wa("0x50")]((t=>{for(const e of this[wa("0x44")](o))t[wa("0x43")](e)}));const i=e[wa("0x46")](o);e[wa("0x3")](o)&&!i[wa("0x7")]||n[wa("0x8")]()}),{priority:wa("0x59")}),this.listenTo(e,ya(wa("0xb"),n),((n,{threadId:o,isFromAdapter:i})=>{const r=this.getAllMarkersForId(o);!i&&0!=r[wa("0x7")]&&e[wa("0x3")](o)&&1===e[wa("0x46")](o)[wa("0x7")]&&t[wa("0x4d")].change((t=>{for(const e of r)t[wa("0x1")](e,{usingOperation:!0,affectsData:!0})}))}),{priority:wa("0x54")}),this[wa("0xf")](),this._handleMarkerAddAndRemove()}[wa("0x56")](){const t=this.editor[wa("0x23")][wa("0x34")](wa("0x1f")),e=this[wa("0x38")][wa("0x32")][wa("0x34")]("collaboration.channelId");for(const n of t[wa("0x10")]({channelId:e}))t[wa("0x25")](n.id),t._threads[wa("0x18")](n.id);super.destroy()}[wa("0x24")](t){return this[wa("0x44")](t).length>0}getAllMarkersForId(t){return(this[wa("0x37")][wa("0x34")](t)||[])[wa("0x49")]((t=>this[wa("0x38")][wa("0x4d")][wa("0xa")][wa("0x34")](t)))[wa("0x51")]((t=>t))}[wa("0xf")](){const t=this.editor;t[wa("0x1e")][wa("0x4f")](wa("0x12")).markerToHighlight({model:wa("0x3e"),view:t=>{const{id:e}=Aa(t[wa("0x2a")]),n=[wa("0x4e")];return this[wa("0x26")]&&Aa(this[wa("0x26")]).id===e&&n[wa("0x15")]("ck-comment-marker--active"),{classes:n,attributes:{"data-comment":e}}}}),t[wa("0x1e")][wa("0x4f")](wa("0x0"))[wa("0x2e")]({model:wa("0x3e"),view:e=>{const n=t[wa("0x4d")][wa("0xa")][wa("0x34")](e),{id:o,part:i}=Aa(e);return n&&!n[wa("0x1b")]?null:{group:wa("0x3e"),name:i?o+":"+i:o}}}),t[wa("0x1e")][wa("0x4f")](wa("0x41")).elementToElement({view:{name:"comment",attribute:{id:/^\w/}},model:(t,{writer:e})=>e[wa("0x30")](wa("0x36"),{"data-name":"comment:"+t[wa("0x31")]("id")})}),t[wa("0x1e")][wa("0x4f")](wa("0x41"))[wa("0x1d")]({view:wa("0x3e")})}_handleMarkerAddAndRemove(){const t=this[wa("0x38")],e=t.plugins[wa("0x34")]("CommentsRepository"),n=new Set;t.model[wa("0x22")].registerPostFixer((e=>{let o=!1;for(const{name:i,data:r}of t[wa("0x4d")][wa("0x22")][wa("0x2d")][wa("0x6")]()){const{group:s,id:a}=Aa(i);let c=r[wa("0x16")];if(wa("0x3e")!==s||!c)continue;const x=wa("0x57")===c[wa("0x2b")][wa("0x48")];x||(c=Ca(c,t[wa("0x4d")]),!c||c.isEqual(r.newRange))?!c||!t[wa("0x4d")][wa("0x45")](c)||this[wa("0x37")].has(a)&&x?(e[wa("0x43")](i),o=!0):x||(this[wa("0x17")]?n[wa("0x3f")](i):this[wa("0x35")](i,a)):(e[wa("0x1")](i,{range:c}),o=!0)}return o})),this.on(wa("0x3b"),((e,o,i)=>{if(!i&&n[wa("0x11")])for(const e of n){const{id:o}=Aa(e);n[wa("0x18")](o),t[wa("0x4d")][wa("0xa")][wa("0x34")](e)&&this[wa("0x35")](e,o)}})),this[wa("0x2")](t.model[wa("0xa")],wa("0xc"),((o,i,r,s)=>{if(s)return;const{id:a}=Aa(i[wa("0x29")]),c=t.plugins[wa("0x34")]("CommentsRepository").getCommentThread(a);n[wa("0x18")](a),c&&!this[wa("0x24")](a)&&(this._attachedThreads.delete(a),e[wa("0x25")](a))}))}_attachMarkerToThread(t,e){if(this._attachedThreads[wa("0x55")](e)){const n=this[wa("0x37")][wa("0x34")](e);return void(n[wa("0x3c")](t)||n[wa("0x15")](t))}this._attachedThreads[wa("0x14")](e,[t]);const n=this[wa("0x38")],o=n.plugins[wa("0x34")](wa("0x1f")),r=n.config[wa("0x34")](wa("0x20")),s=n.plugins.get(wa("0x39")),a=()=>{const t=this.getAllMarkersForId(e);return(0,i.getAllMarkersDomElementsSorted)(n.editing,t)};this[wa("0x44")](e)[0].managedUsingOperations?o.fetchCommentThread({channelId:r,threadId:e}).then((t=>{if(wa("0x21")!==n[wa("0x2f")])if(t){const e=t.attachTo(a);s[wa("0xd")](e)}else{const t=this[wa("0x44")](e);n[wa("0x4d")].change((e=>{for(const n of t)e[wa("0x43")](n)}))}})):n[wa("0x19")].view[wa("0x33")]("render",(()=>{const t=n[wa("0x23")].get("Annotations"),i=o[wa("0x27")]({channelId:r,threadId:e,target:a}),c=o[wa("0x4b")].get(i)[wa("0x28")],x=t[wa("0x4a")](c);s[wa("0xd")](x)}),{priority:wa("0x54")})}}function ya(t,e){return e?t+":"+e:t}function Aa(t){const e=t[wa("0x4c")](":");return{group:e[0],id:e[1],part:e[2]}}function Ca(t,e){const n=e[wa("0xe")],o=e.createRange(t[wa("0x1c")]);for(const i of t.getWalker()){const{type:t,item:r,nextPosition:s}=i;if(wa("0x4")===t||n[wa("0x47")](r)){const t=e[wa("0x40")](r);o[wa("0x9")]&&(o.start=t),o[wa("0x5")]=s}}return o.isCollapsed?null:o}const Ta='\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 1.5h12A3.5 3.5 0 0 1 19.5 5v8l-.005.192a3.501 3.501 0 0 1-2.927 3.262l-.062.008v1.813a1.5 1.5 0 0 1-2.193 1.33l-.371-.193-.38-.212a13.452 13.452 0 0 1-3.271-2.63l-.062-.07H4A3.5 3.5 0 0 1 .5 13V5A3.5 3.5 0 0 1 4 1.5ZM4 3a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h6.924a11.916 11.916 0 0 0 3.71 3.081l.372.194v-3.268L14.962 15H16a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2H4Zm1.55 5a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.5 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Zm4.5 0a1.25 1.25 0 1 1 0 2.5 1.25 1.25 0 0 1 0-2.5Z"/></svg>\n',Ea=["init","getAllMarkersForId","getCommentThread","hasCommentThread","removeCommentThread","addSourceCollector","get","tooltip","map","icon","CommentThreadInputView","comment:","find","execute","_threadToController","hasMarkerForId","editor","_createUIButton","from","commands","activeMarker","focus","_viewToController","componentFactory","bind","locale","low","editing","model","focusTracker","label","change:activeAnnotations","view","length","pluginName","stop","CommentsUI","has","isFocused","plugins","addCommentThread","listenTo","addComment","add","innerView","Comment","requires"];var Ia,Oa;Ia=Ea,Oa=361,function(t){for(;--t;)Ia.push(Ia.shift())}(++Oa);const ja=function(t,e){return Ea[t-=0]};class Va extends t.Plugin{static get[ja("0x2")](){return ja("0x4")}static get[ja("0xe")](){return[Zs,ka,ra,zs]}get CommentsListView(){return mr}get[ja("0x19")](){return ir}[ja("0xf")](){const t=this[ja("0x1f")],e=t[ja("0x7")][ja("0x15")](Zs),n=t[ja("0x7")][ja("0x15")](ka),o=t[ja("0x7")].get(zs),i=t[ja("0x7")][ja("0x15")](ra);t.ui[ja("0x26")][ja("0xb")]("comment",(()=>this[ja("0x20")]())),i[ja("0x14")]((()=>{const t=[];for(const[o,i]of e[ja("0x1d")]){const e=n[ja("0x10")](o.id),r=e[ja("0x17")]((t=>t.getRange()));e[ja("0x1")]>0&&t.push([i[ja("0x0")],r])}return t})),this[ja("0x9")](o,ja("0x2e"),((t,o,i)=>{const r=Array[ja("0x21")](i).map((t=>t[ja("0xc")]))[ja("0x1b")]((t=>e[ja("0x25")][ja("0x5")](t)));if(!r)return void(n[ja("0x23")]=null);const s=e[ja("0x25")][ja("0x15")](r)[ja("0x2b")].id,a=ja("0x1a")+s;n.hasMarkerForId(s)?n[ja("0x23")]=a:n[ja("0x23")]&&(n.activeMarker=null)})),this[ja("0x9")](e,ja("0x13"),((e,{threadId:o,isFromAdapter:i})=>{!i&&t.ui[ja("0x2c")][ja("0x6")]&&n.hasMarkerForId(o)&&t[ja("0x2a")].view[ja("0x24")]()}),{priority:"highest"}),this[ja("0x9")](e,ja("0xa"),((o,{threadId:i,isFromAdapter:r})=>{!r&&n[ja("0x1e")](i)&&e[ja("0x12")](i)&&1===e[ja("0x11")](i)[ja("0x1")]&&(t[ja("0x2a")][ja("0x0")][ja("0x24")](),o[ja("0x3")]())}),{priority:ja("0x29")})}_createUIButton(){const t=this[ja("0x1f")],e=new Ci.ButtonView(t[ja("0x28")]),n=t[ja("0x22")][ja("0x15")](ja("0x8"));return e[ja("0x2d")]=Ti(t[ja("0x28")],ja("0xd")),e[ja("0x16")]=Ti(t.locale,"Comment"),e[ja("0x18")]=Ta,e[ja("0x27")]("isEnabled").to(n),this[ja("0x9")](e,ja("0x1c"),(()=>n.execute())),e}}const Ma=["commentsOnly","isEnabled","get","addCommentThread","plugins","pluginName","clearForceDisabled","delete","CommentsOnly","commentsOnlyMode","highest","editing","forceDisabled","editor","document","stop","afterInit","view","_enableCommentsOnlyMode","config","listenTo","clipboardInput","commands","set","DragDrop","_disableCommentsOnlyMode"];var Ra,Sa;Ra=Ma,Sa=416,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const Na=function(t,e){return Ma[t-=0]};class Da extends t.Plugin{static get[Na("0x5")](){return Na("0x8")}static get requires(){return[ka]}constructor(t){super(t),this[Na("0x17")](Na("0x1"),null),this.on("change:isEnabled",((t,e,n)=>{n?this[Na("0x12")]():this[Na("0x19")]()}))}[Na("0x10")](){null===this[Na("0x1")]&&(this[Na("0x1")]=!!this[Na("0xd")][Na("0x13")][Na("0x2")](Na("0x0")))}[Na("0x12")](){for(const[t,e]of this.editor.commands)e.affectsData&&Na("0x3")!==t&&e[Na("0xc")]("commentsOnlyMode");this[Na("0xd")].plugins.has("DragDrop")&&this.editor[Na("0x4")][Na("0x2")](Na("0x18"))[Na("0xc")](Na("0x9"));const t=this[Na("0xd")][Na("0xb")][Na("0x11")][Na("0xe")];this[Na("0x14")](t,"cut",(t=>t[Na("0xf")]()),{priority:Na("0xa")}),this[Na("0x14")](t,Na("0x15"),(t=>t[Na("0xf")]()),{priority:Na("0xa")}),this[Na("0x14")](t,Na("0x7"),(t=>t[Na("0xf")]()),{priority:Na("0xa")})}[Na("0x19")](){for(const[t,e]of this[Na("0xd")][Na("0x16")])e.affectsData&&Na("0x3")!==t&&e[Na("0x6")]("commentsOnlyMode");this.stopListening(this[Na("0xd")][Na("0xb")].view[Na("0xe")])}}const Pa=["register","has","deactivateAll","length","listenTo","get","isActive","attach","requires","push","_assertAnnotationDoesNotBelongToMultipleUIs","setActiveAnnotation","_activateAnnotation","add","context","delete","_addActiveAnnotation","activeUIs","detach","plugins","_removeActiveAnnotation","set","function","annotationsuis-activate-missing-ui","annotationsuis-register-already-registered","AnnotationsUIs","switchTo","_uisData","deactivate","_setSelectedAnnotations","activate","type","destroy","pluginName","change:activeAnnotation","size","init","remove","find","filter","from","activeAnnotations","stopListening","collection","refilterAnnotations","_visibleAnnotations","_uis","_deactivateAllAnnotations"];var Ba,La;Ba=Pa,La=150,function(t){for(;--t;)Ba.push(Ba.shift())}(++La);const za=function(t,e){return Pa[t-=0]};class Fa extends t.ContextPlugin{static get[za("0x2")](){return[zs]}static get[za("0x1b")](){return za("0x13")}constructor(t){super(t),this[za("0xb")]=new Set,this[za("0x28")]=new Map,this[za("0x15")]=new Map}[za("0x1e")](){const t=this[za("0x8")].plugins.get(zs);this.listenTo(t,za("0x6"),((t,e)=>{for(const t of this.activeUIs){const n=this[za("0x28")][za("0x2f")](t);(0,this[za("0x15")][za("0x2f")](t)[za("0x21")])(e)&&n.setActiveAnnotation(e)}})),this[za("0x2e")](t,za("0x29"),(()=>{for(const t of this.activeUIs)this._uis[za("0x2f")](t)[za("0x5")](null)})),this[za("0x2e")](t[za("0x27")],za("0x7"),((t,e)=>{this._assertAnnotationDoesNotBelongToMultipleUIs(e)}))}hasActive(){return this[za("0xb")][za("0x1d")]>0}[za("0x0")](t){return this.activeUIs[za("0x2b")](t)}[za("0x18")](t,n=(()=>!0)){const o=this[za("0x8")].plugins.get(zs);if(!this[za("0x28")][za("0x2b")](t))throw new e.CKEditorError(za("0x11"),this,{uiName:t});this[za("0x0")](t)&&this[za("0x16")](t),this[za("0xb")][za("0x7")](t);const i=new Ss;(function({source:t,target:e,filter:n}){for(const o of t)n(o)&&e[Rs("0xa")](o);e.listenTo(t,Rs("0xa"),((t,o)=>{n(o)&&e.add(o)})),e.listenTo(t,Rs("0x16"),((t,n)=>{e[Rs("0x1a")](n)&&e[Rs("0x16")](n)}))})({source:o._visibleAnnotations,target:i,filter:n}),this[za("0x15")].set(t,{collection:i,filter:n});const r=this[za("0x28")][za("0x2f")](t);r.attach(i),this[za("0x2e")](r,za("0x1c"),((t,e,n,i)=>{i&&o[za("0xe")](i),n&&o[za("0xa")](n)}))}[za("0x16")](t){this[za("0xb")][za("0x9")](t);const e=this[za("0x28")][za("0x2f")](t);e[za("0xc")](),this[za("0x24")](e),this[za("0x15")][za("0x2f")](t)[za("0x25")][za("0x1a")](),this[za("0x15")].delete(t)}[za("0x14")](t){const e=this[za("0x8")][za("0xd")][za("0x2f")](zs),n=Array.from(e[za("0x23")])[0]||null;this[za("0x2c")](),this[za("0x18")](t);const o=this[za("0x28")][za("0x2f")](t);o.setActiveAnnotation(n),o[za("0x17")]&&n&&o[za("0x17")]([n])}deactivateAll(){for(const t of this[za("0xb")])this[za("0x16")](t)}[za("0x2a")](t,n){if(this[za("0x28")].has(t))throw new e.CKEditorError(za("0x12"));if(za("0x10")!=typeof n[za("0x1")]||za("0x10")!=typeof n[za("0xc")]||"function"!=typeof n[za("0x5")])throw new e.CKEditorError("annotationsuis-register-invalid-interface",null);this[za("0x28")][za("0xf")](t,n)}[za("0x26")](){const t=this[za("0x8")][za("0xd")][za("0x2f")](zs)[za("0x25")],e=new Map,n=Array[za("0x22")](this[za("0xb")]);for(const t of this.activeUIs){const n=this[za("0x15")].get(t).collection;for(const o of n)e[za("0xf")](o,t)}for(const o of t){const t=e[za("0x2f")](o);this[za("0x4")](o);const i=n[za("0x20")]((t=>this[za("0x15")].get(t)[za("0x21")](o)));t!==i&&(t&&this[za("0x15")][za("0x2f")](t).collection[za("0x1f")](o),i&&this[za("0x15")].get(i)[za("0x25")][za("0x7")](o))}}[za("0x1a")](){this.deactivateAll(),super[za("0x1a")]()}[za("0x4")](t){const n=[];for(const e of this[za("0xb")])(0,this[za("0x15")][za("0x2f")](e)[za("0x21")])(t)&&n[za("0x3")](e);if(n[za("0x2d")]>1)throw new e.CKEditorError("annotationsuis-annotation-mismatch",null,{matchedUIs:n,annotationType:t[za("0x19")]})}}var Ua=n(100),Ka={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ur()(Ua.Z,Ka);Ua.Z.locals;const Wa=["ck-reset","minHeight","div","list","set","setTemplate","class"];var Ha,Za;Ha=Wa,Za=133,function(t){for(;--t;)Ha.push(Ha.shift())}(++Za);const qa=function(t,e){return Wa[t-=0]},Xa=(0,e.toUnit)("px");class $a extends Ci.View{constructor(t){super(t);const e=this.bindTemplate;this.set(qa("0x1"),0),this[qa("0x4")]("class",""),this[qa("0x3")]=this.createCollection(),this[qa("0x5")]({tag:qa("0x2"),attributes:{class:["ck","ck-sidebar",qa("0x0"),e.to(qa("0x6"))],style:{minHeight:e.to(qa("0x1"),(t=>t?Xa(t+10):null))}},children:this.list})}}const Ga=["top","ck-sidebar-item","attach","setTemplate","_targetTop","createCollection","height","bindTemplate","_mutationObserver","content","bottom","isAnimationDisabled","element","clientHeight","render","destroy","set"];var Ja,Ya;Ja=Ga,Ya=342,function(t){for(;--t;)Ja.push(Ja.shift())}(++Ya);const Qa=function(t,e){return Ga[t-=0]},tc=(0,e.toUnit)("px");class ec extends Ci.View{constructor(t){super(t),this.set(Qa("0xf")),this[Qa("0xe")](Qa("0x4"),0),this.bind(Qa("0x8")).to(this,"top",this,"height",((t,e)=>(t||0)+e)),this.set(Qa("0x9"),!1),this._mutationObserver=ps((()=>this.updateHeight())),this[Qa("0x2")]=null,this[Qa("0x7")]=this[Qa("0x3")]();const e=this[Qa("0x5")];this[Qa("0x1")]({tag:"div",attributes:{class:[Qa("0x10"),e.to(Qa("0x9"),(t=>t?"ck-sidebar-item--no-animation":""))],style:{top:e.to(Qa("0xf"),tc)}},children:this[Qa("0x7")]})}[Qa("0xc")](){super[Qa("0xc")](),this[Qa("0x6")][Qa("0x0")](this.element)}updateHeight(){const t=this[Qa("0xa")][Qa("0xb")];t&&(this[Qa("0x4")]=t)}[Qa("0xd")](){this.content.clear(),this[Qa("0x6")].detach(),super[Qa("0xd")]()}}const nc=["push","getSidebarItemView","add","addAnnotation","appendChild","refresh","_getMaxAvailableTop","_alignForBottomChange","target","destroy","change:top","_detachFromContainer","setContainer","unbind","length","isAnimationDisabled","top","_getItemBefore","minHeight","sidebar.container","get","_lastItem","_createSidebarView","rearrange","last","_attachToContainer","_targetTop","set","updateHeight","remove","_activeAnnotation","sidebar-attachtocontainer-missing-container","_annotationToSidebarItemView","_spaceBetweenItems","_alignBeforeItem","_destroySidebarItemView","delete","isActive","max","pluginName","list","_getTargetTop","_recalculate","sidebar.preventScrollOutOfView","_recalculateBuffer","render","context","_getItemAfter","object","change:bottom","container","_alignToTargetRect","class","listenTo","_setItemTop","content","view","stopListening","targetRect","getIndex","locale","_alignAfterItem","Sidebar","sidebar-setcontainer-invalid-element","bottom","_updateLastItem","nodeType","_sidebarItemViewToAnnotation","_alignForTopChange","_annotations","init","element","config"];var oc,ic;oc=nc,ic=229,function(t){for(;--t;)oc.push(oc.shift())}(++ic);const rc=function(t,e){return nc[t-=0]};class sc extends t.ContextPlugin{static get[rc("0x1d")](){return rc("0x34")}constructor(t){super(t),this[rc("0x11")](rc("0xb")),this.view=this[rc("0xc")](),this[rc("0x11")]("container",null),this[rc("0x17")]=25,this[rc("0x39")]=new Map,this[rc("0x16")]=new Map,this[rc("0x24")][rc("0x3e")].define("sidebar.preventScrollOutOfView",!1),this[rc("0x3b")]=null,this[rc("0x14")]=null,this._recalculateBuffer=[]}[rc("0x3c")](){const t=this[rc("0x24")][rc("0x3e")][rc("0xa")](rc("0x9"));t&&this[rc("0x2")](t)}[rc("0x2")](t){if(!cc(t))throw new e.CKEditorError(rc("0x35"));this[rc("0x28")]=t}[rc("0xf")]({viewClass:t="",spaceBetweenItems:n=25}={}){if(!cc(this[rc("0x28")]))throw new e.CKEditorError(rc("0x15"),this);this[rc("0x28")][rc("0x43")](this[rc("0x2e")][rc("0x3d")]),this[rc("0x2e")][rc("0x2a")]=t,this[rc("0x17")]=n}[rc("0xd")]({removedAnnotation:t,previousAnnotation:e,nextAnnotation:n}){const o=this[rc("0x40")](t);this[rc("0x2e")].list.remove(o),this._destroySidebarItemView(t),e&&this[rc("0x29")](this[rc("0x40")](e)),n&&this[rc("0x29")](this[rc("0x40")](n)),this._updateLastItem()}[rc("0x44")]({blurredAnnotation:t,activatedAnnotation:e,disableAnimationOnActivatedAnnotation:n}){if(this[rc("0x14")]=e,t){t.isActive=!1;const e=this.getSidebarItemView(t);e&&n&&(e[rc("0x5")]=!1)}if(e){const t=this[rc("0x40")](e);t&&(e[rc("0x1b")]=!0,n&&(t.isAnimationDisabled=!0,t[rc("0x6")]+=1),this[rc("0x29")](t))}}[rc("0x1")](t){this[rc("0x2f")](),this[rc("0x2e")].element[rc("0x13")]();for(const e of t)this[rc("0x19")](e);this[rc("0x2e")][rc("0x1e")].clear(),this[rc("0x2e")][rc("0x2a")]="",this[rc("0xb")]=null}[rc("0x42")](t,e){e||(e=t.view);const n=new ec(this.context.locale);this._sidebarItemViewToAnnotation[rc("0x11")](n,t),this[rc("0x16")][rc("0x11")](t,n),n[rc("0x2d")][rc("0x41")](e),this[rc("0x2b")](t[rc("0x2e")],"change:targetRect",((e,o,i)=>{const r=this[rc("0x1f")](t,i);n[rc("0x10")]!=r&&(n[rc("0x10")]=r,this[rc("0x2c")](n,r))})),this[rc("0x2b")](n,rc("0x0"),(()=>{this[rc("0x20")](n,"top")})),this[rc("0x2b")](n,rc("0x27"),(()=>{this[rc("0x20")](n,rc("0x36"))})),this[rc("0x29")](n);const o=this[rc("0x7")](n);return o?this[rc("0x33")](o,n)||this._alignToTargetRect(n):this[rc("0x29")](n),this[rc("0x37")](),this.view[rc("0x1e")][rc("0x41")](n),n}[rc("0x3a")](t){if(!t[rc("0x2d")].length)return;const e=this[rc("0x7")](t);if(!e)return;const n=this[rc("0x39")][rc("0xa")](e),o=this[rc("0x14")];o&&o===n?this._alignAfterItem(e,t):this[rc("0x18")](t,e)}_alignForBottomChange(t){if(!t[rc("0x2d")][rc("0x4")])return;const e=this[rc("0x25")](t);if(!e)return;const n=this[rc("0x39")][rc("0xa")](e),o=this[rc("0x24")][rc("0x3e")][rc("0xa")](rc("0x21")),i=this[rc("0x14")];i&&i===n&&o?(this[rc("0x18")](e,t),this[rc("0x33")](t,e)):i&&i===n?this[rc("0x18")](e,t):this[rc("0x33")](t,e)}[rc("0x20")](t,e){0===this._recalculateBuffer[rc("0x4")]&&setTimeout((()=>{for(const{sidebarItemView:t,changedProp:e}of this._recalculateBuffer)rc("0x6")===e?this[rc("0x3a")](t):this[rc("0x46")](t);this[rc("0x22")]=[]}),10),this[rc("0x22")][rc("0x3f")]({sidebarItemView:t,changedProp:e})}[rc("0x40")](t){return this._annotationToSidebarItemView[rc("0xa")](t)}[rc("0x48")](){this[rc("0x2e")].destroy()}[rc("0x19")](t){const e=this.getSidebarItemView(t);this[rc("0x2f")](e),this.stopListening(t.view),e.destroy(),this[rc("0x16")][rc("0x1a")](t),this[rc("0x39")].delete(e)}[rc("0xc")](){const t=new $a(this[rc("0x24")][rc("0x32")]);return t[rc("0x23")](),this.on("change:_lastItem",((e,n,o,i)=>{i&&t[rc("0x3")](rc("0x8")),o?t.bind(rc("0x8")).to(o,rc("0x36")):t[rc("0x8")]=null})),t}[rc("0x37")](){this._lastItem=this.getSidebarItemView(this._annotations[rc("0xe")])}[rc("0x7")](t){const e=this._sidebarItemViewToAnnotation[rc("0xa")](t),n=this[rc("0x3b")].get(this[rc("0x3b")][rc("0x31")](e)-1);return n&&this[rc("0x40")](n)}[rc("0x25")](t){const e=this._sidebarItemViewToAnnotation.get(t),n=this[rc("0x3b")].get(this[rc("0x3b")][rc("0x31")](e)+1);return n&&this[rc("0x40")](n)}[rc("0x18")](t,e){t[rc("0x12")]();const n=ac(e[rc("0x36")]+this[rc("0x17")],t[rc("0x6")]);return!!n&&(this._setItemTop(e,e[rc("0x6")]-n),!0)}_alignAfterItem(t,e){t[rc("0x12")]();const n=ac(t[rc("0x36")]+this[rc("0x17")],e[rc("0x6")]);return!!n&&(this[rc("0x2c")](e,e.top+n,!1),!0)}[rc("0x29")](t){const e=this[rc("0x39")].get(t);if(!e||!e[rc("0x47")])return;const n=this[rc("0x1f")](e,e[rc("0x30")]);this[rc("0x2c")](t,n)}[rc("0x1f")](t,n){if(null===n)return 0;if(t[rc("0x47")]instanceof e.Rect)return n[rc("0x6")];{const t=new e.Rect(this[rc("0x2e")].element)[rc("0x6")];return n[rc("0x6")]-t}}[rc("0x2c")](t,e,n=this.context[rc("0x3e")].get(rc("0x21"))){n&&(e=Math[rc("0x1c")](e,this[rc("0x45")](t))),t[rc("0x6")]=e}[rc("0x45")](t){let e=this._getItemBefore(t),n=0;for(;e;)e[rc("0x12")](),n+=this[rc("0x17")]+e.height,e=this[rc("0x7")](e);return n}}function ac(t,e){return Math.max(t-e,0)}function cc(t){return null!==t&&rc("0x26")==typeof t&&1===t[rc("0x38")]}const xc=["stop","hasDomSelection","resize","set","has","rearrange","high","pluginName","addEventListener","_destroyEditorAnnotationsIntegration","detach","set:container","plugins","_detachFromContainer","widesidebar-detach-not-attached","get","WideSidebar","stopListening","blur","updateTargetRect","listenTo","requires","isAttached","off","register","annotations","_refreshPositioningDebounced","getOrderedSelectedAnnotations","context","EditorAnnotations","setActiveAnnotation","change:container","add","from","init","editors","activeAnnotation","focus","wideSidebar","cancel","refresh","switchTo","removeEventListener","ready","attach","_activeAnnotation","remove","_integrateWithEditorAnnotations","_editorAnnotations"];var hc,dc;hc=xc,dc=188,function(t){for(;--t;)hc.push(hc.shift())}(++dc);const lc=function(t,e){return xc[t-=0]};class uc extends t.ContextPlugin{static get[lc("0x1d")](){return[sc,Fa]}static get[lc("0xf")](){return lc("0x18")}constructor(t){super(t),this[lc("0x1e")]=!1,this[lc("0xb")](lc("0x2c"),null),this[lc("0x21")]=null,this[lc("0x7")]=new e.Collection,this[lc("0x22")]=xs((()=>{this[lc("0x21")].refreshPositioning()}),250,{leading:!1})}[lc("0x2a")](){const t=this[lc("0x24")].plugins[lc("0x17")](Fa),e=this[lc("0x24")][lc("0x14")][lc("0x17")](sc);t[lc("0x20")](lc("0x2e"),this),e.container&&t[lc("0x0")](lc("0x2e"))}[lc("0x26")](t){if(t===this[lc("0x2c")])return;const e=this[lc("0x24")][lc("0x14")][lc("0x17")](sc);e[lc("0x4")]=t;const n=this.activeAnnotation;this[lc("0x2c")]=t,e.refresh({blurredAnnotation:n,activatedAnnotation:this[lc("0x2c")]})}[lc("0x3")](t){this[lc("0x21")]=t;const n=this[lc("0x24")][lc("0x14")][lc("0x17")]("Sidebar");if(n._annotations=t,this[lc("0x1e")])throw new e.CKEditorError("widesidebar-attach-already-attached",this);this[lc("0x1e")]=!0,this[lc("0x1c")](n,lc("0x13"),(()=>{this[lc("0x12")](),this[lc("0x1c")](n,lc("0x27"),(e=>{e[lc("0x1f")](),this[lc("0x3")](t)}))})),n._attachToContainer({viewClass:"ck-sidebar--wide"});const o=t=>{t[lc("0x1b")](),n.addAnnotation(t)};for(const e of t)o(e);this.listenTo(t,lc("0x28"),((t,e)=>{o(e)})),this[lc("0x1c")](t,lc("0x5"),((e,o,i)=>{n[lc("0xd")]({removedAnnotation:o,previousAnnotation:t[lc("0x17")](i-1),nextAnnotation:t.get(i+1)}),o===this[lc("0x2c")]&&this[lc("0x26")](null)}),{priority:lc("0xe")}),this[lc("0x1c")](t,lc("0x2d"),((t,e)=>{this[lc("0x26")](e)})),this[lc("0x1c")](t,lc("0x1a"),(()=>{this.setActiveAnnotation(null)}));const i=this[lc("0x24")][lc("0x2b")]?this[lc("0x24")][lc("0x2b")]:new e.Collection([this.context]);for(const t of i)this[lc("0x6")](t);this.listenTo(i,lc("0x28"),((t,e)=>{this[lc("0x1c")](e,lc("0x2"),(()=>{this[lc("0x6")](e)}))})),this[lc("0x1c")](i,"remove",((t,e)=>{e[lc("0x14")][lc("0xc")]("EditorAnnotations")&&this[lc("0x11")](e[lc("0x14")][lc("0x17")](lc("0x25")))})),window[lc("0x10")](lc("0xa"),this._refreshPositioningDebounced),this[lc("0x21")].refreshPositioning()}[lc("0x12")](){if(!this.isAttached)throw new e.CKEditorError(lc("0x16"),this);this.setActiveAnnotation(null);const t=this.context[lc("0x14")][lc("0x17")](sc);t[lc("0x15")](this[lc("0x21")]),this[lc("0x19")](t),this.stopListening(this[lc("0x21")]),this[lc("0x19")](this[lc("0x24")][lc("0x2b")]);for(const t of Array[lc("0x29")](this._editorAnnotations))this[lc("0x11")](t);window[lc("0x1")](lc("0xa"),this[lc("0x22")]),this[lc("0x22")][lc("0x2f")](),this[lc("0x2c")]=null,this[lc("0x1e")]=!1,this[lc("0x21")]=null}destroy(){this[lc("0x1e")]&&this[lc("0x12")]()}[lc("0x6")](t){const e=t[lc("0x14")].get(lc("0x25"));if(!e)return;const n=()=>{const t=e[lc("0x23")]({annotations:this[lc("0x21")],activeAnnotation:this[lc("0x2c")]});this[lc("0x26")](t[0]||null)};this[lc("0x1c")](e,lc("0x30"),n),this.listenTo(e,lc("0x1a"),((t,{isAnnotationTracked:e})=>{this[lc("0x2c")]&&e(this[lc("0x2c")])&&this[lc("0x26")](null)})),this[lc("0x1c")](e,"uiUpdate",(()=>{this[lc("0x22")]()})),this.listenTo(this[lc("0x21")],lc("0x1a"),(t=>{e[lc("0x9")]()&&(n(),t[lc("0x8")]())}),{priority:lc("0xe")}),this[lc("0x7")].add(e)}[lc("0x11")](t){t&&(this[lc("0x19")](t),this[lc("0x7")][lc("0x5")](t))}}const mc=["annotationType","number","span","bind","isDirty","_badge","bindTemplate","children","set","...","ck-annotation-counter__badge--","counterView","ck-annotation-counter__badge"];var fc,pc;fc=mc,pc=225,function(t){for(;--t;)fc.push(fc.shift())}(++pc);const gc=function(t,e){return mc[t-=0]};class bc extends Ci.ButtonView{constructor(t){super(t);const e=this[gc("0x2")];this[gc("0x4")](gc("0x0"),!1),this[gc("0x4")]("number",0),this[gc("0xc")](gc("0x1")).to(this,gc("0x0"),this,gc("0xa"),((t,e)=>t?gc("0x5"):e)),this[gc("0x4")](gc("0x9"),""),this.icon=Ta,this.extendTemplate({attributes:{class:["ck-annotation-counter"]}}),this[gc("0x7")]=new Ci.View,this[gc("0x7")].setTemplate({tag:gc("0xb"),attributes:{class:[gc("0x8"),e.to(gc("0x9"),(t=>gc("0x6")+t)),e.if(gc("0x0"),"ck-annotation-counter__badge--edit-mode")]},children:[{text:e.to(gc("0x1"))}]}),this[gc("0x3")].add(this[gc("0x7")])}}var vc=n(28),_c={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ur()(vc.Z,_c);vc.Z.locals;const wc=["activeAnnotation","keyCode","rearrange","destroy","_detachListeners","balloonPanelView","_attachToContainer","setActiveAnnotation","detachFromDom","refresh","_integrateWithEditorAnnotations","isAttached","NarrowSidebar","_refreshPositioningDebounced","hasDomSelection","attach","_domEmitter","high","refreshPositioning","focus","change:container","attachToDom","pin","ready","_destroyEditorAnnotationsIntegration","uiUpdate","plugins","_updateBalloonPosition","_annotations","resize","editors","from","register","annotationType","number","southArrowNorth","detach","execute","add","_editorAnnotations","Sidebar","type","_setSelectedAnnotations","_showBalloon","delete","clear","preventDefault","isDirty","narrowSidebar","narrowsidebar-attach-already-attached","_selectedAnnotations","content","change:height","keydown","stop","context","northArrowSouthWest","preventClosingBalloon","northArrowSouthEast","bodyCollection","length","view","init","EditorAnnotations","isVisible","has","getSidebarItemView","stopListening","set:container","remove","first","getByView","locale","requires","values","_refreshPositioning","mousedown","blur","get","getOrderedSelectedAnnotations","_attachListeners","unpin","contains","annotations","set","_manuallyClosedAnnotationViews","element","southArrowNorthEast","_hideBalloon","defaultPositions","create","removeEventListener","_annotationToNarrowView","listenTo","stopPropagation","low","target"];var kc,yc;kc=wc,yc=436,function(t){for(;--t;)kc.push(kc.shift())}(++yc);const Ac=function(t,e){return wc[t-=0]};class Cc extends t.ContextPlugin{static get[Ac("0x19")](){return[sc,Fa]}static get pluginName(){return Ac("0x3d")}constructor(t){super(t),this[Ac("0x3c")]=!1,this[Ac("0x25")]=new Set,this[Ac("0x41")]=Object[Ac("0x2a")](e.DomEmitterMixin),this[Ac("0x2c")]=new Map,this[Ac("0x24")]("activeAnnotation",null),this[Ac("0x23")]=null,this[Ac("0x2")]=[],this[Ac("0x58")]=new e.Collection,this[Ac("0x3e")]=xs((()=>{this[Ac("0x1b")]()}),250,{leading:!1})}[Ac("0xe")](){this.context[Ac("0x4b")][Ac("0x1e")](Fa)[Ac("0x51")](Ac("0x0"),this),this[Ac("0xb")]=new Ci.BodyCollection(this[Ac("0x7")][Ac("0x18")]),this[Ac("0x36")]=new Ci.BalloonPanelView(this[Ac("0x7")][Ac("0x18")]),this[Ac("0xb")][Ac("0x46")](),this[Ac("0xb")][Ac("0x57")](this.balloonPanelView)}[Ac("0x40")](t){this[Ac("0x23")]=t;const n=this.context[Ac("0x4b")][Ac("0x1e")](sc),o=this[Ac("0x36")];if(n[Ac("0x4d")]=t,this[Ac("0x3c")])throw new e.CKEditorError(Ac("0x1"),this);this[Ac("0x3c")]=!0,this[Ac("0x2d")](n,Ac("0x14"),(()=>{this.detach(),this[Ac("0x2d")](n,Ac("0x45"),(e=>{e.off(),this[Ac("0x40")](t)}))})),n[Ac("0x37")]({viewClass:"ck-sidebar--narrow",spaceBetweenItems:5});const i=t=>{const e=new bc(this[Ac("0x7")][Ac("0x18")]);n.addAnnotation(t,e),this[Ac("0x2c")].set(t,e),e.bind(Ac("0x60"),Ac("0x52"),Ac("0x53")).to(t[Ac("0xd")],Ac("0x60"),Ac("0x5a"),Ac("0xc")),e.on(Ac("0x56"),(()=>{this._manuallyClosedAnnotationViews[Ac("0x5e")](),o[Ac("0x3")].first!==t.view?(this[Ac("0x5c")](t),t[Ac("0xd")][Ac("0x26")][Ac("0x44")](),this[Ac("0x38")](t)):this[Ac("0x38")](null)}))};for(const e of t)i(e);this[Ac("0x2d")](t,Ac("0x57"),((t,e)=>{i(e)})),this[Ac("0x2d")](t,Ac("0x15"),((e,o,i)=>{this[Ac("0x2c")].get(o).destroy(),this[Ac("0x2c")].delete(o),n[Ac("0x33")]({removedAnnotation:o,previousAnnotation:t.get(i-1),nextAnnotation:t[Ac("0x1e")](i+1)}),o===this.activeAnnotation&&this[Ac("0x38")](null)}),{priority:Ac("0x2f")}),this[Ac("0x2d")](t,"focus",((t,e)=>{this[Ac("0x38")](e)})),this[Ac("0x2d")](t,Ac("0x1d"),(()=>{this[Ac("0x38")](null)})),this[Ac("0x41")][Ac("0x2d")](document,Ac("0x5"),((t,n)=>{n[Ac("0x32")]===e.keyCodes.esc&&o[Ac("0x10")]&&(this._manuallyClosedAnnotationViews[Ac("0x57")](o.content.first),this[Ac("0x28")](),n[Ac("0x2e")](),n[Ac("0x5f")]())})),this[Ac("0x41")][Ac("0x2d")](document,Ac("0x1c"),((t,e)=>{const i=e.target;o.isVisible&&o[Ac("0x26")][Ac("0x22")](i)||n[Ac("0xd")][Ac("0x26")][Ac("0x22")](i)||t[Ac("0x9")]||(this[Ac("0x25")][Ac("0x5e")](),this._hideBalloon(),this[Ac("0x38")](null))}));const r=this[Ac("0x7")][Ac("0x4f")]?this[Ac("0x7")][Ac("0x4f")]:new e.Collection([this.context]);for(const t of r)this[Ac("0x3b")](t);this[Ac("0x2d")](r,"add",((t,e)=>{this.listenTo(e,Ac("0x48"),(()=>{this._integrateWithEditorAnnotations(e)}))})),this[Ac("0x2d")](r,Ac("0x15"),((t,e)=>{e[Ac("0x4b")].has(Ac("0xf"))&&this._destroyEditorAnnotationsIntegration(e[Ac("0x4b")][Ac("0x1e")](Ac("0xf")))})),window.addEventListener(Ac("0x4e"),this[Ac("0x3e")]),this[Ac("0x1b")]()}[Ac("0x38")](t){if(t===this[Ac("0x31")])return;const e=this[Ac("0x7")][Ac("0x4b")][Ac("0x1e")](Ac("0x59"));e[Ac("0x3a")]({blurredAnnotation:this[Ac("0x31")],activatedAnnotation:t,disableAnimationOnActivatedAnnotation:!0}),t?e[Ac("0x12")](t)?this[Ac("0x5c")](t):this[Ac("0x28")]():this._hideBalloon(),this[Ac("0x31")]=t}[Ac("0x55")](){if(!this[Ac("0x3c")])throw new e.CKEditorError("narrowsidebar-detach-not-attached",this);this[Ac("0x38")](null);const t=this[Ac("0x7")][Ac("0x4b")][Ac("0x1e")](Ac("0x59"));this[Ac("0x28")](),Array[Ac("0x50")](this._annotationToNarrowView[Ac("0x1a")](),(t=>t[Ac("0x34")]())),this[Ac("0x2c")][Ac("0x5e")](),t._detachFromContainer(this[Ac("0x23")]),this[Ac("0x13")](),this[Ac("0x41")][Ac("0x13")](),this[Ac("0x13")](this.context[Ac("0x4f")]);for(const t of Array.from(this[Ac("0x58")]))this[Ac("0x49")](t);window[Ac("0x2b")]("resize",this[Ac("0x3e")]),this[Ac("0x3e")].cancel(),this[Ac("0x2")]=[],this[Ac("0x3c")]=!1,this[Ac("0x23")]=null}[Ac("0x34")](){this.isAttached&&this[Ac("0x55")](),this.bodyCollection[Ac("0x39")]()}[Ac("0x3b")](t){const e=t[Ac("0x4b")][Ac("0x1e")](Ac("0xf")),n=this[Ac("0x7")].plugins[Ac("0x1e")](sc),o=this[Ac("0x23")],i=this[Ac("0x36")],r=()=>{const t=e[Ac("0x1f")]({activeAnnotation:this[Ac("0x31")],annotations:this[Ac("0x23")]});this[Ac("0x5b")](t),this[Ac("0x38")](t[0]||null)};this[Ac("0x2d")](e,Ac("0x3a"),r),this[Ac("0x2d")](e,Ac("0x1d"),((t,{isAnnotationTracked:e})=>{this[Ac("0x31")]&&e(this[Ac("0x31")])&&(this._setSelectedAnnotations([]),this[Ac("0x38")](null))})),this[Ac("0x2d")](e,Ac("0x4a"),(()=>{this[Ac("0x3e")]()})),this[Ac("0x2d")](o,Ac("0x1d"),(t=>{e[Ac("0x3f")]()&&t[Ac("0x6")]()}),{priority:Ac("0x42")}),this[Ac("0x41")][Ac("0x2d")](document,Ac("0x1c"),((t,o)=>{const s=o[Ac("0x30")];i[Ac("0x10")]&&i.element[Ac("0x22")](s)||n[Ac("0xd")][Ac("0x26")].contains(s)||this[Ac("0x31")]&&e[Ac("0x3f")]()&&(r(),t[Ac("0x9")]=!0)}),{priority:Ac("0x42")}),this[Ac("0x58")][Ac("0x57")](e)}[Ac("0x49")](t){t&&(this[Ac("0x13")](t),this[Ac("0x58")][Ac("0x15")](t))}[Ac("0x5b")](t){for(const e of this[Ac("0x2")])t.includes(e)||this._manuallyClosedAnnotationViews[Ac("0x5d")](e[Ac("0xd")]);this[Ac("0x2")]=t}[Ac("0x1b")](){const t=this[Ac("0x36")];this[Ac("0x23")][Ac("0x43")](),t.isVisible&&this._updateBalloonPosition()}[Ac("0x5c")](t){if(this._manuallyClosedAnnotationViews[Ac("0x11")](t[Ac("0xd")]))return;const e=this[Ac("0x36")][Ac("0x3")][Ac("0x16")];e!==t[Ac("0xd")]?(e&&this._detachListeners(e),this[Ac("0x20")](t[Ac("0xd")]),this[Ac("0x36")][Ac("0x3")][Ac("0x5e")](),this[Ac("0x36")][Ac("0x3")][Ac("0x57")](t[Ac("0xd")]),this[Ac("0x4c")]()):this[Ac("0x4c")]()}[Ac("0x4c")](){const t=this[Ac("0x36")][Ac("0x3")].first,e=this.annotations[Ac("0x17")](t);if(!this[Ac("0x2c")][Ac("0x11")](e))return;const n=this[Ac("0x2c")][Ac("0x1e")](e)[Ac("0x26")],o=function(){const t=Ci.BalloonPanelView[Ac("0x29")];return[t[Ac("0x27")],t[Ac("0xa")],t[Ac("0x54")],t.northArrowSouth,t.southArrowNorthWest,t[Ac("0x8")]]}();this[Ac("0x36")][Ac("0x47")]({target:n,positions:o})}[Ac("0x28")](){const t=this[Ac("0x36")],e=t.content.first;e&&(this[Ac("0x35")](e),t[Ac("0x21")](),t[Ac("0x3")].clear())}[Ac("0x20")](t){this[Ac("0x2d")](t,Ac("0x4"),(()=>this._updateBalloonPosition())),this.listenTo(t,"Esc",((e,n)=>{this[Ac("0x25")][Ac("0x57")](t),this[Ac("0x28")](),n()}))}[Ac("0x35")](t){this[Ac("0x13")](t)}}var Tc=n(275),Ec={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Ur()(Tc.Z,Ec);Tc.Z.locals;const Ic=["_getBalloonTargetForAnnotation","from","view","_removeAnnotationFromBalloon","editing","EditorAnnotations","left","_balloon","width","_addAnnotationToBalloon","right","clear","init","editor","switchTo","update","activeAnnotation","fromRect","getByView","push","inline","focusTracker","bind","destroy","InlineAnnotations","_addedAnnotations","_manuallyClosed","plugins","register","getClientRects","change:isFocused","setActiveAnnotation","hasActive","context","detach","stopListening","_selectedAnnotations","targetRect","getBoundingClientRect","inlineannotations-detach-not-attached","delete","_setSelectedAnnotations","hasView","_forceRefresh","isActive","change:height","isFocused","add","refresh","collapse","domConverter","isAttached","target","_closeAnnotation","focus","top","viewRangeToDom","map","inlineannotations-not-allowed-with-context","document","getOrderedSelectedAnnotations","blur","get","includes","editableElement","remove","length","getFirstRange","addObserver","has","bottom","updatePosition","Esc","annotations","mousedown","set","listenTo","change:visibleView","visibleView","requires"];var Oc,jc;Oc=Ic,jc=456,function(t){for(;--t;)Oc.push(Oc.shift())}(++jc);const Vc=function(t,e){return Ic[t-=0]};class Mc extends t.Plugin{static get[Vc("0x17")](){return[ra,Ci.ContextualBalloon,Fa]}static get pluginName(){return Vc("0x30")}constructor(t){super(t),t[Vc("0x1c")][Vc("0x1a")][Vc("0xc")](Pi.MouseObserver),this[Vc("0x4b")]=!1,this[Vc("0x13")](Vc("0x28"),null),this[Vc("0x11")]=null,this[Vc("0x32")]=new Set,this[Vc("0x1f")]=t[Vc("0x33")].get(Ci.ContextualBalloon),this[Vc("0x31")]=new Set,this._selectedAnnotations=[],this[Vc("0x43")]=!1}[Vc("0x24")](){const t=this[Vc("0x25")].plugins[Vc("0x6")](Fa);t[Vc("0x39")]===this[Vc("0x25")]&&(t[Vc("0x34")]("inline",this),this[Vc("0x25")].keystrokes[Vc("0x13")](Vc("0x10"),((t,e)=>{const n=this[Vc("0x1f")];if(this[Vc("0x4b")]&&n[Vc("0x16")]){const t=this[Vc("0x11")][Vc("0x2a")](n[Vc("0x16")]);this[Vc("0x4d")](t),e()}})))}afterInit(){const t=this[Vc("0x25")][Vc("0x33")][Vc("0x6")](Fa);t.context===this[Vc("0x25")]&&(t[Vc("0x38")]()||t[Vc("0x26")](Vc("0x2c")))}[Vc("0x37")](t){t!==this[Vc("0x28")]&&(this[Vc("0x28")]&&(this.activeAnnotation.isActive=!1),t&&this.editor.ui[Vc("0x2d")][Vc("0x46")]&&(this._addAnnotationToBalloon(t,!0),t[Vc("0x44")]=!0),t||this[Vc("0x41")]([]),this[Vc("0x28")]=t)}attach(t){this.annotations=t;const n=this[Vc("0x25")][Vc("0x33")][Vc("0x6")](Fa),o=this._balloon;if(this[Vc("0x4b")])throw new e.CKEditorError("inlineannotations-attach-already-attached",this);if(n.context!==this[Vc("0x25")])throw new e.CKEditorError(Vc("0x2"),this);const i=this[Vc("0x25")][Vc("0x33")][Vc("0x6")](Vc("0x1d"));this[Vc("0x14")](i,Vc("0x48"),function(){const t=i[Vc("0x4")]({activeAnnotation:this[Vc("0x28")],annotations:this[Vc("0x11")]});var e,n;!this[Vc("0x43")]&&(e=t,n=this[Vc("0x3c")],e[Vc("0xa")]===n[Vc("0xa")]&&e.every((t=>n[Vc("0x7")](t))))||(this[Vc("0x43")]=!1,this[Vc("0x41")](t),this.setActiveAnnotation(t[0]||null))}[Vc("0x2e")](this)),this.listenTo(i,Vc("0x5"),((t,{isAnnotationTracked:e})=>{this[Vc("0x28")]&&e(this[Vc("0x28")])&&(this[Vc("0x41")]([]),this.setActiveAnnotation(null))})),this[Vc("0x14")](this.editor.ui[Vc("0x2d")],Vc("0x36"),((t,e,n)=>{n||this.setActiveAnnotation(null)})),this[Vc("0x14")](t,Vc("0x9"),((t,e)=>{this[Vc("0x1b")](e),e===this[Vc("0x28")]&&this[Vc("0x37")](null)})),this[Vc("0x14")](o,Vc("0x15"),((e,n,i,r)=>{if(r&&this[Vc("0x3b")](r),!i||!t[Vc("0x2a")](i))return;const s=t[Vc("0x2a")](i);this.listenTo(i,Vc("0x45"),(()=>{o.updatePosition()})),this[Vc("0x14")](i,"Esc",(()=>{this[Vc("0x4d")](s),this.editor[Vc("0x1c")][Vc("0x1a")][Vc("0x4e")]()})),this[Vc("0x28")]!==s&&this.setActiveAnnotation(s)})),this[Vc("0x14")](this.editor.ui,Vc("0x27"),(()=>{o.visibleView&&t[Vc("0x2a")](o[Vc("0x16")])&&o[Vc("0xf")]()})),this[Vc("0x14")](this[Vc("0x25")].editing[Vc("0x1a")][Vc("0x3")],Vc("0x12"),(()=>{this[Vc("0x43")]=!0,this[Vc("0x32")][Vc("0x23")]()})),this[Vc("0x25")][Vc("0x1c")][Vc("0x1a")][Vc("0x3")].selection[Vc("0x8")]&&this[Vc("0x25")][Vc("0x1c")][Vc("0x1a")][Vc("0x4e")](),this[Vc("0x4b")]=!0}[Vc("0x3a")](){if(!this.isAttached)throw new e.CKEditorError(Vc("0x3f"),this);this.setActiveAnnotation(null);for(const t of this[Vc("0x31")])this[Vc("0x1b")](t);this[Vc("0x3b")](),this.isAttached=!1,this[Vc("0x11")]=null}[Vc("0x2f")](){this[Vc("0x4b")]&&this[Vc("0x3a")]()}[Vc("0x41")](t){for(const e of this[Vc("0x3c")])t[Vc("0x7")](e)||this._manuallyClosed.delete(e);for(const e of this[Vc("0x11")])t[Vc("0x7")](e)||this[Vc("0x1b")](e);if(this[Vc("0x25")].ui[Vc("0x2d")][Vc("0x46")])for(const e of t)this[Vc("0x21")](e);this._selectedAnnotations=t}[Vc("0x21")](t,e){this._manuallyClosed[Vc("0xd")](t)||(this[Vc("0x31")][Vc("0xd")](t)||this[Vc("0x1f")][Vc("0x42")](t[Vc("0x1a")])||(this[Vc("0x31")][Vc("0x47")](t),this[Vc("0x1f")][Vc("0x47")]({stackId:t[Vc("0x1a")].id,view:t[Vc("0x1a")],position:{target:()=>this._getBalloonTargetForAnnotation(t)}})),e&&this[Vc("0x1f")].showStack(t[Vc("0x1a")].id))}[Vc("0x18")](t){const n=t[Vc("0x4c")],o=this[Vc("0x25")].editing.view,i=o[Vc("0x3")].selection[Vc("0xb")](),r=o[Vc("0x4a")][Vc("0x0")](i);if(r[Vc("0x49")](!0),n){if(n instanceof e.Rect)return n;let t=[];for(const e of n)t[Vc("0x2b")](...(s=e[Vc("0x35")](),Array[Vc("0x19")](s)[Vc("0x1")](DOMRect[Vc("0x29")])));t=function(t){const e=[];let n=t[0];for(let r=1;r<t[Vc("0xa")];r++)o=n,i=t[r],o[Vc("0x4f")]===i[Vc("0x4f")]&&o.bottom===i[Vc("0xe")]&&o[Vc("0x22")]===i[Vc("0x1e")]?n.width+=t[r][Vc("0x20")]:(e.push(n),n=t[r]);var o,i;return e.push(n),e}(t);const o=r[Vc("0x3e")]();return t.find((t=>t[Vc("0x4f")]<=o[Vc("0x4f")]&&t.bottom>=o[Vc("0xe")]&&t[Vc("0x1e")]<=o[Vc("0x1e")]&&t[Vc("0x22")]>=o[Vc("0x22")]))||t[0]}var s;return t[Vc("0x3d")]||r}[Vc("0x1b")](t){this._addedAnnotations[Vc("0xd")](t)&&this[Vc("0x1f")][Vc("0x42")](t[Vc("0x1a")])&&(this[Vc("0x31")][Vc("0x40")](t),this[Vc("0x1f")].remove(t[Vc("0x1a")]))}[Vc("0x4d")](t){this[Vc("0x32")][Vc("0x47")](t),this._removeAnnotationFromBalloon(t)}}var Rc,Sc,Nc=["Comments","pluginName"];Rc=Nc,Sc=235,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);var Dc=function(t,e){return Nc[t-=0]};class Pc extends t.Plugin{static get requires(){return[Zs,ka,Va,Da,uc,Cc,Mc]}static get[Dc("0x0")](){return Dc("0x1")}}})(),(window.CKEditor5=window.CKEditor5||{}).comments=o})();